00043014 : #include static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) { 43014: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 43018: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED the_thread->cpu_time_used.tv_sec = 0; the_thread->cpu_time_used.tv_nsec = 0; #else the_thread->cpu_time_used = 0; #endif } 4301c: 4e5e unlk %fp <== NOT EXECUTED Thread_Control *the_thread ) { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; the_thread->cpu_time_used.tv_nsec = 0; 4301e: 42a8 0088 clrl %a0@(136) <== NOT EXECUTED static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 43022: 42a8 0084 clrl %a0@(132) <== NOT EXECUTED the_thread->cpu_time_used.tv_nsec = 0; #else the_thread->cpu_time_used = 0; #endif } 43026: 4e75 rts 000493ec : #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 493ec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 493f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 493f2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 493f6: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED switch( node->type ) { 493fa: 2252 moveal %a2@,%a1 <== NOT EXECUTED ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 493fc: 2068 002c moveal %a0@(44),%a0 <== NOT EXECUTED switch( node->type ) { 49400: 7006 moveq #6,%d0 <== NOT EXECUTED 49402: b0a9 0048 cmpl %a1@(72),%d0 <== NOT EXECUTED 49406: 6524 bcss 4942c <== NOT EXECUTED 49408: 2029 0048 movel %a1@(72),%d0 <== NOT EXECUTED 4940c: d080 addl %d0,%d0 <== NOT EXECUTED 4940e: 323b 0808 movew %pc@(49418 ,%d0:l),%d1 <== NOT EXECUTED 49412: 48c1 extl %d1 <== NOT EXECUTED 49414: 4efb 1802 jmp %pc@(49418 ,%d1:l) <== NOT EXECUTED 49418: 0014 024 <== NOT EXECUTED 4941a: 000e 016 <== NOT EXECUTED 4941c: 003c 074 <== NOT EXECUTED 4941e: 002a 052 <== NOT EXECUTED 49420: 002a 052 <== NOT EXECUTED 49422: 001c 034 <== NOT EXECUTED 49424: 001c 034 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 49426: 2568 0008 0004 movel %a0@(8),%a2@(4) <== NOT EXECUTED loc->handlers = fs_info->memfile_handlers; break; } return 0; } 4942c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4942e: 4e5e unlk %fp <== NOT EXECUTED 49430: 4280 clrl %d0 <== NOT EXECUTED 49432: 4e75 rts <== NOT EXECUTED 49434: 4280 clrl %d0 <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 49436: 2568 0004 0004 movel %a0@(4),%a2@(4) <== NOT EXECUTED break; } return 0; } 4943c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4943e: 4e5e unlk %fp <== NOT EXECUTED 49440: 4e75 rts <== NOT EXECUTED case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 49442: 203c 0005 5e54 movel #351828,%d0 <== NOT EXECUTED 49448: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED loc->handlers = fs_info->memfile_handlers; break; } return 0; } 4944c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4944e: 4e5e unlk %fp <== NOT EXECUTED 49450: 4280 clrl %d0 <== NOT EXECUTED 49452: 4e75 rts <== NOT EXECUTED switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 49454: 203c 0005 5e1c movel #351772,%d0 <== NOT EXECUTED 4945a: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED loc->handlers = fs_info->memfile_handlers; break; } return 0; } 4945e: 245f moveal %sp@+,%a2 <== NOT EXECUTED 49460: 4e5e unlk %fp <== NOT EXECUTED 49462: 4280 clrl %d0 <== NOT EXECUTED 49464: 4e75 rts 0005ec50 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 5ec50: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 5ec54: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 5ec58: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 5ec5a: 2450 moveal %a0@,%a2 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 5ec5c: 356e 000e 0038 movew %fp@(14),%a2@(56) <== NOT EXECUTED jnode->st_gid = group; 5ec62: 356e 0012 003a movew %fp@(18),%a2@(58) <== NOT EXECUTED IMFS_update_ctime( jnode ); 5ec68: 42a7 clrl %sp@- <== NOT EXECUTED 5ec6a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 5ec6e: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 5ec74: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED return 0; } 5ec7a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 5ec7e: 4e5e unlk %fp <== NOT EXECUTED 5ec80: 4280 clrl %d0 <== NOT EXECUTED 5ec82: 4e75 rts 0004bdd4 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4bdd4: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4bdd8: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 4bddc: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED 4bde0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED IMFS_jnode_t *node; struct timeval tv; IMFS_jnode_t *parent = NULL; IMFS_fs_info_t *fs_info; if ( parent_loc != NULL ) 4bde4: 4a8c tstl %a4 <== NOT EXECUTED 4bde6: 6700 0130 beqw 4bf18 <== NOT EXECUTED parent = parent_loc->node_access; 4bdea: 2654 moveal %a4@,%a3 <== NOT EXECUTED /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 4bdec: 4878 005c pea 5c <== NOT EXECUTED 4bdf0: 4878 0001 pea 1 <== NOT EXECUTED 4bdf4: 4eb9 0004 a2d4 jsr 4a2d4 <== NOT EXECUTED if ( !node ) 4bdfa: 508f addql #8,%sp <== NOT EXECUTED /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 4bdfc: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !node ) 4bdfe: 4a80 tstl %d0 <== NOT EXECUTED 4be00: 6700 00b6 beqw 4beb8 <== NOT EXECUTED * Fill in the basic information */ node->st_nlink = 1; node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 4be04: 4878 0020 pea 20 <== NOT EXECUTED /* * Fill in the basic information */ node->st_nlink = 1; 4be08: 7001 moveq #1,%d0 <== NOT EXECUTED node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 4be0a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED /* * Fill in the basic information */ node->st_nlink = 1; 4be0e: 3540 0032 movew %d0,%a2@(50) <== NOT EXECUTED node->type = type; 4be12: 2542 0048 movel %d2,%a2@(72) <== NOT EXECUTED strncpy( node->name, name, IMFS_NAME_MAX ); 4be16: 486a 000c pea %a2@(12) <== NOT EXECUTED 4be1a: 4eb9 0004 dfa8 jsr 4dfa8 <== NOT EXECUTED /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 4be20: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 4be26: 2028 0024 movel %a0@(36),%d0 <== NOT EXECUTED 4be2a: 4680 notl %d0 <== NOT EXECUTED 4be2c: c0ae 0014 andl %fp@(20),%d0 <== NOT EXECUTED 4be30: 2540 002e movel %d0,%a2@(46) <== NOT EXECUTED #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; 4be34: 4240 clrw %d0 <== NOT EXECUTED 4be36: 3540 0038 movew %d0,%a2@(56) <== NOT EXECUTED /* * Now set all the times. */ gettimeofday( &tv, 0 ); 4be3a: 42a7 clrl %sp@- <== NOT EXECUTED #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; node->st_gid = 0; 4be3c: 3540 003a movew %d0,%a2@(58) <== NOT EXECUTED /* * Now set all the times. */ gettimeofday( &tv, 0 ); 4be40: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4be44: 4eb9 0004 a55c jsr 4a55c <== NOT EXECUTED node->stat_atime = (time_t) tv.tv_sec; 4be4a: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED /* * Set the type specific information */ switch (type) { 4be4e: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; 4be54: 2541 0044 movel %d1,%a2@(68) <== NOT EXECUTED /* * Set the type specific information */ switch (type) { 4be58: 7006 moveq #6,%d0 <== NOT EXECUTED * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 4be5a: 2541 003c movel %d1,%a2@(60) <== NOT EXECUTED node->stat_mtime = (time_t) tv.tv_sec; 4be5e: 2541 0040 movel %d1,%a2@(64) <== NOT EXECUTED /* * Set the type specific information */ switch (type) { 4be62: b082 cmpl %d2,%d0 <== NOT EXECUTED 4be64: 645e bccs 4bec4 <== NOT EXECUTED node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; break; default: assert(0); 4be66: 4879 0005 60b8 pea 560b8 <== NOT EXECUTED 4be6c: 4879 0005 6106 pea 56106 <__func__.5522> <== NOT EXECUTED 4be72: 4878 0074 pea 74 <== NOT EXECUTED 4be76: 4879 0005 60ba pea 560ba <== NOT EXECUTED 4be7c: 4eb9 0004 a094 jsr 4a094 <__assert_func> <== NOT EXECUTED case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 4be82: 206e 0018 moveal %fp@(24),%a0 <== NOT EXECUTED 4be86: 2550 004c movel %a0@,%a2@(76) <== NOT EXECUTED node->info.device.minor = info->device.minor; 4be8a: 5888 addql #4,%a0 <== NOT EXECUTED 4be8c: 2550 0050 movel %a0@,%a2@(80) <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { 4be90: 4a8b tstl %a3 <== NOT EXECUTED 4be92: 6724 beqs 4beb8 <== 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 ); 4be94: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4be96: 486b 004c pea %a3@(76) <== NOT EXECUTED 4be9a: 4eb9 0004 66d8 jsr 466d8 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; fs_info = parent_loc->mt_entry->fs_info; 4bea0: 206c 000c moveal %a4@(12),%a0 <== NOT EXECUTED 4bea4: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED node->st_ino = ++fs_info->ino_count; 4bea8: 2011 movel %a1@,%d0 <== NOT EXECUTED 4beaa: 5280 addql #1,%d0 <== NOT EXECUTED 4beac: 2280 movel %d0,%a1@ <== NOT EXECUTED 4beae: 508f addql #8,%sp <== NOT EXECUTED * If this node has a parent, then put it in that directory list. */ if ( parent ) { rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; 4beb0: 254b 0008 movel %a3,%a2@(8) <== NOT EXECUTED fs_info = parent_loc->mt_entry->fs_info; node->st_ino = ++fs_info->ino_count; 4beb4: 2540 0034 movel %d0,%a2@(52) <== NOT EXECUTED } return node; } 4beb8: 200a movel %a2,%d0 <== NOT EXECUTED 4beba: 4cee 1c04 ffe8 moveml %fp@(-24),%d2/%a2-%a4 <== NOT EXECUTED 4bec0: 4e5e unlk %fp <== NOT EXECUTED 4bec2: 4e75 rts <== NOT EXECUTED /* * Set the type specific information */ switch (type) { 4bec4: 303b 2a08 movew %pc@(4bece ,%d2:l:2),%d0 <== NOT EXECUTED 4bec8: 48c0 extl %d0 <== NOT EXECUTED 4beca: 4efb 0802 jmp %pc@(4bece ,%d0:l) <== NOT EXECUTED 4bece: ff98 0032 cp1stl %d0,%a0@+,#1,#50 <== NOT EXECUTED 4bed2: ffb4 0177664 <== NOT EXECUTED 4bed4: 000e 016 <== NOT EXECUTED 4bed6: 000e 016 <== NOT EXECUTED 4bed8: 0020 040 <== NOT EXECUTED 4beda: 0018 030 <== NOT EXECUTED 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; 4bedc: 206e 0018 moveal %fp@(24),%a0 <== NOT EXECUTED 4bee0: 2550 004c movel %a0@,%a2@(76) <== NOT EXECUTED 4bee4: 60aa bras 4be90 <== 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; 4bee6: 42aa 004c clrl %a2@(76) <== NOT EXECUTED node->info.linearfile.direct = 0; 4beea: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 4beee: 42aa 004c clrl %a2@(76) <== NOT EXECUTED node->info.file.indirect = 0; 4bef2: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED node->info.file.doubly_indirect = 0; 4bef6: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED node->info.file.triply_indirect = 0; 4befa: 42aa 0058 clrl %a2@(88) <== NOT EXECUTED 4befe: 6090 bras 4be90 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4bf00: 41ea 0050 lea %a2@(80),%a0 <== NOT EXECUTED 4bf04: 2548 004c movel %a0,%a2@(76) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4bf08: 41ea 004c lea %a2@(76),%a0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 4bf0c: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 4bf10: 2548 0054 movel %a0,%a2@(84) <== NOT EXECUTED 4bf14: 6000 ff7a braw 4be90 <== NOT EXECUTED IMFS_jnode_t *node; struct timeval tv; IMFS_jnode_t *parent = NULL; IMFS_fs_info_t *fs_info; if ( parent_loc != NULL ) 4bf18: 97cb subal %a3,%a3 <== NOT EXECUTED 4bf1a: 6000 fed0 braw 4bdec <== NOT EXECUTED ... 000495a8 : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 495a8: 4e56 ffb0 linkw %fp,#-80 <== NOT EXECUTED 495ac: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 495b0: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED 495b4: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 495b8: 2453 moveal %a3@,%a2 <== NOT EXECUTED 495ba: 2a0e movel %fp,%d5 <== NOT EXECUTED 495bc: 280e movel %fp,%d4 <== NOT EXECUTED 495be: 4282 clrl %d2 <== NOT EXECUTED 495c0: 5985 subql #4,%d5 <== NOT EXECUTED 495c2: 0684 ffff ffdb addil #-37,%d4 <== NOT EXECUTED 495c8: 4bf9 0004 9bd0 lea 49bd0 ,%a5 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 495ce: 2c3c 0004 9b1c movel #301852,%d6 <== NOT EXECUTED * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 495d4: 2e3c 0004 9488 movel #300168,%d7 <== NOT EXECUTED * 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], token, &len ); 495da: 2f05 movel %d5,%sp@- <== NOT EXECUTED 495dc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 495de: 4874 2800 pea %a4@(00000000,%d2:l) <== NOT EXECUTED 495e2: 4e95 jsr %a5@ <== NOT EXECUTED i += len; 495e4: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED if ( !pathloc->node_access ) 495e8: 2253 moveal %a3@,%a1 <== NOT EXECUTED * 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], token, &len ); 495ea: 2200 movel %d0,%d1 <== NOT EXECUTED i += len; if ( !pathloc->node_access ) 495ec: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 495f2: 4a89 tstl %a1 <== NOT EXECUTED 495f4: 6700 00e6 beqw 496dc <== NOT EXECUTED */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); i += len; 495f8: d483 addl %d3,%d2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 495fa: 4a80 tstl %d0 <== NOT EXECUTED 495fc: 672c beqs 4962a <== NOT EXECUTED if ( node->type == IMFS_DIRECTORY ) 495fe: 7001 moveq #1,%d0 <== NOT EXECUTED 49600: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 49604: 6700 010e beqw 49714 <== NOT EXECUTED 49608: 2449 moveal %a1,%a2 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 4960a: 7003 moveq #3,%d0 <== NOT EXECUTED 4960c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4960e: 6770 beqs 49680 <== NOT EXECUTED 49610: 103c 0004 moveb #4,%d0 <== NOT EXECUTED 49614: b081 cmpl %d1,%d0 <== NOT EXECUTED 49616: 6700 00e0 beqw 496f8 <== NOT EXECUTED 4961a: 103c 0002 moveb #2,%d0 <== NOT EXECUTED 4961e: b081 cmpl %d1,%d0 <== NOT EXECUTED 49620: 6700 0098 beqw 496ba <== NOT EXECUTED /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 49624: 7004 moveq #4,%d0 <== NOT EXECUTED 49626: b081 cmpl %d1,%d0 <== NOT EXECUTED 49628: 66b0 bnes 495da <== NOT EXECUTED * 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 ) { 4962a: 7201 moveq #1,%d1 <== NOT EXECUTED 4962c: b2a9 0048 cmpl %a1@(72),%d1 <== NOT EXECUTED 49630: 6600 0110 bnew 49742 <== NOT EXECUTED if ( node->info.directory.mt_fs != NULL ) { 49634: 2069 0058 moveal %a1@(88),%a0 <== NOT EXECUTED 49638: 4a88 tstl %a0 <== NOT EXECUTED 4963a: 6700 0106 beqw 49742 <== NOT EXECUTED newloc = node->info.directory.mt_fs->mt_fs_root; 4963e: 2268 0020 moveal %a0@(32),%a1 <== NOT EXECUTED *pathloc = newloc; 49642: 2768 0024 000c movel %a0@(36),%a3@(12) <== NOT EXECUTED * 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; 49648: 2028 001c movel %a0@(28),%d0 <== NOT EXECUTED 4964c: 2228 0018 movel %a0@(24),%d1 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 49650: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49652: 94ae fffc subl %fp@(-4),%d2 <== NOT EXECUTED 49656: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4965a: 4874 2800 pea %a4@(00000000,%d2:l) <== NOT EXECUTED 4965e: 2051 moveal %a1@,%a0 <== NOT EXECUTED */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 49660: 2749 0008 movel %a1,%a3@(8) <== NOT EXECUTED 49664: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED 49668: 2681 movel %d1,%a3@ <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 4966a: 4e90 jsr %a0@ <== NOT EXECUTED 4966c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49672: 2240 moveal %d0,%a1 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49674: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4967a: 4e5e unlk %fp <== NOT EXECUTED 4967c: 2009 movel %a1,%d0 <== NOT EXECUTED 4967e: 4e75 rts <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 49680: 2029 0048 movel %a1@(72),%d0 <== NOT EXECUTED 49684: 7203 moveq #3,%d1 <== NOT EXECUTED 49686: b280 cmpl %d0,%d1 <== NOT EXECUTED 49688: 6700 00ea beqw 49774 <== NOT EXECUTED node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 4968c: 7204 moveq #4,%d1 <== NOT EXECUTED 4968e: b280 cmpl %d0,%d1 <== NOT EXECUTED 49690: 6700 00fa beqw 4978c <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 49694: 7201 moveq #1,%d1 <== NOT EXECUTED 49696: b280 cmpl %d0,%d1 <== NOT EXECUTED 49698: 6600 0114 bnew 497ae <== NOT EXECUTED /* * 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 ) { 4969c: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED 496a0: 4a88 tstl %a0 <== NOT EXECUTED 496a2: 669a bnes 4963e <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 496a4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 496a6: 2046 moveal %d6,%a0 <== NOT EXECUTED 496a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 496aa: 4e90 jsr %a0@ <== NOT EXECUTED if ( !node ) 496ac: 508f addql #8,%sp <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 496ae: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !node ) 496b0: 4a80 tstl %d0 <== NOT EXECUTED 496b2: 6728 beqs 496dc <== NOT EXECUTED /* * Set the node access to the point we have found. */ pathloc->node_access = node; 496b4: 268a movel %a2,%a3@ <== NOT EXECUTED 496b6: 6000 ff22 braw 495da <== NOT EXECUTED case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 496ba: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 496c0: b3e8 0014 cmpal %a0@(20),%a1 <== NOT EXECUTED 496c4: 6700 ff14 beqw 495da <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 496c8: 206b 000c moveal %a3@(12),%a0 <== NOT EXECUTED 496cc: b3e8 0018 cmpal %a0@(24),%a1 <== NOT EXECUTED 496d0: 6700 00f0 beqw 497c2 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); } } else { if ( !node->Parent ) 496d4: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED 496d8: 4a8a tstl %a2 <== NOT EXECUTED 496da: 66d8 bnes 496b4 <== NOT EXECUTED * 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 ); 496dc: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 496e2: 7802 moveq #2,%d4 <== NOT EXECUTED 496e4: 2040 moveal %d0,%a0 <== NOT EXECUTED 496e6: 2084 movel %d4,%a0@ <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 496e8: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED * 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 ); 496ee: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 496f2: 4e5e unlk %fp <== NOT EXECUTED 496f4: 2009 movel %a1,%d0 <== NOT EXECUTED 496f6: 4e75 rts <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 496f8: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 496fe: 765b moveq #91,%d3 <== NOT EXECUTED 49700: 2040 moveal %d0,%a0 <== NOT EXECUTED 49702: 2083 movel %d3,%a0@ <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49704: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 4970a: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 4970e: 4e5e unlk %fp <== NOT EXECUTED 49710: 2009 movel %a1,%d0 <== NOT EXECUTED 49712: 4e75 rts <== 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 ) 49714: 7040 moveq #64,%d0 <== NOT EXECUTED 49716: c0a9 002e andl %a1@(46),%d0 <== NOT EXECUTED 4971a: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 4971c: 2449 moveal %a1,%a2 <== 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 ) 4971e: 7040 moveq #64,%d0 <== NOT EXECUTED 49720: b088 cmpl %a0,%d0 <== NOT EXECUTED 49722: 6700 fee6 beqw 4960a <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 49726: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4972c: 740d moveq #13,%d2 <== NOT EXECUTED 4972e: 2040 moveal %d0,%a0 <== NOT EXECUTED 49730: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED 49734: 2082 movel %d2,%a0@ <== NOT EXECUTED return result; } 49736: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4973c: 4e5e unlk %fp <== NOT EXECUTED 4973e: 2009 movel %a1,%d0 <== NOT EXECUTED 49740: 4e75 rts <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 49742: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49744: 4eb9 0004 93ec jsr 493ec <== 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 ) 4974a: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 4974e: 2053 moveal %a3@,%a0 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 49750: 2240 moveal %d0,%a1 <== 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 ) 49752: ed89 lsll #6,%d1 <== NOT EXECUTED 49754: 2001 movel %d1,%d0 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 49756: 588f addql #4,%sp <== 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 ) 49758: c0a8 002e andl %a0@(46),%d0 <== NOT EXECUTED 4975c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4975e: 6700 ff14 beqw 49674 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 49762: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49768: 740d moveq #13,%d2 <== NOT EXECUTED 4976a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4976c: 2082 movel %d2,%a0@ <== NOT EXECUTED 4976e: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED 49772: 60c2 bras 49736 <== NOT EXECUTED * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 49774: 42a7 clrl %sp@- <== NOT EXECUTED 49776: 2047 moveal %d7,%a0 <== NOT EXECUTED 49778: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4977a: 4e90 jsr %a0@ <== NOT EXECUTED node = pathloc->node_access; 4977c: 2453 moveal %a3@,%a2 <== NOT EXECUTED if ( !node ) 4977e: 508f addql #8,%sp <== NOT EXECUTED 49780: 4a8a tstl %a2 <== NOT EXECUTED 49782: 672a beqs 497ae <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 49784: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 49788: 6000 ff0a braw 49694 <== NOT EXECUTED if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 4978c: 42a7 clrl %sp@- <== NOT EXECUTED 4978e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49790: 4eb9 0004 94e8 jsr 494e8 <== NOT EXECUTED 49796: 2240 moveal %d0,%a1 <== NOT EXECUTED node = pathloc->node_access; 49798: 2013 movel %a3@,%d0 <== NOT EXECUTED if ( result == -1 ) 4979a: 508f addql #8,%sp <== NOT EXECUTED 4979c: 72ff moveq #-1,%d1 <== NOT EXECUTED 4979e: b289 cmpl %a1,%d1 <== NOT EXECUTED 497a0: 6700 fed2 beqw 49674 <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 497a4: 2440 moveal %d0,%a2 <== NOT EXECUTED 497a6: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 497aa: 6000 fee8 braw 49694 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 497ae: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 497b4: 7a14 moveq #20,%d5 <== NOT EXECUTED 497b6: 2040 moveal %d0,%a0 <== NOT EXECUTED 497b8: 2085 movel %d5,%a0@ <== NOT EXECUTED 497ba: 327c ffff moveaw #-1,%a1 <== NOT EXECUTED 497be: 6000 feb4 braw 49674 <== NOT EXECUTED */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 497c2: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED *pathloc = newloc; 497c6: 2768 0014 000c movel %a0@(20),%a3@(12) <== NOT EXECUTED */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 497cc: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 497d0: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); 497d4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 497d6: 9483 subl %d3,%d2 <== NOT EXECUTED if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 497d8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 497dc: 4874 2800 pea %a4@(00000000,%d2:l) <== NOT EXECUTED 497e0: 2051 moveal %a1@,%a0 <== NOT EXECUTED */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 497e2: 2749 0008 movel %a1,%a3@(8) <== NOT EXECUTED 497e6: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED 497ea: 2681 movel %d1,%a3@ <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 497ec: 4e90 jsr %a0@ <== NOT EXECUTED 497ee: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 497f4: 2240 moveal %d0,%a1 <== NOT EXECUTED 497f6: 6000 fe7c braw 49674 <== NOT EXECUTED 000498b6 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 498b6: 4e56 ffb0 linkw %fp,#-80 <== NOT EXECUTED 498ba: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 498be: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 498c2: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 498c6: 2453 moveal %a3@,%a2 <== NOT EXECUTED 498c8: 2a0e movel %fp,%d5 <== NOT EXECUTED 498ca: 280e movel %fp,%d4 <== NOT EXECUTED 498cc: 4282 clrl %d2 <== NOT EXECUTED 498ce: 5985 subql #4,%d5 <== NOT EXECUTED 498d0: 0684 ffff ffdb addil #-37,%d4 <== NOT EXECUTED 498d6: 4bf9 0004 9bd0 lea 49bd0 ,%a5 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 498dc: 2c3c 0004 9b1c movel #301852,%d6 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 498e2: 2e3c 0004 97fa movel #301050,%d7 <== NOT EXECUTED * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 498e8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 498ea: 2f04 movel %d4,%sp@- <== NOT EXECUTED 498ec: 4874 2800 pea %a4@(00000000,%d2:l) <== NOT EXECUTED 498f0: 4e95 jsr %a5@ <== NOT EXECUTED i += len; 498f2: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED if ( !pathloc->node_access ) 498f6: 2253 moveal %a3@,%a1 <== NOT EXECUTED * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 498f8: 2200 movel %d0,%d1 <== NOT EXECUTED i += len; if ( !pathloc->node_access ) 498fa: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49900: 4a89 tstl %a1 <== NOT EXECUTED 49902: 6700 00ca beqw 499ce <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 49906: 4a80 tstl %d0 <== NOT EXECUTED 49908: 6744 beqs 4994e <== NOT EXECUTED if ( node->type == IMFS_DIRECTORY ) 4990a: 7001 moveq #1,%d0 <== NOT EXECUTED 4990c: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 49910: 6700 00d6 beqw 499e8 <== NOT EXECUTED 49914: 2449 moveal %a1,%a2 <== NOT EXECUTED */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 49916: d483 addl %d3,%d2 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 49918: 7002 moveq #2,%d0 <== NOT EXECUTED 4991a: b081 cmpl %d1,%d0 <== NOT EXECUTED 4991c: 6700 008e beqw 499ac <== NOT EXECUTED 49920: 6428 bccs 4994a <== NOT EXECUTED 49922: 7003 moveq #3,%d0 <== NOT EXECUTED 49924: b081 cmpl %d1,%d0 <== NOT EXECUTED 49926: 6740 beqs 49968 <== NOT EXECUTED 49928: 103c 0004 moveb #4,%d0 <== NOT EXECUTED 4992c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4992e: 66b8 bnes 498e8 <== NOT EXECUTED 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 ); 49930: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49936: 785b moveq #91,%d4 <== NOT EXECUTED 49938: 2040 moveal %d0,%a0 <== NOT EXECUTED 4993a: 72ff moveq #-1,%d1 <== NOT EXECUTED 4993c: 2084 movel %d4,%a0@ <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 4993e: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED 49944: 4e5e unlk %fp <== NOT EXECUTED 49946: 2001 movel %d1,%d0 <== NOT EXECUTED 49948: 4e75 rts <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 4994a: 4a81 tstl %d1 <== NOT EXECUTED 4994c: 669a bnes 498e8 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 4994e: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49954: 7a11 moveq #17,%d5 <== NOT EXECUTED 49956: 2040 moveal %d0,%a0 <== NOT EXECUTED 49958: 2085 movel %d5,%a0@ <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 4995a: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 49960: 72ff moveq #-1,%d1 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 49962: 4e5e unlk %fp <== NOT EXECUTED 49964: 2001 movel %d1,%d0 <== NOT EXECUTED 49966: 4e75 rts <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 49968: 2029 0048 movel %a1@(72),%d0 <== NOT EXECUTED 4996c: 7203 moveq #3,%d1 <== NOT EXECUTED 4996e: b280 cmpl %d0,%d1 <== NOT EXECUTED 49970: 6700 0108 beqw 49a7a <== NOT EXECUTED result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 49974: 7204 moveq #4,%d1 <== NOT EXECUTED 49976: b280 cmpl %d0,%d1 <== NOT EXECUTED 49978: 6700 0100 beqw 49a7a <== NOT EXECUTED if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 4997c: 4a89 tstl %a1 <== NOT EXECUTED 4997e: 6700 0114 beqw 49a94 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 49982: 7201 moveq #1,%d1 <== NOT EXECUTED 49984: b2a9 0048 cmpl %a1@(72),%d1 <== NOT EXECUTED 49988: 6600 010a bnew 49a94 <== NOT EXECUTED /* * 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 ) { 4998c: 2069 0058 moveal %a1@(88),%a0 <== NOT EXECUTED 49990: 4a88 tstl %a0 <== NOT EXECUTED 49992: 6600 0112 bnew 49aa6 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 49996: 2f04 movel %d4,%sp@- <== NOT EXECUTED 49998: 2046 moveal %d6,%a0 <== NOT EXECUTED 4999a: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4999c: 4e90 jsr %a0@ <== NOT EXECUTED /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 4999e: 508f addql #8,%sp <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 499a0: 2440 moveal %d0,%a2 <== NOT EXECUTED /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 499a2: 4a80 tstl %d0 <== NOT EXECUTED 499a4: 676e beqs 49a14 <== NOT EXECUTED done = true; else pathloc->node_access = node; 499a6: 268a movel %a2,%a3@ <== NOT EXECUTED 499a8: 6000 ff3e braw 498e8 <== NOT EXECUTED case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 499ac: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 499b2: b3e8 0014 cmpal %a0@(20),%a1 <== NOT EXECUTED 499b6: 6700 ff30 beqw 498e8 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 499ba: 206b 000c moveal %a3@(12),%a0 <== NOT EXECUTED 499be: b3e8 0018 cmpal %a0@(24),%a1 <== NOT EXECUTED 499c2: 6700 011e beqw 49ae2 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 499c6: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED 499ca: 4a8a tstl %a2 <== NOT EXECUTED 499cc: 66d8 bnes 499a6 <== NOT EXECUTED * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); 499ce: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 499d4: 7602 moveq #2,%d3 <== NOT EXECUTED 499d6: 2040 moveal %d0,%a0 <== NOT EXECUTED 499d8: 2083 movel %d3,%a0@ <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 499da: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); 499e0: 72ff moveq #-1,%d1 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 499e2: 4e5e unlk %fp <== NOT EXECUTED 499e4: 2001 movel %d1,%d0 <== NOT EXECUTED 499e6: 4e75 rts <== 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 ) 499e8: 7040 moveq #64,%d0 <== NOT EXECUTED 499ea: c0a9 002e andl %a1@(46),%d0 <== NOT EXECUTED 499ee: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 499f0: 2449 moveal %a1,%a2 <== 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 ) 499f2: 7040 moveq #64,%d0 <== NOT EXECUTED 499f4: b088 cmpl %a0,%d0 <== NOT EXECUTED 499f6: 6700 ff1e beqw 49916 <== NOT EXECUTED /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); 499fa: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49a00: 720d moveq #13,%d1 <== NOT EXECUTED 49a02: 2040 moveal %d0,%a0 <== NOT EXECUTED 49a04: 2081 movel %d1,%a0@ <== NOT EXECUTED 49a06: 72ff moveq #-1,%d1 <== NOT EXECUTED return result; } 49a08: 4cee 3cfc ffb0 moveml %fp@(-80),%d2-%d7/%a2-%a5 <== NOT EXECUTED 49a0e: 4e5e unlk %fp <== NOT EXECUTED 49a10: 2001 movel %d1,%d0 <== NOT EXECUTED 49a12: 4e75 rts <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 49a14: 2002 movel %d2,%d0 <== NOT EXECUTED 49a16: 90ae fffc subl %fp@(-4),%d0 <== NOT EXECUTED 49a1a: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 49a1e: d08c addl %a4,%d0 <== NOT EXECUTED 49a20: 2080 movel %d0,%a0@ <== NOT EXECUTED /* * 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++) { 49a22: 1034 2800 moveb %a4@(00000000,%d2:l),%d0 <== NOT EXECUTED 49a26: 6718 beqs 49a40 <== NOT EXECUTED 49a28: 41f4 2801 lea %a4@(00000001,%d2:l),%a0 <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 49a2c: 49c0 extbl %d0 <== NOT EXECUTED 49a2e: 722f moveq #47,%d1 <== NOT EXECUTED 49a30: b280 cmpl %d0,%d1 <== NOT EXECUTED 49a32: 6708 beqs 49a3c <== NOT EXECUTED 49a34: 123c 005c moveb #92,%d1 <== NOT EXECUTED 49a38: b280 cmpl %d0,%d1 <== NOT EXECUTED 49a3a: 6692 bnes 499ce <== NOT EXECUTED /* * 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++) { 49a3c: 1018 moveb %a0@+,%d0 <== NOT EXECUTED 49a3e: 66ec bnes 49a2c <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 49a40: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49a42: 4eb9 0004 93ec jsr 493ec <== NOT EXECUTED /* * The returned node must be a directory */ node = pathloc->node_access; 49a48: 2053 moveal %a3@,%a0 <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 49a4a: 2200 movel %d0,%d1 <== NOT EXECUTED /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) 49a4c: 588f addql #4,%sp <== NOT EXECUTED 49a4e: 7001 moveq #1,%d0 <== NOT EXECUTED 49a50: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 49a54: 663e bnes 49a94 <== 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 ) 49a56: 2028 002e movel %a0@(46),%d0 <== NOT EXECUTED 49a5a: 0280 0000 00c0 andil #192,%d0 <== NOT EXECUTED 49a60: 0c80 0000 00c0 cmpil #192,%d0 <== NOT EXECUTED 49a66: 6700 fed6 beqw 4993e <== NOT EXECUTED /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); 49a6a: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49a70: 720d moveq #13,%d1 <== NOT EXECUTED 49a72: 2040 moveal %d0,%a0 <== NOT EXECUTED 49a74: 2081 movel %d1,%a0@ <== NOT EXECUTED 49a76: 72ff moveq #-1,%d1 <== NOT EXECUTED 49a78: 608e bras 49a08 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 49a7a: 42a7 clrl %sp@- <== NOT EXECUTED 49a7c: 2047 moveal %d7,%a0 <== NOT EXECUTED 49a7e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49a80: 4e90 jsr %a0@ <== NOT EXECUTED 49a82: 2200 movel %d0,%d1 <== NOT EXECUTED if ( result == -1 ) 49a84: 508f addql #8,%sp <== NOT EXECUTED 49a86: 70ff moveq #-1,%d0 <== NOT EXECUTED 49a88: b081 cmpl %d1,%d0 <== NOT EXECUTED 49a8a: 6700 feb2 beqw 4993e <== NOT EXECUTED 49a8e: 2253 moveal %a3@,%a1 <== NOT EXECUTED 49a90: 6000 feea braw 4997c <== NOT EXECUTED /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 49a94: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49a9a: 7414 moveq #20,%d2 <== NOT EXECUTED 49a9c: 2040 moveal %d0,%a0 <== NOT EXECUTED 49a9e: 2082 movel %d2,%a0@ <== NOT EXECUTED 49aa0: 72ff moveq #-1,%d1 <== NOT EXECUTED 49aa2: 6000 fe9a braw 4993e <== NOT EXECUTED * 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; 49aa6: 2228 0018 movel %a0@(24),%d1 <== NOT EXECUTED 49aaa: 2268 0020 moveal %a0@(32),%a1 <== NOT EXECUTED 49aae: 2028 001c movel %a0@(28),%d0 <== NOT EXECUTED *pathloc = newloc; 49ab2: 2768 0024 000c movel %a0@(36),%a3@(12) <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 49ab8: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 49abc: 94ae fffc subl %fp@(-4),%d2 <== NOT EXECUTED 49ac0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49ac2: 4874 2800 pea %a4@(00000000,%d2:l) <== NOT EXECUTED 49ac6: 2069 0004 moveal %a1@(4),%a0 <== NOT EXECUTED * 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; 49aca: 2681 movel %d1,%a3@ <== NOT EXECUTED 49acc: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED 49ad0: 2749 0008 movel %a1,%a3@(8) <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 49ad4: 4e90 jsr %a0@ <== NOT EXECUTED 49ad6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49adc: 2200 movel %d0,%d1 <== NOT EXECUTED 49ade: 6000 fe5e braw 4993e <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 49ae2: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED 49ae6: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED 49aea: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED *pathloc = newloc; 49aee: 2768 0014 000c movel %a0@(20),%a3@(12) <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 49af4: 9483 subl %d3,%d2 <== NOT EXECUTED 49af6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 49afa: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49afc: 4874 2800 pea %a4@(00000000,%d2:l) <== NOT EXECUTED 49b00: 2069 0004 moveal %a1@(4),%a0 <== NOT EXECUTED * 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; 49b04: 2681 movel %d1,%a3@ <== NOT EXECUTED 49b06: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED 49b0a: 2749 0008 movel %a1,%a3@(8) <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 49b0e: 4e90 jsr %a0@ <== NOT EXECUTED 49b10: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49b16: 2200 movel %d0,%d1 <== NOT EXECUTED 49b18: 6000 fe24 braw 4993e <== NOT EXECUTED 00049488 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 49488: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4948c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4948e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 49492: 2052 moveal %a2@,%a0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 49494: 7003 moveq #3,%d0 <== NOT EXECUTED 49496: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 4949a: 6640 bnes 494dc <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 4949c: 24a8 004c movel %a0@(76),%a2@ <== NOT EXECUTED IMFS_Set_handlers( node ); 494a0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 494a2: 4eb9 0004 93ec jsr 493ec <== 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 ) 494a8: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 494ac: 2052 moveal %a2@,%a0 <== NOT EXECUTED 494ae: ed89 lsll #6,%d1 <== NOT EXECUTED 494b0: 2001 movel %d1,%d0 <== NOT EXECUTED 494b2: c0a8 002e andl %a0@(46),%d0 <== NOT EXECUTED 494b6: 588f addql #4,%sp <== NOT EXECUTED 494b8: b081 cmpl %d1,%d0 <== NOT EXECUTED 494ba: 6716 beqs 494d2 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 494bc: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED return result; } 494c2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 494c6: 2040 moveal %d0,%a0 <== NOT EXECUTED 494c8: 700d moveq #13,%d0 <== NOT EXECUTED 494ca: 2080 movel %d0,%a0@ <== NOT EXECUTED return result; } 494cc: 4e5e unlk %fp <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 494ce: 70ff moveq #-1,%d0 <== NOT EXECUTED return result; } 494d0: 4e75 rts <== NOT EXECUTED 494d2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 494d6: 4e5e unlk %fp <== 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 ) 494d8: 4280 clrl %d0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 494da: 4e75 rts <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 494dc: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 494e2: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 000497fa : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 497fa: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 497fe: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED 49802: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 49806: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 4980a: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 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 ); 49810: 4bf9 0004 94e8 lea 494e8 ,%a5 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); 49816: 49f9 0004 9488 lea 49488 ,%a4 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 4981c: 3028 0028 movew %a0@(40),%d0 <== NOT EXECUTED 49820: 5280 addql #1,%d0 <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 49822: 2453 moveal %a3@,%a2 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 49824: 3140 0028 movew %d0,%a0@(40) <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 49828: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 4982e: 7205 moveq #5,%d1 <== NOT EXECUTED 49830: b280 cmpl %d0,%d1 <== NOT EXECUTED 49832: 6564 bcss 49898 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 49834: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 49838: 7203 moveq #3,%d1 <== NOT EXECUTED 4983a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4983c: 6740 beqs 4987e <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 4983e: 7204 moveq #4,%d1 <== NOT EXECUTED 49840: b280 cmpl %d0,%d1 <== NOT EXECUTED 49842: 671a beqs 4985e <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 49844: 5780 subql #3,%d0 <== NOT EXECUTED 49846: 7201 moveq #1,%d1 <== NOT EXECUTED 49848: b280 cmpl %d0,%d1 <== NOT EXECUTED 4984a: 64d0 bccs 4981c <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 4984c: 4241 clrw %d1 <== NOT EXECUTED 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 ) ) ); 4984e: 4280 clrl %d0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 49850: 3141 0028 movew %d1,%a0@(40) <== NOT EXECUTED return result; } 49854: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4985a: 4e5e unlk %fp <== NOT EXECUTED 4985c: 4e75 rts <== NOT EXECUTED 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 ); 4985e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 49860: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49862: 4e95 jsr %a5@ <== NOT EXECUTED 49864: 508f addql #8,%sp <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 49866: 4a80 tstl %d0 <== NOT EXECUTED 49868: 6620 bnes 4988a <== NOT EXECUTED 4986a: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 4986e: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 49874: 5780 subql #3,%d0 <== NOT EXECUTED 49876: 7201 moveq #1,%d1 <== NOT EXECUTED 49878: b280 cmpl %d0,%d1 <== NOT EXECUTED 4987a: 64a0 bccs 4981c <== NOT EXECUTED 4987c: 60ce bras 4984c <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); 4987e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 49880: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49882: 4e94 jsr %a4@ <== NOT EXECUTED 49884: 508f addql #8,%sp <== NOT EXECUTED 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 ) ) ); 49886: 4a80 tstl %d0 <== NOT EXECUTED 49888: 67e0 beqs 4986a <== NOT EXECUTED 4988a: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 49890: 4241 clrw %d1 <== NOT EXECUTED 49892: 3141 0028 movew %d1,%a0@(40) <== NOT EXECUTED 49896: 60bc bras 49854 <== NOT EXECUTED * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; 49898: 4240 clrw %d0 <== NOT EXECUTED 4989a: 3140 0028 movew %d0,%a0@(40) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); 4989e: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 498a4: 2040 moveal %d0,%a0 <== NOT EXECUTED 498a6: 705c moveq #92,%d0 <== NOT EXECUTED */ rtems_filesystem_link_counts = 0; return result; } 498a8: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 498ae: 2080 movel %d0,%a0@ <== NOT EXECUTED */ rtems_filesystem_link_counts = 0; return result; } 498b0: 4e5e unlk %fp <== NOT EXECUTED */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 498b2: 70ff moveq #-1,%d0 <== NOT EXECUTED */ rtems_filesystem_link_counts = 0; return result; } 498b4: 4e75 rts 00049466 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 49466: 4e56 0000 linkw %fp,#0 <== 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 ) 4946a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 4946e: 202e 000c movel %fp@(12),%d0 <== 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 ) 49472: 2250 moveal %a0@,%a1 <== NOT EXECUTED 49474: ed88 lsll #6,%d0 <== NOT EXECUTED 49476: 2200 movel %d0,%d1 <== NOT EXECUTED 49478: c2a9 002e andl %a1@(46),%d1 <== NOT EXECUTED 4947c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4947e: 57c0 seq %d0 <== NOT EXECUTED 49480: 49c0 extbl %d0 <== NOT EXECUTED return 1; return 0; } 49482: 4e5e unlk %fp <== NOT EXECUTED 49484: 4480 negl %d0 <== NOT EXECUTED 49486: 4e75 rts 000494e8 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 494e8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 494ec: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 494f0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 494f4: 2052 moveal %a2@,%a0 <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 494f6: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 494fa: 7004 moveq #4,%d0 <== NOT EXECUTED 494fc: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 49500: 6600 008e bnew 49590 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 49504: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 49508: 6700 0092 beqw 4959c <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 4950c: 2480 movel %d0,%a2@ <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( 4950e: 2668 004c moveal %a0@(76),%a3 <== NOT EXECUTED 49512: 1213 moveb %a3@,%d1 <== NOT EXECUTED 49514: 1001 moveb %d1,%d0 <== NOT EXECUTED 49516: 49c0 extbl %d0 <== NOT EXECUTED 49518: 742f moveq #47,%d2 <== NOT EXECUTED 4951a: b480 cmpl %d0,%d2 <== NOT EXECUTED 4951c: 6756 beqs 49574 <== NOT EXECUTED 4951e: 143c 005c moveb #92,%d2 <== NOT EXECUTED 49522: b480 cmpl %d0,%d2 <== NOT EXECUTED 49524: 674e beqs 49574 <== NOT EXECUTED 49526: 4a01 tstb %d1 <== NOT EXECUTED 49528: 674a beqs 49574 <== NOT EXECUTED 4952a: 4280 clrl %d0 <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 4952c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4952e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 49530: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 49534: 4eb9 0004 95a8 jsr 495a8 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 4953a: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 4953c: 2400 movel %d0,%d2 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 4953e: 4eb9 0004 93ec jsr 493ec <== 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 ) 49544: 2052 moveal %a2@,%a0 <== NOT EXECUTED 49546: 2003 movel %d3,%d0 <== NOT EXECUTED 49548: ed88 lsll #6,%d0 <== NOT EXECUTED 4954a: 2200 movel %d0,%d1 <== NOT EXECUTED 4954c: c2a8 002e andl %a0@(46),%d1 <== NOT EXECUTED 49550: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 49556: b280 cmpl %d0,%d1 <== NOT EXECUTED 49558: 670e beqs 49568 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 4955a: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49560: 74ff moveq #-1,%d2 <== NOT EXECUTED 49562: 2040 moveal %d0,%a0 <== NOT EXECUTED 49564: 720d moveq #13,%d1 <== NOT EXECUTED 49566: 2081 movel %d1,%a0@ <== NOT EXECUTED return result; } 49568: 2002 movel %d2,%d0 <== NOT EXECUTED 4956a: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 49570: 4e5e unlk %fp <== NOT EXECUTED 49572: 4e75 rts <== NOT EXECUTED * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 49574: 2279 0005 70b4 moveal 570b4 ,%a1 <== NOT EXECUTED 4957a: 204a moveal %a2,%a0 <== NOT EXECUTED 4957c: 20e9 0014 movel %a1@(20),%a0@+ <== NOT EXECUTED 49580: 7001 moveq #1,%d0 <== NOT EXECUTED 49582: 20e9 0018 movel %a1@(24),%a0@+ <== NOT EXECUTED 49586: 20e9 001c movel %a1@(28),%a0@+ <== NOT EXECUTED 4958a: 20a9 0020 movel %a1@(32),%a0@ <== NOT EXECUTED 4958e: 609c bras 4952c <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 49590: 2f3c abcd 0000 movel #-1412628480,%sp@- <== NOT EXECUTED 49596: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 4959c: 2f3c bad0 0000 movel #-1160773632,%sp@- <== NOT EXECUTED 495a2: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 0004bf20 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4bf20: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 4bf24: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4bf28: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 4bf2c: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 4bf2e: 2450 moveal %a0@,%a2 <== NOT EXECUTED #endif /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) 4bf30: 2001 movel %d1,%d0 <== NOT EXECUTED 4bf32: 0280 ffff fe00 andil #-512,%d0 <== NOT EXECUTED 4bf38: 662e bnes 4bf68 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 4bf3a: 202a 002e movel %a2@(46),%d0 <== NOT EXECUTED 4bf3e: 0280 ffff fe00 andil #-512,%d0 <== NOT EXECUTED 4bf44: 8280 orl %d0,%d1 <== NOT EXECUTED 4bf46: 2541 002e movel %d1,%a2@(46) <== NOT EXECUTED IMFS_update_ctime( jnode ); 4bf4a: 42a7 clrl %sp@- <== NOT EXECUTED 4bf4c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4bf50: 4eb9 0004 a55c jsr 4a55c <== NOT EXECUTED 4bf56: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED return 0; } 4bf5c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; IMFS_update_ctime( jnode ); 4bf60: 508f addql #8,%sp <== NOT EXECUTED return 0; } 4bf62: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; IMFS_update_ctime( jnode ); 4bf64: 4280 clrl %d0 <== NOT EXECUTED return 0; } 4bf66: 4e75 rts <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4bf68: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED jnode->st_mode |= mode; IMFS_update_ctime( jnode ); return 0; } 4bf6e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4bf72: 2040 moveal %d0,%a0 <== NOT EXECUTED 4bf74: 7001 moveq #1,%d0 <== NOT EXECUTED 4bf76: 2080 movel %d0,%a0@ <== NOT EXECUTED jnode->st_mode |= mode; IMFS_update_ctime( jnode ); return 0; } 4bf78: 4e5e unlk %fp <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) rtems_set_errno_and_return_minus_one( EPERM ); 4bf7a: 70ff moveq #-1,%d0 <== NOT EXECUTED jnode->st_mode |= mode; IMFS_update_ctime( jnode ); return 0; } 4bf7c: 4e75 rts <== NOT EXECUTED ... 0006d014 : int IMFS_fcntl( int cmd, rtems_libio_t *iop ) { 6d014: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 6d018: 4e5e unlk %fp <== NOT EXECUTED 6d01a: 4280 clrl %d0 <== NOT EXECUTED 6d01c: 4e75 rts <== NOT EXECUTED ... 0006d020 : #include "imfs.h" int IMFS_fdatasync( rtems_libio_t *iop ) { 6d020: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 6d024: 4e5e unlk %fp <== NOT EXECUTED 6d026: 4280 clrl %d0 <== NOT EXECUTED 6d028: 4e75 rts <== NOT EXECUTED ... 00049b1c : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 49b1c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 49b20: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 49b24: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 49b28: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 49b2c: 4a8a tstl %a2 <== NOT EXECUTED 49b2e: 6776 beqs 49ba6 <== NOT EXECUTED if ( !name ) 49b30: 4a82 tstl %d2 <== NOT EXECUTED 49b32: 6764 beqs 49b98 <== NOT EXECUTED /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 49b34: 4879 0005 5dff pea 55dff <== NOT EXECUTED 49b3a: 47f9 0004 da58 lea 4da58 ,%a3 <== NOT EXECUTED 49b40: 2f02 movel %d2,%sp@- <== NOT EXECUTED 49b42: 4e93 jsr %a3@ <== NOT EXECUTED 49b44: 508f addql #8,%sp <== NOT EXECUTED 49b46: 4a80 tstl %d0 <== NOT EXECUTED 49b48: 660c bnes 49b56 <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 49b4a: 200a movel %a2,%d0 <== NOT EXECUTED 49b4c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 49b52: 4e5e unlk %fp <== NOT EXECUTED 49b54: 4e75 rts <== NOT EXECUTED */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 49b56: 4879 0005 5e01 pea 55e01 <== NOT EXECUTED 49b5c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 49b5e: 4e93 jsr %a3@ <== NOT EXECUTED 49b60: 508f addql #8,%sp <== NOT EXECUTED 49b62: 4a80 tstl %d0 <== NOT EXECUTED 49b64: 6610 bnes 49b76 <== NOT EXECUTED return directory->Parent; 49b66: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 49b6a: 200a movel %a2,%d0 <== NOT EXECUTED 49b6c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 49b72: 4e5e unlk %fp <== NOT EXECUTED 49b74: 4e75 rts <== NOT EXECUTED if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 49b76: 286a 004c moveal %a2@(76),%a4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49b7a: d5fc 0000 0050 addal #80,%a2 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ); 49b80: b5cc cmpal %a4,%a2 <== NOT EXECUTED 49b82: 6714 beqs 49b98 <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) 49b84: 486c 000c pea %a4@(12) <== NOT EXECUTED 49b88: 2f02 movel %d2,%sp@- <== NOT EXECUTED 49b8a: 4e93 jsr %a3@ <== NOT EXECUTED 49b8c: 508f addql #8,%sp <== NOT EXECUTED 49b8e: 4a80 tstl %d0 <== NOT EXECUTED 49b90: 6730 beqs 49bc2 <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 49b92: 2854 moveal %a4@,%a4 <== NOT EXECUTED return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); 49b94: b5cc cmpal %a4,%a2 <== NOT EXECUTED 49b96: 66ec bnes 49b84 <== NOT EXECUTED 49b98: 95ca subal %a2,%a2 <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 49b9a: 200a movel %a2,%d0 <== NOT EXECUTED 49b9c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 49ba2: 4e5e unlk %fp <== NOT EXECUTED 49ba4: 4e75 rts <== NOT EXECUTED /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 49ba6: 4879 0005 6447 pea 56447 <== NOT EXECUTED 49bac: 4879 0005 5e04 pea 55e04 <__func__.5105> <== NOT EXECUTED 49bb2: 4878 002a pea 2a <== NOT EXECUTED 49bb6: 4879 0005 5db0 pea 55db0 <== NOT EXECUTED 49bbc: 4eb9 0004 a094 jsr 4a094 <__assert_func> <== NOT EXECUTED !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 ) ) 49bc2: 244c moveal %a4,%a2 <== NOT EXECUTED return the_jnode; } return 0; } 49bc4: 200a movel %a2,%d0 <== NOT EXECUTED 49bc6: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 49bcc: 4e5e unlk %fp <== NOT EXECUTED 49bce: 4e75 rts 0005f500 : */ int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 5f500: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 5f504: 4e5e unlk %fp <== NOT EXECUTED 5f506: 4280 clrl %d0 <== NOT EXECUTED 5f508: 4e75 rts <== NOT EXECUTED ... 0005f50c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 5f50c: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED 5f510: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 5f514: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED * 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; 5f518: 47ee fff0 lea %fp@(-16),%a3 <== NOT EXECUTED 5f51c: 26a8 0018 movel %a0@(24),%a3@ <== NOT EXECUTED /* * 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; 5f520: 2468 0018 moveal %a0@(24),%a2 <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 5f524: 42a8 0018 clrl %a0@(24) <== NOT EXECUTED 5f528: 49f9 0005 edd0 lea 5edd0 ,%a4 <== NOT EXECUTED * 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; 5f52e: 2d68 001c fff4 movel %a0@(28),%fp@(-12) <== NOT EXECUTED next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( &loc ); 5f534: 4bf9 0004 5990 lea 45990 ,%a5 <== NOT EXECUTED * 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; 5f53a: 2d68 0020 fff8 movel %a0@(32),%fp@(-8) <== NOT EXECUTED 5f540: 2d68 0024 fffc movel %a0@(36),%fp@(-4) <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 5f546: 242a 0008 movel %a2@(8),%d2 <== NOT EXECUTED loc.node_access = (void *)jnode; 5f54a: 2d4a fff0 movel %a2,%fp@(-16) <== NOT EXECUTED IMFS_Set_handlers( &loc ); 5f54e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5f550: 4e94 jsr %a4@ <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 5f552: 200a movel %a2,%d0 <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { 5f554: 588f addql #4,%sp <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 5f556: 0680 0000 0050 addil #80,%d0 <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { 5f55c: 7201 moveq #1,%d1 <== NOT EXECUTED 5f55e: b2aa 0048 cmpl %a2@(72),%d1 <== NOT EXECUTED 5f562: 6634 bnes 5f598 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 5f564: b0aa 004c cmpl %a2@(76),%d0 <== NOT EXECUTED 5f568: 672e beqs 5f598 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 5f56a: 4a8a tstl %a2 <== NOT EXECUTED 5f56c: 671e beqs 5f58c <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 5f56e: 7001 moveq #1,%d0 <== NOT EXECUTED 5f570: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 5f574: 66d0 bnes 5f546 <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 5f576: 200a movel %a2,%d0 <== NOT EXECUTED 5f578: 0680 0000 0050 addil #80,%d0 <== NOT EXECUTED 5f57e: b0aa 004c cmpl %a2@(76),%d0 <== NOT EXECUTED 5f582: 67c2 beqs 5f546 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); 5f584: 246a 004c moveal %a2@(76),%a2 <== NOT EXECUTED } } } while (jnode != NULL); 5f588: 4a8a tstl %a2 <== NOT EXECUTED 5f58a: 66ba bnes 5f546 <== NOT EXECUTED return 0; } 5f58c: 4cee 3c04 ffdc moveml %fp@(-36),%d2/%a2-%a5 <== NOT EXECUTED 5f592: 4e5e unlk %fp <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 5f594: 4280 clrl %d0 <== NOT EXECUTED return 0; } 5f596: 4e75 rts <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( &loc ); 5f598: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5f59a: 4e95 jsr %a5@ <== NOT EXECUTED if (result != 0) 5f59c: 588f addql #4,%sp <== NOT EXECUTED 5f59e: 4a80 tstl %d0 <== NOT EXECUTED 5f5a0: 6604 bnes 5f5a6 <== NOT EXECUTED 5f5a2: 2442 moveal %d2,%a2 <== NOT EXECUTED 5f5a4: 60c4 bras 5f56a <== NOT EXECUTED } } } while (jnode != NULL); return 0; } 5f5a6: 4cee 3c04 ffdc moveml %fp@(-36),%d2/%a2-%a5 <== NOT EXECUTED 5f5ac: 4e5e unlk %fp <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 5f5ae: 70ff moveq #-1,%d0 <== NOT EXECUTED return 0; } 5f5b0: 4e75 rts <== NOT EXECUTED ... 00049bd0 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 49bd0: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 49bd4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49bd8: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 49bdc: 1010 moveb %a0@,%d0 <== NOT EXECUTED IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 49bde: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 49be2: 1200 moveb %d0,%d1 <== NOT EXECUTED 49be4: 49c1 extbl %d1 <== NOT EXECUTED 49be6: 742f moveq #47,%d2 <== NOT EXECUTED 49be8: b481 cmpl %d1,%d2 <== NOT EXECUTED 49bea: 6700 00bc beqw 49ca8 <== NOT EXECUTED 49bee: 765c moveq #92,%d3 <== NOT EXECUTED 49bf0: b681 cmpl %d1,%d3 <== NOT EXECUTED 49bf2: 6700 00b4 beqw 49ca8 <== NOT EXECUTED 49bf6: 4a00 tstb %d0 <== NOT EXECUTED 49bf8: 6700 00d0 beqw 49cca <== NOT EXECUTED token[i] = c; 49bfc: 1480 moveb %d0,%a2@ <== NOT EXECUTED 49bfe: 4280 clrl %d0 <== NOT EXECUTED return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 49c00: 5280 addql #1,%d0 <== NOT EXECUTED 49c02: 1430 0800 moveb %a0@(00000000,%d0:l),%d2 <== NOT EXECUTED /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 49c06: 1202 moveb %d2,%d1 <== NOT EXECUTED 49c08: 49c1 extbl %d1 <== NOT EXECUTED 49c0a: 762f moveq #47,%d3 <== NOT EXECUTED 49c0c: b681 cmpl %d1,%d3 <== NOT EXECUTED 49c0e: 6728 beqs 49c38 <== NOT EXECUTED 49c10: 163c 005c moveb #92,%d3 <== NOT EXECUTED 49c14: b681 cmpl %d1,%d3 <== NOT EXECUTED 49c16: 6720 beqs 49c38 <== NOT EXECUTED 49c18: 4a02 tstb %d2 <== NOT EXECUTED 49c1a: 671c beqs 49c38 <== NOT EXECUTED 49c1c: 7220 moveq #32,%d1 <== NOT EXECUTED 49c1e: b280 cmpl %d0,%d1 <== NOT EXECUTED 49c20: 6d16 blts 49c38 <== NOT EXECUTED token[i] = c; 49c22: 1582 0800 moveb %d2,%a2@(00000000,%d0:l) <== NOT EXECUTED if ( i == IMFS_NAME_MAX ) 49c26: 7220 moveq #32,%d1 <== NOT EXECUTED 49c28: b280 cmpl %d0,%d1 <== NOT EXECUTED 49c2a: 66d4 bnes 49c00 <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 49c2c: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 49c32: 4e5e unlk %fp <== NOT EXECUTED c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 49c34: 7004 moveq #4,%d0 <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 49c36: 4e75 rts <== NOT EXECUTED i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 49c38: 4a32 08ff tstb %a2@(ffffffff,%d0:l) <== NOT EXECUTED 49c3c: 662a bnes 49c68 <== NOT EXECUTED * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 49c3e: 4879 0005 5bb4 pea 55bb4 <== NOT EXECUTED /* * Set token_len to the number of characters copied. */ *token_len = i; 49c44: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 49c48: 2080 movel %d0,%a0@ <== NOT EXECUTED * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 49c4a: 47f9 0004 da58 lea 4da58 ,%a3 <== NOT EXECUTED 49c50: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49c52: 4e93 jsr %a3@ <== NOT EXECUTED 49c54: 508f addql #8,%sp <== NOT EXECUTED 49c56: 4a80 tstl %d0 <== NOT EXECUTED 49c58: 6630 bnes 49c8a <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 49c5a: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 49c60: 4e5e unlk %fp <== NOT EXECUTED * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 49c62: 103c 0002 moveb #2,%d0 <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 49c66: 4e75 rts <== NOT EXECUTED type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 49c68: 4202 clrb %d2 <== NOT EXECUTED 49c6a: 1582 0800 moveb %d2,%a2@(00000000,%d0:l) <== NOT EXECUTED * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 49c6e: 4879 0005 5bb4 pea 55bb4 <== NOT EXECUTED /* * Set token_len to the number of characters copied. */ *token_len = i; 49c74: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 49c78: 2080 movel %d0,%a0@ <== NOT EXECUTED * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 49c7a: 47f9 0004 da58 lea 4da58 ,%a3 <== NOT EXECUTED 49c80: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49c82: 4e93 jsr %a3@ <== NOT EXECUTED 49c84: 508f addql #8,%sp <== NOT EXECUTED 49c86: 4a80 tstl %d0 <== NOT EXECUTED 49c88: 67d0 beqs 49c5a <== NOT EXECUTED type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 49c8a: 4879 0005 5bb5 pea 55bb5 <== NOT EXECUTED 49c90: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49c92: 4e93 jsr %a3@ <== NOT EXECUTED 49c94: 508f addql #8,%sp <== NOT EXECUTED 49c96: 4a80 tstl %d0 <== NOT EXECUTED 49c98: 6624 bnes 49cbe <== NOT EXECUTED type = IMFS_CURRENT_DIR; } return type; } 49c9a: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 49ca0: 4e5e unlk %fp <== NOT EXECUTED */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 49ca2: 103c 0001 moveb #1,%d0 <== NOT EXECUTED type = IMFS_CURRENT_DIR; } return type; } 49ca6: 4e75 rts <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 49ca8: 1480 moveb %d0,%a2@ <== NOT EXECUTED /* * Set token_len to the number of characters copied. */ *token_len = i; 49caa: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 49cae: 7201 moveq #1,%d1 <== NOT EXECUTED 49cb0: 7001 moveq #1,%d0 <== NOT EXECUTED /* * Set token_len to the number of characters copied. */ *token_len = i; 49cb2: 2081 movel %d1,%a0@ <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 49cb4: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 49cba: 4e5e unlk %fp <== NOT EXECUTED 49cbc: 4e75 rts <== NOT EXECUTED 49cbe: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 49cc4: 4e5e unlk %fp <== NOT EXECUTED */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 49cc6: 7003 moveq #3,%d0 <== NOT EXECUTED type = IMFS_CURRENT_DIR; } return type; } 49cc8: 4e75 rts <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 49cca: 4212 clrb %a2@ <== NOT EXECUTED /* * Set token_len to the number of characters copied. */ *token_len = i; 49ccc: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 49cd0: 4281 clrl %d1 <== NOT EXECUTED /* * Set token_len to the number of characters copied. */ *token_len = i; 49cd2: 2081 movel %d1,%a0@ <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 49cd4: 4280 clrl %d0 <== NOT EXECUTED 49cd6: 60dc bras 49cb4 <== NOT EXECUTED 00045560 : */ int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 45560: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return IMFS_initialize_support( 45564: 4879 0008 1c5c pea 81c5c <== NOT EXECUTED 4556a: 4879 0008 1ccc pea 81ccc <== NOT EXECUTED 45570: 4879 0007 fc30 pea 7fc30 <== NOT EXECUTED 45576: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4557a: 4eb9 0004 5584 jsr 45584 <== NOT EXECUTED temp_mt_entry, &IMFS_ops, &IMFS_memfile_handlers, &IMFS_directory_handlers ); } 45580: 4e5e unlk %fp <== NOT EXECUTED 45582: 4e75 rts 00049cd8 : 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 ) { 49cd8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 49cdc: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 49ce0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 49ce4: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 49ce8: 2079 0005 6b9c moveal 56b9c ,%a0 <== NOT EXECUTED * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { 49cee: 7010 moveq #16,%d0 <== NOT EXECUTED 49cf0: b088 cmpl %a0,%d0 <== NOT EXECUTED 49cf2: 6716 beqs 49d0a <== NOT EXECUTED 49cf4: 7220 moveq #32,%d1 <== NOT EXECUTED 49cf6: 4200 clrb %d0 <== NOT EXECUTED /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 49cf8: 5280 addql #1,%d0 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { 49cfa: b288 cmpl %a0,%d1 <== NOT EXECUTED 49cfc: 670c beqs 49d0a <== NOT EXECUTED /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 49cfe: d281 addl %d1,%d1 <== NOT EXECUTED int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 49d00: 7605 moveq #5,%d3 <== NOT EXECUTED 49d02: b680 cmpl %d0,%d3 <== NOT EXECUTED 49d04: 66f2 bnes 49cf8 <== NOT EXECUTED 49d06: 307c 0080 moveaw #128,%a0 <== NOT EXECUTED * 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_node( 49d0a: 42a7 clrl %sp@- <== NOT EXECUTED 49d0c: 4878 41ed pea 41ed <== NOT EXECUTED 49d10: 4879 0005 5bd8 pea 55bd8 <== NOT EXECUTED 49d16: 4878 0001 pea 1 <== NOT EXECUTED bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 49d1a: 23c8 0005 7f08 movel %a0,57f08 <== NOT EXECUTED * 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_node( 49d20: 42a7 clrl %sp@- <== NOT EXECUTED 49d22: 4eb9 0004 bdd4 jsr 4bdd4 <== NOT EXECUTED temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 49d28: 4878 000c pea c <== NOT EXECUTED NULL ); 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; 49d2c: 41f9 0005 6088 lea 56088 ,%a0 <== NOT EXECUTED 49d32: 2550 0030 movel %a0@,%a2@(48) <== NOT EXECUTED 49d36: 41f9 0005 608c lea 5608c ,%a0 <== NOT EXECUTED 49d3c: 2550 0034 movel %a0@,%a2@(52) <== NOT EXECUTED 49d40: 41f9 0005 6090 lea 56090 ,%a0 <== NOT EXECUTED 49d46: 2550 0038 movel %a0@,%a2@(56) <== NOT EXECUTED 49d4a: 41f9 0005 6094 lea 56094 ,%a0 <== NOT EXECUTED 49d50: 2550 003c movel %a0@,%a2@(60) <== NOT EXECUTED 49d54: 41f9 0005 6098 lea 56098 ,%a0 <== NOT EXECUTED /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 49d5a: 4878 0001 pea 1 <== NOT EXECUTED NULL ); 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; 49d5e: 2550 0040 movel %a0@,%a2@(64) <== NOT EXECUTED 49d62: 41f9 0005 609c lea 5609c ,%a0 <== NOT EXECUTED 49d68: 2550 0044 movel %a0@,%a2@(68) <== NOT EXECUTED 49d6c: 41f9 0005 60a0 lea 560a0 ,%a0 <== NOT EXECUTED 49d72: 2550 0048 movel %a0@,%a2@(72) <== NOT EXECUTED 49d76: 41f9 0005 60a4 lea 560a4 ,%a0 <== NOT EXECUTED 49d7c: 2550 004c movel %a0@,%a2@(76) <== NOT EXECUTED 49d80: 41f9 0005 60a8 lea 560a8 ,%a0 <== NOT EXECUTED 49d86: 2550 0050 movel %a0@,%a2@(80) <== NOT EXECUTED 49d8a: 41f9 0005 60ac lea 560ac ,%a0 <== NOT EXECUTED 49d90: 2550 0054 movel %a0@,%a2@(84) <== NOT EXECUTED 49d94: 41f9 0005 60b0 lea 560b0 ,%a0 <== NOT EXECUTED 49d9a: 2550 0058 movel %a0@,%a2@(88) <== NOT EXECUTED 49d9e: 41f9 0005 60b4 lea 560b4 ,%a0 <== NOT EXECUTED * 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_node( 49da4: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED NULL ); 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; 49da8: 2550 005c movel %a0@,%a2@(92) <== NOT EXECUTED ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; 49dac: 256e 000c 0020 movel %fp@(12),%a2@(32) <== NOT EXECUTED "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 49db2: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 49db6: 4eb9 0004 a2d4 jsr 4a2d4 <== NOT EXECUTED if ( !fs_info ){ 49dbc: dffc 0000 001c addal #28,%sp <== NOT EXECUTED temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 49dc2: 2240 moveal %d0,%a1 <== NOT EXECUTED if ( !fs_info ){ 49dc4: 4a80 tstl %d0 <== NOT EXECUTED 49dc6: 6728 beqs 49df0 <== NOT EXECUTED 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; 49dc8: 206a 0018 moveal %a2@(24),%a0 <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 49dcc: 7001 moveq #1,%d0 <== NOT EXECUTED 49dce: 2280 movel %d0,%a1@ <== NOT EXECUTED 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; 49dd0: 7001 moveq #1,%d0 <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 49dd2: 236e 0010 0004 movel %fp@(16),%a1@(4) <== NOT EXECUTED fs_info->directory_handlers = directory_handlers; 49dd8: 2342 0008 movel %d2,%a1@(8) <== NOT EXECUTED 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; 49ddc: 2549 002c movel %a1,%a2@(44) <== NOT EXECUTED jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; return 0; } 49de0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 49de6: 4e5e unlk %fp <== NOT EXECUTED 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; 49de8: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED 49dec: 4200 clrb %d0 <== NOT EXECUTED return 0; } 49dee: 4e75 rts <== NOT EXECUTED /* * 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); 49df0: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 49df4: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 49dfa: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49e00: 588f addql #4,%sp <== NOT EXECUTED jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; return 0; } 49e02: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED * 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); rtems_set_errno_and_return_minus_one(ENOMEM); 49e08: 2040 moveal %d0,%a0 <== NOT EXECUTED 49e0a: 720c moveq #12,%d1 <== NOT EXECUTED jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; return 0; } 49e0c: 4e5e unlk %fp <== NOT EXECUTED * 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); rtems_set_errno_and_return_minus_one(ENOMEM); 49e0e: 70ff moveq #-1,%d0 <== NOT EXECUTED 49e10: 2081 movel %d1,%a0@ <== NOT EXECUTED jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; return 0; } 49e12: 4e75 rts 000456c0 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 456c0: 4e56 ffc0 linkw %fp,#-64 <== NOT EXECUTED 456c4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 456c8: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 456ca: 2250 moveal %a0@,%a1 <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 456cc: 4280 clrl %d0 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 456ce: 2d49 ffe4 movel %a1,%fp@(-28) <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 456d2: 3029 0032 movew %a1@(50),%d0 <== NOT EXECUTED 456d6: 7207 moveq #7,%d1 <== NOT EXECUTED 456d8: b280 cmpl %d0,%d1 <== NOT EXECUTED 456da: 656c bcss 45748 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 456dc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 456e0: 240e movel %fp,%d2 <== NOT EXECUTED 456e2: 0682 ffff ffc3 addil #-61,%d2 <== NOT EXECUTED 456e8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 456ea: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 456ee: 4eb9 0004 5458 jsr 45458 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 456f4: 486e ffe4 pea %fp@(-28) <== NOT EXECUTED 456f8: 2f3c 0000 a1ff movel #41471,%sp@- <== NOT EXECUTED 456fe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45700: 4878 0003 pea 3 <== NOT EXECUTED 45704: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 45708: 4eb9 0005 ec84 jsr 5ec84 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 4570e: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 45714: 4a80 tstl %d0 <== NOT EXECUTED 45716: 6746 beqs 4575e <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 45718: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 4571c: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED 45720: 5280 addql #1,%d0 <== NOT EXECUTED 45722: 3140 0032 movew %d0,%a0@(50) <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 45726: 42a7 clrl %sp@- <== NOT EXECUTED 45728: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 4572c: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 45732: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED return 0; } 45736: 242e ffbc movel %fp@(-68),%d2 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); 4573a: 216e fff4 0044 movel %fp@(-12),%a0@(68) <== NOT EXECUTED 45740: 508f addql #8,%sp <== NOT EXECUTED return 0; } 45742: 4e5e unlk %fp <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); 45744: 4280 clrl %d0 <== NOT EXECUTED return 0; } 45746: 4e75 rts <== NOT EXECUTED * 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 ); 45748: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 4574e: 242e ffbc movel %fp@(-68),%d2 <== NOT EXECUTED * 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 ); 45752: 2040 moveal %d0,%a0 <== NOT EXECUTED 45754: 721f moveq #31,%d1 <== NOT EXECUTED info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 45756: 4e5e unlk %fp <== NOT EXECUTED * 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 ); 45758: 70ff moveq #-1,%d0 <== NOT EXECUTED 4575a: 2081 movel %d1,%a0@ <== NOT EXECUTED info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 4575c: 4e75 rts <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 4575e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 45764: 242e ffbc movel %fp@(-68),%d2 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 45768: 2040 moveal %d0,%a0 <== NOT EXECUTED 4576a: 700c moveq #12,%d0 <== NOT EXECUTED 4576c: 2080 movel %d0,%a0@ <== NOT EXECUTED info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 4576e: 4e5e unlk %fp <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 45770: 70ff moveq #-1,%d0 <== NOT EXECUTED info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); return 0; } 45772: 4e75 rts 000667c6 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 667c6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 667ca: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 667ce: 2f0a movel %a2,%sp@- <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 667d0: 4a88 tstl %a0 <== NOT EXECUTED 667d2: 674e beqs 66822 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 667d4: 7005 moveq #5,%d0 <== NOT EXECUTED 667d6: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 667da: 6662 bnes 6683e <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); 667dc: 4878 0001 pea 1 <== NOT EXECUTED 667e0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 667e4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 667e6: 4eb9 0006 632c jsr 6632c <== NOT EXECUTED if ( *block_entry_ptr ) 667ec: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 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 ); 667f2: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( *block_entry_ptr ) 667f4: 4a92 tstl %a2@ <== NOT EXECUTED 667f6: 670a beqs 66802 <== NOT EXECUTED if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } 667f8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 667fc: 4e5e unlk %fp <== NOT EXECUTED 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 ); if ( *block_entry_ptr ) 667fe: 4280 clrl %d0 <== NOT EXECUTED if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } 66800: 4e75 rts <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 66802: 4eb9 0006 6308 jsr 66308 <== NOT EXECUTED 66808: 2200 movel %d0,%d1 <== NOT EXECUTED if ( !memory ) 6680a: 670c beqs 66818 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 6680c: 2481 movel %d1,%a2@ <== NOT EXECUTED return 0; } 6680e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 66812: 4e5e unlk %fp <== NOT EXECUTED #endif memory = memfile_alloc_block(); if ( !memory ) return 1; *block_entry_ptr = memory; 66814: 4280 clrl %d0 <== NOT EXECUTED return 0; } 66816: 4e75 rts <== NOT EXECUTED 66818: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 6681c: 4e5e unlk %fp <== NOT EXECUTED fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 6681e: 7001 moveq #1,%d0 <== NOT EXECUTED return 1; *block_entry_ptr = memory; return 0; } 66820: 4e75 rts <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 66822: 4879 0008 2009 pea 82009 <== NOT EXECUTED 66828: 4879 0008 215b pea 8215b <__func__.5656> <== NOT EXECUTED 6682e: 4878 0169 pea 169 <== NOT EXECUTED 66832: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66838: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 6683e: 4879 0008 205c pea 8205c <== NOT EXECUTED 66844: 4879 0008 215b pea 8215b <__func__.5656> <== NOT EXECUTED 6684a: 4878 016d pea 16d <== NOT EXECUTED 6684e: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66854: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED 0006685a : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 6685a: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 6685e: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED 66862: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 66866: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 6686a: 4a8b tstl %a3 <== NOT EXECUTED 6686c: 6700 00c4 beqw 66932 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 66870: 7005 moveq #5,%d0 <== NOT EXECUTED 66872: b0ab 0048 cmpl %a3@(72),%d0 <== NOT EXECUTED 66876: 6600 00d6 bnew 6694e <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 6687a: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED 66880: 2202 movel %d2,%d1 <== NOT EXECUTED 66882: e489 lsrl #2,%d1 <== NOT EXECUTED 66884: 2001 movel %d1,%d0 <== NOT EXECUTED 66886: 5280 addql #1,%d0 <== NOT EXECUTED 66888: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 6688c: 5280 addql #1,%d0 <== NOT EXECUTED 6688e: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 66892: 5380 subql #1,%d0 <== NOT EXECUTED 66894: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED 66898: b085 cmpl %d5,%d0 <== NOT EXECUTED 6689a: 637e blss 6691a <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 6689c: 202b 004c movel %a3@(76),%d0 <== NOT EXECUTED 668a0: b085 cmpl %d5,%d0 <== NOT EXECUTED 668a2: 6c3a bges 668de <== NOT EXECUTED /* * 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; 668a4: 2800 movel %d0,%d4 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 668a6: 2605 movel %d5,%d3 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 668a8: 4c42 4804 remsl %d2,%d4,%d4 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 668ac: 4c42 3803 remsl %d2,%d3,%d3 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 668b0: b883 cmpl %d3,%d4 <== NOT EXECUTED 668b2: 621a bhis 668ce <== NOT EXECUTED 668b4: 2404 movel %d4,%d2 <== NOT EXECUTED 668b6: 45f9 0006 67c6 lea 667c6 ,%a2 <== NOT EXECUTED if ( IMFS_memfile_addblock( the_jnode, block ) ) { 668bc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 668be: 2f0b movel %a3,%sp@- <== NOT EXECUTED 668c0: 4e92 jsr %a2@ <== NOT EXECUTED 668c2: 508f addql #8,%sp <== NOT EXECUTED 668c4: 4a80 tstl %d0 <== NOT EXECUTED 668c6: 6622 bnes 668ea <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 668c8: 5282 addql #1,%d2 <== NOT EXECUTED 668ca: b483 cmpl %d3,%d2 <== NOT EXECUTED 668cc: 63ee blss 668bc <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 668ce: 2745 004c movel %d5,%a3@(76) <== NOT EXECUTED return 0; } 668d2: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 668d8: 4e5e unlk %fp <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 668da: 4280 clrl %d0 <== NOT EXECUTED return 0; } 668dc: 4e75 rts <== NOT EXECUTED 668de: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 668e4: 4e5e unlk %fp <== 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 ) 668e6: 4280 clrl %d0 <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 668e8: 4e75 rts <== 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-- ) { 668ea: b484 cmpl %d4,%d2 <== NOT EXECUTED 668ec: 6514 bcss 66902 <== NOT EXECUTED 668ee: 45f9 0006 64f8 lea 664f8 ,%a2 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 668f4: 2f02 movel %d2,%sp@- <== 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-- ) { 668f6: 5382 subql #1,%d2 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 668f8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 668fa: 4e92 jsr %a2@ <== 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-- ) { 668fc: 508f addql #8,%sp <== NOT EXECUTED 668fe: b484 cmpl %d4,%d2 <== NOT EXECUTED 66900: 64f2 bccs 668f4 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 66902: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 66908: 2040 moveal %d0,%a0 <== NOT EXECUTED 6690a: 701c moveq #28,%d0 <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 6690c: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 66912: 2080 movel %d0,%a0@ <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 66914: 4e5e unlk %fp <== NOT EXECUTED for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 66916: 70ff moveq #-1,%d0 <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 66918: 4e75 rts <== 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 ) rtems_set_errno_and_return_minus_one( EINVAL ); 6691a: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 66920: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== 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 ) rtems_set_errno_and_return_minus_one( EINVAL ); 66926: 2040 moveal %d0,%a0 <== NOT EXECUTED 66928: 7216 moveq #22,%d1 <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 6692a: 4e5e unlk %fp <== 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 ) rtems_set_errno_and_return_minus_one( EINVAL ); 6692c: 70ff moveq #-1,%d0 <== NOT EXECUTED 6692e: 2081 movel %d1,%a0@ <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 66930: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66932: 4879 0008 2009 pea 82009 <== NOT EXECUTED 66938: 4879 0008 2171 pea 82171 <__func__.5623> <== NOT EXECUTED 6693e: 4878 0131 pea 131 <== NOT EXECUTED 66942: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66948: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 6694e: 4879 0008 205c pea 8205c <== NOT EXECUTED 66954: 4879 0008 2171 pea 82171 <__func__.5623> <== NOT EXECUTED 6695a: 4878 0135 pea 135 <== NOT EXECUTED 6695e: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66964: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED 0006632c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 6632c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 66330: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 66334: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 66338: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 6633c: 4a8a tstl %a2 <== NOT EXECUTED 6633e: 6700 0154 beqw 66494 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 66342: 7005 moveq #5,%d0 <== NOT EXECUTED 66344: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 66348: 6600 0166 bnew 664b0 <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 6634c: 2239 0008 6848 movel 86848 ,%d1 <== NOT EXECUTED 66352: e489 lsrl #2,%d1 <== NOT EXECUTED 66354: 2001 movel %d1,%d0 <== NOT EXECUTED 66356: 5380 subql #1,%d0 <== NOT EXECUTED 66358: b082 cmpl %d2,%d0 <== NOT EXECUTED 6635a: 6448 bccs 663a4 <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 6635c: 2601 movel %d1,%d3 <== NOT EXECUTED 6635e: 5283 addql #1,%d3 <== NOT EXECUTED 66360: 4c01 3800 mulsl %d1,%d3 <== NOT EXECUTED 66364: 2003 movel %d3,%d0 <== NOT EXECUTED 66366: 5380 subql #1,%d0 <== NOT EXECUTED 66368: b082 cmpl %d2,%d0 <== NOT EXECUTED 6636a: 6500 008e bcsw 663fa <== NOT EXECUTED my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 6636e: 206a 0054 moveal %a2@(84),%a0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 66372: 9481 subl %d1,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 66374: 4c41 2003 remul %d1,%d3,%d2 <== NOT EXECUTED 66378: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { 6637c: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 66380: 6700 00f6 beqw 66478 <== NOT EXECUTED if ( !p ) { 66384: 4a88 tstl %a0 <== NOT EXECUTED 66386: 6754 beqs 663dc <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 66388: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 6638c: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 6638e: 4a88 tstl %a0 <== NOT EXECUTED 66390: 6700 00d0 beqw 66462 <== NOT EXECUTED p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 66394: 41f0 3c00 lea %a0@(00000000,%d3:l:4),%a0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 66398: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 6639e: 4e5e unlk %fp <== NOT EXECUTED 663a0: 2008 movel %a0,%d0 <== NOT EXECUTED 663a2: 4e75 rts <== NOT EXECUTED if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 663a4: 206a 0050 moveal %a2@(80),%a0 <== NOT EXECUTED if ( malloc_it ) { 663a8: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 663ac: 6700 011e beqw 664cc <== NOT EXECUTED if ( !p ) { 663b0: 4a88 tstl %a0 <== NOT EXECUTED 663b2: 6710 beqs 663c4 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 663b4: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 663b8: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 663be: 4e5e unlk %fp <== NOT EXECUTED 663c0: 2008 movel %a0,%d0 <== NOT EXECUTED 663c2: 4e75 rts <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 663c4: 4eb9 0006 6308 jsr 66308 <== NOT EXECUTED 663ca: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p ) 663cc: 4a80 tstl %d0 <== NOT EXECUTED 663ce: 6700 00b6 beqw 66486 <== NOT EXECUTED return 0; info->indirect = p; 663d2: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 663d6: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED 663da: 60dc bras 663b8 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 663dc: 4eb9 0006 6308 jsr 66308 <== NOT EXECUTED 663e2: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p ) 663e4: 4a80 tstl %d0 <== NOT EXECUTED 663e6: 6700 009e beqw 66486 <== NOT EXECUTED return 0; info->doubly_indirect = p; 663ea: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 663ee: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 663f2: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 663f4: 4a88 tstl %a0 <== NOT EXECUTED 663f6: 669c bnes 66394 <== NOT EXECUTED 663f8: 6068 bras 66462 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 663fa: 2003 movel %d3,%d0 <== NOT EXECUTED 663fc: 5280 addql #1,%d0 <== NOT EXECUTED 663fe: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 66402: 5380 subql #1,%d0 <== NOT EXECUTED 66404: b082 cmpl %d2,%d0 <== NOT EXECUTED 66406: 657e bcss 66486 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 66408: 9483 subl %d3,%d2 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 6640a: 2002 movel %d2,%d0 <== NOT EXECUTED 6640c: 4c41 0003 remul %d1,%d3,%d0 <== NOT EXECUTED 66410: 4c41 0000 remul %d1,%d0,%d0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; 66414: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED if ( my_block <= LAST_TRIPLY_INDIRECT ) { 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; 66418: 2400 movel %d0,%d2 <== NOT EXECUTED 6641a: 4c41 2004 remul %d1,%d4,%d2 <== NOT EXECUTED 6641e: 4c41 2002 remul %d1,%d2,%d2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { 66422: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 66426: 6700 00b0 beqw 664d8 <== NOT EXECUTED if ( !p ) { 6642a: 4a88 tstl %a0 <== NOT EXECUTED 6642c: 6610 bnes 6643e <== NOT EXECUTED p = memfile_alloc_block(); 6642e: 4eb9 0006 6308 jsr 66308 <== NOT EXECUTED 66434: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p ) 66436: 4a80 tstl %d0 <== NOT EXECUTED 66438: 674c beqs 66486 <== NOT EXECUTED return 0; info->triply_indirect = p; 6643a: 2540 0058 movel %d0,%a2@(88) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 6643e: 45f0 2c00 lea %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 66442: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p1 ) { 66444: 4a88 tstl %a0 <== NOT EXECUTED 66446: 660e bnes 66456 <== NOT EXECUTED p1 = memfile_alloc_block(); 66448: 4eb9 0006 6308 jsr 66308 <== NOT EXECUTED 6644e: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p1 ) 66450: 4a80 tstl %d0 <== NOT EXECUTED 66452: 6732 beqs 66486 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 66454: 2480 movel %d0,%a2@ <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 66456: 45f0 4c00 lea %a0@(00000000,%d4:l:4),%a2 <== NOT EXECUTED 6645a: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( !p2 ) { 6645c: 4a88 tstl %a0 <== NOT EXECUTED 6645e: 6600 ff34 bnew 66394 <== NOT EXECUTED p2 = memfile_alloc_block(); 66462: 4eb9 0006 6308 jsr 66308 <== NOT EXECUTED 66468: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !p2 ) 6646a: 4a80 tstl %d0 <== NOT EXECUTED 6646c: 6718 beqs 66486 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 6646e: 2480 movel %d0,%a2@ <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 66470: 41f0 3c00 lea %a0@(00000000,%d3:l:4),%a0 <== NOT EXECUTED 66474: 6000 ff22 braw 66398 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 66478: 4a88 tstl %a0 <== NOT EXECUTED 6647a: 670a beqs 66486 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 6647c: 2070 2c00 moveal %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED if ( !p ) 66480: 4a88 tstl %a0 <== NOT EXECUTED 66482: 6600 ff10 bnew 66394 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 66486: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 6648c: 91c8 subal %a0,%a0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 6648e: 4e5e unlk %fp <== NOT EXECUTED 66490: 2008 movel %a0,%d0 <== NOT EXECUTED 66492: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66494: 4879 0008 2009 pea 82009 <== NOT EXECUTED 6649a: 4879 0008 20e6 pea 820e6 <__func__.5843> <== NOT EXECUTED 664a0: 4878 0386 pea 386 <== NOT EXECUTED 664a4: 4879 0008 2013 pea 82013 <== NOT EXECUTED 664aa: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 664b0: 4879 0008 205c pea 8205c <== NOT EXECUTED 664b6: 4879 0008 20e6 pea 820e6 <__func__.5843> <== NOT EXECUTED 664bc: 4878 038a pea 38a <== NOT EXECUTED 664c0: 4879 0008 2013 pea 82013 <== NOT EXECUTED 664c6: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 664cc: 4a88 tstl %a0 <== NOT EXECUTED 664ce: 67b6 beqs 66486 <== NOT EXECUTED return 0; return &info->indirect[ my_block ]; 664d0: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED 664d4: 6000 fee2 braw 663b8 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 664d8: 4a88 tstl %a0 <== NOT EXECUTED 664da: 67aa beqs 66486 <== 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 ]; 664dc: 2070 2c00 moveal %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED if ( !p1 ) 664e0: 4a88 tstl %a0 <== NOT EXECUTED 664e2: 67a2 beqs 66486 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 664e4: 2070 4c00 moveal %a0@(00000000,%d4:l:4),%a0 <== NOT EXECUTED 664e8: e58b lsll #2,%d3 <== NOT EXECUTED 664ea: d1c3 addal %d3,%a0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 664ec: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 664f2: 4e5e unlk %fp <== NOT EXECUTED 664f4: 2008 movel %a0,%d0 <== NOT EXECUTED 664f6: 4e75 rts 00066d5c : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 66d5c: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 66d60: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ <== NOT EXECUTED 66d64: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED 66d68: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 66d6c: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 66d70: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66d74: 4a8c tstl %a4 <== NOT EXECUTED 66d76: 6700 021e beqw 66f96 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 66d7a: 222c 0048 movel %a4@(72),%d1 <== NOT EXECUTED 66d7e: 2001 movel %d1,%d0 <== NOT EXECUTED 66d80: 5b80 subql #5,%d0 <== NOT EXECUTED 66d82: 7401 moveq #1,%d2 <== NOT EXECUTED 66d84: b480 cmpl %d0,%d2 <== NOT EXECUTED 66d86: 6500 022a bcsw 66fb2 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 66d8a: 4a8a tstl %a2 <== NOT EXECUTED 66d8c: 6700 0240 beqw 66fce <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 66d90: 4a88 tstl %a0 <== NOT EXECUTED 66d92: 6700 01ea beqw 66f7e <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 66d96: 7006 moveq #6,%d0 <== NOT EXECUTED 66d98: b081 cmpl %d1,%d0 <== NOT EXECUTED 66d9a: 6700 0130 beqw 66ecc <== 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 ) 66d9e: 222c 004c movel %a4@(76),%d1 <== NOT EXECUTED 66da2: 2008 movel %a0,%d0 <== NOT EXECUTED 66da4: d083 addl %d3,%d0 <== NOT EXECUTED 66da6: b280 cmpl %d0,%d1 <== NOT EXECUTED 66da8: 6400 00ba bccw 66e64 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 66dac: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED 66db2: 2e03 movel %d3,%d7 <== NOT EXECUTED * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) my_length = the_jnode->info.file.size - start; 66db4: 2a01 movel %d1,%d5 <== NOT EXECUTED 66db6: 9a83 subl %d3,%d5 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 66db8: 4c42 7806 remsl %d2,%d6,%d7 <== NOT EXECUTED 66dbc: 4c42 7807 remsl %d2,%d7,%d7 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 66dc0: 2607 movel %d7,%d3 <== NOT EXECUTED if ( start_offset ) { 66dc2: 4a86 tstl %d6 <== NOT EXECUTED 66dc4: 6600 00b8 bnew 66e7e <== NOT EXECUTED 66dc8: 2c0a movel %a2,%d6 <== NOT EXECUTED 66dca: 4284 clrl %d4 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 66dcc: b485 cmpl %d5,%d2 <== NOT EXECUTED 66dce: 6240 bhis 66e10 <== NOT EXECUTED 66dd0: 47f9 0006 632c lea 6632c ,%a3 <== NOT EXECUTED 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 ); 66dd6: 45f9 0007 1c64 lea 71c64 ,%a2 <== NOT EXECUTED * Phase 2: all of zero of more blocks */ 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 ); 66ddc: 42a7 clrl %sp@- <== NOT EXECUTED 66dde: 2f03 movel %d3,%sp@- <== NOT EXECUTED 66de0: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66de2: 4e93 jsr %a3@ <== NOT EXECUTED assert( block_ptr ); 66de4: dffc 0000 000c addal #12,%sp <== NOT EXECUTED * Phase 2: all of zero of more blocks */ 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 ); 66dea: 2040 moveal %d0,%a0 <== NOT EXECUTED assert( block_ptr ); 66dec: 4a80 tstl %d0 <== NOT EXECUTED 66dee: 6700 0172 beqw 66f62 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 66df2: 2f02 movel %d2,%sp@- <== NOT EXECUTED dest += to_copy; block++; 66df4: 5283 addql #1,%d3 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 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 ); 66df6: 2f10 movel %a0@,%sp@- <== NOT EXECUTED dest += to_copy; block++; my_length -= to_copy; 66df8: 9a82 subl %d2,%d5 <== NOT EXECUTED copied += to_copy; 66dfa: d882 addl %d2,%d4 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 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 ); 66dfc: 2f06 movel %d6,%sp@- <== NOT EXECUTED 66dfe: 4e92 jsr %a2@ <== NOT EXECUTED dest += to_copy; 66e00: dc82 addl %d2,%d6 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 66e02: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 66e08: bab9 0008 6848 cmpl 86848 ,%d5 <== NOT EXECUTED 66e0e: 64cc bccs 66ddc <== NOT EXECUTED 66e10: 2404 movel %d4,%d2 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 66e12: 4a85 tstl %d5 <== NOT EXECUTED 66e14: 672e beqs 66e44 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 66e16: 42a7 clrl %sp@- <== NOT EXECUTED 66e18: 2f03 movel %d3,%sp@- <== NOT EXECUTED 66e1a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66e1c: 4eb9 0006 632c jsr 6632c <== NOT EXECUTED assert( block_ptr ); 66e22: dffc 0000 000c addal #12,%sp <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 66e28: 2040 moveal %d0,%a0 <== NOT EXECUTED assert( block_ptr ); 66e2a: 4a80 tstl %d0 <== NOT EXECUTED 66e2c: 6700 01d8 beqw 67006 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 66e30: 2f05 movel %d5,%sp@- <== NOT EXECUTED copied += my_length; 66e32: d485 addl %d5,%d2 <== NOT EXECUTED if ( 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)[ 0 ], my_length ); 66e34: 2f10 movel %a0@,%sp@- <== NOT EXECUTED 66e36: 2f06 movel %d6,%sp@- <== NOT EXECUTED 66e38: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED copied += my_length; 66e3e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } IMFS_update_atime( the_jnode ); 66e44: 42a7 clrl %sp@- <== NOT EXECUTED 66e46: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 66e4a: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 66e50: 296e fff8 003c movel %fp@(-8),%a4@(60) <== NOT EXECUTED return copied; 66e56: 2002 movel %d2,%d0 <== NOT EXECUTED 66e58: 508f addql #8,%sp <== NOT EXECUTED } 66e5a: 4cee 1cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a4 <== NOT EXECUTED 66e60: 4e5e unlk %fp <== NOT EXECUTED 66e62: 4e75 rts <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 66e64: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED 66e6a: 2e03 movel %d3,%d7 <== NOT EXECUTED 66e6c: 4c42 7806 remsl %d2,%d6,%d7 <== NOT EXECUTED 66e70: 4c42 7807 remsl %d2,%d7,%d7 <== 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 ) 66e74: 2a08 movel %a0,%d5 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 66e76: 2607 movel %d7,%d3 <== NOT EXECUTED if ( start_offset ) { 66e78: 4a86 tstl %d6 <== NOT EXECUTED 66e7a: 6700 ff4c beqw 66dc8 <== NOT EXECUTED 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 ); 66e7e: 42a7 clrl %sp@- <== NOT EXECUTED 66e80: 2f07 movel %d7,%sp@- <== NOT EXECUTED 66e82: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66e84: 4eb9 0006 632c jsr 6632c <== NOT EXECUTED assert( block_ptr ); 66e8a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 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 ); 66e90: 2040 moveal %d0,%a0 <== NOT EXECUTED assert( block_ptr ); 66e92: 4a80 tstl %d0 <== NOT EXECUTED 66e94: 6700 0154 beqw 66fea <== 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; 66e98: 2002 movel %d2,%d0 <== NOT EXECUTED 66e9a: 9086 subl %d6,%d0 <== NOT EXECUTED 66e9c: 2805 movel %d5,%d4 <== NOT EXECUTED 66e9e: b085 cmpl %d5,%d0 <== NOT EXECUTED 66ea0: 6500 0096 bcsw 66f38 <== NOT EXECUTED 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 ); 66ea4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 66ea6: dc90 addl %a0@,%d6 <== NOT EXECUTED 66ea8: 2f06 movel %d6,%sp@- <== NOT EXECUTED dest += to_copy; 66eaa: 2c0a movel %a2,%d6 <== NOT EXECUTED block++; 66eac: 2607 movel %d7,%d3 <== NOT EXECUTED 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 ); 66eae: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66eb0: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED 66eb6: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED dest += to_copy; 66ebc: dc84 addl %d4,%d6 <== NOT EXECUTED block++; 66ebe: 5283 addql #1,%d3 <== NOT EXECUTED my_length -= to_copy; 66ec0: 9a84 subl %d4,%d5 <== NOT EXECUTED 66ec2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 66ec8: 6000 ff02 braw 66dcc <== 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)) 66ecc: 242c 004c movel %a4@(76),%d2 <== NOT EXECUTED 66ed0: 9483 subl %d3,%d2 <== NOT EXECUTED 66ed2: b1c2 cmpal %d2,%a0 <== NOT EXECUTED 66ed4: 6534 bcss 66f0a <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 66ed6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 66ed8: d6ac 0050 addl %a4@(80),%d3 <== NOT EXECUTED 66edc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 66ede: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66ee0: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 66ee6: 42a7 clrl %sp@- <== NOT EXECUTED 66ee8: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 66eec: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED return my_length; 66ef2: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 66ef8: 2002 movel %d2,%d0 <== 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 ); 66efa: 296e fff8 003c movel %fp@(-8),%a4@(60) <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 66f00: 4cee 1cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a4 <== NOT EXECUTED 66f06: 4e5e unlk %fp <== NOT EXECUTED 66f08: 4e75 rts <== 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)) 66f0a: 2408 movel %a0,%d2 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 66f0c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 66f0e: d6ac 0050 addl %a4@(80),%d3 <== NOT EXECUTED 66f12: 2f03 movel %d3,%sp@- <== NOT EXECUTED 66f14: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66f16: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 66f1c: 42a7 clrl %sp@- <== NOT EXECUTED 66f1e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 66f22: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 66f28: 296e fff8 003c movel %fp@(-8),%a4@(60) <== NOT EXECUTED return my_length; 66f2e: 2002 movel %d2,%d0 <== NOT EXECUTED 66f30: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 66f36: 60c8 bras 66f00 <== 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; 66f38: 2800 movel %d0,%d4 <== NOT EXECUTED 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 ); 66f3a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 66f3c: dc90 addl %a0@,%d6 <== NOT EXECUTED 66f3e: 2f06 movel %d6,%sp@- <== NOT EXECUTED dest += to_copy; 66f40: 2c0a movel %a2,%d6 <== NOT EXECUTED block++; 66f42: 2607 movel %d7,%d3 <== NOT EXECUTED 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 ); 66f44: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66f46: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED 66f4c: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED dest += to_copy; 66f52: dc84 addl %d4,%d6 <== NOT EXECUTED block++; 66f54: 5283 addql #1,%d3 <== NOT EXECUTED my_length -= to_copy; 66f56: 9a84 subl %d4,%d5 <== NOT EXECUTED 66f58: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 66f5e: 6000 fe6c braw 66dcc <== 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 ); 66f62: 4879 0008 208c pea 8208c <== NOT EXECUTED 66f68: 4879 0008 2118 pea 82118 <__func__.5751> <== NOT EXECUTED 66f6e: 4878 02a5 pea 2a5 <== NOT EXECUTED 66f72: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66f78: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== 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 ); 66f7e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 66f84: 7616 moveq #22,%d3 <== NOT EXECUTED 66f86: 2040 moveal %d0,%a0 <== NOT EXECUTED 66f88: 2083 movel %d3,%a0@ <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 66f8a: 4cee 1cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a4 <== NOT EXECUTED 66f90: 4e5e unlk %fp <== 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 ); 66f92: 70ff moveq #-1,%d0 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 66f94: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66f96: 4879 0008 2009 pea 82009 <== NOT EXECUTED 66f9c: 4879 0008 2118 pea 82118 <__func__.5751> <== NOT EXECUTED 66fa2: 4878 024a pea 24a <== NOT EXECUTED 66fa6: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66fac: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 66fb2: 4879 0008 2096 pea 82096 <== NOT EXECUTED 66fb8: 4879 0008 2118 pea 82118 <__func__.5751> <== NOT EXECUTED 66fbe: 4878 024f pea 24f <== NOT EXECUTED 66fc2: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66fc8: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 66fce: 4879 0008 20e1 pea 820e1 <== NOT EXECUTED 66fd4: 4879 0008 2118 pea 82118 <__func__.5751> <== NOT EXECUTED 66fda: 4878 0258 pea 258 <== NOT EXECUTED 66fde: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66fe4: 4eb9 0005 f878 jsr 5f878 <__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 ); 66fea: 4879 0008 208c pea 8208c <== NOT EXECUTED 66ff0: 4879 0008 2118 pea 82118 <__func__.5751> <== NOT EXECUTED 66ff6: 4878 0294 pea 294 <== NOT EXECUTED 66ffa: 4879 0008 2013 pea 82013 <== NOT EXECUTED 67000: 4eb9 0005 f878 jsr 5f878 <__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 ); 67006: 4879 0008 208c pea 8208c <== NOT EXECUTED 6700c: 4879 0008 2118 pea 82118 <__func__.5751> <== NOT EXECUTED 67012: 4878 02b7 pea 2b7 <== NOT EXECUTED 67016: 4879 0008 2013 pea 82013 <== NOT EXECUTED 6701c: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED 00066588 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 66588: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 6658c: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED 66590: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66594: 4a8c tstl %a4 <== NOT EXECUTED 66596: 6700 0120 beqw 666b8 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 6659a: 7005 moveq #5,%d0 <== NOT EXECUTED 6659c: b0ac 0048 cmpl %a4@(72),%d0 <== NOT EXECUTED 665a0: 6600 0132 bnew 666d4 <== NOT EXECUTED /* * 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; 665a4: 2839 0008 6848 movel 86848 ,%d4 <== NOT EXECUTED 665aa: e48c lsrl #2,%d4 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 665ac: 4aac 0050 tstl %a4@(80) <== NOT EXECUTED 665b0: 670e beqs 665c0 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); 665b2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 665b4: 486c 0050 pea %a4@(80) <== NOT EXECUTED 665b8: 4eb9 0006 6520 jsr 66520 <== NOT EXECUTED 665be: 508f addql #8,%sp <== NOT EXECUTED } if ( info->doubly_indirect ) { 665c0: 206c 0054 moveal %a4@(84),%a0 <== NOT EXECUTED 665c4: 4a88 tstl %a0 <== NOT EXECUTED 665c6: 674e beqs 66616 <== NOT EXECUTED for ( i=0 ; i,%d3 <== NOT EXECUTED 665ce: 2003 movel %d3,%d0 <== NOT EXECUTED 665d0: 47f9 0006 6520 lea 66520 ,%a3 <== NOT EXECUTED 665d6: e488 lsrl #2,%d0 <== NOT EXECUTED 665d8: 4a80 tstl %d0 <== NOT EXECUTED 665da: 6730 beqs 6660c <== NOT EXECUTED 665dc: 4282 clrl %d2 <== NOT EXECUTED 665de: 4281 clrl %d1 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 665e0: 2001 movel %d1,%d0 <== NOT EXECUTED 665e2: e588 lsll #2,%d0 <== NOT EXECUTED 665e4: 4ab0 0800 tstl %a0@(00000000,%d0:l) <== NOT EXECUTED 665e8: 6710 beqs 665fa <== NOT EXECUTED memfile_free_blocks_in_table( 665ea: 2f04 movel %d4,%sp@- <== NOT EXECUTED 665ec: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 665f0: 4e93 jsr %a3@ <== NOT EXECUTED 665f2: 2639 0008 6848 movel 86848 ,%d3 <== NOT EXECUTED 665f8: 508f addql #8,%sp <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 66606: 206c 0054 moveal %a4@(84),%a0 <== NOT EXECUTED 6660a: 60d4 bras 665e0 <== 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 ); 6660c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 6660e: 486c 0054 pea %a4@(84) <== NOT EXECUTED 66612: 4e93 jsr %a3@ <== NOT EXECUTED 66614: 508f addql #8,%sp <== NOT EXECUTED } if ( info->triply_indirect ) { 66616: 206c 0058 moveal %a4@(88),%a0 <== NOT EXECUTED 6661a: 4a88 tstl %a0 <== NOT EXECUTED 6661c: 6700 008e beqw 666ac <== NOT EXECUTED for ( i=0 ; i,%d3 <== NOT EXECUTED 66626: 2003 movel %d3,%d0 <== NOT EXECUTED 66628: 47f9 0006 6520 lea 66520 ,%a3 <== NOT EXECUTED 6662e: e488 lsrl #2,%d0 <== NOT EXECUTED 66630: 4a80 tstl %d0 <== NOT EXECUTED 66632: 676e beqs 666a2 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 66634: 2450 moveal %a0@,%a2 <== NOT EXECUTED 66636: 47f9 0006 6520 lea 66520 ,%a3 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 6663c: 4a8a tstl %a2 <== NOT EXECUTED 6663e: 6762 beqs 666a2 <== NOT EXECUTED 66640: 4286 clrl %d6 <== NOT EXECUTED 66642: 4285 clrl %d5 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 6664c: 4282 clrl %d2 <== NOT EXECUTED 6664e: 4281 clrl %d1 <== NOT EXECUTED if ( p[j] ) { 66650: 2001 movel %d1,%d0 <== NOT EXECUTED 66652: e588 lsll #2,%d0 <== NOT EXECUTED 66654: 4ab2 0800 tstl %a2@(00000000,%d0:l) <== NOT EXECUTED 66658: 6710 beqs 6666a <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 6665a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 6665c: 4872 0800 pea %a2@(00000000,%d0:l) <== NOT EXECUTED 66660: 4e93 jsr %a3@ <== NOT EXECUTED 66662: 2639 0008 6848 movel 86848 ,%d3 <== NOT EXECUTED 66668: 508f addql #8,%sp <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 66676: 2f04 movel %d4,%sp@- <== NOT EXECUTED 66678: daac 0058 addl %a4@(88),%d5 <== NOT EXECUTED 6667c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 6667e: 4e93 jsr %a3@ <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i,%d3 <== NOT EXECUTED 66686: 2003 movel %d3,%d0 <== NOT EXECUTED 66688: 5286 addql #1,%d6 <== NOT EXECUTED 6668a: 508f addql #8,%sp <== NOT EXECUTED 6668c: e488 lsrl #2,%d0 <== NOT EXECUTED 6668e: bc80 cmpl %d0,%d6 <== NOT EXECUTED 66690: 6410 bccs 666a2 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 66692: 206c 0058 moveal %a4@(88),%a0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 66696: 2a06 movel %d6,%d5 <== NOT EXECUTED 66698: e58d lsll #2,%d5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 6669a: 2470 5800 moveal %a0@(00000000,%d5:l),%a2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 6669e: 4a8a tstl %a2 <== NOT EXECUTED 666a0: 66a2 bnes 66644 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 666a2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 666a4: 486c 0058 pea %a4@(88) <== NOT EXECUTED 666a8: 4e93 jsr %a3@ <== NOT EXECUTED 666aa: 508f addql #8,%sp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 666ac: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 666b2: 4e5e unlk %fp <== NOT EXECUTED 666b4: 4280 clrl %d0 <== NOT EXECUTED 666b6: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 666b8: 4879 0008 2009 pea 82009 <== NOT EXECUTED 666be: 4879 0008 212a pea 8212a <__func__.5695> <== NOT EXECUTED 666c4: 4878 01ec pea 1ec <== NOT EXECUTED 666c8: 4879 0008 2013 pea 82013 <== NOT EXECUTED 666ce: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 666d4: 4879 0008 205c pea 8205c <== NOT EXECUTED 666da: 4879 0008 212a pea 8212a <__func__.5695> <== NOT EXECUTED 666e0: 4878 01f0 pea 1f0 <== NOT EXECUTED 666e4: 4879 0008 2013 pea 82013 <== NOT EXECUTED 666ea: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED 000664f8 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 664f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED block_p *block_entry_ptr; block_p ptr; block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 664fc: 42a7 clrl %sp@- <== NOT EXECUTED 664fe: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 66502: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 66506: 4eb9 0006 632c jsr 6632c <== NOT EXECUTED 6650c: 2040 moveal %d0,%a0 <== NOT EXECUTED ptr = *block_entry_ptr; 6650e: 2010 movel %a0@,%d0 <== NOT EXECUTED *block_entry_ptr = 0; 66510: 4290 clrl %a0@ <== NOT EXECUTED memfile_free_block( ptr ); 66512: 2f00 movel %d0,%sp@- <== NOT EXECUTED 66514: 4eb9 0006 62ee jsr 662ee <== NOT EXECUTED return 1; } 6651a: 4e5e unlk %fp <== NOT EXECUTED 6651c: 7001 moveq #1,%d0 <== NOT EXECUTED 6651e: 4e75 rts 00066a2a : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 66a2a: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 66a2e: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ <== NOT EXECUTED 66a32: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED 66a36: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 66a3a: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED 66a3e: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66a42: 4a8c tstl %a4 <== NOT EXECUTED 66a44: 6700 01d8 beqw 66c1e <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 66a48: 7005 moveq #5,%d0 <== NOT EXECUTED 66a4a: b0ac 0048 cmpl %a4@(72),%d0 <== NOT EXECUTED 66a4e: 6600 01b2 bnew 66c02 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 66a52: 4a8b tstl %a3 <== NOT EXECUTED 66a54: 6700 01e4 beqw 66c3a <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 66a58: 4a8a tstl %a2 <== NOT EXECUTED 66a5a: 6700 018c beqw 66be8 <== NOT EXECUTED /* * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; 66a5e: 200a movel %a2,%d0 <== NOT EXECUTED 66a60: d083 addl %d3,%d0 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { 66a62: b0ac 004c cmpl %a4@(76),%d0 <== NOT EXECUTED 66a66: 6200 010c bhiw 66b74 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 66a6a: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED 66a70: 2e03 movel %d3,%d7 <== NOT EXECUTED 66a72: 4c42 7800 remsl %d2,%d0,%d7 <== NOT EXECUTED 66a76: 4c42 7807 remsl %d2,%d7,%d7 <== NOT EXECUTED 66a7a: 2600 movel %d0,%d3 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 66a7c: 2807 movel %d7,%d4 <== NOT EXECUTED if ( start_offset ) { 66a7e: 4a80 tstl %d0 <== NOT EXECUTED 66a80: 6700 00e8 beqw 66b6a <== NOT EXECUTED 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 ); 66a84: 42a7 clrl %sp@- <== NOT EXECUTED 66a86: 2f07 movel %d7,%sp@- <== NOT EXECUTED 66a88: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66a8a: 4eb9 0006 632c jsr 6632c <== NOT EXECUTED assert( block_ptr ); 66a90: dffc 0000 000c addal #12,%sp <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 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 ); 66a96: 2040 moveal %d0,%a0 <== NOT EXECUTED assert( block_ptr ); 66a98: 4a80 tstl %d0 <== NOT EXECUTED 66a9a: 6700 01ba beqw 66c56 <== 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; 66a9e: 2c02 movel %d2,%d6 <== NOT EXECUTED 66aa0: 9c83 subl %d3,%d6 <== NOT EXECUTED 66aa2: b5c6 cmpal %d6,%a2 <== NOT EXECUTED 66aa4: 6500 00fa bcsw 66ba0 <== NOT EXECUTED 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 ); 66aa8: 2f06 movel %d6,%sp@- <== NOT EXECUTED src += to_copy; 66aaa: 2a0b movel %a3,%d5 <== NOT EXECUTED block++; 66aac: 2807 movel %d7,%d4 <== NOT EXECUTED 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 ); 66aae: 2f0b movel %a3,%sp@- <== NOT EXECUTED 66ab0: d690 addl %a0@,%d3 <== NOT EXECUTED 66ab2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 66ab4: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED 66aba: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED src += to_copy; block++; my_length -= to_copy; 66ac0: 260a movel %a2,%d3 <== NOT EXECUTED 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; 66ac2: da86 addl %d6,%d5 <== NOT EXECUTED block++; 66ac4: 5284 addql #1,%d4 <== NOT EXECUTED my_length -= to_copy; 66ac6: 9686 subl %d6,%d3 <== NOT EXECUTED copied += to_copy; 66ac8: dffc 0000 000c addal #12,%sp <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 66ace: b483 cmpl %d3,%d2 <== NOT EXECUTED 66ad0: 6240 bhis 66b12 <== NOT EXECUTED 66ad2: 47f9 0006 632c lea 6632c ,%a3 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 66ad8: 45f9 0007 1c64 lea 71c64 ,%a2 <== NOT EXECUTED * Phase 2: all of zero of more blocks */ 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 ); 66ade: 42a7 clrl %sp@- <== NOT EXECUTED 66ae0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 66ae2: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66ae4: 4e93 jsr %a3@ <== NOT EXECUTED assert( block_ptr ); 66ae6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED * Phase 2: all of zero of more blocks */ 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 ); 66aec: 2040 moveal %d0,%a0 <== NOT EXECUTED assert( block_ptr ); 66aee: 4a80 tstl %d0 <== NOT EXECUTED 66af0: 6700 00da beqw 66bcc <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 66af4: 2f02 movel %d2,%sp@- <== NOT EXECUTED src += to_copy; block++; 66af6: 5284 addql #1,%d4 <== NOT EXECUTED my_length -= to_copy; 66af8: 9682 subl %d2,%d3 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 66afa: 2f05 movel %d5,%sp@- <== NOT EXECUTED src += to_copy; 66afc: da82 addl %d2,%d5 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 66afe: 2f10 movel %a0@,%sp@- <== NOT EXECUTED 66b00: 4e92 jsr %a2@ <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 66b02: dc82 addl %d2,%d6 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 66b04: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 66b0a: b6b9 0008 6848 cmpl 86848 ,%d3 <== NOT EXECUTED 66b10: 64cc bccs 66ade <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 66b12: 4a83 tstl %d3 <== NOT EXECUTED 66b14: 672e beqs 66b44 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 66b16: 42a7 clrl %sp@- <== NOT EXECUTED 66b18: 2f04 movel %d4,%sp@- <== NOT EXECUTED 66b1a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66b1c: 4eb9 0006 632c jsr 6632c <== NOT EXECUTED assert( block_ptr ); 66b22: dffc 0000 000c addal #12,%sp <== 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 ); 66b28: 2040 moveal %d0,%a0 <== NOT EXECUTED assert( block_ptr ); 66b2a: 4a80 tstl %d0 <== NOT EXECUTED 66b2c: 6700 0144 beqw 66c72 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); 66b30: 2f03 movel %d3,%sp@- <== NOT EXECUTED my_length = 0; copied += to_copy; 66b32: dc83 addl %d3,%d6 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); 66b34: 2f05 movel %d5,%sp@- <== NOT EXECUTED 66b36: 2f10 movel %a0@,%sp@- <== NOT EXECUTED 66b38: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED my_length = 0; copied += to_copy; 66b3e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); 66b44: 42a7 clrl %sp@- <== NOT EXECUTED 66b46: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 66b4a: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 66b50: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED return copied; } 66b54: 2006 movel %d6,%d0 <== NOT EXECUTED memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; } IMFS_atime_mtime_update( the_jnode ); 66b56: 2941 003c movel %d1,%a4@(60) <== NOT EXECUTED 66b5a: 508f addql #8,%sp <== NOT EXECUTED 66b5c: 2941 0040 movel %d1,%a4@(64) <== NOT EXECUTED return copied; } 66b60: 4cee 1cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a4 <== NOT EXECUTED 66b66: 4e5e unlk %fp <== NOT EXECUTED 66b68: 4e75 rts <== NOT EXECUTED * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { 66b6a: 260a movel %a2,%d3 <== NOT EXECUTED 66b6c: 2a0b movel %a3,%d5 <== NOT EXECUTED 66b6e: 4286 clrl %d6 <== NOT EXECUTED 66b70: 6000 ff5c braw 66ace <== NOT EXECUTED * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { status = IMFS_memfile_extend( the_jnode, last_byte ); 66b74: 2f00 movel %d0,%sp@- <== NOT EXECUTED 66b76: 2f0c movel %a4,%sp@- <== NOT EXECUTED 66b78: 4eb9 0006 685a jsr 6685a <== NOT EXECUTED if ( status ) 66b7e: 508f addql #8,%sp <== NOT EXECUTED 66b80: 4a80 tstl %d0 <== NOT EXECUTED 66b82: 6700 fee6 beqw 66a6a <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 66b86: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 66b8c: 7cff moveq #-1,%d6 <== NOT EXECUTED 66b8e: 2040 moveal %d0,%a0 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); return copied; } 66b90: 2006 movel %d6,%d0 <== NOT EXECUTED 66b92: 4cee 1cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a4 <== NOT EXECUTED last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { status = IMFS_memfile_extend( the_jnode, last_byte ); if ( status ) rtems_set_errno_and_return_minus_one( ENOSPC ); 66b98: 721c moveq #28,%d1 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); return copied; } 66b9a: 4e5e unlk %fp <== NOT EXECUTED last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { status = IMFS_memfile_extend( the_jnode, last_byte ); if ( status ) rtems_set_errno_and_return_minus_one( ENOSPC ); 66b9c: 2081 movel %d1,%a0@ <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); return copied; } 66b9e: 4e75 rts <== 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; 66ba0: 2c0a movel %a2,%d6 <== NOT EXECUTED 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 ); 66ba2: 2f06 movel %d6,%sp@- <== NOT EXECUTED src += to_copy; 66ba4: 2a0b movel %a3,%d5 <== NOT EXECUTED block++; 66ba6: 2807 movel %d7,%d4 <== NOT EXECUTED 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 ); 66ba8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 66baa: d690 addl %a0@,%d3 <== NOT EXECUTED 66bac: 2f03 movel %d3,%sp@- <== NOT EXECUTED 66bae: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED 66bb4: 2439 0008 6848 movel 86848 ,%d2 <== NOT EXECUTED src += to_copy; block++; my_length -= to_copy; 66bba: 260a movel %a2,%d3 <== NOT EXECUTED 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; 66bbc: da86 addl %d6,%d5 <== NOT EXECUTED block++; 66bbe: 5284 addql #1,%d4 <== NOT EXECUTED my_length -= to_copy; 66bc0: 9686 subl %d6,%d3 <== NOT EXECUTED copied += to_copy; 66bc2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 66bc8: 6000 ff04 braw 66ace <== 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 ); 66bcc: 4879 0008 208c pea 8208c <== NOT EXECUTED 66bd2: 4879 0008 2105 pea 82105 <__func__.5801> <== NOT EXECUTED 66bd8: 4878 032e pea 32e <== NOT EXECUTED 66bdc: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66be2: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 66be8: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 66bee: 7416 moveq #22,%d2 <== NOT EXECUTED 66bf0: 2040 moveal %d0,%a0 <== NOT EXECUTED 66bf2: 7cff moveq #-1,%d6 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); return copied; } 66bf4: 2006 movel %d6,%d0 <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 66bf6: 2082 movel %d2,%a0@ <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); return copied; } 66bf8: 4cee 1cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a4 <== NOT EXECUTED 66bfe: 4e5e unlk %fp <== NOT EXECUTED 66c00: 4e75 rts <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 66c02: 4879 0008 205c pea 8205c <== NOT EXECUTED 66c08: 4879 0008 2105 pea 82105 <__func__.5801> <== NOT EXECUTED 66c0e: 4878 02e5 pea 2e5 <== NOT EXECUTED 66c12: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66c18: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 66c1e: 4879 0008 2009 pea 82009 <== NOT EXECUTED 66c24: 4879 0008 2105 pea 82105 <__func__.5801> <== NOT EXECUTED 66c2a: 4878 02e1 pea 2e1 <== NOT EXECUTED 66c2e: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66c34: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 66c3a: 4879 0007 fef4 pea 7fef4 <== NOT EXECUTED 66c40: 4879 0008 2105 pea 82105 <__func__.5801> <== NOT EXECUTED 66c46: 4878 02ed pea 2ed <== NOT EXECUTED 66c4a: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66c50: 4eb9 0005 f878 jsr 5f878 <__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 ); 66c56: 4879 0008 208c pea 8208c <== NOT EXECUTED 66c5c: 4879 0008 2105 pea 82105 <__func__.5801> <== NOT EXECUTED 66c62: 4878 031a pea 31a <== NOT EXECUTED 66c66: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66c6c: 4eb9 0005 f878 jsr 5f878 <__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 ); 66c72: 4879 0008 208c pea 8208c <== NOT EXECUTED 66c78: 4879 0008 2105 pea 82105 <__func__.5801> <== NOT EXECUTED 66c7e: 4878 0344 pea 344 <== NOT EXECUTED 66c82: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66c88: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED 00049e14 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 49e14: 4e56 ffb8 linkw %fp,#-72 <== NOT EXECUTED 49e18: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, new_name, &result ); 49e1c: 486e fffc pea %fp@(-4) <== NOT EXECUTED const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 49e20: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, new_name, &result ); 49e24: 2a0e movel %fp,%d5 <== NOT EXECUTED 49e26: 0685 ffff ffcb addil #-53,%d5 <== NOT EXECUTED 49e2c: 2f05 movel %d5,%sp@- <== NOT EXECUTED const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 49e2e: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 49e32: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, new_name, &result ); 49e36: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 49e3a: 4eb9 0004 9bd0 jsr 49bd0 <== NOT EXECUTED /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 49e40: 2004 movel %d4,%d0 <== NOT EXECUTED 49e42: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49e48: 0280 0000 f000 andil #61440,%d0 <== NOT EXECUTED 49e4e: 0c80 0000 4000 cmpil #16384,%d0 <== NOT EXECUTED 49e54: 6752 beqs 49ea8 <== NOT EXECUTED type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 49e56: 0c80 0000 8000 cmpil #32768,%d0 <== NOT EXECUTED 49e5c: 6744 beqs 49ea2 <== NOT EXECUTED type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 49e5e: 0c80 0000 6000 cmpil #24576,%d0 <== NOT EXECUTED 49e64: 6708 beqs 49e6e <== NOT EXECUTED 49e66: 0c80 0000 2000 cmpil #8192,%d0 <== NOT EXECUTED 49e6c: 663e bnes 49eac <== NOT EXECUTED type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 49e6e: 7002 moveq #2,%d0 <== NOT EXECUTED 49e70: 2d42 ffec movel %d2,%fp@(-20) <== NOT EXECUTED 49e74: 2d43 fff0 movel %d3,%fp@(-16) <== NOT EXECUTED /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 49e78: 486e ffec pea %fp@(-20) <== NOT EXECUTED 49e7c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 49e7e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 49e80: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49e82: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 49e86: 4eb9 0004 bdd4 jsr 4bdd4 <== NOT EXECUTED new_name, mode, &info ); if ( !new_node ) 49e8c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 49e92: 4a80 tstl %d0 <== NOT EXECUTED 49e94: 672e beqs 49ec4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 49e96: 4cee 003c ffb8 moveml %fp@(-72),%d2-%d5 <== NOT EXECUTED 49e9c: 4e5e unlk %fp <== NOT EXECUTED new_name, mode, &info ); if ( !new_node ) 49e9e: 4280 clrl %d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 49ea0: 4e75 rts <== NOT EXECUTED * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 49ea2: 303c 0005 movew #5,%d0 <== NOT EXECUTED 49ea6: 60d0 bras 49e78 <== NOT EXECUTED 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 ); } else { rtems_set_errno_and_return_minus_one( EINVAL ); 49ea8: 7001 moveq #1,%d0 <== NOT EXECUTED 49eaa: 60cc bras 49e78 <== NOT EXECUTED 49eac: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 49eb2: 7416 moveq #22,%d2 <== NOT EXECUTED 49eb4: 2040 moveal %d0,%a0 <== NOT EXECUTED 49eb6: 2082 movel %d2,%a0@ <== NOT EXECUTED if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 49eb8: 4cee 003c ffb8 moveml %fp@(-72),%d2-%d5 <== NOT EXECUTED 49ebe: 4e5e unlk %fp <== NOT EXECUTED 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 ); } else { rtems_set_errno_and_return_minus_one( EINVAL ); 49ec0: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 49ec2: 4e75 rts <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 49ec4: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED return 0; } 49eca: 4cee 003c ffb8 moveml %fp@(-72),%d2-%d5 <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 49ed0: 2040 moveal %d0,%a0 <== NOT EXECUTED 49ed2: 720c moveq #12,%d1 <== NOT EXECUTED return 0; } 49ed4: 4e5e unlk %fp <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 49ed6: 70ff moveq #-1,%d0 <== NOT EXECUTED 49ed8: 2081 movel %d1,%a0@ <== NOT EXECUTED return 0; } 49eda: 4e75 rts 0004583c : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 4583c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45840: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 45844: 2069 0008 moveal %a1@(8),%a0 <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 45848: 7001 moveq #1,%d0 <== NOT EXECUTED 4584a: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 4584e: 660a bnes 4585a <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 45850: 2149 0058 movel %a1,%a0@(88) <== NOT EXECUTED return 0; } 45854: 4e5e unlk %fp <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 45856: 4280 clrl %d0 <== NOT EXECUTED return 0; } 45858: 4e75 rts <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 4585a: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 45860: 2040 moveal %d0,%a0 <== NOT EXECUTED 45862: 7014 moveq #20,%d0 <== NOT EXECUTED 45864: 2080 movel %d0,%a0@ <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 45866: 4e5e unlk %fp <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 45868: 70ff moveq #-1,%d0 <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 4586a: 4e75 rts 00049edc : #include "imfs.h" rtems_filesystem_node_types_t IMFS_node_type( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 49edc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49ee0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49ee4: 2250 moveal %a0@,%a1 <== NOT EXECUTED IMFS_jnode_t *node; node = pathloc->node_access; return node->type; } 49ee6: 4e5e unlk %fp <== NOT EXECUTED 49ee8: 2029 0048 movel %a1@(72),%d0 <== NOT EXECUTED 49eec: 4e75 rts <== NOT EXECUTED ... 00045880 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 45880: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 45884: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 45888: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; 4588c: 2450 moveal %a0@,%a2 <== NOT EXECUTED int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 4588e: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 45892: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 45896: 7004 moveq #4,%d0 <== NOT EXECUTED 45898: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 4589c: 663c bnes 458da <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 4589e: 4a82 tstl %d2 <== NOT EXECUTED 458a0: 672c beqs 458ce <== NOT EXECUTED 458a2: 206a 004c moveal %a2@(76),%a0 <== NOT EXECUTED 458a6: 1210 moveb %a0@,%d1 <== NOT EXECUTED 458a8: 6724 beqs 458ce <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 458aa: 4280 clrl %d0 <== NOT EXECUTED 458ac: 93c9 subal %a1,%a1 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 458ae: 1781 9800 moveb %d1,%a3@(00000000,%a1:l) <== NOT EXECUTED 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++ ) 458b2: 5280 addql #1,%d0 <== NOT EXECUTED 458b4: 2240 moveal %d0,%a1 <== NOT EXECUTED 458b6: b082 cmpl %d2,%d0 <== NOT EXECUTED 458b8: 640a bccs 458c4 <== NOT EXECUTED 458ba: 206a 004c moveal %a2@(76),%a0 <== NOT EXECUTED 458be: 1230 0800 moveb %a0@(00000000,%d0:l),%d1 <== NOT EXECUTED 458c2: 66ea bnes 458ae <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 458c4: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 458ca: 4e5e unlk %fp <== NOT EXECUTED 458cc: 4e75 rts <== NOT EXECUTED 458ce: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 458d4: 4e5e unlk %fp <== NOT EXECUTED 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++ ) 458d6: 4280 clrl %d0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 458d8: 4e75 rts <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 458da: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 458e0: 2040 moveal %d0,%a0 <== NOT EXECUTED 458e2: 7016 moveq #22,%d0 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; return i; } 458e4: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 458ea: 2080 movel %d0,%a0@ <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; return i; } 458ec: 4e5e unlk %fp <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 458ee: 70ff moveq #-1,%d0 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; return i; } 458f0: 4e75 rts <== NOT EXECUTED ... 00049ef0 : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 49ef0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 49ef4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 49ef6: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 49efa: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 49efc: 2453 moveal %a3@,%a2 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 49efe: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 49f02: 670e beqs 49f12 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 49f04: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49f06: 4eb9 0004 b1cc jsr 4b1cc <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 49f0c: 588f addql #4,%sp <== NOT EXECUTED 49f0e: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 49f12: 302a 0032 movew %a2@(50),%d0 <== NOT EXECUTED 49f16: 5380 subql #1,%d0 <== NOT EXECUTED 49f18: 3540 0032 movew %d0,%a2@(50) <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 49f1c: 42a7 clrl %sp@- <== NOT EXECUTED 49f1e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 49f22: 4eb9 0004 a55c jsr 4a55c <== NOT EXECUTED 49f28: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED /* * 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) ) { 49f2e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49f30: 4eb9 0004 a63a jsr 4a63a <== NOT EXECUTED 49f36: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49f3c: 4a80 tstl %d0 <== NOT EXECUTED 49f3e: 6628 bnes 49f68 <== NOT EXECUTED 49f40: 4a6a 0032 tstw %a2@(50) <== NOT EXECUTED 49f44: 6622 bnes 49f68 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 49f46: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 49f4c: 2653 moveal %a3@,%a3 <== NOT EXECUTED 49f4e: b7e8 0004 cmpal %a0@(4),%a3 <== NOT EXECUTED 49f52: 6736 beqs 49f8a <== NOT EXECUTED 49f54: 47f9 0004 a3d0 lea 4a3d0 ,%a3 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 49f5a: 7004 moveq #4,%d0 <== NOT EXECUTED 49f5c: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 49f60: 6714 beqs 49f76 <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 49f62: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49f64: 4e93 jsr %a3@ <== NOT EXECUTED 49f66: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 49f68: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 49f6c: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED 49f70: 4e5e unlk %fp <== NOT EXECUTED 49f72: 4280 clrl %d0 <== NOT EXECUTED 49f74: 4e75 rts <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 49f76: 202a 004c movel %a2@(76),%d0 <== NOT EXECUTED 49f7a: 67e6 beqs 49f62 <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 49f7c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49f7e: 4e93 jsr %a3@ <== NOT EXECUTED 49f80: 588f addql #4,%sp <== NOT EXECUTED } free( the_jnode ); 49f82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49f84: 4e93 jsr %a3@ <== NOT EXECUTED 49f86: 588f addql #4,%sp <== NOT EXECUTED 49f88: 60de bras 49f68 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; 49f8a: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED 49f8e: 47f9 0004 a3d0 lea 4a3d0 ,%a3 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 49f94: 7004 moveq #4,%d0 <== NOT EXECUTED 49f96: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 49f9a: 66c6 bnes 49f62 <== NOT EXECUTED 49f9c: 60d8 bras 49f76 <== NOT EXECUTED ... 00049fa0 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 49fa0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49fa4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 49fa8: 2050 moveal %a0@,%a0 <== NOT EXECUTED int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 49faa: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 49fae: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED 49fb2: 7204 moveq #4,%d1 <== NOT EXECUTED 49fb4: b280 cmpl %d0,%d1 <== NOT EXECUTED 49fb6: 6700 00a2 beqw 4a05a <== NOT EXECUTED 49fba: 6c1a bges 49fd6 <== NOT EXECUTED 49fbc: 7206 moveq #6,%d1 <== NOT EXECUTED 49fbe: b280 cmpl %d0,%d1 <== NOT EXECUTED 49fc0: 6c5e bges 4a020 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 49fc2: 4eb9 0004 c600 jsr 4c600 <__errno> <== 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; } 49fc8: 4e5e unlk %fp <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 49fca: 2040 moveal %d0,%a0 <== NOT EXECUTED 49fcc: 70ff moveq #-1,%d0 <== NOT EXECUTED 49fce: 20bc 0000 0086 movel #134,%a0@ <== 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; } 49fd4: 4e75 rts <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 49fd6: 123c 0002 moveb #2,%d1 <== NOT EXECUTED 49fda: b280 cmpl %d0,%d1 <== NOT EXECUTED 49fdc: 66e4 bnes 49fc2 <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 49fde: 2028 0050 movel %a0@(80),%d0 <== NOT EXECUTED 49fe2: 22a8 004c movel %a0@(76),%a1@ <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 49fe6: 3368 0032 0010 movew %a0@(50),%a1@(16) <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; 49fec: 2368 0034 0008 movel %a0@(52),%a1@(8) <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 49ff2: 2368 003c 0022 movel %a0@(60),%a1@(34) <== NOT EXECUTED } 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; 49ff8: 3368 0038 0012 movew %a0@(56),%a1@(18) <== NOT EXECUTED switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 49ffe: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED 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; 4a002: 4280 clrl %d0 <== NOT EXECUTED 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; 4a004: 2368 0040 002a movel %a0@(64),%a1@(42) <== NOT EXECUTED 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; 4a00a: 3368 003a 0014 movew %a0@(58),%a1@(20) <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 4a010: 2368 0044 0032 movel %a0@(68),%a1@(50) <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 4a016: 2368 002e 000c movel %a0@(46),%a1@(12) <== 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; } 4a01c: 4e5e unlk %fp <== NOT EXECUTED 4a01e: 4e75 rts <== NOT EXECUTED 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; 4a020: 4280 clrl %d0 <== NOT EXECUTED buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 4a022: 2368 004c 001e movel %a0@(76),%a1@(30) <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4a028: 2368 0034 0008 movel %a0@(52),%a1@(8) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 4a02e: 3368 0032 0010 movew %a0@(50),%a1@(16) <== NOT EXECUTED 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; 4a034: 2368 003c 0022 movel %a0@(60),%a1@(34) <== NOT EXECUTED } 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; 4a03a: 3368 0038 0012 movew %a0@(56),%a1@(18) <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 4a040: 2368 0040 002a movel %a0@(64),%a1@(42) <== NOT EXECUTED 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; 4a046: 3368 003a 0014 movew %a0@(58),%a1@(20) <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 4a04c: 2368 0044 0032 movel %a0@(68),%a1@(50) <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 4a052: 2368 002e 000c movel %a0@(46),%a1@(12) <== NOT EXECUTED 4a058: 60c2 bras 4a01c <== NOT EXECUTED case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; break; case IMFS_SYM_LINK: buf->st_size = 0; 4a05a: 42a9 001e clrl %a1@(30) <== NOT EXECUTED 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; 4a05e: 4280 clrl %d0 <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4a060: 2368 0034 0008 movel %a0@(52),%a1@(8) <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 4a066: 2368 003c 0022 movel %a0@(60),%a1@(34) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 4a06c: 3368 0032 0010 movew %a0@(50),%a1@(16) <== NOT EXECUTED 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; 4a072: 2368 0040 002a movel %a0@(64),%a1@(42) <== NOT EXECUTED } 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; 4a078: 3368 0038 0012 movew %a0@(56),%a1@(18) <== NOT EXECUTED 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; 4a07e: 2368 0044 0032 movel %a0@(68),%a1@(50) <== NOT EXECUTED 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; 4a084: 3368 003a 0014 movew %a0@(58),%a1@(20) <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 4a08a: 2368 002e 000c movel %a0@(46),%a1@(12) <== NOT EXECUTED 4a090: 608a bras 4a01c <== NOT EXECUTED ... 000458f4 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 458f4: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 458f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 458fa: 240e movel %fp,%d2 <== NOT EXECUTED 458fc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45900: 0682 ffff ffcb addil #-53,%d2 <== NOT EXECUTED 45906: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45908: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4590c: 4eb9 0004 5458 jsr 45458 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 45912: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 45916: 4eb9 0007 4340 jsr 74340 <== NOT EXECUTED if (info.sym_link.name == NULL) { 4591c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 45922: 2d40 ffec movel %d0,%fp@(-20) <== NOT EXECUTED if (info.sym_link.name == NULL) { 45926: 672e beqs 45956 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 45928: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4592c: 2f3c 0000 a1ff movel #41471,%sp@- <== NOT EXECUTED 45932: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45934: 4878 0004 pea 4 <== NOT EXECUTED 45938: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4593c: 4eb9 0005 ec84 jsr 5ec84 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 45942: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 45948: 4a80 tstl %d0 <== NOT EXECUTED 4594a: 6720 beqs 4596c <== NOT EXECUTED free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); } return 0; } 4594c: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED 45950: 4e5e unlk %fp <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 45952: 4280 clrl %d0 <== NOT EXECUTED free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); } return 0; } 45954: 4e75 rts <== NOT EXECUTED * Duplicate link name */ info.sym_link.name = strdup( link_name); if (info.sym_link.name == NULL) { rtems_set_errno_and_return_minus_one( ENOMEM); 45956: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 4595c: 740c moveq #12,%d2 <== NOT EXECUTED 4595e: 2040 moveal %d0,%a0 <== NOT EXECUTED 45960: 2082 movel %d2,%a0@ <== NOT EXECUTED free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); } return 0; } 45962: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED 45966: 4e5e unlk %fp <== NOT EXECUTED * Duplicate link name */ info.sym_link.name = strdup( link_name); if (info.sym_link.name == NULL) { rtems_set_errno_and_return_minus_one( ENOMEM); 45968: 70ff moveq #-1,%d0 <== NOT EXECUTED free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); } return 0; } 4596a: 4e75 rts <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free( info.sym_link.name); 4596c: 2f2e ffec movel %fp@(-20),%sp@- <== NOT EXECUTED 45970: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 45976: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED } return 0; } 4597c: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED &info ); if (new_node == NULL) { free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); 45980: 588f addql #4,%sp <== NOT EXECUTED 45982: 2040 moveal %d0,%a0 <== NOT EXECUTED 45984: 720c moveq #12,%d1 <== NOT EXECUTED } return 0; } 45986: 4e5e unlk %fp <== NOT EXECUTED &info ); if (new_node == NULL) { free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); 45988: 70ff moveq #-1,%d0 <== NOT EXECUTED 4598a: 2081 movel %d1,%a0@ <== NOT EXECUTED } return 0; } 4598c: 4e75 rts <== NOT EXECUTED ... 00045990 : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 45990: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 45994: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 45998: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 4599c: 2453 moveal %a3@,%a2 <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 4599e: 7003 moveq #3,%d0 <== NOT EXECUTED 459a0: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 459a4: 6662 bnes 45a08 <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 459a6: 202a 004c movel %a2@(76),%d0 <== NOT EXECUTED 459aa: 6774 beqs 45a20 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 459ac: 41eb 0004 lea %a3@(4),%a0 <== NOT EXECUTED 459b0: 2d58 ffec movel %a0@+,%fp@(-20) <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 459b4: 240e movel %fp,%d2 <== NOT EXECUTED /* * 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) 459b6: 7601 moveq #1,%d3 <== NOT EXECUTED if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 459b8: 2d4a ffe8 movel %a2,%fp@(-24) <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 459bc: 0682 ffff ffe8 addil #-24,%d2 <== NOT EXECUTED if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 459c2: 2d58 fff0 movel %a0@+,%fp@(-16) <== NOT EXECUTED 459c6: 2d50 fff4 movel %a0@,%fp@(-12) <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; 459ca: 2d40 ffe8 movel %d0,%fp@(-24) <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 459ce: 2f02 movel %d2,%sp@- <== NOT EXECUTED 459d0: 4eb9 0005 edd0 jsr 5edd0 <== NOT EXECUTED /* * 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) 459d6: 206a 004c moveal %a2@(76),%a0 <== NOT EXECUTED 459da: 4280 clrl %d0 <== NOT EXECUTED 459dc: 3228 0032 movew %a0@(50),%d1 <== NOT EXECUTED 459e0: 588f addql #4,%sp <== NOT EXECUTED 459e2: 3001 movew %d1,%d0 <== NOT EXECUTED 459e4: b680 cmpl %d0,%d3 <== NOT EXECUTED 459e6: 6750 beqs 45a38 <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 459e8: 2001 movel %d1,%d0 <== NOT EXECUTED 459ea: 5380 subql #1,%d0 <== NOT EXECUTED 459ec: 3140 0032 movew %d0,%a0@(50) <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 459f0: 42a7 clrl %sp@- <== NOT EXECUTED 459f2: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 459f6: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 459fc: 206a 004c moveal %a2@(76),%a0 <== NOT EXECUTED 45a00: 508f addql #8,%sp <== NOT EXECUTED 45a02: 216e fff8 0044 movel %fp@(-8),%a0@(68) <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( loc ); 45a08: 226b 0004 moveal %a3@(4),%a1 <== NOT EXECUTED 45a0c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 45a0e: 2069 0034 moveal %a1@(52),%a0 <== NOT EXECUTED 45a12: 4e90 jsr %a0@ <== NOT EXECUTED 45a14: 588f addql #4,%sp <== NOT EXECUTED return result; } 45a16: 4cee 0c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a3 <== NOT EXECUTED 45a1c: 4e5e unlk %fp <== NOT EXECUTED 45a1e: 4e75 rts <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 45a20: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 45a26: 2040 moveal %d0,%a0 <== NOT EXECUTED 45a28: 7016 moveq #22,%d0 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( loc ); return result; } 45a2a: 4cee 0c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a3 <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 45a30: 2080 movel %d0,%a0@ <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( loc ); return result; } 45a32: 4e5e unlk %fp <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 45a34: 70ff moveq #-1,%d0 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( loc ); return result; } 45a36: 4e75 rts <== NOT EXECUTED * 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)( &the_link ); 45a38: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45a3a: 206e ffec moveal %fp@(-20),%a0 <== NOT EXECUTED 45a3e: 2268 0034 moveal %a0@(52),%a1 <== NOT EXECUTED 45a42: 4e91 jsr %a1@ <== NOT EXECUTED if ( result != 0 ) 45a44: 588f addql #4,%sp <== NOT EXECUTED 45a46: 4a80 tstl %d0 <== NOT EXECUTED 45a48: 67be beqs 45a08 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( loc ); return result; } 45a4a: 4cee 0c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a3 <== NOT EXECUTED 45a50: 4e5e unlk %fp <== NOT EXECUTED */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( &the_link ); if ( result != 0 ) 45a52: 70ff moveq #-1,%d0 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( loc ); return result; } 45a54: 4e75 rts <== NOT EXECUTED ... 00045a58 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 45a58: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45a5c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 45a60: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 45a64: 7001 moveq #1,%d0 <== NOT EXECUTED 45a66: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 45a6a: 6610 bnes 45a7c <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 45a6c: 4aa8 0058 tstl %a0@(88) <== NOT EXECUTED 45a70: 671c beqs 45a8e <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; 45a72: 42a8 0058 clrl %a0@(88) <== NOT EXECUTED return 0; } 45a76: 4e5e unlk %fp <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; 45a78: 4280 clrl %d0 <== NOT EXECUTED return 0; } 45a7a: 4e75 rts <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 45a7c: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 45a82: 7214 moveq #20,%d1 <== NOT EXECUTED 45a84: 2040 moveal %d0,%a0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 45a86: 4e5e unlk %fp <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 45a88: 70ff moveq #-1,%d0 <== NOT EXECUTED 45a8a: 2081 movel %d1,%a0@ <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 45a8c: 4e75 rts <== 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 */ 45a8e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 45a94: 2040 moveal %d0,%a0 <== NOT EXECUTED 45a96: 7016 moveq #22,%d0 <== NOT EXECUTED 45a98: 2080 movel %d0,%a0@ <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 45a9a: 4e5e unlk %fp <== 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 */ 45a9c: 70ff moveq #-1,%d0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 45a9e: 4e75 rts 00045aa0 : int IMFS_utime( rtems_filesystem_location_info_t *pathloc, /* IN */ time_t actime, /* IN */ time_t modtime /* IN */ ) { 45aa0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45aa4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 45aa8: 2250 moveal %a0@,%a1 <== NOT EXECUTED the_jnode->stat_atime = actime; 45aaa: 236e 000c 003c movel %fp@(12),%a1@(60) <== NOT EXECUTED the_jnode->stat_mtime = modtime; return 0; } 45ab0: 4280 clrl %d0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; 45ab2: 236e 0010 0040 movel %fp@(16),%a1@(64) <== NOT EXECUTED return 0; } 45ab8: 4e5e unlk %fp <== NOT EXECUTED 45aba: 4e75 rts 000427fc : void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 427fc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42800: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42802: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 42806: 2079 0005 75d4 moveal 575d4 ,%a0 <== NOT EXECUTED void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 4280c: 2f02 movel %d2,%sp@- <== NOT EXECUTED #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 4280e: 4a88 tstl %a0 <== NOT EXECUTED 42810: 6704 beqs 42816 <== NOT EXECUTED (*rtems_malloc_statistics_helpers->initialize)(); 42812: 2050 moveal %a0@,%a0 <== NOT EXECUTED 42814: 4e90 jsr %a0@ <== NOT EXECUTED /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 42816: 4eb9 0004 a900 jsr 4a900 <== NOT EXECUTED starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 4281c: 2079 0005 75d8 moveal 575d8 ,%a0 <== NOT EXECUTED 42822: 4a88 tstl %a0 <== NOT EXECUTED 42824: 6760 beqs 42886 <== NOT EXECUTED starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 42826: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4282a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4282e: 2050 moveal %a0@,%a0 <== NOT EXECUTED 42830: 4e90 jsr %a0@ <== 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 ( rtems_configuration_get_do_zero_of_workspace() ) 42832: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 42838: 2400 movel %d0,%d2 <== NOT EXECUTED 4283a: 508f addql #8,%sp <== 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 ( rtems_configuration_get_do_zero_of_workspace() ) 4283c: 4a28 0028 tstb %a0@(40) <== NOT EXECUTED 42840: 6630 bnes 42872 <== NOT EXECUTED void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 42842: 4878 0004 pea 4 <== NOT EXECUTED 42846: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42848: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4284a: 4879 0005 85f8 pea 585f8 <== NOT EXECUTED 42850: 4eb9 0004 6c48 jsr 46c48 <_Heap_Initialize> <== NOT EXECUTED &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 42856: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4285c: 4a80 tstl %d0 <== NOT EXECUTED 4285e: 6738 beqs 42898 <== NOT EXECUTED rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 42860: d7b9 0005 8650 addl %d3,58650 <== NOT EXECUTED } 42866: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4286a: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4286e: 4e5e unlk %fp <== NOT EXECUTED 42870: 4e75 rts <== NOT EXECUTED * given to a process eliminates the chance of a process seeing data * left over from another process. This would be a security violation. */ if ( rtems_configuration_get_do_zero_of_workspace() ) memset( starting_address, 0, length ); 42872: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42874: 42a7 clrl %sp@- <== NOT EXECUTED 42876: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42878: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED 4287e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 42884: 60bc bras 42842 <== 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 ( rtems_configuration_get_do_zero_of_workspace() ) 42886: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 4288c: 242e 0008 movel %fp@(8),%d2 <== 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 ( rtems_configuration_get_do_zero_of_workspace() ) 42890: 4a28 0028 tstb %a0@(40) <== NOT EXECUTED 42894: 67ac beqs 42842 <== NOT EXECUTED 42896: 60da bras 42872 <== NOT EXECUTED starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) rtems_fatal_error_occurred( status ); 42898: 42a7 clrl %sp@- <== NOT EXECUTED 4289a: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 000447b0 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 447b0: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 447b4: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 447b8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 447bc: 4a8a tstl %a2 <== NOT EXECUTED 447be: 6700 00c8 beqw 44888 <== NOT EXECUTED return; if ( !print_handler ) 447c2: 2879 0008 6844 moveal 86844 ,%a4 <== NOT EXECUTED 447c8: 4a8c tstl %a4 <== NOT EXECUTED 447ca: 6700 00bc beqw 44888 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 447ce: 70ff moveq #-1,%d0 <== NOT EXECUTED 447d0: b08a cmpl %a2,%d0 <== NOT EXECUTED 447d2: 6700 00de beqw 448b2 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 447d6: 47ea 00c0 lea %a2@(192),%a3 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); 447da: 2613 movel %a3@,%d3 <== 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); 447dc: 242b 0004 movel %a3@(4),%d2 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 447e0: 282a 0100 movel %a2@(256),%d4 <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); 447e4: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 447ea: 2f03 movel %d3,%sp@- <== 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); 447ec: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); 447f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 447f4: 4eb9 0004 477a jsr 4477a <== NOT EXECUTED if ( high_water_mark ) 447fa: 508f addql #8,%sp <== NOT EXECUTED 447fc: 4a80 tstl %d0 <== NOT EXECUTED 447fe: 6700 00e8 beqw 448e8 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 44802: d483 addl %d3,%d2 <== NOT EXECUTED 44804: 9480 subl %d0,%d2 <== NOT EXECUTED else used = 0; if ( the_thread ) { 44806: 4a8a tstl %a2 <== NOT EXECUTED 44808: 6700 00e6 beqw 448f0 <== NOT EXECUTED (*print_handler)( 4480c: 486e fffb pea %fp@(-5) <== NOT EXECUTED 44810: 4878 0005 pea 5 <== NOT EXECUTED 44814: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 44818: 4eb9 0004 a008 jsr 4a008 <== NOT EXECUTED 4481e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44820: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 44824: 4879 0007 fa1c pea 7fa1c <== NOT EXECUTED 4482a: 2f39 0008 6840 movel 86840 ,%sp@- <== NOT EXECUTED 44830: 4e94 jsr %a4@ <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 44832: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { (*print_handler)( 44836: dffc 0000 001c addal #28,%sp <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 4483c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4483e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 44840: 2013 movel %a3@,%d0 <== NOT EXECUTED 44842: 5380 subql #1,%d0 <== NOT EXECUTED 44844: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 44848: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4484a: 4879 0007 fa37 pea 7fa37 <== NOT EXECUTED 44850: 2f39 0008 6840 movel 86840 ,%sp@- <== NOT EXECUTED 44856: 2079 0008 6844 moveal 86844 ,%a0 <== NOT EXECUTED 4485c: 4e90 jsr %a0@ <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 4485e: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 44864: 4ab9 0008 683c tstl 8683c <== NOT EXECUTED 4486a: 6726 beqs 44892 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 4486c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4486e: 4879 0007 fa62 pea 7fa62 <== NOT EXECUTED 44874: 2f39 0008 6840 movel 86840 ,%sp@- <== NOT EXECUTED 4487a: 2079 0008 6844 moveal 86844 ,%a0 <== NOT EXECUTED 44880: 4e90 jsr %a0@ <== NOT EXECUTED 44882: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } } 44888: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4488e: 4e5e unlk %fp <== NOT EXECUTED 44890: 4e75 rts <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 44892: 4879 0007 fa55 pea 7fa55 <== NOT EXECUTED 44898: 2f39 0008 6840 movel 86840 ,%sp@- <== NOT EXECUTED 4489e: 2079 0008 6844 moveal 86844 ,%a0 <== NOT EXECUTED 448a4: 4e90 jsr %a0@ <== NOT EXECUTED 448a6: 508f addql #8,%sp <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } } 448a8: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 448ae: 4e5e unlk %fp <== NOT EXECUTED 448b0: 4e75 rts <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 448b2: 4ab9 0009 9cf8 tstl 99cf8 <== NOT EXECUTED 448b8: 67ce beqs 44888 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 448ba: 47f9 0009 9cf4 lea 99cf4 ,%a3 <== 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); 448c0: 2613 movel %a3@,%d3 <== 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); 448c2: 242b 0004 movel %a3@(4),%d2 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 448c6: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 448cc: 2f03 movel %d3,%sp@- <== 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); 448ce: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 448d4: 95ca subal %a2,%a2 <== 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); 448d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 448d8: 4eb9 0004 477a jsr 4477a <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 448de: 4284 clrl %d4 <== 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 ) 448e0: 508f addql #8,%sp <== NOT EXECUTED 448e2: 4a80 tstl %d0 <== NOT EXECUTED 448e4: 6600 ff1c bnew 44802 <== NOT EXECUTED 448e8: 4282 clrl %d2 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { 448ea: 4a8a tstl %a2 <== NOT EXECUTED 448ec: 6600 ff1e bnew 4480c <== 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 ); 448f0: 4878 ffff pea ffffffff <== NOT EXECUTED 448f4: 4879 0007 fa29 pea 7fa29 <== NOT EXECUTED 448fa: 2f39 0008 6840 movel 86840 ,%sp@- <== NOT EXECUTED 44900: 4e94 jsr %a4@ <== NOT EXECUTED } (*print_handler)( 44902: 206b 0004 moveal %a3@(4),%a0 <== 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 ); 44906: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } (*print_handler)( 4490c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4490e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 44910: 2013 movel %a3@,%d0 <== NOT EXECUTED 44912: 5380 subql #1,%d0 <== NOT EXECUTED 44914: 4870 0800 pea %a0@(00000000,%d0:l) <== NOT EXECUTED 44918: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4491a: 4879 0007 fa37 pea 7fa37 <== NOT EXECUTED 44920: 2f39 0008 6840 movel 86840 ,%sp@- <== NOT EXECUTED 44926: 2079 0008 6844 moveal 86844 ,%a0 <== NOT EXECUTED 4492c: 4e90 jsr %a0@ <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 4492e: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 44934: 4ab9 0008 683c tstl 8683c <== NOT EXECUTED 4493a: 6600 ff30 bnew 4486c <== NOT EXECUTED 4493e: 6000 ff52 braw 44892 <== NOT EXECUTED 00044b56 : /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) { 44b56: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED uint32_t *p; if (Stack_check_Initialized) 44b5a: 4ab9 0008 683c tstl 8683c <== NOT EXECUTED 44b60: 666c bnes 44bce <== NOT EXECUTED /* * If appropriate, setup the interrupt stack for high water testing * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { 44b62: 2239 0009 9e90 movel 99e90 <_CPU_Interrupt_stack_low>,%d1 <== NOT EXECUTED for ( p = Stack_check_Pattern.pattern; p < &Stack_check_Pattern.pattern[PATTERN_SIZE_WORDS]; p += 4 ) { p[0] = 0xFEEDF00D; /* FEED FOOD to BAD DOG */ 44b68: 203c feed f00d movel #-17960947,%d0 <== NOT EXECUTED 44b6e: 23c0 0009 9ce4 movel %d0,99ce4 <== NOT EXECUTED p[1] = 0x0BAD0D06; 44b74: 203c 0bad 0d06 movel #195890438,%d0 <== NOT EXECUTED 44b7a: 23c0 0009 9ce8 movel %d0,99ce8 <== NOT EXECUTED p[2] = 0xDEADF00D; /* DEAD FOOD GOOD DOG */ 44b80: 203c dead f00d movel #-559026163,%d0 <== NOT EXECUTED 44b86: 23c0 0009 9cec movel %d0,99cec <== NOT EXECUTED p[3] = 0x600D0D06; 44b8c: 203c 600d 0d06 movel #1611468038,%d0 <== NOT EXECUTED 44b92: 23c0 0009 9cf0 movel %d0,99cf0 <== NOT EXECUTED /* * If appropriate, setup the interrupt stack for high water testing * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { 44b98: 4a81 tstl %d1 <== NOT EXECUTED 44b9a: 672a beqs 44bc6 <== NOT EXECUTED 44b9c: 2039 0009 9e34 movel 99e34 <_CPU_Interrupt_stack_high>,%d0 <== NOT EXECUTED 44ba2: 6722 beqs 44bc6 <== NOT EXECUTED Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - 44ba4: 9081 subl %d1,%d0 <== NOT EXECUTED (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 44ba6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44ba8: 4878 00a5 pea a5 <== NOT EXECUTED * If appropriate, setup the interrupt stack for high water testing * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; 44bac: 23c1 0009 9cf8 movel %d1,99cf8 <== NOT EXECUTED Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 44bb2: 2f01 movel %d1,%sp@- <== NOT EXECUTED * also. */ #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - 44bb4: 23c0 0009 9cf4 movel %d0,99cf4 <== NOT EXECUTED (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 44bba: 4eb9 0007 1dd4 jsr 71dd4 <== NOT EXECUTED 44bc0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } #endif Stack_check_Initialized = 1; 44bc6: 7001 moveq #1,%d0 <== NOT EXECUTED 44bc8: 23c0 0008 683c movel %d0,8683c <== NOT EXECUTED } 44bce: 4e5e unlk %fp <== NOT EXECUTED 44bd0: 4e75 rts 0004477a : */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 4477a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 4477e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 44782: 70fc moveq #-4,%d0 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 44784: d1fc 0000 0010 addal #16,%a0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 4478a: c0ae 000c andl %fp@(12),%d0 <== NOT EXECUTED 4478e: d088 addl %a0,%d0 <== NOT EXECUTED 44790: b088 cmpl %a0,%d0 <== NOT EXECUTED 44792: 6310 blss 447a4 <== NOT EXECUTED if (*base != U32_PATTERN) 44794: 223c a5a5 a5a5 movel #-1515870811,%d1 <== NOT EXECUTED 4479a: b290 cmpl %a0@,%d1 <== NOT EXECUTED 4479c: 660c bnes 447aa <== 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++) 4479e: 5888 addql #4,%a0 <== NOT EXECUTED 447a0: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 447a2: 65f0 bcss 44794 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 447a4: 4e5e unlk %fp <== 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++) 447a6: 4280 clrl %d0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 447a8: 4e75 rts <== NOT EXECUTED 447aa: 4e5e unlk %fp <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; 447ac: 2008 movel %a0,%d0 <== NOT EXECUTED #endif return (void *)0; } 447ae: 4e75 rts 000449be : */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 449be: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 449c2: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 449c6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; printk( 449ca: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 449ce: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; printk( 449d2: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 449d6: 47f9 0004 77c2 lea 477c2 ,%a3 <== NOT EXECUTED 449dc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 449de: 4879 0007 fac9 pea 7fac9 <== NOT EXECUTED 449e4: 4e93 jsr %a3@ <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 449e6: 202a 00c0 movel %a2@(192),%d0 <== NOT EXECUTED 449ea: 206a 00c4 moveal %a2@(196),%a0 <== NOT EXECUTED 449ee: 2f00 movel %d0,%sp@- <== NOT EXECUTED 449f0: 4870 08ff pea %a0@(ffffffff,%d0:l) <== NOT EXECUTED 449f4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 449f6: 4879 0007 fb07 pea 7fb07 <== NOT EXECUTED 449fc: 4e93 jsr %a3@ <== NOT EXECUTED stack->area, stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { 449fe: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 44a04: 4a02 tstb %d2 <== NOT EXECUTED 44a06: 670a beqs 44a12 <== NOT EXECUTED " Damaged pattern begins at 0x%08lx and is %d bytes long\n", (unsigned long) Stack_check_Get_pattern_area(stack), PATTERN_SIZE_BYTES); } rtems_fatal_error_occurred( 0x81 ); 44a08: 4878 0081 pea 81 <== NOT EXECUTED 44a0c: 4eb9 0004 aa28 jsr 4aa28 <== NOT EXECUTED stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { printk( 44a12: 4878 0010 pea 10 <== NOT EXECUTED 44a16: 246a 00c4 moveal %a2@(196),%a2 <== NOT EXECUTED 44a1a: 508a addql #8,%a2 <== NOT EXECUTED 44a1c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44a1e: 4879 0007 fb35 pea 7fb35 <== NOT EXECUTED 44a24: 4e93 jsr %a3@ <== NOT EXECUTED 44a26: dffc 0000 000c addal #12,%sp <== NOT EXECUTED " Damaged pattern begins at 0x%08lx and is %d bytes long\n", (unsigned long) Stack_check_Get_pattern_area(stack), PATTERN_SIZE_BYTES); } rtems_fatal_error_occurred( 0x81 ); 44a2c: 4878 0081 pea 81 <== NOT EXECUTED 44a30: 4eb9 0004 aa28 jsr 4aa28 <== NOT EXECUTED 000465d8 <_API_Mutex_Allocate>: #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { 465d8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, FALSE, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; 465dc: 7001 moveq #1,%d0 <== NOT EXECUTED 465de: 2d40 fff2 movel %d0,%fp@(-14) <== NOT EXECUTED 465e2: 4200 clrb %d0 <== NOT EXECUTED 465e4: 1d40 fff6 moveb %d0,%fp@(-10) <== NOT EXECUTED #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { 465e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, FALSE, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; 465ea: 7002 moveq #2,%d0 <== NOT EXECUTED mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); 465ec: 4879 0005 883c pea 5883c <_API_Mutex_Information> <== NOT EXECUTED CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, FALSE, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; 465f2: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 465f6: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); 465fa: 4eb9 0004 6f0c jsr 46f0c <_Objects_Allocate> <== NOT EXECUTED _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED ); 46600: 4878 0001 pea 1 <== NOT EXECUTED FALSE, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); 46604: 2440 moveal %d0,%a2 <== NOT EXECUTED _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED ); 46606: 486e fff2 pea %fp@(-14) <== NOT EXECUTED 4660a: 486a 0010 pea %a2@(16) <== NOT EXECUTED 4660e: 4eb9 0004 671c jsr 4671c <_CORE_mutex_Initialize> <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46614: 2079 0005 8856 moveal 58856 <_API_Mutex_Information+0x1a>,%a0 <== NOT EXECUTED 4661a: 4281 clrl %d1 <== NOT EXECUTED 4661c: 322a 000a movew %a2@(10),%d1 <== NOT EXECUTED 46620: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == FALSE */ the_object->name.name_u32 = name; 46624: 7001 moveq #1,%d0 <== NOT EXECUTED _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); *the_mutex = mutex; 46626: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4662c: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED 46630: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 46634: 208a movel %a2,%a0@ <== NOT EXECUTED } 46636: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED 4663a: 4e5e unlk %fp <== NOT EXECUTED 4663c: 4e75 rts <== NOT EXECUTED ... 00046674 <_API_Mutex_Initialization>: #include void _API_Mutex_Initialization( uint32_t maximum_mutexes ) { 46674: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 46678: 42a7 clrl %sp@- <== NOT EXECUTED 4667a: 42a7 clrl %sp@- <== NOT EXECUTED 4667c: 4878 0072 pea 72 <== NOT EXECUTED 46680: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46684: 4878 0002 pea 2 <== NOT EXECUTED 46688: 4878 0001 pea 1 <== NOT EXECUTED 4668c: 4879 0005 883c pea 5883c <_API_Mutex_Information> <== NOT EXECUTED 46692: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 46698: dffc 0000 001c addal #28,%sp <== NOT EXECUTED , TRUE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 4669e: 4e5e unlk %fp <== NOT EXECUTED 466a0: 4e75 rts <== NOT EXECUTED ... 00046640 <_API_Mutex_Lock>: #include void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) { 46640: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 46644: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED #include void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) { 4664a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4664e: 40c0 movew %sr,%d0 <== NOT EXECUTED 46650: 8280 orl %d0,%d1 <== NOT EXECUTED 46652: 46c1 movew %d1,%sr <== NOT EXECUTED _CORE_mutex_Seize( 46654: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46656: 42a7 clrl %sp@- <== NOT EXECUTED 46658: 4878 0001 pea 1 <== NOT EXECUTED 4665c: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 46660: 4868 0010 pea %a0@(16) <== NOT EXECUTED 46664: 4eb9 0004 68a6 jsr 468a6 <_CORE_mutex_Seize> <== NOT EXECUTED 4666a: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED the_mutex->Object.id, TRUE, 0, level ); } 46670: 4e5e unlk %fp <== NOT EXECUTED 46672: 4e75 rts 000466a4 <_API_Mutex_Unlock>: rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 466a4: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { 466aa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 466ae: 5280 addql #1,%d0 <== NOT EXECUTED 466b0: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 466b6: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED _Thread_Disable_dispatch(); _CORE_mutex_Surrender( 466ba: 42a7 clrl %sp@- <== NOT EXECUTED 466bc: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 466c0: 4868 0010 pea %a0@(16) <== NOT EXECUTED 466c4: 4eb9 0004 6958 jsr 46958 <_CORE_mutex_Surrender> <== NOT EXECUTED &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 466ca: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 466d0: 4e5e unlk %fp <== NOT EXECUTED _CORE_mutex_Surrender( &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 466d2: 4ef9 0004 7cbc jmp 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 000465bc <_API_extensions_Add>: */ void _API_extensions_Add( API_extensions_Control *the_extension ) { 465bc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Chain_Append( &_API_extensions_List, &the_extension->Node ); 465c0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 465c4: 4879 0005 88fe pea 588fe <_API_extensions_List> <== NOT EXECUTED 465ca: 4eb9 0004 66d8 jsr 466d8 <_Chain_Append> <== NOT EXECUTED 465d0: 508f addql #8,%sp <== NOT EXECUTED } 465d2: 4e5e unlk %fp <== NOT EXECUTED 465d4: 4e75 rts <== NOT EXECUTED ... 00046504 <_API_extensions_Initialization>: * * _API_extensions_Initialization */ void _API_extensions_Initialization( void ) { 46504: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 46508: 41f9 0005 88fe lea 588fe <_API_extensions_List>,%a0 <== NOT EXECUTED _Chain_Initialize_empty( &_API_extensions_List ); } 4650e: 4e5e unlk %fp <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 46510: 23c8 0005 8906 movel %a0,58906 <_API_extensions_List+0x8> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 46516: 20bc 0005 8902 movel #362754,%a0@ <== NOT EXECUTED the_chain->permanent_null = NULL; 4651c: 42b9 0005 8902 clrl 58902 <_API_extensions_List+0x4> <== NOT EXECUTED 46522: 4e75 rts 00046554 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 46554: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46558: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 4655a: 2479 0005 88fe moveal 588fe <_API_extensions_List>,%a2 <== NOT EXECUTED !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 46560: b5fc 0005 8902 cmpal #362754,%a2 <== NOT EXECUTED 46566: 6714 beqs 4657c <_API_extensions_Run_postdriver+0x28> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) 46568: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED 4656c: 4a88 tstl %a0 <== NOT EXECUTED 4656e: 6702 beqs 46572 <_API_extensions_Run_postdriver+0x1e> <== NOT EXECUTED (*the_extension->postdriver_hook)(); 46570: 4e90 jsr %a0@ <== NOT EXECUTED 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 ) { 46572: 2452 moveal %a2@,%a2 <== NOT EXECUTED { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 46574: b5fc 0005 8902 cmpal #362754,%a2 <== NOT EXECUTED 4657a: 66ec bnes 46568 <_API_extensions_Run_postdriver+0x14> <== NOT EXECUTED the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) (*the_extension->postdriver_hook)(); } } 4657c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46580: 4e5e unlk %fp <== NOT EXECUTED 46582: 4e75 rts 00046584 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 46584: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46588: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 4658a: 2479 0005 88fe moveal 588fe <_API_extensions_List>,%a2 <== NOT EXECUTED !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 46590: b5fc 0005 8902 cmpal #362754,%a2 <== NOT EXECUTED 46596: 671c beqs 465b4 <_API_extensions_Run_postswitch+0x30> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) 46598: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED 4659c: 4a88 tstl %a0 <== NOT EXECUTED 4659e: 670a beqs 465aa <_API_extensions_Run_postswitch+0x26> <== NOT EXECUTED (*the_extension->postswitch_hook)( _Thread_Executing ); 465a0: 2f39 0005 8812 movel 58812 <_Thread_Executing>,%sp@- <== NOT EXECUTED 465a6: 4e90 jsr %a0@ <== NOT EXECUTED 465a8: 588f addql #4,%sp <== NOT EXECUTED 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 ) { 465aa: 2452 moveal %a2@,%a2 <== NOT EXECUTED { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 465ac: b5fc 0005 8902 cmpal #362754,%a2 <== NOT EXECUTED 465b2: 66e4 bnes 46598 <_API_extensions_Run_postswitch+0x14> <== NOT EXECUTED the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) (*the_extension->postswitch_hook)( _Thread_Executing ); } } 465b4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 465b8: 4e5e unlk %fp <== NOT EXECUTED 465ba: 4e75 rts 00046524 <_API_extensions_Run_predriver>: * * _API_extensions_Run_predriver */ void _API_extensions_Run_predriver( void ) { 46524: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46528: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 4652a: 2479 0005 88fe moveal 588fe <_API_extensions_List>,%a2 <== NOT EXECUTED !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 46530: b5fc 0005 8902 cmpal #362754,%a2 <== NOT EXECUTED 46536: 6714 beqs 4654c <_API_extensions_Run_predriver+0x28> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) 46538: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED 4653c: 4a88 tstl %a0 <== NOT EXECUTED 4653e: 6702 beqs 46542 <_API_extensions_Run_predriver+0x1e> <== NOT EXECUTED (*the_extension->predriver_hook)(); 46540: 4e90 jsr %a0@ <== NOT EXECUTED 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 ) { 46542: 2452 moveal %a2@,%a2 <== NOT EXECUTED { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 46544: b5fc 0005 8902 cmpal #362754,%a2 <== NOT EXECUTED 4654a: 66ec bnes 46538 <_API_extensions_Run_predriver+0x14> <== NOT EXECUTED the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) (*the_extension->predriver_hook)(); } } 4654c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46550: 4e5e unlk %fp <== NOT EXECUTED 46552: 4e75 rts 0004ad1c <_Barrier_Manager_initialization>: */ void _Barrier_Manager_initialization( uint32_t maximum_barriers ) { 4ad1c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4ad20: 4878 0004 pea 4 <== NOT EXECUTED 4ad24: 42a7 clrl %sp@- <== NOT EXECUTED 4ad26: 4878 0060 pea 60 <== NOT EXECUTED 4ad2a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ad2e: 4878 000a pea a <== NOT EXECUTED 4ad32: 4878 0002 pea 2 <== NOT EXECUTED 4ad36: 4879 0005 89d6 pea 589d6 <_Barrier_Information> <== NOT EXECUTED 4ad3c: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4ad42: dffc 0000 001c addal #28,%sp <== NOT EXECUTED , FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 4ad48: 4e5e unlk %fp <== NOT EXECUTED 4ad4a: 4e75 rts 0004bdc0 <_Barrier_Translate_core_barrier_return_code>: }; rtems_status_code _Barrier_Translate_core_barrier_return_code ( CORE_barrier_Status the_barrier_status ) { 4bdc0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #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]; } 4bdc4: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED }; rtems_status_code _Barrier_Translate_core_barrier_return_code ( CORE_barrier_Status the_barrier_status ) { 4bdc8: 41f9 0005 9488 lea 59488 <_Barrier_Translate_core_barrier_return_code_>,%a0 <== NOT EXECUTED #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]; } 4bdce: 2030 1c00 movel %a0@(00000000,%d1:l:4),%d0 <== NOT EXECUTED 4bdd2: 4e5e unlk %fp <== NOT EXECUTED 4bdd4: 4e75 rts <== NOT EXECUTED ... 00047678 <_CORE_barrier_Initialize>: void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { 47678: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( 4767c: 4878 0003 pea 3 <== NOT EXECUTED void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { 47680: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47684: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( 47688: 2f3c 0001 0000 movel #65536,%sp@- <== NOT EXECUTED CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; 4768e: 2011 movel %a1@,%d0 <== NOT EXECUTED 47690: 2169 0004 0044 movel %a1@(4),%a0@(68) <== NOT EXECUTED the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( 47696: 42a7 clrl %sp@- <== NOT EXECUTED CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; 47698: 2140 0040 movel %d0,%a0@(64) <== NOT EXECUTED the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( 4769c: 2f08 movel %a0,%sp@- <== NOT EXECUTED CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; 4769e: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED _Thread_queue_Initialize( 476a2: 4eb9 0004 9550 jsr 49550 <_Thread_queue_Initialize> <== NOT EXECUTED 476a8: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED &the_barrier->Wait_queue, THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_BARRIER, CORE_BARRIER_TIMEOUT ); } 476ae: 4e5e unlk %fp <== NOT EXECUTED 476b0: 4e75 rts <== NOT EXECUTED ... 000476b4 <_CORE_barrier_Release>: uint32_t _CORE_barrier_Release( CORE_barrier_Control *the_barrier, Objects_Id id, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 476b4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 476b8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 476bc: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 476c0: 45f9 0004 912c lea 4912c <_Thread_queue_Dequeue>,%a2 <== NOT EXECUTED Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 476c6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 476c8: 4e92 jsr %a2@ <== NOT EXECUTED 476ca: 4282 clrl %d2 <== NOT EXECUTED 476cc: 588f addql #4,%sp <== NOT EXECUTED 476ce: 4a80 tstl %d0 <== NOT EXECUTED 476d0: 670c beqs 476de <_CORE_barrier_Release+0x2a> <== NOT EXECUTED 476d2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 476d4: 4e92 jsr %a2@ <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; 476d6: 5282 addql #1,%d2 <== NOT EXECUTED { Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 476d8: 588f addql #4,%sp <== NOT EXECUTED 476da: 4a80 tstl %d0 <== NOT EXECUTED 476dc: 66f4 bnes 476d2 <_CORE_barrier_Release+0x1e> <== NOT EXECUTED #endif count++; } the_barrier->number_of_waiting_threads = 0; return count; } 476de: 2002 movel %d2,%d0 <== NOT EXECUTED 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; 476e0: 42ab 0048 clrl %a3@(72) <== NOT EXECUTED return count; } 476e4: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 476ea: 4e5e unlk %fp <== NOT EXECUTED 476ec: 4e75 rts <== NOT EXECUTED ... 000476f0 <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 476f0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 476f4: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 476f8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 476fc: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 47700: 2279 0005 ac3a moveal 5ac3a <_Thread_Executing>,%a1 <== NOT EXECUTED executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 47706: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED { Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; 4770c: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 47710: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47714: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 47718: 40c1 movew %sr,%d1 <== NOT EXECUTED 4771a: 8081 orl %d1,%d0 <== NOT EXECUTED 4771c: 46c0 movew %d0,%sr <== NOT EXECUTED the_barrier->number_of_waiting_threads++; 4771e: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED 47722: 5280 addql #1,%d0 <== NOT EXECUTED 47724: 2140 0048 movel %d0,%a0@(72) <== NOT EXECUTED if ( the_barrier->number_of_waiting_threads == 47728: b0a8 0044 cmpl %a0@(68),%d0 <== NOT EXECUTED 4772c: 6606 bnes 47734 <_CORE_barrier_Wait+0x44> <== NOT EXECUTED the_barrier->Attributes.maximum_count) { if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 4772e: 4aa8 0040 tstl %a0@(64) <== NOT EXECUTED 47732: 672e beqs 47762 <_CORE_barrier_Wait+0x72> <== NOT EXECUTED 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; 47734: 7001 moveq #1,%d0 <== NOT EXECUTED } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; 47736: 2342 0020 movel %d2,%a1@(32) <== NOT EXECUTED 4773a: 2140 0030 movel %d0,%a0@(48) <== NOT EXECUTED return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; 4773e: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED executing->Wait.id = id; _ISR_Enable( level ); 47742: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 47744: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 47748: 203c 0004 9654 movel #300628,%d0 <== NOT EXECUTED 4774e: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED 47752: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 47756: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED 4775a: 4e5e unlk %fp <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4775c: 4ef9 0004 9294 jmp 49294 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; 47762: 7001 moveq #1,%d0 <== NOT EXECUTED 47764: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED _ISR_Enable( level ); 47768: 46c1 movew %d1,%sr <== NOT EXECUTED _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4776a: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED 4776e: 2d42 000c movel %d2,%fp@(12) <== NOT EXECUTED 47772: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); } 47776: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED 4777a: 4e5e unlk %fp <== NOT EXECUTED if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4777c: 4ef9 0004 76b4 jmp 476b4 <_CORE_barrier_Release> <== NOT EXECUTED ... 00054108 <_CORE_message_queue_Broadcast>: size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 54108: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5410c: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 54110: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 54114: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 54118: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 5411c: b6ab 004c cmpl %a3@(76),%d3 <== NOT EXECUTED 54120: 6268 bhis 5418a <_CORE_message_queue_Broadcast+0x82> <== NOT EXECUTED * 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 ) { 54122: 4aab 0048 tstl %a3@(72) <== NOT EXECUTED 54126: 6650 bnes 54178 <_CORE_message_queue_Broadcast+0x70> <== NOT EXECUTED * 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))) { 54128: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5412a: 49f9 0005 66a0 lea 566a0 <_Thread_queue_Dequeue>,%a4 <== NOT EXECUTED 54130: 4e94 jsr %a4@ <== NOT EXECUTED 54132: 4282 clrl %d2 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 54134: 4bf9 0005 b4b0 lea 5b4b0 ,%a5 <== NOT EXECUTED 5413a: 2440 moveal %d0,%a2 <== NOT EXECUTED 5413c: 588f addql #4,%sp <== NOT EXECUTED 5413e: 4a80 tstl %d0 <== NOT EXECUTED 54140: 6724 beqs 54166 <_CORE_message_queue_Broadcast+0x5e> <== NOT EXECUTED 54142: 2f03 movel %d3,%sp@- <== NOT EXECUTED waitp = &the_thread->Wait; number_broadcasted += 1; 54144: 5282 addql #1,%d2 <== NOT EXECUTED 54146: 2f04 movel %d4,%sp@- <== NOT EXECUTED 54148: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 5414c: 4e95 jsr %a5@ <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 5414e: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 54152: 2083 movel %d3,%a0@ <== NOT EXECUTED 54154: dffc 0000 000c addal #12,%sp <== NOT EXECUTED * 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))) { 5415a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5415c: 4e94 jsr %a4@ <== NOT EXECUTED 5415e: 588f addql #4,%sp <== NOT EXECUTED 54160: 2440 moveal %d0,%a2 <== NOT EXECUTED 54162: 4a80 tstl %d0 <== NOT EXECUTED 54164: 66dc bnes 54142 <_CORE_message_queue_Broadcast+0x3a> <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 54166: 206e 001c moveal %fp@(28),%a0 <== NOT EXECUTED 5416a: 2082 movel %d2,%a0@ <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 5416c: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 54172: 4e5e unlk %fp <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 54174: 4280 clrl %d0 <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 54176: 4e75 rts <== NOT EXECUTED * 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 ) { *count = 0; 54178: 206e 001c moveal %fp@(28),%a0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 5417c: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 54182: 4e5e unlk %fp <== NOT EXECUTED * 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 ) { *count = 0; 54184: 4280 clrl %d0 <== NOT EXECUTED 54186: 4290 clrl %a0@ <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 54188: 4e75 rts <== NOT EXECUTED 5418a: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 54190: 4e5e unlk %fp <== NOT EXECUTED { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 54192: 7001 moveq #1,%d0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 54194: 4e75 rts <== NOT EXECUTED ... 00052d50 <_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 ) { 52d50: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 52d54: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( 52d56: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED void _CORE_message_queue_Close( CORE_message_queue_Control *the_message_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 52d5a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( 52d5e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52d62: 2f0a movel %a2,%sp@- <== NOT EXECUTED 52d64: 4eb9 0004 ddd0 jsr 4ddd0 <_Thread_queue_Flush> <== NOT EXECUTED * 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 ) 52d6a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 52d70: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED 52d74: 6612 bnes 52d88 <_CORE_message_queue_Close+0x38> <== NOT EXECUTED (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 52d76: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED } 52d7c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 52d80: 4e5e unlk %fp <== NOT EXECUTED */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 52d82: 4ef9 0004 eb20 jmp 4eb20 <_Workspace_Free> <== NOT EXECUTED * 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 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); 52d88: 2f0a movel %a2,%sp@- <== NOT EXECUTED 52d8a: 4eb9 0005 2da4 jsr 52da4 <_CORE_message_queue_Flush_support> <== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); 52d90: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED } 52d96: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED * 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 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); 52d9a: 588f addql #4,%sp <== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); } 52d9c: 4e5e unlk %fp <== NOT EXECUTED */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 52d9e: 4ef9 0004 eb20 jmp 4eb20 <_Workspace_Free> <== NOT EXECUTED 000541ec <_CORE_message_queue_Flush>: */ uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { 541ec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 541f0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages != 0 ) 541f4: 4aa8 0048 tstl %a0@(72) <== NOT EXECUTED 541f8: 6606 bnes 54200 <_CORE_message_queue_Flush+0x14> <== NOT EXECUTED return _CORE_message_queue_Flush_support( the_message_queue ); else return 0; } 541fa: 4e5e unlk %fp <== NOT EXECUTED 541fc: 4280 clrl %d0 <== NOT EXECUTED 541fe: 4e75 rts <== NOT EXECUTED uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) return _CORE_message_queue_Flush_support( the_message_queue ); 54200: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED else return 0; } 54204: 4e5e unlk %fp <== NOT EXECUTED uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) return _CORE_message_queue_Flush_support( the_message_queue ); 54206: 4ef9 0005 420c jmp 5420c <_CORE_message_queue_Flush_support> <== NOT EXECUTED 00052da4 <_CORE_message_queue_Flush_support>: */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { 52da4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 52da8: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED * * 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 ); 52dac: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { 52db2: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED * * 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 ); 52db6: 40c1 movew %sr,%d1 <== NOT EXECUTED 52db8: 8081 orl %d1,%d0 <== NOT EXECUTED 52dba: 46c0 movew %d0,%sr <== NOT EXECUTED inactive_first = the_message_queue->Inactive_messages.first; message_queue_first = the_message_queue->Pending_messages.first; 52dbc: 2468 0050 moveal %a0@(80),%a2 <== NOT EXECUTED * 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; 52dc0: 2668 0068 moveal %a0@(104),%a3 <== NOT EXECUTED message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; 52dc4: 2268 0058 moveal %a0@(88),%a1 <== NOT EXECUTED the_message_queue->Inactive_messages.first = message_queue_first; 52dc8: 214a 0068 movel %a2,%a0@(104) <== NOT EXECUTED message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; message_queue_first->previous = 52dcc: 49e8 0068 lea %a0@(104),%a4 <== NOT EXECUTED _Chain_Head( &the_message_queue->Inactive_messages ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; 52dd0: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED 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; inactive_first->previous = message_queue_last; 52dd4: 2749 0004 movel %a1,%a3@(4) <== NOT EXECUTED 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; 52dd8: 228b movel %a3,%a1@ <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 52dda: 43e8 0054 lea %a0@(84),%a1 <== NOT EXECUTED inactive_first->previous = message_queue_last; message_queue_first->previous = 52dde: 254c 0004 movel %a4,%a2@(4) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 52de2: 49e8 0050 lea %a0@(80),%a4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 52de6: 2149 0050 movel %a1,%a0@(80) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 52dea: 214c 0058 movel %a4,%a0@(88) <== NOT EXECUTED _Chain_Head( &the_message_queue->Inactive_messages ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; 52dee: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 52df2: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED _ISR_Enable( level ); 52df6: 46c1 movew %d1,%sr <== NOT EXECUTED return count; } 52df8: 4cd7 1c00 moveml %sp@,%a2-%a4 <== NOT EXECUTED 52dfc: 4e5e unlk %fp <== NOT EXECUTED 52dfe: 4e75 rts 00054268 <_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 ) { 54268: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5426c: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 54270: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 54274: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED 54278: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED * 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)) { 5427c: 7003 moveq #3,%d0 <== NOT EXECUTED ) { size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; 5427e: 2543 0044 movel %d3,%a2@(68) <== NOT EXECUTED * 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)) { 54282: c081 andl %d1,%d0 <== NOT EXECUTED { 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; 54284: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED the_message_queue->maximum_message_size = maximum_message_size; 54288: 2541 004c movel %d1,%a2@(76) <== NOT EXECUTED CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 5428c: 42aa 0060 clrl %a2@(96) <== NOT EXECUTED the_message_queue->notify_argument = the_argument; 54290: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED * 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)) { 54294: 4a80 tstl %d0 <== NOT EXECUTED 54296: 6620 bnes 542b8 <_CORE_message_queue_Initialize+0x50> <== NOT EXECUTED 54298: 2001 movel %d1,%d0 <== NOT EXECUTED /* * 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 * 5429a: 2400 movel %d0,%d2 <== NOT EXECUTED 5429c: 0682 0000 0014 addil #20,%d2 <== NOT EXECUTED 542a2: 2202 movel %d2,%d1 <== NOT EXECUTED 542a4: 4c03 1800 mulsl %d3,%d1 <== NOT EXECUTED (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 542a8: b081 cmpl %d1,%d0 <== NOT EXECUTED 542aa: 631c blss 542c8 <_CORE_message_queue_Initialize+0x60> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 542ac: 4200 clrb %d0 <== NOT EXECUTED } 542ae: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 542b4: 4e5e unlk %fp <== NOT EXECUTED 542b6: 4e75 rts <== NOT EXECUTED * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { allocated_message_size += sizeof(uint32_t); 542b8: 2001 movel %d1,%d0 <== NOT EXECUTED 542ba: 5880 addql #4,%d0 <== NOT EXECUTED allocated_message_size &= ~(sizeof(uint32_t) - 1); 542bc: 74fc moveq #-4,%d2 <== NOT EXECUTED 542be: c082 andl %d2,%d0 <== NOT EXECUTED } if (allocated_message_size < maximum_message_size) 542c0: b081 cmpl %d1,%d0 <== NOT EXECUTED 542c2: 64d6 bccs 5429a <_CORE_message_queue_Initialize+0x32> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 542c4: 4200 clrb %d0 <== NOT EXECUTED 542c6: 60e6 bras 542ae <_CORE_message_queue_Initialize+0x46> <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 542c8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 542ca: 4eb9 0005 7a94 jsr 57a94 <_Workspace_Allocate> <== NOT EXECUTED _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 542d0: 588f addql #4,%sp <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 542d2: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 542d6: 67d4 beqs 542ac <_CORE_message_queue_Initialize+0x44> <== NOT EXECUTED /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 542d8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 542da: 2f03 movel %d3,%sp@- <== NOT EXECUTED 542dc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 542de: 486a 0068 pea %a2@(104) <== NOT EXECUTED 542e2: 4eb9 0005 40a8 jsr 540a8 <_Chain_Initialize> <== NOT EXECUTED allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 542e8: 4878 0006 pea 6 <== NOT EXECUTED 542ec: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 542f0: 7001 moveq #1,%d0 <== NOT EXECUTED 542f2: b090 cmpl %a0@,%d0 <== NOT EXECUTED 542f4: 57c0 seq %d0 <== NOT EXECUTED 542f6: 4878 0080 pea 80 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 542fa: 41ea 0054 lea %a2@(84),%a0 <== NOT EXECUTED 542fe: 49c0 extbl %d0 <== NOT EXECUTED 54300: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 54304: 41ea 0050 lea %a2@(80),%a0 <== NOT EXECUTED 54308: 4480 negl %d0 <== NOT EXECUTED 5430a: 2548 0058 movel %a0,%a2@(88) <== NOT EXECUTED 5430e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 54310: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 54312: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED 54316: 4eb9 0005 6ac4 jsr 56ac4 <_Thread_queue_Initialize> <== NOT EXECUTED 5431c: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 54322: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 54328: 4e5e unlk %fp <== NOT EXECUTED allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 5432a: 7001 moveq #1,%d0 <== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 5432c: 4e75 rts <== NOT EXECUTED ... 00055e30 <_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 ) { 55e30: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 55e34: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 55e38: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 55e3c: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 55e40: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED ISR_Level level; bool notify = false; the_message->priority = submit_type; 55e44: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED switch ( submit_type ) { 55e48: 0c80 8000 0000 cmpil #-2147483648,%d0 <== NOT EXECUTED 55e4e: 6700 00b4 beqw 55f04 <_CORE_message_queue_Insert_message+0xd4> <== NOT EXECUTED 55e52: 0c80 7fff ffff cmpil #2147483647,%d0 <== NOT EXECUTED 55e58: 6768 beqs 55ec2 <_CORE_message_queue_Insert_message+0x92> <== NOT EXECUTED CORE_message_queue_Buffer_control *this_message; Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; 55e5a: 206b 0050 moveal %a3@(80),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 55e5e: 220b movel %a3,%d1 <== NOT EXECUTED 55e60: 0681 0000 0054 addil #84,%d1 <== NOT EXECUTED while ( !_Chain_Is_tail( the_header, the_node ) ) { 55e66: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 55e68: 670c beqs 55e76 <_CORE_message_queue_Insert_message+0x46> <== NOT EXECUTED this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 55e6a: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED 55e6e: 6d08 blts 55e78 <_CORE_message_queue_Insert_message+0x48> <== NOT EXECUTED the_node = the_node->next; 55e70: 2050 moveal %a0@,%a0 <== NOT EXECUTED Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { 55e72: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 55e74: 66f4 bnes 55e6a <_CORE_message_queue_Insert_message+0x3a> <== NOT EXECUTED 55e76: 2041 moveal %d1,%a0 <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 55e78: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 55e7e: 40c2 movew %sr,%d2 <== NOT EXECUTED 55e80: 8082 orl %d2,%d0 <== NOT EXECUTED 55e82: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages++ == 0 ) notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); 55e84: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 55e88: 2250 moveal %a0@,%a1 <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 55e8a: 222b 0048 movel %a3@(72),%d1 <== NOT EXECUTED after_node->next = the_node; 55e8e: 208a movel %a2,%a0@ <== NOT EXECUTED 55e90: 4a81 tstl %d1 <== NOT EXECUTED 55e92: 57c0 seq %d0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 55e94: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 55e98: 5281 addql #1,%d1 <== NOT EXECUTED 55e9a: 4480 negl %d0 <== NOT EXECUTED 55e9c: 2741 0048 movel %d1,%a3@(72) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 55ea0: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 55ea4: 2489 movel %a1,%a2@ <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 55ea6: 46c2 movew %d2,%sr <== NOT EXECUTED * 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 ) 55ea8: 4a00 tstb %d0 <== NOT EXECUTED 55eaa: 6750 beqs 55efc <_CORE_message_queue_Insert_message+0xcc> <== NOT EXECUTED 55eac: 202b 0060 movel %a3@(96),%d0 <== NOT EXECUTED 55eb0: 674a beqs 55efc <_CORE_message_queue_Insert_message+0xcc> <== NOT EXECUTED (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 55eb2: 2240 moveal %d0,%a1 <== NOT EXECUTED 55eb4: 2d6b 0064 0008 movel %a3@(100),%fp@(8) <== NOT EXECUTED } 55eba: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 55ebe: 4e5e unlk %fp <== NOT EXECUTED * 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 ) (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 55ec0: 4ed1 jmp %a1@ <== NOT EXECUTED the_message->priority = submit_type; switch ( submit_type ) { case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 55ec2: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 55ec8: 40c2 movew %sr,%d2 <== NOT EXECUTED 55eca: 8082 orl %d2,%d0 <== NOT EXECUTED 55ecc: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages++ == 0 ) 55ece: 202b 0048 movel %a3@(72),%d0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 55ed2: 41eb 0054 lea %a3@(84),%a0 <== NOT EXECUTED 55ed6: 2488 movel %a0,%a2@ <== NOT EXECUTED old_last_node = the_chain->last; 55ed8: 206b 0058 moveal %a3@(88),%a0 <== NOT EXECUTED 55edc: 2200 movel %d0,%d1 <== NOT EXECUTED 55ede: 5281 addql #1,%d1 <== NOT EXECUTED 55ee0: 2741 0048 movel %d1,%a3@(72) <== NOT EXECUTED 55ee4: 4a80 tstl %d0 <== NOT EXECUTED 55ee6: 57c1 seq %d1 <== NOT EXECUTED the_chain->last = the_node; 55ee8: 274a 0058 movel %a2,%a3@(88) <== NOT EXECUTED 55eec: 2001 movel %d1,%d0 <== NOT EXECUTED 55eee: 4480 negl %d0 <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 55ef0: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 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; 55ef4: 208a movel %a2,%a0@ <== NOT EXECUTED notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 55ef6: 46c2 movew %d2,%sr <== NOT EXECUTED * 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 ) 55ef8: 4a00 tstb %d0 <== NOT EXECUTED 55efa: 66b0 bnes 55eac <_CORE_message_queue_Insert_message+0x7c> <== NOT EXECUTED (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); } 55efc: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 55f00: 4e5e unlk %fp <== NOT EXECUTED 55f02: 4e75 rts <== NOT EXECUTED notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); 55f04: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 55f0a: 40c2 movew %sr,%d2 <== NOT EXECUTED 55f0c: 8082 orl %d2,%d0 <== NOT EXECUTED 55f0e: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages++ == 0 ) 55f10: 202b 0048 movel %a3@(72),%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 55f14: 41eb 0050 lea %a3@(80),%a0 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 55f18: 2250 moveal %a0@,%a1 <== NOT EXECUTED 55f1a: 2200 movel %d0,%d1 <== NOT EXECUTED after_node->next = the_node; 55f1c: 208a movel %a2,%a0@ <== NOT EXECUTED 55f1e: 5281 addql #1,%d1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 55f20: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 55f24: 2741 0048 movel %d1,%a3@(72) <== NOT EXECUTED 55f28: 4a80 tstl %d0 <== NOT EXECUTED 55f2a: 57c1 seq %d1 <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 55f2c: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED 55f30: 2001 movel %d1,%d0 <== NOT EXECUTED 55f32: 4480 negl %d0 <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 55f34: 2489 movel %a1,%a2@ <== NOT EXECUTED notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 55f36: 46c2 movew %d2,%sr <== NOT EXECUTED 55f38: 6000 ff6e braw 55ea8 <_CORE_message_queue_Insert_message+0x78> <== NOT EXECUTED 00052e00 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 52e00: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 52e04: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 52e08: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED 52e0c: 282e 001c movel %fp@(28),%d4 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; 52e10: 2079 0006 6c9a moveal 66c9a <_Thread_Executing>,%a0 <== NOT EXECUTED executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 52e16: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 52e1c: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 52e20: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 52e24: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 52e28: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED 52e2c: 242e 0018 movel %fp@(24),%d2 <== NOT EXECUTED Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 52e30: 40c1 movew %sr,%d1 <== NOT EXECUTED 52e32: 8081 orl %d1,%d0 <== NOT EXECUTED 52e34: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 52e36: 246b 0050 moveal %a3@(80),%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 52e3a: 200b movel %a3,%d0 <== NOT EXECUTED 52e3c: 0680 0000 0054 addil #84,%d0 <== NOT EXECUTED 52e42: b08a cmpl %a2,%d0 <== NOT EXECUTED 52e44: 6700 008c beqw 52ed2 <_CORE_message_queue_Seize+0xd2> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 52e48: 2052 moveal %a2@,%a0 <== NOT EXECUTED the_chain->first = new_first; 52e4a: 2748 0050 movel %a0,%a3@(80) <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 52e4e: 49eb 0050 lea %a3@(80),%a4 <== NOT EXECUTED the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; 52e52: 53ab 0048 subql #1,%a3@(72) <== NOT EXECUTED 52e56: 214c 0004 movel %a4,%a0@(4) <== NOT EXECUTED _ISR_Enable( level ); 52e5a: 46c1 movew %d1,%sr <== NOT EXECUTED *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = the_message->priority; 52e5c: 2079 0006 6c9a moveal 66c9a <_Thread_Executing>,%a0 <== NOT EXECUTED 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; 52e62: 22aa 000c movel %a2@(12),%a1@ <== NOT EXECUTED _Thread_Executing->Wait.count = the_message->priority; _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size_p); 52e66: 240a movel %a2,%d2 <== NOT EXECUTED 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 = the_message->priority; 52e68: 216a 0008 0024 movel %a2@(8),%a0@(36) <== NOT EXECUTED _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size_p); 52e6e: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 52e74: 2f11 movel %a1@,%sp@- <== NOT EXECUTED 52e76: 49f9 0005 7b5c lea 57b5c ,%a4 <== NOT EXECUTED 52e7c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52e7e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 52e80: 4e94 jsr %a4@ <== NOT EXECUTED * * 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 ); 52e82: 2f0b movel %a3,%sp@- <== NOT EXECUTED 52e84: 4eb9 0004 d9e8 jsr 4d9e8 <_Thread_queue_Dequeue> <== NOT EXECUTED if ( !the_thread ) { 52e8a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED * * 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 ); 52e90: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !the_thread ) { 52e92: 4a80 tstl %d0 <== NOT EXECUTED 52e94: 6700 008a beqw 52f20 <_CORE_message_queue_Seize+0x120> <== NOT EXECUTED * puts the messages in the message queue on behalf of the * waiting task. */ the_message->priority = the_thread->Wait.count; the_message->Contents.size = (size_t) the_thread->Wait.option; 52e98: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED * There was a thread waiting to send a message. This code * puts the messages in the message queue on behalf of the * waiting task. */ the_message->priority = the_thread->Wait.count; 52e9c: 2568 0024 0008 movel %a0@(36),%a2@(8) <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 52ea2: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED 52ea6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 52ea8: 2f28 002c movel %a0@(44),%sp@- <== NOT EXECUTED 52eac: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52eae: 4e94 jsr %a4@ <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 52eb0: 2d6a 0008 0010 movel %a2@(8),%fp@(16) <== NOT EXECUTED 52eb6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 52ebc: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 52ec0: 2d4b 0008 movel %a3,%fp@(8) <== NOT EXECUTED 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 ); } 52ec4: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 52eca: 4e5e unlk %fp <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 52ecc: 4ef9 0005 5e30 jmp 55e30 <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 52ed2: 4a02 tstb %d2 <== NOT EXECUTED 52ed4: 6612 bnes 52ee8 <_CORE_message_queue_Seize+0xe8> <== NOT EXECUTED _ISR_Enable( level ); 52ed6: 46c1 movew %d1,%sr <== NOT EXECUTED 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 ); } 52ed8: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED return; } if ( !wait ) { _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 52ede: 7004 moveq #4,%d0 <== NOT EXECUTED 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 ); } 52ee0: 4e5e unlk %fp <== NOT EXECUTED return; } if ( !wait ) { _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 52ee2: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED 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 ); } 52ee6: 4e75 rts <== NOT EXECUTED 52ee8: 7001 moveq #1,%d0 <== NOT EXECUTED 52eea: 2740 0030 movel %d0,%a3@(48) <== NOT EXECUTED _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; 52eee: 2149 0028 movel %a1,%a0@(40) <== NOT EXECUTED return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; 52ef2: 214c 0020 movel %a4,%a0@(32) <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; 52ef6: 2143 002c movel %d3,%a0@(44) <== NOT EXECUTED 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; 52efa: 214b 0044 movel %a3,%a0@(68) <== NOT EXECUTED executing->Wait.id = id; 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 ); 52efe: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 52f00: 49f9 0004 df10 lea 4df10 <_Thread_queue_Timeout>,%a4 <== NOT EXECUTED 52f06: 2d44 000c movel %d4,%fp@(12) <== NOT EXECUTED 52f0a: 2d4c 0010 movel %a4,%fp@(16) <== NOT EXECUTED 52f0e: 2d4b 0008 movel %a3,%fp@(8) <== NOT EXECUTED } 52f12: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 52f18: 4e5e unlk %fp <== NOT EXECUTED 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 ); 52f1a: 4ef9 0004 db50 jmp 4db50 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 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 ); 52f20: d7fc 0000 0068 addal #104,%a3 <== NOT EXECUTED 52f26: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 52f2a: 2d4b 0008 movel %a3,%fp@(8) <== NOT EXECUTED } 52f2e: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 52f34: 4e5e unlk %fp <== NOT EXECUTED 52f36: 4ef9 0004 bf2c jmp 4bf2c <_Chain_Append> <== NOT EXECUTED 00052f3c <_CORE_message_queue_Submit>: CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 52f3c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 52f40: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 52f44: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 52f48: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 52f4c: 142e 0023 moveb %fp@(35),%d2 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 52f50: b6ab 004c cmpl %a3@(76),%d3 <== NOT EXECUTED 52f54: 627c bhis 52fd2 <_CORE_message_queue_Submit+0x96> <== NOT EXECUTED /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 52f56: 202b 0048 movel %a3@(72),%d0 <== NOT EXECUTED 52f5a: 6700 0082 beqw 52fde <_CORE_message_queue_Submit+0xa2> <== NOT EXECUTED /* * 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 < 52f5e: b0ab 0044 cmpl %a3@(68),%d0 <== NOT EXECUTED 52f62: 6500 00d4 bcsw 53038 <_CORE_message_queue_Submit+0xfc> <== NOT EXECUTED * 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 ) { 52f66: 4a02 tstb %d2 <== NOT EXECUTED 52f68: 6700 00b6 beqw 53020 <_CORE_message_queue_Submit+0xe4> <== NOT EXECUTED /* * 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() ) { 52f6c: 2039 0006 6c7a movel 66c7a <_ISR_Nest_level>,%d0 <== NOT EXECUTED 52f72: 6600 00b8 bnew 5302c <_CORE_message_queue_Submit+0xf0> <== NOT EXECUTED */ { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); 52f76: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED * it as a variable. Doing this emphasizes how dangerous it * would be to use this variable prior to here. */ { Thread_Control *executing = _Thread_Executing; 52f7c: 2079 0006 6c9a moveal 66c9a <_Thread_Executing>,%a0 <== NOT EXECUTED _ISR_Disable( level ); 52f82: 40c0 movew %sr,%d0 <== NOT EXECUTED 52f84: 8280 orl %d0,%d1 <== NOT EXECUTED 52f86: 46c1 movew %d1,%sr <== NOT EXECUTED 52f88: 7201 moveq #1,%d1 <== NOT EXECUTED 52f8a: 2741 0030 movel %d1,%a3@(48) <== NOT EXECUTED _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; 52f8e: 222e 001c movel %fp@(28),%d1 <== NOT EXECUTED Thread_Control *executing = _Thread_Executing; _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; 52f92: 216e 0014 0020 movel %fp@(20),%a0@(32) <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; 52f98: 2141 0024 movel %d1,%a0@(36) <== NOT EXECUTED _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; executing->Wait.return_argument_second.immutable_object = buffer; 52f9c: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED executing->Wait.option = (uint32_t) size; 52fa0: 2143 0030 movel %d3,%a0@(48) <== NOT EXECUTED _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; executing->Wait.return_argument_second.immutable_object = buffer; 52fa4: 2141 002c movel %d1,%a0@(44) <== NOT EXECUTED { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 52fa8: 214b 0044 movel %a3,%a0@(68) <== NOT EXECUTED executing->Wait.id = id; executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; _ISR_Enable( level ); 52fac: 46c0 movew %d0,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 52fae: 4879 0004 df10 pea 4df10 <_Thread_queue_Timeout> <== NOT EXECUTED 52fb4: 2f2e 0024 movel %fp@(36),%sp@- <== NOT EXECUTED 52fb8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 52fba: 4eb9 0004 db50 jsr 4db50 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 52fc0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 52fc6: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 52fcc: 4e5e unlk %fp <== NOT EXECUTED 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 ); 52fce: 7007 moveq #7,%d0 <== NOT EXECUTED } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 52fd0: 4e75 rts <== NOT EXECUTED 52fd2: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 52fd8: 4e5e unlk %fp <== NOT EXECUTED { ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 52fda: 7001 moveq #1,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 52fdc: 4e75 rts <== NOT EXECUTED /* * 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 ); 52fde: 2f0b movel %a3,%sp@- <== NOT EXECUTED 52fe0: 4eb9 0004 d9e8 jsr 4d9e8 <_Thread_queue_Dequeue> <== NOT EXECUTED if ( the_thread ) { 52fe6: 588f addql #4,%sp <== NOT EXECUTED /* * 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 ); 52fe8: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread ) { 52fea: 4a80 tstl %d0 <== NOT EXECUTED 52fec: 6700 0096 beqw 53084 <_CORE_message_queue_Submit+0x148> <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 52ff0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 52ff2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52ff6: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 52ffa: 4eb9 0005 7b5c jsr 57b5c <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 53000: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED the_thread->Wait.count = submit_type; 53004: 222e 001c movel %fp@(28),%d1 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 53008: 2083 movel %d3,%a0@ <== NOT EXECUTED the_thread->Wait.count = submit_type; 5300a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 53010: 4280 clrl %d0 <== NOT EXECUTED 53012: 2541 0024 movel %d1,%a2@(36) <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 53016: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 5301c: 4e5e unlk %fp <== NOT EXECUTED 5301e: 4e75 rts <== NOT EXECUTED 53020: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 53026: 4e5e unlk %fp <== NOT EXECUTED * 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 ) { 53028: 7002 moveq #2,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 5302a: 4e75 rts <== NOT EXECUTED 5302c: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 53032: 4e5e unlk %fp <== NOT EXECUTED _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; 53034: 7003 moveq #3,%d0 <== NOT EXECUTED } 53036: 4e75 rts <== NOT EXECUTED 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 *) 53038: 486b 0068 pea %a3@(104) <== NOT EXECUTED 5303c: 4eb9 0004 bf64 jsr 4bf64 <_Chain_Get> <== NOT EXECUTED /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 53042: 588f addql #4,%sp <== NOT EXECUTED 53044: 2440 moveal %d0,%a2 <== NOT EXECUTED 53046: 4a80 tstl %d0 <== NOT EXECUTED 53048: 67e2 beqs 5302c <_CORE_message_queue_Submit+0xf0> <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 5304a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5304c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 53050: 486a 0010 pea %a2@(16) <== NOT EXECUTED 53054: 4eb9 0005 7b5c jsr 57b5c <== NOT EXECUTED buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; the_message->priority = submit_type; 5305a: 202e 001c movel %fp@(28),%d0 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 5305e: 2543 000c movel %d3,%a2@(12) <== NOT EXECUTED the_message->priority = submit_type; 53062: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED _CORE_message_queue_Insert_message( 53066: 2f00 movel %d0,%sp@- <== NOT EXECUTED 53068: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5306a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5306c: 4eb9 0005 5e30 jsr 55e30 <_CORE_message_queue_Insert_message> <== NOT EXECUTED 53072: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 53078: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 5307e: 4e5e unlk %fp <== NOT EXECUTED size ); the_message->Contents.size = size; the_message->priority = submit_type; _CORE_message_queue_Insert_message( 53080: 4280 clrl %d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 53082: 4e75 rts <== NOT EXECUTED * 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 ) { 53084: 202b 0048 movel %a3@(72),%d0 <== NOT EXECUTED 53088: 6000 fed4 braw 52f5e <_CORE_message_queue_Submit+0x22> <== NOT EXECUTED 00046710 <_CORE_mutex_Flush>: void _CORE_mutex_Flush( CORE_mutex_Control *the_mutex, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 46710: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Thread_queue_Flush( &the_mutex->Wait_queue, remote_extract_callout, status ); } 46714: 4e5e unlk %fp <== NOT EXECUTED CORE_mutex_Control *the_mutex, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { _Thread_queue_Flush( 46716: 4ef9 0004 84a0 jmp 484a0 <_Thread_queue_Flush> <== NOT EXECUTED 0004671c <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 4671c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46720: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46722: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 46726: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED /* 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; 4672a: 204a moveal %a2,%a0 <== NOT EXECUTED 4672c: 2358 0040 movel %a0@+,%a1@(64) <== NOT EXECUTED CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 46730: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED /* 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; 46734: 2358 0044 movel %a0@+,%a1@(68) <== NOT EXECUTED 46738: 2358 0048 movel %a0@+,%a1@(72) <== NOT EXECUTED 4673c: 3350 004c movew %a0@,%a1@(76) <== NOT EXECUTED the_mutex->lock = initial_lock; 46740: 2340 004e movel %d0,%a1@(78) <== NOT EXECUTED the_mutex->blocked_count = 0; 46744: 42a9 0056 clrl %a1@(86) <== NOT EXECUTED if ( initial_lock == CORE_MUTEX_LOCKED ) { 46748: 4a80 tstl %d0 <== NOT EXECUTED 4674a: 6656 bnes 467a2 <_CORE_mutex_Initialize+0x86> <== NOT EXECUTED the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 4674c: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; 46752: 103c 0001 moveb #1,%d0 <== NOT EXECUTED 46756: 2340 0052 movel %d0,%a1@(82) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 4675a: 2029 0046 movel %a1@(70),%d0 <== NOT EXECUTED the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; 4675e: 2368 0008 005e movel %a0@(8),%a1@(94) <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 46764: 7202 moveq #2,%d1 <== NOT EXECUTED 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; 46766: 2348 005a movel %a0,%a1@(90) <== NOT EXECUTED the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4676a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4676c: 6766 beqs 467d4 <_CORE_mutex_Initialize+0xb8> <== NOT EXECUTED 4676e: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 46772: b280 cmpl %d0,%d1 <== NOT EXECUTED 46774: 675e beqs 467d4 <_CORE_mutex_Initialize+0xb8> <== NOT EXECUTED the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46776: 4878 0005 pea 5 <== NOT EXECUTED 4677a: 4aaa 0006 tstl %a2@(6) <== NOT EXECUTED 4677e: 56c0 sne %d0 <== NOT EXECUTED 46780: 4878 0400 pea 400 <== NOT EXECUTED 46784: 49c0 extbl %d0 <== NOT EXECUTED 46786: 4480 negl %d0 <== NOT EXECUTED 46788: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4678a: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4678c: 4eb9 0004 84dc jsr 484dc <_Thread_queue_Initialize> <== NOT EXECUTED 46792: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 46798: 4280 clrl %d0 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 4679a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4679e: 4e5e unlk %fp <== NOT EXECUTED 467a0: 4e75 rts <== NOT EXECUTED #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; 467a2: 42a9 0052 clrl %a1@(82) <== NOT EXECUTED the_mutex->holder = NULL; 467a6: 42a9 005a clrl %a1@(90) <== NOT EXECUTED the_mutex->holder_id = 0; 467aa: 42a9 005e clrl %a1@(94) <== NOT EXECUTED } _Thread_queue_Initialize( 467ae: 4878 0005 pea 5 <== NOT EXECUTED 467b2: 4aaa 0006 tstl %a2@(6) <== NOT EXECUTED 467b6: 56c0 sne %d0 <== NOT EXECUTED 467b8: 4878 0400 pea 400 <== NOT EXECUTED 467bc: 49c0 extbl %d0 <== NOT EXECUTED 467be: 4480 negl %d0 <== NOT EXECUTED 467c0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 467c2: 2f09 movel %a1,%sp@- <== NOT EXECUTED 467c4: 4eb9 0004 84dc jsr 484dc <_Thread_queue_Initialize> <== NOT EXECUTED 467ca: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 467d0: 4280 clrl %d0 <== NOT EXECUTED 467d2: 60c6 bras 4679a <_CORE_mutex_Initialize+0x7e> <== NOT EXECUTED the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < 467d4: 2029 004a movel %a1@(74),%d0 <== NOT EXECUTED 467d8: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 467dc: 622a bhis 46808 <_CORE_mutex_Initialize+0xec> <== NOT EXECUTED _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++; 467de: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 467e2: 4878 0005 pea 5 <== NOT EXECUTED 467e6: 4aaa 0006 tstl %a2@(6) <== NOT EXECUTED 467ea: 56c0 sne %d0 <== NOT EXECUTED 467ec: 4878 0400 pea 400 <== NOT EXECUTED 467f0: 49c0 extbl %d0 <== NOT EXECUTED 467f2: 4480 negl %d0 <== NOT EXECUTED 467f4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 467f6: 2f09 movel %a1,%sp@- <== NOT EXECUTED 467f8: 4eb9 0004 84dc jsr 484dc <_Thread_queue_Initialize> <== NOT EXECUTED 467fe: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 46804: 4280 clrl %d0 <== NOT EXECUTED 46806: 6092 bras 4679a <_CORE_mutex_Initialize+0x7e> <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 46808: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4680c: 4e5e unlk %fp <== NOT EXECUTED the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < 4680e: 7006 moveq #6,%d0 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 46810: 4e75 rts <== NOT EXECUTED ... 000468a6 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 468a6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 468aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 468ac: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 468b0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 468b4: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 468ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED 468bc: 1401 moveb %d1,%d2 <== NOT EXECUTED _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 468be: 4a80 tstl %d0 <== NOT EXECUTED 468c0: 6704 beqs 468c6 <_CORE_mutex_Seize+0x20> <== NOT EXECUTED 468c2: 4a01 tstb %d1 <== NOT EXECUTED 468c4: 6634 bnes 468fa <_CORE_mutex_Seize+0x54> <== NOT EXECUTED 468c6: 486e 0018 pea %fp@(24) <== NOT EXECUTED 468ca: 2f0a movel %a2,%sp@- <== NOT EXECUTED 468cc: 4eb9 0004 b294 jsr 4b294 <_CORE_mutex_Seize_interrupt_trylock> <== NOT EXECUTED 468d2: 508f addql #8,%sp <== NOT EXECUTED 468d4: 4a80 tstl %d0 <== NOT EXECUTED 468d6: 6716 beqs 468ee <_CORE_mutex_Seize+0x48> <== NOT EXECUTED 468d8: 4a02 tstb %d2 <== NOT EXECUTED 468da: 6636 bnes 46912 <_CORE_mutex_Seize+0x6c> <== NOT EXECUTED 468dc: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED 468e0: 46c0 movew %d0,%sr <== NOT EXECUTED 468e2: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 468e8: 7201 moveq #1,%d1 <== NOT EXECUTED 468ea: 2141 0034 movel %d1,%a0@(52) <== NOT EXECUTED } 468ee: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 468f2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 468f6: 4e5e unlk %fp <== NOT EXECUTED 468f8: 4e75 rts <== NOT EXECUTED bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 468fa: 7001 moveq #1,%d0 <== NOT EXECUTED 468fc: b0b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d0 <== NOT EXECUTED 46902: 64c2 bccs 468c6 <_CORE_mutex_Seize+0x20> <== NOT EXECUTED 46904: 4878 0013 pea 13 <== NOT EXECUTED 46908: 42a7 clrl %sp@- <== NOT EXECUTED 4690a: 42a7 clrl %sp@- <== NOT EXECUTED 4690c: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED 46912: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 46918: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 4691e: 216e 000c 0020 movel %fp@(12),%a0@(32) <== NOT EXECUTED 46924: 5280 addql #1,%d0 <== NOT EXECUTED 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; 46926: 7201 moveq #1,%d1 <== NOT EXECUTED 46928: 2541 0030 movel %d1,%a2@(48) <== NOT EXECUTED 4692c: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 46932: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED 46936: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED 4693a: 46c0 movew %d0,%sr <== NOT EXECUTED 4693c: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 46940: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46942: 4eb9 0004 6814 jsr 46814 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED } 46948: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4694c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 46950: 508f addql #8,%sp <== NOT EXECUTED } 46952: 4e5e unlk %fp <== NOT EXECUTED 46954: 4e75 rts <== NOT EXECUTED ... 00046814 <_CORE_mutex_Seize_interrupt_blocking>: void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 46814: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46818: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4681a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4681e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46820: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; 46824: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 4682a: 7002 moveq #2,%d0 <== NOT EXECUTED 4682c: b0aa 0046 cmpl %a2@(70),%d0 <== NOT EXECUTED 46830: 672a beqs 4685c <_CORE_mutex_Seize_interrupt_blocking+0x48> <== NOT EXECUTED ); } } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 46832: 4879 0004 85e0 pea 485e0 <_Thread_queue_Timeout> <== NOT EXECUTED FALSE ); } } the_mutex->blocked_count++; 46838: 52aa 0056 addql #1,%a2@(86) <== NOT EXECUTED _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4683c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4683e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46840: 4eb9 0004 8220 jsr 48220 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); } 46846: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4684a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 4684e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 46854: 4e5e unlk %fp <== NOT EXECUTED } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 46856: 4ef9 0004 7cbc jmp 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { if ( the_mutex->holder->current_priority > executing->current_priority ) { 4685c: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED 46860: 206a 005a moveal %a2@(90),%a0 <== NOT EXECUTED 46864: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 46868: 64c8 bccs 46832 <_CORE_mutex_Seize_interrupt_blocking+0x1e> <== NOT EXECUTED _Thread_Change_priority( 4686a: 42a7 clrl %sp@- <== NOT EXECUTED 4686c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4686e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46870: 4eb9 0004 7794 jsr 47794 <_Thread_Change_priority> <== NOT EXECUTED 46876: dffc 0000 000c addal #12,%sp <== NOT EXECUTED ); } } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4687c: 4879 0004 85e0 pea 485e0 <_Thread_queue_Timeout> <== NOT EXECUTED FALSE ); } } the_mutex->blocked_count++; 46882: 52aa 0056 addql #1,%a2@(86) <== NOT EXECUTED _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 46886: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46888: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4688a: 4eb9 0004 8220 jsr 48220 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); } 46890: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46894: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 46898: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 4689e: 4e5e unlk %fp <== NOT EXECUTED } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 468a0: 4ef9 0004 7cbc jmp 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 0004b294 <_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 ) { 4b294: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b298: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4b29c: 2f02 movel %d2,%sp@- <== NOT EXECUTED CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 4b29e: 2410 movel %a0@,%d2 <== NOT EXECUTED /* disabled when you get here */ executing = _Thread_Executing; 4b2a0: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 4b2a6: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 4b2aa: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 4b2ae: 4aa9 004e tstl %a1@(78) <== NOT EXECUTED 4b2b2: 6734 beqs 4b2e8 <_CORE_mutex_Seize_interrupt_trylock+0x54> <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 4b2b4: 42a9 004e clrl %a1@(78) <== NOT EXECUTED the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 4b2b8: 7201 moveq #1,%d1 <== NOT EXECUTED 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; 4b2ba: 2368 0008 005e movel %a0@(8),%a1@(94) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 4b2c0: 2029 0046 movel %a1@(70),%d0 <== NOT EXECUTED 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; 4b2c4: 2341 0052 movel %d1,%a1@(82) <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4b2c8: 123c 0002 moveb #2,%d1 <== NOT EXECUTED 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; 4b2cc: 2348 005a movel %a0,%a1@(90) <== NOT EXECUTED the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4b2d0: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b2d2: 6724 beqs 4b2f8 <_CORE_mutex_Seize_interrupt_trylock+0x64> <== NOT EXECUTED 4b2d4: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 4b2d8: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b2da: 671c beqs 4b2f8 <_CORE_mutex_Seize_interrupt_trylock+0x64> <== NOT EXECUTED executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( level ); 4b2dc: 46c2 movew %d2,%sr <== NOT EXECUTED return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 4b2de: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b2e2: 4e5e unlk %fp <== NOT EXECUTED 4b2e4: 4280 clrl %d0 <== NOT EXECUTED 4b2e6: 4e75 rts <== NOT EXECUTED /* * 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 ) ) { 4b2e8: b1e9 005a cmpal %a1@(90),%a0 <== NOT EXECUTED 4b2ec: 6744 beqs 4b332 <_CORE_mutex_Seize_interrupt_trylock+0x9e> <== NOT EXECUTED 4b2ee: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b2f2: 4e5e unlk %fp <== NOT EXECUTED the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; _ISR_Enable( level ); 4b2f4: 7001 moveq #1,%d0 <== NOT EXECUTED 4b2f6: 4e75 rts <== NOT EXECUTED _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 4b2f8: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 4b2fc: 7003 moveq #3,%d0 <== NOT EXECUTED 4b2fe: b0a9 0046 cmpl %a1@(70),%d0 <== NOT EXECUTED 4b302: 66d8 bnes 4b2dc <_CORE_mutex_Seize_interrupt_trylock+0x48> <== NOT EXECUTED */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 4b304: 2229 004a movel %a1@(74),%d1 <== NOT EXECUTED current = executing->current_priority; 4b308: 2028 0014 movel %a0@(20),%d0 <== NOT EXECUTED if ( current == ceiling ) { 4b30c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4b30e: 6750 beqs 4b360 <_CORE_mutex_Seize_interrupt_trylock+0xcc> <== NOT EXECUTED _ISR_Enable( level ); return 0; } if ( current > ceiling ) { 4b310: 625a bhis 4b36c <_CORE_mutex_Seize_interrupt_trylock+0xd8> <== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4b312: 7206 moveq #6,%d1 <== NOT EXECUTED 4b314: 2141 0034 movel %d1,%a0@(52) <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4b318: 7001 moveq #1,%d0 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 4b31a: 42a9 0052 clrl %a1@(82) <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 4b31e: 2340 004e movel %d0,%a1@(78) <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 4b322: 53a8 001c subql #1,%a0@(28) <== NOT EXECUTED _ISR_Enable( level ); 4b326: 46c2 movew %d2,%sr <== NOT EXECUTED 4b328: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b32c: 4e5e unlk %fp <== NOT EXECUTED 4b32e: 4200 clrb %d0 <== NOT EXECUTED 4b330: 4e75 rts <== NOT EXECUTED * 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 ) { 4b332: 2029 0040 movel %a1@(64),%d0 <== NOT EXECUTED 4b336: 6718 beqs 4b350 <_CORE_mutex_Seize_interrupt_trylock+0xbc> <== NOT EXECUTED 4b338: 7201 moveq #1,%d1 <== NOT EXECUTED 4b33a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b33c: 66b0 bnes 4b2ee <_CORE_mutex_Seize_interrupt_trylock+0x5a> <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4b33e: 7002 moveq #2,%d0 <== NOT EXECUTED 4b340: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED _ISR_Enable( level ); 4b344: 46c2 movew %d2,%sr <== NOT EXECUTED 4b346: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b34a: 4e5e unlk %fp <== NOT EXECUTED 4b34c: 4200 clrb %d0 <== NOT EXECUTED 4b34e: 4e75 rts <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 4b350: 52a9 0052 addql #1,%a1@(82) <== NOT EXECUTED _ISR_Enable( level ); 4b354: 46c2 movew %d2,%sr <== NOT EXECUTED 4b356: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b35a: 4e5e unlk %fp <== NOT EXECUTED 4b35c: 4280 clrl %d0 <== NOT EXECUTED 4b35e: 4e75 rts <== NOT EXECUTED Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( level ); 4b360: 46c2 movew %d2,%sr <== NOT EXECUTED 4b362: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b366: 4e5e unlk %fp <== NOT EXECUTED 4b368: 4280 clrl %d0 <== NOT EXECUTED 4b36a: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4b36c: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4b372: 5280 addql #1,%d0 <== NOT EXECUTED 4b374: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( level ); 4b37a: 46c2 movew %d2,%sr <== NOT EXECUTED _Thread_Change_priority( 4b37c: 42a7 clrl %sp@- <== NOT EXECUTED 4b37e: 2f29 004a movel %a1@(74),%sp@- <== NOT EXECUTED 4b382: 2f29 005a movel %a1@(90),%sp@- <== NOT EXECUTED 4b386: 4eb9 0004 7794 jsr 47794 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 4b38c: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 4b392: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b396: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4b39c: 4e5e unlk %fp <== NOT EXECUTED 4b39e: 4280 clrl %d0 <== NOT EXECUTED 4b3a0: 4e75 rts <== NOT EXECUTED ... 00046958 <_CORE_mutex_Surrender>: CORE_mutex_Status _CORE_mutex_Surrender( CORE_mutex_Control *the_mutex, Objects_Id id, CORE_mutex_API_mp_support_callout api_mutex_mp_support ) { 46958: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4695c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4695e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED Thread_Control *the_thread; Thread_Control *holder; #ifdef __RTEMS_STRICT_ORDER_MUTEX__ Chain_Node *first_node; #endif holder = the_mutex->holder; 46962: 206a 005a moveal %a2@(90),%a0 <== NOT EXECUTED * 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 ) { 46966: 4a2a 0044 tstb %a2@(68) <== NOT EXECUTED 4696a: 6712 beqs 4697e <_CORE_mutex_Surrender+0x26> <== NOT EXECUTED if ( !_Thread_Is_executing( holder ) ) 4696c: b1f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 46972: 670a beqs 4697e <_CORE_mutex_Surrender+0x26> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46974: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46978: 4e5e unlk %fp <== NOT EXECUTED * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { if ( !_Thread_Is_executing( holder ) ) 4697a: 7003 moveq #3,%d0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 4697c: 4e75 rts <== NOT EXECUTED return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 4697e: 202a 0052 movel %a2@(82),%d0 <== NOT EXECUTED 46982: 6776 beqs 469fa <_CORE_mutex_Surrender+0xa2> <== NOT EXECUTED return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 46984: 5380 subql #1,%d0 <== NOT EXECUTED 46986: 2540 0052 movel %d0,%a2@(82) <== NOT EXECUTED if ( the_mutex->nest_count != 0 ) { 4698a: 670e beqs 4699a <_CORE_mutex_Surrender+0x42> <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4698c: 202a 0040 movel %a2@(64),%d0 <== NOT EXECUTED 46990: 6768 beqs 469fa <_CORE_mutex_Surrender+0xa2> <== NOT EXECUTED 46992: 7201 moveq #1,%d1 <== NOT EXECUTED 46994: b280 cmpl %d0,%d1 <== NOT EXECUTED 46996: 6700 00c4 beqw 46a5c <_CORE_mutex_Surrender+0x104> <== NOT EXECUTED 4699a: 202a 0046 movel %a2@(70),%d0 <== NOT EXECUTED /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4699e: 7202 moveq #2,%d1 <== NOT EXECUTED 469a0: b280 cmpl %d0,%d1 <== NOT EXECUTED 469a2: 6700 0086 beqw 46a2a <_CORE_mutex_Surrender+0xd2> <== NOT EXECUTED 469a6: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 469aa: b280 cmpl %d0,%d1 <== NOT EXECUTED 469ac: 677c beqs 46a2a <_CORE_mutex_Surrender+0xd2> <== NOT EXECUTED } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 469ae: 42aa 005a clrl %a2@(90) <== NOT EXECUTED /* * 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 ) || 469b2: 7202 moveq #2,%d1 <== NOT EXECUTED first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; the_mutex->holder_id = 0; 469b4: 42aa 005e clrl %a2@(94) <== NOT EXECUTED /* * 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 ) || 469b8: b280 cmpl %d0,%d1 <== NOT EXECUTED 469ba: 6748 beqs 46a04 <_CORE_mutex_Surrender+0xac> <== NOT EXECUTED 469bc: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 469c0: b280 cmpl %d0,%d1 <== NOT EXECUTED 469c2: 6740 beqs 46a04 <_CORE_mutex_Surrender+0xac> <== NOT EXECUTED /* * 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 ) ) ) { 469c4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 469c6: 4eb9 0004 80b8 jsr 480b8 <_Thread_queue_Dequeue> <== NOT EXECUTED 469cc: 588f addql #4,%sp <== NOT EXECUTED 469ce: 2040 moveal %d0,%a0 <== NOT EXECUTED 469d0: 4a80 tstl %d0 <== NOT EXECUTED 469d2: 6700 00a0 beqw 46a74 <_CORE_mutex_Surrender+0x11c> <== NOT EXECUTED #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 469d6: 7201 moveq #1,%d1 <== NOT EXECUTED } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 469d8: 2568 0008 005e movel %a0@(8),%a2@(94) <== NOT EXECUTED the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 469de: 202a 0046 movel %a2@(70),%d0 <== NOT EXECUTED #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 469e2: 2541 0052 movel %d1,%a2@(82) <== NOT EXECUTED switch ( the_mutex->Attributes.discipline ) { 469e6: 123c 0002 moveb #2,%d1 <== NOT EXECUTED } else #endif { the_mutex->holder = the_thread; 469ea: 2548 005a movel %a0,%a2@(90) <== NOT EXECUTED the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 469ee: b280 cmpl %d0,%d1 <== NOT EXECUTED 469f0: 6774 beqs 46a66 <_CORE_mutex_Surrender+0x10e> <== NOT EXECUTED 469f2: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 469f6: b280 cmpl %d0,%d1 <== NOT EXECUTED 469f8: 6738 beqs 46a32 <_CORE_mutex_Surrender+0xda> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 469fa: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 469fe: 4e5e unlk %fp <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 46a00: 4280 clrl %d0 <== NOT EXECUTED return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a02: 4e75 rts <== NOT EXECUTED _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 && 46a04: 4aa8 001c tstl %a0@(28) <== NOT EXECUTED 46a08: 66ba bnes 469c4 <_CORE_mutex_Surrender+0x6c> <== NOT EXECUTED 46a0a: 2028 0018 movel %a0@(24),%d0 <== NOT EXECUTED 46a0e: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 46a12: 67b0 beqs 469c4 <_CORE_mutex_Surrender+0x6c> <== NOT EXECUTED holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 46a14: 4878 0001 pea 1 <== NOT EXECUTED 46a18: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46a1a: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46a1c: 4eb9 0004 7794 jsr 47794 <_Thread_Change_priority> <== NOT EXECUTED 46a22: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46a28: 609a bras 469c4 <_CORE_mutex_Surrender+0x6c> <== NOT EXECUTED the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; 46a2a: 53a8 001c subql #1,%a0@(28) <== NOT EXECUTED 46a2e: 6000 ff7e braw 469ae <_CORE_mutex_Surrender+0x56> <== NOT EXECUTED 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++; 46a32: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 46a36: 202a 004a movel %a2@(74),%d0 <== NOT EXECUTED 46a3a: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 46a3e: 64ba bccs 469fa <_CORE_mutex_Surrender+0xa2> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 46a40: 42a7 clrl %sp@- <== NOT EXECUTED 46a42: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46a44: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46a46: 4eb9 0004 7794 jsr 47794 <_Thread_Change_priority> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a4c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < the_thread->current_priority){ _Thread_Change_priority( 46a50: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a56: 4e5e unlk %fp <== NOT EXECUTED the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < the_thread->current_priority){ _Thread_Change_priority( 46a58: 4280 clrl %d0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a5a: 4e75 rts <== NOT EXECUTED 46a5c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46a60: 4e5e unlk %fp <== NOT EXECUTED return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 46a62: 7002 moveq #2,%d0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a64: 4e75 rts <== NOT EXECUTED 46a66: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 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++; 46a6a: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a6e: 4e5e unlk %fp <== NOT EXECUTED 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++; 46a70: 4280 clrl %d0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a72: 4e75 rts <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 46a74: 7001 moveq #1,%d0 <== NOT EXECUTED 46a76: 2540 004e movel %d0,%a2@(78) <== NOT EXECUTED return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a7a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46a7e: 4e5e unlk %fp <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 46a80: 4200 clrb %d0 <== NOT EXECUTED return CORE_MUTEX_STATUS_SUCCESSFUL; } 46a82: 4e75 rts 00046a84 <_CORE_semaphore_Flush>: void _CORE_semaphore_Flush( CORE_semaphore_Control *the_semaphore, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 46a84: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED &the_semaphore->Wait_queue, remote_extract_callout, status ); } 46a88: 4e5e unlk %fp <== NOT EXECUTED Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { _Thread_queue_Flush( 46a8a: 4ef9 0004 84a0 jmp 484a0 <_Thread_queue_Flush> <== NOT EXECUTED 00046a90 <_CORE_semaphore_Initialize>: void _CORE_semaphore_Initialize( CORE_semaphore_Control *the_semaphore, CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { 46a90: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED the_semaphore->Attributes = *the_semaphore_attributes; the_semaphore->count = initial_value; _Thread_queue_Initialize( 46a94: 4878 0003 pea 3 <== NOT EXECUTED void _CORE_semaphore_Initialize( CORE_semaphore_Control *the_semaphore, CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { 46a98: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 46a9c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED the_semaphore->Attributes = *the_semaphore_attributes; 46aa0: 2368 0004 0044 movel %a0@(4),%a1@(68) <== NOT EXECUTED the_semaphore->count = initial_value; _Thread_queue_Initialize( 46aa6: 7001 moveq #1,%d0 <== NOT EXECUTED 46aa8: b0a8 0004 cmpl %a0@(4),%d0 <== NOT EXECUTED 46aac: 57c0 seq %d0 <== NOT EXECUTED CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { the_semaphore->Attributes = *the_semaphore_attributes; 46aae: 2210 movel %a0@,%d1 <== NOT EXECUTED the_semaphore->count = initial_value; _Thread_queue_Initialize( 46ab0: 4878 0200 pea 200 <== NOT EXECUTED 46ab4: 49c0 extbl %d0 <== NOT EXECUTED 46ab6: 4480 negl %d0 <== NOT EXECUTED 46ab8: 2f00 movel %d0,%sp@- <== NOT EXECUTED uint32_t initial_value ) { the_semaphore->Attributes = *the_semaphore_attributes; the_semaphore->count = initial_value; 46aba: 236e 0010 0048 movel %fp@(16),%a1@(72) <== NOT EXECUTED CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { the_semaphore->Attributes = *the_semaphore_attributes; 46ac0: 2341 0040 movel %d1,%a1@(64) <== NOT EXECUTED the_semaphore->count = initial_value; _Thread_queue_Initialize( 46ac4: 2f09 movel %a1,%sp@- <== NOT EXECUTED 46ac6: 4eb9 0004 84dc jsr 484dc <_Thread_queue_Initialize> <== NOT EXECUTED 46acc: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED _CORE_semaphore_Is_priority( the_semaphore_attributes ) ? THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_SEMAPHORE, CORE_SEMAPHORE_TIMEOUT ); } 46ad2: 4e5e unlk %fp <== NOT EXECUTED 46ad4: 4e75 rts <== NOT EXECUTED ... 00046ad8 <_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 ) { 46ad8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46adc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46ade: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 46ae2: 2f02 movel %d2,%sp@- <== NOT EXECUTED ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { 46ae4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46ae6: 4eb9 0004 80b8 jsr 480b8 <_Thread_queue_Dequeue> <== NOT EXECUTED 46aec: 588f addql #4,%sp <== NOT EXECUTED 46aee: 4a80 tstl %d0 <== NOT EXECUTED 46af0: 670e beqs 46b00 <_CORE_semaphore_Surrender+0x28> <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 46af2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46af6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46afa: 4e5e unlk %fp <== NOT EXECUTED ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { 46afc: 4280 clrl %d0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 46afe: 4e75 rts <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); 46b00: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 46b06: 40c2 movew %sr,%d2 <== NOT EXECUTED 46b08: 8082 orl %d2,%d0 <== NOT EXECUTED 46b0a: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 46b0c: 222a 0048 movel %a2@(72),%d1 <== NOT EXECUTED 46b10: b2aa 0040 cmpl %a2@(64),%d1 <== NOT EXECUTED 46b14: 6510 bcss 46b26 <_CORE_semaphore_Surrender+0x4e> <== NOT EXECUTED 46b16: 7004 moveq #4,%d0 <== NOT EXECUTED the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 46b18: 46c2 movew %d2,%sr <== NOT EXECUTED } return status; } 46b1a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46b1e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46b22: 4e5e unlk %fp <== NOT EXECUTED 46b24: 4e75 rts <== NOT EXECUTED #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; 46b26: 5281 addql #1,%d1 <== NOT EXECUTED 46b28: 2541 0048 movel %d1,%a2@(72) <== NOT EXECUTED 46b2c: 4280 clrl %d0 <== NOT EXECUTED else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 46b2e: 46c2 movew %d2,%sr <== NOT EXECUTED 46b30: 60e8 bras 46b1a <_CORE_semaphore_Surrender+0x42> <== NOT EXECUTED ... 000466d8 <_Chain_Append>: void _Chain_Append( Chain_Control *the_chain, Chain_Node *node ) { 466d8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 466dc: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 466de: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED void _Chain_Append( Chain_Control *the_chain, Chain_Node *node ) { 466e4: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 466e8: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 466ec: 40c0 movew %sr,%d0 <== NOT EXECUTED 466ee: 8280 orl %d0,%d1 <== NOT EXECUTED 466f0: 46c1 movew %d1,%sr <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 466f2: 2209 movel %a1,%d1 <== NOT EXECUTED 466f4: 5881 addql #4,%d1 <== NOT EXECUTED 466f6: 2081 movel %d1,%a0@ <== NOT EXECUTED old_last_node = the_chain->last; 466f8: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED the_chain->last = the_node; 466fc: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 46700: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED 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; 46704: 2488 movel %a0,%a2@ <== NOT EXECUTED _Chain_Append_unprotected( the_chain, node ); _ISR_Enable( level ); 46706: 46c0 movew %d0,%sr <== NOT EXECUTED } 46708: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4670a: 4e5e unlk %fp <== NOT EXECUTED 4670c: 4e75 rts <== NOT EXECUTED ... 0004b1cc <_Chain_Extract>: */ void _Chain_Extract( Chain_Node *node ) { 4b1cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b1d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4b1d2: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED */ void _Chain_Extract( Chain_Node *node ) { 4b1d8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4b1dc: 40c0 movew %sr,%d0 <== NOT EXECUTED 4b1de: 8280 orl %d0,%d1 <== NOT EXECUTED 4b1e0: 46c1 movew %d1,%sr <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 4b1e2: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4b1e6: 2052 moveal %a2@,%a0 <== NOT EXECUTED previous = the_node->previous; next->previous = previous; previous->next = next; 4b1e8: 2288 movel %a0,%a1@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4b1ea: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED _Chain_Extract_unprotected( node ); _ISR_Enable( level ); 4b1ee: 46c0 movew %d0,%sr <== NOT EXECUTED } 4b1f0: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4b1f2: 4e5e unlk %fp <== NOT EXECUTED 4b1f4: 4e75 rts <== NOT EXECUTED ... 0004b1f8 <_Chain_Get>: */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) { 4b1f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b1fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level ); 4b1fe: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) { 4b204: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level ); 4b208: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b20a: 8081 orl %d1,%d0 <== NOT EXECUTED 4b20c: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4b20e: 204a moveal %a2,%a0 <== NOT EXECUTED 4b210: 2258 moveal %a0@+,%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( the_chain ) ) 4b212: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 4b214: 6712 beqs 4b228 <_Chain_Get+0x30> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 4b216: 2051 moveal %a1@,%a0 <== NOT EXECUTED the_chain->first = new_first; 4b218: 2488 movel %a0,%a2@ <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 4b21a: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level ); 4b21e: 46c1 movew %d1,%sr <== NOT EXECUTED return return_node; } 4b220: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4b222: 4e5e unlk %fp <== NOT EXECUTED 4b224: 2009 movel %a1,%d0 <== NOT EXECUTED 4b226: 4e75 rts <== NOT EXECUTED ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level ); if ( !_Chain_Is_empty( the_chain ) ) 4b228: 93c9 subal %a1,%a1 <== NOT EXECUTED return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level ); 4b22a: 46c1 movew %d1,%sr <== NOT EXECUTED return return_node; } 4b22c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4b22e: 4e5e unlk %fp <== NOT EXECUTED 4b230: 2009 movel %a1,%d0 <== NOT EXECUTED 4b232: 4e75 rts 0004b234 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 4b234: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4b238: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 4b23c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4b240: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4b244: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 4b248: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; 4b24c: 42aa 0004 clrl %a2@(4) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 4b250: 224a moveal %a2,%a1 <== NOT EXECUTED next = starting_address; while ( count-- ) { 4b252: 4a80 tstl %d0 <== NOT EXECUTED 4b254: 672c beqs 4b282 <_Chain_Initialize+0x4e> <== NOT EXECUTED 4b256: 2043 moveal %d3,%a0 <== NOT EXECUTED current->next = next; next->previous = current; 4b258: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b25c: 5380 subql #1,%d0 <== NOT EXECUTED 4b25e: 2400 movel %d0,%d2 <== NOT EXECUTED current->next = next; 4b260: 2288 movel %a0,%a1@ <== NOT EXECUTED Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 4b262: 2248 moveal %a0,%a1 <== NOT EXECUTED 4b264: d1c1 addal %d1,%a0 <== NOT EXECUTED count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b266: 4a80 tstl %d0 <== NOT EXECUTED 4b268: 6710 beqs 4b27a <_Chain_Initialize+0x46> <== NOT EXECUTED current->next = next; next->previous = current; 4b26a: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED 4b26e: 5380 subql #1,%d0 <== NOT EXECUTED count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { current->next = next; 4b270: 2288 movel %a0,%a1@ <== NOT EXECUTED Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 4b272: 2248 moveal %a0,%a1 <== NOT EXECUTED 4b274: d1c1 addal %d1,%a0 <== NOT EXECUTED count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b276: 4a80 tstl %d0 <== NOT EXECUTED 4b278: 66f0 bnes 4b26a <_Chain_Initialize+0x36> <== NOT EXECUTED 4b27a: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED 4b27e: 2243 moveal %d3,%a1 <== NOT EXECUTED 4b280: d3c1 addal %d1,%a1 <== NOT EXECUTED next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); 4b282: 200a movel %a2,%d0 <== NOT EXECUTED 4b284: 5880 addql #4,%d0 <== NOT EXECUTED 4b286: 2280 movel %d0,%a1@ <== NOT EXECUTED the_chain->last = current; 4b288: 2549 0008 movel %a1,%a2@(8) <== NOT EXECUTED } 4b28c: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 4b290: 4e5e unlk %fp <== NOT EXECUTED 4b292: 4e75 rts 000631dc <_Chain_Insert>: void _Chain_Insert( Chain_Node *after_node, Chain_Node *node ) { 631dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 631e0: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 631e2: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED void _Chain_Insert( Chain_Node *after_node, Chain_Node *node ) { 631e8: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 631ec: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 631f0: 40c0 movew %sr,%d0 <== NOT EXECUTED 631f2: 8280 orl %d0,%d1 <== NOT EXECUTED 631f4: 46c1 movew %d1,%sr <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 631f6: 2451 moveal %a1@,%a2 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 631f8: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 631fc: 2288 movel %a0,%a1@ <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 631fe: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 63202: 208a movel %a2,%a0@ <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 63204: 46c0 movew %d0,%sr <== NOT EXECUTED } 63206: 245f moveal %sp@+,%a2 <== NOT EXECUTED 63208: 4e5e unlk %fp <== NOT EXECUTED 6320a: 4e75 rts 0004b160 <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 4b160: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b164: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4b168: c0b9 0005 8816 andl 58816 <_Debug_Level>,%d0 <== NOT EXECUTED 4b16e: 56c0 sne %d0 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 4b170: 4e5e unlk %fp <== NOT EXECUTED 4b172: 4480 negl %d0 <== NOT EXECUTED 4b174: 4e75 rts <== NOT EXECUTED ... 0004b12c <_Debug_Manager_initialization>: * * _Debug_Manager_initialization */ void _Debug_Manager_initialization( void ) { 4b12c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); } 4b130: 4e5e unlk %fp <== NOT EXECUTED void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; 4b132: 42b9 0005 8816 clrl 58816 <_Debug_Level> <== NOT EXECUTED */ void _Debug_Manager_initialization( void ) { rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); } 4b138: 4e75 rts 0004ad4c <_Dual_ported_memory_Manager_initialization>: */ void _Dual_ported_memory_Manager_initialization( uint32_t maximum_ports ) { 4ad4c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4ad50: 4878 0004 pea 4 <== NOT EXECUTED 4ad54: 42a7 clrl %sp@- <== NOT EXECUTED 4ad56: 4878 001c pea 1c <== NOT EXECUTED 4ad5a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ad5e: 4878 0007 pea 7 <== NOT EXECUTED 4ad62: 4878 0002 pea 2 <== NOT EXECUTED 4ad66: 4879 0005 8a12 pea 58a12 <_Dual_ported_memory_Information> <== NOT EXECUTED 4ad6c: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4ad72: dffc 0000 001c addal #28,%sp <== NOT EXECUTED , FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 4ad78: 4e5e unlk %fp <== NOT EXECUTED 4ad7a: 4e75 rts 0004ad7c <_Event_Manager_initialization>: * * This routine performs the initialization necessary for this manager. */ void _Event_Manager_initialization( void ) { 4ad7c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); #endif } 4ad80: 4e5e unlk %fp <== NOT EXECUTED * This routine performs the initialization necessary for this manager. */ void _Event_Manager_initialization( void ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4ad82: 42b9 0005 898e clrl 5898e <_Event_Sync_state> <== NOT EXECUTED */ #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); #endif } 4ad88: 4e75 rts <== NOT EXECUTED ... 0004555c <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 4555c: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 45560: 48d7 047c moveml %d2-%d6/%a2,%sp@ <== NOT EXECUTED rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 45564: 2479 0005 8812 moveal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 4556a: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4556e: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 45572: 2c2e 0010 movel %fp@(16),%d6 <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; _ISR_Disable( level ); 45576: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; 4557c: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45580: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 45584: 206a 010c moveal %a2@(268),%a0 <== NOT EXECUTED _ISR_Disable( level ); 45588: 40c5 movew %sr,%d5 <== NOT EXECUTED 4558a: 8085 orl %d5,%d0 <== NOT EXECUTED 4558c: 46c0 movew %d0,%sr <== NOT EXECUTED pending_events = api->pending_events; 4558e: 2810 movel %a0@,%d4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get( rtems_event_set the_event_set, rtems_event_set the_event_condition ) { return ( the_event_set & the_event_condition ); 45590: 2202 movel %d2,%d1 <== NOT EXECUTED 45592: c284 andl %d4,%d1 <== NOT EXECUTED seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 45594: 670c beqs 455a2 <_Event_Seize+0x46> <== NOT EXECUTED 45596: b282 cmpl %d2,%d1 <== NOT EXECUTED 45598: 6700 0084 beqw 4561e <_Event_Seize+0xc2> <== NOT EXECUTED 4559c: 0803 0001 btst #1,%d3 <== NOT EXECUTED 455a0: 667c bnes 4561e <_Event_Seize+0xc2> <== NOT EXECUTED _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 455a2: 0803 0000 btst #0,%d3 <== NOT EXECUTED 455a6: 6662 bnes 4560a <_Event_Seize+0xae> <== NOT EXECUTED executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; return; } _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 455a8: 7201 moveq #1,%d1 <== NOT EXECUTED executing->Wait.option = (uint32_t) option_set; 455aa: 2543 0030 movel %d3,%a2@(48) <== NOT EXECUTED executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; return; } _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 455ae: 23c1 0005 898e movel %d1,5898e <_Event_Sync_state> <== NOT EXECUTED executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; 455b4: 2542 0024 movel %d2,%a2@(36) <== NOT EXECUTED executing->Wait.return_argument = event_out; 455b8: 2549 0028 movel %a1,%a2@(40) <== NOT EXECUTED _ISR_Enable( level ); 455bc: 46c5 movew %d5,%sr <== NOT EXECUTED if ( ticks ) { 455be: 4a86 tstl %d6 <== NOT EXECUTED 455c0: 6672 bnes 45634 <_Event_Seize+0xd8> <== NOT EXECUTED NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 455c2: 4878 0100 pea 100 <== NOT EXECUTED 455c6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 455c8: 4eb9 0004 8680 jsr 48680 <_Thread_Set_state> <== NOT EXECUTED _ISR_Disable( level ); 455ce: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 455d4: 40c1 movew %sr,%d1 <== NOT EXECUTED 455d6: 8081 orl %d1,%d0 <== NOT EXECUTED 455d8: 46c0 movew %d0,%sr <== NOT EXECUTED sync_state = _Event_Sync_state; 455da: 2039 0005 898e movel 5898e <_Event_Sync_state>,%d0 <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 455e0: 508f addql #8,%sp <== NOT EXECUTED _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 455e2: 42b9 0005 898e clrl 5898e <_Event_Sync_state> <== NOT EXECUTED if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 455e8: 7401 moveq #1,%d2 <== NOT EXECUTED 455ea: b480 cmpl %d0,%d2 <== NOT EXECUTED 455ec: 6700 00a4 beqw 45692 <_Event_Seize+0x136> <== NOT EXECUTED * 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 ); 455f0: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED } 455f4: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED * 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 ); 455fa: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED 455fe: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 45602: 4e5e unlk %fp <== NOT EXECUTED * 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 ); 45604: 4ef9 0004 772c jmp 4772c <_Thread_blocking_operation_Cancel> <== NOT EXECUTED *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 4560a: 46c5 movew %d5,%sr <== NOT EXECUTED executing->Wait.return_code = RTEMS_UNSATISFIED; 4560c: 700d moveq #13,%d0 <== NOT EXECUTED 4560e: 2540 0034 movel %d0,%a2@(52) <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45612: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 45618: 4e5e unlk %fp <== NOT EXECUTED } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; 4561a: 2281 movel %d1,%a1@ <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 4561c: 4e75 rts <== NOT EXECUTED 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 = 4561e: 2001 movel %d1,%d0 <== NOT EXECUTED 45620: 4680 notl %d0 <== NOT EXECUTED 45622: c084 andl %d4,%d0 <== NOT EXECUTED 45624: 2080 movel %d0,%a0@ <== NOT EXECUTED _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 45626: 46c5 movew %d5,%sr <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45628: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 4562e: 4e5e unlk %fp <== NOT EXECUTED 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; 45630: 2281 movel %d1,%a1@ <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45632: 4e75 rts <== NOT EXECUTED executing->Wait.return_argument = event_out; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( 45634: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 45638: 243c 0004 581c movel #284700,%d2 <== NOT EXECUTED the_watchdog->id = id; 4563e: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 45642: 2546 0054 movel %d6,%a2@(84) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 45646: 2542 0064 movel %d2,%a2@(100) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 4564a: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 4564e: 42aa 006c clrl %a2@(108) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 45652: 486a 0048 pea %a2@(72) <== NOT EXECUTED 45656: 4879 0005 8830 pea 58830 <_Watchdog_Ticks_chain> <== NOT EXECUTED 4565c: 4eb9 0004 8ed4 jsr 48ed4 <_Watchdog_Insert> <== NOT EXECUTED 45662: 508f addql #8,%sp <== NOT EXECUTED NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 45664: 4878 0100 pea 100 <== NOT EXECUTED 45668: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4566a: 4eb9 0004 8680 jsr 48680 <_Thread_Set_state> <== NOT EXECUTED _ISR_Disable( level ); 45670: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 45676: 40c1 movew %sr,%d1 <== NOT EXECUTED 45678: 8081 orl %d1,%d0 <== NOT EXECUTED 4567a: 46c0 movew %d0,%sr <== NOT EXECUTED sync_state = _Event_Sync_state; 4567c: 2039 0005 898e movel 5898e <_Event_Sync_state>,%d0 <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45682: 508f addql #8,%sp <== NOT EXECUTED _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 45684: 42b9 0005 898e clrl 5898e <_Event_Sync_state> <== NOT EXECUTED if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 4568a: 7401 moveq #1,%d2 <== NOT EXECUTED 4568c: b480 cmpl %d0,%d2 <== NOT EXECUTED 4568e: 6600 ff60 bnew 455f0 <_Event_Seize+0x94> <== NOT EXECUTED _ISR_Enable( level ); 45692: 46c1 movew %d1,%sr <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45694: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 4569a: 4e5e unlk %fp <== NOT EXECUTED 4569c: 4e75 rts <== NOT EXECUTED ... 000456f0 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 456f0: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 456f4: 48d7 047c moveml %d2-%d6/%a2,%sp@ <== NOT EXECUTED 456f8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); 456fc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 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 ]; 45702: 206a 010c moveal %a2@(268),%a0 <== NOT EXECUTED option_set = (rtems_option) the_thread->Wait.option; 45706: 2a2a 0030 movel %a2@(48),%d5 <== NOT EXECUTED _ISR_Disable( level ); 4570a: 40c4 movew %sr,%d4 <== NOT EXECUTED 4570c: 8084 orl %d4,%d0 <== NOT EXECUTED 4570e: 46c0 movew %d0,%sr <== NOT EXECUTED pending_events = api->pending_events; event_condition = (rtems_event_set) the_thread->Wait.count; 45710: 222a 0024 movel %a2@(36),%d1 <== NOT EXECUTED api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); pending_events = api->pending_events; 45714: 2610 movel %a0@,%d3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get( rtems_event_set the_event_set, rtems_event_set the_event_condition ) { return ( the_event_set & the_event_condition ); 45716: 2401 movel %d1,%d2 <== NOT EXECUTED 45718: c483 andl %d3,%d2 <== NOT EXECUTED seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 4571a: 6776 beqs 45792 <_Event_Surrender+0xa2> <== NOT EXECUTED /* * 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() && 4571c: 2039 0005 87f2 movel 587f2 <_ISR_Nest_level>,%d0 <== NOT EXECUTED 45722: 670a beqs 4572e <_Event_Surrender+0x3e> <== NOT EXECUTED 45724: b5f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED 4572a: 6700 00a2 beqw 457ce <_Event_Surrender+0xde> <== NOT EXECUTED } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 4572e: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 45732: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 45738: 674c beqs 45786 <_Event_Surrender+0x96> <== NOT EXECUTED if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 4573a: b481 cmpl %d1,%d2 <== NOT EXECUTED 4573c: 6706 beqs 45744 <_Event_Surrender+0x54> <== NOT EXECUTED 4573e: 0805 0001 btst #1,%d5 <== NOT EXECUTED 45742: 6742 beqs 45786 <_Event_Surrender+0x96> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 45744: 2002 movel %d2,%d0 <== NOT EXECUTED 45746: 4680 notl %d0 <== NOT EXECUTED 45748: c083 andl %d3,%d0 <== NOT EXECUTED 4574a: 2080 movel %d0,%a0@ <== NOT EXECUTED the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 4574c: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED * 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 ); the_thread->Wait.count = 0; 45750: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 45754: 2082 movel %d2,%a0@ <== NOT EXECUTED _ISR_Flash( level ); 45756: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4575c: 46c4 movew %d4,%sr <== NOT EXECUTED 4575e: 8084 orl %d4,%d0 <== NOT EXECUTED 45760: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 45762: 7c02 moveq #2,%d6 <== NOT EXECUTED 45764: bcaa 0050 cmpl %a2@(80),%d6 <== NOT EXECUTED 45768: 6734 beqs 4579e <_Event_Surrender+0xae> <== NOT EXECUTED _ISR_Enable( level ); 4576a: 46c4 movew %d4,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4576c: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 45772: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45774: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED 4577a: 508f addql #8,%sp <== NOT EXECUTED } return; } } _ISR_Enable( level ); } 4577c: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 45782: 4e5e unlk %fp <== NOT EXECUTED 45784: 4e75 rts <== NOT EXECUTED _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 45786: 46c4 movew %d4,%sr <== NOT EXECUTED } 45788: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 4578e: 4e5e unlk %fp <== NOT EXECUTED 45790: 4e75 rts <== NOT EXECUTED /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 45792: 46c4 movew %d4,%sr <== NOT EXECUTED } return; } } _ISR_Enable( level ); } 45794: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 4579a: 4e5e unlk %fp <== NOT EXECUTED 4579c: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4579e: 7003 moveq #3,%d0 <== NOT EXECUTED 457a0: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 457a4: 46c4 movew %d4,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 457a6: 486a 0048 pea %a2@(72) <== NOT EXECUTED 457aa: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 457b0: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 457b6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 457b8: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED 457be: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } return; } } _ISR_Enable( level ); } 457c4: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 457ca: 4e5e unlk %fp <== NOT EXECUTED 457cc: 4e75 rts <== NOT EXECUTED /* * 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() && 457ce: 2039 0005 898e movel 5898e <_Event_Sync_state>,%d0 <== NOT EXECUTED 457d4: 7c01 moveq #1,%d6 <== NOT EXECUTED 457d6: bc80 cmpl %d0,%d6 <== NOT EXECUTED 457d8: 6710 beqs 457ea <_Event_Surrender+0xfa> <== NOT EXECUTED 457da: 2039 0005 898e movel 5898e <_Event_Sync_state>,%d0 <== NOT EXECUTED 457e0: 1c3c 0002 moveb #2,%d6 <== NOT EXECUTED 457e4: bc80 cmpl %d0,%d6 <== NOT EXECUTED 457e6: 6600 ff46 bnew 4572e <_Event_Surrender+0x3e> <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 457ea: b481 cmpl %d1,%d2 <== NOT EXECUTED 457ec: 6706 beqs 457f4 <_Event_Surrender+0x104> <== NOT EXECUTED 457ee: 0805 0001 btst #1,%d5 <== NOT EXECUTED 457f2: 671a beqs 4580e <_Event_Surrender+0x11e> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 457f4: 2002 movel %d2,%d0 <== NOT EXECUTED 457f6: 4680 notl %d0 <== NOT EXECUTED 457f8: c083 andl %d3,%d0 <== NOT EXECUTED 457fa: 2080 movel %d0,%a0@ <== NOT EXECUTED the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 457fc: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { 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; 45800: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 45804: 7003 moveq #3,%d0 <== NOT EXECUTED 45806: 23c0 0005 898e movel %d0,5898e <_Event_Sync_state> <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { 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; 4580c: 2082 movel %d2,%a0@ <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); 4580e: 46c4 movew %d4,%sr <== NOT EXECUTED } return; } } _ISR_Enable( level ); } 45810: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 45816: 4e5e unlk %fp <== NOT EXECUTED 45818: 4e75 rts <== NOT EXECUTED ... 0004581c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 4581c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 45820: 2f02 movel %d2,%sp@- <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 45822: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45826: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4582a: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 45830: 508f addql #8,%sp <== NOT EXECUTED { Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 45832: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 45834: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 45838: 6644 bnes 4587e <_Event_Timeout+0x62> <== NOT EXECUTED * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 4583a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 45840: 40c1 movew %sr,%d1 <== NOT EXECUTED 45842: 8081 orl %d1,%d0 <== NOT EXECUTED 45844: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 45846: 4aa8 0024 tstl %a0@(36) <== NOT EXECUTED 4584a: 673a beqs 45886 <_Event_Timeout+0x6a> <== NOT EXECUTED _Thread_Unnest_dispatch(); _ISR_Enable( level ); return; } the_thread->Wait.count = 0; 4584c: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) { 45850: b1f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45856: 6746 beqs 4589e <_Event_Timeout+0x82> <== NOT EXECUTED (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 45858: 7406 moveq #6,%d2 <== NOT EXECUTED 4585a: 2142 0034 movel %d2,%a0@(52) <== NOT EXECUTED _ISR_Enable( level ); 4585e: 46c1 movew %d1,%sr <== NOT EXECUTED 45860: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 45866: 2f08 movel %a0,%sp@- <== NOT EXECUTED 45868: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4586e: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 45874: 508f addql #8,%sp <== NOT EXECUTED 45876: 5380 subql #1,%d0 <== NOT EXECUTED 45878: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 4587e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 45882: 4e5e unlk %fp <== NOT EXECUTED 45884: 4e75 rts <== NOT EXECUTED 45886: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4588c: 5380 subql #1,%d0 <== NOT EXECUTED 4588e: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _ISR_Disable( level ); if ( !the_thread->Wait.count ) { /* verify thread is waiting */ _Thread_Unnest_dispatch(); _ISR_Enable( level ); 45894: 46c1 movew %d1,%sr <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 45896: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4589a: 4e5e unlk %fp <== NOT EXECUTED 4589c: 4e75 rts <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { Thread_blocking_operation_States sync = _Event_Sync_state; 4589e: 2039 0005 898e movel 5898e <_Event_Sync_state>,%d0 <== NOT EXECUTED if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 458a4: 7401 moveq #1,%d2 <== NOT EXECUTED 458a6: b480 cmpl %d0,%d2 <== NOT EXECUTED 458a8: 65ae bcss 45858 <_Event_Timeout+0x3c> <== NOT EXECUTED (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 458aa: 7002 moveq #2,%d0 <== NOT EXECUTED } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 458ac: 7406 moveq #6,%d2 <== NOT EXECUTED the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { Thread_blocking_operation_States sync = _Event_Sync_state; if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 458ae: 23c0 0005 898e movel %d0,5898e <_Event_Sync_state> <== NOT EXECUTED } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 458b4: 2142 0034 movel %d2,%a0@(52) <== NOT EXECUTED _ISR_Enable( level ); 458b8: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 458ba: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 458c0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 458c2: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 458c8: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 458ce: 5380 subql #1,%d0 <== NOT EXECUTED 458d0: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 458d6: 508f addql #8,%sp <== NOT EXECUTED 458d8: 60a4 bras 4587e <_Event_Timeout+0x62> <== NOT EXECUTED ... 00046358 <_Extension_Manager_initialization>: */ void _Extension_Manager_initialization( uint32_t maximum_extensions ) { 46358: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4635c: 4878 0004 pea 4 <== NOT EXECUTED 46360: 42a7 clrl %sp@- <== NOT EXECUTED 46362: 4878 0044 pea 44 <== NOT EXECUTED 46366: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4636a: 4878 0009 pea 9 <== NOT EXECUTED 4636e: 4878 0002 pea 2 <== NOT EXECUTED 46372: 4879 0005 8992 pea 58992 <_Extension_Information> <== NOT EXECUTED 46378: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4637e: dffc 0000 001c addal #28,%sp <== NOT EXECUTED , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 46384: 4e5e unlk %fp <== NOT EXECUTED 46386: 4e75 rts 0004b404 <_Heap_Allocate>: void *_Heap_Allocate( Heap_Control *the_heap, size_t size ) { 4b404: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4b408: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 4b40c: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED Heap_Block *the_block; void *ptr = NULL; Heap_Statistics *const stats = &the_heap->stats; Heap_Block *const tail = _Heap_Tail(the_heap); the_size = 4b410: 2f2b 0014 movel %a3@(20),%sp@- <== NOT EXECUTED 4b414: 2f2b 0010 movel %a3@(16),%sp@- <== NOT EXECUTED 4b418: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4b41c: 4eb9 0004 6d6e jsr 46d6e <_Heap_Calc_block_size> <== NOT EXECUTED _Heap_Calc_block_size(size, the_heap->page_size, the_heap->min_block_size); if(the_size == 0) 4b422: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4b428: 4a80 tstl %d0 <== NOT EXECUTED 4b42a: 675c beqs 4b488 <_Heap_Allocate+0x84> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 4b42c: 246b 0008 moveal %a3@(8),%a2 <== NOT EXECUTED return NULL; /* Find large enough free block. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 4b430: b5cb cmpal %a3,%a2 <== NOT EXECUTED 4b432: 6754 beqs 4b488 <_Heap_Allocate+0x84> <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); /* Don't bother to mask out the HEAP_PREV_USED bit as it won't change the result of the comparison. */ if(the_block->size >= the_size) { 4b434: b0aa 0004 cmpl %a2@(4),%d0 <== NOT EXECUTED 4b438: 6360 blss 4b49a <_Heap_Allocate+0x96> <== NOT EXECUTED stats->allocs += 1; stats->searches += search_count + 1; _HAssert(_Heap_Is_aligned_ptr(ptr, the_heap->page_size)); break; 4b43a: 4282 clrl %d2 <== NOT EXECUTED return NULL; /* Find large enough free block. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; the_block = the_block->next, ++search_count) 4b43c: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED 4b440: 5282 addql #1,%d2 <== NOT EXECUTED if(the_size == 0) return NULL; /* Find large enough free block. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 4b442: b5cb cmpal %a3,%a2 <== NOT EXECUTED 4b444: 674e beqs 4b494 <_Heap_Allocate+0x90> <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); /* Don't bother to mask out the HEAP_PREV_USED bit as it won't change the result of the comparison. */ if(the_block->size >= the_size) { 4b446: b0aa 0004 cmpl %a2@(4),%d0 <== NOT EXECUTED 4b44a: 62f0 bhis 4b43c <_Heap_Allocate+0x38> <== NOT EXECUTED (void)_Heap_Block_allocate(the_heap, the_block, the_size ); 4b44c: 2f00 movel %d0,%sp@- <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); /* Don't bother to mask out the HEAP_PREV_USED bit as it won't change the result of the comparison. */ if(the_block->size >= the_size) { 4b44e: 2602 movel %d2,%d3 <== NOT EXECUTED (void)_Heap_Block_allocate(the_heap, the_block, the_size ); 4b450: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b452: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4b454: 4eb9 0004 6daa jsr 46daa <_Heap_Block_allocate> <== NOT EXECUTED ptr = _Heap_User_area(the_block); stats->allocs += 1; stats->searches += search_count + 1; 4b45a: 222b 004c movel %a3@(76),%d1 <== NOT EXECUTED 4b45e: 200a movel %a2,%d0 <== NOT EXECUTED 4b460: 5281 addql #1,%d1 <== NOT EXECUTED 4b462: d282 addl %d2,%d1 <== NOT EXECUTED 4b464: 5080 addql #8,%d0 <== NOT EXECUTED 4b466: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4b46c: 2741 004c movel %d1,%a3@(76) <== NOT EXECUTED if(the_block->size >= the_size) { (void)_Heap_Block_allocate(the_heap, the_block, the_size ); ptr = _Heap_User_area(the_block); stats->allocs += 1; 4b470: 52ab 0048 addql #1,%a3@(72) <== NOT EXECUTED _HAssert(_Heap_Is_aligned_ptr(ptr, the_heap->page_size)); break; } } if(stats->max_search < search_count) 4b474: b6ab 0044 cmpl %a3@(68),%d3 <== NOT EXECUTED 4b478: 6304 blss 4b47e <_Heap_Allocate+0x7a> <== NOT EXECUTED stats->max_search = search_count; 4b47a: 2743 0044 movel %d3,%a3@(68) <== NOT EXECUTED return ptr; } 4b47e: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4b484: 4e5e unlk %fp <== NOT EXECUTED 4b486: 4e75 rts <== NOT EXECUTED 4b488: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4b48e: 4e5e unlk %fp <== NOT EXECUTED break; } } if(stats->max_search < search_count) stats->max_search = search_count; 4b490: 4280 clrl %d0 <== NOT EXECUTED return ptr; } 4b492: 4e75 rts <== NOT EXECUTED if(the_size == 0) return NULL; /* Find large enough free block. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 4b494: 2602 movel %d2,%d3 <== NOT EXECUTED 4b496: 4280 clrl %d0 <== NOT EXECUTED 4b498: 60da bras 4b474 <_Heap_Allocate+0x70> <== NOT EXECUTED _HAssert(_Heap_Is_prev_used(the_block)); /* Don't bother to mask out the HEAP_PREV_USED bit as it won't change the result of the comparison. */ if(the_block->size >= the_size) { (void)_Heap_Block_allocate(the_heap, the_block, the_size ); 4b49a: 2f00 movel %d0,%sp@- <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); /* Don't bother to mask out the HEAP_PREV_USED bit as it won't change the result of the comparison. */ if(the_block->size >= the_size) { 4b49c: 4282 clrl %d2 <== NOT EXECUTED 4b49e: 4283 clrl %d3 <== NOT EXECUTED (void)_Heap_Block_allocate(the_heap, the_block, the_size ); 4b4a0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b4a2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4b4a4: 4eb9 0004 6daa jsr 46daa <_Heap_Block_allocate> <== NOT EXECUTED ptr = _Heap_User_area(the_block); stats->allocs += 1; stats->searches += search_count + 1; 4b4aa: 222b 004c movel %a3@(76),%d1 <== NOT EXECUTED if(the_block->size >= the_size) { (void)_Heap_Block_allocate(the_heap, the_block, the_size ); ptr = _Heap_User_area(the_block); stats->allocs += 1; 4b4ae: 52ab 0048 addql #1,%a3@(72) <== NOT EXECUTED stats->searches += search_count + 1; 4b4b2: 5281 addql #1,%d1 <== NOT EXECUTED 4b4b4: d282 addl %d2,%d1 <== NOT EXECUTED 4b4b6: 2741 004c movel %d1,%a3@(76) <== NOT EXECUTED 4b4ba: 200a movel %a2,%d0 <== NOT EXECUTED 4b4bc: 5080 addql #8,%d0 <== NOT EXECUTED 4b4be: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4b4c4: 60ae bras 4b474 <_Heap_Allocate+0x70> <== NOT EXECUTED ... 00049c40 <_Heap_Allocate_aligned>: void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 49c40: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 49c44: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 49c48: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 49c4c: 2f2b 0014 movel %a3@(20),%sp@- <== NOT EXECUTED { uint32_t search_count; Heap_Block *the_block; void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; 49c50: 2e2b 0010 movel %a3@(16),%d7 <== NOT EXECUTED Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 49c54: 2f07 movel %d7,%sp@- <== NOT EXECUTED void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 49c56: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 49c5a: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 49c5e: 2f00 movel %d0,%sp@- <== NOT EXECUTED void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; Heap_Statistics *const stats = &the_heap->stats; Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; 49c60: 5980 subql #4,%d0 <== NOT EXECUTED 49c62: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 49c66: 4eb9 0004 a10a jsr 4a10a <_Heap_Calc_block_size> <== NOT EXECUTED if(the_size == 0) 49c6c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 49c72: 2840 moveal %d0,%a4 <== NOT EXECUTED if(the_size == 0) 49c74: 4a80 tstl %d0 <== NOT EXECUTED 49c76: 6700 00ac beqw 49d24 <_Heap_Allocate_aligned+0xe4> <== NOT EXECUTED return NULL; if(alignment == 0) 49c7a: 4a85 tstl %d5 <== NOT EXECUTED 49c7c: 6700 009e beqw 49d1c <_Heap_Allocate_aligned+0xdc> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 49c80: 246b 0008 moveal %a3@(8),%a2 <== NOT EXECUTED alignment = CPU_ALIGNMENT; /* Find large enough free block that satisfies the alignment requirements. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 49c84: b5cb cmpal %a3,%a2 <== NOT EXECUTED 49c86: 6700 009c beqw 49d24 <_Heap_Allocate_aligned+0xe4> <== NOT EXECUTED 49c8a: 4286 clrl %d6 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 49c8c: 78fe moveq #-2,%d4 <== NOT EXECUTED 49c8e: c8aa 0004 andl %a2@(4),%d4 <== NOT EXECUTED uint32_t const block_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); if(block_size >= the_size) { /* the_block is large enough. */ 49c92: b88c cmpl %a4,%d4 <== NOT EXECUTED 49c94: 6540 bcss 49cd6 <_Heap_Allocate_aligned+0x96> <== NOT EXECUTED /* Calculate 'aligned_user_addr' that will become the user pointer we return. It should be at least 'end_to_user_offs' bytes less than the the 'block_end' and should be aligned on 'alignment' boundary. Calculations are from the 'block_end' as we are going to split free block so that the upper part of the block becomes used block. */ _H_uptr_t const block_end = _H_p2u(the_block) + block_size; 49c96: 43f2 4800 lea %a2@(00000000,%d4:l),%a1 <== NOT EXECUTED aligned_user_addr = block_end - end_to_user_offs; 49c9a: 2009 movel %a1,%d0 <== NOT EXECUTED 49c9c: 90ae fffc subl %fp@(-4),%d0 <== NOT EXECUTED _H_uptr_t *value, uint32_t alignment ) { _H_uptr_t v = *value; *value = v - (v % alignment); 49ca0: 2400 movel %d0,%d2 <== NOT EXECUTED 49ca2: 4c45 2001 remul %d5,%d1,%d2 <== NOT EXECUTED 49ca6: 2600 movel %d0,%d3 <== NOT EXECUTED 49ca8: 9681 subl %d1,%d3 <== NOT EXECUTED if(block_size >= the_size) { /* the_block is large enough. */ _H_uptr_t user_addr; _H_uptr_t aligned_user_addr; _H_uptr_t const user_area = _H_p2u(_Heap_User_area(the_block)); 49caa: 2003 movel %d3,%d0 <== NOT EXECUTED 49cac: 4c47 0002 remul %d7,%d2,%d0 <== NOT EXECUTED 49cb0: 2003 movel %d3,%d0 <== NOT EXECUTED 49cb2: 9082 subl %d2,%d0 <== NOT EXECUTED 49cb4: 220a movel %a2,%d1 <== NOT EXECUTED 49cb6: 2400 movel %d0,%d2 <== NOT EXECUTED 49cb8: 5081 addql #8,%d1 <== NOT EXECUTED only at 'page_size' aligned addresses */ user_addr = aligned_user_addr; _Heap_Align_down_uptr(&user_addr, page_size); /* Make sure 'user_addr' calculated didn't run out of 'the_block'. */ if(user_addr >= user_area) { 49cba: b081 cmpl %d1,%d0 <== NOT EXECUTED 49cbc: 6518 bcss 49cd6 <_Heap_Allocate_aligned+0x96> <== NOT EXECUTED /* The block seems to be acceptable. Check if the remainder of 'the_block' is less than 'min_block_size' so that 'the_block' won't actually be split at the address we assume. */ if(user_addr - user_area < the_heap->min_block_size) { 49cbe: 2a6b 0014 moveal %a3@(20),%a5 <== NOT EXECUTED 49cc2: 9081 subl %d1,%d0 <== NOT EXECUTED 49cc4: bbc0 cmpal %d0,%a5 <== NOT EXECUTED 49cc6: 630a blss 49cd2 <_Heap_Allocate_aligned+0x92> <== NOT EXECUTED 'aligned_user_addr' to be outside of [0,page_size) range. If we do, we will need to store this distance somewhere to be able to resurrect the block address from the user pointer. (Having the distance within [0,page_size) range allows resurrection by aligning user pointer down to the nearest 'page_size' boundary.) */ if(aligned_user_addr - user_addr >= page_size) { 49cc8: 2003 movel %d3,%d0 <== NOT EXECUTED 49cca: 9081 subl %d1,%d0 <== NOT EXECUTED 49ccc: b087 cmpl %d7,%d0 <== NOT EXECUTED 49cce: 6426 bccs 49cf6 <_Heap_Allocate_aligned+0xb6> <== NOT EXECUTED 49cd0: 2401 movel %d1,%d2 <== NOT EXECUTED aligned_user_addr = 0; } } } if(aligned_user_addr) { 49cd2: 4a83 tstl %d3 <== NOT EXECUTED 49cd4: 665a bnes 49d30 <_Heap_Allocate_aligned+0xf0> <== NOT EXECUTED /* Find large enough free block that satisfies the alignment requirements. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; the_block = the_block->next, ++search_count) 49cd6: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED 49cda: 5286 addql #1,%d6 <== NOT EXECUTED alignment = CPU_ALIGNMENT; /* Find large enough free block that satisfies the alignment requirements. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 49cdc: b5cb cmpal %a3,%a2 <== NOT EXECUTED 49cde: 66ac bnes 49c8c <_Heap_Allocate_aligned+0x4c> <== NOT EXECUTED 49ce0: 4280 clrl %d0 <== NOT EXECUTED } } } } if(stats->max_search < search_count) 49ce2: bcab 0044 cmpl %a3@(68),%d6 <== NOT EXECUTED 49ce6: 6304 blss 49cec <_Heap_Allocate_aligned+0xac> <== NOT EXECUTED stats->max_search = search_count; 49ce8: 2746 0044 movel %d6,%a3@(68) <== NOT EXECUTED return user_ptr; } 49cec: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 49cf2: 4e5e unlk %fp <== NOT EXECUTED 49cf4: 4e75 rts <== NOT EXECUTED uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 49cf6: 2001 movel %d1,%d0 <== NOT EXECUTED 49cf8: 4c45 0002 remul %d5,%d2,%d0 <== NOT EXECUTED *value = r ? v - r + a : v; 49cfc: 4a82 tstl %d2 <== NOT EXECUTED 49cfe: 6716 beqs 49d16 <_Heap_Allocate_aligned+0xd6> <== NOT EXECUTED 49d00: 2001 movel %d1,%d0 <== NOT EXECUTED 49d02: d085 addl %d5,%d0 <== NOT EXECUTED 49d04: 9082 subl %d2,%d0 <== NOT EXECUTED 49d06: 2040 moveal %d0,%a0 <== NOT EXECUTED 49d08: 91c1 subal %d1,%a0 <== NOT EXECUTED /* The user pointer will be too far from 'user_addr'. See if we can make 'aligned_user_addr' to be close enough to the 'user_addr'. */ aligned_user_addr = user_addr; _Heap_Align_up_uptr(&aligned_user_addr, alignment); if(aligned_user_addr - user_addr >= page_size) { 49d0a: b1c7 cmpal %d7,%a0 <== NOT EXECUTED 49d0c: 64c8 bccs 49cd6 <_Heap_Allocate_aligned+0x96> <== NOT EXECUTED 49d0e: 2401 movel %d1,%d2 <== NOT EXECUTED 49d10: 2600 movel %d0,%d3 <== NOT EXECUTED aligned_user_addr = 0; } } } if(aligned_user_addr) { 49d12: 67c2 beqs 49cd6 <_Heap_Allocate_aligned+0x96> <== NOT EXECUTED 49d14: 601a bras 49d30 <_Heap_Allocate_aligned+0xf0> <== NOT EXECUTED 49d16: 2001 movel %d1,%d0 <== NOT EXECUTED 49d18: 91c8 subal %a0,%a0 <== NOT EXECUTED 49d1a: 60ee bras 49d0a <_Heap_Allocate_aligned+0xca> <== NOT EXECUTED _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); if(the_size == 0) return NULL; if(alignment == 0) 49d1c: 1a3c 0004 moveb #4,%d5 <== NOT EXECUTED 49d20: 6000 ff5e braw 49c80 <_Heap_Allocate_aligned+0x40> <== NOT EXECUTED if(stats->max_search < search_count) stats->max_search = search_count; return user_ptr; } 49d24: 4cee 3cfc ffd4 moveml %fp@(-44),%d2-%d7/%a2-%a5 <== NOT EXECUTED 49d2a: 4e5e unlk %fp <== NOT EXECUTED } } } if(stats->max_search < search_count) stats->max_search = search_count; 49d2c: 4280 clrl %d0 <== NOT EXECUTED return user_ptr; } 49d2e: 4e75 rts <== NOT EXECUTED if(aligned_user_addr) { /* The block is indeed acceptable: calculate the size of the block to be allocated and perform allocation. */ uint32_t const alloc_size = block_end - user_addr + HEAP_BLOCK_USER_OFFSET; 49d30: 2009 movel %a1,%d0 <== NOT EXECUTED 49d32: 5080 addql #8,%d0 <== NOT EXECUTED 49d34: 9082 subl %d2,%d0 <== NOT EXECUTED Heap_Block *the_block, uint32_t alloc_size) { Heap_Statistics *const stats = &the_heap->stats; uint32_t const block_size = _Heap_Block_size(the_block); uint32_t const the_rest = block_size - alloc_size; 49d36: 2204 movel %d4,%d1 <== NOT EXECUTED 49d38: 9280 subl %d0,%d1 <== NOT EXECUTED _HAssert(_Heap_Is_aligned(block_size, the_heap->page_size)); _HAssert(_Heap_Is_aligned(alloc_size, the_heap->page_size)); _HAssert(alloc_size <= block_size); _HAssert(_Heap_Is_prev_used(the_block)); if(the_rest >= the_heap->min_block_size) { 49d3a: bbc1 cmpal %d1,%a5 <== NOT EXECUTED 49d3c: 6244 bhis 49d82 <_Heap_Allocate_aligned+0x142> <== NOT EXECUTED /* Split the block so that lower part is still free, and upper part becomes used. */ the_block->size = the_rest | HEAP_PREV_USED; 49d3e: 7401 moveq #1,%d2 <== NOT EXECUTED 49d40: 8481 orl %d1,%d2 <== NOT EXECUTED 49d42: 2542 0004 movel %d2,%a2@(4) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( void *base, uint32_t offset ) { return (void *)((char *)base + offset); 49d46: d5c1 addal %d1,%a2 <== NOT EXECUTED the_block = _Heap_Block_at(the_block, the_rest); the_block->prev_size = the_rest; 49d48: 2481 movel %d1,%a2@ <== NOT EXECUTED the_block->size = alloc_size; 49d4a: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED _Heap_Block_remove(the_block); alloc_size = block_size; stats->free_blocks -= 1; } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; 49d4e: 7201 moveq #1,%d1 <== NOT EXECUTED 49d50: 83b2 0804 orl %d1,%a2@(00000004,%d0:l) <== NOT EXECUTED /* Update statistics */ stats->free_size -= alloc_size; 49d54: 242b 0030 movel %a3@(48),%d2 <== NOT EXECUTED 49d58: 9480 subl %d0,%d2 <== NOT EXECUTED 49d5a: 2742 0030 movel %d2,%a3@(48) <== NOT EXECUTED if(stats->min_free_size > stats->free_size) 49d5e: b4ab 0034 cmpl %a3@(52),%d2 <== NOT EXECUTED 49d62: 6404 bccs 49d68 <_Heap_Allocate_aligned+0x128> <== NOT EXECUTED stats->min_free_size = stats->free_size; 49d64: 2742 0034 movel %d2,%a3@(52) <== NOT EXECUTED _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 49d68: 202b 004c movel %a3@(76),%d0 <== NOT EXECUTED _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; if(stats->min_free_size > stats->free_size) stats->min_free_size = stats->free_size; stats->used_blocks += 1; 49d6c: 52ab 0040 addql #1,%a3@(64) <== NOT EXECUTED _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 49d70: 5280 addql #1,%d0 <== NOT EXECUTED stats->allocs += 1; 49d72: 52ab 0048 addql #1,%a3@(72) <== NOT EXECUTED _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 49d76: d086 addl %d6,%d0 <== NOT EXECUTED 49d78: 2740 004c movel %d0,%a3@(76) <== NOT EXECUTED stats->allocs += 1; check_result(the_heap, the_block, user_addr, aligned_user_addr, size); user_ptr = (void*)aligned_user_addr; 49d7c: 2003 movel %d3,%d0 <== NOT EXECUTED 49d7e: 6000 ff62 braw 49ce2 <_Heap_Allocate_aligned+0xa2> <== NOT EXECUTED Heap_Block *the_block ) { Heap_Block *block = the_block; Heap_Block *next = block->next; 49d82: 226a 0008 moveal %a2@(8),%a1 <== NOT EXECUTED Heap_Block *prev = block->prev; 49d86: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED /* Don't split the block as remainder is either zero or too small to be used as a separate free block. Change 'alloc_size' to the size of the block and remove the block from the list of free blocks. */ _Heap_Block_remove(the_block); alloc_size = block_size; stats->free_blocks -= 1; 49d8a: 53ab 0038 subql #1,%a3@(56) <== NOT EXECUTED 49d8e: 2004 movel %d4,%d0 <== NOT EXECUTED prev->next = next; next->prev = prev; 49d90: 2348 000c movel %a0,%a1@(12) <== NOT EXECUTED { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 49d94: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED 49d98: 60b4 bras 49d4e <_Heap_Allocate_aligned+0x10e> <== NOT EXECUTED ... 00046daa <_Heap_Block_allocate>: uint32_t _Heap_Block_allocate( Heap_Control* the_heap, Heap_Block* the_block, uint32_t alloc_size ) { 46daa: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 46dae: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 46db2: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 46db6: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 46dba: 72fe moveq #-2,%d1 <== NOT EXECUTED 46dbc: c2ab 0004 andl %a3@(4),%d1 <== NOT EXECUTED 46dc0: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED Heap_Statistics *const stats = &the_heap->stats; uint32_t const block_size = _Heap_Block_size(the_block); uint32_t const the_rest = block_size - alloc_size; 46dc4: 2001 movel %d1,%d0 <== NOT EXECUTED 46dc6: 9082 subl %d2,%d0 <== NOT EXECUTED _HAssert(_Heap_Is_aligned(block_size, the_heap->page_size)); _HAssert(_Heap_Is_aligned(alloc_size, the_heap->page_size)); _HAssert(alloc_size <= block_size); _HAssert(_Heap_Is_prev_used(the_block)); if(the_rest >= the_heap->min_block_size) { 46dc8: b0ac 0014 cmpl %a4@(20),%d0 <== NOT EXECUTED 46dcc: 6552 bcss 46e20 <_Heap_Block_allocate+0x76> <== NOT EXECUTED Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 46dce: 246b 0008 moveal %a3@(8),%a2 <== NOT EXECUTED Heap_Block *prev = block->prev; 46dd2: 226b 000c moveal %a3@(12),%a1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 46dd6: 41f3 2800 lea %a3@(00000000,%d2:l),%a0 <== NOT EXECUTED becomes used. This is slightly less optimal than leaving lower part free as it requires replacing block in the free blocks list, but it makes it possible to reuse this code in the _Heap_Resize_block(). */ Heap_Block *next_block = _Heap_Block_at(the_block, alloc_size); _Heap_Block_replace(the_block, next_block); the_block->size = alloc_size | HEAP_PREV_USED; 46dda: 7201 moveq #1,%d1 <== NOT EXECUTED 46ddc: 8282 orl %d2,%d1 <== NOT EXECUTED 46dde: 2741 0004 movel %d1,%a3@(4) <== NOT EXECUTED next_block->size = the_rest | HEAP_PREV_USED; 46de2: 7201 moveq #1,%d1 <== NOT EXECUTED 46de4: 8280 orl %d0,%d1 <== NOT EXECUTED Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; block = new_block; block->next = next; 46de6: 214a 0008 movel %a2,%a0@(8) <== NOT EXECUTED _Heap_Block_at(next_block, the_rest)->prev_size = the_rest; 46dea: 2180 0800 movel %d0,%a0@(00000000,%d0:l) <== NOT EXECUTED block->prev = prev; 46dee: 2149 000c movel %a1,%a0@(12) <== NOT EXECUTED free as it requires replacing block in the free blocks list, but it makes it possible to reuse this code in the _Heap_Resize_block(). */ Heap_Block *next_block = _Heap_Block_at(the_block, alloc_size); _Heap_Block_replace(the_block, next_block); the_block->size = alloc_size | HEAP_PREV_USED; next_block->size = the_rest | HEAP_PREV_USED; 46df2: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED next->prev = prev->next = block; 46df6: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED 46dfa: 2548 000c movel %a0,%a2@(12) <== NOT EXECUTED alloc_size = block_size; _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; stats->free_blocks -= 1; } /* Update statistics */ stats->free_size -= alloc_size; 46dfe: 222c 0030 movel %a4@(48),%d1 <== NOT EXECUTED 46e02: 9282 subl %d2,%d1 <== NOT EXECUTED 46e04: 2941 0030 movel %d1,%a4@(48) <== NOT EXECUTED if(stats->min_free_size > stats->free_size) 46e08: b2ac 0034 cmpl %a4@(52),%d1 <== NOT EXECUTED 46e0c: 6404 bccs 46e12 <_Heap_Block_allocate+0x68> <== NOT EXECUTED stats->min_free_size = stats->free_size; 46e0e: 2941 0034 movel %d1,%a4@(52) <== NOT EXECUTED stats->used_blocks += 1; 46e12: 52ac 0040 addql #1,%a4@(64) <== NOT EXECUTED return alloc_size; } 46e16: 2002 movel %d2,%d0 <== NOT EXECUTED 46e18: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED 46e1c: 4e5e unlk %fp <== NOT EXECUTED 46e1e: 4e75 rts <== NOT EXECUTED /* Don't split the block as remainder is either zero or too small to be used as a separate free block. Change 'alloc_size' to the size of the block and remove the block from the list of free blocks. */ _Heap_Block_remove(the_block); alloc_size = block_size; _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; 46e20: 7001 moveq #1,%d0 <== NOT EXECUTED Heap_Block *the_block ) { Heap_Block *block = the_block; Heap_Block *next = block->next; 46e22: 226b 0008 moveal %a3@(8),%a1 <== NOT EXECUTED Heap_Block *prev = block->prev; 46e26: 206b 000c moveal %a3@(12),%a0 <== NOT EXECUTED 46e2a: 81b3 1804 orl %d0,%a3@(00000004,%d1:l) <== NOT EXECUTED stats->free_blocks -= 1; 46e2e: 53ac 0038 subql #1,%a4@(56) <== NOT EXECUTED 46e32: 2401 movel %d1,%d2 <== NOT EXECUTED prev->next = next; next->prev = prev; 46e34: 2348 000c movel %a0,%a1@(12) <== NOT EXECUTED { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 46e38: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED 46e3c: 60c0 bras 46dfe <_Heap_Block_allocate+0x54> <== NOT EXECUTED ... 00046d6e <_Heap_Calc_block_size>: */ size_t _Heap_Calc_block_size( size_t size, uint32_t page_size, uint32_t min_size) { 46d6e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46d72: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 46d76: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46d78: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED uint32_t block_size = size + HEAP_BLOCK_USED_OVERHEAD; 46d7c: 2009 movel %a1,%d0 <== NOT EXECUTED 46d7e: 5880 addql #4,%d0 <== NOT EXECUTED */ size_t _Heap_Calc_block_size( size_t size, uint32_t page_size, uint32_t min_size) { 46d80: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 46d84: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 46d86: 2600 movel %d0,%d3 <== NOT EXECUTED 46d88: 4c41 3002 remul %d1,%d2,%d3 <== NOT EXECUTED *value = r ? v - r + a : v; 46d8c: 4a82 tstl %d2 <== NOT EXECUTED 46d8e: 6704 beqs 46d94 <_Heap_Calc_block_size+0x26> <== NOT EXECUTED 46d90: d081 addl %d1,%d0 <== NOT EXECUTED 46d92: 9082 subl %d2,%d0 <== NOT EXECUTED 46d94: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 46d96: 6302 blss 46d9a <_Heap_Calc_block_size+0x2c> <== NOT EXECUTED 46d98: 2008 movel %a0,%d0 <== NOT EXECUTED uint32_t block_size = size + HEAP_BLOCK_USED_OVERHEAD; _Heap_Align_up(&block_size, page_size); if (block_size < min_size) block_size = min_size; /* 'block_size' becomes <= 'size' if and only if overflow occured. */ return (block_size > size) ? block_size : 0; } 46d9a: 241f movel %sp@+,%d2 <== NOT EXECUTED 46d9c: 261f movel %sp@+,%d3 <== NOT EXECUTED { uint32_t block_size = size + HEAP_BLOCK_USED_OVERHEAD; _Heap_Align_up(&block_size, page_size); if (block_size < min_size) block_size = min_size; /* 'block_size' becomes <= 'size' if and only if overflow occured. */ return (block_size > size) ? block_size : 0; 46d9e: b089 cmpl %a1,%d0 <== NOT EXECUTED 46da0: 52c1 shi %d1 <== NOT EXECUTED 46da2: 49c1 extbl %d1 <== NOT EXECUTED } 46da4: 4e5e unlk %fp <== NOT EXECUTED 46da6: c081 andl %d1,%d0 <== NOT EXECUTED 46da8: 4e75 rts 0004ea54 <_Heap_Extend>: Heap_Control *the_heap, void *starting_address, size_t size, uint32_t *amount_extended ) { 4ea54: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4ea58: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ea5a: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4ea5e: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 4ea62: 2f02 movel %d2,%sp@- <== NOT EXECUTED * 5. non-contiguous higher address (NOT SUPPORTED) * * As noted, this code only supports (4). */ if ( starting_address >= the_heap->begin && /* case 3 */ 4ea64: b0a9 0018 cmpl %a1@(24),%d0 <== NOT EXECUTED 4ea68: 6416 bccs 4ea80 <_Heap_Extend+0x2c> <== NOT EXECUTED 4ea6a: 2229 001c movel %a1@(28),%d1 <== NOT EXECUTED starting_address < the_heap->end ) return HEAP_EXTEND_ERROR; if ( starting_address != the_heap->end ) 4ea6e: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ea70: 6724 beqs 4ea96 <_Heap_Extend+0x42> <== NOT EXECUTED stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); return HEAP_EXTEND_SUCCESSFUL; } 4ea72: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4ea76: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ea7a: 4e5e unlk %fp <== NOT EXECUTED if ( starting_address >= the_heap->begin && /* case 3 */ starting_address < the_heap->end ) return HEAP_EXTEND_ERROR; if ( starting_address != the_heap->end ) 4ea7c: 7002 moveq #2,%d0 <== NOT EXECUTED stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); return HEAP_EXTEND_SUCCESSFUL; } 4ea7e: 4e75 rts <== NOT EXECUTED * 5. non-contiguous higher address (NOT SUPPORTED) * * As noted, this code only supports (4). */ if ( starting_address >= the_heap->begin && /* case 3 */ 4ea80: 2229 001c movel %a1@(28),%d1 <== NOT EXECUTED 4ea84: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ea86: 63e6 blss 4ea6e <_Heap_Extend+0x1a> <== NOT EXECUTED stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); return HEAP_EXTEND_SUCCESSFUL; } 4ea88: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4ea8c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ea90: 4e5e unlk %fp <== NOT EXECUTED * 5. non-contiguous higher address (NOT SUPPORTED) * * As noted, this code only supports (4). */ if ( starting_address >= the_heap->begin && /* case 3 */ 4ea92: 7001 moveq #1,%d0 <== NOT EXECUTED stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); return HEAP_EXTEND_SUCCESSFUL; } 4ea94: 4e75 rts <== NOT EXECUTED 4ea96: d0ae 0010 addl %fp@(16),%d0 <== NOT EXECUTED * 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. */ old_final = the_heap->final; 4ea9a: 2469 0024 moveal %a1@(36),%a2 <== NOT EXECUTED the_heap->end = _Addresses_Add_offset( the_heap->end, size ); 4ea9e: 2340 001c movel %d0,%a1@(28) <== NOT EXECUTED the_size = _Addresses_Subtract( the_heap->end, old_final ) - HEAP_OVERHEAD; 4eaa2: 908a subl %a2,%d0 <== NOT EXECUTED 4eaa4: 5180 subql #8,%d0 <== NOT EXECUTED _Heap_Align_down( &the_size, the_heap->page_size ); *amount_extended = size; 4eaa6: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 4eaaa: 2400 movel %d0,%d2 <== NOT EXECUTED 4eaac: 4c69 2001 0010 remul %a1@(16),%d1,%d2 <== NOT EXECUTED 4eab2: 9081 subl %d1,%d0 <== NOT EXECUTED 4eab4: 20ae 0010 movel %fp@(16),%a0@ <== NOT EXECUTED 4eab8: 2200 movel %d0,%d1 <== NOT EXECUTED if( the_size < the_heap->min_block_size ) 4eaba: b0a9 0014 cmpl %a1@(20),%d0 <== NOT EXECUTED 4eabe: 640e bccs 4eace <_Heap_Extend+0x7a> <== NOT EXECUTED stats->size += size; stats->used_blocks += 1; stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); 4eac0: 4280 clrl %d0 <== NOT EXECUTED return HEAP_EXTEND_SUCCESSFUL; } 4eac2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4eac6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4eaca: 4e5e unlk %fp <== NOT EXECUTED 4eacc: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4eace: 41f2 0800 lea %a2@(00000000,%d0:l),%a0 <== NOT EXECUTED *amount_extended = size; if( the_size < the_heap->min_block_size ) return HEAP_EXTEND_SUCCESSFUL; old_final->size = the_size | (old_final->size & HEAP_PREV_USED); 4ead2: 7001 moveq #1,%d0 <== NOT EXECUTED 4ead4: c0aa 0004 andl %a2@(4),%d0 <== NOT EXECUTED 4ead8: 8280 orl %d0,%d1 <== NOT EXECUTED 4eada: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED new_final = _Heap_Block_at( old_final, the_size ); new_final->size = HEAP_PREV_USED; 4eade: 7001 moveq #1,%d0 <== NOT EXECUTED 4eae0: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED stats->size += size; stats->used_blocks += 1; stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); 4eae4: 486a 0008 pea %a2@(8) <== NOT EXECUTED old_final->size = the_size | (old_final->size & HEAP_PREV_USED); new_final = _Heap_Block_at( old_final, the_size ); new_final->size = HEAP_PREV_USED; the_heap->final = new_final; stats->size += size; 4eae8: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED stats->used_blocks += 1; 4eaec: 52a9 0040 addql #1,%a1@(64) <== NOT EXECUTED old_final->size = the_size | (old_final->size & HEAP_PREV_USED); new_final = _Heap_Block_at( old_final, the_size ); new_final->size = HEAP_PREV_USED; the_heap->final = new_final; stats->size += size; 4eaf0: d3a9 002c addl %d1,%a1@(44) <== NOT EXECUTED stats->used_blocks += 1; stats->frees -= 1; /* Don't count subsequent call as actual free() */ 4eaf4: 53a9 0050 subql #1,%a1@(80) <== NOT EXECUTED _Heap_Free( the_heap, _Heap_User_area( old_final ) ); 4eaf8: 2f09 movel %a1,%sp@- <== NOT EXECUTED return HEAP_EXTEND_SUCCESSFUL; old_final->size = the_size | (old_final->size & HEAP_PREV_USED); new_final = _Heap_Block_at( old_final, the_size ); new_final->size = HEAP_PREV_USED; the_heap->final = new_final; 4eafa: 2348 0024 movel %a0,%a1@(36) <== NOT EXECUTED stats->size += size; stats->used_blocks += 1; stats->frees -= 1; /* Don't count subsequent call as actual free() */ _Heap_Free( the_heap, _Heap_User_area( old_final ) ); 4eafe: 4eb9 0004 9e60 jsr 49e60 <_Heap_Free> <== NOT EXECUTED 4eb04: 508f addql #8,%sp <== NOT EXECUTED 4eb06: 4280 clrl %d0 <== NOT EXECUTED 4eb08: 60b8 bras 4eac2 <_Heap_Extend+0x6e> <== NOT EXECUTED ... 0004b4c8 <_Heap_Free>: bool _Heap_Free( Heap_Control *the_heap, void *starting_address ) { 4b4c8: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4b4cc: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 4b4d0: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 4b4d4: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED uint32_t the_size; uint32_t next_size; Heap_Statistics *const stats = &the_heap->stats; bool next_is_free; if ( !_Addresses_Is_in_range( 4b4d8: 226b 0024 moveal %a3@(36),%a1 <== NOT EXECUTED 4b4dc: 206b 0020 moveal %a3@(32),%a0 <== NOT EXECUTED void *address, void *base, void *limit ) { return (address >= base && address <= limit); 4b4e0: b288 cmpl %a0,%d1 <== NOT EXECUTED 4b4e2: 6504 bcss 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED 4b4e4: b289 cmpl %a1,%d1 <== NOT EXECUTED 4b4e6: 630a blss 4b4f2 <_Heap_Free+0x2a> <== NOT EXECUTED stats->used_blocks -= 1; stats->free_size += the_size; stats->frees += 1; return( TRUE ); } 4b4e8: 4cd7 1c1c moveml %sp@,%d2-%d4/%a2-%a4 <== NOT EXECUTED 4b4ec: 4e5e unlk %fp <== NOT EXECUTED stats->used_blocks -= 1; stats->free_size += the_size; stats->frees += 1; return( TRUE ); 4b4ee: 4200 clrb %d0 <== NOT EXECUTED } 4b4f0: 4e75 rts <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 4b4f2: 2401 movel %d1,%d2 <== NOT EXECUTED 4b4f4: 2441 moveal %d1,%a2 <== NOT EXECUTED 4b4f6: 4c6b 2000 0010 remul %a3@(16),%d0,%d2 <== NOT EXECUTED 4b4fc: 518a subql #8,%a2 <== NOT EXECUTED 4b4fe: 95c0 subal %d0,%a2 <== NOT EXECUTED 4b500: b5c8 cmpal %a0,%a2 <== NOT EXECUTED 4b502: 65e4 bcss 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED 4b504: b5c9 cmpal %a1,%a2 <== NOT EXECUTED 4b506: 62e0 bhis 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 4b508: 222a 0004 movel %a2@(4),%d1 <== NOT EXECUTED 4b50c: 76fe moveq #-2,%d3 <== NOT EXECUTED 4b50e: c681 andl %d1,%d3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4b510: 49f2 3800 lea %a2@(00000000,%d3:l),%a4 <== NOT EXECUTED 4b514: b9c8 cmpal %a0,%a4 <== NOT EXECUTED 4b516: 65d0 bcss 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED 4b518: b9c9 cmpal %a1,%a4 <== NOT EXECUTED 4b51a: 62cc bhis 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 4b51c: 242c 0004 movel %a4@(4),%d2 <== NOT EXECUTED if ( !_Heap_Is_block_in( the_heap, next_block ) ) { _HAssert( FALSE ); return( FALSE ); } if ( !_Heap_Is_prev_used( next_block ) ) { 4b520: 7001 moveq #1,%d0 <== NOT EXECUTED 4b522: c082 andl %d2,%d0 <== NOT EXECUTED 4b524: 4a00 tstb %d0 <== NOT EXECUTED 4b526: 67c0 beqs 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 4b528: 78fe moveq #-2,%d4 <== NOT EXECUTED 4b52a: c882 andl %d2,%d4 <== NOT EXECUTED _HAssert( FALSE ); return( FALSE ); } next_size = _Heap_Block_size( next_block ); next_is_free = next_block < the_heap->final && 4b52c: b9c9 cmpal %a1,%a4 <== NOT EXECUTED 4b52e: 6560 bcss 4b590 <_Heap_Free+0xc8> <== NOT EXECUTED 4b530: 4202 clrb %d2 <== NOT EXECUTED !_Heap_Is_prev_used(_Heap_Block_at(next_block, next_size)); if ( !_Heap_Is_prev_used( the_block ) ) { 4b532: 7001 moveq #1,%d0 <== NOT EXECUTED 4b534: c280 andl %d0,%d1 <== NOT EXECUTED 4b536: 4a01 tstb %d1 <== NOT EXECUTED 4b538: 6662 bnes 4b59c <_Heap_Free+0xd4> <== NOT EXECUTED uint32_t const prev_size = the_block->prev_size; 4b53a: 2212 movel %a2@,%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4b53c: 95c1 subal %d1,%a2 <== NOT EXECUTED 4b53e: b5c8 cmpal %a0,%a2 <== NOT EXECUTED 4b540: 65a6 bcss 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED 4b542: b5c9 cmpal %a1,%a2 <== NOT EXECUTED 4b544: 62a2 bhis 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED 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) ) { 4b546: c0aa 0004 andl %a2@(4),%d0 <== NOT EXECUTED 4b54a: 4a00 tstb %d0 <== NOT EXECUTED 4b54c: 679a beqs 4b4e8 <_Heap_Free+0x20> <== NOT EXECUTED _HAssert( FALSE ); return( FALSE ); } if ( next_is_free ) { /* coalesce both */ 4b54e: 4a02 tstb %d2 <== NOT EXECUTED 4b550: 6700 00d2 beqw 4b624 <_Heap_Free+0x15c> <== NOT EXECUTED uint32_t const size = the_size + prev_size + next_size; _Heap_Block_remove( next_block ); stats->free_blocks -= 1; 4b554: 53ab 0038 subql #1,%a3@(56) <== NOT EXECUTED _HAssert( FALSE ); return( FALSE ); } if ( next_is_free ) { /* coalesce both */ uint32_t const size = the_size + prev_size + next_size; 4b558: 2003 movel %d3,%d0 <== NOT EXECUTED 4b55a: d084 addl %d4,%d0 <== NOT EXECUTED 4b55c: d081 addl %d1,%d0 <== NOT EXECUTED ) { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 4b55e: 226c 000c moveal %a4@(12),%a1 <== NOT EXECUTED Heap_Block *the_block ) { Heap_Block *block = the_block; Heap_Block *next = block->next; 4b562: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED _Heap_Block_remove( next_block ); stats->free_blocks -= 1; prev_block->size = size | HEAP_PREV_USED; 4b566: 7201 moveq #1,%d1 <== NOT EXECUTED 4b568: 8280 orl %d0,%d1 <== NOT EXECUTED next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; 4b56a: 2580 0800 movel %d0,%a2@(00000000,%d0:l) <== NOT EXECUTED if ( next_is_free ) { /* coalesce both */ uint32_t const size = the_size + prev_size + next_size; _Heap_Block_remove( next_block ); stats->free_blocks -= 1; prev_block->size = size | HEAP_PREV_USED; 4b56e: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 4b572: 2149 000c movel %a1,%a0@(12) <== NOT EXECUTED { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 4b576: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; stats->free_size += the_size; stats->frees += 1; 4b57a: 7001 moveq #1,%d0 <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; stats->free_size += the_size; 4b57c: d7ab 0030 addl %d3,%a3@(48) <== NOT EXECUTED stats->frees += 1; 4b580: 52ab 0050 addql #1,%a3@(80) <== NOT EXECUTED stats->free_blocks += 1; if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; 4b584: 53ab 0040 subql #1,%a3@(64) <== NOT EXECUTED stats->free_size += the_size; stats->frees += 1; return( TRUE ); } 4b588: 4cd7 1c1c moveml %sp@,%d2-%d4/%a2-%a4 <== NOT EXECUTED 4b58c: 4e5e unlk %fp <== NOT EXECUTED 4b58e: 4e75 rts <== NOT EXECUTED _HAssert( FALSE ); return( FALSE ); } next_size = _Heap_Block_size( next_block ); next_is_free = next_block < the_heap->final && 4b590: 2034 4804 movel %a4@(00000004,%d4:l),%d0 <== NOT EXECUTED 4b594: 7401 moveq #1,%d2 <== NOT EXECUTED 4b596: b580 eorl %d2,%d0 <== NOT EXECUTED 4b598: c480 andl %d0,%d2 <== NOT EXECUTED 4b59a: 6096 bras 4b532 <_Heap_Free+0x6a> <== NOT EXECUTED prev_block->size = size | HEAP_PREV_USED; next_block->size &= ~HEAP_PREV_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ 4b59c: 4a02 tstb %d2 <== NOT EXECUTED 4b59e: 6738 beqs 4b5d8 <_Heap_Free+0x110> <== NOT EXECUTED Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 4b5a0: 206c 000c moveal %a4@(12),%a0 <== NOT EXECUTED Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 4b5a4: 226c 0008 moveal %a4@(8),%a1 <== NOT EXECUTED uint32_t const size = the_size + next_size; 4b5a8: 2004 movel %d4,%d0 <== NOT EXECUTED 4b5aa: d083 addl %d3,%d0 <== NOT EXECUTED _Heap_Block_replace( next_block, the_block ); the_block->size = size | HEAP_PREV_USED; 4b5ac: 7201 moveq #1,%d1 <== NOT EXECUTED next_block = _Heap_Block_at( the_block, size ); next_block->prev_size = size; 4b5ae: 2580 0800 movel %d0,%a2@(00000000,%d0:l) <== NOT EXECUTED } } else if ( next_is_free ) { /* coalesce next */ uint32_t const size = the_size + next_size; _Heap_Block_replace( next_block, the_block ); the_block->size = size | HEAP_PREV_USED; 4b5b2: 8280 orl %d0,%d1 <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; stats->free_size += the_size; stats->frees += 1; 4b5b4: 7001 moveq #1,%d0 <== NOT EXECUTED } } else if ( next_is_free ) { /* coalesce next */ uint32_t const size = the_size + next_size; _Heap_Block_replace( next_block, the_block ); the_block->size = size | HEAP_PREV_USED; 4b5b6: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; stats->free_size += the_size; 4b5ba: d7ab 0030 addl %d3,%a3@(48) <== NOT EXECUTED stats->frees += 1; 4b5be: 52ab 0050 addql #1,%a3@(80) <== NOT EXECUTED stats->free_blocks += 1; if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; 4b5c2: 53ab 0040 subql #1,%a3@(64) <== NOT EXECUTED Heap_Block *prev = block->prev; block = new_block; block->next = next; 4b5c6: 2549 0008 movel %a1,%a2@(8) <== NOT EXECUTED block->prev = prev; 4b5ca: 2548 000c movel %a0,%a2@(12) <== NOT EXECUTED next->prev = prev->next = block; 4b5ce: 214a 0008 movel %a2,%a0@(8) <== NOT EXECUTED 4b5d2: 234a 000c movel %a2,%a1@(12) <== NOT EXECUTED 4b5d6: 60b0 bras 4b588 <_Heap_Free+0xc0> <== NOT EXECUTED } else { /* no coalesce */ /* Add 'the_block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Block_insert_after( _Heap_Head( the_heap), the_block ); the_block->size = the_size | HEAP_PREV_USED; 4b5d8: 7401 moveq #1,%d2 <== NOT EXECUTED 4b5da: 8483 orl %d3,%d2 <== NOT EXECUTED ) { Heap_Block *prev = prev_block; Heap_Block *block = the_block; Heap_Block *next = prev->next; 4b5dc: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 4b5e0: 2542 0004 movel %d2,%a2@(4) <== NOT EXECUTED next_block->size &= ~HEAP_PREV_USED; 4b5e4: 70fe moveq #-2,%d0 <== NOT EXECUTED 4b5e6: c1ac 0004 andl %d0,%a4@(4) <== NOT EXECUTED next_block->prev_size = the_size; 4b5ea: 2883 movel %d3,%a4@ <== NOT EXECUTED stats->free_blocks += 1; 4b5ec: 202b 0038 movel %a3@(56),%d0 <== NOT EXECUTED block->next = next; 4b5f0: 2548 0008 movel %a0,%a2@(8) <== NOT EXECUTED 4b5f4: 5280 addql #1,%d0 <== NOT EXECUTED block->prev = prev; 4b5f6: 254b 000c movel %a3,%a2@(12) <== NOT EXECUTED next->prev = prev->next = block; 4b5fa: 274a 0008 movel %a2,%a3@(8) <== NOT EXECUTED 4b5fe: 214a 000c movel %a2,%a0@(12) <== NOT EXECUTED 4b602: 2740 0038 movel %d0,%a3@(56) <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) 4b606: b0ab 003c cmpl %a3@(60),%d0 <== NOT EXECUTED 4b60a: 6300 ff6e blsw 4b57a <_Heap_Free+0xb2> <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; stats->free_size += the_size; 4b60e: d7ab 0030 addl %d3,%a3@(48) <== NOT EXECUTED stats->frees += 1; 4b612: 52ab 0050 addql #1,%a3@(80) <== NOT EXECUTED stats->free_blocks += 1; if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; 4b616: 53ab 0040 subql #1,%a3@(64) <== NOT EXECUTED next_block->size &= ~HEAP_PREV_USED; next_block->prev_size = the_size; stats->free_blocks += 1; if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; 4b61a: 2740 003c movel %d0,%a3@(60) <== NOT EXECUTED } stats->used_blocks -= 1; stats->free_size += the_size; stats->frees += 1; 4b61e: 7001 moveq #1,%d0 <== NOT EXECUTED 4b620: 6000 ff66 braw 4b588 <_Heap_Free+0xc0> <== NOT EXECUTED next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uint32_t const size = the_size + prev_size; 4b624: 2003 movel %d3,%d0 <== NOT EXECUTED 4b626: d081 addl %d1,%d0 <== NOT EXECUTED prev_block->size = size | HEAP_PREV_USED; 4b628: 7401 moveq #1,%d2 <== NOT EXECUTED next_block->size &= ~HEAP_PREV_USED; next_block->prev_size = size; 4b62a: 2880 movel %d0,%a4@ <== NOT EXECUTED _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uint32_t const size = the_size + prev_size; prev_block->size = size | HEAP_PREV_USED; 4b62c: 8480 orl %d0,%d2 <== NOT EXECUTED next_block->size &= ~HEAP_PREV_USED; 4b62e: 70fe moveq #-2,%d0 <== NOT EXECUTED _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uint32_t const size = the_size + prev_size; prev_block->size = size | HEAP_PREV_USED; 4b630: 2542 0004 movel %d2,%a2@(4) <== NOT EXECUTED next_block->size &= ~HEAP_PREV_USED; 4b634: c1ac 0004 andl %d0,%a4@(4) <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; stats->free_size += the_size; 4b638: d7ab 0030 addl %d3,%a3@(48) <== NOT EXECUTED stats->frees += 1; 4b63c: 52ab 0050 addql #1,%a3@(80) <== NOT EXECUTED stats->free_blocks += 1; if ( stats->max_free_blocks < stats->free_blocks ) stats->max_free_blocks = stats->free_blocks; } stats->used_blocks -= 1; 4b640: 53ab 0040 subql #1,%a3@(64) <== NOT EXECUTED stats->free_size += the_size; stats->frees += 1; 4b644: 7001 moveq #1,%d0 <== NOT EXECUTED 4b646: 6000 ff40 braw 4b588 <_Heap_Free+0xc0> <== NOT EXECUTED ... 000636c4 <_Heap_Get_free_information>: void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 636c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 636c8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 636ca: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 636ce: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 636d2: 226a 0008 moveal %a2@(8),%a1 <== NOT EXECUTED Heap_Block *the_block; Heap_Block *const tail = _Heap_Tail(the_heap); info->number = 0; 636d6: 4290 clrl %a0@ <== NOT EXECUTED info->largest = 0; 636d8: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED info->total = 0; 636dc: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED for(the_block = _Heap_First(the_heap); the_block != tail; 636e0: b3ca cmpal %a2,%a1 <== NOT EXECUTED 636e2: 671e beqs 63702 <_Heap_Get_free_information+0x3e> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 636e4: 70fe moveq #-2,%d0 <== NOT EXECUTED 636e6: c0a9 0004 andl %a1@(4),%d0 <== NOT EXECUTED uint32_t const the_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; 636ea: 5290 addql #1,%a0@ <== NOT EXECUTED info->total += the_size; 636ec: d1a8 0008 addl %d0,%a0@(8) <== NOT EXECUTED if ( info->largest < the_size ) 636f0: b0a8 0004 cmpl %a0@(4),%d0 <== NOT EXECUTED 636f4: 6304 blss 636fa <_Heap_Get_free_information+0x36> <== NOT EXECUTED info->largest = the_size; 636f6: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED info->largest = 0; info->total = 0; for(the_block = _Heap_First(the_heap); the_block != tail; the_block = the_block->next) 636fa: 2269 0008 moveal %a1@(8),%a1 <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_First(the_heap); the_block != tail; 636fe: b3ca cmpal %a2,%a1 <== NOT EXECUTED 63700: 66e2 bnes 636e4 <_Heap_Get_free_information+0x20> <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 63702: 245f moveal %sp@+,%a2 <== NOT EXECUTED 63704: 4e5e unlk %fp <== NOT EXECUTED 63706: 4e75 rts 0006dd74 <_Heap_Get_information>: Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 6dd74: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6dd78: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 6dd7c: 2f02 movel %d2,%sp@- <== NOT EXECUTED Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 6dd7e: 2428 0024 movel %a0@(36),%d2 <== NOT EXECUTED Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 6dd82: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED Heap_Block *the_block = the_heap->start; 6dd86: 2068 0020 moveal %a0@(32),%a0 <== NOT EXECUTED Heap_Block *const end = the_heap->final; _HAssert(the_block->prev_size == HEAP_PREV_USED); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; 6dd8a: 4291 clrl %a1@ <== NOT EXECUTED the_info->Free.total = 0; 6dd8c: 42a9 0008 clrl %a1@(8) <== NOT EXECUTED the_info->Free.largest = 0; 6dd90: 42a9 0004 clrl %a1@(4) <== NOT EXECUTED the_info->Used.number = 0; 6dd94: 42a9 000c clrl %a1@(12) <== NOT EXECUTED the_info->Used.total = 0; 6dd98: 42a9 0014 clrl %a1@(20) <== NOT EXECUTED the_info->Used.largest = 0; 6dd9c: 42a9 0010 clrl %a1@(16) <== NOT EXECUTED while ( the_block != end ) { 6dda0: b488 cmpl %a0,%d2 <== NOT EXECUTED 6dda2: 672a beqs 6ddce <_Heap_Get_information+0x5a> <== NOT EXECUTED 6dda4: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 6dda8: 70fe moveq #-2,%d0 <== NOT EXECUTED 6ddaa: c081 andl %d1,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 6ddac: d1c0 addal %d0,%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 6ddae: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { 6ddb2: 0801 0000 btst #0,%d1 <== NOT EXECUTED 6ddb6: 6722 beqs 6ddda <_Heap_Get_information+0x66> <== NOT EXECUTED the_info->Used.number++; 6ddb8: 52a9 000c addql #1,%a1@(12) <== NOT EXECUTED the_info->Used.total += the_size; 6ddbc: d1a9 0014 addl %d0,%a1@(20) <== NOT EXECUTED if ( the_info->Used.largest < the_size ) 6ddc0: b0a9 0010 cmpl %a1@(16),%d0 <== NOT EXECUTED 6ddc4: 6304 blss 6ddca <_Heap_Get_information+0x56> <== NOT EXECUTED the_info->Used.largest = the_size; 6ddc6: 2340 0010 movel %d0,%a1@(16) <== NOT EXECUTED the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 6ddca: b1c2 cmpal %d2,%a0 <== NOT EXECUTED 6ddcc: 66da bnes 6dda8 <_Heap_Get_information+0x34> <== NOT EXECUTED "used" as client never allocated it. Make 'Used.total' contain this blocks' overhead though. */ the_info->Used.total += HEAP_OVERHEAD; return HEAP_GET_INFORMATION_SUCCESSFUL; } 6ddce: 241f movel %sp@+,%d2 <== NOT EXECUTED } /* 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_OVERHEAD; 6ddd0: 50a9 0014 addql #8,%a1@(20) <== NOT EXECUTED return HEAP_GET_INFORMATION_SUCCESSFUL; } 6ddd4: 4e5e unlk %fp <== NOT EXECUTED } /* 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_OVERHEAD; 6ddd6: 4280 clrl %d0 <== NOT EXECUTED return HEAP_GET_INFORMATION_SUCCESSFUL; } 6ddd8: 4e75 rts <== NOT EXECUTED the_info->Used.number++; the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; } else { the_info->Free.number++; 6ddda: 5291 addql #1,%a1@ <== NOT EXECUTED the_info->Free.total += the_size; 6dddc: d1a9 0008 addl %d0,%a1@(8) <== NOT EXECUTED if ( the_info->Free.largest < the_size ) 6dde0: b0a9 0004 cmpl %a1@(4),%d0 <== NOT EXECUTED 6dde4: 6304 blss 6ddea <_Heap_Get_information+0x76> <== NOT EXECUTED the_info->Free.largest = the_size; 6dde6: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED if ( the_size != next_block->prev_size ) 6ddea: b090 cmpl %a0@,%d0 <== NOT EXECUTED 6ddec: 67dc beqs 6ddca <_Heap_Get_information+0x56> <== NOT EXECUTED "used" as client never allocated it. Make 'Used.total' contain this blocks' overhead though. */ the_info->Used.total += HEAP_OVERHEAD; return HEAP_GET_INFORMATION_SUCCESSFUL; } 6ddee: 241f movel %sp@+,%d2 <== NOT EXECUTED 6ddf0: 4e5e unlk %fp <== NOT EXECUTED } else { the_info->Free.number++; the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; if ( the_size != next_block->prev_size ) 6ddf2: 7001 moveq #1,%d0 <== NOT EXECUTED "used" as client never allocated it. Make 'Used.total' contain this blocks' overhead though. */ the_info->Used.total += HEAP_OVERHEAD; return HEAP_GET_INFORMATION_SUCCESSFUL; } 6ddf4: 4e75 rts <== NOT EXECUTED ... 00046c48 <_Heap_Initialize>: Heap_Control *the_heap, void *starting_address, size_t size, uint32_t page_size ) { 46c48: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 46c4c: 48d7 047c moveml %d2-%d6/%a2,%sp@ <== NOT EXECUTED 46c50: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 46c54: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 46c58: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED 46c5c: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED _H_uptr_t start; _H_uptr_t aligned_start; uint32_t overhead; Heap_Statistics *const stats = &the_heap->stats; if (page_size == 0) 46c60: 6600 00ec bnew 46d4e <_Heap_Initialize+0x106> <== NOT EXECUTED 46c64: 143c 0004 moveb #4,%d2 <== NOT EXECUTED 46c68: 4283 clrl %d3 <== NOT EXECUTED /* Calculate aligned_start so that aligned_start + HEAP_BLOCK_USER_OFFSET (value of user pointer) is aligned on 'page_size' boundary. Make sure resulting 'aligned_start' is not below 'starting_address'. */ start = _H_p2u(starting_address); aligned_start = start + HEAP_BLOCK_USER_OFFSET; 46c6a: 2005 movel %d5,%d0 <== NOT EXECUTED 46c6c: 5080 addql #8,%d0 <== NOT EXECUTED uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 46c6e: 2c00 movel %d0,%d6 <== NOT EXECUTED 46c70: 4c42 6001 remul %d2,%d1,%d6 <== NOT EXECUTED *value = r ? v - r + a : v; 46c74: 4a81 tstl %d1 <== NOT EXECUTED 46c76: 6704 beqs 46c7c <_Heap_Initialize+0x34> <== NOT EXECUTED 46c78: d082 addl %d2,%d0 <== NOT EXECUTED 46c7a: 9081 subl %d1,%d0 <== NOT EXECUTED _Heap_Align_up_uptr ( &aligned_start, page_size ); aligned_start -= HEAP_BLOCK_USER_OFFSET; 46c7c: 2240 moveal %d0,%a1 <== NOT EXECUTED 46c7e: 5189 subql #8,%a1 <== NOT EXECUTED ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; *value = r ? v - r + a : v; 46c80: 4a83 tstl %d3 <== NOT EXECUTED 46c82: 6600 00bc bnew 46d40 <_Heap_Initialize+0xf8> <== NOT EXECUTED 46c86: 7210 moveq #16,%d1 <== NOT EXECUTED /* Calculate 'the_size' -- size of the first block so that there is enough space at the end for the permanent last block. It is equal to 'size' minus total overhead aligned down to the nearest multiple of 'page_size'. */ overhead = HEAP_OVERHEAD + (aligned_start - start); 46c88: 7008 moveq #8,%d0 <== NOT EXECUTED 46c8a: 9085 subl %d5,%d0 <== NOT EXECUTED 46c8c: d089 addl %a1,%d0 <== NOT EXECUTED 46c8e: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED if ( size < overhead ) 46c92: b880 cmpl %d0,%d4 <== NOT EXECUTED 46c94: 6500 009e bcsw 46d34 <_Heap_Initialize+0xec> <== NOT EXECUTED return 0; /* Too small area for the heap */ the_size = size - overhead; 46c98: 2204 movel %d4,%d1 <== NOT EXECUTED 46c9a: 9280 subl %d0,%d1 <== NOT EXECUTED 46c9c: 2001 movel %d1,%d0 <== NOT EXECUTED uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 46c9e: 2601 movel %d1,%d3 <== NOT EXECUTED 46ca0: 4c42 3001 remul %d2,%d1,%d3 <== NOT EXECUTED 46ca4: 9081 subl %d1,%d0 <== NOT EXECUTED 46ca6: 2200 movel %d0,%d1 <== NOT EXECUTED _Heap_Align_down ( &the_size, page_size ); if ( the_size == 0 ) 46ca8: 6700 008a beqw 46d34 <_Heap_Initialize+0xec> <== NOT EXECUTED return 0; /* Too small area for the heap */ the_heap->page_size = page_size; 46cac: 2542 0010 movel %d2,%a2@(16) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( void *base, uint32_t offset ) { return (void *)((char *)base + offset); 46cb0: 41f1 0800 lea %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED the_heap->end = starting_address + size; the_block = (Heap_Block *) aligned_start; the_block->prev_size = page_size; the_block->size = the_size | HEAP_PREV_USED; 46cb4: 7001 moveq #1,%d0 <== NOT EXECUTED 46cb6: 8081 orl %d1,%d0 <== NOT EXECUTED 46cb8: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 46cbc: 2039 0005 7f00 movel 57f00 ,%d0 <== NOT EXECUTED the_heap->begin = starting_address; the_heap->end = starting_address + size; the_block = (Heap_Block *) aligned_start; the_block->prev_size = page_size; 46cc2: 2282 movel %d2,%a1@ <== NOT EXECUTED _HAssert(_Heap_Is_aligned_ptr(_Heap_User_area(the_block), page_size)); the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ the_block->size = page_size; 46cc4: 2142 0004 movel %d2,%a0@(4) <== NOT EXECUTED stats->size = size; stats->free_size = the_size; stats->min_free_size = the_size; stats->free_blocks = 1; 46cc8: 7401 moveq #1,%d2 <== NOT EXECUTED _HAssert(_Heap_Is_aligned(the_heap->min_block_size, page_size)); _HAssert(_Heap_Is_aligned_ptr(_Heap_User_area(the_block), page_size)); the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ 46cca: 2081 movel %d1,%a0@ <== NOT EXECUTED the_block->size = page_size; stats->size = size; stats->free_size = the_size; stats->min_free_size = the_size; stats->free_blocks = 1; 46ccc: 2542 0038 movel %d2,%a2@(56) <== NOT EXECUTED stats->max_free_blocks = 1; 46cd0: 2542 003c movel %d2,%a2@(60) <== NOT EXECUTED stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; return ( the_size - HEAP_BLOCK_USED_OVERHEAD ); 46cd4: 2401 movel %d1,%d2 <== NOT EXECUTED 46cd6: 5982 subql #4,%d2 <== NOT EXECUTED the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ the_block->size = page_size; stats->size = size; 46cd8: 2544 002c movel %d4,%a2@(44) <== NOT EXECUTED if ( the_size == 0 ) return 0; /* Too small area for the heap */ the_heap->page_size = page_size; the_heap->begin = starting_address; the_heap->end = starting_address + size; 46cdc: d885 addl %d5,%d4 <== NOT EXECUTED stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 46cde: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 46ce2: 5280 addql #1,%d0 <== NOT EXECUTED the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ the_block->size = page_size; stats->size = size; stats->free_size = the_size; 46ce4: 2541 0030 movel %d1,%a2@(48) <== NOT EXECUTED stats->min_free_size = the_size; 46ce8: 2541 0034 movel %d1,%a2@(52) <== NOT EXECUTED stats->free_blocks = 1; stats->max_free_blocks = 1; stats->used_blocks = 0; 46cec: 42aa 0040 clrl %a2@(64) <== NOT EXECUTED stats->max_search = 0; 46cf0: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED stats->allocs = 0; 46cf4: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED stats->searches = 0; 46cf8: 42aa 004c clrl %a2@(76) <== NOT EXECUTED stats->frees = 0; 46cfc: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED stats->resizes = 0; 46d00: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED the_block = (Heap_Block *) aligned_start; the_block->prev_size = page_size; the_block->size = the_size | HEAP_PREV_USED; the_block->next = _Heap_Tail( the_heap ); 46d04: 234a 0008 movel %a2,%a1@(8) <== NOT EXECUTED the_block->prev = _Heap_Head( the_heap ); 46d08: 234a 000c movel %a2,%a1@(12) <== NOT EXECUTED stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 46d0c: 23c0 0005 7f00 movel %d0,57f00 <== NOT EXECUTED return ( the_size - HEAP_BLOCK_USED_OVERHEAD ); } 46d12: 2002 movel %d2,%d0 <== NOT EXECUTED if ( the_size == 0 ) return 0; /* Too small area for the heap */ the_heap->page_size = page_size; the_heap->begin = starting_address; the_heap->end = starting_address + size; 46d14: 2544 001c movel %d4,%a2@(28) <== NOT EXECUTED _Heap_Align_down ( &the_size, page_size ); if ( the_size == 0 ) return 0; /* Too small area for the heap */ the_heap->page_size = page_size; the_heap->begin = starting_address; 46d18: 2545 0018 movel %d5,%a2@(24) <== NOT EXECUTED the_block->prev_size = page_size; the_block->size = the_size | HEAP_PREV_USED; the_block->next = _Heap_Tail( the_heap ); the_block->prev = _Heap_Head( the_heap ); _Heap_Head(the_heap)->next = the_block; 46d1c: 2549 0008 movel %a1,%a2@(8) <== NOT EXECUTED _Heap_Tail(the_heap)->prev = the_block; 46d20: 2549 000c movel %a1,%a2@(12) <== NOT EXECUTED the_heap->start = the_block; 46d24: 2549 0020 movel %a1,%a2@(32) <== NOT EXECUTED _HAssert(_Heap_Is_aligned(the_heap->page_size, CPU_ALIGNMENT)); _HAssert(_Heap_Is_aligned(the_heap->min_block_size, page_size)); _HAssert(_Heap_Is_aligned_ptr(_Heap_User_area(the_block), page_size)); the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ 46d28: 2548 0024 movel %a0,%a2@(36) <== NOT EXECUTED stats->frees = 0; stats->resizes = 0; stats->instance = instance++; return ( the_size - HEAP_BLOCK_USED_OVERHEAD ); } 46d2c: 4cd7 047c moveml %sp@,%d2-%d6/%a2 <== NOT EXECUTED 46d30: 4e5e unlk %fp <== NOT EXECUTED 46d32: 4e75 rts <== NOT EXECUTED stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; return ( the_size - HEAP_BLOCK_USED_OVERHEAD ); 46d34: 4282 clrl %d2 <== NOT EXECUTED } 46d36: 2002 movel %d2,%d0 <== NOT EXECUTED 46d38: 4cd7 047c moveml %sp@,%d2-%d6/%a2 <== NOT EXECUTED 46d3c: 4e5e unlk %fp <== NOT EXECUTED 46d3e: 4e75 rts <== NOT EXECUTED ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; *value = r ? v - r + a : v; 46d40: 2202 movel %d2,%d1 <== NOT EXECUTED 46d42: 0681 0000 0010 addil #16,%d1 <== NOT EXECUTED 46d48: 9283 subl %d3,%d1 <== NOT EXECUTED 46d4a: 6000 ff3c braw 46c88 <_Heap_Initialize+0x40> <== NOT EXECUTED uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 46d4e: 7003 moveq #3,%d0 <== NOT EXECUTED 46d50: c082 andl %d2,%d0 <== NOT EXECUTED *value = r ? v - r + a : v; 46d52: 670e beqs 46d62 <_Heap_Initialize+0x11a> <== NOT EXECUTED 46d54: 5882 addql #4,%d2 <== NOT EXECUTED 46d56: 9480 subl %d0,%d2 <== NOT EXECUTED 46d58: 7010 moveq #16,%d0 <== NOT EXECUTED 46d5a: 4c42 0003 remul %d2,%d3,%d0 <== NOT EXECUTED 46d5e: 6000 ff0a braw 46c6a <_Heap_Initialize+0x22> <== NOT EXECUTED 46d62: 103c 0010 moveb #16,%d0 <== NOT EXECUTED 46d66: 4c42 0003 remul %d2,%d3,%d0 <== NOT EXECUTED 46d6a: 6000 fefe braw 46c6a <_Heap_Initialize+0x22> <== NOT EXECUTED 00055188 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 55188: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 5518c: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 55190: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 55194: 286e 0014 moveal %fp@(20),%a4 <== NOT EXECUTED Heap_Block *next_next_block; uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; 55198: 282b 0014 movel %a3@(20),%d4 <== NOT EXECUTED uint32_t const page_size = the_heap->page_size; 5519c: 262b 0010 movel %a3@(16),%d3 <== NOT EXECUTED void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 551a0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; 551a4: 4294 clrl %a4@ <== NOT EXECUTED void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 551a6: 2a6e 0018 moveal %fp@(24),%a5 <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 551aa: 2442 moveal %d2,%a2 <== NOT EXECUTED Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; *avail_mem_size = 0; 551ac: 4295 clrl %a5@ <== NOT EXECUTED 551ae: 2a02 movel %d2,%d5 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in ( Heap_Control *the_heap, Heap_Block *the_block ) { return _Addresses_Is_in_range( the_block, the_heap->start, the_heap->final ); 551b0: 206b 0024 moveal %a3@(36),%a0 <== NOT EXECUTED 551b4: 222b 0020 movel %a3@(32),%d1 <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 551b8: 518a subql #8,%a2 <== NOT EXECUTED 551ba: 4c6b 5000 0010 remul %a3@(16),%d0,%d5 <== NOT EXECUTED 551c0: 95c0 subal %d0,%a2 <== NOT EXECUTED 551c2: b28a cmpl %a2,%d1 <== NOT EXECUTED 551c4: 6204 bhis 551ca <_Heap_Resize_block+0x42> <== NOT EXECUTED 551c6: b1ca cmpal %a2,%a0 <== NOT EXECUTED 551c8: 640c bccs 551d6 <_Heap_Resize_block+0x4e> <== NOT EXECUTED } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } 551ca: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 551d0: 4e5e unlk %fp <== NOT EXECUTED } } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 551d2: 7002 moveq #2,%d0 <== NOT EXECUTED } 551d4: 4e75 rts <== NOT EXECUTED _Heap_Start_of_block(the_heap, starting_address, &the_block); _HAssert(_Heap_Is_block_in(the_heap, the_block)); if (!_Heap_Is_block_in(the_heap, the_block)) return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 551d6: 2c2a 0004 movel %a2@(4),%d6 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 551da: 70fe moveq #-2,%d0 <== NOT EXECUTED 551dc: c086 andl %d6,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 551de: 2240 moveal %d0,%a1 <== NOT EXECUTED 551e0: d3ca addal %a2,%a1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 551e2: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 551e6: 2d49 fff4 movel %a1,%fp@(-12) <== NOT EXECUTED 551ea: b3c1 cmpal %d1,%a1 <== NOT EXECUTED 551ec: 65dc bcss 551ca <_Heap_Resize_block+0x42> <== NOT EXECUTED 551ee: b3c8 cmpal %a0,%a1 <== NOT EXECUTED 551f0: 62d8 bhis 551ca <_Heap_Resize_block+0x42> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 551f2: 2229 0004 movel %a1@(4),%d1 <== NOT EXECUTED old_block_size = _Heap_Block_size(the_block); next_block = _Heap_Block_at(the_block, old_block_size); _HAssert(_Heap_Is_block_in(the_heap, next_block)); _HAssert(_Heap_Is_prev_used(next_block)); if ( !_Heap_Is_block_in(the_heap, next_block) || 551f6: 7001 moveq #1,%d0 <== NOT EXECUTED 551f8: c081 andl %d1,%d0 <== NOT EXECUTED 551fa: 4a00 tstb %d0 <== NOT EXECUTED 551fc: 67cc beqs 551ca <_Heap_Resize_block+0x42> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 551fe: 7efe moveq #-2,%d7 <== NOT EXECUTED 55200: ce81 andl %d1,%d7 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 55202: d3c7 addal %d7,%a1 <== NOT EXECUTED 55204: 2d49 fff8 movel %a1,%fp@(-8) <== NOT EXECUTED !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 55208: b1ee fff4 cmpal %fp@(-12),%a0 <== NOT EXECUTED 5520c: 6700 0100 beqw 5530e <_Heap_Resize_block+0x186> <== NOT EXECUTED 55210: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 55214: 7a01 moveq #1,%d5 <== NOT EXECUTED 55216: caa8 0004 andl %a0@(4),%d5 <== NOT EXECUTED _Heap_Is_prev_used(next_next_block); /* See _Heap_Size_of_user_area() source for explanations */ old_user_size = _Addresses_Subtract(next_block, starting_address) 5521a: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 5521e: 91c2 subal %d2,%a0 <== NOT EXECUTED 55220: 2008 movel %a0,%d0 <== NOT EXECUTED 55222: 5880 addql #4,%d0 <== NOT EXECUTED _Heap_Start_of_block(the_heap, starting_address, &the_block); _HAssert(_Heap_Is_block_in(the_heap, the_block)); if (!_Heap_Is_block_in(the_heap, the_block)) return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 55224: 7201 moveq #1,%d1 <== NOT EXECUTED /* See _Heap_Size_of_user_area() source for explanations */ old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; 55226: 2880 movel %d0,%a4@ <== NOT EXECUTED _Heap_Start_of_block(the_heap, starting_address, &the_block); _HAssert(_Heap_Is_block_in(the_heap, the_block)); if (!_Heap_Is_block_in(the_heap, the_block)) return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 55228: cc81 andl %d1,%d6 <== NOT EXECUTED old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 5522a: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED 5522e: 6432 bccs 55262 <_Heap_Resize_block+0xda> <== NOT EXECUTED /* Need to extend the block: allocate part of the next block and then merge 'the_block' and allocated block together. */ if (next_is_used) /* Next block is in use, -- no way to extend */ 55230: 4a05 tstb %d5 <== NOT EXECUTED 55232: 6622 bnes 55256 <_Heap_Resize_block+0xce> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; else { uint32_t add_block_size = size - old_user_size; 55234: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 55238: 9280 subl %d0,%d1 <== NOT EXECUTED 5523a: 2001 movel %d1,%d0 <== NOT EXECUTED uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 5523c: 2401 movel %d1,%d2 <== NOT EXECUTED 5523e: 4c43 2001 remul %d3,%d1,%d2 <== NOT EXECUTED *value = r ? v - r + a : v; 55242: 4a81 tstl %d1 <== NOT EXECUTED 55244: 6704 beqs 5524a <_Heap_Resize_block+0xc2> <== NOT EXECUTED 55246: d083 addl %d3,%d0 <== NOT EXECUTED 55248: 9081 subl %d1,%d0 <== NOT EXECUTED 5524a: b880 cmpl %d0,%d4 <== NOT EXECUTED 5524c: 6200 008e bhiw 552dc <_Heap_Resize_block+0x154> <== NOT EXECUTED _Heap_Align_up(&add_block_size, page_size); if (add_block_size < min_block_size) add_block_size = min_block_size; if (add_block_size > next_block_size) 55250: b087 cmpl %d7,%d0 <== NOT EXECUTED 55252: 6300 0090 blsw 552e4 <_Heap_Resize_block+0x15c> <== NOT EXECUTED } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } 55256: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 5525c: 4e5e unlk %fp <== NOT EXECUTED } } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 5525e: 7001 moveq #1,%d0 <== NOT EXECUTED } 55260: 4e75 rts <== NOT EXECUTED --stats->used_blocks; } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 55262: 90ae 0010 subl %fp@(16),%d0 <== NOT EXECUTED uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 55266: 2400 movel %d0,%d2 <== NOT EXECUTED 55268: 4c43 2001 remul %d3,%d1,%d2 <== NOT EXECUTED 5526c: 2400 movel %d0,%d2 <== NOT EXECUTED 5526e: 9481 subl %d1,%d2 <== NOT EXECUTED _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 55270: 675a beqs 552cc <_Heap_Resize_block+0x144> <== NOT EXECUTED /* To free some memory the block should be shortened so that it can can hold 'size' user bytes and still remain not shorter than 'min_block_size'. */ uint32_t new_block_size = old_block_size - free_block_size; 55272: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 55276: 9282 subl %d2,%d1 <== NOT EXECUTED if (new_block_size < min_block_size) { 55278: b284 cmpl %d4,%d1 <== NOT EXECUTED 5527a: 640a bccs 55286 <_Heap_Resize_block+0xfe> <== NOT EXECUTED uint32_t delta = min_block_size - new_block_size; 5527c: 2004 movel %d4,%d0 <== NOT EXECUTED 5527e: 9081 subl %d1,%d0 <== NOT EXECUTED _HAssert(free_block_size >= delta); free_block_size -= delta; 55280: 9480 subl %d0,%d2 <== NOT EXECUTED if (free_block_size == 0) { 55282: 6748 beqs 552cc <_Heap_Resize_block+0x144> <== NOT EXECUTED ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } new_block_size += delta; 55284: d280 addl %d0,%d1 <== NOT EXECUTED _HAssert(new_block_size >= min_block_size); _HAssert(new_block_size + free_block_size == old_block_size); _HAssert(_Heap_Is_aligned(new_block_size, page_size)); _HAssert(_Heap_Is_aligned(free_block_size, page_size)); if (!next_is_used) { 55286: 4a05 tstb %d5 <== NOT EXECUTED 55288: 6600 008a bnew 55314 <_Heap_Resize_block+0x18c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 5528c: 41f2 1800 lea %a2@(00000000,%d1:l),%a0 <== NOT EXECUTED Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 55290: 8286 orl %d6,%d1 <== NOT EXECUTED new_next_block->size = new_next_block_size | HEAP_PREV_USED; next_next_block->prev_size = new_next_block_size; 55292: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 55296: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 5529a: 286e fff4 moveal %fp@(-12),%a4 <== NOT EXECUTED if (!next_is_used) { /* Extend the next block to the low addresses by 'free_block_size' */ Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; 5529e: 2002 movel %d2,%d0 <== NOT EXECUTED 552a0: d087 addl %d7,%d0 <== NOT EXECUTED _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; new_next_block->size = new_next_block_size | HEAP_PREV_USED; 552a2: 7201 moveq #1,%d1 <== NOT EXECUTED next_next_block->prev_size = new_next_block_size; 552a4: 2280 movel %d0,%a1@ <== NOT EXECUTED _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; new_next_block->size = new_next_block_size | HEAP_PREV_USED; 552a6: 8280 orl %d0,%d1 <== NOT EXECUTED 552a8: 246c 000c moveal %a4@(12),%a2 <== NOT EXECUTED Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 552ac: 226c 0008 moveal %a4@(8),%a1 <== NOT EXECUTED 552b0: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED next_next_block->prev_size = new_next_block_size; _Heap_Block_replace(next_block, new_next_block); the_heap->stats.free_size += free_block_size; 552b4: d5ab 0030 addl %d2,%a3@(48) <== NOT EXECUTED *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 552b8: 5980 subql #4,%d0 <== NOT EXECUTED Heap_Block *prev = block->prev; block = new_block; block->next = next; 552ba: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED block->prev = prev; 552be: 214a 000c movel %a2,%a0@(12) <== NOT EXECUTED 552c2: 2a80 movel %d0,%a5@ <== NOT EXECUTED next->prev = prev->next = block; 552c4: 2348 000c movel %a0,%a1@(12) <== NOT EXECUTED 552c8: 2548 0008 movel %a0,%a2@(8) <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; } } } ++stats->resizes; 552cc: 4280 clrl %d0 <== NOT EXECUTED 552ce: 52ab 0054 addql #1,%a3@(84) <== NOT EXECUTED return HEAP_RESIZE_SUCCESSFUL; } 552d2: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 552d8: 4e5e unlk %fp <== NOT EXECUTED 552da: 4e75 rts <== NOT EXECUTED ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; *value = r ? v - r + a : v; 552dc: 2004 movel %d4,%d0 <== NOT EXECUTED else { uint32_t add_block_size = size - old_user_size; _Heap_Align_up(&add_block_size, page_size); if (add_block_size < min_block_size) add_block_size = min_block_size; if (add_block_size > next_block_size) 552de: b087 cmpl %d7,%d0 <== NOT EXECUTED 552e0: 6200 ff74 bhiw 55256 <_Heap_Resize_block+0xce> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 552e4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 552e6: 2f2e fff4 movel %fp@(-12),%sp@- <== NOT EXECUTED 552ea: 2f0b movel %a3,%sp@- <== NOT EXECUTED 552ec: 4eb9 0004 6daa jsr 46daa <_Heap_Block_allocate> <== NOT EXECUTED _Heap_Block_allocate(the_heap, next_block, add_block_size); /* Merge two subsequent blocks */ the_block->size = (old_block_size + add_block_size) | prev_used_flag; 552f2: d0ae fffc addl %fp@(-4),%d0 <== NOT EXECUTED 552f6: 8086 orl %d6,%d0 <== NOT EXECUTED 552f8: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED --stats->used_blocks; 552fc: 53ab 0040 subql #1,%a3@(64) <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; } } } ++stats->resizes; 55300: 52ab 0054 addql #1,%a3@(84) <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = _Heap_Block_allocate(the_heap, next_block, add_block_size); /* Merge two subsequent blocks */ the_block->size = (old_block_size + add_block_size) | prev_used_flag; --stats->used_blocks; 55304: dffc 0000 000c addal #12,%sp <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; } } } ++stats->resizes; 5530a: 4280 clrl %d0 <== NOT EXECUTED 5530c: 60c4 bras 552d2 <_Heap_Resize_block+0x14a> <== NOT EXECUTED !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 5530e: 7a01 moveq #1,%d5 <== NOT EXECUTED 55310: 6000 ff08 braw 5521a <_Heap_Resize_block+0x92> <== NOT EXECUTED next_next_block->prev_size = new_next_block_size; _Heap_Block_replace(next_block, new_next_block); the_heap->stats.free_size += free_block_size; *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; } else if (free_block_size >= min_block_size) { 55314: b484 cmpl %d4,%d2 <== NOT EXECUTED 55316: 65b4 bcss 552cc <_Heap_Resize_block+0x144> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 55318: 41f2 1800 lea %a2@(00000000,%d1:l),%a0 <== NOT EXECUTED /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; 5531c: 8286 orl %d6,%d1 <== NOT EXECUTED 5531e: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 55322: 7001 moveq #1,%d0 <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ --stats->frees; /* Don't count next call in stats */ _Heap_Free(the_heap, _Heap_User_area(next_block)); 55324: 4868 0008 pea %a0@(8) <== NOT EXECUTED } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 55328: 8082 orl %d2,%d0 <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ --stats->frees; /* Don't count next call in stats */ _Heap_Free(the_heap, _Heap_User_area(next_block)); *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 5532a: 5982 subql #4,%d2 <== NOT EXECUTED } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 5532c: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 55330: 52ab 0040 addql #1,%a3@(64) <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 55334: 53ab 0050 subql #1,%a3@(80) <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 55338: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5533a: 4eb9 0004 b4c8 jsr 4b4c8 <_Heap_Free> <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 55340: 2a82 movel %d2,%a5@ <== NOT EXECUTED } } } ++stats->resizes; 55342: 52ab 0054 addql #1,%a3@(84) <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; ++stats->used_blocks; /* We have created used block */ --stats->frees; /* Don't count next call in stats */ _Heap_Free(the_heap, _Heap_User_area(next_block)); *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 55346: 508f addql #8,%sp <== NOT EXECUTED } } } ++stats->resizes; 55348: 4280 clrl %d0 <== NOT EXECUTED 5534a: 6086 bras 552d2 <_Heap_Resize_block+0x14a> <== NOT EXECUTED 0005534c <_Heap_Size_of_user_area>: bool _Heap_Size_of_user_area( Heap_Control *the_heap, void *starting_address, size_t *size ) { 5534c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 55350: 2f03 movel %d3,%sp@- <== NOT EXECUTED 55352: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 55356: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55358: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Heap_Block *the_block; Heap_Block *next_block; uint32_t the_size; if ( !_Addresses_Is_in_range( 5535c: 2268 0024 moveal %a0@(36),%a1 <== NOT EXECUTED 55360: 2228 0020 movel %a0@(32),%d1 <== NOT EXECUTED 55364: b481 cmpl %d1,%d2 <== NOT EXECUTED 55366: 6504 bcss 5536c <_Heap_Size_of_user_area+0x20> <== NOT EXECUTED 55368: b489 cmpl %a1,%d2 <== NOT EXECUTED 5536a: 630a blss 55376 <_Heap_Size_of_user_area+0x2a> <== NOT EXECUTED *size = _Addresses_Subtract ( next_block, starting_address ) + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); } 5536c: 241f movel %sp@+,%d2 <== NOT EXECUTED 5536e: 261f movel %sp@+,%d3 <== NOT EXECUTED 55370: 4e5e unlk %fp <== NOT EXECUTED area of 'the_block'. */ *size = _Addresses_Subtract ( next_block, starting_address ) + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); 55372: 4200 clrb %d0 <== NOT EXECUTED } 55374: 4e75 rts <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 55376: 2602 movel %d2,%d3 <== NOT EXECUTED 55378: 4c68 3000 0010 remul %a0@(16),%d0,%d3 <== NOT EXECUTED 5537e: 2042 moveal %d2,%a0 <== NOT EXECUTED 55380: 5188 subql #8,%a0 <== NOT EXECUTED 55382: 91c0 subal %d0,%a0 <== NOT EXECUTED 55384: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 55386: 65e4 bcss 5536c <_Heap_Size_of_user_area+0x20> <== NOT EXECUTED 55388: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 5538a: 62e0 bhis 5536c <_Heap_Size_of_user_area+0x20> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 5538c: 70fe moveq #-2,%d0 <== NOT EXECUTED 5538e: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED 55392: d1c0 addal %d0,%a0 <== NOT EXECUTED 55394: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 55396: 65d4 bcss 5536c <_Heap_Size_of_user_area+0x20> <== NOT EXECUTED 55398: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 5539a: 62d0 bhis 5536c <_Heap_Size_of_user_area+0x20> <== NOT EXECUTED the_size = _Heap_Block_size( the_block ); next_block = _Heap_Block_at( the_block, the_size ); _HAssert(_Heap_Is_block_in( the_heap, next_block )); _HAssert(_Heap_Is_prev_used( next_block )); if ( 5539c: 7001 moveq #1,%d0 <== NOT EXECUTED 5539e: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED 553a2: 4a00 tstb %d0 <== NOT EXECUTED 553a4: 67c6 beqs 5536c <_Heap_Size_of_user_area+0x20> <== NOT EXECUTED and then add correction equal to the offset of the 'size' field of the 'Heap_Block' structure. The correction is due to the fact that 'prev_size' field of the next block is actually used as user accessible area of 'the_block'. */ *size = _Addresses_Subtract ( next_block, starting_address ) 553a6: 91c2 subal %d2,%a0 <== NOT EXECUTED + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); } 553a8: 241f movel %sp@+,%d2 <== NOT EXECUTED and then add correction equal to the offset of the 'size' field of the 'Heap_Block' structure. The correction is due to the fact that 'prev_size' field of the next block is actually used as user accessible area of 'the_block'. */ *size = _Addresses_Subtract ( next_block, starting_address ) 553aa: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); } 553ae: 261f movel %sp@+,%d3 <== NOT EXECUTED and then add correction equal to the offset of the 'size' field of the 'Heap_Block' structure. The correction is due to the fact that 'prev_size' field of the next block is actually used as user accessible area of 'the_block'. */ *size = _Addresses_Subtract ( next_block, starting_address ) 553b0: 5888 addql #4,%a0 <== NOT EXECUTED + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); } 553b2: 4e5e unlk %fp <== NOT EXECUTED and then add correction equal to the offset of the 'size' field of the 'Heap_Block' structure. The correction is due to the fact that 'prev_size' field of the next block is actually used as user accessible area of 'the_block'. */ *size = _Addresses_Subtract ( next_block, starting_address ) 553b4: 7001 moveq #1,%d0 <== NOT EXECUTED 553b6: 2288 movel %a0,%a1@ <== NOT EXECUTED + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); } 553b8: 4e75 rts <== NOT EXECUTED ... 0004ec44 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4ec44: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 4ec48: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4ec4c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4ec50: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED Heap_Block *the_block = the_heap->start; 4ec54: 286a 0020 moveal %a2@(32),%a4 <== NOT EXECUTED Heap_Block *const end = the_heap->final; 4ec58: 2c2a 0024 movel %a2@(36),%d6 <== NOT EXECUTED /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 4ec5c: 4a85 tstl %d5 <== NOT EXECUTED 4ec5e: 6d00 016c bltw 4edcc <_Heap_Walk+0x188> <== NOT EXECUTED /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 4ec62: 7001 moveq #1,%d0 <== NOT EXECUTED 4ec64: c0ac 0004 andl %a4@(4),%d0 <== NOT EXECUTED 4ec68: 4a00 tstb %d0 <== NOT EXECUTED 4ec6a: 6700 0170 beqw 4eddc <_Heap_Walk+0x198> <== NOT EXECUTED 4ec6e: 4284 clrl %d4 <== NOT EXECUTED printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); error = 1; } if (the_block->prev_size != the_heap->page_size) { 4ec70: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4ec74: b094 cmpl %a4@,%d0 <== NOT EXECUTED 4ec76: 6712 beqs 4ec8a <_Heap_Walk+0x46> <== NOT EXECUTED printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); 4ec78: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ec7a: 7801 moveq #1,%d4 <== NOT EXECUTED 4ec7c: 4879 0005 99a6 pea 599a6 <== NOT EXECUTED 4ec82: 4eb9 0004 5e9e jsr 45e9e <== NOT EXECUTED 4ec88: 508f addql #8,%sp <== NOT EXECUTED error = 1; } while ( the_block != end ) { 4ec8a: bc8c cmpl %a4,%d6 <== NOT EXECUTED 4ec8c: 6700 020e beqw 4ee9c <_Heap_Walk+0x258> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 4ec90: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 4ec94: 74fe moveq #-2,%d2 <== NOT EXECUTED 4ec96: c481 andl %d1,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4ec98: 47f4 2800 lea %a4@(00000000,%d2:l),%a3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in ( Heap_Control *the_heap, Heap_Block *the_block ) { return _Addresses_Is_in_range( the_block, the_heap->start, the_heap->final ); 4ec9c: 202a 0024 movel %a2@(36),%d0 <== NOT EXECUTED 4eca0: b7ea 0020 cmpal %a2@(32),%a3 <== NOT EXECUTED 4eca4: 6500 00a6 bcsw 4ed4c <_Heap_Walk+0x108> <== NOT EXECUTED 4eca8: b08b cmpl %a3,%d0 <== NOT EXECUTED 4ecaa: 6500 00a0 bcsw 4ed4c <_Heap_Walk+0x108> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 4ecae: 7601 moveq #1,%d3 <== NOT EXECUTED 4ecb0: c681 andl %d1,%d3 <== NOT EXECUTED 4ecb2: 2e3c 0004 5e9e movel #286366,%d7 <== NOT EXECUTED printk("PASS: %d !block %p is out of heap\n", source, next_block); error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 4ecb8: 7001 moveq #1,%d0 <== NOT EXECUTED 4ecba: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED 4ecbe: 4a00 tstb %d0 <== NOT EXECUTED 4ecc0: 6648 bnes 4ed0a <_Heap_Walk+0xc6> <== NOT EXECUTED if (do_dump) printk( " prev %p next %p", the_block->prev, the_block->next); if (_Heap_Block_size(the_block) != next_block->prev_size) { 4ecc2: b493 cmpl %a3@,%d2 <== NOT EXECUTED 4ecc4: 6710 beqs 4ecd6 <_Heap_Walk+0x92> <== NOT EXECUTED if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 4ecc6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ecc8: 2047 moveal %d7,%a0 <== NOT EXECUTED 4ecca: 4879 0005 99fb pea 599fb <== NOT EXECUTED 4ecd0: 4e90 jsr %a0@ <== NOT EXECUTED 4ecd2: 7801 moveq #1,%d4 <== NOT EXECUTED 4ecd4: 508f addql #8,%sp <== NOT EXECUTED error = 1; } if (!prev_used) { 4ecd6: 4a03 tstb %d3 <== NOT EXECUTED 4ecd8: 661a bnes 4ecf4 <_Heap_Walk+0xb0> <== NOT EXECUTED 4ecda: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED if (do_dump || error) printk("\n"); 4ece0: 4a84 tstl %d4 <== NOT EXECUTED 4ece2: 6600 00ca bnew 4edae <_Heap_Walk+0x16a> <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 4ece6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ece8: 7801 moveq #1,%d4 <== NOT EXECUTED 4ecea: 4879 0005 9a26 pea 59a26 <== NOT EXECUTED 4ecf0: 4e95 jsr %a5@ <== NOT EXECUTED 4ecf2: 508f addql #8,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 4ecf4: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED error = 1; } { /* Check if 'the_block' is in the free block list */ Heap_Block* block = _Heap_First(the_heap); while(block != the_block && block != tail) 4ecf8: b1cc cmpal %a4,%a0 <== NOT EXECUTED 4ecfa: 670e beqs 4ed0a <_Heap_Walk+0xc6> <== NOT EXECUTED 4ecfc: b1ca cmpal %a2,%a0 <== NOT EXECUTED 4ecfe: 6700 0130 beqw 4ee30 <_Heap_Walk+0x1ec> <== NOT EXECUTED block = block->next; 4ed02: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED error = 1; } { /* Check if 'the_block' is in the free block list */ Heap_Block* block = _Heap_First(the_heap); while(block != the_block && block != tail) 4ed06: b9c8 cmpal %a0,%a4 <== NOT EXECUTED 4ed08: 66f2 bnes 4ecfc <_Heap_Walk+0xb8> <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 4ed0a: 4a84 tstl %d4 <== NOT EXECUTED 4ed0c: 6600 0194 bnew 4eea2 <_Heap_Walk+0x25e> <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 4ed10: b4aa 0014 cmpl %a2@(20),%d2 <== NOT EXECUTED 4ed14: 6500 0144 bcsw 4ee5a <_Heap_Walk+0x216> <== NOT EXECUTED printk("PASS: %d !block size is too small\n", source); error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { 4ed18: 4c6a 2000 0010 remul %a2@(16),%d0,%d2 <== NOT EXECUTED 4ed1e: 4a80 tstl %d0 <== NOT EXECUTED 4ed20: 6600 00e2 bnew 4ee04 <_Heap_Walk+0x1c0> <== NOT EXECUTED printk("PASS: %d !block size is misaligned\n", source); error = 1; } if (++passes > (do_dump ? 10 : 0) && error) 4ed24: 4a84 tstl %d4 <== NOT EXECUTED 4ed26: 6600 018c bnew 4eeb4 <_Heap_Walk+0x270> <== NOT EXECUTED if (the_block->prev_size != the_heap->page_size) { printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); error = 1; } while ( the_block != end ) { 4ed2a: b7c6 cmpal %d6,%a3 <== NOT EXECUTED 4ed2c: 6700 016e beqw 4ee9c <_Heap_Walk+0x258> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 4ed30: 262b 0004 movel %a3@(4),%d3 <== NOT EXECUTED 4ed34: 74fe moveq #-2,%d2 <== NOT EXECUTED 4ed36: c483 andl %d3,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( void *base, uint32_t offset ) { return (void *)((char *)base + offset); 4ed38: 200b movel %a3,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in ( Heap_Control *the_heap, Heap_Block *the_block ) { return _Addresses_Is_in_range( the_block, the_heap->start, the_heap->final ); 4ed3a: 222a 0024 movel %a2@(36),%d1 <== NOT EXECUTED 4ed3e: d082 addl %d2,%d0 <== NOT EXECUTED void *address, void *base, void *limit ) { return (address >= base && address <= limit); 4ed40: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 4ed44: 6400 00ac bccw 4edf2 <_Heap_Walk+0x1ae> <== NOT EXECUTED printk("PASS: %d !block %p is out of heap\n", source, next_block); error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 4ed48: 284b moveal %a3,%a4 <== NOT EXECUTED 4ed4a: 2640 moveal %d0,%a3 <== NOT EXECUTED printk(" (prev_size) %d", the_block->prev_size); } if (!_Heap_Is_block_in(the_heap, next_block)) { if (do_dump) printk("\n"); printk("PASS: %d !block %p is out of heap\n", source, next_block); 4ed4c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4ed4e: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED 4ed54: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ed56: 4879 0005 99d8 pea 599d8 <== NOT EXECUTED 4ed5c: 4e95 jsr %a5@ <== NOT EXECUTED 4ed5e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 4ed64: 2f06 movel %d6,%sp@- <== NOT EXECUTED 4ed66: 7801 moveq #1,%d4 <== NOT EXECUTED 4ed68: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4ed6a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ed6c: 4879 0005 9ac0 pea 59ac0 <== NOT EXECUTED 4ed72: 4e95 jsr %a5@ <== NOT EXECUTED 4ed74: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 4ed7a: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 4ed7e: 72fe moveq #-2,%d1 <== NOT EXECUTED 4ed80: c2ac 0004 andl %a4@(4),%d1 <== NOT EXECUTED 4ed84: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ed86: 6700 0104 beqw 4ee8c <_Heap_Walk+0x248> <== NOT EXECUTED printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 4ed8a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ed8c: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4ed8e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ed90: 4879 0005 9afb pea 59afb <== NOT EXECUTED 4ed96: 4eb9 0004 5e9e jsr 45e9e <== NOT EXECUTED 4ed9c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 4eda2: 4cee 3cfc ffd8 moveml %fp@(-40),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4eda8: 4e5e unlk %fp <== NOT EXECUTED source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 4edaa: 7001 moveq #1,%d0 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 4edac: 4e75 rts <== NOT EXECUTED if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); error = 1; } if (!prev_used) { if (do_dump || error) printk("\n"); 4edae: 4879 0005 947d pea 5947d <== NOT EXECUTED 4edb4: 2047 moveal %d7,%a0 <== NOT EXECUTED 4edb6: 4e90 jsr %a0@ <== NOT EXECUTED 4edb8: 588f addql #4,%sp <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 4edba: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4edbc: 7801 moveq #1,%d4 <== NOT EXECUTED 4edbe: 4879 0005 9a26 pea 59a26 <== NOT EXECUTED 4edc4: 4e95 jsr %a5@ <== NOT EXECUTED 4edc6: 508f addql #8,%sp <== NOT EXECUTED 4edc8: 6000 ff2a braw 4ecf4 <_Heap_Walk+0xb0> <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) source = the_heap->stats.instance; 4edcc: 2a2a 0028 movel %a2@(40),%d5 <== NOT EXECUTED /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 4edd0: 7001 moveq #1,%d0 <== NOT EXECUTED 4edd2: c0ac 0004 andl %a4@(4),%d0 <== NOT EXECUTED 4edd6: 4a00 tstb %d0 <== NOT EXECUTED 4edd8: 6600 fe94 bnew 4ec6e <_Heap_Walk+0x2a> <== NOT EXECUTED printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); 4eddc: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4edde: 7801 moveq #1,%d4 <== NOT EXECUTED 4ede0: 4879 0005 9970 pea 59970 <== NOT EXECUTED 4ede6: 4eb9 0004 5e9e jsr 45e9e <== NOT EXECUTED 4edec: 508f addql #8,%sp <== NOT EXECUTED 4edee: 6000 fe80 braw 4ec70 <_Heap_Walk+0x2c> <== NOT EXECUTED 4edf2: b280 cmpl %d0,%d1 <== NOT EXECUTED 4edf4: 6500 ff52 bcsw 4ed48 <_Heap_Walk+0x104> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 4edf8: 284b moveal %a3,%a4 <== NOT EXECUTED 4edfa: 7201 moveq #1,%d1 <== NOT EXECUTED 4edfc: c681 andl %d1,%d3 <== NOT EXECUTED 4edfe: 2640 moveal %d0,%a3 <== NOT EXECUTED 4ee00: 6000 feb6 braw 4ecb8 <_Heap_Walk+0x74> <== NOT EXECUTED printk("PASS: %d !block size is too small\n", source); error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { printk("PASS: %d !block size is misaligned\n", source); 4ee04: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ee06: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 4ee0c: 7801 moveq #1,%d4 <== NOT EXECUTED printk("PASS: %d !block size is too small\n", source); error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { printk("PASS: %d !block size is misaligned\n", source); 4ee0e: 4879 0005 9a9c pea 59a9c <== NOT EXECUTED 4ee14: 4e95 jsr %a5@ <== NOT EXECUTED 4ee16: 508f addql #8,%sp <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 4ee18: 2f06 movel %d6,%sp@- <== NOT EXECUTED 4ee1a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4ee1c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ee1e: 4879 0005 9ac0 pea 59ac0 <== NOT EXECUTED 4ee24: 4e95 jsr %a5@ <== NOT EXECUTED 4ee26: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4ee2c: 6000 ff4c braw 4ed7a <_Heap_Walk+0x136> <== NOT EXECUTED 4ee30: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED { /* Check if 'the_block' is in the free block list */ Heap_Block* block = _Heap_First(the_heap); while(block != the_block && block != tail) block = block->next; if(block != the_block) { if (do_dump || error) printk("\n"); 4ee36: 4a84 tstl %d4 <== NOT EXECUTED 4ee38: 6636 bnes 4ee70 <_Heap_Walk+0x22c> <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 4ee3a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ee3c: 7801 moveq #1,%d4 <== NOT EXECUTED 4ee3e: 4879 0005 9a50 pea 59a50 <== NOT EXECUTED 4ee44: 4e95 jsr %a5@ <== NOT EXECUTED 4ee46: 508f addql #8,%sp <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 4ee48: 4879 0005 947d pea 5947d <== NOT EXECUTED 4ee4e: 4e95 jsr %a5@ <== NOT EXECUTED 4ee50: 588f addql #4,%sp <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 4ee52: b4aa 0014 cmpl %a2@(20),%d2 <== NOT EXECUTED 4ee56: 6400 fec0 bccw 4ed18 <_Heap_Walk+0xd4> <== NOT EXECUTED printk("PASS: %d !block size is too small\n", source); 4ee5a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ee5c: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED 4ee62: 4879 0005 9a79 pea 59a79 <== NOT EXECUTED 4ee68: 4e95 jsr %a5@ <== NOT EXECUTED 4ee6a: 508f addql #8,%sp <== NOT EXECUTED 4ee6c: 6000 fef6 braw 4ed64 <_Heap_Walk+0x120> <== NOT EXECUTED { /* Check if 'the_block' is in the free block list */ Heap_Block* block = _Heap_First(the_heap); while(block != the_block && block != tail) block = block->next; if(block != the_block) { if (do_dump || error) printk("\n"); 4ee70: 4879 0005 947d pea 5947d <== NOT EXECUTED 4ee76: 2047 moveal %d7,%a0 <== NOT EXECUTED 4ee78: 4e90 jsr %a0@ <== NOT EXECUTED 4ee7a: 588f addql #4,%sp <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 4ee7c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ee7e: 7801 moveq #1,%d4 <== NOT EXECUTED 4ee80: 4879 0005 9a50 pea 59a50 <== NOT EXECUTED 4ee86: 4e95 jsr %a5@ <== NOT EXECUTED 4ee88: 508f addql #8,%sp <== NOT EXECUTED 4ee8a: 60bc bras 4ee48 <_Heap_Walk+0x204> <== NOT EXECUTED printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 4ee8c: 4a84 tstl %d4 <== NOT EXECUTED 4ee8e: 56c0 sne %d0 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 4ee90: 4cee 3cfc ffd8 moveml %fp@(-40),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4ee96: 4e5e unlk %fp <== NOT EXECUTED printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 4ee98: 4480 negl %d0 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 4ee9a: 4e75 rts <== NOT EXECUTED source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 4ee9c: 2846 moveal %d6,%a4 <== NOT EXECUTED 4ee9e: 6000 feda braw 4ed7a <_Heap_Walk+0x136> <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 4eea2: 4879 0005 947d pea 5947d <== NOT EXECUTED 4eea8: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED 4eeae: 4e95 jsr %a5@ <== NOT EXECUTED 4eeb0: 588f addql #4,%sp <== NOT EXECUTED 4eeb2: 609e bras 4ee52 <_Heap_Walk+0x20e> <== NOT EXECUTED 4eeb4: 4bf9 0004 5e9e lea 45e9e ,%a5 <== NOT EXECUTED 4eeba: 6000 fea8 braw 4ed64 <_Heap_Walk+0x120> <== NOT EXECUTED ... 0004639c <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { 4639c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 463a0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 463a2: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 463a4: 4ab9 0005 89ce tstl 589ce <_IO_Number_of_drivers> <== NOT EXECUTED 463aa: 6720 beqs 463cc <_IO_Initialize_all_drivers+0x30> <== NOT EXECUTED 463ac: 4282 clrl %d2 <== NOT EXECUTED 463ae: 45f9 0004 b178 lea 4b178 ,%a2 <== NOT EXECUTED (void) rtems_io_initialize( major, 0, NULL ); 463b4: 42a7 clrl %sp@- <== NOT EXECUTED 463b6: 42a7 clrl %sp@- <== NOT EXECUTED 463b8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 463ba: 4e92 jsr %a2@ <== NOT EXECUTED void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 463bc: 5282 addql #1,%d2 <== NOT EXECUTED 463be: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 463c4: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 463ca: 65e8 bcss 463b4 <_IO_Initialize_all_drivers+0x18> <== NOT EXECUTED (void) rtems_io_initialize( major, 0, NULL ); } 463cc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 463d0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 463d4: 4e5e unlk %fp <== NOT EXECUTED 463d6: 4e75 rts 000463d8 <_IO_Manager_initialization>: void _IO_Manager_initialization( rtems_driver_address_table *driver_table, uint32_t drivers_in_table, uint32_t number_of_drivers ) { 463d8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 463dc: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED 463e0: 2a2e 0008 movel %fp@(8),%d5 <== NOT EXECUTED 463e4: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 463e8: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED /* * 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 ) 463ec: b883 cmpl %d3,%d4 <== NOT EXECUTED 463ee: 6468 bccs 46458 <_IO_Manager_initialization+0x80> <== NOT EXECUTED /* * 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 *) 463f0: 2003 movel %d3,%d0 <== NOT EXECUTED 463f2: 2403 movel %d3,%d2 <== NOT EXECUTED 463f4: e788 lsll #3,%d0 <== NOT EXECUTED 463f6: eb8a lsll #5,%d2 <== NOT EXECUTED 463f8: 9480 subl %d0,%d2 <== NOT EXECUTED 463fa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 463fc: 4eb9 0004 9170 jsr 49170 <_Workspace_Allocate_or_fatal_error> <== NOT EXECUTED _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 46402: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46404: 42a7 clrl %sp@- <== NOT EXECUTED _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; 46406: 23c3 0005 89ce movel %d3,589ce <_IO_Number_of_drivers> <== NOT EXECUTED memset( 4640c: 2f00 movel %d0,%sp@- <== NOT EXECUTED /* * 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 *) 4640e: 23c0 0005 89d2 movel %d0,589d2 <_IO_Driver_address_table> <== NOT EXECUTED _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 46414: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 4641a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 46420: 4a84 tstl %d4 <== NOT EXECUTED 46422: 672a beqs 4644e <_IO_Manager_initialization+0x76> <== NOT EXECUTED _IO_Driver_address_table[index] = driver_table[index]; 46424: 2439 0005 89d2 movel 589d2 <_IO_Driver_address_table>,%d2 <== NOT EXECUTED 4642a: 4281 clrl %d1 <== NOT EXECUTED 4642c: 4280 clrl %d0 <== NOT EXECUTED 4642e: 2245 moveal %d5,%a1 <== NOT EXECUTED 46430: 2042 moveal %d2,%a0 <== NOT EXECUTED 46432: d3c0 addal %d0,%a1 <== NOT EXECUTED 46434: d1c0 addal %d0,%a0 <== NOT EXECUTED 46436: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 46438: 5281 addql #1,%d1 <== NOT EXECUTED _IO_Driver_address_table[index] = driver_table[index]; 4643a: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 4643c: 0680 0000 0018 addil #24,%d0 <== NOT EXECUTED _IO_Driver_address_table[index] = driver_table[index]; 46442: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 46444: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 46446: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 46448: 2091 movel %a1@,%a0@ <== NOT EXECUTED memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 4644a: b284 cmpl %d4,%d1 <== NOT EXECUTED 4644c: 65e0 bcss 4642e <_IO_Manager_initialization+0x56> <== NOT EXECUTED _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 4644e: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED 46454: 4e5e unlk %fp <== NOT EXECUTED 46456: 4e75 rts <== NOT EXECUTED * If the maximum number of driver is the same as the number in the * table, then we do not have to copy the driver table. They can't * register any dynamically. */ if ( number_of_drivers == drivers_in_table ) { _IO_Driver_address_table = driver_table; 46458: 23c5 0005 89d2 movel %d5,589d2 <_IO_Driver_address_table> <== NOT EXECUTED _IO_Number_of_drivers = number_of_drivers; 4645e: 23c4 0005 89ce movel %d4,589ce <_IO_Number_of_drivers> <== NOT EXECUTED ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 46464: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED 4646a: 4e5e unlk %fp <== NOT EXECUTED 4646c: 4e75 rts <== NOT EXECUTED ... 00046e9c <_ISR_Handler_initialization>: * * Output parameters: NONE */ void _ISR_Handler_initialization( void ) { 46e9c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46ea0: 2f0a movel %a2,%sp@- <== NOT EXECUTED _ISR_Signals_to_thread_executing = FALSE; 46ea2: 4200 clrb %d0 <== NOT EXECUTED _ISR_Nest_level = 0; 46ea4: 42b9 0005 87f2 clrl 587f2 <_ISR_Nest_level> <== NOT EXECUTED #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( 46eaa: 45f9 0004 9170 lea 49170 <_Workspace_Allocate_or_fatal_error>,%a2 <== NOT EXECUTED * Output parameters: NONE */ void _ISR_Handler_initialization( void ) { _ISR_Signals_to_thread_executing = FALSE; 46eb0: 13c0 0005 88a0 moveb %d0,588a0 <_ISR_Signals_to_thread_executing> <== NOT EXECUTED _ISR_Nest_level = 0; #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( 46eb6: 4878 0400 pea 400 <== NOT EXECUTED 46eba: 4e92 jsr %a2@ <== NOT EXECUTED _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( !_Stack_Is_enough(_Configuration_Table->interrupt_stack_size) ) 46ebc: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 46ec2: 2228 001c movel %a0@(28),%d1 <== NOT EXECUTED _ISR_Signals_to_thread_executing = FALSE; _ISR_Nest_level = 0; #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( 46ec6: 23c0 0005 87ce movel %d0,587ce <_ISR_Vector_table> <== NOT EXECUTED _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( !_Stack_Is_enough(_Configuration_Table->interrupt_stack_size) ) 46ecc: 588f addql #4,%sp <== NOT EXECUTED 46ece: b2b9 0005 6c3e cmpl 56c3e ,%d1 <== NOT EXECUTED 46ed4: 6526 bcss 46efc <_ISR_Handler_initialization+0x60> <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL ); _CPU_Interrupt_stack_low = _Workspace_Allocate_or_fatal_error( 46ed6: 2f01 movel %d1,%sp@- <== NOT EXECUTED 46ed8: 4e92 jsr %a2@ <== NOT EXECUTED _Configuration_Table->interrupt_stack_size ); _CPU_Interrupt_stack_high = _Addresses_Add_offset( 46eda: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 46ee0: 2200 movel %d0,%d1 <== NOT EXECUTED 46ee2: d2a8 001c addl %a0@(28),%d1 <== NOT EXECUTED #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } 46ee6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED _CPU_Interrupt_stack_low = _Workspace_Allocate_or_fatal_error( _Configuration_Table->interrupt_stack_size ); _CPU_Interrupt_stack_high = _Addresses_Add_offset( 46eea: 588f addql #4,%sp <== NOT EXECUTED #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } 46eec: 4e5e unlk %fp <== NOT EXECUTED _CPU_Interrupt_stack_low = _Workspace_Allocate_or_fatal_error( _Configuration_Table->interrupt_stack_size ); _CPU_Interrupt_stack_high = _Addresses_Add_offset( 46eee: 23c1 0005 8708 movel %d1,58708 <_CPU_Interrupt_stack_high> <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL ); _CPU_Interrupt_stack_low = _Workspace_Allocate_or_fatal_error( 46ef4: 23c0 0005 8764 movel %d0,58764 <_CPU_Interrupt_stack_low> <== NOT EXECUTED #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } 46efa: 4e75 rts <== NOT EXECUTED _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( !_Stack_Is_enough(_Configuration_Table->interrupt_stack_size) ) _Internal_error_Occurred( 46efc: 4878 0005 pea 5 <== NOT EXECUTED 46f00: 4878 0001 pea 1 <== NOT EXECUTED 46f04: 42a7 clrl %sp@- <== NOT EXECUTED 46f06: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED 00046e40 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, uint32_t the_error ) { 46e40: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46e44: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46e46: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 46e4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46e4c: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED _Internal_errors_What_happened.the_source = the_source; _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 ); 46e50: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46e52: 4280 clrl %d0 <== NOT EXECUTED 46e54: 1001 moveb %d1,%d0 <== NOT EXECUTED void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, uint32_t the_error ) { 46e56: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED _Internal_errors_What_happened.the_source = the_source; _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 ); 46e5a: 2f00 movel %d0,%sp@- <== NOT EXECUTED uint32_t the_error ) { _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; 46e5c: 13c1 0005 8802 moveb %d1,58802 <_Internal_errors_What_happened+0x4> <== NOT EXECUTED _User_extensions_Fatal( the_source, is_internal, the_error ); _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 46e62: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED _Internal_errors_What_happened.the_source = the_source; _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 ); 46e68: 2f08 movel %a0,%sp@- <== NOT EXECUTED bool is_internal, uint32_t the_error ) { _Internal_errors_What_happened.the_source = the_source; 46e6a: 23c8 0005 87fe movel %a0,587fe <_Internal_errors_What_happened> <== NOT EXECUTED _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; 46e70: 23c3 0005 8804 movel %d3,58804 <_Internal_errors_What_happened+0x6> <== NOT EXECUTED _User_extensions_Fatal( the_source, is_internal, the_error ); 46e76: 4eb9 0004 8d6a jsr 48d6a <_User_extensions_Fatal> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 46e7c: 7005 moveq #5,%d0 <== NOT EXECUTED 46e7e: 23c0 0005 88e6 movel %d0,588e6 <_System_state_Current> <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 46e84: 40c0 movew %sr,%d0 <== NOT EXECUTED 46e86: 8082 orl %d2,%d0 <== NOT EXECUTED 46e88: 46c0 movew %d0,%sr <== NOT EXECUTED 46e8a: 2003 movel %d3,%d0 <== NOT EXECUTED 46e8c: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED 46e92: 4ac8 halt <== NOT EXECUTED 46e94: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46e9a: 60fe bras 46e9a <_Internal_error_Occurred+0x5a> <== NOT EXECUTED 0004ad8c <_Interrupt_Manager_initialization>: * * Output parameters: NONE */ void _Interrupt_Manager_initialization( void ) { 4ad8c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED } 4ad90: 4e5e unlk %fp <== NOT EXECUTED 4ad92: 4e75 rts 00059700 <_Message_queue_Allocate>: * Output parameters: * the_message_queue - set if successful, NULL otherwise */ Message_queue_Control *_Message_queue_Allocate(void) { 59700: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (Message_queue_Control *) 59704: 4879 0007 1846 pea 71846 <_Message_queue_Information> <== NOT EXECUTED 5970a: 4eb9 0005 54b4 jsr 554b4 <_Objects_Allocate> <== NOT EXECUTED _Objects_Allocate(&_Message_queue_Information); } 59710: 4e5e unlk %fp <== NOT EXECUTED 59712: 4e75 rts 0004ad94 <_Message_queue_Manager_initialization>: */ void _Message_queue_Manager_initialization( uint32_t maximum_message_queues ) { 4ad94: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4ad98: 4878 0004 pea 4 <== NOT EXECUTED 4ad9c: 42a7 clrl %sp@- <== NOT EXECUTED 4ad9e: 4878 0088 pea 88 <== NOT EXECUTED 4ada2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ada6: 4878 0004 pea 4 <== NOT EXECUTED 4adaa: 4878 0002 pea 2 <== NOT EXECUTED 4adae: 4879 0005 8a4e pea 58a4e <_Message_queue_Information> <== NOT EXECUTED 4adb4: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4adba: dffc 0000 001c addal #28,%sp <== NOT EXECUTED MP_PACKET_MESSAGE_QUEUE, _Message_queue_MP_Process_packet ); #endif } 4adc0: 4e5e unlk %fp <== NOT EXECUTED 4adc2: 4e75 rts 00052898 <_Message_queue_Translate_core_message_queue_return_code>: }; rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t status ) { 52898: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; } 5289c: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED }; rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t status ) { 528a0: 41f9 0006 4cac lea 64cac <_Message_queue_Translate_core_return_code_>,%a0 <== NOT EXECUTED if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; } 528a6: 2030 1c00 movel %a0@(00000000,%d1:l:4),%d0 <== NOT EXECUTED 528aa: 4e5e unlk %fp <== NOT EXECUTED 528ac: 4e75 rts <== NOT EXECUTED ... 0004b64c <_Objects_API_maximum_class>: #include int _Objects_API_maximum_class( uint32_t api ) { 4b64c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b650: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED switch (api) { 4b654: 7202 moveq #2,%d1 <== NOT EXECUTED 4b656: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b658: 672a beqs 4b684 <_Objects_API_maximum_class+0x38> <== NOT EXECUTED 4b65a: 6414 bccs 4b670 <_Objects_API_maximum_class+0x24> <== NOT EXECUTED 4b65c: 7203 moveq #3,%d1 <== NOT EXECUTED 4b65e: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b660: 6728 beqs 4b68a <_Objects_API_maximum_class+0x3e> <== NOT EXECUTED 4b662: 123c 0004 moveb #4,%d1 <== NOT EXECUTED 4b666: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b668: 6714 beqs 4b67e <_Objects_API_maximum_class+0x32> <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b66a: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_CLASSIC_API: return OBJECTS_RTEMS_CLASSES_LAST; case OBJECTS_POSIX_API: return OBJECTS_POSIX_CLASSES_LAST; case OBJECTS_ITRON_API: return OBJECTS_ITRON_CLASSES_LAST; 4b66c: 70ff moveq #-1,%d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b66e: 4e75 rts <== NOT EXECUTED int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 4b670: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 4b674: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b676: 66f2 bnes 4b66a <_Objects_API_maximum_class+0x1e> <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b678: 4e5e unlk %fp <== NOT EXECUTED int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 4b67a: 7002 moveq #2,%d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b67c: 4e75 rts <== NOT EXECUTED 4b67e: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_INTERNAL_API: return OBJECTS_INTERNAL_CLASSES_LAST; case OBJECTS_CLASSIC_API: return OBJECTS_RTEMS_CLASSES_LAST; case OBJECTS_POSIX_API: return OBJECTS_POSIX_CLASSES_LAST; 4b680: 7008 moveq #8,%d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b682: 4e75 rts <== NOT EXECUTED 4b684: 4e5e unlk %fp <== NOT EXECUTED int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 4b686: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b688: 4e75 rts <== NOT EXECUTED 4b68a: 4e5e unlk %fp <== NOT EXECUTED int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 4b68c: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return -1; } 4b68e: 4e75 rts 00046f0c <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 46f0c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 46f10: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 46f14: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED * 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 ) 46f18: 4aaa 0016 tstl %a2@(22) <== NOT EXECUTED 46f1c: 660e bnes 46f2c <_Objects_Allocate+0x20> <== NOT EXECUTED 46f1e: 93c9 subal %a1,%a1 <== NOT EXECUTED information->inactive--; } } return the_object; } 46f20: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 46f26: 4e5e unlk %fp <== NOT EXECUTED 46f28: 2009 movel %a1,%d0 <== NOT EXECUTED 46f2a: 4e75 rts <== NOT EXECUTED /* * 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 ); 46f2c: 240a movel %a2,%d2 <== NOT EXECUTED 46f2e: 0682 0000 001e addil #30,%d2 <== NOT EXECUTED 46f34: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46f36: 47f9 0004 b1f8 lea 4b1f8 <_Chain_Get>,%a3 <== NOT EXECUTED 46f3c: 4e93 jsr %a3@ <== NOT EXECUTED if ( information->auto_extend ) { 46f3e: 588f addql #4,%sp <== NOT EXECUTED /* * 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 ); 46f40: 2240 moveal %d0,%a1 <== NOT EXECUTED if ( information->auto_extend ) { 46f42: 4a2a 0010 tstb %a2@(16) <== NOT EXECUTED 46f46: 67d8 beqs 46f20 <_Objects_Allocate+0x14> <== NOT EXECUTED /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 46f48: 4a80 tstl %d0 <== NOT EXECUTED 46f4a: 673c beqs 46f88 <_Objects_Allocate+0x7c> <== NOT EXECUTED } if ( the_object ) { uint32_t block; block = _Objects_Get_index( the_object->id ) - 46f4c: 222a 0006 movel %a2@(6),%d1 <== NOT EXECUTED 46f50: 2029 0008 movel %a1@(8),%d0 <== NOT EXECUTED 46f54: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 46f5a: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 46f60: 9081 subl %d1,%d0 <== NOT EXECUTED _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 46f62: 4c6a 0000 0012 remul %a2@(18),%d0,%d0 <== NOT EXECUTED 46f68: 206a 002c moveal %a2@(44),%a0 <== NOT EXECUTED information->inactive--; 46f6c: 322a 002a movew %a2@(42),%d1 <== NOT EXECUTED block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 46f70: e588 lsll #2,%d0 <== NOT EXECUTED information->inactive--; 46f72: 5381 subql #1,%d1 <== NOT EXECUTED block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 46f74: d1c0 addal %d0,%a0 <== NOT EXECUTED information->inactive--; 46f76: 3541 002a movew %d1,%a2@(42) <== NOT EXECUTED } } return the_object; } 46f7a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 46f80: 5390 subql #1,%a0@ <== NOT EXECUTED information->inactive--; } } return the_object; } 46f82: 4e5e unlk %fp <== NOT EXECUTED 46f84: 2009 movel %a1,%d0 <== NOT EXECUTED 46f86: 4e75 rts <== NOT EXECUTED * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); 46f88: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46f8a: 4eb9 0004 6fd4 jsr 46fd4 <_Objects_Extend_information> <== NOT EXECUTED the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 46f90: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46f92: 4e93 jsr %a3@ <== NOT EXECUTED } if ( the_object ) { 46f94: 508f addql #8,%sp <== NOT EXECUTED * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 46f96: 2240 moveal %d0,%a1 <== NOT EXECUTED } if ( the_object ) { 46f98: 4a80 tstl %d0 <== NOT EXECUTED 46f9a: 66b0 bnes 46f4c <_Objects_Allocate+0x40> <== NOT EXECUTED information->inactive--; } } return the_object; } 46f9c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 46fa2: 4e5e unlk %fp <== NOT EXECUTED 46fa4: 2009 movel %a1,%d0 <== NOT EXECUTED 46fa6: 4e75 rts 00046fa8 <_Objects_Close>: void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { 46fa8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46fac: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46fae: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 46fb2: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46fb6: 206a 001a moveal %a2@(26),%a0 <== NOT EXECUTED 46fba: 4280 clrl %d0 <== NOT EXECUTED 46fbc: 3029 000a movew %a1@(10),%d0 <== NOT EXECUTED 46fc0: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) <== NOT EXECUTED _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 46fc4: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED } 46fc8: 245f moveal %sp@+,%a2 <== NOT EXECUTED 46fca: 4e5e unlk %fp <== NOT EXECUTED Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 46fcc: 4ef9 0004 75a0 jmp 475a0 <_Objects_Namespace_remove> <== NOT EXECUTED ... 00046fd4 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 46fd4: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 46fd8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 46fdc: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( Objects_Id id ) { return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 46fe0: 262b 0006 movel %a3@(6),%d3 <== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 46fe4: 4280 clrl %d0 <== NOT EXECUTED 46fe6: 0283 0000 ffff andil #65535,%d3 <== NOT EXECUTED 46fec: 302b 000e movew %a3@(14),%d0 <== NOT EXECUTED 46ff0: b680 cmpl %d0,%d3 <== NOT EXECUTED 46ff2: 6300 01a4 blsw 47198 <_Objects_Extend_information+0x1c4> <== NOT EXECUTED 46ff6: 242b 0012 movel %a3@(18),%d2 <== NOT EXECUTED * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 46ffa: 2e02 movel %d2,%d7 <== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 46ffc: 2a03 movel %d3,%d5 <== NOT EXECUTED 46ffe: 95ca subal %a2,%a2 <== NOT EXECUTED 47000: 4284 clrl %d4 <== NOT EXECUTED 47002: 7c01 moveq #1,%d6 <== NOT EXECUTED 47004: 307c 0003 moveaw #3,%a0 <== NOT EXECUTED * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 47008: de80 addl %d0,%d7 <== NOT EXECUTED /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 4700a: 4a2b 0010 tstb %a3@(16) <== NOT EXECUTED 4700e: 6700 01d0 beqw 471e0 <_Objects_Extend_information+0x20c> <== NOT EXECUTED object_blocks = (void**) 47012: 2008 movel %a0,%d0 <== NOT EXECUTED 47014: d083 addl %d3,%d0 <== NOT EXECUTED 47016: d087 addl %d7,%d0 <== NOT EXECUTED 47018: e588 lsll #2,%d0 <== NOT EXECUTED 4701a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4701c: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 47022: 588f addql #4,%sp <== NOT EXECUTED /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { object_blocks = (void**) 47024: 2840 moveal %d0,%a4 <== NOT EXECUTED block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 47026: 4a80 tstl %d0 <== NOT EXECUTED 47028: 6700 0164 beqw 4718e <_Objects_Extend_information+0x1ba> <== NOT EXECUTED /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 4702c: 2206 movel %d6,%d1 <== NOT EXECUTED 4702e: e589 lsll #2,%d1 <== NOT EXECUTED 47030: 4bf4 1800 lea %a4@(00000000,%d1:l),%a5 <== NOT EXECUTED * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 47034: 4280 clrl %d0 <== NOT EXECUTED 47036: 43f5 1800 lea %a5@(00000000,%d1:l),%a1 <== NOT EXECUTED 4703a: 302b 000e movew %a3@(14),%d0 <== NOT EXECUTED 4703e: b680 cmpl %d0,%d3 <== NOT EXECUTED 47040: 6500 01ca bcsw 4720c <_Objects_Extend_information+0x238> <== NOT EXECUTED else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 47044: 4a83 tstl %d3 <== NOT EXECUTED 47046: 670c beqs 47054 <_Objects_Extend_information+0x80> <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 47048: 2049 moveal %a1,%a0 <== NOT EXECUTED 4704a: 4280 clrl %d0 <== NOT EXECUTED /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 4704c: 4298 clrl %a0@+ <== NOT EXECUTED else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 4704e: 5280 addql #1,%d0 <== NOT EXECUTED 47050: b680 cmpl %d0,%d3 <== NOT EXECUTED 47052: 62f8 bhis 4704c <_Objects_Extend_information+0x78> <== NOT EXECUTED 47054: 240a movel %a2,%d2 <== NOT EXECUTED 47056: e58a lsll #2,%d2 <== NOT EXECUTED /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 47058: 42b5 2800 clrl %a5@(00000000,%d2:l) <== NOT EXECUTED for ( index=index_base ; index < ( information->allocation_size + index_base ); 4705c: 2205 movel %d5,%d1 <== NOT EXECUTED 4705e: d2ab 0012 addl %a3@(18),%d1 <== NOT EXECUTED /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 47062: 42b4 2800 clrl %a4@(00000000,%d2:l) <== NOT EXECUTED inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 47066: b285 cmpl %d5,%d1 <== NOT EXECUTED 47068: 630e blss 47078 <_Objects_Extend_information+0xa4> <== NOT EXECUTED 4706a: 41f1 5c00 lea %a1@(00000000,%d5:l:4),%a0 <== NOT EXECUTED 4706e: 2005 movel %d5,%d0 <== NOT EXECUTED index++ ) { local_table[ index ] = NULL; 47070: 4298 clrl %a0@+ <== NOT EXECUTED object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 47072: 5280 addql #1,%d0 <== NOT EXECUTED object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 47074: b280 cmpl %d0,%d1 <== NOT EXECUTED 47076: 62f8 bhis 47070 <_Objects_Extend_information+0x9c> <== NOT EXECUTED index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 47078: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4707e: 40c3 movew %sr,%d3 <== NOT EXECUTED 47080: 8083 orl %d3,%d0 <== NOT EXECUTED 47082: 46c0 movew %d0,%sr <== NOT EXECUTED information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 47084: 2013 movel %a3@,%d0 <== NOT EXECUTED 47086: 7218 moveq #24,%d1 <== NOT EXECUTED 47088: e3a8 lsll %d1,%d0 <== NOT EXECUTED 4708a: 4281 clrl %d1 <== NOT EXECUTED 4708c: 322b 0004 movew %a3@(4),%d1 <== NOT EXECUTED 47090: 741b moveq #27,%d2 <== NOT EXECUTED 47092: e5a9 lsll %d2,%d1 <== NOT EXECUTED local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 47094: 206b 0030 moveal %a3@(48),%a0 <== NOT EXECUTED information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 47098: 08c0 0010 bset #16,%d0 <== NOT EXECUTED 4709c: 4282 clrl %d2 <== NOT EXECUTED 4709e: 8081 orl %d1,%d0 <== NOT EXECUTED 470a0: 3407 movew %d7,%d2 <== NOT EXECUTED 470a2: 8082 orl %d2,%d0 <== NOT EXECUTED 470a4: 2740 000a movel %d0,%a3@(10) <== NOT EXECUTED old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; 470a8: 3747 000e movew %d7,%a3@(14) <== NOT EXECUTED _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 470ac: 274c 0030 movel %a4,%a3@(48) <== NOT EXECUTED information->inactive_per_block = inactive_per_block; 470b0: 274d 002c movel %a5,%a3@(44) <== NOT EXECUTED information->local_table = local_table; 470b4: 2749 001a movel %a1,%a3@(26) <== NOT EXECUTED information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 470b8: 46c3 movew %d3,%sr <== NOT EXECUTED if ( old_tables ) 470ba: 4a88 tstl %a0 <== NOT EXECUTED 470bc: 6700 01f6 beqw 472b4 <_Objects_Extend_information+0x2e0> <== NOT EXECUTED _Workspace_Free( old_tables ); 470c0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 470c2: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 470c8: 242b 0012 movel %a3@(18),%d2 <== NOT EXECUTED 470cc: 588f addql #4,%sp <== NOT EXECUTED /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 470ce: 4a2b 0010 tstb %a3@(16) <== NOT EXECUTED 470d2: 6700 0180 beqw 47254 <_Objects_Extend_information+0x280> <== NOT EXECUTED information->object_blocks[ block ] = 470d6: 202b 0016 movel %a3@(22),%d0 <== NOT EXECUTED 470da: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED 470de: 2c04 movel %d4,%d6 <== NOT EXECUTED 470e0: e58e lsll #2,%d6 <== NOT EXECUTED 470e2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 470e4: 246b 0030 moveal %a3@(48),%a2 <== NOT EXECUTED 470e8: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 470ee: 206b 0030 moveal %a3@(48),%a0 <== NOT EXECUTED /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 470f2: d5c6 addal %d6,%a2 <== NOT EXECUTED 470f4: 2480 movel %d0,%a2@ <== NOT EXECUTED _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 470f6: 2030 6800 movel %a0@(00000000,%d6:l),%d0 <== NOT EXECUTED 470fa: 588f addql #4,%sp <== NOT EXECUTED 470fc: 6700 0090 beqw 4718e <_Objects_Extend_information+0x1ba> <== NOT EXECUTED /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47100: 2f2b 0016 movel %a3@(22),%sp@- <== NOT EXECUTED 47104: 280e movel %fp,%d4 <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47106: 260b movel %a3,%d3 <== NOT EXECUTED /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47108: 2f2b 0012 movel %a3@(18),%sp@- <== NOT EXECUTED 4710c: 0684 ffff fff4 addil #-12,%d4 <== NOT EXECUTED 47112: 2f00 movel %d0,%sp@- <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47114: 2405 movel %d5,%d2 <== NOT EXECUTED 47116: 0683 0000 001e addil #30,%d3 <== NOT EXECUTED /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 4711c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4711e: 4eb9 0004 b234 jsr 4b234 <_Chain_Initialize> <== NOT EXECUTED 47124: 49f9 0004 b1f8 lea 4b1f8 <_Chain_Get>,%a4 <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 4712a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 47130: 45f9 0004 66d8 lea 466d8 <_Chain_Append>,%a2 <== NOT EXECUTED * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 47136: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47138: 4e94 jsr %a4@ <== NOT EXECUTED 4713a: 588f addql #4,%sp <== NOT EXECUTED 4713c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4713e: 4a80 tstl %d0 <== NOT EXECUTED 47140: 6734 beqs 47176 <_Objects_Extend_information+0x1a2> <== NOT EXECUTED the_object->id = _Objects_Build_id( 47142: 2013 movel %a3@,%d0 <== NOT EXECUTED 47144: 7a18 moveq #24,%d5 <== NOT EXECUTED 47146: eba8 lsll %d5,%d0 <== NOT EXECUTED 47148: 4281 clrl %d1 <== NOT EXECUTED 4714a: 322b 0004 movew %a3@(4),%d1 <== NOT EXECUTED 4714e: 1a3c 001b moveb #27,%d5 <== NOT EXECUTED 47152: eba9 lsll %d5,%d1 <== NOT EXECUTED 47154: 08c0 0010 bset #16,%d0 <== NOT EXECUTED 47158: 8081 orl %d1,%d0 <== NOT EXECUTED 4715a: 8082 orl %d2,%d0 <== NOT EXECUTED 4715c: 2140 0008 movel %d0,%a0@(8) <== NOT EXECUTED index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 47160: 5282 addql #1,%d2 <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47162: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47164: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47166: 4e92 jsr %a2@ <== NOT EXECUTED index++; 47168: 508f addql #8,%sp <== NOT EXECUTED * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 4716a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4716c: 4e94 jsr %a4@ <== NOT EXECUTED 4716e: 588f addql #4,%sp <== NOT EXECUTED 47170: 2040 moveal %d0,%a0 <== NOT EXECUTED 47172: 4a80 tstl %d0 <== NOT EXECUTED 47174: 66cc bnes 47142 <_Objects_Extend_information+0x16e> <== NOT EXECUTED _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47176: 206b 002c moveal %a3@(44),%a0 <== NOT EXECUTED 4717a: 43eb 0012 lea %a3@(18),%a1 <== NOT EXECUTED 4717e: 2191 6800 movel %a1@,%a0@(00000000,%d6:l) <== NOT EXECUTED information->inactive += information->allocation_size; 47182: 302b 002a movew %a3@(42),%d0 <== NOT EXECUTED 47186: d0ab 0012 addl %a3@(18),%d0 <== NOT EXECUTED 4718a: 3740 002a movew %d0,%a3@(42) <== NOT EXECUTED } 4718e: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 <== NOT EXECUTED 47194: 4e5e unlk %fp <== NOT EXECUTED 47196: 4e75 rts <== NOT EXECUTED block = 0; if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; 47198: 242b 0012 movel %a3@(18),%d2 <== NOT EXECUTED 4719c: 2200 movel %d0,%d1 <== NOT EXECUTED 4719e: 4c42 1001 remul %d2,%d1,%d1 <== NOT EXECUTED 471a2: 2441 moveal %d1,%a2 <== NOT EXECUTED for ( ; block < block_count; block++ ) { 471a4: 6700 0116 beqw 472bc <_Objects_Extend_information+0x2e8> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) 471a8: 206b 0030 moveal %a3@(48),%a0 <== NOT EXECUTED 471ac: 4a90 tstl %a0@ <== NOT EXECUTED 471ae: 6700 010c beqw 472bc <_Objects_Extend_information+0x2e8> <== NOT EXECUTED 471b2: 5888 addql #4,%a0 <== NOT EXECUTED 471b4: 2a03 movel %d3,%d5 <== NOT EXECUTED 471b6: 4284 clrl %d4 <== NOT EXECUTED break; else index_base += information->allocation_size; 471b8: da82 addl %d2,%d5 <== NOT EXECUTED if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 471ba: 5284 addql #1,%d4 <== NOT EXECUTED 471bc: b881 cmpl %d1,%d4 <== NOT EXECUTED 471be: 6404 bccs 471c4 <_Objects_Extend_information+0x1f0> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) 471c0: 4a98 tstl %a0@+ <== NOT EXECUTED 471c2: 66f4 bnes 471b8 <_Objects_Extend_information+0x1e4> <== NOT EXECUTED /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 471c4: b085 cmpl %d5,%d0 <== NOT EXECUTED 471c6: 6200 ff06 bhiw 470ce <_Objects_Extend_information+0xfa> <== NOT EXECUTED 471ca: 2c01 movel %d1,%d6 <== NOT EXECUTED 471cc: 5286 addql #1,%d6 <== NOT EXECUTED 471ce: 2246 moveal %d6,%a1 <== NOT EXECUTED * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 471d0: 2e02 movel %d2,%d7 <== NOT EXECUTED /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 471d2: 41f1 6a00 lea %a1@(00000000,%d6:l:2),%a0 <== NOT EXECUTED * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 471d6: de80 addl %d0,%d7 <== NOT EXECUTED /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 471d8: 4a2b 0010 tstb %a3@(16) <== NOT EXECUTED 471dc: 6600 fe34 bnew 47012 <_Objects_Extend_information+0x3e> <== NOT EXECUTED if ( !object_blocks ) return; } else { object_blocks = (void**) 471e0: 2008 movel %a0,%d0 <== NOT EXECUTED 471e2: d083 addl %d3,%d0 <== NOT EXECUTED 471e4: d087 addl %d7,%d0 <== NOT EXECUTED 471e6: e588 lsll #2,%d0 <== NOT EXECUTED 471e8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 471ea: 4eb9 0004 9170 jsr 49170 <_Workspace_Allocate_or_fatal_error> <== NOT EXECUTED /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 471f0: 2206 movel %d6,%d1 <== NOT EXECUTED if ( !object_blocks ) return; } else { object_blocks = (void**) 471f2: 2840 moveal %d0,%a4 <== NOT EXECUTED /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 471f4: e589 lsll #2,%d1 <== NOT EXECUTED 471f6: 4bf4 1800 lea %a4@(00000000,%d1:l),%a5 <== NOT EXECUTED * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 471fa: 4280 clrl %d0 <== NOT EXECUTED if ( !object_blocks ) return; } else { object_blocks = (void**) 471fc: 588f addql #4,%sp <== NOT EXECUTED 471fe: 43f5 1800 lea %a5@(00000000,%d1:l),%a1 <== NOT EXECUTED * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 47202: 302b 000e movew %a3@(14),%d0 <== NOT EXECUTED 47206: b680 cmpl %d0,%d3 <== NOT EXECUTED 47208: 6400 fe3a bccw 47044 <_Objects_Extend_information+0x70> <== NOT EXECUTED /* * 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, 4720c: 240a movel %a2,%d2 <== NOT EXECUTED 4720e: e58a lsll #2,%d2 <== NOT EXECUTED 47210: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47212: 45f9 0004 cdb8 lea 4cdb8 ,%a2 <== NOT EXECUTED 47218: 2f2b 0030 movel %a3@(48),%sp@- <== NOT EXECUTED 4721c: 2d49 fff0 movel %a1,%fp@(-16) <== NOT EXECUTED 47220: 2f0c movel %a4,%sp@- <== NOT EXECUTED 47222: 4e92 jsr %a2@ <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 47224: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47226: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED 4722a: 2f0d movel %a5,%sp@- <== NOT EXECUTED 4722c: 4e92 jsr %a2@ <== NOT EXECUTED information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 4722e: 4281 clrl %d1 <== NOT EXECUTED 47230: 322b 000e movew %a3@(14),%d1 <== NOT EXECUTED 47234: d283 addl %d3,%d1 <== NOT EXECUTED 47236: e589 lsll #2,%d1 <== NOT EXECUTED 47238: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4723a: 226e fff0 moveal %fp@(-16),%a1 <== NOT EXECUTED 4723e: 2f2b 001a movel %a3@(26),%sp@- <== NOT EXECUTED 47242: 2f09 movel %a1,%sp@- <== NOT EXECUTED 47244: 4e92 jsr %a2@ <== NOT EXECUTED 47246: 226e fff0 moveal %fp@(-16),%a1 <== NOT EXECUTED 4724a: dffc 0000 0024 addal #36,%sp <== NOT EXECUTED 47250: 6000 fe06 braw 47058 <_Objects_Extend_information+0x84> <== NOT EXECUTED if ( !information->object_blocks[ block ] ) return; } else { information->object_blocks[ block ] = 47254: 222b 0016 movel %a3@(22),%d1 <== NOT EXECUTED 47258: 4c02 1800 mulsl %d2,%d1 <== NOT EXECUTED 4725c: 2c04 movel %d4,%d6 <== NOT EXECUTED 4725e: e58e lsll #2,%d6 <== NOT EXECUTED 47260: 2f01 movel %d1,%sp@- <== NOT EXECUTED 47262: 246b 0030 moveal %a3@(48),%a2 <== NOT EXECUTED 47266: 4eb9 0004 9170 jsr 49170 <_Workspace_Allocate_or_fatal_error> <== NOT EXECUTED 4726c: 206b 0030 moveal %a3@(48),%a0 <== NOT EXECUTED 47270: d5c6 addal %d6,%a2 <== NOT EXECUTED 47272: 2480 movel %d0,%a2@ <== NOT EXECUTED 47274: 2030 6800 movel %a0@(00000000,%d6:l),%d0 <== NOT EXECUTED 47278: 588f addql #4,%sp <== NOT EXECUTED /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 4727a: 2f2b 0016 movel %a3@(22),%sp@- <== NOT EXECUTED 4727e: 280e movel %fp,%d4 <== NOT EXECUTED 47280: 2f2b 0012 movel %a3@(18),%sp@- <== NOT EXECUTED 47284: 0684 ffff fff4 addil #-12,%d4 <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 4728a: 260b movel %a3,%d3 <== NOT EXECUTED /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 4728c: 2f00 movel %d0,%sp@- <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 4728e: 2405 movel %d5,%d2 <== NOT EXECUTED 47290: 0683 0000 001e addil #30,%d3 <== NOT EXECUTED /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47296: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47298: 4eb9 0004 b234 jsr 4b234 <_Chain_Initialize> <== NOT EXECUTED 4729e: 49f9 0004 b1f8 lea 4b1f8 <_Chain_Get>,%a4 <== NOT EXECUTED information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 472a4: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 472aa: 45f9 0004 66d8 lea 466d8 <_Chain_Append>,%a2 <== NOT EXECUTED 472b0: 6000 fe84 braw 47136 <_Objects_Extend_information+0x162> <== NOT EXECUTED information->maximum ); _ISR_Enable( level ); if ( old_tables ) 472b4: 242b 0012 movel %a3@(18),%d2 <== NOT EXECUTED 472b8: 6000 fe14 braw 470ce <_Objects_Extend_information+0xfa> <== NOT EXECUTED if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 472bc: 2a03 movel %d3,%d5 <== NOT EXECUTED 472be: 4284 clrl %d4 <== NOT EXECUTED /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 472c0: b085 cmpl %d5,%d0 <== NOT EXECUTED 472c2: 6200 fe0a bhiw 470ce <_Objects_Extend_information+0xfa> <== NOT EXECUTED 472c6: 6000 ff02 braw 471ca <_Objects_Extend_information+0x1f6> <== NOT EXECUTED ... 000472cc <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { 472cc: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 472d0: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 472d4: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 472d8: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); 472dc: 2f0b movel %a3,%sp@- <== NOT EXECUTED void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { uint32_t allocation_size = information->allocation_size; 472de: 242a 0012 movel %a2@(18),%d2 <== NOT EXECUTED _Chain_Append( &information->Inactive, &the_object->Node ); 472e2: 486a 001e pea %a2@(30) <== NOT EXECUTED 472e6: 4eb9 0004 66d8 jsr 466d8 <_Chain_Append> <== NOT EXECUTED if ( information->auto_extend ) { 472ec: 508f addql #8,%sp <== NOT EXECUTED 472ee: 4a2a 0010 tstb %a2@(16) <== NOT EXECUTED 472f2: 6740 beqs 47334 <_Objects_Free+0x68> <== NOT EXECUTED uint32_t block; block = 472f4: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED 472f8: 222a 0006 movel %a2@(6),%d1 <== NOT EXECUTED 472fc: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 47302: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 47308: 9081 subl %d1,%d0 <== NOT EXECUTED _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]++; 4730a: 206a 002c moveal %a2@(44),%a0 <== NOT EXECUTED 4730e: 4c6a 0000 0012 remul %a2@(18),%d0,%d0 <== NOT EXECUTED 47314: e588 lsll #2,%d0 <== NOT EXECUTED 47316: d1c0 addal %d0,%a0 <== NOT EXECUTED information->inactive++; 47318: 302a 002a movew %a2@(42),%d0 <== NOT EXECUTED 4731c: 5280 addql #1,%d0 <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 4731e: 2202 movel %d2,%d1 <== NOT EXECUTED block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]++; 47320: 5290 addql #1,%a0@ <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 47322: e289 lsrl #1,%d1 <== NOT EXECUTED block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]++; information->inactive++; 47324: 3540 002a movew %d0,%a2@(42) <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 47328: d282 addl %d2,%d1 <== NOT EXECUTED 4732a: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 47330: b280 cmpl %d0,%d1 <== NOT EXECUTED 47332: 650a bcss 4733e <_Objects_Free+0x72> <== NOT EXECUTED _Objects_Shrink_information( information ); } } } 47334: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4733a: 4e5e unlk %fp <== NOT EXECUTED 4733c: 4e75 rts <== NOT EXECUTED * 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 ); 4733e: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } } 47342: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 47348: 4e5e unlk %fp <== NOT EXECUTED * 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 ); 4734a: 4ef9 0004 765c jmp 4765c <_Objects_Shrink_information> <== NOT EXECUTED 00047438 <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 47438: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4743c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED * 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; 47440: 7201 moveq #1,%d1 <== NOT EXECUTED 47442: 92a8 0006 subl %a0@(6),%d1 <== NOT EXECUTED 47446: d2ae 000c addl %fp@(12),%d1 <== NOT EXECUTED /* * 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 ) { 4744a: 4280 clrl %d0 <== NOT EXECUTED Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 4744c: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * 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 ) { 4744e: 3028 000e movew %a0@(14),%d0 <== NOT EXECUTED 47452: b081 cmpl %d1,%d0 <== NOT EXECUTED 47454: 6528 bcss 4747e <_Objects_Get+0x46> <== NOT EXECUTED 47456: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4745c: 5280 addql #1,%d0 <== NOT EXECUTED 4745e: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { 47464: 2068 001a moveal %a0@(26),%a0 <== NOT EXECUTED 47468: 2430 1c00 movel %a0@(00000000,%d1:l:4),%d2 <== NOT EXECUTED 4746c: 6724 beqs 47492 <_Objects_Get+0x5a> <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 4746e: 2002 movel %d2,%d0 <== NOT EXECUTED * index into the local_table array. */ if ( index <= information->maximum ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 47470: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47474: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47478: 4e5e unlk %fp <== NOT EXECUTED * index into the local_table array. */ if ( index <= information->maximum ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 4747a: 4290 clrl %a0@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 4747c: 4e75 rts <== NOT EXECUTED /* * 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; 4747e: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 47482: 7001 moveq #1,%d0 <== NOT EXECUTED 47484: 4282 clrl %d2 <== NOT EXECUTED 47486: 2080 movel %d0,%a0@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47488: 2002 movel %d2,%d0 <== NOT EXECUTED 4748a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4748e: 4e5e unlk %fp <== NOT EXECUTED 47490: 4e75 rts <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); 47492: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47498: 2002 movel %d2,%d0 <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); *location = OBJECTS_ERROR; 4749a: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 4749e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); *location = OBJECTS_ERROR; 474a2: 7201 moveq #1,%d1 <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 474a4: 4e5e unlk %fp <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); *location = OBJECTS_ERROR; 474a6: 2081 movel %d1,%a0@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 474a8: 4e75 rts <== NOT EXECUTED ... 0004737c <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 4737c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 47380: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 47384: 7203 moveq #3,%d1 <== NOT EXECUTED 47386: 5380 subql #1,%d0 <== NOT EXECUTED 47388: b280 cmpl %d0,%d1 <== NOT EXECUTED 4738a: 6506 bcss 47392 <_Objects_Get_information+0x16> <== NOT EXECUTED int the_class_api_maximum; if ( !_Objects_Is_api_valid( the_api ) ) return NULL; if ( !the_class ) 4738c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 47390: 6608 bnes 4739a <_Objects_Get_information+0x1e> <== NOT EXECUTED * 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 ) 47392: 91c8 subal %a0,%a0 <== NOT EXECUTED return NULL; #endif return info; } 47394: 4e5e unlk %fp <== NOT EXECUTED 47396: 2008 movel %a0,%d0 <== NOT EXECUTED 47398: 4e75 rts <== NOT EXECUTED return NULL; if ( !the_class ) return NULL; the_class_api_maximum = _Objects_API_maximum_class( the_api ); 4739a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4739e: 4eb9 0004 b64c jsr 4b64c <_Objects_API_maximum_class> <== NOT EXECUTED if ( the_class_api_maximum < 0 || 473a4: 588f addql #4,%sp <== NOT EXECUTED 473a6: 4a80 tstl %d0 <== NOT EXECUTED 473a8: 6de8 blts 47392 <_Objects_Get_information+0x16> <== NOT EXECUTED 473aa: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 473ae: 65e2 bcss 47392 <_Objects_Get_information+0x16> <== NOT EXECUTED the_class > (uint32_t) the_class_api_maximum ) return NULL; if ( !_Objects_Information_table[ the_api ] ) 473b0: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 473b4: 41f9 0005 870c lea 5870c <_Objects_Information_table>,%a0 <== NOT EXECUTED 473ba: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED 473be: 4a88 tstl %a0 <== NOT EXECUTED 473c0: 67d0 beqs 47392 <_Objects_Get_information+0x16> <== NOT EXECUTED return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 473c2: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 473c6: 2070 1c00 moveal %a0@(00000000,%d1:l:4),%a0 <== NOT EXECUTED if ( !info ) 473ca: 4a88 tstl %a0 <== NOT EXECUTED 473cc: 67c6 beqs 47394 <_Objects_Get_information+0x18> <== NOT EXECUTED * 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 ) 473ce: 4a68 000e tstw %a0@(14) <== NOT EXECUTED 473d2: 67be beqs 47392 <_Objects_Get_information+0x16> <== NOT EXECUTED return NULL; #endif return info; } 473d4: 4e5e unlk %fp <== NOT EXECUTED 473d6: 2008 movel %a0,%d0 <== NOT EXECUTED 473d8: 4e75 rts <== NOT EXECUTED ... 00047350 <_Objects_Get_information_id>: #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { 47350: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47354: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 47358: 2f02 movel %d2,%sp@- <== NOT EXECUTED return _Objects_Get_information( 4735a: 2200 movel %d0,%d1 <== NOT EXECUTED 4735c: 741b moveq #27,%d2 <== NOT EXECUTED 4735e: e4a9 lsrl %d2,%d1 <== NOT EXECUTED 47360: 2f01 movel %d1,%sp@- <== NOT EXECUTED 47362: 7218 moveq #24,%d1 <== NOT EXECUTED 47364: e2a8 lsrl %d1,%d0 <== NOT EXECUTED 47366: 143c 0007 moveb #7,%d2 <== NOT EXECUTED 4736a: c480 andl %d0,%d2 <== NOT EXECUTED 4736c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4736e: 4eb9 0004 737c jsr 4737c <_Objects_Get_information> <== NOT EXECUTED _Objects_Get_API( id ), _Objects_Get_class( id ) ); } 47374: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47378: 4e5e unlk %fp <== NOT EXECUTED 4737a: 4e75 rts 000473dc <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 473dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 473e0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 473e4: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 473e8: 4281 clrl %d1 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 473ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED index = id & 0x0000ffff; /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 473ec: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 473f2: 322e 000e movew %fp@(14),%d1 <== NOT EXECUTED /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 473f6: 40c2 movew %sr,%d2 <== NOT EXECUTED 473f8: 8082 orl %d2,%d0 <== NOT EXECUTED 473fa: 46c0 movew %d0,%sr <== NOT EXECUTED if ( information->maximum >= index ) { 473fc: 4280 clrl %d0 <== NOT EXECUTED 473fe: 3028 000e movew %a0@(14),%d0 <== NOT EXECUTED 47402: b081 cmpl %d1,%d0 <== NOT EXECUTED 47404: 6518 bcss 4741e <_Objects_Get_isr_disable+0x42> <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { 47406: 2068 001a moveal %a0@(26),%a0 <== NOT EXECUTED 4740a: 2030 1c00 movel %a0@(00000000,%d1:l:4),%d0 <== NOT EXECUTED 4740e: 671c beqs 4742c <_Objects_Get_isr_disable+0x50> <== NOT EXECUTED *location = OBJECTS_LOCAL; *level_p = level; 47410: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 47414: 2082 movel %d2,%a0@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47416: 241f movel %sp@+,%d2 <== NOT EXECUTED 47418: 4e5e unlk %fp <== NOT EXECUTED #endif _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 4741a: 4291 clrl %a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 4741c: 4e75 rts <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 4741e: 46c2 movew %d2,%sr <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47420: 241f movel %sp@+,%d2 <== NOT EXECUTED _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); *location = OBJECTS_ERROR; 47422: 7201 moveq #1,%d1 <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47424: 4e5e unlk %fp <== NOT EXECUTED _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); *location = OBJECTS_ERROR; 47426: 4280 clrl %d0 <== NOT EXECUTED 47428: 2281 movel %d1,%a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 4742a: 4e75 rts <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 4742c: 46c2 movew %d2,%sr <== NOT EXECUTED *location = OBJECTS_ERROR; 4742e: 7401 moveq #1,%d2 <== NOT EXECUTED 47430: 2282 movel %d2,%a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47432: 241f movel %sp@+,%d2 <== NOT EXECUTED 47434: 4e5e unlk %fp <== NOT EXECUTED 47436: 4e75 rts 00053488 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 53488: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 5348c: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 53490: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 53494: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 53498: 660e bnes 534a8 <_Objects_Get_name_as_string+0x20> <== NOT EXECUTED } } *d = '\0'; _Thread_Enable_dispatch(); return name; 5349a: 4284 clrl %d4 <== NOT EXECUTED } return NULL; /* unreachable path */ } 5349c: 2004 movel %d4,%d0 <== NOT EXECUTED 5349e: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 <== NOT EXECUTED 534a4: 4e5e unlk %fp <== NOT EXECUTED 534a6: 4e75 rts <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 534a8: 4a84 tstl %d4 <== NOT EXECUTED 534aa: 67f0 beqs 5349c <_Objects_Get_name_as_string+0x14> <== NOT EXECUTED return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 534ac: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 534b0: 6700 0098 beqw 5354a <_Objects_Get_name_as_string+0xc2> <== NOT EXECUTED 534b4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 534b8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 534ba: 4eb9 0004 cbe0 jsr 4cbe0 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 534c0: 588f addql #4,%sp <== NOT EXECUTED if ( name == NULL ) return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; information = _Objects_Get_information_id( tmpId ); 534c2: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !information ) 534c4: 4a80 tstl %d0 <== NOT EXECUTED 534c6: 67d2 beqs 5349a <_Objects_Get_name_as_string+0x12> <== NOT EXECUTED return NULL; the_object = _Objects_Get( information, tmpId, &location ); 534c8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 534cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 534ce: 2f00 movel %d0,%sp@- <== NOT EXECUTED 534d0: 4eb9 0004 ccc8 jsr 4ccc8 <_Objects_Get> <== NOT EXECUTED switch ( location ) { 534d6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); if ( !information ) return NULL; the_object = _Objects_Get( information, tmpId, &location ); 534dc: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 534de: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 534e2: 66b6 bnes 5349a <_Objects_Get_name_as_string+0x12> <== NOT EXECUTED case OBJECTS_ERROR: return NULL; case OBJECTS_LOCAL: if ( information->is_string ) { 534e4: 4a2a 0034 tstb %a2@(52) <== NOT EXECUTED 534e8: 676e beqs 53558 <_Objects_Get_name_as_string+0xd0> <== NOT EXECUTED s = the_object->name.name_p; 534ea: 2668 000c moveal %a0@(12),%a3 <== NOT EXECUTED lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { 534ee: 4a8b tstl %a3 <== NOT EXECUTED 534f0: 674c beqs 5353e <_Objects_Get_name_as_string+0xb6> <== NOT EXECUTED for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 534f2: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 534f6: 5383 subql #1,%d3 <== NOT EXECUTED 534f8: 6744 beqs 5353e <_Objects_Get_name_as_string+0xb6> <== NOT EXECUTED 534fa: 1413 moveb %a3@,%d2 <== NOT EXECUTED 534fc: 6740 beqs 5353e <_Objects_Get_name_as_string+0xb6> <== NOT EXECUTED 534fe: 2444 moveal %d4,%a2 <== NOT EXECUTED 53500: 93c9 subal %a1,%a1 <== NOT EXECUTED *d = (isprint(*s)) ? *s : '*'; 53502: 2079 0006 4eac moveal 64eac <__ctype_ptr>,%a0 <== NOT EXECUTED 53508: 1202 moveb %d2,%d1 <== NOT EXECUTED 5350a: 49c1 extbl %d1 <== NOT EXECUTED 5350c: 1030 1800 moveb %a0@(00000000,%d1:l),%d0 <== NOT EXECUTED 53510: 49c0 extbl %d0 <== NOT EXECUTED 53512: 0280 0000 0097 andil #151,%d0 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 53518: 5289 addql #1,%a1 <== NOT EXECUTED *d = (isprint(*s)) ? *s : '*'; 5351a: 6602 bnes 5351e <_Objects_Get_name_as_string+0x96> <== NOT EXECUTED 5351c: 742a moveq #42,%d2 <== NOT EXECUTED 5351e: 14c2 moveb %d2,%a2@+ <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 53520: b689 cmpl %a1,%d3 <== NOT EXECUTED 53522: 6306 blss 5352a <_Objects_Get_name_as_string+0xa2> <== NOT EXECUTED 53524: 1433 9800 moveb %a3@(00000000,%a1:l),%d2 <== NOT EXECUTED 53528: 66d8 bnes 53502 <_Objects_Get_name_as_string+0x7a> <== NOT EXECUTED *d = (isprint(*s)) ? *s : '*'; } } *d = '\0'; 5352a: 4212 clrb %a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 5352c: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED return name; } return NULL; /* unreachable path */ } 53532: 2004 movel %d4,%d0 <== NOT EXECUTED 53534: 4cee 0c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a3 <== NOT EXECUTED 5353a: 4e5e unlk %fp <== NOT EXECUTED 5353c: 4e75 rts <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 5353e: 2444 moveal %d4,%a2 <== NOT EXECUTED *d = (isprint(*s)) ? *s : '*'; } } *d = '\0'; 53540: 4212 clrb %a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 53542: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED 53548: 60e8 bras 53532 <_Objects_Get_name_as_string+0xaa> <== NOT EXECUTED return NULL; if ( name == NULL ) return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 5354a: 2079 0006 6c9a moveal 66c9a <_Thread_Executing>,%a0 <== NOT EXECUTED 53550: 2428 0008 movel %a0@(8),%d2 <== NOT EXECUTED 53554: 6000 ff62 braw 534b8 <_Objects_Get_name_as_string+0x30> <== NOT EXECUTED case OBJECTS_LOCAL: if ( information->is_string ) { s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; 53558: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; 5355c: 7418 moveq #24,%d2 <== NOT EXECUTED 5355e: 2200 movel %d0,%d1 <== NOT EXECUTED 53560: e4a9 lsrl %d2,%d1 <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; 53562: 2400 movel %d0,%d2 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 53564: 2600 movel %d0,%d3 <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; 53566: 1d40 fffa moveb %d0,%fp@(-6) <== NOT EXECUTED s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 5356a: 4242 clrw %d2 <== NOT EXECUTED 5356c: 4842 swap %d2 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 5356e: e08b lsrl #8,%d3 <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 53570: 4200 clrb %d0 <== NOT EXECUTED if ( information->is_string ) { s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 53572: 1d41 fff7 moveb %d1,%fp@(-9) <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; 53576: 1d42 fff8 moveb %d2,%fp@(-8) <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 5357a: 1d43 fff9 moveb %d3,%fp@(-7) <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 5357e: 1d40 fffb moveb %d0,%fp@(-5) <== NOT EXECUTED 53582: 47ee fff7 lea %fp@(-9),%a3 <== NOT EXECUTED 53586: 6000 ff6a braw 534f2 <_Objects_Get_name_as_string+0x6a> <== NOT EXECUTED ... 00056170 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 56170: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 56174: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED 56178: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 5617c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 56180: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 56184: 2a6e 0014 moveal %fp@(20),%a5 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 56188: 4a40 tstw %d0 <== NOT EXECUTED 5618a: 673a beqs 561c6 <_Objects_Get_next+0x56> <== NOT EXECUTED 5618c: 2400 movel %d0,%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 5618e: 49f9 0004 ccc8 lea 4ccc8 <_Objects_Get>,%a4 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 56194: 4281 clrl %d1 <== NOT EXECUTED 56196: 2002 movel %d2,%d0 <== NOT EXECUTED 56198: 322b 000e movew %a3@(14),%d1 <== NOT EXECUTED 5619c: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 561a2: b081 cmpl %d1,%d0 <== NOT EXECUTED 561a4: 622c bhis 561d2 <_Objects_Get_next+0x62> <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 561a6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 561a8: 2f02 movel %d2,%sp@- <== NOT EXECUTED next_id++; 561aa: 5282 addql #1,%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 561ac: 2f0b movel %a3,%sp@- <== NOT EXECUTED 561ae: 4e94 jsr %a4@ <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 561b0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 561b6: 4a92 tstl %a2@ <== NOT EXECUTED 561b8: 66da bnes 56194 <_Objects_Get_next+0x24> <== NOT EXECUTED *next_id_p = next_id; 561ba: 2a82 movel %d2,%a5@ <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 561bc: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 561c2: 4e5e unlk %fp <== NOT EXECUTED 561c4: 4e75 rts <== NOT EXECUTED { Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) next_id = information->minimum_id; 561c6: 242b 0006 movel %a3@(6),%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 561ca: 49f9 0004 ccc8 lea 4ccc8 <_Objects_Get>,%a4 <== NOT EXECUTED 561d0: 60c2 bras 56194 <_Objects_Get_next+0x24> <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 561d2: 7401 moveq #1,%d2 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 561d4: 72ff moveq #-1,%d1 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 561d6: 2482 movel %d2,%a2@ <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 561d8: 4280 clrl %d0 <== NOT EXECUTED 561da: 2a81 movel %d1,%a5@ <== NOT EXECUTED return 0; } 561dc: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 561e2: 4e5e unlk %fp <== NOT EXECUTED 561e4: 4e75 rts <== NOT EXECUTED ... 000559e0 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 559e0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 559e4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED /* * 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; 559e8: 7201 moveq #1,%d1 <== NOT EXECUTED 559ea: 92a8 0006 subl %a0@(6),%d1 <== NOT EXECUTED 559ee: d2ae 000c addl %fp@(12),%d1 <== NOT EXECUTED if ( information->maximum >= index ) { 559f2: 4280 clrl %d0 <== NOT EXECUTED 559f4: 3028 000e movew %a0@(14),%d0 <== NOT EXECUTED 559f8: b081 cmpl %d1,%d0 <== NOT EXECUTED 559fa: 6514 bcss 55a10 <_Objects_Get_no_protection+0x30> <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { 559fc: 2068 001a moveal %a0@(26),%a0 <== NOT EXECUTED 55a00: 2030 1c00 movel %a0@(00000000,%d1:l:4),%d0 <== NOT EXECUTED 55a04: 670a beqs 55a10 <_Objects_Get_no_protection+0x30> <== NOT EXECUTED *location = OBJECTS_LOCAL; 55a06: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; return NULL; } 55a0a: 4e5e unlk %fp <== NOT EXECUTED */ index = id - information->minimum_id + 1; if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 55a0c: 4290 clrl %a0@ <== NOT EXECUTED * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; return NULL; } 55a0e: 4e75 rts <== NOT EXECUTED /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; 55a10: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 55a14: 7201 moveq #1,%d1 <== NOT EXECUTED return NULL; } 55a16: 4e5e unlk %fp <== NOT EXECUTED /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; 55a18: 4280 clrl %d0 <== NOT EXECUTED 55a1a: 2081 movel %d1,%a0@ <== NOT EXECUTED return NULL; } 55a1c: 4e75 rts <== NOT EXECUTED ... 00047654 <_Objects_Handler_initialization>: uint32_t maximum_nodes, uint32_t maximum_global_objects ) #else void _Objects_Handler_initialization(void) #endif { 47654: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED node, maximum_nodes, maximum_global_objects ); #endif } 47658: 4e5e unlk %fp <== NOT EXECUTED 4765a: 4e75 rts 00048504 <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 48504: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48508: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4850a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4850e: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Id tmpId; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 48510: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 48514: 6700 00a4 beqw 485ba <_Objects_Id_to_name+0xb6> <== NOT EXECUTED return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 48518: 4a80 tstl %d0 <== NOT EXECUTED 4851a: 6678 bnes 48594 <_Objects_Id_to_name+0x90> <== NOT EXECUTED 4851c: 2079 0005 ac9a moveal 5ac9a <_Thread_Executing>,%a0 <== NOT EXECUTED 48522: 2428 0008 movel %a0@(8),%d2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 48526: 7018 moveq #24,%d0 <== NOT EXECUTED 48528: 2202 movel %d2,%d1 <== NOT EXECUTED 4852a: e0a9 lsrl %d0,%d1 <== NOT EXECUTED 4852c: 7607 moveq #7,%d3 <== NOT EXECUTED 4852e: c283 andl %d3,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 48530: 2001 movel %d1,%d0 <== NOT EXECUTED 48532: 5380 subql #1,%d0 <== NOT EXECUTED 48534: 163c 0003 moveb #3,%d3 <== NOT EXECUTED 48538: b680 cmpl %d0,%d3 <== NOT EXECUTED 4853a: 6570 bcss 485ac <_Objects_Id_to_name+0xa8> <== NOT EXECUTED the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 4853c: 41f9 0005 ab94 lea 5ab94 <_Objects_Information_table>,%a0 <== NOT EXECUTED 48542: 2070 1c00 moveal %a0@(00000000,%d1:l:4),%a0 <== NOT EXECUTED 48546: 4a88 tstl %a0 <== NOT EXECUTED 48548: 6762 beqs 485ac <_Objects_Id_to_name+0xa8> <== NOT EXECUTED return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 4854a: 2002 movel %d2,%d0 <== NOT EXECUTED 4854c: 721b moveq #27,%d1 <== NOT EXECUTED 4854e: e2a8 lsrl %d1,%d0 <== NOT EXECUTED 48550: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED if ( !information ) 48554: 4a88 tstl %a0 <== NOT EXECUTED 48556: 6754 beqs 485ac <_Objects_Id_to_name+0xa8> <== NOT EXECUTED return OBJECTS_INVALID_ID; if ( information->is_string ) 48558: 4a28 0034 tstb %a0@(52) <== NOT EXECUTED 4855c: 664e bnes 485ac <_Objects_Id_to_name+0xa8> <== NOT EXECUTED return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &ignored_location ); 4855e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48562: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48564: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48566: 4eb9 0004 8490 jsr 48490 <_Objects_Get> <== NOT EXECUTED if ( !the_object ) 4856c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED return OBJECTS_INVALID_ID; if ( information->is_string ) return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &ignored_location ); 48572: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !the_object ) 48574: 4a80 tstl %d0 <== NOT EXECUTED 48576: 6734 beqs 485ac <_Objects_Id_to_name+0xa8> <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; 48578: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4857c: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 48580: 4eb9 0004 8dd8 jsr 48dd8 <_Thread_Enable_dispatch> <== NOT EXECUTED 48586: 4280 clrl %d0 <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 48588: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 4858c: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 48590: 4e5e unlk %fp <== NOT EXECUTED 48592: 4e75 rts <== NOT EXECUTED Objects_Locations ignored_location; if ( !name ) return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 48594: 2400 movel %d0,%d2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 48596: 7018 moveq #24,%d0 <== NOT EXECUTED 48598: 2202 movel %d2,%d1 <== NOT EXECUTED 4859a: e0a9 lsrl %d0,%d1 <== NOT EXECUTED 4859c: 7607 moveq #7,%d3 <== NOT EXECUTED 4859e: c283 andl %d3,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 485a0: 2001 movel %d1,%d0 <== NOT EXECUTED 485a2: 5380 subql #1,%d0 <== NOT EXECUTED 485a4: 163c 0003 moveb #3,%d3 <== NOT EXECUTED 485a8: b680 cmpl %d0,%d3 <== NOT EXECUTED 485aa: 6490 bccs 4853c <_Objects_Id_to_name+0x38> <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 485ac: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 485b0: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 485b4: 4e5e unlk %fp <== NOT EXECUTED if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 485b6: 7003 moveq #3,%d0 <== NOT EXECUTED } 485b8: 4e75 rts <== NOT EXECUTED 485ba: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 485be: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 485c2: 4e5e unlk %fp <== NOT EXECUTED Objects_Id tmpId; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 485c4: 7001 moveq #1,%d0 <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 485c6: 4e75 rts 000474ac <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 474ac: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 474b0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED /* * Set the entry in the object information table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 474b4: 41f9 0005 870c lea 5870c <_Objects_Information_table>,%a0 <== NOT EXECUTED 474ba: 2270 0c00 moveal %a0@(00000000,%d0:l:4),%a1 <== NOT EXECUTED , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 474be: 48d7 007c moveml %d2-%d6,%sp@ <== NOT EXECUTED 474c2: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED 474c6: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 474ca: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED * Are we operating in unlimited, or auto-extend mode */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? TRUE : FALSE; maximum &= ~OBJECTS_UNLIMITED_OBJECTS; 474ce: 2c04 movel %d4,%d6 <== NOT EXECUTED 474d0: 0886 001f bclr #31,%d6 <== NOT EXECUTED */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 474d4: 7218 moveq #24,%d1 <== NOT EXECUTED uint32_t name_length; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; 474d6: 2080 movel %d0,%a0@ <== NOT EXECUTED */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 474d8: e3a8 lsll %d1,%d0 <== NOT EXECUTED 474da: 4a86 tstl %d6 <== NOT EXECUTED 474dc: 56c3 sne %d3 <== NOT EXECUTED 474de: 123c 001b moveb #27,%d1 <== NOT EXECUTED /* * Set the entry in the object information table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 474e2: 2388 2c00 movel %a0,%a1@(00000000,%d2:l:4) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; 474e6: 3142 0004 movew %d2,%a0@(4) <== NOT EXECUTED , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 474ea: 2a2e 0020 movel %fp@(32),%d5 <== NOT EXECUTED */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 474ee: e3aa lsll %d1,%d2 <== NOT EXECUTED 474f0: 08c0 0010 bset #16,%d0 <== NOT EXECUTED 474f4: 49c3 extbl %d3 <== NOT EXECUTED 474f6: 8082 orl %d2,%d0 <== NOT EXECUTED 474f8: 4483 negl %d3 <== NOT EXECUTED 474fa: 8083 orl %d3,%d0 <== NOT EXECUTED , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 474fc: 4281 clrl %d1 <== NOT EXECUTED */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 474fe: 2140 0006 movel %d0,%a0@(6) <== NOT EXECUTED , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47502: 322e 001a movew %fp@(26),%d1 <== NOT EXECUTED information->local_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; information->inactive = 0; 47506: 4240 clrw %d0 <== NOT EXECUTED /* * Set the size of the object */ information->size = size; 47508: 2141 0016 movel %d1,%a0@(22) <== NOT EXECUTED information->local_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; information->inactive = 0; 4750c: 3140 002a movew %d0,%a0@(42) <== NOT EXECUTED /* * Are we operating in unlimited, or auto-extend mode */ information->auto_extend = 47510: d884 addl %d4,%d4 <== NOT EXECUTED 47512: 9984 subxl %d4,%d4 <== NOT EXECUTED 47514: 4484 negl %d4 <== NOT EXECUTED uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->is_string = is_string; 47516: 116e 001f 0034 moveb %fp@(31),%a0@(52) <== NOT EXECUTED * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 4751c: 7003 moveq #3,%d0 <== NOT EXECUTED /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 4751e: 223c 0005 7f04 movel #360196,%d1 <== NOT EXECUTED /* * Are we operating in unlimited, or auto-extend mode */ information->auto_extend = 47524: 1144 0010 moveb %d4,%a0@(16) <== NOT EXECUTED information->the_api = the_api; information->the_class = the_class; information->is_string = is_string; information->local_table = 0; information->inactive_per_block = 0; 47528: 42a8 002c clrl %a0@(44) <== NOT EXECUTED * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 4752c: c085 andl %d5,%d0 <== NOT EXECUTED /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 4752e: 2141 001a movel %d1,%a0@(26) <== NOT EXECUTED information->the_class = the_class; information->is_string = is_string; information->local_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; 47532: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED /* * The allocation unit is the maximum value */ information->allocation_size = maximum; 47536: 2146 0012 movel %d6,%a0@(18) <== NOT EXECUTED * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 4753a: 4a80 tstl %d0 <== NOT EXECUTED 4753c: 6626 bnes 47564 <_Objects_Initialize_information+0xb8> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4753e: 43e8 0022 lea %a0@(34),%a1 <== NOT EXECUTED 47542: 2149 001e movel %a1,%a0@(30) <== NOT EXECUTED 47546: 2005 movel %d5,%d0 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 47548: 43e8 001e lea %a0@(30),%a1 <== NOT EXECUTED name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 4754c: 3140 0036 movew %d0,%a0@(54) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 47550: 42a8 0022 clrl %a0@(34) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 47554: 2149 0026 movel %a1,%a0@(38) <== NOT EXECUTED /* * Initialize objects .. if there are any */ if ( maximum ) { 47558: 4a86 tstl %d6 <== NOT EXECUTED 4755a: 662c bnes 47588 <_Objects_Initialize_information+0xdc> <== NOT EXECUTED _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 4755c: 4cd7 007c moveml %sp@,%d2-%d6 <== NOT EXECUTED 47560: 4e5e unlk %fp <== NOT EXECUTED 47562: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 47564: 43e8 0022 lea %a0@(34),%a1 <== NOT EXECUTED */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & 47568: 2005 movel %d5,%d0 <== NOT EXECUTED 4756a: 5880 addql #4,%d0 <== NOT EXECUTED 4756c: 72fc moveq #-4,%d1 <== NOT EXECUTED 4756e: 2149 001e movel %a1,%a0@(30) <== NOT EXECUTED 47572: c081 andl %d1,%d0 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 47574: 43e8 001e lea %a0@(30),%a1 <== NOT EXECUTED ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 47578: 3140 0036 movew %d0,%a0@(54) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 4757c: 42a8 0022 clrl %a0@(34) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 47580: 2149 0026 movel %a1,%a0@(38) <== NOT EXECUTED /* * Initialize objects .. if there are any */ if ( maximum ) { 47584: 4a86 tstl %d6 <== NOT EXECUTED 47586: 67d4 beqs 4755c <_Objects_Initialize_information+0xb0> <== NOT EXECUTED * 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 ); 47588: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 4758c: 4cd7 007c moveml %sp@,%d2-%d6 <== NOT EXECUTED 47590: 4e5e unlk %fp <== NOT EXECUTED /* * Reset the maximum value. It will be updated when the information is * extended. */ information->maximum = 0; 47592: 4240 clrw %d0 <== NOT EXECUTED 47594: 3140 000e movew %d0,%a0@(14) <== NOT EXECUTED * 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 ); 47598: 4ef9 0004 6fd4 jmp 46fd4 <_Objects_Extend_information> <== NOT EXECUTED ... 000475d0 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 475d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 475d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 475d6: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == FALSE */ if ( !id ) 475da: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 475de: 676a beqs 4764a <_Objects_Name_to_id_u32+0x7a> <== NOT EXECUTED return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 475e0: 4a82 tstl %d2 <== NOT EXECUTED 475e2: 6738 beqs 4761c <_Objects_Name_to_id_u32+0x4c> <== NOT EXECUTED return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 475e4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 475e8: 3028 000e movew %a0@(14),%d0 <== NOT EXECUTED 475ec: 672e beqs 4761c <_Objects_Name_to_id_u32+0x4c> <== NOT EXECUTED 475ee: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 475f2: 6630 bnes 47624 <_Objects_Name_to_id_u32+0x54> <== NOT EXECUTED search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 475f4: 4281 clrl %d1 <== NOT EXECUTED 475f6: 3200 movew %d0,%d1 <== NOT EXECUTED 475f8: 4a81 tstl %d1 <== NOT EXECUTED 475fa: 6720 beqs 4761c <_Objects_Name_to_id_u32+0x4c> <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 475fc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47600: 2268 001a moveal %a0@(26),%a1 <== NOT EXECUTED 47604: 7001 moveq #1,%d0 <== NOT EXECUTED 47606: 5889 addql #4,%a1 <== NOT EXECUTED if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; 47608: 2051 moveal %a1@,%a0 <== NOT EXECUTED search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 4760a: 5280 addql #1,%d0 <== NOT EXECUTED 4760c: 5889 addql #4,%a1 <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) 4760e: 4a88 tstl %a0 <== NOT EXECUTED 47610: 6706 beqs 47618 <_Objects_Name_to_id_u32+0x48> <== NOT EXECUTED continue; if ( name == the_object->name.name_u32 ) { 47612: b4a8 000c cmpl %a0@(12),%d2 <== NOT EXECUTED 47616: 6722 beqs 4763a <_Objects_Name_to_id_u32+0x6a> <== NOT EXECUTED search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 47618: b280 cmpl %d0,%d1 <== NOT EXECUTED 4761a: 64ec bccs 47608 <_Objects_Name_to_id_u32+0x38> <== NOT EXECUTED 4761c: 7001 moveq #1,%d0 <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 4761e: 241f movel %sp@+,%d2 <== NOT EXECUTED 47620: 4e5e unlk %fp <== NOT EXECUTED 47622: 4e75 rts <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 47624: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 47628: b3fc 7fff ffff cmpal #2147483647,%a1 <== NOT EXECUTED 4762e: 67c4 beqs 475f4 <_Objects_Name_to_id_u32+0x24> <== NOT EXECUTED 47630: 7201 moveq #1,%d1 <== NOT EXECUTED 47632: b289 cmpl %a1,%d1 <== NOT EXECUTED 47634: 67be beqs 475f4 <_Objects_Name_to_id_u32+0x24> <== NOT EXECUTED search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 47636: 7001 moveq #1,%d0 <== NOT EXECUTED 47638: 60e4 bras 4761e <_Objects_Name_to_id_u32+0x4e> <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; 4763a: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 4763e: 241f movel %sp@+,%d2 <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; 47640: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 47644: 4e5e unlk %fp <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; 47646: 4280 clrl %d0 <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 47648: 4e75 rts <== NOT EXECUTED 4764a: 241f movel %sp@+,%d2 <== NOT EXECUTED 4764c: 4e5e unlk %fp <== NOT EXECUTED Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == FALSE */ if ( !id ) 4764e: 7002 moveq #2,%d0 <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 47650: 4e75 rts <== NOT EXECUTED ... 000475a0 <_Objects_Namespace_remove>: void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 475a0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 475a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 475a6: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 475aa: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 475ae: 4a28 0034 tstb %a0@(52) <== NOT EXECUTED 475b2: 6710 beqs 475c4 <_Objects_Namespace_remove+0x24> <== NOT EXECUTED 475b4: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 475b8: 670a beqs 475c4 <_Objects_Namespace_remove+0x24> <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 475ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED 475bc: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 475c2: 588f addql #4,%sp <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; the_object->name.name_u32 = 0; 475c4: 42aa 000c clrl %a2@(12) <== NOT EXECUTED } 475c8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 475cc: 4e5e unlk %fp <== NOT EXECUTED 475ce: 4e75 rts 00049240 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 49240: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 49244: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 49248: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 4924c: 4280 clrl %d0 <== NOT EXECUTED 4924e: 302a 0036 movew %a2@(54),%d0 <== NOT EXECUTED 49252: 2f00 movel %d0,%sp@- <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 49254: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED 49258: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 4925c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4925e: 4eb9 0004 fbcc jsr 4fbcc <== NOT EXECUTED 49264: 2400 movel %d0,%d2 <== NOT EXECUTED if ( information->is_string ) { 49266: 508f addql #8,%sp <== NOT EXECUTED { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 49268: 5282 addql #1,%d2 <== NOT EXECUTED if ( information->is_string ) { 4926a: 4a2a 0034 tstb %a2@(52) <== NOT EXECUTED 4926e: 6656 bnes 492c6 <_Objects_Set_name+0x86> <== NOT EXECUTED strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 49270: 223c 2020 2020 movel #538976288,%d1 <== NOT EXECUTED 49276: 4a82 tstl %d2 <== NOT EXECUTED 49278: 673c beqs 492b6 <_Objects_Set_name+0x76> <== NOT EXECUTED 4927a: 1013 moveb %a3@,%d0 <== NOT EXECUTED 4927c: 7218 moveq #24,%d1 <== NOT EXECUTED 4927e: 49c0 extbl %d0 <== NOT EXECUTED 49280: e3a8 lsll %d1,%d0 <== NOT EXECUTED 49282: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 49286: b282 cmpl %d2,%d1 <== NOT EXECUTED 49288: 6700 00b0 beqw 4933a <_Objects_Set_name+0xfa> <== NOT EXECUTED 4928c: 122b 0001 moveb %a3@(1),%d1 <== NOT EXECUTED 49290: 49c1 extbl %d1 <== NOT EXECUTED 49292: 4841 swap %d1 <== NOT EXECUTED 49294: 4241 clrw %d1 <== NOT EXECUTED 49296: 8280 orl %d0,%d1 <== NOT EXECUTED 49298: 7002 moveq #2,%d0 <== NOT EXECUTED 4929a: b082 cmpl %d2,%d0 <== NOT EXECUTED 4929c: 6774 beqs 49312 <_Objects_Set_name+0xd2> <== NOT EXECUTED 4929e: 102b 0002 moveb %a3@(2),%d0 <== NOT EXECUTED 492a2: 49c0 extbl %d0 <== NOT EXECUTED 492a4: e188 lsll #8,%d0 <== NOT EXECUTED 492a6: 8280 orl %d0,%d1 <== NOT EXECUTED 492a8: 7003 moveq #3,%d0 <== NOT EXECUTED 492aa: b082 cmpl %d2,%d0 <== NOT EXECUTED 492ac: 677e beqs 4932c <_Objects_Set_name+0xec> <== NOT EXECUTED 492ae: 102b 0003 moveb %a3@(3),%d0 <== NOT EXECUTED 492b2: 49c0 extbl %d0 <== NOT EXECUTED 492b4: 8280 orl %d0,%d1 <== NOT EXECUTED 492b6: 7001 moveq #1,%d0 <== NOT EXECUTED 492b8: 2941 000c movel %d1,%a4@(12) <== NOT EXECUTED ); } return TRUE; } 492bc: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 492c2: 4e5e unlk %fp <== NOT EXECUTED 492c4: 4e75 rts <== NOT EXECUTED length = strnlen( name, information->name_length ) + 1; if ( information->is_string ) { char *d; d = _Workspace_Allocate( length ); 492c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 492c8: 4eb9 0004 ae48 jsr 4ae48 <_Workspace_Allocate> <== NOT EXECUTED if ( !d ) 492ce: 588f addql #4,%sp <== NOT EXECUTED length = strnlen( name, information->name_length ) + 1; if ( information->is_string ) { char *d; d = _Workspace_Allocate( length ); 492d0: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !d ) 492d2: 4a80 tstl %d0 <== NOT EXECUTED 492d4: 674a beqs 49320 <_Objects_Set_name+0xe0> <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 492d6: 202c 000c movel %a4@(12),%d0 <== NOT EXECUTED 492da: 670e beqs 492ea <_Objects_Set_name+0xaa> <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 492dc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 492de: 4eb9 0004 ae30 jsr 4ae30 <_Workspace_Free> <== NOT EXECUTED the_object->name.name_p = NULL; 492e4: 588f addql #4,%sp <== NOT EXECUTED 492e6: 42ac 000c clrl %a4@(12) <== NOT EXECUTED } strncpy( d, name, length ); 492ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 492ec: 2f0b movel %a3,%sp@- <== NOT EXECUTED 492ee: 2f0a movel %a2,%sp@- <== NOT EXECUTED 492f0: 4eb9 0004 fb40 jsr 4fb40 <== NOT EXECUTED d[ length ] = '\0'; 492f6: 4200 clrb %d0 <== NOT EXECUTED 492f8: 1580 2800 moveb %d0,%a2@(00000000,%d2:l) <== NOT EXECUTED the_object->name.name_p = d; 492fc: 294a 000c movel %a2,%a4@(12) <== NOT EXECUTED 49300: dffc 0000 000c addal #12,%sp <== NOT EXECUTED ); } return TRUE; } 49306: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 4930c: 4e5e unlk %fp <== NOT EXECUTED the_object->name.name_p = NULL; } strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; 4930e: 7001 moveq #1,%d0 <== NOT EXECUTED ); } return TRUE; } 49310: 4e75 rts <== NOT EXECUTED strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 49312: 0081 0000 2020 oril #8224,%d1 <== NOT EXECUTED 49318: 2941 000c movel %d1,%a4@(12) <== NOT EXECUTED 4931c: 7001 moveq #1,%d0 <== NOT EXECUTED 4931e: 609c bras 492bc <_Objects_Set_name+0x7c> <== NOT EXECUTED ); } return TRUE; } 49320: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 49326: 4e5e unlk %fp <== NOT EXECUTED if ( information->is_string ) { char *d; d = _Workspace_Allocate( length ); if ( !d ) 49328: 4200 clrb %d0 <== NOT EXECUTED ); } return TRUE; } 4932a: 4e75 rts <== NOT EXECUTED strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 4932c: 103c 0020 moveb #32,%d0 <== NOT EXECUTED 49330: 8280 orl %d0,%d1 <== NOT EXECUTED 49332: 2941 000c movel %d1,%a4@(12) <== NOT EXECUTED 49336: 7001 moveq #1,%d0 <== NOT EXECUTED 49338: 6082 bras 492bc <_Objects_Set_name+0x7c> <== NOT EXECUTED 4933a: 2200 movel %d0,%d1 <== NOT EXECUTED 4933c: 0081 0020 2020 oril #2105376,%d1 <== NOT EXECUTED 49342: 2941 000c movel %d1,%a4@(12) <== NOT EXECUTED 49346: 7001 moveq #1,%d0 <== NOT EXECUTED 49348: 6000 ff72 braw 492bc <_Objects_Set_name+0x7c> <== NOT EXECUTED 0004765c <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 4765c: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 47660: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 47664: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( Objects_Id id ) { return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 47668: 2a2b 0006 movel %a3@(6),%d5 <== NOT EXECUTED /* * Search the list to find block or chunnk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = ( information->maximum - index_base ) / information->allocation_size; 4766c: 282b 0012 movel %a3@(18),%d4 <== NOT EXECUTED 47670: 4282 clrl %d2 <== NOT EXECUTED 47672: 0285 0000 ffff andil #65535,%d5 <== NOT EXECUTED 47678: 342b 000e movew %a3@(14),%d2 <== NOT EXECUTED 4767c: 9485 subl %d5,%d2 <== NOT EXECUTED 4767e: 4c44 2002 remul %d4,%d2,%d2 <== NOT EXECUTED for ( block = 0; block < block_count; block++ ) { 47682: 672c beqs 476b0 <_Objects_Shrink_information+0x54> <== NOT EXECUTED if ( information->inactive_per_block[ block ] == information->allocation_size ) { 47684: 206b 002c moveal %a3@(44),%a0 <== NOT EXECUTED 47688: b890 cmpl %a0@,%d4 <== NOT EXECUTED 4768a: 672e beqs 476ba <_Objects_Shrink_information+0x5e> <== NOT EXECUTED information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 4768c: 7604 moveq #4,%d3 <== NOT EXECUTED 4768e: 4280 clrl %d0 <== NOT EXECUTED } index_base += information->allocation_size; 47690: 2203 movel %d3,%d1 <== NOT EXECUTED 47692: da84 addl %d4,%d5 <== NOT EXECUTED 47694: 5881 addql #4,%d1 <== NOT EXECUTED */ index_base = _Objects_Get_index( information->minimum_id ); block_count = ( information->maximum - index_base ) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 47696: 5280 addql #1,%d0 <== NOT EXECUTED 47698: b082 cmpl %d2,%d0 <== NOT EXECUTED 4769a: 6414 bccs 476b0 <_Objects_Shrink_information+0x54> <== NOT EXECUTED if ( information->inactive_per_block[ block ] == information->allocation_size ) { 4769c: b8b0 3800 cmpl %a0@(00000000,%d3:l),%d4 <== NOT EXECUTED 476a0: 671a beqs 476bc <_Objects_Shrink_information+0x60> <== NOT EXECUTED 476a2: 2601 movel %d1,%d3 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 476a4: 2203 movel %d3,%d1 <== NOT EXECUTED 476a6: da84 addl %d4,%d5 <== NOT EXECUTED 476a8: 5881 addql #4,%d1 <== NOT EXECUTED */ index_base = _Objects_Get_index( information->minimum_id ); block_count = ( information->maximum - index_base ) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 476aa: 5280 addql #1,%d0 <== NOT EXECUTED 476ac: b082 cmpl %d2,%d0 <== NOT EXECUTED 476ae: 65ec bcss 4769c <_Objects_Shrink_information+0x40> <== NOT EXECUTED return; } index_base += information->allocation_size; } } 476b0: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 476b6: 4e5e unlk %fp <== NOT EXECUTED 476b8: 4e75 rts <== NOT EXECUTED 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 ] == information->allocation_size ) { 476ba: 4283 clrl %d3 <== NOT EXECUTED /* * XXX - Not to sure how to use a chain where you need to iterate and * and remove elements. */ the_object = (Objects_Control *) information->Inactive.first; 476bc: 206b 001e moveal %a3@(30),%a0 <== NOT EXECUTED if ( !_Chain_Is_last( &the_object->Node ) ) the_object = (Objects_Control *) the_object->Node.next; else the_object = NULL; _Chain_Extract( &extract_me->Node ); 476c0: 49f9 0004 b1cc lea 4b1cc <_Chain_Extract>,%a4 <== NOT EXECUTED 476c6: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED 476ca: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED */ do { index = _Objects_Get_index( the_object->id ); if ((index >= index_base) && 476d0: ba81 cmpl %d1,%d5 <== NOT EXECUTED 476d2: 6252 bhis 47726 <_Objects_Shrink_information+0xca> <== NOT EXECUTED 476d4: 2005 movel %d5,%d0 <== NOT EXECUTED 476d6: d0ab 0012 addl %a3@(18),%d0 <== NOT EXECUTED 476da: b280 cmpl %d0,%d1 <== NOT EXECUTED 476dc: 6448 bccs 47726 <_Objects_Shrink_information+0xca> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_last( const Chain_Node *the_node ) { return (the_node->next == NULL); 476de: 2450 moveal %a0@,%a2 <== NOT EXECUTED if ( !_Chain_Is_last( &the_object->Node ) ) the_object = (Objects_Control *) the_object->Node.next; else the_object = NULL; _Chain_Extract( &extract_me->Node ); 476e0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 476e2: 4e94 jsr %a4@ <== NOT EXECUTED 476e4: 588f addql #4,%sp <== NOT EXECUTED } else { the_object = (Objects_Control *) the_object->Node.next; } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 476e6: 204a moveal %a2,%a0 <== NOT EXECUTED 476e8: 4a8a tstl %a2 <== NOT EXECUTED 476ea: 6704 beqs 476f0 <_Objects_Shrink_information+0x94> <== NOT EXECUTED 476ec: 4a92 tstl %a2@ <== NOT EXECUTED 476ee: 66d6 bnes 476c6 <_Objects_Shrink_information+0x6a> <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 476f0: 206b 0030 moveal %a3@(48),%a0 <== NOT EXECUTED 476f4: 2f30 3800 movel %a0@(00000000,%d3:l),%sp@- <== NOT EXECUTED 476f8: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 476fe: 206b 002c moveal %a3@(44),%a0 <== NOT EXECUTED 47702: 42b0 3800 clrl %a0@(00000000,%d3:l) <== NOT EXECUTED information->inactive -= information->allocation_size; 47706: 302b 002a movew %a3@(42),%d0 <== NOT EXECUTED 4770a: 90ab 0012 subl %a3@(18),%d0 <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 4770e: 226b 0030 moveal %a3@(48),%a1 <== NOT EXECUTED information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 47712: 3740 002a movew %d0,%a3@(42) <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 47716: 42b1 3800 clrl %a1@(00000000,%d3:l) <== NOT EXECUTED information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 4771a: 588f addql #4,%sp <== NOT EXECUTED return; } index_base += information->allocation_size; } } 4771c: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 47722: 4e5e unlk %fp <== NOT EXECUTED 47724: 4e75 rts <== NOT EXECUTED the_object = NULL; _Chain_Extract( &extract_me->Node ); } else { the_object = (Objects_Control *) the_object->Node.next; 47726: 2450 moveal %a0@,%a2 <== NOT EXECUTED 47728: 60bc bras 476e6 <_Objects_Shrink_information+0x8a> <== NOT EXECUTED ... 0004adc4 <_Partition_Manager_initialization>: */ void _Partition_Manager_initialization( uint32_t maximum_partitions ) { 4adc4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4adc8: 4878 0004 pea 4 <== NOT EXECUTED 4adcc: 42a7 clrl %sp@- <== NOT EXECUTED 4adce: 4878 0030 pea 30 <== NOT EXECUTED 4add2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4add6: 4878 0005 pea 5 <== NOT EXECUTED 4adda: 4878 0002 pea 2 <== NOT EXECUTED 4adde: 4879 0005 8a8a pea 58a8a <_Partition_Information> <== NOT EXECUTED 4ade4: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4adea: dffc 0000 001c addal #28,%sp <== NOT EXECUTED MP_PACKET_PARTITION, _Partition_MP_Process_packet ); #endif } 4adf0: 4e5e unlk %fp <== NOT EXECUTED 4adf2: 4e75 rts 0004b690 <_Protected_heap_Allocate>: void *_Protected_heap_Allocate( Heap_Control *the_heap, size_t size ) { 4b690: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b694: 2f02 movel %d2,%sp@- <== NOT EXECUTED void *p; _RTEMS_Lock_allocator(); 4b696: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4b69c: 4eb9 0004 6640 jsr 46640 <_API_Mutex_Lock> <== NOT EXECUTED p = _Heap_Allocate( the_heap, size ); 4b6a2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4b6a6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4b6aa: 4eb9 0004 b404 jsr 4b404 <_Heap_Allocate> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4b6b0: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED ) { void *p; _RTEMS_Lock_allocator(); p = _Heap_Allocate( the_heap, size ); 4b6b6: 2400 movel %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4b6b8: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED return p; } 4b6be: 2002 movel %d2,%d0 <== NOT EXECUTED 4b6c0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b6c4: 4e5e unlk %fp <== NOT EXECUTED 4b6c6: 4e75 rts 0004ac8c <_Protected_heap_Allocate_aligned>: void *_Protected_heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 4ac8c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4ac90: 2f02 movel %d2,%sp@- <== NOT EXECUTED void *p; _RTEMS_Lock_allocator(); 4ac92: 2f39 0005 c84e movel 5c84e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4ac98: 4eb9 0004 955c jsr 4955c <_API_Mutex_Lock> <== NOT EXECUTED p = _Heap_Allocate_aligned( the_heap, size, alignment ); 4ac9e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4aca2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4aca6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4acaa: 4eb9 0004 9c40 jsr 49c40 <_Heap_Allocate_aligned> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4acb0: 2f39 0005 c84e movel 5c84e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED ) { void *p; _RTEMS_Lock_allocator(); p = _Heap_Allocate_aligned( the_heap, size, alignment ); 4acb6: 2400 movel %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4acb8: 4eb9 0004 95c0 jsr 495c0 <_API_Mutex_Unlock> <== NOT EXECUTED return p; } 4acbe: 2002 movel %d2,%d0 <== NOT EXECUTED 4acc0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4acc4: 4e5e unlk %fp <== NOT EXECUTED 4acc6: 4e75 rts 0004ad00 <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, size_t size ) { 4ad00: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4ad04: 2f02 movel %d2,%sp@- <== NOT EXECUTED Heap_Extend_status status; uint32_t amount_extended; _RTEMS_Lock_allocator(); 4ad06: 2f39 0005 c84e movel 5c84e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4ad0c: 4eb9 0004 955c jsr 4955c <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); 4ad12: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4ad16: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4ad1a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4ad1e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ad22: 4eb9 0004 ea54 jsr 4ea54 <_Heap_Extend> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4ad28: 2f39 0005 c84e movel 5c84e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED { Heap_Extend_status status; uint32_t amount_extended; _RTEMS_Lock_allocator(); status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); 4ad2e: 2400 movel %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4ad30: 4eb9 0004 95c0 jsr 495c0 <_API_Mutex_Unlock> <== NOT EXECUTED 4ad36: 4a82 tstl %d2 <== NOT EXECUTED 4ad38: 57c0 seq %d0 <== NOT EXECUTED return (status == HEAP_EXTEND_SUCCESSFUL); } 4ad3a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED Heap_Extend_status status; uint32_t amount_extended; _RTEMS_Lock_allocator(); status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); _RTEMS_Unlock_allocator(); 4ad3e: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED return (status == HEAP_EXTEND_SUCCESSFUL); } 4ad44: 4e5e unlk %fp <== NOT EXECUTED 4ad46: 4480 negl %d0 <== NOT EXECUTED 4ad48: 4e75 rts <== NOT EXECUTED ... 0004b6c8 <_Protected_heap_Free>: bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { 4b6c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b6cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED bool status; _RTEMS_Lock_allocator(); 4b6ce: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4b6d4: 4eb9 0004 6640 jsr 46640 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Free( the_heap, start_address ); 4b6da: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4b6de: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4b6e2: 4eb9 0004 b4c8 jsr 4b4c8 <_Heap_Free> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4b6e8: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED ) { bool status; _RTEMS_Lock_allocator(); status = _Heap_Free( the_heap, start_address ); 4b6ee: 1400 moveb %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4b6f0: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED return status; } 4b6f6: 1002 moveb %d2,%d0 <== NOT EXECUTED 4b6f8: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4b6fc: 4e5e unlk %fp <== NOT EXECUTED 4b6fe: 4e75 rts 000550fc <_Protected_heap_Get_block_size>: bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, size_t *size ) { 550fc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 55100: 2f02 movel %d2,%sp@- <== NOT EXECUTED bool status; _RTEMS_Lock_allocator(); 55102: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 55108: 4eb9 0004 6640 jsr 46640 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Size_of_user_area( the_heap, starting_address, size ); 5510e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 55112: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 55116: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5511a: 4eb9 0005 534c jsr 5534c <_Heap_Size_of_user_area> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 55120: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED ) { bool status; _RTEMS_Lock_allocator(); status = _Heap_Size_of_user_area( the_heap, starting_address, size ); 55126: 1400 moveb %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 55128: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED return status; } 5512e: 1002 moveb %d2,%d0 <== NOT EXECUTED 55130: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 55134: 4e5e unlk %fp <== NOT EXECUTED 55136: 4e75 rts 0004bf94 <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 4bf94: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); 4bf98: 2f39 0009 9f36 movel 99f36 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4bf9e: 4eb9 0004 ace0 jsr 4ace0 <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); 4bfa4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4bfa8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4bfac: 4eb9 0006 36c4 jsr 636c4 <_Heap_Get_free_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4bfb2: 2f39 0009 9f36 movel 99f36 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4bfb8: 4eb9 0004 ad44 jsr 4ad44 <_API_Mutex_Unlock> <== NOT EXECUTED return true; } 4bfbe: 4e5e unlk %fp <== NOT EXECUTED 4bfc0: 7001 moveq #1,%d0 <== NOT EXECUTED 4bfc2: 4e75 rts 00063840 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 63840: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 63844: 2f03 movel %d3,%sp@- <== NOT EXECUTED 63846: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 6384a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6384c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Heap_Get_information_status status; if ( !the_heap ) 63850: 4a83 tstl %d3 <== NOT EXECUTED 63852: 6740 beqs 63894 <_Protected_heap_Get_information+0x54> <== NOT EXECUTED return false; if ( !the_info ) 63854: 4a82 tstl %d2 <== NOT EXECUTED 63856: 673c beqs 63894 <_Protected_heap_Get_information+0x54> <== NOT EXECUTED return false; _RTEMS_Lock_allocator(); 63858: 2f39 0009 9f36 movel 99f36 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 6385e: 4eb9 0004 ace0 jsr 4ace0 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Get_information( the_heap, the_info ); 63864: 2f02 movel %d2,%sp@- <== NOT EXECUTED 63866: 2f03 movel %d3,%sp@- <== NOT EXECUTED 63868: 4eb9 0006 dd74 jsr 6dd74 <_Heap_Get_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 6386e: 2f39 0009 9f36 movel 99f36 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED if ( !the_info ) return false; _RTEMS_Lock_allocator(); status = _Heap_Get_information( the_heap, the_info ); 63874: 2400 movel %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 63876: 4eb9 0004 ad44 jsr 4ad44 <_API_Mutex_Unlock> <== NOT EXECUTED if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 6387c: 4a82 tstl %d2 <== NOT EXECUTED 6387e: 57c0 seq %d0 <== NOT EXECUTED return true; return false; } 63880: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 63884: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED _RTEMS_Lock_allocator(); status = _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 63888: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED return true; return false; } 6388e: 4e5e unlk %fp <== NOT EXECUTED _RTEMS_Lock_allocator(); status = _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 63890: 4480 negl %d0 <== NOT EXECUTED return true; return false; } 63892: 4e75 rts <== NOT EXECUTED 63894: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 63898: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 6389c: 4e5e unlk %fp <== NOT EXECUTED _RTEMS_Lock_allocator(); status = _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 6389e: 4200 clrb %d0 <== NOT EXECUTED return true; return false; } 638a0: 4e75 rts <== NOT EXECUTED ... 00055138 <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, size_t size ) { 55138: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 5513c: 2f02 movel %d2,%sp@- <== NOT EXECUTED Heap_Resize_status status; uint32_t old_mem_size; uint32_t avail_mem_size; _RTEMS_Lock_allocator(); 5513e: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 55144: 4eb9 0004 6640 jsr 46640 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Resize_block( 5514a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 5514e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55152: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 55156: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5515a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5515e: 4eb9 0005 5188 jsr 55188 <_Heap_Resize_block> <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 55164: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED Heap_Resize_status status; uint32_t old_mem_size; uint32_t avail_mem_size; _RTEMS_Lock_allocator(); status = _Heap_Resize_block( 5516a: 2400 movel %d0,%d2 <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 5516c: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED 55172: 4a82 tstl %d2 <== NOT EXECUTED 55174: 57c0 seq %d0 <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); } 55176: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED uint32_t avail_mem_size; _RTEMS_Lock_allocator(); status = _Heap_Resize_block( the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 5517a: dffc 0000 001c addal #28,%sp <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); } 55180: 4e5e unlk %fp <== NOT EXECUTED 55182: 4480 negl %d0 <== NOT EXECUTED 55184: 4e75 rts <== NOT EXECUTED ... 0004aea4 <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4aea4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4aea8: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4aeac: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 4aeb0: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED * 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 ) { 4aeb4: 2039 0005 c798 movel 5c798 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4aeba: 142e 0013 moveb %fp@(19),%d2 <== NOT EXECUTED * 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 ) { 4aebe: 4a80 tstl %d0 <== NOT EXECUTED 4aec0: 671e beqs 4aee0 <_Protected_heap_Walk+0x3c> <== NOT EXECUTED _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); 4aec2: 4280 clrl %d0 <== NOT EXECUTED 4aec4: 1002 moveb %d2,%d0 <== NOT EXECUTED 4aec6: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4aeca: 2d44 0008 movel %d4,%fp@(8) <== NOT EXECUTED } return status; } 4aece: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 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 ); 4aed4: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED } return status; } 4aed8: 4e5e unlk %fp <== NOT EXECUTED 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 ); 4aeda: 4ef9 0004 ec44 jmp 4ec44 <_Heap_Walk> <== NOT EXECUTED * 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(); 4aee0: 2f39 0005 c84e movel 5c84e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4aee6: 4eb9 0004 955c jsr 4955c <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); 4aeec: 4280 clrl %d0 <== NOT EXECUTED 4aeee: 1002 moveb %d2,%d0 <== NOT EXECUTED 4aef0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aef2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4aef4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4aef6: 4eb9 0004 ec44 jsr 4ec44 <_Heap_Walk> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4aefc: 2f39 0005 c84e movel 5c84e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); 4af02: 1400 moveb %d0,%d2 <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4af04: 4eb9 0004 95c0 jsr 495c0 <_API_Mutex_Unlock> <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 4af0a: 1002 moveb %d2,%d0 <== NOT EXECUTED * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); 4af0c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 4af12: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4af18: 4e5e unlk %fp <== NOT EXECUTED 4af1a: 4e75 rts 00046470 <_RTEMS_API_Initialize>: */ void _RTEMS_API_Initialize( rtems_configuration_table *configuration_table ) { 46470: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46474: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 46478: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_api_configuration_table *api_configuration; api_configuration = configuration_table->RTEMS_api_configuration; 4647a: 2468 003e moveal %a0@(62),%a2 <== NOT EXECUTED _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects; 4647e: 203c 0005 890a movel #362762,%d0 <== NOT EXECUTED 46484: 23c0 0005 8714 movel %d0,58714 <_Objects_Information_table+0x8> <== NOT EXECUTED _Attributes_Handler_initialization(); _Interrupt_Manager_initialization(); 4648a: 4eb9 0004 ad8c jsr 4ad8c <_Interrupt_Manager_initialization> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) _Multiprocessing_Manager_initialization(); #endif _RTEMS_tasks_Manager_initialization( api_configuration->maximum_tasks ); 46490: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 46492: 4eb9 0004 af36 jsr 4af36 <_RTEMS_tasks_Manager_initialization> <== NOT EXECUTED _Timer_Manager_initialization( api_configuration->maximum_timers ); 46498: 2f2a 0006 movel %a2@(6),%sp@- <== NOT EXECUTED 4649c: 4eb9 0004 ae54 jsr 4ae54 <_Timer_Manager_initialization> <== NOT EXECUTED _Signal_Manager_initialization(); 464a2: 4eb9 0004 aec0 jsr 4aec0 <_Signal_Manager_initialization> <== NOT EXECUTED _Event_Manager_initialization(); 464a8: 4eb9 0004 ad7c jsr 4ad7c <_Event_Manager_initialization> <== NOT EXECUTED _Message_queue_Manager_initialization( 464ae: 2f2a 000e movel %a2@(14),%sp@- <== NOT EXECUTED 464b2: 4eb9 0004 ad94 jsr 4ad94 <_Message_queue_Manager_initialization> <== NOT EXECUTED api_configuration->maximum_message_queues ); _Semaphore_Manager_initialization( api_configuration->maximum_semaphores ); 464b8: 2f2a 000a movel %a2@(10),%sp@- <== NOT EXECUTED 464bc: 4eb9 0004 ae90 jsr 4ae90 <_Semaphore_Manager_initialization> <== NOT EXECUTED _Partition_Manager_initialization( api_configuration->maximum_partitions ); 464c2: 2f2a 0012 movel %a2@(18),%sp@- <== NOT EXECUTED 464c6: 4eb9 0004 adc4 jsr 4adc4 <_Partition_Manager_initialization> <== NOT EXECUTED _Region_Manager_initialization( api_configuration->maximum_regions ); 464cc: 2f2a 0016 movel %a2@(22),%sp@- <== NOT EXECUTED 464d0: 4eb9 0004 ae24 jsr 4ae24 <_Region_Manager_initialization> <== NOT EXECUTED _Dual_ported_memory_Manager_initialization( api_configuration->maximum_ports); 464d6: 2f2a 001a movel %a2@(26),%sp@- <== NOT EXECUTED 464da: 4eb9 0004 ad4c jsr 4ad4c <_Dual_ported_memory_Manager_initialization> <== NOT EXECUTED _Rate_monotonic_Manager_initialization( api_configuration->maximum_periods ); 464e0: 2f2a 001e movel %a2@(30),%sp@- <== NOT EXECUTED 464e4: 4eb9 0004 adf4 jsr 4adf4 <_Rate_monotonic_Manager_initialization> <== NOT EXECUTED _Barrier_Manager_initialization( api_configuration->maximum_barriers ); 464ea: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 464f0: 2d6a 0022 0008 movel %a2@(34),%fp@(8) <== NOT EXECUTED } 464f6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 464fa: 4e5e unlk %fp <== NOT EXECUTED _Dual_ported_memory_Manager_initialization( api_configuration->maximum_ports); _Rate_monotonic_Manager_initialization( api_configuration->maximum_periods ); _Barrier_Manager_initialization( api_configuration->maximum_barriers ); 464fc: 4ef9 0004 ad1c jmp 4ad1c <_Barrier_Manager_initialization> <== NOT EXECUTED ... 0004b0e8 <_RTEMS_Tasks_Invoke_task_variable_dtor>: void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { 4b0e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b0ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b0ee: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { 4b0f2: 2039 0005 8812 movel 58812 <_Thread_Executing>,%d0 <== NOT EXECUTED ) { void (*dtor)(void *); void *value; dtor = tvp->dtor; 4b0f8: 226a 0010 moveal %a2@(16),%a1 <== NOT EXECUTED if (_Thread_Is_executing(the_thread)) { 4b0fc: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED 4b100: 671e beqs 4b120 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x38> <== NOT EXECUTED value = *tvp->ptr; *tvp->ptr = tvp->gval; } else { value = tvp->tval; 4b102: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED } if ( dtor ) 4b106: 4a89 tstl %a1 <== NOT EXECUTED 4b108: 6706 beqs 4b110 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x28> <== NOT EXECUTED (*dtor)(value); 4b10a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b10c: 4e91 jsr %a1@ <== NOT EXECUTED 4b10e: 588f addql #4,%sp <== NOT EXECUTED _Workspace_Free(tvp); 4b110: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4b114: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4b118: 4e5e unlk %fp <== NOT EXECUTED } if ( dtor ) (*dtor)(value); _Workspace_Free(tvp); 4b11a: 4ef9 0004 9140 jmp 49140 <_Workspace_Free> <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; 4b120: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 4b124: 2010 movel %a0@,%d0 <== NOT EXECUTED *tvp->ptr = tvp->gval; 4b126: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED 4b12a: 60da bras 4b106 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x1e> <== NOT EXECUTED 0004b046 <_RTEMS_tasks_Create_extension>: /* * 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() ) 4b046: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { 4b04c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b050: 2f0b movel %a3,%sp@- <== NOT EXECUTED /* * 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() ) 4b052: 2268 003e moveal %a0@(62),%a1 <== NOT EXECUTED bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { 4b056: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 4b05a: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * 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() ) 4b05c: 4a29 0004 tstb %a1@(4) <== NOT EXECUTED 4b060: 6664 bnes 4b0c6 <_RTEMS_tasks_Create_extension+0x80> <== NOT EXECUTED 4b062: 701e moveq #30,%d0 <== NOT EXECUTED to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b064: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b066: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED if ( !api ) 4b06c: 588f addql #4,%sp <== NOT EXECUTED */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b06e: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !api ) 4b070: 4a80 tstl %d0 <== NOT EXECUTED 4b072: 6764 beqs 4b0d8 <_RTEMS_tasks_Create_extension+0x92> <== NOT EXECUTED api->pending_events = EVENT_SETS_NONE_PENDING; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { 4b074: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 4b07a: 2268 003e moveal %a0@(62),%a1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = true; 4b07e: 7001 moveq #1,%d0 <== NOT EXECUTED created->API_Extensions[ THREAD_API_RTEMS ] = api; api->pending_events = EVENT_SETS_NONE_PENDING; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; 4b080: 42ab 011c clrl %a3@(284) <== NOT EXECUTED 4b084: 1540 0008 moveb %d0,%a2@(8) <== NOT EXECUTED api = _Workspace_Allocate( to_allocate ); if ( !api ) return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; 4b088: 274a 010c movel %a2,%a3@(268) <== NOT EXECUTED api->pending_events = EVENT_SETS_NONE_PENDING; 4b08c: 4292 clrl %a2@ <== NOT EXECUTED information->handler = NULL; 4b08e: 42aa 000a clrl %a2@(10) <== NOT EXECUTED information->mode_set = RTEMS_DEFAULT_MODES; 4b092: 42aa 000e clrl %a2@(14) <== NOT EXECUTED information->signals_posted = 0; 4b096: 42aa 0012 clrl %a2@(18) <== NOT EXECUTED information->signals_pending = 0; 4b09a: 42aa 0016 clrl %a2@(22) <== NOT EXECUTED information->nest_level = 0; 4b09e: 42aa 001a clrl %a2@(26) <== NOT EXECUTED _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { 4b0a2: 4a29 0004 tstb %a1@(4) <== NOT EXECUTED 4b0a6: 6710 beqs 4b0b8 <_RTEMS_tasks_Create_extension+0x72> <== NOT EXECUTED 4b0a8: 41ea 001e lea %a2@(30),%a0 <== NOT EXECUTED 4b0ac: 4280 clrl %d0 <== NOT EXECUTED for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; 4b0ae: 4298 clrl %a0@+ <== NOT EXECUTED api->pending_events = EVENT_SETS_NONE_PENDING; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) 4b0b0: 5280 addql #1,%d0 <== NOT EXECUTED 4b0b2: 7210 moveq #16,%d1 <== NOT EXECUTED 4b0b4: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b0b6: 66f6 bnes 4b0ae <_RTEMS_tasks_Create_extension+0x68> <== NOT EXECUTED api->Notepads[i] = 0; } return true; } 4b0b8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b0bc: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4b0c0: 4e5e unlk %fp <== NOT EXECUTED api->pending_events = EVENT_SETS_NONE_PENDING; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) 4b0c2: 7001 moveq #1,%d0 <== NOT EXECUTED api->Notepads[i] = 0; } return true; } 4b0c4: 4e75 rts <== NOT EXECUTED /* * 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() ) 4b0c6: 705e moveq #94,%d0 <== NOT EXECUTED to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b0c8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b0ca: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED if ( !api ) 4b0d0: 588f addql #4,%sp <== NOT EXECUTED */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b0d2: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !api ) 4b0d4: 4a80 tstl %d0 <== NOT EXECUTED 4b0d6: 669c bnes 4b074 <_RTEMS_tasks_Create_extension+0x2e> <== NOT EXECUTED for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; } return true; } 4b0d8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b0dc: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4b0e0: 4e5e unlk %fp <== NOT EXECUTED if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); if ( !api ) 4b0e2: 4200 clrb %d0 <== NOT EXECUTED for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; } return true; } 4b0e4: 4e75 rts <== NOT EXECUTED ... 0004affe <_RTEMS_tasks_Delete_extension>: User_extensions_routine _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { 4affe: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4b002: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 4b006: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED /* * Free per task variable memory */ tvp = deleted->task_variables; 4b00a: 206a 011c moveal %a2@(284),%a0 <== NOT EXECUTED deleted->task_variables = NULL; 4b00e: 42aa 011c clrl %a2@(284) <== NOT EXECUTED while (tvp) { 4b012: 4a88 tstl %a0 <== NOT EXECUTED 4b014: 6716 beqs 4b02c <_RTEMS_tasks_Delete_extension+0x2e> <== NOT EXECUTED 4b016: 47f9 0004 b0e8 lea 4b0e8 <_RTEMS_Tasks_Invoke_task_variable_dtor>,%a3 <== NOT EXECUTED next = (rtems_task_variable_t *)tvp->next; 4b01c: 2410 movel %a0@,%d2 <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); 4b01e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4b020: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b022: 4e93 jsr %a3@ <== NOT EXECUTED 4b024: 2042 moveal %d2,%a0 <== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { 4b026: 508f addql #8,%sp <== NOT EXECUTED 4b028: 4a82 tstl %d2 <== NOT EXECUTED 4b02a: 66f0 bnes 4b01c <_RTEMS_tasks_Delete_extension+0x1e> <== NOT EXECUTED /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); 4b02c: 2f2a 010c movel %a2@(268),%sp@- <== NOT EXECUTED 4b030: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; 4b036: 42aa 010c clrl %a2@(268) <== NOT EXECUTED 4b03a: 588f addql #4,%sp <== NOT EXECUTED } 4b03c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4b042: 4e5e unlk %fp <== NOT EXECUTED 4b044: 4e75 rts 0004af1e <_RTEMS_tasks_Initialize_user_tasks>: * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { if ( _RTEMS_tasks_Initialize_user_tasks_p ) 4af1e: 2039 0005 6c8e movel 56c8e <_RTEMS_tasks_Initialize_user_tasks_p>,%d0 <== NOT EXECUTED * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { 4af24: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( _RTEMS_tasks_Initialize_user_tasks_p ) 4af28: 4a80 tstl %d0 <== NOT EXECUTED 4af2a: 6706 beqs 4af32 <_RTEMS_tasks_Initialize_user_tasks+0x14> <== NOT EXECUTED (*_RTEMS_tasks_Initialize_user_tasks_p)(); } 4af2c: 4e5e unlk %fp <== NOT EXECUTED */ void _RTEMS_tasks_Initialize_user_tasks( void ) { if ( _RTEMS_tasks_Initialize_user_tasks_p ) (*_RTEMS_tasks_Initialize_user_tasks_p)(); 4af2e: 2240 moveal %d0,%a1 <== NOT EXECUTED 4af30: 4ed1 jmp %a1@ <== NOT EXECUTED } 4af32: 4e5e unlk %fp <== NOT EXECUTED 4af34: 4e75 rts 00046010 <_RTEMS_tasks_Initialize_user_tasks_body>: rtems_status_code return_value; rtems_initialization_tasks_table *user_tasks; rtems_api_configuration_table *api_configuration; api_configuration = _Configuration_Table->RTEMS_api_configuration; 46010: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 46016: 2268 003e moveal %a0@(62),%a1 <== NOT EXECUTED * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 4601a: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4601e: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED /* * NOTE: This is slightly different from the Ada implementation. */ user_tasks = api_configuration->User_initialization_tasks_table; maximum = api_configuration->number_of_initialization_tasks; 46022: 2629 0026 movel %a1@(38),%d3 <== NOT EXECUTED /* * NOTE: This is slightly different from the Ada implementation. */ user_tasks = api_configuration->User_initialization_tasks_table; 46026: 2029 002a movel %a1@(42),%d0 <== NOT EXECUTED maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) 4602a: 675c beqs 46088 <_RTEMS_tasks_Initialize_user_tasks_body+0x78> <== NOT EXECUTED 4602c: 4a83 tstl %d3 <== NOT EXECUTED 4602e: 6758 beqs 46088 <_RTEMS_tasks_Initialize_user_tasks_body+0x78> <== NOT EXECUTED 46030: 280e movel %fp,%d4 <== NOT EXECUTED 46032: 2440 moveal %d0,%a2 <== NOT EXECUTED 46034: 4282 clrl %d2 <== NOT EXECUTED 46036: 5984 subql #4,%d4 <== NOT EXECUTED 46038: 49f9 0004 5dd0 lea 45dd0 ,%a4 <== NOT EXECUTED ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); return_value = rtems_task_start( 4603e: 47f9 0004 60a4 lea 460a4 ,%a3 <== NOT EXECUTED if ( !user_tasks || maximum == 0 ) return; for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 46044: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46046: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED 4604a: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 4604e: 2f2a 0004 movel %a2@(4),%sp@- <== NOT EXECUTED 46052: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 46056: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 46058: 4e94 jsr %a4@ <== NOT EXECUTED user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 4605a: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 46060: 4a80 tstl %d0 <== NOT EXECUTED 46062: 662e bnes 46092 <_RTEMS_tasks_Initialize_user_tasks_body+0x82> <== NOT EXECUTED _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); return_value = rtems_task_start( 46064: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 46068: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 4606c: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 46070: 4e93 jsr %a3@ <== NOT EXECUTED id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 46072: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46078: 4a80 tstl %d0 <== NOT EXECUTED 4607a: 6616 bnes 46092 <_RTEMS_tasks_Initialize_user_tasks_body+0x82> <== NOT EXECUTED maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) return; for ( index=0 ; index < maximum ; index++ ) { 4607c: 5282 addql #1,%d2 <== NOT EXECUTED 4607e: d5fc 0000 001c addal #28,%a2 <== NOT EXECUTED 46084: b483 cmpl %d3,%d2 <== NOT EXECUTED 46086: 65bc bcss 46044 <_RTEMS_tasks_Initialize_user_tasks_body+0x34> <== NOT EXECUTED ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); } } 46088: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4608e: 4e5e unlk %fp <== NOT EXECUTED 46090: 4e75 rts <== NOT EXECUTED 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 ); 46092: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46094: 4878 0001 pea 1 <== NOT EXECUTED 46098: 4878 0001 pea 1 <== NOT EXECUTED 4609c: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED ... 0004af36 <_RTEMS_tasks_Manager_initialization>: */ void _RTEMS_tasks_Manager_initialization( uint32_t maximum_tasks ) { 4af36: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4af3a: 4878 0004 pea 4 <== NOT EXECUTED 4af3e: 42a7 clrl %sp@- <== NOT EXECUTED 4af40: 4878 0120 pea 120 <== NOT EXECUTED 4af44: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4af48: 4878 0001 pea 1 <== NOT EXECUTED 4af4c: 4878 0002 pea 2 <== NOT EXECUTED 4af50: 4879 0005 86c4 pea 586c4 <_RTEMS_tasks_Information> <== NOT EXECUTED 4af56: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED /* * Add all the extensions for this API */ _User_extensions_Add_API_set( &_RTEMS_tasks_User_extensions ); 4af5c: 4879 0005 70cc pea 570cc <_RTEMS_tasks_User_extensions> <== NOT EXECUTED 4af62: 4eb9 0004 bb34 jsr 4bb34 <_User_extensions_Add_API_set> <== NOT EXECUTED _API_extensions_Add( &_RTEMS_tasks_API_extensions ); 4af68: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 4af6e: 203c 0005 70b8 movel #356536,%d0 <== NOT EXECUTED 4af74: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED MP_PACKET_TASKS, _RTEMS_tasks_MP_Process_packet ); #endif } 4af78: 4e5e unlk %fp <== NOT EXECUTED * Add all the extensions for this API */ _User_extensions_Add_API_set( &_RTEMS_tasks_User_extensions ); _API_extensions_Add( &_RTEMS_tasks_API_extensions ); 4af7a: 4ef9 0004 65bc jmp 465bc <_API_extensions_Add> <== NOT EXECUTED 0004af80 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 4af80: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 4af84: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4af88: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 4af8c: 2668 010c moveal %a0@(268),%a3 <== NOT EXECUTED if ( !api ) 4af90: 4a8b tstl %a3 <== NOT EXECUTED 4af92: 671a beqs 4afae <_RTEMS_tasks_Post_switch_extension+0x2e> <== NOT EXECUTED * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 4af94: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 4af9a: 40c0 movew %sr,%d0 <== NOT EXECUTED 4af9c: 8280 orl %d0,%d1 <== NOT EXECUTED 4af9e: 46c1 movew %d1,%sr <== NOT EXECUTED signal_set = asr->signals_posted; 4afa0: 262b 0012 movel %a3@(18),%d3 <== NOT EXECUTED asr->signals_posted = 0; 4afa4: 42ab 0012 clrl %a3@(18) <== NOT EXECUTED _ISR_Enable( level ); 4afa8: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 4afaa: 4a83 tstl %d3 <== NOT EXECUTED 4afac: 660a bnes 4afb8 <_RTEMS_tasks_Post_switch_extension+0x38> <== NOT EXECUTED (*asr->handler)( signal_set ); asr->nest_level -= 1; rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); } 4afae: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4afb4: 4e5e unlk %fp <== NOT EXECUTED 4afb6: 4e75 rts <== NOT EXECUTED if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 4afb8: 52ab 001a addql #1,%a3@(26) <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 4afbc: 240e movel %fp,%d2 <== NOT EXECUTED 4afbe: 5982 subql #4,%d2 <== NOT EXECUTED 4afc0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4afc2: 45f9 0004 c094 lea 4c094 ,%a2 <== NOT EXECUTED 4afc8: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED 4afce: 2f2b 000e movel %a3@(14),%sp@- <== NOT EXECUTED 4afd2: 4e92 jsr %a2@ <== NOT EXECUTED (*asr->handler)( signal_set ); 4afd4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4afd6: 206b 000a moveal %a3@(10),%a0 <== NOT EXECUTED 4afda: 4e90 jsr %a0@ <== NOT EXECUTED asr->nest_level -= 1; 4afdc: 53ab 001a subql #1,%a3@(26) <== NOT EXECUTED rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 4afe0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4afe2: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED 4afe8: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 4afec: 4e92 jsr %a2@ <== NOT EXECUTED 4afee: dffc 0000 001c addal #28,%sp <== NOT EXECUTED } 4aff4: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4affa: 4e5e unlk %fp <== NOT EXECUTED 4affc: 4e75 rts 0004aec8 <_RTEMS_tasks_Start_extension>: User_extensions_routine _RTEMS_tasks_Start_extension( Thread_Control *executing, Thread_Control *started ) { 4aec8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4aecc: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED RTEMS_API_Control *api; api = started->API_Extensions[ THREAD_API_RTEMS ]; api->pending_events = EVENT_SETS_NONE_PENDING; 4aed0: 2268 010c moveal %a0@(268),%a1 <== NOT EXECUTED } 4aed4: 4e5e unlk %fp <== NOT EXECUTED { RTEMS_API_Control *api; api = started->API_Extensions[ THREAD_API_RTEMS ]; api->pending_events = EVENT_SETS_NONE_PENDING; 4aed6: 4291 clrl %a1@ <== NOT EXECUTED } 4aed8: 4e75 rts 0004aeda <_RTEMS_tasks_Switch_extension>: void _RTEMS_tasks_Switch_extension( Thread_Control *executing, Thread_Control *heir ) { 4aeda: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4aede: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED /* * Per Task Variables */ tvp = executing->task_variables; 4aee2: 2268 011c moveal %a0@(284),%a1 <== NOT EXECUTED while (tvp) { 4aee6: 4a89 tstl %a1 <== NOT EXECUTED 4aee8: 6712 beqs 4aefc <_RTEMS_tasks_Switch_extension+0x22> <== NOT EXECUTED tvp->tval = *tvp->ptr; 4aeea: 2069 0004 moveal %a1@(4),%a0 <== NOT EXECUTED 4aeee: 2350 000c movel %a0@,%a1@(12) <== NOT EXECUTED *tvp->ptr = tvp->gval; 4aef2: 20a9 0008 movel %a1@(8),%a0@ <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; 4aef6: 2251 moveal %a1@,%a1 <== NOT EXECUTED /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { 4aef8: 4a89 tstl %a1 <== NOT EXECUTED 4aefa: 66ee bnes 4aeea <_RTEMS_tasks_Switch_extension+0x10> <== NOT EXECUTED tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; 4aefc: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4af00: 2268 011c moveal %a0@(284),%a1 <== NOT EXECUTED while (tvp) { 4af04: 4a89 tstl %a1 <== NOT EXECUTED 4af06: 6712 beqs 4af1a <_RTEMS_tasks_Switch_extension+0x40> <== NOT EXECUTED tvp->gval = *tvp->ptr; 4af08: 2069 0004 moveal %a1@(4),%a0 <== NOT EXECUTED 4af0c: 2350 0008 movel %a0@,%a1@(8) <== NOT EXECUTED *tvp->ptr = tvp->tval; 4af10: 20a9 000c movel %a1@(12),%a0@ <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; 4af14: 2251 moveal %a1@,%a1 <== NOT EXECUTED *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { 4af16: 4a89 tstl %a1 <== NOT EXECUTED 4af18: 66ee bnes 4af08 <_RTEMS_tasks_Switch_extension+0x2e> <== NOT EXECUTED tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } } 4af1a: 4e5e unlk %fp <== NOT EXECUTED 4af1c: 4e75 rts 000469ac <_Rate_monotonic_Initiate_statistics>: #endif void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { 469ac: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 469b0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 469b4: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED Thread_Control *owning_thread = the_period->owner; 469b8: 246b 0050 moveal %a3@(80),%a2 <== NOT EXECUTED #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 469bc: 260e movel %fp,%d3 <== NOT EXECUTED 469be: 5183 subql #8,%d3 <== NOT EXECUTED 469c0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 469c2: 4eb9 0004 8518 jsr 48518 <_TOD_Get_uptime> <== NOT EXECUTED /* * Set the starting point and the CPU time used for the statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS the_period->time_at_period = uptime; 469c8: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 469cc: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 469d0: 2740 0044 movel %d0,%a3@(68) <== NOT EXECUTED 469d4: 2741 0048 movel %d1,%a3@(72) <== NOT EXECUTED #else the_period->time_at_period = _Watchdog_Ticks_since_boot; #endif the_period->owner_executed_at_period = owning_thread->cpu_time_used; 469d8: 202a 0084 movel %a2@(132),%d0 <== NOT EXECUTED 469dc: 276a 0088 0040 movel %a2@(136),%a3@(64) <== NOT EXECUTED * context switch. When this 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. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS if (owning_thread == _Thread_Executing) { 469e2: 588f addql #4,%sp <== NOT EXECUTED the_period->time_at_period = uptime; #else the_period->time_at_period = _Watchdog_Ticks_since_boot; #endif the_period->owner_executed_at_period = owning_thread->cpu_time_used; 469e4: 2740 003c movel %d0,%a3@(60) <== NOT EXECUTED * context switch. When this 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. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS if (owning_thread == _Thread_Executing) { 469e8: b5f9 0005 b75e cmpal 5b75e <_Thread_Executing>,%a2 <== NOT EXECUTED 469ee: 670a beqs 469fa <_Rate_monotonic_Initiate_statistics+0x4e> <== NOT EXECUTED ); _Timespec_Add_to( &the_period->owner_executed_at_period, &ran ); } #endif } 469f0: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED 469f6: 4e5e unlk %fp <== NOT EXECUTED 469f8: 4e75 rts <== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( 469fa: 240e movel %fp,%d2 <== NOT EXECUTED 469fc: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED 46a02: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46a04: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46a06: 4879 0005 b766 pea 5b766 <_Thread_Time_of_last_context_switch> <== NOT EXECUTED 46a0c: 4eb9 0004 a7fc jsr 4a7fc <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->owner_executed_at_period, &ran ); 46a12: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46a14: 486b 003c pea %a3@(60) <== NOT EXECUTED 46a18: 4eb9 0004 a6b8 jsr 4a6b8 <_Timespec_Add_to> <== NOT EXECUTED 46a1e: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED } #endif } 46a24: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED 46a2a: 4e5e unlk %fp <== NOT EXECUTED 46a2c: 4e75 rts 0004adf4 <_Rate_monotonic_Manager_initialization>: */ void _Rate_monotonic_Manager_initialization( uint32_t maximum_periods ) { 4adf4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4adf8: 4878 0004 pea 4 <== NOT EXECUTED 4adfc: 42a7 clrl %sp@- <== NOT EXECUTED 4adfe: 4878 008c pea 8c <== NOT EXECUTED 4ae02: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ae06: 4878 0008 pea 8 <== NOT EXECUTED 4ae0a: 4878 0002 pea 2 <== NOT EXECUTED 4ae0e: 4879 0005 8ac6 pea 58ac6 <_Rate_monotonic_Information> <== NOT EXECUTED 4ae14: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4ae1a: dffc 0000 001c addal #28,%sp <== NOT EXECUTED , FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 4ae20: 4e5e unlk %fp <== NOT EXECUTED 4ae22: 4e75 rts 00047084 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 47084: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47088: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4708a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4708e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47092: 4879 0005 b598 pea 5b598 <_Rate_monotonic_Information> <== NOT EXECUTED 47098: 4eb9 0004 8f20 jsr 48f20 <_Objects_Get> <== NOT EXECUTED /* * 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 ) { 4709e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 470a4: 2440 moveal %d0,%a2 <== NOT EXECUTED 470a6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 470aa: 662c bnes 470d8 <_Rate_monotonic_Timeout+0x54> <== NOT EXECUTED case OBJECTS_LOCAL: the_thread = the_period->owner; 470ac: 206a 0050 moveal %a2@(80),%a0 <== NOT EXECUTED if ( _States_Is_waiting_for_period( the_thread->current_state ) && 470b0: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 470b4: 0280 0000 4000 andil #16384,%d0 <== NOT EXECUTED 470ba: 6624 bnes 470e0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED _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 ) { 470bc: 7001 moveq #1,%d0 <== NOT EXECUTED 470be: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 470c2: 6768 beqs 4712c <_Rate_monotonic_Timeout+0xa8> <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 470c4: 7004 moveq #4,%d0 <== NOT EXECUTED 470c6: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 470ca: 2039 0005 b6a0 movel 5b6a0 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 470d0: 5380 subql #1,%d0 <== NOT EXECUTED 470d2: 23c0 0005 b6a0 movel %d0,5b6a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 470d8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 470dc: 4e5e unlk %fp <== NOT EXECUTED 470de: 4e75 rts <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_thread = the_period->owner; if ( _States_Is_waiting_for_period( the_thread->current_state ) && 470e0: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED 470e4: b0a8 0020 cmpl %a0@(32),%d0 <== NOT EXECUTED 470e8: 66d2 bnes 470bc <_Rate_monotonic_Timeout+0x38> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 470ea: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 470f0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 470f2: 4eb9 0004 93cc jsr 493cc <_Thread_Clear_state> <== NOT EXECUTED the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); 470f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 470fa: 4eb9 0004 69ac jsr 469ac <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 47100: 256a 004c 001c movel %a2@(76),%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 47106: 486a 0010 pea %a2@(16) <== NOT EXECUTED 4710a: 4879 0005 b77c pea 5b77c <_Watchdog_Ticks_chain> <== NOT EXECUTED 47110: 4eb9 0004 aae4 jsr 4aae4 <_Watchdog_Insert> <== NOT EXECUTED 47116: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4711c: 2039 0005 b6a0 movel 5b6a0 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 47122: 5380 subql #1,%d0 <== NOT EXECUTED 47124: 23c0 0005 b6a0 movel %d0,5b6a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4712a: 60ac bras 470d8 <_Rate_monotonic_Timeout+0x54> <== NOT EXECUTED _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; 4712c: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 47130: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 47134: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47136: 4eb9 0004 69ac jsr 469ac <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 4713c: 256a 004c 001c movel %a2@(76),%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 47142: 486a 0010 pea %a2@(16) <== NOT EXECUTED 47146: 4879 0005 b77c pea 5b77c <_Watchdog_Ticks_chain> <== NOT EXECUTED 4714c: 4eb9 0004 aae4 jsr 4aae4 <_Watchdog_Insert> <== NOT EXECUTED 47152: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 47158: 2039 0005 b6a0 movel 5b6a0 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4715e: 5380 subql #1,%d0 <== NOT EXECUTED 47160: 23c0 0005 b6a0 movel %d0,5b6a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 47166: 6000 ff70 braw 470d8 <_Rate_monotonic_Timeout+0x54> <== NOT EXECUTED ... 00046a2e <_Rate_monotonic_Update_statistics>: void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { 46a2e: 4e56 ffb8 linkw %fp,#-72 <== NOT EXECUTED 46a32: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED 46a36: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED struct timespec uptime; /* * Obtain the current time since boot */ _TOD_Get_uptime( &uptime ); 46a3a: 260e movel %fp,%d3 <== NOT EXECUTED 46a3c: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED 46a42: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46a44: 4eb9 0004 8518 jsr 48518 <_TOD_Get_uptime> <== NOT EXECUTED /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; 46a4a: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 46a4e: 588f addql #4,%sp <== NOT EXECUTED 46a50: 7004 moveq #4,%d0 <== NOT EXECUTED 46a52: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 46a56: 6700 0130 beqw 46b88 <_Rate_monotonic_Update_statistics+0x15a> <== NOT EXECUTED /* * Grab basic information for time statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 46a5a: 2a0e movel %fp,%d5 <== NOT EXECUTED 46a5c: 0685 ffff fff0 addil #-16,%d5 <== NOT EXECUTED 46a62: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46a64: 47f9 0004 a7fc lea 4a7fc <_Timespec_Subtract>,%a3 <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46a6a: 240e movel %fp,%d2 <== NOT EXECUTED /* * Grab basic information for time statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 46a6c: 2f03 movel %d3,%sp@- <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46a6e: 0682 ffff ffe0 addil #-32,%d2 <== NOT EXECUTED /* * Grab basic information for time statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 46a74: 486a 0044 pea %a2@(68) <== NOT EXECUTED 46a78: 4e93 jsr %a3@ <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { rtems_thread_cpu_usage_t ran, used; /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; 46a7a: 2079 0005 b75e moveal 5b75e <_Thread_Executing>,%a0 <== NOT EXECUTED 46a80: 2d68 0088 ffdc movel %a0@(136),%fp@(-36) <== NOT EXECUTED 46a86: 2028 0084 movel %a0@(132),%d0 <== NOT EXECUTED /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46a8a: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46a8c: 280e movel %fp,%d4 <== NOT EXECUTED 46a8e: 0684 ffff ffd8 addil #-40,%d4 <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46a94: 2f03 movel %d3,%sp@- <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46a96: 4bf9 0004 a6b8 lea 4a6b8 <_Timespec_Add_to>,%a5 <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46a9c: 4879 0005 b766 pea 5b766 <_Thread_Time_of_last_context_switch> <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) 46aa2: 260a movel %a2,%d3 <== NOT EXECUTED 46aa4: 0683 0000 003c addil #60,%d3 <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { rtems_thread_cpu_usage_t ran, used; /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; 46aaa: 2d40 ffd8 movel %d0,%fp@(-40) <== NOT EXECUTED /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46aae: 4e93 jsr %a3@ <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46ab0: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) 46ab2: 49f9 0004 a7c8 lea 4a7c8 <_Timespec_Less_than>,%a4 <== NOT EXECUTED /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46ab8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46aba: 4e95 jsr %a5@ <== NOT EXECUTED /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) 46abc: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 46ac2: 2e83 movel %d3,%sp@ <== NOT EXECUTED 46ac4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46ac6: 4e94 jsr %a4@ <== NOT EXECUTED 46ac8: 508f addql #8,%sp <== NOT EXECUTED 46aca: 4a00 tstb %d0 <== NOT EXECUTED 46acc: 670a beqs 46ad8 <_Rate_monotonic_Update_statistics+0xaa> <== NOT EXECUTED stats->min_wall_time = since_last_period; if ( _Timespec_Greater_than( &since_last_period, &stats->max_wall_time ) ) stats->max_wall_time = since_last_period; #endif } 46ace: 4cee 3c3c ffb8 moveml %fp@(-72),%d2-%d5/%a2-%a5 <== NOT EXECUTED 46ad4: 4e5e unlk %fp <== NOT EXECUTED 46ad6: 4e75 rts <== NOT EXECUTED /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) return; /* executed = current cpu usage - value at start of period */ _Timespec_Subtract( 46ad8: 0682 0000 0018 addil #24,%d2 <== NOT EXECUTED 46ade: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46ae0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46ae2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 46ae4: 4e93 jsr %a3@ <== NOT EXECUTED /* * Update CPU time */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Add_to( &stats->total_cpu_time, &executed ); 46ae6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46ae8: 486a 006c pea %a2@(108) <== NOT EXECUTED 46aec: 4e95 jsr %a5@ <== NOT EXECUTED if ( _Timespec_Less_than( &executed, &stats->min_cpu_time ) ) 46aee: 486a 005c pea %a2@(92) <== NOT EXECUTED 46af2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46af4: 4e94 jsr %a4@ <== NOT EXECUTED 46af6: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 46afc: 4a00 tstb %d0 <== NOT EXECUTED 46afe: 6710 beqs 46b10 <_Rate_monotonic_Update_statistics+0xe2> <== NOT EXECUTED stats->min_cpu_time = executed; 46b00: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 46b04: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 46b08: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED 46b0c: 2541 0060 movel %d1,%a2@(96) <== NOT EXECUTED if ( _Timespec_Greater_than( &executed, &stats->max_cpu_time ) ) 46b10: 486a 0064 pea %a2@(100) <== NOT EXECUTED 46b14: 47f9 0004 a794 lea 4a794 <_Timespec_Greater_than>,%a3 <== NOT EXECUTED 46b1a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46b1c: 4e93 jsr %a3@ <== NOT EXECUTED 46b1e: 508f addql #8,%sp <== NOT EXECUTED 46b20: 4a00 tstb %d0 <== NOT EXECUTED 46b22: 6710 beqs 46b34 <_Rate_monotonic_Update_statistics+0x106> <== NOT EXECUTED stats->max_cpu_time = executed; 46b24: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 46b28: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 46b2c: 2540 0064 movel %d0,%a2@(100) <== NOT EXECUTED 46b30: 2541 0068 movel %d1,%a2@(104) <== NOT EXECUTED stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #else _Timespec_Add_to( &stats->total_wall_time, &since_last_period ); 46b34: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46b36: 486a 0084 pea %a2@(132) <== NOT EXECUTED 46b3a: 4e95 jsr %a5@ <== NOT EXECUTED if ( _Timespec_Less_than( &since_last_period, &stats->min_wall_time ) ) 46b3c: 486a 0074 pea %a2@(116) <== NOT EXECUTED 46b40: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46b42: 4e94 jsr %a4@ <== NOT EXECUTED 46b44: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 46b4a: 4a00 tstb %d0 <== NOT EXECUTED 46b4c: 6710 beqs 46b5e <_Rate_monotonic_Update_statistics+0x130> <== NOT EXECUTED stats->min_wall_time = since_last_period; 46b4e: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 46b52: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 46b56: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 46b5a: 2541 0078 movel %d1,%a2@(120) <== NOT EXECUTED if ( _Timespec_Greater_than( &since_last_period, &stats->max_wall_time ) ) 46b5e: 486a 007c pea %a2@(124) <== NOT EXECUTED 46b62: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46b64: 4e93 jsr %a3@ <== NOT EXECUTED 46b66: 508f addql #8,%sp <== NOT EXECUTED 46b68: 4a00 tstb %d0 <== NOT EXECUTED 46b6a: 6700 ff62 beqw 46ace <_Rate_monotonic_Update_statistics+0xa0> <== NOT EXECUTED stats->max_wall_time = since_last_period; 46b6e: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 46b72: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 46b76: 2540 007c movel %d0,%a2@(124) <== NOT EXECUTED 46b7a: 2541 0080 movel %d1,%a2@(128) <== NOT EXECUTED #endif } 46b7e: 4cee 3c3c ffb8 moveml %fp@(-72),%d2-%d5/%a2-%a5 <== NOT EXECUTED 46b84: 4e5e unlk %fp <== NOT EXECUTED 46b86: 4e75 rts <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; 46b88: 52aa 0058 addql #1,%a2@(88) <== NOT EXECUTED /* * Grab basic information for time statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 46b8c: 2a0e movel %fp,%d5 <== NOT EXECUTED 46b8e: 0685 ffff fff0 addil #-16,%d5 <== NOT EXECUTED 46b94: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46b96: 47f9 0004 a7fc lea 4a7fc <_Timespec_Subtract>,%a3 <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46b9c: 240e movel %fp,%d2 <== NOT EXECUTED /* * Grab basic information for time statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 46b9e: 2f03 movel %d3,%sp@- <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46ba0: 0682 ffff ffe0 addil #-32,%d2 <== NOT EXECUTED /* * Grab basic information for time statistics. */ #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 46ba6: 486a 0044 pea %a2@(68) <== NOT EXECUTED 46baa: 4e93 jsr %a3@ <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { rtems_thread_cpu_usage_t ran, used; /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; 46bac: 2079 0005 b75e moveal 5b75e <_Thread_Executing>,%a0 <== NOT EXECUTED 46bb2: 2d68 0088 ffdc movel %a0@(136),%fp@(-36) <== NOT EXECUTED 46bb8: 2028 0084 movel %a0@(132),%d0 <== NOT EXECUTED /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46bbc: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46bbe: 280e movel %fp,%d4 <== NOT EXECUTED 46bc0: 0684 ffff ffd8 addil #-40,%d4 <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46bc6: 2f03 movel %d3,%sp@- <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46bc8: 4bf9 0004 a6b8 lea 4a6b8 <_Timespec_Add_to>,%a5 <== NOT EXECUTED /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46bce: 4879 0005 b766 pea 5b766 <_Thread_Time_of_last_context_switch> <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) 46bd4: 260a movel %a2,%d3 <== NOT EXECUTED 46bd6: 0683 0000 003c addil #60,%d3 <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { rtems_thread_cpu_usage_t ran, used; /* Grab CPU usage when the thread got switched in */ used = _Thread_Executing->cpu_time_used; 46bdc: 2d40 ffd8 movel %d0,%fp@(-40) <== NOT EXECUTED /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 46be0: 4e93 jsr %a3@ <== NOT EXECUTED /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46be2: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) 46be4: 49f9 0004 a7c8 lea 4a7c8 <_Timespec_Less_than>,%a4 <== NOT EXECUTED /* How much time time since last context switch */ _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); /* executed += ran */ _Timespec_Add_to( &used, &ran ); 46bea: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46bec: 4e95 jsr %a5@ <== NOT EXECUTED /* partial period, cpu usage info reset while executing. Throw away */ if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period)) 46bee: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 46bf4: 2e83 movel %d3,%sp@ <== NOT EXECUTED 46bf6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46bf8: 4e94 jsr %a4@ <== NOT EXECUTED 46bfa: 508f addql #8,%sp <== NOT EXECUTED 46bfc: 4a00 tstb %d0 <== NOT EXECUTED 46bfe: 6600 fece bnew 46ace <_Rate_monotonic_Update_statistics+0xa0> <== NOT EXECUTED 46c02: 6000 fed4 braw 46ad8 <_Rate_monotonic_Update_statistics+0xaa> <== NOT EXECUTED 0004ae24 <_Region_Manager_initialization>: */ void _Region_Manager_initialization( uint32_t maximum_regions ) { 4ae24: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4ae28: 4878 0004 pea 4 <== NOT EXECUTED 4ae2c: 42a7 clrl %sp@- <== NOT EXECUTED 4ae2e: 4878 00c0 pea c0 <== NOT EXECUTED 4ae32: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ae36: 4878 0006 pea 6 <== NOT EXECUTED 4ae3a: 4878 0002 pea 2 <== NOT EXECUTED 4ae3e: 4879 0005 8b02 pea 58b02 <_Region_Information> <== NOT EXECUTED 4ae44: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4ae4a: dffc 0000 001c addal #28,%sp <== NOT EXECUTED MP_PACKET_REGION, 0 /* XXX _Region_MP_Process_packet */ ); #endif } 4ae50: 4e5e unlk %fp <== NOT EXECUTED 4ae52: 4e75 rts 000597a4 <_Region_Process_queue>: 597a4: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED */ void _Region_Process_queue( Region_Control *the_region ) { 597aa: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 597ae: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 597b2: 5280 addql #1,%d0 <== NOT EXECUTED 597b4: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 597ba: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED * 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(); 597be: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED /* * 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 ); 597c4: 240b movel %a3,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uint32_t size ) { return _Heap_Allocate( &the_region->Memory, size ); 597c6: 260b movel %a3,%d3 <== NOT EXECUTED 597c8: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED 597ce: 49f9 0005 a0b4 lea 5a0b4 <_Thread_queue_First>,%a4 <== NOT EXECUTED 597d4: 0683 0000 0068 addil #104,%d3 <== NOT EXECUTED 597da: 4bf9 0005 4bf4 lea 54bf4 <_Heap_Allocate>,%a5 <== NOT EXECUTED * 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(); 597e0: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 597e6: 588f addql #4,%sp <== NOT EXECUTED /* * 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 ); 597e8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 597ea: 4e94 jsr %a4@ <== NOT EXECUTED 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 ); 597ec: 283c 0005 9f8c movel #368524,%d4 <== NOT EXECUTED /* * 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 ); 597f2: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread == NULL ) 597f4: 588f addql #4,%sp <== NOT EXECUTED 597f6: 4a80 tstl %d0 <== NOT EXECUTED 597f8: 6732 beqs 5982c <_Region_Process_queue+0x88> <== NOT EXECUTED 597fa: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED 597fe: 2f03 movel %d3,%sp@- <== NOT EXECUTED 59800: 4e95 jsr %a5@ <== NOT EXECUTED the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) 59802: 508f addql #8,%sp <== NOT EXECUTED 59804: 4a80 tstl %d0 <== NOT EXECUTED 59806: 6724 beqs 5982c <_Region_Process_queue+0x88> <== NOT EXECUTED break; *(void **)the_thread->Wait.return_argument = the_segment; 59808: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED the_region->number_of_used_blocks += 1; 5980c: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; 59810: 2080 movel %d0,%a0@ <== NOT EXECUTED the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 59812: 2044 moveal %d4,%a0 <== NOT EXECUTED 59814: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59816: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59818: 4e90 jsr %a0@ <== NOT EXECUTED the_thread->Wait.return_code = RTEMS_SUCCESSFUL; 5981a: 508f addql #8,%sp <== NOT EXECUTED 5981c: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED /* * 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 ); 59820: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59822: 4e94 jsr %a4@ <== NOT EXECUTED if ( the_thread == NULL ) 59824: 588f addql #4,%sp <== NOT EXECUTED /* * 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 ); 59826: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread == NULL ) 59828: 4a80 tstl %d0 <== NOT EXECUTED 5982a: 66ce bnes 597fa <_Region_Process_queue+0x56> <== NOT EXECUTED 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(); } 5982c: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 59832: 4e5e unlk %fp <== NOT EXECUTED *(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(); 59834: 4ef9 0005 62a4 jmp 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ... 0004ae90 <_Semaphore_Manager_initialization>: */ void _Semaphore_Manager_initialization( uint32_t maximum_semaphores ) { 4ae90: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4ae94: 4878 0004 pea 4 <== NOT EXECUTED 4ae98: 42a7 clrl %sp@- <== NOT EXECUTED 4ae9a: 4878 0076 pea 76 <== NOT EXECUTED 4ae9e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4aea2: 4878 0003 pea 3 <== NOT EXECUTED 4aea6: 4878 0002 pea 2 <== NOT EXECUTED 4aeaa: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 4aeb0: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED 4aeb6: dffc 0000 001c addal #28,%sp <== NOT EXECUTED MP_PACKET_SEMAPHORE, _Semaphore_MP_Process_packet ); #endif } 4aebc: 4e5e unlk %fp <== NOT EXECUTED 4aebe: 4e75 rts 00045da4 <_Semaphore_Translate_core_mutex_return_code>: }; rtems_status_code _Semaphore_Translate_core_mutex_return_code ( uint32_t status ) { 45da4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status > CORE_MUTEX_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_mutex_return_code_[status]; } 45da8: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED }; rtems_status_code _Semaphore_Translate_core_mutex_return_code ( uint32_t status ) { 45dac: 41f9 0005 5bda lea 55bda <_Semaphore_Translate_core_mutex_return_code_>,%a0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status > CORE_MUTEX_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_mutex_return_code_[status]; } 45db2: 2030 1c00 movel %a0@(00000000,%d1:l:4),%d0 <== NOT EXECUTED 45db6: 4e5e unlk %fp <== NOT EXECUTED 45db8: 4e75 rts 00045dba <_Semaphore_Translate_core_semaphore_return_code>: }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( uint32_t status ) { 45dba: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status > CORE_SEMAPHORE_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_semaphore_return_code_[status]; } 45dbe: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( uint32_t status ) { 45dc2: 41f9 0005 5bf6 lea 55bf6 <_Semaphore_Translate_core_semaphore_return_code_>,%a0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status > CORE_SEMAPHORE_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_semaphore_return_code_[status]; } 45dc8: 2030 1c00 movel %a0@(00000000,%d1:l:4),%d0 <== NOT EXECUTED 45dcc: 4e5e unlk %fp <== NOT EXECUTED 45dce: 4e75 rts 0004aec0 <_Signal_Manager_initialization>: * * Output parameters: NONE */ void _Signal_Manager_initialization( void ) { 4aec0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _MPCI_Register_packet_processor( MP_PACKET_SIGNAL, _Signal_MP_Process_packet ); #endif } 4aec4: 4e5e unlk %fp <== NOT EXECUTED 4aec6: 4e75 rts 00046b34 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { 46b34: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 46b38: 2f0a movel %a2,%sp@- <== NOT EXECUTED offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); 46b3a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ void _TOD_Get( struct timespec *time ) { 46b40: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46b42: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 46b46: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED offset.tv_nsec = 0; 46b4a: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); 46b4e: 40c2 movew %sr,%d2 <== NOT EXECUTED 46b50: 8082 orl %d2,%d0 <== NOT EXECUTED 46b52: 46c0 movew %d0,%sr <== NOT EXECUTED *time = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) 46b54: 2079 0005 88ea moveal 588ea <_Watchdog_Nanoseconds_since_tick_handler>,%a0 <== NOT EXECUTED offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 46b5a: 2039 0005 87e6 movel 587e6 <_TOD_Now>,%d0 <== NOT EXECUTED 46b60: 2239 0005 87ea movel 587ea <_TOD_Now+0x4>,%d1 <== NOT EXECUTED 46b66: 2480 movel %d0,%a2@ <== NOT EXECUTED 46b68: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED if ( _Watchdog_Nanoseconds_since_tick_handler ) 46b6c: 4a88 tstl %a0 <== NOT EXECUTED 46b6e: 6706 beqs 46b76 <_TOD_Get+0x42> <== NOT EXECUTED offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 46b70: 4e90 jsr %a0@ <== NOT EXECUTED 46b72: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED _ISR_Enable( level ); 46b76: 46c2 movew %d2,%sr <== NOT EXECUTED _Timespec_Add_to( time, &offset ); 46b78: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 46b7c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46b7e: 4eb9 0004 8ba0 jsr 48ba0 <_Timespec_Add_to> <== NOT EXECUTED } 46b84: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 46b88: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED *time = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timespec_Add_to( time, &offset ); 46b8c: 508f addql #8,%sp <== NOT EXECUTED } 46b8e: 4e5e unlk %fp <== NOT EXECUTED 46b90: 4e75 rts <== NOT EXECUTED ... 0004b3a4 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( struct timespec *uptime ) { 4b3a4: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 4b3a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* assume uptime checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); 4b3aa: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ void _TOD_Get_uptime( struct timespec *uptime ) { 4b3b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b3b2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 4b3b6: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED offset.tv_nsec = 0; 4b3ba: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED _ISR_Disable( level ); 4b3be: 40c2 movew %sr,%d2 <== NOT EXECUTED 4b3c0: 8082 orl %d2,%d0 <== NOT EXECUTED 4b3c2: 46c0 movew %d0,%sr <== NOT EXECUTED *uptime = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) 4b3c4: 2079 0005 88ea moveal 588ea <_Watchdog_Nanoseconds_since_tick_handler>,%a0 <== NOT EXECUTED offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 4b3ca: 2039 0005 87d2 movel 587d2 <_TOD_Uptime>,%d0 <== NOT EXECUTED 4b3d0: 2239 0005 87d6 movel 587d6 <_TOD_Uptime+0x4>,%d1 <== NOT EXECUTED 4b3d6: 2480 movel %d0,%a2@ <== NOT EXECUTED 4b3d8: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED if ( _Watchdog_Nanoseconds_since_tick_handler ) 4b3dc: 4a88 tstl %a0 <== NOT EXECUTED 4b3de: 6706 beqs 4b3e6 <_TOD_Get_uptime+0x42> <== NOT EXECUTED offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 4b3e0: 4e90 jsr %a0@ <== NOT EXECUTED 4b3e2: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED _ISR_Enable( level ); 4b3e6: 46c2 movew %d2,%sr <== NOT EXECUTED _Timespec_Add_to( uptime, &offset ); 4b3e8: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4b3ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b3ee: 4eb9 0004 8ba0 jsr 48ba0 <_Timespec_Add_to> <== NOT EXECUTED } 4b3f4: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 4b3f8: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED *uptime = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timespec_Add_to( uptime, &offset ); 4b3fc: 508f addql #8,%sp <== NOT EXECUTED } 4b3fe: 4e5e unlk %fp <== NOT EXECUTED 4b400: 4e75 rts <== NOT EXECUTED ... 00046b94 <_TOD_Handler_initialization>: */ void _TOD_Handler_initialization( uint32_t microseconds_per_tick ) { 46b94: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* Uptime (timespec) */ _TOD_Uptime.tv_sec = 0; _TOD_Uptime.tv_nsec = 0; /* TOD has not been set */ _TOD_Is_set = FALSE; 46b98: 4200 clrb %d0 <== NOT EXECUTED void _TOD_Handler_initialization( uint32_t microseconds_per_tick ) { _TOD_Microseconds_per_tick = microseconds_per_tick; 46b9a: 41ee 0008 lea %fp@(8),%a0 <== NOT EXECUTED /* Uptime (timespec) */ _TOD_Uptime.tv_sec = 0; _TOD_Uptime.tv_nsec = 0; /* TOD has not been set */ _TOD_Is_set = FALSE; 46b9e: 13c0 0005 8768 moveb %d0,58768 <_TOD_Is_set> <== NOT EXECUTED void _TOD_Handler_initialization( uint32_t microseconds_per_tick ) { _TOD_Microseconds_per_tick = microseconds_per_tick; 46ba4: 23d0 0005 88e2 movel %a0@,588e2 <_TOD_Microseconds_per_tick> <== NOT EXECUTED _TOD_Uptime.tv_nsec = 0; /* TOD has not been set */ _TOD_Is_set = FALSE; _TOD_Activate(); } 46baa: 4e5e unlk %fp <== NOT EXECUTED ) { _TOD_Microseconds_per_tick = microseconds_per_tick; /* POSIX format TOD (timespec) */ _TOD_Now.tv_sec = TOD_SECONDS_1970_THROUGH_1988; 46bac: 203c 21da e500 movel #567993600,%d0 <== NOT EXECUTED _TOD_Now.tv_nsec = 0; 46bb2: 42b9 0005 87ea clrl 587ea <_TOD_Now+0x4> <== NOT EXECUTED ) { _TOD_Microseconds_per_tick = microseconds_per_tick; /* POSIX format TOD (timespec) */ _TOD_Now.tv_sec = TOD_SECONDS_1970_THROUGH_1988; 46bb8: 23c0 0005 87e6 movel %d0,587e6 <_TOD_Now> <== NOT EXECUTED _TOD_Now.tv_nsec = 0; /* Uptime (timespec) */ _TOD_Uptime.tv_sec = 0; 46bbe: 42b9 0005 87d2 clrl 587d2 <_TOD_Uptime> <== NOT EXECUTED _TOD_Uptime.tv_nsec = 0; 46bc4: 42b9 0005 87d6 clrl 587d6 <_TOD_Uptime+0x4> <== NOT EXECUTED /* TOD has not been set */ _TOD_Is_set = FALSE; _TOD_Activate(); } 46bca: 4e75 rts 00047f24 <_TOD_Set>: 47f24: 2039 0006 2d7c movel 62d7c <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED */ void _TOD_Set( const struct timespec *time ) { 47f2a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47f2e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47f30: 5280 addql #1,%d0 <== NOT EXECUTED 47f32: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 47f36: 23c0 0006 2d7c movel %d0,62d7c <_Thread_Dispatch_disable_level> <== NOT EXECUTED _Thread_Disable_dispatch(); _TOD_Deactivate(); if ( time->tv_sec < _TOD_Seconds_since_epoch ) 47f3c: 2239 0006 2e0e movel 62e0e <_TOD_Now>,%d1 <== NOT EXECUTED 47f42: 2012 movel %a2@,%d0 <== NOT EXECUTED 47f44: b280 cmpl %d0,%d1 <== NOT EXECUTED 47f46: 6e3c bgts 47f84 <_TOD_Set+0x60> <== NOT EXECUTED Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); 47f48: 9081 subl %d1,%d0 <== NOT EXECUTED 47f4a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47f4c: 42a7 clrl %sp@- <== NOT EXECUTED 47f4e: 4879 0006 2e4c pea 62e4c <_Watchdog_Seconds_chain> <== NOT EXECUTED 47f54: 4eb9 0004 a670 jsr 4a670 <_Watchdog_Adjust> <== NOT EXECUTED else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; 47f5a: 2012 movel %a2@,%d0 <== NOT EXECUTED 47f5c: 588a addql #4,%a2 <== NOT EXECUTED 47f5e: 23d2 0006 2e12 movel %a2@,62e12 <_TOD_Now+0x4> <== NOT EXECUTED _TOD_Is_set = TRUE; _TOD_Activate(); _Thread_Enable_dispatch(); } 47f64: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47f68: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 47f6e: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; _TOD_Is_set = TRUE; 47f70: 7201 moveq #1,%d1 <== NOT EXECUTED 47f72: 13c1 0006 2d90 moveb %d1,62d90 <_TOD_Is_set> <== NOT EXECUTED else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; 47f78: 23c0 0006 2e0e movel %d0,62e0e <_TOD_Now> <== NOT EXECUTED _TOD_Is_set = TRUE; _TOD_Activate(); _Thread_Enable_dispatch(); 47f7e: 4ef9 0004 9194 jmp 49194 <_Thread_Enable_dispatch> <== NOT EXECUTED 47f84: 9280 subl %d0,%d1 <== NOT EXECUTED 47f86: 2f01 movel %d1,%sp@- <== NOT EXECUTED 47f88: 4878 0001 pea 1 <== NOT EXECUTED 47f8c: 4879 0006 2e4c pea 62e4c <_Watchdog_Seconds_chain> <== NOT EXECUTED 47f92: 4eb9 0004 a670 jsr 4a670 <_Watchdog_Adjust> <== NOT EXECUTED else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; 47f98: 2012 movel %a2@,%d0 <== NOT EXECUTED 47f9a: 588a addql #4,%a2 <== NOT EXECUTED 47f9c: 23d2 0006 2e12 movel %a2@,62e12 <_TOD_Now+0x4> <== NOT EXECUTED _TOD_Is_set = TRUE; _TOD_Activate(); _Thread_Enable_dispatch(); } 47fa2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47fa6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 47fac: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; _TOD_Is_set = TRUE; 47fae: 7201 moveq #1,%d1 <== NOT EXECUTED 47fb0: 13c1 0006 2d90 moveb %d1,62d90 <_TOD_Is_set> <== NOT EXECUTED else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; 47fb6: 23c0 0006 2e0e movel %d0,62e0e <_TOD_Now> <== NOT EXECUTED _TOD_Is_set = TRUE; _TOD_Activate(); _Thread_Enable_dispatch(); 47fbc: 4ef9 0004 9194 jmp 49194 <_Thread_Enable_dispatch> <== NOT EXECUTED ... 00046bcc <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 46bcc: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 46bd0: 2f0a movel %a2,%sp@- <== NOT EXECUTED struct timespec tick; uint32_t seconds; /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; 46bd2: 2239 0005 88e2 movel 588e2 <_TOD_Microseconds_per_tick>,%d1 <== NOT EXECUTED * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 46bd8: 2f02 movel %d2,%sp@- <== NOT EXECUTED struct timespec tick; uint32_t seconds; /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; 46bda: 2401 movel %d1,%d2 <== NOT EXECUTED 46bdc: 2001 movel %d1,%d0 <== NOT EXECUTED 46bde: e58a lsll #2,%d2 <== NOT EXECUTED 46be0: ef88 lsll #7,%d0 <== NOT EXECUTED tick.tv_sec = 0; /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 46be2: 2079 0005 889c moveal 5889c <_Watchdog_Ticks_since_boot>,%a0 <== NOT EXECUTED { struct timespec tick; uint32_t seconds; /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; 46be8: 9082 subl %d2,%d0 <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); 46bea: 240e movel %fp,%d2 <== NOT EXECUTED { struct timespec tick; uint32_t seconds; /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; 46bec: d081 addl %d1,%d0 <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); 46bee: 5182 subql #8,%d2 <== NOT EXECUTED 46bf0: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; tick.tv_sec = 0; /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 46bf2: 5288 addql #1,%a0 <== NOT EXECUTED { struct timespec tick; uint32_t seconds; /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; 46bf4: e788 lsll #3,%d0 <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); 46bf6: 45f9 0004 8ba0 lea 48ba0 <_Timespec_Add_to>,%a2 <== NOT EXECUTED /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; tick.tv_sec = 0; /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 46bfc: 23c8 0005 889c movel %a0,5889c <_Watchdog_Ticks_since_boot> <== NOT EXECUTED /* Update the timespec format uptime */ (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); 46c02: 4879 0005 87d2 pea 587d2 <_TOD_Uptime> <== NOT EXECUTED { struct timespec tick; uint32_t seconds; /* Convert the tick quantum to a timespec */ tick.tv_nsec = _TOD_Microseconds_per_tick * 1000; 46c08: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED tick.tv_sec = 0; 46c0c: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); 46c10: 4e92 jsr %a2@ <== NOT EXECUTED /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timespec_Add_to( &_TOD_Now, &tick ); 46c12: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46c14: 4879 0005 87e6 pea 587e6 <_TOD_Now> <== NOT EXECUTED 46c1a: 4e92 jsr %a2@ <== NOT EXECUTED while ( seconds ) { 46c1c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED /* Update the timespec format uptime */ (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timespec_Add_to( &_TOD_Now, &tick ); 46c22: 2400 movel %d0,%d2 <== NOT EXECUTED while ( seconds ) { 46c24: 6714 beqs 46c3a <_TOD_Tickle_ticks+0x6e> <== NOT EXECUTED 46c26: 45f9 0004 90c0 lea 490c0 <_Watchdog_Tickle>,%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); 46c2c: 4879 0005 8824 pea 58824 <_Watchdog_Seconds_chain> <== NOT EXECUTED 46c32: 4e92 jsr %a2@ <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; 46c34: 5382 subql #1,%d2 <== NOT EXECUTED (void) _Timespec_Add_to( &_TOD_Uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timespec_Add_to( &_TOD_Now, &tick ); while ( seconds ) { 46c36: 588f addql #4,%sp <== NOT EXECUTED 46c38: 66f2 bnes 46c2c <_TOD_Tickle_ticks+0x60> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; } } 46c3a: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 46c3e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 46c42: 4e5e unlk %fp <== NOT EXECUTED 46c44: 4e75 rts <== NOT EXECUTED ... 00046404 <_TOD_To_seconds>: */ uint32_t _TOD_To_seconds( rtems_time_of_day *the_tod ) { 46404: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 46408: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED 4640c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; 46410: 2412 movel %a2@,%d2 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; 46412: 226a 0008 moveal %a2@(8),%a1 <== NOT EXECUTED year_mod_4 = the_tod->year & 3; 46416: 7803 moveq #3,%d4 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; 46418: 5389 subql #1,%a1 <== NOT EXECUTED year_mod_4 = the_tod->year & 3; 4641a: c882 andl %d2,%d4 <== NOT EXECUTED if ( year_mod_4 == 0 ) 4641c: 6700 008a beqw 464a8 <_TOD_To_seconds+0xa4> <== NOT EXECUTED time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 46420: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED 46424: 41f9 0005 83be lea 583be <_TOD_Days_to_date>,%a0 <== NOT EXECUTED 4642a: 4281 clrl %d1 <== NOT EXECUTED 4642c: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 46430: 0682 ffff f83c addil #-1988,%d2 <== NOT EXECUTED 46436: e48a lsrl #2,%d2 <== NOT EXECUTED 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 ]; 46438: 2a01 movel %d1,%d5 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 4643a: 2002 movel %d2,%d0 <== NOT EXECUTED 4643c: 2202 movel %d2,%d1 <== NOT EXECUTED 4643e: ed89 lsll #6,%d1 <== NOT EXECUTED 46440: e788 lsll #3,%d0 <== NOT EXECUTED 46442: d081 addl %d1,%d0 <== NOT EXECUTED 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 ]; 46444: da89 addl %a1,%d5 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 46446: 2040 moveal %d0,%a0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46448: 262a 000c movel %a2@(12),%d3 <== NOT EXECUTED 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 ) * 4644c: 43f9 0005 83f2 lea 583f2 <_TOD_Days_since_last_leap_year>,%a1 <== NOT EXECUTED 46452: 4280 clrl %d0 <== NOT EXECUTED 46454: 3031 4a00 movew %a1@(00000000,%d4:l:2),%d0 <== NOT EXECUTED 46458: d1c2 addal %d2,%a0 <== NOT EXECUTED 4645a: 2242 moveal %d2,%a1 <== NOT EXECUTED 4645c: 41f0 8c00 lea %a0@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 46460: 41f1 8c00 lea %a1@(00000000,%a0:l:4),%a0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46464: 2203 movel %d3,%d1 <== NOT EXECUTED 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 ) * 46466: d088 addl %a0,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46468: e58b lsll #2,%d3 <== NOT EXECUTED 4646a: ed89 lsll #6,%d1 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 4646c: d085 addl %d5,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 4646e: 9283 subl %d3,%d1 <== NOT EXECUTED 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; 46470: 2400 movel %d0,%d2 <== NOT EXECUTED 46472: 7609 moveq #9,%d3 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46474: d2aa 0010 addl %a2@(16),%d1 <== NOT EXECUTED 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; 46478: e7aa lsll %d3,%d2 <== NOT EXECUTED 4647a: ef88 lsll #7,%d0 <== NOT EXECUTED 4647c: 9480 subl %d0,%d2 <== NOT EXECUTED 4647e: 2602 movel %d2,%d3 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 46480: 206a 0014 moveal %a2@(20),%a0 <== NOT EXECUTED 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; 46484: e98b lsll #4,%d3 <== NOT EXECUTED 46486: 9682 subl %d2,%d3 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46488: 2801 movel %d1,%d4 <== NOT EXECUTED 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; 4648a: 2003 movel %d3,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 4648c: ed8c lsll #6,%d4 <== NOT EXECUTED 4648e: e589 lsll #2,%d1 <== NOT EXECUTED 46490: 9881 subl %d1,%d4 <== NOT EXECUTED 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) 46492: d1fc 21da e500 addal #567993600,%a0 <== NOT EXECUTED 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; 46498: e988 lsll #4,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 4649a: d1c4 addal %d4,%a0 <== NOT EXECUTED 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; 4649c: 9083 subl %d3,%d0 <== NOT EXECUTED time += the_tod->second; time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 4649e: 4cd7 043c moveml %sp@,%d2-%d5/%a2 <== NOT EXECUTED 464a2: 4e5e unlk %fp <== NOT EXECUTED 464a4: d088 addl %a0,%d0 <== NOT EXECUTED 464a6: 4e75 rts <== NOT EXECUTED 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 ]; 464a8: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 464ac: 41f9 0005 83be lea 583be <_TOD_Days_to_date>,%a0 <== NOT EXECUTED 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 ]; 464b2: 0680 0000 000d addil #13,%d0 <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 464b8: 4281 clrl %d1 <== NOT EXECUTED 464ba: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 464be: 0682 ffff f83c addil #-1988,%d2 <== NOT EXECUTED 464c4: e48a lsrl #2,%d2 <== NOT EXECUTED 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 ]; 464c6: 2a01 movel %d1,%d5 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 464c8: 2002 movel %d2,%d0 <== NOT EXECUTED 464ca: 2202 movel %d2,%d1 <== NOT EXECUTED 464cc: ed89 lsll #6,%d1 <== NOT EXECUTED 464ce: e788 lsll #3,%d0 <== NOT EXECUTED 464d0: d081 addl %d1,%d0 <== NOT EXECUTED 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 ]; 464d2: da89 addl %a1,%d5 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 464d4: 2040 moveal %d0,%a0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 464d6: 262a 000c movel %a2@(12),%d3 <== NOT EXECUTED 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 ) * 464da: 43f9 0005 83f2 lea 583f2 <_TOD_Days_since_last_leap_year>,%a1 <== NOT EXECUTED 464e0: 4280 clrl %d0 <== NOT EXECUTED 464e2: 3031 4a00 movew %a1@(00000000,%d4:l:2),%d0 <== NOT EXECUTED 464e6: d1c2 addal %d2,%a0 <== NOT EXECUTED 464e8: 2242 moveal %d2,%a1 <== NOT EXECUTED 464ea: 41f0 8c00 lea %a0@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 464ee: 41f1 8c00 lea %a1@(00000000,%a0:l:4),%a0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 464f2: 2203 movel %d3,%d1 <== NOT EXECUTED 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 ) * 464f4: d088 addl %a0,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 464f6: e58b lsll #2,%d3 <== NOT EXECUTED 464f8: ed89 lsll #6,%d1 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 464fa: d085 addl %d5,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 464fc: 9283 subl %d3,%d1 <== NOT EXECUTED 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; 464fe: 2400 movel %d0,%d2 <== NOT EXECUTED 46500: 7609 moveq #9,%d3 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46502: d2aa 0010 addl %a2@(16),%d1 <== NOT EXECUTED 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; 46506: e7aa lsll %d3,%d2 <== NOT EXECUTED 46508: ef88 lsll #7,%d0 <== NOT EXECUTED 4650a: 9480 subl %d0,%d2 <== NOT EXECUTED 4650c: 2602 movel %d2,%d3 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 4650e: 206a 0014 moveal %a2@(20),%a0 <== NOT EXECUTED 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; 46512: e98b lsll #4,%d3 <== NOT EXECUTED 46514: 9682 subl %d2,%d3 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46516: 2801 movel %d1,%d4 <== NOT EXECUTED 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; 46518: 2003 movel %d3,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 4651a: ed8c lsll #6,%d4 <== NOT EXECUTED 4651c: e589 lsll #2,%d1 <== NOT EXECUTED 4651e: 9881 subl %d1,%d4 <== NOT EXECUTED 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) 46520: d1fc 21da e500 addal #567993600,%a0 <== NOT EXECUTED 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; 46526: e988 lsll #4,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 46528: d1c4 addal %d4,%a0 <== NOT EXECUTED 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; 4652a: 9083 subl %d3,%d0 <== NOT EXECUTED time += the_tod->second; time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 4652c: 4cd7 043c moveml %sp@,%d2-%d5/%a2 <== NOT EXECUTED 46530: 4e5e unlk %fp <== NOT EXECUTED 46532: d088 addl %a0,%d0 <== NOT EXECUTED 46534: 4e75 rts <== NOT EXECUTED ... 00046538 <_TOD_Validate>: */ bool _TOD_Validate( rtems_time_of_day *the_tod ) { 46538: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4653c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 46540: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t days_in_month; if ((!the_tod) || 46542: 4a88 tstl %a0 <== NOT EXECUTED 46544: 6768 beqs 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 46546: 43f9 0006 2f0a lea 62f0a <_TOD_Microseconds_per_tick>,%a1 <== NOT EXECUTED 4654c: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED 46552: 4c51 0000 remul %a1@,%d0,%d0 <== NOT EXECUTED 46556: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 4655a: 6352 blss 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 4655c: 703b moveq #59,%d0 <== NOT EXECUTED 4655e: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 46562: 654a bcss 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 46564: b0a8 0010 cmpl %a0@(16),%d0 <== NOT EXECUTED 46568: 6544 bcss 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 4656a: 7217 moveq #23,%d1 <== NOT EXECUTED 4656c: b2a8 000c cmpl %a0@(12),%d1 <== NOT EXECUTED 46570: 653c bcss 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 46572: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED 46576: 6736 beqs 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 46578: 740c moveq #12,%d2 <== NOT EXECUTED 4657a: b480 cmpl %d0,%d2 <== NOT EXECUTED 4657c: 6530 bcss 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 4657e: 2210 movel %a0@,%d1 <== NOT EXECUTED 46580: 0c81 0000 07c3 cmpil #1987,%d1 <== NOT EXECUTED 46586: 6326 blss 465ae <_TOD_Validate+0x76> <== NOT EXECUTED 46588: 2268 0008 moveal %a0@(8),%a1 <== NOT EXECUTED 4658c: 4a89 tstl %a1 <== NOT EXECUTED 4658e: 671e beqs 465ae <_TOD_Validate+0x76> <== NOT EXECUTED (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 ) 46590: 143c 0003 moveb #3,%d2 <== NOT EXECUTED 46594: c282 andl %d2,%d1 <== NOT EXECUTED 46596: 661e bnes 465b6 <_TOD_Validate+0x7e> <== NOT EXECUTED days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 46598: 41f9 0005 83fa lea 583fa <_TOD_Days_per_month>,%a0 <== NOT EXECUTED 4659e: 2030 0c34 movel %a0@(00000034,%d0:l:4),%d0 <== NOT EXECUTED else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; 465a2: b3c0 cmpal %d0,%a1 <== NOT EXECUTED 465a4: 53c0 sls %d0 <== NOT EXECUTED 465a6: 4480 negl %d0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } 465a8: 241f movel %sp@+,%d2 <== NOT EXECUTED 465aa: 4e5e unlk %fp <== NOT EXECUTED 465ac: 4e75 rts <== NOT EXECUTED 465ae: 241f movel %sp@+,%d2 <== NOT EXECUTED 465b0: 4e5e unlk %fp <== NOT EXECUTED 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 ]; 465b2: 4200 clrb %d0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } 465b4: 4e75 rts <== NOT EXECUTED 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 ]; 465b6: 41f9 0005 83fa lea 583fa <_TOD_Days_per_month>,%a0 <== NOT EXECUTED 465bc: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 465c0: b3c0 cmpal %d0,%a1 <== NOT EXECUTED 465c2: 53c0 sls %d0 <== NOT EXECUTED 465c4: 4480 negl %d0 <== NOT EXECUTED 465c6: 60e0 bras 465a8 <_TOD_Validate+0x70> <== NOT EXECUTED 00047794 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 47794: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 47798: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED 4779c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 477a0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED */ /* * Save original state */ original_state = the_thread->current_state; 477a4: 262a 0010 movel %a2@(16),%d3 <== NOT EXECUTED /* * 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 ); 477a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 477aa: 1a2e 0013 moveb %fp@(19),%d5 <== NOT EXECUTED /* * 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 ); 477ae: 4eb9 0004 879c jsr 4879c <_Thread_Set_transient> <== NOT EXECUTED /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 477b4: 588f addql #4,%sp <== NOT EXECUTED 477b6: b4aa 0014 cmpl %a2@(20),%d2 <== NOT EXECUTED 477ba: 670c beqs 477c8 <_Thread_Change_priority+0x34> <== NOT EXECUTED _Thread_Set_priority( the_thread, new_priority ); 477bc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 477be: 2f0a movel %a2,%sp@- <== NOT EXECUTED 477c0: 4eb9 0004 8618 jsr 48618 <_Thread_Set_priority> <== NOT EXECUTED 477c6: 508f addql #8,%sp <== NOT EXECUTED _ISR_Disable( level ); 477c8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 477ce: 40c4 movew %sr,%d4 <== NOT EXECUTED 477d0: 8084 orl %d4,%d0 <== NOT EXECUTED 477d2: 46c0 movew %d0,%sr <== NOT EXECUTED /* * 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; 477d4: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED if ( state != STATES_TRANSIENT ) { 477d8: 7204 moveq #4,%d1 <== NOT EXECUTED 477da: b280 cmpl %d0,%d1 <== NOT EXECUTED 477dc: 6738 beqs 47816 <_Thread_Change_priority+0x82> <== NOT EXECUTED /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 477de: 44c3 movew %d3,%ccr <== NOT EXECUTED 477e0: 6708 beqs 477ea <_Thread_Change_priority+0x56> <== NOT EXECUTED the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 477e2: 72fb moveq #-5,%d1 <== NOT EXECUTED 477e4: c280 andl %d0,%d1 <== NOT EXECUTED 477e6: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED _ISR_Enable( level ); 477ea: 46c4 movew %d4,%sr <== NOT EXECUTED if ( _States_Is_waiting_on_thread_queue( state ) ) { 477ec: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED 477f2: 660a bnes 477fe <_Thread_Change_priority+0x6a> <== NOT EXECUTED if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = TRUE; _ISR_Enable( level ); } 477f4: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 477fa: 4e5e unlk %fp <== NOT EXECUTED 477fc: 4e75 rts <== NOT EXECUTED /* 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 ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 477fe: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 47802: 2d6a 0044 0008 movel %a2@(68),%fp@(8) <== NOT EXECUTED if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = TRUE; _ISR_Enable( level ); } 47808: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 4780e: 4e5e unlk %fp <== NOT EXECUTED /* 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 ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 47810: 4ef9 0004 8564 jmp 48564 <_Thread_queue_Requeue> <== NOT EXECUTED } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { 47816: 44c3 movew %d3,%ccr <== NOT EXECUTED 47818: 673c beqs 47856 <_Thread_Change_priority+0xc2> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4781a: 206a 0090 moveal %a2@(144),%a0 <== NOT EXECUTED 4781e: 322a 0096 movew %a2@(150),%d1 <== NOT EXECUTED 47822: 3010 movew %a0@,%d0 <== NOT EXECUTED 47824: 8081 orl %d1,%d0 <== NOT EXECUTED 47826: 3080 movew %d0,%a0@ <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; 47828: 3239 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d1 <== NOT EXECUTED 4782e: 302a 0094 movew %a2@(148),%d0 <== NOT EXECUTED 47832: 8280 orl %d0,%d1 <== NOT EXECUTED 47834: 33c1 0005 8808 movew %d1,58808 <_Priority_Major_bit_map> <== NOT EXECUTED * 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 ); 4783a: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 4783e: 4a05 tstb %d5 <== NOT EXECUTED 47840: 6700 0084 beqw 478c6 <_Thread_Change_priority+0x132> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 47844: 206a 008c moveal %a2@(140),%a0 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 47848: 2250 moveal %a0@,%a1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 4784a: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 4784e: 208a movel %a2,%a0@ <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 47850: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 47854: 2489 movel %a1,%a2@ <== NOT EXECUTED _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); } _ISR_Flash( level ); 47856: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4785c: 46c4 movew %d4,%sr <== NOT EXECUTED 4785e: 8084 orl %d4,%d0 <== NOT EXECUTED 47860: 46c0 movew %d0,%sr <== NOT EXECUTED 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 ); 47862: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 47868: 4840 swap %d0 <== NOT EXECUTED 4786a: 04c0 ff1 %d0 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4786c: 41f9 0005 8878 lea 58878 <_Priority_Bit_map>,%a0 <== NOT EXECUTED 47872: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 47878: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 <== NOT EXECUTED 4787c: 4841 swap %d1 <== NOT EXECUTED 4787e: 04c1 ff1 %d1 <== NOT EXECUTED * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 47880: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 47886: e988 lsll #4,%d0 <== NOT EXECUTED 47888: d081 addl %d1,%d0 <== NOT EXECUTED 4788a: 2079 0005 8700 moveal 58700 <_Thread_Ready_chain>,%a0 <== NOT EXECUTED 47890: 2400 movel %d0,%d2 <== NOT EXECUTED 47892: e588 lsll #2,%d0 <== NOT EXECUTED 47894: 91c0 subal %d0,%a0 <== NOT EXECUTED 47896: e98a lsll #4,%d2 <== NOT EXECUTED 47898: 2230 2800 movel %a0@(00000000,%d2:l),%d1 <== NOT EXECUTED * is also the heir thread, and FALSE otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 4789c: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 478a2: 23c1 0005 87e2 movel %d1,587e2 <_Thread_Heir> <== NOT EXECUTED * 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() && 478a8: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 478aa: 670e beqs 478ba <_Thread_Change_priority+0x126> <== NOT EXECUTED 478ac: 4a28 0076 tstb %a0@(118) <== NOT EXECUTED 478b0: 6708 beqs 478ba <_Thread_Change_priority+0x126> <== NOT EXECUTED _Thread_Executing->is_preemptible ) _Context_Switch_necessary = TRUE; 478b2: 7201 moveq #1,%d1 <== NOT EXECUTED 478b4: 13c1 0005 8822 moveb %d1,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 478ba: 46c4 movew %d4,%sr <== NOT EXECUTED } 478bc: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 478c2: 4e5e unlk %fp <== NOT EXECUTED 478c4: 4e75 rts <== NOT EXECUTED _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 ); 478c6: 206a 008c moveal %a2@(140),%a0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 478ca: 2008 movel %a0,%d0 <== NOT EXECUTED 478cc: 5880 addql #4,%d0 <== NOT EXECUTED 478ce: 2480 movel %d0,%a2@ <== NOT EXECUTED old_last_node = the_chain->last; 478d0: 2268 0008 moveal %a0@(8),%a1 <== NOT EXECUTED the_chain->last = the_node; 478d4: 214a 0008 movel %a2,%a0@(8) <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 478d8: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED 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; 478dc: 228a movel %a2,%a1@ <== NOT EXECUTED 478de: 6000 ff76 braw 47856 <_Thread_Change_priority+0xc2> <== NOT EXECUTED ... 000478e4 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 478e4: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 478e8: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED ISR_Level level; States_Control current_state; _ISR_Disable( level ); 478ec: 283c 0000 0700 movel #1792,%d4 <== NOT EXECUTED void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 478f2: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 478f6: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED ISR_Level level; States_Control current_state; _ISR_Disable( level ); 478fa: 2004 movel %d4,%d0 <== NOT EXECUTED 478fc: 40c3 movew %sr,%d3 <== NOT EXECUTED 478fe: 8083 orl %d3,%d0 <== NOT EXECUTED 47900: 46c0 movew %d0,%sr <== NOT EXECUTED current_state = the_thread->current_state; 47902: 222b 0010 movel %a3@(16),%d1 <== NOT EXECUTED if ( current_state & state ) { 47906: 2002 movel %d2,%d0 <== NOT EXECUTED 47908: c081 andl %d1,%d0 <== NOT EXECUTED 4790a: 677a beqs 47986 <_Thread_Clear_state+0xa2> <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 4790c: 2002 movel %d2,%d0 <== NOT EXECUTED 4790e: 4680 notl %d0 <== NOT EXECUTED 47910: c081 andl %d1,%d0 <== NOT EXECUTED current_state = 47912: 2740 0010 movel %d0,%a3@(16) <== NOT EXECUTED the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { 47916: 666e bnes 47986 <_Thread_Clear_state+0xa2> <== NOT EXECUTED _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 47918: 206b 008c moveal %a3@(140),%a0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4791c: 2008 movel %a0,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4791e: 226b 0090 moveal %a3@(144),%a1 <== NOT EXECUTED 47922: 5880 addql #4,%d0 <== NOT EXECUTED 47924: 2680 movel %d0,%a3@ <== NOT EXECUTED old_last_node = the_chain->last; 47926: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED 4792a: 322b 0096 movew %a3@(150),%d1 <== NOT EXECUTED 4792e: 3011 movew %a1@,%d0 <== NOT EXECUTED 47930: 8081 orl %d1,%d0 <== NOT EXECUTED 47932: 3280 movew %d0,%a1@ <== NOT EXECUTED the_chain->last = the_node; 47934: 214b 0008 movel %a3,%a0@(8) <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; 47938: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 4793e: 322b 0094 movew %a3@(148),%d1 <== NOT EXECUTED 47942: 8081 orl %d1,%d0 <== NOT EXECUTED 47944: 33c0 0005 8808 movew %d0,58808 <_Priority_Major_bit_map> <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 4794a: 274a 0004 movel %a2,%a3@(4) <== NOT EXECUTED 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; 4794e: 248b movel %a3,%a2@ <== NOT EXECUTED _ISR_Flash( level ); 47950: 2004 movel %d4,%d0 <== NOT EXECUTED 47952: 46c3 movew %d3,%sr <== NOT EXECUTED 47954: 8083 orl %d3,%d0 <== NOT EXECUTED 47956: 46c0 movew %d0,%sr <== NOT EXECUTED * 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 ) { 47958: 2079 0005 87e2 moveal 587e2 <_Thread_Heir>,%a0 <== NOT EXECUTED 4795e: 202b 0014 movel %a3@(20),%d0 <== NOT EXECUTED 47962: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 47966: 641e bccs 47986 <_Thread_Clear_state+0xa2> <== NOT EXECUTED _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 47968: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED * 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; 4796e: 23cb 0005 87e2 movel %a3,587e2 <_Thread_Heir> <== NOT EXECUTED if ( _Thread_Executing->is_preemptible || 47974: 4a28 0076 tstb %a0@(118) <== NOT EXECUTED 47978: 6604 bnes 4797e <_Thread_Clear_state+0x9a> <== NOT EXECUTED 4797a: 4a80 tstl %d0 <== NOT EXECUTED 4797c: 6608 bnes 47986 <_Thread_Clear_state+0xa2> <== NOT EXECUTED the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 4797e: 7001 moveq #1,%d0 <== NOT EXECUTED 47980: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED } } } _ISR_Enable( level ); 47986: 46c3 movew %d3,%sr <== NOT EXECUTED } 47988: 4cd7 0c1c moveml %sp@,%d2-%d4/%a2-%a3 <== NOT EXECUTED 4798c: 4e5e unlk %fp <== NOT EXECUTED 4798e: 4e75 rts 00047990 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 47990: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47994: 2f0b movel %a3,%sp@- <== NOT EXECUTED 47996: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 4799a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4799c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 479a0: 206a 001a moveal %a2@(26),%a0 <== NOT EXECUTED 479a4: 4280 clrl %d0 <== NOT EXECUTED 479a6: 302b 000a movew %a3@(10),%d0 <== NOT EXECUTED 479aa: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 479ae: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 479b4: 5380 subql #1,%d0 <== NOT EXECUTED 479b6: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); 479bc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 479be: 4eb9 0004 8e08 jsr 48e08 <_User_extensions_Thread_delete> <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 479c4: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 479ca: 5280 addql #1,%d0 <== NOT EXECUTED 479cc: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * 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 ); 479d2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 479d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 479d6: 4eb9 0004 6fa8 jsr 46fa8 <_Objects_Close> <== NOT EXECUTED /* * 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 ); 479dc: 4878 0001 pea 1 <== NOT EXECUTED 479e0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 479e2: 4eb9 0004 8680 jsr 48680 <_Thread_Set_state> <== NOT EXECUTED if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 479e8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 479ea: 4eb9 0004 8474 jsr 48474 <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED 479f0: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 479f6: 4a00 tstb %d0 <== NOT EXECUTED 479f8: 6608 bnes 47a02 <_Thread_Close+0x72> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) 479fa: 7002 moveq #2,%d0 <== NOT EXECUTED 479fc: b0ab 0050 cmpl %a3@(80),%d0 <== NOT EXECUTED 47a00: 6756 beqs 47a58 <_Thread_Close+0xc8> <== NOT EXECUTED /* * The thread might have been FP. So deal with that. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) 47a02: b7f9 0005 87da cmpal 587da <_Thread_Allocated_fp>,%a3 <== NOT EXECUTED 47a08: 6746 beqs 47a50 <_Thread_Close+0xc0> <== NOT EXECUTED _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) 47a0a: 202b 00c8 movel %a3@(200),%d0 <== NOT EXECUTED #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; 47a0e: 42ab 0104 clrl %a3@(260) <== NOT EXECUTED if ( the_thread->Start.fp_context ) 47a12: 4a80 tstl %d0 <== NOT EXECUTED 47a14: 670a beqs 47a20 <_Thread_Close+0x90> <== NOT EXECUTED (void) _Workspace_Free( the_thread->Start.fp_context ); 47a16: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47a18: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 47a1e: 588f addql #4,%sp <== NOT EXECUTED /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); 47a20: 2f0b movel %a3,%sp@- <== NOT EXECUTED 47a22: 4eb9 0004 888c jsr 4888c <_Thread_Stack_Free> <== NOT EXECUTED the_thread->Start.stack = NULL; if ( the_thread->extensions ) 47a28: 202b 0118 movel %a3@(280),%d0 <== NOT EXECUTED /* * 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; 47a2c: 42ab 00cc clrl %a3@(204) <== NOT EXECUTED if ( the_thread->extensions ) 47a30: 588f addql #4,%sp <== NOT EXECUTED 47a32: 4a80 tstl %d0 <== NOT EXECUTED 47a34: 670a beqs 47a40 <_Thread_Close+0xb0> <== NOT EXECUTED (void) _Workspace_Free( the_thread->extensions ); 47a36: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47a38: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 47a3e: 588f addql #4,%sp <== NOT EXECUTED the_thread->extensions = NULL; 47a40: 42ab 0118 clrl %a3@(280) <== NOT EXECUTED } 47a44: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 47a48: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 47a4c: 4e5e unlk %fp <== NOT EXECUTED 47a4e: 4e75 rts <== NOT EXECUTED */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void ) { _Thread_Allocated_fp = NULL; 47a50: 42b9 0005 87da clrl 587da <_Thread_Allocated_fp> <== NOT EXECUTED 47a56: 60b2 bras 47a0a <_Thread_Close+0x7a> <== NOT EXECUTED */ _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 ); 47a58: 486b 0048 pea %a3@(72) <== NOT EXECUTED 47a5c: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 47a62: 588f addql #4,%sp <== NOT EXECUTED /* * The thread might have been FP. So deal with that. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) 47a64: b7f9 0005 87da cmpal 587da <_Thread_Allocated_fp>,%a3 <== NOT EXECUTED 47a6a: 669e bnes 47a0a <_Thread_Close+0x7a> <== NOT EXECUTED 47a6c: 60e2 bras 47a50 <_Thread_Close+0xc0> <== NOT EXECUTED ... 00047a70 <_Thread_Create_idle>: * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { 47a70: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED * This routine allocates an internal thread. */ RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); 47a74: 4879 0005 88a6 pea 588a6 <_Thread_Internal_information> <== NOT EXECUTED 47a7a: 4eb9 0004 6f0c jsr 46f0c <_Objects_Allocate> <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 47a80: 2239 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d1 <== NOT EXECUTED 47a86: 5281 addql #1,%d1 <== NOT EXECUTED /* * 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(); 47a88: 23c0 0005 88ee movel %d0,588ee <_Thread_Idle> <== NOT EXECUTED 47a8e: 23c1 0005 8754 movel %d1,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( 47a94: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 47a9a: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 47a9e: 4879 0005 5c6a pea 55c6a <_Status_Object_name_errors_to_status+0x14> <== NOT EXECUTED 47aa4: 4280 clrl %d0 <== NOT EXECUTED 47aa6: 1039 0005 6c42 moveb 56c42 ,%d0 <== NOT EXECUTED 47aac: 42a7 clrl %sp@- <== NOT EXECUTED 47aae: 2239 0005 6c3e movel 56c3e ,%d1 <== NOT EXECUTED 47ab4: 42a7 clrl %sp@- <== NOT EXECUTED 47ab6: 42a7 clrl %sp@- <== NOT EXECUTED 47ab8: 4878 0001 pea 1 <== NOT EXECUTED 47abc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47abe: 42a7 clrl %sp@- <== NOT EXECUTED 47ac0: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 47ac2: 6302 blss 47ac6 <_Thread_Create_idle+0x56> <== NOT EXECUTED 47ac4: 2208 movel %a0,%d1 <== NOT EXECUTED 47ac6: 2f01 movel %d1,%sp@- <== NOT EXECUTED 47ac8: 42a7 clrl %sp@- <== NOT EXECUTED 47aca: 2f39 0005 88ee movel 588ee <_Thread_Idle>,%sp@- <== NOT EXECUTED 47ad0: 4879 0005 88a6 pea 588a6 <_Thread_Internal_information> <== NOT EXECUTED 47ad6: 4eb9 0004 7d90 jsr 47d90 <_Thread_Initialize> <== NOT EXECUTED * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; _Thread_Start( 47adc: dffc 0000 002c addal #44,%sp <== NOT EXECUTED 47ae2: 4297 clrl %sp@ <== NOT EXECUTED 47ae4: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 47aea: 42a7 clrl %sp@- <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 47aec: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 47af2: 2f28 0014 movel %a0@(20),%sp@- <== NOT EXECUTED /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 47af6: 2239 0005 88ee movel 588ee <_Thread_Idle>,%d1 <== NOT EXECUTED _Thread_Executing = _Thread_Idle; _Thread_Start( 47afc: 42a7 clrl %sp@- <== NOT EXECUTED 47afe: 5380 subql #1,%d0 <== NOT EXECUTED 47b00: 2f01 movel %d1,%sp@- <== NOT EXECUTED 47b02: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 47b08: 23c1 0005 8812 movel %d1,58812 <_Thread_Executing> <== NOT EXECUTED 47b0e: 23c1 0005 87e2 movel %d1,587e2 <_Thread_Heir> <== NOT EXECUTED _Thread_Executing = _Thread_Idle; _Thread_Start( 47b14: 4eb9 0004 8920 jsr 48920 <_Thread_Start> <== NOT EXECUTED 47b1a: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED _Configuration_Table->idle_task, NULL, 0 ); } 47b20: 4e5e unlk %fp <== NOT EXECUTED 47b22: 4e75 rts 00047b24 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored ) { 47b24: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 47b28: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47b2c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47b30: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 47b36: 508f addql #8,%sp <== NOT EXECUTED 47b38: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47b3c: 661e bnes 47b5c <_Thread_Delay_ended+0x38> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 47b3e: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 47b44: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47b46: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 47b4c: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 47b52: 508f addql #8,%sp <== NOT EXECUTED 47b54: 5380 subql #1,%d0 <== NOT EXECUTED 47b56: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED case OBJECTS_LOCAL: _Thread_Unblock( the_thread ); _Thread_Unnest_dispatch(); break; } } 47b5c: 4e5e unlk %fp <== NOT EXECUTED 47b5e: 4e75 rts 00047b60 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 47b60: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 47b64: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 47b68: 2679 0005 8812 moveal 58812 <_Thread_Executing>,%a3 <== NOT EXECUTED _ISR_Disable( level ); 47b6e: 307c 0700 moveaw #1792,%a0 <== NOT EXECUTED 47b72: 2008 movel %a0,%d0 <== NOT EXECUTED 47b74: 40c1 movew %sr,%d1 <== NOT EXECUTED 47b76: 8081 orl %d1,%d0 <== NOT EXECUTED 47b78: 46c0 movew %d0,%sr <== NOT EXECUTED while ( _Context_Switch_necessary == TRUE ) { 47b7a: 1039 0005 8822 moveb 58822 <_Context_Switch_necessary>,%d0 <== NOT EXECUTED 47b80: 6700 0100 beqw 47c82 <_Thread_Dispatch+0x122> <== NOT EXECUTED 47b84: 260e movel %fp,%d3 <== NOT EXECUTED 47b86: 240e movel %fp,%d2 <== NOT EXECUTED #endif #endif executing = _Thread_Executing; _ISR_Disable( level ); 47b88: 2e08 movel %a0,%d7 <== NOT EXECUTED 47b8a: 5183 subql #8,%d3 <== NOT EXECUTED 47b8c: 2c3c 0004 b3a4 movel #308132,%d6 <== NOT EXECUTED 47b92: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED 47b98: 2a3c 0004 8bec movel #297964,%d5 <== NOT EXECUTED 47b9e: 283c 0004 8ba0 movel #297888,%d4 <== NOT EXECUTED 47ba4: 4bf9 0004 8e94 lea 48e94 <_User_extensions_Thread_switch>,%a5 <== NOT EXECUTED 47baa: 49f9 0004 921c lea 4921c <_CPU_Context_switch>,%a4 <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == TRUE ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 47bb0: 7001 moveq #1,%d0 <== NOT EXECUTED 47bb2: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == TRUE ) { heir = _Thread_Heir; 47bb8: 2479 0005 87e2 moveal 587e2 <_Thread_Heir>,%a2 <== NOT EXECUTED _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = FALSE; 47bbe: 4200 clrb %d0 <== NOT EXECUTED 47bc0: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _Thread_Executing = heir; 47bc6: 23ca 0005 8812 movel %a2,58812 <_Thread_Executing> <== NOT EXECUTED #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 ) 47bcc: 7001 moveq #1,%d0 <== NOT EXECUTED 47bce: b0aa 007c cmpl %a2@(124),%d0 <== NOT EXECUTED 47bd2: 6700 00da beqw 47cae <_Thread_Dispatch+0x14e> <== NOT EXECUTED heir->cpu_time_budget = _Thread_Ticks_per_timeslice; _ISR_Enable( level ); 47bd6: 46c1 movew %d1,%sr <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { struct timespec uptime, ran; _TOD_Get_uptime( &uptime ); 47bd8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47bda: 2046 moveal %d6,%a0 <== NOT EXECUTED 47bdc: 4e90 jsr %a0@ <== NOT EXECUTED _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); 47bde: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47be0: 2045 moveal %d5,%a0 <== NOT EXECUTED 47be2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47be4: 4879 0005 881a pea 5881a <_Thread_Time_of_last_context_switch> <== NOT EXECUTED 47bea: 4e90 jsr %a0@ <== NOT EXECUTED _Timespec_Add_to( &executing->cpu_time_used, &ran ); 47bec: 2044 moveal %d4,%a0 <== NOT EXECUTED 47bee: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47bf0: 486b 0084 pea %a3@(132) <== NOT EXECUTED 47bf4: 4e90 jsr %a0@ <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 47bf6: 2079 0005 87de moveal 587de <_Thread_libc_reent>,%a0 <== NOT EXECUTED { struct timespec uptime, ran; _TOD_Get_uptime( &uptime ); _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); _Timespec_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; 47bfc: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47c00: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 47c04: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED { struct timespec uptime, ran; _TOD_Get_uptime( &uptime ); _Timespec_Subtract(&_Thread_Time_of_last_context_switch, &uptime, &ran); _Timespec_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; 47c0a: 23c0 0005 881a movel %d0,5881a <_Thread_Time_of_last_context_switch> <== NOT EXECUTED 47c10: 23c1 0005 881e movel %d1,5881e <_Thread_Time_of_last_context_switch+0x4> <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 47c16: 4a88 tstl %a0 <== NOT EXECUTED 47c18: 6708 beqs 47c22 <_Thread_Dispatch+0xc2> <== NOT EXECUTED executing->libc_reent = *_Thread_libc_reent; 47c1a: 2750 0108 movel %a0@,%a3@(264) <== NOT EXECUTED *_Thread_libc_reent = heir->libc_reent; 47c1e: 20aa 0108 movel %a2@(264),%a0@ <== NOT EXECUTED } _User_extensions_Thread_switch( executing, heir ); 47c22: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47c24: 2f0b movel %a3,%sp@- <== NOT EXECUTED 47c26: 4e95 jsr %a5@ <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 47c28: 486a 00d0 pea %a2@(208) <== NOT EXECUTED 47c2c: 486b 00d0 pea %a3@(208) <== NOT EXECUTED 47c30: 4e94 jsr %a4@ <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 47c32: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 47c38: 4aab 0104 tstl %a3@(260) <== NOT EXECUTED 47c3c: 672c beqs 47c6a <_Thread_Dispatch+0x10a> <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 47c3e: 2079 0005 87da moveal 587da <_Thread_Allocated_fp>,%a0 <== NOT EXECUTED 47c44: b1cb cmpal %a3,%a0 <== NOT EXECUTED 47c46: 6722 beqs 47c6a <_Thread_Dispatch+0x10a> <== NOT EXECUTED !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 47c48: 4a88 tstl %a0 <== NOT EXECUTED 47c4a: 670c beqs 47c58 <_Thread_Dispatch+0xf8> <== NOT EXECUTED _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 47c4c: 4868 0104 pea %a0@(260) <== NOT EXECUTED 47c50: 4eb9 0004 9234 jsr 49234 <_CPU_Context_save_fp> <== NOT EXECUTED 47c56: 588f addql #4,%sp <== NOT EXECUTED _Context_Restore_fp( &executing->fp_context ); 47c58: 486b 0104 pea %a3@(260) <== NOT EXECUTED 47c5c: 4eb9 0004 9238 jsr 49238 <_CPU_Context_restore_fp> <== NOT EXECUTED _Thread_Allocated_fp = executing; 47c62: 588f addql #4,%sp <== NOT EXECUTED 47c64: 23cb 0005 87da movel %a3,587da <_Thread_Allocated_fp> <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; 47c6a: 2679 0005 8812 moveal 58812 <_Thread_Executing>,%a3 <== NOT EXECUTED _ISR_Disable( level ); 47c70: 2007 movel %d7,%d0 <== NOT EXECUTED 47c72: 40c1 movew %sr,%d1 <== NOT EXECUTED 47c74: 8081 orl %d1,%d0 <== NOT EXECUTED 47c76: 46c0 movew %d0,%sr <== NOT EXECUTED Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == TRUE ) { 47c78: 1039 0005 8822 moveb 58822 <_Context_Switch_necessary>,%d0 <== NOT EXECUTED 47c7e: 6600 ff30 bnew 47bb0 <_Thread_Dispatch+0x50> <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 47c82: 42b9 0005 8754 clrl 58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _ISR_Enable( level ); 47c88: 46c1 movew %d1,%sr <== NOT EXECUTED if ( _Thread_Do_post_task_switch_extension || 47c8a: 4ab9 0005 87fa tstl 587fa <_Thread_Do_post_task_switch_extension> <== NOT EXECUTED 47c90: 6606 bnes 47c98 <_Thread_Dispatch+0x138> <== NOT EXECUTED 47c92: 4a2b 0075 tstb %a3@(117) <== NOT EXECUTED 47c96: 670c beqs 47ca4 <_Thread_Dispatch+0x144> <== NOT EXECUTED executing->do_post_task_switch_extension ) { executing->do_post_task_switch_extension = false; 47c98: 4201 clrb %d1 <== NOT EXECUTED 47c9a: 1741 0075 moveb %d1,%a3@(117) <== NOT EXECUTED _API_extensions_Run_postswitch(); 47c9e: 4eb9 0004 6584 jsr 46584 <_API_extensions_Run_postswitch> <== NOT EXECUTED } } 47ca4: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 <== NOT EXECUTED 47caa: 4e5e unlk %fp <== NOT EXECUTED 47cac: 4e75 rts <== NOT EXECUTED #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; 47cae: 41f9 0005 8704 lea 58704 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 47cb4: 2550 0078 movel %a0@,%a2@(120) <== NOT EXECUTED 47cb8: 6000 ff1c braw 47bd6 <_Thread_Dispatch+0x76> <== NOT EXECUTED 00047cbc <_Thread_Enable_dispatch>: #if ( (CPU_INLINE_ENABLE_DISPATCH == FALSE) || \ (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) void _Thread_Enable_dispatch( void ) { if ( --_Thread_Dispatch_disable_level ) 47cbc: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 47cc2: 5380 subql #1,%d0 <== NOT EXECUTED 47cc4: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 47cca: 2239 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d1 <== NOT EXECUTED */ #if ( (CPU_INLINE_ENABLE_DISPATCH == FALSE) || \ (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) void _Thread_Enable_dispatch( void ) { 47cd0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( --_Thread_Dispatch_disable_level ) 47cd4: 4a81 tstl %d1 <== NOT EXECUTED 47cd6: 6704 beqs 47cdc <_Thread_Enable_dispatch+0x20> <== NOT EXECUTED return; _Thread_Dispatch(); } 47cd8: 4e5e unlk %fp <== NOT EXECUTED 47cda: 4e75 rts <== NOT EXECUTED 47cdc: 4e5e unlk %fp <== NOT EXECUTED (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) void _Thread_Enable_dispatch( void ) { if ( --_Thread_Dispatch_disable_level ) return; _Thread_Dispatch(); 47cde: 4ef9 0004 7b60 jmp 47b60 <_Thread_Dispatch> <== NOT EXECUTED 0004c3b8 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; 4c3b8: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED * * XXX */ bool _Thread_Evaluate_mode( void ) { 4c3be: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; if ( !_States_Is_ready( executing->current_state ) || 4c3c2: 4aa8 0010 tstl %a0@(16) <== NOT EXECUTED 4c3c6: 660e bnes 4c3d6 <_Thread_Evaluate_mode+0x1e> <== NOT EXECUTED 4c3c8: b1f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a0 <== NOT EXECUTED 4c3ce: 6712 beqs 4c3e2 <_Thread_Evaluate_mode+0x2a> <== NOT EXECUTED 4c3d0: 4a28 0076 tstb %a0@(118) <== NOT EXECUTED 4c3d4: 670c beqs 4c3e2 <_Thread_Evaluate_mode+0x2a> <== NOT EXECUTED ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { _Context_Switch_necessary = TRUE; 4c3d6: 7001 moveq #1,%d0 <== NOT EXECUTED return TRUE; } return FALSE; } 4c3d8: 4e5e unlk %fp <== NOT EXECUTED executing = _Thread_Executing; if ( !_States_Is_ready( executing->current_state ) || ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { _Context_Switch_necessary = TRUE; 4c3da: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED return TRUE; } return FALSE; } 4c3e0: 4e75 rts <== NOT EXECUTED 4c3e2: 4e5e unlk %fp <== NOT EXECUTED executing = _Thread_Executing; if ( !_States_Is_ready( executing->current_state ) || ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { _Context_Switch_necessary = TRUE; return TRUE; 4c3e4: 4200 clrb %d0 <== NOT EXECUTED } return FALSE; } 4c3e6: 4e75 rts 00047ce4 <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 47ce4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47ce8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47cea: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 47cee: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47cf0: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 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 ) ) { 47cf4: 6768 beqs 47d5e <_Thread_Get+0x7a> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 47cf6: 7018 moveq #24,%d0 <== NOT EXECUTED 47cf8: 2202 movel %d2,%d1 <== NOT EXECUTED 47cfa: e0a9 lsrl %d0,%d1 <== NOT EXECUTED 47cfc: 7607 moveq #7,%d3 <== NOT EXECUTED 47cfe: c283 andl %d3,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 47d00: 2001 movel %d1,%d0 <== NOT EXECUTED 47d02: 5380 subql #1,%d0 <== NOT EXECUTED 47d04: 163c 0003 moveb #3,%d3 <== NOT EXECUTED 47d08: b680 cmpl %d0,%d3 <== NOT EXECUTED 47d0a: 6540 bcss 47d4c <_Thread_Get+0x68> <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 47d0c: 761b moveq #27,%d3 <== NOT EXECUTED 47d0e: 2002 movel %d2,%d0 <== NOT EXECUTED 47d10: e6a8 lsrl %d3,%d0 <== NOT EXECUTED 47d12: 163c 0001 moveb #1,%d3 <== NOT EXECUTED 47d16: b680 cmpl %d0,%d3 <== NOT EXECUTED 47d18: 6632 bnes 47d4c <_Thread_Get+0x68> <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 47d1a: 41f9 0005 870c lea 5870c <_Objects_Information_table>,%a0 <== NOT EXECUTED 47d20: 2070 1c00 moveal %a0@(00000000,%d1:l:4),%a0 <== NOT EXECUTED if ( !api_information ) { 47d24: 4a88 tstl %a0 <== NOT EXECUTED 47d26: 6724 beqs 47d4c <_Thread_Get+0x68> <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; 47d28: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED if ( !information ) { 47d2c: 6752 beqs 47d80 <_Thread_Get+0x9c> <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 47d2e: 2f09 movel %a1,%sp@- <== NOT EXECUTED 47d30: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47d32: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47d34: 4eb9 0004 7438 jsr 47438 <_Objects_Get> <== NOT EXECUTED done: return tp; } 47d3a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47d3e: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED if ( !information ) { *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 47d42: dffc 0000 000c addal #12,%sp <== NOT EXECUTED done: return tp; } 47d48: 4e5e unlk %fp <== NOT EXECUTED 47d4a: 4e75 rts <== NOT EXECUTED goto done; } api_information = _Objects_Information_table[ the_api ]; if ( !api_information ) { *location = OBJECTS_ERROR; 47d4c: 7401 moveq #1,%d2 <== NOT EXECUTED 47d4e: 2282 movel %d2,%a1@ <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 47d50: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47d54: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 47d58: 4e5e unlk %fp <== NOT EXECUTED goto done; } api_information = _Objects_Information_table[ the_api ]; if ( !api_information ) { *location = OBJECTS_ERROR; 47d5a: 4280 clrl %d0 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 47d5c: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 47d5e: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 47d64: 5280 addql #1,%d0 <== NOT EXECUTED 47d66: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 47d6c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47d70: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 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; 47d74: 2039 0005 8812 movel 58812 <_Thread_Executing>,%d0 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 47d7a: 4e5e unlk %fp <== NOT EXECUTED 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; 47d7c: 4291 clrl %a1@ <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 47d7e: 4e75 rts <== NOT EXECUTED 47d80: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47d84: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 47d88: 7201 moveq #1,%d1 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 47d8a: 4e5e unlk %fp <== NOT EXECUTED goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 47d8c: 2281 movel %d1,%a1@ <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 47d8e: 4e75 rts 0004c3e8 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 4c3e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c3ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 4c3ee: 2479 0005 8812 moveal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED * * Output parameters: NONE */ void _Thread_Handler( void ) { 4c3f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 4c3f6: 222a 00b6 movel %a2@(182),%d1 <== NOT EXECUTED _ISR_Set_level(level); 4c3fa: 40c0 movew %sr,%d0 <== NOT EXECUTED 4c3fc: e189 lsll #8,%d1 <== NOT EXECUTED 4c3fe: 0280 0000 f8ff andil #63743,%d0 <== NOT EXECUTED 4c404: 8081 orl %d1,%d0 <== NOT EXECUTED 4c406: 46c0 movew %d0,%sr <== NOT EXECUTED #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 4c408: 1439 0005 7f44 moveb 57f44 ,%d2 <== NOT EXECUTED doneConstructors = 1; 4c40e: 7001 moveq #1,%d0 <== NOT EXECUTED 4c410: 13c0 0005 7f44 moveb %d0,57f44 <== NOT EXECUTED #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && !_Thread_Is_allocated_fp( executing ) ) { 4c416: 4aaa 0104 tstl %a2@(260) <== NOT EXECUTED 4c41a: 6720 beqs 4c43c <_Thread_Handler+0x54> <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 4c41c: 2079 0005 87da moveal 587da <_Thread_Allocated_fp>,%a0 <== NOT EXECUTED 4c422: b1ca cmpal %a2,%a0 <== NOT EXECUTED 4c424: 6716 beqs 4c43c <_Thread_Handler+0x54> <== NOT EXECUTED if ( _Thread_Allocated_fp != NULL ) 4c426: 4a88 tstl %a0 <== NOT EXECUTED 4c428: 670c beqs 4c436 <_Thread_Handler+0x4e> <== NOT EXECUTED _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 4c42a: 4868 0104 pea %a0@(260) <== NOT EXECUTED 4c42e: 4eb9 0004 9234 jsr 49234 <_CPU_Context_save_fp> <== NOT EXECUTED 4c434: 588f addql #4,%sp <== NOT EXECUTED _Thread_Allocated_fp = executing; 4c436: 23ca 0005 87da movel %a2,587da <_Thread_Allocated_fp> <== NOT EXECUTED * 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 ); 4c43c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c43e: 4eb9 0004 8cec jsr 48cec <_User_extensions_Thread_begin> <== NOT EXECUTED /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 4c444: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED /* * _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) */ 4c44a: 588f addql #4,%sp <== NOT EXECUTED 4c44c: 4a02 tstb %d2 <== NOT EXECUTED 4c44e: 6760 beqs 4c4b0 <_Thread_Handler+0xc8> <== NOT EXECUTED #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 4c450: 202a 00a0 movel %a2@(160),%d0 <== NOT EXECUTED 4c454: 7201 moveq #1,%d1 <== NOT EXECUTED 4c456: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c458: 6766 beqs 4c4c0 <_Thread_Handler+0xd8> <== NOT EXECUTED 4c45a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c45c: 622a bhis 4c488 <_Thread_Handler+0xa0> <== NOT EXECUTED 4c45e: 123c 0002 moveb #2,%d1 <== NOT EXECUTED 4c462: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c464: 6700 00ae beqw 4c514 <_Thread_Handler+0x12c> <== NOT EXECUTED 4c468: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 4c46c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c46e: 6778 beqs 4c4e8 <_Thread_Handler+0x100> <== NOT EXECUTED * 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 ); 4c470: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c472: 4eb9 0004 8d2a jsr 48d2a <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4c478: 4878 0006 pea 6 <== NOT EXECUTED 4c47c: 4878 0001 pea 1 <== NOT EXECUTED 4c480: 42a7 clrl %sp@- <== NOT EXECUTED 4c482: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED __main (); #endif switch ( executing->Start.prototype ) { case THREAD_START_NUMERIC: executing->Wait.return_argument = 4c488: 2f2a 00a8 movel %a2@(168),%sp@- <== NOT EXECUTED 4c48c: 206a 009c moveal %a2@(156),%a0 <== NOT EXECUTED 4c490: 4e90 jsr %a0@ <== NOT EXECUTED 4c492: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4c496: 588f addql #4,%sp <== NOT EXECUTED * 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 ); 4c498: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c49a: 4eb9 0004 8d2a jsr 48d2a <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4c4a0: 4878 0006 pea 6 <== NOT EXECUTED 4c4a4: 4878 0001 pea 1 <== NOT EXECUTED 4c4a8: 42a7 clrl %sp@- <== NOT EXECUTED 4c4aa: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED * 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) */ { _init (); 4c4b0: 4eb9 0005 53f0 jsr 553f0 <_init> <== NOT EXECUTED #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 4c4b6: 202a 00a0 movel %a2@(160),%d0 <== NOT EXECUTED 4c4ba: 7201 moveq #1,%d1 <== NOT EXECUTED 4c4bc: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c4be: 669a bnes 4c45a <_Thread_Handler+0x72> <== NOT EXECUTED (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = 4c4c0: 2f2a 00a4 movel %a2@(164),%sp@- <== NOT EXECUTED 4c4c4: 206a 009c moveal %a2@(156),%a0 <== NOT EXECUTED 4c4c8: 4e90 jsr %a0@ <== NOT EXECUTED 4c4ca: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4c4ce: 588f addql #4,%sp <== NOT EXECUTED * 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 ); 4c4d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c4d2: 4eb9 0004 8d2a jsr 48d2a <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4c4d8: 4878 0006 pea 6 <== NOT EXECUTED 4c4dc: 4878 0001 pea 1 <== NOT EXECUTED 4c4e0: 42a7 clrl %sp@- <== NOT EXECUTED 4c4e2: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 4c4e8: 2f2a 00a4 movel %a2@(164),%sp@- <== NOT EXECUTED 4c4ec: 2f2a 00a8 movel %a2@(168),%sp@- <== NOT EXECUTED 4c4f0: 206a 009c moveal %a2@(156),%a0 <== NOT EXECUTED 4c4f4: 4e90 jsr %a0@ <== NOT EXECUTED 4c4f6: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4c4fa: 508f addql #8,%sp <== NOT EXECUTED * 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 ); 4c4fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c4fe: 4eb9 0004 8d2a jsr 48d2a <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4c504: 4878 0006 pea 6 <== NOT EXECUTED 4c508: 4878 0001 pea 1 <== NOT EXECUTED 4c50c: 42a7 clrl %sp@- <== NOT EXECUTED 4c50e: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED (*(Thread_Entry_pointer) executing->Start.entry_point)( executing->Start.pointer_argument ); break; case THREAD_START_BOTH_POINTER_FIRST: executing->Wait.return_argument = 4c514: 2f2a 00a8 movel %a2@(168),%sp@- <== NOT EXECUTED 4c518: 2f2a 00a4 movel %a2@(164),%sp@- <== NOT EXECUTED 4c51c: 206a 009c moveal %a2@(156),%a0 <== NOT EXECUTED 4c520: 4e90 jsr %a0@ <== NOT EXECUTED 4c522: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4c526: 508f addql #8,%sp <== NOT EXECUTED * 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 ); 4c528: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c52a: 4eb9 0004 8d2a jsr 48d2a <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4c530: 4878 0006 pea 6 <== NOT EXECUTED 4c534: 4878 0001 pea 1 <== NOT EXECUTED 4c538: 42a7 clrl %sp@- <== NOT EXECUTED 4c53a: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED 00047fd4 <_Thread_Handler_initialization>: /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!_Configuration_Table->stack_allocate_hook) 47fd4: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 47fda: 4aa8 0024 tstl %a0@(36) <== NOT EXECUTED 47fde: 57c1 seq %d1 <== NOT EXECUTED 47fe0: 4aa8 0020 tstl %a0@(32) <== NOT EXECUTED 47fe4: 57c0 seq %d0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) , uint32_t maximum_proxies #endif ) { 47fe6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!_Configuration_Table->stack_allocate_hook) 47fea: 4480 negl %d0 <== NOT EXECUTED 47fec: 4481 negl %d1 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) , uint32_t maximum_proxies #endif ) { 47fee: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!_Configuration_Table->stack_allocate_hook) 47ff0: b380 eorl %d1,%d0 <== NOT EXECUTED 47ff2: 4a00 tstb %d0 <== NOT EXECUTED 47ff4: 6600 00b0 bnew 480a6 <_Thread_Handler_initialization+0xd2> <== NOT EXECUTED _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 47ff8: 4280 clrl %d0 <== NOT EXECUTED 47ffa: 1039 0005 6c42 moveb 56c42 ,%d0 <== NOT EXECUTED 48000: 5280 addql #1,%d0 <== NOT EXECUTED 48002: 2200 movel %d0,%d1 <== NOT EXECUTED 48004: e588 lsll #2,%d0 <== NOT EXECUTED 48006: e989 lsll #4,%d1 <== NOT EXECUTED 48008: 9280 subl %d0,%d1 <== NOT EXECUTED 4800a: 2f01 movel %d1,%sp@- <== NOT EXECUTED _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; _Thread_Maximum_extensions = maximum_extensions; 4800c: 41ee 000c lea %fp@(12),%a0 <== NOT EXECUTED 48010: 23d0 0005 87f6 movel %a0@,587f6 <_Thread_Maximum_extensions> <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = FALSE; 48016: 4200 clrb %d0 <== NOT EXECUTED _Thread_Do_post_task_switch_extension = 0; _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; 48018: 41ee 0008 lea %fp@(8),%a0 <== NOT EXECUTED 4801c: 23d0 0005 8704 movel %a0@,58704 <_Thread_Ticks_per_timeslice> <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = FALSE; 48022: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _Thread_Executing = NULL; 48028: 42b9 0005 8812 clrl 58812 <_Thread_Executing> <== NOT EXECUTED _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) 4802e: 4282 clrl %d2 <== NOT EXECUTED INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = FALSE; _Thread_Executing = NULL; _Thread_Heir = NULL; 48030: 42b9 0005 87e2 clrl 587e2 <_Thread_Heir> <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; 48036: 42b9 0005 87da clrl 587da <_Thread_Allocated_fp> <== NOT EXECUTED #endif _Thread_Do_post_task_switch_extension = 0; 4803c: 42b9 0005 87fa clrl 587fa <_Thread_Do_post_task_switch_extension> <== NOT EXECUTED _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 48042: 4eb9 0004 9170 jsr 49170 <_Workspace_Allocate_or_fatal_error> <== NOT EXECUTED (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) 48048: 1439 0005 6c42 moveb 56c42 ,%d2 <== NOT EXECUTED 4804e: 2040 moveal %d0,%a0 <== NOT EXECUTED 48050: 588f addql #4,%sp <== NOT EXECUTED 48052: 4281 clrl %d1 <== NOT EXECUTED _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 48054: 23c0 0005 8700 movel %d0,58700 <_Thread_Ready_chain> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4805a: 2008 movel %a0,%d0 <== NOT EXECUTED 4805c: 5880 addql #4,%d0 <== NOT EXECUTED 4805e: 2080 movel %d0,%a0@ <== NOT EXECUTED (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) 48060: 5281 addql #1,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; 48062: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 48066: 2148 0008 movel %a0,%a0@(8) <== NOT EXECUTED 4806a: d1fc 0000 000c addal #12,%a0 <== NOT EXECUTED 48070: b481 cmpl %d1,%d2 <== NOT EXECUTED 48072: 64e6 bccs 4805a <_Thread_Handler_initialization+0x86> <== NOT EXECUTED /* * Initialize this class of objects. */ _Objects_Initialize_information( 48074: 4878 0008 pea 8 <== NOT EXECUTED 48078: 4878 0001 pea 1 <== NOT EXECUTED 4807c: 4878 0120 pea 120 <== NOT EXECUTED 48080: 4878 0001 pea 1 <== NOT EXECUTED 48084: 4878 0001 pea 1 <== NOT EXECUTED 48088: 4878 0001 pea 1 <== NOT EXECUTED 4808c: 4879 0005 88a6 pea 588a6 <_Thread_Internal_information> <== NOT EXECUTED 48092: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 48098: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED /* * Initialize this class of objects. */ _Objects_Initialize_information( 4809c: dffc 0000 001c addal #28,%sp <== NOT EXECUTED FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 480a2: 4e5e unlk %fp <== NOT EXECUTED 480a4: 4e75 rts <== NOT EXECUTED * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!_Configuration_Table->stack_allocate_hook) == (!_Configuration_Table->stack_free_hook) ) ) _Internal_error_Occurred( 480a6: 4878 000f pea f <== NOT EXECUTED 480aa: 4878 0001 pea 1 <== NOT EXECUTED 480ae: 42a7 clrl %sp@- <== NOT EXECUTED 480b0: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED ... 00047d90 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 47d90: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 47d94: 48d7 047c moveml %d2-%d6/%a2,%sp@ <== NOT EXECUTED 47d98: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 47d9c: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 47da0: 282e 001c movel %fp@(28),%d4 <== NOT EXECUTED 47da4: 2c2e 0024 movel %fp@(36),%d6 <== NOT EXECUTED 47da8: 142e 001b moveb %fp@(27),%d2 <== NOT EXECUTED 47dac: 1a2e 0023 moveb %fp@(35),%d5 <== NOT EXECUTED /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 47db0: 4a81 tstl %d1 <== NOT EXECUTED 47db2: 6700 01ec beqw 47fa0 <_Thread_Initialize+0x210> <== NOT EXECUTED 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; 47db6: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 47dba: 4203 clrb %d3 <== NOT EXECUTED 47dbc: 1543 00be moveb %d3,%a2@(190) <== NOT EXECUTED Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 47dc0: 2541 00c4 movel %d1,%a2@(196) <== NOT EXECUTED the_stack->size = size; 47dc4: 2540 00c0 movel %d0,%a2@(192) <== NOT EXECUTED /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 47dc8: 4a02 tstb %d2 <== NOT EXECUTED 47dca: 6600 014e bnew 47f1a <_Thread_Initialize+0x18a> <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 47dce: 2239 0005 87f6 movel 587f6 <_Thread_Maximum_extensions>,%d1 <== NOT EXECUTED if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) { _Thread_Stack_Free( the_thread ); return FALSE; 47dd4: 4280 clrl %d0 <== NOT EXECUTED 47dd6: 4283 clrl %d3 <== NOT EXECUTED } else fp_area = NULL; the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 47dd8: 2540 00c8 movel %d0,%a2@(200) <== NOT EXECUTED fp_area = _Context_Fp_start( fp_area, 0 ); } else fp_area = NULL; the_thread->fp_context = fp_area; 47ddc: 2540 0104 movel %d0,%a2@(260) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 47de0: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_watchdog->routine = routine; 47de4: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED the_watchdog->id = id; 47de8: 42aa 0068 clrl %a2@(104) <== NOT EXECUTED the_watchdog->user_data = user_data; 47dec: 42aa 006c clrl %a2@(108) <== NOT EXECUTED /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 47df0: 42aa 0108 clrl %a2@(264) <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 47df4: 4a81 tstl %d1 <== NOT EXECUTED 47df6: 6600 015c bnew 47f54 <_Thread_Initialize+0x1c4> <== NOT EXECUTED return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 47dfa: 4282 clrl %d2 <== NOT EXECUTED 47dfc: 42aa 0118 clrl %a2@(280) <== NOT EXECUTED /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 47e00: 1545 00ac moveb %d5,%a2@(172) <== NOT EXECUTED the_thread->Start.budget_algorithm = budget_algorithm; 47e04: 2546 00ae movel %d6,%a2@(174) <== NOT EXECUTED the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { 47e08: 7002 moveq #2,%d0 <== NOT EXECUTED * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 47e0a: 256e 0028 00b2 movel %fp@(40),%a2@(178) <== NOT EXECUTED switch ( budget_algorithm ) { 47e10: b086 cmpl %d6,%d0 <== NOT EXECUTED 47e12: 6700 009c beqw 47eb0 <_Thread_Initialize+0x120> <== NOT EXECUTED the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 47e16: 2f04 movel %d4,%sp@- <== NOT EXECUTED break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 47e18: 7001 moveq #1,%d0 <== NOT EXECUTED break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 47e1a: 256e 002c 00b6 movel %fp@(44),%a2@(182) <== NOT EXECUTED the_thread->current_state = STATES_DORMANT; 47e20: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 47e24: 2f0a movel %a2,%sp@- <== NOT EXECUTED } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 47e26: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED the_thread->resource_count = 0; 47e2a: 42aa 001c clrl %a2@(28) <== NOT EXECUTED the_thread->suspend_count = 0; 47e2e: 42aa 0070 clrl %a2@(112) <== NOT EXECUTED the_thread->real_priority = priority; 47e32: 2544 0018 movel %d4,%a2@(24) <== NOT EXECUTED the_thread->Start.initial_priority = priority; 47e36: 2544 00ba movel %d4,%a2@(186) <== NOT EXECUTED _Thread_Set_priority( the_thread, priority ); 47e3a: 4eb9 0004 8618 jsr 48618 <_Thread_Set_priority> <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47e40: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 47e44: 256e 0030 000c movel %fp@(48),%a2@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47e4a: 2069 001a moveal %a1@(26),%a0 <== NOT EXECUTED 47e4e: 4280 clrl %d0 <== NOT EXECUTED 47e50: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 47e54: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED /* * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 47e58: 42aa 0084 clrl %a2@(132) <== NOT EXECUTED the_thread->cpu_time_used.tv_nsec = 0; 47e5c: 42aa 0088 clrl %a2@(136) <== NOT EXECUTED * 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 ); 47e60: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47e62: 4eb9 0004 8dbc jsr 48dbc <_User_extensions_Thread_create> <== NOT EXECUTED if ( !extension_status ) { 47e68: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 47e6e: 4a00 tstb %d0 <== NOT EXECUTED 47e70: 6632 bnes 47ea4 <_Thread_Initialize+0x114> <== NOT EXECUTED if ( extensions_area ) 47e72: 4a82 tstl %d2 <== NOT EXECUTED 47e74: 670a beqs 47e80 <_Thread_Initialize+0xf0> <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 47e76: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47e78: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 47e7e: 588f addql #4,%sp <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 47e80: 4a83 tstl %d3 <== NOT EXECUTED 47e82: 670a beqs 47e8e <_Thread_Initialize+0xfe> <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 47e84: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47e86: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 47e8c: 588f addql #4,%sp <== NOT EXECUTED #endif _Thread_Stack_Free( the_thread ); 47e8e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47e90: 4eb9 0004 888c jsr 4888c <_Thread_Stack_Free> <== NOT EXECUTED 47e96: 588f addql #4,%sp <== NOT EXECUTED return FALSE; } return TRUE; } 47e98: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 47e9e: 4e5e unlk %fp <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); 47ea0: 4200 clrb %d0 <== NOT EXECUTED return FALSE; } return TRUE; } 47ea2: 4e75 rts <== NOT EXECUTED 47ea4: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 47eaa: 4e5e unlk %fp <== NOT EXECUTED * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); if ( !extension_status ) { 47eac: 7001 moveq #1,%d0 <== NOT EXECUTED return FALSE; } return TRUE; } 47eae: 4e75 rts <== NOT EXECUTED switch ( budget_algorithm ) { case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 47eb0: 41f9 0005 8704 lea 58704 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 47eb6: 2550 0078 movel %a0@,%a2@(120) <== NOT EXECUTED break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 47eba: 7001 moveq #1,%d0 <== NOT EXECUTED the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 47ebc: 2f04 movel %d4,%sp@- <== NOT EXECUTED break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 47ebe: 256e 002c 00b6 movel %fp@(44),%a2@(182) <== NOT EXECUTED the_thread->current_state = STATES_DORMANT; 47ec4: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 47ec8: 2f0a movel %a2,%sp@- <== NOT EXECUTED } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 47eca: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED the_thread->resource_count = 0; 47ece: 42aa 001c clrl %a2@(28) <== NOT EXECUTED the_thread->suspend_count = 0; 47ed2: 42aa 0070 clrl %a2@(112) <== NOT EXECUTED the_thread->real_priority = priority; 47ed6: 2544 0018 movel %d4,%a2@(24) <== NOT EXECUTED the_thread->Start.initial_priority = priority; 47eda: 2544 00ba movel %d4,%a2@(186) <== NOT EXECUTED _Thread_Set_priority( the_thread, priority ); 47ede: 4eb9 0004 8618 jsr 48618 <_Thread_Set_priority> <== NOT EXECUTED 47ee4: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 47ee8: 256e 0030 000c movel %fp@(48),%a2@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47eee: 2069 001a moveal %a1@(26),%a0 <== NOT EXECUTED 47ef2: 4280 clrl %d0 <== NOT EXECUTED 47ef4: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 47ef8: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED /* * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 47efc: 42aa 0084 clrl %a2@(132) <== NOT EXECUTED the_thread->cpu_time_used.tv_nsec = 0; 47f00: 42aa 0088 clrl %a2@(136) <== NOT EXECUTED * 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 ); 47f04: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47f06: 4eb9 0004 8dbc jsr 48dbc <_User_extensions_Thread_create> <== NOT EXECUTED if ( !extension_status ) { 47f0c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 47f12: 4a00 tstb %d0 <== NOT EXECUTED 47f14: 6700 ff5c beqw 47e72 <_Thread_Initialize+0xe2> <== NOT EXECUTED 47f18: 608a bras 47ea4 <_Thread_Initialize+0x114> <== NOT EXECUTED */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 47f1a: 4878 001c pea 1c <== NOT EXECUTED 47f1e: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED if ( !fp_area ) { 47f24: 588f addql #4,%sp <== NOT EXECUTED */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 47f26: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !fp_area ) { 47f28: 6700 ff64 beqw 47e8e <_Thread_Initialize+0xfe> <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 47f2c: 2239 0005 87f6 movel 587f6 <_Thread_Maximum_extensions>,%d1 <== NOT EXECUTED } else fp_area = NULL; the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 47f32: 2540 00c8 movel %d0,%a2@(200) <== NOT EXECUTED fp_area = _Context_Fp_start( fp_area, 0 ); } else fp_area = NULL; the_thread->fp_context = fp_area; 47f36: 2540 0104 movel %d0,%a2@(260) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 47f3a: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_watchdog->routine = routine; 47f3e: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED the_watchdog->id = id; 47f42: 42aa 0068 clrl %a2@(104) <== NOT EXECUTED the_watchdog->user_data = user_data; 47f46: 42aa 006c clrl %a2@(108) <== NOT EXECUTED /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 47f4a: 42aa 0108 clrl %a2@(264) <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 47f4e: 4a81 tstl %d1 <== NOT EXECUTED 47f50: 6700 fea8 beqw 47dfa <_Thread_Initialize+0x6a> <== NOT EXECUTED extensions_area = _Workspace_Allocate( 47f54: e589 lsll #2,%d1 <== NOT EXECUTED 47f56: 2041 moveal %d1,%a0 <== NOT EXECUTED 47f58: 4868 0004 pea %a0@(4) <== NOT EXECUTED 47f5c: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 47f62: 588f addql #4,%sp <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 47f64: 2400 movel %d0,%d2 <== NOT EXECUTED (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 47f66: 6700 ff18 beqw 47e80 <_Thread_Initialize+0xf0> <== NOT EXECUTED return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 47f6a: 2540 0118 movel %d0,%a2@(280) <== NOT EXECUTED * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 47f6e: 70ff moveq #-1,%d0 <== NOT EXECUTED 47f70: b0b9 0005 87f6 cmpl 587f6 <_Thread_Maximum_extensions>,%d0 <== NOT EXECUTED 47f76: 6700 fe88 beqw 47e00 <_Thread_Initialize+0x70> <== NOT EXECUTED 47f7a: 2239 0005 87f6 movel 587f6 <_Thread_Maximum_extensions>,%d1 <== NOT EXECUTED 47f80: 4280 clrl %d0 <== NOT EXECUTED 47f82: 2042 moveal %d2,%a0 <== NOT EXECUTED 47f84: 5281 addql #1,%d1 <== NOT EXECUTED the_thread->extensions[i] = NULL; 47f86: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) <== NOT EXECUTED * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 47f8a: 5280 addql #1,%d0 <== NOT EXECUTED 47f8c: b081 cmpl %d1,%d0 <== NOT EXECUTED 47f8e: 6400 fe70 bccw 47e00 <_Thread_Initialize+0x70> <== NOT EXECUTED the_thread->extensions[i] = NULL; 47f92: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) <== NOT EXECUTED * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 47f96: 5280 addql #1,%d0 <== NOT EXECUTED 47f98: b081 cmpl %d1,%d0 <== NOT EXECUTED 47f9a: 65ea bcss 47f86 <_Thread_Initialize+0x1f6> <== NOT EXECUTED 47f9c: 6000 fe62 braw 47e00 <_Thread_Initialize+0x70> <== NOT EXECUTED */ if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 47fa0: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 47fa4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47fa6: 4eb9 0004 8824 jsr 48824 <_Thread_Stack_Allocate> <== NOT EXECUTED if ( !actual_stack_size || actual_stack_size < stack_size ) 47fac: 508f addql #8,%sp <== NOT EXECUTED 47fae: 4a80 tstl %d0 <== NOT EXECUTED 47fb0: 6714 beqs 47fc6 <_Thread_Initialize+0x236> <== NOT EXECUTED 47fb2: b0ae 0014 cmpl %fp@(20),%d0 <== NOT EXECUTED 47fb6: 650e bcss 47fc6 <_Thread_Initialize+0x236> <== NOT EXECUTED return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; 47fb8: 222a 00cc movel %a2@(204),%d1 <== NOT EXECUTED the_thread->Start.core_allocated_stack = TRUE; 47fbc: 7601 moveq #1,%d3 <== NOT EXECUTED 47fbe: 1543 00be moveb %d3,%a2@(190) <== NOT EXECUTED 47fc2: 6000 fdfc braw 47dc0 <_Thread_Initialize+0x30> <== NOT EXECUTED return FALSE; } return TRUE; } 47fc6: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 47fcc: 4e5e unlk %fp <== NOT EXECUTED (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return FALSE; 47fce: 4200 clrb %d0 <== NOT EXECUTED } return TRUE; } 47fd0: 4e75 rts <== NOT EXECUTED ... 0004b700 <_Thread_Load_environment>: */ void _Thread_Load_environment( Thread_Control *the_thread ) { 4b700: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b704: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED bool is_fp; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( the_thread->Start.fp_context ) { 4b708: 2069 00c8 moveal %a1@(200),%a0 <== NOT EXECUTED 4b70c: 4a88 tstl %a0 <== NOT EXECUTED 4b70e: 6734 beqs 4b744 <_Thread_Load_environment+0x44> <== NOT EXECUTED the_thread->fp_context = the_thread->Start.fp_context; 4b710: 2348 0104 movel %a0,%a1@(260) <== NOT EXECUTED _Context_Initialize_fp( &the_thread->fp_context ); 4b714: 4281 clrl %d1 <== NOT EXECUTED 4b716: 4280 clrl %d0 <== NOT EXECUTED 4b718: 2141 0018 movel %d1,%a0@(24) <== NOT EXECUTED 4b71c: 4241 clrw %d1 <== NOT EXECUTED 4b71e: 2140 0014 movel %d0,%a0@(20) <== NOT EXECUTED 4b722: 3141 0002 movew %d1,%a0@(2) <== NOT EXECUTED 4b726: 3141 0004 movew %d1,%a0@(4) <== NOT EXECUTED 4b72a: 3141 0006 movew %d1,%a0@(6) <== NOT EXECUTED 4b72e: 3141 0008 movew %d1,%a0@(8) <== NOT EXECUTED 4b732: 3141 000a movew %d1,%a0@(10) <== NOT EXECUTED 4b736: 4280 clrl %d0 <== NOT EXECUTED 4b738: 4281 clrl %d1 <== NOT EXECUTED 4b73a: 4250 clrw %a0@ <== NOT EXECUTED 4b73c: 2140 000c movel %d0,%a0@(12) <== NOT EXECUTED 4b740: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED 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; _Context_Initialize( 4b744: 2069 00c0 moveal %a1@(192),%a0 <== NOT EXECUTED 4b748: 5988 subql #4,%a0 <== NOT EXECUTED 4b74a: d1e9 00c4 addal %a1@(196),%a0 <== NOT EXECUTED 4b74e: 2029 00b6 movel %a1@(182),%d0 <== NOT EXECUTED 4b752: 2348 0100 movel %a0,%a1@(256) <== NOT EXECUTED 4b756: e188 lsll #8,%d0 <== NOT EXECUTED 4b758: 0080 0000 3000 oril #12288,%d0 <== NOT EXECUTED } else #endif is_fp = false; the_thread->do_post_task_switch_extension = false; 4b75e: 4201 clrb %d1 <== NOT EXECUTED the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 4b760: 2369 00ae 007c movel %a1@(174),%a1@(124) <== NOT EXECUTED the_thread->Start.isr_level, _Thread_Handler, is_fp ); } 4b766: 4e5e unlk %fp <== NOT EXECUTED 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; 4b768: 2369 00b2 0080 movel %a1@(178),%a1@(128) <== NOT EXECUTED } else #endif is_fp = false; the_thread->do_post_task_switch_extension = false; 4b76e: 1341 0075 moveb %d1,%a1@(117) <== NOT EXECUTED the_thread->is_preemptible = the_thread->Start.is_preemptible; 4b772: 1369 00ac 0076 moveb %a1@(172),%a1@(118) <== NOT EXECUTED the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( 4b778: 2340 00d0 movel %d0,%a1@(208) <== NOT EXECUTED 4b77c: 20bc 0004 c3e8 movel #312296,%a0@ <== NOT EXECUTED the_thread->Start.isr_level, _Thread_Handler, is_fp ); } 4b782: 4e75 rts 0004b9ec <_Thread_Ready>: */ void _Thread_Ready( Thread_Control *the_thread ) { 4b9ec: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4b9f0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); 4b9f4: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED */ void _Thread_Ready( Thread_Control *the_thread ) { 4b9fa: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); 4b9fe: 2002 movel %d2,%d0 <== NOT EXECUTED 4ba00: 40c3 movew %sr,%d3 <== NOT EXECUTED 4ba02: 8083 orl %d3,%d0 <== NOT EXECUTED 4ba04: 46c0 movew %d0,%sr <== NOT EXECUTED the_thread->current_state = STATES_READY; _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); 4ba06: 2268 008c moveal %a0@(140),%a1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4ba0a: 2009 movel %a1,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4ba0c: 2468 0090 moveal %a0@(144),%a2 <== NOT EXECUTED 4ba10: 5880 addql #4,%d0 <== NOT EXECUTED 4ba12: 2080 movel %d0,%a0@ <== NOT EXECUTED old_last_node = the_chain->last; 4ba14: 2669 0008 moveal %a1@(8),%a3 <== NOT EXECUTED 4ba18: 3228 0096 movew %a0@(150),%d1 <== NOT EXECUTED 4ba1c: 3012 movew %a2@,%d0 <== NOT EXECUTED 4ba1e: 8081 orl %d1,%d0 <== NOT EXECUTED 4ba20: 3480 movew %d0,%a2@ <== NOT EXECUTED the_chain->last = the_node; 4ba22: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; 4ba26: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 4ba2c: 3228 0094 movew %a0@(148),%d1 <== NOT EXECUTED 4ba30: 8081 orl %d1,%d0 <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 4ba32: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED 4ba36: 33c0 0005 8808 movew %d0,58808 <_Priority_Major_bit_map> <== NOT EXECUTED ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); the_thread->current_state = STATES_READY; 4ba3c: 42a8 0010 clrl %a0@(16) <== NOT EXECUTED 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; 4ba40: 2688 movel %a0,%a3@ <== NOT EXECUTED _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); _ISR_Flash( level ); 4ba42: 46c3 movew %d3,%sr <== NOT EXECUTED 4ba44: 8483 orl %d3,%d2 <== NOT EXECUTED 4ba46: 46c2 movew %d2,%sr <== NOT EXECUTED 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 ); 4ba48: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 4ba4e: 4840 swap %d0 <== NOT EXECUTED 4ba50: 04c0 ff1 %d0 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4ba52: 41f9 0005 8878 lea 58878 <_Priority_Bit_map>,%a0 <== NOT EXECUTED 4ba58: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 4ba5e: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 <== NOT EXECUTED 4ba62: 4841 swap %d1 <== NOT EXECUTED 4ba64: 04c1 ff1 %d1 <== NOT EXECUTED * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 4ba66: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 4ba6c: e988 lsll #4,%d0 <== NOT EXECUTED 4ba6e: d081 addl %d1,%d0 <== NOT EXECUTED 4ba70: 2079 0005 8700 moveal 58700 <_Thread_Ready_chain>,%a0 <== NOT EXECUTED 4ba76: 2400 movel %d0,%d2 <== NOT EXECUTED 4ba78: e588 lsll #2,%d0 <== NOT EXECUTED 4ba7a: 91c0 subal %d0,%a0 <== NOT EXECUTED 4ba7c: e98a lsll #4,%d2 <== NOT EXECUTED 4ba7e: 2230 2800 movel %a0@(00000000,%d2:l),%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); 4ba82: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 4ba88: 23c1 0005 87e2 movel %d1,587e2 <_Thread_Heir> <== NOT EXECUTED _Thread_Calculate_heir(); heir = _Thread_Heir; if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) 4ba8e: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 4ba90: 670e beqs 4baa0 <_Thread_Ready+0xb4> <== NOT EXECUTED 4ba92: 4a28 0076 tstb %a0@(118) <== NOT EXECUTED 4ba96: 6708 beqs 4baa0 <_Thread_Ready+0xb4> <== NOT EXECUTED _Context_Switch_necessary = TRUE; 4ba98: 7001 moveq #1,%d0 <== NOT EXECUTED 4ba9a: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 4baa0: 46c3 movew %d3,%sr <== NOT EXECUTED } 4baa2: 4cd7 0c0c moveml %sp@,%d2-%d3/%a2-%a3 <== NOT EXECUTED 4baa6: 4e5e unlk %fp <== NOT EXECUTED 4baa8: 4e75 rts <== NOT EXECUTED ... 0004c4e8 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 4c4e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c4ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c4ee: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 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; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; 4c4f2: 256e 0010 00a8 movel %fp@(16),%a2@(168) <== NOT EXECUTED the_thread->suspend_count = 0; 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; the_thread->Start.pointer_argument = pointer_argument; 4c4f8: 256e 000c 00a4 movel %fp@(12),%a2@(164) <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; 4c4fe: 156a 00ac 0076 moveb %a2@(172),%a2@(118) <== NOT EXECUTED Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; 4c504: 42aa 001c clrl %a2@(28) <== NOT EXECUTED the_thread->suspend_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 4c508: 256a 00ae 007c movel %a2@(174),%a2@(124) <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; 4c50e: 256a 00b2 0080 movel %a2@(178),%a2@(128) <== NOT EXECUTED void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; the_thread->suspend_count = 0; 4c514: 42aa 0070 clrl %a2@(112) <== NOT EXECUTED 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 ) ) { 4c518: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c51a: 4eb9 0004 8db8 jsr 48db8 <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED 4c520: 588f addql #4,%sp <== NOT EXECUTED 4c522: 4a00 tstb %d0 <== NOT EXECUTED 4c524: 6608 bnes 4c52e <_Thread_Reset+0x46> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) 4c526: 7002 moveq #2,%d0 <== NOT EXECUTED 4c528: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4c52c: 672a beqs 4c558 <_Thread_Reset+0x70> <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 4c52e: 202a 00ba movel %a2@(186),%d0 <== NOT EXECUTED 4c532: b0aa 0014 cmpl %a2@(20),%d0 <== NOT EXECUTED 4c536: 6718 beqs 4c550 <_Thread_Reset+0x68> <== NOT EXECUTED the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4c538: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 4c53c: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; 4c540: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); } } 4c544: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c548: 4e5e unlk %fp <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4c54a: 4ef9 0004 9010 jmp 49010 <_Thread_Set_priority> <== NOT EXECUTED } } 4c550: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c554: 4e5e unlk %fp <== NOT EXECUTED 4c556: 4e75 rts <== NOT EXECUTED 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 ); 4c558: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4c55c: 4eb9 0004 9a58 jsr 49a58 <_Watchdog_Remove> <== NOT EXECUTED 4c562: 588f addql #4,%sp <== NOT EXECUTED 4c564: 60c8 bras 4c52e <_Thread_Reset+0x46> <== NOT EXECUTED ... 0004baac <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 4baac: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4bab0: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 4bab4: 2679 0005 8812 moveal 58812 <_Thread_Executing>,%a3 <== NOT EXECUTED ready = executing->ready; _ISR_Disable( level ); 4baba: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; 4bac0: 286b 008c moveal %a3@(140),%a4 <== NOT EXECUTED _ISR_Disable( level ); 4bac4: 2002 movel %d2,%d0 <== NOT EXECUTED 4bac6: 40c1 movew %sr,%d1 <== NOT EXECUTED 4bac8: 8081 orl %d1,%d0 <== NOT EXECUTED 4baca: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { 4bacc: 202c 0008 movel %a4@(8),%d0 <== NOT EXECUTED 4bad0: b094 cmpl %a4@,%d0 <== NOT EXECUTED 4bad2: 6754 beqs 4bb28 <_Thread_Reset_timeslice+0x7c> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4bad4: 2053 moveal %a3@,%a0 <== NOT EXECUTED previous = the_node->previous; 4bad6: 226b 0004 moveal %a3@(4),%a1 <== NOT EXECUTED next->previous = previous; previous->next = next; 4bada: 2288 movel %a0,%a1@ <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4badc: 200c movel %a4,%d0 <== NOT EXECUTED 4bade: 5880 addql #4,%d0 <== NOT EXECUTED 4bae0: 2680 movel %d0,%a3@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4bae2: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 4bae6: 246c 0008 moveal %a4@(8),%a2 <== NOT EXECUTED the_chain->last = the_node; 4baea: 294b 0008 movel %a3,%a4@(8) <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 4baee: 274a 0004 movel %a2,%a3@(4) <== NOT EXECUTED 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; 4baf2: 248b movel %a3,%a2@ <== NOT EXECUTED return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 4baf4: 2002 movel %d2,%d0 <== NOT EXECUTED 4baf6: 46c1 movew %d1,%sr <== NOT EXECUTED 4baf8: 8081 orl %d1,%d0 <== NOT EXECUTED 4bafa: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) 4bafc: b7f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a3 <== NOT EXECUTED 4bb02: 6712 beqs 4bb16 <_Thread_Reset_timeslice+0x6a> <== NOT EXECUTED _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = TRUE; 4bb04: 7001 moveq #1,%d0 <== NOT EXECUTED 4bb06: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 4bb0c: 46c1 movew %d1,%sr <== NOT EXECUTED } 4bb0e: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED 4bb12: 4e5e unlk %fp <== NOT EXECUTED 4bb14: 4e75 rts <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 4bb16: 23d4 0005 87e2 movel %a4@,587e2 <_Thread_Heir> <== NOT EXECUTED _Context_Switch_necessary = TRUE; 4bb1c: 7001 moveq #1,%d0 <== NOT EXECUTED 4bb1e: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 4bb24: 46c1 movew %d1,%sr <== NOT EXECUTED 4bb26: 60e6 bras 4bb0e <_Thread_Reset_timeslice+0x62> <== NOT EXECUTED executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { _ISR_Enable( level ); 4bb28: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = TRUE; _ISR_Enable( level ); } 4bb2a: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED 4bb2e: 4e5e unlk %fp <== NOT EXECUTED 4bb30: 4e75 rts <== NOT EXECUTED ... 00048f5c <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 48f5c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48f60: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48f62: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { 48f66: 7001 moveq #1,%d0 <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 48f68: 2f02 movel %d2,%sp@- <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { 48f6a: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED 48f6e: 4a00 tstb %d0 <== NOT EXECUTED 48f70: 6710 beqs 48f82 <_Thread_Restart+0x26> <== NOT EXECUTED 48f72: 4202 clrb %d2 <== NOT EXECUTED return TRUE; } return FALSE; } 48f74: 1002 moveb %d2,%d0 <== NOT EXECUTED 48f76: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48f7a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48f7e: 4e5e unlk %fp <== NOT EXECUTED 48f80: 4e75 rts <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 48f82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48f84: 4eb9 0004 9194 jsr 49194 <_Thread_Set_transient> <== NOT EXECUTED _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 48f8a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 48f8e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 48f92: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48f94: 4eb9 0004 c4e8 jsr 4c4e8 <_Thread_Reset> <== NOT EXECUTED _Thread_Load_environment( the_thread ); 48f9a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48f9c: 4eb9 0004 c13c jsr 4c13c <_Thread_Load_environment> <== NOT EXECUTED _Thread_Ready( the_thread ); 48fa2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48fa4: 4eb9 0004 c428 jsr 4c428 <_Thread_Ready> <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); 48faa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48fac: 4eb9 0004 9848 jsr 49848 <_User_extensions_Thread_restart> <== NOT EXECUTED if ( _Thread_Is_executing ( the_thread ) ) 48fb2: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 48fb8: b5f9 0005 a34a cmpal 5a34a <_Thread_Executing>,%a2 <== NOT EXECUTED 48fbe: 6710 beqs 48fd0 <_Thread_Restart+0x74> <== NOT EXECUTED 48fc0: 7401 moveq #1,%d2 <== NOT EXECUTED return TRUE; } return FALSE; } 48fc2: 1002 moveb %d2,%d0 <== NOT EXECUTED 48fc4: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48fc8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48fcc: 4e5e unlk %fp <== NOT EXECUTED 48fce: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) 48fd0: 4aaa 0104 tstl %a2@(260) <== NOT EXECUTED 48fd4: 670c beqs 48fe2 <_Thread_Restart+0x86> <== NOT EXECUTED _Context_Restore_fp( &_Thread_Executing->fp_context ); 48fd6: 486a 0104 pea %a2@(260) <== NOT EXECUTED 48fda: 4eb9 0004 9c74 jsr 49c74 <_CPU_Context_restore_fp> <== NOT EXECUTED 48fe0: 588f addql #4,%sp <== NOT EXECUTED #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 48fe2: 2079 0005 a34a moveal 5a34a <_Thread_Executing>,%a0 <== NOT EXECUTED 48fe8: 2228 00d0 movel %a0@(208),%d1 <== NOT EXECUTED 48fec: 2028 0100 movel %a0@(256),%d0 <== NOT EXECUTED 48ff0: 46c1 movew %d1,%sr <== NOT EXECUTED 48ff2: 2e40 moveal %d0,%sp <== NOT EXECUTED 48ff4: 4e75 rts <== NOT EXECUTED 48ff6: 7401 moveq #1,%d2 <== NOT EXECUTED 48ff8: 2140 0100 movel %d0,%a0@(256) <== NOT EXECUTED 48ffc: 1002 moveb %d2,%d0 <== NOT EXECUTED 48ffe: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 49002: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49006: 4e5e unlk %fp <== NOT EXECUTED 49008: 2141 00d0 movel %d1,%a0@(208) <== NOT EXECUTED 4900c: 4e75 rts <== NOT EXECUTED ... 00049b20 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 49b20: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 49b24: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 49b28: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 49b2c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED ISR_Level level; States_Control current_state; _ISR_Disable( level ); 49b30: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 49b36: 40c2 movew %sr,%d2 <== NOT EXECUTED 49b38: 8282 orl %d2,%d1 <== NOT EXECUTED 49b3a: 46c1 movew %d1,%sr <== NOT EXECUTED if ( force == TRUE ) 49b3c: 4a00 tstb %d0 <== NOT EXECUTED 49b3e: 6700 0092 beqw 49bd2 <_Thread_Resume+0xb2> <== NOT EXECUTED the_thread->suspend_count = 0; 49b42: 42ab 0070 clrl %a3@(112) <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { _ISR_Enable( level ); return; } current_state = the_thread->current_state; 49b46: 202b 0010 movel %a3@(16),%d0 <== NOT EXECUTED if ( current_state & STATES_SUSPENDED ) { 49b4a: 0800 0001 btst #1,%d0 <== NOT EXECUTED 49b4e: 6778 beqs 49bc8 <_Thread_Resume+0xa8> <== NOT EXECUTED 49b50: 72fd moveq #-3,%d1 <== NOT EXECUTED 49b52: c081 andl %d1,%d0 <== NOT EXECUTED current_state = 49b54: 2740 0010 movel %d0,%a3@(16) <== NOT EXECUTED the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 49b58: 666e bnes 49bc8 <_Thread_Resume+0xa8> <== NOT EXECUTED _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 49b5a: 206b 008c moveal %a3@(140),%a0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 49b5e: 2008 movel %a0,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 49b60: 226b 0090 moveal %a3@(144),%a1 <== NOT EXECUTED 49b64: 5880 addql #4,%d0 <== NOT EXECUTED 49b66: 2680 movel %d0,%a3@ <== NOT EXECUTED old_last_node = the_chain->last; 49b68: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED 49b6c: 322b 0096 movew %a3@(150),%d1 <== NOT EXECUTED 49b70: 3011 movew %a1@,%d0 <== NOT EXECUTED 49b72: 8081 orl %d1,%d0 <== NOT EXECUTED 49b74: 3280 movew %d0,%a1@ <== NOT EXECUTED the_chain->last = the_node; 49b76: 214b 0008 movel %a3,%a0@(8) <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; 49b7a: 3039 0006 2e30 movew 62e30 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 49b80: 322b 0094 movew %a3@(148),%d1 <== NOT EXECUTED 49b84: 8081 orl %d1,%d0 <== NOT EXECUTED 49b86: 33c0 0006 2e30 movew %d0,62e30 <_Priority_Major_bit_map> <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 49b8c: 274a 0004 movel %a2,%a3@(4) <== NOT EXECUTED 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; 49b90: 248b movel %a3,%a2@ <== NOT EXECUTED _ISR_Flash( level ); 49b92: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 49b98: 46c2 movew %d2,%sr <== NOT EXECUTED 49b9a: 8082 orl %d2,%d0 <== NOT EXECUTED 49b9c: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 49b9e: 2079 0006 2e0a moveal 62e0a <_Thread_Heir>,%a0 <== NOT EXECUTED 49ba4: 202b 0014 movel %a3@(20),%d0 <== NOT EXECUTED 49ba8: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 49bac: 641a bccs 49bc8 <_Thread_Resume+0xa8> <== NOT EXECUTED _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 49bae: 2079 0006 2e3a moveal 62e3a <_Thread_Executing>,%a0 <== NOT EXECUTED _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; 49bb4: 23cb 0006 2e0a movel %a3,62e0a <_Thread_Heir> <== NOT EXECUTED if ( _Thread_Executing->is_preemptible || 49bba: 4a28 0076 tstb %a0@(118) <== NOT EXECUTED 49bbe: 672a beqs 49bea <_Thread_Resume+0xca> <== NOT EXECUTED the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 49bc0: 7201 moveq #1,%d1 <== NOT EXECUTED 49bc2: 13c1 0006 2e4a moveb %d1,62e4a <_Context_Switch_necessary> <== NOT EXECUTED } } } _ISR_Enable( level ); 49bc8: 46c2 movew %d2,%sr <== NOT EXECUTED } 49bca: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 49bce: 4e5e unlk %fp <== NOT EXECUTED 49bd0: 4e75 rts <== NOT EXECUTED _ISR_Disable( level ); if ( force == TRUE ) the_thread->suspend_count = 0; else the_thread->suspend_count--; 49bd2: 202b 0070 movel %a3@(112),%d0 <== NOT EXECUTED 49bd6: 5380 subql #1,%d0 <== NOT EXECUTED 49bd8: 2740 0070 movel %d0,%a3@(112) <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 49bdc: 6700 ff68 beqw 49b46 <_Thread_Resume+0x26> <== NOT EXECUTED _ISR_Enable( level ); 49be0: 46c2 movew %d2,%sr <== NOT EXECUTED } } } _ISR_Enable( level ); } 49be2: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 49be6: 4e5e unlk %fp <== NOT EXECUTED 49be8: 4e75 rts <== NOT EXECUTED _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 49bea: 4a80 tstl %d0 <== NOT EXECUTED 49bec: 66da bnes 49bc8 <_Thread_Resume+0xa8> <== NOT EXECUTED the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 49bee: 7201 moveq #1,%d1 <== NOT EXECUTED 49bf0: 13c1 0006 2e4a moveb %d1,62e4a <_Context_Switch_necessary> <== NOT EXECUTED 49bf6: 60d0 bras 49bc8 <_Thread_Resume+0xa8> <== NOT EXECUTED 00048618 <_Thread_Set_priority>: void _Thread_Set_priority( Thread_Control *the_thread, Priority_Control new_priority ) { 48618: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4861c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 48620: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 48624: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED the_thread->current_priority = new_priority; the_thread->ready = &_Thread_Ready_chain[ new_priority ]; 48628: 2a00 movel %d0,%d5 <== NOT EXECUTED 4862a: 2800 movel %d0,%d4 <== NOT EXECUTED { Priority_Bit_map_control major; Priority_Bit_map_control minor; Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); 4862c: 2600 movel %d0,%d3 <== NOT EXECUTED mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; the_priority_map->block_major = ~mask; mask = _Priority_Mask( minor ); 4862e: 720f moveq #15,%d1 <== NOT EXECUTED void _Thread_Set_priority( Thread_Control *the_thread, Priority_Control new_priority ) { the_thread->current_priority = new_priority; 48630: 2140 0014 movel %d0,%a0@(20) <== NOT EXECUTED the_thread->ready = &_Thread_Ready_chain[ new_priority ]; 48634: e58d lsll #2,%d5 <== NOT EXECUTED 48636: c081 andl %d1,%d0 <== NOT EXECUTED 48638: e98c lsll #4,%d4 <== NOT EXECUTED minor = _Priority_Minor( new_priority ); the_priority_map->minor = &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); 4863a: 323c 8000 movew #-32768,%d1 <== NOT EXECUTED 4863e: 9885 subl %d5,%d4 <== NOT EXECUTED { Priority_Bit_map_control major; Priority_Bit_map_control minor; Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); 48640: e88b lsrl #4,%d3 <== NOT EXECUTED minor = _Priority_Minor( new_priority ); the_priority_map->minor = 48642: 0283 0000 ffff andil #65535,%d3 <== NOT EXECUTED mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; the_priority_map->block_major = ~mask; mask = _Priority_Mask( minor ); 48648: 2401 movel %d1,%d2 <== NOT EXECUTED 4864a: d8b9 0005 8700 addl 58700 <_Thread_Ready_chain>,%d4 <== NOT EXECUTED minor = _Priority_Minor( new_priority ); the_priority_map->minor = &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); 48650: e6a1 asrl %d3,%d1 <== NOT EXECUTED the_priority_map->ready_major = mask; the_priority_map->block_major = ~mask; mask = _Priority_Mask( minor ); 48652: e0a2 asrl %d0,%d2 <== NOT EXECUTED the_priority_map->ready_minor = mask; 48654: 3142 0096 movew %d2,%a0@(150) <== NOT EXECUTED Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = 48658: d683 addl %d3,%d3 <== NOT EXECUTED the_priority_map->ready_major = mask; the_priority_map->block_major = ~mask; mask = _Priority_Mask( minor ); the_priority_map->ready_minor = mask; the_priority_map->block_minor = ~mask; 4865a: 4682 notl %d2 <== NOT EXECUTED Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = 4865c: 0683 0005 8878 addil #362616,%d3 <== NOT EXECUTED the_priority_map->ready_major = mask; the_priority_map->block_major = ~mask; mask = _Priority_Mask( minor ); the_priority_map->ready_minor = mask; the_priority_map->block_minor = ~mask; 48662: 3142 009a movew %d2,%a0@(154) <== NOT EXECUTED 48666: 2144 008c movel %d4,%a0@(140) <== NOT EXECUTED the_priority_map->minor = &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; 4866a: 3141 0094 movew %d1,%a0@(148) <== NOT EXECUTED the_priority_map->block_major = ~mask; 4866e: 4681 notl %d1 <== NOT EXECUTED Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = 48670: 2143 0090 movel %d3,%a0@(144) <== NOT EXECUTED _Priority_Initialize_information( &the_thread->Priority_map, new_priority ); } 48674: 4cd7 003c moveml %sp@,%d2-%d5 <== NOT EXECUTED 48678: 4e5e unlk %fp <== NOT EXECUTED &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; the_priority_map->block_major = ~mask; 4867a: 3141 0098 movew %d1,%a0@(152) <== NOT EXECUTED 4867e: 4e75 rts 00048680 <_Thread_Set_state>: void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { 48680: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48684: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 48688: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 4868c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED ) { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 48692: 226a 008c moveal %a2@(140),%a1 <== NOT EXECUTED _ISR_Disable( level ); 48696: 40c3 movew %sr,%d3 <== NOT EXECUTED 48698: 8083 orl %d3,%d0 <== NOT EXECUTED 4869a: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_States_Is_ready( the_thread->current_state ) ) { 4869c: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 486a0: 6644 bnes 486e6 <_Thread_Set_state+0x66> <== NOT EXECUTED _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 486a2: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { 486a6: 2229 0008 movel %a1@(8),%d1 <== NOT EXECUTED _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 486aa: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { 486ae: b291 cmpl %a1@,%d1 <== NOT EXECUTED 486b0: 6700 009a beqw 4874c <_Thread_Set_state+0xcc> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 486b4: 2252 moveal %a2@,%a1 <== NOT EXECUTED previous = the_node->previous; 486b6: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED next->previous = previous; previous->next = next; 486ba: 2089 movel %a1,%a0@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 486bc: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED _Priority_Remove_from_bit_map( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 486c0: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 486c6: 46c3 movew %d3,%sr <== NOT EXECUTED 486c8: 8083 orl %d3,%d0 <== NOT EXECUTED 486ca: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) 486cc: b5f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a2 <== NOT EXECUTED 486d2: 6730 beqs 48704 <_Thread_Set_state+0x84> <== NOT EXECUTED _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 486d4: b5f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED 486da: 671c beqs 486f8 <_Thread_Set_state+0x78> <== NOT EXECUTED _Context_Switch_necessary = TRUE; _ISR_Enable( level ); 486dc: 46c3 movew %d3,%sr <== NOT EXECUTED } 486de: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 486e2: 4e5e unlk %fp <== NOT EXECUTED 486e4: 4e75 rts <== NOT EXECUTED Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = 486e6: 80ae 000c orl %fp@(12),%d0 <== NOT EXECUTED 486ea: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); 486ee: 46c3 movew %d3,%sr <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = TRUE; _ISR_Enable( level ); } 486f0: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 486f4: 4e5e unlk %fp <== NOT EXECUTED 486f6: 4e75 rts <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = TRUE; 486f8: 7201 moveq #1,%d1 <== NOT EXECUTED 486fa: 13c1 0005 8822 moveb %d1,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 48700: 46c3 movew %d3,%sr <== NOT EXECUTED 48702: 60da bras 486de <_Thread_Set_state+0x5e> <== NOT EXECUTED 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 ); 48704: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 4870a: 4840 swap %d0 <== NOT EXECUTED 4870c: 04c0 ff1 %d0 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4870e: 41f9 0005 8878 lea 58878 <_Priority_Bit_map>,%a0 <== NOT EXECUTED 48714: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 4871a: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 <== NOT EXECUTED 4871e: 4841 swap %d1 <== NOT EXECUTED 48720: 04c1 ff1 %d1 <== NOT EXECUTED * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 48722: e988 lsll #4,%d0 <== NOT EXECUTED 48724: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 4872a: d081 addl %d1,%d0 <== NOT EXECUTED 4872c: 2079 0005 8700 moveal 58700 <_Thread_Ready_chain>,%a0 <== NOT EXECUTED 48732: 2400 movel %d0,%d2 <== NOT EXECUTED 48734: e588 lsll #2,%d0 <== NOT EXECUTED 48736: e98a lsll #4,%d2 <== NOT EXECUTED 48738: 91c0 subal %d0,%a0 <== NOT EXECUTED 4873a: d1c2 addal %d2,%a0 <== NOT EXECUTED 4873c: 23d0 0005 87e2 movel %a0@,587e2 <_Thread_Heir> <== NOT EXECUTED _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 48742: b5f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED 48748: 6692 bnes 486dc <_Thread_Set_state+0x5c> <== NOT EXECUTED 4874a: 60ac bras 486f8 <_Thread_Set_state+0x78> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 4874c: 206a 0090 moveal %a2@(144),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48750: 2009 movel %a1,%d0 <== NOT EXECUTED 48752: 5880 addql #4,%d0 <== NOT EXECUTED 48754: 2280 movel %d0,%a1@ <== NOT EXECUTED 48756: 3210 movew %a0@,%d1 <== NOT EXECUTED 48758: 302a 009a movew %a2@(154),%d0 <== NOT EXECUTED 4875c: c280 andl %d0,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4875e: 2349 0008 movel %a1,%a1@(8) <== NOT EXECUTED 48762: 3081 movew %d1,%a0@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48764: 42a9 0004 clrl %a1@(4) <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) 48768: 4a41 tstw %d1 <== NOT EXECUTED 4876a: 6600 ff54 bnew 486c0 <_Thread_Set_state+0x40> <== NOT EXECUTED _Priority_Major_bit_map &= the_priority_map->block_major; 4876e: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 48774: 322a 0098 movew %a2@(152),%d1 <== NOT EXECUTED 48778: c081 andl %d1,%d0 <== NOT EXECUTED 4877a: 33c0 0005 8808 movew %d0,58808 <_Priority_Major_bit_map> <== NOT EXECUTED _Priority_Remove_from_bit_map( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 48780: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 48786: 46c3 movew %d3,%sr <== NOT EXECUTED 48788: 8083 orl %d3,%d0 <== NOT EXECUTED 4878a: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) 4878c: b5f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a2 <== NOT EXECUTED 48792: 6600 ff40 bnew 486d4 <_Thread_Set_state+0x54> <== NOT EXECUTED 48796: 6000 ff6c braw 48704 <_Thread_Set_state+0x84> <== NOT EXECUTED ... 0004879c <_Thread_Set_transient>: */ void _Thread_Set_transient( Thread_Control *the_thread ) { 4879c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 487a0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 487a2: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 487a6: 2f02 movel %d2,%sp@- <== NOT EXECUTED ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 487a8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED { ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; 487ae: 226a 008c moveal %a2@(140),%a1 <== NOT EXECUTED _ISR_Disable( level ); 487b2: 40c2 movew %sr,%d2 <== NOT EXECUTED 487b4: 8082 orl %d2,%d0 <== NOT EXECUTED 487b6: 46c0 movew %d0,%sr <== NOT EXECUTED old_state = the_thread->current_state; 487b8: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); 487bc: 7204 moveq #4,%d1 <== NOT EXECUTED 487be: 8280 orl %d0,%d1 <== NOT EXECUTED 487c0: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED if ( _States_Is_ready( old_state ) ) { 487c4: 4a80 tstl %d0 <== NOT EXECUTED 487c6: 6614 bnes 487dc <_Thread_Set_transient+0x40> <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { 487c8: 2029 0008 movel %a1@(8),%d0 <== NOT EXECUTED 487cc: b091 cmpl %a1@,%d0 <== NOT EXECUTED 487ce: 6716 beqs 487e6 <_Thread_Set_transient+0x4a> <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 487d0: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 487d4: 2052 moveal %a2@,%a0 <== NOT EXECUTED previous = the_node->previous; next->previous = previous; previous->next = next; 487d6: 2288 movel %a0,%a1@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 487d8: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 487dc: 46c2 movew %d2,%sr <== NOT EXECUTED } 487de: 241f movel %sp@+,%d2 <== NOT EXECUTED 487e0: 245f moveal %sp@+,%a2 <== NOT EXECUTED 487e2: 4e5e unlk %fp <== NOT EXECUTED 487e4: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 487e6: 206a 0090 moveal %a2@(144),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 487ea: 2209 movel %a1,%d1 <== NOT EXECUTED 487ec: 5881 addql #4,%d1 <== NOT EXECUTED 487ee: 2281 movel %d1,%a1@ <== NOT EXECUTED 487f0: 3210 movew %a0@,%d1 <== NOT EXECUTED 487f2: 302a 009a movew %a2@(154),%d0 <== NOT EXECUTED 487f6: c280 andl %d0,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 487f8: 2349 0008 movel %a1,%a1@(8) <== NOT EXECUTED 487fc: 3081 movew %d1,%a0@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 487fe: 42a9 0004 clrl %a1@(4) <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) 48802: 4a41 tstw %d1 <== NOT EXECUTED 48804: 66d6 bnes 487dc <_Thread_Set_transient+0x40> <== NOT EXECUTED _Priority_Major_bit_map &= the_priority_map->block_major; 48806: 322a 0098 movew %a2@(152),%d1 <== NOT EXECUTED 4880a: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 48810: c081 andl %d1,%d0 <== NOT EXECUTED 48812: 33c0 0005 8808 movew %d0,58808 <_Priority_Major_bit_map> <== NOT EXECUTED } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 48818: 46c2 movew %d2,%sr <== NOT EXECUTED } 4881a: 241f movel %sp@+,%d2 <== NOT EXECUTED 4881c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4881e: 4e5e unlk %fp <== NOT EXECUTED 48820: 4e75 rts <== NOT EXECUTED ... 00048824 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 48824: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48828: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4882a: 2039 0005 6c3e movel 56c3e ,%d0 <== NOT EXECUTED 48830: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 48834: b082 cmpl %d2,%d0 <== NOT EXECUTED 48836: 6302 blss 4883a <_Thread_Stack_Allocate+0x16> <== NOT EXECUTED 48838: 2400 movel %d0,%d2 <== NOT EXECUTED * 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_Table->stack_allocate_hook ) { 4883a: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 48840: 2068 0020 moveal %a0@(32),%a0 <== NOT EXECUTED 48844: 4a88 tstl %a0 <== NOT EXECUTED 48846: 6720 beqs 48868 <_Thread_Stack_Allocate+0x44> <== NOT EXECUTED stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 48848: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4884a: 4e90 jsr %a0@ <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 4884c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 48850: 4a80 tstl %d0 <== NOT EXECUTED 48852: 56c1 sne %d1 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; 48854: 2140 00cc movel %d0,%a0@(204) <== NOT EXECUTED return the_stack_size; } 48858: 2002 movel %d2,%d0 <== NOT EXECUTED 4885a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED * the RTEMS workspace allocate. This is so the stack free * routine can call the correct deallocation routine. */ if ( _Configuration_Table->stack_allocate_hook ) { stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 4885e: 588f addql #4,%sp <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 48860: 49c1 extbl %d1 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 48862: 4e5e unlk %fp <== NOT EXECUTED 48864: c081 andl %d1,%d0 <== NOT EXECUTED 48866: 4e75 rts <== NOT EXECUTED * 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 ); 48868: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4886a: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 48870: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 48874: 4a80 tstl %d0 <== NOT EXECUTED 48876: 56c1 sne %d1 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; 48878: 2140 00cc movel %d0,%a0@(204) <== NOT EXECUTED return the_stack_size; } 4887c: 2002 movel %d2,%d0 <== NOT EXECUTED 4887e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED * 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 ); 48882: 588f addql #4,%sp <== NOT EXECUTED } if ( !stack_addr ) 48884: 49c1 extbl %d1 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 48886: 4e5e unlk %fp <== NOT EXECUTED 48888: c081 andl %d1,%d0 <== NOT EXECUTED 4888a: 4e75 rts 0004888c <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 4888c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48890: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48892: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 48896: 4a2a 00be tstb %a2@(190) <== NOT EXECUTED 4889a: 671a beqs 488b6 <_Thread_Stack_Free+0x2a> <== NOT EXECUTED * 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_Table->stack_free_hook ) 4889c: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 488a2: 2028 0024 movel %a0@(36),%d0 <== NOT EXECUTED 488a6: 6714 beqs 488bc <_Thread_Stack_Free+0x30> <== NOT EXECUTED (*_Configuration_Table->stack_free_hook)( 488a8: 2240 moveal %d0,%a1 <== NOT EXECUTED 488aa: 2d6a 00c4 0008 movel %a2@(196),%fp@(8) <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 488b0: 245f moveal %sp@+,%a2 <== NOT EXECUTED 488b2: 4e5e unlk %fp <== NOT EXECUTED * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( _Configuration_Table->stack_free_hook ) (*_Configuration_Table->stack_free_hook)( 488b4: 4ed1 jmp %a1@ <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 488b6: 245f moveal %sp@+,%a2 <== NOT EXECUTED 488b8: 4e5e unlk %fp <== NOT EXECUTED 488ba: 4e75 rts <== NOT EXECUTED if ( _Configuration_Table->stack_free_hook ) (*_Configuration_Table->stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 488bc: 2d6a 00c4 0008 movel %a2@(196),%fp@(8) <== NOT EXECUTED } 488c2: 245f moveal %sp@+,%a2 <== NOT EXECUTED 488c4: 4e5e unlk %fp <== NOT EXECUTED if ( _Configuration_Table->stack_free_hook ) (*_Configuration_Table->stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 488c6: 4ef9 0004 9140 jmp 49140 <_Workspace_Free> <== NOT EXECUTED 00048920 <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 48920: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48924: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48926: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( _States_Is_dormant( the_thread->current_state ) ) { 4892a: 7001 moveq #1,%d0 <== NOT EXECUTED 4892c: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED 48930: 6608 bnes 4893a <_Thread_Start+0x1a> <== NOT EXECUTED return true; } return false; } 48932: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48936: 4e5e unlk %fp <== NOT EXECUTED 48938: 4e75 rts <== NOT EXECUTED the_thread->Start.prototype = the_prototype; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; _Thread_Load_environment( the_thread ); 4893a: 2f0a movel %a2,%sp@- <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( _States_Is_dormant( the_thread->current_state ) ) { the_thread->Start.entry_point = (Thread_Entry) entry_point; 4893c: 256e 0010 009c movel %fp@(16),%a2@(156) <== NOT EXECUTED the_thread->Start.prototype = the_prototype; 48942: 256e 000c 00a0 movel %fp@(12),%a2@(160) <== NOT EXECUTED the_thread->Start.pointer_argument = pointer_argument; 48948: 256e 0014 00a4 movel %fp@(20),%a2@(164) <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; 4894e: 256e 0018 00a8 movel %fp@(24),%a2@(168) <== NOT EXECUTED _Thread_Load_environment( the_thread ); 48954: 4eb9 0004 b700 jsr 4b700 <_Thread_Load_environment> <== NOT EXECUTED _Thread_Ready( the_thread ); 4895a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4895c: 4eb9 0004 b9ec jsr 4b9ec <_Thread_Ready> <== NOT EXECUTED _User_extensions_Thread_start( the_thread ); 48962: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48964: 4eb9 0004 8e50 jsr 48e50 <_User_extensions_Thread_start> <== NOT EXECUTED return true; } return false; } 4896a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED _Thread_Load_environment( the_thread ); _Thread_Ready( the_thread ); _User_extensions_Thread_start( the_thread ); 4896e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED return true; } return false; } 48974: 4e5e unlk %fp <== NOT EXECUTED _Thread_Load_environment( the_thread ); _Thread_Ready( the_thread ); _User_extensions_Thread_start( the_thread ); 48976: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } return false; } 48978: 4e75 rts <== NOT EXECUTED ... 000488cc <_Thread_Start_multitasking>: 488cc: 7003 moveq #3,%d0 <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = FALSE; _Thread_Executing = _Thread_Heir; 488ce: 2079 0005 87e2 moveal 587e2 <_Thread_Heir>,%a0 <== NOT EXECUTED 488d4: 23c0 0005 88e6 movel %d0,588e6 <_System_state_Current> <== NOT EXECUTED * the system is shut down. */ _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = FALSE; 488da: 4200 clrb %d0 <== NOT EXECUTED * ready chain * select heir */ void _Thread_Start_multitasking( void ) { 488dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED * the system is shut down. */ _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = FALSE; 488e0: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _Thread_Executing = _Thread_Heir; 488e6: 23c8 0005 8812 movel %a0,58812 <_Thread_Executing> <== NOT EXECUTED #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 ) 488ec: 4aa8 0104 tstl %a0@(260) <== NOT EXECUTED 488f0: 670c beqs 488fe <_Thread_Start_multitasking+0x32> <== NOT EXECUTED _Context_Restore_fp( &_Thread_Heir->fp_context ); 488f2: 4868 0104 pea %a0@(260) <== NOT EXECUTED 488f6: 4eb9 0004 9238 jsr 49238 <_CPU_Context_restore_fp> <== NOT EXECUTED 488fc: 588f addql #4,%sp <== NOT EXECUTED #endif _Context_Switch( &_Thread_BSP_context, &_Thread_Heir->Registers ); 488fe: 2039 0005 87e2 movel 587e2 <_Thread_Heir>,%d0 <== NOT EXECUTED 48904: 0680 0000 00d0 addil #208,%d0 <== NOT EXECUTED 4890a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4890c: 4879 0005 8720 pea 58720 <_Thread_BSP_context> <== NOT EXECUTED 48912: 4eb9 0004 921c jsr 4921c <_CPU_Context_switch> <== NOT EXECUTED 48918: 508f addql #8,%sp <== NOT EXECUTED } 4891a: 4e5e unlk %fp <== NOT EXECUTED 4891c: 4e75 rts <== NOT EXECUTED ... 0004897c <_Thread_Suspend>: */ void _Thread_Suspend( Thread_Control *the_thread ) { 4897c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48980: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 48984: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 48988: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED ) { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 4898e: 226a 008c moveal %a2@(140),%a1 <== NOT EXECUTED _ISR_Disable( level ); 48992: 40c3 movew %sr,%d3 <== NOT EXECUTED 48994: 8083 orl %d3,%d0 <== NOT EXECUTED 48996: 46c0 movew %d0,%sr <== NOT EXECUTED the_thread->suspend_count++; 48998: 52aa 0070 addql #1,%a2@(112) <== NOT EXECUTED if ( !_States_Is_ready( the_thread->current_state ) ) { 4899c: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 489a0: 6642 bnes 489e4 <_Thread_Suspend+0x68> <== NOT EXECUTED return; } the_thread->current_state = STATES_SUSPENDED; if ( _Chain_Has_only_one_node( ready ) ) { 489a2: 2229 0008 movel %a1@(8),%d1 <== NOT EXECUTED _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 489a6: 7002 moveq #2,%d0 <== NOT EXECUTED 489a8: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { 489ac: b291 cmpl %a1@,%d1 <== NOT EXECUTED 489ae: 6700 009a beqw 48a4a <_Thread_Suspend+0xce> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 489b2: 2252 moveal %a2@,%a1 <== NOT EXECUTED previous = the_node->previous; 489b4: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED next->previous = previous; previous->next = next; 489b8: 2089 movel %a1,%a0@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 489ba: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED _Priority_Remove_from_bit_map( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 489be: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 489c4: 46c3 movew %d3,%sr <== NOT EXECUTED 489c6: 8083 orl %d3,%d0 <== NOT EXECUTED 489c8: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) 489ca: b5f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a2 <== NOT EXECUTED 489d0: 6730 beqs 48a02 <_Thread_Suspend+0x86> <== NOT EXECUTED _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 489d2: b5f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED 489d8: 671c beqs 489f6 <_Thread_Suspend+0x7a> <== NOT EXECUTED _Context_Switch_necessary = TRUE; _ISR_Enable( level ); 489da: 46c3 movew %d3,%sr <== NOT EXECUTED } 489dc: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 489e0: 4e5e unlk %fp <== NOT EXECUTED 489e2: 4e75 rts <== NOT EXECUTED ready = the_thread->ready; _ISR_Disable( level ); the_thread->suspend_count++; if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = 489e4: 7202 moveq #2,%d1 <== NOT EXECUTED 489e6: 8280 orl %d0,%d1 <== NOT EXECUTED 489e8: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); 489ec: 46c3 movew %d3,%sr <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = TRUE; _ISR_Enable( level ); } 489ee: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 489f2: 4e5e unlk %fp <== NOT EXECUTED 489f4: 4e75 rts <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = TRUE; 489f6: 7201 moveq #1,%d1 <== NOT EXECUTED 489f8: 13c1 0005 8822 moveb %d1,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 489fe: 46c3 movew %d3,%sr <== NOT EXECUTED 48a00: 60da bras 489dc <_Thread_Suspend+0x60> <== NOT EXECUTED 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 ); 48a02: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 48a08: 4840 swap %d0 <== NOT EXECUTED 48a0a: 04c0 ff1 %d0 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 48a0c: 41f9 0005 8878 lea 58878 <_Priority_Bit_map>,%a0 <== NOT EXECUTED 48a12: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED 48a18: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 <== NOT EXECUTED 48a1c: 4841 swap %d1 <== NOT EXECUTED 48a1e: 04c1 ff1 %d1 <== NOT EXECUTED 48a20: e988 lsll #4,%d0 <== NOT EXECUTED 48a22: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 48a28: d081 addl %d1,%d0 <== NOT EXECUTED 48a2a: 2079 0005 8700 moveal 58700 <_Thread_Ready_chain>,%a0 <== NOT EXECUTED 48a30: 2400 movel %d0,%d2 <== NOT EXECUTED 48a32: e588 lsll #2,%d0 <== NOT EXECUTED 48a34: e98a lsll #4,%d2 <== NOT EXECUTED 48a36: 91c0 subal %d0,%a0 <== NOT EXECUTED 48a38: d1c2 addal %d2,%a0 <== NOT EXECUTED 48a3a: 23d0 0005 87e2 movel %a0@,587e2 <_Thread_Heir> <== NOT EXECUTED _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 48a40: b5f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED 48a46: 6692 bnes 489da <_Thread_Suspend+0x5e> <== NOT EXECUTED 48a48: 60ac bras 489f6 <_Thread_Suspend+0x7a> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 48a4a: 206a 0090 moveal %a2@(144),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48a4e: 2009 movel %a1,%d0 <== NOT EXECUTED 48a50: 5880 addql #4,%d0 <== NOT EXECUTED 48a52: 2280 movel %d0,%a1@ <== NOT EXECUTED 48a54: 3210 movew %a0@,%d1 <== NOT EXECUTED 48a56: 302a 009a movew %a2@(154),%d0 <== NOT EXECUTED 48a5a: c280 andl %d0,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 48a5c: 2349 0008 movel %a1,%a1@(8) <== NOT EXECUTED 48a60: 3081 movew %d1,%a0@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48a62: 42a9 0004 clrl %a1@(4) <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) 48a66: 4a41 tstw %d1 <== NOT EXECUTED 48a68: 6600 ff54 bnew 489be <_Thread_Suspend+0x42> <== NOT EXECUTED _Priority_Major_bit_map &= the_priority_map->block_major; 48a6c: 3039 0005 8808 movew 58808 <_Priority_Major_bit_map>,%d0 <== NOT EXECUTED 48a72: 322a 0098 movew %a2@(152),%d1 <== NOT EXECUTED 48a76: c081 andl %d1,%d0 <== NOT EXECUTED 48a78: 33c0 0005 8808 movew %d0,58808 <_Priority_Major_bit_map> <== NOT EXECUTED _Priority_Remove_from_bit_map( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 48a7e: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 48a84: 46c3 movew %d3,%sr <== NOT EXECUTED 48a86: 8083 orl %d3,%d0 <== NOT EXECUTED 48a88: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) 48a8a: b5f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a2 <== NOT EXECUTED 48a90: 6600 ff40 bnew 489d2 <_Thread_Suspend+0x56> <== NOT EXECUTED 48a94: 6000 ff6c braw 48a02 <_Thread_Suspend+0x86> <== NOT EXECUTED 00048a98 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 48a98: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48a9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; 48a9e: 2479 0005 8812 moveal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 48aa4: 4a2a 0076 tstb %a2@(118) <== NOT EXECUTED 48aa8: 6720 beqs 48aca <_Thread_Tickle_timeslice+0x32> <== NOT EXECUTED return; if ( !_States_Is_ready( executing->current_state ) ) 48aaa: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 48aae: 661a bnes 48aca <_Thread_Tickle_timeslice+0x32> <== NOT EXECUTED /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 48ab0: 202a 007c movel %a2@(124),%d0 <== NOT EXECUTED 48ab4: 7201 moveq #1,%d1 <== NOT EXECUTED 48ab6: b280 cmpl %d0,%d1 <== NOT EXECUTED 48ab8: 6210 bhis 48aca <_Thread_Tickle_timeslice+0x32> <== NOT EXECUTED 48aba: 123c 0002 moveb #2,%d1 <== NOT EXECUTED 48abe: b280 cmpl %d0,%d1 <== NOT EXECUTED 48ac0: 642e bccs 48af0 <_Thread_Tickle_timeslice+0x58> <== NOT EXECUTED 48ac2: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 48ac6: b280 cmpl %d0,%d1 <== NOT EXECUTED 48ac8: 6708 beqs 48ad2 <_Thread_Tickle_timeslice+0x3a> <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; } } 48aca: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48ace: 4e5e unlk %fp <== NOT EXECUTED 48ad0: 4e75 rts <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 48ad2: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 48ad6: 5380 subql #1,%d0 <== NOT EXECUTED 48ad8: 2540 0078 movel %d0,%a2@(120) <== NOT EXECUTED 48adc: 66ec bnes 48aca <_Thread_Tickle_timeslice+0x32> <== NOT EXECUTED (*executing->budget_callout)( executing ); 48ade: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48ae0: 206a 0080 moveal %a2@(128),%a0 <== NOT EXECUTED 48ae4: 4e90 jsr %a0@ <== NOT EXECUTED break; } } 48ae6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); 48aea: 588f addql #4,%sp <== NOT EXECUTED break; } } 48aec: 4e5e unlk %fp <== NOT EXECUTED 48aee: 4e75 rts <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_NONE: break; case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: if ( (int)(--executing->cpu_time_budget) <= 0 ) { 48af0: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 48af4: 5380 subql #1,%d0 <== NOT EXECUTED 48af6: 2540 0078 movel %d0,%a2@(120) <== NOT EXECUTED 48afa: 6ece bgts 48aca <_Thread_Tickle_timeslice+0x32> <== NOT EXECUTED _Thread_Reset_timeslice(); 48afc: 4eb9 0004 baac jsr 4baac <_Thread_Reset_timeslice> <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 48b02: 41f9 0005 8704 lea 58704 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 48b08: 2550 0078 movel %a0@,%a2@(120) <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; } } 48b0c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48b10: 4e5e unlk %fp <== NOT EXECUTED 48b12: 4e75 rts 00048b14 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 48b14: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 48b18: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 48b1c: 2679 0005 8812 moveal 58812 <_Thread_Executing>,%a3 <== NOT EXECUTED ready = executing->ready; _ISR_Disable( level ); 48b22: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; 48b28: 286b 008c moveal %a3@(140),%a4 <== NOT EXECUTED _ISR_Disable( level ); 48b2c: 2002 movel %d2,%d0 <== NOT EXECUTED 48b2e: 40c1 movew %sr,%d1 <== NOT EXECUTED 48b30: 8081 orl %d1,%d0 <== NOT EXECUTED 48b32: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_Chain_Has_only_one_node( ready ) ) { 48b34: 202c 0008 movel %a4@(8),%d0 <== NOT EXECUTED 48b38: b094 cmpl %a4@,%d0 <== NOT EXECUTED 48b3a: 6752 beqs 48b8e <_Thread_Yield_processor+0x7a> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 48b3c: 2053 moveal %a3@,%a0 <== NOT EXECUTED previous = the_node->previous; 48b3e: 226b 0004 moveal %a3@(4),%a1 <== NOT EXECUTED next->previous = previous; previous->next = next; 48b42: 2288 movel %a0,%a1@ <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 48b44: 200c movel %a4,%d0 <== NOT EXECUTED 48b46: 5880 addql #4,%d0 <== NOT EXECUTED 48b48: 2680 movel %d0,%a3@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 48b4a: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 48b4e: 246c 0008 moveal %a4@(8),%a2 <== NOT EXECUTED the_chain->last = the_node; 48b52: 294b 0008 movel %a3,%a4@(8) <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 48b56: 274a 0004 movel %a2,%a3@(4) <== NOT EXECUTED 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; 48b5a: 248b movel %a3,%a2@ <== NOT EXECUTED _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 48b5c: 2002 movel %d2,%d0 <== NOT EXECUTED 48b5e: 46c1 movew %d1,%sr <== NOT EXECUTED 48b60: 8081 orl %d1,%d0 <== NOT EXECUTED 48b62: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) 48b64: b7f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a3 <== NOT EXECUTED 48b6a: 6712 beqs 48b7e <_Thread_Yield_processor+0x6a> <== NOT EXECUTED _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = TRUE; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = TRUE; 48b6c: 7001 moveq #1,%d0 <== NOT EXECUTED 48b6e: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 48b74: 46c1 movew %d1,%sr <== NOT EXECUTED } 48b76: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED 48b7a: 4e5e unlk %fp <== NOT EXECUTED 48b7c: 4e75 rts <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 48b7e: 23d4 0005 87e2 movel %a4@,587e2 <_Thread_Heir> <== NOT EXECUTED _Context_Switch_necessary = TRUE; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = TRUE; 48b84: 7001 moveq #1,%d0 <== NOT EXECUTED 48b86: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED 48b8c: 60e6 bras 48b74 <_Thread_Yield_processor+0x60> <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = TRUE; } else if ( !_Thread_Is_heir( executing ) ) 48b8e: b7f9 0005 87e2 cmpal 587e2 <_Thread_Heir>,%a3 <== NOT EXECUTED 48b94: 67de beqs 48b74 <_Thread_Yield_processor+0x60> <== NOT EXECUTED _Context_Switch_necessary = TRUE; 48b96: 7001 moveq #1,%d0 <== NOT EXECUTED 48b98: 13c0 0005 8822 moveb %d0,58822 <_Context_Switch_necessary> <== NOT EXECUTED 48b9e: 60d4 bras 48b74 <_Thread_Yield_processor+0x60> <== NOT EXECUTED 0004772c <_Thread_blocking_operation_Cancel>: void _Thread_blocking_operation_Cancel( Thread_blocking_operation_States sync_state, Thread_Control *the_thread, ISR_Level level ) { 4772c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47730: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47732: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 47736: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 4773a: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED /* * 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 ) ) { 4773e: 7202 moveq #2,%d1 <== NOT EXECUTED 47740: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED 47744: 671c beqs 47762 <_Thread_blocking_operation_Cancel+0x36> <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level ); 47746: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 47748: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4774c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47750: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 47756: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4775a: 4e5e unlk %fp <== NOT EXECUTED 4775c: 4ef9 0004 78e4 jmp 478e4 <_Thread_Clear_state> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 47762: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 47766: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED * 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 ) ) { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4776a: 46c0 movew %d0,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4776c: 486a 0048 pea %a2@(72) <== NOT EXECUTED 47770: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 47776: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4777a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4777e: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED * 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 ); 47784: 588f addql #4,%sp <== NOT EXECUTED 47786: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4778a: 4e5e unlk %fp <== NOT EXECUTED 4778c: 4ef9 0004 78e4 jmp 478e4 <_Thread_Clear_state> <== NOT EXECUTED ... 000480b8 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { 480b8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 480bc: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 480c0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 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 ) 480c4: 41f9 0004 8124 lea 48124 <_Thread_queue_Dequeue_priority>,%a0 <== NOT EXECUTED 480ca: 7001 moveq #1,%d0 <== NOT EXECUTED 480cc: b0aa 0034 cmpl %a2@(52),%d0 <== NOT EXECUTED 480d0: 6706 beqs 480d8 <_Thread_queue_Dequeue+0x20> <== NOT EXECUTED 480d2: 41f9 0004 b784 lea 4b784 <_Thread_queue_Dequeue_fifo>,%a0 <== NOT EXECUTED 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 ); 480d8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 480da: 4e90 jsr %a0@ <== NOT EXECUTED 480dc: 2200 movel %d0,%d1 <== NOT EXECUTED _ISR_Disable( level ); 480de: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 480e4: 40c2 movew %sr,%d2 <== NOT EXECUTED 480e6: 8082 orl %d2,%d0 <== NOT EXECUTED 480e8: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !the_thread ) { 480ea: 588f addql #4,%sp <== NOT EXECUTED 480ec: 4a81 tstl %d1 <== NOT EXECUTED 480ee: 670e beqs 480fe <_Thread_queue_Dequeue+0x46> <== NOT EXECUTED (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; the_thread = _Thread_Executing; } } _ISR_Enable( level ); 480f0: 46c2 movew %d2,%sr <== NOT EXECUTED return the_thread; } 480f2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 480f8: 4e5e unlk %fp <== NOT EXECUTED 480fa: 2001 movel %d1,%d0 <== NOT EXECUTED 480fc: 4e75 rts <== NOT EXECUTED the_thread = (*dequeue_p)( the_thread_queue ); _ISR_Disable( level ); if ( !the_thread ) { sync_state = the_thread_queue->sync_state; if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 480fe: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 48102: 7601 moveq #1,%d3 <== NOT EXECUTED 48104: 5380 subql #1,%d0 <== NOT EXECUTED 48106: b680 cmpl %d0,%d3 <== NOT EXECUTED 48108: 65e6 bcss 480f0 <_Thread_queue_Dequeue+0x38> <== NOT EXECUTED (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 4810a: 7003 moveq #3,%d0 <== NOT EXECUTED the_thread = _Thread_Executing; 4810c: 2239 0005 8812 movel 58812 <_Thread_Executing>,%d1 <== NOT EXECUTED _ISR_Disable( level ); if ( !the_thread ) { sync_state = the_thread_queue->sync_state; if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 48112: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED the_thread = _Thread_Executing; } } _ISR_Enable( level ); 48116: 46c2 movew %d2,%sr <== NOT EXECUTED return the_thread; } 48118: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4811e: 4e5e unlk %fp <== NOT EXECUTED 48120: 2001 movel %d1,%d0 <== NOT EXECUTED 48122: 4e75 rts 0004b784 <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { 4b784: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b788: 2f0b movel %a3,%sp@- <== NOT EXECUTED ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4b78a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { 4b790: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b792: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4b796: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b798: 8081 orl %d1,%d0 <== NOT EXECUTED 4b79a: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4b79c: 2049 moveal %a1,%a0 <== NOT EXECUTED 4b79e: 2458 moveal %a0@+,%a2 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { 4b7a0: b1ca cmpal %a2,%a0 <== NOT EXECUTED 4b7a2: 676a beqs 4b80e <_Thread_queue_Dequeue_fifo+0x8a> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 4b7a4: 2052 moveal %a2@,%a0 <== NOT EXECUTED the_chain->first = new_first; 4b7a6: 2288 movel %a0,%a1@ <== NOT EXECUTED the_thread = (Thread_Control *) 4b7a8: 264a moveal %a2,%a3 <== NOT EXECUTED _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4b7aa: 7002 moveq #2,%d0 <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 4b7ac: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED 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; 4b7b0: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4b7b4: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4b7b8: 6720 beqs 4b7da <_Thread_queue_Dequeue_fifo+0x56> <== NOT EXECUTED _ISR_Enable( level ); 4b7ba: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4b7bc: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4b7c2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b7c4: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } 4b7ca: 200b movel %a3,%d0 <== NOT EXECUTED 4b7cc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b7d0: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4b7d4: 508f addql #8,%sp <== NOT EXECUTED 4b7d6: 4e5e unlk %fp <== NOT EXECUTED 4b7d8: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4b7da: 7003 moveq #3,%d0 <== NOT EXECUTED 4b7dc: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4b7e0: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4b7e2: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4b7e6: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 4b7ec: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4b7f2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b7f4: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } 4b7fa: 200b movel %a3,%d0 <== NOT EXECUTED 4b7fc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b800: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4b804: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4b80a: 4e5e unlk %fp <== NOT EXECUTED 4b80c: 4e75 rts <== NOT EXECUTED #endif return the_thread; } _ISR_Enable( level ); 4b80e: 46c1 movew %d1,%sr <== NOT EXECUTED 4b810: 97cb subal %a3,%a3 <== NOT EXECUTED return NULL; } 4b812: 200b movel %a3,%d0 <== NOT EXECUTED 4b814: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4b818: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4b81c: 4e5e unlk %fp <== NOT EXECUTED 4b81e: 4e75 rts 00048124 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 48124: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 48128: 48d7 3c00 moveml %a2-%a5,%sp@ <== NOT EXECUTED Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 4812c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 48132: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 48136: 40c1 movew %sr,%d1 <== NOT EXECUTED 48138: 8081 orl %d1,%d0 <== NOT EXECUTED 4813a: 46c0 movew %d0,%sr <== NOT EXECUTED 4813c: 93c9 subal %a1,%a1 <== NOT EXECUTED 4813e: 244c moveal %a4,%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 48140: 2652 moveal %a2@,%a3 <== NOT EXECUTED for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { 48142: 41f1 9a01 lea %a1@(00000001,%a1:l:2),%a0 <== NOT EXECUTED Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 48146: d5fc 0000 000c addal #12,%a2 <== NOT EXECUTED 4814c: 5289 addql #1,%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { 4814e: 41f4 8c00 lea %a4@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 48152: b1cb cmpal %a3,%a0 <== NOT EXECUTED 48154: 6616 bnes 4816c <_Thread_queue_Dequeue_priority+0x48> <== NOT EXECUTED Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; 48156: 7004 moveq #4,%d0 <== NOT EXECUTED 48158: b089 cmpl %a1,%d0 <== NOT EXECUTED 4815a: 66e4 bnes 48140 <_Thread_queue_Dequeue_priority+0x1c> <== NOT EXECUTED } /* * We did not find a thread to unblock. */ _ISR_Enable( level ); 4815c: 46c1 movew %d1,%sr <== NOT EXECUTED 4815e: 99cc subal %a4,%a4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48160: 200c movel %a4,%d0 <== NOT EXECUTED 48162: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 <== NOT EXECUTED 48168: 4e5e unlk %fp <== NOT EXECUTED 4816a: 4e75 rts <== NOT EXECUTED _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; new_first_node = the_thread->Wait.Block2n.first; 4816c: 206b 0038 moveal %a3@(56),%a0 <== NOT EXECUTED new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 48170: 2453 moveal %a3@,%a2 <== NOT EXECUTED previous_node = the_thread->Object.Node.previous; 48172: 226b 0004 moveal %a3@(4),%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 48176: 200b movel %a3,%d0 <== NOT EXECUTED */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; 48178: 42ab 0044 clrl %a3@(68) <== NOT EXECUTED _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 *) 4817c: 284b moveal %a3,%a4 <== NOT EXECUTED new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 4817e: 0680 0000 003c addil #60,%d0 <== NOT EXECUTED 48184: b088 cmpl %a0,%d0 <== NOT EXECUTED 48186: 6700 0090 beqw 48218 <_Thread_queue_Dequeue_priority+0xf4> <== NOT EXECUTED last_node = the_thread->Wait.Block2n.last; 4818a: 202b 0040 movel %a3@(64),%d0 <== NOT EXECUTED new_second_node = new_first_node->next; 4818e: 2a50 moveal %a0@,%a5 <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; 48190: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 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; 48194: 2288 movel %a0,%a1@ <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 48196: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED 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; 4819a: 208a movel %a2,%a0@ <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 4819c: 226b 0040 moveal %a3@(64),%a1 <== NOT EXECUTED 481a0: b3eb 0038 cmpal %a3@(56),%a1 <== NOT EXECUTED 481a4: 671a beqs 481c0 <_Thread_queue_Dequeue_priority+0x9c> <== NOT EXECUTED /* > two threads on 2-n */ new_second_node->previous = 481a6: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED 481aa: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED _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 ); 481ae: 2240 moveal %d0,%a1 <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ new_second_node->previous = _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 481b0: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; 481b4: 2140 0040 movel %d0,%a0@(64) <== NOT EXECUTED last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 481b8: d1fc 0000 003c addal #60,%a0 <== NOT EXECUTED 481be: 2288 movel %a0,%a1@ <== NOT EXECUTED } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 481c0: 7002 moveq #2,%d0 <== NOT EXECUTED 481c2: b0ab 0050 cmpl %a3@(80),%d0 <== NOT EXECUTED 481c6: 671e beqs 481e6 <_Thread_queue_Dequeue_priority+0xc2> <== NOT EXECUTED _ISR_Enable( level ); 481c8: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 481ca: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 481d0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 481d2: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 481d8: 200c movel %a4,%d0 <== NOT EXECUTED 481da: 508f addql #8,%sp <== NOT EXECUTED 481dc: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 <== NOT EXECUTED 481e2: 4e5e unlk %fp <== NOT EXECUTED 481e4: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 481e6: 7003 moveq #3,%d0 <== NOT EXECUTED 481e8: 2740 0050 movel %d0,%a3@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 481ec: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 481ee: 486b 0048 pea %a3@(72) <== NOT EXECUTED 481f2: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 481f8: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 481fe: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48200: 4eb9 0004 78e4 jsr 478e4 <_Thread_Clear_state> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48206: 200c movel %a4,%d0 <== NOT EXECUTED 48208: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4820e: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 <== NOT EXECUTED 48214: 4e5e unlk %fp <== NOT EXECUTED 48216: 4e75 rts <== NOT EXECUTED last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; next_node->previous = previous_node; 48218: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 4821c: 228a movel %a2,%a1@ <== NOT EXECUTED 4821e: 60a0 bras 481c0 <_Thread_queue_Dequeue_priority+0x9c> <== NOT EXECUTED 0004b820 <_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 ) { 4b820: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b824: 2f0a movel %a2,%sp@- <== NOT EXECUTED Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 4b826: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED Thread_blocking_operation_States _Thread_queue_Enqueue_fifo ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 4b82c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b82e: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4b832: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 4b836: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b838: 8081 orl %d1,%d0 <== NOT EXECUTED 4b83a: 46c0 movew %d0,%sr <== NOT EXECUTED sync_state = the_thread_queue->sync_state; 4b83c: 2029 0030 movel %a1@(48),%d0 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 4b840: 7401 moveq #1,%d2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4b842: 42a9 0030 clrl %a1@(48) <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 4b846: b480 cmpl %d0,%d2 <== NOT EXECUTED 4b848: 670e beqs 4b858 <_Thread_queue_Enqueue_fifo+0x38> <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 4b84a: 241f movel %sp@+,%d2 <== NOT EXECUTED * 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; 4b84c: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED return sync_state; } 4b850: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4b852: 4e5e unlk %fp <== NOT EXECUTED * 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; 4b854: 2081 movel %d1,%a0@ <== NOT EXECUTED return sync_state; } 4b856: 4e75 rts <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4b858: 2049 moveal %a1,%a0 <== NOT EXECUTED 4b85a: 5888 addql #4,%a0 <== NOT EXECUTED 4b85c: 2488 movel %a0,%a2@ <== NOT EXECUTED old_last_node = the_chain->last; 4b85e: 2069 0008 moveal %a1@(8),%a0 <== NOT EXECUTED the_chain->last = the_node; 4b862: 234a 0008 movel %a2,%a1@(8) <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 4b866: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 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; 4b86a: 2549 0044 movel %a1,%a2@(68) <== NOT EXECUTED 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; 4b86e: 208a movel %a2,%a0@ <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); 4b870: 46c1 movew %d1,%sr <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 4b872: 241f movel %sp@+,%d2 <== NOT EXECUTED 4b874: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4b876: 4e5e unlk %fp <== NOT EXECUTED 4b878: 4e75 rts <== NOT EXECUTED ... 000482c4 <_Thread_queue_Enqueue_priority>: Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 482c4: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 482c8: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED 482cc: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 482d0: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 482d4: 242a 0014 movel %a2@(20),%d2 <== NOT EXECUTED header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; 482d8: 282b 0038 movel %a3@(56),%d4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 482dc: 41ea 003c lea %a2@(60),%a0 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 482e0: 43ea 0038 lea %a2@(56),%a1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 482e4: 2202 movel %d2,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 482e6: 2548 0038 movel %a0,%a2@(56) <== NOT EXECUTED 482ea: ec89 lsrl #6,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 482ec: 2549 0040 movel %a1,%a2@(64) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 482f0: 42aa 003c clrl %a2@(60) <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) 482f4: 0802 0005 btst #5,%d2 <== NOT EXECUTED 482f8: 6666 bnes 48360 <_Thread_queue_Enqueue_priority+0x9c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 482fa: 2241 moveal %d1,%a1 <== NOT EXECUTED 482fc: 41f1 1a01 lea %a1@(00000001,%d1:l:2),%a0 <== NOT EXECUTED goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 48300: 2a3c 0000 0700 movel #1792,%d5 <== NOT EXECUTED 48306: 7c0c moveq #12,%d6 <== NOT EXECUTED 48308: 4c01 6800 mulsl %d1,%d6 <== NOT EXECUTED 4830c: 41f3 8c00 lea %a3@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 48310: 2005 movel %d5,%d0 <== NOT EXECUTED 48312: 40c3 movew %sr,%d3 <== NOT EXECUTED 48314: 8083 orl %d3,%d0 <== NOT EXECUTED 48316: 46c0 movew %d0,%sr <== NOT EXECUTED search_thread = (Thread_Control *) header->first; 48318: 2273 6800 moveal %a3@(00000000,%d6:l),%a1 <== NOT EXECUTED while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 4831c: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 4831e: 6700 0144 beqw 48464 <_Thread_queue_Enqueue_priority+0x1a0> <== NOT EXECUTED search_priority = search_thread->current_priority; 48322: 2229 0014 movel %a1@(20),%d1 <== NOT EXECUTED if ( priority <= search_priority ) 48326: b282 cmpl %d2,%d1 <== NOT EXECUTED 48328: 6418 bccs 48342 <_Thread_queue_Enqueue_priority+0x7e> <== NOT EXECUTED break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 4832a: 2005 movel %d5,%d0 <== NOT EXECUTED 4832c: 46c3 movew %d3,%sr <== NOT EXECUTED 4832e: 8083 orl %d3,%d0 <== NOT EXECUTED 48330: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_States_Are_set( search_thread->current_state, block_state) ) { 48332: 2004 movel %d4,%d0 <== NOT EXECUTED 48334: c0a9 0010 andl %a1@(16),%d0 <== NOT EXECUTED 48338: 6700 00c4 beqw 483fe <_Thread_queue_Enqueue_priority+0x13a> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = 4833c: 2251 moveal %a1@,%a1 <== NOT EXECUTED 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 ) ) { 4833e: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 48340: 66e0 bnes 48322 <_Thread_queue_Enqueue_priority+0x5e> <== NOT EXECUTED 48342: 2009 movel %a1,%d0 <== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48344: 7801 moveq #1,%d4 <== NOT EXECUTED 48346: b8ab 0030 cmpl %a3@(48),%d4 <== NOT EXECUTED 4834a: 6700 00c8 beqw 48414 <_Thread_queue_Enqueue_priority+0x150> <== NOT EXECUTED * 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; 4834e: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED return the_thread_queue->sync_state; 48352: 202b 0030 movel %a3@(48),%d0 <== NOT EXECUTED * 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; 48356: 2083 movel %d3,%a0@ <== NOT EXECUTED return the_thread_queue->sync_state; } 48358: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 4835c: 4e5e unlk %fp <== NOT EXECUTED 4835e: 4e75 rts <== NOT EXECUTED the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 48360: 2001 movel %d1,%d0 <== NOT EXECUTED 48362: e589 lsll #2,%d1 <== NOT EXECUTED 48364: e988 lsll #4,%d0 <== NOT EXECUTED 48366: 9081 subl %d1,%d0 <== NOT EXECUTED 48368: 41f3 0800 lea %a3@(00000000,%d0:l),%a0 <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 4836c: 4280 clrl %d0 <== NOT EXECUTED 4836e: 1039 0005 6c42 moveb 56c42 ,%d0 <== NOT EXECUTED _ISR_Disable( level ); 48374: 2a3c 0000 0700 movel #1792,%d5 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 4837a: 2200 movel %d0,%d1 <== NOT EXECUTED _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 4837c: 49e8 0008 lea %a0@(8),%a4 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48380: 5281 addql #1,%d1 <== NOT EXECUTED _ISR_Disable( level ); 48382: 2005 movel %d5,%d0 <== NOT EXECUTED 48384: 40c3 movew %sr,%d3 <== NOT EXECUTED 48386: 8083 orl %d3,%d0 <== NOT EXECUTED 48388: 46c0 movew %d0,%sr <== NOT EXECUTED search_thread = (Thread_Control *) header->last; 4838a: 2254 moveal %a4@,%a1 <== NOT EXECUTED while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 4838c: b3c8 cmpal %a0,%a1 <== NOT EXECUTED 4838e: 6720 beqs 483b0 <_Thread_queue_Enqueue_priority+0xec> <== NOT EXECUTED search_priority = search_thread->current_priority; 48390: 2229 0014 movel %a1@(20),%d1 <== NOT EXECUTED if ( priority >= search_priority ) 48394: b282 cmpl %d2,%d1 <== NOT EXECUTED 48396: 6318 blss 483b0 <_Thread_queue_Enqueue_priority+0xec> <== NOT EXECUTED break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 48398: 2005 movel %d5,%d0 <== NOT EXECUTED 4839a: 46c3 movew %d3,%sr <== NOT EXECUTED 4839c: 8083 orl %d3,%d0 <== NOT EXECUTED 4839e: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_States_Are_set( search_thread->current_state, block_state) ) { 483a0: 2004 movel %d4,%d0 <== NOT EXECUTED 483a2: c0a9 0010 andl %a1@(16),%d0 <== NOT EXECUTED 483a6: 6738 beqs 483e0 <_Thread_queue_Enqueue_priority+0x11c> <== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 483a8: 2269 0004 moveal %a1@(4),%a1 <== NOT EXECUTED 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 ) ) { 483ac: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 483ae: 66e0 bnes 48390 <_Thread_queue_Enqueue_priority+0xcc> <== NOT EXECUTED 483b0: 2009 movel %a1,%d0 <== NOT EXECUTED } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 483b2: 7801 moveq #1,%d4 <== NOT EXECUTED 483b4: b8ab 0030 cmpl %a3@(48),%d4 <== NOT EXECUTED 483b8: 6694 bnes 4834e <_Thread_queue_Enqueue_priority+0x8a> <== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 483ba: 42ab 0030 clrl %a3@(48) <== NOT EXECUTED if ( priority == search_priority ) 483be: b282 cmpl %d2,%d1 <== NOT EXECUTED 483c0: 677a beqs 4843c <_Thread_queue_Enqueue_priority+0x178> <== NOT EXECUTED goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 483c2: 2051 moveal %a1@,%a0 <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 483c4: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 483c8: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 483ca: 254b 0044 movel %a3,%a2@(68) <== NOT EXECUTED 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; 483ce: 228a movel %a2,%a1@ <== NOT EXECUTED next_node->previous = the_node; 483d0: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 483d4: 46c3 movew %d3,%sr <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 483d6: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 483da: 4e5e unlk %fp <== NOT EXECUTED the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 483dc: 7001 moveq #1,%d0 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 483de: 4e75 rts <== NOT EXECUTED if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 483e0: 46c3 movew %d3,%sr <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 483e2: 4280 clrl %d0 <== NOT EXECUTED 483e4: 1039 0005 6c42 moveb 56c42 ,%d0 <== NOT EXECUTED 483ea: 2200 movel %d0,%d1 <== NOT EXECUTED 483ec: 5281 addql #1,%d1 <== NOT EXECUTED _ISR_Disable( level ); 483ee: 2005 movel %d5,%d0 <== NOT EXECUTED 483f0: 40c3 movew %sr,%d3 <== NOT EXECUTED 483f2: 8083 orl %d3,%d0 <== NOT EXECUTED 483f4: 46c0 movew %d0,%sr <== NOT EXECUTED search_thread = (Thread_Control *) header->last; 483f6: 2254 moveal %a4@,%a1 <== NOT EXECUTED while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 483f8: b3c8 cmpal %a0,%a1 <== NOT EXECUTED 483fa: 6694 bnes 48390 <_Thread_queue_Enqueue_priority+0xcc> <== NOT EXECUTED 483fc: 60b2 bras 483b0 <_Thread_queue_Enqueue_priority+0xec> <== NOT EXECUTED if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 483fe: 46c3 movew %d3,%sr <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 48400: 2005 movel %d5,%d0 <== NOT EXECUTED 48402: 40c3 movew %sr,%d3 <== NOT EXECUTED 48404: 8083 orl %d3,%d0 <== NOT EXECUTED 48406: 46c0 movew %d0,%sr <== NOT EXECUTED search_thread = (Thread_Control *) header->first; 48408: 2273 6800 moveal %a3@(00000000,%d6:l),%a1 <== NOT EXECUTED while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 4840c: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 4840e: 6600 ff12 bnew 48322 <_Thread_queue_Enqueue_priority+0x5e> <== NOT EXECUTED 48412: 6050 bras 48464 <_Thread_queue_Enqueue_priority+0x1a0> <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48414: 42ab 0030 clrl %a3@(48) <== NOT EXECUTED if ( priority == search_priority ) 48418: b282 cmpl %d2,%d1 <== NOT EXECUTED 4841a: 6720 beqs 4843c <_Thread_queue_Enqueue_priority+0x178> <== NOT EXECUTED goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 4841c: 2069 0004 moveal %a1@(4),%a0 <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = search_node; 48420: 2489 movel %a1,%a2@ <== NOT EXECUTED the_node->previous = previous_node; 48422: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 48426: 254b 0044 movel %a3,%a2@(68) <== NOT EXECUTED 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; 4842a: 208a movel %a2,%a0@ <== NOT EXECUTED search_node->previous = the_node; 4842c: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 48430: 46c3 movew %d3,%sr <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48432: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 48436: 4e5e unlk %fp <== NOT EXECUTED 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; _ISR_Enable( level ); 48438: 7001 moveq #1,%d0 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 4843a: 4e75 rts <== NOT EXECUTED 4843c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4843e: d1fc 0000 003c addal #60,%a0 <== NOT EXECUTED _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; 48444: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = search_node; 48448: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = previous_node; 4844a: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 4844e: 254b 0044 movel %a3,%a2@(68) <== NOT EXECUTED 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; 48452: 228a movel %a2,%a1@ <== NOT EXECUTED search_node->previous = the_node; 48454: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 48458: 46c3 movew %d3,%sr <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 4845a: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 4845e: 4e5e unlk %fp <== NOT EXECUTED 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; _ISR_Enable( level ); 48460: 7001 moveq #1,%d0 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48462: 4e75 rts <== NOT EXECUTED 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 ) ) { 48464: 2008 movel %a0,%d0 <== NOT EXECUTED 48466: 72ff moveq #-1,%d1 <== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48468: 7801 moveq #1,%d4 <== NOT EXECUTED 4846a: b8ab 0030 cmpl %a3@(48),%d4 <== NOT EXECUTED 4846e: 6600 fede bnew 4834e <_Thread_queue_Enqueue_priority+0x8a> <== NOT EXECUTED 48472: 60a0 bras 48414 <_Thread_queue_Enqueue_priority+0x150> <== NOT EXECUTED 00048220 <_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 ) { 48220: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48224: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48226: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 4822a: 2f0a movel %a2,%sp@- <== NOT EXECUTED Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; 4822c: 2479 0005 8812 moveal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 48232: 2f2b 0038 movel %a3@(56),%sp@- <== NOT EXECUTED 48236: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48238: 4eb9 0004 8680 jsr 48680 <_Thread_Set_state> <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 4823e: 508f addql #8,%sp <== NOT EXECUTED 48240: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 48244: 664a bnes 48290 <_Thread_queue_Enqueue_with_handler+0x70> <== NOT EXECUTED } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 48246: 41f9 0004 82c4 lea 482c4 <_Thread_queue_Enqueue_priority>,%a0 <== NOT EXECUTED 4824c: 7201 moveq #1,%d1 <== NOT EXECUTED 4824e: b2ab 0034 cmpl %a3@(52),%d1 <== NOT EXECUTED 48252: 6706 beqs 4825a <_Thread_queue_Enqueue_with_handler+0x3a> <== NOT EXECUTED 48254: 41f9 0004 b820 lea 4b820 <_Thread_queue_Enqueue_fifo>,%a0 <== NOT EXECUTED 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 ); 4825a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4825e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48260: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48262: 4e90 jsr %a0@ <== NOT EXECUTED if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 48264: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4826a: 7201 moveq #1,%d1 <== NOT EXECUTED 4826c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4826e: 6714 beqs 48284 <_Thread_queue_Enqueue_with_handler+0x64> <== NOT EXECUTED _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); 48270: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 48274: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48276: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48278: 4eb9 0004 772c jsr 4772c <_Thread_blocking_operation_Cancel> <== NOT EXECUTED 4827e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 48284: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 48288: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 4828c: 4e5e unlk %fp <== NOT EXECUTED 4828e: 4e75 rts <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( 48290: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 48294: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 48298: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 4829c: 256e 0010 0064 movel %fp@(16),%a2@(100) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 482a2: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 482a6: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 482aa: 42aa 006c clrl %a2@(108) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 482ae: 486a 0048 pea %a2@(72) <== NOT EXECUTED 482b2: 4879 0005 8830 pea 58830 <_Watchdog_Ticks_chain> <== NOT EXECUTED 482b8: 4eb9 0004 8ed4 jsr 48ed4 <_Watchdog_Insert> <== NOT EXECUTED 482be: 508f addql #8,%sp <== NOT EXECUTED 482c0: 6084 bras 48246 <_Thread_queue_Enqueue_with_handler+0x26> <== NOT EXECUTED ... 0004b87c <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4b87c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b880: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4b884: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED /* * 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 ) 4b888: 7201 moveq #1,%d1 <== NOT EXECUTED 4b88a: b2a8 0034 cmpl %a0@(52),%d1 <== NOT EXECUTED 4b88e: 6710 beqs 4b8a0 <_Thread_queue_Extract+0x24> <== NOT EXECUTED _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 ); 4b890: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4b894: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 4b898: 4e5e unlk %fp <== NOT EXECUTED * 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 ); else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); 4b89a: 4ef9 0004 c540 jmp 4c540 <_Thread_queue_Extract_fifo> <== NOT EXECUTED /* * 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 ); 4b8a0: 42a7 clrl %sp@- <== NOT EXECUTED 4b8a2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b8a4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4b8a6: 4eb9 0004 b8b8 jsr 4b8b8 <_Thread_queue_Extract_priority_helper> <== NOT EXECUTED 4b8ac: dffc 0000 000c addal #12,%sp <== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } 4b8b2: 4e5e unlk %fp <== NOT EXECUTED 4b8b4: 4e75 rts <== NOT EXECUTED ... 0004c540 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4c540: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c544: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c546: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4c54a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4c550: 40c1 movew %sr,%d1 <== NOT EXECUTED 4c552: 8081 orl %d1,%d0 <== NOT EXECUTED 4c554: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4c556: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4c55a: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED 4c560: 6734 beqs 4c596 <_Thread_queue_Extract_fifo+0x56> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4c562: 2252 moveal %a2@,%a1 <== NOT EXECUTED previous = the_node->previous; 4c564: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 4c568: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4c56c: 7002 moveq #2,%d0 <== NOT EXECUTED next->previous = previous; previous->next = next; 4c56e: 2089 movel %a1,%a0@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4c570: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED 4c574: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4c578: 6726 beqs 4c5a0 <_Thread_queue_Extract_fifo+0x60> <== NOT EXECUTED _ISR_Enable( level ); 4c57a: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4c57c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c580: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c584: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4c58a: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4c58e: 4e5e unlk %fp <== NOT EXECUTED 4c590: 4ef9 0004 78e4 jmp 478e4 <_Thread_Clear_state> <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 4c596: 46c1 movew %d1,%sr <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c598: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c59c: 4e5e unlk %fp <== NOT EXECUTED 4c59e: 4e75 rts <== NOT EXECUTED 4c5a0: 7003 moveq #3,%d0 <== NOT EXECUTED 4c5a2: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4c5a6: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4c5a8: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4c5ac: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 4c5b2: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c5b6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c5ba: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 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 ); 4c5c0: 588f addql #4,%sp <== NOT EXECUTED 4c5c2: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c5c6: 4e5e unlk %fp <== NOT EXECUTED 4c5c8: 4ef9 0004 78e4 jmp 478e4 <_Thread_Clear_state> <== NOT EXECUTED ... 0004b8b8 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 4b8b8: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 4b8bc: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED 4b8c0: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 4b8c4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 4b8ca: 142e 0013 moveb %fp@(19),%d2 <== NOT EXECUTED Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 4b8ce: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b8d0: 8081 orl %d1,%d0 <== NOT EXECUTED 4b8d2: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4b8d4: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4b8d8: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED 4b8de: 6774 beqs 4b954 <_Thread_queue_Extract_priority_helper+0x9c> <== NOT EXECUTED /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 4b8e0: 2652 moveal %a2@,%a3 <== NOT EXECUTED previous_node = the_node->previous; 4b8e2: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4b8e6: 206a 0038 moveal %a2@(56),%a0 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 4b8ea: 200a movel %a2,%d0 <== NOT EXECUTED 4b8ec: 0680 0000 003c addil #60,%d0 <== NOT EXECUTED 4b8f2: b088 cmpl %a0,%d0 <== NOT EXECUTED 4b8f4: 6776 beqs 4b96c <_Thread_queue_Extract_priority_helper+0xb4> <== NOT EXECUTED new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; 4b8f6: 2a6a 0040 moveal %a2@(64),%a5 <== NOT EXECUTED new_second_node = new_first_node->next; 4b8fa: 2850 moveal %a0@,%a4 <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; 4b8fc: 2748 0004 movel %a0,%a3@(4) <== NOT EXECUTED 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; 4b900: 2288 movel %a0,%a1@ <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 4b902: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED 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; 4b906: 208b movel %a3,%a0@ <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 4b908: 202a 0040 movel %a2@(64),%d0 <== NOT EXECUTED 4b90c: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 4b910: 6718 beqs 4b92a <_Thread_queue_Extract_priority_helper+0x72> <== NOT EXECUTED /* > two threads on 2-n */ new_second_node->previous = 4b912: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED 4b916: 2949 0004 movel %a1,%a4@(4) <== NOT EXECUTED _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 4b91a: 214c 0038 movel %a4,%a0@(56) <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; 4b91e: 214d 0040 movel %a5,%a0@(64) <== NOT EXECUTED last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 4b922: d1fc 0000 003c addal #60,%a0 <== NOT EXECUTED 4b928: 2a88 movel %a0,%a5@ <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 4b92a: 4a02 tstb %d2 <== NOT EXECUTED 4b92c: 6632 bnes 4b960 <_Thread_queue_Extract_priority_helper+0xa8> <== NOT EXECUTED _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4b92e: 7002 moveq #2,%d0 <== NOT EXECUTED 4b930: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4b934: 673e beqs 4b974 <_Thread_queue_Extract_priority_helper+0xbc> <== NOT EXECUTED _ISR_Enable( level ); 4b936: 46c1 movew %d1,%sr <== NOT EXECUTED 4b938: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4b93c: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4b942: 227c 1003 fff8 moveal #268697592,%a1 <== NOT EXECUTED 4b948: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED 4b94c: 4e5e unlk %fp <== NOT EXECUTED 4b94e: 4ef9 0004 78e4 jmp 478e4 <_Thread_Clear_state> <== NOT EXECUTED Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 4b954: 46c1 movew %d1,%sr <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4b956: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4b95c: 4e5e unlk %fp <== NOT EXECUTED 4b95e: 4e75 rts <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level ); 4b960: 46c1 movew %d1,%sr <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4b962: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4b968: 4e5e unlk %fp <== NOT EXECUTED 4b96a: 4e75 rts <== NOT EXECUTED 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; 4b96c: 2749 0004 movel %a1,%a3@(4) <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 4b970: 228b movel %a3,%a1@ <== NOT EXECUTED 4b972: 60b6 bras 4b92a <_Thread_queue_Extract_priority_helper+0x72> <== NOT EXECUTED 4b974: 7003 moveq #3,%d0 <== NOT EXECUTED 4b976: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4b97a: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4b97c: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4b980: 4eb9 0004 901c jsr 4901c <_Watchdog_Remove> <== NOT EXECUTED 4b986: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 4b98a: 227c 1003 fff8 moveal #268697592,%a1 <== NOT EXECUTED 4b990: 588f addql #4,%sp <== NOT EXECUTED 4b992: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4b996: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4b99c: 4e5e unlk %fp <== NOT EXECUTED 4b99e: 4ef9 0004 78e4 jmp 478e4 <_Thread_Clear_state> <== NOT EXECUTED 00048474 <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 48474: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48478: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED States_Control state; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { 4847c: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 48480: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED 48486: 6604 bnes 4848c <_Thread_queue_Extract_with_proxy+0x18> <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return TRUE; } return FALSE; } 48488: 4e5e unlk %fp <== NOT EXECUTED 4848a: 4e75 rts <== NOT EXECUTED if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4848c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4848e: 2f28 0044 movel %a0@(68),%sp@- <== NOT EXECUTED 48492: 4eb9 0004 b87c jsr 4b87c <_Thread_queue_Extract> <== NOT EXECUTED 48498: 508f addql #8,%sp <== NOT EXECUTED return TRUE; } return FALSE; } 4849a: 4e5e unlk %fp <== NOT EXECUTED if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4849c: 7001 moveq #1,%d0 <== NOT EXECUTED return TRUE; } return FALSE; } 4849e: 4e75 rts 0005a0b4 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { 5a0b4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5a0b8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 5a0bc: 203c 0005 a0dc movel #368860,%d0 <== NOT EXECUTED 5a0c2: 7201 moveq #1,%d1 <== NOT EXECUTED 5a0c4: b2a8 0034 cmpl %a0@(52),%d1 <== NOT EXECUTED 5a0c8: 6706 beqs 5a0d0 <_Thread_queue_First+0x1c> <== NOT EXECUTED 5a0ca: 203c 0005 ac1c movel #371740,%d0 <== NOT EXECUTED 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 ); 5a0d0: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 5a0d4: 4e5e unlk %fp <== NOT EXECUTED if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 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 ); 5a0d6: 2240 moveal %d0,%a1 <== NOT EXECUTED 5a0d8: 4ed1 jmp %a1@ <== NOT EXECUTED ... 0005ac1c <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { 5ac1c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5ac20: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 5ac24: 2018 movel %a0@+,%d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) 5ac26: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 5ac28: 6704 beqs 5ac2e <_Thread_queue_First_fifo+0x12> <== NOT EXECUTED return (Thread_Control *) the_thread_queue->Queues.Fifo.first; return NULL; } 5ac2a: 4e5e unlk %fp <== NOT EXECUTED 5ac2c: 4e75 rts <== NOT EXECUTED 5ac2e: 4e5e unlk %fp <== NOT EXECUTED Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) 5ac30: 4280 clrl %d0 <== NOT EXECUTED return (Thread_Control *) the_thread_queue->Queues.Fifo.first; return NULL; } 5ac32: 4e75 rts 0005a0dc <_Thread_queue_First_priority>: */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { 5a0dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5a0e0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 5a0e2: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 5a0e6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5a0e8: 93c9 subal %a1,%a1 <== NOT EXECUTED 5a0ea: 244b moveal %a3,%a2 <== NOT EXECUTED 5a0ec: 2012 movel %a2@,%d0 <== NOT EXECUTED uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) 5a0ee: 41f1 9a01 lea %a1@(00000001,%a1:l:2),%a0 <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 5a0f2: d5fc 0000 000c addal #12,%a2 <== NOT EXECUTED 5a0f8: 5289 addql #1,%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) 5a0fa: 41f3 8c00 lea %a3@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 5a0fe: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 5a100: 6608 bnes 5a10a <_Thread_queue_First_priority+0x2e> <== NOT EXECUTED ) { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; 5a102: 7004 moveq #4,%d0 <== NOT EXECUTED 5a104: b089 cmpl %a1,%d0 <== NOT EXECUTED 5a106: 66e4 bnes 5a0ec <_Thread_queue_First_priority+0x10> <== NOT EXECUTED 5a108: 4200 clrb %d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) the_thread_queue->Queues.Priority[ index ].first; } return NULL; } 5a10a: 245f moveal %sp@+,%a2 <== NOT EXECUTED 5a10c: 265f moveal %sp@+,%a3 <== NOT EXECUTED 5a10e: 4e5e unlk %fp <== NOT EXECUTED 5a110: 4e75 rts <== NOT EXECUTED ... 000484a0 <_Thread_queue_Flush>: void _Thread_queue_Flush( Thread_queue_Control *the_thread_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 484a0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 484a4: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 484a8: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 484ac: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 484b0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 484b2: 45f9 0004 80b8 lea 480b8 <_Thread_queue_Dequeue>,%a2 <== NOT EXECUTED 484b8: 4e92 jsr %a2@ <== NOT EXECUTED 484ba: 588f addql #4,%sp <== NOT EXECUTED 484bc: 2040 moveal %d0,%a0 <== NOT EXECUTED 484be: 4a80 tstl %d0 <== NOT EXECUTED 484c0: 6710 beqs 484d2 <_Thread_queue_Flush+0x32> <== NOT EXECUTED #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; 484c2: 2142 0034 movel %d2,%a0@(52) <== NOT EXECUTED uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 484c6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 484c8: 4e92 jsr %a2@ <== NOT EXECUTED 484ca: 588f addql #4,%sp <== NOT EXECUTED 484cc: 2040 moveal %d0,%a0 <== NOT EXECUTED 484ce: 4a80 tstl %d0 <== NOT EXECUTED 484d0: 66f0 bnes 484c2 <_Thread_queue_Flush+0x22> <== NOT EXECUTED ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } 484d2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 484d8: 4e5e unlk %fp <== NOT EXECUTED 484da: 4e75 rts 000484dc <_Thread_queue_Initialize>: Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 484dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 484e0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED the_thread_queue->state = state; 484e4: 216e 0010 0038 movel %fp@(16),%a0@(56) <== NOT EXECUTED Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 484ea: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; 484ee: 216e 0014 003c movel %fp@(20),%a0@(60) <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 484f4: 7201 moveq #1,%d1 <== NOT EXECUTED States_Control state, uint32_t timeout_status ) { the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; 484f6: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 484fa: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 484fe: b280 cmpl %d0,%d1 <== NOT EXECUTED 48500: 6712 beqs 48514 <_Thread_queue_Initialize+0x38> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48502: 2008 movel %a0,%d0 <== NOT EXECUTED 48504: 5880 addql #4,%d0 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 48506: 2148 0008 movel %a0,%a0@(8) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4850a: 2080 movel %d0,%a0@ <== NOT EXECUTED the_chain->permanent_null = NULL; 4850c: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED _Chain_Initialize_empty( &the_thread_queue->Queues.Priority[index] ); } else { /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Chain_Initialize_empty( &the_thread_queue->Queues.Fifo ); } } 48510: 4e5e unlk %fp <== NOT EXECUTED 48512: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48514: 2248 moveal %a0,%a1 <== NOT EXECUTED 48516: 5889 addql #4,%a1 <== NOT EXECUTED 48518: 2089 movel %a1,%a0@ <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4851a: 43e8 0024 lea %a0@(36),%a1 <== NOT EXECUTED 4851e: 2149 002c movel %a1,%a0@(44) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48522: 43e8 0010 lea %a0@(16),%a1 <== NOT EXECUTED 48526: 2149 000c movel %a1,%a0@(12) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4852a: 43e8 000c lea %a0@(12),%a1 <== NOT EXECUTED 4852e: 2149 0014 movel %a1,%a0@(20) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48532: 43e8 001c lea %a0@(28),%a1 <== NOT EXECUTED 48536: 2149 0018 movel %a1,%a0@(24) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4853a: 43e8 0018 lea %a0@(24),%a1 <== NOT EXECUTED 4853e: 2149 0020 movel %a1,%a0@(32) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48542: 43e8 0028 lea %a0@(40),%a1 <== NOT EXECUTED 48546: 2149 0024 movel %a1,%a0@(36) <== NOT EXECUTED the_chain->permanent_null = NULL; 4854a: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 4854e: 2148 0008 movel %a0,%a0@(8) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48552: 42a8 0010 clrl %a0@(16) <== NOT EXECUTED 48556: 42a8 001c clrl %a0@(28) <== NOT EXECUTED 4855a: 42a8 0028 clrl %a0@(40) <== NOT EXECUTED 4855e: 4e5e unlk %fp <== NOT EXECUTED 48560: 4e75 rts <== NOT EXECUTED ... 0004b9a4 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 4b9a4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b9a8: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 4b9ac: 2069 0044 moveal %a1@(68),%a0 <== NOT EXECUTED * 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 && 4b9b0: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED 4b9b4: 6708 beqs 4b9be <_Thread_queue_Process_timeout+0x1a> <== NOT EXECUTED 4b9b6: b3f9 0005 8812 cmpal 58812 <_Thread_Executing>,%a1 <== NOT EXECUTED 4b9bc: 6718 beqs 4b9d6 <_Thread_queue_Process_timeout+0x32> <== NOT EXECUTED 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; 4b9be: 2368 003c 0034 movel %a0@(60),%a1@(52) <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4b9c4: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4b9c6: 2f29 0044 movel %a1@(68),%sp@- <== NOT EXECUTED 4b9ca: 4eb9 0004 b87c jsr 4b87c <_Thread_queue_Extract> <== NOT EXECUTED 4b9d0: 508f addql #8,%sp <== NOT EXECUTED } } 4b9d2: 4e5e unlk %fp <== NOT EXECUTED 4b9d4: 4e75 rts <== NOT EXECUTED * 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 ) { 4b9d6: 7203 moveq #3,%d1 <== NOT EXECUTED 4b9d8: b280 cmpl %d0,%d1 <== NOT EXECUTED 4b9da: 67f6 beqs 4b9d2 <_Thread_queue_Process_timeout+0x2e> <== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4b9dc: 7002 moveq #2,%d0 <== NOT EXECUTED */ 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 ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4b9de: 2368 003c 0034 movel %a0@(60),%a1@(52) <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); } } 4b9e4: 4e5e unlk %fp <== NOT EXECUTED 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 ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4b9e6: 2140 0030 movel %d0,%a0@(48) <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); } } 4b9ea: 4e75 rts 00048564 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 48564: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48568: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4856a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4856e: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) 48570: 4a8a tstl %a2 <== NOT EXECUTED 48572: 6708 beqs 4857c <_Thread_queue_Requeue+0x18> <== NOT EXECUTED /* * 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 ) { 48574: 7001 moveq #1,%d0 <== NOT EXECUTED 48576: b0aa 0034 cmpl %a2@(52),%d0 <== NOT EXECUTED 4857a: 670c beqs 48588 <_Thread_queue_Requeue+0x24> <== NOT EXECUTED _Thread_queue_Extract_priority_helper( tq, the_thread, TRUE ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } 4857c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 48580: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48584: 4e5e unlk %fp <== NOT EXECUTED 48586: 4e75 rts <== NOT EXECUTED if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 48588: 303c 0700 movew #1792,%d0 <== NOT EXECUTED 4858c: 40c2 movew %sr,%d2 <== NOT EXECUTED 4858e: 8082 orl %d2,%d0 <== NOT EXECUTED 48590: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 48592: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 48596: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 4859a: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED 485a0: 660e bnes 485b0 <_Thread_queue_Requeue+0x4c> <== NOT EXECUTED _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, TRUE ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); 485a2: 46c2 movew %d2,%sr <== NOT EXECUTED } } 485a4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 485a8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 485ac: 4e5e unlk %fp <== NOT EXECUTED 485ae: 4e75 rts <== NOT EXECUTED 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 ); 485b0: 4878 0001 pea 1 <== NOT EXECUTED 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; 485b4: 7001 moveq #1,%d0 <== NOT EXECUTED 485b6: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED 485ba: 2f08 movel %a0,%sp@- <== NOT EXECUTED 485bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 485be: 4eb9 0004 b8b8 jsr 4b8b8 <_Thread_queue_Extract_priority_helper> <== NOT EXECUTED (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 485c4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 485c8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 485cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 485ce: 4eb9 0004 82c4 jsr 482c4 <_Thread_queue_Enqueue_priority> <== NOT EXECUTED 485d4: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED } _ISR_Enable( level ); 485da: 46c2 movew %d2,%sr <== NOT EXECUTED 485dc: 60c6 bras 485a4 <_Thread_queue_Requeue+0x40> <== NOT EXECUTED ... 000485e0 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored ) { 485e0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 485e4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 485e8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 485ec: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 485f2: 508f addql #8,%sp <== NOT EXECUTED 485f4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 485f8: 6618 bnes 48612 <_Thread_queue_Timeout+0x32> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); 485fa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 485fc: 4eb9 0004 b9a4 jsr 4b9a4 <_Thread_queue_Process_timeout> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 48602: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 48608: 588f addql #4,%sp <== NOT EXECUTED 4860a: 5380 subql #1,%d0 <== NOT EXECUTED 4860c: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _Thread_Unnest_dispatch(); break; } } 48612: 4e5e unlk %fp <== NOT EXECUTED 48614: 4e75 rts <== NOT EXECUTED ... 0004ae54 <_Timer_Manager_initialization>: */ void _Timer_Manager_initialization( uint32_t maximum_timers ) { 4ae54: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Objects_Initialize_information( 4ae58: 4878 0004 pea 4 <== NOT EXECUTED 4ae5c: 42a7 clrl %sp@- <== NOT EXECUTED 4ae5e: 4878 003c pea 3c <== NOT EXECUTED 4ae62: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ae66: 4878 0002 pea 2 <== NOT EXECUTED 4ae6a: 4878 0002 pea 2 <== NOT EXECUTED 4ae6e: 4879 0005 8b3e pea 58b3e <_Timer_Information> <== NOT EXECUTED 4ae74: 4eb9 0004 74ac jsr 474ac <_Objects_Initialize_information> <== NOT EXECUTED * Initialize the pointer to the Timer Server TCB to NULL indicating * that task-based timer support is not initialized. */ _Timer_Server = NULL; _Timer_Server_schedule_operation = NULL; 4ae7a: dffc 0000 001c addal #28,%sp <== NOT EXECUTED } 4ae80: 4e5e unlk %fp <== NOT EXECUTED /* * Initialize the pointer to the Timer Server TCB to NULL indicating * that task-based timer support is not initialized. */ _Timer_Server = NULL; 4ae82: 42b9 0005 8b7e clrl 58b7e <_Timer_Server> <== NOT EXECUTED _Timer_Server_schedule_operation = NULL; 4ae88: 42b9 0005 8b7a clrl 58b7a <_Timer_Server_schedule_operation> <== NOT EXECUTED } 4ae8e: 4e75 rts 000536ae <_Timer_Server_body>: /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 536ae: 2239 0007 1748 movel 71748 <_Watchdog_Ticks_since_boot>,%d1 <== NOT EXECUTED * @param[in] ignored is the the task argument that is ignored */ Thread _Timer_Server_body( uint32_t ignored ) { 536b4: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 536b8: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 536be: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 536c2: 280e movel %fp,%d4 <== NOT EXECUTED 536c4: 260e movel %fp,%d3 <== NOT EXECUTED 536c6: 5280 addql #1,%d0 <== NOT EXECUTED 536c8: 0684 ffff fff4 addil #-12,%d4 <== NOT EXECUTED 536ce: 5183 subql #8,%d3 <== NOT EXECUTED /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 536d0: 41f9 0007 1692 lea 71692 <_TOD_Now>,%a0 <== NOT EXECUTED /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 536d6: 23c1 0007 1568 movel %d1,71568 <_Timer_Server_ticks_last_time> <== NOT EXECUTED _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 536dc: 23d0 0007 1564 movel %a0@,71564 <_Timer_Server_seconds_last_time> <== NOT EXECUTED 536e2: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 536e8: 2d43 fff4 movel %d3,%fp@(-12) <== NOT EXECUTED the_chain->permanent_null = NULL; 536ec: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 536f0: 2d44 fffc movel %d4,%fp@(-4) <== NOT EXECUTED * Insert the timers that were inserted before we got to run. * This should be done with dispatching disabled. */ _Thread_Disable_dispatch(); _Timer_Server_process_insertions(); _Thread_Enable_dispatch(); 536f4: 45f9 0005 62a4 lea 562a4 <_Thread_Enable_dispatch>,%a2 <== NOT EXECUTED 536fa: 4bf9 0005 6df4 lea 56df4 <_Thread_Set_state>,%a5 <== NOT EXECUTED 53700: 49f9 0005 7810 lea 57810 <_Watchdog_Insert>,%a4 <== NOT EXECUTED 53706: 47f9 0005 7958 lea 57958 <_Watchdog_Remove>,%a3 <== NOT EXECUTED */ while (1) { Watchdog_Control *watch; ISR_Level level; _ISR_Disable( level ); 5370c: 2a3c 0000 0700 movel #1792,%d5 <== NOT EXECUTED /* * Insert the timers that were inserted before we got to run. * This should be done with dispatching disabled. */ _Thread_Disable_dispatch(); _Timer_Server_process_insertions(); 53712: 2e3c 0005 3636 movel #341558,%d7 <== NOT EXECUTED 53718: 2047 moveal %d7,%a0 <== NOT EXECUTED 5371a: 4e90 jsr %a0@ <== NOT EXECUTED 5371c: 2c3c 0005 7788 movel #358280,%d6 <== NOT EXECUTED _Thread_Enable_dispatch(); 53722: 4e92 jsr %a2@ <== NOT EXECUTED 53724: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 5372a: 5280 addql #1,%d0 <== NOT EXECUTED 5372c: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( _Timer_Server, STATES_DELAYING ); 53732: 4878 0008 pea 8 <== NOT EXECUTED 53736: 2f39 0007 18c2 movel 718c2 <_Timer_Server>,%sp@- <== NOT EXECUTED 5373c: 4e95 jsr %a5@ <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5373e: 2279 0007 1558 moveal 71558 <_Timer_Ticks_chain>,%a1 <== NOT EXECUTED _Timer_Server_reset_ticks_timer(); 53744: 508f addql #8,%sp <== NOT EXECUTED 53746: b3fc 0007 155c cmpal #464220,%a1 <== NOT EXECUTED 5374c: 671a beqs 53768 <_Timer_Server_body+0xba> <== NOT EXECUTED 5374e: 2079 0007 18c2 moveal 718c2 <_Timer_Server>,%a0 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 53754: 2169 0010 0054 movel %a1@(16),%a0@(84) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 5375a: 4868 0048 pea %a0@(72) <== NOT EXECUTED 5375e: 4879 0007 16dc pea 716dc <_Watchdog_Ticks_chain> <== NOT EXECUTED 53764: 4e94 jsr %a4@ <== NOT EXECUTED 53766: 508f addql #8,%sp <== NOT EXECUTED 53768: 2079 0007 156c moveal 7156c <_Timer_Seconds_chain>,%a0 <== NOT EXECUTED _Timer_Server_reset_seconds_timer(); 5376e: b1fc 0007 1570 cmpal #464240,%a0 <== NOT EXECUTED 53774: 671c beqs 53792 <_Timer_Server_body+0xe4> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 53776: d1fc 0000 0010 addal #16,%a0 <== NOT EXECUTED 5377c: 23d0 0007 1590 movel %a0@,71590 <_Timer_Seconds_timer+0xc> <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 53782: 4879 0007 1584 pea 71584 <_Timer_Seconds_timer> <== NOT EXECUTED 53788: 4879 0007 16d0 pea 716d0 <_Watchdog_Seconds_chain> <== NOT EXECUTED 5378e: 4e94 jsr %a4@ <== NOT EXECUTED 53790: 508f addql #8,%sp <== NOT EXECUTED _Thread_Enable_dispatch(); 53792: 4e92 jsr %a2@ <== NOT EXECUTED 53794: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 5379a: 5280 addql #1,%d0 <== NOT EXECUTED 5379c: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * At this point, at least one of the timers this task relies * upon has fired. Stop them both while we process any outstanding * timers. Before we block, we will restart them. */ _Timer_Server_stop_ticks_timer(); 537a2: 2039 0007 18c2 movel 718c2 <_Timer_Server>,%d0 <== NOT EXECUTED 537a8: 0680 0000 0048 addil #72,%d0 <== NOT EXECUTED 537ae: 2f00 movel %d0,%sp@- <== NOT EXECUTED 537b0: 4e93 jsr %a3@ <== NOT EXECUTED _Timer_Server_stop_seconds_timer(); 537b2: 4879 0007 1584 pea 71584 <_Timer_Seconds_timer> <== NOT EXECUTED 537b8: 4e93 jsr %a3@ <== NOT EXECUTED ) { Watchdog_Interval snapshot; Watchdog_Interval ticks; snapshot = _Watchdog_Ticks_since_boot; 537ba: 2239 0007 1748 movel 71748 <_Watchdog_Ticks_since_boot>,%d1 <== NOT EXECUTED if ( snapshot >= _Timer_Server_ticks_last_time ) 537c0: 2039 0007 1568 movel 71568 <_Timer_Server_ticks_last_time>,%d0 <== NOT EXECUTED 537c6: 508f addql #8,%sp <== NOT EXECUTED 537c8: b081 cmpl %d1,%d0 <== NOT EXECUTED 537ca: 6200 00de bhiw 538aa <_Timer_Server_body+0x1fc> <== NOT EXECUTED ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 537ce: 2f04 movel %d4,%sp@- <== NOT EXECUTED Watchdog_Interval snapshot; Watchdog_Interval ticks; snapshot = _Watchdog_Ticks_since_boot; if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; 537d0: 2401 movel %d1,%d2 <== NOT EXECUTED 537d2: 9480 subl %d0,%d2 <== NOT EXECUTED 537d4: 2002 movel %d2,%d0 <== NOT EXECUTED else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 537d6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 537d8: 2046 moveal %d6,%a0 <== NOT EXECUTED 537da: 4879 0007 1558 pea 71558 <_Timer_Ticks_chain> <== NOT EXECUTED if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; 537e0: 23c1 0007 1568 movel %d1,71568 <_Timer_Server_ticks_last_time> <== NOT EXECUTED _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 537e6: 4e90 jsr %a0@ <== NOT EXECUTED /* * 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 _Timer_Seconds_chain to indicate this. */ snapshot = _TOD_Seconds_since_epoch; 537e8: 2439 0007 1692 movel 71692 <_TOD_Now>,%d2 <== NOT EXECUTED if ( snapshot > _Timer_Server_seconds_last_time ) { 537ee: 2039 0007 1564 movel 71564 <_Timer_Server_seconds_last_time>,%d0 <== NOT EXECUTED 537f4: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 537fa: b082 cmpl %d2,%d0 <== NOT EXECUTED 537fc: 6500 00dc bcsw 538da <_Timer_Server_body+0x22c> <== NOT EXECUTED * TOD has been set forward. */ ticks = snapshot - _Timer_Server_seconds_last_time; _Watchdog_Adjust_to_chain( &_Timer_Seconds_chain, ticks, to_fire ); } else if ( snapshot < _Timer_Server_seconds_last_time ) { 53800: b082 cmpl %d2,%d0 <== NOT EXECUTED 53802: 6200 0088 bhiw 5388c <_Timer_Server_body+0x1de> <== NOT EXECUTED _Timer_Server_process_seconds_chain( &to_fire ); /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 53806: 2047 moveal %d7,%a0 <== NOT EXECUTED * TOD has been set backwards. */ ticks = _Timer_Server_seconds_last_time - snapshot; _Watchdog_Adjust( &_Timer_Seconds_chain, WATCHDOG_BACKWARD, ticks ); } _Timer_Server_seconds_last_time = snapshot; 53808: 23c2 0007 1564 movel %d2,71564 <_Timer_Server_seconds_last_time> <== NOT EXECUTED _Timer_Server_process_seconds_chain( &to_fire ); /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 5380e: 4e90 jsr %a0@ <== NOT EXECUTED /* * Enable dispatching to process the set that are ready "to fire." */ _Thread_Enable_dispatch(); 53810: 4e92 jsr %a2@ <== NOT EXECUTED */ while (1) { Watchdog_Control *watch; ISR_Level level; _ISR_Disable( level ); 53812: 2005 movel %d5,%d0 <== NOT EXECUTED 53814: 40c1 movew %sr,%d1 <== NOT EXECUTED 53816: 8081 orl %d1,%d0 <== NOT EXECUTED 53818: 46c0 movew %d0,%sr <== NOT EXECUTED 5381a: 226e fff4 moveal %fp@(-12),%a1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 5381e: b3c3 cmpal %d3,%a1 <== NOT EXECUTED 53820: 6764 beqs 53886 <_Timer_Server_body+0x1d8> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 53822: 2051 moveal %a1@,%a0 <== NOT EXECUTED the_chain->first = new_first; 53824: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED if ( watch == NULL ) { _ISR_Enable( level ); break; } watch->state = WATCHDOG_INACTIVE; 53828: 42a9 0008 clrl %a1@(8) <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 5382c: 2144 0004 movel %d4,%a0@(4) <== NOT EXECUTED _ISR_Enable( level ); 53830: 46c1 movew %d1,%sr <== NOT EXECUTED (*watch->routine)( watch->id, watch->user_data ); 53832: 2f29 0024 movel %a1@(36),%sp@- <== NOT EXECUTED 53836: 2f29 0020 movel %a1@(32),%sp@- <== NOT EXECUTED 5383a: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 5383e: 4e90 jsr %a0@ <== NOT EXECUTED */ while (1) { Watchdog_Control *watch; ISR_Level level; _ISR_Disable( level ); 53840: 2005 movel %d5,%d0 <== NOT EXECUTED 53842: 40c1 movew %sr,%d1 <== NOT EXECUTED 53844: 8081 orl %d1,%d0 <== NOT EXECUTED 53846: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 53848: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 5384c: 508f addql #8,%sp <== NOT EXECUTED watch = (Watchdog_Control *) _Chain_Get_unprotected( &to_fire ); 5384e: 2248 moveal %a0,%a1 <== NOT EXECUTED 53850: b1c3 cmpal %d3,%a0 <== NOT EXECUTED 53852: 6732 beqs 53886 <_Timer_Server_body+0x1d8> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 53854: 2050 moveal %a0@,%a0 <== NOT EXECUTED the_chain->first = new_first; 53856: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED if ( watch == NULL ) { _ISR_Enable( level ); break; } watch->state = WATCHDOG_INACTIVE; 5385a: 42a9 0008 clrl %a1@(8) <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 5385e: 2144 0004 movel %d4,%a0@(4) <== NOT EXECUTED _ISR_Enable( level ); 53862: 46c1 movew %d1,%sr <== NOT EXECUTED (*watch->routine)( watch->id, watch->user_data ); 53864: 2f29 0024 movel %a1@(36),%sp@- <== NOT EXECUTED 53868: 2f29 0020 movel %a1@(32),%sp@- <== NOT EXECUTED 5386c: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 53870: 4e90 jsr %a0@ <== NOT EXECUTED */ while (1) { Watchdog_Control *watch; ISR_Level level; _ISR_Disable( level ); 53872: 2005 movel %d5,%d0 <== NOT EXECUTED 53874: 40c1 movew %sr,%d1 <== NOT EXECUTED 53876: 8081 orl %d1,%d0 <== NOT EXECUTED 53878: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5387a: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 5387e: 508f addql #8,%sp <== NOT EXECUTED watch = (Watchdog_Control *) _Chain_Get_unprotected( &to_fire ); 53880: 2248 moveal %a0,%a1 <== NOT EXECUTED 53882: b1c3 cmpal %d3,%a0 <== NOT EXECUTED 53884: 66ce bnes 53854 <_Timer_Server_body+0x1a6> <== NOT EXECUTED if ( watch == NULL ) { _ISR_Enable( level ); 53886: 46c1 movew %d1,%sr <== NOT EXECUTED 53888: 6000 fe9a braw 53724 <_Timer_Server_body+0x76> <== NOT EXECUTED /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ ticks = _Timer_Server_seconds_last_time - snapshot; _Watchdog_Adjust( &_Timer_Seconds_chain, WATCHDOG_BACKWARD, ticks ); 5388c: 9082 subl %d2,%d0 <== NOT EXECUTED 5388e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 53890: 4878 0001 pea 1 <== NOT EXECUTED 53894: 4879 0007 156c pea 7156c <_Timer_Seconds_chain> <== NOT EXECUTED 5389a: 4eb9 0005 76f4 jsr 576f4 <_Watchdog_Adjust> <== NOT EXECUTED 538a0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 538a6: 6000 ff5e braw 53806 <_Timer_Server_body+0x158> <== NOT EXECUTED ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 538aa: 2f04 movel %d4,%sp@- <== NOT EXECUTED snapshot = _Watchdog_Ticks_since_boot; if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; 538ac: 4680 notl %d0 <== NOT EXECUTED 538ae: d081 addl %d1,%d0 <== NOT EXECUTED _Timer_Server_ticks_last_time = snapshot; _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 538b0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 538b2: 2046 moveal %d6,%a0 <== NOT EXECUTED 538b4: 4879 0007 1558 pea 71558 <_Timer_Ticks_chain> <== NOT EXECUTED if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; 538ba: 23c1 0007 1568 movel %d1,71568 <_Timer_Server_ticks_last_time> <== NOT EXECUTED _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 538c0: 4e90 jsr %a0@ <== NOT EXECUTED /* * 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 _Timer_Seconds_chain to indicate this. */ snapshot = _TOD_Seconds_since_epoch; 538c2: 2439 0007 1692 movel 71692 <_TOD_Now>,%d2 <== NOT EXECUTED if ( snapshot > _Timer_Server_seconds_last_time ) { 538c8: 2039 0007 1564 movel 71564 <_Timer_Server_seconds_last_time>,%d0 <== NOT EXECUTED 538ce: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 538d4: b082 cmpl %d2,%d0 <== NOT EXECUTED 538d6: 6400 ff28 bccw 53800 <_Timer_Server_body+0x152> <== NOT EXECUTED /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ ticks = snapshot - _Timer_Server_seconds_last_time; _Watchdog_Adjust_to_chain( &_Timer_Seconds_chain, ticks, to_fire ); 538da: 2f04 movel %d4,%sp@- <== NOT EXECUTED 538dc: 2202 movel %d2,%d1 <== NOT EXECUTED 538de: 9280 subl %d0,%d1 <== NOT EXECUTED 538e0: 2f01 movel %d1,%sp@- <== NOT EXECUTED 538e2: 4879 0007 156c pea 7156c <_Timer_Seconds_chain> <== NOT EXECUTED 538e8: 4eb9 0005 7788 jsr 57788 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED 538ee: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 538f4: 6000 ff10 braw 53806 <_Timer_Server_body+0x158> <== NOT EXECUTED 00053636 <_Timer_Server_process_insertions>: * onto one of the Timer Server chains. * * @note It is only to be called from the Timer Server task. */ static void _Timer_Server_process_insertions(void) { 53636: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5363a: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED 5363e: 45f9 0005 406c lea 5406c <_Chain_Get>,%a2 <== NOT EXECUTED Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 53644: 4879 0007 1578 pea 71578 <_Timer_To_be_inserted> <== NOT EXECUTED 5364a: 4e92 jsr %a2@ <== NOT EXECUTED break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { _Watchdog_Insert( &_Timer_Seconds_chain, &the_timer->Ticker ); 5364c: 49f9 0005 7810 lea 57810 <_Watchdog_Insert>,%a4 <== NOT EXECUTED } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 53652: 47fa ffe2 lea %pc@(53636 <_Timer_Server_process_insertions>),%a3 <== NOT EXECUTED static void _Timer_Server_process_insertions(void) { Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 53656: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( the_timer == NULL ) 53658: 588f addql #4,%sp <== NOT EXECUTED 5365a: 4a80 tstl %d0 <== NOT EXECUTED 5365c: 6722 beqs 53680 <_Timer_Server_process_insertions+0x4a> <== NOT EXECUTED break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 5365e: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 53662: 7201 moveq #1,%d1 <== NOT EXECUTED 53664: b280 cmpl %d0,%d1 <== NOT EXECUTED 53666: 6734 beqs 5369c <_Timer_Server_process_insertions+0x66> <== NOT EXECUTED _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 53668: 7203 moveq #3,%d1 <== NOT EXECUTED 5366a: b280 cmpl %d0,%d1 <== NOT EXECUTED 5366c: 671c beqs 5368a <_Timer_Server_process_insertions+0x54> <== NOT EXECUTED } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 5366e: 4e93 jsr %a3@ <== NOT EXECUTED static void _Timer_Server_process_insertions(void) { Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 53670: 4879 0007 1578 pea 71578 <_Timer_To_be_inserted> <== NOT EXECUTED 53676: 4e92 jsr %a2@ <== NOT EXECUTED if ( the_timer == NULL ) 53678: 588f addql #4,%sp <== NOT EXECUTED static void _Timer_Server_process_insertions(void) { Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 5367a: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( the_timer == NULL ) 5367c: 4a80 tstl %d0 <== NOT EXECUTED 5367e: 66de bnes 5365e <_Timer_Server_process_insertions+0x28> <== NOT EXECUTED * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); } } 53680: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4 <== NOT EXECUTED 53686: 4e5e unlk %fp <== NOT EXECUTED 53688: 4e75 rts <== NOT EXECUTED break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { _Watchdog_Insert( &_Timer_Seconds_chain, &the_timer->Ticker ); 5368a: 4868 0010 pea %a0@(16) <== NOT EXECUTED 5368e: 4879 0007 156c pea 7156c <_Timer_Seconds_chain> <== NOT EXECUTED 53694: 4e94 jsr %a4@ <== NOT EXECUTED 53696: 508f addql #8,%sp <== NOT EXECUTED } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 53698: 4e93 jsr %a3@ <== NOT EXECUTED 5369a: 60d4 bras 53670 <_Timer_Server_process_insertions+0x3a> <== NOT EXECUTED the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); if ( the_timer == NULL ) break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); 5369c: 4868 0010 pea %a0@(16) <== NOT EXECUTED 536a0: 4879 0007 1558 pea 71558 <_Timer_Ticks_chain> <== NOT EXECUTED 536a6: 4e94 jsr %a4@ <== NOT EXECUTED 536a8: 508f addql #8,%sp <== NOT EXECUTED } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 536aa: 4e93 jsr %a3@ <== NOT EXECUTED 536ac: 60c2 bras 53670 <_Timer_Server_process_insertions+0x3a> <== NOT EXECUTED 000535f2 <_Timer_Server_schedule_operation_method>: * the directive invoking this is executed. */ static void _Timer_Server_schedule_operation_method( Timer_Control *the_timer ) { 535f2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Chain_Append( &_Timer_To_be_inserted, &the_timer->Object.Node ); 535f6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 535fa: 4879 0007 1578 pea 71578 <_Timer_To_be_inserted> <== NOT EXECUTED 53600: 4eb9 0005 4034 jsr 54034 <_Chain_Append> <== NOT EXECUTED _Watchdog_Remove( &_Timer_Server->Timer ); 53606: 2039 0007 18c2 movel 718c2 <_Timer_Server>,%d0 <== NOT EXECUTED 5360c: 0680 0000 0048 addil #72,%d0 <== NOT EXECUTED 53612: 2f00 movel %d0,%sp@- <== NOT EXECUTED 53614: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED _Thread_Delay_ended( _Timer_Server->Object.id, NULL ); 5361a: 2079 0007 18c2 moveal 718c2 <_Timer_Server>,%a0 <== NOT EXECUTED 53620: 42a7 clrl %sp@- <== NOT EXECUTED 53622: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 53626: 4eb9 0005 610c jsr 5610c <_Thread_Delay_ended> <== NOT EXECUTED 5362c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED } 53632: 4e5e unlk %fp <== NOT EXECUTED 53634: 4e75 rts 00048ba0 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { 48ba0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48ba4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 48ba8: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; 48bac: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { 48bb0: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t seconds = add->tv_sec; 48bb2: 2410 movel %a0@,%d2 <== NOT EXECUTED /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; 48bb4: d0a9 0004 addl %a1@(4),%d0 <== NOT EXECUTED ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; 48bb8: d591 addl %d2,%a1@ <== NOT EXECUTED time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 48bba: 2200 movel %d0,%d1 <== NOT EXECUTED { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; 48bbc: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 48bc0: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED 48bc6: 631a blss 48be2 <_Timespec_Add_to+0x42> <== NOT EXECUTED time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 48bc8: 2001 movel %d1,%d0 <== NOT EXECUTED time->tv_sec++; 48bca: 5291 addql #1,%a1@ <== NOT EXECUTED 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 ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 48bcc: 0680 c465 3600 addil #-1000000000,%d0 <== NOT EXECUTED time->tv_sec++; seconds++; 48bd2: 5282 addql #1,%d2 <== NOT EXECUTED 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 ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 48bd4: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED /* 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 ) { 48bd8: 2200 movel %d0,%d1 <== NOT EXECUTED 48bda: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED 48be0: 62e6 bhis 48bc8 <_Timespec_Add_to+0x28> <== NOT EXECUTED time->tv_sec++; seconds++; } return seconds; } 48be2: 2002 movel %d2,%d0 <== NOT EXECUTED 48be4: 241f movel %sp@+,%d2 <== NOT EXECUTED 48be6: 4e5e unlk %fp <== NOT EXECUTED 48be8: 4e75 rts <== NOT EXECUTED ... 0004a1cc <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4a1cc: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 4a1d0: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4a1d4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4a1d8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED * 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; 4a1dc: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED 4a1e2: 4bf9 0005 62e4 lea 562e4 <__muldi3>,%a5 <== NOT EXECUTED 4a1e8: 42a7 clrl %sp@- <== NOT EXECUTED /* * 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; 4a1ea: 2a28 0004 movel %a0@(4),%d5 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4a1ee: 2810 movel %a0@,%d4 <== NOT EXECUTED left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4a1f0: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 4a1f2: 5bc0 smi %d0 <== NOT EXECUTED 4a1f4: 49c0 extbl %d0 <== NOT EXECUTED 4a1f6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a1f8: 4e95 jsr %a5@ <== NOT EXECUTED right += rhs->tv_nsec; 4a1fa: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED 4a1fe: 5bc2 smi %d2 <== NOT EXECUTED 4a200: 49c2 extbl %d2 <== NOT EXECUTED 4a202: d283 addl %d3,%d1 <== NOT EXECUTED 4a204: d182 addxl %d2,%d0 <== NOT EXECUTED * 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; 4a206: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED right += rhs->tv_nsec; 4a20c: 2640 moveal %d0,%a3 <== NOT EXECUTED 4a20e: 2841 moveal %d1,%a4 <== NOT EXECUTED if ( right == 0 ) { 4a210: 4a8b tstl %a3 <== NOT EXECUTED 4a212: 661a bnes 4a22e <_Timespec_Divide+0x62> <== NOT EXECUTED 4a214: 4a8c tstl %a4 <== NOT EXECUTED 4a216: 6616 bnes 4a22e <_Timespec_Divide+0x62> <== NOT EXECUTED *ival_percentage = 0; 4a218: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 4a21c: 4290 clrl %a0@ <== NOT EXECUTED *fval_percentage = 0; 4a21e: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 4a222: 4cee 3cfc ffd8 moveml %fp@(-40),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4a228: 4e5e unlk %fp <== NOT EXECUTED right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0; *fval_percentage = 0; 4a22a: 4290 clrl %a0@ <== NOT EXECUTED answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 4a22c: 4e75 rts <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4a22e: 2605 movel %d5,%d3 <== NOT EXECUTED 4a230: 5bc2 smi %d2 <== NOT EXECUTED 4a232: 49c2 extbl %d2 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4a234: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4a23a: 7a1b moveq #27,%d5 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4a23c: 42a7 clrl %sp@- <== NOT EXECUTED 4a23e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4a240: 5bc0 smi %d0 <== NOT EXECUTED 4a242: 49c0 extbl %d0 <== NOT EXECUTED 4a244: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a246: 4e95 jsr %a5@ <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4a248: d283 addl %d3,%d1 <== NOT EXECUTED 4a24a: d182 addxl %d2,%d0 <== NOT EXECUTED 4a24c: 2801 movel %d1,%d4 <== NOT EXECUTED 4a24e: 741e moveq #30,%d2 <== NOT EXECUTED 4a250: e4ac lsrl %d2,%d4 <== NOT EXECUTED 4a252: 2400 movel %d0,%d2 <== NOT EXECUTED 4a254: 2601 movel %d1,%d3 <== NOT EXECUTED 4a256: e58a lsll #2,%d2 <== NOT EXECUTED 4a258: 8484 orl %d4,%d2 <== NOT EXECUTED 4a25a: e58b lsll #2,%d3 <== NOT EXECUTED 4a25c: 2803 movel %d3,%d4 <== NOT EXECUTED 4a25e: 2c02 movel %d2,%d6 <== NOT EXECUTED 4a260: eaac lsrl %d5,%d4 <== NOT EXECUTED 4a262: 2e03 movel %d3,%d7 <== NOT EXECUTED 4a264: eb8e lsll #5,%d6 <== NOT EXECUTED 4a266: 8c84 orl %d4,%d6 <== NOT EXECUTED 4a268: eb8f lsll #5,%d7 <== NOT EXECUTED 4a26a: 2806 movel %d6,%d4 <== NOT EXECUTED 4a26c: 2a07 movel %d7,%d5 <== NOT EXECUTED 4a26e: 9a83 subl %d3,%d5 <== NOT EXECUTED 4a270: 9982 subxl %d2,%d4 <== NOT EXECUTED 4a272: da81 addl %d1,%d5 <== NOT EXECUTED 4a274: d980 addxl %d0,%d4 <== NOT EXECUTED 4a276: 721e moveq #30,%d1 <== NOT EXECUTED 4a278: 2005 movel %d5,%d0 <== NOT EXECUTED 4a27a: 2404 movel %d4,%d2 <== NOT EXECUTED 4a27c: e2a8 lsrl %d1,%d0 <== NOT EXECUTED 4a27e: 2605 movel %d5,%d3 <== NOT EXECUTED 4a280: e58a lsll #2,%d2 <== NOT EXECUTED 4a282: 8480 orl %d0,%d2 <== NOT EXECUTED 4a284: e58b lsll #2,%d3 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4a286: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4a28c: da83 addl %d3,%d5 <== NOT EXECUTED 4a28e: d982 addxl %d2,%d4 <== NOT EXECUTED 4a290: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4a292: 2005 movel %d5,%d0 <== NOT EXECUTED 4a294: 2404 movel %d4,%d2 <== NOT EXECUTED 4a296: e2a8 lsrl %d1,%d0 <== NOT EXECUTED 4a298: 2605 movel %d5,%d3 <== NOT EXECUTED 4a29a: e58a lsll #2,%d2 <== NOT EXECUTED 4a29c: 8480 orl %d0,%d2 <== NOT EXECUTED 4a29e: e58b lsll #2,%d3 <== NOT EXECUTED 4a2a0: da83 addl %d3,%d5 <== NOT EXECUTED 4a2a2: d982 addxl %d2,%d4 <== NOT EXECUTED 4a2a4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4a2a6: 2005 movel %d5,%d0 <== NOT EXECUTED 4a2a8: 741b moveq #27,%d2 <== NOT EXECUTED 4a2aa: 2605 movel %d5,%d3 <== NOT EXECUTED 4a2ac: e4a8 lsrl %d2,%d0 <== NOT EXECUTED 4a2ae: eb8b lsll #5,%d3 <== NOT EXECUTED 4a2b0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a2b2: 2404 movel %d4,%d2 <== NOT EXECUTED 4a2b4: eb8a lsll #5,%d2 <== NOT EXECUTED 4a2b6: 8480 orl %d0,%d2 <== NOT EXECUTED 4a2b8: 45f9 0005 634c lea 5634c <__udivdi3>,%a2 <== NOT EXECUTED 4a2be: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a2c0: 4e92 jsr %a2@ <== NOT EXECUTED 4a2c2: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED *ival_percentage = answer / 1000; 4a2c8: 4878 03e8 pea 3e8 <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4a2cc: 2400 movel %d0,%d2 <== NOT EXECUTED 4a2ce: 2601 movel %d1,%d3 <== NOT EXECUTED *ival_percentage = answer / 1000; 4a2d0: 42a7 clrl %sp@- <== NOT EXECUTED 4a2d2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a2d4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a2d6: 4e92 jsr %a2@ <== NOT EXECUTED 4a2d8: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED *fval_percentage = answer % 1000; 4a2de: 4878 03e8 pea 3e8 <== NOT EXECUTED 4a2e2: 42a7 clrl %sp@- <== NOT EXECUTED * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; 4a2e4: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 4a2e8: 2081 movel %d1,%a0@ <== NOT EXECUTED *fval_percentage = answer % 1000; 4a2ea: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a2ec: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a2ee: 4eb9 0005 6700 jsr 56700 <__umoddi3> <== NOT EXECUTED 4a2f4: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 4a2f8: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED } 4a2fe: 4cee 3cfc ffd8 moveml %fp@(-40),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4a304: 4e5e unlk %fp <== NOT EXECUTED */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; 4a306: 2081 movel %d1,%a0@ <== NOT EXECUTED } 4a308: 4e75 rts <== NOT EXECUTED ... 00063d58 <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 63d58: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 63d5c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; 63d60: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 63d66: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; 63d6a: 42a7 clrl %sp@- <== NOT EXECUTED 63d6c: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 63d6e: 5bc0 smi %d0 <== NOT EXECUTED 63d70: 49c0 extbl %d0 <== NOT EXECUTED 63d72: 2f00 movel %d0,%sp@- <== NOT EXECUTED 63d74: 4eb9 0007 e4e0 jsr 7e4e0 <__muldi3> <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 63d7a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 63d80: 2eae 000c movel %fp@(12),%sp@ <== NOT EXECUTED * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; t += time->tv_nsec; 63d84: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED 63d88: 5bc2 smi %d2 <== NOT EXECUTED 63d8a: 49c2 extbl %d2 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 63d8c: d283 addl %d3,%d1 <== NOT EXECUTED 63d8e: d182 addxl %d2,%d0 <== NOT EXECUTED 63d90: 42a7 clrl %sp@- <== NOT EXECUTED 63d92: 47f9 0007 e5c4 lea 7e5c4 <__udivdi3>,%a3 <== NOT EXECUTED 63d98: 2f01 movel %d1,%sp@- <== NOT EXECUTED 63d9a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 63d9c: 4e93 jsr %a3@ <== NOT EXECUTED 63d9e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 63da4: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 63daa: 2400 movel %d0,%d2 <== NOT EXECUTED 63dac: 2601 movel %d1,%d3 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 63dae: 42a7 clrl %sp@- <== NOT EXECUTED 63db0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 63db2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 63db4: 4e93 jsr %a3@ <== NOT EXECUTED 63db6: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 63dbc: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 63dc2: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 63dc6: 42a7 clrl %sp@- <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 63dc8: 2481 movel %d1,%a2@ <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 63dca: 2f03 movel %d3,%sp@- <== NOT EXECUTED 63dcc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 63dce: 4eb9 0007 e978 jsr 7e978 <__umoddi3> <== NOT EXECUTED 63dd4: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED 63dd8: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED } 63dde: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 63de4: 4e5e unlk %fp <== NOT EXECUTED 63de6: 4e75 rts 00053a4c <_Timespec_From_ticks>: void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 53a4c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 53a50: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 53a54: 43f9 0006 6d6a lea 66d6a <_TOD_Microseconds_per_tick>,%a1 <== NOT EXECUTED 53a5a: 4c11 0800 mulsl %a1@,%d0 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 53a5e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 53a60: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 53a64: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED 53a6a: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED 53a6e: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED 53a72: 2080 movel %d0,%a0@ <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 53a74: 2401 movel %d1,%d2 <== NOT EXECUTED 53a76: 2001 movel %d1,%d0 <== NOT EXECUTED 53a78: e58a lsll #2,%d2 <== NOT EXECUTED 53a7a: ef88 lsll #7,%d0 <== NOT EXECUTED 53a7c: 9082 subl %d2,%d0 <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 53a7e: 241f movel %sp@+,%d2 <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 53a80: d081 addl %d1,%d0 <== NOT EXECUTED 53a82: e788 lsll #3,%d0 <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 53a84: 4e5e unlk %fp <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 53a86: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 53a8a: 4e75 rts 0004a794 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { 4a794: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a798: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4a79c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if ( lhs->tv_sec > rhs->tv_sec ) 4a7a0: 2211 movel %a1@,%d1 <== NOT EXECUTED 4a7a2: 2010 movel %a0@,%d0 <== NOT EXECUTED 4a7a4: b081 cmpl %d1,%d0 <== NOT EXECUTED 4a7a6: 6d18 blts 4a7c0 <_Timespec_Greater_than+0x2c> <== NOT EXECUTED return TRUE; if ( lhs->tv_sec < rhs->tv_sec ) 4a7a8: 6e10 bgts 4a7ba <_Timespec_Greater_than+0x26> <== NOT EXECUTED return FALSE; /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) 4a7aa: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4a7ae: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED 4a7b2: 5dc0 slt %d0 <== NOT EXECUTED return TRUE; return FALSE; } 4a7b4: 4e5e unlk %fp <== NOT EXECUTED if ( lhs->tv_sec < rhs->tv_sec ) return FALSE; /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) 4a7b6: 4480 negl %d0 <== NOT EXECUTED return TRUE; return FALSE; } 4a7b8: 4e75 rts <== NOT EXECUTED 4a7ba: 4e5e unlk %fp <== NOT EXECUTED ) { if ( lhs->tv_sec > rhs->tv_sec ) return TRUE; if ( lhs->tv_sec < rhs->tv_sec ) 4a7bc: 4200 clrb %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return TRUE; return FALSE; } 4a7be: 4e75 rts <== NOT EXECUTED 4a7c0: 4e5e unlk %fp <== NOT EXECUTED bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) 4a7c2: 7001 moveq #1,%d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return TRUE; return FALSE; } 4a7c4: 4e75 rts <== NOT EXECUTED ... 00053a8c <_Timespec_Is_valid>: #include bool _Timespec_Is_valid( const struct timespec *time ) { 53a8c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 53a90: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( !time ) 53a94: 4a88 tstl %a0 <== NOT EXECUTED 53a96: 6718 beqs 53ab0 <_Timespec_Is_valid+0x24> <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 53a98: 4a90 tstl %a0@ <== NOT EXECUTED 53a9a: 6d14 blts 53ab0 <_Timespec_Is_valid+0x24> <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 53a9c: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED 53aa0: 6d0e blts 53ab0 <_Timespec_Is_valid+0x24> <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 53aa2: 4e5e unlk %fp <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) return FALSE; if ( time->tv_nsec < 0 ) 53aa4: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED 53aaa: 53c0 sls %d0 <== NOT EXECUTED 53aac: 4480 negl %d0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 53aae: 4e75 rts <== NOT EXECUTED 53ab0: 4e5e unlk %fp <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) return FALSE; if ( time->tv_nsec < 0 ) 53ab2: 4200 clrb %d0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 53ab4: 4e75 rts <== NOT EXECUTED ... 0004a7c8 <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { 4a7c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a7cc: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4a7d0: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if ( lhs->tv_sec < rhs->tv_sec ) 4a7d4: 2211 movel %a1@,%d1 <== NOT EXECUTED 4a7d6: 2010 movel %a0@,%d0 <== NOT EXECUTED 4a7d8: b081 cmpl %d1,%d0 <== NOT EXECUTED 4a7da: 6e18 bgts 4a7f4 <_Timespec_Less_than+0x2c> <== NOT EXECUTED return TRUE; if ( lhs->tv_sec > rhs->tv_sec ) 4a7dc: 6d10 blts 4a7ee <_Timespec_Less_than+0x26> <== NOT EXECUTED return FALSE; /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) 4a7de: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4a7e2: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED 4a7e6: 5ec0 sgt %d0 <== NOT EXECUTED return TRUE; return FALSE; } 4a7e8: 4e5e unlk %fp <== NOT EXECUTED if ( lhs->tv_sec > rhs->tv_sec ) return FALSE; /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) 4a7ea: 4480 negl %d0 <== NOT EXECUTED return TRUE; return FALSE; } 4a7ec: 4e75 rts <== NOT EXECUTED 4a7ee: 4e5e unlk %fp <== NOT EXECUTED ) { if ( lhs->tv_sec < rhs->tv_sec ) return TRUE; if ( lhs->tv_sec > rhs->tv_sec ) 4a7f0: 4200 clrb %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return TRUE; return FALSE; } 4a7f2: 4e75 rts <== NOT EXECUTED 4a7f4: 4e5e unlk %fp <== NOT EXECUTED bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) 4a7f6: 7001 moveq #1,%d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return TRUE; return FALSE; } 4a7f8: 4e75 rts <== NOT EXECUTED ... 00048bec <_Timespec_Subtract>: void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { 48bec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48bf0: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 48bf4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48bf6: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if (end->tv_nsec < start->tv_nsec) { 48bfa: 2029 0004 movel %a1@(4),%d0 <== NOT EXECUTED void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { 48bfe: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED if (end->tv_nsec < start->tv_nsec) { 48c02: b0a8 0004 cmpl %a0@(4),%d0 <== NOT EXECUTED 48c06: 6e18 bgts 48c20 <_Timespec_Subtract+0x34> <== NOT EXECUTED 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; 48c08: 2010 movel %a0@,%d0 <== NOT EXECUTED 48c0a: 9091 subl %a1@,%d0 <== NOT EXECUTED 48c0c: 2480 movel %d0,%a2@ <== NOT EXECUTED result->tv_nsec = end->tv_nsec - start->tv_nsec; 48c0e: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED 48c12: 90a9 0004 subl %a1@(4),%d0 <== NOT EXECUTED 48c16: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED } } 48c1a: 245f moveal %sp@+,%a2 <== NOT EXECUTED 48c1c: 4e5e unlk %fp <== NOT EXECUTED 48c1e: 4e75 rts <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 48c20: 2010 movel %a0@,%d0 <== NOT EXECUTED result->tv_nsec = 48c22: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 48c26: 5380 subql #1,%d0 <== NOT EXECUTED result->tv_nsec = 48c28: 0681 3b9a ca00 addil #1000000000,%d1 <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 48c2e: 9091 subl %a1@,%d0 <== NOT EXECUTED result->tv_nsec = 48c30: 92a9 0004 subl %a1@(4),%d1 <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 48c34: 2480 movel %d0,%a2@ <== NOT EXECUTED result->tv_nsec = 48c36: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; result->tv_nsec = end->tv_nsec - start->tv_nsec; } } 48c3a: 245f moveal %sp@+,%a2 <== NOT EXECUTED 48c3c: 4e5e unlk %fp <== NOT EXECUTED 48c3e: 4e75 rts 00053ab8 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 53ab8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 53abc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 53ac0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 53ac4: 2610 movel %a0@,%d3 <== NOT EXECUTED 53ac6: 6738 beqs 53b00 <_Timespec_To_ticks+0x48> <== NOT EXECUTED 53ac8: 2428 0004 movel %a0@(4),%d2 <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 53acc: 2039 0006 6d6a movel 66d6a <_TOD_Microseconds_per_tick>,%d0 <== NOT EXECUTED 53ad2: 223c 000f 4240 movel #1000000,%d1 <== NOT EXECUTED 53ad8: 4c40 1001 remul %d0,%d1,%d1 <== NOT EXECUTED 53adc: 4c03 1800 mulsl %d3,%d1 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 53ae0: 283c 0000 03e8 movel #1000,%d4 <== NOT EXECUTED 53ae6: 4c44 2002 remul %d4,%d2,%d2 <== NOT EXECUTED 53aea: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED 53aee: 2002 movel %d2,%d0 <== NOT EXECUTED 53af0: d081 addl %d1,%d0 <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 53af2: 6604 bnes 53af8 <_Timespec_To_ticks+0x40> <== NOT EXECUTED 53af4: 103c 0001 moveb #1,%d0 <== NOT EXECUTED return ticks; return 1; } 53af8: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED 53afc: 4e5e unlk %fp <== NOT EXECUTED 53afe: 4e75 rts <== NOT EXECUTED const struct timespec *time ) { uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 53b00: 2428 0004 movel %a0@(4),%d2 <== NOT EXECUTED 53b04: 66c6 bnes 53acc <_Timespec_To_ticks+0x14> <== NOT EXECUTED if (ticks) return ticks; return 1; } 53b06: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED 53b0a: 4e5e unlk %fp <== NOT EXECUTED const struct timespec *time ) { uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 53b0c: 4280 clrl %d0 <== NOT EXECUTED if (ticks) return ticks; return 1; } 53b0e: 4e75 rts 0004bb34 <_User_extensions_Add_API_set>: */ void _User_extensions_Add_API_set ( User_extensions_Control *the_extension ) { 4bb34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bb38: 2f0b movel %a3,%sp@- <== NOT EXECUTED _Chain_Append( &_User_extensions_List, &the_extension->Node ); 4bb3a: 47f9 0004 66d8 lea 466d8 <_Chain_Append>,%a3 <== NOT EXECUTED */ void _User_extensions_Add_API_set ( User_extensions_Control *the_extension ) { 4bb40: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bb42: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED _Chain_Append( &_User_extensions_List, &the_extension->Node ); 4bb46: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bb48: 4879 0005 88f2 pea 588f2 <_User_extensions_List> <== NOT EXECUTED 4bb4e: 4e93 jsr %a3@ <== NOT EXECUTED /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { 4bb50: 202a 0024 movel %a2@(36),%d0 <== NOT EXECUTED 4bb54: 508f addql #8,%sp <== NOT EXECUTED 4bb56: 6712 beqs 4bb6a <_User_extensions_Add_API_set+0x36> <== NOT EXECUTED the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; _Chain_Append( 4bb58: 486a 0008 pea %a2@(8) <== NOT EXECUTED 4bb5c: 4879 0005 8758 pea 58758 <_User_extensions_Switches_list> <== NOT EXECUTED /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; 4bb62: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED _Chain_Append( 4bb66: 4e93 jsr %a3@ <== NOT EXECUTED 4bb68: 508f addql #8,%sp <== NOT EXECUTED &_User_extensions_Switches_list, &the_extension->Switch.Node ); } } 4bb6a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4bb6e: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4bb72: 4e5e unlk %fp <== NOT EXECUTED 4bb74: 4e75 rts <== NOT EXECUTED ... 0004bb78 <_User_extensions_Add_set>: void _User_extensions_Add_set ( User_extensions_Control *the_extension, User_extensions_Table *extension_table ) { 4bb78: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bb7c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4bb7e: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 4bb82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bb84: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED the_extension->Callouts = *extension_table; 4bb88: 204a moveal %a2,%a0 <== NOT EXECUTED 4bb8a: 2758 0014 movel %a0@+,%a3@(20) <== NOT EXECUTED 4bb8e: 2758 0018 movel %a0@+,%a3@(24) <== NOT EXECUTED 4bb92: 2758 001c movel %a0@+,%a3@(28) <== NOT EXECUTED 4bb96: 2758 0020 movel %a0@+,%a3@(32) <== NOT EXECUTED 4bb9a: 2758 0024 movel %a0@+,%a3@(36) <== NOT EXECUTED 4bb9e: 2758 0028 movel %a0@+,%a3@(40) <== NOT EXECUTED 4bba2: 2758 002c movel %a0@+,%a3@(44) <== NOT EXECUTED 4bba6: 2750 0030 movel %a0@,%a3@(48) <== NOT EXECUTED _Chain_Append( &_User_extensions_List, &the_extension->Node ); 4bbaa: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4bbac: 4879 0005 88f2 pea 588f2 <_User_extensions_List> <== NOT EXECUTED 4bbb2: 4eb9 0004 66d8 jsr 466d8 <_Chain_Append> <== NOT EXECUTED /* * If a switch handler is present, append it to the switch chain. */ if ( extension_table->thread_switch != NULL ) { 4bbb8: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4bbbc: 508f addql #8,%sp <== NOT EXECUTED 4bbbe: 6726 beqs 4bbe6 <_User_extensions_Add_set+0x6e> <== NOT EXECUTED the_extension->Switch.thread_switch = extension_table->thread_switch; _Chain_Append( 4bbc0: 220b movel %a3,%d1 <== NOT EXECUTED 4bbc2: 5081 addql #8,%d1 <== NOT EXECUTED 4bbc4: 2d41 000c movel %d1,%fp@(12) <== NOT EXECUTED 4bbc8: 223c 0005 8758 movel #362328,%d1 <== NOT EXECUTED 4bbce: 2d41 0008 movel %d1,%fp@(8) <== NOT EXECUTED &_User_extensions_Switches_list, &the_extension->Switch.Node ); } } 4bbd2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED /* * If a switch handler is present, append it to the switch chain. */ if ( extension_table->thread_switch != NULL ) { the_extension->Switch.thread_switch = extension_table->thread_switch; 4bbd6: 2740 0010 movel %d0,%a3@(16) <== NOT EXECUTED _Chain_Append( &_User_extensions_Switches_list, &the_extension->Switch.Node ); } } 4bbda: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4bbde: 4e5e unlk %fp <== NOT EXECUTED * If a switch handler is present, append it to the switch chain. */ if ( extension_table->thread_switch != NULL ) { the_extension->Switch.thread_switch = extension_table->thread_switch; _Chain_Append( 4bbe0: 4ef9 0004 66d8 jmp 466d8 <_Chain_Append> <== NOT EXECUTED &_User_extensions_Switches_list, &the_extension->Switch.Node ); } } 4bbe6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4bbea: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4bbee: 4e5e unlk %fp <== NOT EXECUTED 4bbf0: 4e75 rts <== NOT EXECUTED ... 00048d6a <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, uint32_t the_error ) { 48d6a: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 48d6e: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 48d72: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 48d76: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 48d7a: 2479 0005 88fa moveal 588fa <_User_extensions_List+0x8>,%a2 <== NOT EXECUTED void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, uint32_t the_error ) { 48d80: 102e 000f moveb %fp@(15),%d0 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 48d84: b5fc 0005 88f2 cmpal #362738,%a2 <== NOT EXECUTED 48d8a: 6726 beqs 48db2 <_User_extensions_Fatal+0x48> <== NOT EXECUTED the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 48d8c: 4282 clrl %d2 <== NOT EXECUTED 48d8e: 1400 moveb %d0,%d2 <== NOT EXECUTED !_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 ) 48d90: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 48d94: 4a88 tstl %a0 <== NOT EXECUTED 48d96: 670e beqs 48da6 <_User_extensions_Fatal+0x3c> <== NOT EXECUTED (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 48d98: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48d9a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48d9c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 48d9e: 4e90 jsr %a0@ <== NOT EXECUTED 48da0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 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 ) { 48da6: 246a 0004 moveal %a2@(4),%a2 <== NOT EXECUTED { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 48daa: b5fc 0005 88f2 cmpal #362738,%a2 <== NOT EXECUTED 48db0: 66de bnes 48d90 <_User_extensions_Fatal+0x26> <== NOT EXECUTED the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } 48db2: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 48db8: 4e5e unlk %fp <== NOT EXECUTED 48dba: 4e75 rts 00048c40 <_User_extensions_Handler_initialization>: void _User_extensions_Handler_initialization ( uint32_t number_of_extensions, User_extensions_Table *initial_extensions ) { 48c40: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 48c44: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48c48: 203c 0005 88f6 movel #362742,%d0 <== NOT EXECUTED 48c4e: 23c0 0005 88f2 movel %d0,588f2 <_User_extensions_List> <== NOT EXECUTED 48c54: 2a2e 0008 movel %fp@(8),%d5 <== NOT EXECUTED 48c58: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 48c5c: 203c 0005 88f2 movel #362738,%d0 <== NOT EXECUTED 48c62: 23c0 0005 88fa movel %d0,588fa <_User_extensions_List+0x8> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48c68: 203c 0005 875c movel #362332,%d0 <== NOT EXECUTED 48c6e: 23c0 0005 8758 movel %d0,58758 <_User_extensions_Switches_list> <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 48c74: 203c 0005 8758 movel #362328,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48c7a: 42b9 0005 88f6 clrl 588f6 <_User_extensions_List+0x4> <== NOT EXECUTED 48c80: 42b9 0005 875c clrl 5875c <_User_extensions_Switches_list+0x4> <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 48c86: 23c0 0005 8760 movel %d0,58760 <_User_extensions_Switches_list+0x8> <== NOT EXECUTED uint32_t i; _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { 48c8c: 4a83 tstl %d3 <== NOT EXECUTED 48c8e: 6750 beqs 48ce0 <_User_extensions_Handler_initialization+0xa0> <== NOT EXECUTED extension = (User_extensions_Control *) 48c90: 2005 movel %d5,%d0 <== NOT EXECUTED 48c92: 2405 movel %d5,%d2 <== NOT EXECUTED 48c94: e588 lsll #2,%d0 <== NOT EXECUTED 48c96: e98a lsll #4,%d2 <== NOT EXECUTED 48c98: 9480 subl %d0,%d2 <== NOT EXECUTED 48c9a: d485 addl %d5,%d2 <== NOT EXECUTED 48c9c: e58a lsll #2,%d2 <== NOT EXECUTED 48c9e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48ca0: 4eb9 0004 9170 jsr 49170 <_Workspace_Allocate_or_fatal_error> <== NOT EXECUTED _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 48ca6: 2f02 movel %d2,%sp@- <== NOT EXECUTED _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { extension = (User_extensions_Control *) 48ca8: 2800 movel %d0,%d4 <== NOT EXECUTED _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 48caa: 42a7 clrl %sp@- <== NOT EXECUTED 48cac: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48cae: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 48cb4: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 48cba: 4a85 tstl %d5 <== NOT EXECUTED 48cbc: 6722 beqs 48ce0 <_User_extensions_Handler_initialization+0xa0> <== NOT EXECUTED 48cbe: 4282 clrl %d2 <== NOT EXECUTED 48cc0: 45f9 0004 bb78 lea 4bb78 <_User_extensions_Add_set>,%a2 <== NOT EXECUTED _User_extensions_Add_set (extension, &initial_extensions[i]); 48cc6: 2f03 movel %d3,%sp@- <== NOT EXECUTED extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 48cc8: 5282 addql #1,%d2 <== NOT EXECUTED 48cca: 0683 0000 0020 addil #32,%d3 <== NOT EXECUTED _User_extensions_Add_set (extension, &initial_extensions[i]); 48cd0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 48cd2: 4e92 jsr %a2@ <== NOT EXECUTED extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 48cd4: 508f addql #8,%sp <== NOT EXECUTED _User_extensions_Add_set (extension, &initial_extensions[i]); extension++; 48cd6: 0684 0000 0034 addil #52,%d4 <== NOT EXECUTED extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 48cdc: b485 cmpl %d5,%d2 <== NOT EXECUTED 48cde: 65e6 bcss 48cc6 <_User_extensions_Handler_initialization+0x86> <== NOT EXECUTED _User_extensions_Add_set (extension, &initial_extensions[i]); extension++; } } } 48ce0: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 48ce6: 4e5e unlk %fp <== NOT EXECUTED 48ce8: 4e75 rts <== NOT EXECUTED ... 0004e698 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 4e698: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4e69c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e69e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED _Chain_Extract( &the_extension->Node ); 4e6a2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e6a4: 4eb9 0005 2cc4 jsr 52cc4 <_Chain_Extract> <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 4e6aa: 588f addql #4,%sp <== NOT EXECUTED 4e6ac: 4aaa 0024 tstl %a2@(36) <== NOT EXECUTED 4e6b0: 6712 beqs 4e6c4 <_User_extensions_Remove_set+0x2c> <== NOT EXECUTED _Chain_Extract( &the_extension->Switch.Node ); 4e6b2: 508a addql #8,%a2 <== NOT EXECUTED 4e6b4: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4e6b8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4e6bc: 4e5e unlk %fp <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); 4e6be: 4ef9 0005 2cc4 jmp 52cc4 <_Chain_Extract> <== NOT EXECUTED } 4e6c4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4e6c8: 4e5e unlk %fp <== NOT EXECUTED 4e6ca: 4e75 rts 00048cec <_User_extensions_Thread_begin>: */ void _User_extensions_Thread_begin ( Thread_Control *executing ) { 48cec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48cf0: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 48cf2: 2479 0005 88f2 moveal 588f2 <_User_extensions_List>,%a2 <== NOT EXECUTED */ void _User_extensions_Thread_begin ( Thread_Control *executing ) { 48cf8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48cfa: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 48cfe: b5fc 0005 88f6 cmpal #362742,%a2 <== NOT EXECUTED 48d04: 6718 beqs 48d1e <_User_extensions_Thread_begin+0x32> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) 48d06: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 48d0a: 4a88 tstl %a0 <== NOT EXECUTED 48d0c: 6706 beqs 48d14 <_User_extensions_Thread_begin+0x28> <== NOT EXECUTED (*the_extension->Callouts.thread_begin)( executing ); 48d0e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48d10: 4e90 jsr %a0@ <== NOT EXECUTED 48d12: 588f addql #4,%sp <== NOT EXECUTED 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 ) { 48d14: 2452 moveal %a2@,%a2 <== NOT EXECUTED { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 48d16: b5fc 0005 88f6 cmpal #362742,%a2 <== NOT EXECUTED 48d1c: 66e8 bnes 48d06 <_User_extensions_Thread_begin+0x1a> <== NOT EXECUTED the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) (*the_extension->Callouts.thread_begin)( executing ); } } 48d1e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48d22: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48d26: 4e5e unlk %fp <== NOT EXECUTED 48d28: 4e75 rts 00048dbc <_User_extensions_Thread_create>: */ bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 48dbc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48dc0: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 48dc2: 2479 0005 88f2 moveal 588f2 <_User_extensions_List>,%a2 <== NOT EXECUTED */ bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 48dc8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48dca: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 48dce: b5fc 0005 88f6 cmpal #362742,%a2 <== NOT EXECUTED 48dd4: 6722 beqs 48df8 <_User_extensions_Thread_create+0x3c> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { 48dd6: 206a 0014 moveal %a2@(20),%a0 <== NOT EXECUTED 48dda: 4a88 tstl %a0 <== NOT EXECUTED 48ddc: 6710 beqs 48dee <_User_extensions_Thread_create+0x32> <== NOT EXECUTED status = (*the_extension->Callouts.thread_create)( 48dde: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48de0: 2f39 0005 8812 movel 58812 <_Thread_Executing>,%sp@- <== NOT EXECUTED 48de6: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Executing, the_thread ); if ( !status ) 48de8: 508f addql #8,%sp <== NOT EXECUTED 48dea: 4a00 tstb %d0 <== NOT EXECUTED 48dec: 670c beqs 48dfa <_User_extensions_Thread_create+0x3e> <== NOT EXECUTED 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 ) { 48dee: 2452 moveal %a2@,%a2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 48df0: b5fc 0005 88f6 cmpal #362742,%a2 <== NOT EXECUTED 48df6: 66de bnes 48dd6 <_User_extensions_Thread_create+0x1a> <== NOT EXECUTED 48df8: 7001 moveq #1,%d0 <== NOT EXECUTED return FALSE; } } return TRUE; } 48dfa: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48dfe: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48e02: 4e5e unlk %fp <== NOT EXECUTED 48e04: 4e75 rts <== NOT EXECUTED ... 00048e08 <_User_extensions_Thread_delete>: */ void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 48e08: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48e0c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 48e0e: 2479 0005 88fa moveal 588fa <_User_extensions_List+0x8>,%a2 <== NOT EXECUTED */ void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 48e14: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48e16: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 48e1a: b5fc 0005 88f2 cmpal #362738,%a2 <== NOT EXECUTED 48e20: 6720 beqs 48e42 <_User_extensions_Thread_delete+0x3a> <== NOT EXECUTED the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) 48e22: 206a 0020 moveal %a2@(32),%a0 <== NOT EXECUTED 48e26: 4a88 tstl %a0 <== NOT EXECUTED 48e28: 670c beqs 48e36 <_User_extensions_Thread_delete+0x2e> <== NOT EXECUTED (*the_extension->Callouts.thread_delete)( 48e2a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48e2c: 2f39 0005 8812 movel 58812 <_Thread_Executing>,%sp@- <== NOT EXECUTED 48e32: 4e90 jsr %a0@ <== NOT EXECUTED 48e34: 508f addql #8,%sp <== NOT EXECUTED 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 ) { 48e36: 246a 0004 moveal %a2@(4),%a2 <== NOT EXECUTED { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 48e3a: b5fc 0005 88f2 cmpal #362738,%a2 <== NOT EXECUTED 48e40: 66e0 bnes 48e22 <_User_extensions_Thread_delete+0x1a> <== NOT EXECUTED (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } 48e42: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48e46: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48e4a: 4e5e unlk %fp <== NOT EXECUTED 48e4c: 4e75 rts <== NOT EXECUTED ... 00048d2a <_User_extensions_Thread_exitted>: */ void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 48d2a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48d2e: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 48d30: 2479 0005 88fa moveal 588fa <_User_extensions_List+0x8>,%a2 <== NOT EXECUTED */ void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 48d36: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48d38: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 48d3c: b5fc 0005 88f2 cmpal #362738,%a2 <== NOT EXECUTED 48d42: 671a beqs 48d5e <_User_extensions_Thread_exitted+0x34> <== NOT EXECUTED the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) 48d44: 206a 002c moveal %a2@(44),%a0 <== NOT EXECUTED 48d48: 4a88 tstl %a0 <== NOT EXECUTED 48d4a: 6706 beqs 48d52 <_User_extensions_Thread_exitted+0x28> <== NOT EXECUTED (*the_extension->Callouts.thread_exitted)( executing ); 48d4c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48d4e: 4e90 jsr %a0@ <== NOT EXECUTED 48d50: 588f addql #4,%sp <== NOT EXECUTED 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 ) { 48d52: 246a 0004 moveal %a2@(4),%a2 <== NOT EXECUTED { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 48d56: b5fc 0005 88f2 cmpal #362738,%a2 <== NOT EXECUTED 48d5c: 66e6 bnes 48d44 <_User_extensions_Thread_exitted+0x1a> <== NOT EXECUTED the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) (*the_extension->Callouts.thread_exitted)( executing ); } } 48d5e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48d62: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48d66: 4e5e unlk %fp <== NOT EXECUTED 48d68: 4e75 rts 00049848 <_User_extensions_Thread_restart>: */ void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 49848: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4984c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 4984e: 2479 0005 a42a moveal 5a42a <_User_extensions_List>,%a2 <== NOT EXECUTED */ void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 49854: 2f02 movel %d2,%sp@- <== NOT EXECUTED 49856: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 4985a: b5fc 0005 a42e cmpal #369710,%a2 <== NOT EXECUTED 49860: 671e beqs 49880 <_User_extensions_Thread_restart+0x38> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) 49862: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 49866: 4a88 tstl %a0 <== NOT EXECUTED 49868: 670c beqs 49876 <_User_extensions_Thread_restart+0x2e> <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( 4986a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4986c: 2f39 0005 a34a movel 5a34a <_Thread_Executing>,%sp@- <== NOT EXECUTED 49872: 4e90 jsr %a0@ <== NOT EXECUTED 49874: 508f addql #8,%sp <== NOT EXECUTED 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 ) { 49876: 2452 moveal %a2@,%a2 <== NOT EXECUTED { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 49878: b5fc 0005 a42e cmpal #369710,%a2 <== NOT EXECUTED 4987e: 66e2 bnes 49862 <_User_extensions_Thread_restart+0x1a> <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } 49880: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 49884: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49888: 4e5e unlk %fp <== NOT EXECUTED 4988a: 4e75 rts 00048e50 <_User_extensions_Thread_start>: */ void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 48e50: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48e54: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 48e56: 2479 0005 88f2 moveal 588f2 <_User_extensions_List>,%a2 <== NOT EXECUTED */ void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 48e5c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48e5e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 48e62: b5fc 0005 88f6 cmpal #362742,%a2 <== NOT EXECUTED 48e68: 671e beqs 48e88 <_User_extensions_Thread_start+0x38> <== NOT EXECUTED the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) 48e6a: 206a 0018 moveal %a2@(24),%a0 <== NOT EXECUTED 48e6e: 4a88 tstl %a0 <== NOT EXECUTED 48e70: 670c beqs 48e7e <_User_extensions_Thread_start+0x2e> <== NOT EXECUTED (*the_extension->Callouts.thread_start)( 48e72: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48e74: 2f39 0005 8812 movel 58812 <_Thread_Executing>,%sp@- <== NOT EXECUTED 48e7a: 4e90 jsr %a0@ <== NOT EXECUTED 48e7c: 508f addql #8,%sp <== NOT EXECUTED 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 ) { 48e7e: 2452 moveal %a2@,%a2 <== NOT EXECUTED { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 48e80: b5fc 0005 88f6 cmpal #362742,%a2 <== NOT EXECUTED 48e86: 66e2 bnes 48e6a <_User_extensions_Thread_start+0x1a> <== NOT EXECUTED (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } } 48e88: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48e8c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48e90: 4e5e unlk %fp <== NOT EXECUTED 48e92: 4e75 rts 00048e94 <_User_extensions_Thread_switch>: */ void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { 48e94: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48e98: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 48e9c: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 48ea0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; 48ea4: 2479 0005 8758 moveal 58758 <_User_extensions_Switches_list>,%a2 <== NOT EXECUTED !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; 48eaa: b5fc 0005 875c cmpal #362332,%a2 <== NOT EXECUTED 48eb0: 6716 beqs 48ec8 <_User_extensions_Thread_switch+0x34> <== NOT EXECUTED the_node = the_node->next ) { the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); 48eb2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48eb4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48eb6: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED 48eba: 4e90 jsr %a0@ <== NOT EXECUTED 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 ) { 48ebc: 2452 moveal %a2@,%a2 <== NOT EXECUTED { 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 ) ; 48ebe: 508f addql #8,%sp <== NOT EXECUTED 48ec0: b5fc 0005 875c cmpal #362332,%a2 <== NOT EXECUTED 48ec6: 66ea bnes 48eb2 <_User_extensions_Thread_switch+0x1e> <== NOT EXECUTED the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } 48ec8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48ece: 4e5e unlk %fp <== NOT EXECUTED 48ed0: 4e75 rts <== NOT EXECUTED ... 0004a670 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 4a670: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4a674: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4a678: 327c 0700 moveaw #1792,%a1 <== NOT EXECUTED void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 4a67c: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 4a680: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4a684: 2009 movel %a1,%d0 <== NOT EXECUTED 4a686: 40c1 movew %sr,%d1 <== NOT EXECUTED 4a688: 8081 orl %d1,%d0 <== NOT EXECUTED 4a68a: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4a68c: 244b moveal %a3,%a2 <== NOT EXECUTED 4a68e: 205a moveal %a2@+,%a0 <== NOT EXECUTED * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 4a690: b5c8 cmpal %a0,%a2 <== NOT EXECUTED 4a692: 674c beqs 4a6e0 <_Watchdog_Adjust+0x70> <== NOT EXECUTED switch ( direction ) { 4a694: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 4a698: 6652 bnes 4a6ec <_Watchdog_Adjust+0x7c> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 4a69a: 4a82 tstl %d2 <== NOT EXECUTED 4a69c: 6742 beqs 4a6e0 <_Watchdog_Adjust+0x70> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { 4a69e: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED 4a6a2: b682 cmpl %d2,%d3 <== NOT EXECUTED 4a6a4: 6234 bhis 4a6da <_Watchdog_Adjust+0x6a> <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Tickle( header ); _ISR_Disable( level ); 4a6a6: 2809 movel %a1,%d4 <== NOT EXECUTED 4a6a8: 49f9 0004 a8f0 lea 4a8f0 <_Watchdog_Tickle>,%a4 <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 4a6ae: 7001 moveq #1,%d0 <== NOT EXECUTED 4a6b0: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED _ISR_Enable( level ); 4a6b4: 46c1 movew %d1,%sr <== NOT EXECUTED _Watchdog_Tickle( header ); 4a6b6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4a6b8: 4e94 jsr %a4@ <== NOT EXECUTED _ISR_Disable( level ); 4a6ba: 2004 movel %d4,%d0 <== NOT EXECUTED 4a6bc: 40c1 movew %sr,%d1 <== NOT EXECUTED 4a6be: 8081 orl %d1,%d0 <== NOT EXECUTED 4a6c0: 46c0 movew %d0,%sr <== NOT EXECUTED 4a6c2: 2013 movel %a3@,%d0 <== NOT EXECUTED while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; 4a6c4: 9483 subl %d3,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 4a6c6: 2040 moveal %d0,%a0 <== NOT EXECUTED _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) 4a6c8: 588f addql #4,%sp <== NOT EXECUTED 4a6ca: b08a cmpl %a2,%d0 <== NOT EXECUTED 4a6cc: 6712 beqs 4a6e0 <_Watchdog_Adjust+0x70> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 4a6ce: 4a82 tstl %d2 <== NOT EXECUTED 4a6d0: 670e beqs 4a6e0 <_Watchdog_Adjust+0x70> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { 4a6d2: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED 4a6d6: b483 cmpl %d3,%d2 <== NOT EXECUTED 4a6d8: 64d4 bccs 4a6ae <_Watchdog_Adjust+0x3e> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; 4a6da: 9682 subl %d2,%d3 <== NOT EXECUTED 4a6dc: 2143 0010 movel %d3,%a0@(16) <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4a6e0: 46c1 movew %d1,%sr <== NOT EXECUTED } 4a6e2: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4a6e8: 4e5e unlk %fp <== NOT EXECUTED 4a6ea: 4e75 rts <== NOT EXECUTED * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 4a6ec: 7001 moveq #1,%d0 <== NOT EXECUTED 4a6ee: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 4a6f2: 66ec bnes 4a6e0 <_Watchdog_Adjust+0x70> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 4a6f4: d5a8 0010 addl %d2,%a0@(16) <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4a6f8: 46c1 movew %d1,%sr <== NOT EXECUTED } 4a6fa: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4a700: 4e5e unlk %fp <== NOT EXECUTED 4a702: 4e75 rts 00057788 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 57788: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5778c: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 57790: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 57794: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 57798: 286e 0010 moveal %fp@(16),%a4 <== NOT EXECUTED Watchdog_Interval units = units_arg; ISR_Level level; Chain_Node *node; if ( !units ) { 5779c: 6766 beqs 57804 <_Watchdog_Adjust_to_chain+0x7c> <== NOT EXECUTED return; } _ISR_Disable( level ); 5779e: 307c 0700 moveaw #1792,%a0 <== NOT EXECUTED 577a2: 2008 movel %a0,%d0 <== NOT EXECUTED 577a4: 40c4 movew %sr,%d4 <== NOT EXECUTED 577a6: 8084 orl %d4,%d0 <== NOT EXECUTED 577a8: 46c0 movew %d0,%sr <== NOT EXECUTED 577aa: 244b moveal %a3,%a2 <== NOT EXECUTED 577ac: 225a moveal %a2@+,%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( header ) ) { 577ae: b5c9 cmpal %a1,%a2 <== NOT EXECUTED 577b0: 6750 beqs 57802 <_Watchdog_Adjust_to_chain+0x7a> <== NOT EXECUTED 577b2: 2629 0010 movel %a1@(16),%d3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 577b6: 240c movel %a4,%d2 <== NOT EXECUTED do { node = _Chain_Get_unprotected( header ); _Chain_Append_unprotected( to_fire, node ); _ISR_Flash( level ); 577b8: 2a08 movel %a0,%d5 <== NOT EXECUTED 577ba: 5882 addql #4,%d2 <== NOT EXECUTED } _ISR_Disable( level ); if ( !_Chain_Is_empty( header ) ) { while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 577bc: b283 cmpl %d3,%d1 <== NOT EXECUTED 577be: 653c bcss 577fc <_Watchdog_Adjust_to_chain+0x74> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 0; 577c0: 42a9 0010 clrl %a1@(16) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 577c4: b3ca cmpal %a2,%a1 <== NOT EXECUTED 577c6: 6744 beqs 5780c <_Watchdog_Adjust_to_chain+0x84> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 577c8: 2051 moveal %a1@,%a0 <== NOT EXECUTED the_chain->first = new_first; 577ca: 2688 movel %a0,%a3@ <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 577cc: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 577d0: 2282 movel %d2,%a1@ <== NOT EXECUTED old_last_node = the_chain->last; 577d2: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED the_chain->last = the_node; 577d6: 2949 0008 movel %a1,%a4@(8) <== NOT EXECUTED old_last_node->next = the_node; the_node->previous = old_last_node; 577da: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED 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; 577de: 2089 movel %a1,%a0@ <== NOT EXECUTED do { node = _Chain_Get_unprotected( header ); _Chain_Append_unprotected( to_fire, node ); _ISR_Flash( level ); 577e0: 2005 movel %d5,%d0 <== NOT EXECUTED 577e2: 46c4 movew %d4,%sr <== NOT EXECUTED 577e4: 8084 orl %d4,%d0 <== NOT EXECUTED 577e6: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 577e8: 2253 moveal %a3@,%a1 <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && _Watchdog_First( header )->delta_interval == 0 ); 577ea: b3ca cmpal %a2,%a1 <== NOT EXECUTED 577ec: 6714 beqs 57802 <_Watchdog_Adjust_to_chain+0x7a> <== NOT EXECUTED 577ee: 2029 0010 movel %a1@(16),%d0 <== NOT EXECUTED 577f2: 67d0 beqs 577c4 <_Watchdog_Adjust_to_chain+0x3c> <== NOT EXECUTED while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; 577f4: 9283 subl %d3,%d1 <== NOT EXECUTED return; } _ISR_Disable( level ); if ( !_Chain_Is_empty( header ) ) { while ( units ) { 577f6: 670a beqs 57802 <_Watchdog_Adjust_to_chain+0x7a> <== NOT EXECUTED 577f8: 2600 movel %d0,%d3 <== NOT EXECUTED 577fa: 60c0 bras 577bc <_Watchdog_Adjust_to_chain+0x34> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 577fc: 9681 subl %d1,%d3 <== NOT EXECUTED 577fe: 2343 0010 movel %d3,%a1@(16) <== NOT EXECUTED break; } } } _ISR_Enable( level ); 57802: 46c4 movew %d4,%sr <== NOT EXECUTED } 57804: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 <== NOT EXECUTED 57808: 4e5e unlk %fp <== NOT EXECUTED 5780a: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 5780c: 93c9 subal %a1,%a1 <== NOT EXECUTED 5780e: 60c0 bras 577d0 <_Watchdog_Adjust_to_chain+0x48> <== NOT EXECUTED 00048fd0 <_Watchdog_Handler_initialization>: * Output parameters: NONE */ void _Watchdog_Handler_initialization( void ) { _Watchdog_Sync_count = 0; 48fd0: 42b9 0005 8898 clrl 58898 <_Watchdog_Sync_count> <== NOT EXECUTED * * Output parameters: NONE */ void _Watchdog_Handler_initialization( void ) { 48fd6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Watchdog_Sync_count = 0; _Watchdog_Sync_level = 0; 48fda: 42b9 0005 880e clrl 5880e <_Watchdog_Sync_level> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 48fe0: 41f9 0005 8830 lea 58830 <_Watchdog_Ticks_chain>,%a0 <== NOT EXECUTED _Watchdog_Ticks_since_boot = 0; _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); } 48fe6: 43f9 0005 8824 lea 58824 <_Watchdog_Seconds_chain>,%a1 <== NOT EXECUTED 48fec: 4e5e unlk %fp <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 48fee: 23c8 0005 8838 movel %a0,58838 <_Watchdog_Ticks_chain+0x8> <== NOT EXECUTED 48ff4: 23c9 0005 882c movel %a1,5882c <_Watchdog_Seconds_chain+0x8> <== NOT EXECUTED void _Watchdog_Handler_initialization( void ) { _Watchdog_Sync_count = 0; _Watchdog_Sync_level = 0; _Watchdog_Ticks_since_boot = 0; 48ffa: 42b9 0005 889c clrl 5889c <_Watchdog_Ticks_since_boot> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 49000: 20bc 0005 8834 movel #362548,%a0@ <== NOT EXECUTED the_chain->permanent_null = NULL; 49006: 42b9 0005 8834 clrl 58834 <_Watchdog_Ticks_chain+0x4> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4900c: 22bc 0005 8828 movel #362536,%a1@ <== NOT EXECUTED the_chain->permanent_null = NULL; 49012: 42b9 0005 8828 clrl 58828 <_Watchdog_Seconds_chain+0x4> <== NOT EXECUTED _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); } 49018: 4e75 rts <== NOT EXECUTED ... 00048ed4 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 48ed4: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 48ed8: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 48edc: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 48ee0: 2639 0005 87f2 movel 587f2 <_ISR_Nest_level>,%d3 <== NOT EXECUTED _ISR_Disable( level ); 48ee6: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 48eec: 2001 movel %d1,%d0 <== NOT EXECUTED 48eee: 40c4 movew %sr,%d4 <== NOT EXECUTED 48ef0: 8084 orl %d4,%d0 <== NOT EXECUTED 48ef2: 46c0 movew %d0,%sr <== NOT EXECUTED /* * 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 ) { 48ef4: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 48ef8: 6600 00cc bnew 48fc6 <_Watchdog_Insert+0xf2> <== NOT EXECUTED _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 48efc: 2039 0005 8898 movel 58898 <_Watchdog_Sync_count>,%d0 <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 48f02: 7401 moveq #1,%d2 <== NOT EXECUTED _Watchdog_Sync_count++; 48f04: 5280 addql #1,%d0 <== NOT EXECUTED * used around this flash point allowed interrupts to execute * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); 48f06: 2241 moveal %d1,%a1 <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 48f08: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED _Watchdog_Sync_count++; 48f0c: 23c0 0005 8898 movel %d0,58898 <_Watchdog_Sync_count> <== NOT EXECUTED * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 48f12: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 48f16: 242a 000c movel %a2@(12),%d2 <== NOT EXECUTED * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 48f1a: 2053 moveal %a3@,%a0 <== NOT EXECUTED ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 48f1c: 6764 beqs 48f82 <_Watchdog_Insert+0xae> <== NOT EXECUTED 48f1e: 4a90 tstl %a0@ <== NOT EXECUTED 48f20: 6760 beqs 48f82 <_Watchdog_Insert+0xae> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { 48f22: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED 48f26: b282 cmpl %d2,%d1 <== NOT EXECUTED 48f28: 6252 bhis 48f7c <_Watchdog_Insert+0xa8> <== NOT EXECUTED * used around this flash point allowed interrupts to execute * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); 48f2a: 2009 movel %a1,%d0 <== NOT EXECUTED 48f2c: 46c4 movew %d4,%sr <== NOT EXECUTED 48f2e: 8084 orl %d4,%d0 <== NOT EXECUTED 48f30: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 48f32: 7001 moveq #1,%d0 <== NOT EXECUTED 48f34: b0aa 0008 cmpl %a2@(8),%d0 <== NOT EXECUTED 48f38: 666e bnes 48fa8 <_Watchdog_Insert+0xd4> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 48f3a: 2039 0005 880e movel 5880e <_Watchdog_Sync_level>,%d0 <== NOT EXECUTED 48f40: b083 cmpl %d3,%d0 <== NOT EXECUTED 48f42: 6230 bhis 48f74 <_Watchdog_Insert+0xa0> <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 48f44: 9481 subl %d1,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 48f46: 2050 moveal %a0@,%a0 <== NOT EXECUTED */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 48f48: 4a82 tstl %d2 <== NOT EXECUTED 48f4a: 6736 beqs 48f82 <_Watchdog_Insert+0xae> <== NOT EXECUTED 48f4c: 4a90 tstl %a0@ <== NOT EXECUTED 48f4e: 6732 beqs 48f82 <_Watchdog_Insert+0xae> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { 48f50: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED 48f54: b481 cmpl %d1,%d2 <== NOT EXECUTED 48f56: 6524 bcss 48f7c <_Watchdog_Insert+0xa8> <== NOT EXECUTED * used around this flash point allowed interrupts to execute * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); 48f58: 2009 movel %a1,%d0 <== NOT EXECUTED 48f5a: 46c4 movew %d4,%sr <== NOT EXECUTED 48f5c: 8084 orl %d4,%d0 <== NOT EXECUTED 48f5e: 46c0 movew %d0,%sr <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 48f60: 9481 subl %d1,%d2 <== NOT EXECUTED * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 48f62: 7201 moveq #1,%d1 <== NOT EXECUTED 48f64: b2aa 0008 cmpl %a2@(8),%d1 <== NOT EXECUTED 48f68: 663e bnes 48fa8 <_Watchdog_Insert+0xd4> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 48f6a: 2039 0005 880e movel 5880e <_Watchdog_Sync_level>,%d0 <== NOT EXECUTED 48f70: b083 cmpl %d3,%d0 <== NOT EXECUTED 48f72: 63d2 blss 48f46 <_Watchdog_Insert+0x72> <== NOT EXECUTED _Watchdog_Sync_level = insert_isr_nest_level; 48f74: 23c3 0005 880e movel %d3,5880e <_Watchdog_Sync_level> <== NOT EXECUTED 48f7a: 6096 bras 48f12 <_Watchdog_Insert+0x3e> <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; 48f7c: 9282 subl %d2,%d1 <== NOT EXECUTED 48f7e: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 48f82: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 48f86: 2250 moveal %a0@,%a1 <== NOT EXECUTED the_watchdog->start_time = _Watchdog_Ticks_since_boot; 48f88: 2039 0005 889c movel 5889c <_Watchdog_Ticks_since_boot>,%d0 <== NOT EXECUTED after_node->next = the_node; 48f8e: 208a movel %a2,%a0@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 48f90: 7202 moveq #2,%d1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 48f92: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 48f96: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED 48f9a: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 48f9e: 2542 0010 movel %d2,%a2@(16) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 48fa2: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 48fa6: 2489 movel %a1,%a2@ <== NOT EXECUTED _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; 48fa8: 23c3 0005 880e movel %d3,5880e <_Watchdog_Sync_level> <== NOT EXECUTED _Watchdog_Sync_count--; 48fae: 2039 0005 8898 movel 58898 <_Watchdog_Sync_count>,%d0 <== NOT EXECUTED 48fb4: 5380 subql #1,%d0 <== NOT EXECUTED 48fb6: 23c0 0005 8898 movel %d0,58898 <_Watchdog_Sync_count> <== NOT EXECUTED _ISR_Enable( level ); 48fbc: 46c4 movew %d4,%sr <== NOT EXECUTED } 48fbe: 4cd7 0c1c moveml %sp@,%d2-%d4/%a2-%a3 <== NOT EXECUTED 48fc2: 4e5e unlk %fp <== NOT EXECUTED 48fc4: 4e75 rts <== NOT EXECUTED * 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 ) { _ISR_Enable( level ); 48fc6: 46c4 movew %d4,%sr <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 48fc8: 4cd7 0c1c moveml %sp@,%d2-%d4/%a2-%a3 <== NOT EXECUTED 48fcc: 4e5e unlk %fp <== NOT EXECUTED 48fce: 4e75 rts 0004901c <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 4901c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49020: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 49022: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 49028: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4902a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 4902e: 40c2 movew %sr,%d2 <== NOT EXECUTED 49030: 8082 orl %d2,%d0 <== NOT EXECUTED 49032: 46c0 movew %d0,%sr <== NOT EXECUTED previous_state = the_watchdog->state; 49034: 222a 0008 movel %a2@(8),%d1 <== NOT EXECUTED switch ( previous_state ) { 49038: 7001 moveq #1,%d0 <== NOT EXECUTED 4903a: b081 cmpl %d1,%d0 <== NOT EXECUTED 4903c: 6766 beqs 490a4 <_Watchdog_Remove+0x88> <== NOT EXECUTED 4903e: 6316 blss 49056 <_Watchdog_Remove+0x3a> <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 49040: 2039 0005 889c movel 5889c <_Watchdog_Ticks_since_boot>,%d0 <== NOT EXECUTED 49046: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED _ISR_Enable( level ); 4904a: 46c2 movew %d2,%sr <== NOT EXECUTED return( previous_state ); } 4904c: 241f movel %sp@+,%d2 <== NOT EXECUTED 4904e: 245f moveal %sp@+,%a2 <== NOT EXECUTED 49050: 4e5e unlk %fp <== NOT EXECUTED 49052: 2001 movel %d1,%d0 <== NOT EXECUTED 49054: 4e75 rts <== NOT EXECUTED Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 49056: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 4905a: b081 cmpl %d1,%d0 <== NOT EXECUTED 4905c: 65e2 bcss 49040 <_Watchdog_Remove+0x24> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 4905e: 2252 moveal %a2@,%a1 <== NOT EXECUTED break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 49060: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 49064: 4a91 tstl %a1@ <== NOT EXECUTED 49066: 6708 beqs 49070 <_Watchdog_Remove+0x54> <== NOT EXECUTED next_watchdog->delta_interval += the_watchdog->delta_interval; 49068: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4906c: d1a9 0010 addl %d0,%a1@(16) <== NOT EXECUTED if ( _Watchdog_Sync_count ) 49070: 2039 0005 8898 movel 58898 <_Watchdog_Sync_count>,%d0 <== NOT EXECUTED 49076: 670c beqs 49084 <_Watchdog_Remove+0x68> <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; 49078: 2039 0005 87f2 movel 587f2 <_ISR_Nest_level>,%d0 <== NOT EXECUTED 4907e: 23c0 0005 880e movel %d0,5880e <_Watchdog_Sync_level> <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 49084: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 49088: 2039 0005 889c movel 5889c <_Watchdog_Ticks_since_boot>,%d0 <== NOT EXECUTED next->previous = previous; previous->next = next; 4908e: 2089 movel %a1,%a0@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 49090: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED 49094: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED _ISR_Enable( level ); 49098: 46c2 movew %d2,%sr <== NOT EXECUTED return( previous_state ); } 4909a: 241f movel %sp@+,%d2 <== NOT EXECUTED 4909c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4909e: 4e5e unlk %fp <== NOT EXECUTED 490a0: 2001 movel %d1,%d0 <== NOT EXECUTED 490a2: 4e75 rts <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 490a4: 2039 0005 889c movel 5889c <_Watchdog_Ticks_since_boot>,%d0 <== NOT EXECUTED /* * 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; 490aa: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 490ae: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED _ISR_Enable( level ); 490b2: 46c2 movew %d2,%sr <== NOT EXECUTED return( previous_state ); } 490b4: 241f movel %sp@+,%d2 <== NOT EXECUTED 490b6: 245f moveal %sp@+,%a2 <== NOT EXECUTED 490b8: 4e5e unlk %fp <== NOT EXECUTED 490ba: 2001 movel %d1,%d0 <== NOT EXECUTED 490bc: 4e75 rts <== NOT EXECUTED ... 000490c0 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) { 490c0: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 490c4: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED * See the comment in watchdoginsert.c and watchdogadjust.c * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ _ISR_Disable( level ); 490c8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ void _Watchdog_Tickle( Chain_Control *header ) { 490ce: 2a6e 0008 moveal %fp@(8),%a5 <== NOT EXECUTED * See the comment in watchdoginsert.c and watchdogadjust.c * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ _ISR_Disable( level ); 490d2: 40c2 movew %sr,%d2 <== NOT EXECUTED 490d4: 8082 orl %d2,%d0 <== NOT EXECUTED 490d6: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 490d8: 264d moveal %a5,%a3 <== NOT EXECUTED 490da: 205b moveal %a3@+,%a0 <== NOT EXECUTED if ( _Chain_Is_empty( header ) ) 490dc: b7c8 cmpal %a0,%a3 <== NOT EXECUTED 490de: 6740 beqs 49120 <_Watchdog_Tickle+0x60> <== NOT EXECUTED * 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) { 490e0: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 490e4: 2448 moveal %a0,%a2 <== NOT EXECUTED 490e6: 49f9 0004 901c lea 4901c <_Watchdog_Remove>,%a4 <== NOT EXECUTED 490ec: 6708 beqs 490f6 <_Watchdog_Tickle+0x36> <== NOT EXECUTED the_watchdog->delta_interval--; 490ee: 5380 subql #1,%d0 <== NOT EXECUTED 490f0: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) 490f4: 662a bnes 49120 <_Watchdog_Tickle+0x60> <== NOT EXECUTED case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 490f6: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); 490fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 490fe: 4e94 jsr %a4@ <== NOT EXECUTED _ISR_Enable( level ); 49100: 46c2 movew %d2,%sr <== NOT EXECUTED switch( watchdog_state ) { 49102: 7202 moveq #2,%d1 <== NOT EXECUTED 49104: 588f addql #4,%sp <== NOT EXECUTED 49106: b280 cmpl %d0,%d1 <== NOT EXECUTED 49108: 6722 beqs 4912c <_Watchdog_Tickle+0x6c> <== NOT EXECUTED case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 4910a: 2003 movel %d3,%d0 <== NOT EXECUTED 4910c: 40c2 movew %sr,%d2 <== NOT EXECUTED 4910e: 8082 orl %d2,%d0 <== NOT EXECUTED 49110: 46c0 movew %d0,%sr <== NOT EXECUTED 49112: 2015 movel %a5@,%d0 <== NOT EXECUTED 49114: 2440 moveal %d0,%a2 <== NOT EXECUTED the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); 49116: b08b cmpl %a3,%d0 <== NOT EXECUTED 49118: 6706 beqs 49120 <_Watchdog_Tickle+0x60> <== NOT EXECUTED 4911a: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4911e: 67dc beqs 490fc <_Watchdog_Tickle+0x3c> <== NOT EXECUTED leave: _ISR_Enable(level); 49120: 46c2 movew %d2,%sr <== NOT EXECUTED } 49122: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 49128: 4e5e unlk %fp <== NOT EXECUTED 4912a: 4e75 rts <== NOT EXECUTED _ISR_Enable( level ); switch( watchdog_state ) { case WATCHDOG_ACTIVE: (*the_watchdog->routine)( 4912c: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED 49130: 2f2a 0020 movel %a2@(32),%sp@- <== NOT EXECUTED 49134: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 49138: 4e90 jsr %a0@ <== NOT EXECUTED 4913a: 508f addql #8,%sp <== NOT EXECUTED 4913c: 60cc bras 4910a <_Watchdog_Tickle+0x4a> <== NOT EXECUTED ... 00049158 <_Workspace_Allocate>: * _Workspace_Allocate */ void *_Workspace_Allocate( size_t size ) { 49158: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Heap_Allocate( &_Workspace_Area, size ); 4915c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 49160: 4879 0005 8776 pea 58776 <_Workspace_Area> <== NOT EXECUTED 49166: 4eb9 0004 b404 jsr 4b404 <_Heap_Allocate> <== NOT EXECUTED } 4916c: 4e5e unlk %fp <== NOT EXECUTED 4916e: 4e75 rts 00049170 <_Workspace_Allocate_or_fatal_error>: * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { 49170: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ void *_Workspace_Allocate( size_t size ) { return _Heap_Allocate( &_Workspace_Area, size ); 49174: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 49178: 4879 0005 8776 pea 58776 <_Workspace_Area> <== NOT EXECUTED 4917e: 4eb9 0004 b404 jsr 4b404 <_Heap_Allocate> <== NOT EXECUTED { void *memory; memory = _Workspace_Allocate( size ); if ( memory == NULL ) 49184: 508f addql #8,%sp <== NOT EXECUTED 49186: 4a80 tstl %d0 <== NOT EXECUTED 49188: 6704 beqs 4918e <_Workspace_Allocate_or_fatal_error+0x1e> <== NOT EXECUTED TRUE, INTERNAL_ERROR_WORKSPACE_ALLOCATION ); return memory; } 4918a: 4e5e unlk %fp <== NOT EXECUTED 4918c: 4e75 rts <== NOT EXECUTED void *memory; memory = _Workspace_Allocate( size ); if ( memory == NULL ) _Internal_error_Occurred( 4918e: 4878 0004 pea 4 <== NOT EXECUTED 49192: 4878 0001 pea 1 <== NOT EXECUTED 49196: 42a7 clrl %sp@- <== NOT EXECUTED 49198: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED 00049140 <_Workspace_Free>: * _Workspace_Free */ bool _Workspace_Free( void *block ) { 49140: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Heap_Free( &_Workspace_Area, block ); 49144: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 49148: 4879 0005 8776 pea 58776 <_Workspace_Area> <== NOT EXECUTED 4914e: 4eb9 0004 b4c8 jsr 4b4c8 <_Heap_Free> <== NOT EXECUTED } 49154: 4e5e unlk %fp <== NOT EXECUTED 49156: 4e75 rts 0004919e <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 4919e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 491a2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 491a4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 491a8: 6706 beqs 491b0 <_Workspace_Handler_initialization+0x12> <== NOT EXECUTED 491aa: 7003 moveq #3,%d0 <== NOT EXECUTED 491ac: c082 andl %d2,%d0 <== NOT EXECUTED 491ae: 6710 beqs 491c0 <_Workspace_Handler_initialization+0x22> <== NOT EXECUTED _Internal_error_Occurred( 491b0: 4878 0002 pea 2 <== NOT EXECUTED 491b4: 4878 0001 pea 1 <== NOT EXECUTED 491b8: 42a7 clrl %sp@- <== NOT EXECUTED 491ba: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 491c0: 2079 0005 87ee moveal 587ee <_Configuration_Table>,%a0 <== NOT EXECUTED 491c6: 4a28 0028 tstb %a0@(40) <== NOT EXECUTED 491ca: 6628 bnes 491f4 <_Workspace_Handler_initialization+0x56> <== NOT EXECUTED memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 491cc: 4878 0004 pea 4 <== NOT EXECUTED 491d0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 491d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 491d6: 4879 0005 8776 pea 58776 <_Workspace_Area> <== NOT EXECUTED 491dc: 4eb9 0004 6c48 jsr 46c48 <_Heap_Initialize> <== NOT EXECUTED starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 491e2: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 491e8: 4a80 tstl %d0 <== NOT EXECUTED 491ea: 671e beqs 4920a <_Workspace_Handler_initialization+0x6c> <== NOT EXECUTED _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); } 491ec: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 491f0: 4e5e unlk %fp <== NOT EXECUTED 491f2: 4e75 rts <== NOT EXECUTED TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) memset( starting_address, 0, size ); 491f4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 491f8: 42a7 clrl %sp@- <== NOT EXECUTED 491fa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 491fc: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED 49202: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 49208: 60c2 bras 491cc <_Workspace_Handler_initialization+0x2e> <== NOT EXECUTED size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( 4920a: 4878 0003 pea 3 <== NOT EXECUTED 4920e: 4878 0001 pea 1 <== NOT EXECUTED 49212: 42a7 clrl %sp@- <== NOT EXECUTED 49214: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED ... 0004a0f6 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 4a0f6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 4a0fa: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4a0fe: 42a7 clrl %sp@- <== NOT EXECUTED 4a100: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4a104: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4a108: 4eb9 0004 a094 jsr 4a094 <__assert_func> <== NOT EXECUTED 4a10e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED } 4a114: 4e5e unlk %fp <== NOT EXECUTED 4a116: 4e75 rts 0004a094 <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 4a094: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a098: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 4a09c: 223c 0005 5e8c movel #351884,%d1 <== NOT EXECUTED 4a0a2: 4a80 tstl %d0 <== NOT EXECUTED 4a0a4: 6724 beqs 4a0ca <__assert_func+0x36> <== NOT EXECUTED 4a0a6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a0a8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4a0aa: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4a0ae: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4a0b2: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 4a0b6: 4879 0005 5e99 pea 55e99 <== NOT EXECUTED 4a0bc: 4eb9 0004 339e jsr 4339e <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 4a0c2: 42a7 clrl %sp@- <== NOT EXECUTED 4a0c4: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED int line, const char *func, const char *failedexpr ) { printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 4a0ca: 223c 0005 5bd8 movel #351192,%d1 <== NOT EXECUTED 4a0d0: 2001 movel %d1,%d0 <== NOT EXECUTED 4a0d2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a0d4: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4a0d6: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4a0da: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4a0de: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 4a0e2: 4879 0005 5e99 pea 55e99 <== NOT EXECUTED 4a0e8: 4eb9 0004 339e jsr 4339e <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 4a0ee: 42a7 clrl %sp@- <== NOT EXECUTED 4a0f0: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 0005dcf8 <__env_lock>: 5dcf8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5dcfc: 4e5e unlk %fp <== NOT EXECUTED 5dcfe: 4e75 rts 0005dd00 <__env_unlock>: 5dd00: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5dd04: 4e5e unlk %fp <== NOT EXECUTED 5dd06: 4e75 rts 00054da4 <__kill>: #endif #endif int __kill( pid_t pid, int sig ) { 54da4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 54da8: 4e5e unlk %fp <== NOT EXECUTED 54daa: 4280 clrl %d0 <== NOT EXECUTED 54dac: 4e75 rts 00054ad0 <_calloc_r>: void *_calloc_r( struct _reent *ignored, size_t elements, size_t size ) { 54ad0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54ad4: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return calloc( elements, size ); 54ad8: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 54ade: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 54ae2: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ignored, size_t elements, size_t size ) { return calloc( elements, size ); 54ae4: 4ef9 0004 a2d4 jmp 4a2d4 <== NOT EXECUTED ... 0004a3be <_close_r>: int _close_r( struct _reent *ptr, int fd ) { 4a3be: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return close( fd ); 4a3c2: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 4a3c8: 4e5e unlk %fp <== NOT EXECUTED int _close_r( struct _reent *ptr, int fd ) { return close( fd ); 4a3ca: 4ef9 0004 a324 jmp 4a324 <== NOT EXECUTED 00042a68 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 42a68: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42a6c: 4eb9 0005 5404 jsr 55404 <_fini> <== NOT EXECUTED * 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(); 42a72: 4eb9 0004 29f4 jsr 429f4 <== NOT EXECUTED rtems_shutdown_executive(status); 42a78: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42a7c: 4eb9 0004 632c jsr 4632c <== NOT EXECUTED 42a82: 588f addql #4,%sp <== NOT EXECUTED 42a84: 60fe bras 42a84 <_exit+0x1c> <== NOT EXECUTED ... 0006d482 <_fcntl_r>: struct _reent *ptr, int fd, int cmd, int arg ) { 6d482: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6d486: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 6d48a: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED return fcntl( fd, cmd, arg ); 6d48e: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 6d494: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 6d498: 2d41 0008 movel %d1,%fp@(8) <== NOT EXECUTED } 6d49c: 4e5e unlk %fp <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 6d49e: 4ef9 0006 d23c jmp 6d23c <== NOT EXECUTED 00054aec <_free_r>: void _free_r( struct _reent *ignored, void *ptr ) { 54aec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED free( ptr ); 54af0: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 54af6: 4e5e unlk %fp <== NOT EXECUTED void _free_r( struct _reent *ignored, void *ptr ) { free( ptr ); 54af8: 4ef9 0004 a3d0 jmp 4a3d0 <== NOT EXECUTED ... 00054bca <_fstat_r>: int _fstat_r( struct _reent *ptr, int fd, struct stat *buf ) { 54bca: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54bce: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return fstat( fd, buf ); 54bd2: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 54bd8: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 54bdc: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr, int fd, struct stat *buf ) { return fstat( fd, buf ); 54bde: 4ef9 0005 4b00 jmp 54b00 <== NOT EXECUTED 00054bee <_getpid_r>: #include pid_t _getpid_r( struct _reent *ptr ) { 54bee: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpid(); } 54bf2: 4e5e unlk %fp <== NOT EXECUTED 54bf4: 7001 moveq #1,%d0 <== NOT EXECUTED 54bf6: 4e75 rts 0004a5c4 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 4a5c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return gettimeofday( tp, tzp ); } 4a5c8: 4e5e unlk %fp <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 4a5ca: 4ef9 0004 a55c jmp 4a55c <== NOT EXECUTED 0004a5d0 <_gettimeofday_r>: int _gettimeofday_r( struct _reent *ignored_reentrancy_stuff, struct timeval *tp, struct timezone *tzp ) { 4a5d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a5d4: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return gettimeofday( tp, tzp ); 4a5d8: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 4a5de: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 4a5e2: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ignored_reentrancy_stuff, struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 4a5e4: 4ef9 0004 a55c jmp 4a55c <== NOT EXECUTED ... 00054d9a <_kill_r>: #if defined(RTEMS_NEWLIB) #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { 54d9a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 54d9e: 4e5e unlk %fp <== NOT EXECUTED 54da0: 4280 clrl %d0 <== NOT EXECUTED 54da2: 4e75 rts 00061244 <_link_r>: int _link_r( struct _reent *ptr, const char *existing, const char *new ) { 61244: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61248: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return link( existing, new ); 6124c: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 61252: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 61256: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 61258: 4ef9 0006 1040 jmp 61040 <== NOT EXECUTED ... 00054d5a <_lseek_r>: struct _reent *ptr, int fd, off_t offset, int whence ) { 54d5a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54d5e: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 54d62: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED return lseek( fd, offset, whence ); 54d66: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 54d6c: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 54d70: 2d41 0008 movel %d1,%fp@(8) <== NOT EXECUTED } 54d74: 4e5e unlk %fp <== NOT EXECUTED int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 54d76: 4ef9 0005 4c34 jmp 54c34 <== NOT EXECUTED 0006147c <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr, const char *path, struct stat *buf ) { 6147c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61480: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 61484: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 6148a: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 6148e: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 61490: 4ef9 0006 13a8 jmp 613a8 <== NOT EXECUTED ... 00054d7c <_malloc_r>: void *_malloc_r( struct _reent *ignored, size_t size ) { 54d7c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return malloc( size ); 54d80: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 54d86: 4e5e unlk %fp <== NOT EXECUTED void *_malloc_r( struct _reent *ignored, size_t size ) { return malloc( size ); 54d88: 4ef9 0004 a97c jmp 4a97c <== NOT EXECUTED ... 00042fd2 <_open_r>: struct _reent *ptr, const char *buf, int flags, int mode ) { 42fd2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42fd6: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 42fda: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED return open( buf, flags, mode ); 42fde: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 42fe4: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 42fe8: 2d41 0008 movel %d1,%fp@(8) <== NOT EXECUTED } 42fec: 4e5e unlk %fp <== NOT EXECUTED const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 42fee: 4ef9 0004 2d80 jmp 42d80 <== NOT EXECUTED 00054ea8 <_read_r>: struct _reent *ptr, int fd, void *buf, size_t nbytes ) { 54ea8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54eac: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 54eb0: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED return read( fd, buf, nbytes ); 54eb4: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 54eba: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 54ebe: 2d41 0008 movel %d1,%fp@(8) <== NOT EXECUTED } 54ec2: 4e5e unlk %fp <== NOT EXECUTED int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 54ec4: 4ef9 0005 4ddc jmp 54ddc <== NOT EXECUTED ... 00054ecc <_realloc_r>: void *_realloc_r( struct _reent *ignored, void *ptr, size_t size ) { 54ecc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54ed0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return realloc( ptr, size ); 54ed4: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 54eda: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 54ede: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 54ee0: 4ef9 0005 4f0c jmp 54f0c <== NOT EXECUTED ... 0007edd8 <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 7edd8: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED 7eddc: 2f02 movel %d2,%sp@- <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 7edde: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 7ede2: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 7ede6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 7ede8: 4eb9 0004 78e4 jsr 478e4 <== NOT EXECUTED if ( s < 0 ) 7edee: 508f addql #8,%sp <== NOT EXECUTED 7edf0: 4a80 tstl %d0 <== NOT EXECUTED 7edf2: 6d2e blts 7ee22 <_rename_r+0x4a> <== NOT EXECUTED return s; s = link( old, new ); 7edf4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 7edf8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 7edfa: 4eb9 0006 1040 jsr 61040 <== NOT EXECUTED if ( s < 0 ) 7ee00: 508f addql #8,%sp <== NOT EXECUTED 7ee02: 4a80 tstl %d0 <== NOT EXECUTED 7ee04: 6d1c blts 7ee22 <_rename_r+0x4a> <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 7ee06: 202e ffc2 movel %fp@(-62),%d0 <== NOT EXECUTED 7ee0a: 0280 0000 f000 andil #61440,%d0 <== NOT EXECUTED 7ee10: 0c80 0000 4000 cmpil #16384,%d0 <== NOT EXECUTED 7ee16: 6712 beqs 7ee2a <_rename_r+0x52> <== NOT EXECUTED 7ee18: 2f02 movel %d2,%sp@- <== NOT EXECUTED 7ee1a: 4eb9 0006 209c jsr 6209c <== NOT EXECUTED 7ee20: 588f addql #4,%sp <== NOT EXECUTED } 7ee22: 242e ffb0 movel %fp@(-80),%d2 <== NOT EXECUTED 7ee26: 4e5e unlk %fp <== NOT EXECUTED 7ee28: 4e75 rts <== NOT EXECUTED if ( s < 0 ) return s; s = link( old, new ); if ( s < 0 ) return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 7ee2a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 7ee2c: 4eb9 0006 1c54 jsr 61c54 <== NOT EXECUTED } 7ee32: 242e ffb0 movel %fp@(-80),%d2 <== NOT EXECUTED if ( s < 0 ) return s; s = link( old, new ); if ( s < 0 ) return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 7ee36: 588f addql #4,%sp <== NOT EXECUTED } 7ee38: 4e5e unlk %fp <== NOT EXECUTED 7ee3a: 4e75 rts 000479ba <_stat_r>: int _STAT_R_NAME( struct _reent *ptr, const char *path, struct stat *buf ) { 479ba: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 479be: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED return _STAT_NAME( path, buf ); 479c2: 2d6e 0010 000c movel %fp@(16),%fp@(12) <== NOT EXECUTED 479c8: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 479cc: 4e5e unlk %fp <== NOT EXECUTED struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 479ce: 4ef9 0004 78e4 jmp 478e4 <== NOT EXECUTED 000621d6 <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { 621d6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return unlink( path ); 621da: 2d6e 000c 0008 movel %fp@(12),%fp@(8) <== NOT EXECUTED } 621e0: 4e5e unlk %fp <== NOT EXECUTED int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 621e2: 4ef9 0006 209c jmp 6209c <== NOT EXECUTED 00054ee8 <_write_r>: struct _reent *ptr, int fd, const void *buf, size_t nbytes ) { 54ee8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54eec: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 54ef0: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED return write( fd, buf, nbytes ); 54ef4: 2d6e 0014 0010 movel %fp@(20),%fp@(16) <== NOT EXECUTED 54efa: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 54efe: 2d41 0008 movel %d1,%fp@(8) <== NOT EXECUTED } 54f02: 4e5e unlk %fp <== NOT EXECUTED int fd, const void *buf, size_t nbytes ) { return write( fd, buf, nbytes ); 54f04: 4ef9 0005 5030 jmp 55030 <== NOT EXECUTED ... 0005f80c : int access( const char *path, int amode ) { 5f80c: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED 5f810: 2f02 movel %d2,%sp@- <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 5f812: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED int access( const char *path, int amode ) { 5f816: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 5f81a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5f81e: 4eb9 0004 78e4 jsr 478e4 <== NOT EXECUTED 5f824: 508f addql #8,%sp <== NOT EXECUTED 5f826: 4a80 tstl %d0 <== NOT EXECUTED 5f828: 6626 bnes 5f850 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 5f82a: 44c2 movew %d2,%ccr <== NOT EXECUTED 5f82c: 6716 beqs 5f844 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 5f82e: 0802 0001 btst #1,%d2 <== NOT EXECUTED 5f832: 6626 bnes 5f85a <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 5f834: 0802 0000 btst #0,%d2 <== NOT EXECUTED 5f838: 6632 bnes 5f86c <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 5f83a: 4280 clrl %d0 <== NOT EXECUTED return -1; } return 0; } 5f83c: 242e ffb0 movel %fp@(-80),%d2 <== NOT EXECUTED 5f840: 4e5e unlk %fp <== NOT EXECUTED 5f842: 4e75 rts <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 5f844: 202e ffc2 movel %fp@(-62),%d0 <== NOT EXECUTED 5f848: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 5f84e: 66de bnes 5f82e <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) return -1; } return 0; } 5f850: 242e ffb0 movel %fp@(-80),%d2 <== NOT EXECUTED 5f854: 4e5e unlk %fp <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 5f856: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; } return 0; } 5f858: 4e75 rts <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 5f85a: 202e ffc2 movel %fp@(-62),%d0 <== NOT EXECUTED 5f85e: 0280 0000 0080 andil #128,%d0 <== NOT EXECUTED 5f864: 67ea beqs 5f850 <== NOT EXECUTED return -1; } if ( amode & X_OK ) { 5f866: 0802 0000 btst #0,%d2 <== NOT EXECUTED 5f86a: 67ce beqs 5f83a <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 5f86c: 7040 moveq #64,%d0 <== NOT EXECUTED 5f86e: c0ae ffc2 andl %fp@(-62),%d0 <== NOT EXECUTED 5f872: 67dc beqs 5f850 <== NOT EXECUTED 5f874: 4280 clrl %d0 <== NOT EXECUTED 5f876: 60c4 bras 5f83c <== NOT EXECUTED 0004a2d4 : ) { register char *cptr; int length; MSBUMP(calloc_calls, 1); 4a2d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a2d8: 2f03 movel %d3,%sp@- <== NOT EXECUTED length = nelem * elsize; 4a2da: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4a2de: 41ee 0008 lea %fp@(8),%a0 <== NOT EXECUTED 4a2e2: 4c10 3800 mulsl %a0@,%d3 <== NOT EXECUTED ) { register char *cptr; int length; MSBUMP(calloc_calls, 1); 4a2e6: 52b9 0005 8664 addql #1,58664 <== NOT EXECUTED 4a2ec: 2f02 movel %d2,%sp@- <== NOT EXECUTED length = nelem * elsize; cptr = malloc( length ); 4a2ee: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a2f0: 4eb9 0004 a97c jsr 4a97c <== NOT EXECUTED if ( cptr ) 4a2f6: 588f addql #4,%sp <== NOT EXECUTED int length; MSBUMP(calloc_calls, 1); length = nelem * elsize; cptr = malloc( length ); 4a2f8: 2400 movel %d0,%d2 <== NOT EXECUTED if ( cptr ) 4a2fa: 6712 beqs 4a30e <== NOT EXECUTED memset( cptr, '\0', length ); 4a2fc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a2fe: 42a7 clrl %sp@- <== NOT EXECUTED 4a300: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a302: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED 4a308: dffc 0000 000c addal #12,%sp <== NOT EXECUTED MSBUMP(malloc_calls, -1); /* subtract off the malloc */ return cptr; } 4a30e: 2002 movel %d2,%d0 <== NOT EXECUTED 4a310: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a314: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED length = nelem * elsize; cptr = malloc( length ); if ( cptr ) memset( cptr, '\0', length ); MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 4a318: 53b9 0005 8654 subql #1,58654 <== NOT EXECUTED return cptr; } 4a31e: 4e5e unlk %fp <== NOT EXECUTED 4a320: 4e75 rts <== NOT EXECUTED ... 0005fb94 : #include int chdir( const char *pathname ) { 5fb94: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 5fb98: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 5fb9a: 45ee fff0 lea %fp@(-16),%a2 <== NOT EXECUTED 5fb9e: 4878 0001 pea 1 <== NOT EXECUTED 5fba2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5fba4: 4878 0001 pea 1 <== NOT EXECUTED 5fba8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5fbac: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 5fbb2: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 5fbb8: 4a80 tstl %d0 <== NOT EXECUTED 5fbba: 6672 bnes 5fc2e <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 5fbbc: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 5fbc0: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 5fbc4: 4a88 tstl %a0 <== NOT EXECUTED 5fbc6: 674a beqs 5fc12 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 5fbc8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5fbca: 4e90 jsr %a0@ <== NOT EXECUTED 5fbcc: 588f addql #4,%sp <== NOT EXECUTED 5fbce: 7201 moveq #1,%d1 <== NOT EXECUTED 5fbd0: b280 cmpl %d0,%d1 <== NOT EXECUTED 5fbd2: 6664 bnes 5fc38 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 5fbd4: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 5fbda: 2268 000c moveal %a0@(12),%a1 <== NOT EXECUTED 5fbde: 4a89 tstl %a1 <== NOT EXECUTED 5fbe0: 6716 beqs 5fbf8 <== NOT EXECUTED 5fbe2: 2269 001c moveal %a1@(28),%a1 <== NOT EXECUTED 5fbe6: 4a89 tstl %a1 <== NOT EXECUTED 5fbe8: 670e beqs 5fbf8 <== NOT EXECUTED 5fbea: 4868 0004 pea %a0@(4) <== NOT EXECUTED 5fbee: 4e91 jsr %a1@ <== NOT EXECUTED 5fbf0: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 5fbf6: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_current = loc; 5fbf8: 5888 addql #4,%a0 <== NOT EXECUTED 5fbfa: 20d2 movel %a2@,%a0@+ <== NOT EXECUTED return 0; } 5fbfc: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; 5fc00: 20ee fff4 movel %fp@(-12),%a0@+ <== NOT EXECUTED 5fc04: 4280 clrl %d0 <== NOT EXECUTED 5fc06: 20ee fff8 movel %fp@(-8),%a0@+ <== NOT EXECUTED 5fc0a: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED return 0; } 5fc0e: 4e5e unlk %fp <== NOT EXECUTED 5fc10: 4e75 rts <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 5fc12: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 5fc16: 4a88 tstl %a0 <== NOT EXECUTED 5fc18: 6706 beqs 5fc20 <== NOT EXECUTED 5fc1a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5fc1c: 4e90 jsr %a0@ <== NOT EXECUTED 5fc1e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fc20: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 5fc26: 2040 moveal %d0,%a0 <== NOT EXECUTED 5fc28: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 5fc2e: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED 5fc32: 4e5e unlk %fp <== NOT EXECUTED * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fc34: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 5fc36: 4e75 rts <== NOT EXECUTED 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 ); 5fc38: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 5fc3c: 4a88 tstl %a0 <== NOT EXECUTED 5fc3e: 670e beqs 5fc4e <== NOT EXECUTED 5fc40: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 5fc44: 4a88 tstl %a0 <== NOT EXECUTED 5fc46: 6706 beqs 5fc4e <== NOT EXECUTED 5fc48: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5fc4a: 4e90 jsr %a0@ <== NOT EXECUTED 5fc4c: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 5fc4e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 5fc54: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); 5fc58: 2040 moveal %d0,%a0 <== NOT EXECUTED 5fc5a: 7014 moveq #20,%d0 <== NOT EXECUTED 5fc5c: 2080 movel %d0,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 5fc5e: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); 5fc60: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 5fc62: 4e75 rts 00045c40 : int chmod( const char *path, mode_t mode ) { 45c40: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 45c44: 2f03 movel %d3,%sp@- <== NOT EXECUTED int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); 45c46: 260e movel %fp,%d3 <== NOT EXECUTED 45c48: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED int chmod( const char *path, mode_t mode ) { 45c4e: 2f02 movel %d2,%sp@- <== NOT EXECUTED int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); 45c50: 4878 0001 pea 1 <== NOT EXECUTED 45c54: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45c56: 42a7 clrl %sp@- <== NOT EXECUTED 45c58: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45c5c: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( status != 0 ) 45c62: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45c68: 4a80 tstl %d0 <== NOT EXECUTED 45c6a: 6662 bnes 45cce <== NOT EXECUTED return -1; if ( !loc.handlers ){ 45c6c: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 45c70: 4a88 tstl %a0 <== NOT EXECUTED 45c72: 6738 beqs 45cac <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 45c74: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 45c78: 4a88 tstl %a0 <== NOT EXECUTED 45c7a: 6762 beqs 45cde <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 45c7c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 45c80: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45c82: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 45c84: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 45c88: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 45c8a: 508f addql #8,%sp <== NOT EXECUTED 45c8c: 4a88 tstl %a0 <== NOT EXECUTED 45c8e: 670e beqs 45c9e <== NOT EXECUTED 45c90: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 45c94: 4a88 tstl %a0 <== NOT EXECUTED 45c96: 6706 beqs 45c9e <== NOT EXECUTED 45c98: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45c9a: 4e90 jsr %a0@ <== NOT EXECUTED 45c9c: 588f addql #4,%sp <== NOT EXECUTED return result; } 45c9e: 2002 movel %d2,%d0 <== NOT EXECUTED 45ca0: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 45ca4: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 45ca8: 4e5e unlk %fp <== NOT EXECUTED 45caa: 4e75 rts <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 45cac: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 45cb0: 4a88 tstl %a0 <== NOT EXECUTED 45cb2: 670e beqs 45cc2 <== NOT EXECUTED 45cb4: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 45cb8: 4a88 tstl %a0 <== NOT EXECUTED 45cba: 6706 beqs 45cc2 <== NOT EXECUTED 45cbc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45cbe: 4e90 jsr %a0@ <== NOT EXECUTED 45cc0: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 45cc2: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 45cc8: 2040 moveal %d0,%a0 <== NOT EXECUTED 45cca: 7009 moveq #9,%d0 <== NOT EXECUTED 45ccc: 2080 movel %d0,%a0@ <== NOT EXECUTED 45cce: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 45cd0: 2002 movel %d2,%d0 <== NOT EXECUTED 45cd2: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 45cd6: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 45cda: 4e5e unlk %fp <== NOT EXECUTED 45cdc: 4e75 rts <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 45cde: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 45ce2: 4a88 tstl %a0 <== NOT EXECUTED 45ce4: 670e beqs 45cf4 <== NOT EXECUTED 45ce6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 45cea: 4a88 tstl %a0 <== NOT EXECUTED 45cec: 6706 beqs 45cf4 <== NOT EXECUTED 45cee: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45cf0: 4e90 jsr %a0@ <== NOT EXECUTED 45cf2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 45cf4: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 45cfa: 74ff moveq #-1,%d2 <== NOT EXECUTED 45cfc: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 45cfe: 2002 movel %d2,%d0 <== NOT EXECUTED 45d00: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 45d04: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 45d08: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 45d0a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 45d10: 4e75 rts <== NOT EXECUTED ... 0005fc64 : int chown( const char *path, uid_t owner, gid_t group ) { 5fc64: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5fc68: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 5fc6c: 4878 0001 pea 1 <== NOT EXECUTED 5fc70: 280e movel %fp,%d4 <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 5fc72: 362e 000e movew %fp@(14),%d3 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 5fc76: 0684 ffff fff0 addil #-16,%d4 <== NOT EXECUTED 5fc7c: 2f04 movel %d4,%sp@- <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 5fc7e: 342e 0012 movew %fp@(18),%d2 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 5fc82: 42a7 clrl %sp@- <== NOT EXECUTED 5fc84: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5fc88: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED 5fc8e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 5fc94: 4a80 tstl %d0 <== NOT EXECUTED 5fc96: 665e bnes 5fcf6 <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 5fc98: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 5fc9c: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED 5fca0: 4a89 tstl %a1 <== NOT EXECUTED 5fca2: 6736 beqs 5fcda <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 5fca4: 3f02 movew %d2,%sp@- <== NOT EXECUTED 5fca6: 4267 clrw %sp@- <== NOT EXECUTED 5fca8: 3f03 movew %d3,%sp@- <== NOT EXECUTED 5fcaa: 4267 clrw %sp@- <== NOT EXECUTED 5fcac: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5fcae: 4e91 jsr %a1@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 5fcb0: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 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 ); 5fcb4: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 5fcb6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 5fcbc: 4a88 tstl %a0 <== NOT EXECUTED 5fcbe: 670e beqs 5fcce <== NOT EXECUTED 5fcc0: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 5fcc4: 4a88 tstl %a0 <== NOT EXECUTED 5fcc6: 6706 beqs 5fcce <== NOT EXECUTED 5fcc8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5fcca: 4e90 jsr %a0@ <== NOT EXECUTED 5fccc: 588f addql #4,%sp <== NOT EXECUTED return result; } 5fcce: 2002 movel %d2,%d0 <== NOT EXECUTED 5fcd0: 4cee 001c ffe4 moveml %fp@(-28),%d2-%d4 <== NOT EXECUTED 5fcd6: 4e5e unlk %fp <== NOT EXECUTED 5fcd8: 4e75 rts <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 5fcda: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 5fcde: 4a88 tstl %a0 <== NOT EXECUTED 5fce0: 6706 beqs 5fce8 <== NOT EXECUTED 5fce2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5fce4: 4e90 jsr %a0@ <== NOT EXECUTED 5fce6: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fce8: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 5fcee: 2040 moveal %d0,%a0 <== NOT EXECUTED 5fcf0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 5fcf6: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 5fcf8: 2002 movel %d2,%d0 <== NOT EXECUTED 5fcfa: 4cee 001c ffe4 moveml %fp@(-28),%d2-%d4 <== NOT EXECUTED 5fd00: 4e5e unlk %fp <== NOT EXECUTED 5fd02: 4e75 rts 0005fd04 : #include int chroot( const char *pathname ) { 5fd04: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 5fd08: 2f0b movel %a3,%sp@- <== NOT EXECUTED 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) { 5fd0a: 203c 0009 a194 movel #631188,%d0 <== NOT EXECUTED #include int chroot( const char *pathname ) { 5fd10: 2f0a movel %a2,%sp@- <== NOT EXECUTED 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) { 5fd12: b0b9 0008 4c80 cmpl 84c80 ,%d0 <== NOT EXECUTED 5fd18: 677a beqs 5fd94 <== NOT EXECUTED 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); 5fd1a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5fd1e: 4eb9 0005 fb94 jsr 5fb94 <== NOT EXECUTED if (result) { 5fd24: 588f addql #4,%sp <== NOT EXECUTED 5fd26: 4a80 tstl %d0 <== NOT EXECUTED 5fd28: 6600 009c bnew 5fdc6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 5fd2c: 42a7 clrl %sp@- <== NOT EXECUTED 5fd2e: 45ee fff0 lea %fp@(-16),%a2 <== NOT EXECUTED 5fd32: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5fd34: 42a7 clrl %sp@- <== NOT EXECUTED 5fd36: 4879 0008 0628 pea 80628 <_CPU_m68k_BFFFO_table+0x3d7> <== NOT EXECUTED 5fd3c: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED 5fd42: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 5fd48: 4a80 tstl %d0 <== NOT EXECUTED 5fd4a: 667a bnes 5fdc6 <== NOT EXECUTED /* 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); 5fd4c: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 5fd52: 2268 001c moveal %a0@(28),%a1 <== NOT EXECUTED 5fd56: 4a89 tstl %a1 <== NOT EXECUTED 5fd58: 6716 beqs 5fd70 <== NOT EXECUTED 5fd5a: 2269 001c moveal %a1@(28),%a1 <== NOT EXECUTED 5fd5e: 4a89 tstl %a1 <== NOT EXECUTED 5fd60: 670e beqs 5fd70 <== NOT EXECUTED 5fd62: 4868 0014 pea %a0@(20) <== NOT EXECUTED 5fd66: 4e91 jsr %a1@ <== NOT EXECUTED 5fd68: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 5fd6e: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_root = loc; 5fd70: 2152 0014 movel %a2@,%a0@(20) <== NOT EXECUTED return 0; } 5fd74: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 5fd78: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { /* 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); rtems_filesystem_root = loc; 5fd7c: 216e fff4 0018 movel %fp@(-12),%a0@(24) <== NOT EXECUTED 5fd82: 4280 clrl %d0 <== NOT EXECUTED 5fd84: 216e fff8 001c movel %fp@(-8),%a0@(28) <== NOT EXECUTED 5fd8a: 216e fffc 0020 movel %fp@(-4),%a0@(32) <== NOT EXECUTED return 0; } 5fd90: 4e5e unlk %fp <== NOT EXECUTED 5fd92: 4e75 rts <== NOT EXECUTED 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*/ 5fd94: 4eb9 0006 1784 jsr 61784 <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 5fd9a: 203c 0009 a194 movel #631188,%d0 <== NOT EXECUTED 5fda0: b0b9 0008 4c80 cmpl 84c80 ,%d0 <== NOT EXECUTED 5fda6: 6600 ff72 bnew 5fd1a <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fdaa: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 5fdb0: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 5fdb4: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED /* 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*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fdb8: 2040 moveal %d0,%a0 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 5fdba: 4e5e unlk %fp <== NOT EXECUTED /* 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*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fdbc: 70ff moveq #-1,%d0 <== NOT EXECUTED 5fdbe: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 5fdc4: 4e75 rts <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 5fdc6: 45f9 0006 f804 lea 6f804 <__errno>,%a2 <== NOT EXECUTED 5fdcc: 4e92 jsr %a2@ <== NOT EXECUTED 5fdce: 2640 moveal %d0,%a3 <== NOT EXECUTED 5fdd0: 4e92 jsr %a2@ <== NOT EXECUTED 5fdd2: 2040 moveal %d0,%a0 <== NOT EXECUTED 5fdd4: 2690 movel %a0@,%a3@ <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 5fdd6: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 5fdda: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 5fdde: 4e5e unlk %fp <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 5fde0: 70ff moveq #-1,%d0 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); rtems_filesystem_root = loc; return 0; } 5fde2: 4e75 rts 0004a324 : #include int close( int fd ) { 4a324: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a328: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a32a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a32c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 4a330: b4b9 0005 6b98 cmpl 56b98 ,%d2 <== NOT EXECUTED 4a336: 646a bccs 4a3a2 <== NOT EXECUTED iop = rtems_libio_iop(fd); 4a338: 2002 movel %d2,%d0 <== NOT EXECUTED 4a33a: 2202 movel %d2,%d1 <== NOT EXECUTED 4a33c: e588 lsll #2,%d0 <== NOT EXECUTED 4a33e: e989 lsll #4,%d1 <== NOT EXECUTED 4a340: 9280 subl %d0,%d1 <== NOT EXECUTED 4a342: 2479 0005 85ec moveal 585ec ,%a2 <== NOT EXECUTED 4a348: d282 addl %d2,%d1 <== NOT EXECUTED 4a34a: e589 lsll #2,%d1 <== NOT EXECUTED 4a34c: d5c1 addal %d1,%a2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 4a34e: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 4a352: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 4a358: 6748 beqs 4a3a2 <== NOT EXECUTED rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 4a35a: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 4a35e: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4a362: 4a88 tstl %a0 <== NOT EXECUTED 4a364: 6738 beqs 4a39e <== NOT EXECUTED rc = (*iop->handlers->close_h)( iop ); 4a366: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a368: 4e90 jsr %a0@ <== NOT EXECUTED 4a36a: 588f addql #4,%sp <== NOT EXECUTED 4a36c: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &iop->pathinfo ); 4a36e: 206a 0018 moveal %a2@(24),%a0 <== NOT EXECUTED 4a372: 4a88 tstl %a0 <== NOT EXECUTED 4a374: 6710 beqs 4a386 <== NOT EXECUTED 4a376: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4a37a: 4a88 tstl %a0 <== NOT EXECUTED 4a37c: 6708 beqs 4a386 <== NOT EXECUTED 4a37e: 486a 0010 pea %a2@(16) <== NOT EXECUTED 4a382: 4e90 jsr %a0@ <== NOT EXECUTED 4a384: 588f addql #4,%sp <== NOT EXECUTED rtems_libio_free( iop ); 4a386: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a388: 4eb9 0004 a746 jsr 4a746 <== NOT EXECUTED return rc; } 4a38e: 2002 movel %d2,%d0 <== NOT EXECUTED 4a390: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a394: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) rc = (*iop->handlers->close_h)( iop ); rtems_filesystem_freenode( &iop->pathinfo ); rtems_libio_free( iop ); 4a398: 588f addql #4,%sp <== NOT EXECUTED return rc; } 4a39a: 4e5e unlk %fp <== NOT EXECUTED 4a39c: 4e75 rts <== NOT EXECUTED rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 4a39e: 4282 clrl %d2 <== NOT EXECUTED 4a3a0: 60cc bras 4a36e <== NOT EXECUTED rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 4a3a2: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4a3a8: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a3aa: 7009 moveq #9,%d0 <== NOT EXECUTED 4a3ac: 74ff moveq #-1,%d2 <== NOT EXECUTED 4a3ae: 2080 movel %d0,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &iop->pathinfo ); rtems_libio_free( iop ); return rc; } 4a3b0: 2002 movel %d2,%d0 <== NOT EXECUTED 4a3b2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a3b6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a3ba: 4e5e unlk %fp <== NOT EXECUTED 4a3bc: 4e75 rts 0006d064 : * close a directory. */ int closedir( DIR *dirp ) { 6d064: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 6d068: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 6d06c: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED int fd; if ( !dirp ) 6d070: 4a8b tstl %a3 <== NOT EXECUTED 6d072: 672e beqs 6d0a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 6d074: 2413 movel %a3@,%d2 <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 6d076: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; 6d07a: 70ff moveq #-1,%d0 <== NOT EXECUTED dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 6d07c: 45f9 0004 61e4 lea 461e4 ,%a2 <== NOT EXECUTED if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; 6d082: 2680 movel %d0,%a3@ <== NOT EXECUTED dirp->dd_loc = 0; 6d084: 42ab 0004 clrl %a3@(4) <== NOT EXECUTED (void)free((void *)dirp->dd_buf); 6d088: 4e92 jsr %a2@ <== NOT EXECUTED (void)free((void *)dirp); 6d08a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6d08c: 4e92 jsr %a2@ <== NOT EXECUTED return(close(fd)); 6d08e: 508f addql #8,%sp <== NOT EXECUTED 6d090: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 6d094: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 6d09a: 4e5e unlk %fp <== NOT EXECUTED fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); 6d09c: 4ef9 0004 5d14 jmp 45d14 <== NOT EXECUTED DIR *dirp ) { int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); 6d0a2: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); } 6d0a8: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED DIR *dirp ) { int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); 6d0ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 6d0b0: 7209 moveq #9,%d1 <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); } 6d0b2: 4e5e unlk %fp <== NOT EXECUTED 6d0b4: 70ff moveq #-1,%d0 <== NOT EXECUTED DIR *dirp ) { int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); 6d0b6: 2081 movel %d1,%a0@ <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); } 6d0b8: 4e75 rts <== NOT EXECUTED ... 0004bd48 : */ int device_close( rtems_libio_t *iop ) { 4bd48: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4bd4c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( 4bd50: 486e fff4 pea %fp@(-12) <== NOT EXECUTED { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4bd54: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED args.iop = iop; 4bd58: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED args.flags = 0; 4bd5c: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED args.mode = 0; 4bd60: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_close( 4bd64: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4bd68: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4bd6c: 4eb9 0004 c214 jsr 4c214 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 4bd72: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4bd78: 4a80 tstl %d0 <== NOT EXECUTED 4bd7a: 6604 bnes 4bd80 <== NOT EXECUTED return rtems_deviceio_errno(status); } return 0; } 4bd7c: 4e5e unlk %fp <== NOT EXECUTED 4bd7e: 4e75 rts <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 4bd80: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4bd82: 4eba fe86 jsr %pc@(4bc0a ) <== NOT EXECUTED 4bd86: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 4bd88: 4e5e unlk %fp <== NOT EXECUTED 4bd8a: 4e75 rts 0004bc00 : int device_ftruncate( rtems_libio_t *iop, off_t length ) { 4bc00: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 4bc04: 4e5e unlk %fp <== NOT EXECUTED 4bc06: 4280 clrl %d0 <== NOT EXECUTED 4bc08: 4e75 rts 0004bc44 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4bc44: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4bc48: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 4bc4c: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; 4bc50: 2d6e 000c fff4 movel %fp@(12),%fp@(-12) <== NOT EXECUTED args.buffer = buffer; 4bc56: 2d6e 0010 fff8 movel %fp@(16),%fp@(-8) <== NOT EXECUTED the_jnode = iop->file_info; status = rtems_io_control( 4bc5c: 486e fff0 pea %fp@(-16) <== NOT EXECUTED { rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; 4bc60: 2d48 fff0 movel %a0,%fp@(-16) <== NOT EXECUTED args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4bc64: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4bc68: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4bc6c: 4eb9 0004 c268 jsr 4c268 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4bc72: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4bc78: 4a80 tstl %d0 <== NOT EXECUTED 4bc7a: 6608 bnes 4bc84 <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; 4bc7c: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4bc80: 4e5e unlk %fp <== NOT EXECUTED 4bc82: 4e75 rts <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4bc84: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4bc86: 4eba ff82 jsr %pc@(4bc0a ) <== NOT EXECUTED 4bc8a: 588f addql #4,%sp <== NOT EXECUTED return args.ioctl_return; } 4bc8c: 4e5e unlk %fp <== NOT EXECUTED 4bc8e: 4e75 rts 0004bbf4 : off_t device_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 4bbf4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return offset; } 4bbf8: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 4bbfc: 4e5e unlk %fp <== NOT EXECUTED 4bbfe: 4e75 rts 0004bd8c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4bd8c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4bd90: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; 4bd94: 2d68 000c fff8 movel %a0@(12),%fp@(-8) <== NOT EXECUTED { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4bd9a: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED args.iop = iop; args.flags = iop->flags; args.mode = mode; 4bd9e: 2d6e 0014 fffc movel %fp@(20),%fp@(-4) <== NOT EXECUTED status = rtems_io_open( 4bda4: 486e fff4 pea %fp@(-12) <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4bda8: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 4bdac: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4bdb0: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4bdb4: 4eb9 0004 c2bc jsr 4c2bc <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4bdba: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4bdc0: 4a80 tstl %d0 <== NOT EXECUTED 4bdc2: 6604 bnes 4bdc8 <== NOT EXECUTED return rtems_deviceio_errno(status); return 0; } 4bdc4: 4e5e unlk %fp <== NOT EXECUTED 4bdc6: 4e75 rts <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4bdc8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4bdca: 4eba fe3e jsr %pc@(4bc0a ) <== NOT EXECUTED 4bdce: 588f addql #4,%sp <== NOT EXECUTED return 0; } 4bdd0: 4e5e unlk %fp <== NOT EXECUTED 4bdd2: 4e75 rts 0004bcec : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4bcec: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4bcf0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 4bcf4: 2d68 000c fff8 movel %a0@(12),%fp@(-8) <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4bcfa: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4bcfe: 2d68 0008 ffec movel %a0@(8),%fp@(-20) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 4bd04: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 4bd08: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED args.count = count; 4bd0e: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4bd14: 2d48 ffe8 movel %a0,%fp@(-24) <== NOT EXECUTED args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4bd18: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_read( 4bd1c: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4bd20: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4bd24: 4eb9 0004 c310 jsr 4c310 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4bd2a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4bd30: 4a80 tstl %d0 <== NOT EXECUTED 4bd32: 6608 bnes 4bd3c <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 4bd34: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4bd38: 4e5e unlk %fp <== NOT EXECUTED 4bd3a: 4e75 rts <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4bd3c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4bd3e: 4eba feca jsr %pc@(4bc0a ) <== NOT EXECUTED 4bd42: 588f addql #4,%sp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4bd44: 4e5e unlk %fp <== NOT EXECUTED 4bd46: 4e75 rts 0004bc90 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 4bc90: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4bc94: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 4bc98: 2d68 000c fff8 movel %a0@(12),%fp@(-8) <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 4bc9e: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4bca2: 2d68 0008 ffec movel %a0@(8),%fp@(-20) <== NOT EXECUTED args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 4bca8: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 4bcac: 2d6e 000c fff0 movel %fp@(12),%fp@(-16) <== NOT EXECUTED args.count = count; 4bcb2: 2d6e 0010 fff4 movel %fp@(16),%fp@(-12) <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 4bcb8: 2d48 ffe8 movel %a0,%fp@(-24) <== NOT EXECUTED args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 4bcbc: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED status = rtems_io_write( 4bcc0: 2f29 0050 movel %a1@(80),%sp@- <== NOT EXECUTED 4bcc4: 2f29 004c movel %a1@(76),%sp@- <== NOT EXECUTED 4bcc8: 4eb9 0004 c364 jsr 4c364 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4bcce: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4bcd4: 4a80 tstl %d0 <== NOT EXECUTED 4bcd6: 6608 bnes 4bce0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 4bcd8: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 4bcdc: 4e5e unlk %fp <== NOT EXECUTED 4bcde: 4e75 rts <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 4bce0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4bce2: 4eba ff26 jsr %pc@(4bc0a ) <== NOT EXECUTED 4bce6: 588f addql #4,%sp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4bce8: 4e5e unlk %fp <== NOT EXECUTED 4bcea: 4e75 rts 00044388 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 44388: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4438c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 44390: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 44394: 4aaa 00b4 tstl %a2@(180) <== NOT EXECUTED 44398: 6752 beqs 443ec <== NOT EXECUTED rtems_interrupt_disable (level); 4439a: 307c 0700 moveaw #1792,%a0 <== NOT EXECUTED 4439e: 2008 movel %a0,%d0 <== NOT EXECUTED 443a0: 40c2 movew %sr,%d2 <== NOT EXECUTED 443a2: 8082 orl %d2,%d0 <== NOT EXECUTED 443a4: 46c0 movew %d0,%sr <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 443a6: 222a 0084 movel %a2@(132),%d1 <== NOT EXECUTED 443aa: 202a 0080 movel %a2@(128),%d0 <== NOT EXECUTED 443ae: b081 cmpl %d1,%d0 <== NOT EXECUTED 443b0: 6738 beqs 443ea <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 443b2: 2608 movel %a0,%d3 <== NOT EXECUTED 443b4: 47f9 0004 5be8 lea 45be8 ,%a3 <== NOT EXECUTED rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; 443ba: 7002 moveq #2,%d0 <== NOT EXECUTED 443bc: 2540 0094 movel %d0,%a2@(148) <== NOT EXECUTED rtems_interrupt_enable (level); 443c0: 46c2 movew %d2,%sr <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 443c2: 42a7 clrl %sp@- <== NOT EXECUTED 443c4: 42a7 clrl %sp@- <== NOT EXECUTED 443c6: 2f2a 008c movel %a2@(140),%sp@- <== NOT EXECUTED 443ca: 4e93 jsr %a3@ <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 443cc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 443d2: 4a80 tstl %d0 <== NOT EXECUTED 443d4: 6620 bnes 443f6 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 443d6: 2003 movel %d3,%d0 <== NOT EXECUTED 443d8: 40c2 movew %sr,%d2 <== NOT EXECUTED 443da: 8082 orl %d2,%d0 <== NOT EXECUTED 443dc: 46c0 movew %d0,%sr <== 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) { 443de: 222a 0084 movel %a2@(132),%d1 <== NOT EXECUTED 443e2: 202a 0080 movel %a2@(128),%d0 <== NOT EXECUTED 443e6: b081 cmpl %d1,%d0 <== NOT EXECUTED 443e8: 66d0 bnes 443ba <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 443ea: 46c2 movew %d2,%sr <== NOT EXECUTED } } 443ec: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 443f2: 4e5e unlk %fp <== NOT EXECUTED 443f4: 4e75 rts <== NOT EXECUTED 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); 443f6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 443f8: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 00043db2 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 43db2: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 43db6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43db8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 43dbc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 43dbe: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 43dc2: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 43dc6: 1202 moveb %d2,%d1 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 43dc8: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED 43dce: 673c beqs 43e0c <== NOT EXECUTED 43dd0: 2079 0005 7128 moveal 57128 <__ctype_ptr>,%a0 <== NOT EXECUTED 43dd6: 0281 0000 00ff andil #255,%d1 <== NOT EXECUTED 43ddc: 1030 1800 moveb %a0@(00000000,%d1:l),%d0 <== NOT EXECUTED 43de0: 49c0 extbl %d0 <== NOT EXECUTED 43de2: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43de6: 670e beqs 43df6 <== NOT EXECUTED 43de8: 7009 moveq #9,%d0 <== NOT EXECUTED 43dea: b081 cmpl %d1,%d0 <== NOT EXECUTED 43dec: 6708 beqs 43df6 <== NOT EXECUTED 43dee: 103c 000a moveb #10,%d0 <== NOT EXECUTED 43df2: b081 cmpl %d1,%d0 <== NOT EXECUTED 43df4: 6628 bnes 43e1e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 43df6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43df8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43dfa: 4eba fdd4 jsr %pc@(43bd0 ) <== NOT EXECUTED 43dfe: 508f addql #8,%sp <== NOT EXECUTED } } 43e00: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 43e04: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 43e08: 4e5e unlk %fp <== NOT EXECUTED 43e0a: 4e75 rts <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 43e0c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43e0e: 0281 0000 00ff andil #255,%d1 <== NOT EXECUTED 43e14: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43e16: 4eba fdb8 jsr %pc@(43bd0 ) <== NOT EXECUTED 43e1a: 508f addql #8,%sp <== NOT EXECUTED 43e1c: 60e2 bras 43e00 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 43e1e: 2f0a movel %a2,%sp@- <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 43e20: 103c 0040 moveb #64,%d0 <== NOT EXECUTED 43e24: b182 eorl %d0,%d2 <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 43e26: 4878 0002 pea 2 <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 43e2a: 1d42 ffff moveb %d2,%fp@(-1) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 43e2e: 486e fffe pea %fp@(-2) <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; 43e32: 705e moveq #94,%d0 <== NOT EXECUTED 43e34: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 43e38: 4eb9 0004 3aa2 jsr 43aa2 <== NOT EXECUTED tty->column += 2; 43e3e: 54aa 0028 addql #2,%a2@(40) <== NOT EXECUTED } else { oproc (c, tty); } } 43e42: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 43e46: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; 43e4a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } else { oproc (c, tty); } } 43e50: 4e5e unlk %fp <== NOT EXECUTED 43e52: 4e75 rts 00060670 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 60670: 2039 0009 8e92 movel 98e92 ,%d0 <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { 60676: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp != NULL) 6067a: 4a80 tstl %d0 <== NOT EXECUTED 6067c: 670a beqs 60688 <== NOT EXECUTED fclose(group_fp); 6067e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60680: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60686: 588f addql #4,%sp <== NOT EXECUTED } 60688: 4e5e unlk %fp <== NOT EXECUTED 6068a: 4e75 rts 0006068c : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 6068c: 2039 0009 8daa movel 98daa ,%d0 <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 60692: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp != NULL) 60696: 4a80 tstl %d0 <== NOT EXECUTED 60698: 670a beqs 606a4 <== NOT EXECUTED fclose(passwd_fp); 6069a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6069c: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 606a2: 588f addql #4,%sp <== NOT EXECUTED } 606a4: 4e5e unlk %fp <== NOT EXECUTED 606a6: 4e75 rts 00043e54 : * 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) { 43e54: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 43e58: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 43e5c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 43e60: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED if (tty->ccount == 0) 43e64: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 43e68: 6772 beqs 43edc <== NOT EXECUTED return; if (lineFlag) { 43e6a: 4a83 tstl %d3 <== NOT EXECUTED 43e6c: 6778 beqs 43ee6 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 43e6e: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED 43e72: 44c1 movew %d1,%ccr <== NOT EXECUTED 43e74: 6a62 bpls 43ed8 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 43e76: 0801 0004 btst #4,%d1 <== NOT EXECUTED 43e7a: 6700 019e beqw 4401a <== NOT EXECUTED 43e7e: 49f9 0004 3aa2 lea 43aa2 ,%a4 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 43e84: 2040 moveal %d0,%a0 <== NOT EXECUTED 43e86: 226a 001c moveal %a2@(28),%a1 <== NOT EXECUTED 43e8a: 5388 subql #1,%a0 <== NOT EXECUTED 43e8c: 2548 0020 movel %a0,%a2@(32) <== NOT EXECUTED 43e90: 1031 8800 moveb %a1@(00000000,%a0:l),%d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 43e94: 44c1 movew %d1,%ccr <== NOT EXECUTED 43e96: 6a30 bpls 43ec8 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 43e98: 4a83 tstl %d3 <== NOT EXECUTED 43e9a: 6608 bnes 43ea4 <== NOT EXECUTED 43e9c: 0801 0004 btst #4,%d1 <== NOT EXECUTED 43ea0: 6700 015e beqw 44000 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 43ea4: 4282 clrl %d2 <== NOT EXECUTED 43ea6: 1400 moveb %d0,%d2 <== NOT EXECUTED 43ea8: 7a09 moveq #9,%d5 <== NOT EXECUTED 43eaa: ba82 cmpl %d2,%d5 <== NOT EXECUTED 43eac: 6700 00ac beqw 43f5a <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 43eb0: 2079 0005 7128 moveal 57128 <__ctype_ptr>,%a0 <== NOT EXECUTED 43eb6: 1030 2800 moveb %a0@(00000000,%d2:l),%d0 <== NOT EXECUTED 43eba: 49c0 extbl %d0 <== NOT EXECUTED 43ebc: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43ec0: 676e beqs 43f30 <== NOT EXECUTED 43ec2: 0801 0009 btst #9,%d1 <== NOT EXECUTED 43ec6: 662a bnes 43ef2 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 43ec8: 4a83 tstl %d3 <== NOT EXECUTED 43eca: 6710 beqs 43edc <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 43ecc: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 43ed0: 670a beqs 43edc <== NOT EXECUTED 43ed2: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED 43ed6: 60ac bras 43e84 <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 43ed8: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED } } if (!lineFlag) break; } } 43edc: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 43ee2: 4e5e unlk %fp <== NOT EXECUTED 43ee4: 4e75 rts <== NOT EXECUTED 43ee6: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED 43eea: 49f9 0004 3aa2 lea 43aa2 ,%a4 <== NOT EXECUTED 43ef0: 6092 bras 43e84 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 43ef2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43ef4: 4878 0003 pea 3 <== NOT EXECUTED 43ef8: 4879 0005 5bd5 pea 55bd5 <== NOT EXECUTED 43efe: 4e94 jsr %a4@ <== NOT EXECUTED if (tty->column) 43f00: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43f04: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43f0a: 6706 beqs 43f12 <== NOT EXECUTED tty->column--; 43f0c: 5380 subql #1,%d0 <== NOT EXECUTED 43f0e: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 43f12: 2079 0005 7128 moveal 57128 <__ctype_ptr>,%a0 <== NOT EXECUTED 43f18: 1030 2800 moveb %a0@(00000000,%d2:l),%d0 <== NOT EXECUTED 43f1c: 49c0 extbl %d0 <== NOT EXECUTED 43f1e: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43f22: 670c beqs 43f30 <== NOT EXECUTED 43f24: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED 43f28: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED 43f2e: 6798 beqs 43ec8 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 43f30: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43f32: 4878 0003 pea 3 <== NOT EXECUTED 43f36: 4879 0005 5bd5 pea 55bd5 <== NOT EXECUTED 43f3c: 4eb9 0004 3aa2 jsr 43aa2 <== NOT EXECUTED if (tty->column) 43f42: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43f46: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43f4c: 6700 ff7a beqw 43ec8 <== NOT EXECUTED tty->column--; 43f50: 5380 subql #1,%d0 <== NOT EXECUTED 43f52: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 43f56: 6000 ff70 braw 43ec8 <== 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; 43f5a: 242a 002c movel %a2@(44),%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 43f5e: 4a88 tstl %a0 <== NOT EXECUTED 43f60: 6734 beqs 43f96 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 43f62: 2679 0005 7128 moveal 57128 <__ctype_ptr>,%a3 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 43f68: 2801 movel %d1,%d4 <== NOT EXECUTED 43f6a: 0284 0000 0200 andil #512,%d4 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 43f70: 4281 clrl %d1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 43f72: 4280 clrl %d0 <== NOT EXECUTED 43f74: 1031 1800 moveb %a1@(00000000,%d1:l),%d0 <== NOT EXECUTED if (c == '\t') { 43f78: 7a09 moveq #9,%d5 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 43f7a: 5281 addql #1,%d1 <== NOT EXECUTED if (c == '\t') { 43f7c: ba80 cmpl %d0,%d5 <== NOT EXECUTED 43f7e: 6770 beqs 43ff0 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 43f80: 1033 0800 moveb %a3@(00000000,%d0:l),%d0 <== NOT EXECUTED 43f84: 49c0 extbl %d0 <== NOT EXECUTED 43f86: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43f8a: 675c beqs 43fe8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 43f8c: 4a84 tstl %d4 <== NOT EXECUTED 43f8e: 6702 beqs 43f92 <== NOT EXECUTED col += 2; 43f90: 5482 addql #2,%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 43f92: b288 cmpl %a0,%d1 <== NOT EXECUTED 43f94: 66dc bnes 43f72 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43f96: b4aa 0028 cmpl %a2@(40),%d2 <== NOT EXECUTED 43f9a: 6c00 ff2c bgew 43ec8 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 43f9e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43fa0: 4878 0001 pea 1 <== NOT EXECUTED 43fa4: 4879 0005 5bd7 pea 55bd7 <== NOT EXECUTED 43faa: 4e94 jsr %a4@ <== NOT EXECUTED tty->column--; 43fac: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43fb0: 5380 subql #1,%d0 <== NOT EXECUTED 43fb2: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43fb6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43fbc: b480 cmpl %d0,%d2 <== NOT EXECUTED 43fbe: 6c00 ff08 bgew 43ec8 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 43fc2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43fc4: 4878 0001 pea 1 <== NOT EXECUTED 43fc8: 4879 0005 5bd7 pea 55bd7 <== NOT EXECUTED 43fce: 4e94 jsr %a4@ <== NOT EXECUTED tty->column--; 43fd0: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED 43fd4: 5380 subql #1,%d0 <== NOT EXECUTED 43fd6: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 43fda: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43fe0: b480 cmpl %d0,%d2 <== NOT EXECUTED 43fe2: 6dba blts 43f9e <== NOT EXECUTED 43fe4: 6000 fee2 braw 43ec8 <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 43fe8: 5282 addql #1,%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 43fea: b288 cmpl %a0,%d1 <== NOT EXECUTED 43fec: 6684 bnes 43f72 <== NOT EXECUTED 43fee: 60a6 bras 43f96 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 43ff0: 7007 moveq #7,%d0 <== NOT EXECUTED 43ff2: 8082 orl %d2,%d0 <== NOT EXECUTED 43ff4: 2400 movel %d0,%d2 <== NOT EXECUTED 43ff6: 5282 addql #1,%d2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 43ff8: b288 cmpl %a0,%d1 <== NOT EXECUTED 43ffa: 6600 ff76 bnew 43f72 <== NOT EXECUTED 43ffe: 6096 bras 43f96 <== 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); 44000: 4280 clrl %d0 <== NOT EXECUTED 44002: 102a 0043 moveb %a2@(67),%d0 <== NOT EXECUTED 44006: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED } } if (!lineFlag) break; } } 4400a: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== 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); 44010: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } if (!lineFlag) break; } } 44014: 4e5e unlk %fp <== 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); 44016: 6000 fd9a braw 43db2 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 4401a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4401c: 4280 clrl %d0 <== NOT EXECUTED 4401e: 102a 0044 moveb %a2@(68),%d0 <== NOT EXECUTED 44022: 2f00 movel %d0,%sp@- <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; 44024: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 44028: 4eba fd88 jsr %pc@(43db2 ) <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 4402c: 7020 moveq #32,%d0 <== NOT EXECUTED 4402e: 508f addql #8,%sp <== NOT EXECUTED 44030: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 44034: 6700 fea6 beqw 43edc <== NOT EXECUTED echo ('\n', tty); 44038: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 4403c: 700a moveq #10,%d0 <== NOT EXECUTED } } if (!lineFlag) break; } } 4403e: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 44044: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } if (!lineFlag) break; } } 44048: 4e5e unlk %fp <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 4404a: 6000 fd66 braw 43db2 <== NOT EXECUTED 0006d0bc : #include int fchdir( int fd ) { 6d0bc: 4e56 ffc8 linkw %fp,#-56 <== NOT EXECUTED 6d0c0: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 6d0c4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 6d0c8: b4b9 0008 41e8 cmpl 841e8 ,%d2 <== NOT EXECUTED 6d0ce: 6400 0100 bccw 6d1d0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 6d0d2: 2202 movel %d2,%d1 <== NOT EXECUTED 6d0d4: 2002 movel %d2,%d0 <== NOT EXECUTED 6d0d6: e589 lsll #2,%d1 <== NOT EXECUTED 6d0d8: e988 lsll #4,%d0 <== NOT EXECUTED 6d0da: 9081 subl %d1,%d0 <== NOT EXECUTED 6d0dc: 2479 0009 9d00 moveal 99d00 ,%a2 <== NOT EXECUTED 6d0e2: d082 addl %d2,%d0 <== NOT EXECUTED 6d0e4: e588 lsll #2,%d0 <== NOT EXECUTED 6d0e6: d5c0 addal %d0,%a2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 6d0e8: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 6d0ec: 0800 0008 btst #8,%d0 <== NOT EXECUTED 6d0f0: 6700 00de beqw 6d1d0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 6d0f4: 0800 0001 btst #1,%d0 <== NOT EXECUTED 6d0f8: 6700 010e beqw 6d208 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 6d0fc: 206a 0018 moveal %a2@(24),%a0 <== NOT EXECUTED 6d100: 4a88 tstl %a0 <== NOT EXECUTED 6d102: 6700 011c beqw 6d220 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 6d106: 2068 0010 moveal %a0@(16),%a0 <== NOT EXECUTED 6d10a: 4a88 tstl %a0 <== NOT EXECUTED 6d10c: 6700 0112 beqw 6d220 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 6d110: 47ea 0010 lea %a2@(16),%a3 <== NOT EXECUTED 6d114: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6d116: 4e90 jsr %a0@ <== NOT EXECUTED 6d118: 588f addql #4,%sp <== NOT EXECUTED 6d11a: 7201 moveq #1,%d1 <== NOT EXECUTED 6d11c: b280 cmpl %d0,%d1 <== NOT EXECUTED 6d11e: 6600 0098 bnew 6d1b8 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 6d122: 2279 0008 4c80 moveal 84c80 ,%a1 <== NOT EXECUTED 6d128: 49ee ffe0 lea %fp@(-32),%a4 <== NOT EXECUTED 6d12c: 41e9 0004 lea %a1@(4),%a0 <== NOT EXECUTED 6d130: 2898 movel %a0@+,%a4@ <== NOT EXECUTED 6d132: 260e movel %fp,%d3 <== NOT EXECUTED 6d134: 0683 ffff ffe4 addil #-28,%d3 <== NOT EXECUTED 6d13a: 2a43 moveal %d3,%a5 <== NOT EXECUTED 6d13c: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 6d13e: 240e movel %fp,%d2 <== NOT EXECUTED 6d140: 0682 ffff ffe8 addil #-24,%d2 <== NOT EXECUTED 6d146: 2a42 moveal %d2,%a5 <== NOT EXECUTED 6d148: 2a98 movel %a0@+,%a5@ <== NOT EXECUTED 6d14a: 4bee ffec lea %fp@(-20),%a5 <== NOT EXECUTED 6d14e: 2a90 movel %a0@,%a5@ <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 6d150: 5889 addql #4,%a1 <== NOT EXECUTED 6d152: 22d3 movel %a3@,%a1@+ <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 6d154: 47ee fff0 lea %fp@(-16),%a3 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; 6d158: 22ea 0014 movel %a2@(20),%a1@+ <== NOT EXECUTED 6d15c: 22aa 0018 movel %a2@(24),%a1@ <== NOT EXECUTED 6d160: 20aa 001c movel %a2@(28),%a0@ <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 6d164: 42a7 clrl %sp@- <== NOT EXECUTED 6d166: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6d168: 42a7 clrl %sp@- <== NOT EXECUTED 6d16a: 4879 0008 0628 pea 80628 <_CPU_m68k_BFFFO_table+0x3d7> <== NOT EXECUTED 6d170: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED 6d176: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 6d17c: 4a80 tstl %d0 <== NOT EXECUTED 6d17e: 6668 bnes 6d1e8 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 6d180: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED 6d184: 4a88 tstl %a0 <== NOT EXECUTED 6d186: 670e beqs 6d196 <== NOT EXECUTED 6d188: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6d18c: 4a88 tstl %a0 <== NOT EXECUTED 6d18e: 6706 beqs 6d196 <== NOT EXECUTED 6d190: 2f0c movel %a4,%sp@- <== NOT EXECUTED 6d192: 4e90 jsr %a0@ <== NOT EXECUTED 6d194: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_current = loc; 6d196: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6d19c: 5888 addql #4,%a0 <== NOT EXECUTED 6d19e: 20d3 movel %a3@,%a0@+ <== NOT EXECUTED return 0; } 6d1a0: 4cee 3c0c ffc8 moveml %fp@(-56),%d2-%d3/%a2-%a5 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; 6d1a6: 20ee fff4 movel %fp@(-12),%a0@+ <== NOT EXECUTED 6d1aa: 4280 clrl %d0 <== NOT EXECUTED 6d1ac: 20ee fff8 movel %fp@(-8),%a0@+ <== NOT EXECUTED 6d1b0: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED return 0; } 6d1b4: 4e5e unlk %fp <== NOT EXECUTED 6d1b6: 4e75 rts <== 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 ); 6d1b8: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6d1be: 2040 moveal %d0,%a0 <== NOT EXECUTED 6d1c0: 7014 moveq #20,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d1c2: 4cee 3c0c ffc8 moveml %fp@(-56),%d2-%d3/%a2-%a5 <== 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 ); 6d1c8: 2080 movel %d0,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d1ca: 4e5e unlk %fp <== 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 ); 6d1cc: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d1ce: 4e75 rts <== 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); 6d1d0: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6d1d6: 7409 moveq #9,%d2 <== NOT EXECUTED 6d1d8: 2040 moveal %d0,%a0 <== NOT EXECUTED 6d1da: 2082 movel %d2,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d1dc: 4cee 3c0c ffc8 moveml %fp@(-56),%d2-%d3/%a2-%a5 <== NOT EXECUTED 6d1e2: 4e5e unlk %fp <== 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); 6d1e4: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d1e6: 4e75 rts <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 6d1e8: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6d1ee: 5888 addql #4,%a0 <== NOT EXECUTED 6d1f0: 20d4 movel %a4@,%a0@+ <== NOT EXECUTED 6d1f2: 2243 moveal %d3,%a1 <== NOT EXECUTED 6d1f4: 20d1 movel %a1@,%a0@+ <== NOT EXECUTED 6d1f6: 2242 moveal %d2,%a1 <== NOT EXECUTED 6d1f8: 20d1 movel %a1@,%a0@+ <== NOT EXECUTED 6d1fa: 70ff moveq #-1,%d0 <== NOT EXECUTED 6d1fc: 2095 movel %a5@,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d1fe: 4cee 3c0c ffc8 moveml %fp@(-56),%d2-%d3/%a2-%a5 <== NOT EXECUTED 6d204: 4e5e unlk %fp <== NOT EXECUTED 6d206: 4e75 rts <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 6d208: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d20e: 4cee 3c0c ffc8 moveml %fp@(-56),%d2-%d3/%a2-%a5 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 6d214: 2040 moveal %d0,%a0 <== NOT EXECUTED 6d216: 7216 moveq #22,%d1 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d218: 4e5e unlk %fp <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 6d21a: 70ff moveq #-1,%d0 <== NOT EXECUTED 6d21c: 2081 movel %d1,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d21e: 4e75 rts <== 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 ); 6d220: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d226: 4cee 3c0c ffc8 moveml %fp@(-56),%d2-%d3/%a2-%a5 <== 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 ); 6d22c: 2040 moveal %d0,%a0 <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d22e: 4e5e unlk %fp <== 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 ); 6d230: 70ff moveq #-1,%d0 <== NOT EXECUTED 6d232: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &saved ); rtems_filesystem_current = loc; return 0; } 6d238: 4e75 rts <== NOT EXECUTED ... 0005fde4 : int fchmod( int fd, mode_t mode ) { 5fde4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5fde8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5fdea: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 5fdee: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5fdf0: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 5fdf4: b4b9 0008 41e8 cmpl 841e8 ,%d2 <== NOT EXECUTED 5fdfa: 6450 bccs 5fe4c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 5fdfc: 2202 movel %d2,%d1 <== NOT EXECUTED 5fdfe: 2002 movel %d2,%d0 <== NOT EXECUTED 5fe00: e589 lsll #2,%d1 <== NOT EXECUTED 5fe02: e988 lsll #4,%d0 <== NOT EXECUTED 5fe04: 9081 subl %d1,%d0 <== NOT EXECUTED 5fe06: 2279 0009 9d00 moveal 99d00 ,%a1 <== NOT EXECUTED 5fe0c: d082 addl %d2,%d0 <== NOT EXECUTED 5fe0e: e588 lsll #2,%d0 <== NOT EXECUTED 5fe10: d3c0 addal %d0,%a1 <== NOT EXECUTED rtems_libio_check_is_open(iop); 5fe12: 2029 000c movel %a1@(12),%d0 <== NOT EXECUTED 5fe16: 0800 0008 btst #8,%d0 <== NOT EXECUTED 5fe1a: 6730 beqs 5fe4c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5fe1c: 44c0 movew %d0,%ccr <== NOT EXECUTED 5fe1e: 6646 bnes 5fe66 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 5fe20: 2069 0030 moveal %a1@(48),%a0 <== NOT EXECUTED 5fe24: 4aa8 001c tstl %a0@(28) <== NOT EXECUTED 5fe28: 6756 beqs 5fe80 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 5fe2a: 2069 0014 moveal %a1@(20),%a0 <== NOT EXECUTED 5fe2e: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } 5fe32: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5fe36: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 5fe3a: d3fc 0000 0010 addal #16,%a1 <== NOT EXECUTED 5fe40: 2d49 0008 movel %a1,%fp@(8) <== NOT EXECUTED 5fe44: 2268 001c moveal %a0@(28),%a1 <== NOT EXECUTED } 5fe48: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 5fe4a: 4ed1 jmp %a1@ <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5fe4c: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe52: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5fe56: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5fe5a: 2040 moveal %d0,%a0 <== NOT EXECUTED 5fe5c: 7209 moveq #9,%d1 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe5e: 4e5e unlk %fp <== NOT EXECUTED 5fe60: 70ff moveq #-1,%d0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5fe62: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe64: 4e75 rts <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5fe66: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe6c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5fe70: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5fe74: 2040 moveal %d0,%a0 <== NOT EXECUTED 5fe76: 7016 moveq #22,%d0 <== NOT EXECUTED 5fe78: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe7a: 4e5e unlk %fp <== NOT EXECUTED 5fe7c: 70ff moveq #-1,%d0 <== NOT EXECUTED 5fe7e: 4e75 rts <== NOT EXECUTED */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fe80: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe86: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5fe8a: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fe8e: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe90: 4e5e unlk %fp <== NOT EXECUTED 5fe92: 70ff moveq #-1,%d0 <== NOT EXECUTED */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5fe94: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } 5fe9a: 4e75 rts 0005fe9c : int fchown( int fd, uid_t owner, gid_t group ) { 5fe9c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5fea0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 5fea4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 5fea8: 382e 000e movew %fp@(14),%d4 <== NOT EXECUTED 5feac: 362e 0012 movew %fp@(18),%d3 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 5feb0: b4b9 0008 41e8 cmpl 841e8 ,%d2 <== NOT EXECUTED 5feb6: 6456 bccs 5ff0e <== NOT EXECUTED iop = rtems_libio_iop( fd ); 5feb8: 2202 movel %d2,%d1 <== NOT EXECUTED 5feba: 2002 movel %d2,%d0 <== NOT EXECUTED 5febc: e589 lsll #2,%d1 <== NOT EXECUTED 5febe: e988 lsll #4,%d0 <== NOT EXECUTED 5fec0: 9081 subl %d1,%d0 <== NOT EXECUTED 5fec2: 2279 0009 9d00 moveal 99d00 ,%a1 <== NOT EXECUTED 5fec8: d082 addl %d2,%d0 <== NOT EXECUTED 5feca: e588 lsll #2,%d0 <== NOT EXECUTED 5fecc: d3c0 addal %d0,%a1 <== NOT EXECUTED rtems_libio_check_is_open(iop); 5fece: 2029 000c movel %a1@(12),%d0 <== NOT EXECUTED 5fed2: 0800 0008 btst #8,%d0 <== NOT EXECUTED 5fed6: 6736 beqs 5ff0e <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5fed8: 44c0 movew %d0,%ccr <== NOT EXECUTED 5feda: 664a bnes 5ff26 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 5fedc: 2069 0018 moveal %a1@(24),%a0 <== NOT EXECUTED 5fee0: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 5fee4: 4a88 tstl %a0 <== NOT EXECUTED 5fee6: 6756 beqs 5ff3e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 5fee8: 4281 clrl %d1 <== NOT EXECUTED 5feea: 4280 clrl %d0 <== NOT EXECUTED 5feec: 3203 movew %d3,%d1 <== NOT EXECUTED 5feee: d3fc 0000 0010 addal #16,%a1 <== NOT EXECUTED 5fef4: 3004 movew %d4,%d0 <== NOT EXECUTED 5fef6: 2d49 0008 movel %a1,%fp@(8) <== NOT EXECUTED } 5fefa: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 5ff00: 2248 moveal %a0,%a1 <== NOT EXECUTED 5ff02: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED 5ff06: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } 5ff0a: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 5ff0c: 4ed1 jmp %a1@ <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5ff0e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff14: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5ff1a: 2040 moveal %d0,%a0 <== NOT EXECUTED 5ff1c: 7209 moveq #9,%d1 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff1e: 4e5e unlk %fp <== NOT EXECUTED 5ff20: 70ff moveq #-1,%d0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 5ff22: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff24: 4e75 rts <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5ff26: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 5ff2c: 2040 moveal %d0,%a0 <== NOT EXECUTED 5ff2e: 7016 moveq #22,%d0 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff30: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 5ff36: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff38: 4e5e unlk %fp <== NOT EXECUTED 5ff3a: 70ff moveq #-1,%d0 <== NOT EXECUTED 5ff3c: 4e75 rts <== NOT EXECUTED rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5ff3e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff44: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5ff4a: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff4c: 4e5e unlk %fp <== NOT EXECUTED 5ff4e: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 5ff50: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } 5ff56: 4e75 rts 0006d23c : int fcntl( int fd, int cmd, ... ) { 6d23c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 6d240: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 6d244: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 6d248: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 6d24c: 2079 0008 41e8 moveal 841e8 ,%a0 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 6d252: 43ee 0010 lea %fp@(16),%a1 <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 6d256: b1c2 cmpal %d2,%a0 <== NOT EXECUTED 6d258: 6300 01be blsw 6d418 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 6d25c: 2202 movel %d2,%d1 <== NOT EXECUTED 6d25e: 2002 movel %d2,%d0 <== NOT EXECUTED 6d260: e589 lsll #2,%d1 <== NOT EXECUTED 6d262: e988 lsll #4,%d0 <== NOT EXECUTED 6d264: 2679 0009 9d00 moveal 99d00 ,%a3 <== NOT EXECUTED 6d26a: 9081 subl %d1,%d0 <== NOT EXECUTED 6d26c: d082 addl %d2,%d0 <== NOT EXECUTED 6d26e: 45f3 0c00 lea %a3@(00000000,%d0:l:4),%a2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 6d272: 222a 000c movel %a2@(12),%d1 <== NOT EXECUTED 6d276: 0801 0008 btst #8,%d1 <== NOT EXECUTED 6d27a: 6700 019c beqw 6d418 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 6d27e: 7009 moveq #9,%d0 <== NOT EXECUTED 6d280: b083 cmpl %d3,%d0 <== NOT EXECUTED 6d282: 641a bccs 6d29e <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 6d284: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6d28a: 2040 moveal %d0,%a0 <== NOT EXECUTED 6d28c: 7016 moveq #22,%d0 <== NOT EXECUTED 6d28e: 2080 movel %d0,%a0@ <== NOT EXECUTED 6d290: 74ff moveq #-1,%d2 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d292: 2002 movel %d2,%d0 <== NOT EXECUTED 6d294: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 6d29a: 4e5e unlk %fp <== NOT EXECUTED 6d29c: 4e75 rts <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 6d29e: 303b 3a08 movew %pc@(6d2a8 ,%d3:l:2),%d0 <== NOT EXECUTED 6d2a2: 48c0 extl %d0 <== NOT EXECUTED 6d2a4: 4efb 0802 jmp %pc@(6d2a8 ,%d0:l) <== NOT EXECUTED 6d2a8: 00ba 00ac 009c oril #11272348,%d2 <== NOT EXECUTED 6d2ae: 0082 0030 0014 oril #3145748,%d2 <== NOT EXECUTED 6d2b4: 0014 024 <== NOT EXECUTED 6d2b6: 0014 024 <== NOT EXECUTED 6d2b8: 0014 024 <== NOT EXECUTED 6d2ba: 0014 024 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 6d2bc: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6d2c2: 74ff moveq #-1,%d2 <== NOT EXECUTED 6d2c4: 2040 moveal %d0,%a0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d2c6: 2002 movel %d2,%d0 <== NOT EXECUTED 6d2c8: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 6d2ce: 4e5e unlk %fp <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 6d2d0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d2d6: 4e75 rts <== 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 ) ); 6d2d8: 2f11 movel %a1@,%sp@- <== NOT EXECUTED 6d2da: 4eb9 0004 6688 jsr 46688 <== NOT EXECUTED /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 6d2e0: 222a 000c movel %a2@(12),%d1 <== NOT EXECUTED 6d2e4: 0280 0000 0201 andil #513,%d0 <== NOT EXECUTED 6d2ea: 0281 ffff fdfe andil #-514,%d1 <== NOT EXECUTED 6d2f0: 8081 orl %d1,%d0 <== NOT EXECUTED 6d2f2: 588f addql #4,%sp <== NOT EXECUTED 6d2f4: 4282 clrl %d2 <== NOT EXECUTED 6d2f6: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 6d2fa: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 6d2fe: 2068 0030 moveal %a0@(48),%a0 <== NOT EXECUTED 6d302: 4a88 tstl %a0 <== NOT EXECUTED 6d304: 678c beqs 6d292 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 6d306: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6d308: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6d30a: 4e90 jsr %a0@ <== NOT EXECUTED if (err) { 6d30c: 508f addql #8,%sp <== NOT EXECUTED * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); 6d30e: 2600 movel %d0,%d3 <== NOT EXECUTED if (err) { 6d310: 6780 beqs 6d292 <== NOT EXECUTED errno = err; 6d312: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6d318: 74ff moveq #-1,%d2 <== NOT EXECUTED 6d31a: 2040 moveal %d0,%a0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d31c: 2002 movel %d2,%d0 <== NOT EXECUTED if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 6d31e: 2083 movel %d3,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d320: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 6d326: 4e5e unlk %fp <== NOT EXECUTED 6d328: 4e75 rts <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 6d32a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 6d32c: 4eb9 0004 63d8 jsr 463d8 <== NOT EXECUTED 6d332: 588f addql #4,%sp <== NOT EXECUTED 6d334: 2400 movel %d0,%d2 <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 6d336: 6cc2 bges 6d2fa <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d338: 2002 movel %d2,%d0 <== NOT EXECUTED 6d33a: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 6d340: 4e5e unlk %fp <== NOT EXECUTED 6d342: 4e75 rts <== 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 ) ) 6d344: 4a91 tstl %a1@ <== NOT EXECUTED 6d346: 677e beqs 6d3c6 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 6d348: 08c1 000b bset #11,%d1 <== NOT EXECUTED 6d34c: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED 6d350: 4282 clrl %d2 <== NOT EXECUTED 6d352: 60a6 bras 6d2fa <== NOT EXECUTED 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); 6d354: 700b moveq #11,%d0 <== NOT EXECUTED 6d356: 2401 movel %d1,%d2 <== NOT EXECUTED 6d358: e0aa lsrl %d0,%d2 <== NOT EXECUTED 6d35a: 103c 0001 moveb #1,%d0 <== NOT EXECUTED 6d35e: c480 andl %d0,%d2 <== NOT EXECUTED 6d360: 6098 bras 6d2fa <== NOT EXECUTED * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 6d362: 2411 movel %a1@,%d2 <== NOT EXECUTED if ( fd2 ) 6d364: 6700 00cc beqw 6d432 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 6d368: b488 cmpl %a0,%d2 <== NOT EXECUTED 6d36a: 6468 bccs 6d3d4 <== NOT EXECUTED 6d36c: 2202 movel %d2,%d1 <== NOT EXECUTED 6d36e: 2002 movel %d2,%d0 <== NOT EXECUTED 6d370: e589 lsll #2,%d1 <== NOT EXECUTED 6d372: e988 lsll #4,%d0 <== NOT EXECUTED 6d374: 9081 subl %d1,%d0 <== NOT EXECUTED 6d376: d082 addl %d2,%d0 <== NOT EXECUTED 6d378: 41f3 0c00 lea %a3@(00000000,%d0:l:4),%a0 <== NOT EXECUTED 6d37c: 2008 movel %a0,%d0 <== NOT EXECUTED diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 6d37e: 2400 movel %d0,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d380: 216a 0010 0010 movel %a2@(16),%a0@(16) <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 6d386: 94b9 0009 9d00 subl 99d00 ,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d38c: 216a 0014 0014 movel %a2@(20),%a0@(20) <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 6d392: e482 asrl #2,%d2 <== NOT EXECUTED 6d394: 203c c4ec 4ec5 movel #-991146299,%d0 <== NOT EXECUTED 6d39a: 4c00 2800 mulsl %d0,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d39e: 216a 0018 0018 movel %a2@(24),%a0@(24) <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 6d3a4: 216a 0030 0030 movel %a2@(48),%a0@(48) <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d3aa: 216a 001c 001c movel %a2@(28),%a0@(28) <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 6d3b0: 216a 002c 002c movel %a2@(44),%a0@(44) <== NOT EXECUTED diop->flags = iop->flags; 6d3b6: 216a 000c 000c movel %a2@(12),%a0@(12) <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 6d3bc: 4a82 tstl %d2 <== NOT EXECUTED 6d3be: 6c00 ff3a bgew 6d2fa <== NOT EXECUTED 6d3c2: 6000 ff74 braw 6d338 <== NOT EXECUTED */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 6d3c6: 0881 000b bclr #11,%d1 <== NOT EXECUTED 6d3ca: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED 6d3ce: 4282 clrl %d2 <== NOT EXECUTED 6d3d0: 6000 ff28 braw 6d2fa <== NOT EXECUTED switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); 6d3d4: 91c8 subal %a0,%a0 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d3d6: 216a 0010 0010 movel %a2@(16),%a0@(16) <== NOT EXECUTED switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); 6d3dc: 4280 clrl %d0 <== NOT EXECUTED diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 6d3de: 2400 movel %d0,%d2 <== NOT EXECUTED 6d3e0: 94b9 0009 9d00 subl 99d00 ,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d3e6: 216a 0014 0014 movel %a2@(20),%a0@(20) <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 6d3ec: e482 asrl #2,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d3ee: 216a 0018 0018 movel %a2@(24),%a0@(24) <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 6d3f4: 216a 0030 0030 movel %a2@(48),%a0@(48) <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 6d3fa: 203c c4ec 4ec5 movel #-991146299,%d0 <== NOT EXECUTED 6d400: 4c00 2800 mulsl %d0,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d404: 216a 001c 001c movel %a2@(28),%a0@(28) <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 6d40a: 216a 002c 002c movel %a2@(44),%a0@(44) <== NOT EXECUTED diop->flags = iop->flags; 6d410: 216a 000c 000c movel %a2@(12),%a0@(12) <== NOT EXECUTED 6d416: 60a4 bras 6d3bc <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 6d418: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6d41e: 74ff moveq #-1,%d2 <== NOT EXECUTED 6d420: 2040 moveal %d0,%a0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d422: 2002 movel %d2,%d0 <== NOT EXECUTED 6d424: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 6d42a: 7209 moveq #9,%d1 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d42c: 4e5e unlk %fp <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 6d42e: 2081 movel %d1,%a0@ <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 6d430: 4e75 rts <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 6d432: 4eb9 0004 65c2 jsr 465c2 <== NOT EXECUTED 6d438: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( diop == 0 ) { 6d43a: 4a80 tstl %d0 <== NOT EXECUTED 6d43c: 6700 fe52 beqw 6d290 <== NOT EXECUTED diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 6d440: 2400 movel %d0,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d442: 216a 0010 0010 movel %a2@(16),%a0@(16) <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 6d448: 94b9 0009 9d00 subl 99d00 ,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d44e: 216a 0014 0014 movel %a2@(20),%a0@(20) <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 6d454: e482 asrl #2,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d456: 216a 0018 0018 movel %a2@(24),%a0@(24) <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 6d45c: 216a 0030 0030 movel %a2@(48),%a0@(48) <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 6d462: 203c c4ec 4ec5 movel #-991146299,%d0 <== NOT EXECUTED 6d468: 4c00 2800 mulsl %d0,%d2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 6d46c: 216a 001c 001c movel %a2@(28),%a0@(28) <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 6d472: 216a 002c 002c movel %a2@(44),%a0@(44) <== NOT EXECUTED diop->flags = iop->flags; 6d478: 216a 000c 000c movel %a2@(12),%a0@(12) <== NOT EXECUTED 6d47e: 6000 ff3c braw 6d3bc <== NOT EXECUTED 00062200 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 62200: 2079 0009 9d9c moveal 99d9c ,%a0 <== NOT EXECUTED bool file_systems_below_this_mountpoint( const char *path, rtems_filesystem_location_info_t *fs_root_loc, rtems_filesystem_mount_table_entry_t *fs_to_unmount ) { 62206: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 6220a: b1fc 0009 9da0 cmpal #630176,%a0 <== NOT EXECUTED 62210: 6724 beqs 62236 <== NOT EXECUTED 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 ) { 62212: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 62216: 2029 000c movel %a1@(12),%d0 <== NOT EXECUTED 6221a: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 6221e: 6710 beqs 62230 <== 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 ) { 62220: 2050 moveal %a0@,%a0 <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 62222: b1fc 0009 9da0 cmpal #630176,%a0 <== NOT EXECUTED 62228: 670c beqs 62236 <== NOT EXECUTED 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 ) { 6222a: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 6222e: 66f0 bnes 62220 <== NOT EXECUTED return true; } } return false; } 62230: 4e5e unlk %fp <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 62232: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } } return false; } 62234: 4e75 rts <== NOT EXECUTED 62236: 4e5e unlk %fp <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 62238: 4200 clrb %d0 <== NOT EXECUTED return true; } } return false; } 6223a: 4e75 rts 0004a3d0 : void free( void *ptr ) { MSBUMP(free_calls, 1); 4a3d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a3d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a3d6: 52b9 0005 865c addql #1,5865c <== NOT EXECUTED 4a3dc: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED if ( !ptr ) 4a3e0: 6732 beqs 4a414 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 4a3e2: 7003 moveq #3,%d0 <== NOT EXECUTED 4a3e4: b0b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d0 <== NOT EXECUTED 4a3ea: 6758 beqs 4a444 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4a3ec: 2079 0005 75d4 moveal 575d4 ,%a0 <== NOT EXECUTED 4a3f2: 4a88 tstl %a0 <== NOT EXECUTED 4a3f4: 670a beqs 4a400 <== NOT EXECUTED (*rtems_malloc_statistics_helpers->at_free)(ptr); 4a3f6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a3f8: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED 4a3fc: 4e90 jsr %a0@ <== NOT EXECUTED 4a3fe: 588f addql #4,%sp <== NOT EXECUTED if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 4a400: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a402: 4879 0005 85f8 pea 585f8 <== NOT EXECUTED 4a408: 4eb9 0004 b6c8 jsr 4b6c8 <_Protected_heap_Free> <== NOT EXECUTED 4a40e: 508f addql #8,%sp <== NOT EXECUTED 4a410: 4a00 tstb %d0 <== NOT EXECUTED 4a412: 6708 beqs 4a41c <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 4a414: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a418: 4e5e unlk %fp <== NOT EXECUTED 4a41a: 4e75 rts <== 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", 4a41c: 2f39 0005 8614 movel 58614 ,%sp@- <== NOT EXECUTED 4a422: 2f39 0005 8610 movel 58610 ,%sp@- <== NOT EXECUTED 4a428: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a42a: 4879 0005 5ed9 pea 55ed9 <== NOT EXECUTED 4a430: 4eb9 0004 339e jsr 4339e <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 4a436: 242e fffc movel %fp@(-4),%d2 <== 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", 4a43a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 4a440: 4e5e unlk %fp <== NOT EXECUTED 4a442: 4e75 rts <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 4a444: 4eb9 0004 a8dc jsr 4a8dc <== NOT EXECUTED 4a44a: 4a00 tstb %d0 <== NOT EXECUTED 4a44c: 669e bnes 4a3ec <== NOT EXECUTED !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 4a44e: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 4a452: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a456: 4e5e unlk %fp <== NOT EXECUTED * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 4a458: 4ef9 0004 a920 jmp 4a920 <== NOT EXECUTED ... 00061664 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 61664: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 61668: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6166a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 6166e: b5fc 0009 a194 cmpal #631188,%a2 <== NOT EXECUTED 61674: 6740 beqs 616b6 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 61676: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED 6167a: 4a88 tstl %a0 <== NOT EXECUTED 6167c: 6710 beqs 6168e <== NOT EXECUTED 6167e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61682: 4a88 tstl %a0 <== NOT EXECUTED 61684: 6708 beqs 6168e <== NOT EXECUTED 61686: 486a 0004 pea %a2@(4) <== NOT EXECUTED 6168a: 4e90 jsr %a0@ <== NOT EXECUTED 6168c: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 6168e: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 61692: 4a88 tstl %a0 <== NOT EXECUTED 61694: 6710 beqs 616a6 <== NOT EXECUTED 61696: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6169a: 4a88 tstl %a0 <== NOT EXECUTED 6169c: 6708 beqs 616a6 <== NOT EXECUTED 6169e: 486a 0014 pea %a2@(20) <== NOT EXECUTED 616a2: 4e90 jsr %a0@ <== NOT EXECUTED 616a4: 588f addql #4,%sp <== NOT EXECUTED free(env); 616a6: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 616aa: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 616ae: 4e5e unlk %fp <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 616b0: 4ef9 0004 61e4 jmp 461e4 <== NOT EXECUTED } } 616b6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 616ba: 4e5e unlk %fp <== NOT EXECUTED 616bc: 4e75 rts 00054b00 : int fstat( int fd, struct stat *sbuf ) { 54b00: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 54b04: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 54b08: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 54b0c: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 54b10: 6700 00a0 beqw 54bb2 <== NOT EXECUTED /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 54b14: b4b9 0005 6b98 cmpl 56b98 ,%d2 <== NOT EXECUTED 54b1a: 6464 bccs 54b80 <== NOT EXECUTED 54b1c: 2002 movel %d2,%d0 <== NOT EXECUTED 54b1e: 2202 movel %d2,%d1 <== NOT EXECUTED 54b20: e588 lsll #2,%d0 <== NOT EXECUTED 54b22: e989 lsll #4,%d1 <== NOT EXECUTED 54b24: 9280 subl %d0,%d1 <== NOT EXECUTED 54b26: 2479 0005 85ec moveal 585ec ,%a2 <== NOT EXECUTED 54b2c: d282 addl %d2,%d1 <== NOT EXECUTED 54b2e: e589 lsll #2,%d1 <== NOT EXECUTED 54b30: d5c1 addal %d1,%a2 <== NOT EXECUTED rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 54b32: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 54b36: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 54b3c: 6742 beqs 54b80 <== NOT EXECUTED if ( !iop->handlers ) 54b3e: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 54b42: 4a88 tstl %a0 <== NOT EXECUTED 54b44: 673a beqs 54b80 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 54b46: 4aa8 0018 tstl %a0@(24) <== NOT EXECUTED 54b4a: 674c beqs 54b98 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 54b4c: 4878 004a pea 4a <== NOT EXECUTED 54b50: 42a7 clrl %sp@- <== NOT EXECUTED 54b52: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54b54: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 54b5a: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 54b5e: d5fc 0000 0010 addal #16,%a2 <== NOT EXECUTED 54b64: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 54b68: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54b6e: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED 54b72: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 54b76: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 54b7c: 4e5e unlk %fp <== NOT EXECUTED * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 54b7e: 4ed1 jmp %a1@ <== NOT EXECUTED 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 ); 54b80: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 54b86: 2040 moveal %d0,%a0 <== NOT EXECUTED 54b88: 7009 moveq #9,%d0 <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54b8a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 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 ); 54b90: 2080 movel %d0,%a0@ <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54b92: 4e5e unlk %fp <== NOT EXECUTED 54b94: 70ff moveq #-1,%d0 <== NOT EXECUTED 54b96: 4e75 rts <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 54b98: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54b9e: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 54ba4: 2040 moveal %d0,%a0 <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54ba6: 4e5e unlk %fp <== NOT EXECUTED 54ba8: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 54baa: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54bb0: 4e75 rts <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 54bb2: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54bb8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 54bbe: 2040 moveal %d0,%a0 <== NOT EXECUTED 54bc0: 720e moveq #14,%d1 <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54bc2: 4e5e unlk %fp <== NOT EXECUTED 54bc4: 70ff moveq #-1,%d0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 54bc6: 2081 movel %d1,%a0@ <== NOT EXECUTED * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); } 54bc8: 4e75 rts 0006003c : #include int fsync( int fd ) { 6003c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 60040: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60042: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 60046: b4b9 0008 41e8 cmpl 841e8 ,%d2 <== NOT EXECUTED 6004c: 6440 bccs 6008e <== NOT EXECUTED iop = rtems_libio_iop( fd ); 6004e: 2202 movel %d2,%d1 <== NOT EXECUTED 60050: 2002 movel %d2,%d0 <== NOT EXECUTED 60052: e589 lsll #2,%d1 <== NOT EXECUTED 60054: e988 lsll #4,%d0 <== NOT EXECUTED 60056: 9081 subl %d1,%d0 <== NOT EXECUTED 60058: 2079 0009 9d00 moveal 99d00 ,%a0 <== NOT EXECUTED 6005e: d082 addl %d2,%d0 <== NOT EXECUTED 60060: e588 lsll #2,%d0 <== NOT EXECUTED 60062: d1c0 addal %d0,%a0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 60064: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED 60068: 0800 0008 btst #8,%d0 <== NOT EXECUTED 6006c: 6720 beqs 6008e <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 6006e: 44c0 movew %d0,%ccr <== NOT EXECUTED 60070: 6632 bnes 600a4 <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 60072: 2268 0030 moveal %a0@(48),%a1 <== NOT EXECUTED 60076: 4a89 tstl %a1 <== NOT EXECUTED 60078: 6714 beqs 6008e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 6007a: 2029 0028 movel %a1@(40),%d0 <== NOT EXECUTED 6007e: 673a beqs 600ba <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 60080: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 60084: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 60088: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 6008a: 2240 moveal %d0,%a1 <== NOT EXECUTED 6008c: 4ed1 jmp %a1@ <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 6008e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 60094: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 60098: 2040 moveal %d0,%a0 <== NOT EXECUTED 6009a: 7009 moveq #9,%d0 <== NOT EXECUTED 6009c: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 6009e: 4e5e unlk %fp <== NOT EXECUTED 600a0: 70ff moveq #-1,%d0 <== NOT EXECUTED 600a2: 4e75 rts <== 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 ); 600a4: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 600aa: 242e fffc movel %fp@(-4),%d2 <== 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 ); 600ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 600b0: 7216 moveq #22,%d1 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 600b2: 4e5e unlk %fp <== NOT EXECUTED 600b4: 70ff moveq #-1,%d0 <== 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 ); 600b6: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); } 600b8: 4e75 rts <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 600ba: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED return (*iop->handlers->fsync_h)( iop ); } 600c0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 600c4: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->handlers->fsync_h)( iop ); } 600c6: 4e5e unlk %fp <== NOT EXECUTED 600c8: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 600ca: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->handlers->fsync_h)( iop ); } 600d0: 4e75 rts <== NOT EXECUTED ... 0004a460 : int ftruncate( int fd, off_t length ) { 4a460: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4a464: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a466: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a468: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 4a46c: b4b9 0005 6b98 cmpl 56b98 ,%d2 <== NOT EXECUTED 4a472: 647e bccs 4a4f2 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 4a474: 2002 movel %d2,%d0 <== NOT EXECUTED 4a476: 2202 movel %d2,%d1 <== NOT EXECUTED 4a478: e588 lsll #2,%d0 <== NOT EXECUTED 4a47a: e989 lsll #4,%d1 <== NOT EXECUTED 4a47c: 9280 subl %d0,%d1 <== NOT EXECUTED 4a47e: 2479 0005 85ec moveal 585ec ,%a2 <== NOT EXECUTED 4a484: d282 addl %d2,%d1 <== NOT EXECUTED 4a486: e589 lsll #2,%d1 <== NOT EXECUTED 4a488: d5c1 addal %d1,%a2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 4a48a: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 4a48e: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 4a494: 675c beqs 4a4f2 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4a496: 43ee fff0 lea %fp@(-16),%a1 <== NOT EXECUTED 4a49a: 22aa 0010 movel %a2@(16),%a1@ <== NOT EXECUTED 4a49e: 2d6a 0014 fff4 movel %a2@(20),%fp@(-12) <== NOT EXECUTED 4a4a4: 2d6a 0018 fff8 movel %a2@(24),%fp@(-8) <== NOT EXECUTED if ( !loc.ops->node_type_h ) 4a4aa: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4a4ae: 2068 0010 moveal %a0@(16),%a0 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4a4b2: 2d6a 001c fffc movel %a2@(28),%fp@(-4) <== NOT EXECUTED if ( !loc.ops->node_type_h ) 4a4b8: 4a88 tstl %a0 <== NOT EXECUTED 4a4ba: 676a beqs 4a526 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 4a4bc: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4a4be: 4e90 jsr %a0@ <== NOT EXECUTED 4a4c0: 588f addql #4,%sp <== NOT EXECUTED 4a4c2: 7201 moveq #1,%d1 <== NOT EXECUTED 4a4c4: b280 cmpl %d0,%d1 <== NOT EXECUTED 4a4c6: 677a beqs 4a542 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4a4c8: 7004 moveq #4,%d0 <== NOT EXECUTED 4a4ca: c0aa 000c andl %a2@(12),%d0 <== NOT EXECUTED 4a4ce: 673c beqs 4a50c <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 4a4d0: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 4a4d4: 2068 0020 moveal %a0@(32),%a0 <== NOT EXECUTED 4a4d8: 4a88 tstl %a0 <== NOT EXECUTED 4a4da: 674a beqs 4a526 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 4a4dc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4a4e0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a4e2: 4e90 jsr %a0@ <== NOT EXECUTED } 4a4e4: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 4a4e8: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 4a4ec: 508f addql #8,%sp <== NOT EXECUTED } 4a4ee: 4e5e unlk %fp <== NOT EXECUTED 4a4f0: 4e75 rts <== NOT EXECUTED 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); 4a4f2: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4a4f8: 7409 moveq #9,%d2 <== NOT EXECUTED 4a4fa: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a4fc: 2082 movel %d2,%a0@ <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a4fe: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 4a502: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED 4a506: 4e5e unlk %fp <== NOT EXECUTED 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); 4a508: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a50a: 4e75 rts <== 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 ); 4a50c: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a512: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 4a516: 246e ffec moveal %fp@(-20),%a2 <== 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 ); 4a51a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a51c: 7016 moveq #22,%d0 <== NOT EXECUTED 4a51e: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a520: 4e5e unlk %fp <== 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 ); 4a522: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a524: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a526: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); } 4a52c: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 4a530: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a534: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); } 4a536: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 4a538: 70ff moveq #-1,%d0 <== NOT EXECUTED 4a53a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); } 4a540: 4e75 rts <== 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 ); 4a542: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a548: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 4a54c: 246e ffec moveal %fp@(-20),%a2 <== 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 ); 4a550: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a552: 7215 moveq #21,%d1 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a554: 4e5e unlk %fp <== 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 ); 4a556: 70ff moveq #-1,%d0 <== NOT EXECUTED 4a558: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); } 4a55a: 4e75 rts 000601d0 : char * getcwd ( char *pt, size_t size) { 601d0: 4e56 ff64 linkw %fp,#-156 <== NOT EXECUTED 601d4: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 601d8: 2c2e 0008 movel %fp@(8),%d6 <== NOT EXECUTED 601dc: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED * If no buffer specified by the user, allocate one as necessary. * If a buffer is specified, the size has to be non-zero. The path * is built from the end of the buffer backwards. */ if (pt) 601e0: 4a86 tstl %d6 <== NOT EXECUTED 601e2: 6700 03f4 beqw 605d8 <== NOT EXECUTED { ptsize = 0; if (!size) 601e6: 4a80 tstl %d0 <== NOT EXECUTED 601e8: 6700 03d4 beqw 605be <== NOT EXECUTED { errno = EINVAL; return (char *) NULL; } ept = pt + size; 601ec: 2046 moveal %d6,%a0 <== NOT EXECUTED 601ee: d1c0 addal %d0,%a0 <== NOT EXECUTED 601f0: 45f9 0004 6828 lea 46828 ,%a2 <== NOT EXECUTED 601f6: 2d48 ffac movel %a0,%fp@(-84) <== NOT EXECUTED 601fa: 42ae ffa4 clrl %fp@(-92) <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 601fe: 2e2e ffac movel %fp@(-84),%d7 <== NOT EXECUTED *bpt = '\0'; 60202: 5387 subql #1,%d7 <== NOT EXECUTED 60204: 2047 moveal %d7,%a0 <== NOT EXECUTED 60206: 4210 clrb %a0@ <== NOT EXECUTED * Allocate bytes (1024 - malloc space) for the string of "../"'s. * Should always be enough (it's 340 levels). If it's not, allocate * as necessary. Special * case the first stat, it's ".", not "..". */ if (!(up = (char *) malloc (upsize = 1024 - 4))) 60208: 4878 03fc pea 3fc <== NOT EXECUTED 6020c: 4e92 jsr %a2@ <== NOT EXECUTED 6020e: 588f addql #4,%sp <== NOT EXECUTED 60210: 2640 moveal %d0,%a3 <== NOT EXECUTED 60212: 4a80 tstl %d0 <== NOT EXECUTED 60214: 6720 beqs 60236 <== NOT EXECUTED goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; up[1] = '\0'; 60216: 4200 clrb %d0 <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 60218: 16bc 002e moveb #46,%a3@ <== NOT EXECUTED up[1] = '\0'; 6021c: 1740 0001 moveb %d0,%a3@(1) <== NOT EXECUTED /* Save root values, so know when to stop. */ if (stat ("/", &s)) 60220: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED 60224: 4879 0008 1ea6 pea 81ea6 <== NOT EXECUTED 6022a: 4eb9 0004 78e4 jsr 478e4 <== NOT EXECUTED 60230: 508f addql #8,%sp <== NOT EXECUTED 60232: 4a80 tstl %d0 <== NOT EXECUTED 60234: 6730 beqs 60266 <== NOT EXECUTED 60236: 45f9 0004 61e4 lea 461e4 ,%a2 <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 6023c: 4aae ffa4 tstl %fp@(-92) <== NOT EXECUTED 60240: 6614 bnes 60256 <== NOT EXECUTED free (pt); free (up); 60242: 2f0b movel %a3,%sp@- <== NOT EXECUTED 60244: 4e92 jsr %a2@ <== NOT EXECUTED 60246: 588f addql #4,%sp <== NOT EXECUTED 60248: 4286 clrl %d6 <== NOT EXECUTED return (char *) NULL; } 6024a: 2006 movel %d6,%d0 <== NOT EXECUTED 6024c: 4cee 3cfc ff64 moveml %fp@(-156),%d2-%d7/%a2-%a5 <== NOT EXECUTED 60252: 4e5e unlk %fp <== NOT EXECUTED 60254: 4e75 rts <== NOT EXECUTED err: if(dir) (void) _closedir (dir); if (ptsize) free (pt); 60256: 2f06 movel %d6,%sp@- <== NOT EXECUTED 60258: 4e92 jsr %a2@ <== NOT EXECUTED 6025a: 588f addql #4,%sp <== NOT EXECUTED free (up); 6025c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6025e: 4e92 jsr %a2@ <== NOT EXECUTED 60260: 588f addql #4,%sp <== NOT EXECUTED 60262: 4286 clrl %d6 <== NOT EXECUTED 60264: 60e4 bras 6024a <== NOT EXECUTED /* Save root values, so know when to stop. */ if (stat ("/", &s)) goto err; root_dev = s.st_dev; root_ino = s.st_ino; 60266: 222e ffbe movel %fp@(-66),%d1 <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) goto err; root_dev = s.st_dev; 6026a: 206e ffb6 moveal %fp@(-74),%a0 <== NOT EXECUTED 6026e: 226e ffba moveal %fp@(-70),%a1 <== NOT EXECUTED 60272: 2d48 ff98 movel %a0,%fp@(-104) <== NOT EXECUTED 60276: 2d49 ff9c movel %a1,%fp@(-100) <== NOT EXECUTED root_ino = s.st_ino; 6027a: 2d41 ffa0 movel %d1,%fp@(-96) <== NOT EXECUTED errno = 0; /* XXX readdir has no error return. */ 6027e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 60284: 2040 moveal %d0,%a0 <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 60286: 43eb 0400 lea %a3@(1024),%a1 <== NOT EXECUTED if (stat ("/", &s)) goto err; root_dev = s.st_dev; root_ino = s.st_ino; errno = 0; /* XXX readdir has no error return. */ 6028a: 7001 moveq #1,%d0 <== NOT EXECUTED 6028c: 223c 0000 03fc movel #1020,%d1 <== NOT EXECUTED 60292: 284b moveal %a3,%a4 <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 60294: 2d49 ffb0 movel %a1,%fp@(-80) <== NOT EXECUTED if (stat ("/", &s)) goto err; root_dev = s.st_dev; root_ino = s.st_ino; errno = 0; /* XXX readdir has no error return. */ 60298: 2d40 ff94 movel %d0,%fp@(-108) <== NOT EXECUTED 6029c: 2d41 ffa8 movel %d1,%fp@(-88) <== NOT EXECUTED 602a0: 4290 clrl %a0@ <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 602a2: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED 602a6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 602a8: 4eb9 0004 78e4 jsr 478e4 <== NOT EXECUTED 602ae: 508f addql #8,%sp <== NOT EXECUTED 602b0: 4a80 tstl %d0 <== NOT EXECUTED 602b2: 6682 bnes 60236 <== NOT EXECUTED goto err; /* Save current node values. */ ino = s.st_ino; 602b4: 206e ffbe moveal %fp@(-66),%a0 <== NOT EXECUTED dev = s.st_dev; 602b8: 262e ffb6 movel %fp@(-74),%d3 <== NOT EXECUTED 602bc: 282e ffba movel %fp@(-70),%d4 <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 602c0: 2d48 ff90 movel %a0,%fp@(-112) <== NOT EXECUTED dev = s.st_dev; /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 602c4: 202e ff98 movel %fp@(-104),%d0 <== NOT EXECUTED 602c8: 222e ff9c movel %fp@(-100),%d1 <== NOT EXECUTED 602cc: 9284 subl %d4,%d1 <== NOT EXECUTED 602ce: 9183 subxl %d3,%d0 <== NOT EXECUTED 602d0: 6700 027c beqw 6054e <== NOT EXECUTED * Build pointer to the parent directory, allocating memory * as necessary. Max length is 3 for "../", the largest * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) 602d4: 200c movel %a4,%d0 <== NOT EXECUTED 602d6: 0680 0000 0404 addil #1028,%d0 <== NOT EXECUTED 602dc: b0ae ffb0 cmpl %fp@(-80),%d0 <== NOT EXECUTED 602e0: 652a bcss 6030c <== NOT EXECUTED { if (!(up = (char *) realloc (up, upsize *= 2))) 602e2: 202e ffa8 movel %fp@(-88),%d0 <== NOT EXECUTED 602e6: d080 addl %d0,%d0 <== NOT EXECUTED 602e8: 2d40 ffa8 movel %d0,%fp@(-88) <== NOT EXECUTED 602ec: 2f00 movel %d0,%sp@- <== NOT EXECUTED 602ee: 2f0b movel %a3,%sp@- <== NOT EXECUTED 602f0: 4eb9 0006 1b30 jsr 61b30 <== NOT EXECUTED 602f6: 508f addql #8,%sp <== NOT EXECUTED 602f8: 2640 moveal %d0,%a3 <== NOT EXECUTED 602fa: 4a80 tstl %d0 <== NOT EXECUTED 602fc: 6700 ff38 beqw 60236 <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 60300: 222e ffa8 movel %fp@(-88),%d1 <== NOT EXECUTED 60304: 2840 moveal %d0,%a4 <== NOT EXECUTED 60306: d280 addl %d0,%d1 <== NOT EXECUTED 60308: 2d41 ffb0 movel %d1,%fp@(-80) <== NOT EXECUTED } *bup++ = '.'; 6030c: 204c moveal %a4,%a0 <== NOT EXECUTED 6030e: 10fc 002e moveb #46,%a0@+ <== NOT EXECUTED *bup++ = '.'; 60312: 2448 moveal %a0,%a2 <== NOT EXECUTED 60314: 14fc 002e moveb #46,%a2@+ <== NOT EXECUTED *bup = '\0'; 60318: 4212 clrb %a2@ <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 6031a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6031c: 4eb9 0006 15b4 jsr 615b4 <== NOT EXECUTED 60322: 588f addql #4,%sp <== NOT EXECUTED 60324: 2a40 moveal %d0,%a5 <== NOT EXECUTED 60326: 4a80 tstl %d0 <== NOT EXECUTED 60328: 6700 ff0c beqw 60236 <== NOT EXECUTED 6032c: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED 60330: 2f15 movel %a5@,%sp@- <== NOT EXECUTED 60332: 4eb9 0005 ff58 jsr 5ff58 <== NOT EXECUTED 60338: 508f addql #8,%sp <== NOT EXECUTED 6033a: 4a80 tstl %d0 <== NOT EXECUTED 6033c: 6600 00ac bnew 603ea <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 60340: 284a moveal %a2,%a4 <== NOT EXECUTED 60342: 18fc 002f moveb #47,%a4@+ <== NOT EXECUTED * the inode number in the directory is for the entry in the * parent directory, not the inode number of the mounted file. */ save_errno = 0; if (s.st_dev == dev) 60346: 202e ffb6 movel %fp@(-74),%d0 <== NOT EXECUTED 6034a: 222e ffba movel %fp@(-70),%d1 <== NOT EXECUTED 6034e: 9284 subl %d4,%d1 <== NOT EXECUTED 60350: 9183 subxl %d3,%d0 <== NOT EXECUTED 60352: 6700 00c8 beqw 6041c <== NOT EXECUTED 60356: 4285 clrl %d5 <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 60358: 2f0d movel %a5,%sp@- <== NOT EXECUTED 6035a: 4eb9 0006 1960 jsr 61960 <== NOT EXECUTED 60360: 588f addql #4,%sp <== NOT EXECUTED 60362: 2040 moveal %d0,%a0 <== NOT EXECUTED 60364: 4a80 tstl %d0 <== NOT EXECUTED 60366: 6774 beqs 603dc <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 60368: 1028 000c moveb %a0@(12),%d0 <== NOT EXECUTED 6036c: 49c0 extbl %d0 <== NOT EXECUTED 6036e: 722e moveq #46,%d1 <== NOT EXECUTED 60370: b280 cmpl %d0,%d1 <== NOT EXECUTED 60372: 660e bnes 60382 <== NOT EXECUTED 60374: 1028 000d moveb %a0@(13),%d0 <== NOT EXECUTED 60378: 67de beqs 60358 <== NOT EXECUTED 6037a: 49c0 extbl %d0 <== NOT EXECUTED 6037c: b280 cmpl %d0,%d1 <== NOT EXECUTED 6037e: 6700 016a beqw 604ea <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 60382: 2408 movel %a0,%d2 <== NOT EXECUTED 60384: 0682 0000 000c addil #12,%d2 <== NOT EXECUTED 6038a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6038c: 4eb9 0007 4898 jsr 74898 <== NOT EXECUTED 60392: 5280 addql #1,%d0 <== NOT EXECUTED 60394: 2e80 movel %d0,%sp@ <== NOT EXECUTED 60396: 45f9 0007 4898 lea 74898 ,%a2 <== NOT EXECUTED 6039c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6039e: 2f0c movel %a4,%sp@- <== NOT EXECUTED 603a0: 4eb9 0007 1cd4 jsr 71cd4 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 603a6: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED 603aa: 2f0b movel %a3,%sp@- <== NOT EXECUTED 603ac: 4eb9 0004 78e4 jsr 478e4 <== NOT EXECUTED 603b2: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 603b8: 4a80 tstl %d0 <== NOT EXECUTED 603ba: 6700 0172 beqw 6052e <== NOT EXECUTED { if (!save_errno) 603be: 4a85 tstl %d5 <== NOT EXECUTED 603c0: 6744 beqs 60406 <== NOT EXECUTED save_errno = errno; errno = 0; 603c2: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 603c8: 2040 moveal %d0,%a0 <== NOT EXECUTED 603ca: 4290 clrl %a0@ <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 603cc: 2f0d movel %a5,%sp@- <== NOT EXECUTED 603ce: 4eb9 0006 1960 jsr 61960 <== NOT EXECUTED 603d4: 588f addql #4,%sp <== NOT EXECUTED 603d6: 2040 moveal %d0,%a0 <== NOT EXECUTED 603d8: 4a80 tstl %d0 <== NOT EXECUTED 603da: 668c bnes 60368 <== NOT EXECUTED * If readdir set errno, use it, not any saved error; otherwise, * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) 603dc: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 603e2: 2040 moveal %d0,%a0 <== NOT EXECUTED 603e4: 4a90 tstl %a0@ <== NOT EXECUTED 603e6: 6700 01a0 beqw 60588 <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 603ea: 2f0d movel %a5,%sp@- <== NOT EXECUTED 603ec: 4eb9 0006 d064 jsr 6d064 <== NOT EXECUTED 603f2: 588f addql #4,%sp <== NOT EXECUTED 603f4: 45f9 0004 61e4 lea 461e4 ,%a2 <== NOT EXECUTED if (ptsize) 603fa: 4aae ffa4 tstl %fp@(-92) <== NOT EXECUTED 603fe: 6700 fe42 beqw 60242 <== NOT EXECUTED 60402: 6000 fe52 braw 60256 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) { if (!save_errno) save_errno = errno; 60406: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6040c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6040e: 2a10 movel %a0@,%d5 <== NOT EXECUTED errno = 0; 60410: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 60416: 2040 moveal %d0,%a0 <== NOT EXECUTED 60418: 4290 clrl %a0@ <== NOT EXECUTED 6041a: 60b0 bras 603cc <== NOT EXECUTED save_errno = 0; if (s.st_dev == dev) { for (;;) { if (!(dp = _readdir (dir))) 6041c: 2f0d movel %a5,%sp@- <== NOT EXECUTED 6041e: 4eb9 0006 1960 jsr 61960 <== NOT EXECUTED 60424: 588f addql #4,%sp <== NOT EXECUTED 60426: 2040 moveal %d0,%a0 <== NOT EXECUTED 60428: 4a80 tstl %d0 <== NOT EXECUTED 6042a: 6700 0180 beqw 605ac <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 6042e: 226e ff90 moveal %fp@(-112),%a1 <== NOT EXECUTED 60432: b3d0 cmpal %a0@,%a1 <== NOT EXECUTED 60434: 66e6 bnes 6041c <== NOT EXECUTED 60436: 2400 movel %d0,%d2 <== NOT EXECUTED 60438: 0682 0000 000c addil #12,%d2 <== NOT EXECUTED 6043e: 45f9 0007 4898 lea 74898 ,%a2 <== NOT EXECUTED /* * Check for length of the current name, preceding slash, * leading slash. */ if (bpt - pt <= strlen (dp->d_name) + (first ? 1 : 2)) 60444: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60446: 4e92 jsr %a2@ <== NOT EXECUTED 60448: 222e ff94 movel %fp@(-108),%d1 <== NOT EXECUTED 6044c: 2240 moveal %d0,%a1 <== NOT EXECUTED 6044e: 4481 negl %d1 <== NOT EXECUTED 60450: 41f1 1802 lea %a1@(00000002,%d1:l),%a0 <== NOT EXECUTED 60454: 2247 moveal %d7,%a1 <== NOT EXECUTED 60456: 588f addql #4,%sp <== NOT EXECUTED 60458: 93c6 subal %d6,%a1 <== NOT EXECUTED 6045a: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 6045c: 6554 bcss 604b2 <== NOT EXECUTED { size_t len, off; if (!ptsize) 6045e: 4aae ffa4 tstl %fp@(-92) <== NOT EXECUTED 60462: 6700 01a2 beqw 60606 <== NOT EXECUTED errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 60466: 202e ffa4 movel %fp@(-92),%d0 <== NOT EXECUTED 6046a: d080 addl %d0,%d0 <== NOT EXECUTED 6046c: 2d40 ffa4 movel %d0,%fp@(-92) <== NOT EXECUTED 60470: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60472: 2f06 movel %d6,%sp@- <== NOT EXECUTED 60474: 2d49 ff8c movel %a1,%fp@(-116) <== NOT EXECUTED 60478: 4eb9 0006 1b30 jsr 61b30 <== NOT EXECUTED 6047e: 226e ff8c moveal %fp@(-116),%a1 <== NOT EXECUTED 60482: 2c00 movel %d0,%d6 <== NOT EXECUTED 60484: 508f addql #8,%sp <== NOT EXECUTED 60486: 6700 ff62 beqw 603ea <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 6048a: 202e ffac movel %fp@(-84),%d0 <== NOT EXECUTED 6048e: 9087 subl %d7,%d0 <== NOT EXECUTED { goto err; } bpt = pt + off; ept = pt + ptsize; (void) bcopy (bpt, ept - len, len); 60490: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60492: 4871 6800 pea %a1@(00000000,%d6:l) <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 60496: 2046 moveal %d6,%a0 <== NOT EXECUTED 60498: d1ee ffa4 addal %fp@(-92),%a0 <== NOT EXECUTED 6049c: 2d48 ffac movel %a0,%fp@(-84) <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 604a0: 2e08 movel %a0,%d7 <== NOT EXECUTED 604a2: 9e80 subl %d0,%d7 <== NOT EXECUTED 604a4: 2f07 movel %d7,%sp@- <== NOT EXECUTED 604a6: 4eb9 0007 1cd4 jsr 71cd4 <== NOT EXECUTED 604ac: dffc 0000 000c addal #12,%sp <== NOT EXECUTED bpt = ept - len; } if (!first) 604b2: 4aae ff94 tstl %fp@(-108) <== NOT EXECUTED 604b6: 6608 bnes 604c0 <== NOT EXECUTED *--bpt = '/'; 604b8: 5387 subql #1,%d7 <== NOT EXECUTED 604ba: 2247 moveal %d7,%a1 <== NOT EXECUTED 604bc: 12bc 002f moveb #47,%a1@ <== NOT EXECUTED bpt -= strlen (dp->d_name); 604c0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 604c2: 4e92 jsr %a2@ <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 604c4: 2e80 movel %d0,%sp@ <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); bpt = ept - len; } if (!first) *--bpt = '/'; bpt -= strlen (dp->d_name); 604c6: 9e80 subl %d0,%d7 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); (void) _closedir (dir); dir = 0; /* Truncate any file name. */ *bup = '\0'; 604c8: 42ae ff94 clrl %fp@(-108) <== NOT EXECUTED bpt = ept - len; } if (!first) *--bpt = '/'; bpt -= strlen (dp->d_name); bcopy (dp->d_name, bpt, strlen (dp->d_name)); 604cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 604ce: 2f07 movel %d7,%sp@- <== NOT EXECUTED 604d0: 4eb9 0007 1cd4 jsr 71cd4 <== NOT EXECUTED (void) _closedir (dir); 604d6: 2f0d movel %a5,%sp@- <== NOT EXECUTED 604d8: 4eb9 0006 d064 jsr 6d064 <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 604de: 4214 clrb %a4@ <== NOT EXECUTED 604e0: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 604e6: 6000 fdba braw 602a2 <== NOT EXECUTED else for (;;) { if (!(dp = _readdir (dir))) goto notfound; if (ISDOT (dp)) 604ea: 4a28 000e tstb %a0@(14) <== NOT EXECUTED 604ee: 6700 fe68 beqw 60358 <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 604f2: 2408 movel %a0,%d2 <== NOT EXECUTED 604f4: 0682 0000 000c addil #12,%d2 <== NOT EXECUTED 604fa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 604fc: 4eb9 0007 4898 jsr 74898 <== NOT EXECUTED 60502: 5280 addql #1,%d0 <== NOT EXECUTED 60504: 2e80 movel %d0,%sp@ <== NOT EXECUTED 60506: 45f9 0007 4898 lea 74898 ,%a2 <== NOT EXECUTED 6050c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6050e: 2f0c movel %a4,%sp@- <== NOT EXECUTED 60510: 4eb9 0007 1cd4 jsr 71cd4 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 60516: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED 6051a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6051c: 4eb9 0004 78e4 jsr 478e4 <== NOT EXECUTED 60522: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60528: 4a80 tstl %d0 <== NOT EXECUTED 6052a: 6600 fe92 bnew 603be <== NOT EXECUTED if (!save_errno) save_errno = errno; errno = 0; continue; } if (s.st_dev == dev && s.st_ino == ino) 6052e: 202e ffb6 movel %fp@(-74),%d0 <== NOT EXECUTED 60532: 222e ffba movel %fp@(-70),%d1 <== NOT EXECUTED 60536: 9284 subl %d4,%d1 <== NOT EXECUTED 60538: 9183 subxl %d3,%d0 <== NOT EXECUTED 6053a: 6600 fe1c bnew 60358 <== NOT EXECUTED 6053e: 206e ff90 moveal %fp@(-112),%a0 <== NOT EXECUTED 60542: b1ee ffbe cmpal %fp@(-66),%a0 <== NOT EXECUTED 60546: 6600 fe10 bnew 60358 <== NOT EXECUTED 6054a: 6000 fef8 braw 60444 <== NOT EXECUTED /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 6054e: b1ee ffa0 cmpal %fp@(-96),%a0 <== NOT EXECUTED 60552: 6600 fd80 bnew 602d4 <== NOT EXECUTED { *--bpt = '/'; 60556: 2047 moveal %d7,%a0 <== NOT EXECUTED 60558: 113c 002f moveb #47,%a0@- <== NOT EXECUTED /* * It's unclear that it's a requirement to copy the * path to the beginning of the buffer, but it's always * been that way and stuff would probably break. */ (void) bcopy (bpt, pt, ept - bpt); 6055c: 226e ffac moveal %fp@(-84),%a1 <== NOT EXECUTED 60560: 93c8 subal %a0,%a1 <== NOT EXECUTED 60562: 2f09 movel %a1,%sp@- <== NOT EXECUTED 60564: 2f08 movel %a0,%sp@- <== NOT EXECUTED 60566: 2f06 movel %d6,%sp@- <== NOT EXECUTED 60568: 4eb9 0007 1cd4 jsr 71cd4 <== NOT EXECUTED free (up); 6056e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 60570: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED (void) _closedir (dir); if (ptsize) free (pt); free (up); return (char *) NULL; } 60576: 2006 movel %d6,%d0 <== NOT EXECUTED * It's unclear that it's a requirement to copy the * path to the beginning of the buffer, but it's always * been that way and stuff would probably break. */ (void) bcopy (bpt, pt, ept - bpt); free (up); 60578: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED (void) _closedir (dir); if (ptsize) free (pt); free (up); return (char *) NULL; } 6057e: 4cee 3cfc ff64 moveml %fp@(-156),%d2-%d7/%a2-%a5 <== NOT EXECUTED 60584: 4e5e unlk %fp <== NOT EXECUTED 60586: 4e75 rts <== NOT EXECUTED * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) errno = save_errno ? save_errno : ENOENT; 60588: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6058e: 2040 moveal %d0,%a0 <== NOT EXECUTED 60590: 4a85 tstl %d5 <== NOT EXECUTED 60592: 6710 beqs 605a4 <== NOT EXECUTED 60594: 2085 movel %d5,%a0@ <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 60596: 2f0d movel %a5,%sp@- <== NOT EXECUTED 60598: 4eb9 0006 d064 jsr 6d064 <== NOT EXECUTED 6059e: 588f addql #4,%sp <== NOT EXECUTED 605a0: 6000 fe52 braw 603f4 <== NOT EXECUTED * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) errno = save_errno ? save_errno : ENOENT; 605a4: 1a3c 0002 moveb #2,%d5 <== NOT EXECUTED 605a8: 2085 movel %d5,%a0@ <== NOT EXECUTED 605aa: 60ea bras 60596 <== NOT EXECUTED * If readdir set errno, use it, not any saved error; otherwise, * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) 605ac: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED (void) _closedir (dir); dir = 0; /* Truncate any file name. */ *bup = '\0'; } 605b2: 4285 clrl %d5 <== NOT EXECUTED * If readdir set errno, use it, not any saved error; otherwise, * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) 605b4: 2040 moveal %d0,%a0 <== NOT EXECUTED 605b6: 4a90 tstl %a0@ <== NOT EXECUTED 605b8: 6600 fe30 bnew 603ea <== NOT EXECUTED 605bc: 60ca bras 60588 <== NOT EXECUTED if (pt) { ptsize = 0; if (!size) { errno = EINVAL; 605be: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 605c4: 4286 clrl %d6 <== NOT EXECUTED 605c6: 2040 moveal %d0,%a0 <== NOT EXECUTED (void) _closedir (dir); if (ptsize) free (pt); free (up); return (char *) NULL; } 605c8: 2006 movel %d6,%d0 <== NOT EXECUTED 605ca: 4cee 3cfc ff64 moveml %fp@(-156),%d2-%d7/%a2-%a5 <== NOT EXECUTED if (pt) { ptsize = 0; if (!size) { errno = EINVAL; 605d0: 7216 moveq #22,%d1 <== NOT EXECUTED (void) _closedir (dir); if (ptsize) free (pt); free (up); return (char *) NULL; } 605d2: 4e5e unlk %fp <== NOT EXECUTED if (pt) { ptsize = 0; if (!size) { errno = EINVAL; 605d4: 2081 movel %d1,%a0@ <== NOT EXECUTED (void) _closedir (dir); if (ptsize) free (pt); free (up); return (char *) NULL; } 605d6: 4e75 rts <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 605d8: 45f9 0004 6828 lea 46828 ,%a2 <== NOT EXECUTED 605de: 4878 03fc pea 3fc <== NOT EXECUTED 605e2: 4e92 jsr %a2@ <== NOT EXECUTED 605e4: 588f addql #4,%sp <== NOT EXECUTED 605e6: 2c00 movel %d0,%d6 <== NOT EXECUTED 605e8: 6700 fc60 beqw 6024a <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 605ec: 2240 moveal %d0,%a1 <== NOT EXECUTED 605ee: d3fc 0000 03fc addal #1020,%a1 <== NOT EXECUTED 605f4: 203c 0000 03fc movel #1020,%d0 <== NOT EXECUTED 605fa: 2d49 ffac movel %a1,%fp@(-84) <== NOT EXECUTED 605fe: 2d40 ffa4 movel %d0,%fp@(-92) <== NOT EXECUTED 60602: 6000 fbfa braw 601fe <== NOT EXECUTED { size_t len, off; if (!ptsize) { errno = ERANGE; 60606: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6060c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6060e: 7022 moveq #34,%d0 <== NOT EXECUTED 60610: 2080 movel %d0,%a0@ <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 60612: 2f0d movel %a5,%sp@- <== NOT EXECUTED 60614: 4eb9 0006 d064 jsr 6d064 <== NOT EXECUTED 6061a: 588f addql #4,%sp <== NOT EXECUTED 6061c: 6000 fdd6 braw 603f4 <== NOT EXECUTED 0006d4a4 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 6d4a4: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 6d4a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6d4aa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6d4ac: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 6d4b0: b4b9 0008 41e8 cmpl 841e8 ,%d2 <== NOT EXECUTED 6d4b6: 655e bcss 6d516 <== NOT EXECUTED 6d4b8: 95ca subal %a2,%a2 <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 6d4ba: 43ee fff0 lea %fp@(-16),%a1 <== NOT EXECUTED 6d4be: 22aa 0010 movel %a2@(16),%a1@ <== NOT EXECUTED 6d4c2: 2d6a 0014 fff4 movel %a2@(20),%fp@(-12) <== NOT EXECUTED 6d4c8: 2d6a 0018 fff8 movel %a2@(24),%fp@(-8) <== NOT EXECUTED if ( !loc.ops->node_type_h ) 6d4ce: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 6d4d2: 2068 0010 moveal %a0@(16),%a0 <== NOT EXECUTED iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 6d4d6: 2d6a 001c fffc movel %a2@(28),%fp@(-4) <== NOT EXECUTED if ( !loc.ops->node_type_h ) 6d4dc: 4a88 tstl %a0 <== NOT EXECUTED 6d4de: 6768 beqs 6d548 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 6d4e0: 2f09 movel %a1,%sp@- <== NOT EXECUTED 6d4e2: 4e90 jsr %a0@ <== NOT EXECUTED 6d4e4: 588f addql #4,%sp <== NOT EXECUTED 6d4e6: 7201 moveq #1,%d1 <== NOT EXECUTED 6d4e8: b280 cmpl %d0,%d1 <== NOT EXECUTED 6d4ea: 6642 bnes 6d52e <== NOT EXECUTED /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 6d4ec: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 6d4f0: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED 6d4f4: 4a88 tstl %a0 <== NOT EXECUTED 6d4f6: 6750 beqs 6d548 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 6d4f8: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 6d4fc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 6d500: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6d502: 4e90 jsr %a0@ <== NOT EXECUTED } 6d504: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 6d508: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 6d50c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 6d512: 4e5e unlk %fp <== NOT EXECUTED 6d514: 4e75 rts <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 6d516: 2202 movel %d2,%d1 <== NOT EXECUTED 6d518: 2002 movel %d2,%d0 <== NOT EXECUTED 6d51a: e589 lsll #2,%d1 <== NOT EXECUTED 6d51c: e988 lsll #4,%d0 <== NOT EXECUTED 6d51e: 9081 subl %d1,%d0 <== NOT EXECUTED 6d520: 2479 0009 9d00 moveal 99d00 ,%a2 <== NOT EXECUTED 6d526: d082 addl %d2,%d0 <== NOT EXECUTED 6d528: e588 lsll #2,%d0 <== NOT EXECUTED 6d52a: d5c0 addal %d0,%a2 <== NOT EXECUTED 6d52c: 608c bras 6d4ba <== 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( ENOTDIR ); 6d52e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 6d534: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 6d538: 246e ffec moveal %fp@(-20),%a2 <== 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( ENOTDIR ); 6d53c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6d53e: 7014 moveq #20,%d0 <== NOT EXECUTED 6d540: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 6d542: 4e5e unlk %fp <== 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( ENOTDIR ); 6d544: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 6d546: 4e75 rts <== NOT EXECUTED * 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 ); 6d548: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 6d54e: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 6d552: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED * 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 ); 6d556: 2040 moveal %d0,%a0 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 6d558: 4e5e unlk %fp <== NOT EXECUTED * 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 ); 6d55a: 70ff moveq #-1,%d0 <== NOT EXECUTED 6d55c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); } 6d562: 4e75 rts 00060620 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 60620: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 60626: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _POSIX_types_Egid; } 6062a: 4e5e unlk %fp <== NOT EXECUTED 6062c: 3028 0030 movew %a0@(48),%d0 <== NOT EXECUTED 60630: 4e75 rts <== NOT EXECUTED ... 00060634 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 60634: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6063a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _POSIX_types_Euid; } 6063e: 4e5e unlk %fp <== NOT EXECUTED 60640: 3028 002e movew %a0@(46),%d0 <== NOT EXECUTED 60644: 4e75 rts <== NOT EXECUTED ... 00060648 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 60648: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6064e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _POSIX_types_Gid; } 60652: 4e5e unlk %fp <== NOT EXECUTED 60654: 3028 002c movew %a0@(44),%d0 <== NOT EXECUTED 60658: 4e75 rts 00060c0a : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 60c0a: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 60c0e: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED 60c12: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 60c16: 2c2e 000c movel %fp@(12),%d6 <== NOT EXECUTED 60c1a: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 60c1e: 2a2e 0014 movel %fp@(20),%d5 <== NOT EXECUTED 60c22: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 60c26: 4eb9 0006 0ac2 jsr 60ac2 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 60c2c: 4879 0008 06d7 pea 806d7 <_CPU_m68k_BFFFO_table+0x486> <== NOT EXECUTED 60c32: 47fa fbe4 lea %pc@(60818 ),%a3 <== NOT EXECUTED 60c36: 4879 0008 1dc7 pea 81dc7 <== NOT EXECUTED 60c3c: 4eb9 0007 014c jsr 7014c <== NOT EXECUTED 60c42: 508f addql #8,%sp <== NOT EXECUTED 60c44: 2400 movel %d0,%d2 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 60c46: 49f9 0007 42a0 lea 742a0 ,%a4 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { 60c4c: 677c beqs 60cca <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 60c4e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60c50: 2f05 movel %d5,%sp@- <== NOT EXECUTED 60c52: 2f0a movel %a2,%sp@- <== NOT EXECUTED 60c54: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60c56: 4e93 jsr %a3@ <== NOT EXECUTED 60c58: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 60c5e: 4a80 tstl %d0 <== NOT EXECUTED 60c60: 6746 beqs 60ca8 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 60c62: 4a83 tstl %d3 <== NOT EXECUTED 60c64: 672e beqs 60c94 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 60c66: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60c68: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 60c6a: 4e94 jsr %a4@ <== NOT EXECUTED 60c6c: 4a80 tstl %d0 <== NOT EXECUTED 60c6e: 57c0 seq %d0 <== NOT EXECUTED 60c70: 49c0 extbl %d0 <== NOT EXECUTED 60c72: 508f addql #8,%sp <== NOT EXECUTED 60c74: 4480 negl %d0 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); } if (match) { 60c76: 67d6 beqs 60c4e <== NOT EXECUTED fclose(fp); 60c78: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60c7a: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED *result = grp; 60c80: 206e 001c moveal %fp@(28),%a0 <== NOT EXECUTED 60c84: 208a movel %a2,%a0@ <== NOT EXECUTED 60c86: 588f addql #4,%sp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60c88: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 60c8e: 4e5e unlk %fp <== NOT EXECUTED else { match = (grp->gr_gid == gid); } if (match) { fclose(fp); *result = grp; 60c90: 4280 clrl %d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60c92: 4e75 rts <== NOT EXECUTED } if (name) { match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 60c94: 4280 clrl %d0 <== NOT EXECUTED 60c96: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 60c9a: bc80 cmpl %d0,%d6 <== NOT EXECUTED 60c9c: 57c1 seq %d1 <== NOT EXECUTED 60c9e: 1001 moveb %d1,%d0 <== NOT EXECUTED 60ca0: 49c0 extbl %d0 <== NOT EXECUTED 60ca2: 4480 negl %d0 <== NOT EXECUTED } if (match) { 60ca4: 67a8 beqs 60c4e <== NOT EXECUTED 60ca6: 60d0 bras 60c78 <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 60ca8: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 60cae: 2040 moveal %d0,%a0 <== NOT EXECUTED 60cb0: 7016 moveq #22,%d0 <== NOT EXECUTED 60cb2: 2080 movel %d0,%a0@ <== NOT EXECUTED fclose(fp); 60cb4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60cb6: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60cbc: 588f addql #4,%sp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60cbe: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 60cc4: 4e5e unlk %fp <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); 60cc6: 70ff moveq #-1,%d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60cc8: 4e75 rts <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 60cca: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60cd0: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 60cd6: 2040 moveal %d0,%a0 <== NOT EXECUTED 60cd8: 7216 moveq #22,%d1 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60cda: 4e5e unlk %fp <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 60cdc: 70ff moveq #-1,%d0 <== NOT EXECUTED 60cde: 2081 movel %d1,%a0@ <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60ce0: 4e75 rts 00060942 : return p; } struct group *getgrent() { if (group_fp == NULL) 60942: 2039 0009 8e92 movel 98e92 ,%d0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent() { 60948: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (group_fp == NULL) 6094c: 4a80 tstl %d0 <== NOT EXECUTED 6094e: 672c beqs 6097c <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 60950: 4878 00c8 pea c8 <== NOT EXECUTED 60954: 4879 0009 8e96 pea 98e96 <== NOT EXECUTED 6095a: 4879 0009 8f5e pea 98f5e <== NOT EXECUTED 60960: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60962: 4eba feb4 jsr %pc@(60818 ) <== NOT EXECUTED 60966: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 6096c: 223c 0009 8f5e movel #626526,%d1 <== NOT EXECUTED 60972: 4a80 tstl %d0 <== NOT EXECUTED 60974: 6706 beqs 6097c <== NOT EXECUTED return NULL; return &grent; } 60976: 4e5e unlk %fp <== NOT EXECUTED 60978: 2001 movel %d1,%d0 <== NOT EXECUTED 6097a: 4e75 rts <== NOT EXECUTED struct group *getgrent() { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 6097c: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &grent; } 6097e: 4e5e unlk %fp <== NOT EXECUTED 60980: 2001 movel %d1,%d0 <== NOT EXECUTED 60982: 4e75 rts 00060d08 : struct group *getgrgid( gid_t gid ) { 60d08: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 60d0c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 60d10: 4280 clrl %d0 <== NOT EXECUTED 60d12: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60d16: 4878 00c8 pea c8 <== NOT EXECUTED 60d1a: 4879 0009 8e96 pea 98e96 <== NOT EXECUTED 60d20: 4879 0009 8f5e pea 98f5e <== NOT EXECUTED 60d26: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60d28: 4eb9 0006 0ce2 jsr 60ce2 <== NOT EXECUTED 60d2e: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60d34: 4a80 tstl %d0 <== NOT EXECUTED 60d36: 6608 bnes 60d40 <== NOT EXECUTED return NULL; return p; 60d38: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 60d3c: 4e5e unlk %fp <== NOT EXECUTED 60d3e: 4e75 rts <== NOT EXECUTED 60d40: 4e5e unlk %fp <== NOT EXECUTED gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 60d42: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 60d44: 4e75 rts 00060ce2 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 60ce2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 60ce6: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 60cea: 4280 clrl %d0 <== NOT EXECUTED 60cec: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 60cf0: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60cf4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 60cf8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 60cfc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60cfe: 42a7 clrl %sp@- <== NOT EXECUTED 60d00: 4eba ff08 jsr %pc@(60c0a ) <== NOT EXECUTED } 60d04: 4e5e unlk %fp <== NOT EXECUTED 60d06: 4e75 rts 00060d68 : struct group *getgrnam( const char *name ) { 60d68: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 60d6c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 60d70: 4878 00c8 pea c8 <== NOT EXECUTED 60d74: 4879 0009 8e96 pea 98e96 <== NOT EXECUTED 60d7a: 4879 0009 8f5e pea 98f5e <== NOT EXECUTED 60d80: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 60d84: 4eb9 0006 0d46 jsr 60d46 <== NOT EXECUTED 60d8a: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60d90: 4a80 tstl %d0 <== NOT EXECUTED 60d92: 6608 bnes 60d9c <== NOT EXECUTED return NULL; return p; 60d94: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 60d98: 4e5e unlk %fp <== NOT EXECUTED 60d9a: 4e75 rts <== NOT EXECUTED 60d9c: 4e5e unlk %fp <== NOT EXECUTED const char *name ) { struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 60d9e: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 60da0: 4e75 rts 00060d46 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 60d46: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 60d4a: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 60d4e: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 60d52: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 60d56: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 60d5a: 42a7 clrl %sp@- <== NOT EXECUTED 60d5c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 60d60: 4eba fea8 jsr %pc@(60c0a ) <== NOT EXECUTED } 60d64: 4e5e unlk %fp <== NOT EXECUTED 60d66: 4e75 rts 00054be4 : * * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 */ pid_t getpid( void ) { 54be4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Local_node; } 54be8: 4e5e unlk %fp <== NOT EXECUTED 54bea: 7001 moveq #1,%d0 <== NOT EXECUTED 54bec: 4e75 rts 00060ddc : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 60ddc: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 60de0: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED 60de4: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 60de8: 2c2e 000c movel %fp@(12),%d6 <== NOT EXECUTED 60dec: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 60df0: 2a2e 0014 movel %fp@(20),%d5 <== NOT EXECUTED 60df4: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 60df8: 4eb9 0006 0ac2 jsr 60ac2 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 60dfe: 4879 0008 06d7 pea 806d7 <_CPU_m68k_BFFFO_table+0x486> <== NOT EXECUTED 60e04: 47fa fb7e lea %pc@(60984 ),%a3 <== NOT EXECUTED 60e08: 4879 0008 1d54 pea 81d54 <== NOT EXECUTED 60e0e: 4eb9 0007 014c jsr 7014c <== NOT EXECUTED 60e14: 508f addql #8,%sp <== NOT EXECUTED 60e16: 2400 movel %d0,%d2 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 60e18: 49f9 0007 42a0 lea 742a0 ,%a4 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { 60e1e: 677c beqs 60e9c <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 60e20: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60e22: 2f05 movel %d5,%sp@- <== NOT EXECUTED 60e24: 2f0a movel %a2,%sp@- <== NOT EXECUTED 60e26: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60e28: 4e93 jsr %a3@ <== NOT EXECUTED 60e2a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 60e30: 4a80 tstl %d0 <== NOT EXECUTED 60e32: 6746 beqs 60e7a <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 60e34: 4a83 tstl %d3 <== NOT EXECUTED 60e36: 672e beqs 60e66 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 60e38: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60e3a: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 60e3c: 4e94 jsr %a4@ <== NOT EXECUTED 60e3e: 4a80 tstl %d0 <== NOT EXECUTED 60e40: 57c0 seq %d0 <== NOT EXECUTED 60e42: 49c0 extbl %d0 <== NOT EXECUTED 60e44: 508f addql #8,%sp <== NOT EXECUTED 60e46: 4480 negl %d0 <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); } if (match) { 60e48: 67d6 beqs 60e20 <== NOT EXECUTED fclose(fp); 60e4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60e4c: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED *result = pwd; 60e52: 206e 001c moveal %fp@(28),%a0 <== NOT EXECUTED 60e56: 208a movel %a2,%a0@ <== NOT EXECUTED 60e58: 588f addql #4,%sp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60e5a: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 60e60: 4e5e unlk %fp <== NOT EXECUTED else { match = (pwd->pw_uid == uid); } if (match) { fclose(fp); *result = pwd; 60e62: 4280 clrl %d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60e64: 4e75 rts <== NOT EXECUTED } if (name) { match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 60e66: 4280 clrl %d0 <== NOT EXECUTED 60e68: 302a 0008 movew %a2@(8),%d0 <== NOT EXECUTED 60e6c: bc80 cmpl %d0,%d6 <== NOT EXECUTED 60e6e: 57c1 seq %d1 <== NOT EXECUTED 60e70: 1001 moveb %d1,%d0 <== NOT EXECUTED 60e72: 49c0 extbl %d0 <== NOT EXECUTED 60e74: 4480 negl %d0 <== NOT EXECUTED } if (match) { 60e76: 67a8 beqs 60e20 <== NOT EXECUTED 60e78: 60d0 bras 60e4a <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 60e7a: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 60e80: 7616 moveq #22,%d3 <== NOT EXECUTED 60e82: 2040 moveal %d0,%a0 <== NOT EXECUTED 60e84: 2083 movel %d3,%a0@ <== NOT EXECUTED fclose(fp); 60e86: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60e88: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60e8e: 588f addql #4,%sp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60e90: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 60e96: 4e5e unlk %fp <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); 60e98: 70ff moveq #-1,%d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60e9a: 4e75 rts <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 60e9c: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 60ea2: 7816 moveq #22,%d4 <== NOT EXECUTED 60ea4: 2040 moveal %d0,%a0 <== NOT EXECUTED 60ea6: 2084 movel %d4,%a0@ <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60ea8: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 60eae: 4e5e unlk %fp <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 60eb0: 70ff moveq #-1,%d0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 60eb2: 4e75 rts 00060a80 : return p; } struct passwd *getpwent() { if (passwd_fp == NULL) 60a80: 2039 0009 8daa movel 98daa ,%d0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent() { 60a86: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if (passwd_fp == NULL) 60a8a: 4a80 tstl %d0 <== NOT EXECUTED 60a8c: 672c beqs 60aba <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 60a8e: 4878 00c8 pea c8 <== NOT EXECUTED 60a92: 4879 0009 8dae pea 98dae <== NOT EXECUTED 60a98: 4879 0009 8e76 pea 98e76 <== NOT EXECUTED 60a9e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60aa0: 4eba fee2 jsr %pc@(60984 ) <== NOT EXECUTED 60aa4: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 60aaa: 223c 0009 8e76 movel #626294,%d1 <== NOT EXECUTED 60ab0: 4a80 tstl %d0 <== NOT EXECUTED 60ab2: 6706 beqs 60aba <== NOT EXECUTED return NULL; return &pwent; } 60ab4: 4e5e unlk %fp <== NOT EXECUTED 60ab6: 2001 movel %d1,%d0 <== NOT EXECUTED 60ab8: 4e75 rts <== NOT EXECUTED struct passwd *getpwent() { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 60aba: 4281 clrl %d1 <== NOT EXECUTED return NULL; return &pwent; } 60abc: 4e5e unlk %fp <== NOT EXECUTED 60abe: 2001 movel %d1,%d0 <== NOT EXECUTED 60ac0: 4e75 rts 00060f3a : struct passwd *getpwnam( const char *name ) { 60f3a: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 60f3e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 60f42: 4878 00c8 pea c8 <== NOT EXECUTED 60f46: 4879 0009 8dae pea 98dae <== NOT EXECUTED 60f4c: 4879 0009 8e76 pea 98e76 <== NOT EXECUTED 60f52: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 60f56: 4eb9 0006 0f18 jsr 60f18 <== NOT EXECUTED 60f5c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60f62: 4a80 tstl %d0 <== NOT EXECUTED 60f64: 6608 bnes 60f6e <== NOT EXECUTED return NULL; return p; 60f66: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 60f6a: 4e5e unlk %fp <== NOT EXECUTED 60f6c: 4e75 rts <== NOT EXECUTED 60f6e: 4e5e unlk %fp <== NOT EXECUTED const char *name ) { struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 60f70: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 60f72: 4e75 rts 00060f18 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 60f18: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 60f1c: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 60f20: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 60f24: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 60f28: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 60f2c: 42a7 clrl %sp@- <== NOT EXECUTED 60f2e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 60f32: 4eba fea8 jsr %pc@(60ddc ) <== NOT EXECUTED } 60f36: 4e5e unlk %fp <== NOT EXECUTED 60f38: 4e75 rts 00060eda : struct passwd *getpwuid( uid_t uid ) { 60eda: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 60ede: 486e fffc pea %fp@(-4) <== NOT EXECUTED 60ee2: 4280 clrl %d0 <== NOT EXECUTED 60ee4: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60ee8: 4878 00c8 pea c8 <== NOT EXECUTED 60eec: 4879 0009 8dae pea 98dae <== NOT EXECUTED 60ef2: 4879 0009 8e76 pea 98e76 <== NOT EXECUTED 60ef8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60efa: 4eb9 0006 0eb4 jsr 60eb4 <== NOT EXECUTED 60f00: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60f06: 4a80 tstl %d0 <== NOT EXECUTED 60f08: 6608 bnes 60f12 <== NOT EXECUTED return NULL; return p; 60f0a: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED } 60f0e: 4e5e unlk %fp <== NOT EXECUTED 60f10: 4e75 rts <== NOT EXECUTED 60f12: 4e5e unlk %fp <== NOT EXECUTED uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 60f14: 4280 clrl %d0 <== NOT EXECUTED return NULL; return p; } 60f16: 4e75 rts 00060eb4 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 60eb4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 60eb8: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 60ebc: 4280 clrl %d0 <== NOT EXECUTED 60ebe: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 60ec2: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 60ec6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 60eca: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 60ece: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60ed0: 42a7 clrl %sp@- <== NOT EXECUTED 60ed2: 4eba ff08 jsr %pc@(60ddc ) <== NOT EXECUTED } 60ed6: 4e5e unlk %fp <== NOT EXECUTED 60ed8: 4e75 rts 0004a55c : int gettimeofday( struct timeval *tp, void * __tz ) { 4a55c: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 4a560: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a562: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4a566: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 4a568: 4a8a tstl %a2 <== NOT EXECUTED 4a56a: 673e beqs 4a5aa <== NOT EXECUTED ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 4a56c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4a572: 40c2 movew %sr,%d2 <== NOT EXECUTED 4a574: 8082 orl %d2,%d0 <== NOT EXECUTED 4a576: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 4a578: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4a57c: 4eb9 0004 6b34 jsr 46b34 <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 4a582: 46c2 movew %d2,%sr <== NOT EXECUTED time->tv_sec = now.tv_sec; time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 4a584: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4a588: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED 4a58e: 4c42 1001 remul %d2,%d1,%d1 <== NOT EXECUTED 4a592: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 4a596: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 4a59a: 24ae fff8 movel %fp@(-8),%a2@ <== NOT EXECUTED 4a59e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 4a5a2: 588f addql #4,%sp <== NOT EXECUTED 4a5a4: 4e5e unlk %fp <== NOT EXECUTED 4a5a6: 4280 clrl %d0 <== NOT EXECUTED 4a5a8: 4e75 rts <== NOT EXECUTED void * __tz ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 4a5aa: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 4a5b0: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 4a5b4: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED void * __tz ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 4a5b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a5ba: 700e moveq #14,%d0 <== NOT EXECUTED 4a5bc: 2080 movel %d0,%a0@ <== NOT EXECUTED * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 4a5be: 4e5e unlk %fp <== NOT EXECUTED void * __tz ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 4a5c0: 70ff moveq #-1,%d0 <== NOT EXECUTED * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 4a5c2: 4e75 rts 00046304 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 46304: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 4630a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _POSIX_types_Uid; } 4630e: 4e5e unlk %fp <== NOT EXECUTED 46310: 3028 002a movew %a0@(42),%d0 <== NOT EXECUTED 46314: 4e75 rts 0006ccf0 : */ int imfs_dir_close( rtems_libio_t *iop ) { 6ccf0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 6ccf4: 4e5e unlk %fp <== NOT EXECUTED 6ccf6: 4280 clrl %d0 <== NOT EXECUTED 6ccf8: 4e75 rts 0006ccfa : int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 6ccfa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6ccfe: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 6cd02: 2051 moveal %a1@,%a0 <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 6cd04: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 6cd08: 2368 0034 0008 movel %a0@(52),%a1@(8) <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 6cd0e: 4280 clrl %d0 <== NOT EXECUTED 6cd10: 4281 clrl %d1 <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 6cd12: 3368 0032 0010 movew %a0@(50),%a1@(16) <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; 6cd18: 42a9 003a clrl %a1@(58) <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 6cd1c: 2280 movel %d0,%a1@ <== NOT EXECUTED 6cd1e: 2341 0004 movel %d1,%a1@(4) <== NOT EXECUTED 6cd22: 2008 movel %a0,%d0 <== NOT EXECUTED 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; 6cd24: 42a9 003e clrl %a1@(62) <== NOT EXECUTED 6cd28: 0680 0000 0050 addil #80,%d0 <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 6cd2e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 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; 6cd30: 3368 0038 0012 movew %a0@(56),%a1@(18) <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; 6cd36: 4281 clrl %d1 <== NOT EXECUTED 6cd38: 4282 clrl %d2 <== NOT EXECUTED 6cd3a: 2341 0016 movel %d1,%a1@(22) <== NOT EXECUTED 6cd3e: 2342 001a movel %d2,%a1@(26) <== NOT EXECUTED buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; 6cd42: 2368 003c 0022 movel %a0@(60),%a1@(34) <== NOT EXECUTED 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; buf->st_gid = the_jnode->st_gid; 6cd48: 3368 003a 0014 movew %a0@(58),%a1@(20) <== NOT EXECUTED 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; 6cd4e: 2368 0040 002a movel %a0@(64),%a1@(42) <== NOT EXECUTED buf->st_ctime = the_jnode->stat_ctime; 6cd54: 2368 0044 0032 movel %a0@(68),%a1@(50) <== NOT EXECUTED 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; 6cd5a: 2368 002e 000c movel %a0@(46),%a1@(12) <== NOT EXECUTED 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; buf->st_size = 0; 6cd60: 42a9 001e clrl %a1@(30) <== NOT EXECUTED 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 ; 6cd64: 2068 004c moveal %a0@(76),%a0 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; 6cd68: b088 cmpl %a0,%d0 <== NOT EXECUTED 6cd6a: 6710 beqs 6cd7c <== NOT EXECUTED the_node = the_node->next ) { buf->st_size = buf->st_size + sizeof( struct dirent ); 6cd6c: 243c 0000 010c movel #268,%d2 <== NOT EXECUTED /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 6cd72: 2050 moveal %a0@,%a0 <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); 6cd74: d5a9 001e addl %d2,%a1@(30) <== NOT EXECUTED 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 ; !rtems_chain_is_tail( the_chain, the_node ) ; 6cd78: b088 cmpl %a0,%d0 <== NOT EXECUTED 6cd7a: 66f0 bnes 6cd6c <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 6cd7c: 241f movel %sp@+,%d2 <== NOT EXECUTED 6cd7e: 4e5e unlk %fp <== NOT EXECUTED 6cd80: 4280 clrl %d0 <== NOT EXECUTED 6cd82: 4e75 rts 0006cd84 : off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 6cd84: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6cd88: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 6cd8c: 2f02 movel %d2,%sp@- <== NOT EXECUTED switch( whence ) { 6cd8e: 7001 moveq #1,%d0 <== NOT EXECUTED 6cd90: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED 6cd94: 6416 bccs 6cdac <== NOT EXECUTED 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 ); 6cd96: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED break; } return 0; } 6cd9c: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 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 ); 6cda0: 2040 moveal %d0,%a0 <== NOT EXECUTED 6cda2: 7216 moveq #22,%d1 <== NOT EXECUTED break; } return 0; } 6cda4: 4e5e unlk %fp <== NOT EXECUTED 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 ); 6cda6: 70ff moveq #-1,%d0 <== NOT EXECUTED 6cda8: 2081 movel %d1,%a0@ <== NOT EXECUTED break; } return 0; } 6cdaa: 4e75 rts <== NOT EXECUTED ) { 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)) * 6cdac: 2029 0008 movel %a1@(8),%d0 <== NOT EXECUTED 6cdb0: 243c 0000 010c movel #268,%d2 <== NOT EXECUTED 6cdb6: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED 6cdba: 2200 movel %d0,%d1 <== NOT EXECUTED 6cdbc: ed89 lsll #6,%d1 <== NOT EXECUTED 6cdbe: 2041 moveal %d1,%a0 <== NOT EXECUTED 6cdc0: 41f0 0c00 lea %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 6cdc4: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED ) { 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)) * 6cdc8: 2208 movel %a0,%d1 <== NOT EXECUTED 6cdca: 9280 subl %d0,%d1 <== NOT EXECUTED 6cdcc: e589 lsll #2,%d1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 6cdce: 4e5e unlk %fp <== NOT EXECUTED ) { 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)) * 6cdd0: 4280 clrl %d0 <== NOT EXECUTED 6cdd2: 2341 0008 movel %d1,%a1@(8) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 6cdd6: 4e75 rts 0006cccc : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 6cccc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6ccd0: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 6ccd4: 2069 002c moveal %a1@(44),%a0 <== NOT EXECUTED 6ccd8: 7001 moveq #1,%d0 <== NOT EXECUTED 6ccda: b0a8 0048 cmpl %a0@(72),%d0 <== NOT EXECUTED 6ccde: 6706 beqs 6cce6 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; return 0; } 6cce0: 4e5e unlk %fp <== NOT EXECUTED IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 6cce2: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; return 0; } 6cce4: 4e75 rts <== NOT EXECUTED 6cce6: 4e5e unlk %fp <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 6cce8: 4280 clrl %d0 <== NOT EXECUTED 6ccea: 42a9 0008 clrl %a1@(8) <== NOT EXECUTED return 0; } 6ccee: 4e75 rts 0006cecc : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 6cecc: 4e56 fecc linkw %fp,#-308 <== NOT EXECUTED 6ced0: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 6ced4: 2a6e 0008 moveal %fp@(8),%a5 <== NOT EXECUTED int current_entry; int first_entry; int last_entry; struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; 6ced8: 206d 002c moveal %a5@(44),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 6cedc: 2468 004c moveal %a0@(76),%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 6cee0: 2a08 movel %a0,%d5 <== NOT EXECUTED 6cee2: 0685 0000 0050 addil #80,%d5 <== NOT EXECUTED the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 6cee8: ba8a cmpl %a2,%d5 <== NOT EXECUTED 6ceea: 6700 00ba beqw 6cfa6 <== NOT EXECUTED 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); 6ceee: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 6cef2: 243c 0000 010c movel #268,%d2 <== NOT EXECUTED 6cef8: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED 6cefc: 2200 movel %d0,%d1 <== NOT EXECUTED 6cefe: ed89 lsll #6,%d1 <== NOT EXECUTED /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 6cf00: 286d 0008 moveal %a5@(8),%a4 <== NOT EXECUTED /* 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); 6cf04: 2241 moveal %d1,%a1 <== NOT EXECUTED 6cf06: 41f1 0c00 lea %a1@(00000000,%d0:l:4),%a0 <== NOT EXECUTED 6cf0a: 91c0 subal %d0,%a0 <== NOT EXECUTED 6cf0c: 47f4 8c00 lea %a4@(00000000,%a0:l:4),%a3 <== NOT EXECUTED /* The directory was not empty so try to move to the desired entry in chain*/ for ( current_entry = 0; current_entry < last_entry; 6cf10: 4a8b tstl %a3 <== NOT EXECUTED 6cf12: 6f00 0092 blew 6cfa6 <== NOT EXECUTED 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 ); strcpy( tmp_dirent.d_name, the_jnode->name ); 6cf16: 2e0e movel %fp,%d7 <== NOT EXECUTED 6cf18: 0687 ffff fef4 addil #-268,%d7 <== NOT EXECUTED 6cf1e: 2c07 movel %d7,%d6 <== NOT EXECUTED 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 ( current_entry = 0; current_entry < last_entry; 6cf20: 4284 clrl %d4 <== NOT EXECUTED 6cf22: 4283 clrl %d3 <== NOT EXECUTED 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 ); strcpy( tmp_dirent.d_name, the_jnode->name ); 6cf24: 0686 0000 000c addil #12,%d6 <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 6cf2a: b68c cmpl %a4,%d3 <== NOT EXECUTED 6cf2c: 6c1c bges 6cf4a <== NOT EXECUTED ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 6cf2e: 2452 moveal %a2@,%a2 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 6cf30: 0683 0000 010c addil #268,%d3 <== NOT EXECUTED 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 ( current_entry = 0; current_entry < last_entry; 6cf36: b68b cmpl %a3,%d3 <== NOT EXECUTED 6cf38: 6c04 bges 6cf3e <== NOT EXECUTED current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 6cf3a: ba8a cmpl %a2,%d5 <== NOT EXECUTED 6cf3c: 66ec bnes 6cf2a <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 6cf3e: 2004 movel %d4,%d0 <== NOT EXECUTED 6cf40: 4cee 3cfc fecc moveml %fp@(-308),%d2-%d7/%a2-%a5 <== NOT EXECUTED 6cf46: 4e5e unlk %fp <== NOT EXECUTED 6cf48: 4e75 rts <== NOT EXECUTED /* entries to return */ } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 6cf4a: 2d43 fef8 movel %d3,%fp@(-264) <== NOT EXECUTED tmp_dirent.d_reclen = sizeof( struct dirent ); 6cf4e: 303c 010c movew #268,%d0 <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); 6cf52: 240a movel %a2,%d2 <== NOT EXECUTED 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; 6cf54: 2d6a 0034 fef4 movel %a2@(52),%fp@(-268) <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 6cf5a: 0682 0000 000c addil #12,%d2 <== NOT EXECUTED } 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 ); 6cf60: 3d40 fefc movew %d0,%fp@(-260) <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); 6cf64: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6cf66: 4eb9 0007 4898 jsr 74898 <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 6cf6c: 2e82 movel %d2,%sp@ <== NOT EXECUTED /* 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 ); 6cf6e: 3d40 fefe movew %d0,%fp@(-258) <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 6cf72: 2f06 movel %d6,%sp@- <== NOT EXECUTED 6cf74: 4eb9 0007 4324 jsr 74324 <== NOT EXECUTED memcpy( 6cf7a: 4878 010c pea 10c <== NOT EXECUTED 6cf7e: 2f07 movel %d7,%sp@- <== NOT EXECUTED 6cf80: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 6cf84: 4870 4800 pea %a0@(00000000,%d4:l) <== NOT EXECUTED 6cf88: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 6cf8e: 203c 0000 010c movel #268,%d0 <== NOT EXECUTED 6cf94: d1ad 0008 addl %d0,%a5@(8) <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); 6cf98: 0684 0000 010c addil #268,%d4 <== NOT EXECUTED 6cf9e: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 6cfa4: 6088 bras 6cf2e <== NOT EXECUTED 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 ( current_entry = 0; current_entry < last_entry; 6cfa6: 4284 clrl %d4 <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 6cfa8: 2004 movel %d4,%d0 <== NOT EXECUTED 6cfaa: 4cee 3cfc fecc moveml %fp@(-308),%d2-%d7/%a2-%a5 <== NOT EXECUTED 6cfb0: 4e5e unlk %fp <== NOT EXECUTED 6cfb2: 4e75 rts 0006cdd8 : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 6cdd8: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 6cddc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 6cdde: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 6cde2: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 6cde4: 2453 moveal %a3@,%a2 <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 6cde6: 200a movel %a2,%d0 <== NOT EXECUTED 6cde8: 0680 0000 0050 addil #80,%d0 <== NOT EXECUTED 6cdee: b0aa 004c cmpl %a2@(76),%d0 <== NOT EXECUTED 6cdf2: 6600 0092 bnew 6ce86 <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 6cdf6: 206b 000c moveal %a3@(12),%a0 <== NOT EXECUTED 6cdfa: b5e8 0018 cmpal %a0@(24),%a2 <== NOT EXECUTED 6cdfe: 6700 00a0 beqw 6cea0 <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 6ce02: 4aaa 0058 tstl %a2@(88) <== NOT EXECUTED 6ce06: 6600 0098 bnew 6cea0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 6ce0a: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 6ce0e: 670e beqs 6ce1e <== NOT EXECUTED 6ce10: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6ce12: 4eb9 0006 31b0 jsr 631b0 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 6ce18: 588f addql #4,%sp <== NOT EXECUTED 6ce1a: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 6ce1e: 302a 0032 movew %a2@(50),%d0 <== NOT EXECUTED 6ce22: 5380 subql #1,%d0 <== NOT EXECUTED 6ce24: 3540 0032 movew %d0,%a2@(50) <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 6ce28: 42a7 clrl %sp@- <== NOT EXECUTED 6ce2a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 6ce2e: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 6ce34: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED /* * 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) ) { 6ce3a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6ce3c: 4eb9 0004 6426 jsr 46426 <== NOT EXECUTED 6ce42: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6ce48: 4a80 tstl %d0 <== NOT EXECUTED 6ce4a: 662c bnes 6ce78 <== NOT EXECUTED 6ce4c: 4a6a 0032 tstw %a2@(50) <== NOT EXECUTED 6ce50: 6626 bnes 6ce78 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 6ce52: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6ce58: 2653 moveal %a3@,%a3 <== NOT EXECUTED 6ce5a: b7e8 0004 cmpal %a0@(4),%a3 <== NOT EXECUTED 6ce5e: 675a beqs 6ceba <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 6ce60: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6ce62: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED 6ce68: 588f addql #4,%sp <== NOT EXECUTED 6ce6a: 4280 clrl %d0 <== NOT EXECUTED } return 0; } 6ce6c: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 6ce70: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED 6ce74: 4e5e unlk %fp <== NOT EXECUTED 6ce76: 4e75 rts <== NOT EXECUTED 6ce78: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 6ce7c: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED 6ce80: 4e5e unlk %fp <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 6ce82: 4280 clrl %d0 <== NOT EXECUTED } return 0; } 6ce84: 4e75 rts <== NOT EXECUTED /* * 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 ); 6ce86: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED free( the_jnode ); } return 0; } 6ce8c: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 6ce90: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED /* * 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 ); 6ce94: 2040 moveal %d0,%a0 <== NOT EXECUTED 6ce96: 725a moveq #90,%d1 <== NOT EXECUTED free( the_jnode ); } return 0; } 6ce98: 4e5e unlk %fp <== NOT EXECUTED /* * 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 ); 6ce9a: 70ff moveq #-1,%d0 <== NOT EXECUTED 6ce9c: 2081 movel %d1,%a0@ <== NOT EXECUTED free( the_jnode ); } return 0; } 6ce9e: 4e75 rts <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 6cea0: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED free( the_jnode ); } return 0; } 6cea6: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 6ceaa: 266e fff4 moveal %fp@(-12),%a3 <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 6ceae: 2040 moveal %d0,%a0 <== NOT EXECUTED 6ceb0: 7010 moveq #16,%d0 <== NOT EXECUTED 6ceb2: 2080 movel %d0,%a0@ <== NOT EXECUTED free( the_jnode ); } return 0; } 6ceb4: 4e5e unlk %fp <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 6ceb6: 70ff moveq #-1,%d0 <== NOT EXECUTED free( the_jnode ); } return 0; } 6ceb8: 4e75 rts <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; 6ceba: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 6cebe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6cec0: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED 6cec6: 588f addql #4,%sp <== NOT EXECUTED 6cec8: 4280 clrl %d0 <== NOT EXECUTED 6ceca: 60a0 bras 6ce6c <== NOT EXECUTED 00060ac2 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 60ac2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 60ac6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 60ac8: 2f02 movel %d2,%sp@- <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 60aca: 4a39 0009 8da8 tstb 98da8 <== NOT EXECUTED 60ad0: 670c beqs 60ade <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 60ad2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 60ad6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 60ada: 4e5e unlk %fp <== NOT EXECUTED 60adc: 4e75 rts <== NOT EXECUTED static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); 60ade: 4878 01ff pea 1ff <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 60ae2: 7001 moveq #1,%d0 <== NOT EXECUTED 60ae4: 13c0 0009 8da8 moveb %d0,98da8 <== NOT EXECUTED mkdir("/etc", 0777); 60aea: 4879 0008 1d4f pea 81d4f <== NOT EXECUTED 60af0: 4eb9 0004 69ec jsr 469ec <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 60af6: 4879 0008 06d7 pea 806d7 <_CPU_m68k_BFFFO_table+0x486> <== NOT EXECUTED 60afc: 45f9 0007 014c lea 7014c ,%a2 <== NOT EXECUTED 60b02: 4879 0008 1d54 pea 81d54 <== NOT EXECUTED 60b08: 4e92 jsr %a2@ <== NOT EXECUTED 60b0a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 60b10: 4a80 tstl %d0 <== NOT EXECUTED 60b12: 677e beqs 60b92 <== NOT EXECUTED fclose(fp); 60b14: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60b16: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60b1c: 588f addql #4,%sp <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 60b1e: 4879 0008 06d7 pea 806d7 <_CPU_m68k_BFFFO_table+0x486> <== NOT EXECUTED 60b24: 4879 0008 1dc7 pea 81dc7 <== NOT EXECUTED 60b2a: 4e92 jsr %a2@ <== NOT EXECUTED 60b2c: 508f addql #8,%sp <== NOT EXECUTED 60b2e: 4a80 tstl %d0 <== NOT EXECUTED 60b30: 6716 beqs 60b48 <== NOT EXECUTED fclose(fp); 60b32: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60b34: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 60b3a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 60b3e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); 60b42: 588f addql #4,%sp <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 60b44: 4e5e unlk %fp <== NOT EXECUTED 60b46: 4e75 rts <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 60b48: 4879 0008 0383 pea 80383 <_CPU_m68k_BFFFO_table+0x132> <== NOT EXECUTED 60b4e: 4879 0008 1dc7 pea 81dc7 <== NOT EXECUTED 60b54: 4eb9 0007 014c jsr 7014c <== NOT EXECUTED 60b5a: 508f addql #8,%sp <== NOT EXECUTED 60b5c: 2400 movel %d0,%d2 <== NOT EXECUTED 60b5e: 6700 ff72 beqw 60ad2 <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 60b62: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60b64: 4878 002a pea 2a <== NOT EXECUTED 60b68: 4878 0001 pea 1 <== NOT EXECUTED 60b6c: 4879 0008 1dd2 pea 81dd2 <== NOT EXECUTED 60b72: 4eb9 0007 0c8c jsr 70c8c <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 60b78: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60b7a: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED } } 60b80: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 60b84: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } 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); 60b88: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED } } 60b8e: 4e5e unlk %fp <== NOT EXECUTED 60b90: 4e75 rts <== NOT EXECUTED * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 60b92: 4879 0008 0383 pea 80383 <_CPU_m68k_BFFFO_table+0x132> <== NOT EXECUTED 60b98: 4879 0008 1d54 pea 81d54 <== NOT EXECUTED 60b9e: 4e92 jsr %a2@ <== NOT EXECUTED 60ba0: 508f addql #8,%sp <== NOT EXECUTED 60ba2: 2400 movel %d0,%d2 <== NOT EXECUTED 60ba4: 6700 ff78 beqw 60b1e <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 60ba8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60baa: 4878 0066 pea 66 <== NOT EXECUTED 60bae: 4878 0001 pea 1 <== NOT EXECUTED 60bb2: 4879 0008 1d60 pea 81d60 <== NOT EXECUTED 60bb8: 4eb9 0007 0c8c jsr 70c8c <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 60bbe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60bc0: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60bc6: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60bcc: 6000 ff50 braw 60b1e <== NOT EXECUTED 0004aa64 : * This routine will initialize the chain control element that manages the * mount table chain. */ int init_fs_mount_table(void) { 4aa64: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4aa68: 41f9 0005 8982 lea 58982 ,%a0 <== NOT EXECUTED rtems_chain_initialize_empty ( &rtems_filesystem_mount_table_control ); return 0; } 4aa6e: 4e5e unlk %fp <== NOT EXECUTED 4aa70: 4280 clrl %d0 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4aa72: 23c8 0005 898a movel %a0,5898a <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4aa78: 20bc 0005 8986 movel #362886,%a0@ <== NOT EXECUTED the_chain->permanent_null = NULL; 4aa7e: 42b9 0005 8986 clrl 58986 <== NOT EXECUTED 4aa84: 4e75 rts 00055bfc : int ioctl( int fd, ioctl_command_t command, ... ) { 55bfc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 55c00: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55c02: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 55c06: b4b9 0006 3f88 cmpl 63f88 ,%d2 <== NOT EXECUTED 55c0c: 644e bccs 55c5c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 55c0e: 2002 movel %d2,%d0 <== NOT EXECUTED 55c10: 2202 movel %d2,%d1 <== NOT EXECUTED 55c12: e588 lsll #2,%d0 <== NOT EXECUTED 55c14: e989 lsll #4,%d1 <== NOT EXECUTED 55c16: 9280 subl %d0,%d1 <== NOT EXECUTED 55c18: 2279 0006 6a68 moveal 66a68 ,%a1 <== NOT EXECUTED 55c1e: d282 addl %d2,%d1 <== NOT EXECUTED 55c20: e589 lsll #2,%d1 <== NOT EXECUTED 55c22: d3c1 addal %d1,%a1 <== NOT EXECUTED rtems_libio_check_is_open(iop); 55c24: 2029 000c movel %a1@(12),%d0 <== NOT EXECUTED 55c28: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 55c2e: 672c beqs 55c5c <== NOT EXECUTED va_start(ap, command); buffer = va_arg(ap, void *); 55c30: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 55c34: 2069 0030 moveal %a1@(48),%a0 <== NOT EXECUTED 55c38: 4a88 tstl %a0 <== NOT EXECUTED 55c3a: 6720 beqs 55c5c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 55c3c: 2068 0010 moveal %a0@(16),%a0 <== NOT EXECUTED 55c40: 4a88 tstl %a0 <== NOT EXECUTED 55c42: 672e beqs 55c72 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 55c44: 2f00 movel %d0,%sp@- <== NOT EXECUTED 55c46: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 55c4a: 2f09 movel %a1,%sp@- <== NOT EXECUTED 55c4c: 4e90 jsr %a0@ <== NOT EXECUTED return rc; } 55c4e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 55c52: dffc 0000 000c addal #12,%sp <== NOT EXECUTED return rc; } 55c58: 4e5e unlk %fp <== NOT EXECUTED 55c5a: 4e75 rts <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 55c5c: 4eb9 0005 6400 jsr 56400 <__errno> <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 55c62: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 55c66: 2040 moveal %d0,%a0 <== NOT EXECUTED 55c68: 7009 moveq #9,%d0 <== NOT EXECUTED 55c6a: 2080 movel %d0,%a0@ <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 55c6c: 4e5e unlk %fp <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 55c6e: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 55c70: 4e75 rts <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 55c72: 4eb9 0005 6400 jsr 56400 <__errno> <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 55c78: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 55c7c: 2040 moveal %d0,%a0 <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 55c7e: 4e5e unlk %fp <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 55c80: 70ff moveq #-1,%d0 <== NOT EXECUTED 55c82: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 55c88: 4e75 rts <== NOT EXECUTED ... 0004404e : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 4404e: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 44052: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 44056: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4405a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 4405e: 242a 0030 movel %a2@(48),%d2 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 44062: 1600 moveb %d0,%d3 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 44064: 0802 0005 btst #5,%d2 <== NOT EXECUTED 44068: 6704 beqs 4406e <== NOT EXECUTED c &= 0x7f; 4406a: 767f moveq #127,%d3 <== NOT EXECUTED 4406c: c680 andl %d0,%d3 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 4406e: 0802 0009 btst #9,%d2 <== NOT EXECUTED 44072: 671e beqs 44092 <== NOT EXECUTED c = tolower (c); 44074: 2079 0005 7128 moveal 57128 <__ctype_ptr>,%a0 <== NOT EXECUTED 4407a: 4281 clrl %d1 <== NOT EXECUTED 4407c: 1203 moveb %d3,%d1 <== NOT EXECUTED 4407e: 1030 1800 moveb %a0@(00000000,%d1:l),%d0 <== NOT EXECUTED 44082: 49c0 extbl %d0 <== NOT EXECUTED 44084: 0800 0000 btst #0,%d0 <== NOT EXECUTED 44088: 6706 beqs 44090 <== NOT EXECUTED 4408a: 0681 0000 0020 addil #32,%d1 <== NOT EXECUTED 44090: 1601 moveb %d1,%d3 <== NOT EXECUTED if (c == '\r') { 44092: 4280 clrl %d0 <== NOT EXECUTED 44094: 1003 moveb %d3,%d0 <== NOT EXECUTED 44096: 720d moveq #13,%d1 <== NOT EXECUTED 44098: b280 cmpl %d0,%d1 <== NOT EXECUTED 4409a: 6700 00ba beqw 44156 <== 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)) { 4409e: 720a moveq #10,%d1 <== NOT EXECUTED 440a0: b280 cmpl %d0,%d1 <== NOT EXECUTED 440a2: 673a beqs 440de <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 440a4: 4a03 tstb %d3 <== NOT EXECUTED 440a6: 663e bnes 440e6 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 440a8: 2039 0005 70a4 movel 570a4 ,%d0 <== NOT EXECUTED 440ae: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 440b2: 5380 subql #1,%d0 <== NOT EXECUTED 440b4: b081 cmpl %d1,%d0 <== NOT EXECUTED 440b6: 6f00 00a2 blew 4415a <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 440ba: 7008 moveq #8,%d0 <== NOT EXECUTED 440bc: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 440c0: 6600 00b2 bnew 44174 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 440c4: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 440c8: 1183 1800 moveb %d3,%a0@(00000000,%d1:l) <== NOT EXECUTED 440cc: 5281 addql #1,%d1 <== NOT EXECUTED 440ce: 4280 clrl %d0 <== NOT EXECUTED 440d0: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED } return 0; } 440d4: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 440da: 4e5e unlk %fp <== NOT EXECUTED 440dc: 4e75 rts <== 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)) { 440de: 0802 0006 btst #6,%d2 <== NOT EXECUTED 440e2: 6600 00b6 bnew 4419a <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 440e6: 242a 003c movel %a2@(60),%d2 <== NOT EXECUTED 440ea: 0802 0001 btst #1,%d2 <== NOT EXECUTED 440ee: 67b8 beqs 440a8 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 440f0: 4280 clrl %d0 <== NOT EXECUTED 440f2: 102a 0043 moveb %a2@(67),%d0 <== NOT EXECUTED 440f6: 4281 clrl %d1 <== NOT EXECUTED 440f8: 1203 moveb %d3,%d1 <== NOT EXECUTED 440fa: b280 cmpl %d0,%d1 <== NOT EXECUTED 440fc: 6700 00a2 beqw 441a0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 44100: 4280 clrl %d0 <== NOT EXECUTED 44102: 102a 0044 moveb %a2@(68),%d0 <== NOT EXECUTED 44106: b280 cmpl %d0,%d1 <== NOT EXECUTED 44108: 6700 0116 beqw 44220 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 4410c: 4280 clrl %d0 <== NOT EXECUTED 4410e: 102a 0045 moveb %a2@(69),%d0 <== NOT EXECUTED 44112: b280 cmpl %d0,%d1 <== NOT EXECUTED 44114: 6734 beqs 4414a <== NOT EXECUTED return 1; } else if (c == '\n') { 44116: 700a moveq #10,%d0 <== NOT EXECUTED 44118: b081 cmpl %d1,%d0 <== NOT EXECUTED 4411a: 6700 00ba beqw 441d6 <== 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]) 4411e: 4280 clrl %d0 <== NOT EXECUTED 44120: 102a 004c moveb %a2@(76),%d0 <== NOT EXECUTED 44124: b280 cmpl %d0,%d1 <== NOT EXECUTED 44126: 670c beqs 44134 <== NOT EXECUTED 44128: 4280 clrl %d0 <== NOT EXECUTED 4412a: 102a 0051 moveb %a2@(81),%d0 <== NOT EXECUTED 4412e: b280 cmpl %d0,%d1 <== NOT EXECUTED 44130: 6600 ff76 bnew 440a8 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 44134: 44c2 movew %d2,%ccr <== NOT EXECUTED 44136: 6b7e bmis 441b6 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 44138: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 4413c: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 44140: 1183 0800 moveb %d3,%a0@(00000000,%d0:l) <== NOT EXECUTED 44144: 5280 addql #1,%d0 <== NOT EXECUTED 44146: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 4414a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44150: 4e5e unlk %fp <== NOT EXECUTED } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; 44152: 7001 moveq #1,%d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 44154: 4e75 rts <== 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) 44156: 4a02 tstb %d2 <== NOT EXECUTED 44158: 6c0c bges 44166 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 4415a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44160: 4e5e unlk %fp <== 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; 44162: 4280 clrl %d0 <== NOT EXECUTED } return 0; } 44164: 4e75 rts <== 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) 44166: 0802 0008 btst #8,%d2 <== NOT EXECUTED 4416a: 6700 ff7a beqw 440e6 <== NOT EXECUTED 4416e: 760a moveq #10,%d3 <== NOT EXECUTED 44170: 6000 ff74 braw 440e6 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 44174: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44176: 4280 clrl %d0 <== NOT EXECUTED 44178: 1003 moveb %d3,%d0 <== NOT EXECUTED 4417a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4417c: 4eba fc34 jsr %pc@(43db2 ) <== NOT EXECUTED 44180: 508f addql #8,%sp <== NOT EXECUTED 44182: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 44186: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 4418a: 1183 1800 moveb %d3,%a0@(00000000,%d1:l) <== NOT EXECUTED 4418e: 5281 addql #1,%d1 <== NOT EXECUTED 44190: 2541 0020 movel %d1,%a2@(32) <== NOT EXECUTED 44194: 4280 clrl %d0 <== NOT EXECUTED 44196: 6000 ff3c braw 440d4 <== NOT EXECUTED 4419a: 760d moveq #13,%d3 <== NOT EXECUTED 4419c: 6000 ff48 braw 440e6 <== 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); 441a0: 42a7 clrl %sp@- <== NOT EXECUTED 441a2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 441a4: 4eba fcae jsr %pc@(43e54 ) <== NOT EXECUTED 441a8: 508f addql #8,%sp <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 441aa: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 441b0: 4e5e unlk %fp <== 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); 441b2: 4280 clrl %d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 441b4: 4e75 rts <== 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); 441b6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 441b8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 441ba: 4eba fbf6 jsr %pc@(43db2 ) <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 441be: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 441c2: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 441c6: 1183 0800 moveb %d3,%a0@(00000000,%d0:l) <== NOT EXECUTED 441ca: 5280 addql #1,%d0 <== NOT EXECUTED 441cc: 2540 0020 movel %d0,%a2@(32) <== 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); 441d0: 508f addql #8,%sp <== NOT EXECUTED 441d2: 6000 ff76 braw 4414a <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 441d6: 7248 moveq #72,%d1 <== NOT EXECUTED 441d8: c481 andl %d1,%d2 <== NOT EXECUTED 441da: 6620 bnes 441fc <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 441dc: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 441e0: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 441e4: 720a moveq #10,%d1 <== NOT EXECUTED 441e6: 1181 0800 moveb %d1,%a0@(00000000,%d0:l) <== NOT EXECUTED 441ea: 5280 addql #1,%d0 <== NOT EXECUTED 441ec: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED 441f0: 7001 moveq #1,%d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 441f2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 441f8: 4e5e unlk %fp <== NOT EXECUTED 441fa: 4e75 rts <== NOT EXECUTED else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); 441fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 441fe: 4878 000a pea a <== NOT EXECUTED 44202: 4eba fbae jsr %pc@(43db2 ) <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 44206: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 4420a: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 4420e: 720a moveq #10,%d1 <== NOT EXECUTED 44210: 1181 0800 moveb %d1,%a0@(00000000,%d0:l) <== NOT EXECUTED 44214: 5280 addql #1,%d0 <== NOT EXECUTED 44216: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); 4421a: 508f addql #8,%sp <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 4421c: 7001 moveq #1,%d0 <== NOT EXECUTED 4421e: 60d2 bras 441f2 <== 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); 44220: 4878 0001 pea 1 <== NOT EXECUTED 44224: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44226: 4eba fc2c jsr %pc@(43e54 ) <== NOT EXECUTED 4422a: 508f addql #8,%sp <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 4422c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 44232: 4e5e unlk %fp <== 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); 44234: 4280 clrl %d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 44236: 4e75 rts 00054bf8 : #include int isatty( int fd ) { 54bf8: 4e56 ffb4 linkw %fp,#-76 <== NOT EXECUTED struct stat buf; if (fstat (fd, &buf) < 0) 54bfc: 486e ffb6 pea %fp@(-74) <== NOT EXECUTED 54c00: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 54c04: 4eb9 0005 4b00 jsr 54b00 <== NOT EXECUTED 54c0a: 508f addql #8,%sp <== NOT EXECUTED 54c0c: 4a80 tstl %d0 <== NOT EXECUTED 54c0e: 6d1c blts 54c2c <== NOT EXECUTED 54c10: 202e ffc2 movel %fp@(-62),%d0 <== NOT EXECUTED 54c14: 0280 0000 f000 andil #61440,%d0 <== NOT EXECUTED 54c1a: 0c80 0000 2000 cmpil #8192,%d0 <== NOT EXECUTED 54c20: 57c1 seq %d1 <== NOT EXECUTED 54c22: 1001 moveb %d1,%d0 <== NOT EXECUTED 54c24: 49c0 extbl %d0 <== NOT EXECUTED if (S_ISCHR (buf.st_mode)) return 1; return 0; } 54c26: 4e5e unlk %fp <== NOT EXECUTED int fd ) { struct stat buf; if (fstat (fd, &buf) < 0) 54c28: 4480 negl %d0 <== NOT EXECUTED if (S_ISCHR (buf.st_mode)) return 1; return 0; } 54c2a: 4e75 rts <== NOT EXECUTED 54c2c: 4e5e unlk %fp <== NOT EXECUTED int fd ) { struct stat buf; if (fstat (fd, &buf) < 0) 54c2e: 4280 clrl %d0 <== NOT EXECUTED if (S_ISCHR (buf.st_mode)) return 1; return 0; } 54c30: 4e75 rts <== NOT EXECUTED ... 00054d90 : * These are directly supported (and completely correct) in the posix api. */ #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { 54d90: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return 0; } 54d94: 4e5e unlk %fp <== NOT EXECUTED 54d96: 4280 clrl %d0 <== NOT EXECUTED 54d98: 4e75 rts 00042b72 : */ bool libc_create_hook( rtems_tcb *current_task, rtems_tcb *creating_task ) { 42b72: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42b76: 2f0a movel %a2,%sp@- <== NOT EXECUTED 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)); 42b78: 4878 03fe pea 3fe <== NOT EXECUTED 42b7c: 4eb9 0004 9158 jsr 49158 <_Workspace_Allocate> <== NOT EXECUTED #endif if (ptr) { 42b82: 588f addql #4,%sp <== NOT EXECUTED 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)); 42b84: 2440 moveal %d0,%a2 <== NOT EXECUTED #endif if (ptr) { 42b86: 4a80 tstl %d0 <== NOT EXECUTED 42b88: 6700 0172 beqw 42cfc <== NOT EXECUTED _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ 42b8c: 43f9 0005 5bb7 lea 55bb7 ,%a1 <== NOT EXECUTED 42b92: 2549 0032 movel %a1,%a2@(50) <== NOT EXECUTED 42b96: 43ea 0346 lea %a2@(838),%a1 <== NOT EXECUTED 42b9a: 2549 0008 movel %a1,%a2@(8) <== NOT EXECUTED 42b9e: 41ea 02ea lea %a2@(746),%a0 <== NOT EXECUTED 42ba2: 43ea 03a2 lea %a2@(930),%a1 <== NOT EXECUTED 42ba6: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED 42baa: 4200 clrb %d0 <== NOT EXECUTED 42bac: 2549 000c movel %a1,%a2@(12) <== NOT EXECUTED 42bb0: 41ea 007c lea %a2@(124),%a0 <== NOT EXECUTED 42bb4: 4292 clrl %a2@ <== NOT EXECUTED 42bb6: 1540 002c moveb %d0,%a2@(44) <== NOT EXECUTED 42bba: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED 42bbe: 1540 005e moveb %d0,%a2@(94) <== NOT EXECUTED 42bc2: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED 42bc6: 4280 clrl %d0 <== NOT EXECUTED 42bc8: 7201 moveq #1,%d1 <== NOT EXECUTED 42bca: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED 42bce: 327c 1234 moveaw #4660,%a1 <== NOT EXECUTED 42bd2: 42aa 001c clrl %a2@(28) <== NOT EXECUTED 42bd6: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED 42bda: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED 42bde: 42aa 0028 clrl %a2@(40) <== NOT EXECUTED 42be2: 42aa 002e clrl %a2@(46) <== NOT EXECUTED 42be6: 42aa 0036 clrl %a2@(54) <== NOT EXECUTED 42bea: 42aa 003a clrl %a2@(58) <== NOT EXECUTED 42bee: 42aa 003e clrl %a2@(62) <== NOT EXECUTED 42bf2: 42aa 0042 clrl %a2@(66) <== NOT EXECUTED 42bf6: 42aa 0046 clrl %a2@(70) <== NOT EXECUTED 42bfa: 42aa 004a clrl %a2@(74) <== NOT EXECUTED 42bfe: 42aa 004e clrl %a2@(78) <== NOT EXECUTED 42c02: 42aa 0052 clrl %a2@(82) <== NOT EXECUTED 42c06: 42aa 0056 clrl %a2@(86) <== NOT EXECUTED 42c0a: 42aa 005a clrl %a2@(90) <== NOT EXECUTED 42c0e: 42aa 0078 clrl %a2@(120) <== NOT EXECUTED 42c12: 4298 clrl %a0@+ <== NOT EXECUTED 42c14: 4298 clrl %a0@+ <== NOT EXECUTED 42c16: 4298 clrl %a0@+ <== NOT EXECUTED 42c18: 4298 clrl %a0@+ <== NOT EXECUTED 42c1a: 4298 clrl %a0@+ <== NOT EXECUTED 42c1c: 4298 clrl %a0@+ <== NOT EXECUTED 42c1e: 4298 clrl %a0@+ <== NOT EXECUTED 42c20: 4290 clrl %a0@ <== NOT EXECUTED 42c22: 2540 00a0 movel %d0,%a2@(160) <== NOT EXECUTED 42c26: 2541 00a4 movel %d1,%a2@(164) <== NOT EXECUTED 42c2a: 323c 330e movew #13070,%d1 <== NOT EXECUTED 42c2e: 303c e66d movew #-6547,%d0 <== NOT EXECUTED 42c32: 3541 00a8 movew %d1,%a2@(168) <== NOT EXECUTED 42c36: 3540 00ae movew %d0,%a2@(174) <== NOT EXECUTED 42c3a: 323c deec movew #-8468,%d1 <== NOT EXECUTED 42c3e: 7005 moveq #5,%d0 <== NOT EXECUTED 42c40: 3541 00b0 movew %d1,%a2@(176) <== NOT EXECUTED 42c44: 3540 00b2 movew %d0,%a2@(178) <== NOT EXECUTED 42c48: 42aa 009c clrl %a2@(156) <== NOT EXECUTED 42c4c: 307c abcd moveaw #-21555,%a0 <== NOT EXECUTED 42c50: 4200 clrb %d0 <== NOT EXECUTED 42c52: 42aa 00b6 clrl %a2@(182) <== NOT EXECUTED 42c56: 720b moveq #11,%d1 <== NOT EXECUTED 42c58: 42aa 00ba clrl %a2@(186) <== NOT EXECUTED 42c5c: 3548 00aa movew %a0,%a2@(170) <== NOT EXECUTED 42c60: 42aa 00be clrl %a2@(190) <== NOT EXECUTED 42c64: 3549 00ac movew %a1,%a2@(172) <== NOT EXECUTED 42c68: 42aa 00c2 clrl %a2@(194) <== NOT EXECUTED 42c6c: 3541 00b4 movew %d1,%a2@(180) <== NOT EXECUTED 42c70: 42aa 00c6 clrl %a2@(198) <== NOT EXECUTED 42c74: 1540 00ce moveb %d0,%a2@(206) <== NOT EXECUTED 42c78: 42aa 00ca clrl %a2@(202) <== NOT EXECUTED 42c7c: 1540 00d6 moveb %d0,%a2@(214) <== NOT EXECUTED 42c80: 42aa 00f2 clrl %a2@(242) <== NOT EXECUTED 42c84: 42aa 00f6 clrl %a2@(246) <== NOT EXECUTED 42c88: 42aa 00fa clrl %a2@(250) <== NOT EXECUTED 42c8c: 42aa 00fe clrl %a2@(254) <== NOT EXECUTED 42c90: 42aa 0102 clrl %a2@(258) <== NOT EXECUTED 42c94: 42aa 0106 clrl %a2@(262) <== NOT EXECUTED 42c98: 42aa 010a clrl %a2@(266) <== NOT EXECUTED 42c9c: 42aa 010e clrl %a2@(270) <== NOT EXECUTED 42ca0: 42aa 0112 clrl %a2@(274) <== NOT EXECUTED 42ca4: 42aa 0116 clrl %a2@(278) <== NOT EXECUTED 42ca8: 42aa 00ee clrl %a2@(238) <== NOT EXECUTED 42cac: 42aa 0146 clrl %a2@(326) <== NOT EXECUTED 42cb0: 42aa 014a clrl %a2@(330) <== NOT EXECUTED 42cb4: 42aa 014e clrl %a2@(334) <== NOT EXECUTED 42cb8: 42aa 0152 clrl %a2@(338) <== NOT EXECUTED 42cbc: 42aa 02d2 clrl %a2@(722) <== NOT EXECUTED 42cc0: 42aa 01d2 clrl %a2@(466) <== NOT EXECUTED 42cc4: 42aa 02da clrl %a2@(730) <== NOT EXECUTED 42cc8: 42aa 02de clrl %a2@(734) <== NOT EXECUTED 42ccc: 42aa 02e2 clrl %a2@(738) <== NOT EXECUTED 42cd0: 42aa 02e6 clrl %a2@(742) <== NOT EXECUTED 42cd4: 4878 0114 pea 114 <== NOT EXECUTED 42cd8: 42a7 clrl %sp@- <== NOT EXECUTED 42cda: 486a 02ea pea %a2@(746) <== NOT EXECUTED 42cde: 4eb9 0004 ce28 jsr 4ce28 <== NOT EXECUTED creating_task->libc_reent = ptr; 42ce4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 42ce8: 214a 0108 movel %a2,%a0@(264) <== NOT EXECUTED return true; } else return false; } 42cec: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED #endif if (ptr) { _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ creating_task->libc_reent = ptr; 42cf0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED return true; } else return false; } 42cf6: 4e5e unlk %fp <== NOT EXECUTED #endif if (ptr) { _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ creating_task->libc_reent = ptr; 42cf8: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } else return false; } 42cfa: 4e75 rts <== NOT EXECUTED 42cfc: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 42d00: 4e5e unlk %fp <== NOT EXECUTED * hooks run with thread dispatching disabled. */ ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent)); #endif if (ptr) { 42d02: 4200 clrb %d0 <== NOT EXECUTED creating_task->libc_reent = ptr; return true; } else return false; } 42d04: 4e75 rts <== NOT EXECUTED ... 00042aa8 : rtems_extension libc_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { 42aa8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 42aac: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 42ab0: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 42ab4: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { 42ab8: b5c3 cmpal %d3,%a2 <== NOT EXECUTED 42aba: 674e beqs 42b0a <== NOT EXECUTED ptr = _REENT; } else { ptr = deleted_task->libc_reent; 42abc: 242a 0108 movel %a2@(264),%d2 <== NOT EXECUTED } if (ptr && ptr != &libc_global_reent) { 42ac0: 4a82 tstl %d2 <== NOT EXECUTED 42ac2: 6724 beqs 42ae8 <== NOT EXECUTED 42ac4: 0c82 0005 6ca0 cmpil #355488,%d2 <== NOT EXECUTED 42aca: 671c beqs 42ae8 <== NOT EXECUTED _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers); 42acc: 4879 0004 2b12 pea 42b12 <== NOT EXECUTED 42ad2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42ad4: 4eb9 0004 cd1e jsr 4cd1e <_fwalk> <== NOT EXECUTED #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); 42ada: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42adc: 4eb9 0004 9140 jsr 49140 <_Workspace_Free> <== NOT EXECUTED 42ae2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED #endif } deleted_task->libc_reent = NULL; 42ae8: 42aa 0108 clrl %a2@(264) <== NOT EXECUTED /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { 42aec: b5c3 cmpal %d3,%a2 <== NOT EXECUTED 42aee: 670a beqs 42afa <== NOT EXECUTED _REENT = 0; } } 42af0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 42af6: 4e5e unlk %fp <== NOT EXECUTED 42af8: 4e75 rts <== NOT EXECUTED 42afa: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 42b00: 4e5e unlk %fp <== NOT EXECUTED /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { _REENT = 0; 42b02: 42b9 0005 712c clrl 5712c <_impure_ptr> <== NOT EXECUTED } } 42b08: 4e75 rts <== NOT EXECUTED /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ptr = _REENT; 42b0a: 2439 0005 712c movel 5712c <_impure_ptr>,%d2 <== NOT EXECUTED 42b10: 60ae bras 42ac0 <== NOT EXECUTED 00042a88 : struct _reent libc_global_reent __ATTRIBUTE_IMPURE_PTR__ = _REENT_INIT(libc_global_reent); void libc_init(void) { 42a88: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _REENT = &libc_global_reent; _Thread_Set_libc_reent (&_REENT); } 42a8c: 4e5e unlk %fp <== NOT EXECUTED struct _reent libc_global_reent __ATTRIBUTE_IMPURE_PTR__ = _REENT_INIT(libc_global_reent); void libc_init(void) { _REENT = &libc_global_reent; 42a8e: 203c 0005 6ca0 movel #355488,%d0 <== NOT EXECUTED 42a94: 23c0 0005 712c movel %d0,5712c <_impure_ptr> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( struct _reent **libc_reent ) { _Thread_libc_reent = libc_reent; 42a9a: 203c 0005 712c movel #356652,%d0 <== NOT EXECUTED 42aa0: 23c0 0005 87de movel %d0,587de <_Thread_libc_reent> <== NOT EXECUTED _Thread_Set_libc_reent (&_REENT); } 42aa6: 4e75 rts 000429f4 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 429f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 429f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) 429fa: 7003 moveq #3,%d0 <== NOT EXECUTED 429fc: b0b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d0 <== NOT EXECUTED 42a02: 6708 beqs 42a0c <== NOT EXECUTED */ fclose (stdin); fclose (stdout); fclose (stderr); } 42a04: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 42a08: 4e5e unlk %fp <== NOT EXECUTED 42a0a: 4e75 rts <== NOT EXECUTED /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != &libc_global_reent) { 42a0c: 203c 0005 6ca0 movel #355488,%d0 <== NOT EXECUTED 42a12: b0b9 0005 712c cmpl 5712c <_impure_ptr>,%d0 <== NOT EXECUTED 42a18: 6716 beqs 42a30 <== NOT EXECUTED _wrapup_reent(&libc_global_reent); 42a1a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42a1c: 4eb9 0004 d5ec jsr 4d5ec <_wrapup_reent> <== NOT EXECUTED /* Don't reclaim this one, just in case we do printfs * on the way out to ROM. */ _reclaim_reent(&libc_global_reent); #endif _REENT = &libc_global_reent; 42a22: 588f addql #4,%sp <== NOT EXECUTED 42a24: 203c 0005 6ca0 movel #355488,%d0 <== NOT EXECUTED 42a2a: 23c0 0005 712c movel %d0,5712c <_impure_ptr> <== NOT EXECUTED * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 42a30: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 42a36: 45f9 0004 c74e lea 4c74e ,%a2 <== NOT EXECUTED 42a3c: 2f28 0004 movel %a0@(4),%sp@- <== NOT EXECUTED 42a40: 4e92 jsr %a2@ <== NOT EXECUTED fclose (stdout); 42a42: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 42a48: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 42a4c: 4e92 jsr %a2@ <== NOT EXECUTED fclose (stderr); 42a4e: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 42a54: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42a58: 4e92 jsr %a2@ <== NOT EXECUTED } 42a5a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED * _fwalk (_REENT, fclose); */ fclose (stdin); fclose (stdout); fclose (stderr); 42a5e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 42a64: 4e5e unlk %fp <== NOT EXECUTED 42a66: 4e75 rts 00061040 : int link( const char *existing, const char *new ) { 61040: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 61044: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 61048: 4878 0001 pea 1 <== NOT EXECUTED int link( const char *existing, const char *new ) { 6104c: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 61050: 260e movel %fp,%d3 <== NOT EXECUTED 61052: 0683 ffff ffec addil #-20,%d3 <== NOT EXECUTED 61058: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6105a: 42a7 clrl %sp@- <== NOT EXECUTED 6105c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61060: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( result != 0 ) 61066: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 6106c: 4a80 tstl %d0 <== NOT EXECUTED 6106e: 6600 00ea bnew 6115a <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 61072: 1213 moveb %a3@,%d1 <== NOT EXECUTED 61074: 1001 moveb %d1,%d0 <== NOT EXECUTED 61076: 49c0 extbl %d0 <== NOT EXECUTED 61078: 742f moveq #47,%d2 <== NOT EXECUTED 6107a: b480 cmpl %d0,%d2 <== NOT EXECUTED 6107c: 670e beqs 6108c <== NOT EXECUTED 6107e: 143c 005c moveb #92,%d2 <== NOT EXECUTED 61082: b480 cmpl %d0,%d2 <== NOT EXECUTED 61084: 6706 beqs 6108c <== NOT EXECUTED 61086: 4a01 tstb %d1 <== NOT EXECUTED 61088: 6600 00de bnew 61168 <== NOT EXECUTED 6108c: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 61092: 45ee ffdc lea %fp@(-36),%a2 <== NOT EXECUTED 61096: 24a8 0014 movel %a0@(20),%a2@ <== NOT EXECUTED 6109a: 7001 moveq #1,%d0 <== NOT EXECUTED 6109c: 2d68 0018 ffe0 movel %a0@(24),%fp@(-32) <== NOT EXECUTED 610a2: 2d68 001c ffe4 movel %a0@(28),%fp@(-28) <== NOT EXECUTED 610a8: 2d68 0020 ffe8 movel %a0@(32),%fp@(-24) <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 610ae: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 610b2: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 610b6: 4a88 tstl %a0 <== NOT EXECUTED 610b8: 677c beqs 61136 <== NOT EXECUTED 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 ); 610ba: 486e fffc pea %fp@(-4) <== NOT EXECUTED 610be: 2f0a movel %a2,%sp@- <== NOT EXECUTED 610c0: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 610c4: 4e90 jsr %a0@ <== NOT EXECUTED if ( result != 0 ) { 610c6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 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 ); 610cc: 2400 movel %d0,%d2 <== NOT EXECUTED if ( result != 0 ) { 610ce: 6600 00fe bnew 611ce <== NOT EXECUTED /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 610d2: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 610d6: b0ae ffe8 cmpl %fp@(-24),%d0 <== NOT EXECUTED 610da: 6600 00ac bnew 61188 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 610de: 226e ffe4 moveal %fp@(-28),%a1 <== NOT EXECUTED 610e2: 2069 0008 moveal %a1@(8),%a0 <== NOT EXECUTED 610e6: 4a88 tstl %a0 <== NOT EXECUTED 610e8: 6700 0112 beqw 611fc <== NOT EXECUTED 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 ); 610ec: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 610f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 610f2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 610f4: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 610f6: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 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 ); 610fa: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 610fc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61102: 4a88 tstl %a0 <== NOT EXECUTED 61104: 670e beqs 61114 <== NOT EXECUTED 61106: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6110a: 4a88 tstl %a0 <== NOT EXECUTED 6110c: 6706 beqs 61114 <== NOT EXECUTED 6110e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61110: 4e90 jsr %a0@ <== NOT EXECUTED 61112: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 61114: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 61118: 4a88 tstl %a0 <== NOT EXECUTED 6111a: 670e beqs 6112a <== NOT EXECUTED 6111c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61120: 4a88 tstl %a0 <== NOT EXECUTED 61122: 6706 beqs 6112a <== NOT EXECUTED 61124: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61126: 4e90 jsr %a0@ <== NOT EXECUTED 61128: 588f addql #4,%sp <== NOT EXECUTED return result; } 6112a: 2002 movel %d2,%d0 <== NOT EXECUTED 6112c: 4cee 0c0c ffcc moveml %fp@(-52),%d2-%d3/%a2-%a3 <== NOT EXECUTED 61132: 4e5e unlk %fp <== NOT EXECUTED 61134: 4e75 rts <== NOT EXECUTED */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 61136: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 6113a: 4a88 tstl %a0 <== NOT EXECUTED 6113c: 670e beqs 6114c <== NOT EXECUTED 6113e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61142: 4a88 tstl %a0 <== NOT EXECUTED 61144: 6706 beqs 6114c <== NOT EXECUTED 61146: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61148: 4e90 jsr %a0@ <== NOT EXECUTED 6114a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 6114c: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61152: 2040 moveal %d0,%a0 <== NOT EXECUTED 61154: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 6115a: 74ff moveq #-1,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 6115c: 2002 movel %d2,%d0 <== NOT EXECUTED 6115e: 4cee 0c0c ffcc moveml %fp@(-52),%d2-%d3/%a2-%a3 <== NOT EXECUTED 61164: 4e5e unlk %fp <== NOT EXECUTED 61166: 4e75 rts <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 61168: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6116e: 45ee ffdc lea %fp@(-36),%a2 <== NOT EXECUTED 61172: 5888 addql #4,%a0 <== NOT EXECUTED 61174: 2498 movel %a0@+,%a2@ <== NOT EXECUTED 61176: 4280 clrl %d0 <== NOT EXECUTED 61178: 2d58 ffe0 movel %a0@+,%fp@(-32) <== NOT EXECUTED 6117c: 2d58 ffe4 movel %a0@+,%fp@(-28) <== NOT EXECUTED 61180: 2d50 ffe8 movel %a0@,%fp@(-24) <== NOT EXECUTED 61184: 6000 ff28 braw 610ae <== NOT EXECUTED * 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 ); 61188: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 6118c: 4a88 tstl %a0 <== NOT EXECUTED 6118e: 670e beqs 6119e <== NOT EXECUTED 61190: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61194: 4a88 tstl %a0 <== NOT EXECUTED 61196: 6706 beqs 6119e <== NOT EXECUTED 61198: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6119a: 4e90 jsr %a0@ <== NOT EXECUTED 6119c: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 6119e: 206e ffe4 moveal %fp@(-28),%a0 <== NOT EXECUTED 611a2: 4a88 tstl %a0 <== NOT EXECUTED 611a4: 670e beqs 611b4 <== NOT EXECUTED 611a6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 611aa: 4a88 tstl %a0 <== NOT EXECUTED 611ac: 6706 beqs 611b4 <== NOT EXECUTED 611ae: 2f0a movel %a2,%sp@- <== NOT EXECUTED 611b0: 4e90 jsr %a0@ <== NOT EXECUTED 611b2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 611b4: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 611ba: 2040 moveal %d0,%a0 <== NOT EXECUTED 611bc: 7012 moveq #18,%d0 <== NOT EXECUTED 611be: 74ff moveq #-1,%d2 <== NOT EXECUTED 611c0: 2080 movel %d0,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 611c2: 2002 movel %d2,%d0 <== NOT EXECUTED 611c4: 4cee 0c0c ffcc moveml %fp@(-52),%d2-%d3/%a2-%a3 <== NOT EXECUTED 611ca: 4e5e unlk %fp <== NOT EXECUTED 611cc: 4e75 rts <== NOT EXECUTED 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 ); 611ce: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 611d2: 4a88 tstl %a0 <== NOT EXECUTED 611d4: 670e beqs 611e4 <== NOT EXECUTED 611d6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 611da: 4a88 tstl %a0 <== NOT EXECUTED 611dc: 6706 beqs 611e4 <== NOT EXECUTED 611de: 2f03 movel %d3,%sp@- <== NOT EXECUTED 611e0: 4e90 jsr %a0@ <== NOT EXECUTED 611e2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 611e4: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 611ea: 2040 moveal %d0,%a0 <== NOT EXECUTED 611ec: 2082 movel %d2,%a0@ <== NOT EXECUTED 611ee: 74ff moveq #-1,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 611f0: 2002 movel %d2,%d0 <== NOT EXECUTED 611f2: 4cee 0c0c ffcc moveml %fp@(-52),%d2-%d3/%a2-%a3 <== NOT EXECUTED 611f8: 4e5e unlk %fp <== NOT EXECUTED 611fa: 4e75 rts <== 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 ); 611fc: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61200: 4a88 tstl %a0 <== NOT EXECUTED 61202: 6712 beqs 61216 <== NOT EXECUTED 61204: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61208: 4a88 tstl %a0 <== NOT EXECUTED 6120a: 670a beqs 61216 <== NOT EXECUTED 6120c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6120e: 4e90 jsr %a0@ <== NOT EXECUTED 61210: 226e ffe4 moveal %fp@(-28),%a1 <== NOT EXECUTED 61214: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 61216: 4a89 tstl %a1 <== NOT EXECUTED 61218: 670e beqs 61228 <== NOT EXECUTED 6121a: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 6121e: 4a88 tstl %a0 <== NOT EXECUTED 61220: 6706 beqs 61228 <== NOT EXECUTED 61222: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61224: 4e90 jsr %a0@ <== NOT EXECUTED 61226: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61228: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6122e: 74ff moveq #-1,%d2 <== NOT EXECUTED 61230: 2040 moveal %d0,%a0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 61232: 2002 movel %d2,%d0 <== NOT EXECUTED 61234: 4cee 0c0c ffcc moveml %fp@(-52),%d2-%d3/%a2-%a3 <== NOT EXECUTED 6123a: 4e5e unlk %fp <== 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 ); 6123c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 61242: 4e75 rts 00054c34 : off_t lseek( int fd, off_t offset, int whence ) { 54c34: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 54c38: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 54c3c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 54c40: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 54c44: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 54c48: b4b9 0005 6b98 cmpl 56b98 ,%d2 <== NOT EXECUTED 54c4e: 6400 00d8 bccw 54d28 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 54c52: 2002 movel %d2,%d0 <== NOT EXECUTED 54c54: 2202 movel %d2,%d1 <== NOT EXECUTED 54c56: e588 lsll #2,%d0 <== NOT EXECUTED 54c58: e989 lsll #4,%d1 <== NOT EXECUTED 54c5a: 9280 subl %d0,%d1 <== NOT EXECUTED 54c5c: 2479 0005 85ec moveal 585ec ,%a2 <== NOT EXECUTED 54c62: d282 addl %d2,%d1 <== NOT EXECUTED 54c64: e589 lsll #2,%d1 <== NOT EXECUTED 54c66: d5c1 addal %d1,%a2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 54c68: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 54c6c: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 54c72: 6700 00b4 beqw 54d28 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 54c76: 226a 0030 moveal %a2@(48),%a1 <== NOT EXECUTED 54c7a: 4aa9 0014 tstl %a1@(20) <== NOT EXECUTED 54c7e: 6700 00c0 beqw 54d40 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; 54c82: 242a 0008 movel %a2@(8),%d2 <== NOT EXECUTED switch ( whence ) { 54c86: 7001 moveq #1,%d0 <== NOT EXECUTED 54c88: b088 cmpl %a0,%d0 <== NOT EXECUTED 54c8a: 677a beqs 54d06 <== NOT EXECUTED 54c8c: 7202 moveq #2,%d1 <== NOT EXECUTED 54c8e: b288 cmpl %a0,%d1 <== NOT EXECUTED 54c90: 6738 beqs 54cca <== NOT EXECUTED 54c92: 4a88 tstl %a0 <== NOT EXECUTED 54c94: 6658 bnes 54cee <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 54c96: 2543 0008 movel %d3,%a2@(8) <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 54c9a: 2f08 movel %a0,%sp@- <== NOT EXECUTED 54c9c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54c9e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 54ca0: 2069 0014 moveal %a1@(20),%a0 <== NOT EXECUTED 54ca4: 4e90 jsr %a0@ <== NOT EXECUTED if ( status == (off_t) -1 ) 54ca6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54cac: 72ff moveq #-1,%d1 <== NOT EXECUTED 54cae: b280 cmpl %d0,%d1 <== NOT EXECUTED 54cb0: 670a beqs 54cbc <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54cb2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 54cb8: 4e5e unlk %fp <== NOT EXECUTED 54cba: 4e75 rts <== NOT EXECUTED * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); if ( status == (off_t) -1 ) iop->offset = old_offset; 54cbc: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54cc0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 54cc6: 4e5e unlk %fp <== NOT EXECUTED 54cc8: 4e75 rts <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 54cca: 2203 movel %d3,%d1 <== NOT EXECUTED 54ccc: d2aa 0004 addl %a2@(4),%d1 <== NOT EXECUTED 54cd0: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 54cd4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 54cd6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54cd8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 54cda: 2069 0014 moveal %a1@(20),%a0 <== NOT EXECUTED 54cde: 4e90 jsr %a0@ <== NOT EXECUTED if ( status == (off_t) -1 ) 54ce0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54ce6: 72ff moveq #-1,%d1 <== NOT EXECUTED 54ce8: b280 cmpl %d0,%d1 <== NOT EXECUTED 54cea: 66c6 bnes 54cb2 <== NOT EXECUTED 54cec: 60ce bras 54cbc <== NOT EXECUTED case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 54cee: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 54cf4: 2040 moveal %d0,%a0 <== NOT EXECUTED 54cf6: 7016 moveq #22,%d0 <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54cf8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 54cfe: 2080 movel %d0,%a0@ <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d00: 4e5e unlk %fp <== NOT EXECUTED case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 54d02: 70ff moveq #-1,%d0 <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d04: 4e75 rts <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 54d06: 2003 movel %d3,%d0 <== NOT EXECUTED 54d08: d082 addl %d2,%d0 <== NOT EXECUTED 54d0a: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 54d0e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 54d10: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54d12: 2f0a movel %a2,%sp@- <== NOT EXECUTED 54d14: 2069 0014 moveal %a1@(20),%a0 <== NOT EXECUTED 54d18: 4e90 jsr %a0@ <== NOT EXECUTED if ( status == (off_t) -1 ) 54d1a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54d20: 72ff moveq #-1,%d1 <== NOT EXECUTED 54d22: b280 cmpl %d0,%d1 <== NOT EXECUTED 54d24: 668c bnes 54cb2 <== NOT EXECUTED 54d26: 6094 bras 54cbc <== NOT EXECUTED off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 54d28: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d2e: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 54d34: 2040 moveal %d0,%a0 <== NOT EXECUTED 54d36: 7209 moveq #9,%d1 <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d38: 4e5e unlk %fp <== NOT EXECUTED off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 54d3a: 70ff moveq #-1,%d0 <== NOT EXECUTED 54d3c: 2081 movel %d1,%a0@ <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d3e: 4e75 rts <== 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 ); 54d40: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d46: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== 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 ); 54d4c: 2040 moveal %d0,%a0 <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d4e: 4e5e unlk %fp <== 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 ); 54d50: 70ff moveq #-1,%d0 <== NOT EXECUTED 54d52: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 54d58: 4e75 rts 000613a8 : int _STAT_NAME( const char *path, struct stat *buf ) { 613a8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 613ac: 2f03 movel %d3,%sp@- <== NOT EXECUTED 613ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED 613b0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 613b4: 6700 00aa beqw 61460 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 613b8: 42a7 clrl %sp@- <== NOT EXECUTED 613ba: 260e movel %fp,%d3 <== NOT EXECUTED 613bc: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED 613c2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 613c4: 42a7 clrl %sp@- <== NOT EXECUTED 613c6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 613ca: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( status != 0 ) 613d0: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 613d6: 4a80 tstl %d0 <== NOT EXECUTED 613d8: 6676 bnes 61450 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 613da: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 613de: 4aa8 0018 tstl %a0@(24) <== NOT EXECUTED 613e2: 6748 beqs 6142c <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 613e4: 4878 004a pea 4a <== NOT EXECUTED 613e8: 42a7 clrl %sp@- <== NOT EXECUTED 613ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 613ec: 4eb9 0007 1dd4 jsr 71dd4 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 613f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 613f4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 613f6: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 613fa: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED 613fe: 4e91 jsr %a1@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61400: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 61404: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61406: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 6140c: 4a88 tstl %a0 <== NOT EXECUTED 6140e: 670e beqs 6141e <== NOT EXECUTED 61410: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61414: 4a88 tstl %a0 <== NOT EXECUTED 61416: 6706 beqs 6141e <== NOT EXECUTED 61418: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6141a: 4e90 jsr %a0@ <== NOT EXECUTED 6141c: 588f addql #4,%sp <== NOT EXECUTED return status; } 6141e: 2002 movel %d2,%d0 <== NOT EXECUTED 61420: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61424: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61428: 4e5e unlk %fp <== NOT EXECUTED 6142a: 4e75 rts <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 6142c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61430: 4a88 tstl %a0 <== NOT EXECUTED 61432: 670e beqs 61442 <== NOT EXECUTED 61434: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61438: 4a88 tstl %a0 <== NOT EXECUTED 6143a: 6706 beqs 61442 <== NOT EXECUTED 6143c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6143e: 4e90 jsr %a0@ <== NOT EXECUTED 61440: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61442: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61448: 2040 moveal %d0,%a0 <== NOT EXECUTED 6144a: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61450: 74ff moveq #-1,%d2 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 61452: 2002 movel %d2,%d0 <== NOT EXECUTED 61454: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61458: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 6145c: 4e5e unlk %fp <== NOT EXECUTED 6145e: 4e75 rts <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 61460: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61466: 2040 moveal %d0,%a0 <== NOT EXECUTED 61468: 700e moveq #14,%d0 <== NOT EXECUTED 6146a: 74ff moveq #-1,%d2 <== NOT EXECUTED 6146c: 2080 movel %d0,%a0@ <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 6146e: 2002 movel %d2,%d0 <== NOT EXECUTED 61470: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61474: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61478: 4e5e unlk %fp <== NOT EXECUTED 6147a: 4e75 rts 0004a97c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 4a97c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4a980: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4a984: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 4a988: 52b9 0005 8654 addql #1,58654 <== NOT EXECUTED /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4a98e: 4eb9 0004 a93a jsr 4a93a <== NOT EXECUTED /* * Validate the parameters */ if ( !size ) 4a994: 4a84 tstl %d4 <== NOT EXECUTED 4a996: 675e beqs 4a9f6 <== NOT EXECUTED return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4a998: 7003 moveq #3,%d0 <== NOT EXECUTED 4a99a: b0b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d0 <== NOT EXECUTED 4a9a0: 674a beqs 4a9ec <== NOT EXECUTED * Try to give a segment in the current heap if there is not * enough space then try to grow the heap. * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); 4a9a2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4a9a4: 4879 0005 85f8 pea 585f8 <== NOT EXECUTED 4a9aa: 4eb9 0004 b690 jsr 4b690 <_Protected_heap_Allocate> <== NOT EXECUTED if ( !return_this ) { 4a9b0: 508f addql #8,%sp <== NOT EXECUTED * Try to give a segment in the current heap if there is not * enough space then try to grow the heap. * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); 4a9b2: 2400 movel %d0,%d2 <== NOT EXECUTED if ( !return_this ) { 4a9b4: 674e beqs 4aa04 <== NOT EXECUTED if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; 4a9b6: 2600 movel %d0,%d3 <== NOT EXECUTED } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 4a9b8: 2079 0005 75dc moveal 575dc ,%a0 <== NOT EXECUTED 4a9be: 4a88 tstl %a0 <== NOT EXECUTED 4a9c0: 6708 beqs 4a9ca <== NOT EXECUTED (*rtems_malloc_dirty_helper)( return_this, size ); 4a9c2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4a9c4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a9c6: 4e90 jsr %a0@ <== NOT EXECUTED 4a9c8: 508f addql #8,%sp <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4a9ca: 2079 0005 75d4 moveal 575d4 ,%a0 <== NOT EXECUTED 4a9d0: 4a88 tstl %a0 <== NOT EXECUTED 4a9d2: 6760 beqs 4aa34 <== NOT EXECUTED (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4a9d4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4a9d6: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4a9da: 2403 movel %d3,%d2 <== NOT EXECUTED 4a9dc: 4e90 jsr %a0@ <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4a9de: 2002 movel %d2,%d0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4a9e0: 588f addql #4,%sp <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4a9e2: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4a9e8: 4e5e unlk %fp <== NOT EXECUTED 4a9ea: 4e75 rts <== NOT EXECUTED return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4a9ec: 4eb9 0004 a8dc jsr 4a8dc <== NOT EXECUTED 4a9f2: 4a00 tstb %d0 <== NOT EXECUTED 4a9f4: 66ac bnes 4a9a2 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4a9f6: 4282 clrl %d2 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4a9f8: 2002 movel %d2,%d0 <== NOT EXECUTED 4a9fa: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4aa00: 4e5e unlk %fp <== NOT EXECUTED 4aa02: 4e75 rts <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 4aa04: 2079 0005 75d8 moveal 575d8 ,%a0 <== NOT EXECUTED 4aa0a: 4a88 tstl %a0 <== NOT EXECUTED 4aa0c: 670e beqs 4aa1c <== NOT EXECUTED return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 4aa0e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4aa10: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4aa14: 4e90 jsr %a0@ <== NOT EXECUTED if ( !return_this ) { 4aa16: 588f addql #4,%sp <== NOT EXECUTED return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 4aa18: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !return_this ) { 4aa1a: 669c bnes 4a9b8 <== NOT EXECUTED errno = ENOMEM; 4aa1c: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4aa22: 2040 moveal %d0,%a0 <== NOT EXECUTED 4aa24: 700c moveq #12,%d0 <== NOT EXECUTED 4aa26: 2080 movel %d0,%a0@ <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4aa28: 2002 movel %d2,%d0 <== NOT EXECUTED 4aa2a: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4aa30: 4e5e unlk %fp <== NOT EXECUTED 4aa32: 4e75 rts <== NOT EXECUTED (*rtems_malloc_dirty_helper)( return_this, size ); /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4aa34: 2403 movel %d3,%d2 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 4aa36: 2002 movel %d2,%d0 <== NOT EXECUTED 4aa38: 4cee 001c fff4 moveml %fp@(-12),%d2-%d4 <== NOT EXECUTED 4aa3e: 4e5e unlk %fp <== NOT EXECUTED 4aa40: 4e75 rts <== NOT EXECUTED ... 0004a920 : } void malloc_deferred_free( void *pointer ) { 4a920: 4e56 0000 linkw %fp,#0 <== 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 ); 4a924: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4a928: 4879 0005 8976 pea 58976 <== NOT EXECUTED 4a92e: 4eb9 0004 66d8 jsr 466d8 <_Chain_Append> <== NOT EXECUTED 4a934: 508f addql #8,%sp <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } 4a936: 4e5e unlk %fp <== NOT EXECUTED 4a938: 4e75 rts 0004a900 : void malloc_deferred_frees_initialize(void) { 4a900: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4a904: 41f9 0005 8976 lea 58976 ,%a0 <== NOT EXECUTED rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } 4a90a: 4e5e unlk %fp <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4a90c: 23c8 0005 897e movel %a0,5897e <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4a912: 20bc 0005 897a movel #362874,%a0@ <== NOT EXECUTED the_chain->permanent_null = NULL; 4a918: 42b9 0005 897a clrl 5897a <== NOT EXECUTED 4a91e: 4e75 rts 0004a93a : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 4a93a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a93e: 2f0b movel %a3,%sp@- <== NOT EXECUTED /* * If some free's have been deferred, then do them now. */ while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL) free(to_be_freed); 4a940: 47f9 0004 a3d0 lea 4a3d0 ,%a3 <== NOT EXECUTED { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 4a946: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a948: 45f9 0004 b1f8 lea 4b1f8 <_Chain_Get>,%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 4a94e: 4879 0005 8976 pea 58976 <== NOT EXECUTED 4a954: 4e92 jsr %a2@ <== NOT EXECUTED 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) 4a956: 588f addql #4,%sp <== NOT EXECUTED 4a958: 4a80 tstl %d0 <== NOT EXECUTED 4a95a: 6714 beqs 4a970 <== NOT EXECUTED free(to_be_freed); 4a95c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a95e: 4e93 jsr %a3@ <== NOT EXECUTED 4a960: 588f addql #4,%sp <== NOT EXECUTED 4a962: 4879 0005 8976 pea 58976 <== NOT EXECUTED 4a968: 4e92 jsr %a2@ <== NOT EXECUTED 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) 4a96a: 588f addql #4,%sp <== NOT EXECUTED 4a96c: 4a80 tstl %d0 <== NOT EXECUTED 4a96e: 66ec bnes 4a95c <== NOT EXECUTED free(to_be_freed); } 4a970: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4a974: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4a978: 4e5e unlk %fp <== NOT EXECUTED 4a97a: 4e75 rts 00046768 : /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { 46768: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED Heap_Information info; _Protected_heap_Get_free_information( &RTEMS_Malloc_Heap, &info ); 4676c: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 46770: 4879 0009 9d18 pea 99d18 <== NOT EXECUTED 46776: 4eb9 0004 bf94 jsr 4bf94 <_Protected_heap_Get_free_information> <== NOT EXECUTED return (size_t) info.largest; } 4677c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 46780: 4e5e unlk %fp <== NOT EXECUTED 46782: 4e75 rts 00061498 : */ int malloc_info( Heap_Information_block *the_info ) { 61498: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6149c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if ( !the_info ) 614a0: 6716 beqs 614b8 <== NOT EXECUTED return -1; _Protected_heap_Get_information( &RTEMS_Malloc_Heap, the_info ); 614a2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 614a4: 4879 0009 9d18 pea 99d18 <== NOT EXECUTED 614aa: 4eb9 0006 3840 jsr 63840 <_Protected_heap_Get_information> <== NOT EXECUTED 614b0: 508f addql #8,%sp <== NOT EXECUTED return 0; } 614b2: 4e5e unlk %fp <== NOT EXECUTED ) { if ( !the_info ) return -1; _Protected_heap_Get_information( &RTEMS_Malloc_Heap, the_info ); 614b4: 4280 clrl %d0 <== NOT EXECUTED return 0; } 614b6: 4e75 rts <== NOT EXECUTED 614b8: 4e5e unlk %fp <== NOT EXECUTED int malloc_info( Heap_Information_block *the_info ) { if ( !the_info ) 614ba: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; _Protected_heap_Get_information( &RTEMS_Malloc_Heap, the_info ); return 0; } 614bc: 4e75 rts <== NOT EXECUTED ... 0004a8dc : rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 4a8dc: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { 4a8e2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( _Thread_Dispatch_disable_level > 0 ) 4a8e6: 4a80 tstl %d0 <== NOT EXECUTED 4a8e8: 6610 bnes 4a8fa <== NOT EXECUTED return false; if ( _ISR_Nest_level > 0 ) 4a8ea: 2039 0005 87f2 movel 587f2 <_ISR_Nest_level>,%d0 <== NOT EXECUTED 4a8f0: 57c1 seq %d1 <== NOT EXECUTED 4a8f2: 2001 movel %d1,%d0 <== NOT EXECUTED return false; return true; } 4a8f4: 4e5e unlk %fp <== NOT EXECUTED bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) return false; if ( _ISR_Nest_level > 0 ) 4a8f6: 4480 negl %d0 <== NOT EXECUTED return false; return true; } 4a8f8: 4e75 rts <== NOT EXECUTED 4a8fa: 4e5e unlk %fp <== NOT EXECUTED rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 4a8fc: 4200 clrb %d0 <== NOT EXECUTED if ( _ISR_Nest_level > 0 ) return false; return true; } 4a8fe: 4e75 rts 0004525c : #ifdef RTEMS_NEWLIB #include "malloc_p.h" void malloc_report_statistics(void) { 4525c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED malloc_report_statistics_with_plugin( NULL, printk_plugin ); 45260: 4879 0004 5eb8 pea 45eb8 <== NOT EXECUTED 45266: 42a7 clrl %sp@- <== NOT EXECUTED 45268: 4eb9 0004 5274 jsr 45274 <== NOT EXECUTED 4526e: 508f addql #8,%sp <== NOT EXECUTED } 45270: 4e5e unlk %fp <== NOT EXECUTED 45272: 4e75 rts 000614c0 : void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 614c0: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 614c4: 48d7 04fc moveml %d2-%d7/%a2,%sp@ <== NOT EXECUTED s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( 614c8: 2c39 0009 9d88 movel 99d88 ,%d6 <== NOT EXECUTED 614ce: 2006 movel %d6,%d0 <== NOT EXECUTED rtems_malloc_statistics_t *s; uint32_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; 614d0: 2a39 0009 9d90 movel 99d90 ,%d5 <== NOT EXECUTED 614d6: 2639 0009 9d94 movel 99d94 ,%d3 <== NOT EXECUTED (*print)( 614dc: e988 lsll #4,%d0 <== NOT EXECUTED rtems_malloc_statistics_t *s; uint32_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; 614de: 2239 0009 9d98 movel 99d98 ,%d1 <== NOT EXECUTED (*print)( 614e4: 2240 moveal %d0,%a1 <== NOT EXECUTED 614e6: 7016 moveq #22,%d0 <== NOT EXECUTED rtems_malloc_statistics_t *s; uint32_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; 614e8: 2e05 movel %d5,%d7 <== NOT EXECUTED (*print)( 614ea: e1ab lsll %d0,%d3 <== NOT EXECUTED rtems_malloc_statistics_t *s; uint32_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; 614ec: 9e81 subl %d1,%d7 <== NOT EXECUTED 614ee: 2839 0009 9d8c movel 99d8c ,%d4 <== NOT EXECUTED (*print)( 614f4: 103c 000a moveb #10,%d0 <== NOT EXECUTED 614f8: e0a9 lsrl %d0,%d1 <== NOT EXECUTED 614fa: 103c 0016 moveb #22,%d0 <== NOT EXECUTED 614fe: 8681 orl %d1,%d3 <== NOT EXECUTED 61500: e1ac lsll %d0,%d4 <== NOT EXECUTED 61502: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61504: 103c 000a moveb #10,%d0 <== NOT EXECUTED 61508: 2439 0009 9d70 movel 99d70 ,%d2 <== NOT EXECUTED 6150e: 41f1 6c00 lea %a1@(00000000,%d6:l:4),%a0 <== NOT EXECUTED 61512: e0ad lsrl %d0,%d5 <== NOT EXECUTED 61514: 41f0 8c00 lea %a0@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 61518: 8885 orl %d5,%d4 <== NOT EXECUTED 6151a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 6151c: 2008 movel %a0,%d0 <== NOT EXECUTED 6151e: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED 61522: 2207 movel %d7,%d1 <== NOT EXECUTED 61524: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61526: e989 lsll #4,%d1 <== NOT EXECUTED 61528: 2241 moveal %d1,%a1 <== NOT EXECUTED 6152a: 700a moveq #10,%d0 <== NOT EXECUTED 6152c: 41f1 7c00 lea %a1@(00000000,%d7:l:4),%a0 <== NOT EXECUTED 61530: e0ae lsrl %d0,%d6 <== NOT EXECUTED 61532: 2f06 movel %d6,%sp@- <== NOT EXECUTED 61534: 41f0 8c00 lea %a0@(00000000,%a0:l:4),%a0 <== NOT EXECUTED 61538: 2008 movel %a0,%d0 <== NOT EXECUTED 6153a: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED 6153e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 61540: 700a moveq #10,%d0 <== NOT EXECUTED 61542: e0af lsrl %d0,%d7 <== NOT EXECUTED 61544: 2f07 movel %d7,%sp@- <== NOT EXECUTED 61546: e0aa lsrl %d0,%d2 <== NOT EXECUTED void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 61548: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( 6154c: 2f02 movel %d2,%sp@- <== NOT EXECUTED void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 6154e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( 61552: 4879 0008 1dfd pea 81dfd <== NOT EXECUTED 61558: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6155a: 4e92 jsr %a2@ <== NOT EXECUTED s->max_depth / 1024, (s->max_depth * 100) / s->space_available, (uint32_t) (s->lifetime_allocated / 1024), (uint32_t) (s->lifetime_freed / 1024) ); (*print)( 6155c: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 61562: 2eb9 0009 9d84 movel 99d84 ,%sp@ <== NOT EXECUTED 61568: 2f39 0009 9d80 movel 99d80 ,%sp@- <== NOT EXECUTED 6156e: 2f39 0009 9d7c movel 99d7c ,%sp@- <== NOT EXECUTED 61574: 2f39 0009 9d74 movel 99d74 ,%sp@- <== NOT EXECUTED 6157a: 4879 0008 1e5f pea 81e5f <== NOT EXECUTED 61580: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61582: 4e92 jsr %a2@ <== NOT EXECUTED 61584: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED s->malloc_calls, s->free_calls, s->realloc_calls, s->calloc_calls ); } 6158a: 4cee 04fc ffe4 moveml %fp@(-28),%d2-%d7/%a2 <== NOT EXECUTED 61590: 4e5e unlk %fp <== NOT EXECUTED 61592: 4e75 rts 00045348 : #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { 45348: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Protected_heap_Walk( &RTEMS_Malloc_Heap, source, printf_enabled ); 4534c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 45350: 56c0 sne %d0 <== NOT EXECUTED 45352: 49c0 extbl %d0 <== NOT EXECUTED 45354: 4480 negl %d0 <== NOT EXECUTED 45356: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45358: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4535c: 4879 0005 c63c pea 5c63c <== NOT EXECUTED 45362: 4eb9 0004 aea4 jsr 4aea4 <_Protected_heap_Walk> <== NOT EXECUTED 45368: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 4536e: 4e5e unlk %fp <== NOT EXECUTED 45370: 4e75 rts <== NOT EXECUTED ... 00066308 : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 66308: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 6630c: 2f39 0008 6848 movel 86848 ,%sp@- <== NOT EXECUTED 66312: 4878 0001 pea 1 <== NOT EXECUTED 66316: 4eb9 0004 5bf0 jsr 45bf0 <== NOT EXECUTED if ( memory ) 6631c: 508f addql #8,%sp <== NOT EXECUTED 6631e: 4a80 tstl %d0 <== NOT EXECUTED 66320: 6706 beqs 66328 <== NOT EXECUTED memfile_blocks_allocated++; 66322: 52b9 0009 8f6c addql #1,98f6c <== NOT EXECUTED return memory; } 66328: 4e5e unlk %fp <== NOT EXECUTED 6632a: 4e75 rts 000666f0 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 666f0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 666f4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 666f6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * 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) ) { 666fa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 666fc: 4eb9 0004 6426 jsr 46426 <== NOT EXECUTED 66702: 588f addql #4,%sp <== NOT EXECUTED 66704: 4a80 tstl %d0 <== NOT EXECUTED 66706: 662e bnes 66736 <== NOT EXECUTED 66708: 4a6a 0032 tstw %a2@(50) <== NOT EXECUTED 6670c: 6628 bnes 66736 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 6670e: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 66714: b5e8 0004 cmpal %a0@(4),%a2 <== NOT EXECUTED 66718: 6726 beqs 66740 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 6671a: 7006 moveq #6,%d0 <== NOT EXECUTED 6671c: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 66720: 670a beqs 6672c <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 66722: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66724: 4eb9 0006 6588 jsr 66588 <== NOT EXECUTED 6672a: 588f addql #4,%sp <== NOT EXECUTED free( the_jnode ); 6672c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6672e: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED 66734: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 66736: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 6673a: 4e5e unlk %fp <== NOT EXECUTED 6673c: 4280 clrl %d0 <== NOT EXECUTED 6673e: 4e75 rts <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) rtems_filesystem_current.node_access = NULL; 66740: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 66744: 7006 moveq #6,%d0 <== NOT EXECUTED 66746: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 6674a: 67e0 beqs 6672c <== NOT EXECUTED 6674c: 60d4 bras 66722 <== NOT EXECUTED 0006679a : */ int memfile_close( rtems_libio_t *iop ) { 6679a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 6679e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (iop->flags & LIBIO_FLAGS_APPEND) 667a2: 2028 000c movel %a0@(12),%d0 <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 667a6: 2268 002c moveal %a0@(44),%a1 <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) 667aa: 0280 0000 0200 andil #512,%d0 <== NOT EXECUTED 667b0: 6706 beqs 667b8 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 667b2: 2169 004c 0008 movel %a1@(76),%a0@(8) <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 667b8: 2f09 movel %a1,%sp@- <== NOT EXECUTED 667ba: 4eb9 0006 66f0 jsr 666f0 <== NOT EXECUTED return 0; } 667c0: 4e5e unlk %fp <== NOT EXECUTED 667c2: 4280 clrl %d0 <== NOT EXECUTED 667c4: 4e75 rts 000662ee : */ void memfile_free_block( void *memory ) { 662ee: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 662f2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 662f6: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED memfile_blocks_allocated--; 662fc: 588f addql #4,%sp <== NOT EXECUTED 662fe: 53b9 0009 8f6c subql #1,98f6c <== NOT EXECUTED } 66304: 4e5e unlk %fp <== NOT EXECUTED 66306: 4e75 rts 00066520 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 66520: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 66524: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED 66528: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED 6652c: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 66530: 4a8c tstl %a4 <== NOT EXECUTED 66532: 6738 beqs 6656c <== NOT EXECUTED /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 66534: 2014 movel %a4@,%d0 <== NOT EXECUTED 66536: 47f9 0006 62ee lea 662ee ,%a3 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 66540: 2440 moveal %d0,%a2 <== NOT EXECUTED 66542: 4282 clrl %d2 <== NOT EXECUTED if ( b[i] ) { 66544: 2012 movel %a2@,%d0 <== NOT EXECUTED 66546: 6708 beqs 66550 <== NOT EXECUTED memfile_free_block( b[i] ); 66548: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6654a: 4e93 jsr %a3@ <== NOT EXECUTED b[i] = 0; 6654c: 588f addql #4,%sp <== NOT EXECUTED 6654e: 4292 clrl %a2@ <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 66558: 2014 movel %a4@,%d0 <== NOT EXECUTED /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 6655a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6655c: 4e93 jsr %a3@ <== NOT EXECUTED *block_table = 0; 6655e: 588f addql #4,%sp <== NOT EXECUTED 66560: 4294 clrl %a4@ <== NOT EXECUTED } 66562: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 <== NOT EXECUTED 66568: 4e5e unlk %fp <== NOT EXECUTED 6656a: 4e75 rts <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 6656c: 4879 0008 2080 pea 82080 <== NOT EXECUTED 66572: 4879 0008 213e pea 8213e <__func__.5678> <== NOT EXECUTED 66578: 4878 01b1 pea 1b1 <== NOT EXECUTED 6657c: 4879 0008 2013 pea 82013 <== NOT EXECUTED 66582: 4eb9 0005 f878 jsr 5f878 <__assert_func> <== NOT EXECUTED 0006696a : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 6696a: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 6696e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 66972: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66974: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 66978: 2468 002c moveal %a0@(44),%a2 <== 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 ) 6697c: b0aa 004c cmpl %a2@(76),%d0 <== NOT EXECUTED 66980: 6e26 bgts 669a8 <== NOT EXECUTED * The in-memory files do not currently reclaim memory until the file is * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length; 66982: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); 66986: 42a7 clrl %sp@- <== NOT EXECUTED 66988: 486e fff8 pea %fp@(-8) <== NOT EXECUTED * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length; iop->size = the_jnode->info.file.size; 6698c: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED IMFS_update_atime( the_jnode ); 66990: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 66996: 256e fff8 003c movel %fp@(-8),%a2@(60) <== NOT EXECUTED return 0; } 6699c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED */ the_jnode->info.file.size = length; iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); 669a0: 508f addql #8,%sp <== NOT EXECUTED return 0; } 669a2: 4e5e unlk %fp <== NOT EXECUTED */ the_jnode->info.file.size = length; iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); 669a4: 4280 clrl %d0 <== NOT EXECUTED return 0; } 669a6: 4e75 rts <== NOT EXECUTED * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) return IMFS_memfile_extend( the_jnode, length ); 669a8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 669aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 669ac: 4eb9 0006 685a jsr 6685a <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 669b2: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) return IMFS_memfile_extend( the_jnode, length ); 669b6: 508f addql #8,%sp <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 669b8: 4e5e unlk %fp <== NOT EXECUTED 669ba: 4e75 rts 000662e4 : int memfile_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 662e4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 662e8: 4e5e unlk %fp <== NOT EXECUTED 662ea: 4280 clrl %d0 <== NOT EXECUTED 662ec: 4e75 rts 000669bc : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 669bc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 669c0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 669c2: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 669c6: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 669c8: 246b 002c moveal %a3@(44),%a2 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 669cc: 7006 moveq #6,%d0 <== NOT EXECUTED 669ce: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 669d2: 661e bnes 669f2 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 669d4: 202a 004c movel %a2@(76),%d0 <== NOT EXECUTED 669d8: b0ab 0008 cmpl %a3@(8),%d0 <== NOT EXECUTED 669dc: 6c04 bges 669e2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 669de: 2740 0008 movel %d0,%a3@(8) <== NOT EXECUTED if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; 669e2: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED } 669e6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 669ea: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 669ee: 4e5e unlk %fp <== NOT EXECUTED 669f0: 4e75 rts <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 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 )) 669f2: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 669f6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 669f8: 4eb9 0006 685a jsr 6685a <== NOT EXECUTED 669fe: 508f addql #8,%sp <== NOT EXECUTED 66a00: 4a80 tstl %d0 <== NOT EXECUTED 66a02: 660c bnes 66a10 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; 66a04: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED } 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 ); iop->size = the_jnode->info.file.size; 66a08: 276a 004c 0004 movel %a2@(76),%a3@(4) <== NOT EXECUTED 66a0e: 60d6 bras 669e6 <== 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 ); 66a10: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED iop->size = the_jnode->info.file.size; } return iop->offset; } 66a16: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 66a1a: 266e fffc moveal %fp@(-4),%a3 <== 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 ); 66a1e: 2040 moveal %d0,%a0 <== NOT EXECUTED 66a20: 701c moveq #28,%d0 <== NOT EXECUTED 66a22: 2080 movel %d0,%a0@ <== NOT EXECUTED iop->size = the_jnode->info.file.size; } return iop->offset; } 66a24: 4e5e unlk %fp <== 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 ); 66a26: 70ff moveq #-1,%d0 <== NOT EXECUTED iop->size = the_jnode->info.file.size; } return iop->offset; } 66a28: 4e75 rts 00066cc4 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 66cc4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 66cc8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 66ccc: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 66cd0: 222b 000c movel %a3@(12),%d1 <== NOT EXECUTED uint32_t mode ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 66cd4: 246b 002c moveal %a3@(44),%a2 <== NOT EXECUTED /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 66cd8: 2001 movel %d1,%d0 <== NOT EXECUTED 66cda: 0280 0000 0204 andil #516,%d0 <== NOT EXECUTED 66ce0: 6708 beqs 66cea <== NOT EXECUTED 66ce2: 7006 moveq #6,%d0 <== NOT EXECUTED 66ce4: b0aa 0048 cmpl %a2@(72),%d0 <== NOT EXECUTED 66ce8: 671e beqs 66d08 <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; if ((count != 0) && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 66cea: 0801 0009 btst #9,%d1 <== NOT EXECUTED 66cee: 6706 beqs 66cf6 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 66cf0: 276a 004c 0008 movel %a2@(76),%a3@(8) <== NOT EXECUTED iop->size = the_jnode->info.file.size; 66cf6: 4280 clrl %d0 <== NOT EXECUTED 66cf8: 276a 004c 0004 movel %a2@(76),%a3@(4) <== NOT EXECUTED return 0; } 66cfe: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 66d04: 4e5e unlk %fp <== NOT EXECUTED 66d06: 4e75 rts <== 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; 66d08: 202a 004c movel %a2@(76),%d0 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 66d0c: 222a 0050 movel %a2@(80),%d1 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 66d10: 7405 moveq #5,%d2 <== NOT EXECUTED 66d12: 2542 0048 movel %d2,%a2@(72) <== NOT EXECUTED the_jnode->info.file.size = 0; 66d16: 42aa 004c clrl %a2@(76) <== NOT EXECUTED the_jnode->info.file.indirect = 0; 66d1a: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; 66d1e: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 66d22: 42aa 0058 clrl %a2@(88) <== NOT EXECUTED if ((count != 0) 66d26: 4a80 tstl %d0 <== NOT EXECUTED 66d28: 660c bnes 66d36 <== NOT EXECUTED 66d2a: 222b 000c movel %a3@(12),%d1 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 66d2e: 0801 0009 btst #9,%d1 <== NOT EXECUTED 66d32: 67c2 beqs 66cf6 <== NOT EXECUTED 66d34: 60ba bras 66cf0 <== 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) 66d36: 2f00 movel %d0,%sp@- <== NOT EXECUTED 66d38: 2f01 movel %d1,%sp@- <== NOT EXECUTED 66d3a: 42a7 clrl %sp@- <== NOT EXECUTED 66d3c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66d3e: 4eb9 0006 6a2a jsr 66a2a <== NOT EXECUTED 66d44: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 66d4a: 72ff moveq #-1,%d1 <== NOT EXECUTED 66d4c: b280 cmpl %d0,%d1 <== NOT EXECUTED 66d4e: 66da bnes 66d2a <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; return 0; } 66d50: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 66d56: 4e5e unlk %fp <== 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) 66d58: 70ff moveq #-1,%d0 <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; return 0; } 66d5a: 4e75 rts 00067022 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 67022: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 67026: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 6702a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 6702e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 67032: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 67036: 2f28 002c movel %a0@(44),%sp@- <== NOT EXECUTED 6703a: 4eb9 0006 6d5c jsr 66d5c <== NOT EXECUTED } 67040: 4e5e unlk %fp <== NOT EXECUTED 67042: 4e75 rts 0006674e : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 6674e: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 66752: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 66756: 2f0a movel %a2,%sp@- <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 66758: 2450 moveal %a0@,%a2 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 6675a: 4aaa 0008 tstl %a2@(8) <== NOT EXECUTED 6675e: 670e beqs 6676e <== NOT EXECUTED 66760: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66762: 4eb9 0006 31b0 jsr 631b0 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 66768: 588f addql #4,%sp <== NOT EXECUTED 6676a: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 6676e: 302a 0032 movew %a2@(50),%d0 <== NOT EXECUTED 66772: 5380 subql #1,%d0 <== NOT EXECUTED 66774: 3540 0032 movew %d0,%a2@(50) <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 66778: 42a7 clrl %sp@- <== NOT EXECUTED 6677a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 6677e: 4eb9 0004 6274 jsr 46274 <== NOT EXECUTED 66784: 256e fff8 0044 movel %fp@(-8),%a2@(68) <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 6678a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6678c: 4eb9 0006 66f0 jsr 666f0 <== NOT EXECUTED } 66792: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 66796: 4e5e unlk %fp <== NOT EXECUTED 66798: 4e75 rts 00066c8e : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 66c8e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 66c92: 2f0b movel %a3,%sp@- <== NOT EXECUTED 66c94: 2f0a movel %a2,%sp@- <== NOT EXECUTED 66c96: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); 66c9a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 66c9e: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED ) { IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 66ca2: 266a 002c moveal %a2@(44),%a3 <== NOT EXECUTED status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); 66ca6: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 66caa: 2f0b movel %a3,%sp@- <== NOT EXECUTED 66cac: 4eb9 0006 6a2a jsr 66a2a <== NOT EXECUTED iop->size = the_jnode->info.file.size; 66cb2: 256b 004c 0004 movel %a3@(76),%a2@(4) <== NOT EXECUTED return status; } 66cb8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 66cbc: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 66cc0: 4e5e unlk %fp <== NOT EXECUTED 66cc2: 4e75 rts 000493c8 : */ int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 493c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return IMFS_initialize_support( 493cc: 4879 0005 7f0c pea 57f0c <== NOT EXECUTED 493d2: 4879 0005 7f0c pea 57f0c <== NOT EXECUTED 493d8: 4879 0005 5d70 pea 55d70 <== NOT EXECUTED 493de: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 493e2: 4eb9 0004 9cd8 jsr 49cd8 <== NOT EXECUTED temp_mt_entry, &miniIMFS_ops, &rtems_filesystem_null_handlers, /* for memfiles */ &rtems_filesystem_null_handlers /* for directories */ ); } 493e8: 4e5e unlk %fp <== NOT EXECUTED 493ea: 4e75 rts 0004aa44 : int mkdir( const char *pathname, mode_t mode ) { 4aa44: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return mknod( pathname, mode | S_IFDIR, 0LL); 4aa48: 42a7 clrl %sp@- <== NOT EXECUTED 4aa4a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 4aa4e: 42a7 clrl %sp@- <== NOT EXECUTED 4aa50: 08c0 000e bset #14,%d0 <== NOT EXECUTED 4aa54: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aa56: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4aa5a: 4eb9 0004 28a0 jsr 428a0 <== NOT EXECUTED } 4aa60: 4e5e unlk %fp <== NOT EXECUTED 4aa62: 4e75 rts 00061594 : int mkfifo( const char *path, mode_t mode ) { 61594: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return mknod( path, mode | S_IFIFO, 0LL ); 61598: 42a7 clrl %sp@- <== NOT EXECUTED 6159a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 6159e: 42a7 clrl %sp@- <== NOT EXECUTED 615a0: 08c0 000c bset #12,%d0 <== NOT EXECUTED 615a4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 615a6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 615aa: 4eb9 0004 6a0c jsr 46a0c <== NOT EXECUTED } 615b0: 4e5e unlk %fp <== NOT EXECUTED 615b2: 4e75 rts 000428a0 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 428a0: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 428a4: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 428a8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 428ac: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 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) ) ) 428b0: 2002 movel %d2,%d0 <== NOT EXECUTED 428b2: 0280 0000 f000 andil #61440,%d0 <== NOT EXECUTED 428b8: 6700 0102 beqw 429bc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); if ( S_ISFIFO(mode) ) 428bc: 0c80 0000 1000 cmpil #4096,%d0 <== NOT EXECUTED 428c2: 6700 00dc beqw 429a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 428c6: 1211 moveb %a1@,%d1 <== NOT EXECUTED 428c8: 1001 moveb %d1,%d0 <== NOT EXECUTED 428ca: 49c0 extbl %d0 <== NOT EXECUTED 428cc: 762f moveq #47,%d3 <== NOT EXECUTED 428ce: b680 cmpl %d0,%d3 <== NOT EXECUTED 428d0: 6700 009e beqw 42970 <== NOT EXECUTED 428d4: 163c 005c moveb #92,%d3 <== NOT EXECUTED 428d8: b680 cmpl %d0,%d3 <== NOT EXECUTED 428da: 6700 0094 beqw 42970 <== NOT EXECUTED 428de: 4a01 tstb %d1 <== NOT EXECUTED 428e0: 6700 008e beqw 42970 <== NOT EXECUTED 428e4: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 428ea: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 428ee: 5888 addql #4,%a0 <== NOT EXECUTED 428f0: 2498 movel %a0@+,%a2@ <== NOT EXECUTED 428f2: 4280 clrl %d0 <== NOT EXECUTED 428f4: 2d58 fff0 movel %a0@+,%fp@(-16) <== NOT EXECUTED 428f8: 2d58 fff4 movel %a0@+,%fp@(-12) <== NOT EXECUTED 428fc: 2d50 fff8 movel %a0@,%fp@(-8) <== NOT EXECUTED if ( !temp_loc.ops->evalformake_h ) { 42900: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 42904: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 42908: 4a88 tstl %a0 <== NOT EXECUTED 4290a: 6700 0094 beqw 429a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 4290e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 42912: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42914: 4871 0800 pea %a1@(00000000,%d0:l) <== NOT EXECUTED 42918: 4e90 jsr %a0@ <== NOT EXECUTED &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 4291a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 42920: 4a80 tstl %d0 <== NOT EXECUTED 42922: 6600 008a bnew 429ae <== NOT EXECUTED return -1; if ( !temp_loc.ops->mknod_h ) { 42926: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 4292a: 2268 0014 moveal %a0@(20),%a1 <== NOT EXECUTED 4292e: 4a89 tstl %a1 <== NOT EXECUTED 42930: 6700 00a4 beqw 429d6 <== NOT EXECUTED 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 ); 42934: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42936: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 4293a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4293e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42940: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 42944: 4e91 jsr %a1@ <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 42946: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 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 ); 4294a: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 4294c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 42952: 4a88 tstl %a0 <== NOT EXECUTED 42954: 670e beqs 42964 <== NOT EXECUTED 42956: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4295a: 4a88 tstl %a0 <== NOT EXECUTED 4295c: 6706 beqs 42964 <== NOT EXECUTED 4295e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42960: 4e90 jsr %a0@ <== NOT EXECUTED 42962: 588f addql #4,%sp <== NOT EXECUTED return result; } 42964: 2002 movel %d2,%d0 <== NOT EXECUTED 42966: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 <== NOT EXECUTED 4296c: 4e5e unlk %fp <== NOT EXECUTED 4296e: 4e75 rts <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); if ( S_ISFIFO(mode) ) rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 42970: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 42976: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 4297a: 24a8 0014 movel %a0@(20),%a2@ <== NOT EXECUTED 4297e: 7001 moveq #1,%d0 <== NOT EXECUTED 42980: 2d68 0018 fff0 movel %a0@(24),%fp@(-16) <== NOT EXECUTED 42986: 2d68 001c fff4 movel %a0@(28),%fp@(-12) <== NOT EXECUTED 4298c: 2d68 0020 fff8 movel %a0@(32),%fp@(-8) <== NOT EXECUTED if ( !temp_loc.ops->evalformake_h ) { 42992: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 42996: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4299a: 4a88 tstl %a0 <== NOT EXECUTED 4299c: 6600 ff70 bnew 4290e <== NOT EXECUTED if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 429a0: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 429a6: 2040 moveal %d0,%a0 <== NOT EXECUTED 429a8: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 429ae: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } 429b0: 2002 movel %d2,%d0 <== NOT EXECUTED 429b2: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 <== NOT EXECUTED 429b8: 4e5e unlk %fp <== NOT EXECUTED 429ba: 4e75 rts <== 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 ); 429bc: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 429c2: 2040 moveal %d0,%a0 <== NOT EXECUTED 429c4: 7016 moveq #22,%d0 <== NOT EXECUTED 429c6: 74ff moveq #-1,%d2 <== NOT EXECUTED 429c8: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } 429ca: 2002 movel %d2,%d0 <== NOT EXECUTED 429cc: 4cee 040c ffe0 moveml %fp@(-32),%d2-%d3/%a2 <== NOT EXECUTED 429d2: 4e5e unlk %fp <== NOT EXECUTED 429d4: 4e75 rts <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 429d6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 429da: 4a88 tstl %a0 <== NOT EXECUTED 429dc: 67c2 beqs 429a0 <== NOT EXECUTED 429de: 2f0a movel %a2,%sp@- <== NOT EXECUTED 429e0: 4e90 jsr %a0@ <== NOT EXECUTED 429e2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 429e4: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 429ea: 2040 moveal %d0,%a0 <== NOT EXECUTED 429ec: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 429f2: 60ba bras 429ae <== NOT EXECUTED 0004aa86 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 4aa86: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 4aa8a: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED 4aa8e: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED 4aa92: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 4aa96: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED 4aa9a: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 4aa9e: 4a8c tstl %a4 <== NOT EXECUTED 4aaa0: 6700 0248 beqw 4acea <== NOT EXECUTED /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 4aaa4: 7001 moveq #1,%d0 <== NOT EXECUTED 4aaa6: b083 cmpl %d3,%d0 <== NOT EXECUTED 4aaa8: 6500 0240 bcsw 4acea <== NOT EXECUTED errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 4aaac: 4aac 0024 tstl %a4@(36) <== NOT EXECUTED 4aab0: 6700 00c6 beqw 4ab78 <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 4aab4: 4a82 tstl %d2 <== NOT EXECUTED 4aab6: 6700 00e6 beqw 4ab9e <== NOT EXECUTED size += strlen( device ) + 1; 4aaba: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4aabc: 4eb9 0004 df90 jsr 4df90 <== NOT EXECUTED 4aac2: 588f addql #4,%sp <== NOT EXECUTED 4aac4: 0680 0000 0065 addil #101,%d0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 4aaca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aacc: 4eb9 0004 a97c jsr 4a97c <== NOT EXECUTED if ( !temp_mt_entry ) { 4aad2: 588f addql #4,%sp <== NOT EXECUTED */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 4aad4: 2440 moveal %d0,%a2 <== NOT EXECUTED 4aad6: 2640 moveal %d0,%a3 <== NOT EXECUTED if ( !temp_mt_entry ) { 4aad8: 4a80 tstl %d0 <== NOT EXECUTED 4aada: 6700 0226 beqw 4ad02 <== NOT EXECUTED errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 4aade: 2543 0028 movel %d3,%a2@(40) <== NOT EXECUTED if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 4aae2: 2540 0024 movel %d0,%a2@(36) <== NOT EXECUTED temp_mt_entry->options = options; if ( device ) { 4aae6: 4a82 tstl %d2 <== NOT EXECUTED 4aae8: 6700 0110 beqw 4abfa <== NOT EXECUTED temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 4aaec: 2f02 movel %d2,%sp@- <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 4aaee: 0680 0000 0064 addil #100,%d0 <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 4aaf4: 2f00 movel %d0,%sp@- <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 4aaf6: 2540 0060 movel %d0,%a2@(96) <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 4aafa: 4eb9 0004 dadc jsr 4dadc <== NOT EXECUTED 4ab00: 508f addql #8,%sp <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 4ab02: 4a84 tstl %d4 <== NOT EXECUTED 4ab04: 6700 009e beqw 4aba4 <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( 4ab08: 4878 0001 pea 1 <== NOT EXECUTED 4ab0c: 240e movel %fp,%d2 <== NOT EXECUTED 4ab0e: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED 4ab14: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ab16: 4878 0007 pea 7 <== NOT EXECUTED 4ab1a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4ab1c: 4eb9 0004 260c jsr 4260c <== NOT EXECUTED 4ab22: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4ab28: 72ff moveq #-1,%d1 <== NOT EXECUTED 4ab2a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ab2c: 675a beqs 4ab88 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 4ab2e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4ab32: 2068 0010 moveal %a0@(16),%a0 <== NOT EXECUTED 4ab36: 4a88 tstl %a0 <== NOT EXECUTED 4ab38: 6700 0176 beqw 4acb0 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 4ab3c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ab3e: 4e90 jsr %a0@ <== NOT EXECUTED 4ab40: 588f addql #4,%sp <== NOT EXECUTED 4ab42: 7201 moveq #1,%d1 <== NOT EXECUTED 4ab44: b280 cmpl %d0,%d1 <== NOT EXECUTED 4ab46: 6700 00ba beqw 4ac02 <== NOT EXECUTED errno = ENOTDIR; 4ab4a: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4ab50: 7214 moveq #20,%d1 <== NOT EXECUTED 4ab52: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ab54: 2081 movel %d1,%a0@ <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4ab56: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ab58: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED 4ab5e: 2642 moveal %d2,%a3 <== NOT EXECUTED 4ab60: 588f addql #4,%sp <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 4ab62: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 4ab66: 4a88 tstl %a0 <== NOT EXECUTED 4ab68: 6600 0164 bnew 4acce <== NOT EXECUTED 4ab6c: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; } 4ab6e: 4cee 1c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4ab74: 4e5e unlk %fp <== NOT EXECUTED 4ab76: 4e75 rts <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 4ab78: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4ab7e: 97cb subal %a3,%a3 <== NOT EXECUTED 4ab80: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ab82: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4ab88: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4ab8a: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED 4ab90: 588f addql #4,%sp <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4ab92: 4cee 1c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4ab98: 4e5e unlk %fp <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4ab9a: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4ab9c: 4e75 rts <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 4ab9e: 7064 moveq #100,%d0 <== NOT EXECUTED 4aba0: 6000 ff28 braw 4aaca <== NOT EXECUTED * 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; 4aba4: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED 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 ) ) { 4aba8: 206c 0024 moveal %a4@(36),%a0 <== NOT EXECUTED * 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; temp_mt_entry->mt_fs_root.handlers = NULL; 4abac: 42aa 001c clrl %a2@(28) <== NOT EXECUTED temp_mt_entry->mt_fs_root.ops = NULL; temp_mt_entry->mt_point_node.node_access = NULL; temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; 4abb0: 97cb subal %a3,%a3 <== NOT EXECUTED * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL; temp_mt_entry->mt_fs_root.handlers = NULL; temp_mt_entry->mt_fs_root.ops = NULL; 4abb2: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED temp_mt_entry->mt_point_node.node_access = NULL; 4abb6: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = NULL; 4abba: 42aa 000c clrl %a2@(12) <== NOT EXECUTED temp_mt_entry->mt_point_node.ops = NULL; 4abbe: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED temp_mt_entry->mt_point_node.mt_entry = NULL; 4abc2: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 4abc6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4abc8: 4e90 jsr %a0@ <== NOT EXECUTED 4abca: 588f addql #4,%sp <== NOT EXECUTED 4abcc: 4a80 tstl %d0 <== NOT EXECUTED 4abce: 6700 00b8 beqw 4ac88 <== NOT EXECUTED /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 4abd2: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4abd6: 2068 0028 moveal %a0@(40),%a0 <== NOT EXECUTED 4abda: 4a88 tstl %a0 <== NOT EXECUTED 4abdc: 6706 beqs 4abe4 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 4abde: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4abe0: 4e90 jsr %a0@ <== NOT EXECUTED 4abe2: 588f addql #4,%sp <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4abe4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4abe6: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED if ( loc_to_free ) 4abec: 588f addql #4,%sp <== NOT EXECUTED 4abee: 4a8b tstl %a3 <== NOT EXECUTED 4abf0: 6600 ff70 bnew 4ab62 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 4abf4: 70ff moveq #-1,%d0 <== NOT EXECUTED 4abf6: 6000 ff76 braw 4ab6e <== NOT EXECUTED 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; 4abfa: 42aa 0060 clrl %a2@(96) <== NOT EXECUTED 4abfe: 6000 ff02 braw 4ab02 <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 4ac02: 2079 0005 8982 moveal 58982 ,%a0 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 4ac08: b1fc 0005 8986 cmpal #362886,%a0 <== NOT EXECUTED 4ac0e: 6736 beqs 4ac46 <== NOT EXECUTED 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 ) 4ac10: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 4ac14: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 4ac18: 6710 beqs 4ac2a <== NOT EXECUTED * 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 ) { 4ac1a: 2050 moveal %a0@,%a0 <== NOT EXECUTED /* * 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 ); 4ac1c: b1fc 0005 8986 cmpal #362886,%a0 <== NOT EXECUTED 4ac22: 6726 beqs 4ac4a <== NOT EXECUTED 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 ) 4ac24: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 4ac28: 66f0 bnes 4ac1a <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 4ac2a: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4ac30: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ac32: 7010 moveq #16,%d0 <== NOT EXECUTED 4ac34: 2080 movel %d0,%a0@ <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4ac36: 2642 moveal %d2,%a3 <== NOT EXECUTED 4ac38: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ac3a: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED 4ac40: 588f addql #4,%sp <== NOT EXECUTED 4ac42: 6000 ff1e braw 4ab62 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 4ac46: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED * 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; 4ac4a: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 4ac4e: 2268 0020 moveal %a0@(32),%a1 <== NOT EXECUTED * 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; 4ac52: 256e fff4 000c movel %fp@(-12),%a2@(12) <== NOT EXECUTED temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 4ac58: 256e fffc 0014 movel %fp@(-4),%a2@(20) <== NOT EXECUTED * 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; 4ac5e: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 4ac62: 2548 0010 movel %a0,%a2@(16) <== NOT EXECUTED /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 4ac66: 4a89 tstl %a1 <== NOT EXECUTED 4ac68: 6746 beqs 4acb0 <== NOT EXECUTED errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 4ac6a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ac6c: 4e91 jsr %a1@ <== NOT EXECUTED 4ac6e: 588f addql #4,%sp <== NOT EXECUTED 4ac70: 4a80 tstl %d0 <== NOT EXECUTED 4ac72: 6600 fee2 bnew 4ab56 <== NOT EXECUTED 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 ) ) { 4ac76: 206c 0024 moveal %a4@(36),%a0 <== NOT EXECUTED 4ac7a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ac7c: 4e90 jsr %a0@ <== NOT EXECUTED errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { goto cleanup_and_bail; 4ac7e: 2642 moveal %d2,%a3 <== NOT EXECUTED 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 ) ) { 4ac80: 588f addql #4,%sp <== NOT EXECUTED 4ac82: 4a80 tstl %d0 <== NOT EXECUTED 4ac84: 6600 ff4c bnew 4abd2 <== 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 ); 4ac88: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ac8a: 4879 0005 8982 pea 58982 <== NOT EXECUTED 4ac90: 4eb9 0004 66d8 jsr 466d8 <_Chain_Append> <== NOT EXECUTED */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 4ac96: 508f addql #8,%sp <== NOT EXECUTED 4ac98: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 4ac9c: 6706 beqs 4aca4 <== NOT EXECUTED *mt_entry = temp_mt_entry; 4ac9e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4aca2: 208a movel %a2,%a0@ <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4aca4: 4cee 1c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4acaa: 4e5e unlk %fp <== NOT EXECUTED rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) *mt_entry = temp_mt_entry; 4acac: 4280 clrl %d0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4acae: 4e75 rts <== NOT EXECUTED * 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; 4acb0: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4acb6: 2040 moveal %d0,%a0 <== NOT EXECUTED 4acb8: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 4acbe: 2642 moveal %d2,%a3 <== NOT EXECUTED 4acc0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4acc2: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED 4acc8: 588f addql #4,%sp <== NOT EXECUTED 4acca: 6000 fe96 braw 4ab62 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 4acce: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4acd2: 4a88 tstl %a0 <== NOT EXECUTED 4acd4: 6700 fe96 beqw 4ab6c <== NOT EXECUTED 4acd8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4acda: 4e90 jsr %a0@ <== NOT EXECUTED 4acdc: 588f addql #4,%sp <== NOT EXECUTED return -1; } 4acde: 4cee 1c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4ace4: 4e5e unlk %fp <== NOT EXECUTED cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 4ace6: 70ff moveq #-1,%d0 <== NOT EXECUTED return -1; } 4ace8: 4e75 rts <== NOT EXECUTED * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 4acea: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4acf0: 7616 moveq #22,%d3 <== NOT EXECUTED 4acf2: 2040 moveal %d0,%a0 <== NOT EXECUTED 4acf4: 2083 movel %d3,%a0@ <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4acf6: 4cee 1c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4acfc: 4e5e unlk %fp <== NOT EXECUTED * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 4acfe: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4ad00: 4e75 rts <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 4ad02: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4ad08: 740c moveq #12,%d2 <== NOT EXECUTED 4ad0a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ad0c: 2082 movel %d2,%a0@ <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4ad0e: 4cee 1c1c ffd8 moveml %fp@(-40),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4ad14: 4e5e unlk %fp <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 4ad16: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 4ad18: 4e75 rts <== NOT EXECUTED ... 00042b12 : */ int newlib_free_buffers( FILE *fp ) { 42b12: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42b16: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42b18: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED switch ( fileno(fp) ) { 42b1c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42b1e: 4eb9 0004 c918 jsr 4c918 <== NOT EXECUTED 42b24: 588f addql #4,%sp <== NOT EXECUTED 42b26: 7202 moveq #2,%d1 <== NOT EXECUTED 42b28: b280 cmpl %d0,%d1 <== NOT EXECUTED 42b2a: 6414 bccs 42b40 <== NOT EXECUTED fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 42b2c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42b2e: 4eb9 0004 c74e jsr 4c74e <== NOT EXECUTED 42b34: 588f addql #4,%sp <== NOT EXECUTED } return 0; } 42b36: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 42b3a: 4e5e unlk %fp <== NOT EXECUTED 42b3c: 4280 clrl %d0 <== NOT EXECUTED 42b3e: 4e75 rts <== NOT EXECUTED { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 42b40: 302a 000c movew %a2@(12),%d0 <== NOT EXECUTED 42b44: 48c0 extl %d0 <== NOT EXECUTED 42b46: 4a00 tstb %d0 <== NOT EXECUTED 42b48: 6cec bges 42b36 <== NOT EXECUTED free( fp->_bf._base ); 42b4a: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 42b4e: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 42b54: 302a 000c movew %a2@(12),%d0 <== NOT EXECUTED 42b58: 0880 0007 bclr #7,%d0 <== NOT EXECUTED 42b5c: 3540 000c movew %d0,%a2@(12) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 42b60: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED 42b64: 588f addql #4,%sp <== NOT EXECUTED break; default: fclose(fp); } return 0; } 42b66: 4280 clrl %d0 <== 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; 42b68: 4292 clrl %a2@ <== NOT EXECUTED break; default: fclose(fp); } return 0; } 42b6a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 42b6e: 4e5e unlk %fp <== NOT EXECUTED 42b70: 4e75 rts 00042eaa : rtems_device_driver null_close( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 42eaa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return NULL_SUCCESSFUL; } 42eae: 4e5e unlk %fp <== NOT EXECUTED 42eb0: 4280 clrl %d0 <== NOT EXECUTED 42eb2: 4e75 rts 00042ed6 : rtems_device_driver null_control( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 42ed6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return NULL_SUCCESSFUL; } 42eda: 4e5e unlk %fp <== NOT EXECUTED 42edc: 4280 clrl %d0 <== NOT EXECUTED 42ede: 4e75 rts 00042ee0 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 42ee0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_device_driver status; if ( !initialized ) { 42ee4: 4a39 0005 a128 tstb 5a128 <== NOT EXECUTED 42eea: 6706 beqs 42ef2 <== NOT EXECUTED NULL_major = major; } return RTEMS_SUCCESSFUL; } 42eec: 4e5e unlk %fp <== NOT EXECUTED 42eee: 4280 clrl %d0 <== NOT EXECUTED 42ef0: 4e75 rts <== NOT EXECUTED rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( 42ef2: 42a7 clrl %sp@- <== NOT EXECUTED ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 42ef4: 7001 moveq #1,%d0 <== NOT EXECUTED 42ef6: 13c0 0005 a128 moveb %d0,5a128 <== NOT EXECUTED status = rtems_io_register_name( 42efc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42f00: 4879 0005 79e4 pea 579e4 <== NOT EXECUTED 42f06: 4eb9 0004 3030 jsr 43030 <== NOT EXECUTED "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 42f0c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 42f12: 4a80 tstl %d0 <== NOT EXECUTED 42f14: 6610 bnes 42f26 <== NOT EXECUTED rtems_fatal_error_occurred(status); NULL_major = major; 42f16: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED } return RTEMS_SUCCESSFUL; } 42f1a: 4e5e unlk %fp <== NOT EXECUTED ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); NULL_major = major; 42f1c: 23c0 0005 a934 movel %d0,5a934 <== NOT EXECUTED } return RTEMS_SUCCESSFUL; } 42f22: 4280 clrl %d0 <== NOT EXECUTED 42f24: 4e75 rts <== NOT EXECUTED major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 42f26: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42f28: 4eb9 0004 706c jsr 4706c <== NOT EXECUTED ... 00042ea0 : rtems_device_driver null_open( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 42ea0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return NULL_SUCCESSFUL; } 42ea4: 4e5e unlk %fp <== NOT EXECUTED 42ea6: 4280 clrl %d0 <== NOT EXECUTED 42ea8: 4e75 rts 00042eb4 : rtems_device_driver null_read( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 42eb4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return NULL_SUCCESSFUL; } 42eb8: 4e5e unlk %fp <== NOT EXECUTED 42eba: 4280 clrl %d0 <== NOT EXECUTED 42ebc: 4e75 rts 00042ebe : rtems_device_driver null_write( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 42ebe: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42ec2: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 42ec6: 4a88 tstl %a0 <== NOT EXECUTED 42ec8: 6706 beqs 42ed0 <== NOT EXECUTED rw_args->bytes_moved = rw_args->count; 42eca: 2168 000c 0014 movel %a0@(12),%a0@(20) <== NOT EXECUTED return NULL_SUCCESSFUL; } 42ed0: 4e5e unlk %fp <== NOT EXECUTED 42ed2: 4280 clrl %d0 <== NOT EXECUTED 42ed4: 4e75 rts 00042d80 : int open( const char *pathname, int flags, ... ) { 42d80: 4e56 ffd4 linkw %fp,#-44 <== NOT EXECUTED 42d84: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 42d88: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 42d8c: 2003 movel %d3,%d0 <== NOT EXECUTED 42d8e: 5280 addql #1,%d0 <== NOT EXECUTED if ( ( status & _FREAD ) == _FREAD ) 42d90: 0800 0000 btst #0,%d0 <== NOT EXECUTED 42d94: 6600 00de bnew 42e74 <== NOT EXECUTED 42d98: 4282 clrl %d2 <== NOT EXECUTED eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 42d9a: 0800 0001 btst #1,%d0 <== NOT EXECUTED 42d9e: 6704 beqs 42da4 <== NOT EXECUTED eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 42da0: 7002 moveq #2,%d0 <== NOT EXECUTED 42da2: 8480 orl %d0,%d2 <== NOT EXECUTED va_start(ap, flags); mode = va_arg( ap, int ); 42da4: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED * 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(); 42da8: 4eb9 0004 a7d6 jsr 4a7d6 <== NOT EXECUTED 42dae: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( iop == 0 ) { 42db0: 4a80 tstl %d0 <== NOT EXECUTED 42db2: 6700 00c6 beqw 42e7a <== NOT EXECUTED /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 42db6: 4878 0001 pea 1 <== NOT EXECUTED 42dba: 47ee fff0 lea %fp@(-16),%a3 <== NOT EXECUTED 42dbe: 4bf9 0004 260c lea 4260c ,%a5 <== NOT EXECUTED 42dc4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 42dc6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 42dc8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42dcc: 4e95 jsr %a5@ <== NOT EXECUTED pathname, eval_flags, &loc, true ); if ( status == -1 ) { 42dce: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 42dd4: 72ff moveq #-1,%d1 <== NOT EXECUTED 42dd6: b280 cmpl %d0,%d1 <== NOT EXECUTED 42dd8: 6700 00ea beqw 42ec4 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 42ddc: 2003 movel %d3,%d0 <== NOT EXECUTED 42dde: 0280 0000 0a00 andil #2560,%d0 <== NOT EXECUTED 42de4: 0c80 0000 0a00 cmpil #2560,%d0 <== NOT EXECUTED 42dea: 6700 00a8 beqw 42e94 <== NOT EXECUTED * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 42dee: 242a 000c movel %a2@(12),%d2 <== NOT EXECUTED /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 42df2: 256e fff4 0030 movel %fp@(-12),%a2@(48) <== NOT EXECUTED iop->file_info = loc.node_access; 42df8: 256e fff0 002c movel %fp@(-16),%a2@(44) <== NOT EXECUTED iop->flags |= rtems_libio_fcntl_flags( flags ); 42dfe: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42e00: 4eb9 0004 a89c jsr 4a89c <== NOT EXECUTED iop->pathinfo = loc; 42e06: 2553 0010 movel %a3@,%a2@(16) <== NOT EXECUTED if ( !iop->handlers->open_h ) { 42e0a: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 42e0e: 256e fff4 0014 movel %fp@(-12),%a2@(20) <== NOT EXECUTED if ( !iop->handlers->open_h ) { 42e14: 2050 moveal %a0@,%a0 <== NOT EXECUTED */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 42e16: 256e fff8 0018 movel %fp@(-8),%a2@(24) <== NOT EXECUTED * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 42e1c: 8082 orl %d2,%d0 <== NOT EXECUTED iop->pathinfo = loc; 42e1e: 256e fffc 001c movel %fp@(-4),%a2@(28) <== NOT EXECUTED if ( !iop->handlers->open_h ) { 42e24: 588f addql #4,%sp <== NOT EXECUTED * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 42e26: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 42e2a: 4a88 tstl %a0 <== NOT EXECUTED 42e2c: 6700 00b4 beqw 42ee2 <== NOT EXECUTED rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 42e30: 2f04 movel %d4,%sp@- <== NOT EXECUTED 42e32: 49f9 0004 c600 lea 4c600 <__errno>,%a4 <== NOT EXECUTED 42e38: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42e3a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42e3e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42e40: 4e90 jsr %a0@ <== NOT EXECUTED if ( rc ) 42e42: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED if ( !iop->handlers->open_h ) { rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 42e48: 2400 movel %d0,%d2 <== NOT EXECUTED if ( rc ) 42e4a: 6600 00b2 bnew 42efe <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 42e4e: 0803 000a btst #10,%d3 <== NOT EXECUTED 42e52: 6600 00b6 bnew 42f0a <== 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; 42e56: 200a movel %a2,%d0 <== NOT EXECUTED 42e58: 90b9 0005 85ec subl 585ec ,%d0 <== NOT EXECUTED 42e5e: 223c c4ec 4ec5 movel #-991146299,%d1 <== NOT EXECUTED 42e64: e480 asrl #2,%d0 <== NOT EXECUTED } 42e66: 4cee 3c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a5 <== 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; 42e6c: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED } 42e70: 4e5e unlk %fp <== NOT EXECUTED 42e72: 4e75 rts <== NOT EXECUTED * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 42e74: 7404 moveq #4,%d2 <== NOT EXECUTED 42e76: 6000 ff22 braw 42d9a <== NOT EXECUTED * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) { 42e7a: 7417 moveq #23,%d2 <== NOT EXECUTED 42e7c: 49f9 0004 c600 lea 4c600 <__errno>,%a4 <== NOT EXECUTED if ( rc ) { if ( iop ) rtems_libio_free( iop ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); 42e82: 4e94 jsr %a4@ <== NOT EXECUTED 42e84: 2040 moveal %d0,%a0 <== NOT EXECUTED 42e86: 70ff moveq #-1,%d0 <== NOT EXECUTED 42e88: 2082 movel %d2,%a0@ <== NOT EXECUTED } return iop - rtems_libio_iops; } 42e8a: 4cee 3c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a5 <== NOT EXECUTED 42e90: 4e5e unlk %fp <== NOT EXECUTED 42e92: 4e75 rts <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 42e94: 7411 moveq #17,%d2 <== NOT EXECUTED 42e96: 49f9 0004 c600 lea 4c600 <__errno>,%a4 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 42e9c: 4a8a tstl %a2 <== NOT EXECUTED 42e9e: 665e bnes 42efe <== NOT EXECUTED rtems_libio_free( iop ); if ( loc_to_free ) 42ea0: 4a8b tstl %a3 <== NOT EXECUTED 42ea2: 67de beqs 42e82 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 42ea4: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED 42ea8: 4a88 tstl %a0 <== NOT EXECUTED 42eaa: 67d6 beqs 42e82 <== NOT EXECUTED 42eac: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 42eb0: 4a88 tstl %a0 <== NOT EXECUTED 42eb2: 67ce beqs 42e82 <== NOT EXECUTED 42eb4: 2f0b movel %a3,%sp@- <== NOT EXECUTED 42eb6: 4e90 jsr %a0@ <== NOT EXECUTED 42eb8: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 42eba: 4e94 jsr %a4@ <== NOT EXECUTED 42ebc: 2040 moveal %d0,%a0 <== NOT EXECUTED 42ebe: 2082 movel %d2,%a0@ <== NOT EXECUTED 42ec0: 70ff moveq #-1,%d0 <== NOT EXECUTED 42ec2: 60c6 bras 42e8a <== NOT EXECUTED status = rtems_filesystem_evaluate_path( pathname, eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 42ec4: 49f9 0004 c600 lea 4c600 <__errno>,%a4 <== NOT EXECUTED 42eca: 4e94 jsr %a4@ <== NOT EXECUTED 42ecc: 2040 moveal %d0,%a0 <== NOT EXECUTED 42ece: 7002 moveq #2,%d0 <== NOT EXECUTED 42ed0: b090 cmpl %a0@,%d0 <== NOT EXECUTED 42ed2: 661c bnes 42ef0 <== 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) ) { 42ed4: 0803 0009 btst #9,%d3 <== NOT EXECUTED 42ed8: 6600 008c bnew 42f66 <== NOT EXECUTED 42edc: 7402 moveq #2,%d2 <== NOT EXECUTED 42ede: 97cb subal %a3,%a3 <== NOT EXECUTED 42ee0: 60ba bras 42e9c <== 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; 42ee2: 243c 0000 0086 movel #134,%d2 <== NOT EXECUTED 42ee8: 49f9 0004 c600 lea 4c600 <__errno>,%a4 <== NOT EXECUTED 42eee: 60ac bras 42e9c <== NOT EXECUTED } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 42ef0: 4e94 jsr %a4@ <== NOT EXECUTED 42ef2: 2040 moveal %d0,%a0 <== NOT EXECUTED 42ef4: 2410 movel %a0@,%d2 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 42ef6: 6700 ff5e beqw 42e56 <== NOT EXECUTED 42efa: 97cb subal %a3,%a3 <== NOT EXECUTED 42efc: 609e bras 42e9c <== NOT EXECUTED if ( iop ) rtems_libio_free( iop ); 42efe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42f00: 4eb9 0004 a746 jsr 4a746 <== NOT EXECUTED 42f06: 588f addql #4,%sp <== NOT EXECUTED 42f08: 6096 bras 42ea0 <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 42f0a: 200a movel %a2,%d0 <== NOT EXECUTED 42f0c: 90b9 0005 85ec subl 585ec ,%d0 <== NOT EXECUTED 42f12: 223c c4ec 4ec5 movel #-991146299,%d1 <== NOT EXECUTED 42f18: e480 asrl #2,%d0 <== NOT EXECUTED 42f1a: 4c00 1800 mulsl %d0,%d1 <== NOT EXECUTED 42f1e: 42a7 clrl %sp@- <== NOT EXECUTED 42f20: 2f01 movel %d1,%sp@- <== NOT EXECUTED 42f22: 4eb9 0004 a460 jsr 4a460 <== NOT EXECUTED if ( rc ) { 42f28: 508f addql #8,%sp <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 42f2a: 2400 movel %d0,%d2 <== NOT EXECUTED if ( rc ) { 42f2c: 6700 ff28 beqw 42e56 <== NOT EXECUTED if(errno) rc = errno; 42f30: 49f9 0004 c600 lea 4c600 <__errno>,%a4 <== NOT EXECUTED 42f36: 4e94 jsr %a4@ <== NOT EXECUTED 42f38: 2040 moveal %d0,%a0 <== NOT EXECUTED 42f3a: 4a90 tstl %a0@ <== NOT EXECUTED 42f3c: 666c bnes 42faa <== NOT EXECUTED close( iop - rtems_libio_iops ); 42f3e: 95f9 0005 85ec subal 585ec ,%a2 <== NOT EXECUTED 42f44: 200a movel %a2,%d0 <== NOT EXECUTED 42f46: 223c c4ec 4ec5 movel #-991146299,%d1 <== NOT EXECUTED 42f4c: e480 asrl #2,%d0 <== NOT EXECUTED 42f4e: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 42f52: 95ca subal %a2,%a2 <== NOT EXECUTED 42f54: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42f56: 4eb9 0004 a324 jsr 4a324 <== NOT EXECUTED 42f5c: 588f addql #4,%sp <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 42f5e: 4a82 tstl %d2 <== NOT EXECUTED 42f60: 6700 fef4 beqw 42e56 <== NOT EXECUTED 42f64: 6094 bras 42efa <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 42f66: 42a7 clrl %sp@- <== NOT EXECUTED 42f68: 2204 movel %d4,%d1 <== NOT EXECUTED 42f6a: 08c1 000f bset #15,%d1 <== NOT EXECUTED 42f6e: 42a7 clrl %sp@- <== NOT EXECUTED 42f70: 2f01 movel %d1,%sp@- <== NOT EXECUTED 42f72: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42f76: 4eb9 0004 28a0 jsr 428a0 <== NOT EXECUTED if ( rc ) { 42f7c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 42f82: 4a80 tstl %d0 <== NOT EXECUTED 42f84: 6600 ff6a bnew 42ef0 <== NOT EXECUTED rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, 0x0, &loc, true ); 42f88: 4878 0001 pea 1 <== NOT EXECUTED 42f8c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 42f8e: 42a7 clrl %sp@- <== NOT EXECUTED 42f90: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42f94: 4e95 jsr %a5@ <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 42f96: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 42f9c: 4a80 tstl %d0 <== NOT EXECUTED 42f9e: 6700 fe4e beqw 42dee <== NOT EXECUTED 42fa2: 740d moveq #13,%d2 <== NOT EXECUTED 42fa4: 97cb subal %a3,%a3 <== NOT EXECUTED 42fa6: 6000 fef4 braw 42e9c <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 42faa: 4e94 jsr %a4@ <== NOT EXECUTED close( iop - rtems_libio_iops ); 42fac: 95f9 0005 85ec subal 585ec ,%a2 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 42fb2: 2040 moveal %d0,%a0 <== NOT EXECUTED close( iop - rtems_libio_iops ); 42fb4: 200a movel %a2,%d0 <== NOT EXECUTED 42fb6: 223c c4ec 4ec5 movel #-991146299,%d1 <== NOT EXECUTED 42fbc: e480 asrl #2,%d0 <== NOT EXECUTED 42fbe: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 42fc2: 2410 movel %a0@,%d2 <== NOT EXECUTED close( iop - rtems_libio_iops ); 42fc4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42fc6: 4eb9 0004 a324 jsr 4a324 <== NOT EXECUTED 42fcc: 95ca subal %a2,%a2 <== NOT EXECUTED 42fce: 588f addql #4,%sp <== NOT EXECUTED 42fd0: 608c bras 42f5e <== NOT EXECUTED 00042d08 : /* * This is a replaceable stub */ void open_dev_console(void) { 42d08: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 42d0c: 2f0a movel %a2,%sp@- <== NOT EXECUTED int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 42d0e: 45f9 0004 2d80 lea 42d80 ,%a2 <== NOT EXECUTED 42d14: 42a7 clrl %sp@- <== NOT EXECUTED 42d16: 42a7 clrl %sp@- <== NOT EXECUTED 42d18: 4879 0005 56aa pea 556aa <== NOT EXECUTED 42d1e: 4e92 jsr %a2@ <== NOT EXECUTED 42d20: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 42d26: 72ff moveq #-1,%d1 <== NOT EXECUTED 42d28: b280 cmpl %d0,%d1 <== NOT EXECUTED 42d2a: 6734 beqs 42d60 <== NOT EXECUTED /* * 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) 42d2c: 42a7 clrl %sp@- <== NOT EXECUTED 42d2e: 4878 0001 pea 1 <== NOT EXECUTED 42d32: 4879 0005 56aa pea 556aa <== NOT EXECUTED 42d38: 4e92 jsr %a2@ <== NOT EXECUTED 42d3a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 42d40: 72ff moveq #-1,%d1 <== NOT EXECUTED 42d42: b280 cmpl %d0,%d1 <== NOT EXECUTED 42d44: 672e beqs 42d74 <== NOT EXECUTED rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 42d46: 42a7 clrl %sp@- <== NOT EXECUTED 42d48: 4878 0001 pea 1 <== NOT EXECUTED 42d4c: 4879 0005 56aa pea 556aa <== NOT EXECUTED 42d52: 4e92 jsr %a2@ <== NOT EXECUTED 42d54: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 42d5a: 72ff moveq #-1,%d1 <== NOT EXECUTED 42d5c: b280 cmpl %d0,%d1 <== NOT EXECUTED 42d5e: 6708 beqs 42d68 <== NOT EXECUTED rtems_fatal_error_occurred( error_code | '2' ); } 42d60: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 42d64: 4e5e unlk %fp <== NOT EXECUTED 42d66: 4e75 rts <== NOT EXECUTED */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( error_code | '2' ); 42d68: 2f3c 5354 4432 movel #1398031410,%sp@- <== NOT EXECUTED 42d6e: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED /* * 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( error_code | '1' ); 42d74: 2f3c 5354 4431 movel #1398031409,%sp@- <== NOT EXECUTED 42d7a: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 000615b4 : * open a directory. */ DIR * opendir( const char *name ) { 615b4: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 615b8: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 615bc: 42a7 clrl %sp@- <== NOT EXECUTED 615be: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 615c2: 4eb9 0004 71a4 jsr 471a4 <== NOT EXECUTED 615c8: 2400 movel %d0,%d2 <== NOT EXECUTED 615ca: 508f addql #8,%sp <== NOT EXECUTED 615cc: 70ff moveq #-1,%d0 <== NOT EXECUTED 615ce: b082 cmpl %d2,%d0 <== NOT EXECUTED 615d0: 676a beqs 6163c <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 615d2: 4878 0001 pea 1 <== NOT EXECUTED 615d6: 4878 0002 pea 2 <== NOT EXECUTED 615da: 2f02 movel %d2,%sp@- <== NOT EXECUTED 615dc: 4eb9 0006 d23c jsr 6d23c <== NOT EXECUTED 615e2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 615e8: 72ff moveq #-1,%d1 <== NOT EXECUTED 615ea: b280 cmpl %d0,%d1 <== NOT EXECUTED 615ec: 6744 beqs 61632 <== NOT EXECUTED 615ee: 47f9 0004 6828 lea 46828 ,%a3 <== NOT EXECUTED 615f4: 4878 0018 pea 18 <== NOT EXECUTED 615f8: 4e93 jsr %a3@ <== NOT EXECUTED 615fa: 588f addql #4,%sp <== NOT EXECUTED 615fc: 2440 moveal %d0,%a2 <== NOT EXECUTED 615fe: 4a80 tstl %d0 <== NOT EXECUTED 61600: 6730 beqs 61632 <== NOT EXECUTED * If CLSIZE is an exact multiple of DIRBLKSIZ, use a CLSIZE * buffer that it cluster boundary aligned. * Hopefully this can be a big win someday by allowing page trades * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); 61602: 4878 0200 pea 200 <== NOT EXECUTED 61606: 4e93 jsr %a3@ <== NOT EXECUTED dirp->dd_len = 512; 61608: 223c 0000 0200 movel #512,%d1 <== NOT EXECUTED * If CLSIZE is an exact multiple of DIRBLKSIZ, use a CLSIZE * buffer that it cluster boundary aligned. * Hopefully this can be a big win someday by allowing page trades * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); 6160e: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED dirp->dd_len = 512; if (dirp->dd_buf == NULL) { 61612: 588f addql #4,%sp <== NOT EXECUTED * buffer that it cluster boundary aligned. * Hopefully this can be a big win someday by allowing page trades * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); dirp->dd_len = 512; 61614: 2541 0010 movel %d1,%a2@(16) <== NOT EXECUTED if (dirp->dd_buf == NULL) { 61618: 4a80 tstl %d0 <== NOT EXECUTED 6161a: 672e beqs 6164a <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 6161c: 200a movel %a2,%d0 <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; 6161e: 2482 movel %d2,%a2@ <== NOT EXECUTED dirp->dd_loc = 0; 61620: 42aa 0004 clrl %a2@(4) <== NOT EXECUTED dirp->dd_seek = 0; 61624: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED /* * Set up seek point for rewinddir. */ return dirp; } 61628: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 6162e: 4e5e unlk %fp <== NOT EXECUTED 61630: 4e75 rts <== NOT EXECUTED if ((fd = open(name, 0)) == -1) return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || (dirp = (DIR *)malloc(sizeof(DIR))) == NULL) { close (fd); 61632: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61634: 4eb9 0004 5d14 jsr 45d14 <== NOT EXECUTED 6163a: 588f addql #4,%sp <== NOT EXECUTED 6163c: 95ca subal %a2,%a2 <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 6163e: 200a movel %a2,%d0 <== NOT EXECUTED 61640: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 61646: 4e5e unlk %fp <== NOT EXECUTED 61648: 4e75 rts <== NOT EXECUTED */ dirp->dd_buf = malloc (512); dirp->dd_len = 512; if (dirp->dd_buf == NULL) { close (fd); 6164a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6164c: 4eb9 0004 5d14 jsr 45d14 <== NOT EXECUTED 61652: 95ca subal %a2,%a2 <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 61654: 200a movel %a2,%d0 <== NOT EXECUTED */ dirp->dd_buf = malloc (512); dirp->dd_len = 512; if (dirp->dd_buf == NULL) { close (fd); 61656: 588f addql #4,%sp <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 61658: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 6165e: 4e5e unlk %fp <== NOT EXECUTED 61660: 4e75 rts <== NOT EXECUTED ... 00043bd0 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 43bd0: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 43bd4: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 43bd8: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 43bdc: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { 43be0: 222b 0034 movel %a3@(52),%d1 <== NOT EXECUTED 43be4: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 43bea: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { 43bee: 0801 0000 btst #0,%d1 <== NOT EXECUTED 43bf2: 6742 beqs 43c36 <== NOT EXECUTED switch (c) { 43bf4: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43bfa: 7409 moveq #9,%d2 <== NOT EXECUTED 43bfc: b480 cmpl %d0,%d2 <== NOT EXECUTED 43bfe: 6700 009c beqw 43c9c <== NOT EXECUTED 43c02: 654e bcss 43c52 <== NOT EXECUTED 43c04: 7608 moveq #8,%d3 <== NOT EXECUTED 43c06: b680 cmpl %d0,%d3 <== NOT EXECUTED 43c08: 6700 0116 beqw 43d20 <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 43c0c: 0801 0001 btst #1,%d1 <== NOT EXECUTED 43c10: 6600 0138 bnew 43d4a <== NOT EXECUTED 43c14: 2079 0005 7128 moveal 57128 <__ctype_ptr>,%a0 <== NOT EXECUTED c = toupper(c); if (!iscntrl(c)) 43c1a: 4280 clrl %d0 <== NOT EXECUTED 43c1c: 102e fffe moveb %fp@(-2),%d0 <== NOT EXECUTED 43c20: 1230 0800 moveb %a0@(00000000,%d0:l),%d1 <== NOT EXECUTED 43c24: 49c1 extbl %d1 <== NOT EXECUTED 43c26: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED 43c2c: 0801 0005 btst #5,%d1 <== NOT EXECUTED 43c30: 6604 bnes 43c36 <== NOT EXECUTED tty->column++; 43c32: 52ab 0028 addql #1,%a3@(40) <== NOT EXECUTED break; } } rtems_termios_puts (&c, 1, tty); 43c36: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43c38: 4878 0001 pea 1 <== NOT EXECUTED 43c3c: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43c40: 4e92 jsr %a2@ <== NOT EXECUTED 43c42: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } 43c48: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 43c4e: 4e5e unlk %fp <== NOT EXECUTED 43c50: 4e75 rts <== NOT EXECUTED oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 43c52: 740a moveq #10,%d2 <== NOT EXECUTED 43c54: b480 cmpl %d0,%d2 <== NOT EXECUTED 43c56: 6700 0084 beqw 43cdc <== NOT EXECUTED 43c5a: 760d moveq #13,%d3 <== NOT EXECUTED 43c5c: b680 cmpl %d0,%d3 <== NOT EXECUTED 43c5e: 66ac bnes 43c0c <== NOT EXECUTED tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 43c60: 0801 0004 btst #4,%d1 <== NOT EXECUTED 43c64: 6706 beqs 43c6c <== NOT EXECUTED 43c66: 4aab 0028 tstl %a3@(40) <== NOT EXECUTED 43c6a: 67dc beqs 43c48 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 43c6c: 44c1 movew %d1,%ccr <== NOT EXECUTED 43c6e: 6a00 00fc bplw 43d6c <== NOT EXECUTED c = '\n'; 43c72: 700a moveq #10,%d0 <== NOT EXECUTED 43c74: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED 43c7a: 1d40 fffe moveb %d0,%fp@(-2) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 43c7e: 0801 0005 btst #5,%d1 <== NOT EXECUTED 43c82: 67b2 beqs 43c36 <== NOT EXECUTED tty->column = 0; 43c84: 42ab 0028 clrl %a3@(40) <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43c88: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43c8a: 4878 0001 pea 1 <== NOT EXECUTED 43c8e: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43c92: 4e92 jsr %a2@ <== NOT EXECUTED 43c94: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43c9a: 60ac bras 43c48 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 43c9c: 242b 0028 movel %a3@(40),%d2 <== NOT EXECUTED 43ca0: 7007 moveq #7,%d0 <== NOT EXECUTED 43ca2: c082 andl %d2,%d0 <== NOT EXECUTED 43ca4: 7608 moveq #8,%d3 <== NOT EXECUTED 43ca6: 9680 subl %d0,%d3 <== NOT EXECUTED 43ca8: 2003 movel %d3,%d0 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 43caa: 0281 0000 1800 andil #6144,%d1 <== NOT EXECUTED 43cb0: 0c81 0000 1800 cmpil #6144,%d1 <== NOT EXECUTED 43cb6: 6700 00d4 beqw 43d8c <== NOT EXECUTED tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 43cba: d082 addl %d2,%d0 <== NOT EXECUTED 43cbc: 2740 0028 movel %d0,%a3@(40) <== NOT EXECUTED 43cc0: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43cc6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43cc8: 4878 0001 pea 1 <== NOT EXECUTED 43ccc: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43cd0: 4e92 jsr %a2@ <== NOT EXECUTED 43cd2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43cd8: 6000 ff6e braw 43c48 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 43cdc: 0801 0005 btst #5,%d1 <== NOT EXECUTED 43ce0: 6704 beqs 43ce6 <== NOT EXECUTED tty->column = 0; 43ce2: 42ab 0028 clrl %a3@(40) <== NOT EXECUTED 43ce6: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { 43cec: 44c1 movew %d1,%ccr <== NOT EXECUTED 43cee: 6600 ff46 bnew 43c36 <== NOT EXECUTED rtems_termios_puts ("\r", 1, tty); 43cf2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43cf4: 4878 0001 pea 1 <== NOT EXECUTED 43cf8: 4879 0005 5bca pea 55bca <== NOT EXECUTED 43cfe: 4e92 jsr %a2@ <== NOT EXECUTED tty->column = 0; 43d00: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43d06: 42ab 0028 clrl %a3@(40) <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43d0a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43d0c: 4878 0001 pea 1 <== NOT EXECUTED 43d10: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43d14: 4e92 jsr %a2@ <== NOT EXECUTED 43d16: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43d1c: 6000 ff2a braw 43c48 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 43d20: 202b 0028 movel %a3@(40),%d0 <== NOT EXECUTED 43d24: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED 43d2a: 6f00 ff0a blew 43c36 <== NOT EXECUTED tty->column--; 43d2e: 5380 subql #1,%d0 <== NOT EXECUTED 43d30: 2740 0028 movel %d0,%a3@(40) <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43d34: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43d36: 4878 0001 pea 1 <== NOT EXECUTED 43d3a: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43d3e: 4e92 jsr %a2@ <== NOT EXECUTED 43d40: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43d46: 6000 ff00 braw 43c48 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 43d4a: 2079 0005 7128 moveal 57128 <__ctype_ptr>,%a0 <== NOT EXECUTED 43d50: 2200 movel %d0,%d1 <== NOT EXECUTED 43d52: 1030 0800 moveb %a0@(00000000,%d0:l),%d0 <== NOT EXECUTED 43d56: 49c0 extbl %d0 <== NOT EXECUTED 43d58: 0800 0001 btst #1,%d0 <== NOT EXECUTED 43d5c: 6706 beqs 43d64 <== NOT EXECUTED 43d5e: 0681 ffff ffe0 addil #-32,%d1 <== NOT EXECUTED 43d64: 1d41 fffe moveb %d1,%fp@(-2) <== NOT EXECUTED 43d68: 6000 feb0 braw 43c1a <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 43d6c: 42ab 0028 clrl %a3@(40) <== NOT EXECUTED 43d70: 45f9 0004 3aa2 lea 43aa2 ,%a2 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 43d76: 2f0b movel %a3,%sp@- <== NOT EXECUTED 43d78: 4878 0001 pea 1 <== NOT EXECUTED 43d7c: 486e fffe pea %fp@(-2) <== NOT EXECUTED 43d80: 4e92 jsr %a2@ <== NOT EXECUTED 43d82: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43d88: 6000 febe braw 43c48 <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); 43d8c: 2f0b movel %a3,%sp@- <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 43d8e: d483 addl %d3,%d2 <== NOT EXECUTED 43d90: 2742 0028 movel %d2,%a3@(40) <== NOT EXECUTED rtems_termios_puts ( " ", i, tty); 43d94: 2f03 movel %d3,%sp@- <== NOT EXECUTED 43d96: 4879 0005 5bcc pea 55bcc <== NOT EXECUTED 43d9c: 4eb9 0004 3aa2 jsr 43aa2 <== NOT EXECUTED 43da2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED tty->column++; break; } } rtems_termios_puts (&c, 1, tty); } 43da8: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 43dae: 4e5e unlk %fp <== NOT EXECUTED 43db0: 4e75 rts 00045ac8 : int posix_memalign( void **pointer, size_t alignment, size_t size ) { 45ac8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45acc: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED /* * Update call statistics */ MSBUMP(memalign_calls, 1); 45ad0: 52b9 0005 c69c addql #1,5c69c <== NOT EXECUTED if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) 45ad6: 2001 movel %d1,%d0 <== NOT EXECUTED 45ad8: 5380 subql #1,%d0 <== NOT EXECUTED 45ada: c081 andl %d1,%d0 <== NOT EXECUTED 45adc: 6608 bnes 45ae6 <== NOT EXECUTED 45ade: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 45ae2: b081 cmpl %d1,%d0 <== NOT EXECUTED 45ae4: 6506 bcss 45aec <== NOT EXECUTED /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); } 45ae6: 4e5e unlk %fp <== NOT EXECUTED 45ae8: 7016 moveq #22,%d0 <== NOT EXECUTED 45aea: 4e75 rts <== NOT EXECUTED 45aec: 4e5e unlk %fp <== NOT EXECUTED /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); 45aee: 4ef9 0004 5ff4 jmp 45ff4 <== NOT EXECUTED 0004339e : * printk * * Kernel printf function requiring minimal infrastrure. */ void printk(const char *fmt, ...) { 4339e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list ap; /* points to each unnamed argument in turn */ va_start(ap, fmt); /* make ap point to 1st unnamed arg */ vprintk(fmt, ap); 433a2: 486e 000c pea %fp@(12) <== NOT EXECUTED 433a6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 433aa: 4eb9 0004 2ff4 jsr 42ff4 <== NOT EXECUTED 433b0: 508f addql #8,%sp <== NOT EXECUTED va_end(ap); /* clean up when done */ } 433b2: 4e5e unlk %fp <== NOT EXECUTED 433b4: 4e75 rts <== NOT EXECUTED ... 00044220 : int printk_plugin( void *ignored, const char *format, ... ) { 44220: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list arg_pointer; va_start (arg_pointer, format); vprintk( format, arg_pointer ); 44224: 486e 0010 pea %fp@(16) <== NOT EXECUTED 44228: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4422c: 4eb9 0004 3e5c jsr 43e5c <== NOT EXECUTED va_end(arg_pointer); /* clean up when done */ return 0; } 44232: 4e5e unlk %fp <== NOT EXECUTED 44234: 4280 clrl %d0 <== NOT EXECUTED 44236: 4e75 rts 00054ddc : ssize_t read( int fd, void *buffer, size_t count ) { 54ddc: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 54de0: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 54de4: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 54de8: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 54dec: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 54df0: b4b9 0005 6b98 cmpl 56b98 ,%d2 <== NOT EXECUTED 54df6: 6466 bccs 54e5e <== NOT EXECUTED iop = rtems_libio_iop( fd ); 54df8: 2202 movel %d2,%d1 <== NOT EXECUTED 54dfa: 2002 movel %d2,%d0 <== NOT EXECUTED 54dfc: e589 lsll #2,%d1 <== NOT EXECUTED 54dfe: e988 lsll #4,%d0 <== NOT EXECUTED 54e00: 9081 subl %d1,%d0 <== NOT EXECUTED 54e02: 2479 0005 85ec moveal 585ec ,%a2 <== NOT EXECUTED 54e08: d082 addl %d2,%d0 <== NOT EXECUTED 54e0a: e588 lsll #2,%d0 <== NOT EXECUTED 54e0c: d5c0 addal %d0,%a2 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 54e0e: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 54e12: 0800 0008 btst #8,%d0 <== NOT EXECUTED 54e16: 6746 beqs 54e5e <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 54e18: 4a83 tstl %d3 <== NOT EXECUTED 54e1a: 675a beqs 54e76 <== NOT EXECUTED rtems_libio_check_count( count ); 54e1c: 4a89 tstl %a1 <== NOT EXECUTED 54e1e: 6732 beqs 54e52 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 54e20: 0800 0001 btst #1,%d0 <== NOT EXECUTED 54e24: 6750 beqs 54e76 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 54e26: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 54e2a: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED 54e2e: 4a88 tstl %a0 <== NOT EXECUTED 54e30: 675c beqs 54e8e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 54e32: 2f09 movel %a1,%sp@- <== NOT EXECUTED 54e34: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54e36: 2f0a movel %a2,%sp@- <== NOT EXECUTED 54e38: 4e90 jsr %a0@ <== NOT EXECUTED if ( rc > 0 ) 54e3a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54e40: 4a80 tstl %d0 <== NOT EXECUTED 54e42: 6f04 bles 54e48 <== NOT EXECUTED iop->offset += rc; 54e44: d1aa 0008 addl %d0,%a2@(8) <== NOT EXECUTED return rc; } 54e48: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 54e4e: 4e5e unlk %fp <== NOT EXECUTED 54e50: 4e75 rts <== NOT EXECUTED 54e52: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 54e58: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); 54e5a: 4280 clrl %d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e5c: 4e75 rts <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 54e5e: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e64: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 54e6a: 2040 moveal %d0,%a0 <== NOT EXECUTED 54e6c: 7209 moveq #9,%d1 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e6e: 4e5e unlk %fp <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 54e70: 70ff moveq #-1,%d0 <== NOT EXECUTED 54e72: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e74: 4e75 rts <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 54e76: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 54e7c: 2040 moveal %d0,%a0 <== NOT EXECUTED 54e7e: 7016 moveq #22,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e80: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 54e86: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e88: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 54e8a: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e8c: 4e75 rts <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 54e8e: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e94: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 54e9a: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54e9c: 4e5e unlk %fp <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 54e9e: 70ff moveq #-1,%d0 <== NOT EXECUTED 54ea0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 54ea6: 4e75 rts 00061960 : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 61960: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 61964: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 61968: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 6196c: 4a8a tstl %a2 <== NOT EXECUTED 6196e: 6778 beqs 619e8 <== NOT EXECUTED return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 61970: 47f9 0006 d4a4 lea 6d4a4 ,%a3 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { 61976: 222a 0004 movel %a2@(4),%d1 <== NOT EXECUTED 6197a: 6710 beqs 6198c <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 6197c: b2aa 0008 cmpl %a2@(8),%d1 <== NOT EXECUTED 61980: 6d2c blts 619ae <== NOT EXECUTED dirp->dd_loc = 0; 61982: 42aa 0004 clrl %a2@(4) <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { 61986: 222a 0004 movel %a2@(4),%d1 <== NOT EXECUTED 6198a: 66f0 bnes 6197c <== NOT EXECUTED dirp->dd_size = getdents (dirp->dd_fd, 6198c: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 61990: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED 61994: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 61996: 4e93 jsr %a3@ <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 61998: dffc 0000 000c addal #12,%sp <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 6199e: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 619a2: 6f44 bles 619e8 <== NOT EXECUTED 619a4: 222a 0004 movel %a2@(4),%d1 <== NOT EXECUTED return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 619a8: b2aa 0008 cmpl %a2@(8),%d1 <== NOT EXECUTED 619ac: 6cd4 bges 61982 <== NOT EXECUTED dirp->dd_loc = 0; continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 619ae: 206a 000c moveal %a2@(12),%a0 <== NOT EXECUTED 619b2: d1c1 addal %d1,%a0 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 619b4: 2008 movel %a0,%d0 <== NOT EXECUTED 619b6: 7403 moveq #3,%d2 <== NOT EXECUTED 619b8: c082 andl %d2,%d0 <== NOT EXECUTED 619ba: 662c bnes 619e8 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 619bc: 3028 0008 movew %a0@(8),%d0 <== NOT EXECUTED 619c0: 4282 clrl %d2 <== NOT EXECUTED 619c2: 3400 movew %d0,%d2 <== NOT EXECUTED 619c4: 6722 beqs 619e8 <== NOT EXECUTED 619c6: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 619ca: 5280 addql #1,%d0 <== NOT EXECUTED 619cc: 9081 subl %d1,%d0 <== NOT EXECUTED 619ce: b082 cmpl %d2,%d0 <== NOT EXECUTED 619d0: 6d16 blts 619e8 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 619d2: d282 addl %d2,%d1 <== NOT EXECUTED 619d4: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED if (dp->d_ino == 0) 619d8: 4a90 tstl %a0@ <== NOT EXECUTED 619da: 679a beqs 61976 <== NOT EXECUTED continue; return (dp); } } 619dc: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 619e2: 4e5e unlk %fp <== NOT EXECUTED 619e4: 2008 movel %a0,%d0 <== NOT EXECUTED 619e6: 4e75 rts <== NOT EXECUTED 619e8: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; if (dp->d_ino == 0) 619ee: 91c8 subal %a0,%a0 <== NOT EXECUTED continue; return (dp); } } 619f0: 4e5e unlk %fp <== NOT EXECUTED 619f2: 2008 movel %a0,%d0 <== NOT EXECUTED 619f4: 4e75 rts <== NOT EXECUTED ... 000619f8 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 619f8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 619fc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 619fe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61a00: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 61a04: 6700 00ae beqw 61ab4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 61a08: 42a7 clrl %sp@- <== NOT EXECUTED 61a0a: 260e movel %fp,%d3 <== NOT EXECUTED 61a0c: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED 61a12: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61a14: 42a7 clrl %sp@- <== NOT EXECUTED 61a16: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61a1a: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( result != 0 ) 61a20: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 61a26: 4a80 tstl %d0 <== NOT EXECUTED 61a28: 667a bnes 61aa4 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 61a2a: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 61a2e: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 61a32: 4a88 tstl %a0 <== NOT EXECUTED 61a34: 6752 beqs 61a88 <== 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 ){ 61a36: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61a38: 4e90 jsr %a0@ <== NOT EXECUTED 61a3a: 588f addql #4,%sp <== NOT EXECUTED 61a3c: 7204 moveq #4,%d1 <== NOT EXECUTED 61a3e: b280 cmpl %d0,%d1 <== NOT EXECUTED 61a40: 6600 008e bnew 61ad0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 61a44: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 61a48: 2069 003c moveal %a1@(60),%a0 <== NOT EXECUTED 61a4c: 4a88 tstl %a0 <== NOT EXECUTED 61a4e: 6700 00b2 beqw 61b02 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 61a52: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 61a56: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61a58: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61a5a: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61a5c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 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 ); 61a60: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61a62: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61a68: 4a88 tstl %a0 <== NOT EXECUTED 61a6a: 670e beqs 61a7a <== NOT EXECUTED 61a6c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61a70: 4a88 tstl %a0 <== NOT EXECUTED 61a72: 6706 beqs 61a7a <== NOT EXECUTED 61a74: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61a76: 4e90 jsr %a0@ <== NOT EXECUTED 61a78: 588f addql #4,%sp <== NOT EXECUTED return result; } 61a7a: 2002 movel %d2,%d0 <== NOT EXECUTED 61a7c: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61a80: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61a84: 4e5e unlk %fp <== NOT EXECUTED 61a86: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 61a88: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61a8c: 4a88 tstl %a0 <== NOT EXECUTED 61a8e: 6706 beqs 61a96 <== NOT EXECUTED 61a90: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61a92: 4e90 jsr %a0@ <== NOT EXECUTED 61a94: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61a96: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61a9c: 2040 moveal %d0,%a0 <== NOT EXECUTED 61a9e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61aa4: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61aa6: 2002 movel %d2,%d0 <== NOT EXECUTED 61aa8: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61aac: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61ab0: 4e5e unlk %fp <== NOT EXECUTED 61ab2: 4e75 rts <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 61ab4: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61aba: 74ff moveq #-1,%d2 <== NOT EXECUTED 61abc: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61abe: 2002 movel %d2,%d0 <== NOT EXECUTED 61ac0: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61ac4: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 61ac8: 720e moveq #14,%d1 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61aca: 4e5e unlk %fp <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 61acc: 2081 movel %d1,%a0@ <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61ace: 4e75 rts <== 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 ); 61ad0: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61ad4: 4a88 tstl %a0 <== NOT EXECUTED 61ad6: 670e beqs 61ae6 <== NOT EXECUTED 61ad8: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61adc: 4a88 tstl %a0 <== NOT EXECUTED 61ade: 6706 beqs 61ae6 <== NOT EXECUTED 61ae0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61ae2: 4e90 jsr %a0@ <== NOT EXECUTED 61ae4: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 61ae6: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61aec: 2040 moveal %d0,%a0 <== NOT EXECUTED 61aee: 7016 moveq #22,%d0 <== NOT EXECUTED 61af0: 74ff moveq #-1,%d2 <== NOT EXECUTED 61af2: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61af4: 2002 movel %d2,%d0 <== NOT EXECUTED 61af6: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61afa: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61afe: 4e5e unlk %fp <== NOT EXECUTED 61b00: 4e75 rts <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 61b02: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61b06: 4a88 tstl %a0 <== NOT EXECUTED 61b08: 6706 beqs 61b10 <== NOT EXECUTED 61b0a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61b0c: 4e90 jsr %a0@ <== NOT EXECUTED 61b0e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61b10: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61b16: 74ff moveq #-1,%d2 <== NOT EXECUTED 61b18: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61b1a: 2002 movel %d2,%d0 <== NOT EXECUTED 61b1c: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61b20: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61b24: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 61b26: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 61b2c: 4e75 rts <== NOT EXECUTED ... 00054f0c : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 54f0c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 54f10: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 54f14: 52b9 0005 8660 addql #1,58660 <== NOT EXECUTED 54f1a: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 54f1e: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 54f22: 7003 moveq #3,%d0 <== NOT EXECUTED 54f24: b0b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d0 <== NOT EXECUTED 54f2a: 6766 beqs 54f92 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 54f2c: 4a82 tstl %d2 <== NOT EXECUTED 54f2e: 674a beqs 54f7a <== NOT EXECUTED return malloc( size ); if ( !size ) { 54f30: 4a83 tstl %d3 <== NOT EXECUTED 54f32: 6700 00ca beqw 54ffe <== NOT EXECUTED free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 54f36: 486e fffc pea %fp@(-4) <== NOT EXECUTED 54f3a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 54f3c: 4879 0005 85f8 pea 585f8 <== NOT EXECUTED 54f42: 4eb9 0005 50fc jsr 550fc <_Protected_heap_Get_block_size> <== NOT EXECUTED 54f48: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54f4e: 4a00 tstb %d0 <== NOT EXECUTED 54f50: 6700 00c4 beqw 55016 <== NOT EXECUTED #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 ) ) { 54f54: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54f56: 2f02 movel %d2,%sp@- <== NOT EXECUTED 54f58: 4879 0005 85f8 pea 585f8 <== NOT EXECUTED 54f5e: 4eb9 0005 5138 jsr 55138 <_Protected_heap_Resize_block> <== NOT EXECUTED 54f64: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 54f6a: 4a00 tstb %d0 <== NOT EXECUTED 54f6c: 673a beqs 54fa8 <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 54f6e: 2002 movel %d2,%d0 <== NOT EXECUTED 54f70: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 54f76: 4e5e unlk %fp <== NOT EXECUTED 54f78: 4e75 rts <== NOT EXECUTED /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 54f7a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54f7c: 4eb9 0004 a97c jsr 4a97c <== NOT EXECUTED 54f82: 2400 movel %d0,%d2 <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 54f84: 2002 movel %d2,%d0 <== NOT EXECUTED /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 54f86: 588f addql #4,%sp <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 54f88: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 54f8e: 4e5e unlk %fp <== NOT EXECUTED 54f90: 4e75 rts <== NOT EXECUTED /* * 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) 54f92: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 54f98: 6756 beqs 54ff0 <== NOT EXECUTED } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 54f9a: 4282 clrl %d2 <== NOT EXECUTED } 54f9c: 2002 movel %d2,%d0 <== NOT EXECUTED 54f9e: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 54fa4: 4e5e unlk %fp <== NOT EXECUTED 54fa6: 4e75 rts <== 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 ); 54fa8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 54faa: 4eb9 0004 a97c jsr 4a97c <== NOT EXECUTED MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 54fb0: 53b9 0005 8654 subql #1,58654 <== 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 ); 54fb6: 2800 movel %d0,%d4 <== NOT EXECUTED MSBUMP(malloc_calls, -1); /* subtract off the malloc */ if ( !new_area ) { 54fb8: 588f addql #4,%sp <== NOT EXECUTED 54fba: 67de beqs 54f9a <== NOT EXECUTED return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 54fbc: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 54fc0: 2003 movel %d3,%d0 <== NOT EXECUTED 54fc2: b283 cmpl %d3,%d1 <== NOT EXECUTED 54fc4: 6402 bccs 54fc8 <== NOT EXECUTED 54fc6: 2001 movel %d1,%d0 <== NOT EXECUTED 54fc8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 54fca: 2f02 movel %d2,%sp@- <== NOT EXECUTED 54fcc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 54fce: 4eb9 0004 cdb8 jsr 4cdb8 <== NOT EXECUTED free( ptr ); 54fd4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 54fd6: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED 54fdc: 2404 movel %d4,%d2 <== NOT EXECUTED return new_area; } 54fde: 2002 movel %d2,%d0 <== NOT EXECUTED if ( !new_area ) { return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); 54fe0: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED return new_area; } 54fe6: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 54fec: 4e5e unlk %fp <== NOT EXECUTED 54fee: 4e75 rts <== NOT EXECUTED if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 54ff0: 2039 0005 87f2 movel 587f2 <_ISR_Nest_level>,%d0 <== NOT EXECUTED 54ff6: 6700 ff34 beqw 54f2c <== NOT EXECUTED } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 54ffa: 4282 clrl %d2 <== NOT EXECUTED 54ffc: 609e bras 54f9c <== NOT EXECUTED */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 54ffe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55000: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED 55006: 4282 clrl %d2 <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 55008: 2002 movel %d2,%d0 <== NOT EXECUTED */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 5500a: 588f addql #4,%sp <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 5500c: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 55012: 4e5e unlk %fp <== NOT EXECUTED 55014: 4e75 rts <== NOT EXECUTED free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 55016: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 5501c: 2040 moveal %d0,%a0 <== NOT EXECUTED 5501e: 7016 moveq #22,%d0 <== NOT EXECUTED 55020: 4282 clrl %d2 <== NOT EXECUTED 55022: 2080 movel %d0,%a0@ <== NOT EXECUTED memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 55024: 2002 movel %d2,%d0 <== NOT EXECUTED 55026: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 5502c: 4e5e unlk %fp <== NOT EXECUTED 5502e: 4e75 rts 00061c54 : #include int rmdir( const char *pathname ) { 61c54: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 61c58: 2f03 movel %d3,%sp@- <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 61c5a: 260e movel %fp,%d3 <== NOT EXECUTED 61c5c: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED #include int rmdir( const char *pathname ) { 61c62: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 61c64: 42a7 clrl %sp@- <== NOT EXECUTED 61c66: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61c68: 42a7 clrl %sp@- <== NOT EXECUTED 61c6a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61c6e: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( result != 0 ) 61c74: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 61c7a: 4a80 tstl %d0 <== NOT EXECUTED 61c7c: 6710 beqs 61c8e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); 61c7e: 74ff moveq #-1,%d2 <== NOT EXECUTED return result; } 61c80: 2002 movel %d2,%d0 <== NOT EXECUTED 61c82: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61c86: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61c8a: 4e5e unlk %fp <== NOT EXECUTED 61c8c: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 61c8e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61c90: 4878 0002 pea 2 <== NOT EXECUTED 61c94: 4eb9 0004 5fe0 jsr 45fe0 <== NOT EXECUTED if (result != 0) { 61c9a: 508f addql #8,%sp <== NOT EXECUTED 61c9c: 4a80 tstl %d0 <== NOT EXECUTED 61c9e: 6600 0088 bnew 61d28 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 61ca2: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 61ca6: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 61caa: 4a88 tstl %a0 <== NOT EXECUTED 61cac: 6700 00a4 beqw 61d52 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 61cb0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61cb2: 4e90 jsr %a0@ <== NOT EXECUTED 61cb4: 588f addql #4,%sp <== NOT EXECUTED 61cb6: 7201 moveq #1,%d1 <== NOT EXECUTED 61cb8: b280 cmpl %d0,%d1 <== NOT EXECUTED 61cba: 663a bnes 61cf6 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 61cbc: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61cc0: 2068 0034 moveal %a0@(52),%a0 <== NOT EXECUTED 61cc4: 4a88 tstl %a0 <== NOT EXECUTED 61cc6: 6700 00b6 beqw 61d7e <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 61cca: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61ccc: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61cce: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 61cd2: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61cd4: 588f addql #4,%sp <== NOT EXECUTED 61cd6: 4a88 tstl %a0 <== NOT EXECUTED 61cd8: 67a6 beqs 61c80 <== NOT EXECUTED 61cda: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61cde: 4a88 tstl %a0 <== NOT EXECUTED 61ce0: 679e beqs 61c80 <== NOT EXECUTED 61ce2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61ce4: 4e90 jsr %a0@ <== NOT EXECUTED return result; } 61ce6: 2002 movel %d2,%d0 <== NOT EXECUTED 61ce8: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61cec: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); 61cf0: 588f addql #4,%sp <== NOT EXECUTED return result; } 61cf2: 4e5e unlk %fp <== NOT EXECUTED 61cf4: 4e75 rts <== NOT EXECUTED 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 ); 61cf6: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61cfa: 4a88 tstl %a0 <== NOT EXECUTED 61cfc: 670e beqs 61d0c <== NOT EXECUTED 61cfe: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61d02: 4a88 tstl %a0 <== NOT EXECUTED 61d04: 6706 beqs 61d0c <== NOT EXECUTED 61d06: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61d08: 4e90 jsr %a0@ <== NOT EXECUTED 61d0a: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 61d0c: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61d12: 2040 moveal %d0,%a0 <== NOT EXECUTED 61d14: 7014 moveq #20,%d0 <== NOT EXECUTED 61d16: 74ff moveq #-1,%d2 <== NOT EXECUTED 61d18: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 61d1a: 2002 movel %d2,%d0 <== NOT EXECUTED 61d1c: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61d20: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61d24: 4e5e unlk %fp <== NOT EXECUTED 61d26: 4e75 rts <== NOT EXECUTED if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0) { rtems_filesystem_freenode( &loc ); 61d28: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61d2c: 4a88 tstl %a0 <== NOT EXECUTED 61d2e: 6700 ff4e beqw 61c7e <== NOT EXECUTED 61d32: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61d36: 4a88 tstl %a0 <== NOT EXECUTED 61d38: 6700 ff44 beqw 61c7e <== NOT EXECUTED 61d3c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61d3e: 4e90 jsr %a0@ <== NOT EXECUTED 61d40: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 61d42: 2002 movel %d2,%d0 <== NOT EXECUTED 61d44: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61d48: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0) { rtems_filesystem_freenode( &loc ); 61d4c: 588f addql #4,%sp <== NOT EXECUTED result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 61d4e: 4e5e unlk %fp <== NOT EXECUTED 61d50: 4e75 rts <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 61d52: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61d56: 4a88 tstl %a0 <== NOT EXECUTED 61d58: 6706 beqs 61d60 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 61d5a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61d5c: 4e90 jsr %a0@ <== NOT EXECUTED 61d5e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61d60: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61d66: 74ff moveq #-1,%d2 <== NOT EXECUTED 61d68: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 61d6a: 2002 movel %d2,%d0 <== NOT EXECUTED 61d6c: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 61d70: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 61d74: 4e5e unlk %fp <== NOT EXECUTED * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 61d76: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 61d7c: 4e75 rts <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 61d7e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 61d82: 4a88 tstl %a0 <== NOT EXECUTED 61d84: 67da beqs 61d60 <== NOT EXECUTED 61d86: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61d8a: 4a88 tstl %a0 <== NOT EXECUTED 61d8c: 67d2 beqs 61d60 <== NOT EXECUTED 61d8e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 61d90: 4e90 jsr %a0@ <== NOT EXECUTED 61d92: 588f addql #4,%sp <== NOT EXECUTED 61d94: 60ca bras 61d60 <== NOT EXECUTED ... 0004bfcc : uint32_t rtems_assoc_local_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 4bfcc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value); 4bfd0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4bfd4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4bfd8: 4eb9 0004 c004 jsr 4c004 <== NOT EXECUTED if (nap) 4bfde: 508f addql #8,%sp <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value); 4bfe0: 2040 moveal %d0,%a0 <== NOT EXECUTED if (nap) 4bfe2: 4a80 tstl %d0 <== NOT EXECUTED 4bfe4: 6708 beqs 4bfee <== NOT EXECUTED return nap->local_value; 4bfe6: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED return 0; } 4bfea: 4e5e unlk %fp <== NOT EXECUTED 4bfec: 4e75 rts <== NOT EXECUTED 4bfee: 4e5e unlk %fp <== NOT EXECUTED ) { const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value); if (nap) 4bff0: 4280 clrl %d0 <== NOT EXECUTED return nap->local_value; return 0; } 4bff2: 4e75 rts 0004bf80 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 4bf80: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4bf84: 48d7 047c moveml %d2-%d6/%a2,%sp@ <== NOT EXECUTED 4bf88: 2c2e 0008 movel %fp@(8),%d6 <== NOT EXECUTED 4bf8c: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 4bf90: 7601 moveq #1,%d3 <== NOT EXECUTED 4bf92: 4284 clrl %d4 <== NOT EXECUTED 4bf94: 4282 clrl %d2 <== NOT EXECUTED uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 4bf96: 45f9 0004 bfcc lea 4bfcc ,%a2 <== NOT EXECUTED { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) 4bf9c: 2003 movel %d3,%d0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4bf9e: 5282 addql #1,%d2 <== NOT EXECUTED if (b & remote_value) 4bfa0: c085 andl %d5,%d0 <== NOT EXECUTED 4bfa2: 6614 bnes 4bfb8 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4bfa4: d683 addl %d3,%d3 <== NOT EXECUTED 4bfa6: 7020 moveq #32,%d0 <== NOT EXECUTED 4bfa8: b082 cmpl %d2,%d0 <== NOT EXECUTED 4bfaa: 66f0 bnes 4bf9c <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 4bfac: 2004 movel %d4,%d0 <== NOT EXECUTED 4bfae: 4cee 047c ffe8 moveml %fp@(-24),%d2-%d6/%a2 <== NOT EXECUTED 4bfb4: 4e5e unlk %fp <== NOT EXECUTED 4bfb6: 4e75 rts <== NOT EXECUTED uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 4bfb8: 2f03 movel %d3,%sp@- <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4bfba: d683 addl %d3,%d3 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 4bfbc: 2f06 movel %d6,%sp@- <== NOT EXECUTED 4bfbe: 4e92 jsr %a2@ <== NOT EXECUTED 4bfc0: 8880 orl %d0,%d4 <== NOT EXECUTED 4bfc2: 508f addql #8,%sp <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 4bfc4: 7020 moveq #32,%d0 <== NOT EXECUTED 4bfc6: b082 cmpl %d2,%d0 <== NOT EXECUTED 4bfc8: 66d2 bnes 4bf9c <== NOT EXECUTED 4bfca: 60e0 bras 4bfac <== NOT EXECUTED 0004bff4 : const char * rtems_assoc_name_bad( uint32_t bad_value ) { 4bff4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 4bff8: 4e5e unlk %fp <== NOT EXECUTED 4bffa: 203c 0005 7100 movel #356608,%d0 <== NOT EXECUTED 4c000: 4e75 rts <== NOT EXECUTED ... 0004a118 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4a118: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a11c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a11e: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4a122: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a124: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4a128: 4eb9 0004 a150 jsr 4a150 <== NOT EXECUTED if (nap) 4a12e: 508f addql #8,%sp <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4a130: 2040 moveal %d0,%a0 <== NOT EXECUTED if (nap) 4a132: 4a80 tstl %d0 <== NOT EXECUTED 4a134: 670a beqs 4a140 <== NOT EXECUTED return nap->name; return rtems_assoc_name_bad(local_value); } 4a136: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a13a: 2010 movel %a0@,%d0 <== NOT EXECUTED 4a13c: 4e5e unlk %fp <== NOT EXECUTED 4a13e: 4e75 rts <== NOT EXECUTED nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 4a140: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4a144: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a148: 4e5e unlk %fp <== NOT EXECUTED nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 4a14a: 4ef9 0004 bff4 jmp 4bff4 <== NOT EXECUTED 0004a150 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4a150: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a154: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a156: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4a15a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a15c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4a160: 2012 movel %a2@,%d0 <== NOT EXECUTED 4a162: 6744 beqs 4a1a8 <== NOT EXECUTED 4a164: 4879 0005 5ec8 pea 55ec8 <== NOT EXECUTED 4a16a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a16c: 4eb9 0004 da58 jsr 4da58 <== NOT EXECUTED 4a172: 508f addql #8,%sp <== NOT EXECUTED 4a174: 4a80 tstl %d0 <== NOT EXECUTED 4a176: 662c bnes 4a1a4 <== NOT EXECUTED default_ap = ap++; 4a178: 41ea 000c lea %a2@(12),%a0 <== NOT EXECUTED for ( ; ap->name; ap++) 4a17c: 4a90 tstl %a0@ <== NOT EXECUTED 4a17e: 6716 beqs 4a196 <== NOT EXECUTED 4a180: 200a movel %a2,%d0 <== NOT EXECUTED 4a182: 2448 moveal %a0,%a2 <== NOT EXECUTED if (ap->local_value == local_value) 4a184: b4aa 0004 cmpl %a2@(4),%d2 <== NOT EXECUTED 4a188: 670c beqs 4a196 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 4a18a: d5fc 0000 000c addal #12,%a2 <== NOT EXECUTED 4a190: 4a92 tstl %a2@ <== NOT EXECUTED 4a192: 66f0 bnes 4a184 <== NOT EXECUTED 4a194: 2440 moveal %d0,%a2 <== NOT EXECUTED if (ap->local_value == local_value) return ap; return default_ap; } 4a196: 200a movel %a2,%d0 <== NOT EXECUTED 4a198: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a19c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a1a0: 4e5e unlk %fp <== NOT EXECUTED 4a1a2: 4e75 rts <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4a1a4: 4280 clrl %d0 <== NOT EXECUTED 4a1a6: 60dc bras 4a184 <== NOT EXECUTED 4a1a8: 95ca subal %a2,%a2 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } 4a1aa: 200a movel %a2,%d0 <== NOT EXECUTED 4a1ac: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a1b0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a1b4: 4e5e unlk %fp <== NOT EXECUTED 4a1b6: 4e75 rts 0004c004 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 4c004: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c008: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c00a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4c00e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c010: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4c014: 2012 movel %a2@,%d0 <== NOT EXECUTED 4c016: 6744 beqs 4c05c <== NOT EXECUTED 4c018: 4879 0005 5ec8 pea 55ec8 <== NOT EXECUTED 4c01e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c020: 4eb9 0004 da58 jsr 4da58 <== NOT EXECUTED 4c026: 508f addql #8,%sp <== NOT EXECUTED 4c028: 4a80 tstl %d0 <== NOT EXECUTED 4c02a: 662c bnes 4c058 <== NOT EXECUTED default_ap = ap++; 4c02c: 41ea 000c lea %a2@(12),%a0 <== NOT EXECUTED for ( ; ap->name; ap++) 4c030: 4a90 tstl %a0@ <== NOT EXECUTED 4c032: 6716 beqs 4c04a <== NOT EXECUTED 4c034: 200a movel %a2,%d0 <== NOT EXECUTED 4c036: 2448 moveal %a0,%a2 <== NOT EXECUTED if (ap->remote_value == remote_value) 4c038: b4aa 0008 cmpl %a2@(8),%d2 <== NOT EXECUTED 4c03c: 670c beqs 4c04a <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 4c03e: d5fc 0000 000c addal #12,%a2 <== NOT EXECUTED 4c044: 4a92 tstl %a2@ <== NOT EXECUTED 4c046: 66f0 bnes 4c038 <== NOT EXECUTED 4c048: 2440 moveal %d0,%a2 <== NOT EXECUTED if (ap->remote_value == remote_value) return ap; return default_ap; } 4c04a: 200a movel %a2,%d0 <== NOT EXECUTED 4c04c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4c050: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c054: 4e5e unlk %fp <== NOT EXECUTED 4c056: 4e75 rts <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 4c058: 4280 clrl %d0 <== NOT EXECUTED 4c05a: 60dc bras 4c038 <== NOT EXECUTED 4c05c: 95ca subal %a2,%a2 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } 4c05e: 200a movel %a2,%d0 <== NOT EXECUTED 4c060: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4c064: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4c068: 4e5e unlk %fp <== NOT EXECUTED 4c06a: 4e75 rts 0004c06c : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4c06c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4c070: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4c074: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4c078: 4eb9 0004 a150 jsr 4a150 <== NOT EXECUTED if (nap) 4c07e: 508f addql #8,%sp <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4c080: 2040 moveal %d0,%a0 <== NOT EXECUTED if (nap) 4c082: 4a80 tstl %d0 <== NOT EXECUTED 4c084: 6708 beqs 4c08e <== NOT EXECUTED return nap->remote_value; 4c086: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED return 0; } 4c08a: 4e5e unlk %fp <== NOT EXECUTED 4c08c: 4e75 rts <== NOT EXECUTED 4c08e: 4e5e unlk %fp <== NOT EXECUTED ) { const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) 4c090: 4280 clrl %d0 <== NOT EXECUTED return nap->remote_value; return 0; } 4c092: 4e75 rts 00045fb0 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 45fb0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 45fb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 45fb6: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 45fba: 6700 0096 beqw 46052 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 45fbe: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 45fc2: 6700 00e4 beqw 460a8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 45fc6: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 45fca: 0800 0004 btst #4,%d0 <== NOT EXECUTED 45fce: 6700 008c beqw 4605c <== NOT EXECUTED the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) 45fd2: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 45fd6: 6700 00c6 beqw 4609e <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 45fda: 2039 0005 ab7c movel 5ab7c <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; 45fe0: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 45fe4: 5280 addql #1,%d0 <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 45fe6: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; 45fea: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED 45fee: 23c0 0005 ab7c movel %d0,5ab7c <_Thread_Dispatch_disable_level> <== NOT EXECUTED * 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 ); 45ff4: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 45ffa: 4eb9 0004 7f80 jsr 47f80 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 46000: 588f addql #4,%sp <== NOT EXECUTED 46002: 2440 moveal %d0,%a2 <== NOT EXECUTED 46004: 4a80 tstl %d0 <== NOT EXECUTED 46006: 6700 0086 beqw 4608e <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 4600a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 4600e: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 46012: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 46016: 486a 0014 pea %a2@(20) <== NOT EXECUTED 4601a: 4eb9 0004 7678 jsr 47678 <_CORE_barrier_Initialize> <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 46020: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 46024: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 46028: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4602c: 4280 clrl %d0 <== NOT EXECUTED 4602e: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 46032: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED 46036: 2079 0005 aa8e moveal 5aa8e <_Barrier_Information+0x1a>,%a0 <== NOT EXECUTED 4603c: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED _Thread_Enable_dispatch(); 46040: 4eb9 0004 8d30 jsr 48d30 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46046: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED (Objects_Name) name ); *id = the_barrier->Object.id; _Thread_Enable_dispatch(); 4604a: 508f addql #8,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4604c: 4e5e unlk %fp <== NOT EXECUTED (Objects_Name) name ); *id = the_barrier->Object.id; _Thread_Enable_dispatch(); 4604e: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46050: 4e75 rts <== NOT EXECUTED 46052: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 46056: 4e5e unlk %fp <== NOT EXECUTED ) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 46058: 7003 moveq #3,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4605a: 4e75 rts <== NOT EXECUTED 4605c: 2039 0005 ab7c movel 5ab7c <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 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; 46062: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 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; 46066: 7201 moveq #1,%d1 <== NOT EXECUTED 46068: 5280 addql #1,%d0 <== NOT EXECUTED 4606a: 2d41 fff8 movel %d1,%fp@(-8) <== NOT EXECUTED the_attributes.maximum_count = maximum_waiters; 4606e: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED 46072: 23c0 0005 ab7c movel %d0,5ab7c <_Thread_Dispatch_disable_level> <== NOT EXECUTED 46078: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 4607e: 4eb9 0004 7f80 jsr 47f80 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 46084: 588f addql #4,%sp <== NOT EXECUTED 46086: 2440 moveal %d0,%a2 <== NOT EXECUTED 46088: 4a80 tstl %d0 <== NOT EXECUTED 4608a: 6600 ff7e bnew 4600a <== NOT EXECUTED _Thread_Enable_dispatch(); 4608e: 4eb9 0004 8d30 jsr 48d30 <_Thread_Enable_dispatch> <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46094: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 46098: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); 4609a: 7005 moveq #5,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4609c: 4e75 rts <== NOT EXECUTED 4609e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 460a2: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) 460a4: 700a moveq #10,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 460a6: 4e75 rts <== NOT EXECUTED 460a8: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 460ac: 4e5e unlk %fp <== NOT EXECUTED CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 460ae: 7009 moveq #9,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 460b0: 4e75 rts <== NOT EXECUTED ... 000460b4 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 460b4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 460b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 460ba: 486e fffc pea %fp@(-4) <== NOT EXECUTED 460be: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 460c2: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 460c8: 4eb9 0004 84ac jsr 484ac <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 460ce: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 460d4: 2440 moveal %d0,%a2 <== NOT EXECUTED 460d6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 460da: 6642 bnes 4611e <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Flush( 460dc: 4878 0002 pea 2 <== NOT EXECUTED 460e0: 42a7 clrl %sp@- <== NOT EXECUTED 460e2: 486a 0014 pea %a2@(20) <== NOT EXECUTED 460e6: 4eb9 0004 9514 jsr 49514 <_Thread_queue_Flush> <== NOT EXECUTED &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); 460ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 460ee: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 460f4: 4eb9 0004 801c jsr 4801c <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 460fa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 460fc: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 46102: 4eb9 0004 8340 jsr 48340 <_Objects_Free> <== NOT EXECUTED _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 46108: 4eb9 0004 8d30 jsr 48d30 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4610e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Objects_Close( &_Barrier_Information, &the_barrier->Object ); _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 46112: dffc 0000 001c addal #28,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46118: 4e5e unlk %fp <== NOT EXECUTED _Objects_Close( &_Barrier_Information, &the_barrier->Object ); _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 4611a: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4611c: 4e75 rts <== NOT EXECUTED 4611e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 46122: 4e5e unlk %fp <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 46124: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46126: 4e75 rts 00046128 : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { 46128: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 4612c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 46130: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 46136: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4613a: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 46140: 4eb9 0004 8644 jsr 48644 <_Objects_Name_to_id_u32> <== NOT EXECUTED 46146: 41f9 0005 800c lea 5800c <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } 4614c: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 46150: 4e5e unlk %fp <== NOT EXECUTED 46152: 4e75 rts 00046154 : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { 46154: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 46158: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4615a: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) 4615e: 4a8a tstl %a2 <== NOT EXECUTED 46160: 6754 beqs 461b6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 46162: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46166: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4616a: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 46170: 4eb9 0004 84ac jsr 484ac <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 46176: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4617c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4617e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46182: 6628 bnes 461ac <== NOT EXECUTED case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); 46184: 42a7 clrl %sp@- <== NOT EXECUTED 46186: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4618a: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4618e: 4eb9 0004 76b4 jsr 476b4 <_CORE_barrier_Release> <== NOT EXECUTED 46194: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 46196: 4eb9 0004 8d30 jsr 48d30 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4619c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED the_barrier = _Barrier_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); _Thread_Enable_dispatch(); 461a0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 461a6: 4e5e unlk %fp <== NOT EXECUTED the_barrier = _Barrier_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); _Thread_Enable_dispatch(); 461a8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 461aa: 4e75 rts <== NOT EXECUTED 461ac: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 461b0: 4e5e unlk %fp <== NOT EXECUTED if ( !released ) return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 461b2: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 461b4: 4e75 rts <== NOT EXECUTED 461b6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 461ba: 4e5e unlk %fp <== NOT EXECUTED ) { Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) 461bc: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 461be: 4e75 rts 000461c0 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 461c0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 461c4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 461c6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 461ca: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 461ce: 2f02 movel %d2,%sp@- <== NOT EXECUTED 461d0: 4879 0005 aa74 pea 5aa74 <_Barrier_Information> <== NOT EXECUTED 461d6: 4eb9 0004 84ac jsr 484ac <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 461dc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 461e2: 2040 moveal %d0,%a0 <== NOT EXECUTED 461e4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 461e8: 663a bnes 46224 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Wait( 461ea: 42a7 clrl %sp@- <== NOT EXECUTED 461ec: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 461f0: 4878 0001 pea 1 <== NOT EXECUTED 461f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 461f6: 4868 0014 pea %a0@(20) <== NOT EXECUTED 461fa: 4eb9 0004 76f0 jsr 476f0 <_CORE_barrier_Wait> <== NOT EXECUTED id, TRUE, timeout, NULL ); _Thread_Enable_dispatch(); 46200: 4eb9 0004 8d30 jsr 48d30 <_Thread_Enable_dispatch> <== NOT EXECUTED return _Barrier_Translate_core_barrier_return_code( 46206: 2079 0005 ac3a moveal 5ac3a <_Thread_Executing>,%a0 <== NOT EXECUTED 4620c: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 46210: 4eb9 0004 bdc0 jsr 4bdc0 <_Barrier_Translate_core_barrier_return_code> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46216: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED TRUE, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( 4621a: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46220: 4e5e unlk %fp <== NOT EXECUTED 46222: 4e75 rts <== NOT EXECUTED 46224: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46228: 4e5e unlk %fp <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4622a: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4622c: 4e75 rts <== NOT EXECUTED ... 000470cc : uint32_t api, uint32_t class, uint32_t node, uint32_t index ) { 470cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 470d0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 470d2: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 470d6: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 470da: 761b moveq #27,%d3 <== NOT EXECUTED 470dc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 470de: e7a8 lsll %d3,%d0 <== NOT EXECUTED 470e0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 470e4: 163c 0018 moveb #24,%d3 <== NOT EXECUTED 470e8: e7a9 lsll %d3,%d1 <== NOT EXECUTED 470ea: 8081 orl %d1,%d0 <== NOT EXECUTED 470ec: 80ae 0014 orl %fp@(20),%d0 <== NOT EXECUTED 470f0: 4842 swap %d2 <== NOT EXECUTED 470f2: 4242 clrw %d2 <== NOT EXECUTED return _Objects_Build_id( api, class, node, index ); } 470f4: 8082 orl %d2,%d0 <== NOT EXECUTED 470f6: 241f movel %sp@+,%d2 <== NOT EXECUTED 470f8: 261f movel %sp@+,%d3 <== NOT EXECUTED 470fa: 4e5e unlk %fp <== NOT EXECUTED 470fc: 4e75 rts <== NOT EXECUTED ... 00047100 : char C1, char C2, char C3, char C4 ) { 47100: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47104: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47106: 142e 000b moveb %fp@(11),%d2 <== NOT EXECUTED 4710a: 7218 moveq #24,%d1 <== NOT EXECUTED 4710c: 102e 000f moveb %fp@(15),%d0 <== NOT EXECUTED 47110: 49c2 extbl %d2 <== NOT EXECUTED 47112: e3aa lsll %d1,%d2 <== NOT EXECUTED 47114: 49c0 extbl %d0 <== NOT EXECUTED 47116: 122e 0013 moveb %fp@(19),%d1 <== NOT EXECUTED 4711a: 4840 swap %d0 <== NOT EXECUTED 4711c: 4240 clrw %d0 <== NOT EXECUTED 4711e: 8082 orl %d2,%d0 <== NOT EXECUTED 47120: 49c1 extbl %d1 <== NOT EXECUTED 47122: 142e 0017 moveb %fp@(23),%d2 <== NOT EXECUTED 47126: e189 lsll #8,%d1 <== NOT EXECUTED 47128: 49c2 extbl %d2 <== NOT EXECUTED 4712a: 8081 orl %d1,%d0 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); } 4712c: 8082 orl %d2,%d0 <== NOT EXECUTED 4712e: 241f movel %sp@+,%d2 <== NOT EXECUTED 47130: 4e5e unlk %fp <== NOT EXECUTED 47132: 4e75 rts 00045274 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 45274: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45278: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4527a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4527e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED if ( !time_buffer ) 45282: 4a8a tstl %a2 <== NOT EXECUTED 45284: 6778 beqs 452fe <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; switch ( option ) { 45286: 7204 moveq #4,%d1 <== NOT EXECUTED 45288: b280 cmpl %d0,%d1 <== NOT EXECUTED 4528a: 640a bccs 45296 <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 4528c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 45290: 4e5e unlk %fp <== NOT EXECUTED ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; switch ( option ) { 45292: 700a moveq #10,%d0 <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 45294: 4e75 rts <== NOT EXECUTED ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; switch ( option ) { 45296: 303b 0a08 movew %pc@(452a0 ,%d0:l:2),%d0 <== NOT EXECUTED 4529a: 48c0 extl %d0 <== NOT EXECUTED 4529c: 4efb 0802 jmp %pc@(452a0 ,%d0:l) <== NOT EXECUTED 452a0: 004e 0116 <== NOT EXECUTED 452a2: 003e 076 <== NOT EXECUTED 452a4: 002c 054 <== NOT EXECUTED 452a6: 001a 032 <== NOT EXECUTED 452a8: 000a 012 <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 452aa: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452ae: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 452b2: 4e5e unlk %fp <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 452b4: 4ef9 0004 5424 jmp 45424 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TICKS_PER_SECOND: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 452ba: 4eb9 0004 5334 jsr 45334 <== NOT EXECUTED 452c0: 2480 movel %d0,%a2@ <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452c2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 452c6: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TICKS_PER_SECOND: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 452c8: 4280 clrl %d0 <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452ca: 4e75 rts <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 452cc: 4eb9 0004 534c jsr 4534c <== NOT EXECUTED 452d2: 2480 movel %d0,%a2@ <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452d4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 452d8: 4e5e unlk %fp <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 452da: 4280 clrl %d0 <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452dc: 4e75 rts <== NOT EXECUTED switch ( option ) { case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 452de: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452e2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 452e6: 4e5e unlk %fp <== NOT EXECUTED switch ( option ) { case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 452e8: 4ef9 0004 5308 jmp 45308 <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; switch ( option ) { case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 452ee: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452f2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 452f6: 4e5e unlk %fp <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; switch ( option ) { case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 452f8: 4ef9 0004 535c jmp 4535c <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 452fe: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 45302: 4e5e unlk %fp <== NOT EXECUTED rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) 45304: 7009 moveq #9,%d0 <== NOT EXECUTED break; } return RTEMS_INVALID_NUMBER; } 45306: 4e75 rts 00045308 : #include rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { 45308: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4530c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( !the_interval ) 45310: 4a88 tstl %a0 <== NOT EXECUTED 45312: 671a beqs 4532e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 45314: 4a39 0005 8768 tstb 58768 <_TOD_Is_set> <== NOT EXECUTED 4531a: 670c beqs 45328 <== NOT EXECUTED return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch; 4531c: 20b9 0005 87e6 movel 587e6 <_TOD_Now>,%a0@ <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45322: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch; 45324: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45326: 4e75 rts <== NOT EXECUTED 45328: 4e5e unlk %fp <== NOT EXECUTED ) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 4532a: 700b moveq #11,%d0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch; return RTEMS_SUCCESSFUL; } 4532c: 4e75 rts <== NOT EXECUTED 4532e: 4e5e unlk %fp <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) 45330: 7009 moveq #9,%d0 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch; return RTEMS_SUCCESSFUL; } 45332: 4e75 rts 00045334 : #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { 45334: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick; } 45338: 41f9 0005 88e2 lea 588e2 <_TOD_Microseconds_per_tick>,%a0 <== NOT EXECUTED 4533e: 4e5e unlk %fp <== NOT EXECUTED 45340: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED 45346: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED 4534a: 4e75 rts 0004534c : #include #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { 4534c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Watchdog_Ticks_since_boot; 45350: 2039 0005 889c movel 5889c <_Watchdog_Ticks_since_boot>,%d0 <== NOT EXECUTED } 45356: 4e5e unlk %fp <== NOT EXECUTED 45358: 4e75 rts <== NOT EXECUTED ... 0004535c : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { 4535c: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 45360: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45362: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 45366: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) 45368: 4a8a tstl %a2 <== NOT EXECUTED 4536a: 6700 00aa beqw 45416 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 4536e: 4a39 0005 8768 tstb 58768 <_TOD_Is_set> <== NOT EXECUTED 45374: 660e bnes 45384 <== NOT EXECUTED tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick; return RTEMS_SUCCESSFUL; } 45376: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED 4537a: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 4537e: 4e5e unlk %fp <== NOT EXECUTED struct timeval now; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 45380: 700b moveq #11,%d0 <== NOT EXECUTED tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick; return RTEMS_SUCCESSFUL; } 45382: 4e75 rts <== NOT EXECUTED ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 45384: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4538a: 40c2 movew %sr,%d2 <== NOT EXECUTED 4538c: 8082 orl %d2,%d0 <== NOT EXECUTED 4538e: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 45390: 486e fff0 pea %fp@(-16) <== NOT EXECUTED 45394: 4eb9 0004 6b34 jsr 46b34 <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 4539a: 46c2 movew %d2,%sr <== NOT EXECUTED /* Obtain the current time */ _TOD_Get_timeval( &now ); /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); 4539c: 486e ffcc pea %fp@(-52) <== NOT EXECUTED time->tv_sec = now.tv_sec; time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 453a0: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 453a4: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED 453aa: 4c42 1001 remul %d2,%d1,%d1 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 453ae: 2d6e fff0 fff8 movel %fp@(-16),%fp@(-8) <== NOT EXECUTED time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 453b4: 2d41 fffc movel %d1,%fp@(-4) <== NOT EXECUTED 453b8: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 453bc: 4eb9 0004 cd9c jsr 4cd9c <== NOT EXECUTED 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 / _TOD_Microseconds_per_tick; 453c2: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 453c6: 41f9 0005 88e2 lea 588e2 <_TOD_Microseconds_per_tick>,%a0 <== NOT EXECUTED 453cc: 4c50 1001 remul %a0@,%d1,%d1 <== NOT EXECUTED 453d0: 2541 0018 movel %d1,%a2@(24) <== NOT EXECUTED /* 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; 453d4: 222e ffe0 movel %fp@(-32),%d1 <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; 453d8: 242e ffdc movel %fp@(-36),%d2 <== NOT EXECUTED tmbuf->day = time.tm_mday; 453dc: 256e ffd8 0008 movel %fp@(-40),%a2@(8) <== NOT EXECUTED /* 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; 453e2: 5282 addql #1,%d2 <== NOT EXECUTED tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; 453e4: 256e ffd4 000c movel %fp@(-44),%a2@(12) <== NOT EXECUTED /* 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; 453ea: 0681 0000 076c addil #1900,%d1 <== NOT EXECUTED 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 / _TOD_Microseconds_per_tick; 453f0: 4280 clrl %d0 <== NOT EXECUTED /* 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; 453f2: 2542 0004 movel %d2,%a2@(4) <== NOT EXECUTED tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick; return RTEMS_SUCCESSFUL; } 453f6: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED /* 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; 453fa: 2481 movel %d1,%a2@ <== NOT EXECUTED 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 / _TOD_Microseconds_per_tick; 453fc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; 45402: 256e ffd0 0010 movel %fp@(-48),%a2@(16) <== NOT EXECUTED tmbuf->second = time.tm_sec; 45408: 256e ffcc 0014 movel %fp@(-52),%a2@(20) <== NOT EXECUTED tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick; return RTEMS_SUCCESSFUL; } 4540e: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 45412: 4e5e unlk %fp <== NOT EXECUTED 45414: 4e75 rts <== NOT EXECUTED 45416: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED 4541a: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 4541e: 4e5e unlk %fp <== NOT EXECUTED { rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) 45420: 7009 moveq #9,%d0 <== NOT EXECUTED tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick; return RTEMS_SUCCESSFUL; } 45422: 4e75 rts 00045424 : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { 45424: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 45428: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4542a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4542e: 2f02 movel %d2,%sp@- <== NOT EXECUTED if ( !time ) 45430: 4a8a tstl %a2 <== NOT EXECUTED 45432: 6754 beqs 45488 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 45434: 4a39 0005 8768 tstb 58768 <_TOD_Is_set> <== NOT EXECUTED 4543a: 660e bnes 4544a <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 4543c: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 45440: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 45444: 4e5e unlk %fp <== NOT EXECUTED ) { if ( !time ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 45446: 700b moveq #11,%d0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 45448: 4e75 rts <== NOT EXECUTED ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 4544a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 45450: 40c2 movew %sr,%d2 <== NOT EXECUTED 45452: 8082 orl %d2,%d0 <== NOT EXECUTED 45454: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 45456: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4545a: 4eb9 0004 6b34 jsr 46b34 <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 45460: 46c2 movew %d2,%sr <== NOT EXECUTED time->tv_sec = now.tv_sec; time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 45462: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 45466: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED 4546c: 4c42 1001 remul %d2,%d1,%d1 <== NOT EXECUTED 45470: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED 45474: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 45478: 24ae fff8 movel %fp@(-8),%a2@ <== NOT EXECUTED 4547c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 45480: 588f addql #4,%sp <== NOT EXECUTED 45482: 4e5e unlk %fp <== NOT EXECUTED 45484: 4280 clrl %d0 <== NOT EXECUTED 45486: 4e75 rts <== NOT EXECUTED 45488: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 4548c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 45490: 4e5e unlk %fp <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) 45492: 7009 moveq #9,%d0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 45494: 4e75 rts <== NOT EXECUTED ... 00045674 : * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { 45674: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45678: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if ( !uptime ) 4567c: 6710 beqs 4568e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime( uptime ); 4567e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45680: 4eb9 0004 6f94 jsr 46f94 <_TOD_Get_uptime> <== NOT EXECUTED 45686: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45688: 4e5e unlk %fp <== NOT EXECUTED ) { if ( !uptime ) return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime( uptime ); 4568a: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4568c: 4e75 rts <== NOT EXECUTED 4568e: 4e5e unlk %fp <== NOT EXECUTED */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) 45690: 103c 0009 moveb #9,%d0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime( uptime ); return RTEMS_SUCCESSFUL; } 45694: 4e75 rts <== NOT EXECUTED ... 00046334 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { 46334: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 46338: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 4633c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) 46340: 4a8a tstl %a2 <== NOT EXECUTED 46342: 6772 beqs 463b6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { 46344: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46346: 4eb9 0004 6538 jsr 46538 <_TOD_Validate> <== NOT EXECUTED 4634c: 588f addql #4,%sp <== NOT EXECUTED 4634e: 4a00 tstb %d0 <== NOT EXECUTED 46350: 660c bnes 4635e <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 46352: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 46358: 4e5e unlk %fp <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { 4635a: 7014 moveq #20,%d0 <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 4635c: 4e75 rts <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 4635e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46360: 4eb9 0004 6404 jsr 46404 <_TOD_To_seconds> <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * 46366: 242a 0018 movel %a2@(24),%d2 <== NOT EXECUTED 4636a: 41f9 0006 2f0a lea 62f0a <_TOD_Microseconds_per_tick>,%a0 <== NOT EXECUTED 46370: 4c10 2800 mulsl %a0@,%d2 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 46374: 2079 0006 2d7c moveal 62d7c <_Thread_Dispatch_disable_level>,%a0 <== NOT EXECUTED 4637a: 2602 movel %d2,%d3 <== NOT EXECUTED 4637c: 2202 movel %d2,%d1 <== NOT EXECUTED 4637e: e58b lsll #2,%d3 <== NOT EXECUTED 46380: ef89 lsll #7,%d1 <== NOT EXECUTED 46382: 9283 subl %d3,%d1 <== NOT EXECUTED 46384: d282 addl %d2,%d1 <== NOT EXECUTED 46386: 5288 addql #1,%a0 <== NOT EXECUTED 46388: e789 lsll #3,%d1 <== NOT EXECUTED 4638a: 2d41 fffc movel %d1,%fp@(-4) <== NOT EXECUTED 4638e: 23c8 0006 2d7c movel %a0,62d7c <_Thread_Dispatch_disable_level> <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 46394: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * (_TOD_Microseconds_per_tick * TOD_NANOSECONDS_PER_MICROSECOND); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); 46398: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4639c: 4eb9 0004 7f24 jsr 47f24 <_TOD_Set> <== NOT EXECUTED _Thread_Enable_dispatch(); 463a2: 4eb9 0004 9194 jsr 49194 <_Thread_Enable_dispatch> <== NOT EXECUTED 463a8: 508f addql #8,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 463aa: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 463b0: 4e5e unlk %fp <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * (_TOD_Microseconds_per_tick * TOD_NANOSECONDS_PER_MICROSECOND); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); _Thread_Enable_dispatch(); 463b2: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 463b4: 4e75 rts <== NOT EXECUTED 463b6: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 463bc: 4e5e unlk %fp <== NOT EXECUTED rtems_time_of_day *time_buffer ) { struct timespec newtime; if ( !time_buffer ) 463be: 7009 moveq #9,%d0 <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 463c0: 4e75 rts <== NOT EXECUTED ... 00045498 : * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { 45498: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4549c: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED if ( !routine ) 454a0: 670c beqs 454ae <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; } 454a2: 4e5e unlk %fp <== NOT EXECUTED ) { if ( !routine ) return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; 454a4: 4280 clrl %d0 <== NOT EXECUTED 454a6: 23c1 0005 88ea movel %d1,588ea <_Watchdog_Nanoseconds_since_tick_handler> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 454ac: 4e75 rts <== NOT EXECUTED 454ae: 4e5e unlk %fp <== NOT EXECUTED */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) 454b0: 7009 moveq #9,%d0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; } 454b2: 4e75 rts 000454b4 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { 454b4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _TOD_Tickle_ticks(); 454b8: 4eb9 0004 6bcc jsr 46bcc <_TOD_Tickle_ticks> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); 454be: 4879 0005 8830 pea 58830 <_Watchdog_Ticks_chain> <== NOT EXECUTED 454c4: 4eb9 0004 90c0 jsr 490c0 <_Watchdog_Tickle> <== NOT EXECUTED _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 454ca: 4eb9 0004 8a98 jsr 48a98 <_Thread_Tickle_timeslice> <== NOT EXECUTED if ( _Thread_Is_context_switch_necessary() && 454d0: 588f addql #4,%sp <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); 454d2: 1039 0005 8822 moveb 58822 <_Context_Switch_necessary>,%d0 <== NOT EXECUTED 454d8: 6708 beqs 454e2 <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); 454da: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 454e0: 6706 beqs 454e8 <== NOT EXECUTED _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 454e2: 4e5e unlk %fp <== NOT EXECUTED 454e4: 4280 clrl %d0 <== NOT EXECUTED 454e6: 4e75 rts <== NOT EXECUTED _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); 454e8: 4eb9 0004 7b60 jsr 47b60 <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 454ee: 4e5e unlk %fp <== NOT EXECUTED 454f0: 4280 clrl %d0 <== NOT EXECUTED 454f2: 4e75 rts 00042ffc : (*print)( context, "Total Units = %" PRId32 "\n", total_units ); #endif } void rtems_cpu_usage_report( void ) { 42ffc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_cpu_usage_report_with_plugin( NULL, printk_plugin ); 43000: 4879 0004 4220 pea 44220 <== NOT EXECUTED 43006: 42a7 clrl %sp@- <== NOT EXECUTED 43008: 4eb9 0004 2e3c jsr 42e3c <== NOT EXECUTED 4300e: 508f addql #8,%sp <== NOT EXECUTED } 43010: 4e5e unlk %fp <== NOT EXECUTED 43012: 4e75 rts 00042e3c : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 42e3c: 4e56 ffa0 linkw %fp,#-96 <== NOT EXECUTED 42e40: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 42e44: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 42e48: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED struct timespec uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 42e4c: 4a8c tstl %a4 <== NOT EXECUTED 42e4e: 6700 0138 beqw 42f88 <== NOT EXECUTED * 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. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &uptime ); 42e52: 486e fff0 pea %fp@(-16) <== NOT EXECUTED 42e56: 4eb9 0004 7e8c jsr 47e8c <_TOD_Get_uptime> <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 42e5c: 280e movel %fp,%d4 <== NOT EXECUTED * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &uptime ); _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 42e5e: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 42e62: 2e0e movel %fp,%d7 <== NOT EXECUTED * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &uptime ); _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 42e64: 486e fff0 pea %fp@(-16) <== NOT EXECUTED } } } #endif (*print)( context, "CPU Usage by thread\n" 42e68: 4bf9 0006 2d38 lea 62d38 <_Objects_Information_table+0x4>,%a5 <== NOT EXECUTED * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &uptime ); _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 42e6e: 4879 0006 2f9a pea 62f9a <== NOT EXECUTED 42e74: 4eb9 0004 a30c jsr 4a30c <_Timespec_Subtract> <== NOT EXECUTED } } } #endif (*print)( context, "CPU Usage by thread\n" 42e7a: 4879 0005 7e80 pea 57e80 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 42e80: 0684 ffff ffcb addil #-53,%d4 <== NOT EXECUTED if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 42e86: 0687 ffff ffe0 addil #-32,%d7 <== NOT EXECUTED } } } #endif (*print)( context, "CPU Usage by thread\n" 42e8c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42e8e: 4e94 jsr %a4@ <== NOT EXECUTED 42e90: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 42e96: 2055 moveal %a5@,%a0 <== NOT EXECUTED 42e98: 4a88 tstl %a0 <== NOT EXECUTED 42e9a: 6700 00bc beqw 42f58 <== NOT EXECUTED continue; information = _Objects_Information_table[ api_index ][ 1 ]; 42e9e: 2668 0004 moveal %a0@(4),%a3 <== NOT EXECUTED if ( information ) { 42ea2: 4a8b tstl %a3 <== NOT EXECUTED 42ea4: 6700 00b2 beqw 42f58 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { 42ea8: 4a6b 000e tstw %a3@(14) <== NOT EXECUTED 42eac: 6700 00aa beqw 42f58 <== NOT EXECUTED 42eb0: 7401 moveq #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 42eb2: 2c3c 0004 69f4 movel #289268,%d6 <== NOT EXECUTED 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 ]; 42eb8: 206b 001a moveal %a3@(26),%a0 <== NOT EXECUTED 42ebc: 2470 2c00 moveal %a0@(00000000,%d2:l:4),%a2 <== NOT EXECUTED 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++ ) { 42ec0: 5282 addql #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 42ec2: 4a8a tstl %a2 <== NOT EXECUTED 42ec4: 6700 0086 beqw 42f4c <== NOT EXECUTED continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 42ec8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 42eca: 2046 moveal %d6,%a0 <== NOT EXECUTED 42ecc: 4878 000d pea d <== NOT EXECUTED 42ed0: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 42ed4: 4e90 jsr %a0@ <== NOT EXECUTED (*print)( 42ed6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 42ed8: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 42edc: 4879 0005 7ec5 pea 57ec5 <== NOT EXECUTED 42ee2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42ee4: 4e94 jsr %a4@ <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 42ee6: 222a 0084 movel %a2@(132),%d1 <== NOT EXECUTED 42eea: 2d6a 0088 ffe4 movel %a2@(136),%fp@(-28) <== NOT EXECUTED if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 42ef0: 2079 0006 2e3a moveal 62e3a <_Thread_Executing>,%a0 <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 42ef6: 2d41 ffe0 movel %d1,%fp@(-32) <== NOT EXECUTED if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 42efa: 246a 0008 moveal %a2@(8),%a2 <== NOT EXECUTED 42efe: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 42f04: b5e8 0008 cmpal %a0@(8),%a2 <== NOT EXECUTED 42f08: 6700 0088 beqw 42f92 <== NOT EXECUTED _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 42f0c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 42f10: 486e fffc pea %fp@(-4) <== NOT EXECUTED 42f14: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 42f18: 2f07 movel %d7,%sp@- <== NOT EXECUTED 42f1a: 4eb9 0004 a1cc jsr 4a1cc <_Timespec_Divide> <== NOT EXECUTED /* * Print the information */ (*print)( context, 42f20: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED 42f24: 202e ffe4 movel %fp@(-28),%d0 <== NOT EXECUTED 42f28: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 42f2c: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED 42f32: 4c41 0000 remul %d1,%d0,%d0 <== NOT EXECUTED 42f36: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42f38: 2f2e ffe0 movel %fp@(-32),%sp@- <== NOT EXECUTED 42f3c: 4879 0005 7ed8 pea 57ed8 <== NOT EXECUTED 42f42: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42f44: 4e94 jsr %a4@ <== NOT EXECUTED 42f46: dffc 0000 0028 addal #40,%sp <== NOT EXECUTED 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++ ) { 42f4c: 4280 clrl %d0 <== NOT EXECUTED 42f4e: 302b 000e movew %a3@(14),%d0 <== NOT EXECUTED 42f52: b480 cmpl %d0,%d2 <== NOT EXECUTED 42f54: 6300 ff62 blsw 42eb8 <== NOT EXECUTED 42f58: 588d addql #4,%a5 <== NOT EXECUTED " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 42f5a: bbfc 0006 2d48 cmpal #404808,%a5 <== NOT EXECUTED 42f60: 6600 ff34 bnew 42e96 <== NOT EXECUTED } } } #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS (*print)( context, "Time since last CPU Usage reset %" PRId32 42f64: 202e ffec movel %fp@(-20),%d0 <== NOT EXECUTED 42f68: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED 42f6e: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED 42f72: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42f74: 2f2e ffe8 movel %fp@(-24),%sp@- <== NOT EXECUTED 42f78: 4879 0005 7ef0 pea 57ef0 <== NOT EXECUTED 42f7e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42f80: 4e94 jsr %a4@ <== NOT EXECUTED 42f82: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED "Ticks since last reset = %" PRId32 "\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset ); (*print)( context, "Total Units = %" PRId32 "\n", total_units ); #endif } 42f88: 4cee 3cfc ffa0 moveml %fp@(-96),%d2-%d7/%a2-%a5 <== NOT EXECUTED 42f8e: 4e5e unlk %fp <== NOT EXECUTED 42f90: 4e75 rts <== NOT EXECUTED * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( 42f92: 486e ffd8 pea %fp@(-40) <== NOT EXECUTED 42f96: 486e fff0 pea %fp@(-16) <== NOT EXECUTED 42f9a: 4879 0006 2e42 pea 62e42 <_Thread_Time_of_last_context_switch> <== NOT EXECUTED 42fa0: 4eb9 0004 a30c jsr 4a30c <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 42fa6: 486e ffd8 pea %fp@(-40) <== NOT EXECUTED 42faa: 2f07 movel %d7,%sp@- <== NOT EXECUTED 42fac: 4eb9 0004 a180 jsr 4a180 <_Timespec_Add_to> <== NOT EXECUTED 42fb2: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED }; _Timespec_Divide( &ran, &total, &ival, &fval ); 42fb8: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 42fbc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 42fc0: 486e ffe8 pea %fp@(-24) <== NOT EXECUTED 42fc4: 2f07 movel %d7,%sp@- <== NOT EXECUTED 42fc6: 4eb9 0004 a1cc jsr 4a1cc <_Timespec_Divide> <== NOT EXECUTED /* * Print the information */ (*print)( context, 42fcc: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED 42fd0: 202e ffe4 movel %fp@(-28),%d0 <== NOT EXECUTED 42fd4: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 42fd8: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED 42fde: 4c41 0000 remul %d1,%d0,%d0 <== NOT EXECUTED 42fe2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42fe4: 2f2e ffe0 movel %fp@(-32),%sp@- <== NOT EXECUTED 42fe8: 4879 0005 7ed8 pea 57ed8 <== NOT EXECUTED 42fee: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42ff0: 4e94 jsr %a4@ <== NOT EXECUTED 42ff2: dffc 0000 0028 addal #40,%sp <== NOT EXECUTED 42ff8: 6000 ff52 braw 42f4c <== NOT EXECUTED 00043028 : /* * rtems_cpu_usage_reset */ void rtems_cpu_usage_reset( void ) { 43028: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); 4302c: 4879 0006 2f9a pea 62f9a <== NOT EXECUTED 43032: 4eb9 0004 7e8c jsr 47e8c <_TOD_Get_uptime> <== NOT EXECUTED _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; 43038: 2039 0006 2f9a movel 62f9a ,%d0 <== NOT EXECUTED 4303e: 2239 0006 2f9e movel 62f9e ,%d1 <== NOT EXECUTED #else CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; #endif rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler); 43044: 487a ffce pea %pc@(43014 ) <== NOT EXECUTED */ void rtems_cpu_usage_reset( void ) { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; 43048: 23c0 0006 2e42 movel %d0,62e42 <_Thread_Time_of_last_context_switch> <== NOT EXECUTED 4304e: 23c1 0006 2e46 movel %d1,62e46 <_Thread_Time_of_last_context_switch+0x4> <== NOT EXECUTED #else CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; #endif rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler); 43054: 4eb9 0004 8304 jsr 48304 <== NOT EXECUTED 4305a: 508f addql #8,%sp <== NOT EXECUTED } 4305c: 4e5e unlk %fp <== NOT EXECUTED 4305e: 4e75 rts 0004b14c : */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { 4b14c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Debug_Level &= ~to_be_disabled; 4b150: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED } 4b154: 4e5e unlk %fp <== NOT EXECUTED void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; 4b156: 4680 notl %d0 <== NOT EXECUTED 4b158: c1b9 0005 8816 andl %d0,58816 <_Debug_Level> <== NOT EXECUTED } 4b15e: 4e75 rts 0004b13a : */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { 4b13a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Debug_Level |= to_be_enabled; 4b13e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED } 4b142: 4e5e unlk %fp <== NOT EXECUTED void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { _Debug_Level |= to_be_enabled; 4b144: 81b9 0005 8816 orl %d0,58816 <_Debug_Level> <== NOT EXECUTED } 4b14a: 4e75 rts 0004bc0a : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { 4bc0a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bc0e: 2f02 movel %d2,%sp@- <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) 4bc10: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4bc14: 4879 0005 6004 pea 56004 <== NOT EXECUTED 4bc1a: 4eb9 0004 c06c jsr 4c06c <== NOT EXECUTED 4bc20: 508f addql #8,%sp <== NOT EXECUTED 4bc22: 2400 movel %d0,%d2 <== NOT EXECUTED 4bc24: 660a bnes 4bc30 <== NOT EXECUTED { errno = rc; return -1; } return -1; } 4bc26: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4bc2a: 4e5e unlk %fp <== NOT EXECUTED 4bc2c: 70ff moveq #-1,%d0 <== NOT EXECUTED 4bc2e: 4e75 rts <== NOT EXECUTED { int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) { errno = rc; 4bc30: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4bc36: 2040 moveal %d0,%a0 <== NOT EXECUTED 4bc38: 2082 movel %d2,%a0@ <== NOT EXECUTED return -1; } return -1; } 4bc3a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4bc3e: 4e5e unlk %fp <== NOT EXECUTED 4bc40: 70ff moveq #-1,%d0 <== NOT EXECUTED 4bc42: 4e75 rts 00042534 : int rtems_error( int error_flag, const char *printf_format, ... ) { 42534: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); chars_written = rtems_verror(error_flag, printf_format, arglist); 42538: 486e 0010 pea %fp@(16) <== NOT EXECUTED 4253c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 42540: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42544: 4eba fdfe jsr %pc@(42344 ) <== NOT EXECUTED va_end(arglist); return chars_written; } 42548: 4e5e unlk %fp <== NOT EXECUTED 4254a: 4e75 rts 000454f4 : rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 454f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 454f8: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED RTEMS_API_Control *api; if ( !event_out ) 454fc: 4a89 tstl %a1 <== NOT EXECUTED 454fe: 6754 beqs 45554 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; 45500: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45506: 2068 010c moveal %a0@(268),%a0 <== NOT EXECUTED if ( _Event_sets_Is_empty( event_in ) ) { 4550a: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 4550e: 6608 bnes 45518 <== NOT EXECUTED *event_out = api->pending_events; 45510: 2290 movel %a0@,%a1@ <== NOT EXECUTED _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 45512: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; if ( _Event_sets_Is_empty( event_in ) ) { *event_out = api->pending_events; 45514: 4280 clrl %d0 <== NOT EXECUTED _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 45516: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 45518: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4551e: 5280 addql #1,%d0 <== NOT EXECUTED 45520: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED *event_out = api->pending_events; return RTEMS_SUCCESSFUL; } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); 45526: 2f09 movel %a1,%sp@- <== NOT EXECUTED 45528: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4552c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 45530: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45534: 4eb9 0004 555c jsr 4555c <_Event_Seize> <== NOT EXECUTED _Thread_Enable_dispatch(); 4553a: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED return( _Thread_Executing->Wait.return_code ); 45540: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45546: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4554c: 2028 0034 movel %a0@(52),%d0 <== NOT EXECUTED } 45550: 4e5e unlk %fp <== NOT EXECUTED 45552: 4e75 rts <== NOT EXECUTED 45554: 4e5e unlk %fp <== NOT EXECUTED rtems_event_set *event_out ) { RTEMS_API_Control *api; if ( !event_out ) 45556: 7009 moveq #9,%d0 <== NOT EXECUTED _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 45558: 4e75 rts <== NOT EXECUTED ... 000456a0 : rtems_status_code rtems_event_send( Objects_Id id, rtems_event_set event_in ) { 456a0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); 456a4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 456a8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 456ac: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 456b2: 508f addql #8,%sp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); 456b4: 2240 moveal %d0,%a1 <== NOT EXECUTED switch ( location ) { 456b6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 456ba: 662e bnes 456ea <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 456bc: 2069 010c moveal %a1@(268),%a0 <== NOT EXECUTED rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level ); 456c0: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 456c6: 40c0 movew %sr,%d0 <== NOT EXECUTED 456c8: 8280 orl %d0,%d1 <== NOT EXECUTED 456ca: 46c1 movew %d1,%sr <== NOT EXECUTED *the_event_set |= the_new_events; 456cc: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 456d0: 8390 orl %d1,%a0@ <== NOT EXECUTED _ISR_Enable( level ); 456d2: 46c0 movew %d0,%sr <== NOT EXECUTED _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); 456d4: 2f09 movel %a1,%sp@- <== NOT EXECUTED 456d6: 4eb9 0004 56f0 jsr 456f0 <_Event_Surrender> <== NOT EXECUTED _Thread_Enable_dispatch(); 456dc: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 456e2: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 456e4: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); _Thread_Enable_dispatch(); 456e6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 456e8: 4e75 rts <== NOT EXECUTED 456ea: 4e5e unlk %fp <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); switch ( location ) { 456ec: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 456ee: 4e75 rts 0004baa0 : rtems_status_code rtems_extension_create( rtems_name name, rtems_extensions_table *extension_table, Objects_Id *id ) { 4baa0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4baa4: 2f0a movel %a2,%sp@- <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) 4baa6: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 4baaa: 6700 0084 beqw 4bb30 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 4baae: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 4bab2: 660a bnes 4babe <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4bab4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4bab8: 4e5e unlk %fp <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 4baba: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4babc: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4babe: 2039 0006 6bdc movel 66bdc <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4bac4: 5280 addql #1,%d0 <== NOT EXECUTED 4bac6: 23c0 0006 6bdc movel %d0,66bdc <_Thread_Dispatch_disable_level> <== NOT EXECUTED * the inactive chain of free extension control blocks. */ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); 4bacc: 4879 0006 6d92 pea 66d92 <_Extension_Information> <== NOT EXECUTED 4bad2: 4eb9 0004 c79c jsr 4c79c <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 4bad8: 588f addql #4,%sp <== NOT EXECUTED 4bada: 2440 moveal %d0,%a2 <== NOT EXECUTED 4badc: 4a80 tstl %d0 <== NOT EXECUTED 4bade: 6740 beqs 4bb20 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } _User_extensions_Add_set( &the_extension->Extension, extension_table ); 4bae0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4bae4: 486a 0010 pea %a2@(16) <== NOT EXECUTED 4bae8: 4eb9 0004 e570 jsr 4e570 <_User_extensions_Add_set> <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4baee: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 4baf2: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 4baf6: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4bafa: 4280 clrl %d0 <== NOT EXECUTED 4bafc: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 4bb00: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED 4bb04: 2079 0006 6dac moveal 66dac <_Extension_Information+0x1a>,%a0 <== NOT EXECUTED 4bb0a: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED _Thread_Enable_dispatch(); 4bb0e: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4bb14: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); 4bb18: 508f addql #8,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4bb1a: 4e5e unlk %fp <== NOT EXECUTED &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); 4bb1c: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4bb1e: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 4bb20: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4bb26: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4bb2a: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 4bb2c: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4bb2e: 4e75 rts <== NOT EXECUTED 4bb30: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4bb34: 4e5e unlk %fp <== NOT EXECUTED Objects_Id *id ) { Extension_Control *the_extension; if ( !id ) 4bb36: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4bb38: 4e75 rts <== NOT EXECUTED ... 0004bb3c : */ rtems_status_code rtems_extension_delete( Objects_Id id ) { 4bb3c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4bb40: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) 4bb42: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4bb46: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4bb4a: 4879 0006 6d92 pea 66d92 <_Extension_Information> <== NOT EXECUTED 4bb50: 4eb9 0004 ccc8 jsr 4ccc8 <_Objects_Get> <== NOT EXECUTED Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 4bb56: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4bb5c: 2440 moveal %d0,%a2 <== NOT EXECUTED 4bb5e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4bb62: 663c bnes 4bba0 <== NOT EXECUTED case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 4bb64: 486a 0010 pea %a2@(16) <== NOT EXECUTED 4bb68: 4eb9 0004 e698 jsr 4e698 <_User_extensions_Remove_set> <== NOT EXECUTED _Objects_Close( &_Extension_Information, &the_extension->Object ); 4bb6e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bb70: 4879 0006 6d92 pea 66d92 <_Extension_Information> <== NOT EXECUTED 4bb76: 4eb9 0004 c838 jsr 4c838 <_Objects_Close> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 4bb7c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bb7e: 4879 0006 6d92 pea 66d92 <_Extension_Information> <== NOT EXECUTED 4bb84: 4eb9 0004 cb5c jsr 4cb5c <_Objects_Free> <== NOT EXECUTED _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 4bb8a: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4bb90: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); _Objects_Close( &_Extension_Information, &the_extension->Object ); _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 4bb94: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4bb9a: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); _Objects_Close( &_Extension_Information, &the_extension->Object ); _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 4bb9c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4bb9e: 4e75 rts <== NOT EXECUTED 4bba0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4bba4: 4e5e unlk %fp <== NOT EXECUTED { Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 4bba6: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4bba8: 4e75 rts <== NOT EXECUTED ... 000481dc : rtems_status_code rtems_extension_ident( rtems_name name, Objects_Id *id ) { 481dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 481e0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 481e4: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 481ea: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 481ee: 4879 0005 c70a pea 5c70a <_Extension_Information> <== NOT EXECUTED 481f4: 4eb9 0004 9480 jsr 49480 <_Objects_Name_to_id_u32> <== NOT EXECUTED 481fa: 41f9 0005 97c4 lea 597c4 <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } 48200: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 48204: 4e5e unlk %fp <== NOT EXECUTED 48206: 4e75 rts 00046388 : */ void rtems_fatal_error_occurred( uint32_t the_error ) { 46388: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); 4638c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46390: 42a7 clrl %sp@- <== NOT EXECUTED 46392: 4878 0001 pea 1 <== NOT EXECUTED 46396: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED 0004254c : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 4254c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 42550: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42552: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 42556: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 42558: 4a89 tstl %a1 <== NOT EXECUTED 4255a: 6700 0094 beqw 425f0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 4255e: 2069 0008 moveal %a1@(8),%a0 <== NOT EXECUTED 42562: 4a90 tstl %a0@ <== NOT EXECUTED 42564: 676c beqs 425d2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; 42566: 2049 moveal %a1,%a0 <== NOT EXECUTED 42568: 2d58 fff0 movel %a0@+,%fp@(-16) <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 4256c: 260e movel %fp,%d3 <== NOT EXECUTED 4256e: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED 42574: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42576: 2269 0008 moveal %a1@(8),%a1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; 4257a: 2d58 fff4 movel %a0@+,%fp@(-12) <== NOT EXECUTED 4257e: 2d58 fff8 movel %a0@+,%fp@(-8) <== NOT EXECUTED 42582: 2d50 fffc movel %a0@,%fp@(-4) <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 42586: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4258a: 4879 0005 5bb4 pea 55bb4 <== NOT EXECUTED 42590: 2051 moveal %a1@,%a0 <== NOT EXECUTED 42592: 4e90 jsr %a0@ <== NOT EXECUTED if (result != 0){ 42594: dffc 0000 000c addal #12,%sp <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 4259a: 2400 movel %d0,%d2 <== NOT EXECUTED if (result != 0){ 4259c: 6624 bnes 425c2 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 4259e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 425a2: 4a88 tstl %a0 <== NOT EXECUTED 425a4: 670e beqs 425b4 <== NOT EXECUTED 425a6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 425aa: 4a88 tstl %a0 <== NOT EXECUTED 425ac: 6706 beqs 425b4 <== NOT EXECUTED 425ae: 2f03 movel %d3,%sp@- <== NOT EXECUTED 425b0: 4e90 jsr %a0@ <== NOT EXECUTED 425b2: 588f addql #4,%sp <== NOT EXECUTED return result; } 425b4: 2002 movel %d2,%d0 <== NOT EXECUTED 425b6: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 425ba: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 425be: 4e5e unlk %fp <== NOT EXECUTED 425c0: 4e75 rts <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); if (result != 0){ 425c2: 74ff moveq #-1,%d2 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); return result; } 425c4: 2002 movel %d2,%d0 <== NOT EXECUTED 425c6: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 425ca: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 425ce: 4e5e unlk %fp <== NOT EXECUTED 425d0: 4e75 rts <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 425d2: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 425d8: 74ff moveq #-1,%d2 <== NOT EXECUTED 425da: 2040 moveal %d0,%a0 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); return result; } 425dc: 2002 movel %d2,%d0 <== NOT EXECUTED 425de: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 425e2: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 425e6: 4e5e unlk %fp <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 425e8: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); return result; } 425ee: 4e75 rts <== NOT EXECUTED { rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 425f0: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 425f6: 2040 moveal %d0,%a0 <== NOT EXECUTED 425f8: 7005 moveq #5,%d0 <== NOT EXECUTED 425fa: 74ff moveq #-1,%d2 <== NOT EXECUTED 425fc: 2080 movel %d0,%a0@ <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); return result; } 425fe: 2002 movel %d2,%d0 <== NOT EXECUTED 42600: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 42604: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 42608: 4e5e unlk %fp <== NOT EXECUTED 4260a: 4e75 rts 0004260c : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 4260c: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 42610: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 42614: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 42618: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 4261c: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 42620: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) 42624: 4a8b tstl %a3 <== NOT EXECUTED 42626: 6700 010c beqw 42734 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 4262a: 4a8a tstl %a2 <== NOT EXECUTED 4262c: 6700 00ec beqw 4271a <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 42630: 1213 moveb %a3@,%d1 <== NOT EXECUTED 42632: 1001 moveb %d1,%d0 <== NOT EXECUTED 42634: 49c0 extbl %d0 <== NOT EXECUTED 42636: 742f moveq #47,%d2 <== NOT EXECUTED 42638: b480 cmpl %d0,%d2 <== NOT EXECUTED 4263a: 676a beqs 426a6 <== NOT EXECUTED 4263c: 143c 005c moveb #92,%d2 <== NOT EXECUTED 42640: b480 cmpl %d0,%d2 <== NOT EXECUTED 42642: 6762 beqs 426a6 <== NOT EXECUTED 42644: 4a01 tstb %d1 <== NOT EXECUTED 42646: 675e beqs 426a6 <== NOT EXECUTED 42648: 2279 0005 70b4 moveal 570b4 ,%a1 <== NOT EXECUTED 4264e: 204a moveal %a2,%a0 <== NOT EXECUTED 42650: 5889 addql #4,%a1 <== NOT EXECUTED 42652: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 42654: 4280 clrl %d0 <== NOT EXECUTED 42656: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 42658: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 4265a: 2091 movel %a1@,%a0@ <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 4265c: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED 42660: 2050 moveal %a0@,%a0 <== NOT EXECUTED 42662: 4a88 tstl %a0 <== NOT EXECUTED 42664: 6700 0088 beqw 426ee <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 42668: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4266a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4266c: 4873 0800 pea %a3@(00000000,%d0:l) <== NOT EXECUTED 42670: 4e90 jsr %a0@ <== NOT EXECUTED /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 42672: dffc 0000 000c addal #12,%sp <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, pathloc ); if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 42678: 2400 movel %d0,%d2 <== NOT EXECUTED /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 4267a: 661e bnes 4269a <== NOT EXECUTED 4267c: 4a83 tstl %d3 <== NOT EXECUTED 4267e: 671a beqs 4269a <== NOT EXECUTED if ( !pathloc->ops->node_type_h ){ 42680: 226a 0008 moveal %a2@(8),%a1 <== NOT EXECUTED 42684: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 42688: 4a88 tstl %a0 <== NOT EXECUTED 4268a: 677e beqs 4270a <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 4268c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4268e: 4e90 jsr %a0@ <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 42690: 588f addql #4,%sp <== NOT EXECUTED 42692: 5780 subql #3,%d0 <== NOT EXECUTED 42694: 7201 moveq #1,%d1 <== NOT EXECUTED 42696: b280 cmpl %d0,%d1 <== NOT EXECUTED 42698: 6428 bccs 426c2 <== NOT EXECUTED } } return result; } 4269a: 2002 movel %d2,%d0 <== NOT EXECUTED 4269c: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED 426a2: 4e5e unlk %fp <== NOT EXECUTED 426a4: 4e75 rts <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 426a6: 2279 0005 70b4 moveal 570b4 ,%a1 <== NOT EXECUTED 426ac: 204a moveal %a2,%a0 <== NOT EXECUTED 426ae: 20e9 0014 movel %a1@(20),%a0@+ <== NOT EXECUTED 426b2: 7001 moveq #1,%d0 <== NOT EXECUTED 426b4: 20e9 0018 movel %a1@(24),%a0@+ <== NOT EXECUTED 426b8: 20e9 001c movel %a1@(28),%a0@+ <== NOT EXECUTED 426bc: 20a9 0020 movel %a1@(32),%a0@ <== NOT EXECUTED 426c0: 609a bras 4265c <== NOT EXECUTED type = (*pathloc->ops->node_type_h)( pathloc ); if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 426c2: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED 426c6: 2028 0034 movel %a0@(52),%d0 <== NOT EXECUTED 426ca: 6714 beqs 426e0 <== NOT EXECUTED * pathloc will be passed up (and eventually released). * Hence, the (valid) originial node that we submit to * eval_link_h() should be released by the handler. */ result = (*pathloc->ops->eval_link_h)( pathloc, flags ); 426cc: 2d44 000c movel %d4,%fp@(12) <== NOT EXECUTED 426d0: 2240 moveal %d0,%a1 <== NOT EXECUTED 426d2: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } return result; } 426d6: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED 426dc: 4e5e unlk %fp <== NOT EXECUTED * pathloc will be passed up (and eventually released). * Hence, the (valid) originial node that we submit to * eval_link_h() should be released by the handler. */ result = (*pathloc->ops->eval_link_h)( pathloc, flags ); 426de: 4ed1 jmp %a1@ <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 426e0: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 426e4: 4a88 tstl %a0 <== NOT EXECUTED 426e6: 6706 beqs 426ee <== NOT EXECUTED 426e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 426ea: 4e90 jsr %a0@ <== NOT EXECUTED 426ec: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 426ee: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 426f4: 74ff moveq #-1,%d2 <== NOT EXECUTED 426f6: 2040 moveal %d0,%a0 <== NOT EXECUTED } } return result; } 426f8: 2002 movel %d2,%d0 <== NOT EXECUTED 426fa: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED 42700: 4e5e unlk %fp <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 42702: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED } } return result; } 42708: 4e75 rts <== NOT EXECUTED */ if ( (result == 0) && follow_link ) { if ( !pathloc->ops->node_type_h ){ rtems_filesystem_freenode( pathloc ); 4270a: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 4270e: 4a88 tstl %a0 <== NOT EXECUTED 42710: 67dc beqs 426ee <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 42712: 2f0a movel %a2,%sp@- <== NOT EXECUTED 42714: 4e90 jsr %a0@ <== NOT EXECUTED 42716: 588f addql #4,%sp <== NOT EXECUTED 42718: 60d4 bras 426ee <== NOT EXECUTED if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 4271a: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 42720: 74ff moveq #-1,%d2 <== NOT EXECUTED 42722: 2040 moveal %d0,%a0 <== NOT EXECUTED } } return result; } 42724: 2002 movel %d2,%d0 <== NOT EXECUTED 42726: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 4272c: 7205 moveq #5,%d1 <== NOT EXECUTED } } return result; } 4272e: 4e5e unlk %fp <== NOT EXECUTED if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 42730: 2081 movel %d1,%a0@ <== NOT EXECUTED } } return result; } 42732: 4e75 rts <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 42734: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4273a: 740e moveq #14,%d2 <== NOT EXECUTED 4273c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4273e: 2082 movel %d2,%a0@ <== NOT EXECUTED 42740: 74ff moveq #-1,%d2 <== NOT EXECUTED } } return result; } 42742: 2002 movel %d2,%d0 <== NOT EXECUTED 42744: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4274a: 4e5e unlk %fp <== NOT EXECUTED 4274c: 4e75 rts <== NOT EXECUTED ... 0004a1b8 : /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 4a1b8: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 4a1be: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 4a1c2: 7012 moveq #18,%d0 <== NOT EXECUTED * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 4a1c4: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 4a1c8: 2140 0024 movel %d0,%a0@(36) <== NOT EXECUTED init_fs_mount_table(); 4a1cc: 4eb9 0004 aa64 jsr 4aa64 <== NOT EXECUTED /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 4a1d2: 4ab9 0005 5508 tstl 55508 <== NOT EXECUTED 4a1d8: 6700 00d4 beqw 4a2ae <== NOT EXECUTED rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 4a1dc: 2079 0005 6ba0 moveal 56ba0 ,%a0 <== NOT EXECUTED status = mount( 4a1e2: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4a1e6: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4a1ea: 2f28 0004 movel %a0@(4),%sp@- <== NOT EXECUTED 4a1ee: 2f10 movel %a0@,%sp@- <== NOT EXECUTED 4a1f0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4a1f4: 4eb9 0004 aa86 jsr 4aa86 <== NOT EXECUTED &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 4a1fa: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 4a200: 72ff moveq #-1,%d1 <== NOT EXECUTED 4a202: b280 cmpl %d0,%d1 <== NOT EXECUTED 4a204: 6700 00b4 beqw 4a2ba <== NOT EXECUTED rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 4a208: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 4a20e: 226e fffc moveal %fp@(-4),%a1 <== NOT EXECUTED 4a212: 2169 0018 0014 movel %a1@(24),%a0@(20) <== NOT EXECUTED &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 4a218: 4240 clrw %d0 <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 4a21a: 2169 001c 0018 movel %a1@(28),%a0@(24) <== NOT EXECUTED &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 4a220: 3140 0028 movew %d0,%a0@(40) <== NOT EXECUTED * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 4a224: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 4a228: 47f9 0004 260c lea 4260c ,%a3 <== NOT EXECUTED rtems_filesystem_root = loc; 4a22e: 49ee fff8 lea %fp@(-8),%a4 <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 4a232: 2169 0020 001c movel %a1@(32),%a0@(28) <== NOT EXECUTED 4a238: 2169 0024 0020 movel %a1@(36),%a0@(32) <== NOT EXECUTED /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 4a23e: 42a7 clrl %sp@- <== NOT EXECUTED 4a240: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a242: 42a7 clrl %sp@- <== NOT EXECUTED 4a244: 4879 0005 5ed2 pea 55ed2 <== NOT EXECUTED 4a24a: 4e93 jsr %a3@ <== NOT EXECUTED rtems_filesystem_root = loc; 4a24c: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 4a252: 2152 0014 movel %a2@,%a0@(20) <== NOT EXECUTED 4a256: 216e fff0 0018 movel %fp@(-16),%a0@(24) <== NOT EXECUTED 4a25c: 216e fff4 001c movel %fp@(-12),%a0@(28) <== NOT EXECUTED 4a262: 2154 0020 movel %a4@,%a0@(32) <== NOT EXECUTED /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 4a266: 42a7 clrl %sp@- <== NOT EXECUTED 4a268: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a26a: 42a7 clrl %sp@- <== NOT EXECUTED 4a26c: 4879 0005 5ed2 pea 55ed2 <== NOT EXECUTED 4a272: 4e93 jsr %a3@ <== NOT EXECUTED rtems_filesystem_current = loc; 4a274: 2079 0005 70b4 moveal 570b4 ,%a0 <== NOT EXECUTED 4a27a: 5888 addql #4,%a0 <== NOT EXECUTED 4a27c: 20d2 movel %a2@,%a0@+ <== NOT EXECUTED * * 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); 4a27e: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_current = loc; 4a284: 20ee fff0 movel %fp@(-16),%a0@+ <== NOT EXECUTED 4a288: 20ee fff4 movel %fp@(-12),%a0@+ <== NOT EXECUTED 4a28c: 2094 movel %a4@,%a0@ <== NOT EXECUTED * * 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); 4a28e: 4878 01ff pea 1ff <== NOT EXECUTED 4a292: 4879 0005 5ed4 pea 55ed4 <== NOT EXECUTED 4a298: 4eb9 0004 aa44 jsr 4aa44 <== NOT EXECUTED if ( status != 0 ) 4a29e: 508f addql #8,%sp <== NOT EXECUTED 4a2a0: 4a80 tstl %d0 <== NOT EXECUTED 4a2a2: 6622 bnes 4a2c6 <== NOT EXECUTED * before device drivers are initialized. So we return via a base * filesystem image and nothing auto-mounted at this point. */ #endif } 4a2a4: 4cee 1c00 ffe0 moveml %fp@(-32),%a2-%a4 <== NOT EXECUTED 4a2aa: 4e5e unlk %fp <== NOT EXECUTED 4a2ac: 4e75 rts <== NOT EXECUTED /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 4a2ae: 2f3c abcd 0001 movel #-1412628479,%sp@- <== NOT EXECUTED 4a2b4: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 4a2ba: 2f3c abcd 0002 movel #-1412628478,%sp@- <== NOT EXECUTED 4a2c0: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 4a2c6: 2f3c abcd 0003 movel #-1412628477,%sp@- <== NOT EXECUTED 4a2cc: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED ... 000621e8 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 621e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 621ec: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 621f0: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 621f4: 2050 moveal %a0@,%a0 <== NOT EXECUTED 621f6: b1d1 cmpal %a1@,%a0 <== NOT EXECUTED 621f8: 57c0 seq %d0 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 621fa: 4e5e unlk %fp <== NOT EXECUTED 621fc: 4480 negl %d0 <== NOT EXECUTED 621fe: 4e75 rts 00047de8 : #endif #include const char *rtems_get_version_string(void) { 47de8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _RTEMS_version; } 47dec: 4e5e unlk %fp <== NOT EXECUTED 47dee: 203c 0005 a334 movel #369460,%d0 <== NOT EXECUTED 47df4: 4e75 rts <== NOT EXECUTED ... 00046206 : * Scheduling can properly occur now as long as we avoid dispatching. */ } void rtems_initialize_before_drivers(void) { 46206: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED * Run the API and BSPs predriver hook. */ _API_extensions_Run_predriver(); } 4620a: 4e5e unlk %fp <== NOT EXECUTED /* * Run the API and BSPs predriver hook. */ _API_extensions_Run_predriver(); 4620c: 4ef9 0004 6524 jmp 46524 <_API_extensions_Run_predriver> <== NOT EXECUTED 00046212 : Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; void rtems_initialize_data_structures( rtems_configuration_table *configuration_table ) { 46212: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46216: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46218: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * Dispatching and interrupts are disabled until the end of the * initialization sequence. This prevents an inadvertent context * switch before the executive is initialized. */ _ISR_Disable( bsp_level ); 4621c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 46222: 40c1 movew %sr,%d1 <== NOT EXECUTED 46224: 8081 orl %d1,%d0 <== NOT EXECUTED 46226: 46c0 movew %d0,%sr <== NOT EXECUTED /* * Make sure the parameters were not NULL. */ if ( configuration_table == NULL ) 46228: 4a8a tstl %a2 <== NOT EXECUTED 4622a: 6700 00f0 beqw 4631c <== NOT EXECUTED _Configuration_Table = configuration_table; /* * Initialize any target architecture specific support as early as possible */ _CPU_Initialize( _Thread_Dispatch ); 4622e: 4879 0004 7b60 pea 47b60 <_Thread_Dispatch> <== NOT EXECUTED ); /* * Provide pointers just for later convenience. */ _Configuration_Table = configuration_table; 46234: 23ca 0005 87ee movel %a2,587ee <_Configuration_Table> <== NOT EXECUTED /* * Initialize any target architecture specific support as early as possible */ _CPU_Initialize( _Thread_Dispatch ); 4623a: 4eb9 0004 92e0 jsr 492e0 <_CPU_Initialize> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization ( bool is_multiprocessing ) { _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; 46240: 42b9 0005 88e6 clrl 588e6 <_System_state_Current> <== NOT EXECUTED /* * Do this as early as possible to insure no debugging output * is even attempted to be printed. */ _Debug_Manager_initialization(); 46246: 4eb9 0004 b12c jsr 4b12c <_Debug_Manager_initialization> <== NOT EXECUTED _API_extensions_Initialization(); 4624c: 4eb9 0004 6504 jsr 46504 <_API_extensions_Initialization> <== NOT EXECUTED /* * Before this is called, we are not allowed to allocate memory * from the Workspace because it is not initialized. */ _Workspace_Handler_initialization( 46252: 2f2a 0004 movel %a2@(4),%sp@- <== NOT EXECUTED * This routine initializes the thread dispatching subsystem. */ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) { _Thread_Dispatch_disable_level = 1; 46256: 7001 moveq #1,%d0 <== NOT EXECUTED 46258: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4625e: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 46260: 4eb9 0004 919e jsr 4919e <_Workspace_Handler_initialization> <== NOT EXECUTED (void *)configuration_table->work_space_start, configuration_table->work_space_size ); _User_extensions_Handler_initialization( 46266: 2f2a 003a movel %a2@(58),%sp@- <== NOT EXECUTED 4626a: 2f2a 0036 movel %a2@(54),%sp@- <== NOT EXECUTED 4626e: 4eb9 0004 8c40 jsr 48c40 <_User_extensions_Handler_initialization> <== NOT EXECUTED configuration_table->number_of_initial_extensions, configuration_table->User_extension_table ); _ISR_Handler_initialization(); 46274: 4eb9 0004 6e9c jsr 46e9c <_ISR_Handler_initialization> <== NOT EXECUTED _Objects_Handler_initialization( 4627a: 4eb9 0004 7654 jsr 47654 <_Objects_Handler_initialization> <== NOT EXECUTED _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; /* * Initialize the internal allocator Mutex */ _API_Mutex_Initialization( 1 ); 46280: 4878 0001 pea 1 <== NOT EXECUTED _Configuration_MP_table->maximum_nodes, _Configuration_MP_table->maximum_global_objects #endif ); _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; 46284: 203c 0005 876a movel #362346,%d0 <== NOT EXECUTED 4628a: 23c0 0005 8710 movel %d0,58710 <_Objects_Information_table+0x4> <== NOT EXECUTED /* * Initialize the internal allocator Mutex */ _API_Mutex_Initialization( 1 ); 46290: 4eb9 0004 6674 jsr 46674 <_API_Mutex_Initialization> <== NOT EXECUTED _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); 46296: 4879 0005 880a pea 5880a <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 4629c: 4eb9 0004 65d8 jsr 465d8 <_API_Mutex_Allocate> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { size_t index; _Priority_Major_bit_map = 0; 462a2: 4240 clrw %d0 <== NOT EXECUTED 462a4: 33c0 0005 8808 movew %d0,58808 <_Priority_Major_bit_map> <== NOT EXECUTED 462aa: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 462b0: 41f9 0005 8878 lea 58878 <_Priority_Bit_map>,%a0 <== NOT EXECUTED for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; 462b6: 4258 clrw %a0@+ <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { size_t index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) 462b8: b1fc 0005 8898 cmpal #362648,%a0 <== NOT EXECUTED 462be: 66f6 bnes 462b6 <== NOT EXECUTED _Priority_Handler_initialization(); _Watchdog_Handler_initialization(); 462c0: 4eb9 0004 8fd0 jsr 48fd0 <_Watchdog_Handler_initialization> <== NOT EXECUTED _TOD_Handler_initialization( configuration_table->microseconds_per_tick ); 462c6: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED 462ca: 4eb9 0004 6b94 jsr 46b94 <_TOD_Handler_initialization> <== NOT EXECUTED _Thread_Handler_initialization( 462d0: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 462d4: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 462d8: 4eb9 0004 7fd4 jsr 47fd4 <_Thread_Handler_initialization> <== NOT EXECUTED ); #endif /* MANAGERS */ _RTEMS_API_Initialize( configuration_table ); 462de: 2f0a movel %a2,%sp@- <== NOT EXECUTED 462e0: 4eb9 0004 6470 jsr 46470 <_RTEMS_API_Initialize> <== NOT EXECUTED _Extension_Manager_initialization( configuration_table->maximum_extensions ); 462e6: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 462ea: 4eb9 0004 6358 jsr 46358 <_Extension_Manager_initialization> <== NOT EXECUTED _IO_Manager_initialization( 462f0: 2f2a 002a movel %a2@(42),%sp@- <== NOT EXECUTED 462f4: 2f2a 002e movel %a2@(46),%sp@- <== NOT EXECUTED 462f8: 2f2a 0032 movel %a2@(50),%sp@- <== NOT EXECUTED 462fc: 4eb9 0004 63d8 jsr 463d8 <_IO_Manager_initialization> <== NOT EXECUTED _Thread_Create_idle(); /* * Scheduling can properly occur now as long as we avoid dispatching. */ } 46302: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED * * 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(); 46306: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED /* * Scheduling can properly occur now as long as we avoid dispatching. */ } 4630c: 4e5e unlk %fp <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 4630e: 7001 moveq #1,%d0 <== NOT EXECUTED 46310: 23c0 0005 88e6 movel %d0,588e6 <_System_state_Current> <== NOT EXECUTED * * 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(); 46316: 4ef9 0004 7a70 jmp 47a70 <_Thread_Create_idle> <== NOT EXECUTED /* * Make sure the parameters were not NULL. */ if ( configuration_table == NULL ) _Internal_error_Occurred( 4631c: 42a7 clrl %sp@- <== NOT EXECUTED 4631e: 4878 0001 pea 1 <== NOT EXECUTED 46322: 42a7 clrl %sp@- <== NOT EXECUTED 46324: 4eb9 0004 6e40 jsr 46e40 <_Internal_error_Occurred> <== NOT EXECUTED ... 000461f4 : _API_extensions_Run_predriver(); } void rtems_initialize_device_drivers(void) { 461f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED * Initialize all the device drivers and initialize the MPCI layer. * * NOTE: The MPCI may be build upon a device driver. */ _IO_Initialize_all_drivers(); 461f8: 4eb9 0004 639c jsr 4639c <_IO_Initialize_all_drivers> <== NOT EXECUTED * * The API extensions are supposed to create user initialization tasks. */ _API_extensions_Run_postdriver(); } 461fe: 4e5e unlk %fp <== NOT EXECUTED * Run the APIs and BSPs postdriver hooks. * * The API extensions are supposed to create user initialization tasks. */ _API_extensions_Run_postdriver(); 46200: 4ef9 0004 6554 jmp 46554 <_API_extensions_Run_postdriver> <== NOT EXECUTED 000461e0 : _API_extensions_Run_postdriver(); } void rtems_initialize_start_multitasking(void) { 461e0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED ****** APPLICATION RUNS HERE ****** ****** RETURNS WHEN SYSTEM IS SHUT DOWN ****** ******************************************************************* ******************************************************************* *******************************************************************/ } 461e4: 4e5e unlk %fp <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 461e6: 7002 moveq #2,%d0 <== NOT EXECUTED 461e8: 23c0 0005 88e6 movel %d0,588e6 <_System_state_Current> <== NOT EXECUTED void rtems_initialize_start_multitasking(void) { _System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING ); _Thread_Start_multitasking(); 461ee: 4ef9 0004 88cc jmp 488cc <_Thread_Start_multitasking> <== NOT EXECUTED 000458dc : rtems_status_code rtems_interrupt_catch( rtems_isr_entry new_isr_handler, rtems_vector_number vector, rtems_isr_entry *old_isr_handler ) { 458dc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 458e0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED if ( !_ISR_Is_vector_number_valid( vector ) ) 458e4: 0c80 0000 00ff cmpil #255,%d0 <== NOT EXECUTED 458ea: 622e bhis 4591a <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) ) 458ec: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 458f0: 6722 beqs 45914 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) ) 458f2: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 458f6: 671c beqs 45914 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _ISR_Install_vector( 458f8: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 458fc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45900: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45902: 4eb9 0004 931a jsr 4931a <_CPU_ISR_install_vector> <== NOT EXECUTED 45908: dffc 0000 000c addal #12,%sp <== NOT EXECUTED vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 4590e: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) ) return RTEMS_INVALID_ADDRESS; _ISR_Install_vector( 45910: 4280 clrl %d0 <== NOT EXECUTED vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 45912: 4e75 rts <== NOT EXECUTED 45914: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _ISR_Install_vector( vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; 45916: 7009 moveq #9,%d0 <== NOT EXECUTED } 45918: 4e75 rts <== NOT EXECUTED 4591a: 4e5e unlk %fp <== NOT EXECUTED rtems_isr_entry new_isr_handler, rtems_vector_number vector, rtems_isr_entry *old_isr_handler ) { if ( !_ISR_Is_vector_number_valid( vector ) ) 4591c: 700a moveq #10,%d0 <== NOT EXECUTED _ISR_Install_vector( vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 4591e: 4e75 rts 0004658c : */ #undef rtems_interrupt_disable rtems_interrupt_level rtems_interrupt_disable( void ) { 4658c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); 46590: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 46596: 40c0 movew %sr,%d0 <== NOT EXECUTED 46598: 8280 orl %d0,%d1 <== NOT EXECUTED 4659a: 46c1 movew %d1,%sr <== NOT EXECUTED return previous_level; } 4659c: 4e5e unlk %fp <== NOT EXECUTED 4659e: 4e75 rts 000465a0 : #undef rtems_interrupt_enable void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { 465a0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _ISR_Enable( previous_level ); 465a4: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 465a8: 46c0 movew %d0,%sr <== NOT EXECUTED } 465aa: 4e5e unlk %fp <== NOT EXECUTED 465ac: 4e75 rts 000465ae : #undef rtems_interrupt_flash void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { 465ae: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _ISR_Flash( previous_level ); 465b2: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 465b8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 465bc: 46c0 movew %d0,%sr <== NOT EXECUTED 465be: 8280 orl %d0,%d1 <== NOT EXECUTED 465c0: 46c1 movew %d1,%sr <== NOT EXECUTED } 465c2: 4e5e unlk %fp <== NOT EXECUTED 465c4: 4e75 rts 000465c6 : #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); 465c6: 2039 0005 aae2 movel 5aae2 <_ISR_Nest_level>,%d0 <== NOT EXECUTED */ #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { 465cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _ISR_Is_in_progress(); 465d0: 4a80 tstl %d0 <== NOT EXECUTED 465d2: 56c0 sne %d0 <== NOT EXECUTED } 465d4: 4e5e unlk %fp <== NOT EXECUTED 465d6: 4480 negl %d0 <== NOT EXECUTED 465d8: 4e75 rts <== NOT EXECUTED ... 0004c214 : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4c214: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c218: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4c21a: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4c21e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c220: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4c224: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c228: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 4c22e: 642c bccs 4c25c <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; 4c230: 2002 movel %d2,%d0 <== NOT EXECUTED 4c232: 2202 movel %d2,%d1 <== NOT EXECUTED 4c234: 2079 0005 89d2 moveal 589d2 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4c23a: e788 lsll #3,%d0 <== NOT EXECUTED 4c23c: eb89 lsll #5,%d1 <== NOT EXECUTED 4c23e: 9280 subl %d0,%d1 <== NOT EXECUTED 4c240: 2030 1808 movel %a0@(00000008,%d1:l),%d0 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c244: 6718 beqs 4c25e <== NOT EXECUTED 4c246: 2d49 0010 movel %a1,%fp@(16) <== NOT EXECUTED 4c24a: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c24c: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4c250: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4c254: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c256: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c258: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c25a: 4ed1 jmp %a1@ <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c25c: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4c25e: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c260: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c262: 4e5e unlk %fp <== NOT EXECUTED 4c264: 4e75 rts <== NOT EXECUTED ... 0004c268 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4c268: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c26c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4c26e: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4c272: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c274: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4c278: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c27c: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 4c282: 642c bccs 4c2b0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; 4c284: 2002 movel %d2,%d0 <== NOT EXECUTED 4c286: 2202 movel %d2,%d1 <== NOT EXECUTED 4c288: 2079 0005 89d2 moveal 589d2 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4c28e: e788 lsll #3,%d0 <== NOT EXECUTED 4c290: eb89 lsll #5,%d1 <== NOT EXECUTED 4c292: 9280 subl %d0,%d1 <== NOT EXECUTED 4c294: 2030 1814 movel %a0@(00000014,%d1:l),%d0 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c298: 6718 beqs 4c2b2 <== NOT EXECUTED 4c29a: 2d49 0010 movel %a1,%fp@(16) <== NOT EXECUTED 4c29e: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c2a0: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4c2a4: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4c2a8: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c2aa: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c2ac: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c2ae: 4ed1 jmp %a1@ <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c2b0: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4c2b2: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c2b4: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c2b6: 4e5e unlk %fp <== NOT EXECUTED 4c2b8: 4e75 rts <== NOT EXECUTED ... 0004b178 : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4b178: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b17c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b17e: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4b182: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b184: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4b188: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4b18c: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 4b192: 642c bccs 4b1c0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; 4b194: 2079 0005 89d2 moveal 589d2 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4b19a: 2002 movel %d2,%d0 <== NOT EXECUTED 4b19c: e788 lsll #3,%d0 <== NOT EXECUTED 4b19e: 2202 movel %d2,%d1 <== NOT EXECUTED 4b1a0: 91c0 subal %d0,%a0 <== NOT EXECUTED 4b1a2: eb89 lsll #5,%d1 <== NOT EXECUTED 4b1a4: 2030 1800 movel %a0@(00000000,%d1:l),%d0 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4b1a8: 6718 beqs 4b1c2 <== NOT EXECUTED 4b1aa: 2d49 0010 movel %a1,%fp@(16) <== NOT EXECUTED 4b1ae: 2240 moveal %d0,%a1 <== NOT EXECUTED 4b1b0: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4b1b4: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4b1b8: 241f movel %sp@+,%d2 <== NOT EXECUTED 4b1ba: 261f movel %sp@+,%d3 <== NOT EXECUTED 4b1bc: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4b1be: 4ed1 jmp %a1@ <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4b1c0: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4b1c2: 241f movel %sp@+,%d2 <== NOT EXECUTED 4b1c4: 261f movel %sp@+,%d3 <== NOT EXECUTED 4b1c6: 4e5e unlk %fp <== NOT EXECUTED 4b1c8: 4e75 rts <== NOT EXECUTED ... 000421f8 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 421f8: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 421fc: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== 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, 0x00, &loc, true ); 42200: 4878 0001 pea 1 <== NOT EXECUTED 42204: 260e movel %fp,%d3 <== NOT EXECUTED 42206: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED 4220c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4220e: 42a7 clrl %sp@- <== NOT EXECUTED 42210: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42214: 4eb9 0004 260c jsr 4260c <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 4221a: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); the_jnode = loc.node_access; 4221e: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 42222: 2069 0010 moveal %a1@(16),%a0 <== 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, 0x00, &loc, true ); 42226: 2400 movel %d0,%d2 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 42228: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4222e: 4a88 tstl %a0 <== NOT EXECUTED 42230: 6730 beqs 42262 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 42232: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42234: 4e90 jsr %a0@ <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 42236: 588f addql #4,%sp <== NOT EXECUTED 42238: 4a82 tstl %d2 <== NOT EXECUTED 4223a: 674e beqs 4228a <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 4223c: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 42240: 4a88 tstl %a0 <== NOT EXECUTED 42242: 6700 009c beqw 422e0 <== NOT EXECUTED 42246: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 4224a: 4a88 tstl %a0 <== NOT EXECUTED 4224c: 6700 0092 beqw 422e0 <== NOT EXECUTED 42250: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42252: 4e90 jsr %a0@ <== NOT EXECUTED 42254: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 42256: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4225c: 4e5e unlk %fp <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); 4225e: 700d moveq #13,%d0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 42260: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 42262: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 42266: 4a88 tstl %a0 <== NOT EXECUTED 42268: 6706 beqs 42270 <== NOT EXECUTED 4226a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4226c: 4e90 jsr %a0@ <== NOT EXECUTED 4226e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 42270: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 42276: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 4227c: 2040 moveal %d0,%a0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 4227e: 4e5e unlk %fp <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 42280: 70ff moveq #-1,%d0 <== NOT EXECUTED 42282: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 42288: 4e75 rts <== 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 ) { 4228a: 7202 moveq #2,%d1 <== NOT EXECUTED 4228c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4228e: 66ac bnes 4223c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 42290: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 42294: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 42298: 20ae 0008 movel %fp@(8),%a0@ <== NOT EXECUTED device_info->device_name_length = strlen( name ); 4229c: 4eb9 0004 df90 jsr 4df90 <== NOT EXECUTED 422a2: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 422a6: 2340 0004 movel %d0,%a1@(4) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 422aa: 47ea 004c lea %a2@(76),%a3 <== NOT EXECUTED 422ae: 2353 0008 movel %a3@,%a1@(8) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 422b2: d5fc 0000 0050 addal #80,%a2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 422b8: 206e fff8 moveal %fp@(-8),%a0 <== 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; 422bc: 2352 000c movel %a2@,%a1@(12) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 422c0: 588f addql #4,%sp <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 422c2: 4a88 tstl %a0 <== NOT EXECUTED 422c4: 6726 beqs 422ec <== NOT EXECUTED 422c6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 422ca: 4a88 tstl %a0 <== NOT EXECUTED 422cc: 671e beqs 422ec <== NOT EXECUTED 422ce: 2f03 movel %d3,%sp@- <== NOT EXECUTED 422d0: 4e90 jsr %a0@ <== NOT EXECUTED 422d2: 588f addql #4,%sp <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 422d4: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED 422da: 4e5e unlk %fp <== 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 ); 422dc: 4280 clrl %d0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 422de: 4e75 rts <== NOT EXECUTED 422e0: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED 422e6: 4e5e unlk %fp <== 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 ); 422e8: 700d moveq #13,%d0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 422ea: 4e75 rts <== NOT EXECUTED 422ec: 4cee 0c0c ffe0 moveml %fp@(-32),%d2-%d3/%a2-%a3 <== NOT EXECUTED 422f2: 4e5e unlk %fp <== 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 ); 422f4: 4280 clrl %d0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 422f6: 4e75 rts 0004c2bc : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4c2bc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c2c0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4c2c2: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4c2c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c2c8: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4c2cc: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c2d0: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 4c2d6: 642c bccs 4c304 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; 4c2d8: 2002 movel %d2,%d0 <== NOT EXECUTED 4c2da: 2202 movel %d2,%d1 <== NOT EXECUTED 4c2dc: 2079 0005 89d2 moveal 589d2 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4c2e2: e788 lsll #3,%d0 <== NOT EXECUTED 4c2e4: eb89 lsll #5,%d1 <== NOT EXECUTED 4c2e6: 9280 subl %d0,%d1 <== NOT EXECUTED 4c2e8: 2030 1804 movel %a0@(00000004,%d1:l),%d0 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c2ec: 6718 beqs 4c306 <== NOT EXECUTED 4c2ee: 2d49 0010 movel %a1,%fp@(16) <== NOT EXECUTED 4c2f2: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c2f4: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4c2f8: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4c2fc: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c2fe: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c300: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c302: 4ed1 jmp %a1@ <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c304: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4c306: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c308: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c30a: 4e5e unlk %fp <== NOT EXECUTED 4c30c: 4e75 rts <== NOT EXECUTED ... 0004c310 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4c310: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c314: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4c316: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4c31a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c31c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4c320: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c324: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 4c32a: 642c bccs 4c358 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; 4c32c: 2002 movel %d2,%d0 <== NOT EXECUTED 4c32e: 2202 movel %d2,%d1 <== NOT EXECUTED 4c330: 2079 0005 89d2 moveal 589d2 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4c336: e788 lsll #3,%d0 <== NOT EXECUTED 4c338: eb89 lsll #5,%d1 <== NOT EXECUTED 4c33a: 9280 subl %d0,%d1 <== NOT EXECUTED 4c33c: 2030 180c movel %a0@(0000000c,%d1:l),%d0 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c340: 6718 beqs 4c35a <== NOT EXECUTED 4c342: 2d49 0010 movel %a1,%fp@(16) <== NOT EXECUTED 4c346: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c348: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4c34c: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4c350: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c352: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c354: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c356: 4ed1 jmp %a1@ <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c358: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4c35a: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c35c: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c35e: 4e5e unlk %fp <== NOT EXECUTED 4c360: 4e75 rts <== NOT EXECUTED ... 000472f8 : 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 ) { 472f8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 472fc: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 47300: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47304: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 47308: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 4730c: 4a89 tstl %a1 <== NOT EXECUTED 4730e: 6700 00b0 beqw 473c0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !registered_major ) 47312: 4a8b tstl %a3 <== NOT EXECUTED 47314: 6700 00aa beqw 473c0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 47318: 4a91 tstl %a1@ <== NOT EXECUTED 4731a: 6700 009c beqw 473b8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; *registered_major = 0; 4731e: 4293 clrl %a3@ <== NOT EXECUTED /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 47320: 2239 0005 ac5a movel 5ac5a <_IO_Number_of_drivers>,%d1 <== NOT EXECUTED 47326: b481 cmpl %d1,%d2 <== NOT EXECUTED 47328: 6464 bccs 4738e <== NOT EXECUTED /* * Test for initialise/open being present to indicate the driver slot is * in use. */ if ( major == 0 ) { 4732a: 4a82 tstl %d2 <== NOT EXECUTED 4732c: 666a bnes 47398 <== NOT EXECUTED bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 4732e: 2401 movel %d1,%d2 <== NOT EXECUTED 47330: 5382 subql #1,%d2 <== NOT EXECUTED 47332: 6722 beqs 47356 <== NOT EXECUTED 47334: 2079 0005 ac5e moveal 5ac5e <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4733a: 2001 movel %d1,%d0 <== NOT EXECUTED 4733c: e789 lsll #3,%d1 <== NOT EXECUTED 4733e: eb88 lsll #5,%d0 <== NOT EXECUTED 47340: 91c1 subal %d1,%a0 <== NOT EXECUTED 47342: 41f0 08e8 lea %a0@(ffffffe8,%d0:l),%a0 <== NOT EXECUTED 47346: 2448 moveal %a0,%a2 <== NOT EXECUTED if ( !_IO_Driver_address_table[major].initialization_entry && 47348: 4a90 tstl %a0@ <== NOT EXECUTED 4734a: 6714 beqs 47360 <== NOT EXECUTED * in use. */ if ( major == 0 ) { bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 4734c: 5382 subql #1,%d2 <== NOT EXECUTED 4734e: d1fc ffff ffe8 addal #-24,%a0 <== NOT EXECUTED 47354: 66f0 bnes 47346 <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); } 47356: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 4735a: 4e5e unlk %fp <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 4735c: 7005 moveq #5,%d0 <== NOT EXECUTED } 4735e: 4e75 rts <== NOT EXECUTED */ if ( major == 0 ) { bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { if ( !_IO_Driver_address_table[major].initialization_entry && 47360: 4aa8 0004 tstl %a0@(4) <== NOT EXECUTED 47364: 66e6 bnes 4734c <== NOT EXECUTED if ( _IO_Driver_address_table[major].initialization_entry || _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; 47366: 204a moveal %a2,%a0 <== NOT EXECUTED 47368: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 4736a: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 4736c: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 4736e: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 47370: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 47372: 2091 movel %a1@,%a0@ <== NOT EXECUTED *registered_major = major; 47374: 2682 movel %d2,%a3@ <== NOT EXECUTED return rtems_io_initialize( major, 0, NULL ); 47376: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED 4737a: 42ae 0010 clrl %fp@(16) <== NOT EXECUTED 4737e: 42ae 000c clrl %fp@(12) <== NOT EXECUTED } 47382: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 47386: 4e5e unlk %fp <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 47388: 4ef9 0004 7128 jmp 47128 <== NOT EXECUTED } 4738e: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 47392: 4e5e unlk %fp <== NOT EXECUTED *registered_major = 0; /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 47394: 700a moveq #10,%d0 <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); } 47396: 4e75 rts <== NOT EXECUTED if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 47398: 2202 movel %d2,%d1 <== NOT EXECUTED 4739a: 2002 movel %d2,%d0 <== NOT EXECUTED 4739c: 2479 0005 ac5e moveal 5ac5e <_IO_Driver_address_table>,%a2 <== NOT EXECUTED 473a2: e789 lsll #3,%d1 <== NOT EXECUTED 473a4: eb88 lsll #5,%d0 <== NOT EXECUTED 473a6: 9081 subl %d1,%d0 <== NOT EXECUTED 473a8: d5c0 addal %d0,%a2 <== NOT EXECUTED 473aa: 4a92 tstl %a2@ <== NOT EXECUTED 473ac: 671c beqs 473ca <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 473ae: 700c moveq #12,%d0 <== NOT EXECUTED } 473b0: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 473b4: 4e5e unlk %fp <== NOT EXECUTED 473b6: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !registered_major ) return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 473b8: 4aa9 0004 tstl %a1@(4) <== NOT EXECUTED 473bc: 6600 ff60 bnew 4731e <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); } 473c0: 4cd7 0c04 moveml %sp@,%d2/%a2-%a3 <== NOT EXECUTED 473c4: 4e5e unlk %fp <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 473c6: 7009 moveq #9,%d0 <== NOT EXECUTED } 473c8: 4e75 rts <== NOT EXECUTED if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 473ca: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED 473ce: 6796 beqs 47366 <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 473d0: 700c moveq #12,%d0 <== NOT EXECUTED 473d2: 60dc bras 473b0 <== NOT EXECUTED 000422f8 : rtems_status_code rtems_io_register_name( const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor ) { 422f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 422fc: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED temp.__overlay.minor = _minor; 42300: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED #if !defined(RTEMS_UNIX) int status; dev_t dev; dev = rtems_filesystem_make_dev_t( major, minor ); status = mknod( device_name, 0777 | S_IFCHR, dev ); 42304: 2f01 movel %d1,%sp@- <== NOT EXECUTED 42306: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42308: 4878 21ff pea 21ff <== NOT EXECUTED 4230c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42310: 4eb9 0004 28a0 jsr 428a0 <== NOT EXECUTED /* this is the only error returned by the old version */ if ( status ) 42316: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 4231c: 4a80 tstl %d0 <== NOT EXECUTED 4231e: 6604 bnes 42324 <== NOT EXECUTED return RTEMS_TOO_MANY; #endif return RTEMS_SUCCESSFUL; } 42320: 4e5e unlk %fp <== NOT EXECUTED 42322: 4e75 rts <== NOT EXECUTED 42324: 4e5e unlk %fp <== NOT EXECUTED 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 ) 42326: 7005 moveq #5,%d0 <== NOT EXECUTED return RTEMS_TOO_MANY; #endif return RTEMS_SUCCESSFUL; } 42328: 4e75 rts <== NOT EXECUTED ... 000473d4 : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { 473d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 473d8: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED if ( major < _IO_Number_of_drivers ) { 473dc: b2b9 0005 ac5a cmpl 5ac5a <_IO_Number_of_drivers>,%d1 <== NOT EXECUTED 473e2: 6506 bcss 473ea <== NOT EXECUTED sizeof( rtems_driver_address_table ) ); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 473e4: 4e5e unlk %fp <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( major < _IO_Number_of_drivers ) { 473e6: 700d moveq #13,%d0 <== NOT EXECUTED sizeof( rtems_driver_address_table ) ); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 473e8: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( major < _IO_Number_of_drivers ) { memset( 473ea: 2079 0005 ac5e moveal 5ac5e <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 473f0: 2001 movel %d1,%d0 <== NOT EXECUTED 473f2: eb88 lsll #5,%d0 <== NOT EXECUTED 473f4: e789 lsll #3,%d1 <== NOT EXECUTED 473f6: 9081 subl %d1,%d0 <== NOT EXECUTED 473f8: d1c0 addal %d0,%a0 <== NOT EXECUTED 473fa: 4298 clrl %a0@+ <== NOT EXECUTED 473fc: 4280 clrl %d0 <== NOT EXECUTED 473fe: 4298 clrl %a0@+ <== NOT EXECUTED 47400: 4298 clrl %a0@+ <== NOT EXECUTED 47402: 4298 clrl %a0@+ <== NOT EXECUTED 47404: 4298 clrl %a0@+ <== NOT EXECUTED 47406: 4290 clrl %a0@ <== NOT EXECUTED sizeof( rtems_driver_address_table ) ); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 47408: 4e5e unlk %fp <== NOT EXECUTED 4740a: 4e75 rts 0004c364 : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4c364: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c368: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4c36a: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4c36e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c370: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4c374: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c378: b4b9 0005 89ce cmpl 589ce <_IO_Number_of_drivers>,%d2 <== NOT EXECUTED 4c37e: 642c bccs 4c3ac <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; 4c380: 2002 movel %d2,%d0 <== NOT EXECUTED 4c382: 2202 movel %d2,%d1 <== NOT EXECUTED 4c384: 2079 0005 89d2 moveal 589d2 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 4c38a: e788 lsll #3,%d0 <== NOT EXECUTED 4c38c: eb89 lsll #5,%d1 <== NOT EXECUTED 4c38e: 9280 subl %d0,%d1 <== NOT EXECUTED 4c390: 2030 1810 movel %a0@(00000010,%d1:l),%d0 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c394: 6718 beqs 4c3ae <== NOT EXECUTED 4c396: 2d49 0010 movel %a1,%fp@(16) <== NOT EXECUTED 4c39a: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c39c: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4c3a0: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 4c3a4: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c3a6: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c3a8: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4c3aa: 4ed1 jmp %a1@ <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4c3ac: 700a moveq #10,%d0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4c3ae: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c3b0: 261f movel %sp@+,%d3 <== NOT EXECUTED 4c3b2: 4e5e unlk %fp <== NOT EXECUTED 4c3b4: 4e75 rts <== NOT EXECUTED ... 00048304 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 48304: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 48308: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 4830c: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 48310: 4a8c tstl %a4 <== NOT EXECUTED 48312: 6744 beqs 48358 <== NOT EXECUTED return; 48314: 47f9 0006 2d38 lea 62d38 <_Objects_Information_table+0x4>,%a3 <== NOT EXECUTED for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 4831a: 2053 moveal %a3@,%a0 <== NOT EXECUTED 4831c: 4a88 tstl %a0 <== NOT EXECUTED 4831e: 672e beqs 4834e <== NOT EXECUTED continue; information = _Objects_Information_table[ api_index ][ 1 ]; 48320: 2468 0004 moveal %a0@(4),%a2 <== NOT EXECUTED if ( information ) { 48324: 4a8a tstl %a2 <== NOT EXECUTED 48326: 6726 beqs 4834e <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { 48328: 4a6a 000e tstw %a2@(14) <== NOT EXECUTED 4832c: 6720 beqs 4834e <== NOT EXECUTED 4832e: 7401 moveq #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 48330: 206a 001a moveal %a2@(26),%a0 <== NOT EXECUTED 48334: 2030 2c00 movel %a0@(00000000,%d2:l:4),%d0 <== NOT EXECUTED 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++ ) { 48338: 5282 addql #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 4833a: 4a80 tstl %d0 <== NOT EXECUTED 4833c: 6706 beqs 48344 <== NOT EXECUTED continue; (*routine)(the_thread); 4833e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48340: 4e94 jsr %a4@ <== NOT EXECUTED 48342: 588f addql #4,%sp <== NOT EXECUTED 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++ ) { 48344: 4280 clrl %d0 <== NOT EXECUTED 48346: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED 4834a: b480 cmpl %d0,%d2 <== NOT EXECUTED 4834c: 63e2 blss 48330 <== NOT EXECUTED 4834e: 588b addql #4,%a3 <== NOT EXECUTED if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 48350: b7fc 0006 2d48 cmpal #404808,%a3 <== NOT EXECUTED 48356: 66c2 bnes 4831a <== NOT EXECUTED (*routine)(the_thread); } } } } 48358: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 4835e: 4e5e unlk %fp <== NOT EXECUTED 48360: 4e75 rts <== NOT EXECUTED ... 0004a7d6 : * 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 ) { 4a7d6: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4a7da: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a7dc: 42a7 clrl %sp@- <== NOT EXECUTED 4a7de: 42a7 clrl %sp@- <== NOT EXECUTED 4a7e0: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a7e6: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED if (rtems_libio_iop_freelist) { 4a7ec: 2039 0005 85f0 movel 585f0 ,%d0 <== NOT EXECUTED 4a7f2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4a7f8: 6618 bnes 4a812 <== NOT EXECUTED failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 4a7fa: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a800: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED } failed: iop = 0; done: 4a806: 95ca subal %a2,%a2 <== NOT EXECUTED rtems_semaphore_release( rtems_libio_semaphore ); return iop; } 4a808: 200a movel %a2,%d0 <== NOT EXECUTED 4a80a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4a80e: 4e5e unlk %fp <== NOT EXECUTED 4a810: 4e75 rts <== NOT EXECUTED rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create( 4a812: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4a816: 90b9 0005 85ec subl 585ec ,%d0 <== NOT EXECUTED 4a81c: 42a7 clrl %sp@- <== NOT EXECUTED 4a81e: 223c c4ec 4ec5 movel #-991146299,%d1 <== NOT EXECUTED 4a824: 4878 0054 pea 54 <== NOT EXECUTED 4a828: e480 asrl #2,%d0 <== NOT EXECUTED 4a82a: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 4a82e: 4878 0001 pea 1 <== NOT EXECUTED 4a832: 0080 4c42 4900 oril #1279412480,%d0 <== NOT EXECUTED 4a838: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a83a: 4eb9 0004 5920 jsr 45920 <== NOT EXECUTED 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) 4a840: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 4a846: 4a80 tstl %d0 <== NOT EXECUTED 4a848: 66b0 bnes 4a7fa <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 4a84a: 2479 0005 85f0 moveal 585f0 ,%a2 <== NOT EXECUTED next = iop->data1; 4a850: 202a 0028 movel %a2@(40),%d0 <== NOT EXECUTED (void) memset( iop, 0, sizeof(rtems_libio_t) ); 4a854: 204a moveal %a2,%a0 <== NOT EXECUTED 4a856: 4298 clrl %a0@+ <== NOT EXECUTED 4a858: 4298 clrl %a0@+ <== NOT EXECUTED 4a85a: 4298 clrl %a0@+ <== NOT EXECUTED 4a85c: 4298 clrl %a0@+ <== NOT EXECUTED 4a85e: 4298 clrl %a0@+ <== NOT EXECUTED 4a860: 4298 clrl %a0@+ <== NOT EXECUTED 4a862: 4298 clrl %a0@+ <== NOT EXECUTED 4a864: 4298 clrl %a0@+ <== NOT EXECUTED 4a866: 4298 clrl %a0@+ <== NOT EXECUTED 4a868: 4298 clrl %a0@+ <== NOT EXECUTED 4a86a: 4298 clrl %a0@+ <== NOT EXECUTED 4a86c: 4298 clrl %a0@+ <== NOT EXECUTED 4a86e: 4290 clrl %a0@ <== NOT EXECUTED iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 4a870: 256e fffc 0020 movel %fp@(-4),%a2@(32) <== NOT EXECUTED rtems_libio_iop_freelist = next; 4a876: 23c0 0005 85f0 movel %d0,585f0 <== NOT EXECUTED if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; 4a87c: 203c 0000 0100 movel #256,%d0 <== NOT EXECUTED 4a882: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 4a886: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a88c: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED return iop; } 4a892: 200a movel %a2,%d0 <== NOT EXECUTED 4a894: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4a898: 4e5e unlk %fp <== NOT EXECUTED 4a89a: 4e75 rts 0004a89c : }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { 4a89c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a8a0: 2f03 movel %d3,%sp@- <== NOT EXECUTED * 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 ); 4a8a2: 7003 moveq #3,%d0 <== NOT EXECUTED }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { 4a8a4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a8a6: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED * 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 ); 4a8aa: c082 andl %d2,%d0 <== NOT EXECUTED 4a8ac: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a8ae: 4879 0005 5f38 pea 55f38 <== NOT EXECUTED 4a8b4: 4eb9 0004 bfcc jsr 4bfcc <== NOT EXECUTED 4a8ba: 2600 movel %d0,%d3 <== NOT EXECUTED /* * Everything else is single bits */ flags |= 4a8bc: 70fc moveq #-4,%d0 <== NOT EXECUTED 4a8be: c082 andl %d2,%d0 <== NOT EXECUTED 4a8c0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a8c2: 4879 0005 5f68 pea 55f68 <== NOT EXECUTED 4a8c8: 4eb9 0004 bf80 jsr 4bf80 <== NOT EXECUTED rtems_assoc_local_by_remote_bitfield(status_flags_assoc, fcntl_flags); return flags; } 4a8ce: 8083 orl %d3,%d0 <== NOT EXECUTED 4a8d0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a8d4: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4a8d8: 4e5e unlk %fp <== NOT EXECUTED 4a8da: 4e75 rts 0004a746 : */ void rtems_libio_free( rtems_libio_t *iop ) { 4a746: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a74a: 2f0a movel %a2,%sp@- <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a74c: 42a7 clrl %sp@- <== NOT EXECUTED */ void rtems_libio_free( rtems_libio_t *iop ) { 4a74e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a752: 42a7 clrl %sp@- <== NOT EXECUTED 4a754: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a75a: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED if (iop->sem) 4a760: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 4a764: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4a76a: 6630 bnes 4a79c <== NOT EXECUTED rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; 4a76c: 41f9 0005 85f0 lea 585f0 ,%a0 <== NOT EXECUTED 4a772: 2550 0028 movel %a0@,%a2@(40) <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4a776: 203c ffff feff movel #-257,%d0 <== NOT EXECUTED iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; 4a77c: 23ca 0005 85f0 movel %a2,585f0 <== NOT EXECUTED rtems_semaphore_release(rtems_libio_semaphore); 4a782: 41f9 0005 85f4 lea 585f4 ,%a0 <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4a788: c1aa 000c andl %d0,%a2@(12) <== NOT EXECUTED iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); } 4a78c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4a790: 2d50 0008 movel %a0@,%fp@(8) <== NOT EXECUTED } 4a794: 4e5e unlk %fp <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4a796: 4ef9 0004 5d10 jmp 45d10 <== NOT EXECUTED ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); 4a79c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a79e: 4eb9 0004 5b08 jsr 45b08 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; 4a7a4: 41f9 0005 85f0 lea 585f0 ,%a0 <== NOT EXECUTED 4a7aa: 2550 0028 movel %a0@,%a2@(40) <== NOT EXECUTED rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; 4a7ae: 203c ffff feff movel #-257,%d0 <== NOT EXECUTED 4a7b4: c1aa 000c andl %d0,%a2@(12) <== NOT EXECUTED iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; 4a7b8: 23ca 0005 85f0 movel %a2,585f0 <== NOT EXECUTED rtems_semaphore_release(rtems_libio_semaphore); 4a7be: 41f9 0005 85f4 lea 585f4 ,%a0 <== NOT EXECUTED ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); 4a7c4: 588f addql #4,%sp <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); } 4a7c6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4a7ca: 2d50 0008 movel %a0@,%fp@(8) <== NOT EXECUTED } 4a7ce: 4e5e unlk %fp <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 4a7d0: 4ef9 0004 5d10 jmp 45d10 <== NOT EXECUTED 00042750 : { rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 42750: 2039 0005 6b98 movel 56b98 ,%d0 <== NOT EXECUTED * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 42756: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4275a: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 4275c: 4a80 tstl %d0 <== NOT EXECUTED 4275e: 6756 beqs 427b6 <== NOT EXECUTED { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 42760: 4878 0034 pea 34 <== NOT EXECUTED 42764: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42766: 4eb9 0004 a2d4 jsr 4a2d4 <== NOT EXECUTED sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 4276c: 508f addql #8,%sp <== NOT EXECUTED int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 4276e: 2240 moveal %d0,%a1 <== NOT EXECUTED 42770: 23c0 0005 85ec movel %d0,585ec <== NOT EXECUTED 42776: 2040 moveal %d0,%a0 <== NOT EXECUTED sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 42778: 676e beqs 427e8 <== NOT EXECUTED rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 4277a: 2039 0005 6b98 movel 56b98 ,%d0 <== NOT EXECUTED 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; 42780: 23c9 0005 85f0 movel %a1,585f0 <== NOT EXECUTED for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 42786: 7201 moveq #1,%d1 <== NOT EXECUTED 42788: b280 cmpl %d0,%d1 <== NOT EXECUTED 4278a: 6726 beqs 427b2 <== NOT EXECUTED 4278c: 41e9 0034 lea %a1@(52),%a0 <== NOT EXECUTED 42790: 7401 moveq #1,%d2 <== NOT EXECUTED iop->data1 = iop + 1; 42792: 2148 fff4 movel %a0,%a0@(-12) <== NOT EXECUTED 42796: 5282 addql #1,%d2 <== NOT EXECUTED 42798: d1fc 0000 0034 addal #52,%a0 <== NOT EXECUTED 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 < (rtems_libio_number_iops - 1) ; i++, iop++) 4279e: b082 cmpl %d2,%d0 <== NOT EXECUTED 427a0: 66f0 bnes 42792 <== NOT EXECUTED 427a2: 2202 movel %d2,%d1 <== NOT EXECUTED 427a4: 2002 movel %d2,%d0 <== NOT EXECUTED 427a6: e589 lsll #2,%d1 <== NOT EXECUTED 427a8: e988 lsll #4,%d0 <== NOT EXECUTED 427aa: 9081 subl %d1,%d0 <== NOT EXECUTED 427ac: d082 addl %d2,%d0 <== NOT EXECUTED 427ae: 41f1 0ccc lea %a1@(ffffffcc,%d0:l:4),%a0 <== NOT EXECUTED iop->data1 = iop + 1; iop->data1 = NULL; 427b2: 42a8 0028 clrl %a0@(40) <== NOT EXECUTED /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 427b6: 4879 0005 85f4 pea 585f4 <== NOT EXECUTED 427bc: 42a7 clrl %sp@- <== NOT EXECUTED 427be: 4878 0054 pea 54 <== NOT EXECUTED 427c2: 4878 0001 pea 1 <== NOT EXECUTED 427c6: 2f3c 4c42 494f movel #1279412559,%sp@- <== NOT EXECUTED 427cc: 4eb9 0004 5920 jsr 45920 <== NOT EXECUTED 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 427d2: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 427d8: 4a80 tstl %d0 <== NOT EXECUTED 427da: 6616 bnes 427f2 <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); } 427dc: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 427e0: 4e5e unlk %fp <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 427e2: 4ef9 0004 a1b8 jmp 4a1b8 <== 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); 427e8: 4878 001a pea 1a <== NOT EXECUTED 427ec: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); 427f2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 427f4: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED ... 0004a63a : */ int rtems_libio_is_file_open( void *node_access ) { 4a63a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a63e: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a640: 42a7 clrl %sp@- <== NOT EXECUTED */ int rtems_libio_is_file_open( void *node_access ) { 4a642: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a646: 42a7 clrl %sp@- <== NOT EXECUTED 4a648: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a64e: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a654: 2039 0005 85ec movel 585ec ,%d0 <== NOT EXECUTED 4a65a: 2279 0005 6b98 moveal 56b98 ,%a1 <== NOT EXECUTED 4a660: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4a666: 4a89 tstl %a1 <== NOT EXECUTED 4a668: 6726 beqs 4a690 <== NOT EXECUTED 4a66a: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a66c: d1fc 0000 000c addal #12,%a0 <== NOT EXECUTED 4a672: 4281 clrl %d1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 4a674: 2010 movel %a0@,%d0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a676: 5281 addql #1,%d1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 4a678: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 4a67e: 6706 beqs 4a686 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 4a680: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED 4a684: 6722 beqs 4a6a8 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a686: d1fc 0000 0034 addal #52,%a0 <== NOT EXECUTED 4a68c: b3c1 cmpal %d1,%a1 <== NOT EXECUTED 4a68e: 62e4 bhis 4a674 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 4a690: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a696: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a69c: 4282 clrl %d2 <== NOT EXECUTED } rtems_semaphore_release( rtems_libio_semaphore ); return result; } 4a69e: 2002 movel %d2,%d0 <== NOT EXECUTED 4a6a0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a6a4: 4e5e unlk %fp <== NOT EXECUTED 4a6a6: 4e75 rts <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 4a6a8: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a6ae: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 4a6b4: 7401 moveq #1,%d2 <== NOT EXECUTED } rtems_semaphore_release( rtems_libio_semaphore ); return result; } 4a6b6: 2002 movel %d2,%d0 <== NOT EXECUTED 4a6b8: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a6bc: 4e5e unlk %fp <== NOT EXECUTED 4a6be: 4e75 rts 0004a6c0 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 4a6c0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a6c4: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a6c6: 42a7 clrl %sp@- <== NOT EXECUTED */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 4a6c8: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 4a6cc: 42a7 clrl %sp@- <== NOT EXECUTED 4a6ce: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a6d4: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a6da: 2039 0005 85ec movel 585ec ,%d0 <== NOT EXECUTED 4a6e0: 2279 0005 6b98 moveal 56b98 ,%a1 <== NOT EXECUTED 4a6e6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4a6ec: 4a89 tstl %a1 <== NOT EXECUTED 4a6ee: 6726 beqs 4a716 <== NOT EXECUTED 4a6f0: 2040 moveal %d0,%a0 <== NOT EXECUTED 4a6f2: d1fc 0000 000c addal #12,%a0 <== NOT EXECUTED 4a6f8: 4281 clrl %d1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 4a6fa: 2010 movel %a0@,%d0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a6fc: 5281 addql #1,%d1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 4a6fe: 0280 0000 0100 andil #256,%d0 <== NOT EXECUTED 4a704: 6706 beqs 4a70c <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { 4a706: b4a8 0010 cmpl %a0@(16),%d2 <== NOT EXECUTED 4a70a: 6722 beqs 4a72e <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a70c: d1fc 0000 0034 addal #52,%a0 <== NOT EXECUTED 4a712: b3c1 cmpal %d1,%a1 <== NOT EXECUTED 4a714: 62e4 bhis 4a6fa <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 4a716: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a71c: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 4a722: 4282 clrl %d2 <== NOT EXECUTED } rtems_semaphore_release( rtems_libio_semaphore ); return result; } 4a724: 2002 movel %d2,%d0 <== NOT EXECUTED 4a726: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a72a: 4e5e unlk %fp <== NOT EXECUTED 4a72c: 4e75 rts <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 4a72e: 2f39 0005 85f4 movel 585f4 ,%sp@- <== NOT EXECUTED 4a734: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { 4a73a: 7401 moveq #1,%d2 <== NOT EXECUTED } rtems_semaphore_release( rtems_libio_semaphore ); return result; } 4a73c: 2002 movel %d2,%d0 <== NOT EXECUTED 4a73e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4a742: 4e5e unlk %fp <== NOT EXECUTED 4a744: 4e75 rts 00061784 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 61784: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED 61788: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 6178c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 61790: 42a7 clrl %sp@- <== NOT EXECUTED 61792: 42a7 clrl %sp@- <== NOT EXECUTED 61794: 4eb9 0006 2afc jsr 62afc <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 6179a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED rtems_status_code rtems_libio_set_private_env(void) { rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 617a0: 2400 movel %d0,%d2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 617a2: 6600 00ae bnew 61852 <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 617a6: 203c 0009 a194 movel #631188,%d0 <== NOT EXECUTED 617ac: b0b9 0008 4c80 cmpl 84c80 ,%d0 <== NOT EXECUTED 617b2: 6700 00aa beqw 6185e <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 617b6: 4878 0040 pea 40 <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 617ba: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 617be: 4879 0009 a194 pea 9a194 <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 617c4: 47f9 0004 60a0 lea 460a0 ,%a3 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 617ca: 2f39 0008 4c80 movel 84c80 ,%sp@- <== NOT EXECUTED 617d0: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED rtems_current_user_env->task_id=task_id; /* mark the local values*/ 617d6: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 617dc: 2279 0009 9d9c moveal 99d9c ,%a1 <== NOT EXECUTED 617e2: 2169 0018 0014 movel %a1@(24),%a0@(20) <== NOT EXECUTED * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 617e8: 49ee fff8 lea %fp@(-8),%a4 <== NOT EXECUTED *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; 617ec: 2169 001c 0018 movel %a1@(28),%a0@(24) <== NOT EXECUTED } 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*/ 617f2: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 617f6: 2169 0020 001c movel %a1@(32),%a0@(28) <== NOT EXECUTED 617fc: 2169 0024 0020 movel %a1@(36),%a0@(32) <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 61802: 42a7 clrl %sp@- <== NOT EXECUTED 61804: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61806: 42a7 clrl %sp@- <== NOT EXECUTED 61808: 4879 0008 1ea6 pea 81ea6 <== NOT EXECUTED 6180e: 4e93 jsr %a3@ <== NOT EXECUTED rtems_filesystem_root = loc; 61810: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 61816: 2152 0014 movel %a2@,%a0@(20) <== NOT EXECUTED 6181a: 216e fff0 0018 movel %fp@(-16),%a0@(24) <== NOT EXECUTED 61820: 216e fff4 001c movel %fp@(-12),%a0@(28) <== NOT EXECUTED 61826: 2154 0020 movel %a4@,%a0@(32) <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 6182a: 42a7 clrl %sp@- <== NOT EXECUTED 6182c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6182e: 42a7 clrl %sp@- <== NOT EXECUTED 61830: 4879 0008 1ea6 pea 81ea6 <== NOT EXECUTED 61836: 4e93 jsr %a3@ <== NOT EXECUTED rtems_filesystem_current = loc; 61838: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6183e: 5888 addql #4,%a0 <== NOT EXECUTED 61840: 20d2 movel %a2@,%a0@+ <== NOT EXECUTED 61842: dffc 0000 002c addal #44,%sp <== NOT EXECUTED 61848: 20ee fff0 movel %fp@(-16),%a0@+ <== NOT EXECUTED 6184c: 20ee fff4 movel %fp@(-12),%a0@+ <== NOT EXECUTED 61850: 2094 movel %a4@,%a0@ <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 61852: 2002 movel %d2,%d0 <== NOT EXECUTED 61854: 4cee 1c04 ffdc moveml %fp@(-36),%d2/%a2-%a4 <== NOT EXECUTED 6185a: 4e5e unlk %fp <== NOT EXECUTED 6185c: 4e75 rts <== NOT EXECUTED 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)); 6185e: 4878 0040 pea 40 <== NOT EXECUTED 61862: 4eb9 0004 6828 jsr 46828 <== NOT EXECUTED if (!tmp) 61868: 588f addql #4,%sp <== NOT EXECUTED 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)); 6186a: 2440 moveal %d0,%a2 <== NOT EXECUTED if (!tmp) 6186c: 4a80 tstl %d0 <== NOT EXECUTED 6186e: 6700 00c8 beqw 61938 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); 61872: 487a fdf0 pea %pc@(61664 ) <== NOT EXECUTED 61876: 4879 0008 4c80 pea 84c80 <== NOT EXECUTED 6187c: 42a7 clrl %sp@- <== NOT EXECUTED 6187e: 4eb9 0006 2f04 jsr 62f04 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 61884: dffc 0000 000c addal #12,%sp <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); 6188a: 2640 moveal %d0,%a3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 6188c: 4a80 tstl %d0 <== NOT EXECUTED 6188e: 6600 00b8 bnew 61948 <== NOT EXECUTED * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 61892: 23ca 0008 4c80 movel %a2,84c80 <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 61898: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 6189c: 4878 0040 pea 40 <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 618a0: 47f9 0004 60a0 lea 460a0 ,%a3 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 618a6: 4879 0009 a194 pea 9a194 <== NOT EXECUTED * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 618ac: 49ee fff8 lea %fp@(-8),%a4 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 618b0: 2f39 0008 4c80 movel 84c80 ,%sp@- <== NOT EXECUTED 618b6: 4eb9 0007 1c64 jsr 71c64 <== NOT EXECUTED rtems_current_user_env->task_id=task_id; /* mark the local values*/ 618bc: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 618c2: 2279 0009 9d9c moveal 99d9c ,%a1 <== NOT EXECUTED 618c8: 2169 0018 0014 movel %a1@(24),%a0@(20) <== NOT EXECUTED 618ce: 2169 001c 0018 movel %a1@(28),%a0@(24) <== NOT EXECUTED 618d4: 2169 0020 001c movel %a1@(32),%a0@(28) <== NOT EXECUTED } 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*/ 618da: 20ae fffc movel %fp@(-4),%a0@ <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 618de: 2169 0024 0020 movel %a1@(36),%a0@(32) <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 618e4: 42a7 clrl %sp@- <== NOT EXECUTED 618e6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 618e8: 42a7 clrl %sp@- <== NOT EXECUTED 618ea: 4879 0008 1ea6 pea 81ea6 <== NOT EXECUTED 618f0: 4e93 jsr %a3@ <== NOT EXECUTED rtems_filesystem_root = loc; 618f2: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 618f8: 2152 0014 movel %a2@,%a0@(20) <== NOT EXECUTED 618fc: 216e fff0 0018 movel %fp@(-16),%a0@(24) <== NOT EXECUTED 61902: 216e fff4 001c movel %fp@(-12),%a0@(28) <== NOT EXECUTED 61908: 2154 0020 movel %a4@,%a0@(32) <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 6190c: 42a7 clrl %sp@- <== NOT EXECUTED 6190e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61910: 42a7 clrl %sp@- <== NOT EXECUTED 61912: 4879 0008 1ea6 pea 81ea6 <== NOT EXECUTED 61918: 4e93 jsr %a3@ <== NOT EXECUTED rtems_filesystem_current = loc; 6191a: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 61920: 5888 addql #4,%a0 <== NOT EXECUTED 61922: 20d2 movel %a2@,%a0@+ <== NOT EXECUTED 61924: dffc 0000 002c addal #44,%sp <== NOT EXECUTED 6192a: 20ee fff0 movel %fp@(-16),%a0@+ <== NOT EXECUTED 6192e: 20ee fff4 movel %fp@(-12),%a0@+ <== NOT EXECUTED 61932: 2094 movel %a4@,%a0@ <== NOT EXECUTED 61934: 6000 ff1c braw 61852 <== NOT EXECUTED 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)); if (!tmp) 61938: 143c 001a moveb #26,%d2 <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 6193c: 2002 movel %d2,%d0 <== NOT EXECUTED 6193e: 4cee 1c04 ffdc moveml %fp@(-36),%d2/%a2-%a4 <== NOT EXECUTED 61944: 4e5e unlk %fp <== NOT EXECUTED 61946: 4e75 rts <== NOT EXECUTED 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); 61948: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6194a: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED 61950: 240b movel %a3,%d2 <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 61952: 2002 movel %d2,%d0 <== NOT EXECUTED 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); 61954: 588f addql #4,%sp <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 61956: 4cee 1c04 ffdc moveml %fp@(-36),%d2/%a2-%a4 <== NOT EXECUTED 6195c: 4e5e unlk %fp <== NOT EXECUTED 6195e: 4e75 rts 000616be : * 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) { 616be: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 616c2: 2f0a movel %a2,%sp@- <== 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); 616c4: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 616c8: 42a7 clrl %sp@- <== NOT EXECUTED 616ca: 42a7 clrl %sp@- <== NOT EXECUTED 616cc: 4eb9 0006 2afc jsr 62afc <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 616d2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 616d8: 4a80 tstl %d0 <== NOT EXECUTED 616da: 6638 bnes 61714 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 616dc: 2479 0008 4c80 moveal 84c80 ,%a2 <== NOT EXECUTED 616e2: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 616e6: b092 cmpl %a2@,%d0 <== NOT EXECUTED 616e8: 6732 beqs 6171c <== 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, 616ea: 486e fffc pea %fp@(-4) <== NOT EXECUTED 616ee: 4879 0008 4c80 pea 84c80 <== NOT EXECUTED 616f4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 616f8: 4eb9 0006 3050 jsr 63050 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 616fe: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61704: 4a80 tstl %d0 <== NOT EXECUTED 61706: 674e beqs 61756 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 61708: 223c 0009 a194 movel #631188,%d1 <== NOT EXECUTED 6170e: 23c1 0008 4c80 movel %d1,84c80 <== NOT EXECUTED return sc; } 61714: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 61718: 4e5e unlk %fp <== NOT EXECUTED 6171a: 4e75 rts <== 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); 6171c: 4879 0008 4c80 pea 84c80 <== NOT EXECUTED 61722: 42a7 clrl %sp@- <== NOT EXECUTED 61724: 4eb9 0006 2fb0 jsr 62fb0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 6172a: 508f addql #8,%sp <== NOT EXECUTED 6172c: 4a80 tstl %d0 <== NOT EXECUTED 6172e: 66e4 bnes 61714 <== NOT EXECUTED free_user_env(tmp); 61730: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61732: 4eba ff30 jsr %pc@(61664 ) <== NOT EXECUTED 61736: 588f addql #4,%sp <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 61738: 486e fffc pea %fp@(-4) <== NOT EXECUTED 6173c: 4879 0008 4c80 pea 84c80 <== NOT EXECUTED 61742: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61746: 4eb9 0006 3050 jsr 63050 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 6174c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61752: 4a80 tstl %d0 <== NOT EXECUTED 61754: 66b2 bnes 61708 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 61756: 487a ff0c pea %pc@(61664 ) <== NOT EXECUTED 6175a: 4879 0008 4c80 pea 84c80 <== NOT EXECUTED 61760: 42a7 clrl %sp@- <== NOT EXECUTED 61762: 4eb9 0006 2f04 jsr 62f04 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 61768: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6176e: 4a80 tstl %d0 <== NOT EXECUTED 61770: 6696 bnes 61708 <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; return sc; } 61772: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); if (sc != RTEMS_SUCCESSFUL) goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 61776: 41ee fffc lea %fp@(-4),%a0 <== NOT EXECUTED 6177a: 23d0 0008 4c80 movel %a0@,84c80 <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; return sc; } 61780: 4e5e unlk %fp <== NOT EXECUTED 61782: 4e75 rts 0004a5ec : */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 4a5ec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a5f0: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 4a5f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4a5f6: 7006 moveq #6,%d0 <== NOT EXECUTED 4a5f8: c081 andl %d1,%d0 <== NOT EXECUTED 4a5fa: 7406 moveq #6,%d2 <== NOT EXECUTED 4a5fc: b480 cmpl %d0,%d2 <== NOT EXECUTED 4a5fe: 6736 beqs 4a636 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 4a600: 0801 0001 btst #1,%d1 <== NOT EXECUTED 4a604: 6726 beqs 4a62c <== NOT EXECUTED 4a606: 4280 clrl %d0 <== NOT EXECUTED 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 ) { 4a608: 0801 0000 btst #0,%d1 <== NOT EXECUTED 4a60c: 6704 beqs 4a612 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 4a60e: 08c0 000e bset #14,%d0 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 4a612: 0801 0009 btst #9,%d1 <== NOT EXECUTED 4a616: 6704 beqs 4a61c <== NOT EXECUTED fcntl_flags |= O_APPEND; 4a618: 7408 moveq #8,%d2 <== NOT EXECUTED 4a61a: 8082 orl %d2,%d0 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 4a61c: 0801 000a btst #10,%d1 <== NOT EXECUTED 4a620: 6704 beqs 4a626 <== NOT EXECUTED fcntl_flags |= O_CREAT; 4a622: 08c0 0009 bset #9,%d0 <== NOT EXECUTED } return fcntl_flags; } 4a626: 241f movel %sp@+,%d2 <== NOT EXECUTED 4a628: 4e5e unlk %fp <== NOT EXECUTED 4a62a: 4e75 rts <== NOT EXECUTED { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 4a62c: 2001 movel %d1,%d0 <== NOT EXECUTED 4a62e: e488 lsrl #2,%d0 <== NOT EXECUTED 4a630: 7401 moveq #1,%d2 <== NOT EXECUTED 4a632: c082 andl %d2,%d0 <== NOT EXECUTED 4a634: 60d2 bras 4a608 <== NOT EXECUTED uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 4a636: 7002 moveq #2,%d0 <== NOT EXECUTED 4a638: 60ce bras 4a608 <== NOT EXECUTED 000468f0 : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 468f0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 468f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 468f6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 468fa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 468fe: 4879 0009 9d18 pea 99d18 <== NOT EXECUTED 46904: 4eb9 0004 bf58 jsr 4bf58 <_Protected_heap_Get_block_size> <== NOT EXECUTED 4690a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46910: 4a00 tstb %d0 <== NOT EXECUTED 46912: 671a beqs 4692e <== NOT EXECUTED MSBUMP(lifetime_freed, size); 46914: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 46918: 4280 clrl %d0 <== NOT EXECUTED 4691a: d3b9 0009 9d98 addl %d1,99d98 <== NOT EXECUTED 46920: 2439 0009 9d94 movel 99d94 ,%d2 <== NOT EXECUTED 46926: d580 addxl %d0,%d2 <== NOT EXECUTED 46928: 23c2 0009 9d94 movel %d2,99d94 <== NOT EXECUTED } } 4692e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46932: 4e5e unlk %fp <== NOT EXECUTED 46934: 4e75 rts 00046936 : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 46936: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4693a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4693c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 46940: 2f02 movel %d2,%sp@- <== NOT EXECUTED size_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 46942: 4a80 tstl %d0 <== NOT EXECUTED 46944: 6750 beqs 46996 <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 46946: 204e moveal %fp,%a0 <== NOT EXECUTED 46948: 42a0 clrl %a0@- <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 4694a: 4282 clrl %d2 <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); 4694c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4694e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46950: 4879 0009 9d18 pea 99d18 <== NOT EXECUTED 46956: 4eb9 0004 bf58 jsr 4bf58 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 4695c: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 46960: 2039 0009 9d8c movel 99d8c ,%d0 <== NOT EXECUTED 46966: d6b9 0009 9d90 addl 99d90 ,%d3 <== NOT EXECUTED 4696c: d580 addxl %d0,%d2 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 4696e: 2003 movel %d3,%d0 <== NOT EXECUTED 46970: 90b9 0009 9d98 subl 99d98 ,%d0 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 46976: 23c2 0009 9d8c movel %d2,99d8c <== NOT EXECUTED 4697c: 23c3 0009 9d90 movel %d3,99d90 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 46982: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46988: b0b9 0009 9d88 cmpl 99d88 ,%d0 <== NOT EXECUTED 4698e: 6306 blss 46996 <== NOT EXECUTED s->max_depth = current_depth; 46990: 23c0 0009 9d88 movel %d0,99d88 <== NOT EXECUTED } 46996: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 4699a: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4699e: 4e5e unlk %fp <== NOT EXECUTED 469a0: 4e75 rts 000469a2 : #include #include void rtems_malloc_statistics_initialize( void ) { 469a2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); } 469a6: 4e5e unlk %fp <== NOT EXECUTED void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 469a8: 42b9 0009 9d70 clrl 99d70 <== NOT EXECUTED 469ae: 42b9 0009 9d74 clrl 99d74 <== NOT EXECUTED 469b4: 42b9 0009 9d78 clrl 99d78 <== NOT EXECUTED 469ba: 42b9 0009 9d7c clrl 99d7c <== NOT EXECUTED 469c0: 42b9 0009 9d80 clrl 99d80 <== NOT EXECUTED 469c6: 42b9 0009 9d84 clrl 99d84 <== NOT EXECUTED 469cc: 42b9 0009 9d88 clrl 99d88 <== NOT EXECUTED 469d2: 42b9 0009 9d8c clrl 99d8c <== NOT EXECUTED 469d8: 42b9 0009 9d90 clrl 99d90 <== NOT EXECUTED 469de: 42b9 0009 9d94 clrl 99d94 <== NOT EXECUTED 469e4: 42b9 0009 9d98 clrl 99d98 <== NOT EXECUTED } 469ea: 4e75 rts 00045ff4 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 45ff4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45ff8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45ffa: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 45ffe: 2f02 movel %d2,%sp@- <== NOT EXECUTED void *return_this; /* * Parameter error checks */ if ( !pointer ) 46000: 4a8a tstl %a2 <== NOT EXECUTED 46002: 675e beqs 46062 <== NOT EXECUTED return EINVAL; *pointer = NULL; 46004: 4292 clrl %a2@ <== NOT EXECUTED /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 46006: 7003 moveq #3,%d0 <== NOT EXECUTED 46008: b0b9 0005 c92a cmpl 5c92a <_System_state_Current>,%d0 <== NOT EXECUTED 4600e: 6748 beqs 46058 <== NOT EXECUTED /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 46010: 4eb9 0004 506a jsr 4506a <== NOT EXECUTED /* * Perform the aligned allocation requested */ return_this = _Protected_heap_Allocate_aligned( 46016: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4601a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4601e: 4879 0005 c63c pea 5c63c <== NOT EXECUTED 46024: 4eb9 0004 ac8c jsr 4ac8c <_Protected_heap_Allocate_aligned> <== NOT EXECUTED &RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 4602a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED /* * Perform the aligned allocation requested */ return_this = _Protected_heap_Allocate_aligned( 46030: 2400 movel %d0,%d2 <== NOT EXECUTED &RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 46032: 673c beqs 46070 <== NOT EXECUTED return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 46034: 2079 0005 b184 moveal 5b184 ,%a0 <== NOT EXECUTED 4603a: 4a88 tstl %a0 <== NOT EXECUTED 4603c: 670a beqs 46048 <== NOT EXECUTED (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 4603e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46040: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 46044: 4e90 jsr %a0@ <== NOT EXECUTED 46046: 588f addql #4,%sp <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 46048: 2482 movel %d2,%a2@ <== NOT EXECUTED return 0; } 4604a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4604e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46052: 4e5e unlk %fp <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 46054: 4280 clrl %d0 <== NOT EXECUTED return 0; } 46056: 4e75 rts <== NOT EXECUTED *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 46058: 4eb9 0004 500c jsr 4500c <== NOT EXECUTED 4605e: 4a00 tstb %d0 <== NOT EXECUTED 46060: 66ae bnes 46010 <== NOT EXECUTED (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; } 46062: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46066: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4606a: 4e5e unlk %fp <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 4606c: 7016 moveq #22,%d0 <== NOT EXECUTED } 4606e: 4e75 rts <== NOT EXECUTED 46070: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46074: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46078: 4e5e unlk %fp <== NOT EXECUTED return_this = _Protected_heap_Allocate_aligned( &RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 4607a: 700c moveq #12,%d0 <== NOT EXECUTED (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; } 4607c: 4e75 rts <== NOT EXECUTED ... 000507e4 : Objects_Id id, const void *buffer, size_t size, uint32_t *count ) { 507e4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 507e8: 2f02 movel %d2,%sp@- <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) 507ea: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 507ee: 676c beqs 5085c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !count ) 507f0: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 507f4: 6766 beqs 5085c <== NOT EXECUTED RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 507f6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 507fa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 507fe: 4879 0007 1846 pea 71846 <_Message_queue_Information> <== NOT EXECUTED 50804: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 5080a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50810: 2040 moveal %d0,%a0 <== NOT EXECUTED 50812: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50816: 663a bnes 50852 <== NOT EXECUTED case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( 50818: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 5081c: 42a7 clrl %sp@- <== NOT EXECUTED 5081e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50822: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 50826: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5082a: 4868 0014 pea %a0@(20) <== NOT EXECUTED 5082e: 4eb9 0005 4108 jsr 54108 <_CORE_message_queue_Broadcast> <== NOT EXECUTED 50834: 2400 movel %d0,%d2 <== NOT EXECUTED NULL, #endif count ); _Thread_Enable_dispatch(); 50836: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return 5083c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5083e: 4eb9 0005 0be0 jsr 50be0 <_Message_queue_Translate_core_message_queue_return_code> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50844: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED #endif count ); _Thread_Enable_dispatch(); return 50848: dffc 0000 001c addal #28,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5084e: 4e5e unlk %fp <== NOT EXECUTED 50850: 4e75 rts <== NOT EXECUTED 50852: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50856: 4e5e unlk %fp <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 50858: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5085a: 4e75 rts <== NOT EXECUTED 5085c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50860: 4e5e unlk %fp <== NOT EXECUTED #endif count ); _Thread_Enable_dispatch(); return 50862: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50864: 4e75 rts <== NOT EXECUTED ... 00050868 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, Objects_Id *id ) { 50868: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5086c: 2f0a movel %a2,%sp@- <== NOT EXECUTED CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) 5086e: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 50872: 6728 beqs 5089c <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 50874: 4aae 0018 tstl %fp@(24) <== NOT EXECUTED 50878: 6700 009e beqw 50918 <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 5087c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 50880: 6710 beqs 50892 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 50882: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 50886: 661e bnes 508a6 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50888: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5088c: 4e5e unlk %fp <== NOT EXECUTED #endif if ( count == 0 ) return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 5088e: 7008 moveq #8,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50890: 4e75 rts <== NOT EXECUTED 50892: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50896: 4e5e unlk %fp <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 50898: 700a moveq #10,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 5089a: 4e75 rts <== NOT EXECUTED 5089c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 508a0: 4e5e unlk %fp <== NOT EXECUTED CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) 508a2: 7003 moveq #3,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 508a4: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 508a6: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 508ac: 5280 addql #1,%d0 <== NOT EXECUTED 508ae: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); 508b4: 4eb9 0005 9700 jsr 59700 <_Message_queue_Allocate> <== NOT EXECUTED 508ba: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( !the_message_queue ) { 508bc: 4a80 tstl %d0 <== NOT EXECUTED 508be: 6700 0092 beqw 50952 <== NOT EXECUTED #endif the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 508c2: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 508c6: 44c0 movew %d0,%ccr <== NOT EXECUTED 508c8: 56c0 sne %d0 <== NOT EXECUTED 508ca: 49c0 extbl %d0 <== NOT EXECUTED 508cc: 204e moveal %fp,%a0 <== NOT EXECUTED 508ce: 5280 addql #1,%d0 <== NOT EXECUTED 508d0: 2100 movel %d0,%a0@- <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 508d2: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 508d6: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED 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; if ( ! _CORE_message_queue_Initialize( 508da: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 508de: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 508e2: 2f08 movel %a0,%sp@- <== NOT EXECUTED 508e4: 486a 0014 pea %a2@(20) <== NOT EXECUTED 508e8: 4eb9 0005 4268 jsr 54268 <_CORE_message_queue_Initialize> <== NOT EXECUTED 508ee: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 508f4: 4a00 tstb %d0 <== NOT EXECUTED 508f6: 662a bnes 50922 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 508f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 508fa: 4879 0007 1846 pea 71846 <_Message_queue_Information> <== NOT EXECUTED 50900: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 50906: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 5090c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 50910: 508f addql #8,%sp <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50912: 4e5e unlk %fp <== NOT EXECUTED _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 50914: 700d moveq #13,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50916: 4e75 rts <== NOT EXECUTED 50918: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5091c: 4e5e unlk %fp <== NOT EXECUTED #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 5091e: 7009 moveq #9,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50920: 4e75 rts <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 50922: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 50926: 2548 000c movel %a0,%a2@(12) <== NOT EXECUTED &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; 5092a: 206e 0018 moveal %fp@(24),%a0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 5092e: 4280 clrl %d0 <== NOT EXECUTED 50930: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 50934: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED 50938: 2079 0007 1860 moveal 71860 <_Message_queue_Information+0x1a>,%a0 <== NOT EXECUTED 5093e: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED name, 0 ); #endif _Thread_Enable_dispatch(); 50942: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 50948: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5094c: 4e5e unlk %fp <== NOT EXECUTED name, 0 ); #endif _Thread_Enable_dispatch(); 5094e: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 50950: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); 50952: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50958: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5095c: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); 5095e: 7005 moveq #5,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50960: 4e75 rts <== NOT EXECUTED ... 000526d8 : */ rtems_status_code rtems_message_queue_delete( Objects_Id id ) { 526d8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 526dc: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 526de: 486e fffc pea %fp@(-4) <== NOT EXECUTED 526e2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 526e6: 4879 0006 6e82 pea 66e82 <_Message_queue_Information> <== NOT EXECUTED 526ec: 4eb9 0004 ccc8 jsr 4ccc8 <_Objects_Get> <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 526f2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 526f8: 2440 moveal %d0,%a2 <== NOT EXECUTED 526fa: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 526fe: 6642 bnes 52742 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, 52700: 2f00 movel %d0,%sp@- <== NOT EXECUTED 52702: 4879 0006 6e82 pea 66e82 <_Message_queue_Information> <== NOT EXECUTED 52708: 4eb9 0004 c838 jsr 4c838 <_Objects_Close> <== NOT EXECUTED &the_message_queue->Object ); _CORE_message_queue_Close( 5270e: 4878 0005 pea 5 <== NOT EXECUTED 52712: 42a7 clrl %sp@- <== NOT EXECUTED 52714: 486a 0014 pea %a2@(20) <== NOT EXECUTED 52718: 4eb9 0005 2d50 jsr 52d50 <_CORE_message_queue_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 5271e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 52720: 4879 0006 6e82 pea 66e82 <_Message_queue_Information> <== NOT EXECUTED 52726: 4eb9 0004 cb5c jsr 4cb5c <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 5272c: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52732: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 52736: dffc 0000 001c addal #28,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5273c: 4e5e unlk %fp <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 5273e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52740: 4e75 rts <== NOT EXECUTED 52742: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 52746: 4e5e unlk %fp <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 52748: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5274a: 4e75 rts 000509d8 : rtems_status_code rtems_message_queue_flush( Objects_Id id, uint32_t *count ) { 509d8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 509dc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 509de: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 509e2: 4a8a tstl %a2 <== NOT EXECUTED 509e4: 674a beqs 50a30 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 509e6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 509ea: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 509ee: 4879 0007 1846 pea 71846 <_Message_queue_Information> <== NOT EXECUTED 509f4: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 509fa: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50a00: 2040 moveal %d0,%a0 <== NOT EXECUTED 50a02: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50a06: 661e bnes 50a26 <== NOT EXECUTED case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); 50a08: 4868 0014 pea %a0@(20) <== NOT EXECUTED 50a0c: 4eb9 0005 41ec jsr 541ec <_CORE_message_queue_Flush> <== NOT EXECUTED 50a12: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 50a14: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a1a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 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(); 50a1e: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a20: 4e5e unlk %fp <== NOT EXECUTED 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(); 50a22: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a24: 4e75 rts <== NOT EXECUTED 50a26: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50a2a: 4e5e unlk %fp <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 50a2c: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a2e: 4e75 rts <== NOT EXECUTED 50a30: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50a34: 4e5e unlk %fp <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 50a36: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a38: 4e75 rts <== NOT EXECUTED ... 00050a3c : rtems_status_code rtems_message_queue_get_number_pending( Objects_Id id, uint32_t *count ) { 50a3c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50a40: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50a42: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 50a46: 4a8a tstl %a2 <== NOT EXECUTED 50a48: 6740 beqs 50a8a <== NOT EXECUTED 50a4a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50a4e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50a52: 4879 0007 1846 pea 71846 <_Message_queue_Information> <== NOT EXECUTED 50a58: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 50a5e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50a64: 2040 moveal %d0,%a0 <== NOT EXECUTED 50a66: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50a6a: 6614 bnes 50a80 <== NOT EXECUTED case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; 50a6c: 24a8 005c movel %a0@(92),%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 50a70: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a76: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50a7a: 4e5e unlk %fp <== NOT EXECUTED 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(); 50a7c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a7e: 4e75 rts <== NOT EXECUTED 50a80: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50a84: 4e5e unlk %fp <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 50a86: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a88: 4e75 rts <== NOT EXECUTED 50a8a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50a8e: 4e5e unlk %fp <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 50a90: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50a92: 4e75 rts 0005274c : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, Objects_Id *id ) { 5274c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 52750: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 52754: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52758: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5275c: 4879 0006 6e82 pea 66e82 <_Message_queue_Information> <== NOT EXECUTED 52762: 4eb9 0004 ce60 jsr 4ce60 <_Objects_Name_to_id_u32> <== NOT EXECUTED 52768: 41f9 0006 2094 lea 62094 <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED node, id ); return _Status_Object_name_errors_to_status[ status ]; } 5276e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 52772: 4e5e unlk %fp <== NOT EXECUTED 52774: 4e75 rts <== NOT EXECUTED ... 00052778 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { 52778: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 5277c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 52780: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 52784: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 52788: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) 5278c: 4a84 tstl %d4 <== NOT EXECUTED 5278e: 6776 beqs 52806 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) 52790: 4a83 tstl %d3 <== NOT EXECUTED 52792: 6772 beqs 52806 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 52794: 486e fffc pea %fp@(-4) <== NOT EXECUTED 52798: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5279c: 4879 0006 6e82 pea 66e82 <_Message_queue_Information> <== NOT EXECUTED 527a2: 4eb9 0004 ccc8 jsr 4ccc8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 527a8: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 527ae: 2040 moveal %d0,%a0 <== NOT EXECUTED 527b0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 527b4: 6644 bnes 527fa <== NOT EXECUTED if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( 527b6: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 527ba: 7001 moveq #1,%d0 <== NOT EXECUTED 527bc: b182 eorl %d0,%d2 <== NOT EXECUTED 527be: c082 andl %d2,%d0 <== NOT EXECUTED 527c0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 527c2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 527c4: 2f04 movel %d4,%sp@- <== NOT EXECUTED 527c6: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 527ca: 4868 0014 pea %a0@(20) <== NOT EXECUTED 527ce: 4eb9 0005 2e00 jsr 52e00 <_CORE_message_queue_Seize> <== NOT EXECUTED buffer, size, wait, timeout ); _Thread_Enable_dispatch(); 527d4: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED return _Message_queue_Translate_core_message_queue_return_code( 527da: 2079 0006 6c9a moveal 66c9a <_Thread_Executing>,%a0 <== NOT EXECUTED 527e0: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 527e4: 4eb9 0005 2898 jsr 52898 <_Message_queue_Translate_core_message_queue_return_code> <== NOT EXECUTED 527ea: dffc 0000 001c addal #28,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 527f0: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 527f6: 4e5e unlk %fp <== NOT EXECUTED 527f8: 4e75 rts <== NOT EXECUTED 527fa: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 52800: 4e5e unlk %fp <== NOT EXECUTED if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 52802: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52804: 4e75 rts <== NOT EXECUTED 52806: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 5280c: 4e5e unlk %fp <== NOT EXECUTED size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 5280e: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52810: 4e75 rts <== NOT EXECUTED ... 00052814 : rtems_status_code rtems_message_queue_send( Objects_Id id, const void *buffer, size_t size ) { 52814: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 52818: 2f02 movel %d2,%sp@- <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 5281a: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 5281e: 676e beqs 5288e <== NOT EXECUTED 52820: 486e fffc pea %fp@(-4) <== NOT EXECUTED 52824: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52828: 4879 0006 6e82 pea 66e82 <_Message_queue_Information> <== NOT EXECUTED 5282e: 4eb9 0004 ccc8 jsr 4ccc8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 52834: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 5283a: 2040 moveal %d0,%a0 <== NOT EXECUTED 5283c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 52840: 6642 bnes 52884 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 52842: 42a7 clrl %sp@- <== NOT EXECUTED 52844: 42a7 clrl %sp@- <== NOT EXECUTED 52846: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 5284c: 42a7 clrl %sp@- <== NOT EXECUTED 5284e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52852: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 52856: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5285a: 4868 0014 pea %a0@(20) <== NOT EXECUTED 5285e: 4eb9 0005 2f3c jsr 52f3c <_CORE_message_queue_Submit> <== NOT EXECUTED MESSAGE_QUEUE_MP_HANDLER, FALSE, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 52864: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 5286a: 2400 movel %d0,%d2 <== NOT EXECUTED 5286c: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED /* * 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); 52872: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52874: 4eb9 0005 2898 jsr 52898 <_Message_queue_Translate_core_message_queue_return_code> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5287a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED /* * 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); 5287e: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52880: 4e5e unlk %fp <== NOT EXECUTED 52882: 4e75 rts <== NOT EXECUTED 52884: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 52888: 4e5e unlk %fp <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 5288a: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5288c: 4e75 rts <== NOT EXECUTED 5288e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 52892: 4e5e unlk %fp <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 52894: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52896: 4e75 rts 00050bf8 : rtems_status_code rtems_message_queue_urgent( Objects_Id id, const void *buffer, size_t size ) { 50bf8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50bfc: 2f02 movel %d2,%sp@- <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 50bfe: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 50c02: 676e beqs 50c72 <== NOT EXECUTED 50c04: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50c08: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50c0c: 4879 0007 1846 pea 71846 <_Message_queue_Information> <== NOT EXECUTED 50c12: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 50c18: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50c1e: 2040 moveal %d0,%a0 <== NOT EXECUTED 50c20: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50c24: 6642 bnes 50c68 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 50c26: 42a7 clrl %sp@- <== NOT EXECUTED 50c28: 42a7 clrl %sp@- <== NOT EXECUTED 50c2a: 2f3c 8000 0000 movel #-2147483648,%sp@- <== NOT EXECUTED 50c30: 42a7 clrl %sp@- <== NOT EXECUTED 50c32: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50c36: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 50c3a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 50c3e: 4868 0014 pea %a0@(20) <== NOT EXECUTED 50c42: 4eb9 0005 446c jsr 5446c <_CORE_message_queue_Submit> <== NOT EXECUTED id, MESSAGE_QUEUE_MP_HANDLER, FALSE, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 50c48: dffc 0000 0020 addal #32,%sp <== NOT EXECUTED 50c4e: 2400 movel %d0,%d2 <== NOT EXECUTED 50c50: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED /* * 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); 50c56: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50c58: 4eb9 0005 0be0 jsr 50be0 <_Message_queue_Translate_core_message_queue_return_code> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50c5e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED /* * 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); 50c62: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50c64: 4e5e unlk %fp <== NOT EXECUTED 50c66: 4e75 rts <== NOT EXECUTED 50c68: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50c6c: 4e5e unlk %fp <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 50c6e: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50c70: 4e75 rts <== NOT EXECUTED 50c72: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50c76: 4e5e unlk %fp <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 50c78: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50c7a: 4e75 rts 00047134 : #include int rtems_object_api_maximum_class( uint32_t api ) { 47134: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_API_maximum_class(api); } 47138: 4e5e unlk %fp <== NOT EXECUTED int rtems_object_api_maximum_class( uint32_t api ) { return _Objects_API_maximum_class(api); 4713a: 4ef9 0004 8a04 jmp 48a04 <_Objects_API_maximum_class> <== NOT EXECUTED 00047140 : #include uint32_t rtems_object_api_minimum_class( uint32_t api ) { 47140: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 47144: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 47148: 7203 moveq #3,%d1 <== NOT EXECUTED 4714a: 5380 subql #1,%d0 <== NOT EXECUTED 4714c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4714e: 55c0 scs %d0 <== NOT EXECUTED 47150: 49c0 extbl %d0 <== NOT EXECUTED if ( _Objects_Is_api_valid( api ) ) return 1; return -1; } 47152: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 47156: 4e5e unlk %fp <== NOT EXECUTED 47158: 8081 orl %d1,%d0 <== NOT EXECUTED 4715a: 4e75 rts 0004715c : const char *rtems_object_get_api_class_name( uint32_t the_api, uint32_t the_class ) { 4715c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47160: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 47164: 2f02 movel %d2,%sp@- <== NOT EXECUTED const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 47166: 203c 0005 a894 movel #370836,%d0 <== NOT EXECUTED 4716c: 7401 moveq #1,%d2 <== NOT EXECUTED 4716e: b481 cmpl %d1,%d2 <== NOT EXECUTED 47170: 671a beqs 4718c <== NOT EXECUTED api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 47172: 7402 moveq #2,%d2 <== NOT EXECUTED 47174: 203c 0005 9313 movel #365331,%d0 <== NOT EXECUTED 4717a: b481 cmpl %d1,%d2 <== NOT EXECUTED 4717c: 6708 beqs 47186 <== NOT EXECUTED return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; } 4717e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47182: 4e5e unlk %fp <== NOT EXECUTED 47184: 4e75 rts <== NOT EXECUTED 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 ) 47186: 203c 0005 a8ac movel #370860,%d0 <== NOT EXECUTED 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 ); 4718c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 47190: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47192: 4eb9 0004 bdbc jsr 4bdbc <== NOT EXECUTED 47198: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( class_assoc ) 4719a: 508f addql #8,%sp <== NOT EXECUTED 4719c: 203c 0005 931b movel #365339,%d0 <== NOT EXECUTED 471a2: 4a88 tstl %a0 <== NOT EXECUTED 471a4: 67d8 beqs 4717e <== NOT EXECUTED return class_assoc->name; return "BAD CLASS"; } 471a6: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; 471aa: 2010 movel %a0@,%d0 <== NOT EXECUTED return "BAD CLASS"; } 471ac: 4e5e unlk %fp <== NOT EXECUTED 471ae: 4e75 rts 000471b0 : }; const char *rtems_object_get_api_name( uint32_t api ) { 471b0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); 471b4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 471b8: 4879 0005 a924 pea 5a924 <== NOT EXECUTED 471be: 4eb9 0004 bdbc jsr 4bdbc <== NOT EXECUTED 471c4: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( api_assoc ) 471c6: 508f addql #8,%sp <== NOT EXECUTED 471c8: 203c 0005 931b movel #365339,%d0 <== NOT EXECUTED 471ce: 4a88 tstl %a0 <== NOT EXECUTED 471d0: 6702 beqs 471d4 <== NOT EXECUTED return api_assoc->name; 471d2: 2010 movel %a0@,%d0 <== NOT EXECUTED return "BAD CLASS"; } 471d4: 4e5e unlk %fp <== NOT EXECUTED 471d6: 4e75 rts 00047218 : rtems_status_code rtems_object_get_class_information( uint32_t the_api, uint32_t the_class, rtems_object_api_class_information *info ) { 47218: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4721c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4721e: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED uint32_t i; /* * Validate parameters and look up information structure. */ if ( !info ) 47222: 4a8a tstl %a2 <== NOT EXECUTED 47224: 6762 beqs 47288 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47226: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4722a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4722e: 4eb9 0004 8e1c jsr 48e1c <_Objects_Get_information> <== NOT EXECUTED if ( !obj_info ) 47234: 508f addql #8,%sp <== NOT EXECUTED * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47236: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !obj_info ) 47238: 4a80 tstl %d0 <== NOT EXECUTED 4723a: 6756 beqs 47292 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 4723c: 24a8 0006 movel %a0@(6),%a2@ <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 47240: 4281 clrl %d1 <== NOT EXECUTED /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; 47242: 2568 000a 0004 movel %a0@(10),%a2@(4) <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 47248: 3228 000e movew %a0@(14),%d1 <== NOT EXECUTED 4724c: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED /* * 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; 47250: 1568 0010 000c moveb %a0@(16),%a2@(12) <== NOT EXECUTED info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47256: 4a81 tstl %d1 <== NOT EXECUTED 47258: 6742 beqs 4729c <== NOT EXECUTED 4725a: 2068 001a moveal %a0@(26),%a0 <== NOT EXECUTED 4725e: 93c9 subal %a1,%a1 <== NOT EXECUTED 47260: 5888 addql #4,%a0 <== NOT EXECUTED 47262: 7001 moveq #1,%d0 <== NOT EXECUTED 47264: 5280 addql #1,%d0 <== NOT EXECUTED if ( !obj_info->local_table[i] ) 47266: 4a90 tstl %a0@ <== NOT EXECUTED 47268: 6714 beqs 4727e <== NOT EXECUTED 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++ ) 4726a: 5888 addql #4,%a0 <== NOT EXECUTED 4726c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4726e: 63f4 blss 47264 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 47270: 4280 clrl %d0 <== NOT EXECUTED 47272: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 47276: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4727a: 4e5e unlk %fp <== NOT EXECUTED 4727c: 4e75 rts <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) if ( !obj_info->local_table[i] ) unallocated++; 4727e: 5289 addql #1,%a1 <== NOT EXECUTED 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++ ) 47280: 5888 addql #4,%a0 <== NOT EXECUTED 47282: b081 cmpl %d1,%d0 <== NOT EXECUTED 47284: 63de blss 47264 <== NOT EXECUTED 47286: 60e8 bras 47270 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47288: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4728c: 4e5e unlk %fp <== NOT EXECUTED uint32_t i; /* * Validate parameters and look up information structure. */ if ( !info ) 4728e: 7009 moveq #9,%d0 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47290: 4e75 rts <== NOT EXECUTED 47292: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47296: 4e5e unlk %fp <== NOT EXECUTED */ if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info ) 47298: 700a moveq #10,%d0 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 4729a: 4e75 rts <== NOT EXECUTED 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++ ) 4729c: 93c9 subal %a1,%a1 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 4729e: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED 472a2: 4280 clrl %d0 <== NOT EXECUTED 472a4: 60d0 bras 47276 <== NOT EXECUTED ... 000468a4 : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { 468a4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 468a8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 468aa: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 468ae: 4a8a tstl %a2 <== NOT EXECUTED 468b0: 6726 beqs 468d8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); 468b2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 468b6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 468ba: 4eb9 0004 8504 jsr 48504 <_Objects_Id_to_name> <== NOT EXECUTED *name = name_u.name_u32; 468c0: 24ae fffc movel %fp@(-4),%a2@ <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 468c4: 41f9 0005 8094 lea 58094 <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED } 468ca: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); *name = name_u.name_u32; return _Status_Object_name_errors_to_status[ status ]; 468ce: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 468d2: 508f addql #8,%sp <== NOT EXECUTED } 468d4: 4e5e unlk %fp <== NOT EXECUTED 468d6: 4e75 rts <== NOT EXECUTED 468d8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 468dc: 4e5e unlk %fp <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 468de: 7009 moveq #9,%d0 <== NOT EXECUTED status = _Objects_Id_to_name( id, &name_u ); *name = name_u.name_u32; return _Status_Object_name_errors_to_status[ status ]; } 468e0: 4e75 rts <== NOT EXECUTED ... 00052940 : char *rtems_object_get_name( Objects_Id id, size_t length, char *name ) { 52940: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_name_as_string( id, length, name ); } 52944: 4e5e unlk %fp <== NOT EXECUTED Objects_Id id, size_t length, char *name ) { return _Objects_Get_name_as_string( id, length, name ); 52946: 4ef9 0005 3488 jmp 53488 <_Objects_Get_name_as_string> <== NOT EXECUTED 000472b4 : #include #include #undef rtems_object_id_api_maximum uint32_t rtems_object_id_api_maximum(void) { 472b4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return OBJECTS_ITRON_API; } 472b8: 4e5e unlk %fp <== NOT EXECUTED 472ba: 7004 moveq #4,%d0 <== NOT EXECUTED 472bc: 4e75 rts <== NOT EXECUTED ... 000472c0 : #include #include #undef rtems_object_id_api_minimum uint32_t rtems_object_id_api_minimum(void) { 472c0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return OBJECTS_INTERNAL_API; } 472c4: 4e5e unlk %fp <== NOT EXECUTED 472c6: 7001 moveq #1,%d0 <== NOT EXECUTED 472c8: 4e75 rts <== NOT EXECUTED ... 000472cc : #undef rtems_object_id_get_api uint32_t rtems_object_id_get_api( rtems_id id ) { 472cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 472d0: 4280 clrl %d0 <== NOT EXECUTED 472d2: 102e 0008 moveb %fp@(8),%d0 <== NOT EXECUTED return _Objects_Get_API( id ); } 472d6: 7207 moveq #7,%d1 <== NOT EXECUTED 472d8: 4e5e unlk %fp <== NOT EXECUTED 472da: c081 andl %d1,%d0 <== NOT EXECUTED 472dc: 4e75 rts <== NOT EXECUTED ... 000472e0 : #undef rtems_object_id_get_class uint32_t rtems_object_id_get_class( rtems_id id ) { 472e0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 472e4: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED return _Objects_Get_class( id ); } 472e8: 721b moveq #27,%d1 <== NOT EXECUTED 472ea: 4e5e unlk %fp <== NOT EXECUTED 472ec: e2a8 lsrl %d1,%d0 <== NOT EXECUTED 472ee: 4e75 rts 000472f0 : #undef rtems_object_id_get_index uint32_t rtems_object_id_get_index( rtems_id id ) { 472f0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_index( id ); } 472f4: 4280 clrl %d0 <== NOT EXECUTED 472f6: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 472fa: 4e5e unlk %fp <== NOT EXECUTED 472fc: 4e75 rts <== NOT EXECUTED ... 00047300 : #undef rtems_object_id_get_node uint32_t rtems_object_id_get_node( rtems_id id ) { 47300: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_node( id ); } 47304: 4280 clrl %d0 <== NOT EXECUTED 47306: 102e 0009 moveb %fp@(9),%d0 <== NOT EXECUTED 4730a: 4e5e unlk %fp <== NOT EXECUTED 4730c: 4e75 rts <== NOT EXECUTED ... 00047310 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { 47310: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47314: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47316: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4731a: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 4731c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 47320: 677c beqs 4739e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 47322: 4a80 tstl %d0 <== NOT EXECUTED 47324: 665a bnes 47380 <== NOT EXECUTED 47326: 2079 0005 c0ba moveal 5c0ba <_Thread_Executing>,%a0 <== NOT EXECUTED 4732c: 2428 0008 movel %a0@(8),%d2 <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 47330: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47332: 4eb9 0004 8df0 jsr 48df0 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 47338: 588f addql #4,%sp <== NOT EXECUTED if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; information = _Objects_Get_information_id( tmpId ); 4733a: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !information ) 4733c: 6752 beqs 47390 <== NOT EXECUTED return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); 4733e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47342: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47344: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47346: 4eb9 0004 8fdc jsr 48fdc <_Objects_Get> <== NOT EXECUTED switch ( location ) { 4734c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 47352: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47356: 6638 bnes 47390 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); 47358: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4735c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4735e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47360: 4eb9 0004 9240 jsr 49240 <_Objects_Set_name> <== NOT EXECUTED _Thread_Enable_dispatch(); 47366: 4eb9 0004 99ac jsr 499ac <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4736c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 47370: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED the_object = _Objects_Get( information, tmpId, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); 47374: dffc 0000 000c addal #12,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4737a: 4e5e unlk %fp <== NOT EXECUTED the_object = _Objects_Get( information, tmpId, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); 4737c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4737e: 4e75 rts <== NOT EXECUTED Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 47380: 2400 movel %d0,%d2 <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 47382: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47384: 4eb9 0004 8df0 jsr 48df0 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 4738a: 588f addql #4,%sp <== NOT EXECUTED if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; information = _Objects_Get_information_id( tmpId ); 4738c: 2600 movel %d0,%d3 <== NOT EXECUTED if ( !information ) 4738e: 66ae bnes 4733e <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47390: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 47394: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 47398: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4739a: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4739c: 4e75 rts <== NOT EXECUTED 4739e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 473a2: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 473a6: 4e5e unlk %fp <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 473a8: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 473aa: 4e75 rts 00042514 : void rtems_panic( const char *printf_format, ... ) { 42514: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 42518: 486e 000c pea %fp@(12) <== NOT EXECUTED 4251c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42520: 2f3c 2000 0000 movel #536870912,%sp@- <== NOT EXECUTED 42526: 4eba fe1c jsr %pc@(42344 ) <== NOT EXECUTED 4252a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED va_end(arglist); } 42530: 4e5e unlk %fp <== NOT EXECUTED 42532: 4e75 rts 00050c7c : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, Objects_Id *id ) { 50c7c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 50c80: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50c82: 2f02 movel %d2,%sp@- <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 50c84: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 50c88: 6750 beqs 50cda <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) 50c8a: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 50c8e: 672e beqs 50cbe <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) 50c90: 4aae 001c tstl %fp@(28) <== NOT EXECUTED 50c94: 6728 beqs 50cbe <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || 50c96: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 50c9a: 6730 beqs 50ccc <== NOT EXECUTED 50c9c: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 50ca0: 672a beqs 50ccc <== NOT EXECUTED 50ca2: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 50ca6: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED 50caa: 6220 bhis 50ccc <== NOT EXECUTED 50cac: 7003 moveq #3,%d0 <== NOT EXECUTED 50cae: c0ae 0014 andl %fp@(20),%d0 <== NOT EXECUTED 50cb2: 6618 bnes 50ccc <== NOT EXECUTED !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) 50cb4: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 50cb8: c0ae 000c andl %fp@(12),%d0 <== NOT EXECUTED 50cbc: 672a beqs 50ce8 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50cbe: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50cc2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 50cc6: 4e5e unlk %fp <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 50cc8: 7009 moveq #9,%d0 <== NOT EXECUTED } 50cca: 4e75 rts <== NOT EXECUTED 50ccc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50cd0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 50cd4: 4e5e unlk %fp <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 50cd6: 7008 moveq #8,%d0 <== NOT EXECUTED } 50cd8: 4e75 rts <== NOT EXECUTED 50cda: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50cde: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 50ce2: 4e5e unlk %fp <== NOT EXECUTED Objects_Id *id ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 50ce4: 7003 moveq #3,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50ce6: 4e75 rts <== NOT EXECUTED 50ce8: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 50cee: 5280 addql #1,%d0 <== NOT EXECUTED 50cf0: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * 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 ); 50cf6: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50cfc: 4eb9 0005 54b4 jsr 554b4 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { 50d02: 588f addql #4,%sp <== NOT EXECUTED 50d04: 2440 moveal %d0,%a2 <== NOT EXECUTED 50d06: 4a80 tstl %d0 <== NOT EXECUTED 50d08: 6770 beqs 50d7a <== NOT EXECUTED return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; 50d0a: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; 50d0e: 256e 0018 001c movel %fp@(24),%a2@(28) <== NOT EXECUTED the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, 50d14: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 50d18: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED the_partition->length = length; 50d1c: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED 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, 50d20: 4c42 1001 remul %d2,%d1,%d1 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 50d24: 2548 0010 movel %a0,%a2@(16) <== NOT EXECUTED the_partition->length = length; the_partition->buffer_size = buffer_size; 50d28: 2542 0018 movel %d2,%a2@(24) <== NOT EXECUTED the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; 50d2c: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED _Chain_Initialize( &the_partition->Memory, starting_address, 50d30: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50d32: 2f01 movel %d1,%sp@- <== NOT EXECUTED 50d34: 2f08 movel %a0,%sp@- <== NOT EXECUTED 50d36: 486a 0024 pea %a2@(36) <== NOT EXECUTED 50d3a: 4eb9 0005 40a8 jsr 540a8 <_Chain_Initialize> <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 50d40: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 50d44: 2079 0007 1446 moveal 71446 <_Partition_Information+0x1a>,%a0 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 50d4a: 2540 000c movel %d0,%a2@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 50d4e: 4280 clrl %d0 <== NOT EXECUTED 50d50: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 50d54: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; 50d58: 206e 001c moveal %fp@(28),%a0 <== NOT EXECUTED 50d5c: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 50d60: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 50d66: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50d6a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 50d6e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 50d74: 4e5e unlk %fp <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 50d76: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 50d78: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); 50d7a: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50d80: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 50d84: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 50d88: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); 50d8a: 7005 moveq #5,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50d8c: 4e75 rts <== NOT EXECUTED ... 00050d90 : */ rtems_status_code rtems_partition_delete( Objects_Id id ) { 50d90: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50d94: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 50d96: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50d9a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50d9e: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50da4: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 50daa: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50db0: 2440 moveal %d0,%a2 <== NOT EXECUTED 50db2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50db6: 670a beqs 50dc2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50db8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50dbc: 4e5e unlk %fp <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 50dbe: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50dc0: 4e75 rts <== NOT EXECUTED the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { 50dc2: 4aaa 0020 tstl %a2@(32) <== NOT EXECUTED 50dc6: 6710 beqs 50dd8 <== NOT EXECUTED #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 50dc8: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50dce: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50dd2: 4e5e unlk %fp <== NOT EXECUTED #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 50dd4: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50dd6: 4e75 rts <== NOT EXECUTED 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 ); 50dd8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 50dda: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50de0: 4eb9 0005 5550 jsr 55550 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); 50de6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50de8: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50dee: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 50df4: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50dfa: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 50dfe: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e04: 4e5e unlk %fp <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 50e06: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e08: 4e75 rts <== NOT EXECUTED ... 00050e0c : rtems_status_code rtems_partition_get_buffer( Objects_Id id, void **buffer ) { 50e0c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50e10: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50e12: 2f02 movel %d2,%sp@- <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 50e14: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 50e18: 675e beqs 50e78 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 50e1a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50e1e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50e22: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50e28: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 50e2e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50e34: 2440 moveal %d0,%a2 <== NOT EXECUTED 50e36: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50e3a: 662e bnes 50e6a <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); 50e3c: 486a 0024 pea %a2@(36) <== NOT EXECUTED 50e40: 4eb9 0005 406c jsr 5406c <_Chain_Get> <== NOT EXECUTED case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { 50e46: 588f addql #4,%sp <== NOT EXECUTED 50e48: 2400 movel %d0,%d2 <== NOT EXECUTED 50e4a: 673a beqs 50e86 <== NOT EXECUTED the_partition->number_of_used_blocks += 1; 50e4c: 52aa 0020 addql #1,%a2@(32) <== NOT EXECUTED _Thread_Enable_dispatch(); 50e50: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED *buffer = the_buffer; 50e56: 4280 clrl %d0 <== NOT EXECUTED 50e58: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 50e5c: 2082 movel %d2,%a0@ <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e5e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 50e62: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50e66: 4e5e unlk %fp <== NOT EXECUTED 50e68: 4e75 rts <== NOT EXECUTED 50e6a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 50e6e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50e72: 4e5e unlk %fp <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 50e74: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e76: 4e75 rts <== NOT EXECUTED 50e78: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 50e7c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50e80: 4e5e unlk %fp <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 50e82: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e84: 4e75 rts <== NOT EXECUTED the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 50e86: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e8c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 50e90: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50e94: 4e5e unlk %fp <== NOT EXECUTED the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 50e96: 700d moveq #13,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50e98: 4e75 rts <== NOT EXECUTED ... 00050e9c : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, Objects_Id *id ) { 50e9c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); 50ea0: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 50ea4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 50ea8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50eac: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50eb2: 4eb9 0005 5bb8 jsr 55bb8 <_Objects_Name_to_id_u32> <== NOT EXECUTED 50eb8: 41f9 0006 a75e lea 6a75e <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; } 50ebe: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 50ec2: 4e5e unlk %fp <== NOT EXECUTED 50ec4: 4e75 rts <== NOT EXECUTED ... 00050ec8 : rtems_status_code rtems_partition_return_buffer( Objects_Id id, void *buffer ) { 50ec8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50ecc: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 50ece: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50ed2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50ed6: 4879 0007 142c pea 7142c <_Partition_Information> <== NOT EXECUTED 50edc: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 50ee2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50ee8: 2440 moveal %d0,%a2 <== NOT EXECUTED 50eea: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50eee: 670a beqs 50efa <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50ef0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50ef4: 4e5e unlk %fp <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 50ef6: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50ef8: 4e75 rts <== NOT EXECUTED ) { void *starting; void *ending; starting = the_partition->starting_address; 50efa: 222a 0010 movel %a2@(16),%d1 <== NOT EXECUTED ending = _Addresses_Add_offset( starting, the_partition->length ); 50efe: 202a 0014 movel %a2@(20),%d0 <== NOT EXECUTED void *address, void *base, void *limit ) { return (address >= base && address <= limit); 50f02: b2ae 000c cmpl %fp@(12),%d1 <== NOT EXECUTED 50f06: 6310 blss 50f18 <== NOT EXECUTED _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 50f08: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f0e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50f12: 4e5e unlk %fp <== NOT EXECUTED _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 50f14: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f16: 4e75 rts <== NOT EXECUTED 50f18: d081 addl %d1,%d0 <== NOT EXECUTED 50f1a: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 50f1e: 65e8 bcss 50f08 <== NOT EXECUTED return ( 50f20: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 50f24: 9081 subl %d1,%d0 <== NOT EXECUTED 50f26: 4c6a 0001 0018 remul %a2@(24),%d1,%d0 <== NOT EXECUTED 50f2c: 4a81 tstl %d1 <== NOT EXECUTED 50f2e: 66d8 bnes 50f08 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 50f30: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 50f34: 486a 0024 pea %a2@(36) <== NOT EXECUTED 50f38: 4eb9 0005 4034 jsr 54034 <_Chain_Append> <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; 50f3e: 53aa 0020 subql #1,%a2@(32) <== NOT EXECUTED _Thread_Enable_dispatch(); 50f42: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f48: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); 50f4c: 508f addql #8,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f4e: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); 50f50: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f52: 4e75 rts 0005019c : void *internal_start, void *external_start, uint32_t length, Objects_Id *id ) { 5019c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name) ) 501a0: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 501a4: 671a beqs 501c0 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 501a6: 4aae 0018 tstl %fp@(24) <== NOT EXECUTED 501aa: 670e beqs 501ba <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 501ac: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 501b0: 7203 moveq #3,%d1 <== NOT EXECUTED 501b2: 80ae 000c orl %fp@(12),%d0 <== NOT EXECUTED 501b6: c081 andl %d1,%d0 <== NOT EXECUTED 501b8: 670c beqs 501c6 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 501ba: 4e5e unlk %fp <== NOT EXECUTED (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 501bc: 7009 moveq #9,%d0 <== NOT EXECUTED } 501be: 4e75 rts <== NOT EXECUTED 501c0: 4e5e unlk %fp <== NOT EXECUTED Objects_Id *id ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name) ) 501c2: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 501c4: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 501c6: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 501cc: 5280 addql #1,%d0 <== NOT EXECUTED 501ce: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) 501d4: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 501da: 4eb9 0005 54b4 jsr 554b4 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 501e0: 588f addql #4,%sp <== NOT EXECUTED 501e2: 2240 moveal %d0,%a1 <== NOT EXECUTED 501e4: 4a80 tstl %d0 <== NOT EXECUTED 501e6: 6746 beqs 5022e <== NOT EXECUTED return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; 501e8: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 501ec: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 501f0: 5388 subql #1,%a0 <== NOT EXECUTED 501f2: 2348 0018 movel %a0,%a1@(24) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 501f6: 2079 0007 140a moveal 7140a <_Dual_ported_memory_Information+0x1a>,%a0 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 501fc: 2340 000c movel %d0,%a1@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 50200: 4280 clrl %d0 <== NOT EXECUTED 50202: 3029 000a movew %a1@(10),%d0 <== NOT EXECUTED 50206: 2189 0c00 movel %a1,%a0@(00000000,%d0:l:4) <== NOT EXECUTED &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 5020a: 206e 0018 moveal %fp@(24),%a0 <== NOT EXECUTED if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 5020e: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED the_port->external_base = external_start; 50212: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 50216: 20a9 0008 movel %a1@(8),%a0@ <== NOT EXECUTED if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 5021a: 2340 0010 movel %d0,%a1@(16) <== NOT EXECUTED the_port->external_base = external_start; 5021e: 2341 0014 movel %d1,%a1@(20) <== NOT EXECUTED &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); 50222: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 50228: 4e5e unlk %fp <== NOT EXECUTED &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); 5022a: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 5022c: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch(); 5022e: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50234: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch(); 50236: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 50238: 4e75 rts <== NOT EXECUTED ... 0005023c : */ rtems_status_code rtems_port_delete( Objects_Id id ) { 5023c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50240: 2f02 movel %d2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) 50242: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50246: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5024a: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 50250: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 50256: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 5025c: 2400 movel %d0,%d2 <== NOT EXECUTED 5025e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50262: 6632 bnes 50296 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); 50264: 2f00 movel %d0,%sp@- <== NOT EXECUTED 50266: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 5026c: 4eb9 0005 5550 jsr 55550 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free ( Dual_ported_memory_Control *the_port ) { _Objects_Free( &_Dual_ported_memory_Information, &the_port->Object ); 50272: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50274: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 5027a: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 50280: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50286: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 5028a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50290: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 50292: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50294: 4e75 rts <== NOT EXECUTED 50296: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5029a: 4e5e unlk %fp <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 5029c: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5029e: 4e75 rts 000502a0 : rtems_status_code rtems_port_external_to_internal( Objects_Id id, void *external, void **internal ) { 502a0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 502a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 502a6: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 502aa: 4a8a tstl %a2 <== NOT EXECUTED 502ac: 675e beqs 5030c <== NOT EXECUTED RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) 502ae: 486e fffc pea %fp@(-4) <== NOT EXECUTED 502b2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 502b6: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 502bc: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 502c2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 502c8: 2040 moveal %d0,%a0 <== NOT EXECUTED 502ca: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 502ce: 6622 bnes 502f2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Addresses_Subtract ( void *left, void *right ) { return ((char *) left - (char *) right); 502d0: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 502d4: 90a8 0014 subl %a0@(20),%d0 <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) 502d8: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 502dc: 631e blss 502fc <== NOT EXECUTED *internal = external; 502de: 24ae 000c movel %fp@(12),%a2@ <== NOT EXECUTED else *internal = _Addresses_Add_offset( the_port->internal_base, ending ); _Thread_Enable_dispatch(); 502e2: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 502e8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 502ea: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 502ee: 4e5e unlk %fp <== NOT EXECUTED 502f0: 4e75 rts <== NOT EXECUTED 502f2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 502f6: 4e5e unlk %fp <== NOT EXECUTED if ( !internal ) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 502f8: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 502fa: 4e75 rts <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base, 502fc: d0a8 0010 addl %a0@(16),%d0 <== NOT EXECUTED 50300: 2480 movel %d0,%a2@ <== NOT EXECUTED ending ); _Thread_Enable_dispatch(); 50302: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 50308: 4280 clrl %d0 <== NOT EXECUTED 5030a: 60de bras 502ea <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5030c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50310: 4e5e unlk %fp <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 50312: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50314: 4e75 rts <== NOT EXECUTED ... 00050318 : rtems_status_code rtems_port_ident( rtems_name name, Objects_Id *id ) { 50318: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 5031c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 50320: 42a7 clrl %sp@- <== NOT EXECUTED 50322: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50326: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 5032c: 4eb9 0005 5bb8 jsr 55bb8 <_Objects_Name_to_id_u32> <== NOT EXECUTED 50332: 41f9 0006 a75e lea 6a75e <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; } 50338: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 5033c: 4e5e unlk %fp <== NOT EXECUTED 5033e: 4e75 rts 00050340 : rtems_status_code rtems_port_internal_to_external( Objects_Id id, void *internal, void **external ) { 50340: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50344: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50346: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 5034a: 4a8a tstl %a2 <== NOT EXECUTED 5034c: 675e beqs 503ac <== NOT EXECUTED 5034e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50352: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50356: 4879 0007 13f0 pea 713f0 <_Dual_ported_memory_Information> <== NOT EXECUTED 5035c: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 50362: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50368: 2040 moveal %d0,%a0 <== NOT EXECUTED 5036a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5036e: 6622 bnes 50392 <== NOT EXECUTED 50370: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 50374: 90a8 0010 subl %a0@(16),%d0 <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) 50378: b0a8 0018 cmpl %a0@(24),%d0 <== NOT EXECUTED 5037c: 631e blss 5039c <== NOT EXECUTED *external = internal; 5037e: 24ae 000c movel %fp@(12),%a2@ <== NOT EXECUTED else *external = _Addresses_Add_offset( the_port->external_base, ending ); _Thread_Enable_dispatch(); 50382: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 50388: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5038a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5038e: 4e5e unlk %fp <== NOT EXECUTED 50390: 4e75 rts <== NOT EXECUTED 50392: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50396: 4e5e unlk %fp <== NOT EXECUTED if ( !external ) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 50398: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5039a: 4e75 rts <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) *external = internal; else *external = _Addresses_Add_offset( the_port->external_base, 5039c: d0a8 0014 addl %a0@(20),%d0 <== NOT EXECUTED 503a0: 2480 movel %d0,%a2@ <== NOT EXECUTED ending ); _Thread_Enable_dispatch(); 503a2: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 503a8: 4280 clrl %d0 <== NOT EXECUTED 503aa: 60de bras 5038a <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 503ac: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 503b0: 4e5e unlk %fp <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 503b2: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 503b4: 4e75 rts <== NOT EXECUTED ... 00050f54 : */ rtems_status_code rtems_rate_monotonic_cancel( Objects_Id id ) { 50f54: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 50f58: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 50f5a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 50f5e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 50f62: 4879 0007 1468 pea 71468 <_Rate_monotonic_Information> <== NOT EXECUTED 50f68: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 50f6e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 50f74: 2440 moveal %d0,%a2 <== NOT EXECUTED 50f76: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 50f7a: 670a beqs 50f86 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f7c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50f80: 4e5e unlk %fp <== NOT EXECUTED { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 50f82: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f84: 4e75 rts <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 50f86: 2039 0007 16be movel 716be <_Thread_Executing>,%d0 <== NOT EXECUTED 50f8c: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 50f90: 6710 beqs 50fa2 <== NOT EXECUTED _Thread_Enable_dispatch(); 50f92: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50f98: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 50f9c: 4e5e unlk %fp <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); 50f9e: 7017 moveq #23,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50fa0: 4e75 rts <== NOT EXECUTED 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 ); 50fa2: 486a 0010 pea %a2@(16) <== NOT EXECUTED 50fa6: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; 50fac: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED _Thread_Enable_dispatch(); 50fb0: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50fb6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } (void) _Watchdog_Remove( &the_period->Timer ); the_period->state = RATE_MONOTONIC_INACTIVE; _Thread_Enable_dispatch(); 50fba: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50fbc: 4e5e unlk %fp <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } (void) _Watchdog_Remove( &the_period->Timer ); the_period->state = RATE_MONOTONIC_INACTIVE; _Thread_Enable_dispatch(); 50fbe: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 50fc0: 4e75 rts <== NOT EXECUTED ... 0004688c : rtems_status_code rtems_rate_monotonic_create( rtems_name name, Objects_Id *id ) { 4688c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46890: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46892: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46894: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 46898: 6700 00b6 beqw 46950 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 4689c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 468a0: 6700 00d0 beqw 46972 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 468a4: 2039 0005 b6a0 movel 5b6a0 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 468aa: 5280 addql #1,%d0 <== NOT EXECUTED 468ac: 23c0 0005 b6a0 movel %d0,5b6a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * 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 *) 468b2: 4879 0005 b598 pea 5b598 <_Rate_monotonic_Information> <== NOT EXECUTED 468b8: 4eb9 0004 88f0 jsr 488f0 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { 468be: 588f addql #4,%sp <== NOT EXECUTED 468c0: 2240 moveal %d0,%a1 <== NOT EXECUTED 468c2: 4a80 tstl %d0 <== NOT EXECUTED 468c4: 6700 0098 beqw 4695e <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 468c8: 45f9 0005 b75e lea 5b75e <_Thread_Executing>,%a2 <== NOT EXECUTED 468ce: 2352 0050 movel %a2@,%a1@(80) <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 468d2: 41e9 007c lea %a1@(124),%a0 <== NOT EXECUTED 468d6: 42a9 0054 clrl %a1@(84) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 468da: 4280 clrl %d0 <== NOT EXECUTED 468dc: 42a9 0058 clrl %a1@(88) <== NOT EXECUTED 468e0: 42a9 0064 clrl %a1@(100) <== NOT EXECUTED 468e4: 42a9 0068 clrl %a1@(104) <== NOT EXECUTED 468e8: 42a9 006c clrl %a1@(108) <== NOT EXECUTED 468ec: 42a9 0070 clrl %a1@(112) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 468f0: 42a9 0030 clrl %a1@(48) <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; 468f4: 42a9 0038 clrl %a1@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 468f8: 42a9 0018 clrl %a1@(24) <== NOT EXECUTED the_watchdog->routine = routine; 468fc: 42a9 002c clrl %a1@(44) <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 46900: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 46904: 4298 clrl %a0@+ <== NOT EXECUTED 46906: 4298 clrl %a0@+ <== NOT EXECUTED 46908: 4298 clrl %a0@+ <== NOT EXECUTED 4690a: 4290 clrl %a0@ <== NOT EXECUTED 4690c: 2079 0005 b5b2 moveal 5b5b2 <_Rate_monotonic_Information+0x1a>,%a0 <== NOT EXECUTED 46912: 3029 000a movew %a1@(10),%d0 <== NOT EXECUTED 46916: 2189 0c00 movel %a1,%a0@(00000000,%d0:l:4) <== NOT EXECUTED 4691a: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 46920: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 46924: 2342 000c movel %d2,%a1@(12) <== NOT EXECUTED the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 46928: 2340 005c movel %d0,%a1@(92) <== NOT EXECUTED 4692c: 2340 0060 movel %d0,%a1@(96) <== NOT EXECUTED 46930: 2340 0074 movel %d0,%a1@(116) <== NOT EXECUTED 46934: 2340 0078 movel %d0,%a1@(120) <== NOT EXECUTED &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 46938: 20a9 0008 movel %a1@(8),%a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 4693c: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46942: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46946: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4694a: 4e5e unlk %fp <== NOT EXECUTED &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; _Thread_Enable_dispatch(); 4694c: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4694e: 4e75 rts <== NOT EXECUTED 46950: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46954: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46958: 4e5e unlk %fp <== NOT EXECUTED Objects_Id *id ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 4695a: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4695c: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); 4695e: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46964: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46968: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4696c: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); 4696e: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46970: 4e75 rts <== NOT EXECUTED 46972: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 46976: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4697a: 4e5e unlk %fp <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 4697c: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4697e: 4e75 rts 000510b8 : */ rtems_status_code rtems_rate_monotonic_delete( Objects_Id id ) { 510b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 510bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 510be: 486e fffc pea %fp@(-4) <== NOT EXECUTED 510c2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 510c6: 4879 0007 1468 pea 71468 <_Rate_monotonic_Information> <== NOT EXECUTED 510cc: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 510d2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 510d8: 2440 moveal %d0,%a2 <== NOT EXECUTED 510da: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 510de: 6640 bnes 51120 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); 510e0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 510e2: 4879 0007 1468 pea 71468 <_Rate_monotonic_Information> <== NOT EXECUTED 510e8: 4eb9 0005 5550 jsr 55550 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_period->Timer ); 510ee: 486a 0010 pea %a2@(16) <== NOT EXECUTED 510f2: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; 510f8: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free ( Rate_monotonic_Control *the_period ) { _Objects_Free( &_Rate_monotonic_Information, &the_period->Object ); 510fc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 510fe: 4879 0007 1468 pea 71468 <_Rate_monotonic_Information> <== NOT EXECUTED 51104: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); 5110a: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 51110: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); (void) _Watchdog_Remove( &the_period->Timer ); the_period->state = RATE_MONOTONIC_INACTIVE; _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); 51114: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5111a: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); (void) _Watchdog_Remove( &the_period->Timer ); the_period->state = RATE_MONOTONIC_INACTIVE; _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); 5111c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5111e: 4e75 rts <== NOT EXECUTED 51120: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 51124: 4e5e unlk %fp <== NOT EXECUTED { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 51126: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 51128: 4e75 rts <== NOT EXECUTED ... 0006d73c : rtems_status_code rtems_rate_monotonic_get_statistics( Objects_Id id, rtems_rate_monotonic_period_statistics *statistics ) { 6d73c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 6d740: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; if ( !statistics ) 6d742: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 6d746: 6774 beqs 6d7bc <== NOT EXECUTED 6d748: 486e fffc pea %fp@(-4) <== NOT EXECUTED 6d74c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 6d750: 4879 0009 a34c pea 9a34c <_Rate_monotonic_Information> <== NOT EXECUTED 6d756: 4eb9 0004 bc78 jsr 4bc78 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 6d75c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6d762: 2440 moveal %d0,%a2 <== NOT EXECUTED 6d764: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 6d768: 6648 bnes 6d7b2 <== NOT EXECUTED case OBJECTS_LOCAL: *statistics = the_period->Statistics; 6d76a: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 6d76e: 20ea 0054 movel %a2@(84),%a0@+ <== NOT EXECUTED 6d772: 43ea 007c lea %a2@(124),%a1 <== NOT EXECUTED 6d776: 20ea 0058 movel %a2@(88),%a0@+ <== NOT EXECUTED 6d77a: 20ea 005c movel %a2@(92),%a0@+ <== NOT EXECUTED 6d77e: 20ea 0060 movel %a2@(96),%a0@+ <== NOT EXECUTED 6d782: 20ea 0064 movel %a2@(100),%a0@+ <== NOT EXECUTED 6d786: 20ea 0068 movel %a2@(104),%a0@+ <== NOT EXECUTED 6d78a: 20ea 006c movel %a2@(108),%a0@+ <== NOT EXECUTED 6d78e: 20ea 0070 movel %a2@(112),%a0@+ <== NOT EXECUTED 6d792: 20ea 0074 movel %a2@(116),%a0@+ <== NOT EXECUTED 6d796: 20ea 0078 movel %a2@(120),%a0@+ <== NOT EXECUTED 6d79a: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 6d79c: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 6d79e: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 6d7a0: 2091 movel %a1@,%a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 6d7a2: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d7a8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 6d7ac: 4e5e unlk %fp <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *statistics = the_period->Statistics; _Thread_Enable_dispatch(); 6d7ae: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d7b0: 4e75 rts <== NOT EXECUTED 6d7b2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 6d7b6: 4e5e unlk %fp <== NOT EXECUTED if ( !statistics ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 6d7b8: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d7ba: 4e75 rts <== NOT EXECUTED 6d7bc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 6d7c0: 4e5e unlk %fp <== NOT EXECUTED ) { Objects_Locations location; Rate_monotonic_Control *the_period; if ( !statistics ) 6d7c2: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d7c4: 4e75 rts <== NOT EXECUTED ... 0006d7c8 : rtems_status_code rtems_rate_monotonic_get_status( Objects_Id id, rtems_rate_monotonic_period_status *status ) { 6d7c8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 6d7cc: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 6d7d0: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 6d7d4: 4a8b tstl %a3 <== NOT EXECUTED 6d7d6: 676a beqs 6d842 <== NOT EXECUTED 6d7d8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 6d7dc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 6d7e0: 4879 0009 a34c pea 9a34c <_Rate_monotonic_Information> <== NOT EXECUTED 6d7e6: 4eb9 0004 bc78 jsr 4bc78 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 6d7ec: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6d7f2: 2840 moveal %d0,%a4 <== NOT EXECUTED 6d7f4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 6d7f8: 663c bnes 6d836 <== NOT EXECUTED case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 6d7fa: 206c 0050 moveal %a4@(80),%a0 <== NOT EXECUTED 6d7fe: 4a88 tstl %a0 <== NOT EXECUTED 6d800: 6700 008c beqw 6d88e <== NOT EXECUTED 6d804: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED status->state = the_period->state; 6d808: 202c 0038 movel %a4@(56),%d0 <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 6d80c: 2681 movel %d1,%a3@ <== NOT EXECUTED status->state = the_period->state; 6d80e: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED if ( status->state == RATE_MONOTONIC_INACTIVE ) { 6d812: 663a bnes 6d84e <== NOT EXECUTED #else status->since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; status->executed_since_last_period.tv_nsec = 0; 6d814: 42ab 0014 clrl %a3@(20) <== NOT EXECUTED status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS status->since_last_period.tv_sec = 0; 6d818: 42ab 0008 clrl %a3@(8) <== NOT EXECUTED status->since_last_period.tv_nsec = 0; 6d81c: 42ab 000c clrl %a3@(12) <== NOT EXECUTED #else status->since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; 6d820: 42ab 0010 clrl %a3@(16) <== NOT EXECUTED the_period->owner->cpu_time_used - the_period->owner_executed_at_period; #endif } _Thread_Enable_dispatch(); 6d824: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 6d82a: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d82c: 4cee 1c04 ffe4 moveml %fp@(-28),%d2/%a2-%a4 <== NOT EXECUTED 6d832: 4e5e unlk %fp <== NOT EXECUTED 6d834: 4e75 rts <== NOT EXECUTED 6d836: 4cee 1c04 ffe4 moveml %fp@(-28),%d2/%a2-%a4 <== NOT EXECUTED 6d83c: 4e5e unlk %fp <== NOT EXECUTED if ( !status ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 6d83e: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d840: 4e75 rts <== NOT EXECUTED 6d842: 4cee 1c04 ffe4 moveml %fp@(-28),%d2/%a2-%a4 <== NOT EXECUTED 6d848: 4e5e unlk %fp <== NOT EXECUTED ) { Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 6d84a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6d84c: 4e75 rts <== NOT EXECUTED * This lets them share one single invocation of _TOD_Get_uptime(). */ #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 6d84e: 240e movel %fp,%d2 <== NOT EXECUTED 6d850: 0682 ffff fff4 addil #-12,%d2 <== NOT EXECUTED 6d856: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6d858: 4eb9 0006 337c jsr 6337c <_TOD_Get_uptime> <== NOT EXECUTED #endif #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 6d85e: 486b 0008 pea %a3@(8) <== NOT EXECUTED 6d862: 45f9 0004 d484 lea 4d484 <_Timespec_Subtract>,%a2 <== NOT EXECUTED 6d868: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6d86a: 486c 0044 pea %a4@(68) <== NOT EXECUTED 6d86e: 4e92 jsr %a2@ <== NOT EXECUTED status->since_last_period = _Watchdog_Ticks_since_boot - the_period->time_at_period; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Subtract( 6d870: 486b 0010 pea %a3@(16) <== NOT EXECUTED 6d874: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6d876: 4879 0009 9f46 pea 99f46 <_Thread_Time_of_last_context_switch> <== NOT EXECUTED 6d87c: 4e92 jsr %a2@ <== NOT EXECUTED 6d87e: dffc 0000 001c addal #28,%sp <== NOT EXECUTED the_period->owner->cpu_time_used - the_period->owner_executed_at_period; #endif } _Thread_Enable_dispatch(); 6d884: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 6d88a: 4280 clrl %d0 <== NOT EXECUTED 6d88c: 609e bras 6d82c <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 6d88e: 4281 clrl %d1 <== NOT EXECUTED 6d890: 6000 ff76 braw 6d808 <== NOT EXECUTED 00046980 : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, Objects_Id *id ) { 46980: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 46984: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 46988: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 4698e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46992: 4879 0005 b598 pea 5b598 <_Rate_monotonic_Information> <== NOT EXECUTED 46998: 4eb9 0004 90b8 jsr 490b8 <_Objects_Name_to_id_u32> <== NOT EXECUTED 4699e: 41f9 0005 8aa4 lea 58aa4 <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } 469a4: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 469a8: 4e5e unlk %fp <== NOT EXECUTED 469aa: 4e75 rts 00046c06 : rtems_status_code rtems_rate_monotonic_period( Objects_Id id, rtems_interval length ) { 46c06: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 46c0a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46c0c: 2f02 movel %d2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 46c0e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46c12: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46c16: 4879 0005 b598 pea 5b598 <_Rate_monotonic_Information> <== NOT EXECUTED 46c1c: 4eb9 0004 8f20 jsr 48f20 <_Objects_Get> <== NOT EXECUTED rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 46c22: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46c28: 2440 moveal %d0,%a2 <== NOT EXECUTED 46c2a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46c2e: 6622 bnes 46c52 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 46c30: 2039 0005 b75e movel 5b75e <_Thread_Executing>,%d0 <== NOT EXECUTED 46c36: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 46c3a: 6726 beqs 46c62 <== NOT EXECUTED _Thread_Enable_dispatch(); 46c3c: 7417 moveq #23,%d2 <== NOT EXECUTED 46c3e: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46c44: 2002 movel %d2,%d0 <== NOT EXECUTED 46c46: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46c4a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 46c4e: 4e5e unlk %fp <== NOT EXECUTED 46c50: 4e75 rts <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 46c52: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46c54: 2002 movel %d2,%d0 <== NOT EXECUTED 46c56: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46c5a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 46c5e: 4e5e unlk %fp <== NOT EXECUTED 46c60: 4e75 rts <== NOT EXECUTED if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 46c62: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 46c66: 6700 0108 beqw 46d70 <== NOT EXECUTED } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 46c6a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 46c70: 40c2 movew %sr,%d2 <== NOT EXECUTED 46c72: 8082 orl %d2,%d0 <== NOT EXECUTED 46c74: 46c0 movew %d0,%sr <== NOT EXECUTED switch ( the_period->state ) { 46c76: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED 46c7a: 7202 moveq #2,%d1 <== NOT EXECUTED 46c7c: b280 cmpl %d0,%d1 <== NOT EXECUTED 46c7e: 6770 beqs 46cf0 <== NOT EXECUTED 46c80: 123c 0004 moveb #4,%d1 <== NOT EXECUTED 46c84: b280 cmpl %d0,%d1 <== NOT EXECUTED 46c86: 6700 00f8 beqw 46d80 <== NOT EXECUTED 46c8a: 4a80 tstl %d0 <== NOT EXECUTED 46c8c: 66c4 bnes 46c52 <== NOT EXECUTED case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 46c8e: 46c2 movew %d2,%sr <== NOT EXECUTED /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 46c90: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46c92: 4eb9 0004 69ac jsr 469ac <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 46c98: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46c9c: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 46ca0: 7002 moveq #2,%d0 <== NOT EXECUTED 46ca2: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 46ca6: 203c 0004 7084 movel #290948,%d0 <== NOT EXECUTED the_watchdog->id = id; 46cac: 2542 0030 movel %d2,%a2@(48) <== NOT EXECUTED ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 46cb0: 4282 clrl %d2 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46cb2: 2541 001c movel %d1,%a2@(28) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 46cb6: 2540 002c movel %d0,%a2@(44) <== NOT EXECUTED _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; 46cba: 2541 004c movel %d1,%a2@(76) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46cbe: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 46cc2: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 46cc6: 486a 0010 pea %a2@(16) <== NOT EXECUTED 46cca: 4879 0005 b77c pea 5b77c <_Watchdog_Ticks_chain> <== NOT EXECUTED 46cd0: 4eb9 0004 aae4 jsr 4aae4 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 46cd6: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 46cdc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46ce2: 2002 movel %d2,%d0 <== NOT EXECUTED 46ce4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46ce8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 46cec: 4e5e unlk %fp <== NOT EXECUTED 46cee: 4e75 rts <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 46cf0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46cf2: 4eb9 0004 6a2e jsr 46a2e <_Rate_monotonic_Update_statistics> <== NOT EXECUTED * 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; the_period->next_length = length; 46cf8: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED /* * 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; 46cfc: 7001 moveq #1,%d0 <== NOT EXECUTED the_period->next_length = length; 46cfe: 2541 004c movel %d1,%a2@(76) <== NOT EXECUTED /* * 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; 46d02: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED the_period->next_length = length; _ISR_Enable( level ); 46d06: 46c2 movew %d2,%sr <== NOT EXECUTED _Thread_Executing->Wait.id = the_period->Object.id; 46d08: 2079 0005 b75e moveal 5b75e <_Thread_Executing>,%a0 <== NOT EXECUTED 46d0e: 216a 0008 0020 movel %a2@(8),%a0@(32) <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 46d14: 4878 4000 pea 4000 <== NOT EXECUTED 46d18: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46d1a: 4eb9 0004 a198 jsr 4a198 <_Thread_Set_state> <== NOT EXECUTED /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 46d20: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 46d26: 40c0 movew %sr,%d0 <== NOT EXECUTED 46d28: 8280 orl %d0,%d1 <== NOT EXECUTED 46d2a: 46c1 movew %d1,%sr <== NOT EXECUTED local_state = the_period->state; 46d2c: 222a 0038 movel %a2@(56),%d1 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 46d30: 7402 moveq #2,%d2 <== NOT EXECUTED 46d32: 2542 0038 movel %d2,%a2@(56) <== NOT EXECUTED _ISR_Enable( level ); 46d36: 46c0 movew %d0,%sr <== NOT EXECUTED /* * 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 ) 46d38: 7003 moveq #3,%d0 <== NOT EXECUTED 46d3a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46d40: b081 cmpl %d1,%d0 <== NOT EXECUTED 46d42: 6716 beqs 46d5a <== NOT EXECUTED _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 46d44: 4282 clrl %d2 <== NOT EXECUTED 46d46: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46d4c: 2002 movel %d2,%d0 <== NOT EXECUTED 46d4e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46d52: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 46d56: 4e5e unlk %fp <== NOT EXECUTED 46d58: 4e75 rts <== NOT EXECUTED /* * 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 ); 46d5a: 4878 4000 pea 4000 <== NOT EXECUTED _Thread_Enable_dispatch(); 46d5e: 4282 clrl %d2 <== NOT EXECUTED /* * 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 ); 46d60: 2f39 0005 b75e movel 5b75e <_Thread_Executing>,%sp@- <== NOT EXECUTED 46d66: 4eb9 0004 93cc jsr 493cc <_Thread_Clear_state> <== NOT EXECUTED 46d6c: 508f addql #8,%sp <== NOT EXECUTED 46d6e: 60d6 bras 46d46 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 46d70: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED 46d74: 664a bnes 46dc0 <== NOT EXECUTED 46d76: 740b moveq #11,%d2 <== NOT EXECUTED * 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 ); _Thread_Enable_dispatch(); 46d78: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 46d7e: 60cc bras 46d4c <== NOT EXECUTED case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 46d80: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46d82: 4eb9 0004 6a2e jsr 46a2e <_Rate_monotonic_Update_statistics> <== NOT EXECUTED _ISR_Enable( level ); 46d88: 46c2 movew %d2,%sr <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46d8a: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 46d8e: 7402 moveq #2,%d2 <== NOT EXECUTED 46d90: 2541 001c movel %d1,%a2@(28) <== NOT EXECUTED 46d94: 2542 0038 movel %d2,%a2@(56) <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 46d98: 143c 0006 moveb #6,%d2 <== NOT EXECUTED _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; 46d9c: 2541 004c movel %d1,%a2@(76) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 46da0: 486a 0010 pea %a2@(16) <== NOT EXECUTED 46da4: 4879 0005 b77c pea 5b77c <_Watchdog_Ticks_chain> <== NOT EXECUTED 46daa: 4eb9 0004 aae4 jsr 4aae4 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 46db0: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 46db6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 46dbc: 6000 ff24 braw 46ce2 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 46dc0: 5780 subql #3,%d0 <== NOT EXECUTED 46dc2: 7201 moveq #1,%d1 <== NOT EXECUTED 46dc4: b280 cmpl %d0,%d1 <== NOT EXECUTED 46dc6: 6500 ff7c bcsw 46d44 <== NOT EXECUTED 46dca: 7406 moveq #6,%d2 <== NOT EXECUTED * 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 ); _Thread_Enable_dispatch(); 46dcc: 4eb9 0004 97a4 jsr 497a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 46dd2: 6000 ff78 braw 46d4c <== NOT EXECUTED ... 00062906 : } } } void rtems_rate_monotonic_report_statistics( void ) { 62906: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); 6290a: 4879 0004 77dc pea 477dc <== NOT EXECUTED 62910: 42a7 clrl %sp@- <== NOT EXECUTED 62912: 4eb9 0006 2734 jsr 62734 <== NOT EXECUTED 62918: 508f addql #8,%sp <== NOT EXECUTED } 6291a: 4e5e unlk %fp <== NOT EXECUTED 6291c: 4e75 rts <== NOT EXECUTED ... 00062734 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 62734: 4e56 ff78 linkw %fp,#-136 <== NOT EXECUTED 62738: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 6273c: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 62740: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 62744: 4a8a tstl %a2 <== NOT EXECUTED 62746: 6700 0086 beqw 627ce <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); 6274a: 4879 0008 1ea8 pea 81ea8 <== NOT EXECUTED 62750: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62752: 4e92 jsr %a2@ <== NOT EXECUTED #if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) (*print)( context, "--- CPU times are in seconds ---\n" ); 62754: 4879 0008 1ec6 pea 81ec6 <== NOT EXECUTED 6275a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6275c: 4e92 jsr %a2@ <== NOT EXECUTED #endif #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) (*print)( context, "--- Wall times are in seconds ---\n" ); 6275e: 4879 0008 1ee8 pea 81ee8 <== NOT EXECUTED 62764: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62766: 4e92 jsr %a2@ <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 62768: 4879 0008 1f0b pea 81f0b <== NOT EXECUTED 6276e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62770: 4e92 jsr %a2@ <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS " " #endif " WALL TIME\n" ); (*print)( context, " " 62772: dffc 0000 001c addal #28,%sp <== NOT EXECUTED 62778: 2ebc 0008 1f56 movel #532310,%sp@ <== NOT EXECUTED 6277e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62780: 4e92 jsr %a2@ <== NOT EXECUTED /* * 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 ; 62782: 2439 0009 a352 movel 9a352 <_Rate_monotonic_Information+0x6>,%d2 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; 62788: 508f addql #8,%sp <== NOT EXECUTED 6278a: b4b9 0009 a356 cmpl 9a356 <_Rate_monotonic_Information+0xa>,%d2 <== NOT EXECUTED 62790: 623c bhis 627ce <== NOT EXECUTED 62792: 280e movel %fp,%d4 <== NOT EXECUTED 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 ); 62794: 2e0e movel %fp,%d7 <== NOT EXECUTED #endif name[ 0 ] = '\0'; if ( the_status.owner ) { rtems_object_get_name( the_status.owner, sizeof(name), name ); 62796: 2a0e movel %fp,%d5 <== NOT EXECUTED 62798: 0684 ffff ffa2 addil #-94,%d4 <== NOT EXECUTED 6279e: 47f9 0006 d73c lea 6d73c ,%a3 <== NOT EXECUTED 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 ); 627a4: 0687 ffff ffda addil #-38,%d7 <== NOT EXECUTED 627aa: 4bf9 0006 d7c8 lea 6d7c8 ,%a5 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 627b0: 49f9 0006 3d58 lea 63d58 <_Timespec_Divide_by_integer>,%a4 <== NOT EXECUTED #endif name[ 0 ] = '\0'; if ( the_status.owner ) { rtems_object_get_name( the_status.owner, sizeof(name), name ); 627b6: 5b85 subql #5,%d5 <== NOT EXECUTED * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 627b8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 627ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED 627bc: 4e93 jsr %a3@ <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) 627be: 508f addql #8,%sp <== NOT EXECUTED 627c0: 4a80 tstl %d0 <== NOT EXECUTED 627c2: 6714 beqs 627d8 <== NOT EXECUTED * 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++ ) { 627c4: 5282 addql #1,%d2 <== NOT EXECUTED /* * 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 ; 627c6: b4b9 0009 a356 cmpl 9a356 <_Rate_monotonic_Information+0xa>,%d2 <== NOT EXECUTED 627cc: 63ea blss 627b8 <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 627ce: 4cee 3cfc ff78 moveml %fp@(-136),%d2-%d7/%a2-%a5 <== NOT EXECUTED 627d4: 4e5e unlk %fp <== NOT EXECUTED 627d6: 4e75 rts <== NOT EXECUTED 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 ); 627d8: 2f07 movel %d7,%sp@- <== NOT EXECUTED 627da: 2f02 movel %d2,%sp@- <== NOT EXECUTED 627dc: 4e95 jsr %a5@ <== NOT EXECUTED continue; #endif name[ 0 ] = '\0'; if ( the_status.owner ) { 627de: 202e ffda movel %fp@(-38),%d0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif name[ 0 ] = '\0'; 627e2: 4201 clrb %d1 <== NOT EXECUTED if ( the_status.owner ) { 627e4: 508f addql #8,%sp <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif name[ 0 ] = '\0'; 627e6: 1d41 fffb moveb %d1,%fp@(-5) <== NOT EXECUTED if ( the_status.owner ) { 627ea: 4a80 tstl %d0 <== NOT EXECUTED 627ec: 663a bnes 62828 <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, 627ee: 2f2e ffa6 movel %fp@(-90),%sp@- <== NOT EXECUTED 627f2: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 627f6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 627f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 627fa: 4879 0008 1fa2 pea 81fa2 <== NOT EXECUTED 62800: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62802: 4e92 jsr %a2@ <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 62804: 202e ffa2 movel %fp@(-94),%d0 <== NOT EXECUTED 62808: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 6280e: 664e bnes 6285e <== NOT EXECUTED (*print)( context, "\n" ); 62810: 4879 0008 2289 pea 82289 <__func__.5623+0x118> <== NOT EXECUTED * 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++ ) { 62816: 5282 addql #1,%d2 <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 62818: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6281a: 4e92 jsr %a2@ <== NOT EXECUTED 6281c: 508f addql #8,%sp <== NOT EXECUTED /* * 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 ; 6281e: b4b9 0009 a356 cmpl 9a356 <_Rate_monotonic_Information+0xa>,%d2 <== NOT EXECUTED 62824: 6392 blss 627b8 <== NOT EXECUTED 62826: 60a6 bras 627ce <== NOT EXECUTED #endif name[ 0 ] = '\0'; if ( the_status.owner ) { rtems_object_get_name( the_status.owner, sizeof(name), name ); 62828: 2f05 movel %d5,%sp@- <== NOT EXECUTED 6282a: 4878 0005 pea 5 <== NOT EXECUTED 6282e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 62830: 4eb9 0004 a008 jsr 4a008 <== NOT EXECUTED 62836: dffc 0000 000c addal #12,%sp <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, 6283c: 2f2e ffa6 movel %fp@(-90),%sp@- <== NOT EXECUTED 62840: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 62844: 2f05 movel %d5,%sp@- <== NOT EXECUTED 62846: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62848: 4879 0008 1fa2 pea 81fa2 <== NOT EXECUTED 6284e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62850: 4e92 jsr %a2@ <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 62852: 202e ffa2 movel %fp@(-94),%d0 <== NOT EXECUTED 62856: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 6285c: 67b2 beqs 62810 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 6285e: 486e fff2 pea %fp@(-14) <== NOT EXECUTED &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 62862: 2c3c 0000 03e8 movel #1000,%d6 <== NOT EXECUTED * 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++ ) { 62868: 5282 addql #1,%d2 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 6286a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6286c: 486e ffba pea %fp@(-70) <== NOT EXECUTED 62870: 4e94 jsr %a4@ <== NOT EXECUTED &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 62872: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED 62876: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 6287a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6287c: 202e ffb6 movel %fp@(-74),%d0 <== NOT EXECUTED 62880: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED 62884: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 62888: 2240 moveal %d0,%a1 <== NOT EXECUTED 6288a: 2f09 movel %a1,%sp@- <== NOT EXECUTED 6288c: 202e ffae movel %fp@(-82),%d0 <== NOT EXECUTED 62890: 2f2e ffb2 movel %fp@(-78),%sp@- <== NOT EXECUTED 62894: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 62898: 2f00 movel %d0,%sp@- <== NOT EXECUTED 6289a: 2f2e ffaa movel %fp@(-86),%sp@- <== NOT EXECUTED 6289e: 4879 0008 1fb9 pea 81fb9 <== NOT EXECUTED 628a4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 628a6: 4e92 jsr %a2@ <== NOT EXECUTED * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 628a8: dffc 0000 002c addal #44,%sp <== NOT EXECUTED 628ae: 486e fff2 pea %fp@(-14) <== NOT EXECUTED 628b2: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 628b6: 486e ffd2 pea %fp@(-46) <== NOT EXECUTED 628ba: 4e94 jsr %a4@ <== NOT EXECUTED &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 628bc: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED 628c0: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 628c4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 628c6: 222e ffce movel %fp@(-50),%d1 <== NOT EXECUTED 628ca: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED 628ce: 4c46 1801 remsl %d6,%d1,%d1 <== NOT EXECUTED 628d2: 2241 moveal %d1,%a1 <== NOT EXECUTED 628d4: 2f09 movel %a1,%sp@- <== NOT EXECUTED 628d6: 202e ffc6 movel %fp@(-58),%d0 <== NOT EXECUTED 628da: 2f2e ffca movel %fp@(-54),%sp@- <== NOT EXECUTED 628de: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 628e2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 628e4: 2f2e ffc2 movel %fp@(-62),%sp@- <== NOT EXECUTED 628e8: 4879 0008 1fd8 pea 81fd8 <== NOT EXECUTED 628ee: 2f03 movel %d3,%sp@- <== NOT EXECUTED 628f0: 4e92 jsr %a2@ <== NOT EXECUTED 628f2: dffc 0000 002c addal #44,%sp <== NOT EXECUTED /* * 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 ; 628f8: b4b9 0009 a356 cmpl 9a356 <_Rate_monotonic_Information+0xa>,%d2 <== NOT EXECUTED 628fe: 6300 feb8 blsw 627b8 <== NOT EXECUTED 62902: 6000 feca braw 627ce <== NOT EXECUTED 00062920 : /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 62920: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 62924: 2039 0009 9e80 movel 99e80 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 6292a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6292c: 5280 addql #1,%d0 <== NOT EXECUTED 6292e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62930: 23c0 0009 9e80 movel %d0,99e80 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * 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 ; 62936: 2439 0009 a352 movel 9a352 <_Rate_monotonic_Information+0x6>,%d2 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; 6293c: b4b9 0009 a356 cmpl 9a356 <_Rate_monotonic_Information+0xa>,%d2 <== NOT EXECUTED 62942: 6216 bhis 6295a <== NOT EXECUTED 62944: 45f9 0006 296c lea 6296c ,%a2 <== NOT EXECUTED id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 6294a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6294c: 4e92 jsr %a2@ <== NOT EXECUTED * 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 ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 6294e: 5282 addql #1,%d2 <== NOT EXECUTED /* * 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 ; id <= _Rate_monotonic_Information.maximum_id ; 62950: 588f addql #4,%sp <== NOT EXECUTED 62952: b4b9 0009 a356 cmpl 9a356 <_Rate_monotonic_Information+0xa>,%d2 <== NOT EXECUTED 62958: 63f0 blss 6294a <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } 6295a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 6295e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 62962: 4e5e unlk %fp <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); 62964: 4ef9 0004 c554 jmp 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED ... 0006296c : */ rtems_status_code rtems_rate_monotonic_reset_statistics( Objects_Id id ) { 6296c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 62970: 486e fffc pea %fp@(-4) <== NOT EXECUTED 62974: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 62978: 4879 0009 a34c pea 9a34c <_Rate_monotonic_Information> <== NOT EXECUTED 6297e: 4eb9 0004 bc78 jsr 4bc78 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 62984: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6298a: 2240 moveal %d0,%a1 <== NOT EXECUTED 6298c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 62990: 6646 bnes 629d8 <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 62992: 42a9 0054 clrl %a1@(84) <== NOT EXECUTED 62996: 41e9 007c lea %a1@(124),%a0 <== NOT EXECUTED 6299a: 42a9 0058 clrl %a1@(88) <== NOT EXECUTED 6299e: 42a9 0064 clrl %a1@(100) <== NOT EXECUTED 629a2: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED 629a8: 42a9 0068 clrl %a1@(104) <== NOT EXECUTED 629ac: 42a9 006c clrl %a1@(108) <== NOT EXECUTED 629b0: 42a9 0070 clrl %a1@(112) <== NOT EXECUTED 629b4: 4298 clrl %a0@+ <== NOT EXECUTED 629b6: 4298 clrl %a0@+ <== NOT EXECUTED 629b8: 4298 clrl %a0@+ <== NOT EXECUTED 629ba: 4290 clrl %a0@ <== NOT EXECUTED 629bc: 2340 0078 movel %d0,%a1@(120) <== NOT EXECUTED 629c0: 2340 005c movel %d0,%a1@(92) <== NOT EXECUTED 629c4: 2340 0060 movel %d0,%a1@(96) <== NOT EXECUTED 629c8: 2340 0074 movel %d0,%a1@(116) <== NOT EXECUTED _Thread_Enable_dispatch(); 629cc: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 629d2: 4e5e unlk %fp <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); _Thread_Enable_dispatch(); 629d4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 629d6: 4e75 rts <== NOT EXECUTED 629d8: 4e5e unlk %fp <== NOT EXECUTED { Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 629da: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 629dc: 4e75 rts <== NOT EXECUTED ... 00051738 : uint32_t length, uint32_t page_size, rtems_attribute attribute_set, Objects_Id *id ) { 51738: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5173c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5173e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 51740: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 51744: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 51748: 6720 beqs 5176a <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) 5174a: 4a82 tstl %d2 <== NOT EXECUTED 5174c: 670c beqs 5175a <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) 5174e: 4aae 001c tstl %fp@(28) <== NOT EXECUTED 51752: 6706 beqs 5175a <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) 51754: 7003 moveq #3,%d0 <== NOT EXECUTED 51756: c082 andl %d2,%d0 <== NOT EXECUTED 51758: 6720 beqs 5177a <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); return return_status; 5175a: 7409 moveq #9,%d2 <== NOT EXECUTED } 5175c: 2002 movel %d2,%d0 <== NOT EXECUTED 5175e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 51762: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 51766: 4e5e unlk %fp <== NOT EXECUTED 51768: 4e75 rts <== NOT EXECUTED ) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 5176a: 7403 moveq #3,%d2 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } 5176c: 2002 movel %d2,%d0 <== NOT EXECUTED 5176e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 51772: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 51776: 4e5e unlk %fp <== NOT EXECUTED 51778: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 5177a: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51780: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED * 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 ); 51786: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 5178c: 4eb9 0005 54b4 jsr 554b4 <_Objects_Allocate> <== NOT EXECUTED the_region = _Region_Allocate(); if ( !the_region ) 51792: 508f addql #8,%sp <== NOT EXECUTED 51794: 2440 moveal %d0,%a2 <== NOT EXECUTED 51796: 4a80 tstl %d0 <== NOT EXECUTED 51798: 6700 00ca beqw 51864 <== NOT EXECUTED return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 5179c: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 517a0: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 517a4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 517a6: 486a 0068 pea %a2@(104) <== NOT EXECUTED 517aa: 4eb9 0005 4fbc jsr 54fbc <_Heap_Initialize> <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 517b0: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 517b6: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 517ba: 662e bnes 517ea <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 517bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 517be: 7408 moveq #8,%d2 <== NOT EXECUTED 517c0: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 517c6: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED 517cc: 508f addql #8,%sp <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 517ce: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 517d4: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 517da: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 517dc: 2002 movel %d2,%d0 <== NOT EXECUTED 517de: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 517e2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 517e6: 4e5e unlk %fp <== NOT EXECUTED 517e8: 4e75 rts <== NOT EXECUTED } else { the_region->starting_address = starting_address; the_region->length = length; 517ea: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 517ee: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED the_region->page_size = page_size; 517f2: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED the_region->attribute_set = attribute_set; 517f6: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; 517fa: 2548 0058 movel %a0,%a2@(88) <== NOT EXECUTED the_region->attribute_set = attribute_set; 517fe: 2540 0060 movel %d0,%a2@(96) <== NOT EXECUTED the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( 51802: e488 lsrl #2,%d0 <== NOT EXECUTED 51804: 2d40 0018 movel %d0,%fp@(24) <== NOT EXECUTED 51808: 7001 moveq #1,%d0 <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; 5180a: 2542 0050 movel %d2,%a2@(80) <== NOT EXECUTED &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 5180e: 4282 clrl %d2 <== NOT EXECUTED 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; 51810: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED _Thread_queue_Initialize( 51814: 4878 0006 pea 6 <== NOT EXECUTED 51818: 4878 0040 pea 40 <== NOT EXECUTED 5181c: c0ae 0018 andl %fp@(24),%d0 <== NOT EXECUTED 51820: 2f00 movel %d0,%sp@- <== NOT EXECUTED 51822: 486a 0010 pea %a2@(16) <== NOT EXECUTED 51826: 4eb9 0005 6ac4 jsr 56ac4 <_Thread_queue_Initialize> <== NOT EXECUTED 5182c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 51830: 2548 000c movel %a0,%a2@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 51834: 2079 0007 14be moveal 714be <_Region_Information+0x1a>,%a0 <== NOT EXECUTED 5183a: 4280 clrl %d0 <== NOT EXECUTED 5183c: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED 51840: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 51844: 206e 001c moveal %fp@(28),%a0 <== NOT EXECUTED 51848: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED 5184c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 51852: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51858: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 5185e: 588f addql #4,%sp <== NOT EXECUTED 51860: 6000 ff7a braw 517dc <== NOT EXECUTED 51864: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) 5186a: 7405 moveq #5,%d2 <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 5186c: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51872: 588f addql #4,%sp <== NOT EXECUTED 51874: 6000 ff66 braw 517dc <== NOT EXECUTED 00051878 : */ rtems_status_code rtems_region_delete( Objects_Id id ) { 51878: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5187c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5187e: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; _RTEMS_Lock_allocator(); 51880: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51886: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 5188c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 51890: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51894: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 5189a: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 518a0: 2440 moveal %d0,%a2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 518a2: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 518a6: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 518ac: 6622 bnes 518d0 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) 518ae: 4aaa 0064 tstl %a2@(100) <== NOT EXECUTED 518b2: 675a beqs 5190e <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 518b4: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) 518ba: 740c moveq #12,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 518bc: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 518c2: 2002 movel %d2,%d0 <== NOT EXECUTED 518c4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 518c8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 518cc: 4e5e unlk %fp <== NOT EXECUTED 518ce: 4e75 rts <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 518d0: 7201 moveq #1,%d1 <== NOT EXECUTED 518d2: b280 cmpl %d0,%d1 <== NOT EXECUTED 518d4: 671c beqs 518f2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 518d6: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 518dc: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 518de: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 518e4: 2002 movel %d2,%d0 <== NOT EXECUTED 518e6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 518ea: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 518ee: 4e5e unlk %fp <== NOT EXECUTED 518f0: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 518f2: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 518f8: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 518fa: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 51900: 2002 movel %d2,%d0 <== NOT EXECUTED 51902: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 51906: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5190a: 4e5e unlk %fp <== NOT EXECUTED 5190c: 4e75 rts <== NOT EXECUTED 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 ); 5190e: 2f0a movel %a2,%sp@- <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 51910: 4282 clrl %d2 <== NOT EXECUTED 51912: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51918: 4eb9 0005 5550 jsr 55550 <_Objects_Close> <== NOT EXECUTED 5191e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51920: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51926: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED 5192c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51932: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51938: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 5193e: 2002 movel %d2,%d0 <== NOT EXECUTED 51940: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 51944: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 51948: 4e5e unlk %fp <== NOT EXECUTED 5194a: 4e75 rts 0005194c : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 5194c: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 51950: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51952: 2f02 movel %d2,%sp@- <== NOT EXECUTED Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Region_Control *the_region; if ( !starting_address ) 51954: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 51958: 6700 00a8 beqw 51a02 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 5195c: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51962: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 51968: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 5196c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51970: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51976: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 5197c: 2440 moveal %d0,%a2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 5197e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 51982: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51988: 664e bnes 519d8 <== NOT EXECUTED case OBJECTS_LOCAL: heap_status = _Heap_Extend( 5198a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5198e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 51992: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51996: 486a 0068 pea %a2@(104) <== NOT EXECUTED 5199a: 4eb9 0005 4cb8 jsr 54cb8 <_Heap_Extend> <== NOT EXECUTED starting_address, length, &amount_extended ); switch ( heap_status ) { 519a0: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 519a6: 7201 moveq #1,%d1 <== NOT EXECUTED 519a8: b280 cmpl %d0,%d1 <== NOT EXECUTED 519aa: 6766 beqs 51a12 <== NOT EXECUTED 519ac: 6376 blss 51a24 <== NOT EXECUTED case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 519ae: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; 519b2: d1aa 005c addl %d0,%a2@(92) <== NOT EXECUTED &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 519b6: d1aa 0054 addl %d0,%a2@(84) <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; 519ba: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 519bc: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 519c2: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 519c8: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 519ca: 2002 movel %d2,%d0 <== NOT EXECUTED 519cc: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 519d0: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 519d4: 4e5e unlk %fp <== NOT EXECUTED 519d6: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { 519d8: 7201 moveq #1,%d1 <== NOT EXECUTED 519da: b280 cmpl %d0,%d1 <== NOT EXECUTED 519dc: 6712 beqs 519f0 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 519de: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 519e4: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 519e6: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 519ec: 588f addql #4,%sp <== NOT EXECUTED 519ee: 60da bras 519ca <== NOT EXECUTED 519f0: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { 519f6: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 519f8: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 519fe: 588f addql #4,%sp <== NOT EXECUTED 51a00: 60c8 bras 519ca <== NOT EXECUTED Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Region_Control *the_region; if ( !starting_address ) 51a02: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51a04: 2002 movel %d2,%d0 <== NOT EXECUTED 51a06: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 51a0a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 51a0e: 4e5e unlk %fp <== NOT EXECUTED 51a10: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51a12: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED starting_address, length, &amount_extended ); switch ( heap_status ) { 51a18: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51a1a: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51a20: 588f addql #4,%sp <== NOT EXECUTED 51a22: 60a6 bras 519ca <== NOT EXECUTED starting_address, length, &amount_extended ); switch ( heap_status ) { 51a24: 123c 0002 moveb #2,%d1 <== NOT EXECUTED 51a28: b280 cmpl %d0,%d1 <== NOT EXECUTED 51a2a: 66b2 bnes 519de <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51a2c: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 51a32: 7418 moveq #24,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51a34: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51a3a: 588f addql #4,%sp <== NOT EXECUTED 51a3c: 608c bras 519ca <== NOT EXECUTED ... 00051a40 : rtems_status_code rtems_region_get_free_information( Objects_Id id, Heap_Information_block *the_info ) { 51a40: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 51a44: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51a46: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 51a4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !the_info ) 51a4c: 4a8a tstl %a2 <== NOT EXECUTED 51a4e: 677e beqs 51ace <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 51a50: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51a56: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED 51a5c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 51a60: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51a64: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51a6a: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 51a70: 2040 moveal %d0,%a0 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 51a72: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 51a76: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51a7c: 6724 beqs 51aa2 <== NOT EXECUTED 51a7e: 7201 moveq #1,%d1 <== NOT EXECUTED 51a80: b280 cmpl %d0,%d1 <== NOT EXECUTED 51a82: 675a beqs 51ade <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51a84: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51a8a: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51a8c: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51a92: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 51a94: 2002 movel %d2,%d0 <== NOT EXECUTED 51a96: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 51a9a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 51a9e: 4e5e unlk %fp <== NOT EXECUTED 51aa0: 4e75 rts <== NOT EXECUTED the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 51aa2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51aa4: 4282 clrl %d2 <== NOT EXECUTED 51aa6: 4868 0068 pea %a0@(104) <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; 51aaa: 42aa 000c clrl %a2@(12) <== NOT EXECUTED the_info->Used.total = 0; 51aae: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED the_info->Used.largest = 0; 51ab2: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 51ab6: 4eb9 0005 4ef4 jsr 54ef4 <_Heap_Get_free_information> <== NOT EXECUTED 51abc: 508f addql #8,%sp <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51abe: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51ac4: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51aca: 588f addql #4,%sp <== NOT EXECUTED 51acc: 60c6 bras 51a94 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !the_info ) 51ace: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51ad0: 2002 movel %d2,%d0 <== NOT EXECUTED 51ad2: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 51ad6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 51ada: 4e5e unlk %fp <== NOT EXECUTED 51adc: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51ade: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51ae4: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51ae6: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51aec: 588f addql #4,%sp <== NOT EXECUTED 51aee: 60a4 bras 51a94 <== NOT EXECUTED 00051af0 : rtems_status_code rtems_region_get_information( Objects_Id id, Heap_Information_block *the_info ) { 51af0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 51af4: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !the_info ) 51af6: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 51afa: 6774 beqs 51b70 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 51afc: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51b02: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED 51b08: 486e fffc pea %fp@(-4) <== NOT EXECUTED 51b0c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51b10: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51b16: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 51b1c: 2040 moveal %d0,%a0 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 51b1e: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 51b22: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51b28: 6720 beqs 51b4a <== NOT EXECUTED 51b2a: 7201 moveq #1,%d1 <== NOT EXECUTED 51b2c: b280 cmpl %d0,%d1 <== NOT EXECUTED 51b2e: 674c beqs 51b7c <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b30: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51b36: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b38: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51b3e: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 51b40: 2002 movel %d2,%d0 <== NOT EXECUTED 51b42: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 51b46: 4e5e unlk %fp <== NOT EXECUTED 51b48: 4e75 rts <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Heap_Get_information( &the_region->Memory, the_info ) != 51b4a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51b4e: 4868 0068 pea %a0@(104) <== NOT EXECUTED 51b52: 4eb9 0005 4f38 jsr 54f38 <_Heap_Get_information> <== NOT EXECUTED 51b58: 508f addql #8,%sp <== NOT EXECUTED 51b5a: 4a80 tstl %d0 <== NOT EXECUTED 51b5c: 6730 beqs 51b8e <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b5e: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Heap_Get_information( &the_region->Memory, the_info ) != 51b64: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b66: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51b6c: 588f addql #4,%sp <== NOT EXECUTED 51b6e: 60d0 bras 51b40 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !the_info ) 51b70: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51b72: 2002 movel %d2,%d0 <== NOT EXECUTED 51b74: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 51b78: 4e5e unlk %fp <== NOT EXECUTED 51b7a: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b7c: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51b82: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b84: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51b8a: 588f addql #4,%sp <== NOT EXECUTED 51b8c: 60b2 bras 51b40 <== NOT EXECUTED 51b8e: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Heap_Get_information( &the_region->Memory, the_info ) != 51b94: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51b96: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51b9c: 588f addql #4,%sp <== NOT EXECUTED 51b9e: 60a0 bras 51b40 <== NOT EXECUTED 00051ba0 : uint32_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { 51ba0: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 51ba4: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 51ba8: 246e 0018 moveal %fp@(24),%a2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; void *the_segment; if ( !segment ) 51bac: 4a8a tstl %a2 <== NOT EXECUTED 51bae: 6700 009c beqw 51c4c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; *segment = NULL; 51bb2: 4292 clrl %a2@ <== NOT EXECUTED if ( size == 0 ) 51bb4: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 51bb8: 660e bnes 51bc8 <== NOT EXECUTED 51bba: 7408 moveq #8,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51bbc: 2002 movel %d2,%d0 <== NOT EXECUTED 51bbe: 4cee 1c04 ffec moveml %fp@(-20),%d2/%a2-%a4 <== NOT EXECUTED 51bc4: 4e5e unlk %fp <== NOT EXECUTED 51bc6: 4e75 rts <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 51bc8: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51bce: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED 51bd4: 486e fffc pea %fp@(-4) <== NOT EXECUTED executing = _Thread_Executing; 51bd8: 2879 0007 16be moveal 716be <_Thread_Executing>,%a4 <== NOT EXECUTED 51bde: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51be2: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51be8: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 51bee: 2640 moveal %d0,%a3 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 51bf0: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 51bf4: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51bfa: 6626 bnes 51c22 <== NOT EXECUTED case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) 51bfc: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 51c00: b0ab 005c cmpl %a3@(92),%d0 <== NOT EXECUTED 51c04: 6354 blss 51c5a <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c06: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) 51c0c: 7408 moveq #8,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c0e: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51c14: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 51c16: 2002 movel %d2,%d0 <== NOT EXECUTED 51c18: 4cee 1c04 ffec moveml %fp@(-20),%d2/%a2-%a4 <== NOT EXECUTED 51c1e: 4e5e unlk %fp <== NOT EXECUTED 51c20: 4e75 rts <== NOT EXECUTED _RTEMS_Lock_allocator(); executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { 51c22: 7201 moveq #1,%d1 <== NOT EXECUTED 51c24: b280 cmpl %d0,%d1 <== NOT EXECUTED 51c26: 6712 beqs 51c3a <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c28: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED _RTEMS_Lock_allocator(); executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { 51c2e: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c30: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51c36: 588f addql #4,%sp <== NOT EXECUTED 51c38: 60dc bras 51c16 <== NOT EXECUTED 51c3a: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code; 51c40: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c42: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51c48: 588f addql #4,%sp <== NOT EXECUTED 51c4a: 60ca bras 51c16 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; void *the_segment; if ( !segment ) 51c4c: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51c4e: 2002 movel %d2,%d0 <== NOT EXECUTED 51c50: 4cee 1c04 ffec moveml %fp@(-20),%d2/%a2-%a4 <== NOT EXECUTED 51c56: 4e5e unlk %fp <== NOT EXECUTED 51c58: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uint32_t size ) { return _Heap_Allocate( &the_region->Memory, size ); 51c5a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51c5e: 486b 0068 pea %a3@(104) <== NOT EXECUTED 51c62: 4eb9 0005 4bf4 jsr 54bf4 <_Heap_Allocate> <== NOT EXECUTED the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { 51c68: 508f addql #8,%sp <== NOT EXECUTED 51c6a: 4a80 tstl %d0 <== NOT EXECUTED 51c6c: 6718 beqs 51c86 <== NOT EXECUTED the_region->number_of_used_blocks += 1; 51c6e: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED *segment = the_segment; 51c72: 4282 clrl %d2 <== NOT EXECUTED 51c74: 2480 movel %d0,%a2@ <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c76: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51c7c: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51c82: 588f addql #4,%sp <== NOT EXECUTED 51c84: 6090 bras 51c16 <== NOT EXECUTED the_region->number_of_used_blocks += 1; *segment = the_segment; return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { 51c86: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 51c8a: 0801 0000 btst #0,%d1 <== NOT EXECUTED 51c8e: 6714 beqs 51ca4 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c90: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region->number_of_used_blocks += 1; *segment = the_segment; return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { 51c96: 740d moveq #13,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51c98: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51c9e: 588f addql #4,%sp <== NOT EXECUTED 51ca0: 6000 ff74 braw 51c16 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 51ca4: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 51caa: 5280 addql #1,%d0 <== NOT EXECUTED 51cac: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * 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(); 51cb2: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51cb8: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED executing->Wait.queue = &the_region->Wait_queue; executing->Wait.id = id; 51cbe: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 51cc2: 2941 0020 movel %d1,%a4@(32) <== NOT EXECUTED 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; 51cc6: 7201 moveq #1,%d1 <== NOT EXECUTED * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; 51cc8: 200b movel %a3,%d0 <== NOT EXECUTED 51cca: 2741 0040 movel %d1,%a3@(64) <== NOT EXECUTED executing->Wait.id = id; executing->Wait.count = size; 51cce: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; 51cd2: 0680 0000 0010 addil #16,%d0 <== NOT EXECUTED 51cd8: 2940 0044 movel %d0,%a4@(68) <== NOT EXECUTED executing->Wait.id = id; executing->Wait.count = size; 51cdc: 2941 0024 movel %d1,%a4@(36) <== NOT EXECUTED executing->Wait.return_argument = segment; 51ce0: 294a 0028 movel %a2,%a4@(40) <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); 51ce4: 4879 0005 6bc8 pea 56bc8 <_Thread_queue_Timeout> <== NOT EXECUTED 51cea: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 51cee: 2f00 movel %d0,%sp@- <== NOT EXECUTED 51cf0: 4eb9 0005 6808 jsr 56808 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); 51cf6: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return (rtems_status_code) executing->Wait.return_code; 51cfc: 242c 0034 movel %a4@(52),%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51d00: 2002 movel %d2,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code; 51d02: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51d08: 4cee 1c04 ffec moveml %fp@(-20),%d2/%a2-%a4 <== NOT EXECUTED 51d0e: 4e5e unlk %fp <== NOT EXECUTED 51d10: 4e75 rts <== NOT EXECUTED ... 00051d14 : rtems_status_code rtems_region_get_segment_size( Objects_Id id, void *segment, size_t *size ) { 51d14: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 51d18: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !segment ) 51d1a: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 51d1e: 6700 0084 beqw 51da4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) 51d22: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 51d26: 677c beqs 51da4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 51d28: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51d2e: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 51d34: 486e fffc pea %fp@(-4) <== NOT EXECUTED 51d38: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51d3c: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51d42: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 51d48: 2040 moveal %d0,%a0 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 51d4a: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 51d4e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51d54: 6720 beqs 51d76 <== NOT EXECUTED 51d56: 7201 moveq #1,%d1 <== NOT EXECUTED 51d58: b280 cmpl %d0,%d1 <== NOT EXECUTED 51d5a: 6754 beqs 51db0 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51d5c: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51d62: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51d64: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51d6a: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 51d6c: 2002 movel %d2,%d0 <== NOT EXECUTED 51d6e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 51d72: 4e5e unlk %fp <== NOT EXECUTED 51d74: 4e75 rts <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_user_area( &the_region->Memory, segment, size ) ) 51d76: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 51d7a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51d7e: 4868 0068 pea %a0@(104) <== NOT EXECUTED 51d82: 4eb9 0005 5378 jsr 55378 <_Heap_Size_of_user_area> <== NOT EXECUTED 51d88: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 51d8e: 4a00 tstb %d0 <== NOT EXECUTED 51d90: 6630 bnes 51dc2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51d92: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_user_area( &the_region->Memory, segment, size ) ) 51d98: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51d9a: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51da0: 588f addql #4,%sp <== NOT EXECUTED 51da2: 60c8 bras 51d6c <== NOT EXECUTED return return_status; 51da4: 7409 moveq #9,%d2 <== NOT EXECUTED } 51da6: 2002 movel %d2,%d0 <== NOT EXECUTED 51da8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 51dac: 4e5e unlk %fp <== NOT EXECUTED 51dae: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51db0: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51db6: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51db8: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51dbe: 588f addql #4,%sp <== NOT EXECUTED 51dc0: 60aa bras 51d6c <== NOT EXECUTED 51dc2: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_user_area( &the_region->Memory, segment, size ) ) 51dc8: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51dca: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51dd0: 588f addql #4,%sp <== NOT EXECUTED 51dd2: 6098 bras 51d6c <== NOT EXECUTED 00051dd4 : rtems_status_code rtems_region_ident( rtems_name name, Objects_Id *id ) { 51dd4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 51dd8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51ddc: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 51de2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51de6: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51dec: 4eb9 0005 5bb8 jsr 55bb8 <_Objects_Name_to_id_u32> <== NOT EXECUTED 51df2: 41f9 0006 a75e lea 6a75e <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } 51df8: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 51dfc: 4e5e unlk %fp <== NOT EXECUTED 51dfe: 4e75 rts 00051e00 : Objects_Id id, void *segment, size_t size, size_t *old_size ) { 51e00: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 51e04: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51e06: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t osize; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) 51e08: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 51e0c: 6700 00ba beqw 51ec8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 51e10: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51e16: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED 51e1c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 51e20: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51e24: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51e2a: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 51e30: 2440 moveal %d0,%a2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 51e32: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 51e36: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51e3c: 6726 beqs 51e64 <== NOT EXECUTED 51e3e: 7201 moveq #1,%d1 <== NOT EXECUTED 51e40: b280 cmpl %d0,%d1 <== NOT EXECUTED 51e42: 6700 0094 beqw 51ed8 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51e46: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51e4c: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51e4e: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51e54: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 51e56: 2002 movel %d2,%d0 <== NOT EXECUTED 51e58: 242e ffec movel %fp@(-20),%d2 <== NOT EXECUTED 51e5c: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 51e60: 4e5e unlk %fp <== NOT EXECUTED 51e62: 4e75 rts <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 51e64: 486e fffc pea %fp@(-4) <== NOT EXECUTED 51e68: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 51e6c: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 51e70: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51e74: 486a 0068 pea %a2@(104) <== NOT EXECUTED 51e78: 4eb9 0005 51b4 jsr 551b4 <_Heap_Resize_block> <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 51e7e: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 51e82: 20ae fff4 movel %fp@(-12),%a0@ <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 51e86: 2400 movel %d0,%d2 <== NOT EXECUTED ); *old_size = (uint32_t) osize; _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 51e88: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 51e8e: 6624 bnes 51eb4 <== NOT EXECUTED 51e90: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 51e94: 6656 bnes 51eec <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 51e96: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51e9c: 4282 clrl %d2 <== NOT EXECUTED 51e9e: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51ea4: 2002 movel %d2,%d0 <== NOT EXECUTED 51ea6: 242e ffec movel %fp@(-20),%d2 <== NOT EXECUTED 51eaa: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 51eae: 588f addql #4,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51eb0: 4e5e unlk %fp <== NOT EXECUTED 51eb2: 4e75 rts <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 51eb4: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51eba: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED return 51ec0: 588f addql #4,%sp <== NOT EXECUTED 51ec2: 7001 moveq #1,%d0 <== NOT EXECUTED 51ec4: b082 cmpl %d2,%d0 <== NOT EXECUTED 51ec6: 673c beqs 51f04 <== NOT EXECUTED return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 51ec8: 7409 moveq #9,%d2 <== NOT EXECUTED } 51eca: 2002 movel %d2,%d0 <== NOT EXECUTED 51ecc: 242e ffec movel %fp@(-20),%d2 <== NOT EXECUTED 51ed0: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 51ed4: 4e5e unlk %fp <== NOT EXECUTED 51ed6: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51ed8: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); return 51ede: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51ee0: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51ee6: 588f addql #4,%sp <== NOT EXECUTED 51ee8: 6000 ff6c braw 51e56 <== NOT EXECUTED *old_size = (uint32_t) osize; _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ 51eec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51eee: 4eb9 0005 97a4 jsr 597a4 <_Region_Process_queue> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51ef4: 2002 movel %d2,%d0 <== NOT EXECUTED 51ef6: 242e ffec movel %fp@(-20),%d2 <== NOT EXECUTED 51efa: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED *old_size = (uint32_t) osize; _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ 51efe: 588f addql #4,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51f00: 4e5e unlk %fp <== NOT EXECUTED 51f02: 4e75 rts <== NOT EXECUTED if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); return 51f04: 740d moveq #13,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51f06: 2002 movel %d2,%d0 <== NOT EXECUTED 51f08: 242e ffec movel %fp@(-20),%d2 <== NOT EXECUTED 51f0c: 246e fff0 moveal %fp@(-16),%a2 <== NOT EXECUTED 51f10: 4e5e unlk %fp <== NOT EXECUTED 51f12: 4e75 rts 00051f14 : rtems_status_code rtems_region_return_segment( Objects_Id id, void *segment ) { 51f14: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 51f18: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51f1a: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); 51f1c: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 51f22: 4eb9 0005 3f9c jsr 53f9c <_API_Mutex_Lock> <== NOT EXECUTED 51f28: 486e fffc pea %fp@(-4) <== NOT EXECUTED 51f2c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 51f30: 4879 0007 14a4 pea 714a4 <_Region_Information> <== NOT EXECUTED 51f36: 4eb9 0005 59e0 jsr 559e0 <_Objects_Get_no_protection> <== NOT EXECUTED 51f3c: 2440 moveal %d0,%a2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 51f3e: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 51f42: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 51f48: 6632 bnes 51f7c <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); 51f4a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 51f4e: 486a 0068 pea %a2@(104) <== NOT EXECUTED 51f52: 4eb9 0005 4d70 jsr 54d70 <_Heap_Free> <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) 51f58: 508f addql #8,%sp <== NOT EXECUTED 51f5a: 4a00 tstb %d0 <== NOT EXECUTED 51f5c: 6648 bnes 51fa6 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51f5e: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 51f64: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51f66: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51f6c: 588f addql #4,%sp <== NOT EXECUTED return return_status; } 51f6e: 2002 movel %d2,%d0 <== NOT EXECUTED 51f70: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 51f74: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 51f78: 4e5e unlk %fp <== NOT EXECUTED 51f7a: 4e75 rts <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51f7c: 7201 moveq #1,%d1 <== NOT EXECUTED 51f7e: b280 cmpl %d0,%d1 <== NOT EXECUTED 51f80: 6712 beqs 51f94 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51f82: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51f88: 7419 moveq #25,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51f8a: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51f90: 588f addql #4,%sp <== NOT EXECUTED 51f92: 60da bras 51f6e <== NOT EXECUTED 51f94: 2f39 0007 16b6 movel 716b6 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 51f9a: 7404 moveq #4,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 51f9c: 4eb9 0005 4000 jsr 54000 <_API_Mutex_Unlock> <== NOT EXECUTED 51fa2: 588f addql #4,%sp <== NOT EXECUTED 51fa4: 60c8 bras 51f6e <== NOT EXECUTED if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; 51fa6: 53aa 0064 subql #1,%a2@(100) <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ 51faa: 4282 clrl %d2 <== NOT EXECUTED 51fac: 2f0a movel %a2,%sp@- <== NOT EXECUTED 51fae: 4eb9 0005 97a4 jsr 597a4 <_Region_Process_queue> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51fb4: 2002 movel %d2,%d0 <== NOT EXECUTED 51fb6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 51fba: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ 51fbe: 588f addql #4,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 51fc0: 4e5e unlk %fp <== NOT EXECUTED 51fc2: 4e75 rts 00045920 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 45920: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED 45924: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 45928: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 4592c: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 45930: 675c beqs 4598e <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 45932: 4aae 0018 tstl %fp@(24) <== NOT EXECUTED 45936: 6762 beqs 4599a <== NOT EXECUTED uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 45938: 2002 movel %d2,%d0 <== NOT EXECUTED 4593a: 0280 0000 00c0 andil #192,%d0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 45940: 671e beqs 45960 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 45942: 7630 moveq #48,%d3 <== NOT EXECUTED 45944: c682 andl %d2,%d3 <== NOT EXECUTED _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 45946: 7210 moveq #16,%d1 <== NOT EXECUTED 45948: b283 cmpl %d3,%d1 <== NOT EXECUTED 4594a: 6732 beqs 4597e <== NOT EXECUTED 4594c: 123c 0020 moveb #32,%d1 <== NOT EXECUTED 45950: b283 cmpl %d3,%d1 <== NOT EXECUTED 45952: 672a beqs 4597e <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 45954: 700b moveq #11,%d0 <== NOT EXECUTED } 45956: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 4595c: 4e5e unlk %fp <== NOT EXECUTED 4595e: 4e75 rts <== NOT EXECUTED return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 45960: 7630 moveq #48,%d3 <== NOT EXECUTED 45962: c682 andl %d2,%d3 <== NOT EXECUTED 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 ) ) 45964: 4a83 tstl %d3 <== NOT EXECUTED 45966: 673e beqs 459a6 <== NOT EXECUTED 45968: 7001 moveq #1,%d0 <== NOT EXECUTED 4596a: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 4596e: 6436 bccs 459a6 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 45970: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 45976: 4e5e unlk %fp <== NOT EXECUTED 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 ) ) 45978: 103c 000a moveb #10,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4597c: 4e75 rts <== NOT EXECUTED #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 4597e: 44c2 movew %d2,%ccr <== NOT EXECUTED 45980: 66d2 bnes 45954 <== NOT EXECUTED _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 45982: 0c80 0000 00c0 cmpil #192,%d0 <== NOT EXECUTED 45988: 66da bnes 45964 <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4598a: 700b moveq #11,%d0 <== NOT EXECUTED 4598c: 60c8 bras 45956 <== NOT EXECUTED } 4598e: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 45994: 4e5e unlk %fp <== NOT EXECUTED { register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 45996: 7003 moveq #3,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 45998: 4e75 rts <== NOT EXECUTED 4599a: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 459a0: 4e5e unlk %fp <== NOT EXECUTED CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 459a2: 7009 moveq #9,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 459a4: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 459a6: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 459ac: 5280 addql #1,%d0 <== NOT EXECUTED 459ae: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * 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 ); 459b4: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 459ba: 4eb9 0004 6f0c jsr 46f0c <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 459c0: 588f addql #4,%sp <== NOT EXECUTED 459c2: 2440 moveal %d0,%a2 <== NOT EXECUTED 459c4: 4a80 tstl %d0 <== NOT EXECUTED 459c6: 6700 00ee beqw 45ab6 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 459ca: 2542 0010 movel %d2,%a2@(16) <== NOT EXECUTED * If it is not a counting semaphore, then it is either a * simple binary semaphore or a more powerful mutex style binary * semaphore. */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { 459ce: 4a83 tstl %d3 <== NOT EXECUTED 459d0: 6772 beqs 45a44 <== NOT EXECUTED CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 459d2: 0802 0006 btst #6,%d2 <== NOT EXECUTED 459d6: 6700 00d0 beqw 45aa8 <== NOT EXECUTED the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 459da: 7202 moveq #2,%d1 <== NOT EXECUTED 459dc: 2d41 fff0 movel %d1,%fp@(-16) <== NOT EXECUTED the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 459e0: 7210 moveq #16,%d1 <== NOT EXECUTED 459e2: b283 cmpl %d3,%d1 <== NOT EXECUTED 459e4: 6700 00e2 beqw 45ac8 <== NOT EXECUTED the_mutex_attributes.only_owner_release = TRUE; break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; 459e8: 4201 clrb %d1 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; 459ea: 7002 moveq #2,%d0 <== NOT EXECUTED the_mutex_attributes.only_owner_release = FALSE; 459ec: 1d41 ffee moveb %d1,%fp@(-18) <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; 459f0: 2d40 ffea movel %d0,%fp@(-22) <== NOT EXECUTED the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 459f4: 7001 moveq #1,%d0 <== NOT EXECUTED 459f6: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 459fa: 57c0 seq %d0 <== NOT EXECUTED 459fc: 49c0 extbl %d0 <== NOT EXECUTED 459fe: 4480 negl %d0 <== NOT EXECUTED 45a00: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45a02: 486e ffea pea %fp@(-22) <== NOT EXECUTED 45a06: 486a 0014 pea %a2@(20) <== NOT EXECUTED } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; 45a0a: 2d6e 0014 fff4 movel %fp@(20),%fp@(-12) <== NOT EXECUTED mutex_status = _CORE_mutex_Initialize( 45a10: 4eb9 0004 671c jsr 4671c <_CORE_mutex_Initialize> <== NOT EXECUTED &the_semaphore->Core_control.mutex, &the_mutex_attributes, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 45a16: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 45a1c: 7206 moveq #6,%d1 <== NOT EXECUTED 45a1e: b280 cmpl %d0,%d1 <== NOT EXECUTED 45a20: 6654 bnes 45a76 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 45a22: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45a24: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45a2a: 4eb9 0004 72cc jsr 472cc <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 45a30: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 45a36: 508f addql #8,%sp <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 45a38: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 45a3e: 4e5e unlk %fp <== NOT EXECUTED (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 45a40: 7013 moveq #19,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 45a42: 4e75 rts <== NOT EXECUTED */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 45a44: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 45a48: 44c2 movew %d2,%ccr <== NOT EXECUTED 45a4a: 56c0 sne %d0 <== NOT EXECUTED */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 45a4c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 45a50: 49c0 extbl %d0 <== NOT EXECUTED 45a52: 5280 addql #1,%d0 <== NOT EXECUTED 45a54: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 45a58: 70ff moveq #-1,%d0 <== NOT EXECUTED 45a5a: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 45a5e: 486a 0014 pea %a2@(20) <== NOT EXECUTED /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 45a62: 42ae ffea clrl %fp@(-22) <== NOT EXECUTED the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; 45a66: 42ae fff4 clrl %fp@(-12) <== NOT EXECUTED _CORE_semaphore_Initialize( 45a6a: 4eb9 0004 6a90 jsr 46a90 <_CORE_semaphore_Initialize> <== NOT EXECUTED 45a70: dffc 0000 000c addal #12,%sp <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 45a76: 2079 0005 86a2 moveal 586a2 <_Semaphore_Information+0x1a>,%a0 <== NOT EXECUTED 45a7c: 4280 clrl %d0 <== NOT EXECUTED 45a7e: 302a 000a movew %a2@(10),%d0 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 45a82: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 45a86: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) <== NOT EXECUTED &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 45a8a: 206e 0018 moveal %fp@(24),%a0 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 45a8e: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED 45a92: 20aa 0008 movel %a2@(8),%a0@ <== NOT EXECUTED the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 45a96: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45a9c: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 45aa2: 4e5e unlk %fp <== NOT EXECUTED the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 45aa4: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45aa6: 4e75 rts <== NOT EXECUTED if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 45aa8: 4a02 tstb %d2 <== NOT EXECUTED 45aaa: 6c36 bges 45ae2 <== NOT EXECUTED the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 45aac: 7003 moveq #3,%d0 <== NOT EXECUTED 45aae: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED 45ab2: 6000 ff2c braw 459e0 <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 45ab6: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 45abc: 4cee 040c ffdc moveml %fp@(-36),%d2-%d3/%a2 <== NOT EXECUTED 45ac2: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 45ac4: 7005 moveq #5,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 45ac6: 4e75 rts <== NOT EXECUTED if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 45ac8: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 45acc: 42ae ffea clrl %fp@(-22) <== NOT EXECUTED switch ( the_mutex_attributes.discipline ) { 45ad0: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 45ad4: b280 cmpl %d0,%d1 <== NOT EXECUTED 45ad6: 651a bcss 45af2 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; 45ad8: 4200 clrb %d0 <== NOT EXECUTED 45ada: 1d40 ffee moveb %d0,%fp@(-18) <== NOT EXECUTED 45ade: 6000 ff14 braw 459f4 <== NOT EXECUTED if ( _Attributes_Is_inherit_priority( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; else if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 45ae2: 44c2 movew %d2,%ccr <== NOT EXECUTED 45ae4: 56c0 sne %d0 <== NOT EXECUTED 45ae6: 49c0 extbl %d0 <== NOT EXECUTED 45ae8: 5280 addql #1,%d0 <== NOT EXECUTED 45aea: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED 45aee: 6000 fef0 braw 459e0 <== NOT EXECUTED if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 45af2: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 45af6: b280 cmpl %d0,%d1 <== NOT EXECUTED 45af8: 6500 fefa bcsw 459f4 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; 45afc: 7201 moveq #1,%d1 <== NOT EXECUTED 45afe: 1d41 ffee moveb %d1,%fp@(-18) <== NOT EXECUTED 45b02: 6000 fef0 braw 459f4 <== NOT EXECUTED ... 00045b08 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { 45b08: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 45b0c: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 45b0e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45b12: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45b16: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45b1c: 4eb9 0004 7438 jsr 47438 <_Objects_Get> <== NOT EXECUTED register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 45b22: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 45b28: 2440 moveal %d0,%a2 <== NOT EXECUTED 45b2a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 45b2e: 670a beqs 45b3a <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45b30: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 45b34: 4e5e unlk %fp <== NOT EXECUTED { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 45b36: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45b38: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); 45b3a: 7030 moveq #48,%d0 <== NOT EXECUTED 45b3c: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 45b40: 6764 beqs 45ba6 <== NOT EXECUTED if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && 45b42: 4aaa 0062 tstl %a2@(98) <== NOT EXECUTED 45b46: 6616 bnes 45b5e <== NOT EXECUTED 45b48: 7220 moveq #32,%d1 <== NOT EXECUTED 45b4a: b280 cmpl %d0,%d1 <== NOT EXECUTED 45b4c: 6710 beqs 45b5e <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 45b4e: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45b54: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 45b58: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 45b5a: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45b5c: 4e75 rts <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( 45b5e: 4878 0004 pea 4 <== NOT EXECUTED 45b62: 42a7 clrl %sp@- <== NOT EXECUTED 45b64: 486a 0014 pea %a2@(20) <== NOT EXECUTED 45b68: 4eb9 0004 6710 jsr 46710 <_CORE_mutex_Flush> <== NOT EXECUTED 45b6e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 45b74: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45b76: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45b7c: 4eb9 0004 6fa8 jsr 46fa8 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 45b82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45b84: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45b8a: 4eb9 0004 72cc jsr 472cc <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 45b90: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 45b96: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45b9c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45b9e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 45ba2: 4e5e unlk %fp <== NOT EXECUTED 45ba4: 4e75 rts <== NOT EXECUTED &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( 45ba6: 4878 0002 pea 2 <== NOT EXECUTED 45baa: 42a7 clrl %sp@- <== NOT EXECUTED 45bac: 486a 0014 pea %a2@(20) <== NOT EXECUTED 45bb0: 4eb9 0004 6a84 jsr 46a84 <_CORE_semaphore_Flush> <== NOT EXECUTED 45bb6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 45bbc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45bbe: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45bc4: 4eb9 0004 6fa8 jsr 46fa8 <_Objects_Close> <== NOT EXECUTED 45bca: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45bcc: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45bd2: 4eb9 0004 72cc jsr 472cc <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 45bd8: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 45bde: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45be4: 4280 clrl %d0 <== NOT EXECUTED 45be6: 60b6 bras 45b9e <== NOT EXECUTED 00062a4c : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 62a4c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 62a50: 486e fffc pea %fp@(-4) <== NOT EXECUTED 62a54: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 62a58: 4879 0009 9db4 pea 99db4 <_Semaphore_Information> <== NOT EXECUTED 62a5e: 4eb9 0004 bc78 jsr 4bc78 <_Objects_Get> <== NOT EXECUTED register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 62a64: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 62a6a: 2040 moveal %d0,%a0 <== NOT EXECUTED 62a6c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 62a70: 6706 beqs 62a78 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62a72: 4e5e unlk %fp <== NOT EXECUTED { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 62a74: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62a76: 4e75 rts <== NOT EXECUTED the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 62a78: 7030 moveq #48,%d0 <== NOT EXECUTED 62a7a: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED 62a7e: 6722 beqs 62aa2 <== NOT EXECUTED _CORE_mutex_Flush( 62a80: 4878 0001 pea 1 <== NOT EXECUTED 62a84: 42a7 clrl %sp@- <== NOT EXECUTED 62a86: 4868 0014 pea %a0@(20) <== NOT EXECUTED 62a8a: 4eb9 0004 adec jsr 4adec <_CORE_mutex_Flush> <== NOT EXECUTED 62a90: dffc 0000 000c addal #12,%sp <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 62a96: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 62a9c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62a9e: 4e5e unlk %fp <== NOT EXECUTED 62aa0: 4e75 rts <== NOT EXECUTED &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 62aa2: 4878 0001 pea 1 <== NOT EXECUTED 62aa6: 42a7 clrl %sp@- <== NOT EXECUTED 62aa8: 4868 0014 pea %a0@(20) <== NOT EXECUTED 62aac: 4eb9 0004 b160 jsr 4b160 <_CORE_semaphore_Flush> <== NOT EXECUTED 62ab2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 62ab8: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 62abe: 4280 clrl %d0 <== NOT EXECUTED 62ac0: 60dc bras 62a9e <== NOT EXECUTED ... 00052304 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { 52304: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); 52308: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 5230c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52310: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52314: 4879 0007 14e0 pea 714e0 <_Semaphore_Information> <== NOT EXECUTED 5231a: 4eb9 0005 5bb8 jsr 55bb8 <_Objects_Name_to_id_u32> <== NOT EXECUTED 52320: 41f9 0006 a75e lea 6a75e <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; } 52326: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 5232a: 4e5e unlk %fp <== NOT EXECUTED 5232c: 4e75 rts <== NOT EXECUTED ... 00045be8 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { 45be8: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) 45bec: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 45bf0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45bf4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45bf8: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45bfe: 4eb9 0004 73dc jsr 473dc <_Objects_Get_isr_disable> <== NOT EXECUTED register Semaphore_Control *the_semaphore; Objects_Locations location; ISR_Level level; the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { 45c04: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45c0a: 2040 moveal %d0,%a0 <== NOT EXECUTED 45c0c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 45c10: 6706 beqs 45c18 <== NOT EXECUTED break; } return RTEMS_INVALID_ID; } 45c12: 4e5e unlk %fp <== NOT EXECUTED register Semaphore_Control *the_semaphore; Objects_Locations location; ISR_Level level; the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { 45c14: 7004 moveq #4,%d0 <== NOT EXECUTED break; } return RTEMS_INVALID_ID; } 45c16: 4e75 rts <== NOT EXECUTED the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 45c18: 7030 moveq #48,%d0 <== NOT EXECUTED 45c1a: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED 45c1e: 673c beqs 45c5c <== NOT EXECUTED _CORE_mutex_Seize( 45c20: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED 45c24: 7001 moveq #1,%d0 <== NOT EXECUTED 45c26: b1ae 000c eorl %d0,%fp@(12) <== NOT EXECUTED 45c2a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 45c2e: c0ae 000c andl %fp@(12),%d0 <== NOT EXECUTED 45c32: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45c34: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45c38: 4868 0014 pea %a0@(20) <== NOT EXECUTED 45c3c: 4eb9 0004 68a6 jsr 468a6 <_CORE_mutex_Seize> <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 45c42: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45c48: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 45c4c: 4eb9 0004 5da4 jsr 45da4 <_Semaphore_Translate_core_mutex_return_code> <== NOT EXECUTED 45c52: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED break; } return RTEMS_INVALID_ID; } 45c58: 4e5e unlk %fp <== NOT EXECUTED 45c5a: 4e75 rts <== NOT EXECUTED Watchdog_Interval timeout, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 45c5c: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED /* disabled when you get here */ executing = _Thread_Executing; 45c60: 2279 0005 8812 moveal 58812 <_Thread_Executing>,%a1 <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 45c66: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED if ( the_semaphore->count != 0 ) { 45c6a: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED 45c6e: 6628 bnes 45c98 <== NOT EXECUTED the_semaphore->count -= 1; _ISR_Enable( level ); return; } if ( !wait ) { 45c70: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 45c74: 0800 0000 btst #0,%d0 <== NOT EXECUTED 45c78: 673a beqs 45cb4 <== NOT EXECUTED _ISR_Enable( level ); 45c7a: 46c1 movew %d1,%sr <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 45c7c: 7001 moveq #1,%d0 <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( 45c7e: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45c84: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED 45c88: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 45c8c: 4eb9 0004 5dba jsr 45dba <_Semaphore_Translate_core_semaphore_return_code> <== NOT EXECUTED 45c92: 588f addql #4,%sp <== NOT EXECUTED break; } return RTEMS_INVALID_ID; } 45c94: 4e5e unlk %fp <== NOT EXECUTED 45c96: 4e75 rts <== NOT EXECUTED /* 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; 45c98: 5380 subql #1,%d0 <== NOT EXECUTED 45c9a: 2140 005c movel %d0,%a0@(92) <== NOT EXECUTED _ISR_Enable( level ); 45c9e: 46c1 movew %d1,%sr <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( 45ca0: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45ca6: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 45caa: 4eb9 0004 5dba jsr 45dba <_Semaphore_Translate_core_semaphore_return_code> <== NOT EXECUTED 45cb0: 588f addql #4,%sp <== NOT EXECUTED 45cb2: 60e0 bras 45c94 <== NOT EXECUTED 45cb4: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 45cba: 5280 addql #1,%d0 <== NOT EXECUTED 45cbc: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 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; 45cc2: 7001 moveq #1,%d0 <== NOT EXECUTED 45cc4: 2140 0044 movel %d0,%a0@(68) <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 45cc8: 2008 movel %a0,%d0 <== NOT EXECUTED executing->Wait.id = id; 45cca: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 45cce: 0680 0000 0014 addil #20,%d0 <== NOT EXECUTED executing->Wait.id = id; 45cd4: 2348 0020 movel %a0,%a1@(32) <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 45cd8: 2340 0044 movel %d0,%a1@(68) <== NOT EXECUTED executing->Wait.id = id; _ISR_Enable( level ); 45cdc: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 45cde: 4879 0004 85e0 pea 485e0 <_Thread_queue_Timeout> <== NOT EXECUTED 45ce4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 45ce8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45cea: 4eb9 0004 8220 jsr 48220 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); 45cf0: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 45cf6: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 45cfc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 45d02: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 45d06: 4eb9 0004 5dba jsr 45dba <_Semaphore_Translate_core_semaphore_return_code> <== NOT EXECUTED 45d0c: 588f addql #4,%sp <== NOT EXECUTED 45d0e: 6084 bras 45c94 <== NOT EXECUTED 00045d10 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { 45d10: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 45d14: 2f02 movel %d2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 45d16: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45d1a: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 45d1e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45d20: 4879 0005 8688 pea 58688 <_Semaphore_Information> <== NOT EXECUTED 45d26: 4eb9 0004 7438 jsr 47438 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 45d2c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 45d32: 2040 moveal %d0,%a0 <== NOT EXECUTED 45d34: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 45d38: 670a beqs 45d44 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45d3a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 45d3e: 4e5e unlk %fp <== NOT EXECUTED Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 45d40: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45d42: 4e75 rts <== NOT EXECUTED the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 45d44: 7030 moveq #48,%d0 <== NOT EXECUTED 45d46: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED 45d4a: 662c bnes 45d78 <== NOT EXECUTED MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( 45d4c: 42a7 clrl %sp@- <== NOT EXECUTED 45d4e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45d50: 4868 0014 pea %a0@(20) <== NOT EXECUTED 45d54: 4eb9 0004 6ad8 jsr 46ad8 <_CORE_semaphore_Surrender> <== NOT EXECUTED 45d5a: 2400 movel %d0,%d2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 45d5c: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED return 45d62: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45d64: 4eb9 0004 5dba jsr 45dba <_Semaphore_Translate_core_semaphore_return_code> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45d6a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return 45d6e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45d74: 4e5e unlk %fp <== NOT EXECUTED 45d76: 4e75 rts <== NOT EXECUTED 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( 45d78: 42a7 clrl %sp@- <== NOT EXECUTED 45d7a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45d7c: 4868 0014 pea %a0@(20) <== NOT EXECUTED 45d80: 4eb9 0004 6958 jsr 46958 <_CORE_mutex_Surrender> <== NOT EXECUTED 45d86: 2400 movel %d0,%d2 <== NOT EXECUTED &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 45d88: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 45d8e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45d90: 4eb9 0004 5da4 jsr 45da4 <_Semaphore_Translate_core_mutex_return_code> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45d96: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 45d9a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45da0: 4e5e unlk %fp <== NOT EXECUTED 45da2: 4e75 rts 0004632c : */ void rtems_shutdown_executive( uint32_t result ) { 4632c: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 46330: 7004 moveq #4,%d0 <== NOT EXECUTED 46332: b0b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d0 <== NOT EXECUTED 46338: 6718 beqs 46352 <== NOT EXECUTED Context_Control *context_p = &context_area; if ( _System_state_Is_up(_System_state_Get ()) ) context_p = &_Thread_Executing->Registers; _Context_Switch( context_p, &_Thread_BSP_context ); 4633a: 4879 0005 8720 pea 58720 <_Thread_BSP_context> <== NOT EXECUTED 46340: 486e ffcc pea %fp@(-52) <== NOT EXECUTED 46344: 23c0 0005 88e6 movel %d0,588e6 <_System_state_Current> <== NOT EXECUTED 4634a: 4eb9 0004 921c jsr 4921c <_CPU_Context_switch> <== NOT EXECUTED 46350: 508f addql #8,%sp <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } 46352: 4e5e unlk %fp <== NOT EXECUTED 46354: 4e75 rts <== NOT EXECUTED ... 00046a30 : RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; 46a30: 2079 0005 a98a moveal 5a98a <_Thread_Executing>,%a0 <== NOT EXECUTED 46a36: 2039 0005 a8cc movel 5a8cc <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 46a3c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; 46a40: 2068 010c moveal %a0@(268),%a0 <== NOT EXECUTED rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 46a44: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 46a48: 5280 addql #1,%d0 <== NOT EXECUTED 46a4a: 23c0 0005 a8cc movel %d0,5a8cc <_Thread_Dispatch_disable_level> <== NOT EXECUTED asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { 46a50: 4a81 tstl %d1 <== NOT EXECUTED 46a52: 6716 beqs 46a6a <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; 46a54: 2141 000a movel %d1,%a0@(10) <== NOT EXECUTED _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { asr->mode_set = mode_set; 46a58: 216e 000c 000e movel %fp@(12),%a0@(14) <== NOT EXECUTED asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 46a5e: 4eb9 0004 8c60 jsr 48c60 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46a64: 4e5e unlk %fp <== NOT EXECUTED 46a66: 4280 clrl %d0 <== NOT EXECUTED 46a68: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = true; 46a6a: 7001 moveq #1,%d0 <== NOT EXECUTED 46a6c: 1140 0008 moveb %d0,%a0@(8) <== NOT EXECUTED information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; information->signals_posted = 0; information->signals_pending = 0; information->nest_level = 0; 46a70: 42a8 001a clrl %a0@(26) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = true; information->handler = NULL; 46a74: 42a8 000a clrl %a0@(10) <== NOT EXECUTED information->mode_set = RTEMS_DEFAULT_MODES; 46a78: 42a8 000e clrl %a0@(14) <== NOT EXECUTED information->signals_posted = 0; 46a7c: 42a8 0012 clrl %a0@(18) <== NOT EXECUTED information->signals_pending = 0; 46a80: 42a8 0016 clrl %a0@(22) <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 46a84: 4eb9 0004 8c60 jsr 48c60 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46a8a: 4e5e unlk %fp <== NOT EXECUTED 46a8c: 4280 clrl %d0 <== NOT EXECUTED 46a8e: 4e75 rts 00052518 : rtems_status_code rtems_signal_send( Objects_Id id, rtems_signal_set signal_set ) { 52518: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) 5251c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 52520: 6606 bnes 52528 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52522: 4e5e unlk %fp <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) 52524: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52526: 4e75 rts <== NOT EXECUTED ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); 52528: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5252c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52530: 4eb9 0005 62cc jsr 562cc <_Thread_Get> <== NOT EXECUTED switch ( location ) { 52536: 508f addql #8,%sp <== NOT EXECUTED ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); 52538: 2240 moveal %d0,%a1 <== NOT EXECUTED switch ( location ) { 5253a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5253e: 6706 beqs 52546 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52540: 4e5e unlk %fp <== NOT EXECUTED if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); switch ( location ) { 52542: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52544: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 52546: 2069 010c moveal %a1@(268),%a0 <== NOT EXECUTED asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { 5254a: 4aa8 000a tstl %a0@(10) <== NOT EXECUTED 5254e: 6770 beqs 525c0 <== NOT EXECUTED if ( asr->is_enabled ) { 52550: 4a28 0008 tstb %a0@(8) <== NOT EXECUTED 52554: 673a beqs 52590 <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 52556: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 5255c: 40c1 movew %sr,%d1 <== NOT EXECUTED 5255e: 8081 orl %d1,%d0 <== NOT EXECUTED 52560: 46c0 movew %d0,%sr <== NOT EXECUTED *signal_set |= signals; 52562: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 52566: 81a8 0012 orl %d0,%a0@(18) <== NOT EXECUTED _ISR_Enable( _level ); 5256a: 46c1 movew %d1,%sr <== NOT EXECUTED _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 ) ) 5256c: 2039 0007 169e movel 7169e <_ISR_Nest_level>,%d0 <== NOT EXECUTED 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; 52572: 7201 moveq #1,%d1 <== NOT EXECUTED 52574: 1341 0075 moveb %d1,%a1@(117) <== NOT EXECUTED if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 52578: 4a80 tstl %d0 <== NOT EXECUTED 5257a: 6708 beqs 52584 <== NOT EXECUTED 5257c: b3f9 0007 16be cmpal 716be <_Thread_Executing>,%a1 <== NOT EXECUTED 52582: 672c beqs 525b0 <== NOT EXECUTED _ISR_Signals_to_thread_executing = TRUE; } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 52584: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 5258a: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5258c: 4e5e unlk %fp <== NOT EXECUTED 5258e: 4e75 rts <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 52590: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 52596: 40c0 movew %sr,%d0 <== NOT EXECUTED 52598: 8280 orl %d0,%d1 <== NOT EXECUTED 5259a: 46c1 movew %d1,%sr <== NOT EXECUTED *signal_set |= signals; 5259c: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 525a0: 83a8 0016 orl %d1,%a0@(22) <== NOT EXECUTED _ISR_Enable( _level ); 525a4: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = TRUE; } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 525a6: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 525ac: 4280 clrl %d0 <== NOT EXECUTED 525ae: 60dc bras 5258c <== NOT EXECUTED _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 ) ) _ISR_Signals_to_thread_executing = TRUE; 525b0: 13c1 0007 174c moveb %d1,7174c <_ISR_Signals_to_thread_executing> <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 525b6: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 525bc: 4280 clrl %d0 <== NOT EXECUTED 525be: 60cc bras 5258c <== NOT EXECUTED return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 525c0: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 525c6: 4e5e unlk %fp <== NOT EXECUTED _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 525c8: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 525ca: 4e75 rts 0004473c : * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) { 4473c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44740: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */ 44744: 4aa8 0008 tstl %a0@(8) <== NOT EXECUTED 44748: 672c beqs 44776 <== NOT EXECUTED return; the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack); *the_pattern = Stack_check_Pattern; 4474a: 2068 00c4 moveal %a0@(196),%a0 <== NOT EXECUTED 4474e: 43f9 0009 9ce4 lea 99ce4 ,%a1 <== NOT EXECUTED 44754: 2151 0008 movel %a1@,%a0@(8) <== NOT EXECUTED 44758: 43f9 0009 9ce8 lea 99ce8 ,%a1 <== NOT EXECUTED 4475e: 2151 000c movel %a1@,%a0@(12) <== NOT EXECUTED 44762: 43f9 0009 9cec lea 99cec ,%a1 <== NOT EXECUTED 44768: 2151 0010 movel %a1@,%a0@(16) <== NOT EXECUTED 4476c: 43f9 0009 9cf0 lea 99cf0 ,%a1 <== NOT EXECUTED 44772: 2151 0014 movel %a1@,%a0@(20) <== NOT EXECUTED } 44776: 4e5e unlk %fp <== NOT EXECUTED 44778: 4e75 rts 00044bd2 : */ bool rtems_stack_checker_create_extension( Thread_Control *running, Thread_Control *the_thread ) { 44bd2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44bd6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44bd8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Stack_check_Initialize(); 44bdc: 4eb9 0004 4b56 jsr 44b56 <== NOT EXECUTED if (the_thread) 44be2: 4a8a tstl %a2 <== NOT EXECUTED 44be4: 6718 beqs 44bfe <== NOT EXECUTED Stack_check_Dope_stack(&the_thread->Start.Initial_stack); 44be6: 2f2a 00c0 movel %a2@(192),%sp@- <== NOT EXECUTED 44bea: 4878 00a5 pea a5 <== NOT EXECUTED 44bee: 2f2a 00c4 movel %a2@(196),%sp@- <== NOT EXECUTED 44bf2: 4eb9 0007 1dd4 jsr 71dd4 <== NOT EXECUTED 44bf8: dffc 0000 000c addal #12,%sp <== NOT EXECUTED return true; } 44bfe: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 44c02: 4e5e unlk %fp <== NOT EXECUTED 44c04: 7001 moveq #1,%d0 <== NOT EXECUTED 44c06: 4e75 rts 00044a36 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 44a36: 2079 0009 9f3e moveal 99f3e <_Thread_Executing>,%a0 <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 44a3c: 2268 00c4 moveal %a0@(196),%a1 <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 44a40: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44a44: 2f02 movel %d2,%sp@- <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 44a46: b3ce cmpal %fp,%a1 <== NOT EXECUTED 44a48: 6334 blss 44a7e <== NOT EXECUTED 44a4a: 4202 clrb %d2 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 44a4c: 4ab9 0008 683c tstl 8683c <== NOT EXECUTED 44a52: 6640 bnes 44a94 <== NOT EXECUTED 44a54: 7001 moveq #1,%d0 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 44a56: 4a02 tstb %d2 <== NOT EXECUTED 44a58: 6704 beqs 44a5e <== NOT EXECUTED 44a5a: 4a00 tstb %d0 <== NOT EXECUTED 44a5c: 6658 bnes 44ab6 <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 44a5e: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 44a64: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44a66: 2f39 0009 9f3e movel 99f3e <_Thread_Executing>,%sp@- <== NOT EXECUTED 44a6c: 4eb9 0004 49be jsr 449be <== NOT EXECUTED 44a72: 508f addql #8,%sp <== NOT EXECUTED return true; } 44a74: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 44a78: 4e5e unlk %fp <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 44a7a: 7001 moveq #1,%d0 <== NOT EXECUTED return true; } 44a7c: 4e75 rts <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 44a7e: 2009 movel %a1,%d0 <== NOT EXECUTED 44a80: d0a8 00c0 addl %a0@(192),%d0 <== NOT EXECUTED 44a84: b08e cmpl %fp,%d0 <== NOT EXECUTED 44a86: 54c1 scc %d1 <== NOT EXECUTED 44a88: 2401 movel %d1,%d2 <== NOT EXECUTED 44a8a: 4482 negl %d2 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 44a8c: 4ab9 0008 683c tstl 8683c <== NOT EXECUTED 44a92: 67c0 beqs 44a54 <== NOT EXECUTED pattern_ok = (!memcmp( 44a94: 4878 0010 pea 10 <== NOT EXECUTED 44a98: 4879 0009 9ce4 pea 99ce4 <== NOT EXECUTED 44a9e: 4869 0008 pea %a1@(8) <== NOT EXECUTED 44aa2: 4eb9 0007 1bec jsr 71bec <== NOT EXECUTED 44aa8: 4a80 tstl %d0 <== NOT EXECUTED 44aaa: 57c0 seq %d0 <== NOT EXECUTED 44aac: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 44ab2: 4480 negl %d0 <== NOT EXECUTED 44ab4: 60a0 bras 44a56 <== NOT EXECUTED /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; } 44ab6: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 44aba: 4e5e unlk %fp <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 44abc: 4200 clrb %d0 <== NOT EXECUTED /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; } 44abe: 4e75 rts 000449a6 : void rtems_stack_checker_report_usage( void ) { 449a6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 449aa: 4879 0004 77dc pea 477dc <== NOT EXECUTED 449b0: 42a7 clrl %sp@- <== NOT EXECUTED 449b2: 4eb9 0004 4942 jsr 44942 <== NOT EXECUTED 449b8: 508f addql #8,%sp <== NOT EXECUTED } 449ba: 4e5e unlk %fp <== NOT EXECUTED 449bc: 4e75 rts 00044942 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 44942: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44946: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44948: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4494c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4494e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); 44952: 4879 0007 fa68 pea 7fa68 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 44958: 23c2 0008 6840 movel %d2,86840 <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 4495e: 2f02 movel %d2,%sp@- <== NOT EXECUTED void *context, rtems_printk_plugin_t print ) { print_context = context; print_handler = print; 44960: 23ca 0008 6844 movel %a2,86844 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 44966: 4e92 jsr %a2@ <== NOT EXECUTED (*print)( context, 44968: 4879 0007 fa7f pea 7fa7f <== NOT EXECUTED 4496e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44970: 4e92 jsr %a2@ <== 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 ); 44972: 4879 0004 47b0 pea 447b0 <== NOT EXECUTED 44978: 4eb9 0004 b5e8 jsr 4b5e8 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 4497e: 4878 ffff pea ffffffff <== NOT EXECUTED 44982: 4eb9 0004 47b0 jsr 447b0 <== NOT EXECUTED print_context = NULL; print_handler = NULL; } 44988: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4498c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); print_context = NULL; print_handler = NULL; 44990: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED } 44996: 4e5e unlk %fp <== 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; 44998: 42b9 0008 6840 clrl 86840 <== NOT EXECUTED print_handler = NULL; 4499e: 42b9 0008 6844 clrl 86844 <== NOT EXECUTED } 449a4: 4e75 rts 00044ac0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 44ac0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 44ac4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44ac6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 44aca: 202a 00c4 movel %a2@(196),%d0 <== NOT EXECUTED 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; 44ace: 2200 movel %d0,%d1 <== NOT EXECUTED 44ad0: 5081 addql #8,%d1 <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 44ad2: b08e cmpl %fp,%d0 <== NOT EXECUTED 44ad4: 6208 bhis 44ade <== NOT EXECUTED return false; } if ( sp > (the_stack->area + the_stack->size) ) { 44ad6: d0aa 00c0 addl %a2@(192),%d0 <== NOT EXECUTED 44ada: b08e cmpl %fp,%d0 <== NOT EXECUTED 44adc: 6438 bccs 44b16 <== NOT EXECUTED /* * 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, 44ade: 4878 0010 pea 10 <== NOT EXECUTED 44ae2: 4879 0009 9ce4 pea 99ce4 <== NOT EXECUTED 44ae8: 2f01 movel %d1,%sp@- <== NOT EXECUTED 44aea: 4eb9 0007 1bec jsr 71bec <== NOT EXECUTED 44af0: 4a80 tstl %d0 <== NOT EXECUTED 44af2: 57c0 seq %d0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 44af4: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED /* * 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, 44af8: 4480 negl %d0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); } } 44afa: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 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 ); 44afe: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED /* * 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, 44b04: dffc 0000 000c addal #12,%sp <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 44b0a: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 44b0e: 4e5e unlk %fp <== NOT EXECUTED 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 ); 44b10: 4ef9 0004 49be jmp 449be <== NOT EXECUTED /* * 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, 44b16: 4878 0010 pea 10 <== NOT EXECUTED 44b1a: 4879 0009 9ce4 pea 99ce4 <== NOT EXECUTED 44b20: 2f01 movel %d1,%sp@- <== NOT EXECUTED 44b22: 4eb9 0007 1bec jsr 71bec <== NOT EXECUTED 44b28: dffc 0000 000c addal #12,%sp <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 44b2e: 4a80 tstl %d0 <== NOT EXECUTED 44b30: 671c beqs 44b4e <== NOT EXECUTED Stack_check_report_blown_task( running, pattern_ok ); 44b32: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 44b36: 4200 clrb %d0 <== NOT EXECUTED Stack_check_report_blown_task( running, pattern_ok ); } } 44b38: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 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 ); 44b3c: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 44b42: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 44b46: 4e5e unlk %fp <== NOT EXECUTED 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 ); 44b48: 4ef9 0004 49be jmp 449be <== NOT EXECUTED } } 44b4e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 44b52: 4e5e unlk %fp <== NOT EXECUTED 44b54: 4e75 rts 0004232c : const char * rtems_status_text( rtems_status_code status ) { 4232c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return rtems_assoc_name_by_local(rtems_status_assoc, status); 42330: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 42334: 4879 0005 5a4c pea 55a4c <== NOT EXECUTED 4233a: 4eb9 0004 a118 jsr 4a118 <== NOT EXECUTED } 42340: 4e5e unlk %fp <== NOT EXECUTED 42342: 4e75 rts 00045dd0 : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, Objects_Id *id ) { 45dd0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 45dd4: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 45dd8: 242e 0014 movel %fp@(20),%d2 <== NOT EXECUTED Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 45ddc: 4aae 001c tstl %fp@(28) <== NOT EXECUTED 45de0: 6700 0136 beqw 45f18 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 45de4: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 45de8: 6700 00ca beqw 45eb4 <== NOT EXECUTED /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { 45dec: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED 45df0: 4a40 tstw %d0 <== NOT EXECUTED 45df2: 6d18 blts 45e0c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 45df4: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 45df8: 6700 00f8 beqw 45ef2 <== NOT EXECUTED 45dfc: 4280 clrl %d0 <== NOT EXECUTED 45dfe: 1039 0005 6c42 moveb 56c42 ,%d0 <== NOT EXECUTED 45e04: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 45e08: 6500 00e8 bcsw 45ef2 <== NOT EXECUTED */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); 45e0c: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45e12: 4eb9 0004 6640 jsr 46640 <_API_Mutex_Lock> <== NOT EXECUTED * 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 ); 45e18: 4879 0005 86c4 pea 586c4 <_RTEMS_tasks_Information> <== NOT EXECUTED 45e1e: 4eb9 0004 6f0c jsr 46f0c <_Objects_Allocate> <== NOT EXECUTED * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { 45e24: 508f addql #8,%sp <== NOT EXECUTED 45e26: 2440 moveal %d0,%a2 <== NOT EXECUTED 45e28: 4a80 tstl %d0 <== NOT EXECUTED 45e2a: 6700 00d2 beqw 45efe <== NOT EXECUTED /* * Initialize the core thread for this task. */ status = _Thread_Initialize( 45e2e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45e32: 7207 moveq #7,%d1 <== NOT EXECUTED 45e34: c282 andl %d2,%d1 <== NOT EXECUTED 45e36: 2f01 movel %d1,%sp@- <== NOT EXECUTED 45e38: 7609 moveq #9,%d3 <== NOT EXECUTED 45e3a: 2202 movel %d2,%d1 <== NOT EXECUTED 45e3c: 42a7 clrl %sp@- <== NOT EXECUTED 45e3e: e6a9 lsrl %d3,%d1 <== NOT EXECUTED 45e40: 163c 0001 moveb #1,%d3 <== NOT EXECUTED 45e44: c681 andl %d1,%d3 <== NOT EXECUTED 45e46: 2002 movel %d2,%d0 <== NOT EXECUTED 45e48: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45e4a: 7201 moveq #1,%d1 <== NOT EXECUTED 45e4c: e088 lsrl #8,%d0 <== NOT EXECUTED 45e4e: b380 eorl %d1,%d0 <== NOT EXECUTED 45e50: 7601 moveq #1,%d3 <== NOT EXECUTED 45e52: c680 andl %d0,%d3 <== NOT EXECUTED 45e54: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45e56: 7001 moveq #1,%d0 <== NOT EXECUTED 45e58: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 45e5c: c0ae 0018 andl %fp@(24),%d0 <== NOT EXECUTED 45e60: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45e62: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 45e66: 42a7 clrl %sp@- <== NOT EXECUTED 45e68: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45e6a: 4879 0005 86c4 pea 586c4 <_RTEMS_tasks_Information> <== NOT EXECUTED 45e70: 4eb9 0004 7d90 jsr 47d90 <_Thread_Initialize> <== NOT EXECUTED NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { 45e76: dffc 0000 002c addal #44,%sp <== NOT EXECUTED 45e7c: 4a00 tstb %d0 <== NOT EXECUTED 45e7e: 6740 beqs 45ec0 <== NOT EXECUTED 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; 45e80: 226e 001c moveal %fp@(28),%a1 <== NOT EXECUTED } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; 45e84: 720a moveq #10,%d1 <== NOT EXECUTED 45e86: 206a 010c moveal %a2@(268),%a0 <== NOT EXECUTED 45e8a: 7001 moveq #1,%d0 <== NOT EXECUTED 45e8c: e2aa lsrl %d1,%d2 <== NOT EXECUTED *id = the_thread->Object.id; 45e8e: 22aa 0008 movel %a2@(8),%a1@ <== NOT EXECUTED } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; 45e92: b182 eorl %d0,%d2 <== NOT EXECUTED 45e94: c480 andl %d0,%d2 <== NOT EXECUTED 45e96: 1142 0008 moveb %d2,%a0@(8) <== NOT EXECUTED ); } #endif _RTEMS_Unlock_allocator(); 45e9a: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45ea0: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED 45ea6: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45ea8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 45eae: 4e5e unlk %fp <== NOT EXECUTED ); } #endif _RTEMS_Unlock_allocator(); 45eb0: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45eb2: 4e75 rts <== NOT EXECUTED 45eb4: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 45eba: 4e5e unlk %fp <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 45ebc: 7003 moveq #3,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 45ebe: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( 45ec0: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 45ec4: 4eb9 0004 7350 jsr 47350 <_Objects_Get_information_id> <== NOT EXECUTED 45eca: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45ecc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45ece: 4eb9 0004 72cc jsr 472cc <_Objects_Free> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Free_global_object( the_global_object ); #endif _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 45ed4: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45eda: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED 45ee0: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 45ee6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 45eec: 4e5e unlk %fp <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Free_global_object( the_global_object ); #endif _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 45eee: 700d moveq #13,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 45ef0: 4e75 rts <== NOT EXECUTED 45ef2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 45ef8: 4e5e unlk %fp <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; 45efa: 7013 moveq #19,%d0 <== NOT EXECUTED } 45efc: 4e75 rts <== NOT EXECUTED */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 45efe: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45f04: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED 45f0a: 588f addql #4,%sp <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 45f0c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 45f12: 4e5e unlk %fp <== NOT EXECUTED */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 45f14: 7005 moveq #5,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 45f16: 4e75 rts <== NOT EXECUTED 45f18: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 45f1e: 4e5e unlk %fp <== NOT EXECUTED Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 45f20: 7009 moveq #9,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 45f22: 4e75 rts 00045f24 : */ rtems_status_code rtems_task_delete( Objects_Id id ) { 45f24: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 45f28: 2f0b movel %a3,%sp@- <== NOT EXECUTED 45f2a: 2f0a movel %a2,%sp@- <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); 45f2c: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45f32: 4eb9 0004 6640 jsr 46640 <_API_Mutex_Lock> <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); 45f38: 486e fffc pea %fp@(-4) <== NOT EXECUTED 45f3c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45f40: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 45f46: dffc 0000 000c addal #12,%sp <== NOT EXECUTED Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); 45f4c: 2640 moveal %d0,%a3 <== NOT EXECUTED switch ( location ) { 45f4e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 45f52: 664c bnes 45fa0 <== NOT EXECUTED case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); 45f54: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 45f58: 45f9 0004 7350 lea 47350 <_Objects_Get_information_id>,%a2 <== NOT EXECUTED 45f5e: 4e92 jsr %a2@ <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); 45f60: 2f0b movel %a3,%sp@- <== NOT EXECUTED 45f62: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45f64: 4eb9 0004 7990 jsr 47990 <_Thread_Close> <== NOT EXECUTED 45f6a: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 45f6e: 4e92 jsr %a2@ <== NOT EXECUTED 45f70: 2f0b movel %a3,%sp@- <== NOT EXECUTED 45f72: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45f74: 4eb9 0004 72cc jsr 472cc <_Objects_Free> <== NOT EXECUTED _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 45f7a: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45f80: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED _Thread_Enable_dispatch(); 45f86: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 45f8c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 45f90: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED _Thread_Close( the_information, the_thread ); _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); _Thread_Enable_dispatch(); 45f94: dffc 0000 001c addal #28,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 45f9a: 4e5e unlk %fp <== NOT EXECUTED _Thread_Close( the_information, the_thread ); _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); _Thread_Enable_dispatch(); 45f9c: 4280 clrl %d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 45f9e: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 45fa0: 2f39 0005 880a movel 5880a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 45fa6: 4eb9 0004 66a4 jsr 466a4 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_INVALID_ID; } 45fac: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 45fb0: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 45fb4: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_INVALID_ID; } 45fb6: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 45fb8: 7004 moveq #4,%d0 <== NOT EXECUTED return RTEMS_INVALID_ID; } 45fba: 4e75 rts 00047b54 : { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 47b54: 2079 0005 c5ee moveal 5c5ee <_Configuration_Table>,%a0 <== NOT EXECUTED 47b5a: 2268 003e moveal %a0@(62),%a1 <== NOT EXECUTED rtems_status_code rtems_task_get_note( Objects_Id id, uint32_t notepad, uint32_t *note ) { 47b5e: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 47b62: 4a29 0004 tstb %a1@(4) <== NOT EXECUTED 47b66: 6762 beqs 47bca <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; if ( !note ) 47b68: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 47b6c: 6700 0084 beqw 47bf2 <== NOT EXECUTED /* * 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 ) 47b70: 700f moveq #15,%d0 <== NOT EXECUTED 47b72: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 47b76: 654a bcss 47bc2 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 47b78: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 47b7c: 6752 beqs 47bd0 <== NOT EXECUTED 47b7e: 2079 0005 c612 moveal 5c612 <_Thread_Executing>,%a0 <== NOT EXECUTED 47b84: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 47b88: b3e8 0008 cmpal %a0@(8),%a1 <== NOT EXECUTED 47b8c: 6748 beqs 47bd6 <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 47b8e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47b92: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47b96: 4eb9 0004 9b94 jsr 49b94 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 47b9c: 508f addql #8,%sp <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 47b9e: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 47ba0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47ba4: 6646 bnes 47bec <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 47ba6: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 47baa: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 47bae: 2068 010c moveal %a0@(268),%a0 <== NOT EXECUTED 47bb2: 22b0 0c1e movel %a0@(0000001e,%d0:l:4),%a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 47bb6: 4eb9 0004 9b6c jsr 49b6c <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bbc: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; _Thread_Enable_dispatch(); 47bbe: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bc0: 4e75 rts <== NOT EXECUTED 47bc2: 4e5e unlk %fp <== NOT EXECUTED /* * 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 ) 47bc4: 103c 000a moveb #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bc8: 4e75 rts <== NOT EXECUTED 47bca: 4e5e unlk %fp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 47bcc: 7016 moveq #22,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bce: 4e75 rts <== NOT EXECUTED 47bd0: 2079 0005 c612 moveal 5c612 <_Thread_Executing>,%a0 <== NOT EXECUTED */ 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 ]; 47bd6: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 47bda: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 47bde: 2068 010c moveal %a0@(268),%a0 <== NOT EXECUTED 47be2: 22b0 0c1e movel %a0@(0000001e,%d0:l:4),%a1@ <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47be6: 4e5e unlk %fp <== NOT EXECUTED */ 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 ]; 47be8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bea: 4e75 rts <== NOT EXECUTED 47bec: 4e5e unlk %fp <== NOT EXECUTED *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 47bee: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bf0: 4e75 rts <== NOT EXECUTED 47bf2: 4e5e unlk %fp <== NOT EXECUTED RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) 47bf4: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47bf6: 4e75 rts 00045fbc : rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, Objects_Id *id ) { 45fbc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45fc0: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; if ( !id ) 45fc4: 4a89 tstl %a1 <== NOT EXECUTED 45fc6: 6740 beqs 46008 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { 45fc8: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 45fcc: 6610 bnes 45fde <== NOT EXECUTED *id = _Thread_Executing->Object.id; 45fce: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } 45fd4: 4e5e unlk %fp <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; 45fd6: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED 45fda: 4280 clrl %d0 <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } 45fdc: 4e75 rts <== NOT EXECUTED 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 ); 45fde: 2f09 movel %a1,%sp@- <== NOT EXECUTED 45fe0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 45fe4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 45fe8: 4879 0005 86c4 pea 586c4 <_RTEMS_tasks_Information> <== NOT EXECUTED 45fee: 4eb9 0004 75d0 jsr 475d0 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 45ff4: 41f9 0005 5c56 lea 55c56 <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED 45ffa: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 45ffe: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED } 46004: 4e5e unlk %fp <== NOT EXECUTED 46006: 4e75 rts <== NOT EXECUTED 46008: 4e5e unlk %fp <== NOT EXECUTED Objects_Id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) 4600a: 7009 moveq #9,%d0 <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } 4600c: 4e75 rts <== NOT EXECUTED ... 00046468 : */ rtems_status_code rtems_task_is_suspended( Objects_Id id ) { 46468: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 4646c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46470: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46474: 4eb9 0004 80b8 jsr 480b8 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 4647a: 508f addql #8,%sp <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 4647c: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 4647e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46482: 6706 beqs 4648a <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46484: 4e5e unlk %fp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 46486: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46488: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 4648a: 7002 moveq #2,%d0 <== NOT EXECUTED 4648c: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED 46490: 670c beqs 4649e <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 46492: 4eb9 0004 8090 jsr 48090 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46498: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4649a: 700f moveq #15,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4649c: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch(); 4649e: 4eb9 0004 8090 jsr 48090 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 464a4: 4e5e unlk %fp <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch(); 464a6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 464a8: 4e75 rts <== NOT EXECUTED ... 0004c094 : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { 4c094: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4c098: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 4c09c: 2a2e 0008 movel %fp@(8),%d5 <== NOT EXECUTED 4c0a0: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 4c0a4: 286e 0010 moveal %fp@(16),%a4 <== NOT EXECUTED ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) 4c0a8: 4a8c tstl %a4 <== NOT EXECUTED 4c0aa: 6700 015c beqw 4c208 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; 4c0ae: 2479 0005 8812 moveal 58812 <_Thread_Executing>,%a2 <== NOT EXECUTED api = executing->API_Extensions[ THREAD_API_RTEMS ]; 4c0b4: 266a 010c moveal %a2@(268),%a3 <== NOT EXECUTED asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 4c0b8: 263c 0000 0100 movel #256,%d3 <== NOT EXECUTED 4c0be: 4a2a 0076 tstb %a2@(118) <== NOT EXECUTED 4c0c2: 6600 00f6 bnew 4c1ba <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 4c0c6: 4aaa 007c tstl %a2@(124) <== NOT EXECUTED 4c0ca: 6600 00f8 bnew 4c1c4 <== NOT EXECUTED old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4c0ce: 243c 0000 0400 movel #1024,%d2 <== NOT EXECUTED 4c0d4: 4a2b 0008 tstb %a3@(8) <== NOT EXECUTED 4c0d8: 6600 00c6 bnew 4c1a0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); 4c0dc: 4eb9 0004 92e8 jsr 492e8 <_CPU_ISR_Get_level> <== NOT EXECUTED 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; 4c0e2: 8480 orl %d0,%d2 <== NOT EXECUTED old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; 4c0e4: 8483 orl %d3,%d2 <== NOT EXECUTED 4c0e6: 2882 movel %d2,%a4@ <== NOT EXECUTED /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 4c0e8: 0804 0008 btst #8,%d4 <== NOT EXECUTED 4c0ec: 670e beqs 4c0fc <== NOT EXECUTED executing->is_preemptible = _Modes_Is_preempt(mode_set) ? TRUE : FALSE; 4c0ee: 2005 movel %d5,%d0 <== NOT EXECUTED 4c0f0: 7201 moveq #1,%d1 <== NOT EXECUTED 4c0f2: e088 lsrl #8,%d0 <== NOT EXECUTED 4c0f4: b380 eorl %d1,%d0 <== NOT EXECUTED 4c0f6: c081 andl %d1,%d0 <== NOT EXECUTED 4c0f8: 1540 0076 moveb %d0,%a2@(118) <== NOT EXECUTED if ( mask & RTEMS_TIMESLICE_MASK ) { 4c0fc: 0804 0009 btst #9,%d4 <== NOT EXECUTED 4c100: 6718 beqs 4c11a <== NOT EXECUTED if ( _Modes_Is_timeslice(mode_set) ) { 4c102: 0805 0009 btst #9,%d5 <== NOT EXECUTED 4c106: 6700 00d0 beqw 4c1d8 <== NOT EXECUTED executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 4c10a: 7001 moveq #1,%d0 <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4c10c: 41f9 0005 8704 lea 58704 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 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; 4c112: 2540 007c movel %d0,%a2@(124) <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4c116: 2550 0078 movel %a0@,%a2@(120) <== NOT EXECUTED /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4c11a: 7007 moveq #7,%d0 <== NOT EXECUTED 4c11c: c084 andl %d4,%d0 <== NOT EXECUTED 4c11e: 6712 beqs 4c132 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 4c120: 40c1 movew %sr,%d1 <== NOT EXECUTED 4c122: 7007 moveq #7,%d0 <== NOT EXECUTED 4c124: c085 andl %d5,%d0 <== NOT EXECUTED 4c126: e188 lsll #8,%d0 <== NOT EXECUTED 4c128: 0281 0000 f8ff andil #63743,%d1 <== NOT EXECUTED 4c12e: 8280 orl %d0,%d1 <== NOT EXECUTED 4c130: 46c1 movew %d1,%sr <== NOT EXECUTED */ is_asr_enabled = FALSE; needs_asr_dispatching = FALSE; if ( mask & RTEMS_ASR_MASK ) { 4c132: 0804 000a btst #10,%d4 <== NOT EXECUTED 4c136: 675a beqs 4c192 <== NOT EXECUTED 4c138: 700a moveq #10,%d0 <== NOT EXECUTED 4c13a: 2205 movel %d5,%d1 <== NOT EXECUTED 4c13c: e0a9 lsrl %d0,%d1 <== NOT EXECUTED 4c13e: 103c 0001 moveb #1,%d0 <== NOT EXECUTED 4c142: b181 eorl %d0,%d1 <== NOT EXECUTED 4c144: c280 andl %d0,%d1 <== NOT EXECUTED is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { 4c146: 4280 clrl %d0 <== NOT EXECUTED 4c148: 102b 0008 moveb %a3@(8),%d0 <== NOT EXECUTED 4c14c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c14e: 6742 beqs 4c192 <== NOT EXECUTED asr->is_enabled = is_asr_enabled; 4c150: 1741 0008 moveb %d1,%a3@(8) <== NOT EXECUTED ) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); 4c154: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 4c15a: 40c1 movew %sr,%d1 <== NOT EXECUTED 4c15c: 8081 orl %d1,%d0 <== NOT EXECUTED 4c15e: 46c0 movew %d0,%sr <== NOT EXECUTED _signals = information->signals_pending; 4c160: 202b 0016 movel %a3@(22),%d0 <== NOT EXECUTED information->signals_pending = information->signals_posted; 4c164: 276b 0012 0016 movel %a3@(18),%a3@(22) <== NOT EXECUTED information->signals_posted = _signals; 4c16a: 2740 0012 movel %d0,%a3@(18) <== NOT EXECUTED _ISR_Enable( _level ); 4c16e: 46c1 movew %d1,%sr <== NOT EXECUTED _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { 4c170: 4aab 0012 tstl %a3@(18) <== NOT EXECUTED 4c174: 671c beqs 4c192 <== NOT EXECUTED needs_asr_dispatching = true; executing->do_post_task_switch_extension = true; 4c176: 7401 moveq #1,%d2 <== NOT EXECUTED 4c178: 1542 0075 moveb %d2,%a2@(117) <== NOT EXECUTED } } } if ( _System_state_Is_up(_System_state_Current) ) 4c17c: 7203 moveq #3,%d1 <== NOT EXECUTED 4c17e: b2b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d1 <== NOT EXECUTED 4c184: 6762 beqs 4c1e8 <== NOT EXECUTED if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 4c186: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 4c18c: 4e5e unlk %fp <== NOT EXECUTED } } if ( _System_state_Is_up(_System_state_Current) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); 4c18e: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4c190: 4e75 rts <== NOT EXECUTED 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; 4c192: 4202 clrb %d2 <== NOT EXECUTED } } } if ( _System_state_Is_up(_System_state_Current) ) 4c194: 7203 moveq #3,%d1 <== NOT EXECUTED 4c196: b2b9 0005 88e6 cmpl 588e6 <_System_state_Current>,%d1 <== NOT EXECUTED 4c19c: 66e8 bnes 4c186 <== NOT EXECUTED 4c19e: 6048 bras 4c1e8 <== NOT EXECUTED old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; old_mode |= _ISR_Get_level(); 4c1a0: 4eb9 0004 92e8 jsr 492e8 <_CPU_ISR_Get_level> <== NOT EXECUTED 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; 4c1a6: 4282 clrl %d2 <== NOT EXECUTED 4c1a8: 8480 orl %d0,%d2 <== NOT EXECUTED old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; 4c1aa: 8483 orl %d3,%d2 <== NOT EXECUTED 4c1ac: 2882 movel %d2,%a4@ <== NOT EXECUTED /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 4c1ae: 0804 0008 btst #8,%d4 <== NOT EXECUTED 4c1b2: 6700 ff48 beqw 4c0fc <== NOT EXECUTED 4c1b6: 6000 ff36 braw 4c0ee <== NOT EXECUTED executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 4c1ba: 4283 clrl %d3 <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 4c1bc: 4aaa 007c tstl %a2@(124) <== NOT EXECUTED 4c1c0: 6700 ff0c beqw 4c0ce <== NOT EXECUTED old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; 4c1c4: 08c3 0009 bset #9,%d3 <== NOT EXECUTED old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4c1c8: 243c 0000 0400 movel #1024,%d2 <== NOT EXECUTED 4c1ce: 4a2b 0008 tstb %a3@(8) <== NOT EXECUTED 4c1d2: 6700 ff08 beqw 4c0dc <== NOT EXECUTED 4c1d6: 60c8 bras 4c1a0 <== NOT EXECUTED /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4c1d8: 7007 moveq #7,%d0 <== NOT EXECUTED 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; 4c1da: 42aa 007c clrl %a2@(124) <== NOT EXECUTED /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4c1de: c084 andl %d4,%d0 <== NOT EXECUTED 4c1e0: 6700 ff50 beqw 4c132 <== NOT EXECUTED 4c1e4: 6000 ff3a braw 4c120 <== NOT EXECUTED } } } if ( _System_state_Is_up(_System_state_Current) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) 4c1e8: 4eb9 0004 c3b8 jsr 4c3b8 <_Thread_Evaluate_mode> <== NOT EXECUTED 4c1ee: 4a00 tstb %d0 <== NOT EXECUTED 4c1f0: 6604 bnes 4c1f6 <== NOT EXECUTED 4c1f2: 4a02 tstb %d2 <== NOT EXECUTED 4c1f4: 6790 beqs 4c186 <== NOT EXECUTED _Thread_Dispatch(); 4c1f6: 4eb9 0004 7b60 jsr 47b60 <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4c1fc: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 4c202: 4e5e unlk %fp <== NOT EXECUTED } } if ( _System_state_Is_up(_System_state_Current) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); 4c204: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4c206: 4e75 rts <== NOT EXECUTED 4c208: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 4c20e: 4e5e unlk %fp <== NOT EXECUTED ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) 4c210: 7009 moveq #9,%d0 <== NOT EXECUTED if ( _System_state_Is_up(_System_state_Current) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 4c212: 4e75 rts 00046988 : rtems_status_code rtems_task_restart( Objects_Id id, uint32_t argument ) { 46988: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 4698c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46990: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46994: 4eb9 0004 8628 jsr 48628 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 4699a: 508f addql #8,%sp <== NOT EXECUTED 4699c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 469a0: 6624 bnes 469c6 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { 469a2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 469a6: 42a7 clrl %sp@- <== NOT EXECUTED 469a8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 469aa: 4eb9 0004 8f5c jsr 48f5c <_Thread_Restart> <== NOT EXECUTED 469b0: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 469b6: 4a00 tstb %d0 <== NOT EXECUTED 469b8: 6612 bnes 469cc <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 469ba: 4eb9 0004 8600 jsr 48600 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469c0: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 469c2: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469c4: 4e75 rts <== NOT EXECUTED 469c6: 4e5e unlk %fp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 469c8: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469ca: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch(); 469cc: 4eb9 0004 8600 jsr 48600 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469d2: 4e5e unlk %fp <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch(); 469d4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469d6: 4e75 rts 000472b0 : */ rtems_status_code rtems_task_resume( Objects_Id id ) { 472b0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 472b4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 472b8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 472bc: 4eb9 0004 91ec jsr 491ec <_Thread_Get> <== NOT EXECUTED switch ( location ) { 472c2: 508f addql #8,%sp <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 472c4: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 472c6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 472ca: 6706 beqs 472d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 472cc: 4e5e unlk %fp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 472ce: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 472d0: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { 472d2: 7002 moveq #2,%d0 <== NOT EXECUTED 472d4: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED 472d8: 660c bnes 472e6 <== NOT EXECUTED _Thread_Resume( the_thread, TRUE ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 472da: 4eb9 0004 9194 jsr 49194 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 472e0: 4e5e unlk %fp <== NOT EXECUTED if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread, TRUE ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 472e2: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 472e4: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread, TRUE ); 472e6: 4878 0001 pea 1 <== NOT EXECUTED 472ea: 2f08 movel %a0,%sp@- <== NOT EXECUTED 472ec: 4eb9 0004 9b20 jsr 49b20 <_Thread_Resume> <== NOT EXECUTED _Thread_Enable_dispatch(); 472f2: 4eb9 0004 9194 jsr 49194 <_Thread_Enable_dispatch> <== NOT EXECUTED 472f8: 508f addql #8,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 472fa: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread, TRUE ); _Thread_Enable_dispatch(); 472fc: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 472fe: 4e75 rts 00062cd0 : #include #include rtems_id rtems_task_self(void) { 62cd0: 2079 0009 9f3e moveal 99f3e <_Thread_Executing>,%a0 <== NOT EXECUTED 62cd6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Thread_Executing->Object.id; } 62cda: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 62cde: 4e5e unlk %fp <== NOT EXECUTED 62ce0: 4e75 rts <== NOT EXECUTED ... 00047cf0 : { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 47cf0: 2079 0005 c5ee moveal 5c5ee <_Configuration_Table>,%a0 <== NOT EXECUTED 47cf6: 2268 003e moveal %a0@(62),%a1 <== NOT EXECUTED rtems_status_code rtems_task_set_note( Objects_Id id, uint32_t notepad, uint32_t note ) { 47cfa: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 47cfe: 4a29 0004 tstb %a1@(4) <== NOT EXECUTED 47d02: 675a beqs 47d5e <== NOT EXECUTED /* * 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 ) 47d04: 700f moveq #15,%d0 <== NOT EXECUTED 47d06: b0ae 000c cmpl %fp@(12),%d0 <== NOT EXECUTED 47d0a: 654a bcss 47d56 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 47d0c: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 47d10: 6752 beqs 47d64 <== NOT EXECUTED 47d12: 2079 0005 c612 moveal 5c612 <_Thread_Executing>,%a0 <== NOT EXECUTED 47d18: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 47d1c: b2a8 0008 cmpl %a0@(8),%d1 <== NOT EXECUTED 47d20: 6748 beqs 47d6a <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 47d22: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47d26: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47d2a: 4eb9 0004 9b94 jsr 49b94 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 47d30: 508f addql #8,%sp <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 47d32: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 47d34: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47d38: 6646 bnes 47d80 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 47d3a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 47d3e: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 47d42: 2068 010c moveal %a0@(268),%a0 <== NOT EXECUTED 47d46: 2181 0c1e movel %d1,%a0@(0000001e,%d0:l:4) <== NOT EXECUTED _Thread_Enable_dispatch(); 47d4a: 4eb9 0004 9b6c jsr 49b6c <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d50: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; _Thread_Enable_dispatch(); 47d52: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d54: 4e75 rts <== NOT EXECUTED 47d56: 4e5e unlk %fp <== NOT EXECUTED /* * 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 ) 47d58: 103c 000a moveb #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d5c: 4e75 rts <== NOT EXECUTED 47d5e: 4e5e unlk %fp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 47d60: 7016 moveq #22,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d62: 4e75 rts <== NOT EXECUTED 47d64: 2079 0005 c612 moveal 5c612 <_Thread_Executing>,%a0 <== NOT EXECUTED */ 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; 47d6a: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 47d6e: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 47d72: 2068 010c moveal %a0@(268),%a0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d76: 4e5e unlk %fp <== NOT EXECUTED */ 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; 47d78: 2181 0c1e movel %d1,%a0@(0000001e,%d0:l:4) <== NOT EXECUTED 47d7c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d7e: 4e75 rts <== NOT EXECUTED 47d80: 4e5e unlk %fp <== NOT EXECUTED api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 47d82: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47d84: 4e75 rts <== NOT EXECUTED ... 0004b758 : rtems_status_code rtems_task_set_priority( Objects_Id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { 4b758: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4b75c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b75e: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && 4b762: 670c beqs 4b770 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 4b764: 4280 clrl %d0 <== NOT EXECUTED 4b766: 1039 0006 4032 moveb 64032 ,%d0 <== NOT EXECUTED 4b76c: b082 cmpl %d2,%d0 <== NOT EXECUTED 4b76e: 6566 bcss 4b7d6 <== NOT EXECUTED !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 4b770: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 4b774: 676a beqs 4b7e0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 4b776: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4b77a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4b77e: 4eb9 0004 d614 jsr 4d614 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 4b784: 508f addql #8,%sp <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 4b786: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 4b788: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4b78c: 663e bnes 4b7cc <== NOT EXECUTED case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; 4b78e: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 4b792: 22a8 0014 movel %a0@(20),%a1@ <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY ) { 4b796: 4a82 tstl %d2 <== NOT EXECUTED 4b798: 6722 beqs 4b7bc <== NOT EXECUTED the_thread->real_priority = new_priority; 4b79a: 2142 0018 movel %d2,%a0@(24) <== NOT EXECUTED if ( the_thread->resource_count == 0 || 4b79e: 4aa8 001c tstl %a0@(28) <== NOT EXECUTED 4b7a2: 6706 beqs 4b7aa <== NOT EXECUTED 4b7a4: b4a8 0014 cmpl %a0@(20),%d2 <== NOT EXECUTED 4b7a8: 6412 bccs 4b7bc <== NOT EXECUTED the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, FALSE ); 4b7aa: 42a7 clrl %sp@- <== NOT EXECUTED 4b7ac: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b7ae: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4b7b0: 4eb9 0004 d094 jsr 4d094 <_Thread_Change_priority> <== NOT EXECUTED 4b7b6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } _Thread_Enable_dispatch(); 4b7bc: 4eb9 0004 d5bc jsr 4d5bc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4b7c2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4b7c6: 4e5e unlk %fp <== NOT EXECUTED the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, FALSE ); } _Thread_Enable_dispatch(); 4b7c8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4b7ca: 4e75 rts <== NOT EXECUTED 4b7cc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4b7d0: 4e5e unlk %fp <== NOT EXECUTED if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 4b7d2: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4b7d4: 4e75 rts <== NOT EXECUTED 4b7d6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4b7da: 4e5e unlk %fp <== NOT EXECUTED 4b7dc: 7013 moveq #19,%d0 <== NOT EXECUTED 4b7de: 4e75 rts <== NOT EXECUTED 4b7e0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4b7e4: 4e5e unlk %fp <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 4b7e6: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4b7e8: 4e75 rts <== NOT EXECUTED ... 000460a4 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { 460a4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 460a8: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 460ac: 6752 beqs 46100 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 460ae: 486e fffc pea %fp@(-4) <== NOT EXECUTED 460b2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 460b6: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 460bc: 508f addql #8,%sp <== NOT EXECUTED 460be: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 460c2: 662a bnes 460ee <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Start( 460c4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 460c8: 42a7 clrl %sp@- <== NOT EXECUTED 460ca: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 460ce: 42a7 clrl %sp@- <== NOT EXECUTED 460d0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 460d2: 4eb9 0004 8920 jsr 48920 <_Thread_Start> <== NOT EXECUTED 460d8: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 460de: 4a00 tstb %d0 <== NOT EXECUTED 460e0: 6612 bnes 460f4 <== NOT EXECUTED the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 460e2: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 460e8: 4e5e unlk %fp <== NOT EXECUTED if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 460ea: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 460ec: 4e75 rts <== NOT EXECUTED 460ee: 4e5e unlk %fp <== NOT EXECUTED if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 460f0: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 460f2: 4e75 rts <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); 460f4: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 460fa: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); 460fc: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 460fe: 4e75 rts <== NOT EXECUTED 46100: 4e5e unlk %fp <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 46102: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46104: 4e75 rts <== NOT EXECUTED ... 00046108 : */ rtems_status_code rtems_task_suspend( Objects_Id id ) { 46108: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 4610c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46110: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 46114: 4eb9 0004 7ce4 jsr 47ce4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 4611a: 508f addql #8,%sp <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 4611c: 2040 moveal %d0,%a0 <== NOT EXECUTED switch ( location ) { 4611e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46122: 6706 beqs 4612a <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46124: 4e5e unlk %fp <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 46126: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46128: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 4612a: 7002 moveq #2,%d0 <== NOT EXECUTED 4612c: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED 46130: 670c beqs 4613e <== NOT EXECUTED _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 46132: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46138: 4e5e unlk %fp <== NOT EXECUTED if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4613a: 700f moveq #15,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4613c: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread ); 4613e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46140: 4eb9 0004 897c jsr 4897c <_Thread_Suspend> <== NOT EXECUTED _Thread_Enable_dispatch(); 46146: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED 4614c: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4614e: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); 46150: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46152: 4e75 rts 00062f04 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 62f04: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 62f08: 2f0b movel %a3,%sp@- <== NOT EXECUTED 62f0a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 62f0c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 62f10: 4a8a tstl %a2 <== NOT EXECUTED 62f12: 6700 008e beqw 62fa2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 62f16: 486e fffc pea %fp@(-4) <== NOT EXECUTED 62f1a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 62f1e: 4eb9 0004 c57c jsr 4c57c <_Thread_Get> <== NOT EXECUTED switch (location) { 62f24: 508f addql #8,%sp <== NOT EXECUTED rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 62f26: 2640 moveal %d0,%a3 <== NOT EXECUTED switch (location) { 62f28: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 62f2c: 6652 bnes 62f80 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; 62f2e: 206b 011c moveal %a3@(284),%a0 <== NOT EXECUTED while (tvp) { 62f32: 4a88 tstl %a0 <== NOT EXECUTED 62f34: 670c beqs 62f42 <== NOT EXECUTED if (tvp->ptr == ptr) { 62f36: b5e8 0004 cmpal %a0@(4),%a2 <== NOT EXECUTED 62f3a: 6728 beqs 62f64 <== NOT EXECUTED tvp->dtor = dtor; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 62f3c: 2050 moveal %a0@,%a0 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 62f3e: 4a88 tstl %a0 <== NOT EXECUTED 62f40: 66f4 bnes 62f36 <== NOT EXECUTED } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 62f42: 4878 0014 pea 14 <== NOT EXECUTED 62f46: 4eb9 0004 d9f0 jsr 4d9f0 <_Workspace_Allocate> <== NOT EXECUTED _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 62f4c: 588f addql #4,%sp <== NOT EXECUTED } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 62f4e: 2040 moveal %d0,%a0 <== NOT EXECUTED _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 62f50: 4a80 tstl %d0 <== NOT EXECUTED 62f52: 673a beqs 62f8e <== NOT EXECUTED } new->gval = *ptr; new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 62f54: 20ab 011c movel %a3@(284),%a0@ <== NOT EXECUTED _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 62f58: 2152 0008 movel %a2@,%a0@(8) <== NOT EXECUTED new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; 62f5c: 2740 011c movel %d0,%a3@(284) <== NOT EXECUTED if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; new->ptr = ptr; 62f60: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED new->dtor = dtor; 62f64: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 62f68: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; _Thread_Enable_dispatch(); 62f6c: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 62f72: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62f74: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 62f78: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 62f7c: 4e5e unlk %fp <== NOT EXECUTED 62f7e: 4e75 rts <== NOT EXECUTED 62f80: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 62f84: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 62f88: 4e5e unlk %fp <== NOT EXECUTED if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 62f8a: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62f8c: 4e75 rts <== NOT EXECUTED * 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(); 62f8e: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62f94: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 62f98: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 62f9c: 4e5e unlk %fp <== NOT EXECUTED * 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(); 62f9e: 701a moveq #26,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62fa0: 4e75 rts <== NOT EXECUTED 62fa2: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 62fa6: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 62faa: 4e5e unlk %fp <== NOT EXECUTED { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 62fac: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 62fae: 4e75 rts 00062fb0 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 62fb0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 62fb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 62fb6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62fb8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 62fbc: 676a beqs 63028 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 62fbe: 486e fffc pea %fp@(-4) <== NOT EXECUTED 62fc2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 62fc6: 4eb9 0004 c57c jsr 4c57c <_Thread_Get> <== NOT EXECUTED switch (location) { 62fcc: 508f addql #8,%sp <== NOT EXECUTED if ( !ptr ) return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 62fce: 2440 moveal %d0,%a2 <== NOT EXECUTED switch (location) { 62fd0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 62fd4: 663e bnes 63014 <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; 62fd6: 206a 011c moveal %a2@(284),%a0 <== NOT EXECUTED while (tvp) { 62fda: 4a88 tstl %a0 <== NOT EXECUTED 62fdc: 6744 beqs 63022 <== NOT EXECUTED if (tvp->ptr == ptr) { 62fde: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED 62fe2: 6752 beqs 63036 <== NOT EXECUTED 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; 62fe4: 2248 moveal %a0,%a1 <== NOT EXECUTED } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 62fe6: 2050 moveal %a0@,%a0 <== NOT EXECUTED the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 62fe8: 4a88 tstl %a0 <== NOT EXECUTED 62fea: 6736 beqs 63022 <== NOT EXECUTED if (tvp->ptr == ptr) { 62fec: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED 62ff0: 66f2 bnes 62fe4 <== NOT EXECUTED if (prev) prev->next = tvp->next; 62ff2: 2290 movel %a0@,%a1@ <== NOT EXECUTED else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); 62ff4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 62ff6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 62ff8: 4eb9 0006 30cc jsr 630cc <_RTEMS_Tasks_Invoke_task_variable_dtor> <== NOT EXECUTED _Thread_Enable_dispatch(); 62ffe: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 63004: 508f addql #8,%sp <== NOT EXECUTED 63006: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 63008: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 6300c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 63010: 4e5e unlk %fp <== NOT EXECUTED 63012: 4e75 rts <== NOT EXECUTED 63014: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 63018: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 6301c: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { 6301e: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 63020: 4e75 rts <== NOT EXECUTED return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 63022: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 63028: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 6302c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 63030: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 63032: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 63034: 4e75 rts <== NOT EXECUTED while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; 63036: 2550 011c movel %a0@,%a2@(284) <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); 6303a: 2f08 movel %a0,%sp@- <== NOT EXECUTED 6303c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6303e: 4eb9 0006 30cc jsr 630cc <_RTEMS_Tasks_Invoke_task_variable_dtor> <== NOT EXECUTED _Thread_Enable_dispatch(); 63044: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 6304a: 508f addql #8,%sp <== NOT EXECUTED 6304c: 4280 clrl %d0 <== NOT EXECUTED 6304e: 60b8 bras 63008 <== NOT EXECUTED 00063050 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 63050: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 63054: 2f02 movel %d2,%sp@- <== NOT EXECUTED 63056: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 6305a: 674c beqs 630a8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !result ) 6305c: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 63060: 6746 beqs 630a8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 63062: 486e fffc pea %fp@(-4) <== NOT EXECUTED 63066: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 6306a: 4eb9 0004 c57c jsr 4c57c <_Thread_Get> <== NOT EXECUTED switch (location) { 63070: 508f addql #8,%sp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 63072: 2040 moveal %d0,%a0 <== NOT EXECUTED switch (location) { 63074: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 63078: 6624 bnes 6309e <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 6307a: 2068 011c moveal %a0@(284),%a0 <== NOT EXECUTED while (tvp) { 6307e: 4a88 tstl %a0 <== NOT EXECUTED 63080: 670c beqs 6308e <== NOT EXECUTED if (tvp->ptr == ptr) { 63082: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED 63086: 672a beqs 630b2 <== NOT EXECUTED */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 63088: 2050 moveal %a0@,%a0 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 6308a: 4a88 tstl %a0 <== NOT EXECUTED 6308c: 66f4 bnes 63082 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 6308e: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 63094: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 63098: 4e5e unlk %fp <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 6309a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 6309c: 4e75 rts <== NOT EXECUTED 6309e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 630a2: 4e5e unlk %fp <== NOT EXECUTED if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 630a4: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 630a6: 4e75 rts <== NOT EXECUTED 630a8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 630ac: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 630ae: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 630b0: 4e75 rts <== NOT EXECUTED if (tvp->ptr == ptr) { /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 630b2: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED 630b6: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 630ba: 4eb9 0004 c554 jsr 4c554 <_Thread_Enable_dispatch> <== NOT EXECUTED 630c0: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 630c2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 630c6: 4e5e unlk %fp <== NOT EXECUTED 630c8: 4e75 rts <== NOT EXECUTED ... 00046154 : */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { 46154: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46158: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 4615e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 46160: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 46164: 5280 addql #1,%d0 <== NOT EXECUTED 46166: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _Thread_Disable_dispatch(); if ( ticks == 0 ) { 4616c: 4a82 tstl %d2 <== NOT EXECUTED 4616e: 675a beqs 461ca <== NOT EXECUTED _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); 46170: 4878 0008 pea 8 <== NOT EXECUTED 46174: 2f39 0005 8812 movel 58812 <_Thread_Executing>,%sp@- <== NOT EXECUTED 4617a: 4eb9 0004 8680 jsr 48680 <_Thread_Set_state> <== NOT EXECUTED _Watchdog_Initialize( 46180: 2079 0005 8812 moveal 58812 <_Thread_Executing>,%a0 <== NOT EXECUTED 46186: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 4618a: 223c 0004 7b24 movel #293668,%d1 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46190: 2142 0054 movel %d2,%a0@(84) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 46194: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 46198: 2141 0064 movel %d1,%a0@(100) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 4619c: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 461a0: 42a8 006c clrl %a0@(108) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 461a4: 4868 0048 pea %a0@(72) <== NOT EXECUTED 461a8: 4879 0005 8830 pea 58830 <_Watchdog_Ticks_chain> <== NOT EXECUTED 461ae: 4eb9 0004 8ed4 jsr 48ed4 <_Watchdog_Insert> <== NOT EXECUTED 461b4: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 461ba: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 461c0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 461c4: 4e5e unlk %fp <== NOT EXECUTED 461c6: 4280 clrl %d0 <== NOT EXECUTED 461c8: 4e75 rts <== NOT EXECUTED rtems_interval ticks ) { _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); 461ca: 4eb9 0004 8b14 jsr 48b14 <_Thread_Yield_processor> <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 461d0: 4eb9 0004 7cbc jsr 47cbc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 461d6: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 461da: 4e5e unlk %fp <== NOT EXECUTED 461dc: 4280 clrl %d0 <== NOT EXECUTED 461de: 4e75 rts 00046ee0 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { 46ee0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46ee4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46ee6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) 46eea: 4a39 0005 a638 tstb 5a638 <_TOD_Is_set> <== NOT EXECUTED 46ef0: 6700 00a6 beqw 46f98 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !time_buffer ) 46ef4: 4a8a tstl %a2 <== NOT EXECUTED 46ef6: 6700 00aa beqw 46fa2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; 46efa: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED if ( !_TOD_Validate( time_buffer ) ) 46efe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46f00: 4eb9 0004 61b8 jsr 461b8 <_TOD_Validate> <== NOT EXECUTED 46f06: 588f addql #4,%sp <== NOT EXECUTED 46f08: 4a00 tstb %d0 <== NOT EXECUTED 46f0a: 660a bnes 46f16 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46f0c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46f10: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46f12: 7014 moveq #20,%d0 <== NOT EXECUTED } 46f14: 4e75 rts <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); 46f16: 2f0a movel %a2,%sp@- <== NOT EXECUTED 46f18: 4eb9 0004 6084 jsr 46084 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch ) 46f1e: 588f addql #4,%sp <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); 46f20: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch ) 46f22: b0b9 0005 a6b6 cmpl 5a6b6 <_TOD_Now>,%d0 <== NOT EXECUTED 46f28: 63e2 blss 46f0c <== NOT EXECUTED 46f2a: 2039 0005 a624 movel 5a624 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 46f30: 5280 addql #1,%d0 <== NOT EXECUTED 46f32: 23c0 0005 a624 movel %d0,5a624 <_Thread_Dispatch_disable_level> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); 46f38: 4878 0010 pea 10 <== NOT EXECUTED 46f3c: 2f39 0005 a6e2 movel 5a6e2 <_Thread_Executing>,%sp@- <== NOT EXECUTED 46f42: 4eb9 0004 9468 jsr 49468 <_Thread_Set_state> <== NOT EXECUTED _Watchdog_Initialize( 46f48: 2079 0005 a6e2 moveal 5a6e2 <_Thread_Executing>,%a0 <== NOT EXECUTED 46f4e: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 46f52: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46f56: 95f9 0005 a6b6 subal 5a6b6 <_TOD_Now>,%a2 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 46f5c: 203c 0004 890c movel #297228,%d0 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46f62: 214a 0054 movel %a2,%a0@(84) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 46f66: 2140 0064 movel %d0,%a0@(100) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46f6a: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 46f6e: 42a8 006c clrl %a0@(108) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 46f72: 4868 0048 pea %a0@(72) <== NOT EXECUTED 46f76: 4879 0005 a6f4 pea 5a6f4 <_Watchdog_Seconds_chain> <== NOT EXECUTED 46f7c: 4eb9 0004 9d50 jsr 49d50 <_Watchdog_Insert> <== NOT EXECUTED ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); 46f82: 4eb9 0004 8aa4 jsr 48aa4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46f88: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); 46f8c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46f92: 4e5e unlk %fp <== NOT EXECUTED ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); 46f94: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46f96: 4e75 rts <== NOT EXECUTED 46f98: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46f9c: 4e5e unlk %fp <== NOT EXECUTED rtems_time_of_day *time_buffer ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) 46f9e: 700b moveq #11,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46fa0: 4e75 rts <== NOT EXECUTED 46fa2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 46fa6: 4e5e unlk %fp <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer ) 46fa8: 7009 moveq #9,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46faa: 4e75 rts 00043530 : rtems_status_code rtems_termios_bufsize ( int cbufsize, int raw_input, int raw_output ) { 43530: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_termios_cbufsize = cbufsize; 43534: 41ee 0008 lea %fp@(8),%a0 <== NOT EXECUTED 43538: 23d0 0005 70a4 movel %a0@,570a4 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 4353e: 41ee 000c lea %fp@(12),%a0 <== NOT EXECUTED 43542: 23d0 0005 70a8 movel %a0@,570a8 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 43548: 41ee 0010 lea %fp@(16),%a0 <== NOT EXECUTED 4354c: 23d0 0005 70ac movel %a0@,570ac <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 43552: 4e5e unlk %fp <== NOT EXECUTED 43554: 4280 clrl %d0 <== NOT EXECUTED 43556: 4e75 rts 00044b74 : } } rtems_status_code rtems_termios_close (void *arg) { 44b74: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 44b78: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED 44b7c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 44b80: 2052 moveal %a2@,%a0 <== NOT EXECUTED 44b82: 2668 0028 moveal %a0@(40),%a3 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44b86: 42a7 clrl %sp@- <== NOT EXECUTED 44b88: 42a7 clrl %sp@- <== NOT EXECUTED 44b8a: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 44b90: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 44b96: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 44b9c: 4a80 tstl %d0 <== NOT EXECUTED 44b9e: 6600 0124 bnew 44cc4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 44ba2: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED 44ba6: 5380 subql #1,%d0 <== NOT EXECUTED 44ba8: 2740 0008 movel %d0,%a3@(8) <== NOT EXECUTED 44bac: 6600 00aa bnew 44c58 <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 44bb0: 202b 00cc movel %a3@(204),%d0 <== NOT EXECUTED 44bb4: 41f9 0005 7e00 lea 57e00 ,%a0 <== NOT EXECUTED 44bba: e788 lsll #3,%d0 <== NOT EXECUTED 44bbc: 2070 0c04 moveal %a0@(00000004,%d0:l:4),%a0 <== NOT EXECUTED 44bc0: 4a88 tstl %a0 <== NOT EXECUTED 44bc2: 6700 0108 beqw 44ccc <== NOT EXECUTED /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 44bc6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 44bc8: 4e90 jsr %a0@ <== NOT EXECUTED 44bca: 588f addql #4,%sp <== NOT EXECUTED * default: just flush output buffer */ drainOutput (tty); } if (tty->device.outputUsesInterrupts 44bcc: 7002 moveq #2,%d0 <== NOT EXECUTED 44bce: b0ab 00b4 cmpl %a3@(180),%d0 <== NOT EXECUTED 44bd2: 6700 00c8 beqw 44c9c <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 44bd6: 206b 009c moveal %a3@(156),%a0 <== NOT EXECUTED 44bda: 4a88 tstl %a0 <== NOT EXECUTED 44bdc: 6712 beqs 44bf0 <== NOT EXECUTED (*tty->device.lastClose)(tty->major, tty->minor, arg); 44bde: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44be0: 2f2b 0010 movel %a3@(16),%sp@- <== NOT EXECUTED 44be4: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED 44be8: 4e90 jsr %a0@ <== NOT EXECUTED 44bea: dffc 0000 000c addal #12,%sp <== NOT EXECUTED if (tty->forw == NULL) { 44bf0: 2053 moveal %a3@,%a0 <== NOT EXECUTED 44bf2: 4a88 tstl %a0 <== NOT EXECUTED 44bf4: 6700 00ea beqw 44ce0 <== NOT EXECUTED if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 44bf8: 216b 0004 0004 movel %a3@(4),%a0@(4) <== NOT EXECUTED } if (tty->back == NULL) { 44bfe: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED 44c02: 4a88 tstl %a0 <== NOT EXECUTED 44c04: 6700 00ec beqw 44cf2 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 44c08: 2093 movel %a3@,%a0@ <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 44c0a: 2f2b 0014 movel %a3@(20),%sp@- <== NOT EXECUTED 44c0e: 45f9 0004 5b08 lea 45b08 ,%a2 <== NOT EXECUTED 44c14: 4e92 jsr %a2@ <== NOT EXECUTED rtems_semaphore_delete (tty->osem); 44c16: 2f2b 0018 movel %a3@(24),%sp@- <== NOT EXECUTED 44c1a: 4e92 jsr %a2@ <== NOT EXECUTED rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 44c1c: 2f2b 008c movel %a3@(140),%sp@- <== NOT EXECUTED 44c20: 4e92 jsr %a2@ <== NOT EXECUTED if ((tty->device.pollRead == NULL) || 44c22: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 44c28: 4aab 00a0 tstl %a3@(160) <== NOT EXECUTED 44c2c: 6742 beqs 44c70 <== NOT EXECUTED 44c2e: 7002 moveq #2,%d0 <== NOT EXECUTED 44c30: b0ab 00b4 cmpl %a3@(180),%d0 <== NOT EXECUTED 44c34: 673a beqs 44c70 <== NOT EXECUTED (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 44c36: 2f2b 0058 movel %a3@(88),%sp@- <== NOT EXECUTED 44c3a: 45f9 0004 a3d0 lea 4a3d0 ,%a2 <== NOT EXECUTED 44c40: 4e92 jsr %a2@ <== NOT EXECUTED free (tty->rawOutBuf.theBuf); 44c42: 2f2b 007c movel %a3@(124),%sp@- <== NOT EXECUTED 44c46: 4e92 jsr %a2@ <== NOT EXECUTED free (tty->cbuf); 44c48: 2f2b 001c movel %a3@(28),%sp@- <== NOT EXECUTED 44c4c: 4e92 jsr %a2@ <== NOT EXECUTED free (tty); 44c4e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 44c50: 4e92 jsr %a2@ <== NOT EXECUTED 44c52: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED } rtems_semaphore_release (rtems_termios_ttyMutex); 44c58: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 44c5e: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 44c64: 4cee 1c00 fff4 moveml %fp@(-12),%a2-%a4 <== NOT EXECUTED 44c6a: 4e5e unlk %fp <== NOT EXECUTED 44c6c: 4280 clrl %d0 <== NOT EXECUTED 44c6e: 4e75 rts <== NOT EXECUTED 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); 44c70: 2f2b 0068 movel %a3@(104),%sp@- <== NOT EXECUTED 44c74: 4e92 jsr %a2@ <== NOT EXECUTED 44c76: 588f addql #4,%sp <== NOT EXECUTED free (tty->rawInBuf.theBuf); 44c78: 2f2b 0058 movel %a3@(88),%sp@- <== NOT EXECUTED 44c7c: 45f9 0004 a3d0 lea 4a3d0 ,%a2 <== NOT EXECUTED 44c82: 4e92 jsr %a2@ <== NOT EXECUTED free (tty->rawOutBuf.theBuf); 44c84: 2f2b 007c movel %a3@(124),%sp@- <== NOT EXECUTED 44c88: 4e92 jsr %a2@ <== NOT EXECUTED free (tty->cbuf); 44c8a: 2f2b 001c movel %a3@(28),%sp@- <== NOT EXECUTED 44c8e: 4e92 jsr %a2@ <== NOT EXECUTED free (tty); 44c90: 2f0b movel %a3,%sp@- <== NOT EXECUTED 44c92: 4e92 jsr %a2@ <== NOT EXECUTED 44c94: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 44c9a: 60bc bras 44c58 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 44c9c: 4878 0001 pea 1 <== NOT EXECUTED 44ca0: 49f9 0004 56a0 lea 456a0 ,%a4 <== NOT EXECUTED 44ca6: 2f2b 00c4 movel %a3@(196),%sp@- <== NOT EXECUTED 44caa: 4e94 jsr %a4@ <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 44cac: 508f addql #8,%sp <== NOT EXECUTED 44cae: 4a80 tstl %d0 <== NOT EXECUTED 44cb0: 6612 bnes 44cc4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 44cb2: 4878 0001 pea 1 <== NOT EXECUTED 44cb6: 2f2b 00c8 movel %a3@(200),%sp@- <== NOT EXECUTED 44cba: 4e94 jsr %a4@ <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 44cbc: 508f addql #8,%sp <== NOT EXECUTED 44cbe: 4a80 tstl %d0 <== NOT EXECUTED 44cc0: 6700 ff14 beqw 44bd6 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 44cc4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44cc6: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 44ccc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 44cce: 4eba f6b8 jsr %pc@(44388 ) <== NOT EXECUTED 44cd2: 588f addql #4,%sp <== NOT EXECUTED } if (tty->device.outputUsesInterrupts 44cd4: 7002 moveq #2,%d0 <== NOT EXECUTED 44cd6: b0ab 00b4 cmpl %a3@(180),%d0 <== NOT EXECUTED 44cda: 6600 fefa bnew 44bd6 <== NOT EXECUTED 44cde: 60bc bras 44c9c <== 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; 44ce0: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED 44ce4: 23c8 0005 8680 movel %a0,58680 <== NOT EXECUTED if ( rtems_termios_ttyTail != NULL ) { 44cea: 671a beqs 44d06 <== NOT EXECUTED rtems_termios_ttyTail->forw = NULL; 44cec: 4290 clrl %a0@ <== NOT EXECUTED 44cee: 6000 ff0e braw 44bfe <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 44cf2: 2053 moveal %a3@,%a0 <== NOT EXECUTED 44cf4: 23c8 0005 8684 movel %a0,58684 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { 44cfa: 6700 ff0e beqw 44c0a <== NOT EXECUTED rtems_termios_ttyHead->back = NULL; 44cfe: 42a8 0004 clrl %a0@(4) <== NOT EXECUTED 44d02: 6000 ff06 braw 44c0a <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 44d06: 42b9 0005 8684 clrl 58684 <== NOT EXECUTED 44d0c: 6000 fefc braw 44c0a <== NOT EXECUTED 00043774 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 43774: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 43778: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 4377c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 43780: d1a8 0090 addl %d0,%a0@(144) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 43784: 7002 moveq #2,%d0 <== NOT EXECUTED 43786: b0a8 00b4 cmpl %a0@(180),%d0 <== NOT EXECUTED 4378a: 672a beqs 437b6 <== 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 ) { 4378c: 7005 moveq #5,%d0 <== NOT EXECUTED 4378e: b0a8 00cc cmpl %a0@(204),%d0 <== NOT EXECUTED 43792: 6616 bnes 437aa <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 43794: 2279 0005 7eb4 moveal 57eb4 ,%a1 <== NOT EXECUTED 4379a: 4a89 tstl %a1 <== NOT EXECUTED 4379c: 6706 beqs 437a4 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 4379e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 437a0: 4e91 jsr %a1@ <== NOT EXECUTED 437a2: 588f addql #4,%sp <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 437a4: 4e5e unlk %fp <== NOT EXECUTED 437a6: 4280 clrl %d0 <== NOT EXECUTED 437a8: 4e75 rts <== 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); 437aa: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } } 437ae: 4e5e unlk %fp <== 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); 437b0: 4ef9 0004 3574 jmp 43574 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 437b6: 4878 0002 pea 2 <== NOT EXECUTED 437ba: 2f28 00c8 movel %a0@(200),%sp@- <== NOT EXECUTED 437be: 4eb9 0004 56a0 jsr 456a0 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 437c4: 508f addql #8,%sp <== NOT EXECUTED 437c6: 4a80 tstl %d0 <== NOT EXECUTED 437c8: 67da beqs 437a4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 437ca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 437cc: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED 000437d2 : * 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) { 437d2: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 437d6: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 437da: 246e 0008 moveal %fp@(8),%a2 <== 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) { 437de: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 437e2: 47f9 0005 7e00 lea 57e00 ,%a3 <== NOT EXECUTED 437e8: eb88 lsll #5,%d0 <== NOT EXECUTED 437ea: 2073 0810 moveal %a3@(00000010,%d0:l),%a0 <== 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) { 437ee: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED 437f2: 262e 0010 movel %fp@(16),%d3 <== 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) { 437f6: 4a88 tstl %a0 <== NOT EXECUTED 437f8: 6774 beqs 4386e <== NOT EXECUTED while (len--) { 437fa: 4a83 tstl %d3 <== NOT EXECUTED 437fc: 6734 beqs 43832 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 437fe: 2f0a movel %a2,%sp@- <== 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--) { 43800: 4282 clrl %d2 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 43802: 1034 2800 moveb %a4@(00000000,%d2:l),%d0 <== NOT EXECUTED 43806: 49c0 extbl %d0 <== NOT EXECUTED 43808: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4380a: 4e90 jsr %a0@ <== NOT EXECUTED 4380c: 5282 addql #1,%d2 <== 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--) { 4380e: 508f addql #8,%sp <== NOT EXECUTED 43810: b682 cmpl %d2,%d3 <== NOT EXECUTED 43812: 671e beqs 43832 <== NOT EXECUTED 43814: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 43818: eb88 lsll #5,%d0 <== NOT EXECUTED 4381a: 2073 0810 moveal %a3@(00000010,%d0:l),%a0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 4381e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 43820: 1034 2800 moveb %a4@(00000000,%d2:l),%d0 <== NOT EXECUTED 43824: 49c0 extbl %d0 <== NOT EXECUTED 43826: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43828: 4e90 jsr %a0@ <== NOT EXECUTED 4382a: 5282 addql #1,%d2 <== 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--) { 4382c: 508f addql #8,%sp <== NOT EXECUTED 4382e: b682 cmpl %d2,%d3 <== NOT EXECUTED 43830: 66e2 bnes 43814 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 43832: 4aaa 00e4 tstl %a2@(228) <== NOT EXECUTED 43836: 6628 bnes 43860 <== NOT EXECUTED 43838: 206a 00dc moveal %a2@(220),%a0 <== NOT EXECUTED 4383c: 4a88 tstl %a0 <== NOT EXECUTED 4383e: 6720 beqs 43860 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 43840: 2f2a 00e0 movel %a2@(224),%sp@- <== NOT EXECUTED tty->tty_rcvwakeup = 1; 43844: 4287 clrl %d7 <== 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); 43846: 486a 0030 pea %a2@(48) <== NOT EXECUTED 4384a: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 1; 4384c: 7201 moveq #1,%d1 <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 4384e: 2007 movel %d7,%d0 <== 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); tty->tty_rcvwakeup = 1; 43850: 2541 00e4 movel %d1,%a2@(228) <== NOT EXECUTED 43854: 508f addql #8,%sp <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 43856: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4385c: 4e5e unlk %fp <== NOT EXECUTED 4385e: 4e75 rts <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 43860: 4287 clrl %d7 <== NOT EXECUTED } 43862: 2007 movel %d7,%d0 <== NOT EXECUTED 43864: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4386a: 4e5e unlk %fp <== NOT EXECUTED 4386c: 4e75 rts <== 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, 4386e: 41ea 004a lea %a2@(74),%a0 <== NOT EXECUTED 43872: 2d48 fff8 movel %a0,%fp@(-8) <== 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); 43876: 41ea 0030 lea %a2@(48),%a0 <== NOT EXECUTED 4387a: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED 4387e: 4287 clrl %d7 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 43880: 5383 subql #1,%d3 <== 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); 43882: 4205 clrb %d5 <== 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); 43884: 3a7c 0700 moveaw #1792,%a5 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 43888: 70ff moveq #-1,%d0 <== NOT EXECUTED 4388a: b083 cmpl %d3,%d0 <== NOT EXECUTED 4388c: 6700 00e6 beqw 43974 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 43890: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43894: 1c14 moveb %a4@,%d6 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 43896: 0800 0009 btst #9,%d0 <== NOT EXECUTED 4389a: 671c beqs 438b8 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 4389c: 4280 clrl %d0 <== NOT EXECUTED 4389e: 102a 004a moveb %a2@(74),%d0 <== NOT EXECUTED 438a2: 1206 moveb %d6,%d1 <== NOT EXECUTED 438a4: 49c1 extbl %d1 <== NOT EXECUTED 438a6: b081 cmpl %d1,%d0 <== NOT EXECUTED 438a8: 6700 014a beqw 439f4 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 438ac: 4280 clrl %d0 <== NOT EXECUTED 438ae: 102a 0049 moveb %a2@(73),%d0 <== NOT EXECUTED 438b2: b081 cmpl %d1,%d0 <== NOT EXECUTED 438b4: 6700 00da beqw 43990 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 438b8: 4a05 tstb %d5 <== NOT EXECUTED 438ba: 6600 00e0 bnew 4399c <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 438be: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 438c2: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED 438c6: 5280 addql #1,%d0 <== NOT EXECUTED 438c8: 4c41 0004 remul %d1,%d4,%d0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 438cc: 200d movel %a5,%d0 <== NOT EXECUTED 438ce: 40c1 movew %sr,%d1 <== NOT EXECUTED 438d0: 8081 orl %d1,%d0 <== NOT EXECUTED 438d2: 46c0 movew %d0,%sr <== NOT EXECUTED 438d4: 2641 moveal %d1,%a3 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 438d6: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 438da: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED 438de: 242a 0064 movel %a2@(100),%d2 <== NOT EXECUTED 438e2: 9081 subl %d1,%d0 <== NOT EXECUTED 438e4: d084 addl %d4,%d0 <== NOT EXECUTED 438e6: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED 438ea: b2aa 00c0 cmpl %a2@(192),%d1 <== NOT EXECUTED 438ee: 633e blss 4392e <== NOT EXECUTED 438f0: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 438f4: 0800 0000 btst #0,%d0 <== NOT EXECUTED 438f8: 6634 bnes 4392e <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 438fa: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 438fe: 7201 moveq #1,%d1 <== NOT EXECUTED 43900: 8081 orl %d1,%d0 <== NOT EXECUTED 43902: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 43906: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 4390a: 0281 0000 0402 andil #1026,%d1 <== NOT EXECUTED 43910: 0c81 0000 0400 cmpil #1024,%d1 <== NOT EXECUTED 43916: 6700 012e beqw 43a46 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 4391a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4391e: 0280 0000 0104 andil #260,%d0 <== NOT EXECUTED 43924: 0c80 0000 0100 cmpil #256,%d0 <== NOT EXECUTED 4392a: 6700 0154 beqw 43a80 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 4392e: 200b movel %a3,%d0 <== NOT EXECUTED 43930: 46c0 movew %d0,%sr <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 43932: 202a 005c movel %a2@(92),%d0 <== NOT EXECUTED 43936: b880 cmpl %d0,%d4 <== NOT EXECUTED 43938: 6700 00e2 beqw 43a1c <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 4393c: 206a 0058 moveal %a2@(88),%a0 <== NOT EXECUTED 43940: 1186 4800 moveb %d6,%a0@(00000000,%d4:l) <== NOT EXECUTED tty->rawInBuf.Tail = newTail; 43944: 2544 0060 movel %d4,%a2@(96) <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 43948: 4aaa 00e4 tstl %a2@(228) <== NOT EXECUTED 4394c: 661a bnes 43968 <== NOT EXECUTED 4394e: 206a 00dc moveal %a2@(220),%a0 <== NOT EXECUTED 43952: 4a88 tstl %a0 <== NOT EXECUTED 43954: 6712 beqs 43968 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 43956: 2f2a 00e0 movel %a2@(224),%sp@- <== NOT EXECUTED 4395a: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 4395e: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 1; 43960: 7201 moveq #1,%d1 <== NOT EXECUTED 43962: 508f addql #8,%sp <== NOT EXECUTED 43964: 2541 00e4 movel %d1,%a2@(228) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43968: 528c addql #1,%a4 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 4396a: 5383 subql #1,%d3 <== NOT EXECUTED 4396c: 70ff moveq #-1,%d0 <== NOT EXECUTED 4396e: b083 cmpl %d3,%d0 <== NOT EXECUTED 43970: 6600 ff1e bnew 43890 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 43974: dfaa 0078 addl %d7,%a2@(120) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 43978: 2f2a 0068 movel %a2@(104),%sp@- <== NOT EXECUTED 4397c: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED return dropped; } 43982: 2007 movel %d7,%d0 <== NOT EXECUTED } } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); 43984: 588f addql #4,%sp <== NOT EXECUTED return dropped; } 43986: 4cee 3cfc ffd0 moveml %fp@(-48),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4398c: 4e5e unlk %fp <== NOT EXECUTED 4398e: 4e75 rts <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 43990: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43994: 72ef moveq #-17,%d1 <== NOT EXECUTED 43996: c081 andl %d1,%d0 <== NOT EXECUTED 43998: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 4399c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 439a0: 7230 moveq #48,%d1 <== NOT EXECUTED 439a2: c081 andl %d1,%d0 <== NOT EXECUTED 439a4: 123c 0020 moveb #32,%d1 <== NOT EXECUTED 439a8: b280 cmpl %d0,%d1 <== NOT EXECUTED 439aa: 6706 beqs 439b2 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 439ac: 7a01 moveq #1,%d5 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 439ae: 528c addql #1,%a4 <== NOT EXECUTED 439b0: 60b8 bras 4396a <== 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); 439b2: 200d movel %a5,%d0 <== NOT EXECUTED 439b4: 40c2 movew %sr,%d2 <== NOT EXECUTED 439b6: 8082 orl %d2,%d0 <== NOT EXECUTED 439b8: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 439ba: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 439be: 72df moveq #-33,%d1 <== NOT EXECUTED 439c0: c081 andl %d1,%d0 <== NOT EXECUTED 439c2: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 439c6: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 439ca: 6606 bnes 439d2 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 439cc: 46c2 movew %d2,%sr <== NOT EXECUTED 439ce: 7a01 moveq #1,%d5 <== NOT EXECUTED 439d0: 60dc bras 439ae <== 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, 439d2: 202a 0084 movel %a2@(132),%d0 <== NOT EXECUTED 439d6: 4878 0001 pea 1 <== NOT EXECUTED 439da: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 439de: 2f00 movel %d0,%sp@- <== NOT EXECUTED 439e0: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 439e4: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 439e8: 4e90 jsr %a0@ <== NOT EXECUTED 439ea: dffc 0000 000c addal #12,%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 439f0: 46c2 movew %d2,%sr <== NOT EXECUTED 439f2: 60da bras 439ce <== 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]) { 439f4: 4280 clrl %d0 <== NOT EXECUTED 439f6: 102a 0049 moveb %a2@(73),%d0 <== NOT EXECUTED 439fa: b081 cmpl %d1,%d0 <== NOT EXECUTED 439fc: 6726 beqs 43a24 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 439fe: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a02: 7210 moveq #16,%d1 <== NOT EXECUTED 43a04: 8081 orl %d1,%d0 <== NOT EXECUTED 43a06: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 43a0a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a0e: 7230 moveq #48,%d1 <== NOT EXECUTED 43a10: c081 andl %d1,%d0 <== NOT EXECUTED 43a12: 123c 0020 moveb #32,%d1 <== NOT EXECUTED 43a16: b280 cmpl %d0,%d1 <== NOT EXECUTED 43a18: 6692 bnes 439ac <== NOT EXECUTED 43a1a: 6096 bras 439b2 <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; 43a1c: 5287 addql #1,%d7 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 43a1e: 528c addql #1,%a4 <== NOT EXECUTED 43a20: 6000 ff48 braw 4396a <== 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; 43a24: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a28: 7210 moveq #16,%d1 <== NOT EXECUTED 43a2a: b380 eorl %d1,%d0 <== NOT EXECUTED 43a2c: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 43a30: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a34: 7230 moveq #48,%d1 <== NOT EXECUTED 43a36: c081 andl %d1,%d0 <== NOT EXECUTED 43a38: 123c 0020 moveb #32,%d1 <== NOT EXECUTED 43a3c: b280 cmpl %d0,%d1 <== NOT EXECUTED 43a3e: 6600 ff6c bnew 439ac <== NOT EXECUTED 43a42: 6000 ff6e braw 439b2 <== 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) || 43a46: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a4a: 0800 0005 btst #5,%d0 <== NOT EXECUTED 43a4e: 6608 bnes 43a58 <== NOT EXECUTED 43a50: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 43a54: 6600 fed8 bnew 4392e <== NOT EXECUTED (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, 43a58: 4878 0001 pea 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; 43a5c: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED (*tty->device.write)(tty->minor, 43a60: 2f2e fff8 movel %fp@(-8),%sp@- <== NOT EXECUTED 43a64: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 43a68: 2f2a 0010 movel %a2@(16),%sp@- <== 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; 43a6c: 7202 moveq #2,%d1 <== NOT EXECUTED 43a6e: 8081 orl %d1,%d0 <== NOT EXECUTED 43a70: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED (*tty->device.write)(tty->minor, 43a74: 4e90 jsr %a0@ <== NOT EXECUTED 43a76: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43a7c: 6000 feb0 braw 4392e <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 43a80: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43a84: 7204 moveq #4,%d1 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 43a86: 206a 00ac moveal %a2@(172),%a0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 43a8a: 8081 orl %d1,%d0 <== NOT EXECUTED 43a8c: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 43a90: 4a88 tstl %a0 <== NOT EXECUTED 43a92: 6700 fe9a beqw 4392e <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 43a96: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43a9a: 4e90 jsr %a0@ <== NOT EXECUTED 43a9c: 588f addql #4,%sp <== NOT EXECUTED 43a9e: 6000 fe8e braw 4392e <== NOT EXECUTED 000434f0 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 434f0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 434f4: 4ab9 0005 867c tstl 5867c <== NOT EXECUTED 434fa: 6704 beqs 43500 <== NOT EXECUTED RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 434fc: 4e5e unlk %fp <== NOT EXECUTED 434fe: 4e75 rts <== NOT EXECUTED /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( 43500: 4879 0005 867c pea 5867c <== NOT EXECUTED 43506: 42a7 clrl %sp@- <== NOT EXECUTED 43508: 4878 0054 pea 54 <== NOT EXECUTED 4350c: 4878 0001 pea 1 <== NOT EXECUTED 43510: 2f3c 5452 6d69 movel #1414688105,%sp@- <== NOT EXECUTED 43516: 4eb9 0004 5920 jsr 45920 <== NOT EXECUTED 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) 4351c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 43522: 4a80 tstl %d0 <== NOT EXECUTED 43524: 67d6 beqs 434fc <== NOT EXECUTED rtems_fatal_error_occurred (sc); 43526: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43528: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED ... 00044794 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 44794: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 44798: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED 4479c: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 447a0: 2054 moveal %a4@,%a0 <== NOT EXECUTED 447a2: 2468 0028 moveal %a0@(40),%a2 <== NOT EXECUTED 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); 447a6: 42a7 clrl %sp@- <== NOT EXECUTED rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 447a8: 266c 0008 moveal %a4@(8),%a3 <== NOT EXECUTED rtems_status_code sc; args->ioctl_return = 0; 447ac: 42ac 000c clrl %a4@(12) <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 447b0: 42a7 clrl %sp@- <== NOT EXECUTED 447b2: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 447b6: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 447bc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 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); 447c2: 2400 movel %d0,%d2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 447c4: 664c bnes 44812 <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 447c6: 202c 0004 movel %a4@(4),%d0 <== NOT EXECUTED 447ca: 7204 moveq #4,%d1 <== NOT EXECUTED 447cc: b280 cmpl %d0,%d1 <== NOT EXECUTED 447ce: 6772 beqs 44842 <== NOT EXECUTED 447d0: 6450 bccs 44822 <== NOT EXECUTED 447d2: 0c80 4004 667f cmpil #1074030207,%d0 <== NOT EXECUTED 447d8: 6700 02aa beqw 44a84 <== NOT EXECUTED 447dc: 6200 00da bhiw 448b8 <== NOT EXECUTED 447e0: 7605 moveq #5,%d3 <== NOT EXECUTED 447e2: b680 cmpl %d0,%d3 <== NOT EXECUTED 447e4: 6776 beqs 4485c <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 447e6: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 447ea: eb88 lsll #5,%d0 <== NOT EXECUTED 447ec: 0680 0005 7e18 addil #359960,%d0 <== NOT EXECUTED 447f2: 2240 moveal %d0,%a1 <== NOT EXECUTED 447f4: 2051 moveal %a1@,%a0 <== NOT EXECUTED 447f6: 4a88 tstl %a0 <== NOT EXECUTED 447f8: 6700 0316 beqw 44b10 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 447fc: 2f0c movel %a4,%sp@- <== NOT EXECUTED 447fe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44800: 4e90 jsr %a0@ <== NOT EXECUTED 44802: 508f addql #8,%sp <== NOT EXECUTED 44804: 2400 movel %d0,%d2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44806: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 4480a: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 44810: 588f addql #4,%sp <== NOT EXECUTED return sc; } 44812: 2002 movel %d2,%d0 <== NOT EXECUTED *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; 44814: 2942 000c movel %d2,%a4@(12) <== NOT EXECUTED return sc; } 44818: 4cee 1c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a4 <== NOT EXECUTED 4481e: 4e5e unlk %fp <== NOT EXECUTED 44820: 4e75 rts <== 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) { 44822: 7602 moveq #2,%d3 <== NOT EXECUTED 44824: b680 cmpl %d0,%d3 <== NOT EXECUTED 44826: 6700 010a beqw 44932 <== NOT EXECUTED 4482a: 644a bccs 44876 <== NOT EXECUTED if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 4482c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4482e: 4eba fb58 jsr %pc@(44388 ) <== NOT EXECUTED 44832: 588f addql #4,%sp <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44834: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44838: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 4483e: 588f addql #4,%sp <== NOT EXECUTED 44840: 60d0 bras 44812 <== NOT EXECUTED case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 44842: 2013 movel %a3@,%d0 <== NOT EXECUTED 44844: 256b 0004 00e0 movel %a3@(4),%a2@(224) <== NOT EXECUTED 4484a: 2540 00dc movel %d0,%a2@(220) <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 4484e: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44852: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 44858: 588f addql #4,%sp <== NOT EXECUTED 4485a: 60b6 bras 44812 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 4485c: 2013 movel %a3@,%d0 <== NOT EXECUTED 4485e: 256b 0004 00d8 movel %a3@(4),%a2@(216) <== NOT EXECUTED 44864: 2540 00d4 movel %d0,%a2@(212) <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44868: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 4486c: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 44872: 588f addql #4,%sp <== NOT EXECUTED 44874: 609c bras 44812 <== 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) { 44876: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 4487a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4487c: 6600 ff68 bnew 447e6 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 44880: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED 44884: 20ea 0030 movel %a2@(48),%a0@+ <== NOT EXECUTED 44888: 20ea 0034 movel %a2@(52),%a0@+ <== NOT EXECUTED 4488c: 20ea 0038 movel %a2@(56),%a0@+ <== NOT EXECUTED 44890: 20ea 003c movel %a2@(60),%a0@+ <== NOT EXECUTED 44894: 20ea 0040 movel %a2@(64),%a0@+ <== NOT EXECUTED 44898: 20ea 0044 movel %a2@(68),%a0@+ <== NOT EXECUTED 4489c: 20ea 0048 movel %a2@(72),%a0@+ <== NOT EXECUTED 448a0: 20ea 004c movel %a2@(76),%a0@+ <== NOT EXECUTED 448a4: 20aa 0050 movel %a2@(80),%a0@ <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 448a8: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 448ac: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 448b2: 588f addql #4,%sp <== NOT EXECUTED 448b4: 6000 ff5c braw 44812 <== 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) { 448b8: 0c80 4004 741a cmpil #1074033690,%d0 <== NOT EXECUTED 448be: 675a beqs 4491a <== NOT EXECUTED 448c0: 0c80 8004 741b cmpil #-2147191781,%d0 <== NOT EXECUTED 448c6: 6600 ff1e bnew 447e6 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 448ca: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 448ce: 47f9 0005 7e00 lea 57e00 ,%a3 <== NOT EXECUTED 448d4: e788 lsll #3,%d0 <== NOT EXECUTED 448d6: 2073 0c04 moveal %a3@(00000004,%d0:l:4),%a0 <== NOT EXECUTED 448da: 4a88 tstl %a0 <== NOT EXECUTED 448dc: 6708 beqs 448e6 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 448de: 2f0a movel %a2,%sp@- <== NOT EXECUTED 448e0: 4e90 jsr %a0@ <== NOT EXECUTED 448e2: 588f addql #4,%sp <== NOT EXECUTED 448e4: 2400 movel %d0,%d2 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 448e6: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED 448ea: 2550 00cc movel %a0@,%a2@(204) <== 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) { 448ee: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 448f2: eb88 lsll #5,%d0 <== NOT EXECUTED 448f4: 2073 0800 moveal %a3@(00000000,%d0:l),%a0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 448f8: 42aa 00d0 clrl %a2@(208) <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 448fc: 4a88 tstl %a0 <== NOT EXECUTED 448fe: 6700 ff06 beqw 44806 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 44902: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44904: 4e90 jsr %a0@ <== NOT EXECUTED 44906: 588f addql #4,%sp <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44908: 2f2a 0018 movel %a2@(24),%sp@- <== 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) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); 4490c: 2400 movel %d0,%d2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 4490e: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 44914: 588f addql #4,%sp <== NOT EXECUTED 44916: 6000 fefa braw 44812 <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 4491a: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED 4491e: 20aa 00cc movel %a2@(204),%a0@ <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44922: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44926: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 4492c: 588f addql #4,%sp <== NOT EXECUTED 4492e: 6000 fee2 braw 44812 <== 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; 44932: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED 44936: 47ea 0030 lea %a2@(48),%a3 <== NOT EXECUTED 4493a: 2698 movel %a0@+,%a3@ <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 4493c: 202a 00b8 movel %a2@(184),%d0 <== 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; 44940: 2558 0034 movel %a0@+,%a2@(52) <== NOT EXECUTED 44944: 2558 0038 movel %a0@+,%a2@(56) <== NOT EXECUTED 44948: 2558 003c movel %a0@+,%a2@(60) <== NOT EXECUTED 4494c: 2558 0040 movel %a0@+,%a2@(64) <== NOT EXECUTED 44950: 2558 0044 movel %a0@+,%a2@(68) <== NOT EXECUTED 44954: 2558 0048 movel %a0@+,%a2@(72) <== NOT EXECUTED 44958: 2558 004c movel %a0@+,%a2@(76) <== NOT EXECUTED 4495c: 2550 0050 movel %a0@,%a2@(80) <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 44960: 0800 0009 btst #9,%d0 <== NOT EXECUTED 44964: 6746 beqs 449ac <== NOT EXECUTED 44966: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 4496a: 0280 0000 0400 andil #1024,%d0 <== NOT EXECUTED 44970: 663a bnes 449ac <== NOT EXECUTED !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 44972: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44976: 0280 ffff fdef andil #-529,%d0 <== NOT EXECUTED 4497c: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 44980: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 44984: 0801 0005 btst #5,%d1 <== NOT EXECUTED 44988: 6722 beqs 449ac <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 4498a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 44990: 40c3 movew %sr,%d3 <== NOT EXECUTED 44992: 8083 orl %d3,%d0 <== NOT EXECUTED 44994: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 44996: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4499a: 72df moveq #-33,%d1 <== NOT EXECUTED 4499c: c081 andl %d1,%d0 <== NOT EXECUTED 4499e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 449a2: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 449a6: 6600 0196 bnew 44b3e <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 449aa: 46c3 movew %d3,%sr <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 449ac: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 449b0: 0800 000a btst #10,%d0 <== NOT EXECUTED 449b4: 6724 beqs 449da <== NOT EXECUTED 449b6: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 449ba: 0280 0000 1000 andil #4096,%d0 <== NOT EXECUTED 449c0: 6618 bnes 449da <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 449c2: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 449c6: 0880 000a bclr #10,%d0 <== NOT EXECUTED 449ca: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 449ce: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 449d2: 76fd moveq #-3,%d3 <== NOT EXECUTED 449d4: c283 andl %d3,%d1 <== NOT EXECUTED 449d6: 2541 00b8 movel %d1,%a2@(184) <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 449da: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 449de: 0800 0008 btst #8,%d0 <== NOT EXECUTED 449e2: 6738 beqs 44a1c <== NOT EXECUTED 449e4: 4aaa 0038 tstl %a2@(56) <== NOT EXECUTED 449e8: 6d00 0138 bltw 44b22 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 449ec: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 449f0: 0880 0008 bclr #8,%d0 <== NOT EXECUTED 449f4: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 449f8: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 449fc: 44c1 movew %d1,%ccr <== NOT EXECUTED 449fe: 6610 bnes 44a10 <== NOT EXECUTED 44a00: 206a 00b0 moveal %a2@(176),%a0 <== NOT EXECUTED 44a04: 4a88 tstl %a0 <== NOT EXECUTED 44a06: 6708 beqs 44a10 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 44a08: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44a0c: 4e90 jsr %a0@ <== NOT EXECUTED 44a0e: 588f addql #4,%sp <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 44a10: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44a14: 72fb moveq #-5,%d1 <== NOT EXECUTED 44a16: c081 andl %d1,%d0 <== NOT EXECUTED 44a18: 2540 00b8 movel %d0,%a2@(184) <== 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) { 44a1c: 4aaa 0038 tstl %a2@(56) <== NOT EXECUTED 44a20: 6d00 0100 bltw 44b22 <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 44a24: 222a 0030 movel %a2@(48),%d1 <== NOT EXECUTED 44a28: 0801 000c btst #12,%d1 <== NOT EXECUTED 44a2c: 670c beqs 44a3a <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 44a2e: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44a32: 08c0 000a bset #10,%d0 <== NOT EXECUTED 44a36: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 44a3a: 0801 000a btst #10,%d1 <== NOT EXECUTED 44a3e: 670c beqs 44a4c <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 44a40: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44a44: 08c0 0009 bset #9,%d0 <== NOT EXECUTED 44a48: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED 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) { 44a4c: 7002 moveq #2,%d0 <== NOT EXECUTED 44a4e: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 44a52: 675c beqs 44ab0 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 44a54: 42aa 006c clrl %a2@(108) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 44a58: 42aa 0070 clrl %a2@(112) <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 44a5c: 42aa 0074 clrl %a2@(116) <== NOT EXECUTED else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 44a60: 206a 00a8 moveal %a2@(168),%a0 <== NOT EXECUTED 44a64: 4a88 tstl %a0 <== NOT EXECUTED 44a66: 6700 fd9e beqw 44806 <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 44a6a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 44a6c: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44a70: 4e90 jsr %a0@ <== NOT EXECUTED 44a72: 508f addql #8,%sp <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 44a74: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44a78: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 44a7e: 588f addql #4,%sp <== NOT EXECUTED 44a80: 6000 fd90 braw 44812 <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 44a84: 222a 0060 movel %a2@(96),%d1 <== NOT EXECUTED 44a88: 202a 005c movel %a2@(92),%d0 <== NOT EXECUTED 44a8c: 9280 subl %d0,%d1 <== NOT EXECUTED if ( rawnc < 0 ) 44a8e: 6b68 bmis 44af8 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 44a90: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 44a94: 90aa 0024 subl %a2@(36),%d0 <== NOT EXECUTED 44a98: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED 44a9c: d081 addl %d1,%d0 <== NOT EXECUTED 44a9e: 2080 movel %d0,%a0@ <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 44aa0: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44aa4: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; 44aaa: 588f addql #4,%sp <== NOT EXECUTED 44aac: 6000 fd64 braw 44812 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); 44ab0: 486e fffc pea %fp@(-4) <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 44ab4: 760a moveq #10,%d3 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); 44ab6: 4878 0003 pea 3 <== NOT EXECUTED 44aba: 4eb9 0004 5274 jsr 45274 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 44ac0: 4280 clrl %d0 <== NOT EXECUTED 44ac2: 102a 0046 moveb %a2@(70),%d0 <== NOT EXECUTED 44ac6: 41ee fffc lea %fp@(-4),%a0 <== NOT EXECUTED 44aca: 4c10 0800 mulsl %a0@,%d0 <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 44ace: 508f addql #8,%sp <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 44ad0: 4c43 0000 remul %d3,%d0,%d0 <== NOT EXECUTED 44ad4: 2540 0054 movel %d0,%a2@(84) <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 44ad8: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 44adc: 6700 0084 beqw 44b62 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 44ae0: 42aa 006c clrl %a2@(108) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 44ae4: 2540 0070 movel %d0,%a2@(112) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) 44ae8: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 44aec: 6600 ff6e bnew 44a5c <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 44af0: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 44af4: 6000 ff6a braw 44a60 <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 44af8: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED 44afc: d280 addl %d0,%d1 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 44afe: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 44b02: 90aa 0024 subl %a2@(36),%d0 <== NOT EXECUTED 44b06: 206c 0008 moveal %a4@(8),%a0 <== NOT EXECUTED 44b0a: d081 addl %d1,%d0 <== NOT EXECUTED 44b0c: 2080 movel %d0,%a0@ <== NOT EXECUTED 44b0e: 6090 bras 44aa0 <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 44b10: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44b14: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 44b1a: 740a moveq #10,%d2 <== NOT EXECUTED *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; 44b1c: 588f addql #4,%sp <== NOT EXECUTED 44b1e: 6000 fcf2 braw 44812 <== 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; 44b22: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 44b26: 222a 0030 movel %a2@(48),%d1 <== 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; 44b2a: 08c0 0008 bset #8,%d0 <== NOT EXECUTED 44b2e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 44b32: 0801 000c btst #12,%d1 <== NOT EXECUTED 44b36: 6700 ff02 beqw 44a3a <== NOT EXECUTED 44b3a: 6000 fef2 braw 44a2e <== 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, 44b3e: 202a 0084 movel %a2@(132),%d0 <== NOT EXECUTED 44b42: 4878 0001 pea 1 <== NOT EXECUTED 44b46: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 44b4a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44b4c: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44b50: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 44b54: 4e90 jsr %a0@ <== NOT EXECUTED 44b56: dffc 0000 000c addal #12,%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 44b5c: 46c3 movew %d3,%sr <== NOT EXECUTED 44b5e: 6000 fe4c braw 449ac <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 44b62: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 44b66: 6600 feec bnew 44a54 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 44b6a: 7001 moveq #1,%d0 <== NOT EXECUTED 44b6c: 2540 006c movel %d0,%a2@(108) <== NOT EXECUTED 44b70: 6000 feee braw 44a60 <== NOT EXECUTED 00044d10 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44d10: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED 44d14: 48d7 3c7c moveml %d2-%d6/%a2-%a5,%sp@ <== NOT EXECUTED struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44d18: 42a7 clrl %sp@- <== NOT EXECUTED rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44d1a: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44d1e: 42a7 clrl %sp@- <== NOT EXECUTED rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 44d20: 2c2e 000c movel %fp@(12),%d6 <== NOT EXECUTED struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44d24: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 44d2a: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 44d30: dffc 0000 000c addal #12,%sp <== NOT EXECUTED struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 44d36: 2a00 movel %d0,%d5 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 44d38: 6600 027c bnew 44fb6 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 44d3c: 2479 0005 8684 moveal 58684 ,%a2 <== NOT EXECUTED 44d42: 4a8a tstl %a2 <== NOT EXECUTED 44d44: 670e beqs 44d54 <== NOT EXECUTED if ((tty->major == major) && (tty->minor == minor)) 44d46: b8aa 000c cmpl %a2@(12),%d4 <== NOT EXECUTED 44d4a: 6700 0276 beqw 44fc2 <== NOT EXECUTED */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 44d4e: 2452 moveal %a2@,%a2 <== NOT EXECUTED 44d50: 4a8a tstl %a2 <== NOT EXECUTED 44d52: 66f2 bnes 44d46 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 44d54: 4878 00e8 pea e8 <== NOT EXECUTED 44d58: 4878 0001 pea 1 <== NOT EXECUTED 44d5c: 4eb9 0004 a2d4 jsr 4a2d4 <== NOT EXECUTED if (tty == NULL) { 44d62: 508f addql #8,%sp <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 44d64: 2640 moveal %d0,%a3 <== NOT EXECUTED 44d66: 2440 moveal %d0,%a2 <== NOT EXECUTED if (tty == NULL) { 44d68: 4a80 tstl %d0 <== NOT EXECUTED 44d6a: 6700 0370 beqw 450dc <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 44d6e: 41f9 0005 70a8 lea 570a8 ,%a0 <== NOT EXECUTED 44d74: 2750 0064 movel %a0@,%a3@(100) <== NOT EXECUTED tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44d78: 202b 0064 movel %a3@(100),%d0 <== NOT EXECUTED 44d7c: 49f9 0004 a97c lea 4a97c ,%a4 <== NOT EXECUTED 44d82: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44d84: 4e94 jsr %a4@ <== NOT EXECUTED if (tty->rawInBuf.theBuf == NULL) { 44d86: 588f addql #4,%sp <== NOT EXECUTED } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 44d88: 2740 0058 movel %d0,%a3@(88) <== NOT EXECUTED if (tty->rawInBuf.theBuf == NULL) { 44d8c: 6700 0280 beqw 4500e <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 44d90: 43f9 0005 70ac lea 570ac ,%a1 <== NOT EXECUTED 44d96: 2751 0088 movel %a1@,%a3@(136) <== NOT EXECUTED tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 44d9a: 202b 0088 movel %a3@(136),%d0 <== NOT EXECUTED 44d9e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44da0: 4e94 jsr %a4@ <== NOT EXECUTED if (tty->rawOutBuf.theBuf == NULL) { 44da2: 588f addql #4,%sp <== NOT EXECUTED } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 44da4: 2740 007c movel %d0,%a3@(124) <== NOT EXECUTED if (tty->rawOutBuf.theBuf == NULL) { 44da8: 6700 034e beqw 450f8 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 44dac: 2f39 0005 70a4 movel 570a4 ,%sp@- <== NOT EXECUTED 44db2: 4e94 jsr %a4@ <== NOT EXECUTED if (tty->cbuf == NULL) { 44db4: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 44db6: 2740 001c movel %d0,%a3@(28) <== NOT EXECUTED if (tty->cbuf == NULL) { 44dba: 6700 036c beqw 45128 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 44dbe: 2079 0005 8684 moveal 58684 ,%a0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 44dc4: 42ab 00d4 clrl %a3@(212) <== NOT EXECUTED tty->tty_snd.sw_arg = NULL; 44dc8: 42ab 00d8 clrl %a3@(216) <== NOT EXECUTED tty->tty_rcv.sw_pfn = NULL; 44dcc: 42ab 00dc clrl %a3@(220) <== NOT EXECUTED tty->tty_rcv.sw_arg = NULL; 44dd0: 42ab 00e0 clrl %a3@(224) <== NOT EXECUTED tty->tty_rcvwakeup = 0; 44dd4: 42ab 00e4 clrl %a3@(228) <== NOT EXECUTED /* * link tty */ tty->forw = rtems_termios_ttyHead; 44dd8: 2688 movel %a0,%a3@ <== NOT EXECUTED tty->back = NULL; 44dda: 42ab 0004 clrl %a3@(4) <== NOT EXECUTED if (rtems_termios_ttyHead != NULL) 44dde: 4a88 tstl %a0 <== NOT EXECUTED 44de0: 6704 beqs 44de6 <== NOT EXECUTED rtems_termios_ttyHead->back = tty; 44de2: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED rtems_termios_ttyHead = tty; 44de6: 23cb 0005 8684 movel %a3,58684 <== NOT EXECUTED if (rtems_termios_ttyTail == NULL) 44dec: 4ab9 0005 8680 tstl 58680 <== NOT EXECUTED 44df2: 6700 02de beqw 450d2 <== NOT EXECUTED tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 44df6: 486b 0014 pea %a3@(20) <== NOT EXECUTED 44dfa: 1039 0005 70b0 moveb 570b0 ,%d0 <== NOT EXECUTED 44e00: 49c0 extbl %d0 <== NOT EXECUTED 44e02: 42a7 clrl %sp@- <== NOT EXECUTED 44e04: 0080 5452 6900 oril #1414686976,%d0 <== NOT EXECUTED 44e0a: 4878 0054 pea 54 <== NOT EXECUTED 44e0e: 4bf9 0004 5920 lea 45920 ,%a5 <== NOT EXECUTED 44e14: 4878 0001 pea 1 <== NOT EXECUTED 44e18: 2f00 movel %d0,%sp@- <== NOT EXECUTED rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 44e1a: 2746 0010 movel %d6,%a3@(16) <== NOT EXECUTED tty->major = major; 44e1e: 2744 000c movel %d4,%a3@(12) <== NOT EXECUTED /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 44e22: 4e95 jsr %a5@ <== NOT EXECUTED 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) 44e24: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 44e2a: 4a80 tstl %d0 <== NOT EXECUTED 44e2c: 6600 01d8 bnew 45006 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 44e30: 486b 0018 pea %a3@(24) <== NOT EXECUTED 44e34: 1039 0005 70b0 moveb 570b0 ,%d0 <== NOT EXECUTED 44e3a: 49c0 extbl %d0 <== NOT EXECUTED 44e3c: 42a7 clrl %sp@- <== NOT EXECUTED 44e3e: 0080 5452 6f00 oril #1414688512,%d0 <== NOT EXECUTED 44e44: 4878 0054 pea 54 <== NOT EXECUTED 44e48: 4878 0001 pea 1 <== NOT EXECUTED 44e4c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44e4e: 4e95 jsr %a5@ <== NOT EXECUTED 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) 44e50: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 44e56: 4a80 tstl %d0 <== NOT EXECUTED 44e58: 6600 01ac bnew 45006 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 44e5c: 486b 008c pea %a3@(140) <== NOT EXECUTED 44e60: 1039 0005 70b0 moveb 570b0 ,%d0 <== NOT EXECUTED 44e66: 49c0 extbl %d0 <== NOT EXECUTED 44e68: 42a7 clrl %sp@- <== NOT EXECUTED 44e6a: 0080 5452 7800 oril #1414690816,%d0 <== NOT EXECUTED 44e70: 4878 0020 pea 20 <== NOT EXECUTED 44e74: 42a7 clrl %sp@- <== NOT EXECUTED 44e76: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44e78: 4e95 jsr %a5@ <== NOT EXECUTED rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 44e7a: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 44e80: 4a80 tstl %d0 <== NOT EXECUTED 44e82: 6600 0182 bnew 45006 <== NOT EXECUTED tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 44e86: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED 44e8a: 41eb 0098 lea %a3@(152),%a0 <== NOT EXECUTED 44e8e: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44e90: 7002 moveq #2,%d0 <== NOT EXECUTED tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 44e92: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 44e94: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 44e96: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 44e98: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 44e9a: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 44e9c: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 44e9e: 2091 movel %a1@,%a0@ <== NOT EXECUTED 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; 44ea0: 42ab 0094 clrl %a3@(148) <== NOT EXECUTED tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44ea4: b0ab 00b4 cmpl %a3@(180),%d0 <== NOT EXECUTED 44ea8: 6700 01ba beqw 45064 <== NOT EXECUTED &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 44eac: 4aab 00a0 tstl %a3@(160) <== NOT EXECUTED 44eb0: 6700 0180 beqw 45032 <== NOT EXECUTED 44eb4: 7202 moveq #2,%d1 <== NOT EXECUTED 44eb6: b2ab 00b4 cmpl %a3@(180),%d1 <== NOT EXECUTED 44eba: 6700 0176 beqw 45032 <== NOT EXECUTED 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; 44ebe: 42ab 00b8 clrl %a3@(184) <== NOT EXECUTED /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 44ec2: 242b 0064 movel %a3@(100),%d2 <== NOT EXECUTED tty->highwater = tty->rawInBuf.Size * 3/4; 44ec6: 206b 0064 moveal %a3@(100),%a0 <== NOT EXECUTED /* * Bump name characer */ if (c++ == 'z') 44eca: 1639 0005 70b0 moveb 570b0 ,%d3 <== NOT EXECUTED 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; 44ed0: 41f0 8a00 lea %a0@(00000000,%a0:l:2),%a0 <== NOT EXECUTED 44ed4: 2008 movel %a0,%d0 <== NOT EXECUTED /* * Bump name characer */ if (c++ == 'z') 44ed6: 49c3 extbl %d3 <== NOT EXECUTED 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; 44ed8: e488 lsrl #2,%d0 <== NOT EXECUTED /* * Bump name characer */ if (c++ == 'z') 44eda: 2203 movel %d3,%d1 <== NOT EXECUTED 44edc: 5281 addql #1,%d1 <== NOT EXECUTED 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; 44ede: 2740 00c0 movel %d0,%a3@(192) <== NOT EXECUTED /* * Bump name characer */ if (c++ == 'z') 44ee2: 13c1 0005 70b0 moveb %d1,570b0 <== NOT EXECUTED tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 44ee8: 7003 moveq #3,%d0 <== NOT EXECUTED tty->termios.c_cc[VQUIT] = '\034'; 44eea: 721c moveq #28,%d1 <== NOT EXECUTED tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 44eec: 1740 0041 moveb %d0,%a3@(65) <== NOT EXECUTED tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; 44ef0: 707f moveq #127,%d0 <== NOT EXECUTED tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; 44ef2: 1741 0042 moveb %d1,%a3@(66) <== NOT EXECUTED /* * 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; 44ef6: 223c 0000 08bd movel #2237,%d1 <== NOT EXECUTED tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; 44efc: 1740 0043 moveb %d0,%a3@(67) <== NOT EXECUTED tty->termios.c_cc[VKILL] = '\025'; 44f00: 7015 moveq #21,%d0 <== NOT EXECUTED /* * 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; 44f02: 2741 0038 movel %d1,%a3@(56) <== NOT EXECUTED tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 44f06: 323c 823b movew #-32197,%d1 <== NOT EXECUTED tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; 44f0a: 1740 0044 moveb %d0,%a3@(68) <== NOT EXECUTED tty->termios.c_cc[VEOF] = '\004'; 44f0e: 7004 moveq #4,%d0 <== NOT EXECUTED * 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; 44f10: 2741 003c movel %d1,%a3@(60) <== NOT EXECUTED 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'; 44f14: 4201 clrb %d1 <== NOT EXECUTED 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'; 44f16: 1740 0045 moveb %d0,%a3@(69) <== NOT EXECUTED tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 44f1a: 7011 moveq #17,%d0 <== NOT EXECUTED 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'; 44f1c: 1741 004c moveb %d1,%a3@(76) <== NOT EXECUTED tty->termios.c_cc[VEOL2] = '\000'; 44f20: 1741 0051 moveb %d1,%a3@(81) <== NOT EXECUTED tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; 44f24: 7213 moveq #19,%d1 <== NOT EXECUTED tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 44f26: 1740 0049 moveb %d0,%a3@(73) <== NOT EXECUTED tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; 44f2a: 701a moveq #26,%d0 <== NOT EXECUTED tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; 44f2c: 1741 004a moveb %d1,%a3@(74) <== NOT EXECUTED tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 44f30: 7212 moveq #18,%d1 <== NOT EXECUTED tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; 44f32: 1740 004b moveb %d0,%a3@(75) <== NOT EXECUTED tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; 44f36: 700f moveq #15,%d0 <== NOT EXECUTED tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 44f38: 1741 004d moveb %d1,%a3@(77) <== NOT EXECUTED tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 44f3c: 7217 moveq #23,%d1 <== NOT EXECUTED tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; 44f3e: 1740 004e moveb %d0,%a3@(78) <== NOT EXECUTED /* 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; 44f42: e28a lsrl #1,%d2 <== NOT EXECUTED } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 44f44: 307c 2502 moveaw #9474,%a0 <== NOT EXECUTED tty->termios.c_oflag = OPOST | ONLCR | XTABS; 44f48: 327c 1805 moveaw #6149,%a1 <== NOT EXECUTED tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 44f4c: 1741 004f moveb %d1,%a3@(79) <== NOT EXECUTED tty->termios.c_cc[VLNEXT] = '\026'; 44f50: 7016 moveq #22,%d0 <== NOT EXECUTED /* 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; 44f52: 2742 00bc movel %d2,%a3@(188) <== NOT EXECUTED 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'; 44f56: 1740 0050 moveb %d0,%a3@(80) <== NOT EXECUTED } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 44f5a: 2748 0030 movel %a0,%a3@(48) <== NOT EXECUTED tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44f5e: 727a moveq #122,%d1 <== NOT EXECUTED /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 44f60: 2749 0034 movel %a1,%a3@(52) <== NOT EXECUTED tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 44f64: b283 cmpl %d3,%d1 <== NOT EXECUTED 44f66: 6608 bnes 44f70 <== NOT EXECUTED c = 'a'; 44f68: 7061 moveq #97,%d0 <== NOT EXECUTED 44f6a: 13c0 0005 70b0 moveb %d0,570b0 <== NOT EXECUTED } args->iop->data1 = tty; 44f70: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED if (!tty->refcount++) { 44f74: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 44f78: 2051 moveal %a1@,%a0 <== NOT EXECUTED if (!tty->refcount++) { 44f7a: 2200 movel %d0,%d1 <== NOT EXECUTED 44f7c: 5281 addql #1,%d1 <== NOT EXECUTED 44f7e: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 44f82: 214a 0028 movel %a2,%a0@(40) <== NOT EXECUTED if (!tty->refcount++) { 44f86: 4a80 tstl %d0 <== NOT EXECUTED 44f88: 661e bnes 44fa8 <== NOT EXECUTED if (tty->device.firstOpen) 44f8a: 206a 0098 moveal %a2@(152),%a0 <== NOT EXECUTED 44f8e: 4a88 tstl %a0 <== NOT EXECUTED 44f90: 670e beqs 44fa0 <== NOT EXECUTED (*tty->device.firstOpen)(major, minor, arg); 44f92: 2f09 movel %a1,%sp@- <== NOT EXECUTED 44f94: 2f06 movel %d6,%sp@- <== NOT EXECUTED 44f96: 2f04 movel %d4,%sp@- <== NOT EXECUTED 44f98: 4e90 jsr %a0@ <== NOT EXECUTED 44f9a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 44fa0: 7002 moveq #2,%d0 <== NOT EXECUTED 44fa2: b0aa 00b4 cmpl %a2@(180),%d0 <== NOT EXECUTED 44fa6: 672c beqs 44fd4 <== NOT EXECUTED (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 44fa8: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 44fae: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 44fb4: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 44fb6: 2005 movel %d5,%d0 <== NOT EXECUTED 44fb8: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 44fbe: 4e5e unlk %fp <== NOT EXECUTED 44fc0: 4e75 rts <== NOT EXECUTED sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { if ((tty->major == major) && (tty->minor == minor)) 44fc2: bcaa 0010 cmpl %a2@(16),%d6 <== NOT EXECUTED 44fc6: 67a8 beqs 44f70 <== NOT EXECUTED */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 44fc8: 2452 moveal %a2@,%a2 <== NOT EXECUTED 44fca: 4a8a tstl %a2 <== NOT EXECUTED 44fcc: 6600 fd78 bnew 44d46 <== NOT EXECUTED 44fd0: 6000 fd82 braw 44d54 <== NOT EXECUTED (*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, 44fd4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44fd6: 47f9 0004 60a4 lea 460a4 ,%a3 <== NOT EXECUTED 44fdc: 487a 0206 pea %pc@(451e4 ) <== NOT EXECUTED 44fe0: 2f2a 00c4 movel %a2@(196),%sp@- <== NOT EXECUTED 44fe4: 4e93 jsr %a3@ <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 44fe6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 44fec: 4a80 tstl %d0 <== NOT EXECUTED 44fee: 6616 bnes 45006 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 44ff0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44ff2: 487a 016a pea %pc@(4515e ) <== NOT EXECUTED 44ff6: 2f2a 00c8 movel %a2@(200),%sp@- <== NOT EXECUTED 44ffa: 4e93 jsr %a3@ <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 44ffc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 45002: 4a80 tstl %d0 <== NOT EXECUTED 45004: 67a2 beqs 44fa8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 45006: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45008: 4eb9 0004 6388 jsr 46388 <== 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); 4500e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 45010: 4eb9 0004 a3d0 jsr 4a3d0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 45016: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 4501c: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 45022: 7a1a moveq #26,%d5 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 45024: 2005 movel %d5,%d0 <== NOT EXECUTED */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 45026: 508f addql #8,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 45028: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 4502e: 4e5e unlk %fp <== NOT EXECUTED 45030: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 45032: 486b 0068 pea %a3@(104) <== NOT EXECUTED 45036: 1039 0005 70b0 moveb 570b0 ,%d0 <== NOT EXECUTED 4503c: 49c0 extbl %d0 <== NOT EXECUTED 4503e: 42a7 clrl %sp@- <== NOT EXECUTED 45040: 0080 5452 7200 oril #1414689280,%d0 <== NOT EXECUTED 45046: 4878 0024 pea 24 <== NOT EXECUTED 4504a: 42a7 clrl %sp@- <== NOT EXECUTED 4504c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4504e: 4e95 jsr %a5@ <== 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) 45050: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 45056: 4a80 tstl %d0 <== NOT EXECUTED 45058: 6700 fe64 beqw 44ebe <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 4505c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4505e: 4eb9 0004 6388 jsr 46388 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 45064: 486b 00c8 pea %a3@(200) <== NOT EXECUTED 45068: 1039 0005 70b0 moveb 570b0 ,%d0 <== NOT EXECUTED 4506e: 49c0 extbl %d0 <== NOT EXECUTED 45070: 42a7 clrl %sp@- <== NOT EXECUTED 45072: 0080 5478 5400 oril #1417171968,%d0 <== NOT EXECUTED 45078: 4878 0500 pea 500 <== NOT EXECUTED 4507c: 49f9 0004 5dd0 lea 45dd0 ,%a4 <== NOT EXECUTED 45082: 4878 0400 pea 400 <== NOT EXECUTED 45086: 4878 000a pea a <== NOT EXECUTED 4508a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4508c: 4e94 jsr %a4@ <== 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) 4508e: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 45094: 4a80 tstl %d0 <== NOT EXECUTED 45096: 6600 ff6e bnew 45006 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 4509a: 486b 00c4 pea %a3@(196) <== NOT EXECUTED 4509e: 1039 0005 70b0 moveb 570b0 ,%d0 <== NOT EXECUTED 450a4: 49c0 extbl %d0 <== NOT EXECUTED 450a6: 42a7 clrl %sp@- <== NOT EXECUTED 450a8: 0080 5278 5400 oril #1383617536,%d0 <== NOT EXECUTED 450ae: 4878 0500 pea 500 <== NOT EXECUTED 450b2: 4878 0400 pea 400 <== NOT EXECUTED 450b6: 4878 0009 pea 9 <== NOT EXECUTED 450ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED 450bc: 4e94 jsr %a4@ <== 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) 450be: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 450c4: 4a80 tstl %d0 <== NOT EXECUTED 450c6: 6700 fde4 beqw 44eac <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 450ca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 450cc: 4eb9 0004 6388 jsr 46388 <== 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; 450d2: 23cb 0005 8680 movel %a3,58680 <== NOT EXECUTED 450d8: 6000 fd1c braw 44df6 <== NOT EXECUTED /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); if (tty == NULL) { rtems_semaphore_release (rtems_termios_ttyMutex); 450dc: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 450e2: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 450e8: 7a1a moveq #26,%d5 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 450ea: 2005 movel %d5,%d0 <== NOT EXECUTED /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); if (tty == NULL) { rtems_semaphore_release (rtems_termios_ttyMutex); 450ec: 588f addql #4,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 450ee: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 450f4: 4e5e unlk %fp <== NOT EXECUTED 450f6: 4e75 rts <== 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)); 450f8: 2f2b 0058 movel %a3@(88),%sp@- <== NOT EXECUTED 450fc: 45f9 0004 a3d0 lea 4a3d0 ,%a2 <== NOT EXECUTED 45102: 4e92 jsr %a2@ <== NOT EXECUTED free(tty); 45104: 2f0b movel %a3,%sp@- <== NOT EXECUTED 45106: 4e92 jsr %a2@ <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 45108: 7a1a moveq #26,%d5 <== NOT EXECUTED 4510a: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 45110: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 45116: 2005 movel %d5,%d0 <== NOT EXECUTED tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 45118: dffc 0000 000c addal #12,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 4511e: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 45124: 4e5e unlk %fp <== NOT EXECUTED 45126: 4e75 rts <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 45128: 2f2b 007c movel %a3@(124),%sp@- <== NOT EXECUTED 4512c: 45f9 0004 a3d0 lea 4a3d0 ,%a2 <== NOT EXECUTED 45132: 4e92 jsr %a2@ <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 45134: 2f2b 0058 movel %a3@(88),%sp@- <== NOT EXECUTED 45138: 4e92 jsr %a2@ <== NOT EXECUTED free(tty); 4513a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4513c: 4e92 jsr %a2@ <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 4513e: 7a1a moveq #26,%d5 <== NOT EXECUTED 45140: 2f39 0005 867c movel 5867c ,%sp@- <== NOT EXECUTED 45146: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 4514c: 2005 movel %d5,%d0 <== NOT EXECUTED tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 4514e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 45154: 4cee 3c7c ffdc moveml %fp@(-36),%d2-%d6/%a2-%a5 <== NOT EXECUTED 4515a: 4e5e unlk %fp <== NOT EXECUTED 4515c: 4e75 rts 00043aa2 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 43aa2: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED 43aa6: 48d7 1cfc moveml %d2-%d7/%a2-%a4,%sp@ <== NOT EXECUTED 43aaa: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 43aae: 2e2e 000c movel %fp@(12),%d7 <== NOT EXECUTED 43ab2: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED const unsigned char *buf = _buf; 43ab6: 2840 moveal %d0,%a4 <== NOT EXECUTED unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 43ab8: 4aaa 00b4 tstl %a2@(180) <== NOT EXECUTED 43abc: 6700 00ec beqw 43baa <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 43ac0: 2a2a 0080 movel %a2@(128),%d5 <== NOT EXECUTED while (len) { 43ac4: 4a87 tstl %d7 <== NOT EXECUTED 43ac6: 6700 00fe beqw 43bc6 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43aca: 222a 0088 movel %a2@(136),%d1 <== NOT EXECUTED 43ace: 2005 movel %d5,%d0 <== NOT EXECUTED 43ad0: 5280 addql #1,%d0 <== NOT EXECUTED 43ad2: 4c41 0006 remul %d1,%d6,%d0 <== NOT EXECUTED rtems_interrupt_disable (level); 43ad6: 283c 0000 0700 movel #1792,%d4 <== NOT EXECUTED 43adc: 47f9 0004 5be8 lea 45be8 ,%a3 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43ae2: 2a06 movel %d6,%d5 <== NOT EXECUTED rtems_interrupt_disable (level); 43ae4: 2004 movel %d4,%d0 <== NOT EXECUTED 43ae6: 40c2 movew %sr,%d2 <== NOT EXECUTED 43ae8: 8082 orl %d2,%d0 <== NOT EXECUTED 43aea: 46c0 movew %d0,%sr <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 43aec: 262a 0084 movel %a2@(132),%d3 <== NOT EXECUTED 43af0: bc83 cmpl %d3,%d6 <== NOT EXECUTED 43af2: 662c bnes 43b20 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 43af4: 7002 moveq #2,%d0 <== NOT EXECUTED 43af6: 2540 0094 movel %d0,%a2@(148) <== NOT EXECUTED rtems_interrupt_enable (level); 43afa: 46c2 movew %d2,%sr <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 43afc: 42a7 clrl %sp@- <== NOT EXECUTED 43afe: 42a7 clrl %sp@- <== NOT EXECUTED 43b00: 2f2a 008c movel %a2@(140),%sp@- <== NOT EXECUTED 43b04: 4e93 jsr %a3@ <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 43b06: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43b0c: 4a80 tstl %d0 <== NOT EXECUTED 43b0e: 666c bnes 43b7c <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 43b10: 2004 movel %d4,%d0 <== NOT EXECUTED 43b12: 40c2 movew %sr,%d2 <== NOT EXECUTED 43b14: 8082 orl %d2,%d0 <== NOT EXECUTED 43b16: 46c0 movew %d0,%sr <== 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) { 43b18: 202a 0084 movel %a2@(132),%d0 <== NOT EXECUTED 43b1c: b680 cmpl %d0,%d3 <== NOT EXECUTED 43b1e: 67d4 beqs 43af4 <== 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++; 43b20: 202a 0080 movel %a2@(128),%d0 <== NOT EXECUTED 43b24: 206a 007c moveal %a2@(124),%a0 <== NOT EXECUTED 43b28: 1194 0800 moveb %a4@,%a0@(00000000,%d0:l) <== NOT EXECUTED tty->rawOutBuf.Head = newHead; 43b2c: 2546 0080 movel %d6,%a2@(128) <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 43b30: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 43b34: 661c bnes 43b52 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 43b36: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43b3a: 0800 0004 btst #4,%d0 <== NOT EXECUTED 43b3e: 6744 beqs 43b84 <== 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; 43b40: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43b44: 7220 moveq #32,%d1 <== NOT EXECUTED 43b46: 8081 orl %d1,%d0 <== NOT EXECUTED 43b48: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 43b4c: 7001 moveq #1,%d0 <== NOT EXECUTED 43b4e: 2540 0094 movel %d0,%a2@(148) <== NOT EXECUTED } rtems_interrupt_enable (level); 43b52: 46c2 movew %d2,%sr <== NOT EXECUTED len--; 43b54: 5387 subql #1,%d7 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 43b56: 676e beqs 43bc6 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43b58: 222a 0088 movel %a2@(136),%d1 <== NOT EXECUTED 43b5c: 2005 movel %d5,%d0 <== NOT EXECUTED 43b5e: 5280 addql #1,%d0 <== NOT EXECUTED 43b60: 4c41 0006 remul %d1,%d6,%d0 <== 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++; 43b64: 528c addql #1,%a4 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 43b66: 2a06 movel %d6,%d5 <== NOT EXECUTED rtems_interrupt_disable (level); 43b68: 2004 movel %d4,%d0 <== NOT EXECUTED 43b6a: 40c2 movew %sr,%d2 <== NOT EXECUTED 43b6c: 8082 orl %d2,%d0 <== NOT EXECUTED 43b6e: 46c0 movew %d0,%sr <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 43b70: 262a 0084 movel %a2@(132),%d3 <== NOT EXECUTED 43b74: bc83 cmpl %d3,%d6 <== NOT EXECUTED 43b76: 6700 ff7c beqw 43af4 <== NOT EXECUTED 43b7a: 60a4 bras 43b20 <== NOT EXECUTED 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); 43b7c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43b7e: 4eb9 0004 6388 jsr 46388 <== 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, 43b84: 202a 0084 movel %a2@(132),%d0 <== NOT EXECUTED 43b88: 4878 0001 pea 1 <== NOT EXECUTED 43b8c: d0aa 007c addl %a2@(124),%d0 <== NOT EXECUTED 43b90: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43b92: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 43b96: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43b9a: 4e90 jsr %a0@ <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 43b9c: 7001 moveq #1,%d0 <== NOT EXECUTED 43b9e: 2540 0094 movel %d0,%a2@(148) <== 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, 43ba2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 43ba8: 60a8 bras 43b52 <== 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); 43baa: 226a 00a4 moveal %a2@(164),%a1 <== NOT EXECUTED 43bae: 2d6a 0010 0008 movel %a2@(16),%fp@(8) <== NOT EXECUTED 43bb4: 2d47 0010 movel %d7,%fp@(16) <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43bb8: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 <== 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); 43bbe: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43bc2: 4e5e unlk %fp <== 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); 43bc4: 4ed1 jmp %a1@ <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 43bc6: 4cee 1cfc ffdc moveml %fp@(-36),%d2-%d7/%a2-%a4 <== NOT EXECUTED 43bcc: 4e5e unlk %fp <== NOT EXECUTED 43bce: 4e75 rts 000443fe : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 443fe: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 44402: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 44406: 2a6e 0008 moveal %fp@(8),%a5 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 4440a: 2055 moveal %a5@,%a0 <== NOT EXECUTED 4440c: 2468 0028 moveal %a0@(40),%a2 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44410: 42a7 clrl %sp@- <== 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; uint32_t count = args->count; 44412: 2c2d 000c movel %a5@(12),%d6 <== NOT EXECUTED char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 44416: 42a7 clrl %sp@- <== NOT EXECUTED rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; 44418: 286d 0008 moveal %a5@(8),%a4 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 4441c: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 44420: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 44426: dffc 0000 000c addal #12,%sp <== 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); 4442c: 2e00 movel %d0,%d7 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 4442e: 6630 bnes 44460 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 44430: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 44434: 41f9 0005 7e00 lea 57e00 ,%a0 <== NOT EXECUTED 4443a: eb88 lsll #5,%d0 <== NOT EXECUTED 4443c: 2070 0808 moveal %a0@(00000008,%d0:l),%a0 <== NOT EXECUTED 44440: 4a88 tstl %a0 <== NOT EXECUTED 44442: 6728 beqs 4446c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 44444: 2f0d movel %a5,%sp@- <== NOT EXECUTED 44446: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44448: 4e90 jsr %a0@ <== NOT EXECUTED tty->tty_rcvwakeup = 0; 4444a: 42aa 00e4 clrl %a2@(228) <== 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); 4444e: 2e00 movel %d0,%d7 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 44450: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 44454: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 4445a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } 44460: 2007 movel %d7,%d0 <== NOT EXECUTED 44462: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 44468: 4e5e unlk %fp <== NOT EXECUTED 4446a: 4e75 rts <== 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) { 4446c: 202a 0020 movel %a2@(32),%d0 <== NOT EXECUTED 44470: b0aa 0024 cmpl %a2@(36),%d0 <== NOT EXECUTED 44474: 674c beqs 444c2 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 44476: 4a86 tstl %d6 <== NOT EXECUTED 44478: 6722 beqs 4449c <== NOT EXECUTED 4447a: 202a 0024 movel %a2@(36),%d0 <== NOT EXECUTED 4447e: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 44482: 6c18 bges 4449c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 44484: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 44488: 18f0 0800 moveb %a0@(00000000,%d0:l),%a4@+ <== NOT EXECUTED 4448c: 5280 addql #1,%d0 <== NOT EXECUTED 4448e: 2540 0024 movel %d0,%a2@(36) <== NOT EXECUTED count--; 44492: 5386 subql #1,%d6 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 44494: 6706 beqs 4449c <== NOT EXECUTED 44496: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 4449a: 6de8 blts 44484 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 4449c: 202d 000c movel %a5@(12),%d0 <== NOT EXECUTED 444a0: 9086 subl %d6,%d0 <== NOT EXECUTED 444a2: 2b40 0014 movel %d0,%a5@(20) <== NOT EXECUTED tty->tty_rcvwakeup = 0; 444a6: 42aa 00e4 clrl %a2@(228) <== NOT EXECUTED rtems_semaphore_release (tty->isem); 444aa: 2f2a 0014 movel %a2@(20),%sp@- <== NOT EXECUTED 444ae: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED return sc; } 444b4: 2007 movel %d7,%d0 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 444b6: 588f addql #4,%sp <== NOT EXECUTED return sc; } 444b8: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 444be: 4e5e unlk %fp <== NOT EXECUTED 444c0: 4e75 rts <== NOT EXECUTED return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 444c2: 206a 00a0 moveal %a2@(160),%a0 <== 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; 444c6: 256a 0028 002c movel %a2@(40),%a2@(44) <== NOT EXECUTED if (tty->device.pollRead != NULL 444cc: 2248 moveal %a0,%a1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 444ce: 42aa 0020 clrl %a2@(32) <== NOT EXECUTED 444d2: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 444d6: 4a88 tstl %a0 <== NOT EXECUTED 444d8: 6708 beqs 444e2 <== NOT EXECUTED 444da: 4aaa 00b4 tstl %a2@(180) <== NOT EXECUTED 444de: 6700 015e beqw 4463e <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 444e2: 222a 005c movel %a2@(92),%d1 <== 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; 444e6: 242a 0074 movel %a2@(116),%d2 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 444ea: 202a 0060 movel %a2@(96),%d0 <== 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, 444ee: 41ea 0049 lea %a2@(73),%a0 <== NOT EXECUTED 444f2: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED 444f6: 7a01 moveq #1,%d5 <== NOT EXECUTED 444f8: 47fa fd3e lea %pc@(44238 ),%a3 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 444fc: b081 cmpl %d1,%d0 <== NOT EXECUTED 444fe: 6700 00b6 beqw 445b6 <== NOT EXECUTED 44502: 2039 0005 70a4 movel 570a4 ,%d0 <== NOT EXECUTED 44508: 5380 subql #1,%d0 <== NOT EXECUTED 4450a: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 4450e: 6f00 00a6 blew 445b6 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 44512: 202a 005c movel %a2@(92),%d0 <== NOT EXECUTED 44516: 222a 0064 movel %a2@(100),%d1 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 4451a: 206a 0058 moveal %a2@(88),%a0 <== 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; 4451e: 5280 addql #1,%d0 <== NOT EXECUTED 44520: 4c41 0003 remul %d1,%d3,%d0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 44524: 1830 3800 moveb %a0@(00000000,%d3:l),%d4 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 44528: 2543 005c movel %d3,%a2@(92) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 4452c: 222a 0060 movel %a2@(96),%d1 <== NOT EXECUTED 44530: 202a 0064 movel %a2@(100),%d0 <== NOT EXECUTED 44534: 242a 0064 movel %a2@(100),%d2 <== NOT EXECUTED 44538: d081 addl %d1,%d0 <== NOT EXECUTED 4453a: 9083 subl %d3,%d0 <== NOT EXECUTED 4453c: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED 44540: b2aa 00bc cmpl %a2@(188),%d1 <== NOT EXECUTED 44544: 6444 bccs 4458a <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 44546: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4454a: 72fe moveq #-2,%d1 <== NOT EXECUTED 4454c: c081 andl %d1,%d0 <== NOT EXECUTED 4454e: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 44552: 222a 00b8 movel %a2@(184),%d1 <== NOT EXECUTED 44556: 0281 0000 0202 andil #514,%d1 <== NOT EXECUTED 4455c: 0c81 0000 0202 cmpil #514,%d1 <== NOT EXECUTED 44562: 676a beqs 445ce <== 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) { 44564: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44568: 0800 0008 btst #8,%d0 <== NOT EXECUTED 4456c: 671c beqs 4458a <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 4456e: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 44572: 72fb moveq #-5,%d1 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 44574: 206a 00b0 moveal %a2@(176),%a0 <== 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; 44578: c081 andl %d1,%d0 <== NOT EXECUTED 4457a: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 4457e: 4a88 tstl %a0 <== NOT EXECUTED 44580: 6708 beqs 4458a <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 44582: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44586: 4e90 jsr %a0@ <== NOT EXECUTED 44588: 588f addql #4,%sp <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 4458a: 7002 moveq #2,%d0 <== NOT EXECUTED 4458c: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 44590: 676c beqs 445fe <== NOT EXECUTED if (siproc (c, tty)) 44592: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44594: 4280 clrl %d0 <== NOT EXECUTED 44596: 1004 moveb %d4,%d0 <== NOT EXECUTED 44598: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4459a: 4e93 jsr %a3@ <== NOT EXECUTED 4459c: 508f addql #8,%sp <== NOT EXECUTED 4459e: 4a80 tstl %d0 <== NOT EXECUTED 445a0: 6702 beqs 445a4 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) 445a2: 4285 clrl %d5 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 445a4: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 445a8: 242a 0070 movel %a2@(112),%d2 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 445ac: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 445b0: b081 cmpl %d1,%d0 <== NOT EXECUTED 445b2: 6600 ff4e bnew 44502 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 445b6: 4a85 tstl %d5 <== NOT EXECUTED 445b8: 6660 bnes 4461a <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { 445ba: 6700 feba beqw 44476 <== NOT EXECUTED /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 445be: 222a 005c movel %a2@(92),%d1 <== NOT EXECUTED 445c2: 202a 0060 movel %a2@(96),%d0 <== NOT EXECUTED 445c6: b081 cmpl %d1,%d0 <== NOT EXECUTED 445c8: 6600 ff38 bnew 44502 <== NOT EXECUTED 445cc: 60e8 bras 445b6 <== 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)) 445ce: 4aaa 0094 tstl %a2@(148) <== NOT EXECUTED 445d2: 670a beqs 445de <== NOT EXECUTED 445d4: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 445d8: 0800 0005 btst #5,%d0 <== NOT EXECUTED 445dc: 6786 beqs 44564 <== 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, 445de: 4878 0001 pea 1 <== NOT EXECUTED 445e2: 2f2e fff4 movel %fp@(-12),%sp@- <== NOT EXECUTED 445e6: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 445ea: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 445ee: 4e90 jsr %a0@ <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 445f0: 7002 moveq #2,%d0 <== 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, 445f2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 445f8: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 445fc: 6694 bnes 44592 <== NOT EXECUTED if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 445fe: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44600: 4280 clrl %d0 <== NOT EXECUTED 44602: 1004 moveb %d4,%d0 <== NOT EXECUTED 44604: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44606: 4e93 jsr %a3@ <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 44608: 4280 clrl %d0 <== NOT EXECUTED 4460a: 102a 0047 moveb %a2@(71),%d0 <== NOT EXECUTED 4460e: 508f addql #8,%sp <== NOT EXECUTED 44610: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 44614: 6e8e bgts 445a4 <== NOT EXECUTED 44616: 4285 clrl %d5 <== NOT EXECUTED 44618: 608a bras 445a4 <== NOT EXECUTED /* * Wait for characters */ if ( wait ) { sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 4461a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4461c: 2f2a 006c movel %a2@(108),%sp@- <== NOT EXECUTED 44620: 2f2a 0068 movel %a2@(104),%sp@- <== NOT EXECUTED 44624: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 4462a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 44630: 4a80 tstl %d0 <== NOT EXECUTED 44632: 6600 fe42 bnew 44476 <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { 44636: 4a85 tstl %d5 <== NOT EXECUTED 44638: 6684 bnes 445be <== NOT EXECUTED 4463a: 6000 fe3a braw 44476 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 4463e: 7002 moveq #2,%d0 <== NOT EXECUTED 44640: c0aa 003c andl %a2@(60),%d0 <== NOT EXECUTED 44644: 47fa fbf2 lea %pc@(44238 ),%a3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 44648: 243c 0004 6154 movel #287060,%d2 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 4464e: 4a80 tstl %d0 <== NOT EXECUTED 44650: 6600 00a6 bnew 446f8 <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 44654: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 44658: 6608 bnes 44662 <== NOT EXECUTED 4465a: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 4465e: 6600 00f0 bnew 44750 <== NOT EXECUTED else { siproc (n, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 44662: 2a0e movel %fp,%d5 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 44664: 280e movel %fp,%d4 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 44666: 243c 0004 4238 movel #279096,%d2 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 4466c: 5985 subql #4,%d5 <== NOT EXECUTED 4466e: 47f9 0004 5274 lea 45274 ,%a3 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 44674: 263c 0004 6154 movel #287060,%d3 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 4467a: 5184 subql #8,%d4 <== NOT EXECUTED else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); for (;;) { n = (*tty->device.pollRead)(tty->minor); 4467c: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 44680: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 44682: 588f addql #4,%sp <== NOT EXECUTED 44684: 4a80 tstl %d0 <== NOT EXECUTED 44686: 6c30 bges 446b8 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 44688: 4a2a 0047 tstb %a2@(71) <== NOT EXECUTED 4468c: 6700 008e beqw 4471c <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 44690: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 44694: 6708 beqs 4469e <== NOT EXECUTED 44696: 4aaa 0020 tstl %a2@(32) <== NOT EXECUTED 4469a: 6600 0088 bnew 44724 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 4469e: 2043 moveal %d3,%a0 <== NOT EXECUTED 446a0: 4878 0001 pea 1 <== NOT EXECUTED 446a4: 4e90 jsr %a0@ <== NOT EXECUTED 446a6: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 446aa: 588f addql #4,%sp <== NOT EXECUTED else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); for (;;) { n = (*tty->device.pollRead)(tty->minor); 446ac: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 446b0: 4e90 jsr %a0@ <== NOT EXECUTED if (n < 0) { 446b2: 588f addql #4,%sp <== NOT EXECUTED 446b4: 4a80 tstl %d0 <== NOT EXECUTED 446b6: 6dd0 blts 44688 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 446b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 446ba: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 446c0: 2042 moveal %d2,%a0 <== NOT EXECUTED 446c2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 446c4: 4e90 jsr %a0@ <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 446c6: 122a 0047 moveb %a2@(71),%d1 <== NOT EXECUTED 446ca: 4280 clrl %d0 <== NOT EXECUTED 446cc: 508f addql #8,%sp <== NOT EXECUTED 446ce: 1001 moveb %d1,%d0 <== NOT EXECUTED 446d0: b0aa 0020 cmpl %a2@(32),%d0 <== NOT EXECUTED 446d4: 6f00 fda0 blew 44476 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 446d8: 4a01 tstb %d1 <== NOT EXECUTED 446da: 6708 beqs 446e4 <== NOT EXECUTED 446dc: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 446e0: 6600 00a0 bnew 44782 <== NOT EXECUTED 446e4: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 446e8: 6092 bras 4467c <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 446ea: 2042 moveal %d2,%a0 <== NOT EXECUTED 446ec: 4878 0001 pea 1 <== NOT EXECUTED 446f0: 4e90 jsr %a0@ <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 446f2: 226a 00a0 moveal %a2@(160),%a1 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 446f6: 588f addql #4,%sp <== NOT EXECUTED { int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); 446f8: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 446fc: 4e91 jsr %a1@ <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) 446fe: 4281 clrl %d1 <== NOT EXECUTED int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { 44700: 588f addql #4,%sp <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 44702: 1200 moveb %d0,%d1 <== NOT EXECUTED int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { 44704: 4a80 tstl %d0 <== NOT EXECUTED 44706: 6de2 blts 446ea <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 44708: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4470a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4470c: 4e93 jsr %a3@ <== NOT EXECUTED 4470e: 508f addql #8,%sp <== NOT EXECUTED 44710: 4a80 tstl %d0 <== NOT EXECUTED 44712: 6600 fd62 bnew 44476 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 44716: 226a 00a0 moveal %a2@(160),%a1 <== NOT EXECUTED 4471a: 60dc bras 446f8 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 4471c: 4a2a 0046 tstb %a2@(70) <== NOT EXECUTED 44720: 6700 fd54 beqw 44476 <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 44724: 2f04 movel %d4,%sp@- <== NOT EXECUTED 44726: 4878 0002 pea 2 <== NOT EXECUTED 4472a: 4e93 jsr %a3@ <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 4472c: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED 44730: 92ae fffc subl %fp@(-4),%d1 <== NOT EXECUTED 44734: 508f addql #8,%sp <== NOT EXECUTED 44736: b2aa 0054 cmpl %a2@(84),%d1 <== NOT EXECUTED 4473a: 6200 fd3a bhiw 44476 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 4473e: 2043 moveal %d3,%a0 <== NOT EXECUTED 44740: 4878 0001 pea 1 <== NOT EXECUTED 44744: 4e90 jsr %a0@ <== NOT EXECUTED 44746: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 4474a: 588f addql #4,%sp <== NOT EXECUTED 4474c: 6000 ff5e braw 446ac <== NOT EXECUTED } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 44750: 486e fffc pea %fp@(-4) <== NOT EXECUTED else { siproc (n, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 44754: 2a0e movel %fp,%d5 <== NOT EXECUTED } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 44756: 4878 0002 pea 2 <== NOT EXECUTED 4475a: 4eb9 0004 5274 jsr 45274 <== NOT EXECUTED 44760: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 44764: 280e movel %fp,%d4 <== NOT EXECUTED } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 44766: 508f addql #8,%sp <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 44768: 243c 0004 4238 movel #279096,%d2 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 4476e: 5985 subql #4,%d5 <== NOT EXECUTED 44770: 47f9 0004 5274 lea 45274 ,%a3 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 44776: 263c 0004 6154 movel #287060,%d3 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 4477c: 5184 subql #8,%d4 <== NOT EXECUTED 4477e: 6000 fefc braw 4467c <== NOT EXECUTED else { siproc (n, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 44782: 2f05 movel %d5,%sp@- <== NOT EXECUTED 44784: 4878 0002 pea 2 <== NOT EXECUTED 44788: 4e93 jsr %a3@ <== NOT EXECUTED 4478a: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 4478e: 508f addql #8,%sp <== NOT EXECUTED 44790: 6000 feea braw 4467c <== NOT EXECUTED 00043574 : * 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) { 43574: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 43578: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 4357c: 246e 0008 moveal %fp@(8),%a2 <== 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)) 43580: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43584: 0280 0000 0403 andil #1027,%d0 <== NOT EXECUTED 4358a: 0c80 0000 0401 cmpil #1025,%d0 <== NOT EXECUTED 43590: 6700 0114 beqw 436a6 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 43594: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43598: 7203 moveq #3,%d1 <== NOT EXECUTED 4359a: c081 andl %d1,%d0 <== NOT EXECUTED 4359c: 7402 moveq #2,%d2 <== NOT EXECUTED 4359e: b480 cmpl %d0,%d2 <== NOT EXECUTED 435a0: 6700 014a beqw 436ec <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 435a4: 222a 0080 movel %a2@(128),%d1 <== NOT EXECUTED 435a8: 202a 0084 movel %a2@(132),%d0 <== NOT EXECUTED 435ac: b081 cmpl %d1,%d0 <== NOT EXECUTED 435ae: 6700 009e beqw 4364e <== NOT EXECUTED rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 435b2: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 435b8: 40c0 movew %sr,%d0 <== NOT EXECUTED 435ba: 8280 orl %d0,%d1 <== NOT EXECUTED 435bc: 46c1 movew %d1,%sr <== NOT EXECUTED len = tty->t_dqlen; 435be: 222a 0090 movel %a2@(144),%d1 <== NOT EXECUTED tty->t_dqlen = 0; 435c2: 42aa 0090 clrl %a2@(144) <== NOT EXECUTED rtems_interrupt_enable(level); 435c6: 46c0 movew %d0,%sr <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 435c8: 206a 0084 moveal %a2@(132),%a0 <== NOT EXECUTED 435cc: 202a 0088 movel %a2@(136),%d0 <== NOT EXECUTED 435d0: d288 addl %a0,%d1 <== NOT EXECUTED 435d2: 4c40 1003 remul %d0,%d3,%d1 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; 435d6: 2543 0084 movel %d3,%a2@(132) <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 435da: 7202 moveq #2,%d1 <== NOT EXECUTED 435dc: b2aa 0094 cmpl %a2@(148),%d1 <== NOT EXECUTED 435e0: 6700 008c beqw 4366e <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 435e4: 202a 0080 movel %a2@(128),%d0 <== NOT EXECUTED 435e8: b680 cmpl %d0,%d3 <== NOT EXECUTED 435ea: 6700 0098 beqw 43684 <== 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)) 435ee: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 435f2: 0280 0000 0210 andil #528,%d0 <== NOT EXECUTED 435f8: 0c80 0000 0210 cmpil #528,%d0 <== NOT EXECUTED 435fe: 6700 0130 beqw 43730 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 43602: 202a 0080 movel %a2@(128),%d0 <== NOT EXECUTED 43606: b083 cmpl %d3,%d0 <== NOT EXECUTED 43608: 645c bccs 43666 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 4360a: 242a 0088 movel %a2@(136),%d2 <== NOT EXECUTED 4360e: 9483 subl %d3,%d2 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; /* 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)) { 43610: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 43614: 0280 0000 0600 andil #1536,%d0 <== NOT EXECUTED 4361a: 6702 beqs 4361e <== NOT EXECUTED 4361c: 7401 moveq #1,%d2 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 4361e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 43620: 222a 007c movel %a2@(124),%d1 <== NOT EXECUTED 43624: d283 addl %d3,%d1 <== NOT EXECUTED 43626: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43628: 206a 00a4 moveal %a2@(164),%a0 <== 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*/ 4362c: 7001 moveq #1,%d0 <== NOT EXECUTED 4362e: 2540 0094 movel %d0,%a2@(148) <== NOT EXECUTED (*tty->device.write)(tty->minor, 43632: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 43636: 4e90 jsr %a0@ <== NOT EXECUTED 43638: dffc 0000 000c addal #12,%sp <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 4363e: 2543 0084 movel %d3,%a2@(132) <== NOT EXECUTED } return nToSend; } 43642: 2002 movel %d2,%d0 <== NOT EXECUTED 43644: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4364a: 4e5e unlk %fp <== NOT EXECUTED 4364c: 4e75 rts <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 4364e: 7002 moveq #2,%d0 <== NOT EXECUTED 43650: b0aa 0094 cmpl %a2@(148),%d0 <== NOT EXECUTED 43654: 6700 0102 beqw 43758 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 43658: 4282 clrl %d2 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 4365a: 2002 movel %d2,%d0 <== NOT EXECUTED 4365c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 43662: 4e5e unlk %fp <== NOT EXECUTED 43664: 4e75 rts <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 43666: 242a 0080 movel %a2@(128),%d2 <== NOT EXECUTED 4366a: 9483 subl %d3,%d2 <== NOT EXECUTED 4366c: 60a2 bras 43610 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 4366e: 2f2a 008c movel %a2@(140),%sp@- <== NOT EXECUTED 43672: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 43678: 202a 0080 movel %a2@(128),%d0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 4367c: 588f addql #4,%sp <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 4367e: b680 cmpl %d0,%d3 <== NOT EXECUTED 43680: 6600 ff6c bnew 435ee <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 43684: 206a 00d4 moveal %a2@(212),%a0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 43688: 42aa 0094 clrl %a2@(148) <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 4368c: 4a88 tstl %a0 <== NOT EXECUTED 4368e: 6700 00da beqw 4376a <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 43692: 2f2a 00d8 movel %a2@(216),%sp@- <== NOT EXECUTED 43696: 4282 clrl %d2 <== NOT EXECUTED 43698: 486a 0030 pea %a2@(48) <== NOT EXECUTED 4369c: 4e90 jsr %a0@ <== NOT EXECUTED 4369e: 508f addql #8,%sp <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 436a0: 2543 0084 movel %d3,%a2@(132) <== NOT EXECUTED 436a4: 609c bras 43642 <== 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, 436a6: 4878 0001 pea 1 <== NOT EXECUTED 436aa: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 436ae: 486a 004a pea %a2@(74) <== NOT EXECUTED 436b2: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 436b6: 4e90 jsr %a0@ <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 436b8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 436be: 40c1 movew %sr,%d1 <== NOT EXECUTED 436c0: 8081 orl %d1,%d0 <== NOT EXECUTED 436c2: 46c0 movew %d0,%sr <== NOT EXECUTED tty->t_dqlen--; tty->flow_ctrl |= FL_ISNTXOF; 436c4: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 436c8: 7402 moveq #2,%d2 <== NOT EXECUTED 436ca: 8082 orl %d2,%d0 <== 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--; 436cc: 53aa 0090 subql #1,%a2@(144) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 436d0: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED rtems_interrupt_enable(level); 436d4: 46c1 movew %d1,%sr <== NOT EXECUTED 436d6: 143c 0001 moveb #1,%d2 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 436da: 2002 movel %d2,%d0 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 436dc: dffc 0000 000c addal #12,%sp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 436e2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 436e8: 4e5e unlk %fp <== NOT EXECUTED 436ea: 4e75 rts <== 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, 436ec: 4878 0001 pea 1 <== NOT EXECUTED 436f0: 206a 00a4 moveal %a2@(164),%a0 <== NOT EXECUTED 436f4: 486a 0049 pea %a2@(73) <== NOT EXECUTED 436f8: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 436fc: 4e90 jsr %a0@ <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 436fe: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 43704: 40c1 movew %sr,%d1 <== NOT EXECUTED 43706: 8081 orl %d1,%d0 <== NOT EXECUTED 43708: 46c0 movew %d0,%sr <== NOT EXECUTED tty->t_dqlen--; tty->flow_ctrl &= ~FL_ISNTXOF; 4370a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4370e: 74fd moveq #-3,%d2 <== NOT EXECUTED 43710: c082 andl %d2,%d0 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 43712: 53aa 0090 subql #1,%a2@(144) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 43716: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED rtems_interrupt_enable(level); 4371a: 46c1 movew %d1,%sr <== NOT EXECUTED 4371c: 7401 moveq #1,%d2 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 4371e: 2002 movel %d2,%d0 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; tty->flow_ctrl &= ~FL_ISNTXOF; rtems_interrupt_enable(level); 43720: dffc 0000 000c addal #12,%sp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 43726: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4372c: 4e5e unlk %fp <== NOT EXECUTED 4372e: 4e75 rts <== NOT EXECUTED /* check, whether output should stop due to received XOFF */ 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); 43730: 303c 0700 movew #1792,%d0 <== NOT EXECUTED 43734: 40c1 movew %sr,%d1 <== NOT EXECUTED 43736: 8081 orl %d1,%d0 <== NOT EXECUTED 43738: 46c0 movew %d0,%sr <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 4373a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4373e: 7420 moveq #32,%d2 <== NOT EXECUTED 43740: 8082 orl %d2,%d0 <== NOT EXECUTED 43742: 2540 00b8 movel %d0,%a2@(184) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 43746: 7001 moveq #1,%d0 <== NOT EXECUTED 43748: 2540 0094 movel %d0,%a2@(148) <== NOT EXECUTED rtems_interrupt_enable(level); 4374c: 46c1 movew %d1,%sr <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 4374e: 2543 0084 movel %d3,%a2@(132) <== NOT EXECUTED /* 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; tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 43752: 4202 clrb %d2 <== NOT EXECUTED 43754: 6000 feec braw 43642 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 43758: 2f2a 008c movel %a2@(140),%sp@- <== NOT EXECUTED 4375c: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 43762: 588f addql #4,%sp <== NOT EXECUTED 43764: 4282 clrl %d2 <== NOT EXECUTED 43766: 6000 fef2 braw 4365a <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 4376a: 2543 0084 movel %d3,%a2@(132) <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 4376e: 4282 clrl %d2 <== NOT EXECUTED 43770: 6000 fed0 braw 43642 <== NOT EXECUTED 000451e4 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 451e4: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 451e8: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 451ec: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 451f0: 240e movel %fp,%d2 <== NOT EXECUTED 451f2: 260e movel %fp,%d3 <== NOT EXECUTED 451f4: 5d82 subql #6,%d2 <== NOT EXECUTED 451f6: 47f9 0004 54f4 lea 454f4 ,%a3 <== NOT EXECUTED 451fc: 4bf9 0004 5f24 lea 45f24 ,%a5 <== NOT EXECUTED 45202: 5383 subql #1,%d3 <== NOT EXECUTED 45204: 49f9 0004 37d2 lea 437d2 ,%a4 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 4520a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4520c: 42a7 clrl %sp@- <== NOT EXECUTED 4520e: 4878 0002 pea 2 <== NOT EXECUTED 45212: 4878 0003 pea 3 <== NOT EXECUTED 45216: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 45218: 7001 moveq #1,%d0 <== NOT EXECUTED 4521a: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45220: c0ae fffa andl %fp@(-6),%d0 <== NOT EXECUTED 45224: 6642 bnes 45268 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 45226: 2f2a 0010 movel %a2@(16),%sp@- <== NOT EXECUTED 4522a: 206a 00a0 moveal %a2@(160),%a0 <== NOT EXECUTED 4522e: 4e90 jsr %a0@ <== NOT EXECUTED if (c != EOF) { 45230: 588f addql #4,%sp <== NOT EXECUTED 45232: 72ff moveq #-1,%d1 <== NOT EXECUTED 45234: b280 cmpl %d0,%d1 <== NOT EXECUTED 45236: 67d2 beqs 4520a <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 45238: 4878 0001 pea 1 <== NOT EXECUTED c = tty->device.pollRead(tty->minor); if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; 4523c: 1d40 ffff moveb %d0,%fp@(-1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 45240: 2f03 movel %d3,%sp@- <== NOT EXECUTED 45242: 2f0a movel %a2,%sp@- <== NOT EXECUTED 45244: 4e94 jsr %a4@ <== NOT EXECUTED 45246: dffc 0000 000c addal #12,%sp <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 4524c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4524e: 42a7 clrl %sp@- <== NOT EXECUTED 45250: 4878 0002 pea 2 <== NOT EXECUTED 45254: 4878 0003 pea 3 <== NOT EXECUTED 45258: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 4525a: 7001 moveq #1,%d0 <== NOT EXECUTED 4525c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45262: c0ae fffa andl %fp@(-6),%d0 <== NOT EXECUTED 45266: 67be beqs 45226 <== NOT EXECUTED tty->rxTaskId = 0; 45268: 42aa 00c4 clrl %a2@(196) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 4526c: 42a7 clrl %sp@- <== NOT EXECUTED 4526e: 4e95 jsr %a5@ <== NOT EXECUTED 45270: 588f addql #4,%sp <== NOT EXECUTED 45272: 6096 bras 4520a <== NOT EXECUTED 00043558 : * 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) { 43558: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 4355c: 4878 0002 pea 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) { 43560: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 43564: 2f28 00c4 movel %a0@(196),%sp@- <== NOT EXECUTED 43568: 4eb9 0004 56a0 jsr 456a0 <== NOT EXECUTED 4356e: 508f addql #8,%sp <== NOT EXECUTED } 43570: 4e5e unlk %fp <== NOT EXECUTED 43572: 4e75 rts 0004515e : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 4515e: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 45162: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ <== NOT EXECUTED 45166: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4516a: 240e movel %fp,%d2 <== NOT EXECUTED 4516c: 5982 subql #4,%d2 <== NOT EXECUTED 4516e: 47f9 0004 54f4 lea 454f4 ,%a3 <== NOT EXECUTED 45174: 4bf9 0004 5f24 lea 45f24 ,%a5 <== NOT EXECUTED 4517a: 49f9 0004 3574 lea 43574 ,%a4 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 45180: 2f02 movel %d2,%sp@- <== NOT EXECUTED 45182: 42a7 clrl %sp@- <== NOT EXECUTED 45184: 4878 0002 pea 2 <== NOT EXECUTED 45188: 4878 0003 pea 3 <== NOT EXECUTED 4518c: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 4518e: 7001 moveq #1,%d0 <== NOT EXECUTED 45190: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 45196: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED 4519a: 663c bnes 451d8 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 4519c: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 451a0: eb88 lsll #5,%d0 <== NOT EXECUTED 451a2: 0680 0005 7e14 addil #359956,%d0 <== NOT EXECUTED 451a8: 2240 moveal %d0,%a1 <== NOT EXECUTED 451aa: 2051 moveal %a1@,%a0 <== NOT EXECUTED 451ac: 4a88 tstl %a0 <== NOT EXECUTED 451ae: 6706 beqs 451b6 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 451b0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 451b2: 4e90 jsr %a0@ <== NOT EXECUTED 451b4: 588f addql #4,%sp <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 451b6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 451b8: 4e94 jsr %a4@ <== NOT EXECUTED 451ba: 588f addql #4,%sp <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 451bc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 451be: 42a7 clrl %sp@- <== NOT EXECUTED 451c0: 4878 0002 pea 2 <== NOT EXECUTED 451c4: 4878 0003 pea 3 <== NOT EXECUTED 451c8: 4e93 jsr %a3@ <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 451ca: 7001 moveq #1,%d0 <== NOT EXECUTED 451cc: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 451d2: c0ae fffc andl %fp@(-4),%d0 <== NOT EXECUTED 451d6: 67c4 beqs 4519c <== NOT EXECUTED tty->txTaskId = 0; 451d8: 42aa 00c8 clrl %a2@(200) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 451dc: 42a7 clrl %sp@- <== NOT EXECUTED 451de: 4e95 jsr %a5@ <== NOT EXECUTED 451e0: 588f addql #4,%sp <== NOT EXECUTED 451e2: 609c bras 45180 <== NOT EXECUTED 000442a8 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 442a8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 442ac: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 442b0: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 442b4: 2053 moveal %a3@,%a0 <== NOT EXECUTED 442b6: 2468 0028 moveal %a0@(40),%a2 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 442ba: 42a7 clrl %sp@- <== NOT EXECUTED 442bc: 42a7 clrl %sp@- <== NOT EXECUTED 442be: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 442c2: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 442c8: dffc 0000 000c addal #12,%sp <== NOT EXECUTED { 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); 442ce: 2600 movel %d0,%d3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 442d0: 662c bnes 442fe <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 442d2: 202a 00cc movel %a2@(204),%d0 <== NOT EXECUTED 442d6: eb88 lsll #5,%d0 <== NOT EXECUTED 442d8: 0680 0005 7e0c addil #359948,%d0 <== NOT EXECUTED 442de: 2240 moveal %d0,%a1 <== NOT EXECUTED 442e0: 2051 moveal %a1@,%a0 <== NOT EXECUTED 442e2: 4a88 tstl %a0 <== NOT EXECUTED 442e4: 6724 beqs 4430a <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 442e6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 442e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 442ea: 4e90 jsr %a0@ <== NOT EXECUTED rtems_semaphore_release (tty->osem); 442ec: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 442f0: 2600 movel %d0,%d3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 442f2: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 442f8: dffc 0000 000c addal #12,%sp <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 442fe: 2003 movel %d3,%d0 <== NOT EXECUTED 44300: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 44306: 4e5e unlk %fp <== NOT EXECUTED 44308: 4e75 rts <== 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) { 4430a: 7001 moveq #1,%d0 <== NOT EXECUTED 4430c: c0aa 0034 andl %a2@(52),%d0 <== NOT EXECUTED 44310: 6744 beqs 44356 <== NOT EXECUTED uint32_t count = args->count; 44312: 282b 000c movel %a3@(12),%d4 <== NOT EXECUTED char *buffer = args->buffer; 44316: 286b 0008 moveal %a3@(8),%a4 <== NOT EXECUTED while (count--) 4431a: 6764 beqs 44380 <== NOT EXECUTED 4431c: 4282 clrl %d2 <== NOT EXECUTED 4431e: 4bfa f8b0 lea %pc@(43bd0 ),%a5 <== NOT EXECUTED oproc (*buffer++, tty); 44322: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44324: 4280 clrl %d0 <== NOT EXECUTED 44326: 1034 2800 moveb %a4@(00000000,%d2:l),%d0 <== NOT EXECUTED 4432a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4432c: 4e95 jsr %a5@ <== NOT EXECUTED 4432e: 5282 addql #1,%d2 <== NOT EXECUTED return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 44330: 508f addql #8,%sp <== NOT EXECUTED 44332: b484 cmpl %d4,%d2 <== NOT EXECUTED 44334: 66ec bnes 44322 <== NOT EXECUTED 44336: 202b 000c movel %a3@(12),%d0 <== NOT EXECUTED oproc (*buffer++, tty); args->bytes_moved = args->count; 4433a: 2740 0014 movel %d0,%a3@(20) <== NOT EXECUTED } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); 4433e: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44342: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 44348: 588f addql #4,%sp <== NOT EXECUTED return sc; } 4434a: 2003 movel %d3,%d0 <== NOT EXECUTED 4434c: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 44352: 4e5e unlk %fp <== NOT EXECUTED 44354: 4e75 rts <== NOT EXECUTED while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 44356: 2f0a movel %a2,%sp@- <== NOT EXECUTED 44358: 2f2b 000c movel %a3@(12),%sp@- <== NOT EXECUTED 4435c: 2f2b 0008 movel %a3@(8),%sp@- <== NOT EXECUTED 44360: 4eb9 0004 3aa2 jsr 43aa2 <== NOT EXECUTED args->bytes_moved = args->count; 44366: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4436c: 276b 000c 0014 movel %a3@(12),%a3@(20) <== NOT EXECUTED } rtems_semaphore_release (tty->osem); 44372: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44376: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED 4437c: 588f addql #4,%sp <== NOT EXECUTED 4437e: 60ca bras 4434a <== NOT EXECUTED return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 44380: 4280 clrl %d0 <== NOT EXECUTED oproc (*buffer++, tty); args->bytes_moved = args->count; 44382: 2740 0014 movel %d0,%a3@(20) <== NOT EXECUTED 44386: 60b6 bras 4433e <== NOT EXECUTED 00052d18 : */ rtems_status_code rtems_timer_cancel( Objects_Id id ) { 52d18: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 52d1c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 52d20: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52d24: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52d2a: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52d30: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 52d36: 2040 moveal %d0,%a0 <== NOT EXECUTED 52d38: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 52d3c: 6706 beqs 52d44 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52d3e: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52d40: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52d42: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) 52d44: 7004 moveq #4,%d0 <== NOT EXECUTED 52d46: b0a8 0038 cmpl %a0@(56),%d0 <== NOT EXECUTED 52d4a: 670c beqs 52d58 <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); 52d4c: 4868 0010 pea %a0@(16) <== NOT EXECUTED 52d50: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED 52d56: 588f addql #4,%sp <== NOT EXECUTED _Thread_Enable_dispatch(); 52d58: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52d5e: 4e5e unlk %fp <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) (void) _Watchdog_Remove( &the_timer->Ticker ); _Thread_Enable_dispatch(); 52d60: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52d62: 4e75 rts 00052d64 : rtems_status_code rtems_timer_create( rtems_name name, Objects_Id *id ) { 52d64: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 52d68: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52d6a: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 52d6e: 676a beqs 52dda <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 52d70: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 52d74: 677e beqs 52df4 <== NOT EXECUTED 52d76: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 52d7c: 5280 addql #1,%d0 <== NOT EXECUTED 52d7e: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED * 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 ); 52d84: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52d8a: 4eb9 0005 54b4 jsr 554b4 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { 52d90: 588f addql #4,%sp <== NOT EXECUTED 52d92: 2240 moveal %d0,%a1 <== NOT EXECUTED 52d94: 4a80 tstl %d0 <== NOT EXECUTED 52d96: 674c beqs 52de4 <== NOT EXECUTED &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 52d98: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 52d9c: 2342 000c movel %d2,%a1@(12) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 52da0: 4280 clrl %d0 <== NOT EXECUTED 52da2: 3029 000a movew %a1@(10),%d0 <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 52da6: 42a9 0030 clrl %a1@(48) <== NOT EXECUTED if ( !the_timer ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 52daa: 7204 moveq #4,%d1 <== NOT EXECUTED &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 52dac: 20a9 0008 movel %a1@(8),%a0@ <== NOT EXECUTED 52db0: 2079 0007 189c moveal 7189c <_Timer_Information+0x1a>,%a0 <== NOT EXECUTED if ( !the_timer ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 52db6: 2341 0038 movel %d1,%a1@(56) <== NOT EXECUTED 52dba: 2189 0c00 movel %a1,%a0@(00000000,%d0:l:4) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 52dbe: 42a9 0018 clrl %a1@(24) <== NOT EXECUTED the_watchdog->routine = routine; 52dc2: 42a9 002c clrl %a1@(44) <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 52dc6: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); 52dca: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 52dd0: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 52dd4: 4e5e unlk %fp <== NOT EXECUTED &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); 52dd6: 4280 clrl %d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 52dd8: 4e75 rts <== NOT EXECUTED 52dda: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 52dde: 4e5e unlk %fp <== NOT EXECUTED Objects_Id *id ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 52de0: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 52de2: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); 52de4: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 52dea: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 52dee: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); 52df0: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 52df2: 4e75 rts <== NOT EXECUTED 52df4: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 52df8: 4e5e unlk %fp <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 52dfa: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 52dfc: 4e75 rts <== NOT EXECUTED ... 00052e00 : */ rtems_status_code rtems_timer_delete( Objects_Id id ) { 52e00: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 52e04: 2f0a movel %a2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 52e06: 486e fffc pea %fp@(-4) <== NOT EXECUTED 52e0a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52e0e: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52e14: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52e1a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 52e20: 2440 moveal %d0,%a2 <== NOT EXECUTED 52e22: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 52e26: 663c bnes 52e64 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); 52e28: 2f00 movel %d0,%sp@- <== NOT EXECUTED 52e2a: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52e30: 4eb9 0005 5550 jsr 55550 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); 52e36: 486a 0010 pea %a2@(16) <== NOT EXECUTED 52e3a: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); 52e40: 2f0a movel %a2,%sp@- <== NOT EXECUTED 52e42: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52e48: 4eb9 0005 5874 jsr 55874 <_Objects_Free> <== NOT EXECUTED _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 52e4e: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52e54: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); (void) _Watchdog_Remove( &the_timer->Ticker ); _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 52e58: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52e5e: 4e5e unlk %fp <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); (void) _Watchdog_Remove( &the_timer->Ticker ); _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 52e60: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52e62: 4e75 rts <== NOT EXECUTED 52e64: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 52e68: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52e6a: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52e6c: 4e75 rts <== NOT EXECUTED ... 00052e70 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 52e70: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 52e74: 2f0a movel %a2,%sp@- <== NOT EXECUTED 52e76: 2f02 movel %d2,%sp@- <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 52e78: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 52e7c: 6700 00aa beqw 52f28 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( !routine ) 52e80: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 52e84: 6700 00b0 beqw 52f36 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 52e88: 486e fffc pea %fp@(-4) <== NOT EXECUTED 52e8c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52e90: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52e96: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52e9c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 52ea2: 2440 moveal %d0,%a2 <== NOT EXECUTED 52ea4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 52ea8: 6670 bnes 52f1a <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 52eaa: 2400 movel %d0,%d2 <== NOT EXECUTED 52eac: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED 52eb2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52eb4: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED _ISR_Disable( level ); 52eba: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 52ec0: 40c1 movew %sr,%d1 <== NOT EXECUTED 52ec2: 8081 orl %d1,%d0 <== NOT EXECUTED 52ec4: 46c0 movew %d0,%sr <== NOT EXECUTED /* * 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 ) { 52ec6: 588f addql #4,%sp <== NOT EXECUTED 52ec8: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 52ecc: 6676 bnes 52f44 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 52ece: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 52ed2: 2540 002c movel %d0,%a2@(44) <== NOT EXECUTED the_watchdog->id = id; 52ed6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED the_watchdog->user_data = user_data; 52eda: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 52ee0: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED /* * 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; 52ee4: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 52ee8: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 52eec: 46c1 movew %d1,%sr <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 52eee: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 52ef2: 2540 001c movel %d0,%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 52ef6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52ef8: 4879 0007 16dc pea 716dc <_Watchdog_Ticks_chain> <== NOT EXECUTED 52efe: 4eb9 0005 7810 jsr 57810 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 52f04: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f0a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 52f0e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 52f12: 508f addql #8,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f14: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 52f16: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f18: 4e75 rts <== NOT EXECUTED 52f1a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 52f1e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 52f22: 4e5e unlk %fp <== NOT EXECUTED if ( !routine ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52f24: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f26: 4e75 rts <== NOT EXECUTED 52f28: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 52f2c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 52f30: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 52f32: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f34: 4e75 rts <== NOT EXECUTED 52f36: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 52f3a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 52f3e: 4e5e unlk %fp <== NOT EXECUTED ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) 52f40: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f42: 4e75 rts <== NOT EXECUTED * 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 ) { _ISR_Enable( level ); 52f44: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Enable_dispatch(); 52f46: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f4c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 52f50: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 52f54: 4e5e unlk %fp <== NOT EXECUTED * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); _Thread_Enable_dispatch(); 52f56: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f58: 4e75 rts <== NOT EXECUTED ... 00052f5c : Objects_Id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 52f5c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 52f60: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) 52f64: 4a39 0007 1614 tstb 71614 <_TOD_Is_set> <== NOT EXECUTED 52f6a: 660c bnes 52f78 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f6c: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED 52f72: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) 52f74: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52f76: 4e75 rts <== NOT EXECUTED rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) 52f78: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52f7c: 4eb9 0005 010c jsr 5010c <_TOD_Validate> <== NOT EXECUTED 52f82: 588f addql #4,%sp <== NOT EXECUTED 52f84: 4a00 tstb %d0 <== NOT EXECUTED 52f86: 671e beqs 52fa6 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) 52f88: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 52f8c: 6700 00b2 beqw 53040 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 52f90: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 52f94: 4eb9 0004 ffd8 jsr 4ffd8 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch ) 52f9a: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 52f9c: 2600 movel %d0,%d3 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch ) 52f9e: b0b9 0007 1692 cmpl 71692 <_TOD_Now>,%d0 <== NOT EXECUTED 52fa4: 620c bhis 52fb2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52fa6: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED 52fac: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 52fae: 7014 moveq #20,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 52fb0: 4e75 rts <== NOT EXECUTED 52fb2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 52fb6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52fba: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 52fc0: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 52fc6: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 52fcc: 2440 moveal %d0,%a2 <== NOT EXECUTED 52fce: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 52fd2: 6660 bnes 53034 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 52fd4: 2400 movel %d0,%d2 <== NOT EXECUTED 52fd6: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED 52fdc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 52fde: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 52fe4: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 52fe8: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY; 52fec: 7002 moveq #2,%d0 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 52fee: 96b9 0007 1692 subl 71692 <_TOD_Now>,%d3 <== NOT EXECUTED 52ff4: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 52ff8: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 52ffc: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 53002: 2540 002c movel %d0,%a2@(44) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 53006: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 5300a: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 5300e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 53010: 4879 0007 16d0 pea 716d0 <_Watchdog_Seconds_chain> <== NOT EXECUTED 53016: 4eb9 0005 7810 jsr 57810 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); 5301c: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 53022: dffc 0000 000c addal #12,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53028: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED 5302e: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch ); _Thread_Enable_dispatch(); 53030: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53032: 4e75 rts <== NOT EXECUTED 53034: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED 5303a: 4e5e unlk %fp <== NOT EXECUTED seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 5303c: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5303e: 4e75 rts <== NOT EXECUTED 53040: 4cee 040c fff0 moveml %fp@(-16),%d2-%d3/%a2 <== NOT EXECUTED 53046: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) 53048: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5304a: 4e75 rts 0005304c : rtems_status_code rtems_timer_get_information( Objects_Id id, rtems_timer_information *the_info ) { 5304c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 53050: 2f0a movel %a2,%sp@- <== NOT EXECUTED 53052: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 53056: 4a8a tstl %a2 <== NOT EXECUTED 53058: 6752 beqs 530ac <== NOT EXECUTED 5305a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5305e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 53062: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 53068: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 5306e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 53074: 2040 moveal %d0,%a0 <== NOT EXECUTED 53076: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5307a: 6626 bnes 530a2 <== NOT EXECUTED case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 5307c: 24a8 0038 movel %a0@(56),%a2@ <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; 53080: 2568 001c 0004 movel %a0@(28),%a2@(4) <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; 53086: 2568 0024 0008 movel %a0@(36),%a2@(8) <== NOT EXECUTED the_info->stop_time = the_timer->Ticker.stop_time; 5308c: 2568 0028 000c movel %a0@(40),%a2@(12) <== NOT EXECUTED _Thread_Enable_dispatch(); 53092: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53098: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5309c: 4e5e unlk %fp <== NOT EXECUTED 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(); 5309e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 530a0: 4e75 rts <== NOT EXECUTED 530a2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 530a6: 4e5e unlk %fp <== NOT EXECUTED if ( !the_info ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 530a8: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 530aa: 4e75 rts <== NOT EXECUTED 530ac: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 530b0: 4e5e unlk %fp <== NOT EXECUTED ) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 530b2: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 530b4: 4e75 rts <== NOT EXECUTED ... 000530b8 : rtems_status_code rtems_timer_ident( rtems_name name, Objects_Id *id ) { 530b8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 530bc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 530c0: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 530c6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 530ca: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 530d0: 4eb9 0005 5bb8 jsr 55bb8 <_Objects_Name_to_id_u32> <== NOT EXECUTED 530d6: 41f9 0006 a75e lea 6a75e <_Status_Object_name_errors_to_status>,%a0 <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } 530dc: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 530e0: 4e5e unlk %fp <== NOT EXECUTED 530e2: 4e75 rts 000533a0 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 533a0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 533a4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 533a6: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 533aa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 533ac: 4a81 tstl %d1 <== NOT EXECUTED 533ae: 660e bnes 533be <== NOT EXECUTED * but there is actually no way (in normal circumstances) that the * start can fail. The id and starting address are known to be * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ initialized = false; 533b0: 7013 moveq #19,%d0 <== NOT EXECUTED } return status; } 533b2: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 533b6: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 533ba: 4e5e unlk %fp <== NOT EXECUTED 533bc: 4e75 rts <== NOT EXECUTED 533be: 4280 clrl %d0 <== NOT EXECUTED 533c0: 1039 0006 b7b2 moveb 6b7b2 ,%d0 <== NOT EXECUTED 533c6: b081 cmpl %d1,%d0 <== NOT EXECUTED 533c8: 643c bccs 53406 <== NOT EXECUTED * 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 ) 533ca: 70ff moveq #-1,%d0 <== NOT EXECUTED 533cc: b081 cmpl %d1,%d0 <== NOT EXECUTED 533ce: 66e0 bnes 533b0 <== NOT EXECUTED 533d0: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 533d6: 5280 addql #1,%d0 <== NOT EXECUTED 533d8: 4283 clrl %d3 <== NOT EXECUTED 533da: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 533e0: 1439 0006 ca80 moveb 6ca80 ,%d2 <== NOT EXECUTED initialized = true; 533e6: 7001 moveq #1,%d0 <== NOT EXECUTED 533e8: 13c0 0006 ca80 moveb %d0,6ca80 <== NOT EXECUTED _Thread_Enable_dispatch(); 533ee: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) 533f4: 4a02 tstb %d2 <== NOT EXECUTED 533f6: 6736 beqs 5342e <== NOT EXECUTED */ initialized = false; } return status; } 533f8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 533fc: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 53400: 4e5e unlk %fp <== NOT EXECUTED _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) 53402: 700e moveq #14,%d0 <== NOT EXECUTED */ initialized = false; } return status; } 53404: 4e75 rts <== NOT EXECUTED 53406: 2039 0007 1600 movel 71600 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 5340c: 5280 addql #1,%d0 <== NOT EXECUTED 5340e: 2601 movel %d1,%d3 <== NOT EXECUTED 53410: 23c0 0007 1600 movel %d0,71600 <_Thread_Dispatch_disable_level> <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 53416: 1439 0006 ca80 moveb 6ca80 ,%d2 <== NOT EXECUTED initialized = true; 5341c: 7001 moveq #1,%d0 <== NOT EXECUTED 5341e: 13c0 0006 ca80 moveb %d0,6ca80 <== NOT EXECUTED _Thread_Enable_dispatch(); 53424: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) 5342a: 4a02 tstb %d2 <== NOT EXECUTED 5342c: 66ca bnes 533f8 <== NOT EXECUTED * 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( 5342e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 53432: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 53436: 08c1 000f bset #15,%d1 <== NOT EXECUTED 5343a: 2f01 movel %d1,%sp@- <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5343c: 203c 0007 157c movel #464252,%d0 <== NOT EXECUTED 53442: 4878 0100 pea 100 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 53446: 223c 0007 1578 movel #464248,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5344c: 23c0 0007 1578 movel %d0,71578 <_Timer_To_be_inserted> <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 53452: 23c1 0007 1580 movel %d1,71580 <_Timer_To_be_inserted+0x8> <== NOT EXECUTED 53458: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5345c: 2f03 movel %d3,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 5345e: 42b9 0007 157c clrl 7157c <_Timer_To_be_inserted+0x4> <== NOT EXECUTED 53464: 2f3c 5449 4d45 movel #1414090053,%sp@- <== NOT EXECUTED 5346a: 4eb9 0005 25cc jsr 525cc <== NOT EXECUTED /* 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) { 53470: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED 53476: 4a80 tstl %d0 <== NOT EXECUTED 53478: 6600 00b8 bnew 53532 <== NOT EXECUTED * to a TCB pointer from here out. * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 5347c: 226e fffc moveal %fp@(-4),%a1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( Objects_Information *information, uint16_t index ) { if ( index > information->maximum ) 53480: 4280 clrl %d0 <== NOT EXECUTED 53482: 4281 clrl %d1 <== NOT EXECUTED 53484: 3039 0007 152a movew 7152a <_RTEMS_tasks_Information+0xe>,%d0 <== NOT EXECUTED 5348a: 3209 movew %a1,%d1 <== NOT EXECUTED 5348c: b081 cmpl %d1,%d0 <== NOT EXECUTED 5348e: 6400 00b6 bccw 53546 <== NOT EXECUTED 53492: 91c8 subal %a0,%a0 <== NOT EXECUTED the_watchdog->routine = routine; 53494: 203c 0005 610c movel #352524,%d0 <== NOT EXECUTED 5349a: 2140 0064 movel %d0,%a0@(100) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5349e: 223c 0007 155c movel #464220,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 534a4: 203c 0007 1558 movel #464216,%d0 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 534aa: 42a8 006c clrl %a0@(108) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 534ae: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 534b2: 23c1 0007 1558 movel %d1,71558 <_Timer_Ticks_chain> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 534b8: 223c 0007 1570 movel #464240,%d1 <== NOT EXECUTED 534be: 2149 0068 movel %a1,%a0@(104) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 534c2: 23c0 0007 1560 movel %d0,71560 <_Timer_Ticks_chain+0x8> <== NOT EXECUTED 534c8: 203c 0007 156c movel #464236,%d0 <== NOT EXECUTED _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 534ce: 42a7 clrl %sp@- <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 534d0: 23c1 0007 156c movel %d1,7156c <_Timer_Seconds_chain> <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 534d6: 223c 0005 610c movel #352524,%d1 <== NOT EXECUTED 534dc: 4879 0005 36ae pea 536ae <_Timer_Server_body> <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 534e2: 23c0 0007 1574 movel %d0,71574 <_Timer_Seconds_chain+0x8> <== NOT EXECUTED /* * Initialize the pointer to the timer reset method so applications * that do not use the Timer Server do not have to pull it in. */ _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; 534e8: 203c 0005 35f2 movel #341490,%d0 <== NOT EXECUTED 534ee: 23c1 0007 15a0 movel %d1,715a0 <_Timer_Seconds_timer+0x1c> <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( 534f4: 2f09 movel %a1,%sp@- <== NOT EXECUTED /* * Initialize the pointer to the timer reset method so applications * that do not use the Timer Server do not have to pull it in. */ _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; 534f6: 23c0 0007 18be movel %d0,718be <_Timer_Server_schedule_operation> <== NOT EXECUTED * to a TCB pointer from here out. * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 534fc: 23c8 0007 18c2 movel %a0,718c2 <_Timer_Server> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 53502: 42b9 0007 155c clrl 7155c <_Timer_Ticks_chain+0x4> <== NOT EXECUTED 53508: 42b9 0007 1570 clrl 71570 <_Timer_Seconds_chain+0x4> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 5350e: 42b9 0007 158c clrl 7158c <_Timer_Seconds_timer+0x8> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 53514: 23c9 0007 15a4 movel %a1,715a4 <_Timer_Seconds_timer+0x20> <== NOT EXECUTED the_watchdog->user_data = user_data; 5351a: 42b9 0007 15a8 clrl 715a8 <_Timer_Seconds_timer+0x24> <== NOT EXECUTED _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 53520: 4eb9 0005 2b10 jsr 52b10 <== NOT EXECUTED id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 53526: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 5352c: 4a80 tstl %d0 <== NOT EXECUTED 5352e: 6700 fe82 beqw 533b2 <== NOT EXECUTED */ initialized = false; } return status; } 53532: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 53536: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED * but there is actually no way (in normal circumstances) that the * start can fail. The id and starting address are known to be * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ initialized = false; 5353a: 4201 clrb %d1 <== NOT EXECUTED } return status; } 5353c: 4e5e unlk %fp <== NOT EXECUTED * but there is actually no way (in normal circumstances) that the * start can fail. The id and starting address are known to be * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ initialized = false; 5353e: 13c1 0006 ca80 moveb %d1,6ca80 <== NOT EXECUTED } return status; } 53544: 4e75 rts <== NOT EXECUTED 53546: 2079 0007 1536 moveal 71536 <_RTEMS_tasks_Information+0x1a>,%a0 <== NOT EXECUTED 5354c: 2070 1c00 moveal %a0@(00000000,%d1:l:4),%a0 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 53550: 203c 0005 610c movel #352524,%d0 <== NOT EXECUTED 53556: 2140 0064 movel %d0,%a0@(100) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5355a: 223c 0007 155c movel #464220,%d1 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 53560: 203c 0007 1558 movel #464216,%d0 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 53566: 42a8 006c clrl %a0@(108) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 5356a: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5356e: 23c1 0007 1558 movel %d1,71558 <_Timer_Ticks_chain> <== NOT EXECUTED 53574: 223c 0007 1570 movel #464240,%d1 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 5357a: 2149 0068 movel %a1,%a0@(104) <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 5357e: 23c0 0007 1560 movel %d0,71560 <_Timer_Ticks_chain+0x8> <== NOT EXECUTED 53584: 203c 0007 156c movel #464236,%d0 <== NOT EXECUTED _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 5358a: 42a7 clrl %sp@- <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5358c: 23c1 0007 156c movel %d1,7156c <_Timer_Seconds_chain> <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 53592: 223c 0005 610c movel #352524,%d1 <== NOT EXECUTED 53598: 4879 0005 36ae pea 536ae <_Timer_Server_body> <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 5359e: 23c0 0007 1574 movel %d0,71574 <_Timer_Seconds_chain+0x8> <== NOT EXECUTED /* * Initialize the pointer to the timer reset method so applications * that do not use the Timer Server do not have to pull it in. */ _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; 535a4: 203c 0005 35f2 movel #341490,%d0 <== NOT EXECUTED 535aa: 23c1 0007 15a0 movel %d1,715a0 <_Timer_Seconds_timer+0x1c> <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( 535b0: 2f09 movel %a1,%sp@- <== NOT EXECUTED /* * Initialize the pointer to the timer reset method so applications * that do not use the Timer Server do not have to pull it in. */ _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; 535b2: 23c0 0007 18be movel %d0,718be <_Timer_Server_schedule_operation> <== NOT EXECUTED * to a TCB pointer from here out. * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 535b8: 23c8 0007 18c2 movel %a0,718c2 <_Timer_Server> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 535be: 42b9 0007 155c clrl 7155c <_Timer_Ticks_chain+0x4> <== NOT EXECUTED 535c4: 42b9 0007 1570 clrl 71570 <_Timer_Seconds_chain+0x4> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 535ca: 42b9 0007 158c clrl 7158c <_Timer_Seconds_timer+0x8> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 535d0: 23c9 0007 15a4 movel %a1,715a4 <_Timer_Seconds_timer+0x20> <== NOT EXECUTED the_watchdog->user_data = user_data; 535d6: 42b9 0007 15a8 clrl 715a8 <_Timer_Seconds_timer+0x24> <== NOT EXECUTED _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 535dc: 4eb9 0005 2b10 jsr 52b10 <== NOT EXECUTED id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 535e2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 535e8: 4a80 tstl %d0 <== NOT EXECUTED 535ea: 6600 ff46 bnew 53532 <== NOT EXECUTED 535ee: 6000 fdc2 braw 533b2 <== NOT EXECUTED 000530e4 : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 530e4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 530e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 530ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 530ec: 486e fffc pea %fp@(-4) <== NOT EXECUTED 530f0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 530f4: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 530fa: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 53100: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 53106: 2440 moveal %d0,%a2 <== NOT EXECUTED 53108: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5310c: 670e beqs 5311c <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5310e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 53112: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 53116: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 53118: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5311a: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 5311c: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED 53120: 7201 moveq #1,%d1 <== NOT EXECUTED 53122: b280 cmpl %d0,%d1 <== NOT EXECUTED 53124: 6756 beqs 5317c <== NOT EXECUTED 53126: 621c bhis 53144 <== NOT EXECUTED 53128: 123c 0004 moveb #4,%d1 <== NOT EXECUTED 5312c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5312e: 6538 bcss 53168 <== NOT EXECUTED (*_Timer_Server_schedule_operation)( the_timer ); break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); 53130: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53136: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5313a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5313e: 4e5e unlk %fp <== NOT EXECUTED (*_Timer_Server_schedule_operation)( the_timer ); break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); 53140: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53142: 4e75 rts <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: switch ( the_timer->the_class ) { case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 53144: 240a movel %a2,%d2 <== NOT EXECUTED 53146: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED 5314c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5314e: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 53154: 2f02 movel %d2,%sp@- <== NOT EXECUTED 53156: 4879 0007 16dc pea 716dc <_Watchdog_Ticks_chain> <== NOT EXECUTED 5315c: 4eb9 0005 7810 jsr 57810 <_Watchdog_Insert> <== NOT EXECUTED 53162: dffc 0000 000c addal #12,%sp <== NOT EXECUTED case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 53168: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 5316e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53170: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 53174: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 53178: 4e5e unlk %fp <== NOT EXECUTED 5317a: 4e75 rts <== NOT EXECUTED case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { 5317c: 4ab9 0007 18be tstl 718be <_Timer_Server_schedule_operation> <== NOT EXECUTED 53182: 6720 beqs 531a4 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 53184: 486a 0010 pea %a2@(16) <== NOT EXECUTED 53188: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED (*_Timer_Server_schedule_operation)( the_timer ); 5318e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 53190: 2079 0007 18be moveal 718be <_Timer_Server_schedule_operation>,%a0 <== NOT EXECUTED 53196: 4e90 jsr %a0@ <== NOT EXECUTED 53198: 508f addql #8,%sp <== NOT EXECUTED case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 5319a: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED 531a0: 4280 clrl %d0 <== NOT EXECUTED 531a2: 60cc bras 53170 <== NOT EXECUTED _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { _Thread_Enable_dispatch(); 531a4: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 531aa: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 531ae: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 531b2: 4e5e unlk %fp <== NOT EXECUTED _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { _Thread_Enable_dispatch(); 531b4: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 531b6: 4e75 rts 000531b8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 531b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 531bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 531be: 4ab9 0007 18c2 tstl 718c2 <_Timer_Server> <== NOT EXECUTED 531c4: 6700 00bc beqw 53282 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) 531c8: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 531cc: 6700 00be beqw 5328c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 531d0: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 531d4: 660a bnes 531e0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 531d6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 531da: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 531dc: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 531de: 4e75 rts <== NOT EXECUTED 531e0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 531e4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 531e8: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 531ee: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 531f4: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 531fa: 2440 moveal %d0,%a2 <== NOT EXECUTED 531fc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 53200: 6664 bnes 53266 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 53202: 486a 0010 pea %a2@(16) <== NOT EXECUTED 53206: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED _ISR_Disable( level ); 5320c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 53212: 40c1 movew %sr,%d1 <== NOT EXECUTED 53214: 8081 orl %d1,%d0 <== NOT EXECUTED 53216: 46c0 movew %d0,%sr <== NOT EXECUTED /* * 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 ) { 53218: 588f addql #4,%sp <== NOT EXECUTED 5321a: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 5321e: 6650 bnes 53270 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 53220: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 53224: 2540 002c movel %d0,%a2@(44) <== NOT EXECUTED /* * 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; 53228: 7001 moveq #1,%d0 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 5322a: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED 53230: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 53234: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 53238: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 5323c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 53240: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED 53244: 2540 001c movel %d0,%a2@(28) <== NOT EXECUTED _ISR_Enable( level ); 53248: 46c1 movew %d1,%sr <== NOT EXECUTED /* * _Timer_Server_schedule_operation != NULL because we checked that * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); 5324a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5324c: 2079 0007 18be moveal 718be <_Timer_Server_schedule_operation>,%a0 <== NOT EXECUTED 53252: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 53254: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5325a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); _Thread_Enable_dispatch(); 5325e: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53260: 4e5e unlk %fp <== NOT EXECUTED * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); _Thread_Enable_dispatch(); 53262: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53264: 4e75 rts <== NOT EXECUTED 53266: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5326a: 4e5e unlk %fp <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 5326c: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5326e: 4e75 rts <== NOT EXECUTED * 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 ) { _ISR_Enable( level ); 53270: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Enable_dispatch(); 53272: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53278: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5327c: 4e5e unlk %fp <== NOT EXECUTED * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); _Thread_Enable_dispatch(); 5327e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53280: 4e75 rts <== NOT EXECUTED 53282: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 53286: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 53288: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5328a: 4e75 rts <== NOT EXECUTED 5328c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 53290: 4e5e unlk %fp <== NOT EXECUTED ISR_Level level; if ( !_Timer_Server ) return RTEMS_INCORRECT_STATE; if ( !routine ) 53292: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53294: 4e75 rts <== NOT EXECUTED ... 00053298 : Objects_Id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 53298: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5329c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5329e: 2f02 movel %d2,%sp@- <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_Timer_Server ) 532a0: 4ab9 0007 18c2 tstl 718c2 <_Timer_Server> <== NOT EXECUTED 532a6: 6700 00da beqw 53382 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 532aa: 4a39 0007 1614 tstb 71614 <_TOD_Is_set> <== NOT EXECUTED 532b0: 6700 00b4 beqw 53366 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) 532b4: 4aae 0010 tstl %fp@(16) <== NOT EXECUTED 532b8: 6700 00ba beqw 53374 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 532bc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 532c0: 4eb9 0005 010c jsr 5010c <_TOD_Validate> <== NOT EXECUTED 532c6: 588f addql #4,%sp <== NOT EXECUTED 532c8: 4a00 tstb %d0 <== NOT EXECUTED 532ca: 660e bnes 532da <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 532cc: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 532d0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 532d4: 4e5e unlk %fp <== NOT EXECUTED */ (*_Timer_Server_schedule_operation)( the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 532d6: 7014 moveq #20,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 532d8: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 532da: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 532de: 4eb9 0004 ffd8 jsr 4ffd8 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch ) 532e4: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 532e6: 2400 movel %d0,%d2 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch ) 532e8: b0b9 0007 1692 cmpl 71692 <_TOD_Now>,%d0 <== NOT EXECUTED 532ee: 63dc blss 532cc <== NOT EXECUTED 532f0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 532f4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 532f8: 4879 0007 1882 pea 71882 <_Timer_Information> <== NOT EXECUTED 532fe: 4eb9 0005 5a20 jsr 55a20 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 53304: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 5330a: 2440 moveal %d0,%a2 <== NOT EXECUTED 5330c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 53310: 667e bnes 53390 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 53312: 486a 0010 pea %a2@(16) <== NOT EXECUTED 53316: 4eb9 0005 7958 jsr 57958 <_Watchdog_Remove> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 5331c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 53320: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 53324: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 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; 53328: 94b9 0007 1692 subl 71692 <_TOD_Now>,%d2 <== NOT EXECUTED 5332e: 2540 002c movel %d0,%a2@(44) <== NOT EXECUTED 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; 53332: 7003 moveq #3,%d0 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 53334: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED 5333a: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch; 5333e: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 53342: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED /* * _Timer_Server_schedule_operation != NULL because we checked that * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); 53346: 2f0a movel %a2,%sp@- <== NOT EXECUTED 53348: 2079 0007 18be moveal 718be <_Timer_Server_schedule_operation>,%a0 <== NOT EXECUTED 5334e: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 53350: 4eb9 0005 62a4 jsr 562a4 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53356: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5335a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); _Thread_Enable_dispatch(); 5335e: 508f addql #8,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53360: 4e5e unlk %fp <== NOT EXECUTED * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); _Thread_Enable_dispatch(); 53362: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53364: 4e75 rts <== NOT EXECUTED 53366: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5336a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5336e: 4e5e unlk %fp <== NOT EXECUTED rtems_interval seconds; if ( !_Timer_Server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 53370: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53372: 4e75 rts <== NOT EXECUTED 53374: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 53378: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5337c: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) 5337e: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 53380: 4e75 rts <== NOT EXECUTED 53382: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 53386: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5338a: 4e5e unlk %fp <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_Timer_Server ) 5338c: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5338e: 4e75 rts <== NOT EXECUTED 53390: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 53394: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 53398: 4e5e unlk %fp <== NOT EXECUTED seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 5339a: 7004 moveq #4,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5339c: 4e75 rts <== NOT EXECUTED ... 00042344 : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 42344: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 42348: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED 4234c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 42350: 2c02 movel %d2,%d6 <== NOT EXECUTED 42352: 0286 2000 0000 andil #536870912,%d6 <== NOT EXECUTED 42358: 672e beqs 42388 <== NOT EXECUTED { if (rtems_panic_in_progress++) 4235a: 2039 0005 85e8 movel 585e8 ,%d0 <== NOT EXECUTED 42360: 2200 movel %d0,%d1 <== NOT EXECUTED 42362: 5281 addql #1,%d1 <== NOT EXECUTED 42364: 23c1 0005 85e8 movel %d1,585e8 <== NOT EXECUTED 4236a: 4a80 tstl %d0 <== NOT EXECUTED 4236c: 670e beqs 4237c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4236e: 2039 0005 8754 movel 58754 <_Thread_Dispatch_disable_level>,%d0 <== NOT EXECUTED 42374: 5280 addql #1,%d0 <== NOT EXECUTED 42376: 23c0 0005 8754 movel %d0,58754 <_Thread_Dispatch_disable_level> <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 4237c: 7002 moveq #2,%d0 <== NOT EXECUTED 4237e: b0b9 0005 85e8 cmpl 585e8 ,%d0 <== NOT EXECUTED 42384: 6d00 00d6 bltw 4245c <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 42388: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 4238e: 49f9 0004 c8e2 lea 4c8e2 ,%a4 <== NOT EXECUTED 42394: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 42398: 4e94 jsr %a4@ <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 4239a: 2802 movel %d2,%d4 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 4239c: 588f addql #4,%sp <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; 4239e: 0284 8fff ffff andil #-1879048193,%d4 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 423a4: 0802 001e btst #30,%d2 <== NOT EXECUTED 423a8: 6600 00ec bnew 42496 <== 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); 423ac: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED } (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 423b0: 4283 clrl %d3 <== 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); 423b2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 423b6: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 423bc: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 423c0: 4eb9 0005 0216 jsr 50216 <== NOT EXECUTED 423c6: 45f9 0004 cc5c lea 4cc5c ,%a2 <== NOT EXECUTED 423cc: 2a00 movel %d0,%d5 <== NOT EXECUTED if (status) 423ce: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 423d4: 4a84 tstl %d4 <== NOT EXECUTED 423d6: 6600 0090 bnew 42468 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 423da: 4a83 tstl %d3 <== NOT EXECUTED 423dc: 6732 beqs 42410 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 423de: 6f14 bles 423f4 <== NOT EXECUTED 423e0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 423e2: 47f9 0004 daf8 lea 4daf8 ,%a3 <== NOT EXECUTED 423e8: 4e93 jsr %a3@ <== NOT EXECUTED 423ea: 588f addql #4,%sp <== NOT EXECUTED 423ec: 2040 moveal %d0,%a0 <== NOT EXECUTED 423ee: 4a10 tstb %a0@ <== NOT EXECUTED 423f0: 6600 00ea bnew 424dc <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 423f4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 423f6: 4879 0005 575b pea 5575b <== NOT EXECUTED 423fc: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 42402: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42406: 4e92 jsr %a2@ <== NOT EXECUTED 42408: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4240e: da80 addl %d0,%d5 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 42410: 4879 0005 5f0f pea 55f0f <== NOT EXECUTED 42416: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 4241c: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42420: 4e92 jsr %a2@ <== NOT EXECUTED (void) fflush(stderr); 42422: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== 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"); 42428: 2800 movel %d0,%d4 <== NOT EXECUTED (void) fflush(stderr); 4242a: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 4242e: 4e94 jsr %a4@ <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 42430: 0282 3000 0000 andil #805306368,%d2 <== NOT EXECUTED 42436: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 4243c: 6700 0090 beqw 424ce <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 42440: 4a86 tstl %d6 <== NOT EXECUTED 42442: 6700 00bc beqw 42500 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 42446: 4879 0005 576f pea 5576f <== NOT EXECUTED 4244c: 42a7 clrl %sp@- <== NOT EXECUTED 4244e: 4eb9 0004 2534 jsr 42534 <== NOT EXECUTED _exit(local_errno); 42454: 2f03 movel %d3,%sp@- <== NOT EXECUTED 42456: 4eb9 0004 2a68 jsr 42a68 <_exit> <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 4245c: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 42462: 4e5e unlk %fp <== NOT EXECUTED _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); abort(); 42464: 4280 clrl %d0 <== NOT EXECUTED } } return chars_written; } 42466: 4e75 rts <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 42468: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4246a: 4879 0005 5a4c pea 55a4c <== NOT EXECUTED 42470: 4eb9 0004 a118 jsr 4a118 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 42476: 2f00 movel %d0,%sp@- <== NOT EXECUTED 42478: 4879 0005 5740 pea 55740 <== NOT EXECUTED 4247e: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 42484: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 42488: 4e92 jsr %a2@ <== NOT EXECUTED 4248a: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 42490: da80 addl %d0,%d5 <== NOT EXECUTED 42492: 6000 ff46 braw 423da <== 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; 42496: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 4249c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4249e: 2610 movel %a0@,%d3 <== 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); 424a0: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 424a4: 45f9 0004 cc5c lea 4cc5c ,%a2 <== NOT EXECUTED 424aa: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 424ae: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 424b4: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 424b8: 4eb9 0005 0216 jsr 50216 <== NOT EXECUTED if (status) 424be: dffc 0000 000c addal #12,%sp <== 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); 424c4: 2a00 movel %d0,%d5 <== NOT EXECUTED if (status) 424c6: 4a84 tstl %d4 <== NOT EXECUTED 424c8: 6700 ff10 beqw 423da <== NOT EXECUTED 424cc: 609a bras 42468 <== 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"); 424ce: 2004 movel %d4,%d0 <== NOT EXECUTED 424d0: d085 addl %d5,%d0 <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 424d2: 4cee 1c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a4 <== NOT EXECUTED 424d8: 4e5e unlk %fp <== NOT EXECUTED 424da: 4e75 rts <== 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)); 424dc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 424de: 4e93 jsr %a3@ <== NOT EXECUTED 424e0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 424e2: 4879 0005 574e pea 5574e <== NOT EXECUTED 424e8: 2079 0005 712c moveal 5712c <_impure_ptr>,%a0 <== NOT EXECUTED 424ee: 2f28 000c movel %a0@(12),%sp@- <== NOT EXECUTED 424f2: 4e92 jsr %a2@ <== NOT EXECUTED 424f4: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 424fa: da80 addl %d0,%d5 <== NOT EXECUTED 424fc: 6000 ff12 braw 42410 <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 42500: 4879 0005 5784 pea 55784 <== NOT EXECUTED 42506: 42a7 clrl %sp@- <== NOT EXECUTED 42508: 4eb9 0004 2534 jsr 42534 <== NOT EXECUTED abort(); 4250e: 4eb9 0004 c5d0 jsr 4c5d0 <== NOT EXECUTED 000606a8 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 606a8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 606ac: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ <== NOT EXECUTED 606b0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 606b4: 4285 clrl %d5 <== NOT EXECUTED 606b6: 4282 clrl %d2 <== NOT EXECUTED 606b8: 283c 7fff ffff movel #2147483647,%d4 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 606be: 47f9 0007 39e0 lea 739e0 <__srget_r>,%a3 <== NOT EXECUTED 606c4: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED 606c8: 5380 subql #1,%d0 <== NOT EXECUTED 606ca: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED 606ce: 6d62 blts 60732 <== NOT EXECUTED 606d0: 2052 moveal %a2@,%a0 <== NOT EXECUTED 606d2: 4281 clrl %d1 <== NOT EXECUTED 606d4: 1210 moveb %a0@,%d1 <== NOT EXECUTED 606d6: 5288 addql #1,%a0 <== NOT EXECUTED 606d8: 2488 movel %a0,%a2@ <== NOT EXECUTED if (c == ':') 606da: 703a moveq #58,%d0 <== NOT EXECUTED 606dc: b081 cmpl %d1,%d0 <== NOT EXECUTED 606de: 6766 beqs 60746 <== NOT EXECUTED break; if (sign == 0) { 606e0: 4a85 tstl %d5 <== NOT EXECUTED 606e2: 660a bnes 606ee <== NOT EXECUTED if (c == '-') { 606e4: 7c2d moveq #45,%d6 <== NOT EXECUTED 606e6: bc81 cmpl %d1,%d6 <== NOT EXECUTED 606e8: 6700 0086 beqw 60770 <== NOT EXECUTED sign = -1; limit++; continue; 606ec: 7a01 moveq #1,%d5 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 606ee: 2079 0008 5aa4 moveal 85aa4 <__ctype_ptr>,%a0 <== NOT EXECUTED 606f4: 1030 1800 moveb %a0@(00000000,%d1:l),%d0 <== NOT EXECUTED 606f8: 49c0 extbl %d0 <== NOT EXECUTED 606fa: 44c0 movew %d0,%ccr <== NOT EXECUTED 606fc: 6666 bnes 60764 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 606fe: 2004 movel %d4,%d0 <== NOT EXECUTED 60700: 7c0a moveq #10,%d6 <== NOT EXECUTED 60702: 4c46 0003 remul %d6,%d3,%d0 <== NOT EXECUTED 60706: 4c46 0000 remul %d6,%d0,%d0 <== NOT EXECUTED 6070a: b082 cmpl %d2,%d0 <== NOT EXECUTED 6070c: 6556 bcss 60764 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 6070e: 0681 ffff ffd0 addil #-48,%d1 <== NOT EXECUTED if ((i > (limit / 10)) 60714: b082 cmpl %d2,%d0 <== NOT EXECUTED 60716: 6748 beqs 60760 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 60718: 2002 movel %d2,%d0 <== NOT EXECUTED 6071a: e788 lsll #3,%d0 <== NOT EXECUTED 6071c: 2240 moveal %d0,%a1 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 6071e: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 60722: 41f1 2a00 lea %a1@(00000000,%d2:l:2),%a0 <== NOT EXECUTED 60726: 2401 movel %d1,%d2 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 60728: 5380 subql #1,%d0 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 6072a: d488 addl %a0,%d2 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 6072c: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED 60730: 6c9e bges 606d0 <== NOT EXECUTED 60732: 2f0a movel %a2,%sp@- <== NOT EXECUTED 60734: 2f39 0008 5ab0 movel 85ab0 <_impure_ptr>,%sp@- <== NOT EXECUTED 6073a: 4e93 jsr %a3@ <== NOT EXECUTED 6073c: 2200 movel %d0,%d1 <== NOT EXECUTED 6073e: 508f addql #8,%sp <== NOT EXECUTED if (c == ':') 60740: 703a moveq #58,%d0 <== NOT EXECUTED 60742: b081 cmpl %d1,%d0 <== NOT EXECUTED 60744: 669a bnes 606e0 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 60746: 4a85 tstl %d5 <== NOT EXECUTED 60748: 671a beqs 60764 <== NOT EXECUTED return 0; *val = i * sign; 6074a: 4c02 5800 mulsl %d2,%d5 <== NOT EXECUTED 6074e: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 60752: 2085 movel %d5,%a0@ <== NOT EXECUTED return 1; } 60754: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 6075a: 4e5e unlk %fp <== NOT EXECUTED return 0; i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; 6075c: 7001 moveq #1,%d0 <== NOT EXECUTED return 1; } 6075e: 4e75 rts <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 60760: b681 cmpl %d1,%d3 <== NOT EXECUTED 60762: 64b4 bccs 60718 <== NOT EXECUTED } if (sign == 0) return 0; *val = i * sign; return 1; } 60764: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 6076a: 4e5e unlk %fp <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 6076c: 4280 clrl %d0 <== NOT EXECUTED } 6076e: 4e75 rts <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 60770: 5284 addql #1,%d4 <== NOT EXECUTED 60772: 7aff moveq #-1,%d5 <== NOT EXECUTED 60774: 6000 ff4e braw 606c4 <== NOT EXECUTED 00060778 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 60778: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 6077c: 48d7 3c00 moveml %a2-%a5,%sp@ <== NOT EXECUTED 60780: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 60784: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 60788: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 6078c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 60790: 286e 0014 moveal %fp@(20),%a4 <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 60794: 5380 subql #1,%d0 <== NOT EXECUTED static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 60796: 2093 movel %a3@,%a0@ <== NOT EXECUTED for (;;) { c = getc(fp); 60798: 4bf9 0007 39e0 lea 739e0 <__srget_r>,%a5 <== NOT EXECUTED 6079e: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED 607a2: 6d36 blts 607da <== NOT EXECUTED 607a4: 2052 moveal %a2@,%a0 <== NOT EXECUTED 607a6: 4280 clrl %d0 <== NOT EXECUTED 607a8: 1010 moveb %a0@,%d0 <== NOT EXECUTED 607aa: 5288 addql #1,%a0 <== NOT EXECUTED 607ac: 2488 movel %a0,%a2@ <== NOT EXECUTED if (c == ':') { 607ae: 723a moveq #58,%d1 <== NOT EXECUTED 607b0: b280 cmpl %d0,%d1 <== NOT EXECUTED 607b2: 6738 beqs 607ec <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { 607b4: 720a moveq #10,%d1 <== NOT EXECUTED 607b6: b280 cmpl %d0,%d1 <== NOT EXECUTED 607b8: 674c beqs 60806 <== NOT EXECUTED if (!nlFlag) return 0; break; } if (c == EOF) 607ba: 72ff moveq #-1,%d1 <== NOT EXECUTED 607bc: b280 cmpl %d0,%d1 <== NOT EXECUTED 607be: 674c beqs 6080c <== NOT EXECUTED return 0; if (*nleft < 2) 607c0: 7201 moveq #1,%d1 <== NOT EXECUTED 607c2: b294 cmpl %a4@,%d1 <== NOT EXECUTED 607c4: 6446 bccs 6080c <== NOT EXECUTED return 0; **bufp = c; 607c6: 2053 moveal %a3@,%a0 <== NOT EXECUTED 607c8: 1080 moveb %d0,%a0@ <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 607ca: 202a 0004 movel %a2@(4),%d0 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 607ce: 5293 addql #1,%a3@ <== NOT EXECUTED --(*nleft); 607d0: 5394 subql #1,%a4@ <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 607d2: 5380 subql #1,%d0 <== NOT EXECUTED 607d4: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED 607d8: 6cca bges 607a4 <== NOT EXECUTED 607da: 2f0a movel %a2,%sp@- <== NOT EXECUTED 607dc: 2f39 0008 5ab0 movel 85ab0 <_impure_ptr>,%sp@- <== NOT EXECUTED 607e2: 4e95 jsr %a5@ <== NOT EXECUTED 607e4: 508f addql #8,%sp <== NOT EXECUTED if (c == ':') { 607e6: 723a moveq #58,%d1 <== NOT EXECUTED 607e8: b280 cmpl %d0,%d1 <== NOT EXECUTED 607ea: 66c8 bnes 607b4 <== NOT EXECUTED if (nlFlag) 607ec: 4aae 0018 tstl %fp@(24) <== NOT EXECUTED 607f0: 661a bnes 6080c <== NOT EXECUTED return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 607f2: 2053 moveal %a3@,%a0 <== NOT EXECUTED 607f4: 4210 clrb %a0@ <== NOT EXECUTED ++(*bufp); 607f6: 5293 addql #1,%a3@ <== NOT EXECUTED --(*nleft); 607f8: 5394 subql #1,%a4@ <== NOT EXECUTED return 1; } 607fa: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 <== NOT EXECUTED 60800: 4e5e unlk %fp <== NOT EXECUTED ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); 60802: 7001 moveq #1,%d0 <== NOT EXECUTED return 1; } 60804: 4e75 rts <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 60806: 4aae 0018 tstl %fp@(24) <== NOT EXECUTED 6080a: 66e6 bnes 607f2 <== NOT EXECUTED } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; } 6080c: 4cee 3c00 fff0 moveml %fp@(-16),%a2-%a5 <== NOT EXECUTED 60812: 4e5e unlk %fp <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 60814: 4280 clrl %d0 <== NOT EXECUTED } 60816: 4e75 rts 00060818 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 60818: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 6081c: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60820: 42a7 clrl %sp@- <== NOT EXECUTED 60822: 280e movel %fp,%d4 <== NOT EXECUTED 60824: 0684 0000 0014 addil #20,%d4 <== NOT EXECUTED 6082a: 2f04 movel %d4,%sp@- <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 6082c: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 60830: 260e movel %fp,%d3 <== NOT EXECUTED 60832: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED 60838: 2f03 movel %d3,%sp@- <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 6083a: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 6083e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 60840: 45fa ff36 lea %pc@(60778 ),%a2 <== NOT EXECUTED 60844: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60846: 4e92 jsr %a2@ <== NOT EXECUTED 60848: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 6084e: 4a80 tstl %d0 <== NOT EXECUTED 60850: 660c bnes 6085e <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; } 60852: 4cee 0c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a3 <== NOT EXECUTED 60858: 4e5e unlk %fp <== NOT EXECUTED *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 6085a: 4280 clrl %d0 <== NOT EXECUTED } 6085c: 4e75 rts <== NOT EXECUTED { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 6085e: 42a7 clrl %sp@- <== NOT EXECUTED 60860: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60862: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60864: 486b 0004 pea %a3@(4) <== NOT EXECUTED 60868: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6086a: 4e92 jsr %a2@ <== NOT EXECUTED 6086c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60872: 4a80 tstl %d0 <== NOT EXECUTED 60874: 67dc beqs 60852 <== NOT EXECUTED 60876: 486e fffc pea %fp@(-4) <== NOT EXECUTED 6087a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6087c: 4eba fe2a jsr %pc@(606a8 ) <== NOT EXECUTED 60880: 508f addql #8,%sp <== NOT EXECUTED 60882: 4a80 tstl %d0 <== NOT EXECUTED 60884: 67cc beqs 60852 <== NOT EXECUTED 60886: 4878 0001 pea 1 <== NOT EXECUTED 6088a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 6088c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6088e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 60892: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60894: 4e92 jsr %a2@ <== NOT EXECUTED 60896: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 6089c: 4a80 tstl %d0 <== NOT EXECUTED 6089e: 67b2 beqs 60852 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 608a0: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 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; 608a4: 376e fffe 0008 movew %fp@(-2),%a3@(8) <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 608aa: 1011 moveb %a1@,%d0 <== NOT EXECUTED 608ac: 6700 0082 beqw 60930 <== NOT EXECUTED 608b0: 2049 moveal %a1,%a0 <== NOT EXECUTED 608b2: 7201 moveq #1,%d1 <== NOT EXECUTED 608b4: 5288 addql #1,%a0 <== NOT EXECUTED if(*cp == ',') 608b6: 49c0 extbl %d0 <== NOT EXECUTED 608b8: 742c moveq #44,%d2 <== NOT EXECUTED 608ba: b480 cmpl %d0,%d2 <== NOT EXECUTED 608bc: 675c beqs 6091a <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 608be: 1010 moveb %a0@,%d0 <== NOT EXECUTED 608c0: 66f2 bnes 608b4 <== NOT EXECUTED 608c2: e589 lsll #2,%d1 <== NOT EXECUTED 608c4: 2001 movel %d1,%d0 <== NOT EXECUTED 608c6: 0680 0000 0013 addil #19,%d0 <== NOT EXECUTED } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 608cc: b0ae 0014 cmpl %fp@(20),%d0 <== NOT EXECUTED 608d0: 6280 bhis 60852 <== NOT EXECUTED return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 608d2: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 608d6: 72f0 moveq #-16,%d1 <== NOT EXECUTED 608d8: 0680 0000 000f addil #15,%d0 <== NOT EXECUTED 608de: c081 andl %d1,%d0 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 608e0: 2040 moveal %d0,%a0 <== NOT EXECUTED 608e2: 2089 movel %a1,%a0@ <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 608e4: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED /* * 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); 608e8: 2740 000a movel %d0,%a3@(10) <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 608ec: 1010 moveb %a0@,%d0 <== NOT EXECUTED 608ee: 6744 beqs 60934 <== NOT EXECUTED 608f0: 43e8 0001 lea %a0@(1),%a1 <== NOT EXECUTED 608f4: 7201 moveq #1,%d1 <== NOT EXECUTED if(*cp == ',') { 608f6: 49c0 extbl %d0 <== NOT EXECUTED 608f8: 742c moveq #44,%d2 <== NOT EXECUTED 608fa: b480 cmpl %d0,%d2 <== NOT EXECUTED 608fc: 6720 beqs 6091e <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 608fe: 1019 moveb %a1@+,%d0 <== NOT EXECUTED 60900: 66f4 bnes 608f6 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 60902: 206b 000a moveal %a3@(10),%a0 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60906: 2001 movel %d1,%d0 <== NOT EXECUTED 60908: e588 lsll #2,%d0 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 6090a: 42b0 0800 clrl %a0@(00000000,%d0:l) <== NOT EXECUTED 6090e: 7001 moveq #1,%d0 <== NOT EXECUTED return 1; } 60910: 4cee 0c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a3 <== NOT EXECUTED 60916: 4e5e unlk %fp <== NOT EXECUTED 60918: 4e75 rts <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') memcount++; 6091a: 5281 addql #1,%d1 <== NOT EXECUTED 6091c: 60a0 bras 608be <== NOT EXECUTED * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; 6091e: 4200 clrb %d0 <== NOT EXECUTED 60920: 1340 ffff moveb %d0,%a1@(-1) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 60924: 206b 000a moveal %a3@(10),%a0 <== NOT EXECUTED 60928: 2189 1c00 movel %a1,%a0@(00000000,%d1:l:4) <== NOT EXECUTED 6092c: 5281 addql #1,%d1 <== NOT EXECUTED 6092e: 60ce bras 608fe <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60930: 7017 moveq #23,%d0 <== NOT EXECUTED 60932: 6098 bras 608cc <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 60934: 206b 000a moveal %a3@(10),%a0 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 60938: 7004 moveq #4,%d0 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 6093a: 42b0 0800 clrl %a0@(00000000,%d0:l) <== NOT EXECUTED 6093e: 7001 moveq #1,%d0 <== NOT EXECUTED 60940: 60ce bras 60910 <== NOT EXECUTED 00060984 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60984: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 60988: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 6098c: 42a7 clrl %sp@- <== NOT EXECUTED 6098e: 280e movel %fp,%d4 <== NOT EXECUTED 60990: 0684 0000 0014 addil #20,%d4 <== NOT EXECUTED 60996: 2f04 movel %d4,%sp@- <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 60998: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 6099c: 260e movel %fp,%d3 <== NOT EXECUTED 6099e: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED 609a4: 2f03 movel %d3,%sp@- <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 609a6: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 609aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 609ac: 47fa fdca lea %pc@(60778 ),%a3 <== NOT EXECUTED 609b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 609b2: 4e93 jsr %a3@ <== NOT EXECUTED 609b4: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 609ba: 4a80 tstl %d0 <== NOT EXECUTED 609bc: 660c bnes 609ca <== NOT EXECUTED || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; } 609be: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 609c4: 4e5e unlk %fp <== NOT EXECUTED || !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; 609c6: 4280 clrl %d0 <== NOT EXECUTED } 609c8: 4e75 rts <== NOT EXECUTED size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 609ca: 42a7 clrl %sp@- <== NOT EXECUTED 609cc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 609ce: 2f03 movel %d3,%sp@- <== NOT EXECUTED 609d0: 486a 0004 pea %a2@(4) <== NOT EXECUTED 609d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 609d6: 4e93 jsr %a3@ <== NOT EXECUTED 609d8: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 609de: 4a80 tstl %d0 <== NOT EXECUTED 609e0: 67dc beqs 609be <== NOT EXECUTED 609e2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 609e6: 49fa fcc0 lea %pc@(606a8 ),%a4 <== NOT EXECUTED 609ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 609ec: 4e94 jsr %a4@ <== NOT EXECUTED 609ee: 508f addql #8,%sp <== NOT EXECUTED 609f0: 4a80 tstl %d0 <== NOT EXECUTED 609f2: 67ca beqs 609be <== NOT EXECUTED 609f4: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 609f8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 609fa: 4e94 jsr %a4@ <== NOT EXECUTED 609fc: 508f addql #8,%sp <== NOT EXECUTED 609fe: 4a80 tstl %d0 <== NOT EXECUTED 60a00: 67bc beqs 609be <== NOT EXECUTED 60a02: 42a7 clrl %sp@- <== NOT EXECUTED 60a04: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60a06: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60a08: 486a 000c pea %a2@(12) <== NOT EXECUTED 60a0c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60a0e: 4e93 jsr %a3@ <== NOT EXECUTED 60a10: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60a16: 4a80 tstl %d0 <== NOT EXECUTED 60a18: 67a4 beqs 609be <== NOT EXECUTED 60a1a: 42a7 clrl %sp@- <== NOT EXECUTED 60a1c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60a1e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60a20: 486a 0010 pea %a2@(16) <== NOT EXECUTED 60a24: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60a26: 4e93 jsr %a3@ <== NOT EXECUTED 60a28: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60a2e: 4a80 tstl %d0 <== NOT EXECUTED 60a30: 678c beqs 609be <== NOT EXECUTED 60a32: 42a7 clrl %sp@- <== NOT EXECUTED 60a34: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60a36: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60a38: 486a 0014 pea %a2@(20) <== NOT EXECUTED 60a3c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60a3e: 4e93 jsr %a3@ <== NOT EXECUTED 60a40: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60a46: 4a80 tstl %d0 <== NOT EXECUTED 60a48: 6700 ff74 beqw 609be <== NOT EXECUTED 60a4c: 4878 0001 pea 1 <== NOT EXECUTED 60a50: 2f04 movel %d4,%sp@- <== NOT EXECUTED 60a52: 2f03 movel %d3,%sp@- <== NOT EXECUTED 60a54: 486a 0018 pea %a2@(24) <== NOT EXECUTED 60a58: 2f02 movel %d2,%sp@- <== NOT EXECUTED 60a5a: 4e93 jsr %a3@ <== NOT EXECUTED 60a5c: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 60a62: 4a80 tstl %d0 <== NOT EXECUTED 60a64: 6700 ff58 beqw 609be <== NOT EXECUTED || !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; pwd->pw_gid = pwgid; 60a68: 7001 moveq #1,%d0 <== NOT EXECUTED 60a6a: 356e fffa 000a movew %fp@(-6),%a2@(10) <== NOT EXECUTED || !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; 60a70: 356e fffe 0008 movew %fp@(-2),%a2@(8) <== NOT EXECUTED pwd->pw_gid = pwgid; return 1; } 60a76: 4cee 1c1c ffe0 moveml %fp@(-32),%d2-%d4/%a2-%a4 <== NOT EXECUTED 60a7c: 4e5e unlk %fp <== NOT EXECUTED 60a7e: 4e75 rts 0006065a : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 6065a: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED */ int setgid( gid_t gid ) { 60660: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Gid = gid; 60664: 316e 000a 002c movew %fp@(10),%a0@(44) <== NOT EXECUTED return 0; } 6066a: 4e5e unlk %fp <== NOT EXECUTED 6066c: 4280 clrl %d0 <== NOT EXECUTED 6066e: 4e75 rts 00060bd0 : return NULL; return &grent; } void setgrent(void) { 60bd0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 60bd4: 4eb9 0006 0ac2 jsr 60ac2 <== NOT EXECUTED if (group_fp != NULL) 60bda: 2039 0009 8e92 movel 98e92 ,%d0 <== NOT EXECUTED 60be0: 670a beqs 60bec <== NOT EXECUTED fclose(group_fp); 60be2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60be4: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60bea: 588f addql #4,%sp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 60bec: 4879 0008 06d7 pea 806d7 <_CPU_m68k_BFFFO_table+0x486> <== NOT EXECUTED 60bf2: 4879 0008 1dc7 pea 81dc7 <== NOT EXECUTED 60bf8: 4eb9 0007 014c jsr 7014c <== NOT EXECUTED 60bfe: 508f addql #8,%sp <== NOT EXECUTED } 60c00: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); 60c02: 23c0 0009 8e92 movel %d0,98e92 <== NOT EXECUTED } 60c08: 4e75 rts 00060da2 : return NULL; return &pwent; } void setpwent(void) { 60da2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED init_etc_passwd_group(); 60da6: 4eb9 0006 0ac2 jsr 60ac2 <== NOT EXECUTED if (passwd_fp != NULL) 60dac: 2039 0009 8daa movel 98daa ,%d0 <== NOT EXECUTED 60db2: 670a beqs 60dbe <== NOT EXECUTED fclose(passwd_fp); 60db4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 60db6: 4eb9 0006 f952 jsr 6f952 <== NOT EXECUTED 60dbc: 588f addql #4,%sp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 60dbe: 4879 0008 06d7 pea 806d7 <_CPU_m68k_BFFFO_table+0x486> <== NOT EXECUTED 60dc4: 4879 0008 1d54 pea 81d54 <== NOT EXECUTED 60dca: 4eb9 0007 014c jsr 7014c <== NOT EXECUTED 60dd0: 508f addql #8,%sp <== NOT EXECUTED } 60dd2: 4e5e unlk %fp <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); 60dd4: 23c0 0009 8daa movel %d0,98daa <== NOT EXECUTED } 60dda: 4e75 rts 00046316 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 46316: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED */ int setuid( uid_t uid ) { 4631c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _POSIX_types_Uid = uid; 46320: 316e 000a 002a movew %fp@(10),%a0@(42) <== NOT EXECUTED return 0; } 46326: 4e5e unlk %fp <== NOT EXECUTED 46328: 4280 clrl %d0 <== NOT EXECUTED 4632a: 4e75 rts 00044238 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 44238: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4423c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4423e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 44242: 202a 003c movel %a2@(60),%d0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 44246: 2f02 movel %d2,%sp@- <== NOT EXECUTED 44248: 142e 000b moveb %fp@(11),%d2 <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 4424c: 0280 0000 0e78 andil #3704,%d0 <== NOT EXECUTED 44252: 661a bnes 4426e <== 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); 44254: 4280 clrl %d0 <== NOT EXECUTED 44256: 1002 moveb %d2,%d0 <== NOT EXECUTED 44258: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED } return i; } 4425c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 44260: 246e fffc moveal %fp@(-4),%a2 <== 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); 44264: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } return i; } 44268: 4e5e unlk %fp <== 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); 4426a: 6000 fde2 braw 4404e <== 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); 4426e: 42a7 clrl %sp@- <== NOT EXECUTED 44270: 42a7 clrl %sp@- <== NOT EXECUTED 44272: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 44276: 4eb9 0004 5be8 jsr 45be8 <== NOT EXECUTED i = iproc (c, tty); 4427c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4427e: 4280 clrl %d0 <== NOT EXECUTED 44280: 1002 moveb %d2,%d0 <== NOT EXECUTED 44282: 2f00 movel %d0,%sp@- <== NOT EXECUTED 44284: 4eba fdc8 jsr %pc@(4404e ) <== NOT EXECUTED rtems_semaphore_release (tty->osem); 44288: 2f2a 0018 movel %a2@(24),%sp@- <== 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); i = iproc (c, tty); 4428c: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 4428e: 4eb9 0004 5d10 jsr 45d10 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 44294: 2002 movel %d2,%d0 <== NOT EXECUTED 44296: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4429a: 246e fffc moveal %fp@(-4),%a2 <== 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); i = iproc (c, tty); rtems_semaphore_release (tty->osem); 4429e: dffc 0000 0018 addal #24,%sp <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 442a4: 4e5e unlk %fp <== NOT EXECUTED 442a6: 4e75 rts 00054dae : #if !defined(RTEMS_POSIX_API) unsigned int sleep( unsigned int seconds ) { 54dae: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED rtems_status_code status; rtems_interval ticks_per_second; rtems_interval ticks; status = rtems_clock_get( 54db2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 54db6: 4878 0003 pea 3 <== NOT EXECUTED 54dba: 4eb9 0004 5274 jsr 45274 <== NOT EXECUTED &ticks_per_second ); ticks = seconds * ticks_per_second; status = rtems_task_wake_after( ticks ); 54dc0: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 54dc4: 41ee fffc lea %fp@(-4),%a0 <== NOT EXECUTED 54dc8: 4c10 0800 mulsl %a0@,%d0 <== NOT EXECUTED 54dcc: 2f00 movel %d0,%sp@- <== NOT EXECUTED 54dce: 4eb9 0004 6154 jsr 46154 <== NOT EXECUTED * Returns the "unslept" amount of time. In RTEMS signals are not * interruptable, so tasks really sleep all of the requested time. */ return 0; } 54dd4: 4e5e unlk %fp <== NOT EXECUTED 54dd6: 4280 clrl %d0 <== NOT EXECUTED 54dd8: 4e75 rts <== NOT EXECUTED ... 000478e4 : int _STAT_NAME( const char *path, struct stat *buf ) { 478e4: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 478e8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 478ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 478ec: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 478f0: 6700 00ac beqw 4799e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 478f4: 4878 0001 pea 1 <== NOT EXECUTED 478f8: 260e movel %fp,%d3 <== NOT EXECUTED 478fa: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED 47900: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47902: 42a7 clrl %sp@- <== NOT EXECUTED 47904: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47908: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( status != 0 ) 4790e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 47914: 4a80 tstl %d0 <== NOT EXECUTED 47916: 6676 bnes 4798e <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 47918: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 4791c: 4aa8 0018 tstl %a0@(24) <== NOT EXECUTED 47920: 6748 beqs 4796a <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 47922: 4878 004a pea 4a <== NOT EXECUTED 47926: 42a7 clrl %sp@- <== NOT EXECUTED 47928: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4792a: 4eb9 0007 1dd4 jsr 71dd4 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 47930: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47932: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47934: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 47938: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED 4793c: 4e91 jsr %a1@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 4793e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 47942: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 47944: dffc 0000 0014 addal #20,%sp <== NOT EXECUTED 4794a: 4a88 tstl %a0 <== NOT EXECUTED 4794c: 670e beqs 4795c <== NOT EXECUTED 4794e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 47952: 4a88 tstl %a0 <== NOT EXECUTED 47954: 6706 beqs 4795c <== NOT EXECUTED 47956: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47958: 4e90 jsr %a0@ <== NOT EXECUTED 4795a: 588f addql #4,%sp <== NOT EXECUTED return status; } 4795c: 2002 movel %d2,%d0 <== NOT EXECUTED 4795e: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 47962: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 47966: 4e5e unlk %fp <== NOT EXECUTED 47968: 4e75 rts <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 4796a: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 4796e: 4a88 tstl %a0 <== NOT EXECUTED 47970: 670e beqs 47980 <== NOT EXECUTED 47972: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 47976: 4a88 tstl %a0 <== NOT EXECUTED 47978: 6706 beqs 47980 <== NOT EXECUTED 4797a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4797c: 4e90 jsr %a0@ <== NOT EXECUTED 4797e: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 47980: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 47986: 2040 moveal %d0,%a0 <== NOT EXECUTED 47988: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 4798e: 74ff moveq #-1,%d2 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 47990: 2002 movel %d2,%d0 <== NOT EXECUTED 47992: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 47996: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 4799a: 4e5e unlk %fp <== NOT EXECUTED 4799c: 4e75 rts <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 4799e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 479a4: 2040 moveal %d0,%a0 <== NOT EXECUTED 479a6: 700e moveq #14,%d0 <== NOT EXECUTED 479a8: 74ff moveq #-1,%d2 <== NOT EXECUTED 479aa: 2080 movel %d0,%a0@ <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 479ac: 2002 movel %d2,%d0 <== NOT EXECUTED 479ae: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 479b2: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 479b6: 4e5e unlk %fp <== NOT EXECUTED 479b8: 4e75 rts 00061d98 : int symlink( const char *actualpath, const char *sympath ) { 61d98: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 61d9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61d9e: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 61da2: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 61da4: 1211 moveb %a1@,%d1 <== NOT EXECUTED 61da6: 1001 moveb %d1,%d0 <== NOT EXECUTED 61da8: 49c0 extbl %d0 <== NOT EXECUTED 61daa: 742f moveq #47,%d2 <== NOT EXECUTED 61dac: b480 cmpl %d0,%d2 <== NOT EXECUTED 61dae: 6700 0094 beqw 61e44 <== NOT EXECUTED 61db2: 143c 005c moveb #92,%d2 <== NOT EXECUTED 61db6: b480 cmpl %d0,%d2 <== NOT EXECUTED 61db8: 6700 008a beqw 61e44 <== NOT EXECUTED 61dbc: 4a01 tstb %d1 <== NOT EXECUTED 61dbe: 6700 0084 beqw 61e44 <== NOT EXECUTED 61dc2: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 61dc8: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 61dcc: 5888 addql #4,%a0 <== NOT EXECUTED 61dce: 2498 movel %a0@+,%a2@ <== NOT EXECUTED 61dd0: 4280 clrl %d0 <== NOT EXECUTED 61dd2: 2d58 fff0 movel %a0@+,%fp@(-16) <== NOT EXECUTED 61dd6: 2d58 fff4 movel %a0@+,%fp@(-12) <== NOT EXECUTED 61dda: 2d50 fff8 movel %a0@,%fp@(-8) <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 61dde: 486e fffc pea %fp@(-4) <== NOT EXECUTED 61de2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61de4: 4871 0800 pea %a1@(00000000,%d0:l) <== NOT EXECUTED 61de8: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61dec: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED 61df0: 4e91 jsr %a1@ <== NOT EXECUTED if ( result != 0 ) 61df2: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61df8: 4a80 tstl %d0 <== NOT EXECUTED 61dfa: 6600 008a bnew 61e86 <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 61dfe: 226e fff4 moveal %fp@(-12),%a1 <== NOT EXECUTED 61e02: 2069 0038 moveal %a1@(56),%a0 <== NOT EXECUTED 61e06: 4a88 tstl %a0 <== NOT EXECUTED 61e08: 6700 008c beqw 61e96 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 61e0c: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 61e10: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61e14: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61e16: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61e18: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 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); 61e1c: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 61e1e: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61e24: 4a88 tstl %a0 <== NOT EXECUTED 61e26: 670e beqs 61e36 <== NOT EXECUTED 61e28: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 61e2c: 4a88 tstl %a0 <== NOT EXECUTED 61e2e: 6706 beqs 61e36 <== NOT EXECUTED 61e30: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61e32: 4e90 jsr %a0@ <== NOT EXECUTED 61e34: 588f addql #4,%sp <== NOT EXECUTED return result; } 61e36: 2002 movel %d2,%d0 <== NOT EXECUTED 61e38: 242e ffe4 movel %fp@(-28),%d2 <== NOT EXECUTED 61e3c: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 61e40: 4e5e unlk %fp <== NOT EXECUTED 61e42: 4e75 rts <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 61e44: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 61e4a: 45ee ffec lea %fp@(-20),%a2 <== NOT EXECUTED 61e4e: 24a8 0014 movel %a0@(20),%a2@ <== NOT EXECUTED 61e52: 7001 moveq #1,%d0 <== NOT EXECUTED 61e54: 2d68 0018 fff0 movel %a0@(24),%fp@(-16) <== NOT EXECUTED 61e5a: 2d68 001c fff4 movel %a0@(28),%fp@(-12) <== NOT EXECUTED 61e60: 2d68 0020 fff8 movel %a0@(32),%fp@(-8) <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 61e66: 486e fffc pea %fp@(-4) <== NOT EXECUTED 61e6a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61e6c: 4871 0800 pea %a1@(00000000,%d0:l) <== NOT EXECUTED 61e70: 206e fff4 moveal %fp@(-12),%a0 <== NOT EXECUTED 61e74: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED 61e78: 4e91 jsr %a1@ <== NOT EXECUTED if ( result != 0 ) 61e7a: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 61e80: 4a80 tstl %d0 <== NOT EXECUTED 61e82: 6700 ff7a beqw 61dfe <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 61e86: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } 61e88: 2002 movel %d2,%d0 <== NOT EXECUTED 61e8a: 242e ffe4 movel %fp@(-28),%d2 <== NOT EXECUTED 61e8e: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 61e92: 4e5e unlk %fp <== NOT EXECUTED 61e94: 4e75 rts <== 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 ); 61e96: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 61e9a: 4a88 tstl %a0 <== NOT EXECUTED 61e9c: 6706 beqs 61ea4 <== NOT EXECUTED 61e9e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 61ea0: 4e90 jsr %a0@ <== NOT EXECUTED 61ea2: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 61ea4: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61eaa: 2040 moveal %d0,%a0 <== NOT EXECUTED 61eac: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 61eb2: 74ff moveq #-1,%d2 <== NOT EXECUTED 61eb4: 60d2 bras 61e88 <== NOT EXECUTED ... 00061eb8 : #include int tcdrain( int fd ) { 61eb8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 61ebc: 42a7 clrl %sp@- <== NOT EXECUTED 61ebe: 4878 0003 pea 3 <== NOT EXECUTED 61ec2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 61ec6: 4eb9 0006 0f74 jsr 60f74 <== NOT EXECUTED } 61ecc: 4e5e unlk %fp <== NOT EXECUTED 61ece: 4e75 rts 00052474 : int tcgetattr( int fd, struct termios *tp ) { 52474: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); 52478: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5247c: 4878 0001 pea 1 <== NOT EXECUTED 52480: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 52484: 4eb9 0005 5bfc jsr 55bfc <== NOT EXECUTED } 5248a: 4e5e unlk %fp <== NOT EXECUTED 5248c: 4e75 rts <== NOT EXECUTED ... 00052490 : int tcsetattr( int fd, int opt, struct termios *tp ) { 52490: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 52494: 2f03 movel %d3,%sp@- <== NOT EXECUTED 52496: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 5249a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5249c: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 524a0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED switch (opt) { 524a4: 4a80 tstl %d0 <== NOT EXECUTED 524a6: 673a beqs 524e2 <== NOT EXECUTED 524a8: 7201 moveq #1,%d1 <== NOT EXECUTED 524aa: b280 cmpl %d0,%d1 <== NOT EXECUTED 524ac: 671c beqs 524ca <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 524ae: 4eb9 0005 6400 jsr 56400 <__errno> <== NOT EXECUTED 524b4: 2040 moveal %d0,%a0 <== NOT EXECUTED 524b6: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 524bc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 524c0: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 524c4: 4e5e unlk %fp <== NOT EXECUTED 524c6: 70ff moveq #-1,%d0 <== NOT EXECUTED 524c8: 4e75 rts <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 524ca: 42a7 clrl %sp@- <== NOT EXECUTED 524cc: 4878 0003 pea 3 <== NOT EXECUTED 524d0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 524d2: 4eb9 0005 5bfc jsr 55bfc <== NOT EXECUTED 524d8: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 524de: 4a80 tstl %d0 <== NOT EXECUTED 524e0: 6dda blts 524bc <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 524e2: 2d42 0010 movel %d2,%fp@(16) <== NOT EXECUTED } } 524e6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 524ea: 2d43 0008 movel %d3,%fp@(8) <== NOT EXECUTED } } 524ee: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 524f2: 7002 moveq #2,%d0 <== NOT EXECUTED 524f4: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 524f8: 4e5e unlk %fp <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 524fa: 4ef9 0005 5bfc jmp 55bfc <== NOT EXECUTED 000433b8 : #include int termios_baud_to_number( int termios_baud ) { 433b8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 433bc: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 433c0: 2f02 movel %d2,%sp@- <== NOT EXECUTED case B110: baud = 110; break; case B134: baud = 135; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; 433c2: 203c 0000 04b0 movel #1200,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 433c8: 7409 moveq #9,%d2 <== NOT EXECUTED 433ca: b481 cmpl %d1,%d2 <== NOT EXECUTED 433cc: 6740 beqs 4340e <== NOT EXECUTED 433ce: 6c44 bges 43414 <== NOT EXECUTED 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; 433d0: 203c 0000 4b00 movel #19200,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 433d6: 740e moveq #14,%d2 <== NOT EXECUTED 433d8: b481 cmpl %d1,%d2 <== NOT EXECUTED 433da: 6732 beqs 4340e <== NOT EXECUTED 433dc: 6c68 bges 43446 <== NOT EXECUTED 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; 433de: 203c 0001 c200 movel #115200,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 433e4: 0c81 0000 1002 cmpil #4098,%d1 <== NOT EXECUTED 433ea: 6722 beqs 4340e <== NOT EXECUTED 433ec: 6f00 00c0 blew 434ae <== NOT EXECUTED 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; 433f0: 203c 0003 8400 movel #230400,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 433f6: 0c81 0000 1003 cmpil #4099,%d1 <== NOT EXECUTED 433fc: 6710 beqs 4340e <== NOT EXECUTED 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; 433fe: 203c 0007 0800 movel #460800,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 43404: 0c81 0000 1004 cmpil #4100,%d1 <== NOT EXECUTED 4340a: 6702 beqs 4340e <== NOT EXECUTED 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; 4340c: 70ff moveq #-1,%d0 <== NOT EXECUTED default: baud = -1; break; } return baud; } 4340e: 241f movel %sp@+,%d2 <== NOT EXECUTED 43410: 4e5e unlk %fp <== NOT EXECUTED 43412: 4e75 rts <== NOT EXECUTED switch (termios_baud) { case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; 43414: 303c 0087 movew #135,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 43418: 143c 0004 moveb #4,%d2 <== NOT EXECUTED 4341c: b481 cmpl %d1,%d2 <== NOT EXECUTED 4341e: 67ee beqs 4340e <== NOT EXECUTED 43420: 6d54 blts 43476 <== NOT EXECUTED 43422: 103c 0001 moveb #1,%d0 <== NOT EXECUTED 43426: b081 cmpl %d1,%d0 <== NOT EXECUTED 43428: 6700 00a6 beqw 434d0 <== NOT EXECUTED 4342c: 6c00 00b2 bgew 434e0 <== NOT EXECUTED 43430: 7402 moveq #2,%d2 <== NOT EXECUTED 43432: b481 cmpl %d1,%d2 <== NOT EXECUTED 43434: 6700 00a2 beqw 434d8 <== NOT EXECUTED 43438: 7003 moveq #3,%d0 <== NOT EXECUTED 4343a: b081 cmpl %d1,%d0 <== NOT EXECUTED 4343c: 66ce bnes 4340c <== NOT EXECUTED case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 4343e: 241f movel %sp@+,%d2 <== NOT EXECUTED 43440: 4e5e unlk %fp <== NOT EXECUTED int baud; switch (termios_baud) { case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; 43442: 706e moveq #110,%d0 <== NOT EXECUTED case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 43444: 4e75 rts <== NOT EXECUTED 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; 43446: 303c 0960 movew #2400,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 4344a: 143c 000b moveb #11,%d2 <== NOT EXECUTED 4344e: b481 cmpl %d1,%d2 <== NOT EXECUTED 43450: 67bc beqs 4340e <== NOT EXECUTED case B134: baud = 135; break; 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; 43452: 303c 0708 movew #1800,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 43456: b481 cmpl %d1,%d2 <== NOT EXECUTED 43458: 6eb4 bgts 4340e <== NOT EXECUTED 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; 4345a: 303c 12c0 movew #4800,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 4345e: 143c 000c moveb #12,%d2 <== NOT EXECUTED 43462: b481 cmpl %d1,%d2 <== NOT EXECUTED 43464: 67a8 beqs 4340e <== NOT EXECUTED 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; 43466: 303c 2580 movew #9600,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 4346a: 143c 000d moveb #13,%d2 <== NOT EXECUTED 4346e: b481 cmpl %d1,%d2 <== NOT EXECUTED 43470: 679c beqs 4340e <== NOT EXECUTED 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; 43472: 70ff moveq #-1,%d0 <== NOT EXECUTED 43474: 6098 bras 4340e <== NOT EXECUTED case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 135; break; case B150: baud = 150; break; 43476: 203c 0000 00c8 movel #200,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 4347c: 7406 moveq #6,%d2 <== NOT EXECUTED 4347e: b481 cmpl %d1,%d2 <== NOT EXECUTED 43480: 678c beqs 4340e <== NOT EXECUTED case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 135; break; 43482: 0680 ffff ffce addil #-50,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 43488: b481 cmpl %d1,%d2 <== NOT EXECUTED 4348a: 6e82 bgts 4340e <== NOT EXECUTED case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 135; break; case B150: baud = 150; break; case B200: baud = 200; break; 4348c: 303c 012c movew #300,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 43490: 143c 0007 moveb #7,%d2 <== NOT EXECUTED 43494: b481 cmpl %d1,%d2 <== NOT EXECUTED 43496: 6700 ff76 beqw 4340e <== NOT EXECUTED case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 135; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; 4349a: 303c 0258 movew #600,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 4349e: 143c 0008 moveb #8,%d2 <== NOT EXECUTED 434a2: b481 cmpl %d1,%d2 <== NOT EXECUTED 434a4: 6700 ff68 beqw 4340e <== NOT EXECUTED 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; 434a8: 70ff moveq #-1,%d0 <== NOT EXECUTED 434aa: 6000 ff62 braw 4340e <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434ae: 740f moveq #15,%d2 <== NOT EXECUTED 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; 434b0: 203c 0000 9600 movel #38400,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434b6: b481 cmpl %d1,%d2 <== NOT EXECUTED 434b8: 6700 ff54 beqw 4340e <== NOT EXECUTED 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; 434bc: 303c e100 movew #-7936,%d0 <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434c0: 0c81 0000 1001 cmpil #4097,%d1 <== NOT EXECUTED 434c6: 6700 ff46 beqw 4340e <== NOT EXECUTED 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; 434ca: 70ff moveq #-1,%d0 <== NOT EXECUTED 434cc: 6000 ff40 braw 4340e <== NOT EXECUTED default: baud = -1; break; } return baud; } 434d0: 241f movel %sp@+,%d2 <== NOT EXECUTED 434d2: 4e5e unlk %fp <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434d4: 7032 moveq #50,%d0 <== NOT EXECUTED case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434d6: 4e75 rts <== NOT EXECUTED 434d8: 241f movel %sp@+,%d2 <== NOT EXECUTED 434da: 4e5e unlk %fp <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434dc: 704b moveq #75,%d0 <== NOT EXECUTED case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434de: 4e75 rts <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434e0: 4a81 tstl %d1 <== NOT EXECUTED 434e2: 6600 ff28 bnew 4340c <== NOT EXECUTED case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434e6: 241f movel %sp@+,%d2 <== NOT EXECUTED 434e8: 4e5e unlk %fp <== NOT EXECUTED int termios_baud ) { int baud; switch (termios_baud) { 434ea: 4280 clrl %d0 <== NOT EXECUTED case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 434ec: 4e75 rts <== NOT EXECUTED ... 0006204c : */ char *ttyname( int fd ) { 6204c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 62050: 4878 0406 pea 406 <== NOT EXECUTED 62054: 4879 0008 4c84 pea 84c84 <== NOT EXECUTED 6205a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 6205e: 4eb9 0006 1f5c jsr 61f5c <== NOT EXECUTED 62064: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6206a: 223c 0008 4c84 movel #543876,%d1 <== NOT EXECUTED 62070: 4a80 tstl %d0 <== NOT EXECUTED 62072: 6606 bnes 6207a <== NOT EXECUTED return ttyname_buf; return NULL; } 62074: 4e5e unlk %fp <== NOT EXECUTED 62076: 2001 movel %d1,%d0 <== NOT EXECUTED 62078: 4e75 rts <== NOT EXECUTED char *ttyname( int fd ) { if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 6207a: 4281 clrl %d1 <== NOT EXECUTED return ttyname_buf; return NULL; } 6207c: 4e5e unlk %fp <== NOT EXECUTED 6207e: 2001 movel %d1,%d0 <== NOT EXECUTED 62080: 4e75 rts <== NOT EXECUTED ... 00061f5c : int ttyname_r( int fd, char *name, size_t namesize ) { 61f5c: 4e56 ff28 linkw %fp,#-216 <== NOT EXECUTED 61f60: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 61f64: 486e ffdc pea %fp@(-36) <== NOT EXECUTED int ttyname_r( int fd, char *name, size_t namesize ) { 61f68: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 61f6c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61f6e: 4eb9 0006 1ed0 jsr 61ed0 <== NOT EXECUTED 61f74: 508f addql #8,%sp <== NOT EXECUTED 61f76: 4a80 tstl %d0 <== NOT EXECUTED 61f78: 6d24 blts 61f9e <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 61f7a: 486e ff92 pea %fp@(-110) <== NOT EXECUTED 61f7e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61f80: 4eb9 0005 ff58 jsr 5ff58 <== NOT EXECUTED 61f86: 508f addql #8,%sp <== NOT EXECUTED 61f88: 4a80 tstl %d0 <== NOT EXECUTED 61f8a: 6612 bnes 61f9e <== NOT EXECUTED 61f8c: 202e ff9e movel %fp@(-98),%d0 <== NOT EXECUTED 61f90: 0280 0000 f000 andil #61440,%d0 <== NOT EXECUTED 61f96: 0c80 0000 2000 cmpil #8192,%d0 <== NOT EXECUTED 61f9c: 6718 beqs 61fb6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); 61f9e: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 61fa4: 2040 moveal %d0,%a0 <== NOT EXECUTED 61fa6: 7009 moveq #9,%d0 <== NOT EXECUTED rval = name; break; } (void) closedir (dp); return 0; } 61fa8: 4cee 1c7c ff28 moveml %fp@(-216),%d2-%d6/%a2-%a4 <== NOT EXECUTED /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); 61fae: 2080 movel %d0,%a0@ <== NOT EXECUTED rval = name; break; } (void) closedir (dp); return 0; } 61fb0: 4e5e unlk %fp <== NOT EXECUTED /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); 61fb2: 70ff moveq #-1,%d0 <== NOT EXECUTED rval = name; break; } (void) closedir (dp); return 0; } 61fb4: 4e75 rts <== NOT EXECUTED /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) 61fb6: 4879 0008 1ea2 pea 81ea2 <== NOT EXECUTED 61fbc: 4eb9 0006 15b4 jsr 615b4 <== NOT EXECUTED 61fc2: 588f addql #4,%sp <== NOT EXECUTED 61fc4: 2400 movel %d0,%d2 <== NOT EXECUTED 61fc6: 45f9 0006 1960 lea 61960 ,%a2 <== NOT EXECUTED 61fcc: 67d0 beqs 61f9e <== NOT EXECUTED for (rval = NULL; (dirp = readdir (dp)) != NULL ;) { if (dirp->d_ino != sb.st_ino) continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 61fce: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 61fd2: 280e movel %fp,%d4 <== NOT EXECUTED for (rval = NULL; (dirp = readdir (dp)) != NULL ;) { if (dirp->d_ino != sb.st_ino) continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 61fd4: 5a83 addql #5,%d3 <== NOT EXECUTED 61fd6: 49f9 0007 4324 lea 74324 ,%a4 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 61fdc: 0684 ffff ff48 addil #-184,%d4 <== NOT EXECUTED 61fe2: 47f9 0004 78e4 lea 478e4 ,%a3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); for (rval = NULL; (dirp = readdir (dp)) != NULL ;) 61fe8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 61fea: 4e92 jsr %a2@ <== NOT EXECUTED 61fec: 588f addql #4,%sp <== NOT EXECUTED 61fee: 2040 moveal %d0,%a0 <== NOT EXECUTED 61ff0: 4a80 tstl %d0 <== NOT EXECUTED 61ff2: 6742 beqs 62036 <== NOT EXECUTED { if (dirp->d_ino != sb.st_ino) 61ff4: 202e ff9a movel %fp@(-102),%d0 <== NOT EXECUTED 61ff8: b090 cmpl %a0@,%d0 <== NOT EXECUTED 61ffa: 66ec bnes 61fe8 <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 61ffc: 4868 000c pea %a0@(12) <== NOT EXECUTED 62000: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62002: 4e94 jsr %a4@ <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 62004: 2f04 movel %d4,%sp@- <== NOT EXECUTED 62006: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 6200a: 4e93 jsr %a3@ <== NOT EXECUTED 6200c: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 62012: 4a80 tstl %d0 <== NOT EXECUTED 62014: 66d2 bnes 61fe8 <== NOT EXECUTED 62016: 202e ff92 movel %fp@(-110),%d0 <== NOT EXECUTED 6201a: 222e ff96 movel %fp@(-106),%d1 <== NOT EXECUTED 6201e: 2a2e ff48 movel %fp@(-184),%d5 <== NOT EXECUTED 62022: 2c2e ff4c movel %fp@(-180),%d6 <== NOT EXECUTED 62026: 9286 subl %d6,%d1 <== NOT EXECUTED 62028: 9185 subxl %d5,%d0 <== NOT EXECUTED 6202a: 66bc bnes 61fe8 <== NOT EXECUTED 6202c: 2c2e ff50 movel %fp@(-176),%d6 <== NOT EXECUTED 62030: bcae ff9a cmpl %fp@(-102),%d6 <== NOT EXECUTED 62034: 66b2 bnes 61fe8 <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 62036: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62038: 4eb9 0006 d064 jsr 6d064 <== NOT EXECUTED 6203e: 588f addql #4,%sp <== NOT EXECUTED return 0; } 62040: 4cee 1c7c ff28 moveml %fp@(-216),%d2-%d6/%a2-%a4 <== NOT EXECUTED 62046: 4e5e unlk %fp <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 62048: 4280 clrl %d0 <== NOT EXECUTED return 0; } 6204a: 4e75 rts 00062084 : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 62084: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 6208a: 2028 0024 movel %a0@(36),%d0 <== NOT EXECUTED #include mode_t umask( mode_t cmask ) { 6208e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED mode_t old_mask; old_mask = rtems_filesystem_umask; rtems_filesystem_umask = cmask; 62092: 216e 0008 0024 movel %fp@(8),%a0@(36) <== NOT EXECUTED return old_mask; } 62098: 4e5e unlk %fp <== NOT EXECUTED 6209a: 4e75 rts 0006209c : #include int unlink( const char *path ) { 6209c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 620a0: 2f03 movel %d3,%sp@- <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 620a2: 260e movel %fp,%d3 <== NOT EXECUTED 620a4: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED #include int unlink( const char *path ) { 620aa: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 620ac: 42a7 clrl %sp@- <== NOT EXECUTED 620ae: 2f03 movel %d3,%sp@- <== NOT EXECUTED 620b0: 42a7 clrl %sp@- <== NOT EXECUTED 620b2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 620b6: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED if ( result != 0 ) 620bc: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 620c2: 4a80 tstl %d0 <== NOT EXECUTED 620c4: 6710 beqs 620d6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); 620c6: 74ff moveq #-1,%d2 <== NOT EXECUTED return result; } 620c8: 2002 movel %d2,%d0 <== NOT EXECUTED 620ca: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 620ce: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 620d2: 4e5e unlk %fp <== NOT EXECUTED 620d4: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 620d6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 620d8: 4878 0002 pea 2 <== NOT EXECUTED 620dc: 4eb9 0004 5fe0 jsr 45fe0 <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 620e2: 508f addql #8,%sp <== NOT EXECUTED 620e4: 4a80 tstl %d0 <== NOT EXECUTED 620e6: 6654 bnes 6213c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return -1; } if ( !loc.ops->node_type_h ) { 620e8: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 620ec: 2069 0010 moveal %a1@(16),%a0 <== NOT EXECUTED 620f0: 4a88 tstl %a0 <== NOT EXECUTED 620f2: 6700 0084 beqw 62178 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 620f6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 620f8: 4e90 jsr %a0@ <== NOT EXECUTED 620fa: 588f addql #4,%sp <== NOT EXECUTED 620fc: 7201 moveq #1,%d1 <== NOT EXECUTED 620fe: b280 cmpl %d0,%d1 <== NOT EXECUTED 62100: 6700 00a2 beqw 621a4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 62104: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 62108: 2069 000c moveal %a1@(12),%a0 <== NOT EXECUTED 6210c: 4a88 tstl %a0 <== NOT EXECUTED 6210e: 6768 beqs 62178 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 62110: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62112: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 62114: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 62118: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 6211a: 588f addql #4,%sp <== NOT EXECUTED 6211c: 4a88 tstl %a0 <== NOT EXECUTED 6211e: 67a8 beqs 620c8 <== NOT EXECUTED 62120: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 62124: 4a88 tstl %a0 <== NOT EXECUTED 62126: 67a0 beqs 620c8 <== NOT EXECUTED 62128: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6212a: 4e90 jsr %a0@ <== NOT EXECUTED return result; } 6212c: 2002 movel %d2,%d0 <== NOT EXECUTED 6212e: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 62132: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); 62136: 588f addql #4,%sp <== NOT EXECUTED return result; } 62138: 4e5e unlk %fp <== NOT EXECUTED 6213a: 4e75 rts <== NOT EXECUTED result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0 && errno != ENOTSUP) { 6213c: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 62142: 2040 moveal %d0,%a0 <== NOT EXECUTED 62144: 203c 0000 0086 movel #134,%d0 <== NOT EXECUTED 6214a: b090 cmpl %a0@,%d0 <== NOT EXECUTED 6214c: 679a beqs 620e8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 6214e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 62152: 4a88 tstl %a0 <== NOT EXECUTED 62154: 6700 ff70 beqw 620c6 <== NOT EXECUTED 62158: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6215c: 4a88 tstl %a0 <== NOT EXECUTED 6215e: 6700 ff66 beqw 620c6 <== NOT EXECUTED 62162: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62164: 4e90 jsr %a0@ <== NOT EXECUTED 62166: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 62168: 2002 movel %d2,%d0 <== NOT EXECUTED 6216a: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 6216e: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0 && errno != ENOTSUP) { rtems_filesystem_freenode( &loc ); 62172: 588f addql #4,%sp <== NOT EXECUTED result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 62174: 4e5e unlk %fp <== NOT EXECUTED 62176: 4e75 rts <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 62178: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 6217c: 4a88 tstl %a0 <== NOT EXECUTED 6217e: 6706 beqs 62186 <== NOT EXECUTED 62180: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62182: 4e90 jsr %a0@ <== NOT EXECUTED 62184: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 62186: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6218c: 74ff moveq #-1,%d2 <== NOT EXECUTED 6218e: 2040 moveal %d0,%a0 <== NOT EXECUTED result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 62190: 2002 movel %d2,%d0 <== NOT EXECUTED 62192: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 62196: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 6219a: 4e5e unlk %fp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 6219c: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 621a2: 4e75 rts <== NOT EXECUTED 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 ); 621a4: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 621a8: 4a88 tstl %a0 <== NOT EXECUTED 621aa: 670e beqs 621ba <== NOT EXECUTED 621ac: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 621b0: 4a88 tstl %a0 <== NOT EXECUTED 621b2: 6706 beqs 621ba <== NOT EXECUTED 621b4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 621b6: 4e90 jsr %a0@ <== NOT EXECUTED 621b8: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 621ba: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 621c0: 2040 moveal %d0,%a0 <== NOT EXECUTED 621c2: 7015 moveq #21,%d0 <== NOT EXECUTED 621c4: 74ff moveq #-1,%d2 <== NOT EXECUTED 621c6: 2080 movel %d0,%a0@ <== NOT EXECUTED result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 621c8: 2002 movel %d2,%d0 <== NOT EXECUTED 621ca: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 621ce: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 621d2: 4e5e unlk %fp <== NOT EXECUTED 621d4: 4e75 rts 0006223c : */ int unmount( const char *path ) { 6223c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 62240: 2f0a movel %a2,%sp@- <== NOT EXECUTED 62242: 2f02 movel %d2,%sp@- <== 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, 0x0, &loc, true ) ) 62244: 240e movel %fp,%d2 <== NOT EXECUTED 62246: 4878 0001 pea 1 <== NOT EXECUTED 6224a: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED 62250: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62252: 42a7 clrl %sp@- <== NOT EXECUTED 62254: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 62258: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED 6225e: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 62264: 4a80 tstl %d0 <== NOT EXECUTED 62266: 6600 00ae bnew 62316 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 6226a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ 6226e: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 62272: b0aa 0018 cmpl %a2@(24),%d0 <== NOT EXECUTED 62276: 6600 00ac bnew 62324 <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 6227a: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 6227e: 4a88 tstl %a0 <== NOT EXECUTED 62280: 670e beqs 62290 <== NOT EXECUTED 62282: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 62286: 4a88 tstl %a0 <== NOT EXECUTED 62288: 6706 beqs 62290 <== NOT EXECUTED 6228a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 6228c: 4e90 jsr %a0@ <== NOT EXECUTED 6228e: 588f addql #4,%sp <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 62290: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED 62294: 4aa8 0028 tstl %a0@(40) <== NOT EXECUTED 62298: 6700 0122 beqw 623bc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 6229c: 206a 0020 moveal %a2@(32),%a0 <== NOT EXECUTED 622a0: 4aa8 002c tstl %a0@(44) <== NOT EXECUTED 622a4: 6700 0116 beqw 623bc <== NOT EXECUTED * that made the current node thread based instead * of system based? I thought it was but it doesn't * look like it in this version. */ if ( rtems_filesystem_current.mt_entry == mt_entry ) 622a8: 2079 0008 4c80 moveal 84c80 ,%a0 <== NOT EXECUTED 622ae: b5e8 0010 cmpal %a0@(16),%a2 <== NOT EXECUTED 622b2: 6726 beqs 622da <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 622b4: 2079 0009 9d9c moveal 99d9c ,%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 622ba: 223c 0009 9da0 movel #630176,%d1 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 622c0: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 622c2: 6730 beqs 622f4 <== NOT EXECUTED 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 ) { 622c4: 202a 0024 movel %a2@(36),%d0 <== NOT EXECUTED 622c8: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 622cc: 670c beqs 622da <== 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 ) { 622ce: 2050 moveal %a0@,%a0 <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 622d0: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 622d2: 6720 beqs 622f4 <== NOT EXECUTED 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 ) { 622d4: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 622d8: 66f4 bnes 622ce <== NOT EXECUTED * 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 ); 622da: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 622e0: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 622e4: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED * 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 ); 622e8: 2040 moveal %d0,%a0 <== NOT EXECUTED 622ea: 7010 moveq #16,%d0 <== NOT EXECUTED 622ec: 2080 movel %d0,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 622ee: 4e5e unlk %fp <== NOT EXECUTED * 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 ); 622f0: 70ff moveq #-1,%d0 <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 622f2: 4e75 rts <== NOT EXECUTED * 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 ) 622f4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 622f6: 4eb9 0004 64ac jsr 464ac <== NOT EXECUTED 622fc: 588f addql #4,%sp <== NOT EXECUTED 622fe: 7201 moveq #1,%d1 <== NOT EXECUTED 62300: b280 cmpl %d0,%d1 <== NOT EXECUTED 62302: 67d6 beqs 622da <== NOT EXECUTED * 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 ) 62304: 226a 0010 moveal %a2@(16),%a1 <== NOT EXECUTED 62308: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6230a: 2069 0028 moveal %a1@(40),%a0 <== NOT EXECUTED 6230e: 4e90 jsr %a0@ <== NOT EXECUTED 62310: 588f addql #4,%sp <== NOT EXECUTED 62312: 4a80 tstl %d0 <== NOT EXECUTED 62314: 673e beqs 62354 <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 62316: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 6231a: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED 6231e: 4e5e unlk %fp <== NOT EXECUTED */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 62320: 70ff moveq #-1,%d0 <== NOT EXECUTED } 62322: 4e75 rts <== NOT EXECUTED /* * 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 ); 62324: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 62328: 4a88 tstl %a0 <== NOT EXECUTED 6232a: 670e beqs 6233a <== NOT EXECUTED 6232c: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 62330: 4a88 tstl %a0 <== NOT EXECUTED 62332: 6706 beqs 6233a <== NOT EXECUTED 62334: 2f02 movel %d2,%sp@- <== NOT EXECUTED 62336: 4e90 jsr %a0@ <== NOT EXECUTED 62338: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 6233a: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 62340: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 62344: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED * 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 ); rtems_set_errno_and_return_minus_one( EACCES ); 62348: 2040 moveal %d0,%a0 <== NOT EXECUTED 6234a: 720d moveq #13,%d1 <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 6234c: 4e5e unlk %fp <== NOT EXECUTED * 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 ); rtems_set_errno_and_return_minus_one( EACCES ); 6234e: 70ff moveq #-1,%d0 <== NOT EXECUTED 62350: 2081 movel %d1,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 62352: 4e75 rts <== NOT EXECUTED * 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){ 62354: 226a 0020 moveal %a2@(32),%a1 <== NOT EXECUTED 62358: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6235a: 2069 002c moveal %a1@(44),%a0 <== NOT EXECUTED 6235e: 4e90 jsr %a0@ <== NOT EXECUTED 62360: 588f addql #4,%sp <== NOT EXECUTED 62362: 4a80 tstl %d0 <== NOT EXECUTED 62364: 663a bnes 623a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 62366: 2f0a movel %a2,%sp@- <== NOT EXECUTED 62368: 4eb9 0006 31b0 jsr 631b0 <_Chain_Extract> <== NOT EXECUTED /* * 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 ); 6236e: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED 62372: 588f addql #4,%sp <== NOT EXECUTED 62374: 4a88 tstl %a0 <== NOT EXECUTED 62376: 6710 beqs 62388 <== NOT EXECUTED 62378: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 6237c: 4a88 tstl %a0 <== NOT EXECUTED 6237e: 6708 beqs 62388 <== NOT EXECUTED 62380: 486a 0008 pea %a2@(8) <== NOT EXECUTED 62384: 4e90 jsr %a0@ <== NOT EXECUTED 62386: 588f addql #4,%sp <== NOT EXECUTED free( mt_entry ); 62388: 2f0a movel %a2,%sp@- <== NOT EXECUTED 6238a: 4eb9 0004 61e4 jsr 461e4 <== NOT EXECUTED return 0; } 62390: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 62394: 246e ffec moveal %fp@(-20),%a2 <== NOT EXECUTED * 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 ); 62398: 588f addql #4,%sp <== NOT EXECUTED return 0; } 6239a: 4e5e unlk %fp <== NOT EXECUTED * 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 ); 6239c: 4280 clrl %d0 <== NOT EXECUTED return 0; } 6239e: 4e75 rts <== NOT EXECUTED * 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 ) 623a0: 226a 0010 moveal %a2@(16),%a1 <== NOT EXECUTED 623a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 623a6: 2069 0020 moveal %a1@(32),%a0 <== NOT EXECUTED 623aa: 4e90 jsr %a0@ <== NOT EXECUTED 623ac: 588f addql #4,%sp <== NOT EXECUTED 623ae: 4a80 tstl %d0 <== NOT EXECUTED 623b0: 6700 ff64 beqw 62316 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 623b4: 42a7 clrl %sp@- <== NOT EXECUTED 623b6: 4eb9 0004 aa28 jsr 4aa28 <== 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 ); 623bc: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 623c2: 242e ffe8 movel %fp@(-24),%d2 <== NOT EXECUTED 623c6: 246e ffec moveal %fp@(-20),%a2 <== 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 ); 623ca: 2040 moveal %d0,%a0 <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 623cc: 4e5e unlk %fp <== 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 ); 623ce: 70ff moveq #-1,%d0 <== NOT EXECUTED 623d0: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 623d6: 4e75 rts 000623d8 : int utime( const char *path, const struct utimbuf *times ) { 623d8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 623dc: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) ) 623e0: 4878 0001 pea 1 <== NOT EXECUTED int utime( const char *path, const struct utimbuf *times ) { 623e4: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) ) 623e8: 260e movel %fp,%d3 <== NOT EXECUTED 623ea: 0683 ffff fff0 addil #-16,%d3 <== NOT EXECUTED 623f0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 623f2: 42a7 clrl %sp@- <== NOT EXECUTED 623f4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 623f8: 4eb9 0004 60a0 jsr 460a0 <== NOT EXECUTED 623fe: dffc 0000 0010 addal #16,%sp <== NOT EXECUTED 62404: 4a80 tstl %d0 <== NOT EXECUTED 62406: 665c bnes 62464 <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 62408: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED 6240c: 2069 0030 moveal %a1@(48),%a0 <== NOT EXECUTED 62410: 4a88 tstl %a0 <== NOT EXECUTED 62412: 6734 beqs 62448 <== NOT EXECUTED 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 ); 62414: 2f2a 0004 movel %a2@(4),%sp@- <== NOT EXECUTED 62418: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 6241a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 6241c: 4e90 jsr %a0@ <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 6241e: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED 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 ); 62422: 2400 movel %d0,%d2 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 62424: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 6242a: 4a88 tstl %a0 <== NOT EXECUTED 6242c: 670e beqs 6243c <== NOT EXECUTED 6242e: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 62432: 4a88 tstl %a0 <== NOT EXECUTED 62434: 6706 beqs 6243c <== NOT EXECUTED 62436: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62438: 4e90 jsr %a0@ <== NOT EXECUTED 6243a: 588f addql #4,%sp <== NOT EXECUTED return result; } 6243c: 2002 movel %d2,%d0 <== NOT EXECUTED 6243e: 4cee 040c ffe4 moveml %fp@(-28),%d2-%d3/%a2 <== NOT EXECUTED 62444: 4e5e unlk %fp <== NOT EXECUTED 62446: 4e75 rts <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); 62448: 2069 001c moveal %a1@(28),%a0 <== NOT EXECUTED 6244c: 4a88 tstl %a0 <== NOT EXECUTED 6244e: 6706 beqs 62456 <== NOT EXECUTED 62450: 2f03 movel %d3,%sp@- <== NOT EXECUTED 62452: 4e90 jsr %a0@ <== NOT EXECUTED 62454: 588f addql #4,%sp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 62456: 4eb9 0006 f804 jsr 6f804 <__errno> <== NOT EXECUTED 6245c: 2040 moveal %d0,%a0 <== NOT EXECUTED 6245e: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED 62464: 74ff moveq #-1,%d2 <== NOT EXECUTED result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); rtems_filesystem_freenode( &temp_loc ); return result; } 62466: 2002 movel %d2,%d0 <== NOT EXECUTED 62468: 4cee 040c ffe4 moveml %fp@(-28),%d2-%d3/%a2 <== NOT EXECUTED 6246e: 4e5e unlk %fp <== NOT EXECUTED 62470: 4e75 rts <== NOT EXECUTED ... 00042ff4 : */ void vprintk( const char *fmt, va_list ap ) { 42ff4: 4e56 ffc4 linkw %fp,#-60 <== NOT EXECUTED 42ff8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 42ffc: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 43000: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 43004: 1013 moveb %a3@,%d0 <== NOT EXECUTED 43006: 6700 00ac beqw 430b4 <== NOT EXECUTED 4300a: 4bee ffec lea %fp@(-20),%a5 <== NOT EXECUTED base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 4300e: 49c0 extbl %d0 <== NOT EXECUTED 43010: 7225 moveq #37,%d1 <== NOT EXECUTED 43012: b280 cmpl %d0,%d1 <== NOT EXECUTED 43014: 6600 02fa bnew 43310 <== NOT EXECUTED fmt++; 43018: 43eb 0001 lea %a3@(1),%a1 <== NOT EXECUTED if (*fmt == '0' ) { 4301c: 1611 moveb %a1@,%d3 <== NOT EXECUTED 4301e: 1403 moveb %d3,%d2 <== NOT EXECUTED 43020: 49c2 extbl %d2 <== NOT EXECUTED 43022: 7030 moveq #48,%d0 <== NOT EXECUTED 43024: b082 cmpl %d2,%d0 <== NOT EXECUTED 43026: 6700 0332 beqw 4335a <== NOT EXECUTED 4302a: 7e20 moveq #32,%d7 <== NOT EXECUTED lead = '0'; fmt++; } if (*fmt == '-' ) { 4302c: 722d moveq #45,%d1 <== NOT EXECUTED 4302e: b282 cmpl %d2,%d1 <== NOT EXECUTED 43030: 6700 02f6 beqw 43328 <== NOT EXECUTED minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 43034: 2003 movel %d3,%d0 <== NOT EXECUTED 43036: 0680 ffff ffd0 addil #-48,%d0 <== NOT EXECUTED fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; } if (*fmt == '-' ) { 4303c: 4286 clrl %d6 <== NOT EXECUTED minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 4303e: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43044: 7209 moveq #9,%d1 <== NOT EXECUTED 43046: b280 cmpl %d0,%d1 <== NOT EXECUTED 43048: 6500 02fe bcsw 43348 <== NOT EXECUTED 4304c: 4284 clrl %d4 <== NOT EXECUTED width *= 10; width += (*fmt - '0'); 4304e: 2004 movel %d4,%d0 <== NOT EXECUTED 43050: e788 lsll #3,%d0 <== NOT EXECUTED 43052: 2440 moveal %d0,%a2 <== NOT EXECUTED fmt++; 43054: 5289 addql #1,%a1 <== NOT EXECUTED } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 43056: 1611 moveb %a1@,%d3 <== NOT EXECUTED width *= 10; width += (*fmt - '0'); 43058: 41f2 4a00 lea %a2@(00000000,%d4:l:2),%a0 <== NOT EXECUTED 4305c: 41f0 28d0 lea %a0@(ffffffd0,%d2:l),%a0 <== NOT EXECUTED } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 43060: 2203 movel %d3,%d1 <== NOT EXECUTED 43062: 0681 ffff ffd0 addil #-48,%d1 <== NOT EXECUTED 43068: 1403 moveb %d3,%d2 <== NOT EXECUTED width *= 10; width += (*fmt - '0'); 4306a: 2808 movel %a0,%d4 <== NOT EXECUTED 4306c: 49c2 extbl %d2 <== NOT EXECUTED } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 4306e: 0281 0000 00ff andil #255,%d1 <== NOT EXECUTED 43074: 7009 moveq #9,%d0 <== NOT EXECUTED 43076: b081 cmpl %d1,%d0 <== NOT EXECUTED 43078: 64d4 bccs 4304e <== NOT EXECUTED 4307a: 1403 moveb %d3,%d2 <== NOT EXECUTED 4307c: 2649 moveal %a1,%a3 <== NOT EXECUTED 4307e: 2a08 movel %a0,%d5 <== NOT EXECUTED 43080: 49c2 extbl %d2 <== NOT EXECUTED width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 43082: 726c moveq #108,%d1 <== NOT EXECUTED 43084: b282 cmpl %d2,%d1 <== NOT EXECUTED 43086: 6700 00aa beqw 43132 <== NOT EXECUTED lflag = 1; c = *++fmt; } switch (c) { 4308a: 2003 movel %d3,%d0 <== NOT EXECUTED 4308c: 0680 ffff ffbc addil #-68,%d0 <== NOT EXECUTED 43092: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43098: 7434 moveq #52,%d2 <== NOT EXECUTED 4309a: b480 cmpl %d0,%d2 <== NOT EXECUTED 4309c: 6420 bccs 430be <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 4309e: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 430a4: 49c3 extbl %d3 <== NOT EXECUTED 430a6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 430a8: 4e90 jsr %a0@ <== NOT EXECUTED 430aa: 588f addql #4,%sp <== NOT EXECUTED ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 430ac: 528b addql #1,%a3 <== NOT EXECUTED 430ae: 1013 moveb %a3@,%d0 <== NOT EXECUTED 430b0: 6600 ff5c bnew 4300e <== NOT EXECUTED base, sign, width, lead); } else { BSP_output_char(*fmt); } } } 430b4: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 430ba: 4e5e unlk %fp <== NOT EXECUTED 430bc: 4e75 rts <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 430be: 303b 0a08 movew %pc@(430c8 ,%d0:l:2),%d0 <== NOT EXECUTED 430c2: 48c0 extl %d0 <== NOT EXECUTED 430c4: 4efb 0802 jmp %pc@(430c8 ,%d0:l) <== NOT EXECUTED 430c8: 0166 bchg %d0,%fp@- <== NOT EXECUTED 430ca: ffd6 0177726 <== NOT EXECUTED 430cc: ffd6 0177726 <== NOT EXECUTED 430ce: ffd6 0177726 <== NOT EXECUTED 430d0: ffd6 0177726 <== NOT EXECUTED 430d2: 0166 bchg %d0,%fp@- <== NOT EXECUTED 430d4: ffd6 0177726 <== NOT EXECUTED 430d6: ffd6 0177726 <== NOT EXECUTED 430d8: ffd6 0177726 <== NOT EXECUTED 430da: ffd6 0177726 <== NOT EXECUTED 430dc: ffd6 0177726 <== NOT EXECUTED 430de: 008a ffd6 ffd6 oril #-2687018,%d2 <== NOT EXECUTED 430e4: ffd6 0177726 <== NOT EXECUTED 430e6: ffd6 0177726 <== NOT EXECUTED 430e8: ffd6 0177726 <== NOT EXECUTED 430ea: 0210 01020 <== NOT EXECUTED 430ec: ffd6 0177726 <== NOT EXECUTED 430ee: ffd6 0177726 <== NOT EXECUTED 430f0: 02ce 01316 <== NOT EXECUTED 430f2: ffd6 0177726 <== NOT EXECUTED 430f4: ffd6 0177726 <== NOT EXECUTED 430f6: ffd6 0177726 <== NOT EXECUTED 430f8: ffd6 0177726 <== NOT EXECUTED 430fa: ffd6 0177726 <== NOT EXECUTED 430fc: ffd6 0177726 <== NOT EXECUTED 430fe: ffd6 0177726 <== NOT EXECUTED 43100: ffd6 0177726 <== NOT EXECUTED 43102: ffd6 0177726 <== NOT EXECUTED 43104: ffd6 0177726 <== NOT EXECUTED 43106: 01f2 0166 ffd6 bset %d0,%a2@(ffffffd6)@(ffffffd6) <== NOT EXECUTED 4310c: ffd6 <== NOT EXECUTED 4310e: ffd6 0177726 <== NOT EXECUTED 43110: ffd6 0177726 <== NOT EXECUTED 43112: 0166 bchg %d0,%fp@- <== NOT EXECUTED 43114: ffd6 0177726 <== NOT EXECUTED 43116: ffd6 0177726 <== NOT EXECUTED 43118: ffd6 0177726 <== NOT EXECUTED 4311a: ffd6 0177726 <== NOT EXECUTED 4311c: ffd6 0177726 <== NOT EXECUTED 4311e: 008a 02ce ffd6 oril #47120342,%d2 <== NOT EXECUTED 43124: ffd6 0177726 <== NOT EXECUTED 43126: 017a 0572 <== NOT EXECUTED 43128: ffd6 0177726 <== NOT EXECUTED 4312a: 0210 01020 <== NOT EXECUTED 4312c: ffd6 0177726 <== NOT EXECUTED 4312e: ffd6 0177726 <== NOT EXECUTED 43130: 02ce 01316 <== NOT EXECUTED fmt++; } if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; 43132: 47e9 0001 lea %a1@(1),%a3 <== NOT EXECUTED 43136: 1613 moveb %a3@,%d3 <== NOT EXECUTED } switch (c) { 43138: 2003 movel %d3,%d0 <== NOT EXECUTED 4313a: 0680 ffff ffbc addil #-68,%d0 <== NOT EXECUTED 43140: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43146: 7434 moveq #52,%d2 <== NOT EXECUTED 43148: b480 cmpl %d0,%d2 <== NOT EXECUTED 4314a: 6500 ff52 bcsw 4309e <== NOT EXECUTED 4314e: 6000 ff6e braw 430be <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 43152: 4280 clrl %d0 <== NOT EXECUTED 43154: 7808 moveq #8,%d4 <== NOT EXECUTED break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 43156: 2414 movel %a4@,%d2 <== NOT EXECUTED { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 43158: 7201 moveq #1,%d1 <== NOT EXECUTED BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 4315a: 588c addql #4,%a4 <== NOT EXECUTED { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 4315c: b280 cmpl %d0,%d1 <== NOT EXECUTED 4315e: 6700 0180 beqw 432e0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 43162: 2002 movel %d2,%d0 <== NOT EXECUTED 43164: 4c44 0000 remul %d4,%d0,%d0 <== NOT EXECUTED 43168: 6700 019e beqw 43308 <== NOT EXECUTED 4316c: 2202 movel %d2,%d1 <== NOT EXECUTED 4316e: 2400 movel %d0,%d2 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); 43170: 2002 movel %d2,%d0 <== NOT EXECUTED 43172: 4c04 0800 mulsl %d4,%d0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 43176: 91c8 subal %a0,%a0 <== NOT EXECUTED 43178: 2602 movel %d2,%d3 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); 4317a: 9280 subl %d0,%d1 <== NOT EXECUTED 4317c: 1b81 8800 moveb %d1,%a5@(00000000,%a0:l) <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 43180: 4c44 3003 remul %d4,%d3,%d3 <== NOT EXECUTED 43184: 2202 movel %d2,%d1 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); 43186: 5288 addql #1,%a0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 43188: 4a83 tstl %d3 <== NOT EXECUTED 4318a: 671c beqs 431a8 <== NOT EXECUTED 4318c: 2403 movel %d3,%d2 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); 4318e: 2002 movel %d2,%d0 <== NOT EXECUTED 43190: 4c04 0800 mulsl %d4,%d0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 43194: 2602 movel %d2,%d3 <== NOT EXECUTED 43196: 4c44 3003 remul %d4,%d3,%d3 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); 4319a: 9280 subl %d0,%d1 <== NOT EXECUTED 4319c: 1b81 8800 moveb %d1,%a5@(00000000,%a0:l) <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 431a0: 2202 movel %d2,%d1 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); 431a2: 5288 addql #1,%a0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 431a4: 4a83 tstl %d3 <== NOT EXECUTED 431a6: 66e4 bnes 4318c <== NOT EXECUTED 431a8: 2608 movel %a0,%d3 <== NOT EXECUTED 431aa: 5283 addql #1,%d3 <== NOT EXECUTED toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 431ac: 1d82 88ec moveb %d2,%fp@(ffffffec,%a0:l) <== NOT EXECUTED for (n=maxwidth ; n > count; n-- ) 431b0: 2405 movel %d5,%d2 <== NOT EXECUTED 431b2: b685 cmpl %d5,%d3 <== NOT EXECUTED 431b4: 6416 bccs 431cc <== NOT EXECUTED 431b6: 1807 moveb %d7,%d4 <== NOT EXECUTED 431b8: 49c4 extbl %d4 <== NOT EXECUTED BSP_output_char(lead); 431ba: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 431c0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 431c2: 4e90 jsr %a0@ <== NOT EXECUTED toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 431c4: 5382 subql #1,%d2 <== NOT EXECUTED 431c6: 588f addql #4,%sp <== NOT EXECUTED 431c8: b682 cmpl %d2,%d3 <== NOT EXECUTED 431ca: 65ee bcss 431ba <== NOT EXECUTED BSP_output_char(lead); for (n = 0; n < count; n++) { 431cc: 4a83 tstl %d3 <== NOT EXECUTED 431ce: 6700 fedc beqw 430ac <== NOT EXECUTED 431d2: 45f6 3800 lea %fp@(00000000,%d3:l),%a2 <== NOT EXECUTED 431d6: 4282 clrl %d2 <== NOT EXECUTED BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 431d8: 2002 movel %d2,%d0 <== NOT EXECUTED 431da: 4680 notl %d0 <== NOT EXECUTED 431dc: 1232 08ec moveb %a2@(ffffffec,%d0:l),%d1 <== NOT EXECUTED 431e0: 41f9 0005 5bb9 lea 55bb9 ,%a0 <== NOT EXECUTED 431e6: 49c1 extbl %d1 <== NOT EXECUTED 431e8: 1230 1800 moveb %a0@(00000000,%d1:l),%d1 <== NOT EXECUTED 431ec: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 431f2: 49c1 extbl %d1 <== NOT EXECUTED 431f4: 2f01 movel %d1,%sp@- <== NOT EXECUTED 431f6: 4e90 jsr %a0@ <== NOT EXECUTED toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 431f8: 5282 addql #1,%d2 <== NOT EXECUTED 431fa: 588f addql #4,%sp <== NOT EXECUTED 431fc: b483 cmpl %d3,%d2 <== NOT EXECUTED 431fe: 6400 feac bccw 430ac <== NOT EXECUTED BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 43202: 2002 movel %d2,%d0 <== NOT EXECUTED 43204: 4680 notl %d0 <== NOT EXECUTED 43206: 1232 08ec moveb %a2@(ffffffec,%d0:l),%d1 <== NOT EXECUTED 4320a: 41f9 0005 5bb9 lea 55bb9 ,%a0 <== NOT EXECUTED 43210: 49c1 extbl %d1 <== NOT EXECUTED 43212: 1230 1800 moveb %a0@(00000000,%d1:l),%d1 <== NOT EXECUTED 43216: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 4321c: 49c1 extbl %d1 <== NOT EXECUTED 4321e: 2f01 movel %d1,%sp@- <== NOT EXECUTED 43220: 4e90 jsr %a0@ <== NOT EXECUTED toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 43222: 5282 addql #1,%d2 <== NOT EXECUTED 43224: 588f addql #4,%sp <== NOT EXECUTED 43226: b483 cmpl %d3,%d2 <== NOT EXECUTED 43228: 65ae bcss 431d8 <== NOT EXECUTED 4322a: 6000 fe80 braw 430ac <== NOT EXECUTED BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 4322e: 2414 movel %a4@,%d2 <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 43230: 7001 moveq #1,%d0 <== NOT EXECUTED 43232: 780a moveq #10,%d4 <== NOT EXECUTED BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 43234: 588c addql #4,%a4 <== NOT EXECUTED { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 43236: 7201 moveq #1,%d1 <== NOT EXECUTED 43238: b280 cmpl %d0,%d1 <== NOT EXECUTED 4323a: 6600 ff26 bnew 43162 <== NOT EXECUTED 4323e: 6000 00a0 braw 432e0 <== NOT EXECUTED case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 43242: 2454 moveal %a4@,%a2 <== NOT EXECUTED 43244: 588c addql #4,%a4 <== NOT EXECUTED /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 43246: 4a12 tstb %a2@ <== NOT EXECUTED 43248: 6700 0142 beqw 4338c <== NOT EXECUTED 4324c: 4283 clrl %d3 <== NOT EXECUTED 4324e: 5283 addql #1,%d3 <== NOT EXECUTED 43250: 4a32 3800 tstb %a2@(00000000,%d3:l) <== NOT EXECUTED 43254: 66f8 bnes 4324e <== NOT EXECUTED ; /* leading spaces */ if ( !minus ) 43256: 4a86 tstl %d6 <== NOT EXECUTED 43258: 6600 010e bnew 43368 <== NOT EXECUTED for ( i=len ; i <== NOT EXECUTED 43262: 2403 movel %d3,%d2 <== NOT EXECUTED BSP_output_char(' '); 43264: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 4326a: 4878 0020 pea 20 <== NOT EXECUTED 4326e: 4e90 jsr %a0@ <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i <== NOT EXECUTED if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i <== NOT EXECUTED BSP_output_char(*str); /* trailing spaces */ if ( minus ) 4327e: 4a86 tstl %d6 <== NOT EXECUTED 43280: 6700 fe2a beqw 430ac <== NOT EXECUTED for ( i=len ; i <== NOT EXECUTED 4328a: 2403 movel %d3,%d2 <== NOT EXECUTED BSP_output_char(' '); 4328c: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 43292: 4878 0020 pea 20 <== NOT EXECUTED 43296: 4e90 jsr %a0@ <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED BSP_output_char(' '); 432a2: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 432a8: 4878 0020 pea 20 <== NOT EXECUTED 432ac: 4e90 jsr %a0@ <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 432b6: 6000 fdf4 braw 430ac <== NOT EXECUTED BSP_output_char(' '); } break; case 'c': BSP_output_char(va_arg(ap, int)); 432ba: 2014 movel %a4@,%d0 <== NOT EXECUTED 432bc: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 432c2: 49c0 extbl %d0 <== NOT EXECUTED 432c4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 432c6: 4e90 jsr %a0@ <== NOT EXECUTED ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 432c8: 528b addql #1,%a3 <== NOT EXECUTED for ( i=len ; i <== NOT EXECUTED 432d4: 6000 fdde braw 430b4 <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 432d8: 4280 clrl %d0 <== NOT EXECUTED 432da: 780a moveq #10,%d4 <== NOT EXECUTED 432dc: 6000 fe78 braw 43156 <== NOT EXECUTED { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 432e0: 4a82 tstl %d2 <== NOT EXECUTED 432e2: 6c00 fe7e bgew 43162 <== NOT EXECUTED BSP_output_char('-'); 432e6: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 432ec: 4878 002d pea 2d <== NOT EXECUTED 432f0: 4e90 jsr %a0@ <== NOT EXECUTED num = -num; 432f2: 4482 negl %d2 <== NOT EXECUTED if (maxwidth) maxwidth--; 432f4: 588f addql #4,%sp <== NOT EXECUTED 432f6: 4a85 tstl %d5 <== NOT EXECUTED 432f8: 6700 fe68 beqw 43162 <== NOT EXECUTED } count = 0; while ((n = num / base) > 0) { 432fc: 2002 movel %d2,%d0 <== NOT EXECUTED char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; if (maxwidth) maxwidth--; 432fe: 5385 subql #1,%d5 <== NOT EXECUTED } count = 0; while ((n = num / base) > 0) { 43300: 4c44 0000 remul %d4,%d0,%d0 <== NOT EXECUTED 43304: 6600 fe66 bnew 4316c <== NOT EXECUTED 43308: 91c8 subal %a0,%a0 <== NOT EXECUTED 4330a: 7601 moveq #1,%d3 <== NOT EXECUTED 4330c: 6000 fe9e braw 431ac <== NOT EXECUTED if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 43310: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 43316: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43318: 4e90 jsr %a0@ <== NOT EXECUTED ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 4331a: 528b addql #1,%a3 <== NOT EXECUTED if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 4331c: 588f addql #4,%sp <== NOT EXECUTED ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 4331e: 1013 moveb %a3@,%d0 <== NOT EXECUTED 43320: 6600 fcec bnew 4300e <== NOT EXECUTED 43324: 6000 fd8e braw 430b4 <== NOT EXECUTED lead = '0'; fmt++; } if (*fmt == '-' ) { minus = 1; fmt++; 43328: 5289 addql #1,%a1 <== NOT EXECUTED 4332a: 1611 moveb %a1@,%d3 <== NOT EXECUTED } while (*fmt >= '0' && *fmt <= '9' ) { 4332c: 2003 movel %d3,%d0 <== NOT EXECUTED 4332e: 1403 moveb %d3,%d2 <== NOT EXECUTED 43330: 0680 ffff ffd0 addil #-48,%d0 <== NOT EXECUTED lead = '0'; fmt++; } if (*fmt == '-' ) { minus = 1; fmt++; 43336: 7c01 moveq #1,%d6 <== NOT EXECUTED 43338: 49c2 extbl %d2 <== NOT EXECUTED } while (*fmt >= '0' && *fmt <= '9' ) { 4333a: 0280 0000 00ff andil #255,%d0 <== NOT EXECUTED 43340: 7209 moveq #9,%d1 <== NOT EXECUTED 43342: b280 cmpl %d0,%d1 <== NOT EXECUTED 43344: 6400 fd06 bccw 4304c <== NOT EXECUTED 43348: 2649 moveal %a1,%a3 <== NOT EXECUTED 4334a: 4284 clrl %d4 <== NOT EXECUTED 4334c: 4285 clrl %d5 <== NOT EXECUTED width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 4334e: 726c moveq #108,%d1 <== NOT EXECUTED 43350: b282 cmpl %d2,%d1 <== NOT EXECUTED 43352: 6600 fd36 bnew 4308a <== NOT EXECUTED 43356: 6000 fdda braw 43132 <== NOT EXECUTED lead = ' '; if (*fmt == '%') { fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 4335a: 5289 addql #1,%a1 <== NOT EXECUTED 4335c: 1611 moveb %a1@,%d3 <== NOT EXECUTED 4335e: 1403 moveb %d3,%d2 <== NOT EXECUTED 43360: 7e30 moveq #48,%d7 <== NOT EXECUTED 43362: 49c2 extbl %d2 <== NOT EXECUTED 43364: 6000 fcc6 braw 4302c <== NOT EXECUTED if ( !minus ) for ( i=len ; i <== NOT EXECUTED 4336e: 2a03 movel %d3,%d5 <== NOT EXECUTED width = len; } /* output the string */ for ( i=0 ; i <== NOT EXECUTED 43374: 1012 moveb %a2@,%d0 <== NOT EXECUTED 43376: 6700 ff06 beqw 4327e <== NOT EXECUTED BSP_output_char(*str); 4337a: 2079 0005 6c9c moveal 56c9c ,%a0 <== NOT EXECUTED 43380: 49c0 extbl %d0 <== NOT EXECUTED 43382: 2f00 movel %d0,%sp@- <== NOT EXECUTED 43384: 4e90 jsr %a0@ <== NOT EXECUTED if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i <== NOT EXECUTED char *s; str = va_arg(ap, char *); /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 4338c: 4283 clrl %d3 <== NOT EXECUTED ; /* leading spaces */ if ( !minus ) 4338e: 4a86 tstl %d6 <== NOT EXECUTED 43390: 66d6 bnes 43368 <== NOT EXECUTED 43392: 6000 fec8 braw 4325c <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 43396: 4280 clrl %d0 <== NOT EXECUTED 43398: 7810 moveq #16,%d4 <== NOT EXECUTED 4339a: 6000 fdba braw 43156 <== NOT EXECUTED 00055030 : ssize_t write( int fd, const void *buffer, size_t count ) { 55030: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 55034: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 55038: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 5503c: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 55040: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 55044: b4b9 0005 6b98 cmpl 56b98 ,%d2 <== NOT EXECUTED 5504a: 6464 bccs 550b0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 5504c: 2202 movel %d2,%d1 <== NOT EXECUTED 5504e: 2002 movel %d2,%d0 <== NOT EXECUTED 55050: e589 lsll #2,%d1 <== NOT EXECUTED 55052: e988 lsll #4,%d0 <== NOT EXECUTED 55054: 9081 subl %d1,%d0 <== NOT EXECUTED 55056: 2479 0005 85ec moveal 585ec ,%a2 <== NOT EXECUTED 5505c: d082 addl %d2,%d0 <== NOT EXECUTED 5505e: e588 lsll #2,%d0 <== NOT EXECUTED 55060: d5c0 addal %d0,%a2 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 55062: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED 55066: 0800 0008 btst #8,%d0 <== NOT EXECUTED 5506a: 6744 beqs 550b0 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 5506c: 4a83 tstl %d3 <== NOT EXECUTED 5506e: 6758 beqs 550c8 <== NOT EXECUTED rtems_libio_check_count( count ); 55070: 4a89 tstl %a1 <== NOT EXECUTED 55072: 6730 beqs 550a4 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 55074: 44c0 movew %d0,%ccr <== NOT EXECUTED 55076: 6650 bnes 550c8 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 55078: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 5507c: 2068 000c moveal %a0@(12),%a0 <== NOT EXECUTED 55080: 4a88 tstl %a0 <== NOT EXECUTED 55082: 675c beqs 550e0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 55084: 2f09 movel %a1,%sp@- <== NOT EXECUTED 55086: 2f03 movel %d3,%sp@- <== NOT EXECUTED 55088: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5508a: 4e90 jsr %a0@ <== NOT EXECUTED if ( rc > 0 ) 5508c: dffc 0000 000c addal #12,%sp <== NOT EXECUTED 55092: 4a80 tstl %d0 <== NOT EXECUTED 55094: 6f04 bles 5509a <== NOT EXECUTED iop->offset += rc; 55096: d1aa 0008 addl %d0,%a2@(8) <== NOT EXECUTED return rc; } 5509a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 550a0: 4e5e unlk %fp <== NOT EXECUTED 550a2: 4e75 rts <== NOT EXECUTED 550a4: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 550aa: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); 550ac: 4280 clrl %d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550ae: 4e75 rts <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 550b0: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550b6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 550bc: 2040 moveal %d0,%a0 <== NOT EXECUTED 550be: 7209 moveq #9,%d1 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550c0: 4e5e unlk %fp <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 550c2: 70ff moveq #-1,%d0 <== NOT EXECUTED 550c4: 2081 movel %d1,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550c6: 4e75 rts <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 550c8: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED 550ce: 2040 moveal %d0,%a0 <== NOT EXECUTED 550d0: 7016 moveq #22,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550d2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 550d8: 2080 movel %d0,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550da: 4e5e unlk %fp <== NOT EXECUTED rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 550dc: 70ff moveq #-1,%d0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550de: 4e75 rts <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 550e0: 4eb9 0004 c600 jsr 4c600 <__errno> <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550e6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 550ec: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550ee: 4e5e unlk %fp <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 550f0: 70ff moveq #-1,%d0 <== NOT EXECUTED 550f2: 20bc 0000 0086 movel #134,%a0@ <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 550f8: 4e75 rts <== NOT EXECUTED ...