020098cc : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 20098cc: c2 02 00 00 ld [ %o0 ], %g1 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 20098d0: c4 02 20 0c ld [ %o0 + 0xc ], %g2 switch( node->type ) { 20098d4: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 20098d8: 80 a0 60 06 cmp %g1, 6 20098dc: 18 80 00 0a bgu 2009904 20098e0: c8 00 a0 2c ld [ %g2 + 0x2c ], %g4 20098e4: 83 28 60 02 sll %g1, 2, %g1 20098e8: 05 00 80 26 sethi %hi(0x2009800), %g2 20098ec: 84 10 a0 b0 or %g2, 0xb0, %g2 ! 20098b0 20098f0: c6 00 80 01 ld [ %g2 + %g1 ], %g3 20098f4: 81 c0 c0 00 jmp %g3 20098f8: 01 00 00 00 nop case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 20098fc: c2 01 20 08 ld [ %g4 + 8 ], %g1 2009900: c2 22 20 04 st %g1, [ %o0 + 4 ] loc->handlers = fs_info->memfile_handlers; break; } return 0; } 2009904: 81 c3 e0 08 retl 2009908: 90 10 20 00 clr %o0 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 200990c: c2 01 20 04 ld [ %g4 + 4 ], %g1 <== NOT EXECUTED 2009910: c2 22 20 04 st %g1, [ %o0 + 4 ] <== NOT EXECUTED break; } return 0; } 2009914: 81 c3 e0 08 retl <== NOT EXECUTED 2009918: 90 10 20 00 clr %o0 <== NOT EXECUTED case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 200991c: 03 00 80 56 sethi %hi(0x2015800), %g1 <== NOT EXECUTED 2009920: 82 10 62 94 or %g1, 0x294, %g1 ! 2015a94 <== NOT EXECUTED 2009924: c2 22 20 04 st %g1, [ %o0 + 4 ] <== NOT EXECUTED loc->handlers = fs_info->memfile_handlers; break; } return 0; } 2009928: 81 c3 e0 08 retl <== NOT EXECUTED 200992c: 90 10 20 00 clr %o0 <== NOT EXECUTED switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 2009930: 03 00 80 56 sethi %hi(0x2015800), %g1 2009934: 82 10 62 5c or %g1, 0x25c, %g1 ! 2015a5c 2009938: c2 22 20 04 st %g1, [ %o0 + 4 ] loc->handlers = fs_info->memfile_handlers; break; } return 0; } 200993c: 81 c3 e0 08 retl 2009940: 90 10 20 00 clr %o0 0201f028 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 201f028: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 201f02c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 201f030: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 201f034: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] <== NOT EXECUTED jnode->st_gid = group; 201f038: f4 34 20 3a sth %i2, [ %l0 + 0x3a ] <== NOT EXECUTED IMFS_update_ctime( jnode ); 201f03c: 7f ff 95 f9 call 2004820 <== NOT EXECUTED 201f040: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f044: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201f048: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 201f04c: 81 c7 e0 08 ret <== NOT EXECUTED 201f050: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200c474 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200c474: 9d e3 bf 90 save %sp, -112, %sp IMFS_jnode_t *node; struct timeval tv; IMFS_jnode_t *parent = NULL; IMFS_fs_info_t *fs_info; if ( parent_loc != NULL ) 200c478: a2 96 20 00 orcc %i0, 0, %l1 200c47c: 02 80 00 03 be 200c488 200c480: a0 10 20 00 clr %l0 parent = parent_loc->node_access; 200c484: e0 04 40 00 ld [ %l1 ], %l0 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 200c488: 90 10 20 01 mov 1, %o0 200c48c: 7f ff f8 a0 call 200a70c 200c490: 92 10 20 5c mov 0x5c, %o1 if ( !node ) 200c494: b0 92 20 00 orcc %o0, 0, %i0 200c498: 02 80 00 2e be 200c550 200c49c: 82 10 20 01 mov 1, %g1 * Fill in the basic information */ node->st_nlink = 1; node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 200c4a0: 92 10 00 1a mov %i2, %o1 200c4a4: 94 10 20 20 mov 0x20, %o2 /* * Fill in the basic information */ node->st_nlink = 1; 200c4a8: c2 36 20 30 sth %g1, [ %i0 + 0x30 ] node->type = type; 200c4ac: f2 26 20 48 st %i1, [ %i0 + 0x48 ] strncpy( node->name, name, IMFS_NAME_MAX ); 200c4b0: 40 00 07 74 call 200e280 200c4b4: 90 06 20 0c add %i0, 0xc, %o0 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 200c4b8: 03 00 80 5a sethi %hi(0x2016800), %g1 200c4bc: c4 00 61 64 ld [ %g1 + 0x164 ], %g2 ! 2016964 /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200c4c0: 90 07 bf f0 add %fp, -16, %o0 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 200c4c4: c2 10 a0 24 lduh [ %g2 + 0x24 ], %g1 /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200c4c8: 92 10 20 00 clr %o1 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 200c4cc: 82 2e c0 01 andn %i3, %g1, %g1 #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; 200c4d0: c0 36 20 38 clrh [ %i0 + 0x38 ] /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 200c4d4: c2 36 20 2e sth %g1, [ %i0 + 0x2e ] /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200c4d8: 7f ff f9 45 call 200a9ec 200c4dc: c0 36 20 3a clrh [ %i0 + 0x3a ] node->stat_atime = (time_t) tv.tv_sec; 200c4e0: c2 07 bf f0 ld [ %fp + -16 ], %g1 /* * Set the type specific information */ switch (type) { 200c4e4: 80 a6 60 06 cmp %i1, 6 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; 200c4e8: c2 26 20 44 st %g1, [ %i0 + 0x44 ] * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 200c4ec: c2 26 20 3c st %g1, [ %i0 + 0x3c ] /* * Set the type specific information */ switch (type) { 200c4f0: 08 80 00 1a bleu 200c558 200c4f4: c2 26 20 40 st %g1, [ %i0 + 0x40 ] node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; break; default: assert(0); 200c4f8: 11 00 80 57 sethi %hi(0x2015c00), %o0 <== NOT EXECUTED 200c4fc: 15 00 80 57 sethi %hi(0x2015c00), %o2 <== NOT EXECUTED 200c500: 17 00 80 57 sethi %hi(0x2015c00), %o3 <== NOT EXECUTED 200c504: 90 12 20 f8 or %o0, 0xf8, %o0 <== NOT EXECUTED 200c508: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 200c50c: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 200c510: 7f ff d6 7c call 2001f00 <__assert_func> <== NOT EXECUTED 200c514: 92 10 20 74 mov 0x74, %o1 <== 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; 200c518: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED 200c51c: c2 26 20 4c st %g1, [ %i0 + 0x4c ] <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { 200c520: 80 a4 20 00 cmp %l0, 0 200c524: 02 80 00 0b be 200c550 200c528: 90 04 20 4c add %l0, 0x4c, %o0 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 200c52c: 7f ff e7 5d call 20062a0 <_Chain_Append> 200c530: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; fs_info = parent_loc->mt_entry->fs_info; 200c534: c2 04 60 0c ld [ %l1 + 0xc ], %g1 * 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; 200c538: e0 26 20 08 st %l0, [ %i0 + 8 ] fs_info = parent_loc->mt_entry->fs_info; 200c53c: c6 00 60 2c ld [ %g1 + 0x2c ], %g3 node->st_ino = ++fs_info->ino_count; 200c540: c4 00 c0 00 ld [ %g3 ], %g2 200c544: 84 00 a0 01 inc %g2 200c548: c4 20 c0 00 st %g2, [ %g3 ] 200c54c: c4 26 20 34 st %g2, [ %i0 + 0x34 ] } return node; } 200c550: 81 c7 e0 08 ret 200c554: 81 e8 00 00 restore /* * Set the type specific information */ switch (type) { 200c558: 83 2e 60 02 sll %i1, 2, %g1 200c55c: 05 00 80 31 sethi %hi(0x200c400), %g2 200c560: 84 10 a0 58 or %g2, 0x58, %g2 ! 200c458 200c564: c6 00 80 01 ld [ %g2 + %g1 ], %g3 200c568: 81 c0 c0 00 jmp %g3 200c56c: 01 00 00 00 nop node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200c570: c0 26 20 4c clr [ %i0 + 0x4c ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200c574: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200c578: c0 26 20 4c clr [ %i0 + 0x4c ] <== NOT EXECUTED node->info.file.indirect = 0; 200c57c: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED node->info.file.doubly_indirect = 0; 200c580: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.file.triply_indirect = 0; 200c584: 10 bf ff e7 b 200c520 <== NOT EXECUTED 200c588: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 200c58c: c2 07 20 04 ld [ %i4 + 4 ], %g1 case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 200c590: c4 07 00 00 ld [ %i4 ], %g2 node->info.device.minor = info->device.minor; 200c594: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 200c598: 10 bf ff e2 b 200c520 200c59c: c4 26 20 4c st %g2, [ %i0 + 0x4c ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200c5a0: 82 06 20 50 add %i0, 0x50, %g1 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200c5a4: 84 06 20 4c add %i0, 0x4c, %g2 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 200c5a8: c0 26 20 50 clr [ %i0 + 0x50 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200c5ac: c2 26 20 4c st %g1, [ %i0 + 0x4c ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200c5b0: 10 bf ff dc b 200c520 200c5b4: c4 26 20 54 st %g2, [ %i0 + 0x54 ] 02009ab0 : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009ab0: 9d e3 bf 70 save %sp, -144, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009ab4: e0 06 80 00 ld [ %i2 ], %l0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009ab8: 03 00 80 5a sethi %hi(0x2016800), %g1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009abc: a4 10 20 00 clr %l2 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009ac0: aa 10 61 64 or %g1, 0x164, %l5 2009ac4: a6 07 bf d0 add %fp, -48, %l3 2009ac8: a8 07 bf f4 add %fp, -12, %l4 * 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 ); 2009acc: 90 06 00 12 add %i0, %l2, %o0 2009ad0: 92 10 00 13 mov %l3, %o1 2009ad4: 40 00 01 b7 call 200a1b0 2009ad8: 94 10 00 14 mov %l4, %o2 i += len; if ( !pathloc->node_access ) 2009adc: c6 06 80 00 ld [ %i2 ], %g3 * 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 ); 2009ae0: a2 10 00 08 mov %o0, %l1 i += len; if ( !pathloc->node_access ) 2009ae4: 80 a0 e0 00 cmp %g3, 0 2009ae8: 02 80 00 67 be 2009c84 2009aec: d6 07 bf f4 ld [ %fp + -12 ], %o3 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009af0: 80 a2 20 00 cmp %o0, 0 2009af4: 12 80 00 19 bne 2009b58 2009af8: a4 04 80 0b add %l2, %o3, %l2 * 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 ) { 2009afc: c2 00 e0 48 ld [ %g3 + 0x48 ], %g1 2009b00: 80 a0 60 01 cmp %g1, 1 2009b04: 12 80 00 73 bne 2009cd0 2009b08: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 2009b0c: c4 00 e0 58 ld [ %g3 + 0x58 ], %g2 2009b10: 80 a0 a0 00 cmp %g2, 0 2009b14: 02 80 00 6f be 2009cd0 2009b18: 90 24 80 0b sub %l2, %o3, %o0 newloc = node->info.directory.mt_fs->mt_fs_root; 2009b1c: c8 00 a0 20 ld [ %g2 + 0x20 ], %g4 <== NOT EXECUTED *pathloc = newloc; 2009b20: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 <== 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; 2009b24: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009b28: da 01 00 00 ld [ %g4 ], %o5 <== 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; 2009b2c: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 <== NOT EXECUTED *pathloc = newloc; 2009b30: c6 26 a0 0c st %g3, [ %i2 + 0xc ] <== NOT EXECUTED 2009b34: c2 26 a0 04 st %g1, [ %i2 + 4 ] <== NOT EXECUTED 2009b38: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009b3c: 90 06 00 08 add %i0, %o0, %o0 <== 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; 2009b40: c8 26 a0 08 st %g4, [ %i2 + 8 ] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009b44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009b48: 9f c3 40 00 call %o5 <== NOT EXECUTED 2009b4c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009b50: 81 c7 e0 08 ret <== NOT EXECUTED 2009b54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 2009b58: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2009b5c: 80 a0 60 01 cmp %g1, 1 2009b60: 02 80 00 3d be 2009c54 2009b64: a0 10 00 03 mov %g3, %l0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 2009b68: 80 a4 60 03 cmp %l1, 3 <== NOT EXECUTED 2009b6c: 02 80 00 0a be 2009b94 2009b70: 80 a4 60 04 cmp %l1, 4 2009b74: 02 80 00 31 be 2009c38 2009b78: 80 a4 60 02 cmp %l1, 2 2009b7c: 02 80 00 1c be 2009bec 2009b80: 80 a4 60 04 cmp %l1, 4 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 2009b84: 12 bf ff d3 bne 2009ad0 2009b88: 90 06 00 12 add %i0, %l2, %o0 * 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 ) { 2009b8c: 10 bf ff dd b 2009b00 <== NOT EXECUTED 2009b90: c2 00 e0 48 ld [ %g3 + 0x48 ], %g1 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 2009b94: c2 00 e0 48 ld [ %g3 + 0x48 ], %g1 2009b98: 80 a0 60 03 cmp %g1, 3 2009b9c: 02 80 00 40 be 2009c9c 2009ba0: 80 a0 60 04 cmp %g1, 4 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 2009ba4: 02 80 00 5f be 2009d20 2009ba8: 90 10 00 1a mov %i2, %o0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 2009bac: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2009bb0: 80 a0 60 01 cmp %g1, 1 2009bb4: 12 80 00 41 bne 2009cb8 2009bb8: 01 00 00 00 nop /* * 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 ) { 2009bbc: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 2009bc0: 80 a0 e0 00 cmp %g3, 0 2009bc4: 32 80 00 4d bne,a 2009cf8 2009bc8: c8 00 e0 20 ld [ %g3 + 0x20 ], %g4 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009bcc: 90 10 00 10 mov %l0, %o0 2009bd0: 40 00 01 4a call 200a0f8 2009bd4: 92 10 00 13 mov %l3, %o1 if ( !node ) 2009bd8: a0 92 20 00 orcc %o0, 0, %l0 2009bdc: 02 80 00 2a be 2009c84 2009be0: 01 00 00 00 nop /* * Set the node access to the point we have found. */ pathloc->node_access = node; 2009be4: 10 bf ff ba b 2009acc 2009be8: e0 26 80 00 st %l0, [ %i2 ] case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009bec: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED 2009bf0: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 <== NOT EXECUTED 2009bf4: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2009bf8: 02 bf ff b6 be 2009ad0 <== NOT EXECUTED 2009bfc: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 2009c00: d8 06 a0 0c ld [ %i2 + 0xc ], %o4 <== NOT EXECUTED 2009c04: c2 03 20 18 ld [ %o4 + 0x18 ], %g1 <== NOT EXECUTED 2009c08: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2009c0c: 22 80 00 4c be,a 2009d3c <== NOT EXECUTED 2009c10: c8 03 20 10 ld [ %o4 + 0x10 ], %g4 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); } } else { if ( !node->Parent ) 2009c14: e0 00 e0 08 ld [ %g3 + 8 ], %l0 <== NOT EXECUTED 2009c18: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2009c1c: 32 bf ff ad bne,a 2009ad0 <== NOT EXECUTED 2009c20: e0 26 80 00 st %l0, [ %i2 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 2009c24: 40 00 0c 55 call 200cd78 <__errno> <== NOT EXECUTED 2009c28: 01 00 00 00 nop <== NOT EXECUTED 2009c2c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED 2009c30: 10 80 00 07 b 2009c4c <== NOT EXECUTED 2009c34: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 2009c38: 40 00 0c 50 call 200cd78 <__errno> <== NOT EXECUTED 2009c3c: 01 00 00 00 nop <== NOT EXECUTED 2009c40: 82 10 20 5b mov 0x5b, %g1 ! 5b <== NOT EXECUTED 2009c44: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009c48: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009c4c: 81 c7 e0 08 ret 2009c50: 91 e8 00 08 restore %g0, %o0, %o0 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 2009c54: c2 10 e0 2e lduh [ %g3 + 0x2e ], %g1 2009c58: 80 88 60 40 btst 0x40, %g1 2009c5c: 12 bf ff c4 bne 2009b6c 2009c60: 80 a4 60 03 cmp %l1, 3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 2009c64: 40 00 0c 45 call 200cd78 <__errno> <== NOT EXECUTED 2009c68: 01 00 00 00 nop <== NOT EXECUTED 2009c6c: 82 10 20 0d mov 0xd, %g1 ! d <== NOT EXECUTED 2009c70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009c74: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return result; } 2009c78: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2009c7c: 81 c7 e0 08 ret <== NOT EXECUTED 2009c80: 81 e8 00 00 restore <== 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 ); 2009c84: 40 00 0c 3d call 200cd78 <__errno> <== NOT EXECUTED 2009c88: 01 00 00 00 nop <== NOT EXECUTED 2009c8c: 82 10 20 02 mov 2, %g1 ! 2 <== NOT EXECUTED 2009c90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009c94: 10 bf ff ee b 2009c4c <== NOT EXECUTED 2009c98: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 2009c9c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2009ca0: 7f ff ff 30 call 2009960 <== NOT EXECUTED 2009ca4: 92 10 20 00 clr %o1 <== NOT EXECUTED node = pathloc->node_access; 2009ca8: e0 06 80 00 ld [ %i2 ], %l0 <== NOT EXECUTED if ( !node ) 2009cac: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2009cb0: 32 bf ff c0 bne,a 2009bb0 <== NOT EXECUTED 2009cb4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 2009cb8: 40 00 0c 30 call 200cd78 <__errno> <== NOT EXECUTED 2009cbc: 01 00 00 00 nop <== NOT EXECUTED 2009cc0: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 2009cc4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009cc8: 10 bf ff e1 b 2009c4c <== NOT EXECUTED 2009ccc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 2009cd0: 7f ff fe ff call 20098cc 2009cd4: 90 10 00 1a mov %i2, %o0 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 2009cd8: c2 06 80 00 ld [ %i2 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009cdc: 87 2e 60 06 sll %i1, 6, %g3 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 2009ce0: c4 10 60 2e lduh [ %g1 + 0x2e ], %g2 2009ce4: 84 08 c0 02 and %g3, %g2, %g2 2009ce8: 80 a0 c0 02 cmp %g3, %g2 2009cec: 12 bf ff de bne 2009c64 2009cf0: 01 00 00 00 nop 2009cf4: 30 bf ff d6 b,a 2009c4c * 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; 2009cf8: c2 00 e0 24 ld [ %g3 + 0x24 ], %g1 <== 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; 2009cfc: c4 00 e0 1c ld [ %g3 + 0x1c ], %g2 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009d00: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== 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; 2009d04: c6 00 e0 18 ld [ %g3 + 0x18 ], %g3 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009d08: da 01 00 00 ld [ %g4 ], %o5 <== 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; 2009d0c: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009d10: 90 24 80 08 sub %l2, %o0, %o0 <== 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; 2009d14: c4 26 a0 04 st %g2, [ %i2 + 4 ] <== NOT EXECUTED 2009d18: 10 bf ff 89 b 2009b3c <== NOT EXECUTED 2009d1c: c6 26 80 00 st %g3, [ %i2 ] <== 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 ); 2009d20: 7f ff ff 2b call 20099cc <== NOT EXECUTED 2009d24: 92 10 20 00 clr %o1 <== NOT EXECUTED node = pathloc->node_access; if ( result == -1 ) 2009d28: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2009d2c: 02 bf ff c8 be 2009c4c <== NOT EXECUTED 2009d30: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 2009d34: 10 bf ff 9e b 2009bac <== NOT EXECUTED 2009d38: a0 10 00 01 mov %g1, %l0 <== 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; *pathloc = newloc; 2009d3c: c2 03 20 14 ld [ %o4 + 0x14 ], %g1 <== 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; 2009d40: c4 03 20 0c ld [ %o4 + 0xc ], %g2 <== NOT EXECUTED 2009d44: c6 03 20 08 ld [ %o4 + 8 ], %g3 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); 2009d48: da 01 00 00 ld [ %g4 ], %o5 <== NOT EXECUTED 2009d4c: 90 24 80 0b sub %l2, %o3, %o0 <== 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; *pathloc = newloc; 2009d50: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED 2009d54: c4 26 a0 04 st %g2, [ %i2 + 4 ] <== NOT EXECUTED 2009d58: 10 bf ff 79 b 2009b3c <== NOT EXECUTED 2009d5c: c6 26 80 00 st %g3, [ %i2 ] <== NOT EXECUTED 02009e2c : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 2009e2c: 9d e3 bf 70 save %sp, -144, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009e30: e2 06 40 00 ld [ %i1 ], %l1 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 2009e34: a4 10 00 18 mov %i0, %l2 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009e38: 03 00 80 5a sethi %hi(0x2016800), %g1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009e3c: b0 10 20 00 clr %i0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009e40: aa 10 61 64 or %g1, 0x164, %l5 2009e44: a6 07 bf d0 add %fp, -48, %l3 2009e48: a8 07 bf f4 add %fp, -12, %l4 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 2009e4c: 90 04 80 18 add %l2, %i0, %o0 2009e50: 92 10 00 13 mov %l3, %o1 2009e54: 40 00 00 d7 call 200a1b0 2009e58: 94 10 00 14 mov %l4, %o2 2009e5c: a0 10 00 08 mov %o0, %l0 i += len; if ( !pathloc->node_access ) 2009e60: d0 06 40 00 ld [ %i1 ], %o0 2009e64: 80 a2 20 00 cmp %o0, 0 2009e68: 02 80 00 61 be 2009fec 2009e6c: d8 07 bf f4 ld [ %fp + -12 ], %o4 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009e70: 80 a4 20 00 cmp %l0, 0 2009e74: 32 80 00 09 bne,a 2009e98 2009e78: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 2009e7c: 40 00 0b bf call 200cd78 <__errno> <== NOT EXECUTED 2009e80: 01 00 00 00 nop <== NOT EXECUTED 2009e84: 82 10 20 11 mov 0x11, %g1 ! 11 <== NOT EXECUTED 2009e88: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009e8c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009e90: 81 c7 e0 08 ret 2009e94: 91 e8 00 08 restore %g0, %o0, %o0 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 2009e98: 80 a0 60 01 cmp %g1, 1 2009e9c: 02 80 00 5b be 200a008 2009ea0: a2 10 00 08 mov %o0, %l1 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 2009ea4: 80 a4 20 02 cmp %l0, 2 <== NOT EXECUTED 2009ea8: 02 80 00 2d be 2009f5c 2009eac: b0 06 00 0c add %i0, %o4, %i0 2009eb0: 80 a4 20 02 cmp %l0, 2 2009eb4: 08 80 00 0e bleu 2009eec 2009eb8: 80 a4 20 00 cmp %l0, 0 2009ebc: 80 a4 20 03 cmp %l0, 3 2009ec0: 02 80 00 0f be 2009efc 2009ec4: 80 a4 20 04 cmp %l0, 4 2009ec8: 12 bf ff e2 bne 2009e50 <== NOT EXECUTED 2009ecc: 90 04 80 18 add %l2, %i0, %o0 <== 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 ); 2009ed0: 40 00 0b aa call 200cd78 <__errno> <== NOT EXECUTED 2009ed4: 01 00 00 00 nop <== NOT EXECUTED 2009ed8: 82 10 20 5b mov 0x5b, %g1 ! 5b <== NOT EXECUTED 2009edc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009ee0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009ee4: 81 c7 e0 08 ret <== NOT EXECUTED 2009ee8: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ) { 2009eec: 02 bf ff e4 be 2009e7c 2009ef0: 90 04 80 18 add %l2, %i0, %o0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 2009ef4: 10 bf ff d8 b 2009e54 2009ef8: 92 10 00 13 mov %l3, %o1 pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 2009efc: c2 02 20 48 ld [ %o0 + 0x48 ], %g1 2009f00: 80 a0 60 03 cmp %g1, 3 2009f04: 02 80 00 6e be 200a0bc 2009f08: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 2009f0c: 22 80 00 6d be,a 200a0c0 2009f10: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 2009f14: 80 a2 20 00 cmp %o0, 0 2009f18: 02 80 00 54 be 200a068 2009f1c: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 2009f20: c2 02 20 48 ld [ %o0 + 0x48 ], %g1 2009f24: 80 a0 60 01 cmp %g1, 1 2009f28: 12 80 00 50 bne 200a068 2009f2c: 01 00 00 00 nop /* * 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 ) { 2009f30: c6 02 20 58 ld [ %o0 + 0x58 ], %g3 2009f34: 80 a0 e0 00 cmp %g3, 0 2009f38: 32 80 00 52 bne,a 200a080 2009f3c: c8 00 e0 20 ld [ %g3 + 0x20 ], %g4 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009f40: 40 00 00 6e call 200a0f8 2009f44: 92 10 00 13 mov %l3, %o1 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 2009f48: a2 92 20 00 orcc %o0, 0, %l1 2009f4c: 02 80 00 17 be 2009fa8 2009f50: c2 07 bf f4 ld [ %fp + -12 ], %g1 done = true; else pathloc->node_access = node; 2009f54: 10 bf ff be b 2009e4c 2009f58: e2 26 40 00 st %l1, [ %i1 ] case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009f5c: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED 2009f60: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 <== NOT EXECUTED 2009f64: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 2009f68: 22 bf ff ba be,a 2009e50 <== NOT EXECUTED 2009f6c: 90 04 80 18 add %l2, %i0, %o0 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 2009f70: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED 2009f74: c2 00 e0 18 ld [ %g3 + 0x18 ], %g1 <== NOT EXECUTED 2009f78: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2009f7c: 22 80 00 58 be,a 200a0dc <== NOT EXECUTED 2009f80: c8 00 e0 10 ld [ %g3 + 0x10 ], %g4 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 2009f84: e2 02 20 08 ld [ %o0 + 8 ], %l1 <== NOT EXECUTED 2009f88: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2009f8c: 32 bf ff b0 bne,a 2009e4c <== NOT EXECUTED 2009f90: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 2009f94: 40 00 0b 79 call 200cd78 <__errno> <== NOT EXECUTED 2009f98: 01 00 00 00 nop <== NOT EXECUTED 2009f9c: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 2009fa0: 10 bf ff bc b 2009e90 <== NOT EXECUTED 2009fa4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 2009fa8: 82 26 00 01 sub %i0, %g1, %g1 2009fac: 82 04 80 01 add %l2, %g1, %g1 2009fb0: c2 26 80 00 st %g1, [ %i2 ] /* * 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++) { 2009fb4: c2 4c 80 18 ldsb [ %l2 + %i0 ], %g1 2009fb8: 80 a0 60 00 cmp %g1, 0 2009fbc: 12 80 00 07 bne 2009fd8 2009fc0: 84 04 80 18 add %l2, %i0, %g2 2009fc4: 30 80 00 1c b,a 200a034 2009fc8: c2 48 a0 01 ldsb [ %g2 + 1 ], %g1 <== NOT EXECUTED 2009fcc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009fd0: 02 80 00 19 be 200a034 <== NOT EXECUTED 2009fd4: 84 00 a0 01 inc %g2 <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 2009fd8: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2009fdc: 02 bf ff fb be 2009fc8 <== NOT EXECUTED 2009fe0: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2009fe4: 22 bf ff fa be,a 2009fcc <== NOT EXECUTED 2009fe8: c2 48 a0 01 ldsb [ %g2 + 1 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 2009fec: 40 00 0b 63 call 200cd78 <__errno> <== NOT EXECUTED 2009ff0: 01 00 00 00 nop <== NOT EXECUTED 2009ff4: 82 10 20 02 mov 2, %g1 ! 2 <== NOT EXECUTED 2009ff8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009ffc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200a000: 81 c7 e0 08 ret <== NOT EXECUTED 200a004: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ) 200a008: c2 12 20 2e lduh [ %o0 + 0x2e ], %g1 200a00c: 80 88 60 40 btst 0x40, %g1 200a010: 12 bf ff a6 bne 2009ea8 200a014: 80 a4 20 02 cmp %l0, 2 /* * 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 ); 200a018: 40 00 0b 58 call 200cd78 <__errno> <== NOT EXECUTED 200a01c: 01 00 00 00 nop <== NOT EXECUTED 200a020: 82 10 20 0d mov 0xd, %g1 ! d <== NOT EXECUTED 200a024: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a028: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return result; } 200a02c: 81 c7 e0 08 ret <== NOT EXECUTED 200a030: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 200a034: 7f ff fe 26 call 20098cc 200a038: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 200a03c: d2 06 40 00 ld [ %i1 ], %o1 if ( node->type != IMFS_DIRECTORY ) 200a040: c2 02 60 48 ld [ %o1 + 0x48 ], %g1 200a044: 80 a0 60 01 cmp %g1, 1 200a048: 12 80 00 08 bne 200a068 200a04c: 01 00 00 00 nop /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 200a050: c2 12 60 2e lduh [ %o1 + 0x2e ], %g1 200a054: 82 08 60 c0 and %g1, 0xc0, %g1 200a058: 80 a0 60 c0 cmp %g1, 0xc0 200a05c: 12 bf ff ef bne 200a018 200a060: 01 00 00 00 nop 200a064: 30 bf ff 8b b,a 2009e90 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200a068: 40 00 0b 44 call 200cd78 <__errno> <== NOT EXECUTED 200a06c: 01 00 00 00 nop <== NOT EXECUTED 200a070: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 200a074: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a078: 10 bf ff 86 b 2009e90 <== NOT EXECUTED 200a07c: 90 10 3f ff mov -1, %o0 <== 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; 200a080: c2 00 e0 24 ld [ %g3 + 0x24 ], %g1 <== 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; 200a084: c4 00 e0 1c ld [ %g3 + 0x1c ], %g2 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a088: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED 200a08c: da 01 20 04 ld [ %g4 + 4 ], %o5 <== 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; 200a090: c6 00 e0 18 ld [ %g3 + 0x18 ], %g3 <== NOT EXECUTED *pathloc = newloc; 200a094: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a098: 90 26 00 08 sub %i0, %o0, %o0 <== 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; 200a09c: c4 26 60 04 st %g2, [ %i1 + 4 ] <== NOT EXECUTED 200a0a0: c6 26 40 00 st %g3, [ %i1 ] <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a0a4: 90 04 80 08 add %l2, %o0, %o0 <== 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; 200a0a8: c8 26 60 08 st %g4, [ %i1 + 8 ] <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a0ac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200a0b0: 9f c3 40 00 call %o5 <== NOT EXECUTED 200a0b4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200a0b8: 30 bf ff 76 b,a 2009e90 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 200a0bc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 200a0c0: 7f ff ff 28 call 2009d60 <== NOT EXECUTED 200a0c4: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( result == -1 ) 200a0c8: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 200a0cc: 02 bf ff 71 be 2009e90 <== NOT EXECUTED 200a0d0: 01 00 00 00 nop <== NOT EXECUTED 200a0d4: 10 bf ff 90 b 2009f14 <== NOT EXECUTED 200a0d8: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 200a0dc: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 200a0e0: c4 00 e0 0c ld [ %g3 + 0xc ], %g2 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a0e4: da 01 20 04 ld [ %g4 + 4 ], %o5 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 200a0e8: c6 00 e0 08 ld [ %g3 + 8 ], %g3 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a0ec: 90 26 00 0c sub %i0, %o4, %o0 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 200a0f0: 10 bf ff eb b 200a09c <== NOT EXECUTED 200a0f4: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED 02009960 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009960: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 2009964: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 2009968: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 200996c: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2009970: 12 80 00 14 bne 20099c0 <== NOT EXECUTED 2009974: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 2009978: c2 00 a0 4c ld [ %g2 + 0x4c ], %g1 <== NOT EXECUTED IMFS_Set_handlers( node ); 200997c: 7f ff ff d4 call 20098cc <== NOT EXECUTED 2009980: c2 26 00 00 st %g1, [ %i0 ] <== 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 ) 2009984: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009988: 87 2e 60 06 sll %i1, 6, %g3 <== 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 ) 200998c: c2 10 a0 2e lduh [ %g2 + 0x2e ], %g1 <== NOT EXECUTED 2009990: 82 08 c0 01 and %g3, %g1, %g1 <== NOT EXECUTED 2009994: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2009998: 02 80 00 08 be 20099b8 <== NOT EXECUTED 200999c: 01 00 00 00 nop <== 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 ); 20099a0: 40 00 0c f6 call 200cd78 <__errno> <== NOT EXECUTED 20099a4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20099a8: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 20099ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20099b0: 81 c7 e0 08 ret <== NOT EXECUTED 20099b4: 81 e8 00 00 restore <== NOT EXECUTED return result; } 20099b8: 81 c7 e0 08 ret <== NOT EXECUTED 20099bc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 20099c0: 7f ff f1 48 call 2005ee0 <== NOT EXECUTED 20099c4: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 20099c8: 01 00 00 00 nop 02009d60 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009d60: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2009d64: 25 00 80 5a sethi %hi(0x2016800), %l2 <== NOT EXECUTED 2009d68: 10 80 00 07 b 2009d84 <== NOT EXECUTED 2009d6c: a2 14 a1 64 or %l2, 0x164, %l1 ! 2016964 <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 2009d70: 02 80 00 23 be 2009dfc <== NOT EXECUTED 2009d74: 82 00 7f fd add %g1, -3, %g1 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 2009d78: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2009d7c: 18 80 00 1c bgu 2009dec <== NOT EXECUTED 2009d80: 90 10 20 00 clr %o0 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 2009d84: c4 04 40 00 ld [ %l1 ], %g2 <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 2009d88: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 2009d8c: c2 10 a0 26 lduh [ %g2 + 0x26 ], %g1 <== NOT EXECUTED 2009d90: 82 00 60 01 inc %g1 <== NOT EXECUTED 2009d94: c2 30 a0 26 sth %g1, [ %g2 + 0x26 ] <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 2009d98: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 2009d9c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 2009da0: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2009da4: 18 80 00 1b bgu 2009e10 <== NOT EXECUTED 2009da8: 01 00 00 00 nop <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 2009dac: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2009db0: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2009db4: 12 bf ff ef bne 2009d70 <== NOT EXECUTED 2009db8: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); 2009dbc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2009dc0: 7f ff fe e8 call 2009960 <== NOT EXECUTED 2009dc4: 92 10 00 19 mov %i1, %o1 <== 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 ) ) ); 2009dc8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009dcc: 12 80 00 09 bne 2009df0 <== NOT EXECUTED 2009dd0: c2 04 a1 64 ld [ %l2 + 0x164 ], %g1 <== NOT EXECUTED 2009dd4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2009dd8: 82 00 7f fd add %g1, -3, %g1 <== NOT EXECUTED 2009ddc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2009de0: 28 bf ff ea bleu,a 2009d88 <== NOT EXECUTED 2009de4: c4 04 40 00 ld [ %l1 ], %g2 <== NOT EXECUTED 2009de8: 90 10 20 00 clr %o0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 2009dec: c2 04 a1 64 ld [ %l2 + 0x164 ], %g1 <== NOT EXECUTED 2009df0: c0 30 60 26 clrh [ %g1 + 0x26 ] <== NOT EXECUTED return result; } 2009df4: 81 c7 e0 08 ret <== NOT EXECUTED 2009df8: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ); 2009dfc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2009e00: 7f ff fe f3 call 20099cc <== NOT EXECUTED 2009e04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 2009e08: 10 bf ff f1 b 2009dcc <== NOT EXECUTED 2009e0c: 80 a2 20 00 cmp %o0, 0 <== 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 ); 2009e10: 40 00 0b da call 200cd78 <__errno> <== NOT EXECUTED 2009e14: c0 30 a0 26 clrh [ %g2 + 0x26 ] <== NOT EXECUTED 2009e18: 82 10 20 5c mov 0x5c, %g1 <== NOT EXECUTED 2009e1c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009e20: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED */ rtems_filesystem_link_counts = 0; return result; } 2009e24: 81 c7 e0 08 ret <== NOT EXECUTED 2009e28: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02009944 : */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009944: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2009948: 93 2a 60 06 sll %o1, 6, %o1 <== NOT EXECUTED 200994c: c4 10 60 2e lduh [ %g1 + 0x2e ], %g2 <== NOT EXECUTED 2009950: 84 2a 40 02 andn %o1, %g2, %g2 <== NOT EXECUTED */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 2009954: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED 2009958: 81 c3 e0 08 retl <== NOT EXECUTED 200995c: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 020099cc : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 20099cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 20099d0: c8 06 00 00 ld [ %i0 ], %g4 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 20099d4: c2 01 20 48 ld [ %g4 + 0x48 ], %g1 <== NOT EXECUTED 20099d8: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 20099dc: 12 80 00 30 bne 2009a9c <== NOT EXECUTED 20099e0: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 20099e4: c2 01 20 08 ld [ %g4 + 8 ], %g1 <== NOT EXECUTED 20099e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20099ec: 02 80 00 2e be 2009aa4 <== NOT EXECUTED 20099f0: 01 00 00 00 nop <== 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; 20099f4: c2 26 00 00 st %g1, [ %i0 ] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( 20099f8: d0 01 20 4c ld [ %g4 + 0x4c ], %o0 <== NOT EXECUTED 20099fc: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 2009a00: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2009a04: 02 80 00 06 be 2009a1c <== NOT EXECUTED 2009a08: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2009a0c: 02 80 00 04 be 2009a1c <== NOT EXECUTED 2009a10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009a14: 12 80 00 0e bne 2009a4c <== NOT EXECUTED 2009a18: 9a 10 20 00 clr %o5 <== NOT EXECUTED 2009a1c: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 2009a20: c6 00 61 64 ld [ %g1 + 0x164 ], %g3 ! 2016964 <== NOT EXECUTED 2009a24: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED 2009a28: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 <== NOT EXECUTED 2009a2c: c2 26 00 00 st %g1, [ %i0 ] <== NOT EXECUTED 2009a30: c4 00 e0 18 ld [ %g3 + 0x18 ], %g2 <== NOT EXECUTED 2009a34: c4 26 20 04 st %g2, [ %i0 + 4 ] <== NOT EXECUTED 2009a38: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 2009a3c: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED 2009a40: c4 00 e0 20 ld [ %g3 + 0x20 ], %g2 <== NOT EXECUTED 2009a44: c4 26 20 0c st %g2, [ %i0 + 0xc ] <== NOT EXECUTED 2009a48: d0 01 20 4c ld [ %g4 + 0x4c ], %o0 <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 2009a4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009a50: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2009a54: 40 00 00 17 call 2009ab0 <== NOT EXECUTED 2009a58: 90 02 00 0d add %o0, %o5, %o0 <== NOT EXECUTED 2009a5c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 2009a60: 7f ff ff 9b call 20098cc <== NOT EXECUTED 2009a64: 90 10 00 18 mov %i0, %o0 <== 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 ) 2009a68: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009a6c: 87 2e 60 06 sll %i1, 6, %g3 <== 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 ) 2009a70: c4 10 60 2e lduh [ %g1 + 0x2e ], %g2 <== NOT EXECUTED 2009a74: 84 08 c0 02 and %g3, %g2, %g2 <== NOT EXECUTED 2009a78: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2009a7c: 02 80 00 06 be 2009a94 <== NOT EXECUTED 2009a80: 01 00 00 00 nop <== 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 ); 2009a84: 40 00 0c bd call 200cd78 <__errno> <== NOT EXECUTED 2009a88: a0 10 3f ff mov -1, %l0 ! ffffffff <== NOT EXECUTED 2009a8c: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 2009a90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 2009a94: 81 c7 e0 08 ret <== NOT EXECUTED 2009a98: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 2009a9c: 7f ff f1 11 call 2005ee0 <== NOT EXECUTED 2009aa0: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 2009aa4: 7f ff f1 0f call 2005ee0 <== NOT EXECUTED 2009aa8: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 2009aac: 01 00 00 00 nop 0200c5b8 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200c5b8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED #endif /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) 200c5bc: 83 2e 60 10 sll %i1, 0x10, %g1 <== NOT EXECUTED 200c5c0: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 200c5c4: 82 08 7e 00 and %g1, -512, %g1 <== NOT EXECUTED 200c5c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c5cc: 12 80 00 0e bne 200c604 <== NOT EXECUTED 200c5d0: f0 06 00 00 ld [ %i0 ], %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 200c5d4: c2 16 20 2e lduh [ %i0 + 0x2e ], %g1 <== NOT EXECUTED IMFS_update_ctime( jnode ); 200c5d8: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 200c5dc: 82 08 7e 00 and %g1, -512, %g1 <== NOT EXECUTED 200c5e0: 82 16 40 01 or %i1, %g1, %g1 <== NOT EXECUTED IMFS_update_ctime( jnode ); 200c5e4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c5e8: 7f ff f9 01 call 200a9ec <== NOT EXECUTED 200c5ec: c2 36 20 2e sth %g1, [ %i0 + 0x2e ] <== NOT EXECUTED 200c5f0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 200c5f4: 84 10 20 00 clr %g2 <== NOT EXECUTED 200c5f8: c2 26 20 44 st %g1, [ %i0 + 0x44 ] <== NOT EXECUTED return 0; } 200c5fc: 81 c7 e0 08 ret <== NOT EXECUTED 200c600: 91 e8 00 02 restore %g0, %g2, %o0 <== 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 ); 200c604: 40 00 01 dd call 200cd78 <__errno> <== NOT EXECUTED 200c608: 01 00 00 00 nop <== NOT EXECUTED 200c60c: 82 10 20 01 mov 1, %g1 ! 1 <== NOT EXECUTED 200c610: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED 200c614: 10 bf ff fa b 200c5fc <== NOT EXECUTED 200c618: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 0202e27c : int cmd, rtems_libio_t *iop ) { return 0; } 202e27c: 81 c3 e0 08 retl <== NOT EXECUTED 202e280: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202e284 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 202e284: 81 c3 e0 08 retl <== NOT EXECUTED 202e288: 90 10 20 00 clr %o0 <== NOT EXECUTED 0200a0f8 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 200a0f8: 9d e3 bf 98 save %sp, -104, %sp /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 200a0fc: 80 a6 20 00 cmp %i0, 0 200a100: 02 80 00 15 be 200a154 200a104: 80 a6 60 00 cmp %i1, 0 if ( !name ) 200a108: 02 80 00 11 be 200a14c 200a10c: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 200a110: 13 00 80 56 sethi %hi(0x2015800), %o1 200a114: 40 00 0f e9 call 200e0b8 200a118: 92 12 62 30 or %o1, 0x230, %o1 ! 2015a30 200a11c: 80 a2 20 00 cmp %o0, 0 200a120: 02 80 00 09 be 200a144 200a124: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 200a128: 13 00 80 56 sethi %hi(0x2015800), %o1 200a12c: 40 00 0f e3 call 200e0b8 200a130: 92 12 62 38 or %o1, 0x238, %o1 ! 2015a38 200a134: 80 a2 20 00 cmp %o0, 0 200a138: 32 80 00 0f bne,a 200a174 200a13c: e0 06 20 4c ld [ %i0 + 0x4c ], %l0 return directory->Parent; 200a140: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 200a144: 81 c7 e0 08 ret <== NOT EXECUTED 200a148: 81 e8 00 00 restore <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 200a14c: 81 c7 e0 08 ret 200a150: 91 e8 20 00 restore %g0, 0, %o0 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 200a154: 11 00 80 56 sethi %hi(0x2015800), %o0 <== NOT EXECUTED 200a158: 15 00 80 56 sethi %hi(0x2015800), %o2 <== NOT EXECUTED 200a15c: 17 00 80 56 sethi %hi(0x2015800), %o3 <== NOT EXECUTED 200a160: 90 12 21 d0 or %o0, 0x1d0, %o0 <== NOT EXECUTED 200a164: 94 12 a2 40 or %o2, 0x240, %o2 <== NOT EXECUTED 200a168: 96 12 e2 20 or %o3, 0x220, %o3 <== NOT EXECUTED 200a16c: 7f ff df 65 call 2001f00 <__assert_func> <== NOT EXECUTED 200a170: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200a174: b0 06 20 50 add %i0, 0x50, %i0 return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); 200a178: 80 a4 00 18 cmp %l0, %i0 200a17c: 12 80 00 06 bne 200a194 200a180: 90 10 00 19 mov %i1, %o0 200a184: 30 bf ff f2 b,a 200a14c 200a188: 80 a4 00 18 cmp %l0, %i0 200a18c: 02 bf ff f0 be 200a14c 200a190: 90 10 00 19 mov %i1, %o0 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) 200a194: 40 00 0f c9 call 200e0b8 200a198: 92 04 20 0c add %l0, 0xc, %o1 200a19c: 80 a2 20 00 cmp %o0, 0 200a1a0: 32 bf ff fa bne,a 200a188 200a1a4: e0 04 00 00 ld [ %l0 ], %l0 200a1a8: 81 c7 e0 08 ret 200a1ac: 91 e8 00 10 restore %g0, %l0, %o0 0201f9fc : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } 201f9fc: 81 c3 e0 08 retl <== NOT EXECUTED 201fa00: 90 10 20 00 clr %o0 <== NOT EXECUTED 0201fa04 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 201fa04: 9d e3 bf 88 save %sp, -120, %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; 201fa08: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 201fa0c: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 <== NOT EXECUTED 201fa10: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 <== 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; 201fa14: e0 06 20 18 ld [ %i0 + 0x18 ], %l0 <== NOT EXECUTED loc = temp_mt_entry->mt_fs_root; 201fa18: c2 27 bf ec st %g1, [ %fp + -20 ] <== NOT EXECUTED 201fa1c: c4 3f bf f0 std %g2, [ %fp + -16 ] <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 201fa20: c0 26 20 18 clr [ %i0 + 0x18 ] <== NOT EXECUTED 201fa24: a2 07 bf e8 add %fp, -24, %l1 <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; 201fa28: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 201fa2c: f0 04 20 08 ld [ %l0 + 8 ], %i0 <== NOT EXECUTED loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 201fa30: 7f ff fd e8 call 201f1d0 <== NOT EXECUTED 201fa34: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { 201fa38: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 201fa3c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 201fa40: 12 80 00 17 bne 201fa9c <== NOT EXECUTED 201fa44: 84 04 20 50 add %l0, 0x50, %g2 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 201fa48: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 201fa4c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 201fa50: 02 80 00 13 be 201fa9c <== NOT EXECUTED 201fa54: 01 00 00 00 nop <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 201fa58: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 201fa5c: 02 80 00 0e be 201fa94 <== NOT EXECUTED 201fa60: 01 00 00 00 nop <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 201fa64: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 201fa68: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 201fa6c: 32 bf ff f0 bne,a 201fa2c <== NOT EXECUTED 201fa70: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 201fa74: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 201fa78: 82 04 20 50 add %l0, 0x50, %g1 <== NOT EXECUTED 201fa7c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 201fa80: 22 bf ff eb be,a 201fa2c <== NOT EXECUTED 201fa84: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 201fa88: a0 90 a0 00 orcc %g2, 0, %l0 <== NOT EXECUTED 201fa8c: 32 bf ff e8 bne,a 201fa2c <== NOT EXECUTED 201fa90: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED return 0; } 201fa94: 81 c7 e0 08 ret <== NOT EXECUTED 201fa98: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( &loc ); 201fa9c: 7f ff 91 6b call 2004048 <== NOT EXECUTED 201faa0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (result != 0) 201faa4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201faa8: 02 bf ff ec be 201fa58 <== NOT EXECUTED 201faac: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 201fab0: 81 c7 e0 08 ret <== NOT EXECUTED 201fab4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200a1b0 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 200a1b0: 9d e3 bf 98 save %sp, -104, %sp register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 200a1b4: c4 0e 00 00 ldub [ %i0 ], %g2 while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 200a1b8: 87 28 a0 18 sll %g2, 0x18, %g3 200a1bc: 83 38 e0 18 sra %g3, 0x18, %g1 200a1c0: 80 a0 60 2f cmp %g1, 0x2f 200a1c4: 02 80 00 28 be 200a264 200a1c8: 80 a0 60 5c cmp %g1, 0x5c 200a1cc: 02 80 00 26 be 200a264 200a1d0: 80 a0 60 00 cmp %g1, 0 200a1d4: 02 80 00 2c be 200a284 200a1d8: 86 10 20 00 clr %g3 token[i] = c; 200a1dc: c4 2e 40 00 stb %g2, [ %i1 ] return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 200a1e0: 86 00 e0 01 inc %g3 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 200a1e4: c2 4e 00 03 ldsb [ %i0 + %g3 ], %g1 200a1e8: 80 a0 60 2f cmp %g1, 0x2f 200a1ec: 02 80 00 07 be 200a208 200a1f0: c4 0e 00 03 ldub [ %i0 + %g3 ], %g2 200a1f4: 80 a0 60 5c cmp %g1, 0x5c 200a1f8: 02 80 00 04 be 200a208 200a1fc: 80 a0 60 00 cmp %g1, 0 200a200: 12 80 00 12 bne 200a248 200a204: 80 a0 e0 20 cmp %g3, 0x20 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 200a208: 82 06 40 03 add %i1, %g3, %g1 200a20c: c4 48 7f ff ldsb [ %g1 + -1 ], %g2 200a210: 80 a0 a0 00 cmp %g2, 0 200a214: 32 80 00 02 bne,a 200a21c 200a218: c0 2e 40 03 clrb [ %i1 + %g3 ] /* * Set token_len to the number of characters copied. */ *token_len = i; 200a21c: c6 26 80 00 st %g3, [ %i2 ] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 200a220: 90 10 00 19 mov %i1, %o0 200a224: 13 00 80 55 sethi %hi(0x2015400), %o1 200a228: b0 10 20 02 mov 2, %i0 200a22c: 40 00 0f a3 call 200e0b8 200a230: 92 12 63 90 or %o1, 0x390, %o1 200a234: 80 a2 20 00 cmp %o0, 0 200a238: 12 80 00 18 bne 200a298 200a23c: 90 10 00 19 mov %i1, %o0 else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 200a240: 81 c7 e0 08 ret <== NOT EXECUTED 200a244: 81 e8 00 00 restore <== NOT EXECUTED /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 200a248: 14 bf ff f1 bg 200a20c 200a24c: 82 06 40 03 add %i1, %g3, %g1 token[i] = c; if ( i == IMFS_NAME_MAX ) 200a250: 80 a0 e0 20 cmp %g3, 0x20 200a254: 12 bf ff e3 bne 200a1e0 200a258: c4 2e 40 03 stb %g2, [ %i1 + %g3 ] 200a25c: 81 c7 e0 08 ret <== NOT EXECUTED 200a260: 91 e8 20 04 restore %g0, 4, %o0 <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 200a264: c4 2e 40 00 stb %g2, [ %i1 ] if ( token[i] != '\0' ) { 200a268: 80 a0 e0 00 cmp %g3, 0 200a26c: 82 10 20 01 mov 1, %g1 200a270: 02 80 00 06 be 200a288 200a274: b0 10 20 01 mov 1, %i0 /* * Set token_len to the number of characters copied. */ *token_len = i; 200a278: c2 26 80 00 st %g1, [ %i2 ] 200a27c: 81 c7 e0 08 ret 200a280: 81 e8 00 00 restore /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 200a284: c4 2e 40 00 stb %g2, [ %i1 ] type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 200a288: 82 10 20 00 clr %g1 /* * Set token_len to the number of characters copied. */ *token_len = i; 200a28c: c2 26 80 00 st %g1, [ %i2 ] type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 200a290: 81 c7 e0 08 ret 200a294: 91 e8 20 00 restore %g0, 0, %o0 */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 200a298: 13 00 80 56 sethi %hi(0x2015800), %o1 200a29c: 40 00 0f 87 call 200e0b8 200a2a0: 92 12 62 58 or %o1, 0x258, %o1 ! 2015a58 <__func__.5181+0x18> 200a2a4: 80 a0 00 08 cmp %g0, %o0 200a2a8: 82 60 20 00 subx %g0, 0, %g1 200a2ac: b0 08 60 02 and %g1, 2, %i0 type = IMFS_CURRENT_DIR; } return type; } 200a2b0: 81 c7 e0 08 ret 200a2b4: 91 ee 20 01 restore %i0, 1, %o0 02003c64 : int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 2003c64: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2003c68: 15 00 81 14 sethi %hi(0x2045000), %o2 <== NOT EXECUTED 2003c6c: 17 00 81 13 sethi %hi(0x2044c00), %o3 <== NOT EXECUTED 2003c70: 92 12 62 c4 or %o1, 0x2c4, %o1 <== NOT EXECUTED 2003c74: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED 2003c78: 96 12 e3 f0 or %o3, 0x3f0, %o3 <== NOT EXECUTED 2003c7c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2003c80: 40 00 00 03 call 2003c8c <== NOT EXECUTED 2003c84: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2003c88: 01 00 00 00 nop 0200a2b8 : 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 ) { 200a2b8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 200a2bc: 03 00 80 59 sethi %hi(0x2016400), %g1 200a2c0: c6 00 60 4c ld [ %g1 + 0x4c ], %g3 ! 201644c * 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) { 200a2c4: 84 10 20 20 mov 0x20, %g2 200a2c8: 80 a0 e0 10 cmp %g3, 0x10 200a2cc: 02 80 00 09 be 200a2f0 200a2d0: 82 10 20 00 clr %g1 200a2d4: 80 a0 c0 02 cmp %g3, %g2 200a2d8: 02 80 00 06 be 200a2f0 200a2dc: 82 00 60 01 inc %g1 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 200a2e0: 80 a0 60 05 cmp %g1, 5 200a2e4: 12 bf ff fc bne 200a2d4 200a2e8: 85 28 a0 01 sll %g2, 1, %g2 200a2ec: 86 10 20 80 mov 0x80, %g3 <== NOT EXECUTED bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 200a2f0: 03 00 80 5b sethi %hi(0x2016c00), %g1 * 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( 200a2f4: 98 10 20 00 clr %o4 bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 200a2f8: c6 20 63 7c st %g3, [ %g1 + 0x37c ] * 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( 200a2fc: 92 10 20 01 mov 1, %o1 200a300: 90 10 20 00 clr %o0 200a304: 15 00 80 55 sethi %hi(0x2015400), %o2 200a308: 17 00 00 10 sethi %hi(0x4000), %o3 200a30c: 94 12 a3 00 or %o2, 0x300, %o2 200a310: 40 00 08 59 call 200c474 200a314: 96 12 e1 ed or %o3, 0x1ed, %o3 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; 200a318: 94 10 20 30 mov 0x30, %o2 * 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( 200a31c: d0 26 20 18 st %o0, [ %i0 + 0x18 ] ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; 200a320: f2 26 20 20 st %i1, [ %i0 + 0x20 ] "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 200a324: f6 26 20 1c st %i3, [ %i0 + 0x1c ] temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 200a328: 13 00 80 57 sethi %hi(0x2015c00), %o1 200a32c: 90 06 20 30 add %i0, 0x30, %o0 200a330: 40 00 0c 84 call 200d540 200a334: 92 12 60 c8 or %o1, 0xc8, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 200a338: 90 10 20 01 mov 1, %o0 200a33c: 40 00 00 f4 call 200a70c 200a340: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ){ 200a344: 80 a2 20 00 cmp %o0, 0 200a348: 02 80 00 0a be 200a370 200a34c: 82 10 20 01 mov 1, %g1 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; 200a350: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 200a354: c2 22 00 00 st %g1, [ %o0 ] 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; 200a358: d0 26 20 2c st %o0, [ %i0 + 0x2c ] * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 200a35c: f6 22 20 08 st %i3, [ %o0 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 200a360: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 200a364: f4 22 20 04 st %i2, [ %o0 + 4 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; return 0; } 200a368: 81 c7 e0 08 ret 200a36c: 91 e8 20 00 restore %g0, 0, %o0 /* * 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); 200a370: d0 06 20 18 ld [ %i0 + 0x18 ], %o0 <== NOT EXECUTED 200a374: 40 00 01 2c call 200a824 <== NOT EXECUTED 200a378: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 200a37c: 40 00 0a 7f call 200cd78 <__errno> <== NOT EXECUTED 200a380: 01 00 00 00 nop <== NOT EXECUTED 200a384: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200a388: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a38c: 81 c7 e0 08 ret <== NOT EXECUTED 200a390: 81 e8 00 00 restore <== NOT EXECUTED 02003d68 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 2003d68: 9d e3 bf 58 save %sp, -168, %sp <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 2003d6c: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED 2003d70: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2003d74: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 <== NOT EXECUTED 2003d78: 80 a0 a0 07 cmp %g2, 7 <== NOT EXECUTED 2003d7c: 18 80 00 1b bgu 2003de8 <== NOT EXECUTED 2003d80: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 2003d84: a0 07 bf b8 add %fp, -72, %l0 <== NOT EXECUTED 2003d88: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2003d8c: 7f ff ff 74 call 2003b5c <== NOT EXECUTED 2003d90: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 2003d94: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003d98: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2003d9c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003da0: 17 00 00 28 sethi %hi(0xa000), %o3 <== NOT EXECUTED 2003da4: 98 07 bf dc add %fp, -36, %o4 <== NOT EXECUTED 2003da8: 40 00 6c b2 call 201f070 <== NOT EXECUTED 2003dac: 96 12 e1 ff or %o3, 0x1ff, %o3 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2003db0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003db4: 02 80 00 13 be 2003e00 <== NOT EXECUTED 2003db8: c4 07 bf dc ld [ %fp + -36 ], %g2 <== 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 ); 2003dbc: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 2003dc0: c2 10 a0 30 lduh [ %g2 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 2003dc4: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 2003dc8: 82 00 60 01 inc %g1 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 2003dcc: 40 00 02 95 call 2004820 <== NOT EXECUTED 2003dd0: c2 30 a0 30 sth %g1, [ %g2 + 0x30 ] <== NOT EXECUTED 2003dd4: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 2003dd8: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2003ddc: c4 20 60 44 st %g2, [ %g1 + 0x44 ] <== NOT EXECUTED return 0; } 2003de0: 81 c7 e0 08 ret <== NOT EXECUTED 2003de4: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 2003de8: 40 00 b3 83 call 2030bf4 <__errno> <== NOT EXECUTED 2003dec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003df0: 82 10 20 1f mov 0x1f, %g1 <== NOT EXECUTED 2003df4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003df8: 81 c7 e0 08 ret <== NOT EXECUTED 2003dfc: 81 e8 00 00 restore <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 2003e00: 40 00 b3 7d call 2030bf4 <__errno> <== NOT EXECUTED 2003e04: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003e08: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2003e0c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003e10: 81 c7 e0 08 ret <== NOT EXECUTED 2003e14: 81 e8 00 00 restore <== NOT EXECUTED 0202799c : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 202799c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 20279a0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 20279a4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20279a8: 02 80 00 17 be 2027a04 <== NOT EXECUTED 20279ac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 20279b0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 20279b4: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 20279b8: 32 80 00 1b bne,a 2027a24 <== NOT EXECUTED 20279bc: 11 00 81 16 sethi %hi(0x2045800), %o0 <== 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 ); 20279c0: 7f ff fe 74 call 2027390 <== NOT EXECUTED 20279c4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED if ( *block_entry_ptr ) 20279c8: c2 02 00 00 ld [ %o0 ], %g1 <== 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 ); 20279cc: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED if ( *block_entry_ptr ) 20279d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20279d4: 02 80 00 04 be 20279e4 <== NOT EXECUTED 20279d8: b0 10 20 00 clr %i0 <== NOT EXECUTED if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } 20279dc: 81 c7 e0 08 ret <== NOT EXECUTED 20279e0: 81 e8 00 00 restore <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 20279e4: 7f ff fe 5e call 202735c <== NOT EXECUTED 20279e8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED if ( !memory ) 20279ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20279f0: 02 bf ff fb be 20279dc <== NOT EXECUTED 20279f4: 01 00 00 00 nop <== NOT EXECUTED return 1; *block_entry_ptr = memory; 20279f8: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED return 0; } 20279fc: 81 c7 e0 08 ret <== NOT EXECUTED 2027a00: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 2027a04: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 2027a08: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027a0c: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027a10: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027a14: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 2027a18: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 2027a1c: 7f ff 72 2a call 20042c4 <__assert_func> <== NOT EXECUTED 2027a20: 92 10 21 69 mov 0x169, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027a24: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027a28: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027a2c: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027a30: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 2027a34: 96 12 e0 f0 or %o3, 0xf0, %o3 <== NOT EXECUTED 2027a38: 7f ff 72 23 call 20042c4 <__assert_func> <== NOT EXECUTED 2027a3c: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 2027a40: 01 00 00 00 nop 02027a44 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 2027a44: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027a48: a6 96 20 00 orcc %i0, 0, %l3 <== NOT EXECUTED 2027a4c: 02 80 00 44 be 2027b5c <== NOT EXECUTED 2027a50: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027a54: c2 04 e0 48 ld [ %l3 + 0x48 ], %g1 <== NOT EXECUTED 2027a58: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2027a5c: 12 80 00 47 bne 2027b78 <== NOT EXECUTED 2027a60: 03 00 81 28 sethi %hi(0x204a000), %g1 <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 2027a64: e2 00 61 fc ld [ %g1 + 0x1fc ], %l1 ! 204a1fc <== NOT EXECUTED 2027a68: a1 34 60 02 srl %l1, 2, %l0 <== NOT EXECUTED 2027a6c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2027a70: 40 00 64 b6 call 2040d48 <.umul> <== NOT EXECUTED 2027a74: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED 2027a78: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2027a7c: 40 00 64 b3 call 2040d48 <.umul> <== NOT EXECUTED 2027a80: 90 02 20 01 inc %o0 <== NOT EXECUTED 2027a84: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2027a88: 40 00 64 b0 call 2040d48 <.umul> <== NOT EXECUTED 2027a8c: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 2027a90: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 2027a94: 1a 80 00 2c bcc 2027b44 <== NOT EXECUTED 2027a98: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 2027a9c: e0 04 e0 4c ld [ %l3 + 0x4c ], %l0 <== NOT EXECUTED 2027aa0: 80 a6 40 10 cmp %i1, %l0 <== NOT EXECUTED 2027aa4: 04 80 00 26 ble 2027b3c <== NOT EXECUTED 2027aa8: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 2027aac: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2027ab0: 40 00 64 e2 call 2040e38 <.div> <== NOT EXECUTED 2027ab4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2027ab8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 2027abc: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2027ac0: 40 00 64 de call 2040e38 <.div> <== NOT EXECUTED 2027ac4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2027ac8: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED 2027acc: 0a 80 00 0f bcs 2027b08 <== NOT EXECUTED 2027ad0: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 2027ad4: 10 80 00 05 b 2027ae8 <== NOT EXECUTED 2027ad8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2027adc: 80 a4 80 10 cmp %l2, %l0 <== NOT EXECUTED 2027ae0: 2a 80 00 0b bcs,a 2027b0c <== NOT EXECUTED 2027ae4: f2 24 e0 4c st %i1, [ %l3 + 0x4c ] <== NOT EXECUTED if ( IMFS_memfile_addblock( the_jnode, block ) ) { 2027ae8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2027aec: 7f ff ff ac call 202799c <== NOT EXECUTED 2027af0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2027af4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027af8: 22 bf ff f9 be,a 2027adc <== NOT EXECUTED 2027afc: a0 04 20 01 inc %l0 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { 2027b00: 10 80 00 09 b 2027b24 <== NOT EXECUTED 2027b04: 80 a4 40 10 cmp %l1, %l0 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 2027b08: f2 24 e0 4c st %i1, [ %l3 + 0x4c ] <== NOT EXECUTED return 0; } 2027b0c: 81 c7 e0 08 ret <== NOT EXECUTED 2027b10: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 2027b14: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2027b18: 7f ff fe cb call 2027644 <== NOT EXECUTED 2027b1c: a0 04 3f ff add %l0, -1, %l0 <== 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-- ) { 2027b20: 80 a4 40 10 cmp %l1, %l0 <== NOT EXECUTED 2027b24: 08 bf ff fc bleu 2027b14 <== NOT EXECUTED 2027b28: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 2027b2c: 40 00 24 32 call 2030bf4 <__errno> <== NOT EXECUTED 2027b30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027b34: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2027b38: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2027b3c: 81 c7 e0 08 ret <== NOT EXECUTED 2027b40: 81 e8 00 00 restore <== 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 ); 2027b44: 40 00 24 2c call 2030bf4 <__errno> <== NOT EXECUTED 2027b48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027b4c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2027b50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2027b54: 81 c7 e0 08 ret <== NOT EXECUTED 2027b58: 81 e8 00 00 restore <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027b5c: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027b60: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027b64: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027b68: 94 12 a2 38 or %o2, 0x238, %o2 <== NOT EXECUTED 2027b6c: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 2027b70: 7f ff 71 d5 call 20042c4 <__assert_func> <== NOT EXECUTED 2027b74: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027b78: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027b7c: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027b80: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027b84: 94 12 a2 38 or %o2, 0x238, %o2 <== NOT EXECUTED 2027b88: 96 12 e0 f0 or %o3, 0xf0, %o3 <== NOT EXECUTED 2027b8c: 7f ff 71 ce call 20042c4 <__assert_func> <== NOT EXECUTED 2027b90: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 2027b94: 01 00 00 00 nop 02027390 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2027390: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027394: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2027398: 02 80 00 32 be 2027460 <== NOT EXECUTED 202739c: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 20273a0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 20273a4: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 20273a8: 12 80 00 35 bne 202747c <== NOT EXECUTED 20273ac: 03 00 81 28 sethi %hi(0x204a000), %g1 <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 20273b0: c4 00 61 fc ld [ %g1 + 0x1fc ], %g2 ! 204a1fc <== NOT EXECUTED 20273b4: a3 30 a0 02 srl %g2, 2, %l1 <== NOT EXECUTED 20273b8: 82 04 7f ff add %l1, -1, %g1 <== NOT EXECUTED 20273bc: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 20273c0: 08 80 00 20 bleu 2027440 <== NOT EXECUTED 20273c4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 20273c8: 90 04 60 01 add %l1, 1, %o0 <== NOT EXECUTED 20273cc: 40 00 66 5f call 2040d48 <.umul> <== NOT EXECUTED 20273d0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20273d4: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 20273d8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 20273dc: 18 80 00 3f bgu 20274d8 <== NOT EXECUTED 20273e0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 20273e4: a0 26 40 11 sub %i1, %l1, %l0 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20273e8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20273ec: 40 00 67 3d call 20410e0 <.urem> <== NOT EXECUTED 20273f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20273f4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20273f8: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20273fc: 40 00 66 8d call 2040e30 <.udiv> <== NOT EXECUTED 2027400: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2027404: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2027408: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 202740c: 02 80 00 29 be 20274b0 <== NOT EXECUTED 2027410: d0 06 20 54 ld [ %i0 + 0x54 ], %o0 <== NOT EXECUTED if ( !p ) { 2027414: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027418: 02 80 00 6b be 20275c4 <== NOT EXECUTED 202741c: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 2027420: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED 2027424: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 2027428: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202742c: 02 80 00 5f be 20275a8 <== NOT EXECUTED 2027430: a0 02 00 01 add %o0, %g1, %l0 <== NOT EXECUTED if ( !p1 ) return 0; p[ doubly ] = (block_p) p1; } return (block_p *)&p1[ singly ]; 2027434: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED 2027438: 81 c7 e0 08 ret <== NOT EXECUTED 202743c: 91 e8 80 01 restore %g2, %g1, %o0 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 2027440: 02 80 00 16 be 2027498 <== NOT EXECUTED 2027444: d0 06 20 50 ld [ %i0 + 0x50 ], %o0 <== NOT EXECUTED if ( !p ) { 2027448: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202744c: 02 80 00 50 be 202758c <== NOT EXECUTED 2027450: 01 00 00 00 nop <== NOT EXECUTED p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 2027454: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED 2027458: 81 c7 e0 08 ret <== NOT EXECUTED 202745c: 91 ea 00 01 restore %o0, %g1, %o0 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027460: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027464: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027468: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 202746c: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 2027470: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 2027474: 7f ff 73 94 call 20042c4 <__assert_func> <== NOT EXECUTED 2027478: 92 10 23 86 mov 0x386, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 202747c: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027480: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027484: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027488: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 202748c: 96 12 e0 f0 or %o3, 0xf0, %o3 <== NOT EXECUTED 2027490: 7f ff 73 8d call 20042c4 <__assert_func> <== NOT EXECUTED 2027494: 92 10 23 8a mov 0x38a, %o1 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 2027498: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 202749c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20274a0: 02 80 00 0c be 20274d0 <== NOT EXECUTED 20274a4: b0 02 00 01 add %o0, %g1, %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 20274a8: 81 c7 e0 08 ret <== NOT EXECUTED 20274ac: 81 e8 00 00 restore <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 20274b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20274b4: 02 80 00 07 be 20274d0 <== NOT EXECUTED 20274b8: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 20274bc: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly, singly, p, &p[singly] ); fflush(stdout); #endif return (block_p *)&p[ singly ]; 20274c0: 87 2c a0 02 sll %l2, 2, %g3 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 20274c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20274c8: 12 bf ff f8 bne 20274a8 <== NOT EXECUTED 20274cc: b0 00 80 03 add %g2, %g3, %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 20274d0: 81 c7 e0 08 ret <== NOT EXECUTED 20274d4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 20274d8: 90 02 20 01 inc %o0 <== NOT EXECUTED 20274dc: 40 00 66 1b call 2040d48 <.umul> <== NOT EXECUTED 20274e0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20274e4: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 20274e8: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 20274ec: 18 bf ff f9 bgu 20274d0 <== NOT EXECUTED 20274f0: a0 26 40 10 sub %i1, %l0, %l0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20274f4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20274f8: 40 00 66 fa call 20410e0 <.urem> <== NOT EXECUTED 20274fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2027500: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2027504: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2027508: 40 00 66 4a call 2040e30 <.udiv> <== NOT EXECUTED 202750c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 2027510: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2027514: 40 00 66 47 call 2040e30 <.udiv> <== NOT EXECUTED 2027518: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 202751c: 92 10 00 11 mov %l1, %o1 <== 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; 2027520: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2027524: 40 00 66 ef call 20410e0 <.urem> <== NOT EXECUTED 2027528: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 202752c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2027530: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2027534: 02 80 00 2b be 20275e0 <== NOT EXECUTED 2027538: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 <== NOT EXECUTED if ( !p ) { 202753c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027540: 02 80 00 3a be 2027628 <== NOT EXECUTED 2027544: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 2027548: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED 202754c: c8 02 00 01 ld [ %o0 + %g1 ], %g4 <== NOT EXECUTED if ( !p1 ) { 2027550: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 2027554: 02 80 00 2e be 202760c <== NOT EXECUTED 2027558: a0 02 00 01 add %o0, %g1, %l0 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 202755c: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 2027560: d0 01 00 01 ld [ %g4 + %g1 ], %o0 <== NOT EXECUTED if ( !p2 ) { 2027564: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027568: 12 bf ff bb bne 2027454 <== NOT EXECUTED 202756c: a0 01 00 01 add %g4, %g1, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 2027570: 7f ff ff 7b call 202735c <== NOT EXECUTED 2027574: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2027578: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202757c: 02 bf ff d5 be 20274d0 <== NOT EXECUTED 2027580: 01 00 00 00 nop <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 2027584: 10 bf ff b4 b 2027454 <== NOT EXECUTED 2027588: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 202758c: 7f ff ff 74 call 202735c <== NOT EXECUTED 2027590: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2027594: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027598: 02 bf ff ce be 20274d0 <== NOT EXECUTED 202759c: 01 00 00 00 nop <== NOT EXECUTED return 0; info->indirect = p; 20275a0: 10 bf ff ad b 2027454 <== NOT EXECUTED 20275a4: d0 26 20 50 st %o0, [ %i0 + 0x50 ] <== NOT EXECUTED info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 20275a8: 7f ff ff 6d call 202735c <== NOT EXECUTED 20275ac: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 20275b0: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 20275b4: 02 bf ff c7 be 20274d0 <== NOT EXECUTED 20275b8: 01 00 00 00 nop <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 20275bc: 10 bf ff 9e b 2027434 <== NOT EXECUTED 20275c0: c4 24 00 00 st %g2, [ %l0 ] <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 20275c4: 7f ff ff 66 call 202735c <== NOT EXECUTED 20275c8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 20275cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20275d0: 02 bf ff c0 be 20274d0 <== NOT EXECUTED 20275d4: 01 00 00 00 nop <== NOT EXECUTED return 0; info->doubly_indirect = p; 20275d8: 10 bf ff 92 b 2027420 <== NOT EXECUTED 20275dc: d0 26 20 54 st %o0, [ %i0 + 0x54 ] <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 20275e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20275e4: 02 bf ff bb be 20274d0 <== NOT EXECUTED 20275e8: 83 2c a0 02 sll %l2, 2, %g1 <== 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 ]; 20275ec: d0 02 00 01 ld [ %o0 + %g1 ], %o0 <== NOT EXECUTED if ( !p1 ) 20275f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20275f4: 02 bf ff b7 be 20274d0 <== NOT EXECUTED 20275f8: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 20275fc: c6 02 00 01 ld [ %o0 + %g1 ], %g3 <== NOT EXECUTED 2027600: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED 2027604: 81 c7 e0 08 ret <== NOT EXECUTED 2027608: 91 e8 c0 02 restore %g3, %g2, %o0 <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 202760c: 7f ff ff 54 call 202735c <== NOT EXECUTED 2027610: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2027614: 88 92 20 00 orcc %o0, 0, %g4 <== NOT EXECUTED 2027618: 02 bf ff ae be 20274d0 <== NOT EXECUTED 202761c: 01 00 00 00 nop <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 2027620: 10 bf ff cf b 202755c <== NOT EXECUTED 2027624: c8 24 00 00 st %g4, [ %l0 ] <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 2027628: 7f ff ff 4d call 202735c <== NOT EXECUTED 202762c: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2027630: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027634: 02 bf ff a7 be 20274d0 <== NOT EXECUTED 2027638: 01 00 00 00 nop <== NOT EXECUTED return 0; info->triply_indirect = p; 202763c: 10 bf ff c3 b 2027548 <== NOT EXECUTED 2027640: d0 26 20 58 st %o0, [ %i0 + 0x58 ] <== NOT EXECUTED 02027fd0 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2027fd0: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027fd4: a6 96 20 00 orcc %i0, 0, %l3 <== NOT EXECUTED 2027fd8: 02 80 00 8c be 2028208 <== NOT EXECUTED 2027fdc: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 2027fe0: c4 04 e0 48 ld [ %l3 + 0x48 ], %g2 <== NOT EXECUTED 2027fe4: 82 00 bf fb add %g2, -5, %g1 <== NOT EXECUTED 2027fe8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2027fec: 18 80 00 95 bgu 2028240 <== NOT EXECUTED 2027ff0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 2027ff4: 02 80 00 8c be 2028224 <== NOT EXECUTED 2027ff8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 2027ffc: 02 80 00 7d be 20281f0 <== NOT EXECUTED 2028000: 80 a0 a0 06 cmp %g2, 6 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 2028004: 02 80 00 57 be 2028160 <== NOT EXECUTED 2028008: 82 06 c0 19 add %i3, %i1, %g1 <== 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 ) 202800c: c4 04 e0 4c ld [ %l3 + 0x4c ], %g2 <== NOT EXECUTED 2028010: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2028014: 08 80 00 3d bleu 2028108 <== NOT EXECUTED 2028018: a4 20 80 19 sub %g2, %i1, %l2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 202801c: 2b 00 81 28 sethi %hi(0x204a000), %l5 <== NOT EXECUTED 2028020: f6 05 61 fc ld [ %l5 + 0x1fc ], %i3 ! 204a1fc <== NOT EXECUTED 2028024: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2028028: 40 00 64 30 call 20410e8 <.rem> <== NOT EXECUTED 202802c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2028030: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2028034: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2028038: 40 00 63 80 call 2040e38 <.div> <== NOT EXECUTED 202803c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( start_offset ) { 2028040: 80 a6 20 00 cmp %i0, 0 <== 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; 2028044: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2028048: a8 15 61 fc or %l5, 0x1fc, %l4 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { 202804c: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED 2028050: 12 80 00 30 bne 2028110 <== NOT EXECUTED 2028054: a0 10 20 00 clr %l0 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2028058: f6 05 61 fc ld [ %l5 + 0x1fc ], %i3 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 202805c: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED 2028060: 0a 80 00 15 bcs 20280b4 <== NOT EXECUTED 2028064: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2028068: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 202806c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028070: 7f ff fc c8 call 2027390 <== NOT EXECUTED 2028074: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2028078: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202807c: 22 80 00 56 be,a 20281d4 <== NOT EXECUTED 2028080: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 2028084: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED 2028088: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 202808c: 40 00 2c c7 call 20333a8 <== NOT EXECUTED 2028090: 90 10 00 11 mov %l1, %o0 <== 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 ) { 2028094: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 2028098: a4 24 80 1b sub %l2, %i3, %l2 <== 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 ); dest += to_copy; 202809c: a2 04 40 1b add %l1, %i3, %l1 <== 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 ) { 20280a0: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; 20280a4: b2 06 60 01 inc %i1 <== 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 ) { 20280a8: 08 bf ff f0 bleu 2028068 <== NOT EXECUTED 20280ac: a0 04 00 1b add %l0, %i3, %l0 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 20280b0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 20280b4: 02 80 00 0d be 20280e8 <== NOT EXECUTED 20280b8: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 20280bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20280c0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20280c4: 7f ff fc b3 call 2027390 <== NOT EXECUTED 20280c8: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 20280cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20280d0: 02 80 00 6b be 202827c <== NOT EXECUTED 20280d4: b0 04 80 10 add %l2, %l0, %i0 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 20280d8: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED 20280dc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20280e0: 40 00 2c b2 call 20333a8 <== NOT EXECUTED 20280e4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED copied += my_length; } IMFS_update_atime( the_jnode ); 20280e8: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 20280ec: 7f ff 71 cd call 2004820 <== NOT EXECUTED 20280f0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20280f4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return copied; 20280f8: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 20280fc: c2 24 e0 3c st %g1, [ %l3 + 0x3c ] <== NOT EXECUTED return copied; } 2028100: 81 c7 e0 08 ret <== NOT EXECUTED 2028104: 91 e8 00 0a restore %g0, %o2, %o0 <== 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 ) 2028108: 10 bf ff c5 b 202801c <== NOT EXECUTED 202810c: a4 10 00 1b mov %i3, %l2 <== 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 ); 2028110: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2028114: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2028118: 7f ff fc 9e call 2027390 <== NOT EXECUTED 202811c: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2028120: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028124: 02 80 00 4e be 202825c <== NOT EXECUTED 2028128: 92 26 c0 18 sub %i3, %i0, %o1 <== 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; 202812c: 80 a4 80 09 cmp %l2, %o1 <== NOT EXECUTED 2028130: 18 80 00 1e bgu 20281a8 <== NOT EXECUTED 2028134: 94 10 00 12 mov %l2, %o2 <== 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 ); 2028138: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED dest += to_copy; 202813c: a2 06 80 0a add %i2, %o2, %l1 <== 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 ); 2028140: 92 02 40 18 add %o1, %i0, %o1 <== NOT EXECUTED dest += to_copy; block++; 2028144: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 2028148: a4 24 80 0a sub %l2, %o2, %l2 <== NOT EXECUTED 202814c: a0 10 00 0a mov %o2, %l0 <== 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 ); 2028150: 40 00 2c 96 call 20333a8 <== NOT EXECUTED 2028154: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2028158: 10 bf ff c1 b 202805c <== NOT EXECUTED 202815c: f6 05 61 fc ld [ %l5 + 0x1fc ], %i3 <== 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)) 2028160: c2 04 e0 4c ld [ %l3 + 0x4c ], %g1 <== NOT EXECUTED 2028164: b0 20 40 19 sub %g1, %i1, %i0 <== NOT EXECUTED 2028168: 80 a6 00 1b cmp %i0, %i3 <== NOT EXECUTED 202816c: 18 80 00 08 bgu 202818c <== NOT EXECUTED 2028170: d2 04 e0 50 ld [ %l3 + 0x50 ], %o1 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 2028174: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2028178: 92 02 40 19 add %o1, %i1, %o1 <== NOT EXECUTED 202817c: 40 00 2c 8b call 20333a8 <== NOT EXECUTED 2028180: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 2028184: 10 bf ff da b 20280ec <== NOT EXECUTED 2028188: 90 07 bf f0 add %fp, -16, %o0 <== 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)) 202818c: b0 10 00 1b mov %i3, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 2028190: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2028194: 92 02 40 19 add %o1, %i1, %o1 <== NOT EXECUTED 2028198: 40 00 2c 84 call 20333a8 <== NOT EXECUTED 202819c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 20281a0: 10 bf ff d3 b 20280ec <== NOT EXECUTED 20281a4: 90 07 bf f0 add %fp, -16, %o0 <== 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; 20281a8: 94 10 00 09 mov %o1, %o2 <== 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 ); 20281ac: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED dest += to_copy; 20281b0: a2 06 80 0a add %i2, %o2, %l1 <== 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 ); 20281b4: 92 02 40 18 add %o1, %i0, %o1 <== NOT EXECUTED dest += to_copy; block++; 20281b8: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 20281bc: a4 24 80 0a sub %l2, %o2, %l2 <== NOT EXECUTED 20281c0: a0 10 00 0a mov %o2, %l0 <== 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 ); 20281c4: 40 00 2c 79 call 20333a8 <== NOT EXECUTED 20281c8: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 20281cc: 10 bf ff a4 b 202805c <== NOT EXECUTED 20281d0: f6 05 61 fc ld [ %l5 + 0x1fc ], %i3 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 20281d4: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 20281d8: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 20281dc: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 20281e0: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 20281e4: 96 12 e1 30 or %o3, 0x130, %o3 <== NOT EXECUTED 20281e8: 7f ff 70 37 call 20042c4 <__assert_func> <== NOT EXECUTED 20281ec: 92 10 22 a5 mov 0x2a5, %o1 <== 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 ); 20281f0: 40 00 22 81 call 2030bf4 <__errno> <== NOT EXECUTED 20281f4: 01 00 00 00 nop <== NOT EXECUTED 20281f8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20281fc: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2028200: 10 bf ff c0 b 2028100 <== NOT EXECUTED 2028204: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2028208: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 202820c: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2028210: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2028214: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2028218: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 202821c: 7f ff 70 2a call 20042c4 <__assert_func> <== NOT EXECUTED 2028220: 92 10 22 4a mov 0x24a, %o1 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 2028224: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2028228: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 202822c: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2028230: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2028234: 96 12 e1 90 or %o3, 0x190, %o3 <== NOT EXECUTED 2028238: 7f ff 70 23 call 20042c4 <__assert_func> <== NOT EXECUTED 202823c: 92 10 22 58 mov 0x258, %o1 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 2028240: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2028244: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2028248: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 202824c: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2028250: 96 12 e1 40 or %o3, 0x140, %o3 <== NOT EXECUTED 2028254: 7f ff 70 1c call 20042c4 <__assert_func> <== NOT EXECUTED 2028258: 92 10 22 4f mov 0x24f, %o1 <== 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 ); 202825c: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 2028260: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2028264: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2028268: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 202826c: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2028270: 96 12 e1 30 or %o3, 0x130, %o3 <== NOT EXECUTED 2028274: 7f ff 70 14 call 20042c4 <__assert_func> <== NOT EXECUTED 2028278: 92 10 22 94 mov 0x294, %o1 <== 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 ); 202827c: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 2028280: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2028284: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2028288: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 202828c: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2028290: 96 12 e1 30 or %o3, 0x130, %o3 <== NOT EXECUTED 2028294: 7f ff 70 0c call 20042c4 <__assert_func> <== NOT EXECUTED 2028298: 92 10 22 b7 mov 0x2b7, %o1 <== NOT EXECUTED 202829c: 01 00 00 00 nop 020276f8 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 20276f8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 20276fc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2027700: 02 80 00 5f be 202787c <== NOT EXECUTED 2027704: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027708: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 202770c: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2027710: 12 80 00 62 bne 2027898 <== NOT EXECUTED 2027714: 23 00 81 28 sethi %hi(0x204a000), %l1 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 2027718: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 <== 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; 202771c: c4 04 61 fc ld [ %l1 + 0x1fc ], %g2 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 2027720: 80 a0 60 00 cmp %g1, 0 <== 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; 2027724: a5 30 a0 02 srl %g2, 2, %l2 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 2027728: 02 80 00 05 be 202773c <== NOT EXECUTED 202772c: aa 14 61 fc or %l1, 0x1fc, %l5 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); 2027730: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED 2027734: 7f ff ff d0 call 2027674 <== NOT EXECUTED 2027738: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED } if ( info->doubly_indirect ) { 202773c: d0 06 20 54 ld [ %i0 + 0x54 ], %o0 <== NOT EXECUTED 2027740: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027744: 02 80 00 19 be 20277a8 <== NOT EXECUTED 2027748: c2 04 61 fc ld [ %l1 + 0x1fc ], %g1 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 2027758: 82 10 20 00 clr %g1 <== NOT EXECUTED 202775c: 10 80 00 03 b 2027768 <== NOT EXECUTED 2027760: a0 10 20 00 clr %l0 <== NOT EXECUTED 2027764: d0 06 20 54 ld [ %i0 + 0x54 ], %o0 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 2027768: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED 202776c: c2 02 00 02 ld [ %o0 + %g2 ], %g1 <== NOT EXECUTED 2027770: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2027774: 02 80 00 04 be 2027784 <== NOT EXECUTED 2027778: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 202777c: 7f ff ff be call 2027674 <== NOT EXECUTED 2027780: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2027798: 82 10 00 10 mov %l0, %g1 <== 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 ); 202779c: 90 06 20 54 add %i0, 0x54, %o0 <== NOT EXECUTED 20277a0: 7f ff ff b5 call 2027674 <== NOT EXECUTED 20277a4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED } if ( info->triply_indirect ) { 20277a8: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 <== NOT EXECUTED 20277ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20277b0: 02 80 00 31 be 2027874 <== NOT EXECUTED 20277b4: c2 04 61 fc ld [ %l1 + 0x1fc ], %g1 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 20277c4: 90 06 20 58 add %i0, 0x58, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 20277c8: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 20277cc: a8 10 20 00 clr %l4 <== NOT EXECUTED 20277d0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 20277d4: 02 80 00 25 be 2027868 <== NOT EXECUTED 20277d8: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 20277ec: 82 10 20 00 clr %g1 <== NOT EXECUTED 20277f0: a0 10 20 00 clr %l0 <== NOT EXECUTED if ( p[j] ) { 20277f4: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED 20277f8: c2 04 40 02 ld [ %l1 + %g2 ], %g1 <== NOT EXECUTED 20277fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2027800: 02 80 00 04 be 2027810 <== NOT EXECUTED 2027804: 90 04 40 02 add %l1, %g2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 2027808: 7f ff ff 9b call 2027674 <== NOT EXECUTED 202780c: 92 10 00 12 mov %l2, %o1 <== 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 2027824: 82 10 00 10 mov %l0, %g1 <== NOT EXECUTED 2027828: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 202782c: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED 2027830: 7f ff ff 91 call 2027674 <== NOT EXECUTED 2027834: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 202784c: 90 06 20 58 add %i0, 0x58, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 2027850: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2027854: a7 2d 20 02 sll %l4, 2, %l3 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 2027858: e2 02 00 13 ld [ %o0 + %l3 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 202785c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2027860: 32 bf ff e0 bne,a 20277e0 <== NOT EXECUTED 2027864: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 2027868: 90 06 20 58 add %i0, 0x58, %o0 <== NOT EXECUTED 202786c: 7f ff ff 82 call 2027674 <== NOT EXECUTED 2027870: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2027874: 81 c7 e0 08 ret <== NOT EXECUTED 2027878: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 202787c: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027880: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027884: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027888: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 202788c: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 2027890: 7f ff 72 8d call 20042c4 <__assert_func> <== NOT EXECUTED 2027894: 92 10 21 ec mov 0x1ec, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027898: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 202789c: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 20278a0: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 20278a4: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 20278a8: 96 12 e0 f0 or %o3, 0xf0, %o3 <== NOT EXECUTED 20278ac: 7f ff 72 86 call 20042c4 <__assert_func> <== NOT EXECUTED 20278b0: 92 10 21 f0 mov 0x1f0, %o1 <== NOT EXECUTED 20278b4: 01 00 00 00 nop 02027644 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 2027644: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED block_p *block_entry_ptr; block_p ptr; block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2027648: 94 10 20 00 clr %o2 <== NOT EXECUTED 202764c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2027650: 7f ff ff 50 call 2027390 <== NOT EXECUTED 2027654: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED ptr = *block_entry_ptr; 2027658: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED *block_entry_ptr = 0; memfile_free_block( ptr ); return 1; } 202765c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED block_p *block_entry_ptr; block_p ptr; block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ptr = *block_entry_ptr; *block_entry_ptr = 0; 2027660: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED memfile_free_block( ptr ); 2027664: 7f ff ff 35 call 2027338 <== NOT EXECUTED 2027668: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED return 1; } 202766c: 81 c7 e0 08 ret <== NOT EXECUTED 2027670: 81 e8 00 00 restore <== NOT EXECUTED 02027c64 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 2027c64: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027c68: a2 96 20 00 orcc %i0, 0, %l1 <== NOT EXECUTED 2027c6c: 02 80 00 83 be 2027e78 <== NOT EXECUTED 2027c70: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027c74: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 <== NOT EXECUTED 2027c78: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2027c7c: 12 80 00 78 bne 2027e5c <== NOT EXECUTED 2027c80: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 2027c84: 02 80 00 84 be 2027e94 <== NOT EXECUTED 2027c88: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 2027c8c: 02 80 00 6e be 2027e44 <== NOT EXECUTED 2027c90: 92 06 c0 19 add %i3, %i1, %o1 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 2027c94: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 <== NOT EXECUTED 2027c98: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED 2027c9c: 18 80 00 4d bgu 2027dd0 <== NOT EXECUTED 2027ca0: 27 00 81 28 sethi %hi(0x204a000), %l3 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2027ca4: e0 04 e1 fc ld [ %l3 + 0x1fc ], %l0 ! 204a1fc <== NOT EXECUTED 2027ca8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2027cac: 40 00 65 0f call 20410e8 <.rem> <== NOT EXECUTED 2027cb0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2027cb4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2027cb8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2027cbc: 40 00 64 5f call 2040e38 <.div> <== NOT EXECUTED 2027cc0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( start_offset ) { 2027cc4: 80 a6 20 00 cmp %i0, 0 <== 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; 2027cc8: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED if ( start_offset ) { 2027ccc: 12 80 00 2e bne 2027d84 <== NOT EXECUTED 2027cd0: a4 14 e1 fc or %l3, 0x1fc, %l2 <== NOT EXECUTED 2027cd4: a0 10 00 1a mov %i2, %l0 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2027cd8: f4 04 e1 fc ld [ %l3 + 0x1fc ], %i2 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2027cdc: 80 a6 c0 1a cmp %i3, %i2 <== NOT EXECUTED 2027ce0: 0a 80 00 14 bcs 2027d30 <== NOT EXECUTED 2027ce4: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2027ce8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2027cec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2027cf0: 7f ff fd a8 call 2027390 <== NOT EXECUTED 2027cf4: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2027cf8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027cfc: 02 80 00 4a be 2027e24 <== NOT EXECUTED 2027d00: 92 10 00 10 mov %l0, %o1 <== 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 ); 2027d04: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED 2027d08: 40 00 2d a8 call 20333a8 <== NOT EXECUTED 2027d0c: 94 10 00 1a mov %i2, %o2 <== 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 ) { 2027d10: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 2027d14: b6 26 c0 1a sub %i3, %i2, %i3 <== NOT EXECUTED return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; 2027d18: a0 04 00 1a add %l0, %i2, %l0 <== 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 ) { 2027d1c: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; 2027d20: b2 06 60 01 inc %i1 <== 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 ) { 2027d24: 08 bf ff f1 bleu 2027ce8 <== NOT EXECUTED 2027d28: b0 06 00 1a add %i0, %i2, %i0 <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 2027d2c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2027d30: 02 80 00 0e be 2027d68 <== NOT EXECUTED 2027d34: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2027d38: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2027d3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2027d40: 7f ff fd 94 call 2027390 <== NOT EXECUTED 2027d44: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2027d48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027d4c: 02 80 00 61 be 2027ed0 <== NOT EXECUTED 2027d50: b0 06 00 1b add %i0, %i3, %i0 <== 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 ); 2027d54: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED 2027d58: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2027d5c: 40 00 2d 93 call 20333a8 <== NOT EXECUTED 2027d60: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED my_length = 0; copied += to_copy; } IMFS_atime_mtime_update( the_jnode ); 2027d64: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 2027d68: 7f ff 72 ae call 2004820 <== NOT EXECUTED 2027d6c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2027d70: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2027d74: c2 24 60 3c st %g1, [ %l1 + 0x3c ] <== NOT EXECUTED 2027d78: c2 24 60 40 st %g1, [ %l1 + 0x40 ] <== NOT EXECUTED return copied; } 2027d7c: 81 c7 e0 08 ret <== NOT EXECUTED 2027d80: 81 e8 00 00 restore <== 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 ); 2027d84: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2027d88: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2027d8c: 7f ff fd 81 call 2027390 <== NOT EXECUTED 2027d90: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2027d94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027d98: 02 80 00 46 be 2027eb0 <== NOT EXECUTED 2027d9c: 94 24 00 18 sub %l0, %i0, %o2 <== 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; 2027da0: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED 2027da4: 18 80 00 16 bgu 2027dfc <== NOT EXECUTED 2027da8: d0 02 00 00 ld [ %o0 ], %o0 <== 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; 2027dac: a0 06 80 0a add %i2, %o2, %l0 <== 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 ); 2027db0: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED src += to_copy; block++; 2027db4: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 2027db8: b6 26 c0 0a sub %i3, %o2, %i3 <== NOT EXECUTED copied += to_copy; 2027dbc: b0 10 00 0a mov %o2, %i0 <== 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 ); 2027dc0: 40 00 2d 7a call 20333a8 <== NOT EXECUTED 2027dc4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2027dc8: 10 bf ff c5 b 2027cdc <== NOT EXECUTED 2027dcc: f4 04 e1 fc ld [ %l3 + 0x1fc ], %i2 <== 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 ); 2027dd0: 7f ff ff 1d call 2027a44 <== NOT EXECUTED 2027dd4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( status ) 2027dd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027ddc: 02 bf ff b2 be 2027ca4 <== NOT EXECUTED 2027de0: 27 00 81 28 sethi %hi(0x204a000), %l3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 2027de4: 40 00 23 84 call 2030bf4 <__errno> <== NOT EXECUTED 2027de8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027dec: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2027df0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2027df4: 81 c7 e0 08 ret <== NOT EXECUTED 2027df8: 81 e8 00 00 restore <== 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; 2027dfc: 94 10 00 1b mov %i3, %o2 <== 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 ); 2027e00: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED src += to_copy; 2027e04: a0 06 80 0a add %i2, %o2, %l0 <== NOT EXECUTED block++; 2027e08: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 2027e0c: b6 26 c0 0a sub %i3, %o2, %i3 <== NOT EXECUTED copied += to_copy; 2027e10: b0 10 00 0a mov %o2, %i0 <== 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 ); 2027e14: 40 00 2d 65 call 20333a8 <== NOT EXECUTED 2027e18: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2027e1c: 10 bf ff b0 b 2027cdc <== NOT EXECUTED 2027e20: f4 04 e1 fc ld [ %l3 + 0x1fc ], %i2 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2027e24: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 2027e28: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027e2c: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027e30: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027e34: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2027e38: 96 12 e1 30 or %o3, 0x130, %o3 <== NOT EXECUTED 2027e3c: 7f ff 71 22 call 20042c4 <__assert_func> <== NOT EXECUTED 2027e40: 92 10 23 2e mov 0x32e, %o1 <== 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 ); 2027e44: 40 00 23 6c call 2030bf4 <__errno> <== NOT EXECUTED 2027e48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027e4c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2027e50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2027e54: 81 c7 e0 08 ret <== NOT EXECUTED 2027e58: 81 e8 00 00 restore <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2027e5c: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027e60: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027e64: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027e68: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2027e6c: 96 12 e0 f0 or %o3, 0xf0, %o3 <== NOT EXECUTED 2027e70: 7f ff 71 15 call 20042c4 <__assert_func> <== NOT EXECUTED 2027e74: 92 10 22 e5 mov 0x2e5, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2027e78: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027e7c: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027e80: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027e84: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2027e88: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 2027e8c: 7f ff 71 0e call 20042c4 <__assert_func> <== NOT EXECUTED 2027e90: 92 10 22 e1 mov 0x2e1, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 2027e94: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027e98: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027e9c: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027ea0: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2027ea4: 96 12 e1 28 or %o3, 0x128, %o3 <== NOT EXECUTED 2027ea8: 7f ff 71 07 call 20042c4 <__assert_func> <== NOT EXECUTED 2027eac: 92 10 22 ed mov 0x2ed, %o1 <== 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 ); 2027eb0: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 2027eb4: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027eb8: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027ebc: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027ec0: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2027ec4: 96 12 e1 30 or %o3, 0x130, %o3 <== NOT EXECUTED 2027ec8: 7f ff 70 ff call 20042c4 <__assert_func> <== NOT EXECUTED 2027ecc: 92 10 23 1a mov 0x31a, %o1 <== 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 ); 2027ed0: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 2027ed4: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 2027ed8: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 2027edc: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 2027ee0: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2027ee4: 96 12 e1 30 or %o3, 0x130, %o3 <== NOT EXECUTED 2027ee8: 7f ff 70 f7 call 20042c4 <__assert_func> <== NOT EXECUTED 2027eec: 92 10 23 44 mov 0x344, %o1 <== NOT EXECUTED 2027ef0: 01 00 00 00 nop 0200a394 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200a394: 9d e3 bf 60 save %sp, -160, %sp 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 ); 200a398: 90 10 00 18 mov %i0, %o0 200a39c: 94 07 bf f4 add %fp, -12, %o2 200a3a0: b0 07 bf c0 add %fp, -64, %i0 200a3a4: 7f ff ff 83 call 200a1b0 200a3a8: 92 10 00 18 mov %i0, %o1 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 200a3ac: b3 2e 60 10 sll %i1, 0x10, %i1 200a3b0: 03 00 00 3c sethi %hi(0xf000), %g1 200a3b4: 97 36 60 10 srl %i1, 0x10, %o3 200a3b8: 05 00 00 10 sethi %hi(0x4000), %g2 200a3bc: 86 0a c0 01 and %o3, %g1, %g3 200a3c0: 80 a0 c0 02 cmp %g3, %g2 200a3c4: 02 80 00 1f be 200a440 200a3c8: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 200a3cc: 03 00 00 20 sethi %hi(0x8000), %g1 200a3d0: 80 a0 c0 01 cmp %g3, %g1 200a3d4: 02 80 00 12 be 200a41c 200a3d8: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 200a3dc: 03 00 00 18 sethi %hi(0x6000), %g1 200a3e0: 80 a0 c0 01 cmp %g3, %g1 200a3e4: 02 80 00 0b be 200a410 200a3e8: 03 00 00 08 sethi %hi(0x2000), %g1 200a3ec: 80 a0 c0 01 cmp %g3, %g1 200a3f0: 22 80 00 09 be,a 200a414 200a3f4: f4 27 bf e4 st %i2, [ %fp + -28 ] type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else { rtems_set_errno_and_return_minus_one( EINVAL ); 200a3f8: 40 00 0a 60 call 200cd78 <__errno> <== NOT EXECUTED 200a3fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a400: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200a404: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a408: 81 c7 e0 08 ret <== NOT EXECUTED 200a40c: 81 e8 00 00 restore <== NOT EXECUTED type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 200a410: f4 27 bf e4 st %i2, [ %fp + -28 ] <== NOT EXECUTED 200a414: f6 27 bf e8 st %i3, [ %fp + -24 ] 200a418: 92 10 20 02 mov 2, %o1 /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 200a41c: 94 10 00 18 mov %i0, %o2 200a420: 98 07 bf e4 add %fp, -28, %o4 200a424: 40 00 08 14 call 200c474 200a428: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200a42c: 80 a2 20 00 cmp %o0, 0 200a430: 02 80 00 06 be 200a448 200a434: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 200a438: 81 c7 e0 08 ret 200a43c: 81 e8 00 00 restore 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 ); 200a440: 10 bf ff f7 b 200a41c 200a444: 92 10 20 01 mov 1, %o1 mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 200a448: 40 00 0a 4c call 200cd78 <__errno> <== NOT EXECUTED 200a44c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a450: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200a454: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 200a458: 81 c7 e0 08 ret <== NOT EXECUTED 200a45c: 81 e8 00 00 restore <== NOT EXECUTED 02003ee4 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2003ee4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003ee8: c4 06 20 08 ld [ %i0 + 8 ], %g2 <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2003eec: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 2003ef0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2003ef4: 12 80 00 05 bne 2003f08 <== NOT EXECUTED 2003ef8: 01 00 00 00 nop <== 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; 2003efc: f0 20 a0 58 st %i0, [ %g2 + 0x58 ] <== NOT EXECUTED return 0; } 2003f00: 81 c7 e0 08 ret <== NOT EXECUTED 2003f04: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 2003f08: 40 00 b3 3b call 2030bf4 <__errno> <== NOT EXECUTED 2003f0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003f10: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2003f14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003f18: 81 c7 e0 08 ret <== NOT EXECUTED 2003f1c: 81 e8 00 00 restore <== NOT EXECUTED 02003f2c : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 2003f2c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; 2003f30: c8 06 00 00 ld [ %i0 ], %g4 <== NOT EXECUTED if ( node->type != IMFS_SYM_LINK ) 2003f34: c2 01 20 48 ld [ %g4 + 0x48 ], %g1 <== NOT EXECUTED 2003f38: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 2003f3c: 12 80 00 19 bne 2003fa0 <== NOT EXECUTED 2003f40: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2003f44: 02 80 00 15 be 2003f98 <== NOT EXECUTED 2003f48: 86 10 20 00 clr %g3 <== NOT EXECUTED 2003f4c: c2 01 20 4c ld [ %g4 + 0x4c ], %g1 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 2003f50: b0 10 20 00 clr %i0 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2003f54: c4 48 40 00 ldsb [ %g1 ], %g2 <== NOT EXECUTED 2003f58: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003f5c: 12 80 00 08 bne 2003f7c <== NOT EXECUTED 2003f60: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED 2003f64: 30 80 00 13 b,a 2003fb0 <== NOT EXECUTED 2003f68: c2 01 20 4c ld [ %g4 + 0x4c ], %g1 <== NOT EXECUTED 2003f6c: c4 48 40 18 ldsb [ %g1 + %i0 ], %g2 <== NOT EXECUTED 2003f70: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003f74: 02 80 00 07 be 2003f90 <== NOT EXECUTED 2003f78: c2 08 40 18 ldub [ %g1 + %i0 ], %g1 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; 2003f7c: c2 2e 40 03 stb %g1, [ %i1 + %g3 ] <== 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++ ) 2003f80: b0 06 20 01 inc %i0 <== NOT EXECUTED 2003f84: 80 a6 80 18 cmp %i2, %i0 <== NOT EXECUTED 2003f88: 18 bf ff f8 bgu 2003f68 <== NOT EXECUTED 2003f8c: 86 10 00 18 mov %i0, %g3 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 2003f90: 81 c7 e0 08 ret <== NOT EXECUTED 2003f94: 81 e8 00 00 restore <== NOT EXECUTED 2003f98: 81 c7 e0 08 ret <== NOT EXECUTED 2003f9c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 2003fa0: 40 00 b3 15 call 2030bf4 <__errno> <== NOT EXECUTED 2003fa4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003fa8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003fac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003fb0: 81 c7 e0 08 ret <== NOT EXECUTED 2003fb4: 81 e8 00 00 restore <== NOT EXECUTED 0200a46c : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200a46c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200a470: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 200a474: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200a478: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a47c: 22 80 00 06 be,a 200a494 <== NOT EXECUTED 200a480: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 200a484: 40 00 04 a0 call 200b704 <_Chain_Extract> <== NOT EXECUTED 200a488: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200a48c: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200a490: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 200a494: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200a498: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 200a49c: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 200a4a0: 40 00 01 53 call 200a9ec <== NOT EXECUTED 200a4a4: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] <== NOT EXECUTED 200a4a8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== 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) ) { 200a4ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200a4b0: 40 00 01 89 call 200aad4 <== NOT EXECUTED 200a4b4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 200a4b8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a4bc: 12 80 00 12 bne 200a504 <== NOT EXECUTED 200a4c0: 01 00 00 00 nop <== NOT EXECUTED 200a4c4: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 200a4c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a4cc: 12 80 00 0e bne 200a504 <== NOT EXECUTED 200a4d0: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200a4d4: c6 00 61 64 ld [ %g1 + 0x164 ], %g3 ! 2016964 <== NOT EXECUTED 200a4d8: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED 200a4dc: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 200a4e0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200a4e4: 22 80 00 02 be,a 200a4ec <== NOT EXECUTED 200a4e8: c0 20 e0 04 clr [ %g3 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200a4ec: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 200a4f0: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200a4f4: 22 80 00 06 be,a 200a50c <== NOT EXECUTED 200a4f8: d0 04 20 4c ld [ %l0 + 0x4c ], %o0 <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 200a4fc: 40 00 00 ca call 200a824 <== NOT EXECUTED 200a500: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } return 0; } 200a504: 81 c7 e0 08 ret <== NOT EXECUTED 200a508: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 200a50c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a510: 02 bf ff fb be 200a4fc <== NOT EXECUTED 200a514: 01 00 00 00 nop <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 200a518: 40 00 00 c3 call 200a824 <== NOT EXECUTED 200a51c: 01 00 00 00 nop <== NOT EXECUTED 200a520: 30 bf ff f7 b,a 200a4fc <== NOT EXECUTED 0200a524 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200a524: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 200a528: f0 06 00 00 ld [ %i0 ], %i0 switch ( the_jnode->type ) { 200a52c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 200a530: 80 a0 60 04 cmp %g1, 4 200a534: 22 80 00 11 be,a 200a578 200a538: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 200a53c: 14 80 00 0b bg 200a568 200a540: 80 a0 60 06 cmp %g1, 6 200a544: 80 a0 60 02 cmp %g1, 2 200a548: 22 80 00 1e be,a 200a5c0 200a54c: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 case IMFS_SYM_LINK: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a550: 40 00 0a 0a call 200cd78 <__errno> <== NOT EXECUTED 200a554: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a558: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200a55c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a560: 81 c7 e0 08 ret <== NOT EXECUTED 200a564: 81 e8 00 00 restore <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 200a568: 14 bf ff fa bg 200a550 <== NOT EXECUTED 200a56c: 01 00 00 00 nop <== 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; 200a570: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 <== NOT EXECUTED 200a574: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 200a578: c2 16 20 2e lduh [ %i0 + 0x2e ], %g1 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200a57c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 200a580: c2 36 60 0c sth %g1, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200a584: c4 26 60 08 st %g2, [ %i1 + 8 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 200a588: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 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; 200a58c: c4 06 20 3c ld [ %i0 + 0x3c ], %g2 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 200a590: c2 36 60 0e sth %g1, [ %i1 + 0xe ] 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; 200a594: c4 26 60 24 st %g2, [ %i1 + 0x24 ] } 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; 200a598: c2 16 20 38 lduh [ %i0 + 0x38 ], %g1 buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200a59c: c4 06 20 40 ld [ %i0 + 0x40 ], %g2 } 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; 200a5a0: c2 36 60 10 sth %g1, [ %i1 + 0x10 ] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200a5a4: c4 26 60 2c st %g2, [ %i1 + 0x2c ] 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; 200a5a8: c4 16 20 3a lduh [ %i0 + 0x3a ], %g2 buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200a5ac: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 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; 200a5b0: c4 36 60 12 sth %g2, [ %i1 + 0x12 ] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200a5b4: c2 26 60 34 st %g1, [ %i1 + 0x34 ] return 0; } 200a5b8: 81 c7 e0 08 ret 200a5bc: 91 e8 20 00 restore %g0, 0, %o0 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200a5c0: c4 06 20 4c ld [ %i0 + 0x4c ], %g2 switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 200a5c4: c2 26 60 04 st %g1, [ %i1 + 4 ] 200a5c8: 10 bf ff ec b 200a578 200a5cc: c4 26 40 00 st %g2, [ %i1 ] 02003fb8 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 2003fb8: 9d e3 bf 60 save %sp, -160, %sp <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 2003fbc: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2003fc0: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 2003fc4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2003fc8: 7f ff fe e5 call 2003b5c <== NOT EXECUTED 2003fcc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 2003fd0: 40 00 c7 df call 2035f4c <== NOT EXECUTED 2003fd4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003fd8: d0 27 bf e4 st %o0, [ %fp + -28 ] <== NOT EXECUTED if (info.sym_link.name == NULL) { 2003fdc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003fe0: 02 80 00 14 be 2004030 <== NOT EXECUTED 2003fe4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 2003fe8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2003fec: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED 2003ff0: 17 00 00 28 sethi %hi(0xa000), %o3 <== NOT EXECUTED 2003ff4: 98 07 bf e4 add %fp, -28, %o4 <== NOT EXECUTED 2003ff8: 96 12 e1 ff or %o3, 0x1ff, %o3 <== NOT EXECUTED 2003ffc: 40 00 6c 1d call 201f070 <== NOT EXECUTED 2004000: b0 10 20 00 clr %i0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2004004: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004008: 12 80 00 08 bne 2004028 <== NOT EXECUTED 200400c: d0 07 bf e4 ld [ %fp + -28 ], %o0 <== NOT EXECUTED free( info.sym_link.name); 2004010: 40 00 01 d9 call 2004774 <== NOT EXECUTED 2004014: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 2004018: 40 00 b2 f7 call 2030bf4 <__errno> <== NOT EXECUTED 200401c: 01 00 00 00 nop <== NOT EXECUTED 2004020: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2004024: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2004028: 81 c7 e0 08 ret <== NOT EXECUTED 200402c: 81 e8 00 00 restore <== 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); 2004030: 40 00 b2 f1 call 2030bf4 <__errno> <== NOT EXECUTED 2004034: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004038: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200403c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2004040: 81 c7 e0 08 ret <== NOT EXECUTED 2004044: 81 e8 00 00 restore <== NOT EXECUTED 02004048 : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 2004048: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 200404c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 2004050: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2004054: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2004058: 32 80 00 1b bne,a 20040c4 <== NOT EXECUTED 200405c: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 2004060: c8 04 20 4c ld [ %l0 + 0x4c ], %g4 <== NOT EXECUTED 2004064: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 2004068: 02 80 00 1c be 20040d8 <== NOT EXECUTED 200406c: a2 07 bf e0 add %fp, -32, %l1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 2004070: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2004074: c4 06 20 08 ld [ %i0 + 8 ], %g2 <== NOT EXECUTED 2004078: c6 06 20 0c ld [ %i0 + 0xc ], %g3 <== NOT EXECUTED 200407c: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED 2004080: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; 2004084: c8 27 bf e0 st %g4, [ %fp + -32 ] <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 2004088: 40 00 6c 52 call 201f1d0 <== NOT EXECUTED 200408c: 90 10 00 11 mov %l1, %o0 <== 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) 2004090: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 2004094: c2 10 a0 30 lduh [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 2004098: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 200409c: 02 80 00 15 be 20040f0 <== NOT EXECUTED 20040a0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED return -1; } else { node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); 20040a4: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 20040a8: c2 30 a0 30 sth %g1, [ %g2 + 0x30 ] <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 20040ac: 40 00 01 dd call 2004820 <== NOT EXECUTED 20040b0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20040b4: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 20040b8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20040bc: c2 20 a0 44 st %g1, [ %g2 + 0x44 ] <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( loc ); 20040c0: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED 20040c4: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 <== NOT EXECUTED 20040c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20040cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return result; } 20040d0: 81 c7 e0 08 ret <== NOT EXECUTED 20040d4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 20040d8: 40 00 b2 c7 call 2030bf4 <__errno> <== NOT EXECUTED 20040dc: 01 00 00 00 nop <== NOT EXECUTED 20040e0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20040e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20040e8: 10 bf ff fa b 20040d0 <== NOT EXECUTED 20040ec: 90 10 3f ff mov -1, %o0 <== 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 ); 20040f0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 20040f4: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 <== NOT EXECUTED 20040f8: 9f c0 80 00 call %g2 <== NOT EXECUTED 20040fc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( result != 0 ) 2004100: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004104: 02 bf ff ef be 20040c0 <== NOT EXECUTED 2004108: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 200410c: 30 bf ff f1 b,a 20040d0 <== NOT EXECUTED 02004110 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2004110: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2004114: c4 06 20 08 ld [ %i0 + 8 ], %g2 <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2004118: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 200411c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2004120: 12 80 00 09 bne 2004144 <== NOT EXECUTED 2004124: 01 00 00 00 nop <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 2004128: c2 00 a0 58 ld [ %g2 + 0x58 ], %g1 <== NOT EXECUTED 200412c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004130: 02 80 00 0b be 200415c <== NOT EXECUTED 2004134: 01 00 00 00 nop <== 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; 2004138: c0 20 a0 58 clr [ %g2 + 0x58 ] <== NOT EXECUTED return 0; } 200413c: 81 c7 e0 08 ret <== NOT EXECUTED 2004140: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 2004144: 40 00 b2 ac call 2030bf4 <__errno> <== NOT EXECUTED 2004148: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200414c: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2004150: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2004154: 81 c7 e0 08 ret <== NOT EXECUTED 2004158: 81 e8 00 00 restore <== 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 */ 200415c: 40 00 b2 a6 call 2030bf4 <__errno> <== NOT EXECUTED 2004160: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004164: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2004168: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200416c: 81 c7 e0 08 ret <== NOT EXECUTED 2004170: 81 e8 00 00 restore <== NOT EXECUTED 02004174 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2004174: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } 2004178: 90 10 20 00 clr %o0 <== 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; 200417c: d4 20 60 40 st %o2, [ %g1 + 0x40 ] <== NOT EXECUTED return 0; } 2004180: 81 c3 e0 08 retl <== NOT EXECUTED 2004184: d2 20 60 3c st %o1, [ %g1 + 0x3c ] <== NOT EXECUTED 02002264 : void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 2002264: 9d e3 bf 98 save %sp, -104, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 2002268: 03 00 80 5b sethi %hi(0x2016c00), %g1 200226c: c2 00 62 64 ld [ %g1 + 0x264 ], %g1 ! 2016e64 2002270: 80 a0 60 00 cmp %g1, 0 2002274: 02 80 00 05 be 2002288 2002278: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 200227c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 2002280: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002284: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 2002288: 40 00 22 c3 call 200ad94 200228c: a0 10 00 18 mov %i0, %l0 starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 2002290: 03 00 80 5b sethi %hi(0x2016c00), %g1 2002294: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 2016e68 2002298: 80 a0 60 00 cmp %g1, 0 200229c: 02 80 00 06 be 20022b4 20022a0: 90 10 00 18 mov %i0, %o0 starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 20022a4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20022a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20022ac: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 20022b0: a0 10 00 08 mov %o0, %l0 <== 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() ) 20022b4: 03 00 80 5c sethi %hi(0x2017000), %g1 20022b8: c4 00 63 3c ld [ %g1 + 0x33c ], %g2 ! 201733c <_Configuration_Table> 20022bc: c6 08 a0 28 ldub [ %g2 + 0x28 ], %g3 20022c0: 80 a0 e0 00 cmp %g3, 0 20022c4: 12 80 00 10 bne 2002304 20022c8: 90 10 00 10 mov %l0, %o0 void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 20022cc: 92 10 00 10 mov %l0, %o1 20022d0: 11 00 80 5c sethi %hi(0x2017000), %o0 20022d4: 94 10 00 19 mov %i1, %o2 20022d8: 90 12 20 d8 or %o0, 0xd8, %o0 20022dc: 40 00 11 5e call 2006854 <_Heap_Initialize> 20022e0: 96 10 20 08 mov 8, %o3 &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 20022e4: 80 a2 20 00 cmp %o0, 0 20022e8: 02 80 00 0c be 2002318 20022ec: 05 00 80 5c sethi %hi(0x2017000), %g2 rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 20022f0: c2 00 a1 30 ld [ %g2 + 0x130 ], %g1 ! 2017130 20022f4: 82 06 40 01 add %i1, %g1, %g1 20022f8: c2 20 a1 30 st %g1, [ %g2 + 0x130 ] } 20022fc: 81 c7 e0 08 ret 2002300: 81 e8 00 00 restore * 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 ); 2002304: 92 10 20 00 clr %o1 <== NOT EXECUTED 2002308: 40 00 2c c7 call 200d624 <== NOT EXECUTED 200230c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 2002310: 10 bf ff f0 b 20022d0 <== NOT EXECUTED 2002314: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) rtems_fatal_error_occurred( status ); 2002318: 40 00 0e f2 call 2005ee0 <== NOT EXECUTED 200231c: 01 00 00 00 nop 2002320: 01 00 00 00 nop 02002ea0 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2002ea0: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 2002ea4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2002ea8: 02 80 00 39 be 2002f8c <== NOT EXECUTED 2002eac: 2b 00 81 28 sethi %hi(0x204a000), %l5 <== NOT EXECUTED return; if ( !print_handler ) 2002eb0: e8 05 61 f8 ld [ %l5 + 0x1f8 ], %l4 ! 204a1f8 <== NOT EXECUTED 2002eb4: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2002eb8: 02 80 00 35 be 2002f8c <== NOT EXECUTED 2002ebc: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2002ec0: 02 80 00 3b be 2002fac <== NOT EXECUTED 2002ec4: a4 06 20 c4 add %i0, 0xc4, %l2 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 2002ec8: ec 06 21 50 ld [ %i0 + 0x150 ], %l6 <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); 2002ecc: e0 04 a0 04 ld [ %l2 + 4 ], %l0 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2002ed0: c2 04 80 00 ld [ %l2 ], %g1 <== 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); 2002ed4: a0 04 20 10 add %l0, 0x10, %l0 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2002ed8: a6 00 7f f0 add %g1, -16, %l3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 2002edc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002ee0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2002ee4: 7f ff ff d6 call 2002e3c <== NOT EXECUTED 2002ee8: a0 04 00 13 add %l0, %l3, %l0 <== NOT EXECUTED if ( high_water_mark ) 2002eec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2002ef0: 02 80 00 40 be 2002ff0 <== NOT EXECUTED 2002ef4: ae 24 00 08 sub %l0, %o0, %l7 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { 2002ef8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2002efc: 02 80 00 35 be 2002fd0 <== NOT EXECUTED 2002f00: 03 00 81 28 sethi %hi(0x204a000), %g1 <== NOT EXECUTED (*print_handler)( 2002f04: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED 2002f08: e2 00 61 f4 ld [ %g1 + 0x1f4 ], %l1 <== NOT EXECUTED 2002f0c: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED 2002f10: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2002f14: b0 10 61 f4 or %g1, 0x1f4, %i0 <== NOT EXECUTED 2002f18: 40 00 16 52 call 2008860 <== NOT EXECUTED 2002f1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002f20: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2002f24: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2002f28: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2002f2c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2002f30: 9f c5 00 00 call %l4 <== NOT EXECUTED 2002f34: 92 12 60 80 or %o1, 0x80, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2002f38: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 2002f3c: d4 04 a0 04 ld [ %l2 + 4 ], %o2 <== NOT EXECUTED 2002f40: c4 05 61 f8 ld [ %l5 + 0x1f8 ], %g2 <== NOT EXECUTED 2002f44: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 2002f48: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2002f4c: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED 2002f50: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2002f54: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED 2002f58: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2002f5c: 9f c0 80 00 call %g2 <== NOT EXECUTED 2002f60: 92 12 60 a0 or %o1, 0xa0, %o1 ! 2042ca0 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2002f64: 03 00 81 28 sethi %hi(0x204a000), %g1 <== NOT EXECUTED 2002f68: c4 00 61 f0 ld [ %g1 + 0x1f0 ], %g2 ! 204a1f0 <== NOT EXECUTED 2002f6c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2002f70: 02 80 00 09 be 2002f94 <== NOT EXECUTED 2002f74: c2 05 61 f8 ld [ %l5 + 0x1f8 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 2002f78: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 2002f7c: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2002f80: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED 2002f84: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002f88: 92 12 60 d0 or %o1, 0xd0, %o1 <== NOT EXECUTED 2002f8c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f90: 81 e8 00 00 restore <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 2002f94: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 2002f98: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2002f9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002fa0: 92 12 60 c0 or %o1, 0xc0, %o1 ! 2042cc0 <== NOT EXECUTED 2002fa4: 81 c7 e0 08 ret <== NOT EXECUTED 2002fa8: 81 e8 00 00 restore <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 2002fac: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 2002fb0: 82 10 63 2c or %g1, 0x32c, %g1 ! 205d32c <== NOT EXECUTED 2002fb4: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 2002fb8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2002fbc: 02 bf ff f4 be 2002f8c <== NOT EXECUTED 2002fc0: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 2002fc4: b0 10 20 00 clr %i0 <== NOT EXECUTED 2002fc8: 10 bf ff c1 b 2002ecc <== NOT EXECUTED 2002fcc: ac 10 20 00 clr %l6 <== 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 ); 2002fd0: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 <== NOT EXECUTED 2002fd4: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2002fd8: b0 10 61 f4 or %g1, 0x1f4, %i0 <== NOT EXECUTED 2002fdc: 92 12 60 90 or %o1, 0x90, %o1 <== NOT EXECUTED 2002fe0: 9f c5 00 00 call %l4 <== NOT EXECUTED 2002fe4: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED } (*print_handler)( 2002fe8: 10 bf ff d5 b 2002f3c <== NOT EXECUTED 2002fec: d6 04 80 00 ld [ %l2 ], %o3 <== 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 ) 2002ff0: 10 bf ff c2 b 2002ef8 <== NOT EXECUTED 2002ff4: ae 10 20 00 clr %l7 <== NOT EXECUTED 02002e3c : */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 2002e3c: 82 10 00 08 mov %o0, %g1 <== 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++) 2002e40: 92 0a 7f fc and %o1, -4, %o1 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2002e44: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2002e48: 86 02 00 09 add %o0, %o1, %g3 <== NOT EXECUTED 2002e4c: 80 a2 00 03 cmp %o0, %g3 <== NOT EXECUTED 2002e50: 3a 80 00 12 bcc,a 2002e98 <== NOT EXECUTED 2002e54: 90 10 20 00 clr %o0 <== NOT EXECUTED if (*base != U32_PATTERN) 2002e58: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 2002e5c: 03 29 69 69 sethi %hi(0xa5a5a400), %g1 <== NOT EXECUTED 2002e60: 82 10 61 a5 or %g1, 0x1a5, %g1 ! a5a5a5a5 <== NOT EXECUTED 2002e64: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2002e68: 22 80 00 07 be,a 2002e84 <== NOT EXECUTED 2002e6c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2002e70: 30 80 00 0a b,a 2002e98 <== NOT EXECUTED 2002e74: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2002e78: 12 80 00 08 bne 2002e98 <== NOT EXECUTED 2002e7c: 01 00 00 00 nop <== 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++) 2002e80: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2002e84: 80 a0 c0 08 cmp %g3, %o0 <== NOT EXECUTED 2002e88: 38 bf ff fb bgu,a 2002e74 <== NOT EXECUTED 2002e8c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 2002e90: 81 c3 e0 08 retl <== NOT EXECUTED 2002e94: 90 10 20 00 clr %o0 <== NOT EXECUTED 2002e98: 81 c3 e0 08 retl <== NOT EXECUTED 2002e9c: 01 00 00 00 nop 0200306c : */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 200306c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; printk( 2003070: d4 1e 20 08 ldd [ %i0 + 8 ], %o2 <== NOT EXECUTED 2003074: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2003078: 11 00 81 0b sethi %hi(0x2042c00), %o0 <== NOT EXECUTED 200307c: 40 00 0b a4 call 2005f0c <== NOT EXECUTED 2003080: 90 12 21 40 or %o0, 0x140, %o0 ! 2042d40 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 2003084: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2 <== NOT EXECUTED 2003088: d2 06 20 c8 ld [ %i0 + 0xc8 ], %o1 <== NOT EXECUTED 200308c: 96 10 00 0a mov %o2, %o3 <== NOT EXECUTED 2003090: 11 00 81 0b sethi %hi(0x2042c00), %o0 <== NOT EXECUTED 2003094: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2003098: 90 12 21 80 or %o0, 0x180, %o0 <== NOT EXECUTED 200309c: 40 00 0b 9c call 2005f0c <== NOT EXECUTED 20030a0: 94 02 40 0a add %o1, %o2, %o2 <== NOT EXECUTED stack->area, stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { 20030a4: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 20030a8: 22 80 00 04 be,a 20030b8 <== NOT EXECUTED 20030ac: d2 06 20 c8 ld [ %i0 + 0xc8 ], %o1 <== 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 ); 20030b0: 40 00 18 40 call 20091b0 <== NOT EXECUTED 20030b4: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { printk( 20030b8: 11 00 81 0b sethi %hi(0x2042c00), %o0 <== NOT EXECUTED 20030bc: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 20030c0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED 20030c4: 40 00 0b 92 call 2005f0c <== NOT EXECUTED 20030c8: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 20030cc: 30 bf ff f9 b,a 20030b0 <== NOT EXECUTED 020060ec <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 20060ec: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 20060f0: 03 00 80 5d sethi %hi(0x2017400), %g1 20060f4: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 ! 20174e4 <_API_extensions_List> 20060f8: 82 10 60 e4 or %g1, 0xe4, %g1 20060fc: a2 00 60 04 add %g1, 4, %l1 !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 2006100: 80 a4 00 11 cmp %l0, %l1 2006104: 02 80 00 0c be 2006134 <_API_extensions_Run_postdriver+0x48> 2006108: 01 00 00 00 nop the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) 200610c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 2006110: 80 a0 60 00 cmp %g1, 0 2006114: 22 80 00 05 be,a 2006128 <_API_extensions_Run_postdriver+0x3c> 2006118: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED (*the_extension->postdriver_hook)(); 200611c: 9f c0 40 00 call %g1 2006120: 01 00 00 00 nop 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 ) { 2006124: e0 04 00 00 ld [ %l0 ], %l0 { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 2006128: 80 a4 00 11 cmp %l0, %l1 200612c: 32 bf ff f9 bne,a 2006110 <_API_extensions_Run_postdriver+0x24> 2006130: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 2006134: 81 c7 e0 08 ret 2006138: 81 e8 00 00 restore 0200613c <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 200613c: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2006140: 03 00 80 5d sethi %hi(0x2017400), %g1 2006144: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 ! 20174e4 <_API_extensions_List> 2006148: 82 10 60 e4 or %g1, 0xe4, %g1 200614c: a2 00 60 04 add %g1, 4, %l1 !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 2006150: 80 a4 00 11 cmp %l0, %l1 2006154: 02 80 00 0d be 2006188 <_API_extensions_Run_postswitch+0x4c> 2006158: 03 00 80 5c sethi %hi(0x2017000), %g1 the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) (*the_extension->postswitch_hook)( _Thread_Executing ); 200615c: a4 10 63 64 or %g1, 0x364, %l2 ! 2017364 <_Thread_Executing> !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) 2006160: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 2006164: 80 a0 60 00 cmp %g1, 0 2006168: 22 80 00 05 be,a 200617c <_API_extensions_Run_postswitch+0x40> 200616c: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED (*the_extension->postswitch_hook)( _Thread_Executing ); 2006170: 9f c0 40 00 call %g1 2006174: d0 04 80 00 ld [ %l2 ], %o0 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 ) { 2006178: e0 04 00 00 ld [ %l0 ], %l0 { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 200617c: 80 a4 00 11 cmp %l0, %l1 2006180: 32 bf ff f9 bne,a 2006164 <_API_extensions_Run_postswitch+0x28> 2006184: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 2006188: 81 c7 e0 08 ret 200618c: 81 e8 00 00 restore 0200609c <_API_extensions_Run_predriver>: * * _API_extensions_Run_predriver */ void _API_extensions_Run_predriver( void ) { 200609c: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 20060a0: 03 00 80 5d sethi %hi(0x2017400), %g1 20060a4: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 ! 20174e4 <_API_extensions_List> 20060a8: 82 10 60 e4 or %g1, 0xe4, %g1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 20060ac: a2 00 60 04 add %g1, 4, %l1 !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 20060b0: 80 a4 00 11 cmp %l0, %l1 20060b4: 02 80 00 0c be 20060e4 <_API_extensions_Run_predriver+0x48> 20060b8: 01 00 00 00 nop the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) 20060bc: c2 04 20 08 ld [ %l0 + 8 ], %g1 20060c0: 80 a0 60 00 cmp %g1, 0 20060c4: 22 80 00 05 be,a 20060d8 <_API_extensions_Run_predriver+0x3c> 20060c8: e0 04 00 00 ld [ %l0 ], %l0 (*the_extension->predriver_hook)(); 20060cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20060d0: 01 00 00 00 nop <== 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 ) { 20060d4: e0 04 00 00 ld [ %l0 ], %l0 <== 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 ) ; 20060d8: 80 a4 00 11 cmp %l0, %l1 20060dc: 32 bf ff f9 bne,a 20060c0 <_API_extensions_Run_predriver+0x24> 20060e0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 20060e4: 81 c7 e0 08 ret 20060e8: 81 e8 00 00 restore 02012688 <_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 ) { 2012688: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 201268c: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 2012690: a4 10 00 18 mov %i0, %l2 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 2012694: 80 a0 40 1a cmp %g1, %i2 2012698: 0a 80 00 17 bcs 20126f4 <_CORE_message_queue_Broadcast+0x6c> 201269c: b0 10 20 01 mov 1, %i0 * 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 ) { 20126a0: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 20126a4: 80 a0 60 00 cmp %g1, 0 20126a8: 02 80 00 0a be 20126d0 <_CORE_message_queue_Broadcast+0x48> 20126ac: a2 10 20 00 clr %l1 *count = 0; 20126b0: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED 20126b4: 81 c7 e0 08 ret <== NOT EXECUTED 20126b8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 20126bc: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 20126c0: 40 00 20 d2 call 201aa08 20126c4: a2 04 60 01 inc %l1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 20126c8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 20126cc: f4 20 40 00 st %i2, [ %g1 ] * 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))) { 20126d0: 40 00 0a 40 call 2014fd0 <_Thread_queue_Dequeue> 20126d4: 90 10 00 12 mov %l2, %o0 20126d8: 92 10 00 19 mov %i1, %o1 20126dc: a0 10 00 08 mov %o0, %l0 20126e0: 80 a2 20 00 cmp %o0, 0 20126e4: 12 bf ff f6 bne 20126bc <_CORE_message_queue_Broadcast+0x34> 20126e8: 94 10 00 1a mov %i2, %o2 if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 20126ec: e2 27 40 00 st %l1, [ %i5 ] 20126f0: b0 10 20 00 clr %i0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 20126f4: 81 c7 e0 08 ret 20126f8: 81 e8 00 00 restore 02017380 <_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 ) { 2017380: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 2017384: 03 20 00 00 sethi %hi(0x80000000), %g1 2017388: 80 a6 80 01 cmp %i2, %g1 201738c: 02 80 00 41 be 2017490 <_CORE_message_queue_Insert_message+0x110> 2017390: f4 26 60 08 st %i2, [ %i1 + 8 ] 2017394: 82 00 7c 00 add %g1, -1024, %g1 2017398: 82 10 63 ff or %g1, 0x3ff, %g1 201739c: 80 a6 80 01 cmp %i2, %g1 20173a0: 02 80 00 2a be 2017448 <_CORE_message_queue_Insert_message+0xc8> 20173a4: 84 06 20 54 add %i0, 0x54, %g2 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; 20173a8: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 <== NOT EXECUTED while ( !_Chain_Is_tail( the_header, the_node ) ) { 20173ac: 80 a0 80 10 cmp %g2, %l0 <== NOT EXECUTED 20173b0: 32 80 00 22 bne,a 2017438 <_CORE_message_queue_Insert_message+0xb8> <== NOT EXECUTED 20173b4: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 20173b8: a0 10 00 02 mov %g2, %l0 <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 20173bc: 7f ff ac 86 call 20025d4 <== NOT EXECUTED 20173c0: 01 00 00 00 nop <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages++ == 0 ) notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); 20173c4: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 20173c8: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 20173cc: c6 00 40 00 ld [ %g1 ], %g3 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 20173d0: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 20173d4: f2 20 40 00 st %i1, [ %g1 ] <== NOT EXECUTED 20173d8: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 20173dc: f2 20 e0 04 st %i1, [ %g3 + 4 ] <== NOT EXECUTED 20173e0: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED 20173e4: 84 00 a0 01 inc %g2 <== 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; 20173e8: c6 26 40 00 st %g3, [ %i1 ] <== NOT EXECUTED 20173ec: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED 20173f0: c4 26 20 48 st %g2, [ %i0 + 0x48 ] <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 20173f4: 7f ff ac 7c call 20025e4 <== NOT EXECUTED 20173f8: 01 00 00 00 nop <== 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 ) 20173fc: 80 8c 20 ff btst 0xff, %l0 <== NOT EXECUTED 2017400: 02 80 00 08 be 2017420 <_CORE_message_queue_Insert_message+0xa0> 2017404: 01 00 00 00 nop 2017408: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 201740c: 80 a0 60 00 cmp %g1, 0 2017410: 02 80 00 04 be 2017420 <_CORE_message_queue_Insert_message+0xa0> 2017414: 01 00 00 00 nop (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 2017418: 9f c0 40 00 call %g1 <== NOT EXECUTED 201741c: d0 06 20 64 ld [ %i0 + 0x64 ], %o0 <== NOT EXECUTED 2017420: 81 c7 e0 08 ret 2017424: 81 e8 00 00 restore 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 ) ) { 2017428: 80 a0 80 10 cmp %g2, %l0 <== NOT EXECUTED 201742c: 22 bf ff e4 be,a 20173bc <_CORE_message_queue_Insert_message+0x3c> <== NOT EXECUTED 2017430: a0 10 00 02 mov %g2, %l0 <== NOT EXECUTED this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 2017434: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 2017438: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 201743c: 36 bf ff fb bge,a 2017428 <_CORE_message_queue_Insert_message+0xa8> <== NOT EXECUTED 2017440: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED 2017444: 30 bf ff de b,a 20173bc <_CORE_message_queue_Insert_message+0x3c> <== NOT EXECUTED the_message->priority = submit_type; switch ( submit_type ) { case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 2017448: 7f ff ac 63 call 20025d4 201744c: 01 00 00 00 nop if ( the_message_queue->number_of_pending_messages++ == 0 ) 2017450: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2017454: 82 06 20 54 add %i0, 0x54, %g1 2017458: c2 26 40 00 st %g1, [ %i1 ] old_last_node = the_chain->last; 201745c: c6 06 20 58 ld [ %i0 + 0x58 ], %g3 the_chain->last = the_node; 2017460: f2 26 20 58 st %i1, [ %i0 + 0x58 ] 2017464: 80 a0 00 02 cmp %g0, %g2 old_last_node->next = the_node; the_node->previous = old_last_node; 2017468: c6 26 60 04 st %g3, [ %i1 + 4 ] 201746c: 82 60 3f ff subx %g0, -1, %g1 2017470: 84 00 a0 01 inc %g2 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; 2017474: f2 20 c0 00 st %i1, [ %g3 ] 2017478: a0 10 00 01 mov %g1, %l0 201747c: c4 26 20 48 st %g2, [ %i0 + 0x48 ] notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 2017480: 7f ff ac 59 call 20025e4 2017484: 01 00 00 00 nop * 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 ) 2017488: 10 bf ff de b 2017400 <_CORE_message_queue_Insert_message+0x80> 201748c: 80 8c 20 ff btst 0xff, %l0 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 ); 2017490: 7f ff ac 51 call 20025d4 2017494: 01 00 00 00 nop if ( the_message_queue->number_of_pending_messages++ == 0 ) 2017498: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 201749c: c6 06 20 50 ld [ %i0 + 0x50 ], %g3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 20174a0: 82 06 20 50 add %i0, 0x50, %g1 { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; 20174a4: f2 26 20 50 st %i1, [ %i0 + 0x50 ] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 20174a8: c2 26 60 04 st %g1, [ %i1 + 4 ] 20174ac: 80 a0 00 02 cmp %g0, %g2 before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 20174b0: f2 20 e0 04 st %i1, [ %g3 + 4 ] 20174b4: 82 60 3f ff subx %g0, -1, %g1 20174b8: 84 00 a0 01 inc %g2 Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 20174bc: c6 26 40 00 st %g3, [ %i1 ] 20174c0: a0 10 00 01 mov %g1, %l0 20174c4: c4 26 20 48 st %g2, [ %i0 + 0x48 ] notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 20174c8: 7f ff ac 47 call 20025e4 20174cc: 01 00 00 00 nop * 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 ) 20174d0: 10 bf ff cc b 2017400 <_CORE_message_queue_Insert_message+0x80> 20174d4: 80 8c 20 ff btst 0xff, %l0 020140ec <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 20140ec: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; 20140f0: 27 00 80 9f sethi %hi(0x2027c00), %l3 20140f4: e2 04 e2 e4 ld [ %l3 + 0x2e4 ], %l1 ! 2027ee4 <_Thread_Executing> void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 20140f8: a4 10 00 19 mov %i1, %l2 Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 20140fc: 7f ff b9 36 call 20025d4 2014100: c0 24 60 34 clr [ %l1 + 0x34 ] */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2014104: f2 06 20 50 ld [ %i0 + 0x50 ], %i1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 2014108: 82 06 20 54 add %i0, 0x54, %g1 201410c: 80 a6 40 01 cmp %i1, %g1 2014110: 02 80 00 21 be 2014194 <_CORE_message_queue_Seize+0xa8> 2014114: 84 06 20 50 add %i0, 0x50, %g2 { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 2014118: c6 06 40 00 ld [ %i1 ], %g3 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; 201411c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 the_chain->first = new_first; 2014120: c6 26 20 50 st %g3, [ %i0 + 0x50 ] 2014124: 82 00 7f ff add %g1, -1, %g1 2014128: c2 26 20 48 st %g1, [ %i0 + 0x48 ] new_first->previous = _Chain_Head(the_chain); 201412c: c4 20 e0 04 st %g2, [ %g3 + 4 ] _ISR_Enable( level ); 2014130: 7f ff b9 2d call 20025e4 2014134: a2 06 60 10 add %i1, 0x10, %l1 *size_p = the_message->Contents.size; 2014138: d4 06 60 0c ld [ %i1 + 0xc ], %o2 _Thread_Executing->Wait.count = the_message->priority; 201413c: c4 04 e2 e4 ld [ %l3 + 0x2e4 ], %g2 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; 2014140: d4 26 c0 00 st %o2, [ %i3 ] _Thread_Executing->Wait.count = the_message->priority; 2014144: c2 06 60 08 ld [ %i1 + 8 ], %g1 2014148: c2 20 a0 24 st %g1, [ %g2 + 0x24 ] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 201414c: 92 10 00 11 mov %l1, %o1 2014150: 40 00 14 95 call 20193a4 2014154: 90 10 00 1a mov %i2, %o0 * * 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 ); 2014158: 7f ff e9 13 call 200e5a4 <_Thread_queue_Dequeue> 201415c: 90 10 00 18 mov %i0, %o0 if ( !the_thread ) { 2014160: 80 a2 20 00 cmp %o0, 0 2014164: 02 80 00 1f be 20141e0 <_CORE_message_queue_Seize+0xf4> 2014168: 01 00 00 00 nop * 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; 201416c: d4 02 20 30 ld [ %o0 + 0x30 ], %o2 <== 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; 2014170: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 2014174: d4 26 60 0c st %o2, [ %i1 + 0xc ] <== 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; 2014178: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED 201417c: d2 02 20 2c ld [ %o0 + 0x2c ], %o1 <== NOT EXECUTED 2014180: 40 00 14 89 call 20193a4 <== NOT EXECUTED 2014184: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 2014188: f4 06 60 08 ld [ %i1 + 8 ], %i2 <== NOT EXECUTED 201418c: 40 00 0c 7d call 2017380 <_CORE_message_queue_Insert_message> <== NOT EXECUTED 2014190: 81 e8 00 00 restore <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 2014194: 80 8f 20 ff btst 0xff, %i4 2014198: 02 80 00 0c be 20141c8 <_CORE_message_queue_Seize+0xdc> 201419c: 82 10 20 01 mov 1, %g1 20141a0: c2 26 20 30 st %g1, [ %i0 + 0x30 ] _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; 20141a4: f6 24 60 28 st %i3, [ %l1 + 0x28 ] 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; 20141a8: f0 24 60 44 st %i0, [ %l1 + 0x44 ] executing->Wait.id = id; 20141ac: e4 24 60 20 st %l2, [ %l1 + 0x20 ] executing->Wait.return_argument_second.mutable_object = buffer; 20141b0: f4 24 60 2c st %i2, [ %l1 + 0x2c ] executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 20141b4: 7f ff b9 0c call 20025e4 20141b8: 35 00 80 3a sethi %hi(0x200e800), %i2 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 20141bc: b2 10 00 1d mov %i5, %i1 20141c0: 7f ff e9 5d call 200e734 <_Thread_queue_Enqueue_with_handler> 20141c4: 95 ee a3 8c restore %i2, 0x38c, %o2 ); return; } if ( !wait ) { _ISR_Enable( level ); 20141c8: 7f ff b9 07 call 20025e4 20141cc: 01 00 00 00 nop executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 20141d0: 82 10 20 04 mov 4, %g1 ! 4 20141d4: c2 24 60 34 st %g1, [ %l1 + 0x34 ] 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 ); } 20141d8: 81 c7 e0 08 ret 20141dc: 81 e8 00 00 restore 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 ); 20141e0: 7f ff e1 a1 call 200c864 <_Chain_Append> 20141e4: 91 ee 20 68 restore %i0, 0x68, %o0 20141e8: 01 00 00 00 nop 020141ec <_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 ) { 20141ec: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 20141f0: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 20141f4: a2 10 00 18 mov %i0, %l1 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 20141f8: 80 a0 40 1a cmp %g1, %i2 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 20141fc: e4 0f a0 5f ldub [ %fp + 0x5f ], %l2 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 2014200: 0a 80 00 22 bcs 2014288 <_CORE_message_queue_Submit+0x9c> 2014204: b0 10 20 01 mov 1, %i0 /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 2014208: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 201420c: 80 a0 a0 00 cmp %g2, 0 2014210: 02 80 00 22 be 2014298 <_CORE_message_queue_Submit+0xac> 2014214: 01 00 00 00 nop /* * 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 < 2014218: c2 04 60 44 ld [ %l1 + 0x44 ], %g1 201421c: 80 a0 40 02 cmp %g1, %g2 2014220: 18 80 00 2b bgu 20142cc <_CORE_message_queue_Submit+0xe0> 2014224: 80 a4 a0 00 cmp %l2, 0 * 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 ) { 2014228: 02 80 00 18 be 2014288 <_CORE_message_queue_Submit+0x9c> 201422c: b0 10 20 02 mov 2, %i0 /* * 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() ) { 2014230: 03 00 80 9f sethi %hi(0x2027c00), %g1 <== NOT EXECUTED 2014234: c4 00 62 c0 ld [ %g1 + 0x2c0 ], %g2 ! 2027ec0 <_ISR_Nest_level> <== NOT EXECUTED 2014238: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 201423c: 32 80 00 13 bne,a 2014288 <_CORE_message_queue_Submit+0x9c> <== NOT EXECUTED 2014240: b0 10 20 03 mov 3, %i0 <== 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; 2014244: 03 00 80 9f sethi %hi(0x2027c00), %g1 <== NOT EXECUTED _ISR_Disable( level ); 2014248: 7f ff b8 e3 call 20025d4 <== NOT EXECUTED 201424c: e0 00 62 e4 ld [ %g1 + 0x2e4 ], %l0 ! 2027ee4 <_Thread_Executing> <== NOT EXECUTED 2014250: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2014254: c2 24 60 30 st %g1, [ %l1 + 0x30 ] <== 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; 2014258: fa 24 20 24 st %i5, [ %l0 + 0x24 ] <== 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; 201425c: f6 24 20 20 st %i3, [ %l0 + 0x20 ] <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; 2014260: f2 24 20 2c st %i1, [ %l0 + 0x2c ] <== NOT EXECUTED executing->Wait.option = (uint32_t) size; 2014264: f4 24 20 30 st %i2, [ %l0 + 0x30 ] <== 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; 2014268: e2 24 20 44 st %l1, [ %l0 + 0x44 ] <== 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 ); 201426c: 7f ff b8 de call 20025e4 <== NOT EXECUTED 2014270: b0 10 20 07 mov 7, %i0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 2014274: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED 2014278: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 201427c: 15 00 80 3a sethi %hi(0x200e800), %o2 <== NOT EXECUTED 2014280: 7f ff e9 2d call 200e734 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 2014284: 94 12 a3 8c or %o2, 0x38c, %o2 ! 200eb8c <_Thread_queue_Timeout> <== NOT EXECUTED 2014288: 81 c7 e0 08 ret 201428c: 81 e8 00 00 restore } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; } 2014290: 81 c7 e0 08 ret <== NOT EXECUTED 2014294: 91 e8 20 03 restore %g0, 3, %o0 <== 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 ); 2014298: 7f ff e8 c3 call 200e5a4 <_Thread_queue_Dequeue> 201429c: 90 10 00 11 mov %l1, %o0 if ( the_thread ) { 20142a0: a0 92 20 00 orcc %o0, 0, %l0 20142a4: 02 80 00 1b be 2014310 <_CORE_message_queue_Submit+0x124> 20142a8: 92 10 00 19 mov %i1, %o1 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 20142ac: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 20142b0: 40 00 14 3d call 20193a4 20142b4: 94 10 00 1a mov %i2, %o2 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 20142b8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 the_thread->Wait.count = submit_type; 20142bc: fa 24 20 24 st %i5, [ %l0 + 0x24 ] _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 20142c0: f4 20 40 00 st %i2, [ %g1 ] the_thread->Wait.count = submit_type; 20142c4: 81 c7 e0 08 ret 20142c8: 91 e8 20 00 restore %g0, 0, %o0 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 *) 20142cc: 7f ff e1 72 call 200c894 <_Chain_Get> 20142d0: 90 04 60 68 add %l1, 0x68, %o0 /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 20142d4: a0 92 20 00 orcc %o0, 0, %l0 20142d8: 02 bf ff ee be 2014290 <_CORE_message_queue_Submit+0xa4> 20142dc: 92 10 00 19 mov %i1, %o1 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 20142e0: 94 10 00 1a mov %i2, %o2 20142e4: 40 00 14 30 call 20193a4 20142e8: 90 04 20 10 add %l0, 0x10, %o0 size ); the_message->Contents.size = size; the_message->priority = submit_type; _CORE_message_queue_Insert_message( 20142ec: 90 10 00 11 mov %l1, %o0 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 20142f0: f4 24 20 0c st %i2, [ %l0 + 0xc ] the_message->priority = submit_type; 20142f4: fa 24 20 08 st %i5, [ %l0 + 8 ] _CORE_message_queue_Insert_message( 20142f8: 92 10 00 10 mov %l0, %o1 20142fc: 94 10 00 1d mov %i5, %o2 2014300: 40 00 0c 20 call 2017380 <_CORE_message_queue_Insert_message> 2014304: b0 10 20 00 clr %i0 2014308: 81 c7 e0 08 ret 201430c: 81 e8 00 00 restore * 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 ) { 2014310: 10 bf ff c2 b 2014218 <_CORE_message_queue_Submit+0x2c> 2014314: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 0200b7d8 <_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 ) { 200b7d8: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 200b7dc: 03 00 80 5c sethi %hi(0x2017000), %g1 200b7e0: c6 00 63 64 ld [ %g1 + 0x364 ], %g3 ! 2017364 <_Thread_Executing> CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 200b7e4: d0 06 40 00 ld [ %i1 ], %o0 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 200b7e8: c0 20 e0 34 clr [ %g3 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 200b7ec: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200b7f0: 80 a0 60 00 cmp %g1, 0 200b7f4: 22 80 00 12 be,a 200b83c <_CORE_mutex_Seize_interrupt_trylock+0x64> 200b7f8: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 the_mutex->lock = CORE_MUTEX_LOCKED; 200b7fc: c0 26 20 50 clr [ %i0 + 0x50 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200b800: c2 00 e0 08 ld [ %g3 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 200b804: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 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; 200b808: c2 26 20 60 st %g1, [ %i0 + 0x60 ] 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; 200b80c: c6 26 20 5c st %g3, [ %i0 + 0x5c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 200b810: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 200b814: 80 a0 a0 02 cmp %g2, 2 200b818: 02 80 00 0e be 200b850 <_CORE_mutex_Seize_interrupt_trylock+0x78> 200b81c: c2 26 20 54 st %g1, [ %i0 + 0x54 ] 200b820: 80 a0 a0 03 cmp %g2, 3 <== NOT EXECUTED 200b824: 22 80 00 0d be,a 200b858 <_CORE_mutex_Seize_interrupt_trylock+0x80> <== NOT EXECUTED 200b828: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( level ); 200b82c: 7f ff d9 62 call 2001db4 200b830: b0 10 20 00 clr %i0 200b834: 81 c7 e0 08 ret 200b838: 81 e8 00 00 restore /* * 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 ) ) { 200b83c: 80 a0 c0 01 cmp %g3, %g1 200b840: 22 80 00 2a be,a 200b8e8 <_CORE_mutex_Seize_interrupt_trylock+0x110> 200b844: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 200b848: 81 c7 e0 08 ret 200b84c: 91 e8 20 01 restore %g0, 1, %o0 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200b850: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200b854: 80 a0 a0 03 cmp %g2, 3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200b858: 82 00 60 01 inc %g1 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200b85c: 12 bf ff f4 bne 200b82c <_CORE_mutex_Seize_interrupt_trylock+0x54> 200b860: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 200b864: c4 06 20 4c ld [ %i0 + 0x4c ], %g2 <== NOT EXECUTED current = executing->current_priority; 200b868: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 200b86c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 200b870: 02 80 00 2f be 200b92c <_CORE_mutex_Seize_interrupt_trylock+0x154> <== NOT EXECUTED 200b874: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); return 0; } if ( current > ceiling ) { 200b878: 1a 80 00 11 bcc 200b8bc <_CORE_mutex_Seize_interrupt_trylock+0xe4> <== NOT EXECUTED 200b87c: 82 10 20 06 mov 6, %g1 ! 6 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200b880: 05 00 80 5c sethi %hi(0x2017000), %g2 <== NOT EXECUTED 200b884: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 20172a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 200b888: 82 00 60 01 inc %g1 <== NOT EXECUTED 200b88c: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 200b890: 7f ff d9 49 call 2001db4 <== NOT EXECUTED 200b894: 01 00 00 00 nop <== NOT EXECUTED _Thread_Change_priority( 200b898: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 <== NOT EXECUTED 200b89c: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 <== NOT EXECUTED 200b8a0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200b8a4: 7f ff ee fe call 200749c <_Thread_Change_priority> <== NOT EXECUTED 200b8a8: b0 10 20 00 clr %i0 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 200b8ac: 7f ff f0 92 call 2007af4 <_Thread_Enable_dispatch> <== NOT EXECUTED 200b8b0: 01 00 00 00 nop <== NOT EXECUTED 200b8b4: 81 c7 e0 08 ret <== NOT EXECUTED 200b8b8: 81 e8 00 00 restore <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 200b8bc: c2 20 e0 34 st %g1, [ %g3 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 200b8c0: c0 26 20 54 clr [ %i0 + 0x54 ] <== 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; 200b8c4: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED 200b8c8: c4 26 20 50 st %g2, [ %i0 + 0x50 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 200b8cc: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 200b8d0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200b8d4: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 200b8d8: 7f ff d9 37 call 2001db4 <== NOT EXECUTED 200b8dc: b0 10 20 00 clr %i0 <== NOT EXECUTED 200b8e0: 81 c7 e0 08 ret <== NOT EXECUTED 200b8e4: 81 e8 00 00 restore <== 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 ) { 200b8e8: 80 a0 60 00 cmp %g1, 0 200b8ec: 22 80 00 0a be,a 200b914 <_CORE_mutex_Seize_interrupt_trylock+0x13c> 200b8f0: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 200b8f4: 80 a0 60 01 cmp %g1, 1 200b8f8: 12 bf ff d4 bne 200b848 <_CORE_mutex_Seize_interrupt_trylock+0x70> 200b8fc: 82 10 20 02 mov 2, %g1 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; 200b900: c2 20 e0 34 st %g1, [ %g3 + 0x34 ] _ISR_Enable( level ); 200b904: 7f ff d9 2c call 2001db4 200b908: b0 10 20 00 clr %i0 200b90c: 81 c7 e0 08 ret 200b910: 81 e8 00 00 restore * 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++; 200b914: 82 00 60 01 inc %g1 200b918: c2 26 20 54 st %g1, [ %i0 + 0x54 ] _ISR_Enable( level ); 200b91c: 7f ff d9 26 call 2001db4 200b920: b0 10 20 00 clr %i0 200b924: 81 c7 e0 08 ret 200b928: 81 e8 00 00 restore Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( level ); 200b92c: 7f ff d9 22 call 2001db4 <== NOT EXECUTED 200b930: b0 10 20 00 clr %i0 <== NOT EXECUTED 200b934: 81 c7 e0 08 ret <== NOT EXECUTED 200b938: 81 e8 00 00 restore <== NOT EXECUTED 0200650c <_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 ) { 200650c: 9d e3 bf 98 save %sp, -104, %sp * 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 ) { 2006510: c2 0e 20 44 ldub [ %i0 + 0x44 ], %g1 CORE_mutex_Status _CORE_mutex_Surrender( CORE_mutex_Control *the_mutex, Objects_Id id, CORE_mutex_API_mp_support_callout api_mutex_mp_support ) { 2006514: a0 10 00 18 mov %i0, %l0 * 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 ) { 2006518: 80 a0 60 00 cmp %g1, 0 200651c: 02 80 00 07 be 2006538 <_CORE_mutex_Surrender+0x2c> 2006520: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 if ( !_Thread_Is_executing( holder ) ) 2006524: 03 00 80 5c sethi %hi(0x2017000), %g1 2006528: c4 00 63 64 ld [ %g1 + 0x364 ], %g2 ! 2017364 <_Thread_Executing> 200652c: 80 a2 00 02 cmp %o0, %g2 2006530: 12 80 00 2e bne 20065e8 <_CORE_mutex_Surrender+0xdc> 2006534: b0 10 20 03 mov 3, %i0 return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 2006538: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 200653c: 80 a0 60 00 cmp %g1, 0 2006540: 02 80 00 22 be 20065c8 <_CORE_mutex_Surrender+0xbc> 2006544: 82 00 7f ff add %g1, -1, %g1 return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { 2006548: 80 a0 60 00 cmp %g1, 0 200654c: 12 80 00 21 bne 20065d0 <_CORE_mutex_Surrender+0xc4> 2006550: c2 24 20 54 st %g1, [ %l0 + 0x54 ] */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 2006554: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 2006558: 80 a0 a0 02 cmp %g2, 2 200655c: 02 80 00 31 be 2006620 <_CORE_mutex_Surrender+0x114> 2006560: 80 a0 a0 03 cmp %g2, 3 2006564: 22 80 00 30 be,a 2006624 <_CORE_mutex_Surrender+0x118> 2006568: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== NOT EXECUTED } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 200656c: c0 24 20 5c clr [ %l0 + 0x5c ] /* * 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 ) || 2006570: 80 a0 a0 02 cmp %g2, 2 2006574: 02 80 00 1f be 20065f0 <_CORE_mutex_Surrender+0xe4> 2006578: c0 24 20 60 clr [ %l0 + 0x60 ] 200657c: 80 a0 a0 03 cmp %g2, 3 2006580: 22 80 00 1d be,a 20065f4 <_CORE_mutex_Surrender+0xe8> 2006584: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== 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 ) ) ) { 2006588: 40 00 06 55 call 2007edc <_Thread_queue_Dequeue> 200658c: 90 10 00 10 mov %l0, %o0 2006590: 86 92 20 00 orcc %o0, 0, %g3 2006594: 02 80 00 37 be 2006670 <_CORE_mutex_Surrender+0x164> 2006598: 82 10 20 01 mov 1, %g1 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 200659c: c2 00 e0 08 ld [ %g3 + 8 ], %g1 the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 20065a0: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 20065a4: c2 24 20 60 st %g1, [ %l0 + 0x60 ] } else #endif { the_mutex->holder = the_thread; 20065a8: c6 24 20 5c st %g3, [ %l0 + 0x5c ] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 20065ac: 82 10 20 01 mov 1, %g1 switch ( the_mutex->Attributes.discipline ) { 20065b0: 80 a0 a0 02 cmp %g2, 2 20065b4: 02 80 00 2a be 200665c <_CORE_mutex_Surrender+0x150> 20065b8: c2 24 20 54 st %g1, [ %l0 + 0x54 ] 20065bc: 80 a0 a0 03 cmp %g2, 3 20065c0: 22 80 00 1c be,a 2006630 <_CORE_mutex_Surrender+0x124> 20065c4: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 20065c8: 81 c7 e0 08 ret 20065cc: 91 e8 20 00 restore %g0, 0, %o0 return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 20065d0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 20065d4: 80 a0 60 00 cmp %g1, 0 20065d8: 02 bf ff fc be 20065c8 <_CORE_mutex_Surrender+0xbc> 20065dc: 80 a0 60 01 cmp %g1, 1 20065e0: 12 bf ff dd bne 2006554 <_CORE_mutex_Surrender+0x48> <== NOT EXECUTED 20065e4: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 20065e8: 81 c7 e0 08 ret 20065ec: 81 e8 00 00 restore _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 && 20065f0: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 20065f4: 80 a0 60 00 cmp %g1, 0 20065f8: 12 bf ff e4 bne 2006588 <_CORE_mutex_Surrender+0x7c> 20065fc: 01 00 00 00 nop 2006600: d2 02 20 18 ld [ %o0 + 0x18 ], %o1 2006604: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 2006608: 80 a2 40 01 cmp %o1, %g1 200660c: 02 bf ff df be 2006588 <_CORE_mutex_Surrender+0x7c> 2006610: 01 00 00 00 nop holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 2006614: 40 00 03 a2 call 200749c <_Thread_Change_priority> 2006618: 94 10 20 01 mov 1, %o2 ! 1 200661c: 30 bf ff db b,a 2006588 <_CORE_mutex_Surrender+0x7c> the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; 2006620: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 2006624: 82 00 7f ff add %g1, -1, %g1 2006628: 10 bf ff d1 b 200656c <_CORE_mutex_Surrender+0x60> 200662c: c2 22 20 1c st %g1, [ %o0 + 0x1c ] #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++; if (the_mutex->Attributes.priority_ceiling < 2006630: c4 00 e0 14 ld [ %g3 + 0x14 ], %g2 <== 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++; 2006634: 82 00 60 01 inc %g1 <== NOT EXECUTED 2006638: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 200663c: d2 04 20 4c ld [ %l0 + 0x4c ], %o1 <== NOT EXECUTED 2006640: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED 2006644: 1a bf ff e1 bcc 20065c8 <_CORE_mutex_Surrender+0xbc> <== NOT EXECUTED 2006648: 94 10 20 00 clr %o2 <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 200664c: 40 00 03 94 call 200749c <_Thread_Change_priority> <== NOT EXECUTED 2006650: b0 10 20 00 clr %i0 <== NOT EXECUTED 2006654: 81 c7 e0 08 ret <== NOT EXECUTED 2006658: 81 e8 00 00 restore <== 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++; 200665c: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 2006660: 82 00 60 01 inc %g1 2006664: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] 2006668: 81 c7 e0 08 ret 200666c: 91 e8 20 00 restore %g0, 0, %o0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 2006670: c2 24 20 50 st %g1, [ %l0 + 0x50 ] 2006674: 81 c7 e0 08 ret 2006678: 91 e8 20 00 restore %g0, 0, %o0 02023e14 <_Chain_Insert>: void _Chain_Insert( Chain_Node *after_node, Chain_Node *node ) { 2023e14: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 2023e18: 7f ff 7b f1 call 2002ddc <== NOT EXECUTED 2023e1c: 01 00 00 00 nop <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2023e20: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2023e24: f0 26 60 04 st %i0, [ %i1 + 4 ] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 2023e28: f2 26 00 00 st %i1, [ %i0 ] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 2023e2c: f2 20 60 04 st %i1, [ %g1 + 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; 2023e30: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 2023e34: 7f ff 7b ee call 2002dec <== NOT EXECUTED 2023e38: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 2023e3c: 01 00 00 00 nop 0200b698 <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 200b698: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 200b69c: c4 00 63 68 ld [ %g1 + 0x368 ], %g2 ! 2017368 <_Debug_Level> <== NOT EXECUTED 200b6a0: 90 0a 00 02 and %o0, %g2, %o0 <== NOT EXECUTED 200b6a4: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 200b6a8: 81 c3 e0 08 retl <== NOT EXECUTED 200b6ac: 90 40 20 00 addx %g0, 0, %o0 <== NOT EXECUTED 020052e4 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 20052e4: 9d e3 bf 98 save %sp, -104, %sp 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 ]; 20052e8: f2 06 21 68 ld [ %i0 + 0x168 ], %i1 option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); 20052ec: 7f ff f2 ae call 2001da4 20052f0: e2 06 20 30 ld [ %i0 + 0x30 ], %l1 20052f4: a0 10 00 08 mov %o0, %l0 pending_events = api->pending_events; 20052f8: c8 06 40 00 ld [ %i1 ], %g4 event_condition = (rtems_event_set) the_thread->Wait.count; 20052fc: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 2005300: 9a 88 c0 04 andcc %g3, %g4, %o5 2005304: 02 80 00 28 be 20053a4 <_Event_Surrender+0xc0> 2005308: 03 00 80 5c sethi %hi(0x2017000), %g1 /* * 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() && 200530c: c4 00 63 40 ld [ %g1 + 0x340 ], %g2 ! 2017340 <_ISR_Nest_level> 2005310: 80 a0 a0 00 cmp %g2, 0 2005314: 22 80 00 08 be,a 2005334 <_Event_Surrender+0x50> 2005318: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 200531c: 03 00 80 5c sethi %hi(0x2017000), %g1 2005320: c4 00 63 64 ld [ %g1 + 0x364 ], %g2 ! 2017364 <_Thread_Executing> 2005324: 80 a6 00 02 cmp %i0, %g2 2005328: 02 80 00 2a be 20053d0 <_Event_Surrender+0xec> 200532c: 19 00 80 5d sethi %hi(0x2017400), %o4 } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 2005330: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 2005334: 80 88 61 00 btst 0x100, %g1 2005338: 02 80 00 19 be 200539c <_Event_Surrender+0xb8> 200533c: 80 a0 c0 0d cmp %g3, %o5 if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 2005340: 02 80 00 04 be 2005350 <_Event_Surrender+0x6c> 2005344: 80 8c 60 02 btst 2, %l1 2005348: 02 80 00 15 be 200539c <_Event_Surrender+0xb8> 200534c: 01 00 00 00 nop api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 2005350: 82 29 00 0d andn %g4, %o5, %g1 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005354: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 /* * 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 ); 2005358: c2 26 40 00 st %g1, [ %i1 ] the_thread->Wait.count = 0; 200535c: c0 26 20 24 clr [ %i0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005360: da 20 80 00 st %o5, [ %g2 ] _ISR_Flash( level ); 2005364: 7f ff f2 94 call 2001db4 2005368: 90 10 00 10 mov %l0, %o0 200536c: 7f ff f2 8e call 2001da4 2005370: 01 00 00 00 nop if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 2005374: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 2005378: 80 a0 60 02 cmp %g1, 2 200537c: 02 80 00 0c be 20053ac <_Event_Surrender+0xc8> 2005380: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 2005384: 90 10 00 10 mov %l0, %o0 2005388: 7f ff f2 8b call 2001db4 200538c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2005390: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 2005394: 40 00 08 bf call 2007690 <_Thread_Clear_state> 2005398: 81 e8 00 00 restore _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 200539c: 7f ff f2 86 call 2001db4 <== NOT EXECUTED 20053a0: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 20053a4: 7f ff f2 84 call 2001db4 20053a8: 91 e8 00 08 restore %g0, %o0, %o0 RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 20053ac: c2 26 20 50 st %g1, [ %i0 + 0x50 ] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 20053b0: 7f ff f2 81 call 2001db4 20053b4: 90 10 00 10 mov %l0, %o0 (void) _Watchdog_Remove( &the_thread->Timer ); 20053b8: 40 00 0e f0 call 2008f78 <_Watchdog_Remove> 20053bc: 90 06 20 48 add %i0, 0x48, %o0 20053c0: 33 04 00 ff sethi %hi(0x1003fc00), %i1 20053c4: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 20053c8: 40 00 08 b2 call 2007690 <_Thread_Clear_state> 20053cc: 81 e8 00 00 restore /* * 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() && 20053d0: c2 03 21 74 ld [ %o4 + 0x174 ], %g1 20053d4: 80 a0 60 01 cmp %g1, 1 20053d8: 02 80 00 07 be 20053f4 <_Event_Surrender+0x110> 20053dc: 80 a0 c0 0d cmp %g3, %o5 20053e0: c2 03 21 74 ld [ %o4 + 0x174 ], %g1 20053e4: 80 a0 60 02 cmp %g1, 2 20053e8: 32 bf ff d3 bne,a 2005334 <_Event_Surrender+0x50> 20053ec: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 _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) ) { 20053f0: 80 a0 c0 0d cmp %g3, %o5 <== NOT EXECUTED 20053f4: 02 80 00 04 be 2005404 <_Event_Surrender+0x120> 20053f8: 80 8c 60 02 btst 2, %l1 20053fc: 02 80 00 09 be 2005420 <_Event_Surrender+0x13c> <== NOT EXECUTED 2005400: 01 00 00 00 nop <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 2005404: 82 29 00 0d andn %g4, %o5, %g1 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005408: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 if ( _ISR_Is_in_progress() && _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 ); 200540c: c2 26 40 00 st %g1, [ %i1 ] the_thread->Wait.count = 0; 2005410: c0 26 20 24 clr [ %i0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 2005414: 82 10 20 03 mov 3, %g1 ((_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; 2005418: da 20 80 00 st %o5, [ %g2 ] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 200541c: c2 23 21 74 st %g1, [ %o4 + 0x174 ] } _ISR_Enable( level ); 2005420: 7f ff f2 65 call 2001db4 2005424: 91 e8 00 10 restore %g0, %l0, %o0 2005428: 01 00 00 00 nop 0200542c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 200542c: 9d e3 bf 90 save %sp, -112, %sp Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 2005430: 90 10 00 18 mov %i0, %o0 2005434: 40 00 09 be call 2007b2c <_Thread_Get> 2005438: 92 07 bf f4 add %fp, -12, %o1 switch ( location ) { 200543c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2005440: 80 a0 60 00 cmp %g1, 0 2005444: 12 80 00 19 bne 20054a8 <_Event_Timeout+0x7c> 2005448: b0 10 00 08 mov %o0, %i0 * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 200544c: 7f ff f2 56 call 2001da4 2005450: 01 00 00 00 nop 2005454: 86 10 00 08 mov %o0, %g3 if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 2005458: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200545c: 80 a0 60 00 cmp %g1, 0 2005460: 02 80 00 14 be 20054b0 <_Event_Timeout+0x84> 2005464: 03 00 80 5c sethi %hi(0x2017000), %g1 _ISR_Enable( level ); return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 2005468: c4 00 63 64 ld [ %g1 + 0x364 ], %g2 ! 2017364 <_Thread_Executing> 200546c: 80 a6 00 02 cmp %i0, %g2 2005470: 02 80 00 18 be 20054d0 <_Event_Timeout+0xa4> 2005474: c0 26 20 24 clr [ %i0 + 0x24 ] (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 2005478: 82 10 20 06 mov 6, %g1 200547c: c2 26 20 34 st %g1, [ %i0 + 0x34 ] _ISR_Enable( level ); 2005480: 7f ff f2 4d call 2001db4 2005484: 90 10 00 03 mov %g3, %o0 2005488: 90 10 00 18 mov %i0, %o0 200548c: 13 04 00 ff sethi %hi(0x1003fc00), %o1 2005490: 40 00 08 80 call 2007690 <_Thread_Clear_state> 2005494: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2005498: 05 00 80 5c sethi %hi(0x2017000), %g2 200549c: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 20172a0 <_Thread_Dispatch_disable_level> 20054a0: 82 00 7f ff add %g1, -1, %g1 20054a4: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 20054a8: 81 c7 e0 08 ret 20054ac: 81 e8 00 00 restore 20054b0: 05 00 80 5c sethi %hi(0x2017000), %g2 <== NOT EXECUTED 20054b4: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 20172a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 20054b8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20054bc: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _ISR_Disable( level ); if ( !the_thread->Wait.count ) { /* verify thread is waiting */ _Thread_Unnest_dispatch(); _ISR_Enable( level ); 20054c0: 7f ff f2 3d call 2001db4 <== NOT EXECUTED 20054c4: 01 00 00 00 nop <== NOT EXECUTED 20054c8: 81 c7 e0 08 ret <== NOT EXECUTED 20054cc: 81 e8 00 00 restore <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { Thread_blocking_operation_States sync = _Event_Sync_state; 20054d0: 05 00 80 5d sethi %hi(0x2017400), %g2 20054d4: c2 00 a1 74 ld [ %g2 + 0x174 ], %g1 ! 2017574 <_Event_Sync_state> if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 20054d8: 80 a0 60 01 cmp %g1, 1 20054dc: 38 bf ff e8 bgu,a 200547c <_Event_Timeout+0x50> 20054e0: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 20054e4: 82 10 20 02 mov 2, %g1 20054e8: c2 20 a1 74 st %g1, [ %g2 + 0x174 ] } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 20054ec: 10 bf ff e4 b 200547c <_Event_Timeout+0x50> 20054f0: 82 10 20 06 mov 6, %g1 02008aa0 <_Heap_Allocate_aligned>: void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 2008aa0: 9d e3 bf 98 save %sp, -104, %sp uint32_t search_count; Heap_Block *the_block; void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; 2008aa4: ec 06 20 10 ld [ %i0 + 0x10 ], %l6 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); 2008aa8: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 2008aac: 90 10 00 19 mov %i1, %o0 2008ab0: 92 10 00 16 mov %l6, %o1 2008ab4: 40 00 01 82 call 20090bc <_Heap_Calc_block_size> 2008ab8: aa 10 00 18 mov %i0, %l5 if(the_size == 0) 2008abc: ae 92 20 00 orcc %o0, 0, %l7 2008ac0: 02 80 00 69 be 2008c64 <_Heap_Allocate_aligned+0x1c4> 2008ac4: b2 06 7f fc add %i1, -4, %i1 return NULL; if(alignment == 0) 2008ac8: 80 a6 a0 00 cmp %i2, 0 2008acc: 22 80 00 02 be,a 2008ad4 <_Heap_Allocate_aligned+0x34> 2008ad0: b4 10 20 08 mov 8, %i2 */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 2008ad4: e2 05 60 08 ld [ %l5 + 8 ], %l1 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; 2008ad8: 80 a5 40 11 cmp %l5, %l1 2008adc: 02 80 00 62 be 2008c64 <_Heap_Allocate_aligned+0x1c4> 2008ae0: a8 10 20 00 clr %l4 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2008ae4: c2 04 60 04 ld [ %l1 + 4 ], %g1 _H_uptr_t *value, uint32_t alignment ) { _H_uptr_t v = *value; *value = v - (v % alignment); 2008ae8: 92 10 00 1a mov %i2, %o1 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2008aec: a4 08 7f fe and %g1, -2, %l2 /* 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; 2008af0: a6 04 40 12 add %l1, %l2, %l3 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. */ 2008af4: 80 a5 c0 12 cmp %l7, %l2 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; aligned_user_addr = block_end - end_to_user_offs; 2008af8: a0 24 c0 19 sub %l3, %i1, %l0 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. */ 2008afc: 18 80 00 22 bgu 2008b84 <_Heap_Allocate_aligned+0xe4> 2008b00: 90 10 00 10 mov %l0, %o0 _H_uptr_t *value, uint32_t alignment ) { _H_uptr_t v = *value; *value = v - (v % alignment); 2008b04: 40 00 3d 9c call 2018174 <.urem> 2008b08: 01 00 00 00 nop _H_uptr_t user_addr; _H_uptr_t aligned_user_addr; _H_uptr_t const user_area = _H_p2u(_Heap_User_area(the_block)); 2008b0c: 92 10 00 16 mov %l6, %o1 2008b10: b0 24 00 08 sub %l0, %o0, %i0 2008b14: 40 00 3d 98 call 2018174 <.urem> 2008b18: 90 10 00 18 mov %i0, %o0 2008b1c: a0 04 60 08 add %l1, 8, %l0 2008b20: 84 26 00 08 sub %i0, %o0, %g2 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) { 2008b24: 80 a4 00 02 cmp %l0, %g2 2008b28: 38 80 00 18 bgu,a 2008b88 <_Heap_Allocate_aligned+0xe8> 2008b2c: e2 04 60 08 ld [ %l1 + 8 ], %l1 /* 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) { 2008b30: fa 05 60 14 ld [ %l5 + 0x14 ], %i5 2008b34: 82 20 80 10 sub %g2, %l0, %g1 2008b38: 80 a0 40 1d cmp %g1, %i5 2008b3c: 1a 80 00 1e bcc 2008bb4 <_Heap_Allocate_aligned+0x114> 2008b40: 80 a6 20 00 cmp %i0, 0 '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) { 2008b44: 82 26 00 10 sub %i0, %l0, %g1 uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 2008b48: 90 10 00 10 mov %l0, %o0 2008b4c: 92 10 00 1a mov %i2, %o1 2008b50: 80 a5 80 01 cmp %l6, %g1 2008b54: 18 80 00 17 bgu 2008bb0 <_Heap_Allocate_aligned+0x110> 2008b58: 84 10 00 10 mov %l0, %g2 2008b5c: 40 00 3d 86 call 2018174 <.urem> <== NOT EXECUTED 2008b60: 01 00 00 00 nop <== 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) { 2008b64: 84 10 00 10 mov %l0, %g2 <== NOT EXECUTED *value = r ? v - r + a : v; 2008b68: 88 92 20 00 orcc %o0, 0, %g4 <== NOT EXECUTED 2008b6c: 86 10 20 00 clr %g3 <== NOT EXECUTED 2008b70: 12 80 00 35 bne 2008c44 <_Heap_Allocate_aligned+0x1a4> <== NOT EXECUTED 2008b74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2008b78: 80 a5 80 03 cmp %l6, %g3 <== NOT EXECUTED 2008b7c: 38 80 00 0d bgu,a 2008bb0 <_Heap_Allocate_aligned+0x110> <== NOT EXECUTED 2008b80: b0 10 00 08 mov %o0, %i0 <== 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) 2008b84: e2 04 60 08 ld [ %l1 + 8 ], %l1 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; 2008b88: 80 a5 40 11 cmp %l5, %l1 2008b8c: 12 bf ff d6 bne 2008ae4 <_Heap_Allocate_aligned+0x44> 2008b90: a8 05 20 01 inc %l4 2008b94: 90 10 20 00 clr %o0 } } } } if(stats->max_search < search_count) 2008b98: c2 05 60 44 ld [ %l5 + 0x44 ], %g1 2008b9c: 80 a0 40 14 cmp %g1, %l4 2008ba0: 2a 80 00 02 bcs,a 2008ba8 <_Heap_Allocate_aligned+0x108> 2008ba4: e8 25 60 44 st %l4, [ %l5 + 0x44 ] stats->max_search = search_count; return user_ptr; } 2008ba8: 81 c7 e0 08 ret 2008bac: 91 e8 00 08 restore %g0, %o0, %o0 aligned_user_addr = 0; } } } if(aligned_user_addr) { 2008bb0: 80 a6 20 00 cmp %i0, 0 2008bb4: 22 bf ff f5 be,a 2008b88 <_Heap_Allocate_aligned+0xe8> 2008bb8: e2 04 60 08 ld [ %l1 + 8 ], %l1 <== NOT EXECUTED /* 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; 2008bbc: 82 04 e0 08 add %l3, 8, %g1 2008bc0: 88 20 40 02 sub %g1, %g2, %g4 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; 2008bc4: 84 24 80 04 sub %l2, %g4, %g2 _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) { 2008bc8: 80 a0 80 1d cmp %g2, %i5 2008bcc: 2a 80 00 29 bcs,a 2008c70 <_Heap_Allocate_aligned+0x1d0> 2008bd0: c6 04 60 08 ld [ %l1 + 8 ], %g3 /* Split the block so that lower part is still free, and upper part becomes used. */ the_block->size = the_rest | HEAP_PREV_USED; 2008bd4: 82 10 a0 01 or %g2, 1, %g1 2008bd8: c2 24 60 04 st %g1, [ %l1 + 4 ] RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( void *base, uint32_t offset ) { return (void *)((char *)base + offset); 2008bdc: a2 04 40 02 add %l1, %g2, %l1 the_block = _Heap_Block_at(the_block, the_rest); the_block->prev_size = the_rest; 2008be0: c4 24 40 00 st %g2, [ %l1 ] the_block->size = alloc_size; 2008be4: c8 24 60 04 st %g4, [ %l1 + 4 ] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2008be8: 84 04 40 04 add %l1, %g4, %g2 _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; 2008bec: c2 00 a0 04 ld [ %g2 + 4 ], %g1 2008bf0: 82 10 60 01 or %g1, 1, %g1 2008bf4: c2 20 a0 04 st %g1, [ %g2 + 4 ] /* Update statistics */ stats->free_size -= alloc_size; 2008bf8: c6 05 60 30 ld [ %l5 + 0x30 ], %g3 if(stats->min_free_size > stats->free_size) 2008bfc: c2 05 60 34 ld [ %l5 + 0x34 ], %g1 stats->free_blocks -= 1; } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; 2008c00: 86 20 c0 04 sub %g3, %g4, %g3 if(stats->min_free_size > stats->free_size) 2008c04: 80 a0 c0 01 cmp %g3, %g1 2008c08: 1a 80 00 03 bcc 2008c14 <_Heap_Allocate_aligned+0x174> 2008c0c: c6 25 60 30 st %g3, [ %l5 + 0x30 ] stats->min_free_size = stats->free_size; 2008c10: c6 25 60 34 st %g3, [ %l5 + 0x34 ] stats->used_blocks += 1; 2008c14: c2 05 60 40 ld [ %l5 + 0x40 ], %g1 _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; 2008c18: c6 05 60 4c ld [ %l5 + 0x4c ], %g3 stats->allocs += 1; 2008c1c: c4 05 60 48 ld [ %l5 + 0x48 ], %g2 _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; 2008c20: 82 00 60 01 inc %g1 _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; 2008c24: 86 00 e0 01 inc %g3 stats->allocs += 1; 2008c28: 84 00 a0 01 inc %g2 _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; 2008c2c: 86 00 c0 14 add %g3, %l4, %g3 _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; 2008c30: c2 25 60 40 st %g1, [ %l5 + 0x40 ] _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; stats->allocs += 1; 2008c34: c4 25 60 48 st %g2, [ %l5 + 0x48 ] _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; 2008c38: c6 25 60 4c st %g3, [ %l5 + 0x4c ] stats->allocs += 1; check_result(the_heap, the_block, user_addr, aligned_user_addr, size); user_ptr = (void*)aligned_user_addr; 2008c3c: 10 bf ff d7 b 2008b98 <_Heap_Allocate_aligned+0xf8> 2008c40: 90 10 00 18 mov %i0, %o0 ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; *value = r ? v - r + a : v; 2008c44: 82 04 00 1a add %l0, %i2, %g1 <== NOT EXECUTED 2008c48: 90 20 40 04 sub %g1, %g4, %o0 <== NOT EXECUTED 2008c4c: 86 22 00 10 sub %o0, %l0, %g3 <== 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) { 2008c50: 80 a5 80 03 cmp %l6, %g3 <== NOT EXECUTED 2008c54: 28 bf ff cd bleu,a 2008b88 <_Heap_Allocate_aligned+0xe8> <== NOT EXECUTED 2008c58: e2 04 60 08 ld [ %l1 + 8 ], %l1 <== NOT EXECUTED 2008c5c: 10 bf ff d5 b 2008bb0 <_Heap_Allocate_aligned+0x110> <== NOT EXECUTED 2008c60: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } } } if(stats->max_search < search_count) stats->max_search = search_count; 2008c64: 90 10 20 00 clr %o0 <== NOT EXECUTED return user_ptr; } 2008c68: 81 c7 e0 08 ret <== NOT EXECUTED 2008c6c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED ) { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 2008c70: c4 04 60 0c ld [ %l1 + 0xc ], %g2 /* 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; 2008c74: c2 05 60 38 ld [ %l5 + 0x38 ], %g1 prev->next = next; next->prev = prev; 2008c78: c4 20 e0 0c st %g2, [ %g3 + 0xc ] 2008c7c: 82 00 7f ff add %g1, -1, %g1 { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 2008c80: c6 20 a0 08 st %g3, [ %g2 + 8 ] 2008c84: c2 25 60 38 st %g1, [ %l5 + 0x38 ] 2008c88: 10 bf ff d8 b 2008be8 <_Heap_Allocate_aligned+0x148> 2008c8c: 88 10 00 12 mov %l2, %g4 0202f028 <_Heap_Get_information>: Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 202f028: d6 02 20 24 ld [ %o0 + 0x24 ], %o3 Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->start; 202f02c: c2 02 20 20 ld [ %o0 + 0x20 ], %g1 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; 202f030: c0 22 40 00 clr [ %o1 ] the_info->Free.total = 0; 202f034: c0 22 60 08 clr [ %o1 + 8 ] the_info->Free.largest = 0; 202f038: c0 22 60 04 clr [ %o1 + 4 ] the_info->Used.number = 0; 202f03c: c0 22 60 0c clr [ %o1 + 0xc ] the_info->Used.total = 0; 202f040: c0 22 60 14 clr [ %o1 + 0x14 ] the_info->Used.largest = 0; while ( the_block != end ) { 202f044: 80 a0 40 0b cmp %g1, %o3 202f048: 02 80 00 26 be 202f0e0 <_Heap_Get_information+0xb8> 202f04c: c0 22 60 10 clr [ %o1 + 0x10 ] 202f050: 10 80 00 0e b 202f088 <_Heap_Get_information+0x60> 202f054: d8 00 60 04 ld [ %g1 + 4 ], %o4 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) ) { the_info->Used.number++; the_info->Used.total += the_size; 202f058: c4 02 60 14 ld [ %o1 + 0x14 ], %g2 if ( the_info->Used.largest < the_size ) 202f05c: c6 02 60 10 ld [ %o1 + 0x10 ], %g3 while ( the_block != end ) { 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) ) { the_info->Used.number++; 202f060: 82 00 60 01 inc %g1 the_info->Used.total += the_size; 202f064: 84 00 80 04 add %g2, %g4, %g2 while ( the_block != end ) { 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) ) { the_info->Used.number++; 202f068: c2 22 60 0c st %g1, [ %o1 + 0xc ] the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) 202f06c: 80 a0 c0 04 cmp %g3, %g4 202f070: 1a 80 00 03 bcc 202f07c <_Heap_Get_information+0x54> 202f074: c4 22 60 14 st %g2, [ %o1 + 0x14 ] the_info->Used.largest = the_size; 202f078: c8 22 60 10 st %g4, [ %o1 + 0x10 ] the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 202f07c: 80 a2 c0 0d cmp %o3, %o5 202f080: 02 80 00 18 be 202f0e0 <_Heap_Get_information+0xb8> 202f084: 82 10 00 0d mov %o5, %g1 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 202f088: 88 0b 3f fe and %o4, -2, %g4 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 202f08c: 9a 00 40 04 add %g1, %g4, %o5 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 202f090: d8 03 60 04 ld [ %o5 + 4 ], %o4 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) ) { 202f094: 80 8b 20 01 btst 1, %o4 202f098: 32 bf ff f0 bne,a 202f058 <_Heap_Get_information+0x30> 202f09c: c2 02 60 0c ld [ %o1 + 0xc ], %g1 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++; 202f0a0: c2 02 40 00 ld [ %o1 ], %g1 the_info->Free.total += the_size; 202f0a4: c4 02 60 08 ld [ %o1 + 8 ], %g2 if ( the_info->Free.largest < the_size ) 202f0a8: c6 02 60 04 ld [ %o1 + 4 ], %g3 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++; 202f0ac: 82 00 60 01 inc %g1 the_info->Free.total += the_size; 202f0b0: 84 00 80 04 add %g2, %g4, %g2 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++; 202f0b4: c2 22 40 00 st %g1, [ %o1 ] the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) 202f0b8: 80 a0 c0 04 cmp %g3, %g4 202f0bc: 1a 80 00 03 bcc 202f0c8 <_Heap_Get_information+0xa0> 202f0c0: c4 22 60 08 st %g2, [ %o1 + 8 ] the_info->Free.largest = the_size; 202f0c4: c8 22 60 04 st %g4, [ %o1 + 4 ] if ( the_size != next_block->prev_size ) 202f0c8: c2 03 40 00 ld [ %o5 ], %g1 202f0cc: 80 a0 40 04 cmp %g1, %g4 202f0d0: 02 bf ff ec be 202f080 <_Heap_Get_information+0x58> 202f0d4: 80 a2 c0 0d cmp %o3, %o5 202f0d8: 81 c3 e0 08 retl <== NOT EXECUTED 202f0dc: 90 10 20 01 mov 1, %o0 <== 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; 202f0e0: c2 02 60 14 ld [ %o1 + 0x14 ], %g1 202f0e4: 90 10 20 00 clr %o0 202f0e8: 82 00 60 08 add %g1, 8, %g1 return HEAP_GET_INFORMATION_SUCCESSFUL; } 202f0ec: 81 c3 e0 08 retl 202f0f0: c2 22 60 14 st %g1, [ %o1 + 0x14 ] 02014d04 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 2014d04: 9d e3 bf 98 save %sp, -104, %sp 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; 2014d08: ec 06 20 14 ld [ %i0 + 0x14 ], %l6 uint32_t const page_size = the_heap->page_size; 2014d0c: ea 06 20 10 ld [ %i0 + 0x10 ], %l5 *old_mem_size = 0; 2014d10: c0 26 c0 00 clr [ %i3 ] *avail_mem_size = 0; 2014d14: c0 27 00 00 clr [ %i4 ] /* 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); 2014d18: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 2014d1c: 7f ff fb 8e call 2013b54 <.urem> 2014d20: 90 10 00 19 mov %i1, %o0 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 ); 2014d24: c8 06 20 20 ld [ %i0 + 0x20 ], %g4 2014d28: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 /* 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); 2014d2c: 82 06 7f f8 add %i1, -8, %g1 2014d30: a2 20 40 08 sub %g1, %o0, %l1 _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)) 2014d34: 80 a4 40 04 cmp %l1, %g4 2014d38: 84 60 3f ff subx %g0, -1, %g2 2014d3c: 80 a0 c0 11 cmp %g3, %l1 2014d40: 82 60 3f ff subx %g0, -1, %g1 2014d44: 80 88 80 01 btst %g2, %g1 2014d48: 02 80 00 2f be 2014e04 <_Heap_Resize_block+0x100> 2014d4c: a6 10 00 18 mov %i0, %l3 return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 2014d50: da 04 60 04 ld [ %l1 + 4 ], %o5 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2014d54: b0 0b 7f fe and %o5, -2, %i0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2014d58: a4 04 40 18 add %l1, %i0, %l2 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) || 2014d5c: 80 a4 80 04 cmp %l2, %g4 2014d60: 84 60 3f ff subx %g0, -1, %g2 2014d64: 80 a0 c0 12 cmp %g3, %l2 2014d68: 82 60 3f ff subx %g0, -1, %g1 2014d6c: 80 88 80 01 btst %g2, %g1 2014d70: 02 80 00 25 be 2014e04 <_Heap_Resize_block+0x100> 2014d74: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 2014d78: c2 04 a0 04 ld [ %l2 + 4 ], %g1 2014d7c: 80 88 60 01 btst 1, %g1 2014d80: 02 80 00 21 be 2014e04 <_Heap_Resize_block+0x100> 2014d84: ae 08 7f fe and %g1, -2, %l7 !_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) || 2014d88: 80 a0 c0 12 cmp %g3, %l2 2014d8c: a8 10 20 01 mov 1, %l4 2014d90: 02 80 00 04 be 2014da0 <_Heap_Resize_block+0x9c> 2014d94: 82 04 80 17 add %l2, %l7, %g1 2014d98: c2 00 60 04 ld [ %g1 + 4 ], %g1 2014d9c: a8 08 60 01 and %g1, 1, %l4 _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) 2014da0: 82 24 80 19 sub %l2, %i1, %g1 2014da4: 82 00 60 04 add %g1, 4, %g1 + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; 2014da8: c2 26 c0 00 st %g1, [ %i3 ] if (size > old_user_size) { 2014dac: 80 a0 40 1a cmp %g1, %i2 2014db0: 1a 80 00 17 bcc 2014e0c <_Heap_Resize_block+0x108> 2014db4: b6 0b 60 01 and %o5, 1, %i3 /* 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 */ 2014db8: 80 8d 20 ff btst 0xff, %l4 2014dbc: 12 80 00 10 bne 2014dfc <_Heap_Resize_block+0xf8> 2014dc0: a0 26 80 01 sub %i2, %g1, %l0 uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 2014dc4: 92 10 00 15 mov %l5, %o1 2014dc8: 7f ff fb 63 call 2013b54 <.urem> 2014dcc: 90 10 00 10 mov %l0, %o0 *value = r ? v - r + a : v; 2014dd0: 80 a2 20 00 cmp %o0, 0 2014dd4: 02 80 00 05 be 2014de8 <_Heap_Resize_block+0xe4> 2014dd8: 80 a4 00 16 cmp %l0, %l6 2014ddc: 82 04 00 15 add %l0, %l5, %g1 2014de0: a0 20 40 08 sub %g1, %o0, %l0 2014de4: 80 a4 00 16 cmp %l0, %l6 2014de8: 0a 80 00 2e bcs 2014ea0 <_Heap_Resize_block+0x19c> 2014dec: 90 10 00 10 mov %l0, %o0 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) 2014df0: 80 a5 c0 08 cmp %l7, %o0 2014df4: 1a 80 00 32 bcc 2014ebc <_Heap_Resize_block+0x1b8> 2014df8: 94 10 00 08 mov %o0, %o2 } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } 2014dfc: 81 c7 e0 08 ret 2014e00: 91 e8 20 01 restore %g0, 1, %o0 } } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 2014e04: 81 c7 e0 08 ret 2014e08: 91 e8 20 02 restore %g0, 2, %o0 --stats->used_blocks; } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 2014e0c: a0 20 40 1a sub %g1, %i2, %l0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 2014e10: 92 10 00 15 mov %l5, %o1 2014e14: 7f ff fb 50 call 2013b54 <.urem> 2014e18: 90 10 00 10 mov %l0, %o0 _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 2014e1c: a0 a4 00 08 subcc %l0, %o0, %l0 2014e20: 22 80 00 1c be,a 2014e90 <_Heap_Resize_block+0x18c> 2014e24: c2 04 e0 54 ld [ %l3 + 0x54 ], %g1 /* 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; 2014e28: 84 26 00 10 sub %i0, %l0, %g2 if (new_block_size < min_block_size) { 2014e2c: 80 a5 80 02 cmp %l6, %g2 2014e30: 18 80 00 1e bgu 2014ea8 <_Heap_Resize_block+0x1a4> 2014e34: 82 25 80 02 sub %l6, %g2, %g1 _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) { 2014e38: 80 8d 20 ff btst 0xff, %l4 2014e3c: 12 80 00 2a bne 2014ee4 <_Heap_Resize_block+0x1e0> 2014e40: 80 a5 80 10 cmp %l6, %l0 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; 2014e44: 82 10 80 1b or %g2, %i3, %g1 2014e48: c2 24 60 04 st %g1, [ %l1 + 4 ] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2014e4c: 86 04 40 02 add %l1, %g2, %g3 Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 2014e50: d8 04 a0 0c ld [ %l2 + 0xc ], %o4 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; 2014e54: 88 04 00 17 add %l0, %l7, %g4 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 2014e58: da 04 a0 08 ld [ %l2 + 8 ], %o5 _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; next_next_block->prev_size = new_next_block_size; 2014e5c: c8 24 80 17 st %g4, [ %l2 + %l7 ] _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; 2014e60: 84 11 20 01 or %g4, 1, %g2 2014e64: c4 20 e0 04 st %g2, [ %g3 + 4 ] 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; 2014e68: c2 04 e0 30 ld [ %l3 + 0x30 ], %g1 Heap_Block *prev = block->prev; block = new_block; block->next = next; 2014e6c: da 20 e0 08 st %o5, [ %g3 + 8 ] 2014e70: 82 00 40 10 add %g1, %l0, %g1 block->prev = prev; 2014e74: d8 20 e0 0c st %o4, [ %g3 + 0xc ] 2014e78: c2 24 e0 30 st %g1, [ %l3 + 0x30 ] *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 2014e7c: 88 01 3f fc add %g4, -4, %g4 next->prev = prev->next = block; 2014e80: c6 23 60 0c st %g3, [ %o5 + 0xc ] 2014e84: c6 23 20 08 st %g3, [ %o4 + 8 ] 2014e88: c8 27 00 00 st %g4, [ %i4 ] *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; } } } ++stats->resizes; 2014e8c: c2 04 e0 54 ld [ %l3 + 0x54 ], %g1 2014e90: 82 00 60 01 inc %g1 2014e94: c2 24 e0 54 st %g1, [ %l3 + 0x54 ] 2014e98: 81 c7 e0 08 ret 2014e9c: 91 e8 20 00 restore %g0, 0, %o0 ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; *value = r ? v - r + a : v; 2014ea0: 10 bf ff d4 b 2014df0 <_Heap_Resize_block+0xec> 2014ea4: 90 10 00 16 mov %l6, %o0 if (new_block_size < min_block_size) { uint32_t delta = min_block_size - new_block_size; _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 2014ea8: a0 a4 00 01 subcc %l0, %g1, %l0 2014eac: 12 bf ff e3 bne 2014e38 <_Heap_Resize_block+0x134> 2014eb0: 84 00 80 01 add %g2, %g1, %g2 *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; } } } ++stats->resizes; 2014eb4: 10 bf ff f7 b 2014e90 <_Heap_Resize_block+0x18c> 2014eb8: c2 04 e0 54 ld [ %l3 + 0x54 ], %g1 _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) return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 2014ebc: 92 10 00 12 mov %l2, %o1 2014ec0: 7f ff c6 c6 call 20069d8 <_Heap_Block_allocate> 2014ec4: 90 10 00 13 mov %l3, %o0 _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; 2014ec8: 90 02 00 18 add %o0, %i0, %o0 2014ecc: 90 12 00 1b or %o0, %i3, %o0 2014ed0: d0 24 60 04 st %o0, [ %l1 + 4 ] --stats->used_blocks; 2014ed4: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 2014ed8: 82 00 7f ff add %g1, -1, %g1 2014edc: 10 bf ff ec b 2014e8c <_Heap_Resize_block+0x188> 2014ee0: c2 24 e0 40 st %g1, [ %l3 + 0x40 ] 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) { 2014ee4: 38 bf ff eb bgu,a 2014e90 <_Heap_Resize_block+0x18c> <== NOT EXECUTED 2014ee8: c2 04 e0 54 ld [ %l3 + 0x54 ], %g1 <== NOT EXECUTED /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; 2014eec: 82 10 80 1b or %g2, %i3, %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2014ef0: 92 04 40 02 add %l1, %g2, %o1 <== NOT EXECUTED 2014ef4: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 2014ef8: 84 14 20 01 or %l0, 1, %g2 <== NOT EXECUTED 2014efc: c4 22 60 04 st %g2, [ %o1 + 4 ] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 2014f00: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 2014f04: c4 04 e0 50 ld [ %l3 + 0x50 ], %g2 <== 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; ++stats->used_blocks; /* We have created used block */ 2014f08: 82 00 60 01 inc %g1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 2014f0c: 84 00 bf ff add %g2, -1, %g2 <== 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; ++stats->used_blocks; /* We have created used block */ 2014f10: c2 24 e0 40 st %g1, [ %l3 + 0x40 ] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 2014f14: c4 24 e0 50 st %g2, [ %l3 + 0x50 ] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 2014f18: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 2014f1c: 7f ff da e3 call 200baa8 <_Heap_Free> <== NOT EXECUTED 2014f20: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 2014f24: 82 04 3f fc add %l0, -4, %g1 <== NOT EXECUTED 2014f28: 10 bf ff d9 b 2014e8c <_Heap_Resize_block+0x188> <== NOT EXECUTED 2014f2c: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED 0200e6bc <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 200e6bc: 9d e3 bf 98 save %sp, -104, %sp /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 200e6c0: 80 a6 60 00 cmp %i1, 0 Heap_Control *the_heap, int source, bool do_dump ) { Heap_Block *the_block = the_heap->start; 200e6c4: e2 06 20 20 ld [ %i0 + 0x20 ], %l1 /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 200e6c8: 06 80 00 8c bl 200e8f8 <_Heap_Walk+0x23c> 200e6cc: ec 06 20 24 ld [ %i0 + 0x24 ], %l6 /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 200e6d0: c2 04 60 04 ld [ %l1 + 4 ], %g1 200e6d4: 80 88 60 01 btst 1, %g1 200e6d8: 02 80 00 81 be 200e8dc <_Heap_Walk+0x220> 200e6dc: a6 10 20 00 clr %l3 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) { 200e6e0: c4 04 40 00 ld [ %l1 ], %g2 200e6e4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 200e6e8: 80 a0 80 01 cmp %g2, %g1 200e6ec: 02 80 00 08 be 200e70c <_Heap_Walk+0x50> 200e6f0: 80 a4 40 16 cmp %l1, %l6 printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); 200e6f4: 11 00 80 6a sethi %hi(0x201a800), %o0 <== NOT EXECUTED 200e6f8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e6fc: 90 12 21 20 or %o0, 0x120, %o0 <== NOT EXECUTED 200e700: 7f ff d9 51 call 2004c44 <== NOT EXECUTED 200e704: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED error = 1; } while ( the_block != end ) { 200e708: 80 a4 40 16 cmp %l1, %l6 <== NOT EXECUTED 200e70c: 22 80 00 63 be,a 200e898 <_Heap_Walk+0x1dc> 200e710: a2 10 00 16 mov %l6, %l1 <== NOT EXECUTED printk(" prev_size %d", the_block->prev_size); else printk(" (prev_size) %d", the_block->prev_size); } if (!_Heap_Is_block_in(the_heap, next_block)) { 200e714: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 200e718: c8 04 60 04 ld [ %l1 + 4 ], %g4 200e71c: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 200e720: a4 09 3f fe and %g4, -2, %l2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 200e724: a0 04 40 12 add %l1, %l2, %l0 200e728: 80 a4 00 01 cmp %l0, %g1 200e72c: 84 60 3f ff subx %g0, -1, %g2 200e730: 80 a0 c0 10 cmp %g3, %l0 200e734: 82 60 3f ff subx %g0, -1, %g1 200e738: 80 88 80 01 btst %g2, %g1 200e73c: 02 80 00 77 be 200e918 <_Heap_Walk+0x25c> 200e740: 03 00 80 67 sethi %hi(0x2019c00), %g1 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"); printk("PASS: %d !the_block not in the free list", source); 200e744: 05 00 80 6a sethi %hi(0x201a800), %g2 { /* 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"); 200e748: ba 10 61 48 or %g1, 0x148, %i5 printk("PASS: %d !the_block not in the free list", source); 200e74c: ae 10 a1 e0 or %g2, 0x1e0, %l7 printk("PASS: %d !front and back sizes don't match", source); error = 1; } if (!prev_used) { if (do_dump || error) printk("\n"); printk("PASS: %d !two consecutive blocks are free", source); 200e750: 03 00 80 6a sethi %hi(0x201a800), %g1 if (!_Heap_Is_prev_used(next_block)) { if (do_dump) printk( " prev %p next %p", the_block->prev, the_block->next); if (_Heap_Block_size(the_block) != next_block->prev_size) { if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 200e754: 05 00 80 6a sethi %hi(0x201a800), %g2 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 200e758: a8 09 20 01 and %g4, 1, %l4 error = 1; } if (!prev_used) { if (do_dump || error) printk("\n"); printk("PASS: %d !two consecutive blocks are free", source); 200e75c: b8 10 61 b0 or %g1, 0x1b0, %i4 if (!_Heap_Is_prev_used(next_block)) { if (do_dump) printk( " prev %p next %p", the_block->prev, the_block->next); if (_Heap_Block_size(the_block) != next_block->prev_size) { if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 200e760: b6 10 a1 80 or %g2, 0x180, %i3 200e764: aa 10 00 10 mov %l0, %l5 printk("PASS: %d !block %p is out of heap\n", source, next_block); error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 200e768: c2 04 20 04 ld [ %l0 + 4 ], %g1 200e76c: 80 88 60 01 btst 1, %g1 200e770: 12 80 00 20 bne 200e7f0 <_Heap_Walk+0x134> 200e774: 80 a4 e0 00 cmp %l3, 0 if (do_dump) printk( " prev %p next %p", the_block->prev, the_block->next); if (_Heap_Block_size(the_block) != next_block->prev_size) { 200e778: c2 04 00 00 ld [ %l0 ], %g1 200e77c: 80 a0 40 12 cmp %g1, %l2 200e780: 02 80 00 07 be 200e79c <_Heap_Walk+0xe0> 200e784: 80 8d 20 ff btst 0xff, %l4 if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 200e788: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 200e78c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e790: 7f ff d9 2d call 2004c44 <== NOT EXECUTED 200e794: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED error = 1; } if (!prev_used) { 200e798: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED 200e79c: 32 80 00 0a bne,a 200e7c4 <_Heap_Walk+0x108> 200e7a0: c2 06 20 08 ld [ %i0 + 8 ], %g1 if (do_dump || error) printk("\n"); 200e7a4: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 200e7a8: 12 80 00 49 bne 200e8cc <_Heap_Walk+0x210> <== NOT EXECUTED 200e7ac: 01 00 00 00 nop <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 200e7b0: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED 200e7b4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e7b8: 7f ff d9 23 call 2004c44 <== NOT EXECUTED 200e7bc: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 200e7c0: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== 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) 200e7c4: 80 a0 40 11 cmp %g1, %l1 200e7c8: 02 80 00 0a be 200e7f0 <_Heap_Walk+0x134> 200e7cc: 80 a4 e0 00 cmp %l3, 0 200e7d0: 80 a6 00 01 cmp %i0, %g1 200e7d4: 02 80 00 58 be 200e934 <_Heap_Walk+0x278> 200e7d8: 80 a0 40 11 cmp %g1, %l1 block = block->next; 200e7dc: c2 00 60 08 ld [ %g1 + 8 ], %g1 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) 200e7e0: 80 a0 40 11 cmp %g1, %l1 200e7e4: 12 bf ff fc bne 200e7d4 <_Heap_Walk+0x118> 200e7e8: 80 a6 00 01 cmp %i0, %g1 error = 1; } } } if (do_dump || error) printk("\n"); 200e7ec: 80 a4 e0 00 cmp %l3, 0 200e7f0: 32 80 00 58 bne,a 200e950 <_Heap_Walk+0x294> 200e7f4: 27 00 80 67 sethi %hi(0x2019c00), %l3 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 200e7f8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 200e7fc: 80 a0 40 12 cmp %g1, %l2 200e800: 18 80 00 40 bgu 200e900 <_Heap_Walk+0x244> 200e804: 11 00 80 6a sethi %hi(0x201a800), %o0 printk("PASS: %d !block size is too small\n", source); error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { 200e808: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 200e80c: 40 00 26 5a call 2018174 <.urem> 200e810: 90 10 00 12 mov %l2, %o0 200e814: 80 a2 20 00 cmp %o0, 0 200e818: 12 80 00 15 bne 200e86c <_Heap_Walk+0x1b0> 200e81c: 80 a4 e0 00 cmp %l3, 0 printk("PASS: %d !block size is misaligned\n", source); error = 1; } if (++passes > (do_dump ? 10 : 0) && error) 200e820: 12 80 00 17 bne 200e87c <_Heap_Walk+0x1c0> 200e824: 80 a5 80 10 cmp %l6, %l0 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 ) { 200e828: 02 80 00 1c be 200e898 <_Heap_Walk+0x1dc> 200e82c: a2 10 00 16 mov %l6, %l1 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 200e830: c8 04 20 04 ld [ %l0 + 4 ], %g4 printk(" prev_size %d", the_block->prev_size); else printk(" (prev_size) %d", the_block->prev_size); } if (!_Heap_Is_block_in(the_heap, next_block)) { 200e834: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 200e838: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 200e83c: a4 09 3f fe and %g4, -2, %l2 200e840: a0 04 00 12 add %l0, %l2, %l0 200e844: 80 a4 00 01 cmp %l0, %g1 200e848: 84 60 3f ff subx %g0, -1, %g2 200e84c: 80 a0 c0 10 cmp %g3, %l0 200e850: 82 60 3f ff subx %g0, -1, %g1 200e854: 80 88 80 01 btst %g2, %g1 200e858: 02 80 00 2f be 200e914 <_Heap_Walk+0x258> 200e85c: a8 09 20 01 and %g4, 1, %l4 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 200e860: a2 10 00 15 mov %l5, %l1 200e864: 10 bf ff c1 b 200e768 <_Heap_Walk+0xac> 200e868: aa 10 00 10 mov %l0, %l5 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); 200e86c: 11 00 80 6a sethi %hi(0x201a800), %o0 <== NOT EXECUTED 200e870: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e874: 7f ff d8 f4 call 2004c44 <== NOT EXECUTED 200e878: 90 12 22 38 or %o0, 0x238, %o0 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 200e87c: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED 200e880: 11 00 80 6a sethi %hi(0x201a800), %o0 <== NOT EXECUTED 200e884: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e888: 90 12 22 60 or %o0, 0x260, %o0 <== NOT EXECUTED 200e88c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200e890: 7f ff d8 ed call 2004c44 <== NOT EXECUTED 200e894: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 200e898: d6 06 20 10 ld [ %i0 + 0x10 ], %o3 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 200e89c: c2 04 60 04 ld [ %l1 + 4 ], %g1 200e8a0: 94 08 7f fe and %g1, -2, %o2 200e8a4: 80 a2 c0 0a cmp %o3, %o2 200e8a8: 02 80 00 07 be 200e8c4 <_Heap_Walk+0x208> 200e8ac: b0 10 00 13 mov %l3, %i0 printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 200e8b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e8b4: 11 00 80 6a sethi %hi(0x201a800), %o0 <== NOT EXECUTED 200e8b8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 200e8bc: 7f ff d8 e2 call 2004c44 <== NOT EXECUTED 200e8c0: 90 12 22 a0 or %o0, 0x2a0, %o0 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 200e8c4: 81 c7 e0 08 ret 200e8c8: 81 e8 00 00 restore 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"); 200e8cc: 7f ff d8 de call 2004c44 <== NOT EXECUTED 200e8d0: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 200e8d4: 10 bf ff b8 b 200e7b4 <_Heap_Walk+0xf8> <== NOT EXECUTED 200e8d8: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); 200e8dc: 11 00 80 6a sethi %hi(0x201a800), %o0 <== NOT EXECUTED 200e8e0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e8e4: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED 200e8e8: 7f ff d8 d7 call 2004c44 <== NOT EXECUTED 200e8ec: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED error = 1; } if (the_block->prev_size != the_heap->page_size) { 200e8f0: 10 bf ff 7d b 200e6e4 <_Heap_Walk+0x28> <== NOT EXECUTED 200e8f4: c4 04 40 00 ld [ %l1 ], %g2 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) source = the_heap->stats.instance; 200e8f8: 10 bf ff 76 b 200e6d0 <_Heap_Walk+0x14> <== NOT EXECUTED 200e8fc: f2 06 20 28 ld [ %i0 + 0x28 ], %i1 <== NOT EXECUTED } if (do_dump || error) printk("\n"); if (the_size < the_heap->min_block_size) { printk("PASS: %d !block size is too small\n", source); 200e900: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e904: 7f ff d8 d0 call 2004c44 <== NOT EXECUTED 200e908: 90 12 22 10 or %o0, 0x210, %o0 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 200e90c: 10 bf ff dd b 200e880 <_Heap_Walk+0x1c4> <== NOT EXECUTED 200e910: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 200e914: a2 10 00 15 mov %l5, %l1 <== 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); 200e918: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 200e91c: 11 00 80 6a sethi %hi(0x201a800), %o0 <== NOT EXECUTED 200e920: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e924: 7f ff d8 c8 call 2004c44 <== NOT EXECUTED 200e928: 90 12 21 58 or %o0, 0x158, %o0 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 200e92c: 10 bf ff d5 b 200e880 <_Heap_Walk+0x1c4> <== NOT EXECUTED 200e930: 96 10 00 16 mov %l6, %o3 <== 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) { 200e934: 02 bf ff ae be 200e7ec <_Heap_Walk+0x130> <== NOT EXECUTED 200e938: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED if (do_dump || error) printk("\n"); 200e93c: 12 80 00 0a bne 200e964 <_Heap_Walk+0x2a8> <== NOT EXECUTED 200e940: 27 00 80 67 sethi %hi(0x2019c00), %l3 <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 200e944: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 200e948: 7f ff d8 bf call 2004c44 <== NOT EXECUTED 200e94c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 200e950: 90 14 e1 48 or %l3, 0x148, %o0 <== NOT EXECUTED 200e954: 7f ff d8 bc call 2004c44 <== NOT EXECUTED 200e958: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 200e95c: 10 bf ff a8 b 200e7fc <_Heap_Walk+0x140> <== NOT EXECUTED 200e960: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== 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"); 200e964: 7f ff d8 b8 call 2004c44 <== NOT EXECUTED 200e968: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 200e96c: 10 bf ff f7 b 200e948 <_Heap_Walk+0x28c> <== NOT EXECUTED 200e970: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 02006b48 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 2006b48: 9d e3 bf 98 save %sp, -104, %sp * 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 ) 2006b4c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 2006b50: a0 10 00 18 mov %i0, %l0 * 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 ) 2006b54: 80 a0 60 00 cmp %g1, 0 2006b58: 02 80 00 1d be 2006bcc <_Objects_Allocate+0x84> 2006b5c: b0 10 20 00 clr %i0 /* * 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 ); 2006b60: a2 04 20 20 add %l0, 0x20, %l1 2006b64: 40 00 12 f2 call 200b72c <_Chain_Get> 2006b68: 90 10 00 11 mov %l1, %o0 if ( information->auto_extend ) { 2006b6c: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1 2006b70: 80 a0 60 00 cmp %g1, 0 2006b74: 02 80 00 16 be 2006bcc <_Objects_Allocate+0x84> 2006b78: b0 10 00 08 mov %o0, %i0 /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 2006b7c: 80 a2 20 00 cmp %o0, 0 2006b80: 02 80 00 15 be 2006bd4 <_Objects_Allocate+0x8c> 2006b84: 01 00 00 00 nop } if ( the_object ) { uint32_t block; block = _Objects_Get_index( the_object->id ) - 2006b88: c4 06 20 08 ld [ %i0 + 8 ], %g2 2006b8c: d0 04 20 08 ld [ %l0 + 8 ], %o0 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2006b90: d2 04 20 14 ld [ %l0 + 0x14 ], %o1 } if ( the_object ) { uint32_t block; block = _Objects_Get_index( the_object->id ) - 2006b94: 03 00 00 3f sethi %hi(0xfc00), %g1 2006b98: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2006b9c: 84 08 80 01 and %g2, %g1, %g2 2006ba0: 90 0a 00 01 and %o0, %g1, %o0 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2006ba4: 40 00 33 40 call 20138a4 <.udiv> 2006ba8: 90 20 80 08 sub %g2, %o0, %o0 2006bac: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 2006bb0: 91 2a 20 02 sll %o0, 2, %o0 information->inactive--; 2006bb4: c2 14 20 2c lduh [ %l0 + 0x2c ], %g1 block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2006bb8: c4 00 c0 08 ld [ %g3 + %o0 ], %g2 information->inactive--; 2006bbc: 82 00 7f ff add %g1, -1, %g1 block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2006bc0: 84 00 bf ff add %g2, -1, %g2 information->inactive--; 2006bc4: c2 34 20 2c sth %g1, [ %l0 + 0x2c ] block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 2006bc8: c4 20 c0 08 st %g2, [ %g3 + %o0 ] information->inactive--; } } return the_object; } 2006bcc: 81 c7 e0 08 ret 2006bd0: 81 e8 00 00 restore * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); 2006bd4: 40 00 00 14 call 2006c24 <_Objects_Extend_information> 2006bd8: 90 10 00 10 mov %l0, %o0 the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 2006bdc: 40 00 12 d4 call 200b72c <_Chain_Get> 2006be0: 90 10 00 11 mov %l1, %o0 } if ( the_object ) { 2006be4: b0 92 20 00 orcc %o0, 0, %i0 2006be8: 32 bf ff e9 bne,a 2006b8c <_Objects_Allocate+0x44> 2006bec: c4 06 20 08 ld [ %i0 + 8 ], %g2 information->inactive--; } } return the_object; } 2006bf0: 81 c7 e0 08 ret <== NOT EXECUTED 2006bf4: 81 e8 00 00 restore <== NOT EXECUTED 02006c24 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 2006c24: 9d e3 bf 88 save %sp, -120, %sp */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( Objects_Id id ) { return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 2006c28: c4 06 20 08 ld [ %i0 + 8 ], %g2 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 2006c2c: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 2006c30: 03 00 00 3f sethi %hi(0xfc00), %g1 2006c34: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2006c38: a8 08 80 01 and %g2, %g1, %l4 2006c3c: 80 a5 40 14 cmp %l5, %l4 2006c40: 1a 80 00 79 bcc 2006e24 <_Objects_Extend_information+0x200> 2006c44: e0 06 20 14 ld [ %i0 + 0x14 ], %l0 2006c48: a6 10 00 14 mov %l4, %l3 2006c4c: a4 10 20 00 clr %l2 2006c50: a2 10 20 00 clr %l1 2006c54: ac 10 20 01 mov 1, %l6 2006c58: 90 10 20 03 mov 3, %o0 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 2006c5c: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2006c60: 80 a0 60 00 cmp %g1, 0 2006c64: 12 80 00 8d bne 2006e98 <_Objects_Extend_information+0x274> 2006c68: ba 04 00 15 add %l0, %l5, %i5 if ( !object_blocks ) return; } else { object_blocks = (void**) 2006c6c: 90 02 00 14 add %o0, %l4, %o0 2006c70: 90 02 00 1d add %o0, %i5, %o0 2006c74: 40 00 09 30 call 2009134 <_Workspace_Allocate_or_fatal_error> 2006c78: 91 2a 20 02 sll %o0, 2, %o0 2006c7c: ae 10 00 08 mov %o0, %l7 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 2006c80: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 2006c84: 85 2d a0 02 sll %l6, 2, %g2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 2006c88: 80 a0 40 14 cmp %g1, %l4 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 2006c8c: ac 05 c0 02 add %l7, %g2, %l6 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 2006c90: 18 80 00 94 bgu 2006ee0 <_Objects_Extend_information+0x2bc> 2006c94: a0 05 80 02 add %l6, %g2, %l0 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2006c98: 80 a5 20 00 cmp %l4, 0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 2006c9c: 84 10 20 00 clr %g2 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2006ca0: 02 80 00 08 be 2006cc0 <_Objects_Extend_information+0x9c> 2006ca4: ab 2c a0 02 sll %l2, 2, %l5 local_table[ index ] = NULL; 2006ca8: 83 28 a0 02 sll %g2, 2, %g1 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2006cac: 84 00 a0 01 inc %g2 2006cb0: 80 a0 80 14 cmp %g2, %l4 2006cb4: 0a bf ff fd bcs 2006ca8 <_Objects_Extend_information+0x84> 2006cb8: c0 24 00 01 clr [ %l0 + %g1 ] 2006cbc: ab 2c a0 02 sll %l2, 2, %l5 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 2006cc0: c0 25 80 15 clr [ %l6 + %l5 ] for ( index=index_base ; index < ( information->allocation_size + index_base ); 2006cc4: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2006cc8: 86 04 c0 01 add %l3, %g1, %g3 2006ccc: 80 a4 c0 03 cmp %l3, %g3 2006cd0: 1a 80 00 0a bcc 2006cf8 <_Objects_Extend_information+0xd4> 2006cd4: c0 25 c0 15 clr [ %l7 + %l5 ] 2006cd8: 83 2c e0 02 sll %l3, 2, %g1 2006cdc: 84 04 00 01 add %l0, %g1, %g2 2006ce0: 82 10 00 13 mov %l3, %g1 index++ ) { local_table[ index ] = NULL; 2006ce4: c0 20 80 00 clr [ %g2 ] object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 2006ce8: 82 00 60 01 inc %g1 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 2006cec: 80 a0 40 03 cmp %g1, %g3 2006cf0: 0a bf ff fd bcs 2006ce4 <_Objects_Extend_information+0xc0> 2006cf4: 84 00 a0 04 add %g2, 4, %g2 index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 2006cf8: 7f ff ec 2b call 2001da4 2006cfc: 01 00 00 00 nop 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( 2006d00: c2 06 00 00 ld [ %i0 ], %g1 2006d04: c8 16 20 04 lduh [ %i0 + 4 ], %g4 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; 2006d08: e0 26 20 1c st %l0, [ %i0 + 0x1c ] information->maximum = maximum; information->maximum_id = _Objects_Build_id( 2006d0c: 89 29 20 1b sll %g4, 0x1b, %g4 2006d10: 87 2f 60 10 sll %i5, 0x10, %g3 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 2006d14: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 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( 2006d18: 87 30 e0 10 srl %g3, 0x10, %g3 2006d1c: 05 00 00 40 sethi %hi(0x10000), %g2 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 2006d20: ec 26 20 30 st %l6, [ %i0 + 0x30 ] information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 2006d24: 83 28 60 18 sll %g1, 0x18, %g1 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; 2006d28: fa 36 20 10 sth %i5, [ %i0 + 0x10 ] information->maximum_id = _Objects_Build_id( 2006d2c: 82 10 40 02 or %g1, %g2, %g1 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 2006d30: ee 26 20 34 st %l7, [ %i0 + 0x34 ] information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 2006d34: 82 10 40 04 or %g1, %g4, %g1 2006d38: 82 10 40 03 or %g1, %g3, %g1 2006d3c: c2 26 20 0c st %g1, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 2006d40: 7f ff ec 1d call 2001db4 2006d44: 01 00 00 00 nop if ( old_tables ) 2006d48: 80 a4 20 00 cmp %l0, 0 2006d4c: 22 80 00 05 be,a 2006d60 <_Objects_Extend_information+0x13c> 2006d50: e0 06 20 14 ld [ %i0 + 0x14 ], %l0 _Workspace_Free( old_tables ); 2006d54: 40 00 08 ea call 20090fc <_Workspace_Free> 2006d58: 90 10 00 10 mov %l0, %o0 2006d5c: e0 06 20 14 ld [ %i0 + 0x14 ], %l0 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 2006d60: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2006d64: 80 a0 60 00 cmp %g1, 0 2006d68: 02 80 00 55 be 2006ebc <_Objects_Extend_information+0x298> 2006d6c: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 information->object_blocks[ block ] = 2006d70: 90 10 00 10 mov %l0, %o0 2006d74: 40 00 32 92 call 20137bc <.umul> 2006d78: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 2006d7c: 40 00 08 e7 call 2009118 <_Workspace_Allocate> 2006d80: a9 2c 60 02 sll %l1, 2, %l4 _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 2006d84: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 2006d88: d0 24 00 14 st %o0, [ %l0 + %l4 ] _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 2006d8c: d2 00 40 14 ld [ %g1 + %l4 ], %o1 2006d90: 80 a2 60 00 cmp %o1, 0 2006d94: 02 80 00 64 be 2006f24 <_Objects_Extend_information+0x300> 2006d98: 01 00 00 00 nop /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2006d9c: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 2006da0: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2006da4: a0 10 00 13 mov %l3, %l0 2006da8: a2 06 20 20 add %i0, 0x20, %l1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2006dac: a6 07 bf ec add %fp, -20, %l3 index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 2006db0: 25 00 00 40 sethi %hi(0x10000), %l2 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2006db4: 40 00 12 71 call 200b778 <_Chain_Initialize> 2006db8: 90 10 00 13 mov %l3, %o0 2006dbc: 30 80 00 0c b,a 2006dec <_Objects_Extend_information+0x1c8> index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 2006dc0: c4 16 20 04 lduh [ %i0 + 4 ], %g2 2006dc4: 83 28 60 18 sll %g1, 0x18, %g1 2006dc8: 85 28 a0 1b sll %g2, 0x1b, %g2 2006dcc: 82 10 40 12 or %g1, %l2, %g1 2006dd0: 82 10 40 02 or %g1, %g2, %g1 2006dd4: 82 10 40 10 or %g1, %l0, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2006dd8: 92 10 00 08 mov %o0, %o1 index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 2006ddc: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 2006de0: a0 04 20 01 inc %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2006de4: 7f ff fd 2f call 20062a0 <_Chain_Append> 2006de8: 90 10 00 11 mov %l1, %o0 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 2006dec: 40 00 12 50 call 200b72c <_Chain_Get> 2006df0: 90 10 00 13 mov %l3, %o0 2006df4: 80 a2 20 00 cmp %o0, 0 2006df8: 32 bf ff f2 bne,a 2006dc0 <_Objects_Extend_information+0x19c> 2006dfc: c2 06 00 00 ld [ %i0 ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2006e00: c6 06 20 30 ld [ %i0 + 0x30 ], %g3 2006e04: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 information->inactive += information->allocation_size; 2006e08: c8 16 20 2c lduh [ %i0 + 0x2c ], %g4 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2006e0c: c4 20 c0 14 st %g2, [ %g3 + %l4 ] information->inactive += information->allocation_size; 2006e10: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2006e14: 82 00 40 04 add %g1, %g4, %g1 2006e18: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2006e1c: 81 c7 e0 08 ret 2006e20: 81 e8 00 00 restore block = 0; if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; 2006e24: 90 10 00 15 mov %l5, %o0 2006e28: 40 00 32 9f call 20138a4 <.udiv> 2006e2c: 92 10 00 10 mov %l0, %o1 for ( ; block < block_count; block++ ) { 2006e30: a4 92 20 00 orcc %o0, 0, %l2 2006e34: 02 80 00 3e be 2006f2c <_Objects_Extend_information+0x308> 2006e38: a6 10 00 14 mov %l4, %l3 if ( information->object_blocks[ block ] == NULL ) 2006e3c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 2006e40: c2 00 80 00 ld [ %g2 ], %g1 2006e44: 80 a0 60 00 cmp %g1, 0 2006e48: 12 80 00 08 bne 2006e68 <_Objects_Extend_information+0x244> 2006e4c: a2 10 20 00 clr %l1 /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 2006e50: 10 80 00 0c b 2006e80 <_Objects_Extend_information+0x25c> <== NOT EXECUTED 2006e54: 80 a4 c0 15 cmp %l3, %l5 <== NOT EXECUTED block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 2006e58: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2006e5c: 80 a0 60 00 cmp %g1, 0 2006e60: 02 80 00 08 be 2006e80 <_Objects_Extend_information+0x25c> 2006e64: 80 a4 c0 15 cmp %l3, %l5 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2006e68: a2 04 60 01 inc %l1 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 2006e6c: a6 04 c0 10 add %l3, %l0, %l3 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2006e70: 80 a4 80 11 cmp %l2, %l1 2006e74: 18 bf ff f9 bgu 2006e58 <_Objects_Extend_information+0x234> 2006e78: 83 2c 60 02 sll %l1, 2, %g1 /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 2006e7c: 80 a4 c0 15 cmp %l3, %l5 2006e80: 2a bf ff b9 bcs,a 2006d64 <_Objects_Extend_information+0x140> 2006e84: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2006e88: ac 04 a0 01 add %l2, 1, %l6 2006e8c: 83 2d a0 01 sll %l6, 1, %g1 2006e90: 10 bf ff 73 b 2006c5c <_Objects_Extend_information+0x38> 2006e94: 90 00 40 16 add %g1, %l6, %o0 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { object_blocks = (void**) 2006e98: 90 02 00 14 add %o0, %l4, %o0 2006e9c: 90 02 00 1d add %o0, %i5, %o0 2006ea0: 40 00 08 9e call 2009118 <_Workspace_Allocate> 2006ea4: 91 2a 20 02 sll %o0, 2, %o0 block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 2006ea8: ae 92 20 00 orcc %o0, 0, %l7 2006eac: 32 bf ff 76 bne,a 2006c84 <_Objects_Extend_information+0x60> 2006eb0: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2006eb4: 81 c7 e0 08 ret <== NOT EXECUTED 2006eb8: 81 e8 00 00 restore <== NOT EXECUTED if ( !information->object_blocks[ block ] ) return; } else { information->object_blocks[ block ] = 2006ebc: 90 10 00 10 mov %l0, %o0 2006ec0: 40 00 32 3f call 20137bc <.umul> 2006ec4: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 2006ec8: 40 00 08 9b call 2009134 <_Workspace_Allocate_or_fatal_error> 2006ecc: a9 2c 60 02 sll %l1, 2, %l4 2006ed0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2006ed4: d0 24 00 14 st %o0, [ %l0 + %l4 ] 2006ed8: 10 bf ff b1 b 2006d9c <_Objects_Extend_information+0x178> 2006edc: d2 00 40 14 ld [ %g1 + %l4 ], %o1 /* * 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, 2006ee0: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 2006ee4: ab 2c a0 02 sll %l2, 2, %l5 2006ee8: 90 10 00 17 mov %l7, %o0 2006eec: 40 00 19 95 call 200d540 2006ef0: 94 10 00 15 mov %l5, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 2006ef4: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 2006ef8: 94 10 00 15 mov %l5, %o2 2006efc: 40 00 19 91 call 200d540 2006f00: 90 10 00 16 mov %l6, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 2006f04: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2 2006f08: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 2006f0c: 94 05 00 0a add %l4, %o2, %o2 2006f10: 90 10 00 10 mov %l0, %o0 2006f14: 40 00 19 8b call 200d540 2006f18: 95 2a a0 02 sll %o2, 2, %o2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 2006f1c: 10 bf ff 6a b 2006cc4 <_Objects_Extend_information+0xa0> 2006f20: c0 25 80 15 clr [ %l6 + %l5 ] 2006f24: 81 c7 e0 08 ret <== NOT EXECUTED 2006f28: 81 e8 00 00 restore <== NOT EXECUTED if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2006f2c: 10 bf ff d4 b 2006e7c <_Objects_Extend_information+0x258> <== NOT EXECUTED 2006f30: a2 10 20 00 clr %l1 <== NOT EXECUTED 02006fe4 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 2006fe4: 9d e3 bf 98 save %sp, -104, %sp */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 2006fe8: 82 06 3f ff add %i0, -1, %g1 2006fec: 80 a0 60 03 cmp %g1, 3 2006ff0: 38 80 00 1e bgu,a 2007068 <_Objects_Get_information+0x84> 2006ff4: b0 10 20 00 clr %i0 int the_class_api_maximum; if ( !_Objects_Is_api_valid( the_api ) ) return NULL; if ( !the_class ) 2006ff8: 80 a6 60 00 cmp %i1, 0 2006ffc: 12 80 00 04 bne 200700c <_Objects_Get_information+0x28> 2007000: 01 00 00 00 nop if ( info->maximum == 0 ) return NULL; #endif return info; } 2007004: 81 c7 e0 08 ret 2007008: 91 e8 20 00 restore %g0, 0, %o0 return NULL; if ( !the_class ) return NULL; the_class_api_maximum = _Objects_API_maximum_class( the_api ); 200700c: 40 00 13 23 call 200bc98 <_Objects_API_maximum_class> 2007010: 90 10 00 18 mov %i0, %o0 if ( the_class_api_maximum < 0 || 2007014: 80 a2 20 00 cmp %o0, 0 2007018: 06 bf ff fb bl 2007004 <_Objects_Get_information+0x20> 200701c: 80 a2 00 19 cmp %o0, %i1 2007020: 2a 80 00 12 bcs,a 2007068 <_Objects_Get_information+0x84> 2007024: b0 10 20 00 clr %i0 <== NOT EXECUTED the_class > (uint32_t) the_class_api_maximum ) return NULL; if ( !_Objects_Information_table[ the_api ] ) 2007028: 85 2e 20 02 sll %i0, 2, %g2 200702c: 03 00 80 5c sethi %hi(0x2017000), %g1 2007030: 82 10 62 00 or %g1, 0x200, %g1 ! 2017200 <_Objects_Information_table> 2007034: c4 00 40 02 ld [ %g1 + %g2 ], %g2 2007038: 80 a0 a0 00 cmp %g2, 0 200703c: 02 80 00 0b be 2007068 <_Objects_Get_information+0x84> 2007040: b0 10 20 00 clr %i0 return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 2007044: 83 2e 60 02 sll %i1, 2, %g1 2007048: f0 00 80 01 ld [ %g2 + %g1 ], %i0 if ( !info ) 200704c: 80 a6 20 00 cmp %i0, 0 2007050: 02 80 00 06 be 2007068 <_Objects_Get_information+0x84> 2007054: 01 00 00 00 nop * 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 ) 2007058: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 200705c: 80 a0 60 00 cmp %g1, 0 2007060: 22 80 00 02 be,a 2007068 <_Objects_Get_information+0x84> 2007064: b0 10 20 00 clr %i0 return NULL; #endif return info; } 2007068: 81 c7 e0 08 ret 200706c: 81 e8 00 00 restore 02007070 <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 2007070: 9d e3 bf 98 save %sp, -104, %sp #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 2007074: 03 00 00 3f sethi %hi(0xfc00), %g1 2007078: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 200707c: 7f ff eb 4a call 2001da4 2007080: b2 0e 40 01 and %i1, %g1, %i1 if ( information->maximum >= index ) { 2007084: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007088: 80 a6 40 01 cmp %i1, %g1 200708c: 18 80 00 0b bgu 20070b8 <_Objects_Get_isr_disable+0x48> 2007090: 83 2e 60 02 sll %i1, 2, %g1 if ( (the_object = information->local_table[ index ]) != NULL ) { 2007094: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 2007098: f0 00 80 01 ld [ %g2 + %g1 ], %i0 200709c: 80 a6 20 00 cmp %i0, 0 20070a0: 02 80 00 0c be 20070d0 <_Objects_Get_isr_disable+0x60> 20070a4: 01 00 00 00 nop *location = OBJECTS_LOCAL; *level_p = level; 20070a8: d0 26 c0 00 st %o0, [ %i3 ] #endif _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 20070ac: c0 26 80 00 clr [ %i2 ] 20070b0: 81 c7 e0 08 ret 20070b4: 81 e8 00 00 restore } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 20070b8: 7f ff eb 3f call 2001db4 20070bc: b0 10 20 00 clr %i0 *location = OBJECTS_ERROR; 20070c0: 82 10 20 01 mov 1, %g1 20070c4: c2 26 80 00 st %g1, [ %i2 ] _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 20070c8: 81 c7 e0 08 ret 20070cc: 81 e8 00 00 restore if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 20070d0: 7f ff eb 39 call 2001db4 <== NOT EXECUTED 20070d4: 01 00 00 00 nop <== NOT EXECUTED *location = OBJECTS_ERROR; 20070d8: 82 10 20 01 mov 1, %g1 ! 1 <== NOT EXECUTED 20070dc: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 20070e0: 81 c7 e0 08 ret <== NOT EXECUTED 20070e4: 81 e8 00 00 restore <== NOT EXECUTED 020177ac <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 20177ac: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 20177b0: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 20177b4: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <== NOT EXECUTED 20177b8: 80 8e 40 01 btst %i1, %g1 <== NOT EXECUTED 20177bc: 22 80 00 02 be,a 20177c4 <_Objects_Get_next+0x18> <== NOT EXECUTED 20177c0: f2 06 20 08 ld [ %i0 + 8 ], %i1 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 20177c4: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 20177c8: a0 10 63 ff or %g1, 0x3ff, %l0 ! ffff <== NOT EXECUTED 20177cc: c4 16 20 10 lduh [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 20177d0: 82 0e 40 10 and %i1, %l0, %g1 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 20177d4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20177d8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 20177dc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20177e0: 0a 80 00 0b bcs 201780c <_Objects_Get_next+0x60> <== NOT EXECUTED 20177e4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 20177e8: 7f ff d7 c4 call 200d6f8 <_Objects_Get> <== NOT EXECUTED 20177ec: b2 06 60 01 inc %i1 <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 20177f0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 20177f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20177f8: 32 bf ff f6 bne,a 20177d0 <_Objects_Get_next+0x24> <== NOT EXECUTED 20177fc: c4 16 20 10 lduh [ %i0 + 0x10 ], %g2 <== NOT EXECUTED *next_id_p = next_id; 2017800: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 2017804: 81 c7 e0 08 ret <== NOT EXECUTED 2017808: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 201780c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 2017810: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED 2017814: 90 10 20 00 clr %o0 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 2017818: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 201781c: c4 26 c0 00 st %g2, [ %i3 ] <== NOT EXECUTED return 0; } 2017820: 81 c7 e0 08 ret <== NOT EXECUTED 2017824: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020083e8 <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 20083e8: 9d e3 bf 90 save %sp, -112, %sp 20083ec: 92 10 00 18 mov %i0, %o1 Objects_Id tmpId; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 20083f0: 80 a6 60 00 cmp %i1, 0 20083f4: 02 80 00 24 be 2008484 <_Objects_Id_to_name+0x9c> 20083f8: b0 10 20 01 mov 1, %i0 return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 20083fc: 80 a2 60 00 cmp %o1, 0 2008400: 02 80 00 26 be 2008498 <_Objects_Id_to_name+0xb0> 2008404: 03 00 80 6c sethi %hi(0x201b000), %g1 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 2008408: 83 32 60 18 srl %o1, 0x18, %g1 200840c: 82 08 60 07 and %g1, 7, %g1 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 2008410: 84 00 7f ff add %g1, -1, %g2 2008414: 80 a0 a0 03 cmp %g2, 3 2008418: 38 80 00 1b bgu,a 2008484 <_Objects_Id_to_name+0x9c> 200841c: b0 10 20 03 mov 3, %i0 the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 2008420: 85 28 60 02 sll %g1, 2, %g2 2008424: 03 00 80 6c sethi %hi(0x201b000), %g1 2008428: 82 10 62 40 or %g1, 0x240, %g1 ! 201b240 <_Objects_Information_table> 200842c: c4 00 40 02 ld [ %g1 + %g2 ], %g2 2008430: 80 a0 a0 00 cmp %g2, 0 2008434: 02 80 00 16 be 200848c <_Objects_Id_to_name+0xa4> 2008438: 83 32 60 1b srl %o1, 0x1b, %g1 return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 200843c: 83 28 60 02 sll %g1, 2, %g1 2008440: d0 00 80 01 ld [ %g2 + %g1 ], %o0 if ( !information ) 2008444: 80 a2 20 00 cmp %o0, 0 2008448: 02 80 00 0f be 2008484 <_Objects_Id_to_name+0x9c> 200844c: b0 10 20 03 mov 3, %i0 return OBJECTS_INVALID_ID; if ( information->is_string ) 2008450: c2 0a 20 38 ldub [ %o0 + 0x38 ], %g1 2008454: 80 a0 60 00 cmp %g1, 0 2008458: 12 80 00 0e bne 2008490 <_Objects_Id_to_name+0xa8> 200845c: 01 00 00 00 nop return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &ignored_location ); 2008460: 7f ff ff c5 call 2008374 <_Objects_Get> 2008464: 94 07 bf f4 add %fp, -12, %o2 if ( !the_object ) 2008468: 80 a2 20 00 cmp %o0, 0 200846c: 22 80 00 06 be,a 2008484 <_Objects_Id_to_name+0x9c> 2008470: b0 10 20 03 mov 3, %i0 return OBJECTS_INVALID_ID; *name = the_object->name; 2008474: c2 02 20 0c ld [ %o0 + 0xc ], %g1 _Thread_Enable_dispatch(); 2008478: b0 10 20 00 clr %i0 200847c: 40 00 02 77 call 2008e58 <_Thread_Enable_dispatch> 2008480: c2 26 40 00 st %g1, [ %i1 ] 2008484: 81 c7 e0 08 ret 2008488: 81 e8 00 00 restore return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 200848c: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED } 2008490: 81 c7 e0 08 ret <== NOT EXECUTED 2008494: 81 e8 00 00 restore <== NOT EXECUTED Objects_Locations ignored_location; if ( !name ) return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 2008498: c4 00 63 a4 ld [ %g1 + 0x3a4 ], %g2 200849c: d2 00 a0 08 ld [ %g2 + 8 ], %o1 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 20084a0: 83 32 60 18 srl %o1, 0x18, %g1 20084a4: 82 08 60 07 and %g1, 7, %g1 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 20084a8: 84 00 7f ff add %g1, -1, %g2 20084ac: 80 a0 a0 03 cmp %g2, 3 20084b0: 38 bf ff f5 bgu,a 2008484 <_Objects_Id_to_name+0x9c> 20084b4: b0 10 20 03 mov 3, %i0 <== 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 ] ) 20084b8: 10 bf ff db b 2008424 <_Objects_Id_to_name+0x3c> 20084bc: 85 28 60 02 sll %g1, 2, %g2 02007268 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 2007268: 86 10 00 08 mov %o0, %g3 Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == FALSE */ if ( !id ) 200726c: 80 a2 e0 00 cmp %o3, 0 2007270: 02 80 00 20 be 20072f0 <_Objects_Name_to_id_u32+0x88> 2007274: 90 10 20 02 mov 2, %o0 return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 2007278: 80 a2 60 00 cmp %o1, 0 200727c: 22 80 00 1d be,a 20072f0 <_Objects_Name_to_id_u32+0x88> 2007280: 90 10 20 01 mov 1, %o0 return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 2007284: c2 10 e0 10 lduh [ %g3 + 0x10 ], %g1 2007288: 85 28 60 10 sll %g1, 0x10, %g2 200728c: 80 a0 a0 00 cmp %g2, 0 2007290: 22 80 00 18 be,a 20072f0 <_Objects_Name_to_id_u32+0x88> 2007294: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 2007298: 80 a2 a0 00 cmp %o2, 0 200729c: 12 80 00 17 bne 20072f8 <_Objects_Name_to_id_u32+0x90> 20072a0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 20072a4: 89 30 a0 10 srl %g2, 0x10, %g4 20072a8: 80 a1 20 00 cmp %g4, 0 20072ac: 02 80 00 11 be 20072f0 <_Objects_Name_to_id_u32+0x88> 20072b0: 90 10 20 01 mov 1, %o0 if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 20072b4: d0 00 e0 1c ld [ %g3 + 0x1c ], %o0 20072b8: 86 10 20 01 mov 1, %g3 if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; 20072bc: 83 28 e0 02 sll %g3, 2, %g1 20072c0: c4 02 00 01 ld [ %o0 + %g1 ], %g2 if ( !the_object ) 20072c4: 80 a0 a0 00 cmp %g2, 0 20072c8: 02 80 00 06 be 20072e0 <_Objects_Name_to_id_u32+0x78> 20072cc: 86 00 e0 01 inc %g3 continue; if ( name == the_object->name.name_u32 ) { 20072d0: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 20072d4: 80 a0 40 09 cmp %g1, %o1 20072d8: 22 80 00 0f be,a 2007314 <_Objects_Name_to_id_u32+0xac> 20072dc: c2 00 a0 08 ld [ %g2 + 8 ], %g1 search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 20072e0: 80 a0 c0 04 cmp %g3, %g4 20072e4: 08 bf ff f7 bleu 20072c0 <_Objects_Name_to_id_u32+0x58> 20072e8: 83 28 e0 02 sll %g3, 2, %g1 20072ec: 90 10 20 01 mov 1, %o0 name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 20072f0: 81 c3 e0 08 retl 20072f4: 01 00 00 00 nop if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 20072f8: 82 10 63 ff or %g1, 0x3ff, %g1 20072fc: 80 a2 80 01 cmp %o2, %g1 2007300: 02 bf ff e9 be 20072a4 <_Objects_Name_to_id_u32+0x3c> 2007304: 80 a2 a0 01 cmp %o2, 1 2007308: 02 bf ff e7 be 20072a4 <_Objects_Name_to_id_u32+0x3c> 200730c: 90 10 20 01 mov 1, %o0 2007310: 30 bf ff f8 b,a 20072f0 <_Objects_Name_to_id_u32+0x88> the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; 2007314: 90 10 20 00 clr %o0 2007318: 81 c3 e0 08 retl 200731c: c2 22 c0 00 st %g1, [ %o3 ] 02007230 <_Objects_Namespace_remove>: void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 2007230: 9d e3 bf 98 save %sp, -104, %sp /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 2007234: c2 0e 20 38 ldub [ %i0 + 0x38 ], %g1 2007238: 80 a0 60 00 cmp %g1, 0 200723c: 22 80 00 09 be,a 2007260 <_Objects_Namespace_remove+0x30> 2007240: c0 26 60 0c clr [ %i1 + 0xc ] 2007244: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED 2007248: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200724c: 22 80 00 05 be,a 2007260 <_Objects_Namespace_remove+0x30> <== NOT EXECUTED 2007250: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 2007254: 40 00 07 aa call 20090fc <_Workspace_Free> <== NOT EXECUTED 2007258: 01 00 00 00 nop <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; the_object->name.name_u32 = 0; 200725c: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED } 2007260: 81 c7 e0 08 ret 2007264: 81 e8 00 00 restore 02008f60 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 2008f60: 9d e3 bf 98 save %sp, -104, %sp size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 2008f64: d2 16 20 3a lduh [ %i0 + 0x3a ], %o1 2008f68: 40 00 1e 62 call 20108f0 2008f6c: 90 10 00 1a mov %i2, %o0 if ( information->is_string ) { 2008f70: c2 0e 20 38 ldub [ %i0 + 0x38 ], %g1 2008f74: 80 a0 60 00 cmp %g1, 0 2008f78: 12 80 00 21 bne 2008ffc <_Objects_Set_name+0x9c> 2008f7c: a0 02 20 01 add %o0, 1, %l0 strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 2008f80: 03 08 08 08 sethi %hi(0x20202000), %g1 2008f84: 80 a4 20 00 cmp %l0, 0 2008f88: 02 80 00 19 be 2008fec <_Objects_Set_name+0x8c> 2008f8c: 82 10 60 20 or %g1, 0x20, %g1 2008f90: c4 4e 80 00 ldsb [ %i2 ], %g2 2008f94: 03 00 08 08 sethi %hi(0x202000), %g1 2008f98: 87 28 a0 18 sll %g2, 0x18, %g3 2008f9c: 82 10 60 20 or %g1, 0x20, %g1 2008fa0: 80 a4 20 01 cmp %l0, 1 2008fa4: 02 80 00 12 be 2008fec <_Objects_Set_name+0x8c> 2008fa8: 82 10 c0 01 or %g3, %g1, %g1 2008fac: c4 4e a0 01 ldsb [ %i2 + 1 ], %g2 2008fb0: 03 00 00 08 sethi %hi(0x2000), %g1 2008fb4: 85 28 a0 10 sll %g2, 0x10, %g2 2008fb8: 82 10 60 20 or %g1, 0x20, %g1 2008fbc: 84 10 80 03 or %g2, %g3, %g2 2008fc0: 80 a4 20 02 cmp %l0, 2 2008fc4: 02 80 00 0a be 2008fec <_Objects_Set_name+0x8c> 2008fc8: 82 10 80 01 or %g2, %g1, %g1 2008fcc: c2 4e a0 02 ldsb [ %i2 + 2 ], %g1 2008fd0: 80 a4 20 03 cmp %l0, 3 2008fd4: 83 28 60 08 sll %g1, 8, %g1 2008fd8: 84 10 80 01 or %g2, %g1, %g2 2008fdc: 02 80 00 04 be 2008fec <_Objects_Set_name+0x8c> 2008fe0: 82 10 a0 20 or %g2, 0x20, %g1 2008fe4: c2 4e a0 03 ldsb [ %i2 + 3 ], %g1 2008fe8: 82 10 80 01 or %g2, %g1, %g1 2008fec: c2 26 60 0c st %g1, [ %i1 + 0xc ] 2008ff0: b0 10 20 01 mov 1, %i0 ); } return TRUE; } 2008ff4: 81 c7 e0 08 ret 2008ff8: 81 e8 00 00 restore length = strnlen( name, information->name_length ) + 1; if ( information->is_string ) { char *d; d = _Workspace_Allocate( length ); 2008ffc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2009000: 40 00 07 90 call 200ae40 <_Workspace_Allocate> <== NOT EXECUTED 2009004: b0 10 20 00 clr %i0 <== NOT EXECUTED if ( !d ) 2009008: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200900c: 02 bf ff fa be 2008ff4 <_Objects_Set_name+0x94> <== NOT EXECUTED 2009010: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 2009014: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED 2009018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200901c: 02 80 00 06 be 2009034 <_Objects_Set_name+0xd4> <== NOT EXECUTED 2009020: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 2009024: 40 00 07 80 call 200ae24 <_Workspace_Free> <== NOT EXECUTED 2009028: 01 00 00 00 nop <== NOT EXECUTED the_object->name.name_p = NULL; 200902c: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED } strncpy( d, name, length ); 2009030: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 2009034: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2009038: 40 00 1d f4 call 2010808 <== NOT EXECUTED 200903c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED d[ length ] = '\0'; 2009040: c0 2c 40 10 clrb [ %l1 + %l0 ] <== NOT EXECUTED the_object->name.name_p = d; 2009044: e2 26 60 0c st %l1, [ %i1 + 0xc ] <== NOT EXECUTED 2009048: 81 c7 e0 08 ret <== NOT EXECUTED 200904c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED 02007328 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 2007328: 9d e3 bf 98 save %sp, -104, %sp */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( Objects_Id id ) { return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 200732c: c4 06 20 08 ld [ %i0 + 8 ], %g2 /* * 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; 2007330: e0 06 20 14 ld [ %i0 + 0x14 ], %l0 2007334: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 2007338: 03 00 00 3f sethi %hi(0xfc00), %g1 200733c: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2007340: 92 10 00 10 mov %l0, %o1 2007344: a4 08 80 01 and %g2, %g1, %l2 2007348: 40 00 31 57 call 20138a4 <.udiv> 200734c: 90 22 00 12 sub %o0, %l2, %o0 for ( block = 0; block < block_count; block++ ) { 2007350: 80 a2 20 00 cmp %o0, 0 2007354: 02 80 00 12 be 200739c <_Objects_Shrink_information+0x74> 2007358: 84 10 20 00 clr %g2 if ( information->inactive_per_block[ block ] == information->allocation_size ) { 200735c: c6 06 20 30 ld [ %i0 + 0x30 ], %g3 2007360: c2 00 c0 00 ld [ %g3 ], %g1 2007364: 80 a4 00 01 cmp %l0, %g1 2007368: 12 80 00 09 bne 200738c <_Objects_Shrink_information+0x64> 200736c: a2 10 20 04 mov 4, %l1 2007370: 10 80 00 0d b 20073a4 <_Objects_Shrink_information+0x7c> <== NOT EXECUTED 2007374: a2 10 20 00 clr %l1 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 2007378: a4 04 80 10 add %l2, %l0, %l2 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 ) { 200737c: 80 a4 00 01 cmp %l0, %g1 2007380: 02 80 00 09 be 20073a4 <_Objects_Shrink_information+0x7c> 2007384: 82 04 60 04 add %l1, 4, %g1 2007388: a2 10 00 01 mov %g1, %l1 */ index_base = _Objects_Get_index( information->minimum_id ); block_count = ( information->maximum - index_base ) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 200738c: 84 00 a0 01 inc %g2 2007390: 80 a2 00 02 cmp %o0, %g2 2007394: 38 bf ff f9 bgu,a 2007378 <_Objects_Shrink_information+0x50> 2007398: c2 00 c0 11 ld [ %g3 + %l1 ], %g1 200739c: 81 c7 e0 08 ret 20073a0: 81 e8 00 00 restore 20073a4: 03 00 00 3f sethi %hi(0xfc00), %g1 /* * 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; 20073a8: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 20073ac: 10 80 00 0f b 20073e8 <_Objects_Shrink_information+0xc0> 20073b0: a6 10 63 ff or %g1, 0x3ff, %l3 */ do { index = _Objects_Get_index( the_object->id ); if ((index >= index_base) && 20073b4: 82 04 80 01 add %l2, %g1, %g1 20073b8: 80 a0 40 03 cmp %g1, %g3 20073bc: 08 80 00 10 bleu 20073fc <_Objects_Shrink_information+0xd4> 20073c0: 90 10 00 02 mov %g2, %o0 if ( !_Chain_Is_last( &the_object->Node ) ) the_object = (Objects_Control *) the_object->Node.next; else the_object = NULL; _Chain_Extract( &extract_me->Node ); 20073c4: 40 00 10 d0 call 200b704 <_Chain_Extract> 20073c8: e0 00 80 00 ld [ %g2 ], %l0 } else { the_object = (Objects_Control *) the_object->Node.next; } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 20073cc: 80 a4 20 00 cmp %l0, 0 20073d0: 22 80 00 10 be,a 2007410 <_Objects_Shrink_information+0xe8> 20073d4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 20073d8: c2 04 00 00 ld [ %l0 ], %g1 20073dc: 80 a0 60 00 cmp %g1, 0 20073e0: 02 80 00 0b be 200740c <_Objects_Shrink_information+0xe4> 20073e4: 84 10 00 10 mov %l0, %g2 20073e8: c2 00 a0 08 ld [ %g2 + 8 ], %g1 20073ec: 86 08 40 13 and %g1, %l3, %g3 */ do { index = _Objects_Get_index( the_object->id ); if ((index >= index_base) && 20073f0: 80 a0 c0 12 cmp %g3, %l2 20073f4: 3a bf ff f0 bcc,a 20073b4 <_Objects_Shrink_information+0x8c> 20073f8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 the_object = NULL; _Chain_Extract( &extract_me->Node ); } else { the_object = (Objects_Control *) the_object->Node.next; 20073fc: e0 00 80 00 ld [ %g2 ], %l0 } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 2007400: 80 a4 20 00 cmp %l0, 0 2007404: 32 bf ff f6 bne,a 20073dc <_Objects_Shrink_information+0xb4> 2007408: c2 04 00 00 ld [ %l0 ], %g1 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 200740c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2007410: 40 00 07 3b call 20090fc <_Workspace_Free> 2007414: d0 00 40 11 ld [ %g1 + %l1 ], %o0 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 2007418: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive -= information->allocation_size; 200741c: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 2007420: c0 20 80 11 clr [ %g2 + %l1 ] /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 2007424: c6 06 20 34 ld [ %i0 + 0x34 ], %g3 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2007428: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 200742c: c0 20 c0 11 clr [ %g3 + %l1 ] information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2007430: 82 20 40 02 sub %g1, %g2, %g1 2007434: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2007438: 81 c7 e0 08 ret 200743c: 81 e8 00 00 restore 0202460c <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 202460c: 9d e3 bf 98 save %sp, -104, %sp Heap_Get_information_status status; if ( !the_heap ) 2024610: 80 a6 20 00 cmp %i0, 0 2024614: 02 80 00 10 be 2024654 <_Protected_heap_Get_information+0x48> 2024618: 80 a6 60 00 cmp %i1, 0 return false; if ( !the_info ) 202461c: 02 80 00 0e be 2024654 <_Protected_heap_Get_information+0x48> 2024620: 23 00 81 75 sethi %hi(0x205d400), %l1 return false; _RTEMS_Lock_allocator(); 2024624: 7f ff 93 b1 call 20094e8 <_API_Mutex_Lock> 2024628: d0 04 61 dc ld [ %l1 + 0x1dc ], %o0 ! 205d5dc <_RTEMS_Allocator_Mutex> status = _Heap_Get_information( the_heap, the_info ); 202462c: 90 10 00 18 mov %i0, %o0 2024630: 40 00 2a 7e call 202f028 <_Heap_Get_information> 2024634: 92 10 00 19 mov %i1, %o1 2024638: a0 10 00 08 mov %o0, %l0 _RTEMS_Unlock_allocator(); 202463c: 7f ff 93 c1 call 2009540 <_API_Mutex_Unlock> 2024640: d0 04 61 dc ld [ %l1 + 0x1dc ], %o0 if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 2024644: 80 a0 00 10 cmp %g0, %l0 2024648: 82 60 3f ff subx %g0, -1, %g1 202464c: 81 c7 e0 08 ret 2024650: 91 e8 00 01 restore %g0, %g1, %o0 return true; return false; } 2024654: 81 c7 e0 08 ret <== NOT EXECUTED 2024658: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200b4b4 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 200b4b4: 9d e3 bf 90 save %sp, -112, %sp RTEMS_API_Control *api; ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 200b4b8: f0 06 21 68 ld [ %i0 + 0x168 ], %i0 if ( !api ) 200b4bc: 80 a6 20 00 cmp %i0, 0 200b4c0: 02 80 00 1f be 200b53c <_RTEMS_tasks_Post_switch_extension+0x88> 200b4c4: 01 00 00 00 nop * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 200b4c8: 7f ff da 37 call 2001da4 200b4cc: 01 00 00 00 nop signal_set = asr->signals_posted; 200b4d0: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 asr->signals_posted = 0; 200b4d4: c0 26 20 14 clr [ %i0 + 0x14 ] _ISR_Enable( level ); 200b4d8: 7f ff da 37 call 2001db4 200b4dc: 01 00 00 00 nop if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 200b4e0: 80 a4 a0 00 cmp %l2, 0 200b4e4: 32 80 00 04 bne,a 200b4f4 <_RTEMS_tasks_Post_switch_extension+0x40> 200b4e8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 200b4ec: 81 c7 e0 08 ret <== NOT EXECUTED 200b4f0: 81 e8 00 00 restore <== NOT EXECUTED return; asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200b4f4: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 200b4f8: 82 00 60 01 inc %g1 rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200b4fc: a2 07 bf f4 add %fp, -12, %l1 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 200b500: c2 26 20 1c st %g1, [ %i0 + 0x1c ] rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200b504: 94 10 00 11 mov %l1, %o2 200b508: 21 00 00 3f sethi %hi(0xfc00), %l0 200b50c: 40 00 04 92 call 200c754 200b510: 92 14 23 ff or %l0, 0x3ff, %o1 ! ffff (*asr->handler)( signal_set ); 200b514: c2 06 20 0c ld [ %i0 + 0xc ], %g1 200b518: 9f c0 40 00 call %g1 200b51c: 90 10 00 12 mov %l2, %o0 asr->nest_level -= 1; 200b520: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200b524: d0 07 bf f4 ld [ %fp + -12 ], %o0 asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); (*asr->handler)( signal_set ); asr->nest_level -= 1; 200b528: 82 00 7f ff add %g1, -1, %g1 rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200b52c: 92 14 23 ff or %l0, 0x3ff, %o1 asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); (*asr->handler)( signal_set ); asr->nest_level -= 1; 200b530: c2 26 20 1c st %g1, [ %i0 + 0x1c ] rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 200b534: 40 00 04 88 call 200c754 200b538: 94 10 00 11 mov %l1, %o2 200b53c: 81 c7 e0 08 ret 200b540: 81 e8 00 00 restore 02006e3c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 2006e3c: 9d e3 bf 90 save %sp, -112, %sp 2006e40: 11 00 80 6f sethi %hi(0x201bc00), %o0 2006e44: 92 10 00 18 mov %i0, %o1 2006e48: 90 12 20 14 or %o0, 0x14, %o0 2006e4c: 40 00 07 f3 call 2008e18 <_Objects_Get> 2006e50: 94 07 bf f4 add %fp, -12, %o2 /* * 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 ) { 2006e54: c2 07 bf f4 ld [ %fp + -12 ], %g1 2006e58: 80 a0 60 00 cmp %g1, 0 2006e5c: 12 80 00 11 bne 2006ea0 <_Rate_monotonic_Timeout+0x64> 2006e60: b0 10 00 08 mov %o0, %i0 case OBJECTS_LOCAL: the_thread = the_period->owner; 2006e64: d0 02 20 50 ld [ %o0 + 0x50 ], %o0 if ( _States_Is_waiting_for_period( the_thread->current_state ) && 2006e68: 03 00 00 10 sethi %hi(0x4000), %g1 2006e6c: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 2006e70: 80 88 80 01 btst %g2, %g1 2006e74: 32 80 00 0d bne,a 2006ea8 <_Rate_monotonic_Timeout+0x6c> 2006e78: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 _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 ) { 2006e7c: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 2006e80: 80 a0 60 01 cmp %g1, 1 2006e84: 02 80 00 12 be 2006ecc <_Rate_monotonic_Timeout+0x90> 2006e88: 82 10 20 04 mov 4, %g1 _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 2006e8c: c2 26 20 38 st %g1, [ %i0 + 0x38 ] */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2006e90: 05 00 80 6f sethi %hi(0x201bc00), %g2 2006e94: c2 00 a1 90 ld [ %g2 + 0x190 ], %g1 ! 201bd90 <_Thread_Dispatch_disable_level> 2006e98: 82 00 7f ff add %g1, -1, %g1 2006e9c: c2 20 a1 90 st %g1, [ %g2 + 0x190 ] 2006ea0: 81 c7 e0 08 ret 2006ea4: 81 e8 00 00 restore 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 ) && 2006ea8: c2 06 20 08 ld [ %i0 + 8 ], %g1 2006eac: 80 a0 80 01 cmp %g2, %g1 2006eb0: 32 bf ff f4 bne,a 2006e80 <_Rate_monotonic_Timeout+0x44> 2006eb4: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2006eb8: 13 04 00 ff sethi %hi(0x1003fc00), %o1 2006ebc: 40 00 09 41 call 20093c0 <_Thread_Clear_state> 2006ec0: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); 2006ec4: 10 80 00 05 b 2006ed8 <_Rate_monotonic_Timeout+0x9c> 2006ec8: 90 10 00 18 mov %i0, %o0 _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; 2006ecc: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 2006ed0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 2006ed4: c2 26 20 38 st %g1, [ %i0 + 0x38 ] <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 2006ed8: 7f ff fe 2e call 2006790 <_Rate_monotonic_Initiate_statistics> 2006edc: 01 00 00 00 nop Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2006ee0: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006ee4: 92 06 20 10 add %i0, 0x10, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2006ee8: c2 26 20 1c st %g1, [ %i0 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006eec: 11 00 80 6f sethi %hi(0x201bc00), %o0 2006ef0: 40 00 0f e8 call 200ae90 <_Watchdog_Insert> 2006ef4: 90 12 22 74 or %o0, 0x274, %o0 ! 201be74 <_Watchdog_Ticks_chain> 2006ef8: 30 bf ff e6 b,a 2006e90 <_Rate_monotonic_Timeout+0x54> 0200784c <_Thread_Create_idle>: * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { 200784c: 9d e3 bf 78 save %sp, -136, %sp * This routine allocates an internal thread. */ RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); 2007850: 35 00 80 5d sethi %hi(0x2017400), %i2 2007854: 7f ff fc bd call 2006b48 <_Objects_Allocate> 2007858: 90 16 a0 00 mov %i2, %o0 ! 2017400 <_Thread_Internal_information> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200785c: 37 00 80 5c sethi %hi(0x2017000), %i3 2007860: c2 06 e2 a0 ld [ %i3 + 0x2a0 ], %g1 ! 20172a0 <_Thread_Dispatch_disable_level> /* * 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(); 2007864: 39 00 80 5d sethi %hi(0x2017400), %i4 2007868: 82 00 60 01 inc %g1 200786c: d0 27 20 4c st %o0, [ %i4 + 0x4c ] 2007870: c2 26 e2 a0 st %g1, [ %i3 + 0x2a0 ] * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( 2007874: 33 00 80 5c sethi %hi(0x2017000), %i1 2007878: c2 06 63 3c ld [ %i1 + 0x33c ], %g1 ! 201733c <_Configuration_Table> 200787c: 05 00 80 59 sethi %hi(0x2016400), %g2 2007880: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 2007884: d6 00 a0 f0 ld [ %g2 + 0xf0 ], %o3 2007888: 03 00 80 56 sethi %hi(0x2015800), %g1 200788c: 82 10 61 78 or %g1, 0x178, %g1 ! 2015978 <_Status_Object_name_errors_to_status+0x18> 2007890: c2 27 bf f4 st %g1, [ %fp + -12 ] 2007894: 80 a2 c0 03 cmp %o3, %g3 2007898: 1a 80 00 03 bcc 20078a4 <_Thread_Create_idle+0x58> 200789c: d2 07 20 4c ld [ %i4 + 0x4c ], %o1 20078a0: 96 10 00 03 mov %g3, %o3 <== NOT EXECUTED 20078a4: 03 00 80 59 sethi %hi(0x2016400), %g1 20078a8: da 08 60 f4 ldub [ %g1 + 0xf4 ], %o5 ! 20164f4 20078ac: 84 07 bf f4 add %fp, -12, %g2 20078b0: 82 10 20 01 mov 1, %g1 20078b4: c0 23 a0 60 clr [ %sp + 0x60 ] 20078b8: c0 23 a0 64 clr [ %sp + 0x64 ] 20078bc: c0 23 a0 68 clr [ %sp + 0x68 ] 20078c0: 90 16 a0 00 mov %i2, %o0 20078c4: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 20078c8: c4 23 a0 6c st %g2, [ %sp + 0x6c ] 20078cc: 94 10 20 00 clr %o2 20078d0: 40 00 00 c3 call 2007bdc <_Thread_Initialize> 20078d4: 98 10 20 00 clr %o4 * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; _Thread_Start( 20078d8: c4 06 63 3c ld [ %i1 + 0x33c ], %g2 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 20078dc: c2 06 e2 a0 ld [ %i3 + 0x2a0 ], %g1 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 20078e0: c6 07 20 4c ld [ %i4 + 0x4c ], %g3 20078e4: 82 00 7f ff add %g1, -1, %g1 _Thread_Executing = _Thread_Idle; _Thread_Start( 20078e8: f4 00 a0 14 ld [ %g2 + 0x14 ], %i2 20078ec: c2 26 e2 a0 st %g1, [ %i3 + 0x2a0 ] /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 20078f0: 05 00 80 5c sethi %hi(0x2017000), %g2 20078f4: 03 00 80 5c sethi %hi(0x2017000), %g1 _Thread_Executing = _Thread_Idle; _Thread_Start( 20078f8: b0 10 00 03 mov %g3, %i0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 20078fc: c6 20 a3 64 st %g3, [ %g2 + 0x364 ] 2007900: c6 20 63 30 st %g3, [ %g1 + 0x330 ] _Thread_Executing = _Thread_Idle; _Thread_Start( 2007904: b2 10 20 00 clr %i1 2007908: b6 10 20 00 clr %i3 200790c: 40 00 03 e0 call 200888c <_Thread_Start> 2007910: 99 e8 20 00 restore %g0, 0, %o4 2007914: 01 00 00 00 nop 02007b2c <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 2007b2c: 86 10 00 08 mov %o0, %g3 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 ) ) { 2007b30: 80 a2 20 00 cmp %o0, 0 2007b34: 02 80 00 1d be 2007ba8 <_Thread_Get+0x7c> 2007b38: 94 10 00 09 mov %o1, %o2 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 2007b3c: 83 32 20 18 srl %o0, 0x18, %g1 2007b40: 82 08 60 07 and %g1, 7, %g1 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 2007b44: 84 00 7f ff add %g1, -1, %g2 2007b48: 80 a0 a0 03 cmp %g2, 3 2007b4c: 38 80 00 14 bgu,a 2007b9c <_Thread_Get+0x70> 2007b50: 82 10 20 01 mov 1, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 2007b54: 89 32 20 1b srl %o0, 0x1b, %g4 2007b58: 80 a1 20 01 cmp %g4, 1 2007b5c: 12 80 00 0f bne 2007b98 <_Thread_Get+0x6c> 2007b60: 85 28 60 02 sll %g1, 2, %g2 *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 2007b64: 03 00 80 5c sethi %hi(0x2017000), %g1 2007b68: 82 10 62 00 or %g1, 0x200, %g1 ! 2017200 <_Objects_Information_table> 2007b6c: c2 00 40 02 ld [ %g1 + %g2 ], %g1 if ( !api_information ) { 2007b70: 80 a0 60 00 cmp %g1, 0 2007b74: 22 80 00 17 be,a 2007bd0 <_Thread_Get+0xa4> 2007b78: c8 22 80 00 st %g4, [ %o2 ] *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; 2007b7c: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 2007b80: 80 a2 20 00 cmp %o0, 0 2007b84: 02 80 00 11 be 2007bc8 <_Thread_Get+0x9c> 2007b88: 92 10 00 03 mov %g3, %o1 *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 2007b8c: 82 13 c0 00 mov %o7, %g1 2007b90: 7f ff fd 56 call 20070e8 <_Objects_Get> 2007b94: 9e 10 40 00 mov %g1, %o7 goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; 2007b98: 82 10 20 01 mov 1, %g1 2007b9c: 90 10 20 00 clr %o0 2007ba0: 81 c3 e0 08 retl 2007ba4: c2 22 80 00 st %g1, [ %o2 ] rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2007ba8: 03 00 80 5c sethi %hi(0x2017000), %g1 2007bac: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 20172a0 <_Thread_Dispatch_disable_level> 2007bb0: 84 00 a0 01 inc %g2 2007bb4: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] 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; 2007bb8: 03 00 80 5c sethi %hi(0x2017000), %g1 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; 2007bbc: c0 22 40 00 clr [ %o1 ] tp = _Thread_Executing; 2007bc0: 81 c3 e0 08 retl 2007bc4: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 2007bc8: 81 c3 e0 08 retl <== NOT EXECUTED 2007bcc: c8 22 80 00 st %g4, [ %o2 ] <== NOT EXECUTED goto done; } api_information = _Objects_Information_table[ the_api ]; if ( !api_information ) { *location = OBJECTS_ERROR; 2007bd0: 81 c3 e0 08 retl 2007bd4: 90 10 20 00 clr %o0 0200cb08 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 200cb08: 9d e3 bf 98 save %sp, -104, %sp #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 200cb0c: 03 00 80 5c sethi %hi(0x2017000), %g1 200cb10: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 2017364 <_Thread_Executing> /* * Some CPUs need to tinker with the call frame or registers when the * thread actually begins to execute for the first time. This is a * hook point where the port gets a shot at doing whatever it requires. */ _Context_Initialization_at_thread_begin(); 200cb14: 3f 00 80 32 sethi %hi(0x200c800), %i7 200cb18: be 17 e3 08 or %i7, 0x308, %i7 ! 200cb08 <_Thread_Handler> /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 200cb1c: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0 _ISR_Set_level(level); 200cb20: 7f ff d4 a5 call 2001db4 200cb24: 91 2a 20 08 sll %o0, 8, %o0 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 200cb28: 07 00 80 5b sethi %hi(0x2016c00), %g3 doneConstructors = 1; 200cb2c: 82 10 20 01 mov 1, %g1 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 200cb30: e4 08 e3 b8 ldub [ %g3 + 0x3b8 ], %l2 doneConstructors = 1; 200cb34: c2 28 e3 b8 stb %g1, [ %g3 + 0x3b8 ] #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 ) ) { 200cb38: c4 04 21 60 ld [ %l0 + 0x160 ], %g2 200cb3c: 80 a0 a0 00 cmp %g2, 0 200cb40: 02 80 00 0b be 200cb6c <_Thread_Handler+0x64> 200cb44: 23 00 80 5c sethi %hi(0x2017000), %l1 #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 ); 200cb48: d0 04 63 28 ld [ %l1 + 0x328 ], %o0 ! 2017328 <_Thread_Allocated_fp> 200cb4c: 80 a4 00 08 cmp %l0, %o0 200cb50: 02 80 00 07 be 200cb6c <_Thread_Handler+0x64> 200cb54: 80 a2 20 00 cmp %o0, 0 if ( _Thread_Allocated_fp != NULL ) 200cb58: 22 80 00 05 be,a 200cb6c <_Thread_Handler+0x64> 200cb5c: e0 24 63 28 st %l0, [ %l1 + 0x328 ] _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 200cb60: 7f ff f1 a5 call 20091f4 <_CPU_Context_save_fp> 200cb64: 90 02 21 60 add %o0, 0x160, %o0 _Thread_Allocated_fp = executing; 200cb68: e0 24 63 28 st %l0, [ %l1 + 0x328 ] * 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 ); 200cb6c: 7f ff f0 06 call 2008b84 <_User_extensions_Thread_begin> 200cb70: 90 10 00 10 mov %l0, %o0 /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 200cb74: 7f ff eb e0 call 2007af4 <_Thread_Enable_dispatch> 200cb78: 01 00 00 00 nop /* * _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) */ 200cb7c: 83 2c a0 18 sll %l2, 0x18, %g1 200cb80: 80 a0 60 00 cmp %g1, 0 200cb84: 02 80 00 1e be 200cbfc <_Thread_Handler+0xf4> 200cb88: 01 00 00 00 nop #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 200cb8c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 200cb90: 80 a0 60 01 cmp %g1, 1 200cb94: 22 80 00 21 be,a 200cc18 <_Thread_Handler+0x110> 200cb98: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 200cb9c: 80 a0 60 01 cmp %g1, 1 200cba0: 1a 80 00 0c bcc 200cbd0 <_Thread_Handler+0xc8> 200cba4: 80 a0 60 02 cmp %g1, 2 case THREAD_START_NUMERIC: executing->Wait.return_argument = 200cba8: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 200cbac: 9f c0 40 00 call %g1 200cbb0: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 200cbb4: d0 24 20 28 st %o0, [ %l0 + 0x28 ] * 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 ); 200cbb8: 7f ff f0 07 call 2008bd4 <_User_extensions_Thread_exitted> 200cbbc: 90 10 00 10 mov %l0, %o0 _Internal_error_Occurred( 200cbc0: 90 10 20 00 clr %o0 200cbc4: 92 10 20 01 mov 1, %o1 200cbc8: 7f ff e7 b0 call 2006a88 <_Internal_error_Occurred> 200cbcc: 94 10 20 06 mov 6, %o2 #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 200cbd0: 22 80 00 16 be,a 200cc28 <_Thread_Handler+0x120> <== NOT EXECUTED 200cbd4: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 200cbd8: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 200cbdc: 12 bf ff f7 bne 200cbb8 <_Thread_Handler+0xb0> <== NOT EXECUTED 200cbe0: 01 00 00 00 nop <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 200cbe4: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 200cbe8: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 <== NOT EXECUTED 200cbec: 9f c0 40 00 call %g1 <== NOT EXECUTED 200cbf0: d2 04 20 a4 ld [ %l0 + 0xa4 ], %o1 <== NOT EXECUTED 200cbf4: 10 bf ff f1 b 200cbb8 <_Thread_Handler+0xb0> <== NOT EXECUTED 200cbf8: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== 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 (); 200cbfc: 40 00 26 05 call 2016410 <_init> 200cc00: 01 00 00 00 nop #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 200cc04: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 200cc08: 80 a0 60 01 cmp %g1, 1 200cc0c: 12 bf ff e5 bne 200cba0 <_Thread_Handler+0x98> 200cc10: 01 00 00 00 nop (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = 200cc14: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 200cc18: 9f c0 40 00 call %g1 <== NOT EXECUTED 200cc1c: d0 04 20 a4 ld [ %l0 + 0xa4 ], %o0 <== NOT EXECUTED 200cc20: 10 bf ff e6 b 200cbb8 <_Thread_Handler+0xb0> <== NOT EXECUTED 200cc24: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED (*(Thread_Entry_pointer) executing->Start.entry_point)( executing->Start.pointer_argument ); break; case THREAD_START_BOTH_POINTER_FIRST: executing->Wait.return_argument = 200cc28: d0 04 20 a4 ld [ %l0 + 0xa4 ], %o0 <== NOT EXECUTED 200cc2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200cc30: d2 04 20 a8 ld [ %l0 + 0xa8 ], %o1 <== NOT EXECUTED 200cc34: 10 bf ff e1 b 200cbb8 <_Thread_Handler+0xb0> <== NOT EXECUTED 200cc38: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED 02007bdc <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2007bdc: 9d e3 bf 98 save %sp, -104, %sp 2007be0: c2 07 a0 6c ld [ %fp + 0x6c ], %g1 /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 2007be4: 80 a6 a0 00 cmp %i2, 0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2007be8: e4 00 40 00 ld [ %g1 ], %l2 2007bec: e6 07 a0 60 ld [ %fp + 0x60 ], %l3 /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 2007bf0: 02 80 00 69 be 2007d94 <_Thread_Initialize+0x1b8> 2007bf4: e2 0f a0 5f ldub [ %fp + 0x5f ], %l1 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; 2007bf8: c0 2e 60 c0 clrb [ %i1 + 0xc0 ] <== NOT EXECUTED 2007bfc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 2007c00: f4 26 60 c8 st %i2, [ %i1 + 0xc8 ] the_stack->size = size; 2007c04: d0 26 60 c4 st %o0, [ %i1 + 0xc4 ] /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 2007c08: 80 8f 20 ff btst 0xff, %i4 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) { _Thread_Stack_Free( the_thread ); return FALSE; 2007c0c: b4 10 20 00 clr %i2 /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 2007c10: 12 80 00 43 bne 2007d1c <_Thread_Initialize+0x140> 2007c14: 82 10 20 00 clr %g1 /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2007c18: 37 00 80 5c sethi %hi(0x2017000), %i3 2007c1c: d0 06 e3 44 ld [ %i3 + 0x344 ], %o0 ! 2017344 <_Thread_Maximum_extensions> } else fp_area = NULL; the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 2007c20: c2 26 60 cc st %g1, [ %i1 + 0xcc ] fp_area = _Context_Fp_start( fp_area, 0 ); } else fp_area = NULL; the_thread->fp_context = fp_area; 2007c24: c2 26 61 60 st %g1, [ %i1 + 0x160 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2007c28: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 2007c2c: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 2007c30: c0 26 60 68 clr [ %i1 + 0x68 ] the_watchdog->user_data = user_data; 2007c34: c0 26 60 6c clr [ %i1 + 0x6c ] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 2007c38: c0 26 61 64 clr [ %i1 + 0x164 ] /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2007c3c: 80 a2 20 00 cmp %o0, 0 2007c40: 12 80 00 41 bne 2007d44 <_Thread_Initialize+0x168> 2007c44: b8 16 e3 44 or %i3, 0x344, %i4 return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 2007c48: c0 26 61 74 clr [ %i1 + 0x174 ] 2007c4c: a0 10 20 00 clr %l0 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2007c50: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 2007c54: e2 2e 60 ac stb %l1, [ %i1 + 0xac ] the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2007c58: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ] switch ( budget_algorithm ) { 2007c5c: 80 a4 e0 02 cmp %l3, 2 2007c60: 12 80 00 05 bne 2007c74 <_Thread_Initialize+0x98> 2007c64: e6 26 60 b0 st %l3, [ %i1 + 0xb0 ] 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; 2007c68: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 2007c6c: c4 00 61 f8 ld [ %g1 + 0x1f8 ], %g2 ! 20171f8 <_Thread_Ticks_per_timeslice> <== NOT EXECUTED 2007c70: c4 26 60 78 st %g2, [ %i1 + 0x78 ] <== NOT EXECUTED break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 2007c74: c2 07 a0 68 ld [ %fp + 0x68 ], %g1 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 ); 2007c78: 92 10 00 1d mov %i5, %o1 break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 2007c7c: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->current_state = STATES_DORMANT; 2007c80: 82 10 20 01 mov 1, %g1 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 ); 2007c84: 90 10 00 19 mov %i1, %o0 break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 2007c88: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; 2007c8c: c0 26 60 44 clr [ %i1 + 0x44 ] the_thread->resource_count = 0; 2007c90: c0 26 60 1c clr [ %i1 + 0x1c ] the_thread->suspend_count = 0; 2007c94: c0 26 60 70 clr [ %i1 + 0x70 ] the_thread->real_priority = priority; 2007c98: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2007c9c: 40 00 02 1a call 2008504 <_Thread_Set_priority> 2007ca0: fa 26 60 bc st %i5, [ %i1 + 0xbc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2007ca4: c4 06 60 08 ld [ %i1 + 8 ], %g2 2007ca8: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 2007cac: 03 00 00 3f sethi %hi(0xfc00), %g1 2007cb0: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2007cb4: 84 08 80 01 and %g2, %g1, %g2 2007cb8: 85 28 a0 02 sll %g2, 2, %g2 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 2007cbc: e4 26 60 0c st %l2, [ %i1 + 0xc ] /* * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 2007cc0: c0 26 60 84 clr [ %i1 + 0x84 ] the_thread->cpu_time_used.tv_nsec = 0; 2007cc4: c0 26 60 88 clr [ %i1 + 0x88 ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2007cc8: f2 20 c0 02 st %i1, [ %g3 + %g2 ] * 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 ); 2007ccc: 90 10 00 19 mov %i1, %o0 2007cd0: 40 00 03 e9 call 2008c74 <_User_extensions_Thread_create> 2007cd4: b0 10 20 01 mov 1, %i0 if ( !extension_status ) { 2007cd8: 80 8a 20 ff btst 0xff, %o0 2007cdc: 12 80 00 0e bne 2007d14 <_Thread_Initialize+0x138> 2007ce0: 80 a4 20 00 cmp %l0, 0 if ( extensions_area ) 2007ce4: 02 80 00 05 be 2007cf8 <_Thread_Initialize+0x11c> <== NOT EXECUTED 2007ce8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 2007cec: 40 00 05 04 call 20090fc <_Workspace_Free> <== NOT EXECUTED 2007cf0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 2007cf4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2007cf8: 02 80 00 05 be 2007d0c <_Thread_Initialize+0x130> <== NOT EXECUTED 2007cfc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 2007d00: 40 00 04 ff call 20090fc <_Workspace_Free> <== NOT EXECUTED 2007d04: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED #endif _Thread_Stack_Free( the_thread ); 2007d08: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2007d0c: 40 00 02 ba call 20087f4 <_Thread_Stack_Free> <== NOT EXECUTED 2007d10: b0 10 20 00 clr %i0 <== NOT EXECUTED return FALSE; } return TRUE; } 2007d14: 81 c7 e0 08 ret 2007d18: 81 e8 00 00 restore */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 2007d1c: 40 00 04 ff call 2009118 <_Workspace_Allocate> 2007d20: 90 10 20 88 mov 0x88, %o0 if ( !fp_area ) { 2007d24: b4 92 20 00 orcc %o0, 0, %i2 2007d28: 12 bf ff bc bne 2007c18 <_Thread_Initialize+0x3c> 2007d2c: 82 10 00 1a mov %i2, %g1 _Thread_Stack_Free( the_thread ); 2007d30: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2007d34: 40 00 02 b0 call 20087f4 <_Thread_Stack_Free> <== NOT EXECUTED 2007d38: b0 10 20 00 clr %i0 <== NOT EXECUTED 2007d3c: 81 c7 e0 08 ret <== NOT EXECUTED 2007d40: 81 e8 00 00 restore <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 2007d44: 90 02 20 01 inc %o0 2007d48: 40 00 04 f4 call 2009118 <_Workspace_Allocate> 2007d4c: 91 2a 20 02 sll %o0, 2, %o0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 2007d50: a0 92 20 00 orcc %o0, 0, %l0 2007d54: 02 80 00 1b be 2007dc0 <_Thread_Initialize+0x1e4> 2007d58: c2 06 e3 44 ld [ %i3 + 0x344 ], %g1 * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 2007d5c: 80 a0 7f ff cmp %g1, -1 2007d60: 02 bf ff bc be 2007c50 <_Thread_Initialize+0x74> 2007d64: e0 26 61 74 st %l0, [ %i1 + 0x174 ] 2007d68: 86 10 20 00 clr %g3 2007d6c: 88 10 00 10 mov %l0, %g4 2007d70: c4 07 00 00 ld [ %i4 ], %g2 the_thread->extensions[i] = NULL; 2007d74: 83 28 e0 02 sll %g3, 2, %g1 * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 2007d78: 86 00 e0 01 inc %g3 2007d7c: 84 00 a0 01 inc %g2 2007d80: 80 a0 80 03 cmp %g2, %g3 2007d84: 18 bf ff fb bgu 2007d70 <_Thread_Initialize+0x194> 2007d88: c0 21 00 01 clr [ %g4 + %g1 ] * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2007d8c: 10 bf ff b2 b 2007c54 <_Thread_Initialize+0x78> 2007d90: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 */ if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 2007d94: 90 10 00 19 mov %i1, %o0 2007d98: 40 00 02 7b call 2008784 <_Thread_Stack_Allocate> 2007d9c: 92 10 00 1b mov %i3, %o1 if ( !actual_stack_size || actual_stack_size < stack_size ) 2007da0: 80 a2 20 00 cmp %o0, 0 2007da4: 02 80 00 0e be 2007ddc <_Thread_Initialize+0x200> 2007da8: 80 a6 c0 08 cmp %i3, %o0 2007dac: 18 80 00 0c bgu 2007ddc <_Thread_Initialize+0x200> 2007db0: 82 10 20 01 mov 1, %g1 return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; 2007db4: f4 06 60 d0 ld [ %i1 + 0xd0 ], %i2 the_thread->Start.core_allocated_stack = TRUE; 2007db8: 10 bf ff 92 b 2007c00 <_Thread_Initialize+0x24> 2007dbc: c2 2e 60 c0 stb %g1, [ %i1 + 0xc0 ] (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 2007dc0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2007dc4: 02 80 00 04 be 2007dd4 <_Thread_Initialize+0x1f8> <== NOT EXECUTED 2007dc8: 01 00 00 00 nop <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 2007dcc: 40 00 04 cc call 20090fc <_Workspace_Free> <== NOT EXECUTED 2007dd0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED #endif _Thread_Stack_Free( the_thread ); 2007dd4: 40 00 02 88 call 20087f4 <_Thread_Stack_Free> <== NOT EXECUTED 2007dd8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2007ddc: 81 c7 e0 08 ret 2007de0: 91 e8 20 00 restore %g0, 0, %o0 0200ce88 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 200ce88: 9d e3 bf 98 save %sp, -104, %sp the_thread->resource_count = 0; 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; 200ce8c: c4 1e 20 b0 ldd [ %i0 + 0xb0 ], %g2 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; 200ce90: c2 0e 20 ac ldub [ %i0 + 0xac ], %g1 the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 200ce94: c4 26 20 7c st %g2, [ %i0 + 0x7c ] 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; 200ce98: c2 2e 20 76 stb %g1, [ %i0 + 0x76 ] the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; 200ce9c: c6 26 20 80 st %g3, [ %i0 + 0x80 ] the_thread->Start.pointer_argument = pointer_argument; 200cea0: f2 26 20 a4 st %i1, [ %i0 + 0xa4 ] the_thread->Start.numeric_argument = numeric_argument; 200cea4: f4 26 20 a8 st %i2, [ %i0 + 0xa8 ] Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; 200cea8: c0 26 20 1c clr [ %i0 + 0x1c ] the_thread->suspend_count = 0; 200ceac: c0 26 20 70 clr [ %i0 + 0x70 ] 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 ) ) { 200ceb0: 7f ff f0 1b call 2008f1c <_Thread_queue_Extract_with_proxy> 200ceb4: 90 10 00 18 mov %i0, %o0 200ceb8: 80 8a 20 ff btst 0xff, %o0 200cebc: 32 80 00 07 bne,a 200ced8 <_Thread_Reset+0x50> 200cec0: f2 06 20 bc ld [ %i0 + 0xbc ], %i1 if ( _Watchdog_Is_active( &the_thread->Timer ) ) 200cec4: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200cec8: 80 a0 60 02 cmp %g1, 2 200cecc: 02 80 00 0c be 200cefc <_Thread_Reset+0x74> 200ced0: 01 00 00 00 nop (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 200ced4: f2 06 20 bc ld [ %i0 + 0xbc ], %i1 200ced8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 200cedc: 80 a0 40 19 cmp %g1, %i1 200cee0: 02 80 00 05 be 200cef4 <_Thread_Reset+0x6c> 200cee4: 01 00 00 00 nop the_thread->real_priority = the_thread->Start.initial_priority; 200cee8: f2 26 20 18 st %i1, [ %i0 + 0x18 ] _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 200ceec: 7f ff f0 93 call 2009138 <_Thread_Set_priority> 200cef0: 81 e8 00 00 restore 200cef4: 81 c7 e0 08 ret 200cef8: 81 e8 00 00 restore 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 ); 200cefc: 7f ff f3 41 call 2009c00 <_Watchdog_Remove> <== NOT EXECUTED 200cf00: 90 06 20 48 add %i0, 0x48, %o0 <== NOT EXECUTED } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 200cf04: 10 bf ff f5 b 200ced8 <_Thread_Reset+0x50> <== NOT EXECUTED 200cf08: f2 06 20 bc ld [ %i0 + 0xbc ], %i1 <== NOT EXECUTED 0200c13c <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 200c13c: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 200c140: 03 00 80 5c sethi %hi(0x2017000), %g1 200c144: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 2017364 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 200c148: 7f ff d7 17 call 2001da4 200c14c: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 200c150: b0 10 00 08 mov %o0, %i0 if ( _Chain_Has_only_one_node( ready ) ) { 200c154: c4 04 40 00 ld [ %l1 ], %g2 200c158: c2 04 60 08 ld [ %l1 + 8 ], %g1 200c15c: 80 a0 80 01 cmp %g2, %g1 200c160: 02 80 00 18 be 200c1c0 <_Thread_Reset_timeslice+0x84> 200c164: 82 04 60 04 add %l1, 4, %g1 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 200c168: c6 04 00 00 ld [ %l0 ], %g3 previous = the_node->previous; 200c16c: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 200c170: c6 20 80 00 st %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200c174: c2 24 00 00 st %g1, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200c178: c4 20 e0 04 st %g2, [ %g3 + 4 ] ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 200c17c: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 200c180: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200c184: c2 24 20 04 st %g1, [ %l0 + 4 ] 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; 200c188: e0 20 40 00 st %l0, [ %g1 ] return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 200c18c: 7f ff d7 0a call 2001db4 200c190: 01 00 00 00 nop 200c194: 7f ff d7 04 call 2001da4 200c198: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 200c19c: 07 00 80 5c sethi %hi(0x2017000), %g3 200c1a0: c2 00 e3 30 ld [ %g3 + 0x330 ], %g1 ! 2017330 <_Thread_Heir> 200c1a4: 80 a4 00 01 cmp %l0, %g1 200c1a8: 02 80 00 08 be 200c1c8 <_Thread_Reset_timeslice+0x8c> 200c1ac: 84 10 20 01 mov 1, %g2 _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = TRUE; 200c1b0: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 200c1b4: c4 28 63 74 stb %g2, [ %g1 + 0x374 ] ! 2017374 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 200c1b8: 7f ff d6 ff call 2001db4 <== NOT EXECUTED 200c1bc: 81 e8 00 00 restore <== NOT EXECUTED executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { _ISR_Enable( level ); 200c1c0: 7f ff d6 fd call 2001db4 200c1c4: 81 e8 00 00 restore _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 200c1c8: c2 04 40 00 ld [ %l1 ], %g1 200c1cc: c2 20 e3 30 st %g1, [ %g3 + 0x330 ] _Context_Switch_necessary = TRUE; 200c1d0: 03 00 80 5c sethi %hi(0x2017000), %g1 200c1d4: c4 28 63 74 stb %g2, [ %g1 + 0x374 ] ! 2017374 <_Context_Switch_necessary> _ISR_Enable( level ); 200c1d8: 7f ff d6 f7 call 2001db4 200c1dc: 81 e8 00 00 restore 200c1e0: 01 00 00 00 nop 02009e4c <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 2009e4c: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 2009e50: 7f ff e2 f2 call 2002a18 2009e54: 01 00 00 00 nop 2009e58: a0 10 00 08 mov %o0, %l0 if ( force == TRUE ) 2009e5c: 80 8e 60 ff btst 0xff, %i1 2009e60: 22 80 00 0d be,a 2009e94 <_Thread_Resume+0x48> 2009e64: c2 06 20 70 ld [ %i0 + 0x70 ], %g1 <== NOT EXECUTED the_thread->suspend_count = 0; 2009e68: c0 26 20 70 clr [ %i0 + 0x70 ] if ( the_thread->suspend_count > 0 ) { _ISR_Enable( level ); return; } current_state = the_thread->current_state; 2009e6c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 if ( current_state & STATES_SUSPENDED ) { 2009e70: 80 88 60 02 btst 2, %g1 2009e74: 02 80 00 06 be 2009e8c <_Thread_Resume+0x40> 2009e78: 01 00 00 00 nop RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 2009e7c: 82 08 7f fd and %g1, -3, %g1 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 2009e80: 80 a0 60 00 cmp %g1, 0 2009e84: 02 80 00 0a be 2009eac <_Thread_Resume+0x60> 2009e88: c2 26 20 10 st %g1, [ %i0 + 0x10 ] _Context_Switch_necessary = TRUE; } } } _ISR_Enable( level ); 2009e8c: 7f ff e2 e7 call 2002a28 2009e90: 91 e8 00 10 restore %g0, %l0, %o0 _ISR_Disable( level ); if ( force == TRUE ) the_thread->suspend_count = 0; else the_thread->suspend_count--; 2009e94: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 2009e98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009e9c: 02 bf ff f4 be 2009e6c <_Thread_Resume+0x20> <== NOT EXECUTED 2009ea0: c2 26 20 70 st %g1, [ %i0 + 0x70 ] <== NOT EXECUTED _ISR_Enable( level ); 2009ea4: 7f ff e2 e1 call 2002a28 <== NOT EXECUTED 2009ea8: 91 e8 00 08 restore %g0, %o0, %o0 <== 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; 2009eac: c8 06 20 90 ld [ %i0 + 0x90 ], %g4 2009eb0: c4 16 20 96 lduh [ %i0 + 0x96 ], %g2 2009eb4: c2 11 00 00 lduh [ %g4 ], %g1 if ( _States_Is_ready( current_state ) ) { _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 2009eb8: c6 06 20 8c ld [ %i0 + 0x8c ], %g3 2009ebc: 82 10 40 02 or %g1, %g2, %g1 _Priority_Major_bit_map |= the_priority_map->ready_major; 2009ec0: 1b 00 80 8d sethi %hi(0x2023400), %o5 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 2009ec4: c2 31 00 00 sth %g1, [ %g4 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2009ec8: 82 00 e0 04 add %g3, 4, %g1 _Priority_Major_bit_map |= the_priority_map->ready_major; 2009ecc: d8 16 20 94 lduh [ %i0 + 0x94 ], %o4 2009ed0: c2 26 00 00 st %g1, [ %i0 ] 2009ed4: c4 13 63 d8 lduh [ %o5 + 0x3d8 ], %g2 old_last_node = the_chain->last; 2009ed8: c8 00 e0 08 ld [ %g3 + 8 ], %g4 the_chain->last = the_node; 2009edc: f0 20 e0 08 st %i0, [ %g3 + 8 ] 2009ee0: 84 10 80 0c or %g2, %o4, %g2 old_last_node->next = the_node; the_node->previous = old_last_node; 2009ee4: c8 26 20 04 st %g4, [ %i0 + 4 ] 2009ee8: c4 33 63 d8 sth %g2, [ %o5 + 0x3d8 ] 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; 2009eec: f0 21 00 00 st %i0, [ %g4 ] _ISR_Flash( level ); 2009ef0: 7f ff e2 ce call 2002a28 2009ef4: 90 10 00 10 mov %l0, %o0 2009ef8: 7f ff e2 c8 call 2002a18 2009efc: 01 00 00 00 nop if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 2009f00: 09 00 80 8d sethi %hi(0x2023400), %g4 2009f04: c4 01 23 b0 ld [ %g4 + 0x3b0 ], %g2 ! 20237b0 <_Thread_Heir> 2009f08: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 2009f0c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 2009f10: 80 a0 c0 01 cmp %g3, %g1 2009f14: 1a bf ff de bcc 2009e8c <_Thread_Resume+0x40> 2009f18: 01 00 00 00 nop _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 2009f1c: 03 00 80 8d sethi %hi(0x2023400), %g1 2009f20: c4 00 63 e4 ld [ %g1 + 0x3e4 ], %g2 ! 20237e4 <_Thread_Executing> _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; 2009f24: f0 21 23 b0 st %i0, [ %g4 + 0x3b0 ] if ( _Thread_Executing->is_preemptible || 2009f28: c2 08 a0 76 ldub [ %g2 + 0x76 ], %g1 2009f2c: 80 a0 60 00 cmp %g1, 0 2009f30: 02 80 00 06 be 2009f48 <_Thread_Resume+0xfc> 2009f34: 80 a0 e0 00 cmp %g3, 0 the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 2009f38: 84 10 20 01 mov 1, %g2 2009f3c: 03 00 80 8d sethi %hi(0x2023400), %g1 2009f40: c4 28 63 f4 stb %g2, [ %g1 + 0x3f4 ] ! 20237f4 <_Context_Switch_necessary> 2009f44: 30 bf ff d2 b,a 2009e8c <_Thread_Resume+0x40> _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 2009f48: 12 bf ff d1 bne 2009e8c <_Thread_Resume+0x40> 2009f4c: 84 10 20 01 mov 1, %g2 the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 2009f50: 10 bf ff fc b 2009f40 <_Thread_Resume+0xf4> <== NOT EXECUTED 2009f54: 03 00 80 8d sethi %hi(0x2023400), %g1 <== NOT EXECUTED 02008784 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 2008784: 9d e3 bf 98 save %sp, -104, %sp 2008788: 03 00 80 59 sethi %hi(0x2016400), %g1 200878c: c2 00 60 f0 ld [ %g1 + 0xf0 ], %g1 ! 20164f0 2008790: 80 a6 40 01 cmp %i1, %g1 2008794: 2a 80 00 02 bcs,a 200879c <_Thread_Stack_Allocate+0x18> 2008798: b2 10 00 01 mov %g1, %i1 * 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 ) { 200879c: 03 00 80 5c sethi %hi(0x2017000), %g1 20087a0: c4 00 63 3c ld [ %g1 + 0x33c ], %g2 ! 201733c <_Configuration_Table> 20087a4: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 20087a8: 80 a0 60 00 cmp %g1, 0 20087ac: 22 80 00 0a be,a 20087d4 <_Thread_Stack_Allocate+0x50> 20087b0: b2 06 60 10 add %i1, 0x10, %i1 stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 20087b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20087b8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 20087bc: d0 26 20 d0 st %o0, [ %i0 + 0xd0 ] <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 20087c0: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 20087c4: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 20087c8: b0 0e 40 18 and %i1, %i0, %i0 <== NOT EXECUTED 20087cc: 81 c7 e0 08 ret <== NOT EXECUTED 20087d0: 81 e8 00 00 restore <== 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 ); 20087d4: 40 00 02 51 call 2009118 <_Workspace_Allocate> 20087d8: 90 10 00 19 mov %i1, %o0 } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 20087dc: d0 26 20 d0 st %o0, [ %i0 + 0xd0 ] the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 20087e0: 80 a0 00 08 cmp %g0, %o0 20087e4: b0 60 20 00 subx %g0, 0, %i0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 20087e8: b0 0e 40 18 and %i1, %i0, %i0 20087ec: 81 c7 e0 08 ret 20087f0: 81 e8 00 00 restore 020087f4 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 20087f4: 9d e3 bf 98 save %sp, -104, %sp /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 20087f8: c2 0e 20 c0 ldub [ %i0 + 0xc0 ], %g1 20087fc: 80 a0 60 00 cmp %g1, 0 2008800: 02 80 00 09 be 2008824 <_Thread_Stack_Free+0x30> 2008804: 03 00 80 5c sethi %hi(0x2017000), %g1 * 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 ) 2008808: c4 00 63 3c ld [ %g1 + 0x33c ], %g2 ! 201733c <_Configuration_Table> 200880c: c2 00 a0 24 ld [ %g2 + 0x24 ], %g1 2008810: 80 a0 60 00 cmp %g1, 0 2008814: 22 80 00 06 be,a 200882c <_Thread_Stack_Free+0x38> 2008818: f0 06 20 c8 ld [ %i0 + 0xc8 ], %i0 (*_Configuration_Table->stack_free_hook)( 200881c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2008820: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2008824: 81 c7 e0 08 ret <== NOT EXECUTED 2008828: 81 e8 00 00 restore <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 200882c: 40 00 02 34 call 20090fc <_Workspace_Free> 2008830: 81 e8 00 00 restore 2008834: 01 00 00 00 nop 020088d8 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 20088d8: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *executing; executing = _Thread_Executing; 20088dc: 03 00 80 5c sethi %hi(0x2017000), %g1 20088e0: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 2017364 <_Thread_Executing> /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 20088e4: c4 0c 20 76 ldub [ %l0 + 0x76 ], %g2 20088e8: 80 a0 a0 00 cmp %g2, 0 20088ec: 02 80 00 23 be 2008978 <_Thread_Tickle_timeslice+0xa0> 20088f0: 01 00 00 00 nop return; if ( !_States_Is_ready( executing->current_state ) ) 20088f4: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 20088f8: 80 a0 60 00 cmp %g1, 0 20088fc: 12 80 00 1f bne 2008978 <_Thread_Tickle_timeslice+0xa0> 2008900: 01 00 00 00 nop /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 2008904: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 2008908: 80 a0 60 01 cmp %g1, 1 200890c: 0a 80 00 07 bcs 2008928 <_Thread_Tickle_timeslice+0x50> 2008910: 80 a0 60 02 cmp %g1, 2 2008914: 28 80 00 10 bleu,a 2008954 <_Thread_Tickle_timeslice+0x7c> 2008918: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 200891c: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2008920: 22 80 00 04 be,a 2008930 <_Thread_Tickle_timeslice+0x58> <== NOT EXECUTED 2008924: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED 2008928: 81 c7 e0 08 ret 200892c: 81 e8 00 00 restore executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 2008930: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2008934: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2008938: 12 bf ff fc bne 2008928 <_Thread_Tickle_timeslice+0x50> <== NOT EXECUTED 200893c: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED (*executing->budget_callout)( executing ); 2008940: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2008944: 9f c0 40 00 call %g1 <== NOT EXECUTED 2008948: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200894c: 81 c7 e0 08 ret <== NOT EXECUTED 2008950: 81 e8 00 00 restore <== 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 ) { 2008954: 82 00 7f ff add %g1, -1, %g1 2008958: 80 a0 60 00 cmp %g1, 0 200895c: 14 bf ff f3 bg 2008928 <_Thread_Tickle_timeslice+0x50> 2008960: c2 24 20 78 st %g1, [ %l0 + 0x78 ] _Thread_Reset_timeslice(); 2008964: 40 00 0d f6 call 200c13c <_Thread_Reset_timeslice> 2008968: 01 00 00 00 nop executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 200896c: 03 00 80 5c sethi %hi(0x2017000), %g1 2008970: c4 00 61 f8 ld [ %g1 + 0x1f8 ], %g2 ! 20171f8 <_Thread_Ticks_per_timeslice> 2008974: c4 24 20 78 st %g2, [ %l0 + 0x78 ] 2008978: 81 c7 e0 08 ret 200897c: 81 e8 00 00 restore 02008104 <_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 ) { 2008104: 9d e3 bf 98 save %sp, -104, %sp Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 2008108: e4 06 60 14 ld [ %i1 + 0x14 ], %l2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200810c: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2008110: 84 06 60 38 add %i1, 0x38, %g2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2008114: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; 2008118: c0 26 60 3c clr [ %i1 + 0x3c ] the_chain->last = _Chain_Head(the_chain); 200811c: c4 26 60 40 st %g2, [ %i1 + 0x40 ] Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 2008120: ac 10 00 18 mov %i0, %l6 priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008124: 80 8c a0 20 btst 0x20, %l2 RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 2008128: 83 34 a0 06 srl %l2, 6, %g1 200812c: 12 80 00 30 bne 20081ec <_Thread_queue_Enqueue_priority+0xe8> 2008130: ea 06 20 38 ld [ %i0 + 0x38 ], %l5 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2008134: 85 28 60 04 sll %g1, 4, %g2 2008138: 83 28 60 02 sll %g1, 2, %g1 200813c: 82 20 80 01 sub %g2, %g1, %g1 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 2008140: b0 10 00 01 mov %g1, %i0 2008144: 82 05 80 01 add %l6, %g1, %g1 2008148: a6 00 60 04 add %g1, 4, %l3 if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 200814c: 7f ff e7 16 call 2001da4 2008150: 01 00 00 00 nop 2008154: a8 10 00 08 mov %o0, %l4 search_thread = (Thread_Control *) header->first; 2008158: e0 05 80 18 ld [ %l6 + %i0 ], %l0 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 200815c: 80 a4 00 13 cmp %l0, %l3 2008160: 32 80 00 18 bne,a 20081c0 <_Thread_queue_Enqueue_priority+0xbc> 2008164: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 2008168: 10 80 00 81 b 200836c <_Thread_queue_Enqueue_priority+0x268> 200816c: a2 10 3f ff mov -1, %l1 if ( priority <= search_priority ) break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.next; if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 2008170: 80 a4 00 13 cmp %l0, %l3 2008174: 02 80 00 17 be 20081d0 <_Thread_queue_Enqueue_priority+0xcc> 2008178: 90 10 00 14 mov %l4, %o0 break; search_priority = search_thread->current_priority; 200817c: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 if ( priority <= search_priority ) 2008180: 80 a4 80 11 cmp %l2, %l1 2008184: 28 80 00 14 bleu,a 20081d4 <_Thread_queue_Enqueue_priority+0xd0> 2008188: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 break; #endif _ISR_Flash( level ); 200818c: 7f ff e7 0a call 2001db4 2008190: 90 10 00 14 mov %l4, %o0 2008194: 7f ff e7 04 call 2001da4 2008198: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 200819c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 20081a0: 80 8d 40 01 btst %l5, %g1 20081a4: 02 80 00 6b be 2008350 <_Thread_queue_Enqueue_priority+0x24c> 20081a8: 01 00 00 00 nop _ISR_Enable( level ); goto restart_forward_search; } search_thread = 20081ac: e0 04 00 00 ld [ %l0 ], %l0 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 ) ) { 20081b0: 80 a4 00 13 cmp %l0, %l3 20081b4: 02 80 00 07 be 20081d0 <_Thread_queue_Enqueue_priority+0xcc> 20081b8: 90 10 00 14 mov %l4, %o0 search_priority = search_thread->current_priority; 20081bc: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 if ( priority <= search_priority ) 20081c0: 80 a4 80 11 cmp %l2, %l1 20081c4: 38 bf ff eb bgu,a 2008170 <_Thread_queue_Enqueue_priority+0x6c> 20081c8: e0 04 00 00 ld [ %l0 ], %l0 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 ) ) { 20081cc: 90 10 00 14 mov %l4, %o0 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 20081d0: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 20081d4: 80 a6 20 01 cmp %i0, 1 20081d8: 02 80 00 47 be 20082f4 <_Thread_queue_Enqueue_priority+0x1f0> 20081dc: 80 a4 80 11 cmp %l2, %l1 * 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; 20081e0: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED return the_thread_queue->sync_state; } 20081e4: 81 c7 e0 08 ret <== NOT EXECUTED 20081e8: 81 e8 00 00 restore <== 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; 20081ec: 85 28 60 04 sll %g1, 4, %g2 20081f0: 83 28 60 02 sll %g1, 2, %g1 20081f4: 82 20 80 01 sub %g2, %g1, %g1 20081f8: 05 00 80 59 sethi %hi(0x2016400), %g2 20081fc: a6 06 00 01 add %i0, %g1, %l3 2008200: ae 10 a0 f4 or %g2, 0xf4, %l7 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 2008204: b0 10 00 13 mov %l3, %i0 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 2008208: c2 0d c0 00 ldub [ %l7 ], %g1 _ISR_Disable( level ); 200820c: 7f ff e6 e6 call 2001da4 2008210: a2 00 60 01 add %g1, 1, %l1 2008214: a8 10 00 08 mov %o0, %l4 search_thread = (Thread_Control *) header->last; 2008218: e0 06 20 08 ld [ %i0 + 8 ], %l0 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 200821c: 80 a4 c0 10 cmp %l3, %l0 2008220: 22 80 00 25 be,a 20082b4 <_Thread_queue_Enqueue_priority+0x1b0> 2008224: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 search_priority = search_thread->current_priority; 2008228: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 if ( priority >= search_priority ) 200822c: 80 a4 80 11 cmp %l2, %l1 2008230: 3a 80 00 21 bcc,a 20082b4 <_Thread_queue_Enqueue_priority+0x1b0> 2008234: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 2008238: e0 04 20 04 ld [ %l0 + 4 ], %l0 if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 200823c: 80 a4 c0 10 cmp %l3, %l0 2008240: 32 80 00 19 bne,a 20082a4 <_Thread_queue_Enqueue_priority+0x1a0> 2008244: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2008248: 10 80 00 1b b 20082b4 <_Thread_queue_Enqueue_priority+0x1b0> 200824c: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 2008250: 7f ff e6 d9 call 2001db4 2008254: 90 10 00 14 mov %l4, %o0 2008258: 7f ff e6 d3 call 2001da4 200825c: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008260: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 2008264: 80 8d 40 01 btst %l5, %g1 2008268: 02 80 00 3d be 200835c <_Thread_queue_Enqueue_priority+0x258> 200826c: 01 00 00 00 nop _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 2008270: e0 04 20 04 ld [ %l0 + 4 ], %l0 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 ) ) { 2008274: 80 a4 00 13 cmp %l0, %l3 2008278: 22 80 00 0f be,a 20082b4 <_Thread_queue_Enqueue_priority+0x1b0> 200827c: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 search_priority = search_thread->current_priority; 2008280: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 if ( priority >= search_priority ) 2008284: 80 a4 80 11 cmp %l2, %l1 2008288: 3a 80 00 0b bcc,a 20082b4 <_Thread_queue_Enqueue_priority+0x1b0> 200828c: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 2008290: e0 04 20 04 ld [ %l0 + 4 ], %l0 <== NOT EXECUTED if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 2008294: 80 a4 00 13 cmp %l0, %l3 <== NOT EXECUTED 2008298: 22 80 00 07 be,a 20082b4 <_Thread_queue_Enqueue_priority+0x1b0> <== NOT EXECUTED 200829c: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 <== NOT EXECUTED break; search_priority = search_thread->current_priority; 20082a0: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 <== NOT EXECUTED if ( priority >= search_priority ) 20082a4: 80 a4 80 11 cmp %l2, %l1 20082a8: 0a bf ff ea bcs 2008250 <_Thread_queue_Enqueue_priority+0x14c> 20082ac: 01 00 00 00 nop } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 20082b0: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 20082b4: 80 a6 20 01 cmp %i0, 1 20082b8: 12 bf ff ca bne 20081e0 <_Thread_queue_Enqueue_priority+0xdc> 20082bc: 90 10 00 14 mov %l4, %o0 THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 20082c0: 80 a4 80 11 cmp %l2, %l1 20082c4: 02 80 00 18 be 2008324 <_Thread_queue_Enqueue_priority+0x220> 20082c8: c0 25 a0 30 clr [ %l6 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 20082cc: c2 04 00 00 ld [ %l0 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 20082d0: e0 26 60 04 st %l0, [ %i1 + 4 ] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 20082d4: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 20082d8: ec 26 60 44 st %l6, [ %i1 + 0x44 ] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; 20082dc: f2 20 60 04 st %i1, [ %g1 + 4 ] 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; 20082e0: f2 24 00 00 st %i1, [ %l0 ] next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 20082e4: 7f ff e6 b4 call 2001db4 20082e8: 01 00 00 00 nop 20082ec: 81 c7 e0 08 ret 20082f0: 81 e8 00 00 restore THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 20082f4: 02 80 00 0c be 2008324 <_Thread_queue_Enqueue_priority+0x220> 20082f8: c0 25 a0 30 clr [ %l6 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 20082fc: c2 04 20 04 ld [ %l0 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2008300: e0 26 40 00 st %l0, [ %i1 ] the_node->previous = previous_node; 2008304: c2 26 60 04 st %g1, [ %i1 + 4 ] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 2008308: ec 26 60 44 st %l6, [ %i1 + 0x44 ] 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; 200830c: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2008310: f2 24 20 04 st %i1, [ %l0 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008314: 7f ff e6 a8 call 2001db4 2008318: 90 10 00 14 mov %l4, %o0 200831c: 81 c7 e0 08 ret 2008320: 81 e8 00 00 restore 2008324: 82 04 20 3c add %l0, 0x3c, %g1 _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; 2008328: c4 00 60 04 ld [ %g1 + 4 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 200832c: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = previous_node; 2008330: c4 26 60 04 st %g2, [ %i1 + 4 ] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 2008334: ec 26 60 44 st %l6, [ %i1 + 0x44 ] 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; 2008338: f2 20 80 00 st %i1, [ %g2 ] search_node->previous = the_node; 200833c: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008340: 7f ff e6 9d call 2001db4 2008344: b0 10 20 01 mov 1, %i0 2008348: 81 c7 e0 08 ret 200834c: 81 e8 00 00 restore if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 2008350: 7f ff e6 99 call 2001db4 <== NOT EXECUTED 2008354: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 2008358: 30 bf ff 7d b,a 200814c <_Thread_queue_Enqueue_priority+0x48> <== NOT EXECUTED if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 200835c: 7f ff e6 96 call 2001db4 <== NOT EXECUTED 2008360: 90 10 00 14 mov %l4, %o0 <== 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; 2008364: 10 bf ff aa b 200820c <_Thread_queue_Enqueue_priority+0x108> <== NOT EXECUTED 2008368: c2 0d c0 00 ldub [ %l7 ], %g1 <== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 200836c: 10 bf ff 9a b 20081d4 <_Thread_queue_Enqueue_priority+0xd0> 2008370: f0 05 a0 30 ld [ %l6 + 0x30 ], %i0 0200cc3c <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 200cc3c: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; _ISR_Disable( level ); 200cc40: 7f ff d4 59 call 2001da4 200cc44: b0 10 00 19 mov %i1, %i0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 200cc48: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 200cc4c: 03 00 00 ef sethi %hi(0x3bc00), %g1 200cc50: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 200cc54: 80 88 80 01 btst %g2, %g1 200cc58: 02 80 00 19 be 200ccbc <_Thread_queue_Extract_fifo+0x80> 200cc5c: 01 00 00 00 nop ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 200cc60: c2 06 40 00 ld [ %i1 ], %g1 previous = the_node->previous; 200cc64: c4 06 60 04 ld [ %i1 + 4 ], %g2 _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 200cc68: c6 06 60 50 ld [ %i1 + 0x50 ], %g3 next->previous = previous; previous->next = next; 200cc6c: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200cc70: c4 20 60 04 st %g2, [ %g1 + 4 ] 200cc74: 80 a0 e0 02 cmp %g3, 2 200cc78: 02 80 00 07 be 200cc94 <_Thread_queue_Extract_fifo+0x58> 200cc7c: c0 26 60 44 clr [ %i1 + 0x44 ] _ISR_Enable( level ); 200cc80: 7f ff d4 4d call 2001db4 200cc84: 33 04 00 ff sethi %hi(0x1003fc00), %i1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 200cc88: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 200cc8c: 7f ff ea 81 call 2007690 <_Thread_Clear_state> 200cc90: 81 e8 00 00 restore 200cc94: 82 10 20 03 mov 3, %g1 200cc98: c2 26 60 50 st %g1, [ %i1 + 0x50 ] } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 200cc9c: 7f ff d4 46 call 2001db4 200cca0: 01 00 00 00 nop (void) _Watchdog_Remove( &the_thread->Timer ); 200cca4: 7f ff f0 b5 call 2008f78 <_Watchdog_Remove> 200cca8: 90 06 60 48 add %i1, 0x48, %o0 200ccac: 33 04 00 ff sethi %hi(0x1003fc00), %i1 200ccb0: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 200ccb4: 7f ff ea 77 call 2007690 <_Thread_Clear_state> 200ccb8: 81 e8 00 00 restore ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 200ccbc: 7f ff d4 3e call 2001db4 <== NOT EXECUTED 200ccc0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 200ccc4: 01 00 00 00 nop 0200bec4 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 200bec4: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 200bec8: 7f ff d7 b7 call 2001da4 200becc: b0 10 00 19 mov %i1, %i0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 200bed0: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 200bed4: 03 00 00 ef sethi %hi(0x3bc00), %g1 200bed8: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 200bedc: 80 88 80 01 btst %g2, %g1 200bee0: 02 80 00 23 be 200bf6c <_Thread_queue_Extract_priority_helper+0xa8> 200bee4: 82 06 60 3c add %i1, 0x3c, %g1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200bee8: c6 06 60 38 ld [ %i1 + 0x38 ], %g3 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 200beec: c4 06 40 00 ld [ %i1 ], %g2 previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 200bef0: 80 a0 c0 01 cmp %g3, %g1 200bef4: 02 80 00 2a be 200bf9c <_Thread_queue_Extract_priority_helper+0xd8> 200bef8: c2 06 60 04 ld [ %i1 + 4 ], %g1 new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; 200befc: da 06 60 40 ld [ %i1 + 0x40 ], %o5 new_second_node = new_first_node->next; 200bf00: c8 00 c0 00 ld [ %g3 ], %g4 previous_node->next = new_first_node; next_node->previous = new_first_node; 200bf04: c6 20 a0 04 st %g3, [ %g2 + 4 ] 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; 200bf08: c6 20 40 00 st %g3, [ %g1 ] next_node->previous = new_first_node; new_first_node->next = next_node; 200bf0c: c4 20 c0 00 st %g2, [ %g3 ] new_first_node->previous = previous_node; 200bf10: c2 20 e0 04 st %g1, [ %g3 + 4 ] if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 200bf14: c4 06 60 38 ld [ %i1 + 0x38 ], %g2 200bf18: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 200bf1c: 80 a0 80 01 cmp %g2, %g1 200bf20: 02 80 00 07 be 200bf3c <_Thread_queue_Extract_priority_helper+0x78> 200bf24: 82 00 e0 38 add %g3, 0x38, %g1 /* > two threads on 2-n */ new_second_node->previous = 200bf28: c2 21 20 04 st %g1, [ %g4 + 4 ] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 200bf2c: c8 20 e0 38 st %g4, [ %g3 + 0x38 ] new_first_thread->Wait.Block2n.last = last_node; 200bf30: da 20 e0 40 st %o5, [ %g3 + 0x40 ] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 200bf34: 82 00 e0 3c add %g3, 0x3c, %g1 200bf38: c2 23 40 00 st %g1, [ %o5 ] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 200bf3c: 80 8e a0 ff btst 0xff, %i2 200bf40: 12 80 00 0d bne 200bf74 <_Thread_queue_Extract_priority_helper+0xb0> 200bf44: 01 00 00 00 nop _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 200bf48: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200bf4c: 80 a0 60 02 cmp %g1, 2 200bf50: 02 80 00 0b be 200bf7c <_Thread_queue_Extract_priority_helper+0xb8> 200bf54: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 200bf58: 7f ff d7 97 call 2001db4 200bf5c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 200bf60: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 200bf64: 7f ff ed cb call 2007690 <_Thread_Clear_state> 200bf68: 81 e8 00 00 restore 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 ); 200bf6c: 7f ff d7 92 call 2001db4 <== NOT EXECUTED 200bf70: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level ); 200bf74: 7f ff d7 90 call 2001db4 200bf78: 91 e8 00 08 restore %g0, %o0, %o0 200bf7c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 200bf80: 7f ff d7 8d call 2001db4 <== NOT EXECUTED 200bf84: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 200bf88: 7f ff f3 fc call 2008f78 <_Watchdog_Remove> <== NOT EXECUTED 200bf8c: 90 06 20 48 add %i0, 0x48, %o0 <== NOT EXECUTED 200bf90: b2 16 63 f8 or %i1, 0x3f8, %i1 <== NOT EXECUTED 200bf94: 7f ff ed bf call 2007690 <_Thread_Clear_state> <== NOT EXECUTED 200bf98: 81 e8 00 00 restore <== 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; 200bf9c: c2 20 a0 04 st %g1, [ %g2 + 4 ] new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 200bfa0: 10 bf ff e7 b 200bf3c <_Thread_queue_Extract_priority_helper+0x78> 200bfa4: c4 20 40 00 st %g2, [ %g1 ] 0200bfa8 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 200bfa8: 92 10 00 08 mov %o0, %o1 Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 200bfac: d0 02 20 44 ld [ %o0 + 0x44 ], %o0 * 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 && 200bfb0: c6 02 20 30 ld [ %o0 + 0x30 ], %g3 200bfb4: 80 a0 e0 00 cmp %g3, 0 200bfb8: 02 80 00 06 be 200bfd0 <_Thread_queue_Process_timeout+0x28> 200bfbc: 03 00 80 5c sethi %hi(0x2017000), %g1 200bfc0: c4 00 63 64 ld [ %g1 + 0x364 ], %g2 ! 2017364 <_Thread_Executing> 200bfc4: 80 a2 40 02 cmp %o1, %g2 200bfc8: 02 80 00 07 be 200bfe4 <_Thread_queue_Process_timeout+0x3c> 200bfcc: 80 a0 e0 03 cmp %g3, 3 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; 200bfd0: c2 02 20 3c ld [ %o0 + 0x3c ], %g1 200bfd4: c2 22 60 34 st %g1, [ %o1 + 0x34 ] _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 200bfd8: 82 13 c0 00 mov %o7, %g1 200bfdc: 7f ff ff af call 200be98 <_Thread_queue_Extract> 200bfe0: 9e 10 40 00 mov %g1, %o7 * 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 ) { 200bfe4: 02 80 00 06 be 200bffc <_Thread_queue_Process_timeout+0x54> 200bfe8: 84 10 20 02 mov 2, %g2 the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 200bfec: c2 02 20 3c ld [ %o0 + 0x3c ], %g1 200bff0: c2 22 60 34 st %g1, [ %o1 + 0x34 ] the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 200bff4: 81 c3 e0 08 retl 200bff8: c4 22 20 30 st %g2, [ %o0 + 0x30 ] 200bffc: 81 c3 e0 08 retl <== NOT EXECUTED 200c000: 01 00 00 00 nop 02008444 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 2008444: 9d e3 bf 90 save %sp, -112, %sp /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) 2008448: 80 a6 20 00 cmp %i0, 0 200844c: 02 80 00 13 be 2008498 <_Thread_queue_Requeue+0x54> 2008450: 01 00 00 00 nop /* * 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 ) { 2008454: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 2008458: 80 a4 20 01 cmp %l0, 1 200845c: 02 80 00 04 be 200846c <_Thread_queue_Requeue+0x28> 2008460: 01 00 00 00 nop 2008464: 81 c7 e0 08 ret <== NOT EXECUTED 2008468: 81 e8 00 00 restore <== NOT EXECUTED Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 200846c: 7f ff e6 4e call 2001da4 2008470: 01 00 00 00 nop 2008474: a2 10 00 08 mov %o0, %l1 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 2008478: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 200847c: 03 00 00 ef sethi %hi(0x3bc00), %g1 2008480: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2008484: 80 88 80 01 btst %g2, %g1 2008488: 12 80 00 06 bne 20084a0 <_Thread_queue_Requeue+0x5c> 200848c: 90 10 00 18 mov %i0, %o0 _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 ); 2008490: 7f ff e6 49 call 2001db4 2008494: 90 10 00 11 mov %l1, %o0 2008498: 81 c7 e0 08 ret 200849c: 81 e8 00 00 restore 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 ); 20084a0: 92 10 00 19 mov %i1, %o1 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; 20084a4: e0 26 20 30 st %l0, [ %i0 + 0x30 ] 20084a8: 40 00 0e 87 call 200bec4 <_Thread_queue_Extract_priority_helper> 20084ac: 94 10 20 01 mov 1, %o2 (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 20084b0: 90 10 00 18 mov %i0, %o0 20084b4: 92 10 00 19 mov %i1, %o1 20084b8: 7f ff ff 13 call 2008104 <_Thread_queue_Enqueue_priority> 20084bc: 94 07 bf f4 add %fp, -12, %o2 20084c0: 30 bf ff f4 b,a 2008490 <_Thread_queue_Requeue+0x4c> 02011b30 <_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) { 2011b30: 9d e3 bf 98 save %sp, -104, %sp 2011b34: 03 00 80 c2 sethi %hi(0x2030800), %g1 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 ); 2011b38: 05 00 80 c2 sethi %hi(0x2030800), %g2 static void _Timer_Server_process_insertions(void) { Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 2011b3c: a0 10 63 74 or %g1, 0x374, %l0 if ( the_timer == NULL ) break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); 2011b40: 03 00 80 c2 sethi %hi(0x2030800), %g1 } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { _Watchdog_Insert( &_Timer_Seconds_chain, &the_timer->Ticker ); 2011b44: a4 10 a3 68 or %g2, 0x368, %l2 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 ); 2011b48: a2 10 63 54 or %g1, 0x354, %l1 static void _Timer_Server_process_insertions(void) { Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 2011b4c: 40 00 02 a4 call 20125dc <_Chain_Get> 2011b50: 90 10 00 10 mov %l0, %o0 if ( the_timer == NULL ) 2011b54: 80 a2 20 00 cmp %o0, 0 2011b58: 02 80 00 0f be 2011b94 <_Timer_Server_process_insertions+0x64> 2011b5c: 01 00 00 00 nop break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 2011b60: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2011b64: 80 a0 60 01 cmp %g1, 1 2011b68: 02 80 00 12 be 2011bb0 <_Timer_Server_process_insertions+0x80> 2011b6c: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 2011b70: 02 80 00 0b be 2011b9c <_Timer_Server_process_insertions+0x6c> 2011b74: 92 02 20 10 add %o0, 0x10, %o1 } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 2011b78: 7f ff ff ee call 2011b30 <_Timer_Server_process_insertions> <== NOT EXECUTED 2011b7c: 01 00 00 00 nop <== 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 ); 2011b80: 40 00 02 97 call 20125dc <_Chain_Get> 2011b84: 90 10 00 10 mov %l0, %o0 if ( the_timer == NULL ) 2011b88: 80 a2 20 00 cmp %o0, 0 2011b8c: 32 bf ff f6 bne,a 2011b64 <_Timer_Server_process_insertions+0x34> 2011b90: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED 2011b94: 81 c7 e0 08 ret 2011b98: 81 e8 00 00 restore 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 ); 2011b9c: 40 00 12 32 call 2016464 <_Watchdog_Insert> 2011ba0: 90 10 00 12 mov %l2, %o0 } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 2011ba4: 7f ff ff e3 call 2011b30 <_Timer_Server_process_insertions> 2011ba8: 01 00 00 00 nop 2011bac: 30 bf ff f5 b,a 2011b80 <_Timer_Server_process_insertions+0x50> 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 ); 2011bb0: 92 02 20 10 add %o0, 0x10, %o1 2011bb4: 40 00 12 2c call 2016464 <_Watchdog_Insert> 2011bb8: 90 10 00 11 mov %l1, %o0 } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 2011bbc: 7f ff ff dd call 2011b30 <_Timer_Server_process_insertions> 2011bc0: 01 00 00 00 nop 2011bc4: 30 bf ff ef b,a 2011b80 <_Timer_Server_process_insertions+0x50> 0200a67c <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 200a67c: 9d e3 bf 98 save %sp, -104, %sp * 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; 200a680: c2 06 40 00 ld [ %i1 ], %g1 right += rhs->tv_nsec; 200a684: de 06 60 04 ld [ %i1 + 4 ], %o7 * 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; 200a688: 91 38 60 1f sra %g1, 0x1f, %o0 200a68c: 92 10 00 01 mov %g1, %o1 200a690: 83 30 60 1d srl %g1, 0x1d, %g1 200a694: 87 2a 60 03 sll %o1, 3, %g3 200a698: 85 2a 20 03 sll %o0, 3, %g2 200a69c: 84 10 40 02 or %g1, %g2, %g2 200a6a0: 83 30 e0 1b srl %g3, 0x1b, %g1 200a6a4: 99 28 a0 05 sll %g2, 5, %o4 200a6a8: 9b 28 e0 05 sll %g3, 5, %o5 200a6ac: 98 10 40 0c or %g1, %o4, %o4 200a6b0: 9a a3 40 03 subcc %o5, %g3, %o5 200a6b4: 83 33 60 1a srl %o5, 0x1a, %g1 200a6b8: 98 63 00 02 subx %o4, %g2, %o4 200a6bc: 97 2b 60 06 sll %o5, 6, %o3 200a6c0: 95 2b 20 06 sll %o4, 6, %o2 200a6c4: 96 a2 c0 0d subcc %o3, %o5, %o3 200a6c8: 94 10 40 0a or %g1, %o2, %o2 200a6cc: 94 62 80 0c subx %o2, %o4, %o2 200a6d0: 96 82 c0 09 addcc %o3, %o1, %o3 200a6d4: 94 42 80 08 addx %o2, %o0, %o2 200a6d8: 83 32 e0 1e srl %o3, 0x1e, %g1 200a6dc: 85 2a a0 02 sll %o2, 2, %g2 200a6e0: 84 10 40 02 or %g1, %g2, %g2 200a6e4: 87 2a e0 02 sll %o3, 2, %g3 200a6e8: 96 82 c0 03 addcc %o3, %g3, %o3 200a6ec: 94 42 80 02 addx %o2, %g2, %o2 200a6f0: 83 32 e0 1e srl %o3, 0x1e, %g1 200a6f4: 85 2a a0 02 sll %o2, 2, %g2 200a6f8: 84 10 40 02 or %g1, %g2, %g2 200a6fc: 87 2a e0 02 sll %o3, 2, %g3 200a700: 96 82 c0 03 addcc %o3, %g3, %o3 200a704: 94 42 80 02 addx %o2, %g2, %o2 200a708: 83 32 e0 1e srl %o3, 0x1e, %g1 200a70c: 85 2a a0 02 sll %o2, 2, %g2 200a710: 84 10 40 02 or %g1, %g2, %g2 200a714: 87 2a e0 02 sll %o3, 2, %g3 200a718: 96 82 c0 03 addcc %o3, %g3, %o3 200a71c: 94 42 80 02 addx %o2, %g2, %o2 200a720: 85 32 e0 17 srl %o3, 0x17, %g2 200a724: 83 2a a0 09 sll %o2, 9, %g1 200a728: 9b 2a e0 09 sll %o3, 9, %o5 200a72c: 98 10 80 01 or %g2, %g1, %o4 right += rhs->tv_nsec; 200a730: 96 83 40 0f addcc %o5, %o7, %o3 200a734: 85 3b e0 1f sra %o7, 0x1f, %g2 /* * 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; 200a738: e4 06 20 04 ld [ %i0 + 4 ], %l2 right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; 200a73c: 94 43 00 02 addx %o4, %g2, %o2 if ( right == 0 ) { 200a740: 80 92 80 0b orcc %o2, %o3, %g0 200a744: 02 80 00 5d be 200a8b8 <_Timespec_Divide+0x23c> 200a748: d0 06 00 00 ld [ %i0 ], %o0 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 200a74c: 92 10 00 08 mov %o0, %o1 200a750: 83 32 60 1d srl %o1, 0x1d, %g1 200a754: 9b 2a 60 03 sll %o1, 3, %o5 200a758: 91 3a 20 1f sra %o0, 0x1f, %o0 200a75c: 99 2a 20 03 sll %o0, 3, %o4 200a760: 98 10 40 0c or %g1, %o4, %o4 200a764: 83 33 60 1b srl %o5, 0x1b, %g1 200a768: 85 2b 20 05 sll %o4, 5, %g2 200a76c: 87 2b 60 05 sll %o5, 5, %g3 200a770: 84 10 40 02 or %g1, %g2, %g2 200a774: 86 a0 c0 0d subcc %g3, %o5, %g3 200a778: 83 30 e0 1a srl %g3, 0x1a, %g1 200a77c: 84 60 80 0c subx %g2, %o4, %g2 200a780: 9b 28 e0 06 sll %g3, 6, %o5 200a784: 99 28 a0 06 sll %g2, 6, %o4 200a788: 9a a3 40 03 subcc %o5, %g3, %o5 200a78c: 98 10 40 0c or %g1, %o4, %o4 200a790: 98 63 00 02 subx %o4, %g2, %o4 200a794: 9a 83 40 09 addcc %o5, %o1, %o5 200a798: 83 33 60 1e srl %o5, 0x1e, %g1 200a79c: 98 43 00 08 addx %o4, %o0, %o4 200a7a0: 87 2b 60 02 sll %o5, 2, %g3 200a7a4: 85 2b 20 02 sll %o4, 2, %g2 200a7a8: 9a 83 40 03 addcc %o5, %g3, %o5 200a7ac: 84 10 40 02 or %g1, %g2, %g2 200a7b0: 83 33 60 1e srl %o5, 0x1e, %g1 200a7b4: 98 43 00 02 addx %o4, %g2, %o4 200a7b8: 87 2b 60 02 sll %o5, 2, %g3 200a7bc: 85 2b 20 02 sll %o4, 2, %g2 200a7c0: 9a 83 40 03 addcc %o5, %g3, %o5 200a7c4: 84 10 40 02 or %g1, %g2, %g2 200a7c8: 83 33 60 1e srl %o5, 0x1e, %g1 200a7cc: 98 43 00 02 addx %o4, %g2, %o4 200a7d0: 87 2b 60 02 sll %o5, 2, %g3 200a7d4: 85 2b 20 02 sll %o4, 2, %g2 200a7d8: 9a 83 40 03 addcc %o5, %g3, %o5 200a7dc: 84 10 40 02 or %g1, %g2, %g2 200a7e0: 98 43 00 02 addx %o4, %g2, %o4 200a7e4: 83 2b 20 09 sll %o4, 9, %g1 200a7e8: 89 33 60 17 srl %o5, 0x17, %g4 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 200a7ec: a6 10 00 12 mov %l2, %l3 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 200a7f0: a0 11 00 01 or %g4, %g1, %l0 200a7f4: a3 2b 60 09 sll %o5, 9, %l1 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 200a7f8: a2 84 40 13 addcc %l1, %l3, %l1 200a7fc: 83 34 60 1e srl %l1, 0x1e, %g1 200a800: 87 2c 60 02 sll %l1, 2, %g3 200a804: a5 3c a0 1f sra %l2, 0x1f, %l2 200a808: a0 44 00 12 addx %l0, %l2, %l0 200a80c: 85 2c 20 02 sll %l0, 2, %g2 200a810: 84 10 40 02 or %g1, %g2, %g2 200a814: 83 30 e0 1b srl %g3, 0x1b, %g1 200a818: 99 28 a0 05 sll %g2, 5, %o4 200a81c: 9b 28 e0 05 sll %g3, 5, %o5 200a820: 98 10 40 0c or %g1, %o4, %o4 200a824: 9a a3 40 03 subcc %o5, %g3, %o5 200a828: 98 63 00 02 subx %o4, %g2, %o4 200a82c: 9a 83 40 11 addcc %o5, %l1, %o5 200a830: 83 33 60 1e srl %o5, 0x1e, %g1 200a834: 98 43 00 10 addx %o4, %l0, %o4 200a838: 87 2b 60 02 sll %o5, 2, %g3 200a83c: 85 2b 20 02 sll %o4, 2, %g2 200a840: 9a 83 40 03 addcc %o5, %g3, %o5 200a844: 84 10 40 02 or %g1, %g2, %g2 200a848: 83 33 60 1e srl %o5, 0x1e, %g1 200a84c: 87 2b 60 02 sll %o5, 2, %g3 200a850: 98 43 00 02 addx %o4, %g2, %o4 200a854: 9a 83 40 03 addcc %o5, %g3, %o5 200a858: 85 2b 20 02 sll %o4, 2, %g2 200a85c: 84 10 40 02 or %g1, %g2, %g2 200a860: 83 33 60 1b srl %o5, 0x1b, %g1 200a864: 98 43 00 02 addx %o4, %g2, %o4 200a868: 99 2b 20 05 sll %o4, 5, %o4 200a86c: 98 10 40 0c or %g1, %o4, %o4 200a870: 93 2b 60 05 sll %o5, 5, %o1 200a874: 40 00 33 49 call 2017598 <__udivdi3> 200a878: 90 10 00 0c mov %o4, %o0 *ival_percentage = answer / 1000; 200a87c: 94 10 20 00 clr %o2 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 200a880: a0 10 00 08 mov %o0, %l0 200a884: a2 10 00 09 mov %o1, %l1 *ival_percentage = answer / 1000; 200a888: 96 10 23 e8 mov 0x3e8, %o3 200a88c: 40 00 33 43 call 2017598 <__udivdi3> 200a890: 90 10 00 10 mov %l0, %o0 *fval_percentage = answer % 1000; 200a894: 90 10 00 10 mov %l0, %o0 * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; 200a898: d2 26 80 00 st %o1, [ %i2 ] *fval_percentage = answer % 1000; 200a89c: 94 10 20 00 clr %o2 200a8a0: 92 10 00 11 mov %l1, %o1 200a8a4: 40 00 34 19 call 2017908 <__umoddi3> 200a8a8: 96 10 23 e8 mov 0x3e8, %o3 200a8ac: d2 26 c0 00 st %o1, [ %i3 ] 200a8b0: 81 c7 e0 08 ret 200a8b4: 81 e8 00 00 restore left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0; 200a8b8: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED *fval_percentage = 0; 200a8bc: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED 200a8c0: 81 c7 e0 08 ret <== NOT EXECUTED 200a8c4: 81 e8 00 00 restore <== NOT EXECUTED 02014e6c <_Timespec_From_ticks>: void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 2014e6c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 2014e70: 03 00 80 9f sethi %hi(0x2027c00), %g1 <== NOT EXECUTED 2014e74: d2 00 63 c0 ld [ %g1 + 0x3c0 ], %o1 ! 2027fc0 <_TOD_Microseconds_per_tick> <== NOT EXECUTED 2014e78: 40 00 2f 5c call 2020be8 <.umul> <== NOT EXECUTED 2014e7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 2014e80: 21 00 03 d0 sethi %hi(0xf4000), %l0 <== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 2014e84: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 2014e88: 7f ff b2 63 call 2001814 <.udiv> <== NOT EXECUTED 2014e8c: 92 14 22 40 or %l0, 0x240, %o1 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 2014e90: 92 14 22 40 or %l0, 0x240, %o1 <== NOT EXECUTED { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 2014e94: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 2014e98: 40 00 2f 8e call 2020cd0 <.urem> <== NOT EXECUTED 2014e9c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2014ea0: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED 2014ea4: 83 2a 20 07 sll %o0, 7, %g1 <== NOT EXECUTED 2014ea8: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2014eac: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 2014eb0: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED 2014eb4: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 2014eb8: 81 c7 e0 08 ret <== NOT EXECUTED 2014ebc: 81 e8 00 00 restore <== NOT EXECUTED 02014ec0 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 2014ec0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2014ec4: 02 80 00 0f be 2014f00 <_Timespec_Is_valid+0x40> <== NOT EXECUTED 2014ec8: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 2014ecc: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2014ed0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2014ed4: 06 80 00 0b bl 2014f00 <_Timespec_Is_valid+0x40> <== NOT EXECUTED 2014ed8: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 2014edc: d0 02 20 04 ld [ %o0 + 4 ], %o0 <== NOT EXECUTED 2014ee0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2014ee4: 06 80 00 07 bl 2014f00 <_Timespec_Is_valid+0x40> <== NOT EXECUTED 2014ee8: 03 0e e6 b2 sethi %hi(0x3b9ac800), %g1 <== NOT EXECUTED 2014eec: 82 10 61 ff or %g1, 0x1ff, %g1 ! 3b9ac9ff <== NOT EXECUTED 2014ef0: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2014ef4: 84 60 3f ff subx %g0, -1, %g2 <== NOT EXECUTED 2014ef8: 81 c3 e0 08 retl <== NOT EXECUTED 2014efc: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 2014f00: 81 c3 e0 08 retl <== NOT EXECUTED 2014f04: 90 10 20 00 clr %o0 <== NOT EXECUTED 02014f08 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 2014f08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 2014f0c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED 2014f10: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2014f14: 02 80 00 15 be 2014f68 <_Timespec_To_ticks+0x60> <== NOT EXECUTED 2014f18: e4 06 20 04 ld [ %i0 + 4 ], %l2 <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 2014f1c: 03 00 80 9f sethi %hi(0x2027c00), %g1 <== NOT EXECUTED 2014f20: e2 00 63 c0 ld [ %g1 + 0x3c0 ], %l1 ! 2027fc0 <_TOD_Microseconds_per_tick> <== NOT EXECUTED 2014f24: 11 00 03 d0 sethi %hi(0xf4000), %o0 <== NOT EXECUTED 2014f28: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2014f2c: 7f ff b2 3a call 2001814 <.udiv> <== NOT EXECUTED 2014f30: 90 12 22 40 or %o0, 0x240, %o0 <== NOT EXECUTED 2014f34: 40 00 2f 2d call 2020be8 <.umul> <== NOT EXECUTED 2014f38: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 2014f3c: 92 10 23 e8 mov 0x3e8, %o1 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 2014f40: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 2014f44: 7f ff b2 34 call 2001814 <.udiv> <== NOT EXECUTED 2014f48: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2014f4c: 7f ff b2 32 call 2001814 <.udiv> <== NOT EXECUTED 2014f50: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 2014f54: b0 82 00 10 addcc %o0, %l0, %i0 <== NOT EXECUTED 2014f58: 22 80 00 02 be,a 2014f60 <_Timespec_To_ticks+0x58> <== NOT EXECUTED 2014f5c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return ticks; return 1; } 2014f60: 81 c7 e0 08 ret <== NOT EXECUTED 2014f64: 81 e8 00 00 restore <== NOT EXECUTED const struct timespec *time ) { uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 2014f68: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2014f6c: 12 bf ff ec bne 2014f1c <_Timespec_To_ticks+0x14> <== NOT EXECUTED 2014f70: b0 10 20 00 clr %i0 <== NOT EXECUTED if (ticks) return ticks; return 1; } 2014f74: 81 c7 e0 08 ret <== NOT EXECUTED 2014f78: 81 e8 00 00 restore <== NOT EXECUTED 0200c1e4 <_User_extensions_Add_API_set>: */ void _User_extensions_Add_API_set ( User_extensions_Control *the_extension ) { 200c1e4: 9d e3 bf 98 save %sp, -104, %sp _Chain_Append( &_User_extensions_List, &the_extension->Node ); 200c1e8: 11 00 80 5d sethi %hi(0x2017400), %o0 200c1ec: 92 10 00 18 mov %i0, %o1 200c1f0: 7f ff e8 2c call 20062a0 <_Chain_Append> 200c1f4: 90 12 20 d8 or %o0, 0xd8, %o0 /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { 200c1f8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200c1fc: 80 a0 60 00 cmp %g1, 0 200c200: 02 80 00 06 be 200c218 <_User_extensions_Add_API_set+0x34> 200c204: b2 06 20 08 add %i0, 8, %i1 the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; 200c208: c2 26 20 10 st %g1, [ %i0 + 0x10 ] _Chain_Append( 200c20c: 31 00 80 5c sethi %hi(0x2017000), %i0 200c210: 7f ff e8 24 call 20062a0 <_Chain_Append> 200c214: 91 ee 22 a4 restore %i0, 0x2a4, %o0 200c218: 81 c7 e0 08 ret <== NOT EXECUTED 200c21c: 81 e8 00 00 restore <== NOT EXECUTED 0200f298 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 200f298: 9d e3 bf 98 save %sp, -104, %sp _Chain_Extract( &the_extension->Node ); 200f29c: 40 00 13 4d call 2013fd0 <_Chain_Extract> 200f2a0: 90 10 00 18 mov %i0, %o0 /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 200f2a4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200f2a8: 80 a0 60 00 cmp %g1, 0 200f2ac: 02 80 00 04 be 200f2bc <_User_extensions_Remove_set+0x24> 200f2b0: 01 00 00 00 nop _Chain_Extract( &the_extension->Switch.Node ); 200f2b4: 40 00 13 47 call 2013fd0 <_Chain_Extract> <== NOT EXECUTED 200f2b8: 91 ee 20 08 restore %i0, 8, %o0 <== NOT EXECUTED 200f2bc: 81 c7 e0 08 ret 200f2c0: 81 e8 00 00 restore 02008c74 <_User_extensions_Thread_create>: */ bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 2008c74: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 2008c78: 03 00 80 5d sethi %hi(0x2017400), %g1 2008c7c: e0 00 60 d8 ld [ %g1 + 0xd8 ], %l0 ! 20174d8 <_User_extensions_List> 2008c80: 82 10 60 d8 or %g1, 0xd8, %g1 2008c84: a2 00 60 04 add %g1, 4, %l1 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 2008c88: 80 a4 00 11 cmp %l0, %l1 2008c8c: 02 80 00 10 be 2008ccc <_User_extensions_Thread_create+0x58> 2008c90: 03 00 80 5c sethi %hi(0x2017000), %g1 the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( 2008c94: a4 10 63 64 or %g1, 0x364, %l2 ! 2017364 <_Thread_Executing> !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { 2008c98: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 2008c9c: 80 a0 60 00 cmp %g1, 0 2008ca0: 02 80 00 07 be 2008cbc <_User_extensions_Thread_create+0x48> 2008ca4: 92 10 00 18 mov %i0, %o1 status = (*the_extension->Callouts.thread_create)( 2008ca8: 9f c0 40 00 call %g1 2008cac: d0 04 80 00 ld [ %l2 ], %o0 _Thread_Executing, the_thread ); if ( !status ) 2008cb0: 80 8a 20 ff btst 0xff, %o0 2008cb4: 02 80 00 08 be 2008cd4 <_User_extensions_Thread_create+0x60> 2008cb8: 01 00 00 00 nop 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 ) { 2008cbc: e0 04 00 00 ld [ %l0 ], %l0 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 ) ; 2008cc0: 80 a4 00 11 cmp %l0, %l1 2008cc4: 32 bf ff f6 bne,a 2008c9c <_User_extensions_Thread_create+0x28> 2008cc8: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 return FALSE; } } return TRUE; } 2008ccc: 81 c7 e0 08 ret 2008cd0: 91 e8 20 01 restore %g0, 1, %o0 if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( _Thread_Executing, the_thread ); if ( !status ) 2008cd4: 81 c7 e0 08 ret <== NOT EXECUTED 2008cd8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200ac50 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 200ac50: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; _ISR_Disable( level ); 200ac54: 7f ff df 71 call 2002a18 200ac58: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200ac5c: c4 06 00 00 ld [ %i0 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200ac60: a0 06 20 04 add %i0, 4, %l0 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 200ac64: 80 a0 80 10 cmp %g2, %l0 200ac68: 02 80 00 1f be 200ace4 <_Watchdog_Adjust+0x94> 200ac6c: 80 a6 60 00 cmp %i1, 0 switch ( direction ) { 200ac70: 12 80 00 1f bne 200acec <_Watchdog_Adjust+0x9c> 200ac74: 80 a6 60 01 cmp %i1, 1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200ac78: 80 a6 a0 00 cmp %i2, 0 200ac7c: 02 80 00 1a be 200ace4 <_Watchdog_Adjust+0x94> 200ac80: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200ac84: f2 00 a0 10 ld [ %g2 + 0x10 ], %i1 200ac88: 80 a6 80 19 cmp %i2, %i1 200ac8c: 1a 80 00 0b bcc 200acb8 <_Watchdog_Adjust+0x68> 200ac90: a2 10 20 01 mov 1, %l1 _Watchdog_First( header )->delta_interval -= units; 200ac94: 10 80 00 1d b 200ad08 <_Watchdog_Adjust+0xb8> <== NOT EXECUTED 200ac98: 82 26 40 1a sub %i1, %i2, %g1 <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200ac9c: b4 a6 80 19 subcc %i2, %i1, %i2 200aca0: 02 80 00 11 be 200ace4 <_Watchdog_Adjust+0x94> 200aca4: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200aca8: f2 00 a0 10 ld [ %g2 + 0x10 ], %i1 200acac: 80 a6 40 1a cmp %i1, %i2 200acb0: 18 80 00 16 bgu 200ad08 <_Watchdog_Adjust+0xb8> 200acb4: 82 26 40 1a sub %i1, %i2, %g1 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 200acb8: e2 20 a0 10 st %l1, [ %g2 + 0x10 ] _ISR_Enable( level ); 200acbc: 7f ff df 5b call 2002a28 200acc0: 01 00 00 00 nop _Watchdog_Tickle( header ); 200acc4: 40 00 00 b4 call 200af94 <_Watchdog_Tickle> 200acc8: 90 10 00 18 mov %i0, %o0 _ISR_Disable( level ); 200accc: 7f ff df 53 call 2002a18 200acd0: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200acd4: c2 06 00 00 ld [ %i0 ], %g1 if ( _Chain_Is_empty( header ) ) 200acd8: 80 a4 00 01 cmp %l0, %g1 200acdc: 12 bf ff f0 bne 200ac9c <_Watchdog_Adjust+0x4c> 200ace0: 84 10 00 01 mov %g1, %g2 } break; } } _ISR_Enable( level ); 200ace4: 7f ff df 51 call 2002a28 200ace8: 91 e8 00 08 restore %g0, %o0, %o0 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 200acec: 12 bf ff fe bne 200ace4 <_Watchdog_Adjust+0x94> 200acf0: 01 00 00 00 nop case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 200acf4: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200acf8: 82 00 40 1a add %g1, %i2, %g1 200acfc: c2 20 a0 10 st %g1, [ %g2 + 0x10 ] } break; } } _ISR_Enable( level ); 200ad00: 7f ff df 4a call 2002a28 200ad04: 91 e8 00 08 restore %g0, %o0, %o0 _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 200ad08: 10 bf ff f7 b 200ace4 <_Watchdog_Adjust+0x94> 200ad0c: c2 20 a0 10 st %g1, [ %g2 + 0x10 ] 02016394 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 2016394: 9d e3 bf 98 save %sp, -104, %sp Watchdog_Interval units = units_arg; ISR_Level level; Chain_Node *node; if ( !units ) { 2016398: a2 96 60 00 orcc %i1, 0, %l1 201639c: 12 80 00 04 bne 20163ac <_Watchdog_Adjust_to_chain+0x18> 20163a0: 01 00 00 00 nop 20163a4: 81 c7 e0 08 ret 20163a8: 81 e8 00 00 restore return; } _ISR_Disable( level ); 20163ac: 7f ff d3 a2 call 200b234 20163b0: 01 00 00 00 nop 20163b4: a6 10 00 08 mov %o0, %l3 20163b8: c4 06 00 00 ld [ %i0 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 20163bc: a0 06 20 04 add %i0, 4, %l0 if ( !_Chain_Is_empty( header ) ) { 20163c0: 80 a0 80 10 cmp %g2, %l0 20163c4: 02 80 00 25 be 2016458 <_Watchdog_Adjust_to_chain+0xc4> 20163c8: a4 06 a0 04 add %i2, 4, %l2 20163cc: f2 00 a0 10 ld [ %g2 + 0x10 ], %i1 while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 20163d0: 80 a6 40 11 cmp %i1, %l1 20163d4: 18 80 00 20 bgu 2016454 <_Watchdog_Adjust_to_chain+0xc0> 20163d8: 82 26 40 11 sub %i1, %l1, %g1 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 0; 20163dc: 10 80 00 15 b 2016430 <_Watchdog_Adjust_to_chain+0x9c> 20163e0: c0 20 a0 10 clr [ %g2 + 0x10 ] Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 20163e4: c2 26 00 00 st %g1, [ %i0 ] new_first->previous = _Chain_Head(the_chain); 20163e8: f0 20 60 04 st %i0, [ %g1 + 4 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 20163ec: e4 20 80 00 st %l2, [ %g2 ] old_last_node = the_chain->last; 20163f0: c2 06 a0 08 ld [ %i2 + 8 ], %g1 the_chain->last = the_node; 20163f4: c4 26 a0 08 st %g2, [ %i2 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 20163f8: c2 20 a0 04 st %g1, [ %g2 + 4 ] 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; 20163fc: c4 20 40 00 st %g2, [ %g1 ] do { node = _Chain_Get_unprotected( header ); _Chain_Append_unprotected( to_fire, node ); _ISR_Flash( level ); 2016400: 7f ff d3 91 call 200b244 2016404: 90 10 00 13 mov %l3, %o0 2016408: 7f ff d3 8b call 200b234 201640c: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2016410: c4 06 00 00 ld [ %i0 ], %g2 } while ( !_Chain_Is_empty( header ) && _Watchdog_First( header )->delta_interval == 0 ); 2016414: 80 a4 00 02 cmp %l0, %g2 2016418: 02 80 00 10 be 2016458 <_Watchdog_Adjust_to_chain+0xc4> 201641c: 01 00 00 00 nop 2016420: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2016424: 80 a0 60 00 cmp %g1, 0 2016428: 32 80 00 07 bne,a 2016444 <_Watchdog_Adjust_to_chain+0xb0> 201642c: a2 a4 40 19 subcc %l1, %i1, %l1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 2016430: 80 a4 00 02 cmp %l0, %g2 2016434: 32 bf ff ec bne,a 20163e4 <_Watchdog_Adjust_to_chain+0x50> 2016438: c2 00 80 00 ld [ %g2 ], %g1 201643c: 10 bf ff ec b 20163ec <_Watchdog_Adjust_to_chain+0x58> <== NOT EXECUTED 2016440: 84 10 20 00 clr %g2 <== NOT EXECUTED return; } _ISR_Disable( level ); if ( !_Chain_Is_empty( header ) ) { while ( units ) { 2016444: 02 80 00 05 be 2016458 <_Watchdog_Adjust_to_chain+0xc4> 2016448: 01 00 00 00 nop 201644c: 10 bf ff e1 b 20163d0 <_Watchdog_Adjust_to_chain+0x3c> <== NOT EXECUTED 2016450: b2 10 00 01 mov %g1, %i1 <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 2016454: c2 20 a0 10 st %g1, [ %g2 + 0x10 ] break; } } } _ISR_Enable( level ); 2016458: 7f ff d3 7b call 200b244 201645c: 91 e8 00 13 restore %g0, %l3, %o0 2016460: 01 00 00 00 nop 02008dcc <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 2008dcc: 9d e3 bf 98 save %sp, -104, %sp Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 2008dd0: 03 00 80 5c sethi %hi(0x2017000), %g1 void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 2008dd4: ac 10 00 18 mov %i0, %l6 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 2008dd8: e6 00 63 40 ld [ %g1 + 0x340 ], %l3 _ISR_Disable( level ); 2008ddc: 7f ff e3 f2 call 2001da4 2008de0: 01 00 00 00 nop 2008de4: b0 10 00 08 mov %o0, %i0 /* * 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 ) { 2008de8: c2 06 60 08 ld [ %i1 + 8 ], %g1 2008dec: 80 a0 60 00 cmp %g1, 0 2008df0: 12 80 00 4a bne 2008f18 <_Watchdog_Insert+0x14c> 2008df4: 01 00 00 00 nop _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 2008df8: 2b 00 80 5c sethi %hi(0x2017000), %l5 2008dfc: c2 05 63 f0 ld [ %l5 + 0x3f0 ], %g1 ! 20173f0 <_Watchdog_Sync_count> if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 2008e00: 84 10 20 01 mov 1, %g2 _Watchdog_Sync_count++; 2008e04: 82 00 60 01 inc %g1 2008e08: 2f 00 80 5c sethi %hi(0x2017000), %l7 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 2008e0c: c4 26 60 08 st %g2, [ %i1 + 8 ] 2008e10: a8 15 e3 60 or %l7, 0x360, %l4 _Watchdog_Sync_count++; 2008e14: c2 25 63 f0 st %g1, [ %l5 + 0x3f0 ] if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 2008e18: ba 10 00 14 mov %l4, %i5 the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 2008e1c: e4 06 60 0c ld [ %i1 + 0xc ], %l2 * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 2008e20: e2 05 80 00 ld [ %l6 ], %l1 ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 2008e24: 80 a4 a0 00 cmp %l2, 0 2008e28: 02 80 00 2b be 2008ed4 <_Watchdog_Insert+0x108> 2008e2c: 03 00 80 5c sethi %hi(0x2017000), %g1 2008e30: c2 04 40 00 ld [ %l1 ], %g1 2008e34: 80 a0 60 00 cmp %g1, 0 2008e38: 02 80 00 27 be 2008ed4 <_Watchdog_Insert+0x108> 2008e3c: 03 00 80 5c sethi %hi(0x2017000), %g1 break; if ( delta_interval < after->delta_interval ) { 2008e40: e0 04 60 10 ld [ %l1 + 0x10 ], %l0 2008e44: 80 a4 80 10 cmp %l2, %l0 2008e48: 1a 80 00 13 bcc 2008e94 <_Watchdog_Insert+0xc8> 2008e4c: 82 24 00 12 sub %l0, %l2, %g1 after->delta_interval -= delta_interval; 2008e50: 10 80 00 20 b 2008ed0 <_Watchdog_Insert+0x104> 2008e54: c2 24 60 10 st %g1, [ %l1 + 0x10 ] if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 2008e58: c2 05 00 00 ld [ %l4 ], %g1 2008e5c: 80 a4 c0 01 cmp %l3, %g1 2008e60: 0a 80 00 30 bcs 2008f20 <_Watchdog_Insert+0x154> 2008e64: 01 00 00 00 nop */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 2008e68: a4 a4 80 10 subcc %l2, %l0, %l2 2008e6c: 02 80 00 19 be 2008ed0 <_Watchdog_Insert+0x104> 2008e70: e2 04 40 00 ld [ %l1 ], %l1 2008e74: c2 04 40 00 ld [ %l1 ], %g1 2008e78: 80 a0 60 00 cmp %g1, 0 2008e7c: 02 80 00 16 be 2008ed4 <_Watchdog_Insert+0x108> 2008e80: 03 00 80 5c sethi %hi(0x2017000), %g1 break; if ( delta_interval < after->delta_interval ) { 2008e84: e0 04 60 10 ld [ %l1 + 0x10 ], %l0 2008e88: 80 a4 00 12 cmp %l0, %l2 2008e8c: 18 80 00 10 bgu 2008ecc <_Watchdog_Insert+0x100> 2008e90: 82 24 00 12 sub %l0, %l2, %g1 * 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 ); 2008e94: 7f ff e3 c8 call 2001db4 2008e98: 90 10 00 18 mov %i0, %o0 2008e9c: 7f ff e3 c2 call 2001da4 2008ea0: 01 00 00 00 nop if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 2008ea4: c2 06 60 08 ld [ %i1 + 8 ], %g1 2008ea8: 80 a0 60 01 cmp %g1, 1 2008eac: 02 bf ff eb be 2008e58 <_Watchdog_Insert+0x8c> 2008eb0: 01 00 00 00 nop _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; 2008eb4: e6 25 e3 60 st %l3, [ %l7 + 0x360 ] <== NOT EXECUTED _Watchdog_Sync_count--; 2008eb8: c2 05 63 f0 ld [ %l5 + 0x3f0 ], %g1 <== NOT EXECUTED 2008ebc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2008ec0: c2 25 63 f0 st %g1, [ %l5 + 0x3f0 ] <== NOT EXECUTED _ISR_Enable( level ); 2008ec4: 7f ff e3 bc call 2001db4 <== NOT EXECUTED 2008ec8: 81 e8 00 00 restore <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; 2008ecc: c2 24 60 10 st %g1, [ %l1 + 0x10 ] the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; 2008ed0: 03 00 80 5c sethi %hi(0x2017000), %g1 2008ed4: c6 00 63 f4 ld [ %g1 + 0x3f4 ], %g3 ! 20173f4 <_Watchdog_Ticks_since_boot> _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 2008ed8: c4 04 60 04 ld [ %l1 + 4 ], %g2 the_watchdog->start_time = _Watchdog_Ticks_since_boot; 2008edc: c6 26 60 14 st %g3, [ %i1 + 0x14 ] } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 2008ee0: e4 26 60 10 st %l2, [ %i1 + 0x10 ] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 2008ee4: 82 10 20 02 mov 2, %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2008ee8: c8 00 80 00 ld [ %g2 ], %g4 _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; 2008eec: e6 25 e3 60 st %l3, [ %l7 + 0x360 ] 2008ef0: c2 26 60 08 st %g1, [ %i1 + 8 ] _Watchdog_Sync_count--; 2008ef4: c2 05 63 f0 ld [ %l5 + 0x3f0 ], %g1 after_node->next = the_node; 2008ef8: f2 20 80 00 st %i1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2008efc: c4 26 60 04 st %g2, [ %i1 + 4 ] 2008f00: 82 00 7f ff add %g1, -1, %g1 before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 2008f04: f2 21 20 04 st %i1, [ %g4 + 4 ] Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 2008f08: c8 26 40 00 st %g4, [ %i1 ] 2008f0c: c2 25 63 f0 st %g1, [ %l5 + 0x3f0 ] _ISR_Enable( level ); 2008f10: 7f ff e3 a9 call 2001db4 2008f14: 81 e8 00 00 restore * 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 ); 2008f18: 7f ff e3 a7 call 2001db4 <== NOT EXECUTED 2008f1c: 81 e8 00 00 restore <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { _Watchdog_Sync_level = insert_isr_nest_level; 2008f20: e6 27 40 00 st %l3, [ %i5 ] the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 2008f24: 10 bf ff bf b 2008e20 <_Watchdog_Insert+0x54> 2008f28: e4 06 60 0c ld [ %i1 + 0xc ], %l2 02008f78 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 2008f78: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 2008f7c: 7f ff e3 8a call 2001da4 2008f80: a0 10 00 18 mov %i0, %l0 previous_state = the_watchdog->state; 2008f84: f0 06 20 08 ld [ %i0 + 8 ], %i0 switch ( previous_state ) { 2008f88: 80 a6 20 01 cmp %i0, 1 2008f8c: 02 80 00 2a be 2009034 <_Watchdog_Remove+0xbc> 2008f90: 03 00 80 5c sethi %hi(0x2017000), %g1 2008f94: 1a 80 00 09 bcc 2008fb8 <_Watchdog_Remove+0x40> 2008f98: 80 a6 20 03 cmp %i0, 3 _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 2008f9c: 03 00 80 5c sethi %hi(0x2017000), %g1 2008fa0: c4 00 63 f4 ld [ %g1 + 0x3f4 ], %g2 ! 20173f4 <_Watchdog_Ticks_since_boot> 2008fa4: c4 24 20 18 st %g2, [ %l0 + 0x18 ] _ISR_Enable( level ); 2008fa8: 7f ff e3 83 call 2001db4 2008fac: 01 00 00 00 nop return( previous_state ); } 2008fb0: 81 c7 e0 08 ret 2008fb4: 81 e8 00 00 restore Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 2008fb8: 18 bf ff fa bgu 2008fa0 <_Watchdog_Remove+0x28> 2008fbc: 03 00 80 5c sethi %hi(0x2017000), %g1 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 2008fc0: c8 04 00 00 ld [ %l0 ], %g4 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 2008fc4: c0 24 20 08 clr [ %l0 + 8 ] next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 2008fc8: c2 01 00 00 ld [ %g4 ], %g1 2008fcc: 80 a0 60 00 cmp %g1, 0 2008fd0: 02 80 00 07 be 2008fec <_Watchdog_Remove+0x74> 2008fd4: 03 00 80 5c sethi %hi(0x2017000), %g1 next_watchdog->delta_interval += the_watchdog->delta_interval; 2008fd8: c2 01 20 10 ld [ %g4 + 0x10 ], %g1 2008fdc: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 2008fe0: 82 00 40 02 add %g1, %g2, %g1 2008fe4: c2 21 20 10 st %g1, [ %g4 + 0x10 ] if ( _Watchdog_Sync_count ) 2008fe8: 03 00 80 5c sethi %hi(0x2017000), %g1 2008fec: c4 00 63 f0 ld [ %g1 + 0x3f0 ], %g2 ! 20173f0 <_Watchdog_Sync_count> 2008ff0: 80 a0 a0 00 cmp %g2, 0 2008ff4: 22 80 00 07 be,a 2009010 <_Watchdog_Remove+0x98> 2008ff8: c2 04 20 04 ld [ %l0 + 4 ], %g1 _Watchdog_Sync_level = _ISR_Nest_level; 2008ffc: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 2009000: c6 00 63 40 ld [ %g1 + 0x340 ], %g3 ! 2017340 <_ISR_Nest_level> <== NOT EXECUTED 2009004: 05 00 80 5c sethi %hi(0x2017000), %g2 <== NOT EXECUTED 2009008: c6 20 a3 60 st %g3, [ %g2 + 0x360 ] ! 2017360 <_Watchdog_Sync_level> <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 200900c: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED next->previous = previous; previous->next = next; 2009010: c8 20 40 00 st %g4, [ %g1 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 2009014: c2 21 20 04 st %g1, [ %g4 + 4 ] _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 2009018: 03 00 80 5c sethi %hi(0x2017000), %g1 200901c: c4 00 63 f4 ld [ %g1 + 0x3f4 ], %g2 ! 20173f4 <_Watchdog_Ticks_since_boot> 2009020: c4 24 20 18 st %g2, [ %l0 + 0x18 ] _ISR_Enable( level ); 2009024: 7f ff e3 64 call 2001db4 2009028: 01 00 00 00 nop return( previous_state ); } 200902c: 81 c7 e0 08 ret 2009030: 81 e8 00 00 restore _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 2009034: c4 00 63 f4 ld [ %g1 + 0x3f4 ], %g2 <== 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; 2009038: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 200903c: c4 24 20 18 st %g2, [ %l0 + 0x18 ] <== NOT EXECUTED _ISR_Enable( level ); 2009040: 7f ff e3 5d call 2001db4 <== NOT EXECUTED 2009044: 01 00 00 00 nop <== NOT EXECUTED return( previous_state ); } 2009048: 81 c7 e0 08 ret <== NOT EXECUTED 200904c: 81 e8 00 00 restore <== NOT EXECUTED 02009168 <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 2009168: 9d e3 bf 98 save %sp, -104, %sp uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 200916c: 80 a6 20 00 cmp %i0, 0 2009170: 02 80 00 15 be 20091c4 <_Workspace_Handler_initialization+0x5c> 2009174: 80 8e 20 07 btst 7, %i0 2009178: 12 80 00 14 bne 20091c8 <_Workspace_Handler_initialization+0x60> 200917c: 90 10 20 00 clr %o0 INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 2009180: 03 00 80 5c sethi %hi(0x2017000), %g1 2009184: c4 00 63 3c ld [ %g1 + 0x33c ], %g2 ! 201733c <_Configuration_Table> 2009188: c6 08 a0 28 ldub [ %g2 + 0x28 ], %g3 200918c: 80 a0 e0 00 cmp %g3, 0 2009190: 32 80 00 11 bne,a 20091d4 <_Workspace_Handler_initialization+0x6c> 2009194: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 2009198: 92 10 00 18 mov %i0, %o1 200919c: 94 10 00 19 mov %i1, %o2 20091a0: 11 00 80 5c sethi %hi(0x2017000), %o0 20091a4: 96 10 20 08 mov 8, %o3 20091a8: 7f ff f5 ab call 2006854 <_Heap_Initialize> 20091ac: 90 12 22 c4 or %o0, 0x2c4, %o0 starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 20091b0: 80 a2 20 00 cmp %o0, 0 20091b4: 02 80 00 0d be 20091e8 <_Workspace_Handler_initialization+0x80> 20091b8: 92 10 20 01 mov 1, %o1 20091bc: 81 c7 e0 08 ret 20091c0: 81 e8 00 00 restore ) { uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) _Internal_error_Occurred( 20091c4: 90 10 20 00 clr %o0 20091c8: 92 10 20 01 mov 1, %o1 20091cc: 7f ff f6 2f call 2006a88 <_Internal_error_Occurred> 20091d0: 94 10 20 02 mov 2, %o2 TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) memset( starting_address, 0, size ); 20091d4: 92 10 20 00 clr %o1 <== NOT EXECUTED 20091d8: 40 00 11 13 call 200d624 <== NOT EXECUTED 20091dc: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED memory_available = _Heap_Initialize( 20091e0: 10 bf ff ef b 200919c <_Workspace_Handler_initialization+0x34> <== NOT EXECUTED 20091e4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( 20091e8: 7f ff f6 28 call 2006a88 <_Internal_error_Occurred> <== NOT EXECUTED 20091ec: 94 10 20 03 mov 3, %o2 <== NOT EXECUTED 20091f0: 01 00 00 00 nop 02001f48 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 2001f48: 96 10 00 0a mov %o2, %o3 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 2001f4c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2001f50: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2001f54: 7f ff ff eb call 2001f00 <__assert_func> <== NOT EXECUTED 2001f58: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2001f5c: 01 00 00 00 nop 02001f00 <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 2001f00: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 2001f04: 03 00 80 55 sethi %hi(0x2015400), %g1 <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 2001f08: 9a 10 00 1a mov %i2, %o5 <== NOT EXECUTED 2001f0c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2001f10: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED 2001f14: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 2001f18: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2001f1c: 02 80 00 07 be 2001f38 <__assert_func+0x38> <== NOT EXECUTED 2001f20: 98 10 63 50 or %g1, 0x350, %o4 <== NOT EXECUTED 2001f24: 11 00 80 55 sethi %hi(0x2015400), %o0 <== NOT EXECUTED 2001f28: 40 00 04 0a call 2002f50 <== NOT EXECUTED 2001f2c: 90 12 23 60 or %o0, 0x360, %o0 ! 2015760 <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 2001f30: 40 00 0f ec call 2005ee0 <== NOT EXECUTED 2001f34: 90 10 20 00 clr %o0 <== NOT EXECUTED int line, const char *func, const char *failedexpr ) { printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 2001f38: 03 00 80 55 sethi %hi(0x2015400), %g1 <== NOT EXECUTED 2001f3c: 9a 10 63 00 or %g1, 0x300, %o5 ! 2015700 <== NOT EXECUTED 2001f40: 10 bf ff f9 b 2001f24 <__assert_func+0x24> <== NOT EXECUTED 2001f44: 98 10 00 0d mov %o5, %o4 <== NOT EXECUTED 02021ad0 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 2021ad0: 81 c3 e0 08 retl <== NOT EXECUTED 2021ad4: 90 10 20 00 clr %o0 <== NOT EXECUTED 020148d8 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 20148d8: 9d e3 bf 98 save %sp, -104, %sp 20148dc: 40 00 06 d4 call 201642c <_fini> 20148e0: 01 00 00 00 nop * 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(); 20148e4: 7f ff ff e1 call 2014868 20148e8: 01 00 00 00 nop rtems_shutdown_executive(status); 20148ec: 40 00 00 52 call 2014a34 20148f0: 90 10 00 18 mov %i0, %o0 20148f4: 30 80 00 00 b,a 20148f4 <_exit+0x1c> <== NOT EXECUTED 0202e7f8 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 202e7f8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 202e7fc: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 202e800: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 202e804: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202e808: 7f ff ff 6a call 202e5b0 <== NOT EXECUTED 202e80c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202e810: 01 00 00 00 nop 02021940 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr ) { return getpid(); } 2021940: 81 c3 e0 08 retl <== NOT EXECUTED 2021944: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 0200aa50 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 200aa50: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200aa54: 7f ff ff e6 call 200a9ec <== NOT EXECUTED 200aa58: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200aa5c: 01 00 00 00 nop 02021ac8 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 2021ac8: 81 c3 e0 08 retl <== NOT EXECUTED 2021acc: 90 10 20 00 clr %o0 <== NOT EXECUTED 02021bd0 <_link_r>: struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 2021bd0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2021bd4: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2021bd8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2021bdc: 7f ff ff 59 call 2021940 <== NOT EXECUTED 2021be0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021be4: 01 00 00 00 nop 02014838 <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 2014838: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201483c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2014840: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 2014844: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2014848: 7f ff ff ba call 2014730 <== NOT EXECUTED 201484c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2014850: 01 00 00 00 nop 02021e34 <_lstat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2021e34: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2021e38: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2021e3c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2021e40: 7f ff ff b3 call 2021d0c <== NOT EXECUTED 2021e44: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021e48: 01 00 00 00 nop 02002ab0 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 2002ab0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2002ab4: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2002ab8: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 2002abc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002ac0: 7f ff ff 38 call 20027a0 <== NOT EXECUTED 2002ac4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2002ac8: 01 00 00 00 nop <== NOT EXECUTED 020149e4 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 20149e4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20149e8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20149ec: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 20149f0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20149f4: 7f ff ff c1 call 20148f8 <== NOT EXECUTED 20149f8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20149fc: 01 00 00 00 nop 02014a00 <_realloc_r>: struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 2014a00: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2014a04: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2014a08: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2014a0c: 40 00 00 17 call 2014a68 <== NOT EXECUTED 2014a10: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2014a14: 01 00 00 00 nop 02041c98 <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 2041c98: 9d e3 bf 48 save %sp, -184, %sp <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 2041c9c: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 2041ca0: 7f ff 10 f5 call 2006074 <== NOT EXECUTED 2041ca4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( s < 0 ) 2041ca8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2041cac: 06 80 00 0f bl 2041ce8 <_rename_r+0x50> <== NOT EXECUTED 2041cb0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED return s; s = link( old, new ); 2041cb4: 7f ff 7f 23 call 2021940 <== NOT EXECUTED 2041cb8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( s < 0 ) 2041cbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2041cc0: 06 80 00 0a bl 2041ce8 <_rename_r+0x50> <== NOT EXECUTED 2041cc4: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 2041cc8: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED 2041ccc: 07 00 00 10 sethi %hi(0x4000), %g3 <== NOT EXECUTED 2041cd0: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED 2041cd4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2041cd8: 02 80 00 06 be 2041cf0 <_rename_r+0x58> <== NOT EXECUTED 2041cdc: 01 00 00 00 nop <== NOT EXECUTED 2041ce0: 7f ff 83 6d call 2022a94 <== NOT EXECUTED 2041ce4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } 2041ce8: 81 c7 e0 08 ret <== NOT EXECUTED 2041cec: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ); 2041cf0: 7f ff 82 4e call 2022628 <== NOT EXECUTED 2041cf4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } 2041cf8: 81 c7 e0 08 ret <== NOT EXECUTED 2041cfc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200619c <_stat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 200619c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20061a0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20061a4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20061a8: 7f ff ff b3 call 2006074 <== NOT EXECUTED 20061ac: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20061b0: 01 00 00 00 nop 02022bf8 <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 2022bf8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2022bfc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2022c00: 7f ff ff a5 call 2022a94 <== NOT EXECUTED 2022c04: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2022c08: 01 00 00 00 nop 0201fcd4 : int access( const char *path, int amode ) { 201fcd4: 9d e3 bf 48 save %sp, -184, %sp <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 201fcd8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201fcdc: 7f ff 98 e6 call 2006074 <== NOT EXECUTED 201fce0: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 201fce4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201fce8: 12 80 00 0f bne 201fd24 <== NOT EXECUTED 201fcec: 80 8e 60 04 btst 4, %i1 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 201fcf0: 12 80 00 0a bne 201fd18 <== NOT EXECUTED 201fcf4: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 201fcf8: 80 8e 60 02 btst 2, %i1 <== NOT EXECUTED 201fcfc: 12 80 00 10 bne 201fd3c <== NOT EXECUTED 201fd00: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 201fd04: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED 201fd08: 12 80 00 09 bne 201fd2c <== NOT EXECUTED 201fd0c: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) return -1; } return 0; } 201fd10: 81 c7 e0 08 ret <== NOT EXECUTED 201fd14: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 201fd18: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 201fd1c: 12 bf ff f8 bne 201fcfc <== NOT EXECUTED 201fd20: 80 8e 60 02 btst 2, %i1 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 201fd24: 81 c7 e0 08 ret <== NOT EXECUTED 201fd28: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 201fd2c: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 201fd30: 12 bf ff f8 bne 201fd10 <== NOT EXECUTED 201fd34: 01 00 00 00 nop <== NOT EXECUTED 201fd38: 30 bf ff fb b,a 201fd24 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 201fd3c: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 201fd40: 12 bf ff f2 bne 201fd08 <== NOT EXECUTED 201fd44: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED 201fd48: 30 bf ff f7 b,a 201fd24 <== NOT EXECUTED 0201ff98 : #include int chdir( const char *pathname ) { 201ff98: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 201ff9c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 201ffa0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201ffa4: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 201ffa8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 201ffac: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201ffb0: 7f ff 91 93 call 20045fc <== NOT EXECUTED 201ffb4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 201ffb8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ffbc: 12 80 00 2f bne 2020078 <== NOT EXECUTED 201ffc0: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 201ffc4: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 201ffc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ffcc: 22 80 00 2d be,a 2020080 <== NOT EXECUTED 201ffd0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 201ffd4: 9f c0 40 00 call %g1 <== NOT EXECUTED 201ffd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ffdc: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 201ffe0: 12 80 00 19 bne 2020044 <== NOT EXECUTED 201ffe4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 201ffe8: 21 00 81 23 sethi %hi(0x2048c00), %l0 <== NOT EXECUTED 201ffec: d0 04 21 8c ld [ %l0 + 0x18c ], %o0 ! 2048d8c <== NOT EXECUTED 201fff0: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED 201fff4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fff8: 22 80 00 09 be,a 202001c <== NOT EXECUTED 201fffc: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 2020000: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020004: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020008: 22 80 00 05 be,a 202001c <== NOT EXECUTED 202000c: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 2020010: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020014: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 2020018: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 202001c: c6 04 21 8c ld [ %l0 + 0x18c ], %g3 <== NOT EXECUTED 2020020: c2 20 e0 04 st %g1, [ %g3 + 4 ] <== NOT EXECUTED 2020024: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 2020028: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED 202002c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2020030: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED 2020034: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 2020038: c4 20 e0 10 st %g2, [ %g3 + 0x10 ] <== NOT EXECUTED return 0; } 202003c: 81 c7 e0 08 ret <== NOT EXECUTED 2020040: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 2020044: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020048: 02 80 00 08 be 2020068 <== NOT EXECUTED 202004c: 01 00 00 00 nop <== NOT EXECUTED 2020050: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020054: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020058: 02 80 00 04 be 2020068 <== NOT EXECUTED 202005c: 01 00 00 00 nop <== NOT EXECUTED 2020060: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020064: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 2020068: 40 00 42 e3 call 2030bf4 <__errno> <== NOT EXECUTED 202006c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2020070: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2020074: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020078: 81 c7 e0 08 ret <== NOT EXECUTED 202007c: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 2020080: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020084: 02 80 00 04 be 2020094 <== NOT EXECUTED 2020088: 01 00 00 00 nop <== NOT EXECUTED 202008c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020090: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2020094: 40 00 42 d8 call 2030bf4 <__errno> <== NOT EXECUTED 2020098: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202009c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20200a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20200a4: 81 c7 e0 08 ret <== NOT EXECUTED 20200a8: 81 e8 00 00 restore <== NOT EXECUTED 02004378 : int chmod( const char *path, mode_t mode ) { 2004378: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); 200437c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004380: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004384: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2004388: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 200438c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2004390: 40 00 00 9b call 20045fc <== NOT EXECUTED 2004394: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( status != 0 ) 2004398: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200439c: 12 80 00 16 bne 20043f4 <== NOT EXECUTED 20043a0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers ){ 20043a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043a8: 22 80 00 25 be,a 200443c <== NOT EXECUTED 20043ac: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 20043b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20043b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043b8: 02 80 00 11 be 20043fc <== NOT EXECUTED 20043bc: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 20043c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20043c4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20043c8: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20043cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20043d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043d4: 02 80 00 08 be 20043f4 <== NOT EXECUTED 20043d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20043dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20043e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043e4: 02 80 00 23 be 2004470 <== NOT EXECUTED 20043e8: 01 00 00 00 nop <== NOT EXECUTED 20043ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20043f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 20043f4: 81 c7 e0 08 ret <== NOT EXECUTED 20043f8: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 20043fc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2004400: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004404: 02 80 00 08 be 2004424 <== NOT EXECUTED 2004408: 01 00 00 00 nop <== NOT EXECUTED 200440c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2004410: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004414: 02 80 00 04 be 2004424 <== NOT EXECUTED 2004418: 01 00 00 00 nop <== NOT EXECUTED 200441c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004420: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2004424: 40 00 b1 f4 call 2030bf4 <__errno> <== NOT EXECUTED 2004428: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200442c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2004430: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2004434: 81 c7 e0 08 ret <== NOT EXECUTED 2004438: 81 e8 00 00 restore <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 200443c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004440: 02 80 00 08 be 2004460 <== NOT EXECUTED 2004444: 01 00 00 00 nop <== NOT EXECUTED 2004448: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200444c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004450: 02 80 00 04 be 2004460 <== NOT EXECUTED 2004454: 01 00 00 00 nop <== NOT EXECUTED 2004458: 9f c0 40 00 call %g1 <== NOT EXECUTED 200445c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2004460: 40 00 b1 e5 call 2030bf4 <__errno> <== NOT EXECUTED 2004464: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004468: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 200446c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2004470: 81 c7 e0 08 ret <== NOT EXECUTED 2004474: 81 e8 00 00 restore <== NOT EXECUTED 020200ac : int chown( const char *path, uid_t owner, gid_t group ) { 20200ac: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 20200b0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20200b4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20200b8: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 20200bc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 20200c0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20200c4: 7f ff 91 4e call 20045fc <== NOT EXECUTED 20200c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20200cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20200d0: 12 80 00 15 bne 2020124 <== NOT EXECUTED 20200d4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 20200d8: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 20200dc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20200e0: 02 80 00 13 be 202012c <== NOT EXECUTED 20200e4: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 20200e8: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 20200ec: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 20200f0: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED 20200f4: 9f c0 80 00 call %g2 <== NOT EXECUTED 20200f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20200fc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2020100: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020104: 02 80 00 08 be 2020124 <== NOT EXECUTED 2020108: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 202010c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020110: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020114: 02 80 00 10 be 2020154 <== NOT EXECUTED 2020118: 01 00 00 00 nop <== NOT EXECUTED 202011c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020120: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2020124: 81 c7 e0 08 ret <== NOT EXECUTED 2020128: 81 e8 00 00 restore <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 202012c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020130: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020134: 02 80 00 04 be 2020144 <== NOT EXECUTED 2020138: 01 00 00 00 nop <== NOT EXECUTED 202013c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020140: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2020144: 40 00 42 ac call 2030bf4 <__errno> <== NOT EXECUTED 2020148: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202014c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2020150: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020154: 81 c7 e0 08 ret <== NOT EXECUTED 2020158: 81 e8 00 00 restore <== NOT EXECUTED 0202015c : #include int chroot( const char *pathname ) { 202015c: 9d e3 bf 88 save %sp, -120, %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) { 2020160: 23 00 81 23 sethi %hi(0x2048c00), %l1 <== NOT EXECUTED 2020164: e0 04 61 8c ld [ %l1 + 0x18c ], %l0 ! 2048d8c <== NOT EXECUTED 2020168: 03 00 81 76 sethi %hi(0x205d800), %g1 <== NOT EXECUTED 202016c: 82 10 60 d0 or %g1, 0xd0, %g1 ! 205d8d0 <== NOT EXECUTED 2020170: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 2020174: 02 80 00 24 be 2020204 <== NOT EXECUTED 2020178: 01 00 00 00 nop <== 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); 202017c: 7f ff ff 87 call 201ff98 <== NOT EXECUTED 2020180: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if (result) { 2020184: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020188: 12 80 00 2b bne 2020234 <== NOT EXECUTED 202018c: 11 00 81 0e sethi %hi(0x2043800), %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 2020190: 92 10 20 00 clr %o1 <== NOT EXECUTED 2020194: 90 12 21 28 or %o0, 0x128, %o0 <== NOT EXECUTED 2020198: 94 07 bf e8 add %fp, -24, %o2 <== NOT EXECUTED 202019c: 7f ff 91 18 call 20045fc <== NOT EXECUTED 20201a0: 96 10 20 00 clr %o3 <== NOT EXECUTED 20201a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20201a8: 12 80 00 23 bne 2020234 <== NOT EXECUTED 20201ac: d0 04 61 8c ld [ %l1 + 0x18c ], %o0 <== 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); 20201b0: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== NOT EXECUTED 20201b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20201b8: 22 80 00 09 be,a 20201dc <== NOT EXECUTED 20201bc: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 20201c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20201c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20201c8: 22 80 00 05 be,a 20201dc <== NOT EXECUTED 20201cc: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 20201d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20201d4: 90 02 20 14 add %o0, 0x14, %o0 <== NOT EXECUTED rtems_filesystem_root = loc; 20201d8: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 20201dc: c6 04 61 8c ld [ %l1 + 0x18c ], %g3 <== NOT EXECUTED 20201e0: c2 20 e0 14 st %g1, [ %g3 + 0x14 ] <== NOT EXECUTED 20201e4: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 20201e8: c4 20 e0 18 st %g2, [ %g3 + 0x18 ] <== NOT EXECUTED 20201ec: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20201f0: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] <== NOT EXECUTED 20201f4: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 20201f8: c4 20 e0 20 st %g2, [ %g3 + 0x20 ] <== NOT EXECUTED return 0; } 20201fc: 81 c7 e0 08 ret <== NOT EXECUTED 2020200: 91 e8 20 00 restore %g0, 0, %o0 <== 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*/ 2020204: 40 00 07 f0 call 20221c4 <== NOT EXECUTED 2020208: 01 00 00 00 nop <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 202020c: c2 04 61 8c ld [ %l1 + 0x18c ], %g1 <== NOT EXECUTED 2020210: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 2020214: 12 bf ff da bne 202017c <== NOT EXECUTED 2020218: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202021c: 40 00 42 76 call 2030bf4 <__errno> <== NOT EXECUTED 2020220: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2020224: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2020228: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202022c: 81 c7 e0 08 ret <== NOT EXECUTED 2020230: 81 e8 00 00 restore <== 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 ); 2020234: 40 00 42 70 call 2030bf4 <__errno> <== NOT EXECUTED 2020238: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202023c: 40 00 42 6e call 2030bf4 <__errno> <== NOT EXECUTED 2020240: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2020244: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2020248: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 202024c: 81 c7 e0 08 ret <== NOT EXECUTED 2020250: 81 e8 00 00 restore <== NOT EXECUTED 0200a760 : #include int close( int fd ) { 200a760: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 200a764: 03 00 80 59 sethi %hi(0x2016400), %g1 200a768: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 ! 2016448 200a76c: 80 a6 00 02 cmp %i0, %g2 200a770: 1a 80 00 23 bcc 200a7fc 200a774: 03 00 80 5c sethi %hi(0x2017000), %g1 iop = rtems_libio_iop(fd); 200a778: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 ! 20170cc 200a77c: 85 2e 20 02 sll %i0, 2, %g2 200a780: 83 2e 20 04 sll %i0, 4, %g1 200a784: 82 20 40 02 sub %g1, %g2, %g1 200a788: 82 00 40 18 add %g1, %i0, %g1 200a78c: 83 28 60 02 sll %g1, 2, %g1 200a790: b0 00 c0 01 add %g3, %g1, %i0 rtems_libio_check_is_open(iop); 200a794: c4 06 20 0c ld [ %i0 + 0xc ], %g2 200a798: 80 88 a1 00 btst 0x100, %g2 200a79c: 02 80 00 18 be 200a7fc 200a7a0: 01 00 00 00 nop rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 200a7a4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 200a7a8: c2 00 60 04 ld [ %g1 + 4 ], %g1 200a7ac: 80 a0 60 00 cmp %g1, 0 200a7b0: 02 80 00 05 be 200a7c4 200a7b4: a0 10 20 00 clr %l0 rc = (*iop->handlers->close_h)( iop ); 200a7b8: 9f c0 40 00 call %g1 200a7bc: 90 10 00 18 mov %i0, %o0 200a7c0: a0 10 00 08 mov %o0, %l0 rtems_filesystem_freenode( &iop->pathinfo ); 200a7c4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200a7c8: 80 a0 60 00 cmp %g1, 0 200a7cc: 02 80 00 08 be 200a7ec 200a7d0: 01 00 00 00 nop 200a7d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200a7d8: 80 a0 60 00 cmp %g1, 0 200a7dc: 02 80 00 04 be 200a7ec 200a7e0: 01 00 00 00 nop 200a7e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a7e8: 90 06 20 10 add %i0, 0x10, %o0 <== NOT EXECUTED rtems_libio_free( iop ); 200a7ec: 40 00 00 fc call 200abdc 200a7f0: 90 10 00 18 mov %i0, %o0 return rc; } 200a7f4: 81 c7 e0 08 ret 200a7f8: 91 e8 00 10 restore %g0, %l0, %o0 rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 200a7fc: 40 00 09 5f call 200cd78 <__errno> <== NOT EXECUTED 200a800: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED 200a804: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 200a808: 10 bf ff fb b 200a7f4 <== NOT EXECUTED 200a80c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 0202e378 : * close a directory. */ int closedir( DIR *dirp ) { 202e378: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int fd; if ( !dirp ) 202e37c: a0 96 20 00 orcc %i0, 0, %l0 <== NOT EXECUTED 202e380: 02 80 00 0b be 202e3ac <== NOT EXECUTED 202e384: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 202e388: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 202e38c: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; 202e390: c0 24 20 04 clr [ %l0 + 4 ] <== NOT EXECUTED (void)free((void *)dirp->dd_buf); 202e394: 7f ff 58 f8 call 2004774 <== NOT EXECUTED 202e398: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED (void)free((void *)dirp); 202e39c: 7f ff 58 f6 call 2004774 <== NOT EXECUTED 202e3a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return(close(fd)); 202e3a4: 7f ff 58 35 call 2004478 <== NOT EXECUTED 202e3a8: 81 e8 00 00 restore <== NOT EXECUTED DIR *dirp ) { int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); 202e3ac: 40 00 0a 12 call 2030bf4 <__errno> <== NOT EXECUTED 202e3b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e3b4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202e3b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); } 202e3bc: 81 c7 e0 08 ret <== NOT EXECUTED 202e3c0: 81 e8 00 00 restore <== NOT EXECUTED 0200c3bc : */ int device_close( rtems_libio_t *iop ) { 200c3bc: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200c3c0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 args.iop = iop; 200c3c4: f0 27 bf ec st %i0, [ %fp + -20 ] args.flags = 0; 200c3c8: c0 27 bf f0 clr [ %fp + -16 ] args.mode = 0; 200c3cc: c0 27 bf f4 clr [ %fp + -12 ] status = rtems_io_close( 200c3d0: d2 00 60 50 ld [ %g1 + 0x50 ], %o1 200c3d4: d0 00 60 4c ld [ %g1 + 0x4c ], %o0 200c3d8: 94 07 bf ec add %fp, -20, %o2 200c3dc: 40 00 01 47 call 200c8f8 200c3e0: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200c3e4: 80 a2 20 00 cmp %o0, 0 200c3e8: 12 80 00 04 bne 200c3f8 200c3ec: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 200c3f0: 81 c7 e0 08 ret 200c3f4: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 200c3f8: 7f ff ff a1 call 200c27c <== NOT EXECUTED 200c3fc: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 200c400: 81 c7 e0 08 ret <== NOT EXECUTED 200c404: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200c274 : rtems_libio_t *iop, off_t length ) { return 0; } 200c274: 81 c3 e0 08 retl <== NOT EXECUTED 200c278: 90 10 20 00 clr %o0 <== NOT EXECUTED 0200c2b0 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200c2b0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200c2b4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; 200c2b8: f2 27 bf ec st %i1, [ %fp + -20 ] <== NOT EXECUTED args.buffer = buffer; 200c2bc: f4 27 bf f0 st %i2, [ %fp + -16 ] <== NOT EXECUTED { rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; 200c2c0: f0 27 bf e8 st %i0, [ %fp + -24 ] <== NOT EXECUTED args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200c2c4: d2 00 60 50 ld [ %g1 + 0x50 ], %o1 <== NOT EXECUTED 200c2c8: d0 00 60 4c ld [ %g1 + 0x4c ], %o0 <== NOT EXECUTED 200c2cc: 40 00 01 a1 call 200c950 <== NOT EXECUTED 200c2d0: 94 07 bf e8 add %fp, -24, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c2d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c2d8: 12 80 00 05 bne 200c2ec <== NOT EXECUTED 200c2dc: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; 200c2e0: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED } 200c2e4: 81 c7 e0 08 ret <== NOT EXECUTED 200c2e8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200c2ec: 7f ff ff e4 call 200c27c <== NOT EXECUTED 200c2f0: 01 00 00 00 nop <== NOT EXECUTED return args.ioctl_return; } 200c2f4: 81 c7 e0 08 ret <== NOT EXECUTED 200c2f8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200c26c : off_t offset, int whence ) { return offset; } 200c26c: 81 c3 e0 08 retl <== NOT EXECUTED 200c270: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 0200c408 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200c408: 9d e3 bf 88 save %sp, -120, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; 200c40c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200c410: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 args.iop = iop; 200c414: f0 27 bf ec st %i0, [ %fp + -20 ] args.flags = iop->flags; 200c418: c2 27 bf f0 st %g1, [ %fp + -16 ] args.mode = mode; 200c41c: f6 27 bf f4 st %i3, [ %fp + -12 ] status = rtems_io_open( 200c420: d2 00 a0 50 ld [ %g2 + 0x50 ], %o1 200c424: d0 00 a0 4c ld [ %g2 + 0x4c ], %o0 200c428: 94 07 bf ec add %fp, -20, %o2 200c42c: 40 00 01 5f call 200c9a8 200c430: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c434: 80 a2 20 00 cmp %o0, 0 200c438: 12 80 00 04 bne 200c448 200c43c: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 200c440: 81 c7 e0 08 ret 200c444: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200c448: 7f ff ff 8d call 200c27c <== NOT EXECUTED 200c44c: 01 00 00 00 nop <== NOT EXECUTED return 0; } 200c450: 81 c7 e0 08 ret <== NOT EXECUTED 200c454: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200c35c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200c35c: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 200c360: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 200c364: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200c368: c6 06 20 2c ld [ %i0 + 0x2c ], %g3 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 200c36c: f2 27 bf e8 st %i1, [ %fp + -24 ] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 200c370: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200c374: f4 27 bf ec st %i2, [ %fp + -20 ] <== NOT EXECUTED args.flags = iop->flags; 200c378: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 200c37c: f0 27 bf e0 st %i0, [ %fp + -32 ] <== NOT EXECUTED args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 200c380: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED status = rtems_io_read( 200c384: d2 00 e0 50 ld [ %g3 + 0x50 ], %o1 <== NOT EXECUTED 200c388: d0 00 e0 4c ld [ %g3 + 0x4c ], %o0 <== NOT EXECUTED 200c38c: 40 00 01 9d call 200ca00 <== NOT EXECUTED 200c390: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c394: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c398: 12 80 00 05 bne 200c3ac <== NOT EXECUTED 200c39c: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200c3a0: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED } 200c3a4: 81 c7 e0 08 ret <== NOT EXECUTED 200c3a8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200c3ac: 7f ff ff b4 call 200c27c <== NOT EXECUTED 200c3b0: 01 00 00 00 nop <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200c3b4: 81 c7 e0 08 ret <== NOT EXECUTED 200c3b8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200c2fc : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200c2fc: 9d e3 bf 80 save %sp, -128, %sp args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 200c300: c4 06 20 0c ld [ %i0 + 0xc ], %g2 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 200c304: c2 06 20 08 ld [ %i0 + 8 ], %g1 { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200c308: c6 06 20 2c ld [ %i0 + 0x2c ], %g3 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 200c30c: f2 27 bf e8 st %i1, [ %fp + -24 ] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 200c310: c2 27 bf e4 st %g1, [ %fp + -28 ] args.buffer = (void *) buffer; args.count = count; 200c314: f4 27 bf ec st %i2, [ %fp + -20 ] args.flags = iop->flags; 200c318: c4 27 bf f0 st %g2, [ %fp + -16 ] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 200c31c: f0 27 bf e0 st %i0, [ %fp + -32 ] args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 200c320: c0 27 bf f4 clr [ %fp + -12 ] status = rtems_io_write( 200c324: d2 00 e0 50 ld [ %g3 + 0x50 ], %o1 200c328: d0 00 e0 4c ld [ %g3 + 0x4c ], %o0 200c32c: 40 00 01 cb call 200ca58 200c330: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c334: 80 a2 20 00 cmp %o0, 0 200c338: 12 80 00 05 bne 200c34c 200c33c: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200c340: d0 07 bf f4 ld [ %fp + -12 ], %o0 } 200c344: 81 c7 e0 08 ret 200c348: 91 e8 00 08 restore %g0, %o0, %o0 the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200c34c: 7f ff ff cc call 200c27c <== NOT EXECUTED 200c350: 01 00 00 00 nop <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200c354: 81 c7 e0 08 ret <== NOT EXECUTED 200c358: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02003e38 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2003e38: 9d e3 bf 98 save %sp, -104, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2003e3c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 2003e40: 80 a0 60 00 cmp %g1, 0 2003e44: 12 80 00 04 bne 2003e54 2003e48: 01 00 00 00 nop 2003e4c: 81 c7 e0 08 ret 2003e50: 81 e8 00 00 restore rtems_interrupt_disable (level); 2003e54: 7f ff f7 d4 call 2001da4 <== NOT EXECUTED 2003e58: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2003e5c: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2003e60: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2003e64: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003e68: 02 80 00 14 be 2003eb8 <== NOT EXECUTED 2003e6c: 01 00 00 00 nop <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2003e70: a0 10 20 02 mov 2, %l0 ! 2 <== NOT EXECUTED 2003e74: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED rtems_interrupt_enable (level); 2003e78: 7f ff f7 cf call 2001db4 <== NOT EXECUTED 2003e7c: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003e80: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 2003e84: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003e88: 40 00 06 55 call 20057dc <== NOT EXECUTED 2003e8c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003e90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003e94: 12 80 00 0b bne 2003ec0 <== NOT EXECUTED 2003e98: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2003e9c: 7f ff f7 c2 call 2001da4 <== NOT EXECUTED 2003ea0: 01 00 00 00 nop <== 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) { 2003ea4: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2003ea8: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2003eac: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003eb0: 32 bf ff f2 bne,a 2003e78 <== NOT EXECUTED 2003eb4: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 2003eb8: 7f ff f7 bf call 2001db4 <== NOT EXECUTED 2003ebc: 91 e8 00 08 restore %g0, %o0, %o0 <== 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); 2003ec0: 40 00 08 08 call 2005ee0 <== NOT EXECUTED 2003ec4: 01 00 00 00 nop 2003ec8: 01 00 00 00 nop 02003880 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2003880: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2003884: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003888: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 200388c: 02 80 00 0d be 20038c0 <== NOT EXECUTED 2003890: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 2003894: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 2003898: c4 00 61 b0 ld [ %g1 + 0x1b0 ], %g2 ! 20169b0 <__ctype_ptr> <== NOT EXECUTED 200389c: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 20038a0: c2 08 80 08 ldub [ %g2 + %o0 ], %g1 <== NOT EXECUTED 20038a4: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20038a8: 02 80 00 06 be 20038c0 <== NOT EXECUTED 20038ac: 80 a2 20 09 cmp %o0, 9 <== NOT EXECUTED 20038b0: 02 80 00 04 be 20038c0 <== NOT EXECUTED 20038b4: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 20038b8: 12 80 00 06 bne 20038d0 <== NOT EXECUTED 20038bc: 82 1e 20 40 xor %i0, 0x40, %g1 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 20038c0: 7f ff ff 8f call 20036fc <== NOT EXECUTED 20038c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20038c8: 81 c7 e0 08 ret <== NOT EXECUTED 20038cc: 81 e8 00 00 restore <== 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] = '^'; 20038d0: 84 10 20 5e mov 0x5e, %g2 <== NOT EXECUTED echobuf[1] = c ^ 0x40; 20038d4: c2 2f bf f1 stb %g1, [ %fp + -15 ] <== 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] = '^'; 20038d8: c4 2f bf f0 stb %g2, [ %fp + -16 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 20038dc: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 20038e0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20038e4: 7f ff ff 38 call 20035c4 <== NOT EXECUTED 20038e8: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 20038ec: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 20038f0: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 20038f4: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED 20038f8: 81 c7 e0 08 ret <== NOT EXECUTED 20038fc: 81 e8 00 00 restore <== NOT EXECUTED 02020dbc : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 2020dbc: 03 00 81 72 sethi %hi(0x205c800), %g1 <== NOT EXECUTED 2020dc0: d0 00 62 54 ld [ %g1 + 0x254 ], %o0 ! 205ca54 <== NOT EXECUTED 2020dc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020dc8: 02 80 00 05 be 2020ddc <== NOT EXECUTED 2020dcc: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 2020dd0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2020dd4: 40 00 3f e0 call 2030d54 <== NOT EXECUTED 2020dd8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2020ddc: 81 c3 e0 08 retl <== NOT EXECUTED 2020de0: 01 00 00 00 nop 02020de4 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 2020de4: 03 00 81 72 sethi %hi(0x205c800), %g1 <== NOT EXECUTED 2020de8: d0 00 61 6c ld [ %g1 + 0x16c ], %o0 ! 205c96c <== NOT EXECUTED 2020dec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020df0: 02 80 00 05 be 2020e04 <== NOT EXECUTED 2020df4: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2020df8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2020dfc: 40 00 3f d6 call 2030d54 <== NOT EXECUTED 2020e00: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2020e04: 81 c3 e0 08 retl <== NOT EXECUTED 2020e08: 01 00 00 00 nop 02003900 : * 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) { 2003900: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (tty->ccount == 0) 2003904: c6 06 20 20 ld [ %i0 + 0x20 ], %g3 <== NOT EXECUTED 2003908: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 200390c: 02 80 00 80 be 2003b0c <== NOT EXECUTED 2003910: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 2003914: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003918: 12 80 00 28 bne 20039b8 <== NOT EXECUTED 200391c: c8 06 20 3c ld [ %i0 + 0x3c ], %g4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003920: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 2003924: 05 00 80 55 sethi %hi(0x2015400), %g2 <== NOT EXECUTED 2003928: a4 10 61 b0 or %g1, 0x1b0, %l2 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 200392c: a6 10 a3 d8 or %g2, 0x3d8, %l3 <== NOT EXECUTED 2003930: 03 00 80 55 sethi %hi(0x2015400), %g1 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003934: a2 10 63 d0 or %g1, 0x3d0, %l1 ! 20157d0 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2003938: da 04 20 1c ld [ %l0 + 0x1c ], %o5 <== NOT EXECUTED 200393c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 2003940: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2003944: 80 89 20 08 btst 8, %g4 <== NOT EXECUTED 2003948: 02 80 00 13 be 2003994 <== NOT EXECUTED 200394c: c2 0b 40 03 ldub [ %o5 + %g3 ], %g1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2003950: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003954: 12 80 00 05 bne 2003968 <== NOT EXECUTED 2003958: b0 08 60 ff and %g1, 0xff, %i0 <== NOT EXECUTED 200395c: 80 89 20 10 btst 0x10, %g4 <== NOT EXECUTED 2003960: 22 80 00 6d be,a 2003b14 <== NOT EXECUTED 2003964: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 2003968: 80 a6 20 09 cmp %i0, 9 <== NOT EXECUTED 200396c: 02 80 00 3f be 2003a68 <== NOT EXECUTED 2003970: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003974: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 2003978: c4 08 40 18 ldub [ %g1 + %i0 ], %g2 <== NOT EXECUTED 200397c: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 2003980: 02 80 00 2f be 2003a3c <== NOT EXECUTED 2003984: 11 00 80 55 sethi %hi(0x2015400), %o0 <== NOT EXECUTED 2003988: 80 89 22 00 btst 0x200, %g4 <== NOT EXECUTED 200398c: 12 80 00 1a bne 20039f4 <== NOT EXECUTED 2003990: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003994: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003998: 02 80 00 5d be 2003b0c <== NOT EXECUTED 200399c: 01 00 00 00 nop <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 20039a0: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 20039a4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 20039a8: 02 80 00 59 be 2003b0c <== NOT EXECUTED 20039ac: 01 00 00 00 nop <== NOT EXECUTED 20039b0: 10 bf ff e2 b 2003938 <== NOT EXECUTED 20039b4: c8 04 20 3c ld [ %l0 + 0x3c ], %g4 <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 20039b8: 80 89 20 08 btst 8, %g4 <== NOT EXECUTED 20039bc: 02 80 00 53 be 2003b08 <== NOT EXECUTED 20039c0: 80 89 20 10 btst 0x10, %g4 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 20039c4: 12 bf ff d8 bne 2003924 <== NOT EXECUTED 20039c8: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 20039cc: d0 0e 20 44 ldub [ %i0 + 0x44 ], %o0 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; 20039d0: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 20039d4: 7f ff ff ab call 2003880 <== NOT EXECUTED 20039d8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 20039dc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 20039e0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20039e4: 02 80 00 4a be 2003b0c <== NOT EXECUTED 20039e8: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED echo ('\n', tty); 20039ec: 7f ff ff a5 call 2003880 <== NOT EXECUTED 20039f0: 91 e8 20 0a restore %g0, 0xa, %o0 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 20039f4: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20039f8: 7f ff fe f3 call 20035c4 <== NOT EXECUTED 20039fc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2003a00: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003a04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003a08: 22 80 00 05 be,a 2003a1c <== NOT EXECUTED 2003a0c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED tty->column--; 2003a10: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003a14: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 2003a18: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 2003a1c: c4 08 40 18 ldub [ %g1 + %i0 ], %g2 <== NOT EXECUTED 2003a20: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 2003a24: 02 80 00 06 be 2003a3c <== NOT EXECUTED 2003a28: 11 00 80 55 sethi %hi(0x2015400), %o0 <== NOT EXECUTED 2003a2c: c8 04 20 3c ld [ %l0 + 0x3c ], %g4 <== NOT EXECUTED 2003a30: 80 89 22 00 btst 0x200, %g4 <== NOT EXECUTED 2003a34: 02 bf ff d9 be 2003998 <== NOT EXECUTED 2003a38: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2003a3c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003a40: 90 12 23 d8 or %o0, 0x3d8, %o0 <== NOT EXECUTED 2003a44: 7f ff fe e0 call 20035c4 <== NOT EXECUTED 2003a48: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2003a4c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003a50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003a54: 02 bf ff d1 be 2003998 <== NOT EXECUTED 2003a58: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 2003a5c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003a60: 10 bf ff ce b 2003998 <== NOT EXECUTED 2003a64: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003a68: 02 80 00 16 be 2003ac0 <== NOT EXECUTED 2003a6c: f0 04 20 2c ld [ %l0 + 0x2c ], %i0 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2003a70: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2003a74: 88 09 22 00 and %g4, 0x200, %g4 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2003a78: 10 80 00 07 b 2003a94 <== NOT EXECUTED 2003a7c: 84 10 20 00 clr %g2 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2003a80: 32 80 00 02 bne,a 2003a88 <== NOT EXECUTED 2003a84: b0 06 20 02 add %i0, 2, %i0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003a88: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2003a8c: 22 80 00 0e be,a 2003ac4 <== NOT EXECUTED 2003a90: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED c = tty->cbuf[i++]; 2003a94: c2 0b 40 02 ldub [ %o5 + %g2 ], %g1 <== NOT EXECUTED if (c == '\t') { 2003a98: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED 2003a9c: 02 80 00 18 be 2003afc <== NOT EXECUTED 2003aa0: 84 00 a0 01 inc %g2 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 2003aa4: c2 0b 00 01 ldub [ %o4 + %g1 ], %g1 <== NOT EXECUTED 2003aa8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003aac: 12 bf ff f5 bne 2003a80 <== NOT EXECUTED 2003ab0: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003ab4: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2003ab8: 12 bf ff f7 bne 2003a94 <== NOT EXECUTED 2003abc: b0 06 20 01 inc %i0 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003ac0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003ac4: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 2003ac8: 04 bf ff b4 ble 2003998 <== NOT EXECUTED 2003acc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2003ad0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2003ad4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003ad8: 7f ff fe bb call 20035c4 <== NOT EXECUTED 2003adc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED tty->column--; 2003ae0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003ae4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003ae8: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 2003aec: 14 bf ff f9 bg 2003ad0 <== NOT EXECUTED 2003af0: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003af4: 10 bf ff a9 b 2003998 <== NOT EXECUTED 2003af8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 2003afc: 82 16 20 07 or %i0, 7, %g1 <== NOT EXECUTED 2003b00: 10 bf ff e2 b 2003a88 <== NOT EXECUTED 2003b04: b0 00 60 01 add %g1, 1, %i0 <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 2003b08: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED 2003b0c: 81 c7 e0 08 ret <== NOT EXECUTED 2003b10: 81 e8 00 00 restore <== 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); 2003b14: 7f ff ff 5b call 2003880 <== NOT EXECUTED 2003b18: 93 e8 00 10 restore %g0, %l0, %o1 <== NOT EXECUTED 2003b1c: 01 00 00 00 nop 0202e3c4 : #include int fchdir( int fd ) { 202e3c4: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 202e3c8: 03 00 81 20 sethi %hi(0x2048000), %g1 <== NOT EXECUTED 202e3cc: c4 00 63 08 ld [ %g1 + 0x308 ], %g2 ! 2048308 <== NOT EXECUTED 202e3d0: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 202e3d4: 1a 80 00 50 bcc 202e514 <== NOT EXECUTED 202e3d8: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202e3dc: c6 00 63 34 ld [ %g1 + 0x334 ], %g3 ! 205d334 <== NOT EXECUTED 202e3e0: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 202e3e4: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 202e3e8: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202e3ec: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 202e3f0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e3f4: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202e3f8: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 202e3fc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 202e400: 02 80 00 45 be 202e514 <== NOT EXECUTED 202e404: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 202e408: 02 80 00 54 be 202e558 <== NOT EXECUTED 202e40c: 01 00 00 00 nop <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 202e410: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 202e414: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e418: 02 80 00 56 be 202e570 <== NOT EXECUTED 202e41c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 202e420: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 202e424: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e428: 02 80 00 52 be 202e570 <== NOT EXECUTED 202e42c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 202e430: 9f c0 40 00 call %g1 <== NOT EXECUTED 202e434: 90 06 20 10 add %i0, 0x10, %o0 <== NOT EXECUTED 202e438: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 202e43c: 12 80 00 30 bne 202e4fc <== NOT EXECUTED 202e440: 21 00 81 23 sethi %hi(0x2048c00), %l0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202e444: c6 04 21 8c ld [ %l0 + 0x18c ], %g3 ! 2048d8c <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202e448: 11 00 81 0e sethi %hi(0x2043800), %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202e44c: c4 00 e0 04 ld [ %g3 + 4 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202e450: 90 12 21 28 or %o0, 0x128, %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202e454: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 202e458: c2 00 e0 08 ld [ %g3 + 8 ], %g1 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202e45c: 92 10 20 00 clr %o1 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202e460: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED 202e464: c4 00 e0 0c ld [ %g3 + 0xc ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202e468: 94 07 bf e8 add %fp, -24, %o2 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202e46c: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 202e470: c8 00 e0 10 ld [ %g3 + 0x10 ], %g4 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202e474: 96 10 20 00 clr %o3 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202e478: c8 27 bf e4 st %g4, [ %fp + -28 ] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 202e47c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202e480: c2 20 e0 04 st %g1, [ %g3 + 4 ] <== NOT EXECUTED 202e484: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 202e488: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED 202e48c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 202e490: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED 202e494: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202e498: 7f ff 58 59 call 20045fc <== NOT EXECUTED 202e49c: c4 20 e0 10 st %g2, [ %g3 + 0x10 ] <== NOT EXECUTED 202e4a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202e4a4: 12 80 00 22 bne 202e52c <== NOT EXECUTED 202e4a8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 202e4ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e4b0: 22 80 00 09 be,a 202e4d4 <== NOT EXECUTED 202e4b4: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 202e4b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202e4bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e4c0: 22 80 00 05 be,a 202e4d4 <== NOT EXECUTED 202e4c4: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 202e4c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 202e4cc: 90 07 bf d8 add %fp, -40, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 202e4d0: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED 202e4d4: c6 04 21 8c ld [ %l0 + 0x18c ], %g3 <== NOT EXECUTED 202e4d8: c2 20 e0 04 st %g1, [ %g3 + 4 ] <== NOT EXECUTED 202e4dc: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 202e4e0: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED 202e4e4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202e4e8: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED 202e4ec: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 202e4f0: c4 20 e0 10 st %g2, [ %g3 + 0x10 ] <== NOT EXECUTED return 0; } 202e4f4: 81 c7 e0 08 ret <== NOT EXECUTED 202e4f8: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 202e4fc: 40 00 09 be call 2030bf4 <__errno> <== NOT EXECUTED 202e500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e504: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 202e508: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e50c: 81 c7 e0 08 ret <== NOT EXECUTED 202e510: 81 e8 00 00 restore <== 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); 202e514: 40 00 09 b8 call 2030bf4 <__errno> <== NOT EXECUTED 202e518: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e51c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202e520: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e524: 81 c7 e0 08 ret <== NOT EXECUTED 202e528: 81 e8 00 00 restore <== 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; 202e52c: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED 202e530: c6 04 21 8c ld [ %l0 + 0x18c ], %g3 <== NOT EXECUTED 202e534: c2 20 e0 04 st %g1, [ %g3 + 4 ] <== NOT EXECUTED 202e538: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED 202e53c: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED 202e540: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 202e544: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED 202e548: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED 202e54c: c4 20 e0 10 st %g2, [ %g3 + 0x10 ] <== NOT EXECUTED 202e550: 81 c7 e0 08 ret <== NOT EXECUTED 202e554: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 202e558: 40 00 09 a7 call 2030bf4 <__errno> <== NOT EXECUTED 202e55c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e560: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202e564: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e568: 81 c7 e0 08 ret <== NOT EXECUTED 202e56c: 81 e8 00 00 restore <== 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 ); 202e570: 40 00 09 a1 call 2030bf4 <__errno> <== NOT EXECUTED 202e574: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e578: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202e57c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e580: 81 c7 e0 08 ret <== NOT EXECUTED 202e584: 81 e8 00 00 restore <== NOT EXECUTED 020204bc : int fchmod( int fd, mode_t mode ) { 20204bc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20204c0: 03 00 81 20 sethi %hi(0x2048000), %g1 <== NOT EXECUTED 20204c4: c4 00 63 08 ld [ %g1 + 0x308 ], %g2 ! 2048308 <== NOT EXECUTED 20204c8: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 20204cc: 1a 80 00 1b bcc 2020538 <== NOT EXECUTED 20204d0: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20204d4: c6 00 63 34 ld [ %g1 + 0x334 ], %g3 ! 205d334 <== NOT EXECUTED 20204d8: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 20204dc: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 20204e0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20204e4: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 20204e8: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 20204ec: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20204f0: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 20204f4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20204f8: 02 80 00 10 be 2020538 <== NOT EXECUTED 20204fc: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2020500: 02 80 00 14 be 2020550 <== NOT EXECUTED 2020504: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 2020508: c2 00 e0 30 ld [ %g3 + 0x30 ], %g1 <== NOT EXECUTED 202050c: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED 2020510: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2020514: 02 80 00 15 be 2020568 <== NOT EXECUTED 2020518: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 202051c: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 <== NOT EXECUTED 2020520: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED 2020524: 90 00 e0 10 add %g3, 0x10, %o0 <== NOT EXECUTED 2020528: 9f c0 80 00 call %g2 <== NOT EXECUTED 202052c: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 2020530: 81 c7 e0 08 ret <== NOT EXECUTED 2020534: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 2020538: 40 00 41 af call 2030bf4 <__errno> <== NOT EXECUTED 202053c: 01 00 00 00 nop <== NOT EXECUTED 2020540: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2020544: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020548: 10 bf ff fa b 2020530 <== NOT EXECUTED 202054c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2020550: 40 00 41 a9 call 2030bf4 <__errno> <== NOT EXECUTED 2020554: 01 00 00 00 nop <== NOT EXECUTED 2020558: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 202055c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020560: 10 bf ff f4 b 2020530 <== NOT EXECUTED 2020564: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2020568: 40 00 41 a3 call 2030bf4 <__errno> <== NOT EXECUTED 202056c: 01 00 00 00 nop <== NOT EXECUTED 2020570: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2020574: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020578: 10 bf ff ee b 2020530 <== NOT EXECUTED 202057c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02020580 : int fchown( int fd, uid_t owner, gid_t group ) { 2020580: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2020584: 03 00 81 20 sethi %hi(0x2048000), %g1 <== NOT EXECUTED 2020588: c4 00 63 08 ld [ %g1 + 0x308 ], %g2 ! 2048308 <== NOT EXECUTED 202058c: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 2020590: 1a 80 00 1b bcc 20205fc <== NOT EXECUTED 2020594: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2020598: c6 00 63 34 ld [ %g1 + 0x334 ], %g3 ! 205d334 <== NOT EXECUTED 202059c: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 20205a0: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 20205a4: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20205a8: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 20205ac: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 20205b0: 84 00 c0 01 add %g3, %g1, %g2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20205b4: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED 20205b8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20205bc: 02 80 00 10 be 20205fc <== NOT EXECUTED 20205c0: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20205c4: 02 80 00 14 be 2020614 <== NOT EXECUTED 20205c8: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 20205cc: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 20205d0: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20205d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20205d8: 02 80 00 15 be 202062c <== NOT EXECUTED 20205dc: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 20205e0: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 20205e4: 90 00 a0 10 add %g2, 0x10, %o0 <== NOT EXECUTED 20205e8: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 20205ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20205f0: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 20205f4: 81 c7 e0 08 ret <== NOT EXECUTED 20205f8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 20205fc: 40 00 41 7e call 2030bf4 <__errno> <== NOT EXECUTED 2020600: 01 00 00 00 nop <== NOT EXECUTED 2020604: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2020608: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202060c: 10 bf ff fa b 20205f4 <== NOT EXECUTED 2020610: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2020614: 40 00 41 78 call 2030bf4 <__errno> <== NOT EXECUTED 2020618: 01 00 00 00 nop <== NOT EXECUTED 202061c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2020620: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020624: 10 bf ff f4 b 20205f4 <== NOT EXECUTED 2020628: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 202062c: 40 00 41 72 call 2030bf4 <__errno> <== NOT EXECUTED 2020630: 01 00 00 00 nop <== NOT EXECUTED 2020634: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2020638: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202063c: 10 bf ff ee b 20205f4 <== NOT EXECUTED 2020640: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 0202e5b0 : int fcntl( int fd, int cmd, ... ) { 202e5b0: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 202e5b4: 03 00 81 20 sethi %hi(0x2048000), %g1 <== NOT EXECUTED 202e5b8: c8 00 63 08 ld [ %g1 + 0x308 ], %g4 ! 2048308 <== NOT EXECUTED ... ) { int ret; va_list ap; va_start( ap, cmd ); 202e5bc: 90 07 a0 4c add %fp, 0x4c, %o0 <== NOT EXECUTED 202e5c0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 202e5c4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 202e5c8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 202e5cc: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 202e5d0: 80 a6 00 04 cmp %i0, %g4 <== NOT EXECUTED 202e5d4: 1a 80 00 7c bcc 202e7c4 <== NOT EXECUTED 202e5d8: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202e5dc: 39 00 81 74 sethi %hi(0x205d000), %i4 <== NOT EXECUTED 202e5e0: da 07 23 34 ld [ %i4 + 0x334 ], %o5 ! 205d334 <== NOT EXECUTED 202e5e4: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 202e5e8: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 202e5ec: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202e5f0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 202e5f4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e5f8: ba 03 40 01 add %o5, %g1, %i5 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202e5fc: d8 07 60 0c ld [ %i5 + 0xc ], %o4 <== NOT EXECUTED 202e600: 80 8b 21 00 btst 0x100, %o4 <== NOT EXECUTED 202e604: 02 80 00 70 be 202e7c4 <== NOT EXECUTED 202e608: 80 a6 60 09 cmp %i1, 9 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 202e60c: 08 80 00 08 bleu 202e62c <== NOT EXECUTED 202e610: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 202e614: 40 00 09 78 call 2030bf4 <__errno> <== NOT EXECUTED 202e618: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e61c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202e620: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e624: 81 c7 e0 08 ret <== NOT EXECUTED 202e628: 81 e8 00 00 restore <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 202e62c: 05 00 80 b9 sethi %hi(0x202e400), %g2 <== NOT EXECUTED 202e630: 84 10 a1 88 or %g2, 0x188, %g2 ! 202e588 <== NOT EXECUTED 202e634: c6 00 80 01 ld [ %g2 + %g1 ], %g3 <== NOT EXECUTED 202e638: 81 c0 c0 00 jmp %g3 <== NOT EXECUTED 202e63c: 01 00 00 00 nop <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 202e640: 40 00 09 6d call 2030bf4 <__errno> <== NOT EXECUTED 202e644: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 202e648: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202e64c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e650: 81 c7 e0 08 ret <== NOT EXECUTED 202e654: 81 e8 00 00 restore <== 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 ) ); 202e658: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED 202e65c: 7f ff 59 7e call 2004c54 <== NOT EXECUTED 202e660: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 202e664: c2 07 60 0c ld [ %i5 + 0xc ], %g1 <== NOT EXECUTED 202e668: 90 0a 22 01 and %o0, 0x201, %o0 <== NOT EXECUTED 202e66c: 82 08 7d fe and %g1, -514, %g1 <== NOT EXECUTED 202e670: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 202e674: d0 27 60 0c st %o0, [ %i5 + 0xc ] <== 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) { 202e678: c2 07 60 30 ld [ %i5 + 0x30 ], %g1 <== NOT EXECUTED 202e67c: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 <== NOT EXECUTED 202e680: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e684: 02 bf ff e8 be 202e624 <== NOT EXECUTED 202e688: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 202e68c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202e690: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if (err) { 202e694: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED 202e698: 12 80 00 04 bne 202e6a8 <== NOT EXECUTED 202e69c: 01 00 00 00 nop <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 202e6a0: 81 c7 e0 08 ret <== NOT EXECUTED 202e6a4: 81 e8 00 00 restore <== NOT EXECUTED if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 202e6a8: 40 00 09 53 call 2030bf4 <__errno> <== NOT EXECUTED 202e6ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e6b0: fa 22 00 00 st %i5, [ %o0 ] <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 202e6b4: 81 c7 e0 08 ret <== NOT EXECUTED 202e6b8: 81 e8 00 00 restore <== 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 ); 202e6bc: 7f ff 58 b8 call 200499c <== NOT EXECUTED 202e6c0: 90 10 00 0c mov %o4, %o0 <== NOT EXECUTED 202e6c4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 202e6c8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 202e6cc: 36 bf ff ec bge,a 202e67c <== NOT EXECUTED 202e6d0: c2 07 60 30 ld [ %i5 + 0x30 ], %g1 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 202e6d4: 81 c7 e0 08 ret <== NOT EXECUTED 202e6d8: 81 e8 00 00 restore <== 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 ) ) 202e6dc: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202e6e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e6e4: 02 80 00 2d be 202e798 <== NOT EXECUTED 202e6e8: 82 0b 37 ff and %o4, -2049, %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 202e6ec: 82 13 28 00 or %o4, 0x800, %g1 <== NOT EXECUTED 202e6f0: b0 10 20 00 clr %i0 <== NOT EXECUTED 202e6f4: 10 bf ff e1 b 202e678 <== NOT EXECUTED 202e6f8: c2 27 60 0c st %g1, [ %i5 + 0xc ] <== 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); 202e6fc: 83 33 20 0b srl %o4, 0xb, %g1 <== NOT EXECUTED 202e700: 10 bf ff de b 202e678 <== NOT EXECUTED 202e704: b0 08 60 01 and %g1, 1, %i0 <== NOT EXECUTED * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 202e708: c6 02 00 00 ld [ %o0 ], %g3 <== NOT EXECUTED if ( fd2 ) 202e70c: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 202e710: 02 80 00 33 be 202e7dc <== NOT EXECUTED 202e714: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 202e718: 90 10 20 00 clr %o0 <== NOT EXECUTED 202e71c: 18 80 00 22 bgu 202e7a4 <== NOT EXECUTED 202e720: 96 10 20 00 clr %o3 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 202e724: c2 07 60 10 ld [ %i5 + 0x10 ], %g1 <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 202e728: c6 07 60 2c ld [ %i5 + 0x2c ], %g3 <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 202e72c: c2 22 20 10 st %g1, [ %o0 + 0x10 ] <== NOT EXECUTED 202e730: c4 07 60 14 ld [ %i5 + 0x14 ], %g2 <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 202e734: c8 07 23 34 ld [ %i4 + 0x334 ], %g4 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 202e738: c4 22 20 14 st %g2, [ %o0 + 0x14 ] <== NOT EXECUTED 202e73c: c2 07 60 18 ld [ %i5 + 0x18 ], %g1 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 202e740: da 07 60 30 ld [ %i5 + 0x30 ], %o5 <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 202e744: c2 22 20 18 st %g1, [ %o0 + 0x18 ] <== NOT EXECUTED 202e748: c4 07 60 1c ld [ %i5 + 0x1c ], %g2 <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 202e74c: 88 22 c0 04 sub %o3, %g4, %g4 <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 202e750: c6 22 20 2c st %g3, [ %o0 + 0x2c ] <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 202e754: 89 39 20 02 sra %g4, 2, %g4 <== NOT EXECUTED 202e758: 87 29 20 02 sll %g4, 2, %g3 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 202e75c: c4 22 20 1c st %g2, [ %o0 + 0x1c ] <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 202e760: da 22 20 30 st %o5, [ %o0 + 0x30 ] <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 202e764: 85 29 20 06 sll %g4, 6, %g2 <== NOT EXECUTED } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; 202e768: d8 22 20 0c st %o4, [ %o0 + 0xc ] <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 202e76c: 84 20 80 03 sub %g2, %g3, %g2 <== NOT EXECUTED 202e770: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 202e774: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202e778: 87 28 60 0c sll %g1, 0xc, %g3 <== NOT EXECUTED 202e77c: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED 202e780: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED 202e784: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED 202e788: 82 20 40 04 sub %g1, %g4, %g1 <== NOT EXECUTED 202e78c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e790: 10 bf ff ce b 202e6c8 <== NOT EXECUTED 202e794: b0 21 00 01 sub %g4, %g1, %i0 <== NOT EXECUTED */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 202e798: b0 10 20 00 clr %i0 <== NOT EXECUTED 202e79c: 10 bf ff b7 b 202e678 <== NOT EXECUTED 202e7a0: c2 27 60 0c st %g1, [ %i5 + 0xc ] <== NOT EXECUTED switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); 202e7a4: 85 28 e0 02 sll %g3, 2, %g2 <== NOT EXECUTED 202e7a8: 83 28 e0 04 sll %g3, 4, %g1 <== NOT EXECUTED 202e7ac: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202e7b0: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED 202e7b4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e7b8: 90 03 40 01 add %o5, %g1, %o0 <== NOT EXECUTED 202e7bc: 10 bf ff da b 202e724 <== NOT EXECUTED 202e7c0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 202e7c4: 40 00 09 0c call 2030bf4 <__errno> <== NOT EXECUTED 202e7c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e7cc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202e7d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e7d4: 81 c7 e0 08 ret <== NOT EXECUTED 202e7d8: 81 e8 00 00 restore <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 202e7dc: 7f ff 58 e0 call 2004b5c <== NOT EXECUTED 202e7e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( diop == 0 ) { 202e7e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202e7e8: 02 bf ff 8f be 202e624 <== NOT EXECUTED 202e7ec: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 202e7f0: 10 bf ff cd b 202e724 <== NOT EXECUTED 202e7f4: d8 07 60 0c ld [ %i5 + 0xc ], %o4 <== NOT EXECUTED 02022c24 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2022c24: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 2022c28: c4 00 63 d8 ld [ %g1 + 0x3d8 ], %g2 ! 205d3d8 <== NOT EXECUTED 2022c2c: 82 10 63 d8 or %g1, 0x3d8, %g1 <== NOT EXECUTED 2022c30: 86 00 60 04 add %g1, 4, %g3 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 2022c34: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 2022c38: 02 80 00 10 be 2022c78 <== NOT EXECUTED 2022c3c: 01 00 00 00 nop <== 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 ) { 2022c40: d2 02 60 0c ld [ %o1 + 0xc ], %o1 <== NOT EXECUTED 2022c44: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED 2022c48: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED 2022c4c: 32 80 00 08 bne,a 2022c6c <== NOT EXECUTED 2022c50: c4 00 80 00 ld [ %g2 ], %g2 <== 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 ); 2022c54: 81 c3 e0 08 retl <== NOT EXECUTED 2022c58: 90 10 20 01 mov 1, %o0 <== 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 ) { 2022c5c: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED 2022c60: 02 80 00 08 be 2022c80 <== NOT EXECUTED 2022c64: 90 10 20 01 mov 1, %o0 <== 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 ) { 2022c68: c4 00 80 00 ld [ %g2 ], %g2 <== 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 ); 2022c6c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 2022c70: 32 bf ff fb bne,a 2022c5c <== NOT EXECUTED 2022c74: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED return true; } } return false; } 2022c78: 81 c3 e0 08 retl <== NOT EXECUTED 2022c7c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2022c80: 81 c3 e0 08 retl <== NOT EXECUTED 2022c84: 01 00 00 00 nop 0200a824 : void free( void *ptr ) { MSBUMP(free_calls, 1); 200a824: 9d e3 bf 98 save %sp, -104, %sp 200a828: 05 00 80 5c sethi %hi(0x2017000), %g2 200a82c: 84 10 a1 30 or %g2, 0x130, %g2 ! 2017130 200a830: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200a834: b2 10 00 18 mov %i0, %i1 200a838: 82 00 60 01 inc %g1 if ( !ptr ) 200a83c: 80 a6 20 00 cmp %i0, 0 200a840: 02 80 00 15 be 200a894 200a844: c2 20 a0 0c st %g1, [ %g2 + 0xc ] /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 200a848: 03 00 80 5d sethi %hi(0x2017400), %g1 200a84c: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 ! 2017444 <_System_state_Current> 200a850: 80 a0 a0 03 cmp %g2, 3 200a854: 02 80 00 17 be 200a8b0 200a858: 03 00 80 5b sethi %hi(0x2016c00), %g1 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200a85c: c2 00 62 64 ld [ %g1 + 0x264 ], %g1 ! 2016e64 200a860: 80 a0 60 00 cmp %g1, 0 200a864: 02 80 00 06 be 200a87c 200a868: 37 00 80 5c sethi %hi(0x2017000), %i3 (*rtems_malloc_statistics_helpers->at_free)(ptr); 200a86c: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 200a870: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a874: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 200a878: 37 00 80 5c sethi %hi(0x2017000), %i3 <== NOT EXECUTED 200a87c: 92 10 00 19 mov %i1, %o1 200a880: 40 00 05 25 call 200bd14 <_Protected_heap_Free> 200a884: 90 16 e0 d8 or %i3, 0xd8, %o0 200a888: 80 8a 20 ff btst 0xff, %o0 200a88c: 02 80 00 04 be 200a89c 200a890: 82 16 e0 d8 or %i3, 0xd8, %g1 200a894: 81 c7 e0 08 ret 200a898: 81 e8 00 00 restore printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 200a89c: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 200a8a0: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 200a8a4: 31 00 80 56 sethi %hi(0x2015800), %i0 <== NOT EXECUTED 200a8a8: 7f ff e1 aa call 2002f50 <== NOT EXECUTED 200a8ac: 91 ee 22 e0 restore %i0, 0x2e0, %o0 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 200a8b0: 40 00 01 2d call 200ad64 200a8b4: 01 00 00 00 nop 200a8b8: 80 8a 20 ff btst 0xff, %o0 200a8bc: 12 bf ff e8 bne 200a85c 200a8c0: 03 00 80 5b sethi %hi(0x2016c00), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 200a8c4: 40 00 01 3b call 200adb0 <== NOT EXECUTED 200a8c8: 81 e8 00 00 restore <== NOT EXECUTED 200a8cc: 01 00 00 00 nop 02022098 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 2022098: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 202209c: 03 00 81 76 sethi %hi(0x205d800), %g1 <== NOT EXECUTED 20220a0: 82 10 60 d0 or %g1, 0xd0, %g1 ! 205d8d0 <== NOT EXECUTED 20220a4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20220a8: 02 80 00 18 be 2022108 <== NOT EXECUTED 20220ac: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 20220b0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 20220b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20220b8: 22 80 00 09 be,a 20220dc <== NOT EXECUTED 20220bc: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 20220c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20220c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20220c8: 22 80 00 05 be,a 20220dc <== NOT EXECUTED 20220cc: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 20220d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20220d4: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 20220d8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 20220dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20220e0: 02 80 00 08 be 2022100 <== NOT EXECUTED 20220e4: 01 00 00 00 nop <== NOT EXECUTED 20220e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20220ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20220f0: 02 80 00 04 be 2022100 <== NOT EXECUTED 20220f4: 01 00 00 00 nop <== NOT EXECUTED 20220f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20220fc: 90 06 20 14 add %i0, 0x14, %o0 <== NOT EXECUTED free(env); 2022100: 7f ff 89 9d call 2004774 <== NOT EXECUTED 2022104: 81 e8 00 00 restore <== NOT EXECUTED 2022108: 81 c7 e0 08 ret <== NOT EXECUTED 202210c: 81 e8 00 00 restore <== NOT EXECUTED 020145bc : int fstat( int fd, struct stat *sbuf ) { 20145bc: 9d e3 bf 98 save %sp, -104, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 20145c0: 92 96 60 00 orcc %i1, 0, %o1 20145c4: 02 80 00 3f be 20146c0 20145c8: 03 00 80 59 sethi %hi(0x2016400), %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 20145cc: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 ! 2016448 20145d0: 80 a6 00 02 cmp %i0, %g2 20145d4: 1a 80 00 2f bcc 2014690 20145d8: 03 00 80 5c sethi %hi(0x2017000), %g1 20145dc: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 ! 20170cc 20145e0: 85 2e 20 02 sll %i0, 2, %g2 20145e4: 83 2e 20 04 sll %i0, 4, %g1 20145e8: 82 20 40 02 sub %g1, %g2, %g1 20145ec: 82 00 40 18 add %g1, %i0, %g1 20145f0: 83 28 60 02 sll %g1, 2, %g1 20145f4: 86 00 c0 01 add %g3, %g1, %g3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 20145f8: c4 00 e0 0c ld [ %g3 + 0xc ], %g2 20145fc: 80 88 a1 00 btst 0x100, %g2 2014600: 02 80 00 24 be 2014690 2014604: 01 00 00 00 nop if ( !iop->handlers ) 2014608: c2 00 e0 30 ld [ %g3 + 0x30 ], %g1 201460c: 80 a0 60 00 cmp %g1, 0 2014610: 02 80 00 20 be 2014690 2014614: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2014618: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201461c: 80 a0 60 00 cmp %g1, 0 2014620: 02 80 00 22 be 20146a8 2014624: 01 00 00 00 nop /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 2014628: c0 22 40 00 clr [ %o1 ] 201462c: c0 22 60 04 clr [ %o1 + 4 ] 2014630: c0 22 60 08 clr [ %o1 + 8 ] 2014634: c0 22 60 0c clr [ %o1 + 0xc ] 2014638: c0 22 60 10 clr [ %o1 + 0x10 ] 201463c: c0 22 60 14 clr [ %o1 + 0x14 ] 2014640: c0 22 60 18 clr [ %o1 + 0x18 ] 2014644: c0 22 60 1c clr [ %o1 + 0x1c ] 2014648: c0 22 60 20 clr [ %o1 + 0x20 ] 201464c: c0 22 60 24 clr [ %o1 + 0x24 ] 2014650: c0 22 60 28 clr [ %o1 + 0x28 ] 2014654: c0 22 60 2c clr [ %o1 + 0x2c ] 2014658: c0 22 60 30 clr [ %o1 + 0x30 ] 201465c: c0 22 60 34 clr [ %o1 + 0x34 ] 2014660: c0 22 60 38 clr [ %o1 + 0x38 ] 2014664: c0 22 60 3c clr [ %o1 + 0x3c ] 2014668: c0 22 60 40 clr [ %o1 + 0x40 ] 201466c: c0 22 60 44 clr [ %o1 + 0x44 ] 2014670: c0 22 60 48 clr [ %o1 + 0x48 ] 2014674: c0 22 60 4c clr [ %o1 + 0x4c ] return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 2014678: c2 00 e0 30 ld [ %g3 + 0x30 ], %g1 201467c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2014680: 9f c0 80 00 call %g2 2014684: 90 00 e0 10 add %g3, 0x10, %o0 } 2014688: 81 c7 e0 08 ret 201468c: 91 e8 00 08 restore %g0, %o0, %o0 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 ); 2014690: 7f ff e1 ba call 200cd78 <__errno> <== NOT EXECUTED 2014694: 01 00 00 00 nop <== NOT EXECUTED 2014698: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 201469c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20146a0: 10 bf ff fa b 2014688 <== NOT EXECUTED 20146a4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 20146a8: 7f ff e1 b4 call 200cd78 <__errno> <== NOT EXECUTED 20146ac: 01 00 00 00 nop <== NOT EXECUTED 20146b0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20146b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20146b8: 10 bf ff f4 b 2014688 <== NOT EXECUTED 20146bc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 20146c0: 7f ff e1 ae call 200cd78 <__errno> <== NOT EXECUTED 20146c4: 01 00 00 00 nop <== NOT EXECUTED 20146c8: 82 10 20 0e mov 0xe, %g1 ! e <== NOT EXECUTED 20146cc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20146d0: 10 bf ff ee b 2014688 <== NOT EXECUTED 20146d4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02020778 : #include int fsync( int fd ) { 2020778: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 202077c: 03 00 81 20 sethi %hi(0x2048000), %g1 <== NOT EXECUTED 2020780: c4 00 63 08 ld [ %g1 + 0x308 ], %g2 ! 2048308 <== NOT EXECUTED 2020784: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 2020788: 1a 80 00 1b bcc 20207f4 <== NOT EXECUTED 202078c: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2020790: c6 00 63 34 ld [ %g1 + 0x334 ], %g3 ! 205d334 <== NOT EXECUTED 2020794: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 2020798: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 202079c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20207a0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 20207a4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 20207a8: 90 00 c0 01 add %g3, %g1, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20207ac: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED 20207b0: 80 89 21 00 btst 0x100, %g4 <== NOT EXECUTED 20207b4: 02 80 00 10 be 20207f4 <== NOT EXECUTED 20207b8: 80 89 20 04 btst 4, %g4 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20207bc: 02 80 00 14 be 202080c <== NOT EXECUTED 20207c0: 01 00 00 00 nop <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 20207c4: c8 02 20 30 ld [ %o0 + 0x30 ], %g4 <== NOT EXECUTED 20207c8: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 20207cc: 02 80 00 0a be 20207f4 <== NOT EXECUTED 20207d0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 20207d4: c8 01 20 28 ld [ %g4 + 0x28 ], %g4 <== NOT EXECUTED 20207d8: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 20207dc: 02 80 00 12 be 2020824 <== NOT EXECUTED 20207e0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 20207e4: 9f c1 00 00 call %g4 <== NOT EXECUTED 20207e8: 01 00 00 00 nop <== NOT EXECUTED } 20207ec: 81 c7 e0 08 ret <== NOT EXECUTED 20207f0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 20207f4: 40 00 41 00 call 2030bf4 <__errno> <== NOT EXECUTED 20207f8: 01 00 00 00 nop <== NOT EXECUTED 20207fc: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2020800: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020804: 10 bf ff fa b 20207ec <== NOT EXECUTED 2020808: 90 10 3f ff mov -1, %o0 <== 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 ); 202080c: 40 00 40 fa call 2030bf4 <__errno> <== NOT EXECUTED 2020810: 01 00 00 00 nop <== NOT EXECUTED 2020814: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2020818: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202081c: 10 bf ff f4 b 20207ec <== NOT EXECUTED 2020820: 90 10 3f ff mov -1, %o0 <== 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 ); 2020824: 40 00 40 f4 call 2030bf4 <__errno> <== NOT EXECUTED 2020828: 01 00 00 00 nop <== NOT EXECUTED 202082c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2020830: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020834: 10 bf ff ee b 20207ec <== NOT EXECUTED 2020838: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 0200a8d0 : int ftruncate( int fd, off_t length ) { 200a8d0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200a8d4: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a8d8: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 ! 2016448 <== NOT EXECUTED 200a8dc: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 200a8e0: 1a 80 00 2b bcc 200a98c <== NOT EXECUTED 200a8e4: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 200a8e8: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 ! 20170cc <== NOT EXECUTED 200a8ec: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 200a8f0: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 200a8f4: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 200a8f8: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 200a8fc: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 200a900: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 200a904: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED 200a908: 80 88 a1 00 btst 0x100, %g2 <== NOT EXECUTED 200a90c: 02 80 00 20 be 200a98c <== NOT EXECUTED 200a910: 01 00 00 00 nop <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200a914: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 200a918: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED 200a91c: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 200a920: c4 27 bf ec st %g2, [ %fp + -20 ] <== NOT EXECUTED 200a924: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 200a928: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED 200a92c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED if ( !loc.ops->node_type_h ) 200a930: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 200a934: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a938: 02 80 00 21 be 200a9bc <== NOT EXECUTED 200a93c: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200a940: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a944: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 200a948: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 200a94c: 02 80 00 22 be 200a9d4 <== NOT EXECUTED 200a950: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200a954: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 200a958: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 200a95c: 02 80 00 12 be 200a9a4 <== NOT EXECUTED 200a960: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 200a964: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 200a968: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 200a96c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a970: 02 80 00 13 be 200a9bc <== NOT EXECUTED 200a974: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 200a978: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200a97c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a980: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED } 200a984: 81 c7 e0 08 ret <== NOT EXECUTED 200a988: 91 e8 00 08 restore %g0, %o0, %o0 <== 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); 200a98c: 40 00 08 fb call 200cd78 <__errno> <== NOT EXECUTED 200a990: 01 00 00 00 nop <== NOT EXECUTED 200a994: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 200a998: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a99c: 10 bf ff fa b 200a984 <== NOT EXECUTED 200a9a0: 90 10 3f ff mov -1, %o0 <== 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 ); 200a9a4: 40 00 08 f5 call 200cd78 <__errno> <== NOT EXECUTED 200a9a8: 01 00 00 00 nop <== NOT EXECUTED 200a9ac: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 200a9b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a9b4: 10 bf ff f4 b 200a984 <== NOT EXECUTED 200a9b8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a9bc: 40 00 08 ef call 200cd78 <__errno> <== NOT EXECUTED 200a9c0: 01 00 00 00 nop <== NOT EXECUTED 200a9c4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200a9c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a9cc: 10 bf ff ee b 200a984 <== NOT EXECUTED 200a9d0: 90 10 3f ff mov -1, %o0 <== 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 ); 200a9d4: 40 00 08 e9 call 200cd78 <__errno> <== NOT EXECUTED 200a9d8: 01 00 00 00 nop <== NOT EXECUTED 200a9dc: 82 10 20 15 mov 0x15, %g1 ! 15 <== NOT EXECUTED 200a9e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a9e4: 10 bf ff e8 b 200a984 <== NOT EXECUTED 200a9e8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02020958 : char * getcwd ( char *pt, size_t size) { 2020958: 9d e3 bf 30 save %sp, -208, %sp <== 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) 202095c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2020960: 02 80 00 fa be 2020d48 <== NOT EXECUTED 2020964: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED if (!size) { errno = EINVAL; return (char *) NULL; } ept = pt + size; 2020968: ae 10 20 00 clr %l7 <== NOT EXECUTED */ if (pt) { ptsize = 0; if (!size) 202096c: 02 80 00 f1 be 2020d30 <== NOT EXECUTED 2020970: b2 06 00 19 add %i0, %i1, %i1 <== NOT EXECUTED return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; *bpt = '\0'; 2020974: c0 2e 7f ff clrb [ %i1 + -1 ] <== 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))) 2020978: 90 10 23 fc mov 0x3fc, %o0 <== NOT EXECUTED 202097c: 7f ff 91 22 call 2004e04 <== NOT EXECUTED 2020980: b8 06 7f ff add %i1, -1, %i4 <== NOT EXECUTED 2020984: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 2020988: 02 80 00 0c be 20209b8 <== NOT EXECUTED 202098c: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; up[1] = '\0'; 2020990: c0 2c 60 01 clrb [ %l1 + 1 ] <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 2020994: c2 2c 40 00 stb %g1, [ %l1 ] <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 2020998: ac 07 bf a8 add %fp, -88, %l6 <== NOT EXECUTED 202099c: 11 00 81 0c sethi %hi(0x2043000), %o0 <== NOT EXECUTED 20209a0: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 20209a4: 7f ff 95 b4 call 2006074 <== NOT EXECUTED 20209a8: 90 12 23 78 or %o0, 0x378, %o0 <== NOT EXECUTED 20209ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20209b0: 02 80 00 0e be 20209e8 <== NOT EXECUTED 20209b4: c2 07 bf a8 ld [ %fp + -88 ], %g1 <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 20209b8: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED 20209bc: 12 80 00 07 bne 20209d8 <== NOT EXECUTED 20209c0: 01 00 00 00 nop <== NOT EXECUTED free (pt); free (up); 20209c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20209c8: 7f ff 8f 6b call 2004774 <== NOT EXECUTED 20209cc: b0 10 20 00 clr %i0 <== NOT EXECUTED return (char *) NULL; } 20209d0: 81 c7 e0 08 ret <== NOT EXECUTED 20209d4: 81 e8 00 00 restore <== NOT EXECUTED err: if(dir) (void) _closedir (dir); if (ptsize) free (pt); 20209d8: 7f ff 8f 67 call 2004774 <== NOT EXECUTED 20209dc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED free (up); 20209e0: 10 bf ff fa b 20209c8 <== NOT EXECUTED 20209e4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) goto err; root_dev = s.st_dev; 20209e8: c4 07 bf ac ld [ %fp + -84 ], %g2 <== NOT EXECUTED root_ino = s.st_ino; 20209ec: c6 07 bf b0 ld [ %fp + -80 ], %g3 <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) goto err; root_dev = s.st_dev; 20209f0: c2 27 bf 98 st %g1, [ %fp + -104 ] <== NOT EXECUTED 20209f4: c4 27 bf 94 st %g2, [ %fp + -108 ] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 20209f8: 82 04 64 00 add %l1, 0x400, %g1 <== 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. */ 20209fc: 84 10 20 01 mov 1, %g2 <== 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; 2020a00: c6 27 bf a0 st %g3, [ %fp + -96 ] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 2020a04: c2 27 bf a4 st %g1, [ %fp + -92 ] <== 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. */ 2020a08: c4 27 bf 9c st %g2, [ %fp + -100 ] <== NOT EXECUTED 2020a0c: 40 00 40 7a call 2030bf4 <__errno> <== NOT EXECUTED 2020a10: a4 10 00 11 mov %l1, %l2 <== NOT EXECUTED 2020a14: b4 10 23 fc mov 0x3fc, %i2 <== NOT EXECUTED 2020a18: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 2020a1c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2020a20: 7f ff 95 95 call 2006074 <== NOT EXECUTED 2020a24: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 2020a28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020a2c: 12 bf ff e3 bne 20209b8 <== NOT EXECUTED 2020a30: ea 07 bf a8 ld [ %fp + -88 ], %l5 <== 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) 2020a34: c6 07 bf 98 ld [ %fp + -104 ], %g3 <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 2020a38: fa 07 bf b0 ld [ %fp + -80 ], %i5 <== NOT EXECUTED dev = s.st_dev; /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 2020a3c: 80 a0 c0 15 cmp %g3, %l5 <== NOT EXECUTED 2020a40: 02 80 00 a8 be 2020ce0 <== NOT EXECUTED 2020a44: f6 07 bf ac ld [ %fp + -84 ], %i3 <== 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) 2020a48: c6 07 bf a4 ld [ %fp + -92 ], %g3 <== NOT EXECUTED 2020a4c: 82 04 a4 04 add %l2, 0x404, %g1 <== NOT EXECUTED 2020a50: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2020a54: 08 80 00 5a bleu 2020bbc <== NOT EXECUTED 2020a58: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED goto err; } bup = up; eup = up + upsize; } *bup++ = '.'; 2020a5c: 84 10 20 2e mov 0x2e, %g2 <== NOT EXECUTED *bup++ = '.'; *bup = '\0'; 2020a60: c0 2c a0 02 clrb [ %l2 + 2 ] <== NOT EXECUTED goto err; } bup = up; eup = up + upsize; } *bup++ = '.'; 2020a64: c4 2c 80 00 stb %g2, [ %l2 ] <== NOT EXECUTED *bup++ = '.'; 2020a68: c4 2c a0 01 stb %g2, [ %l2 + 1 ] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 2020a6c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2020a70: 40 00 05 66 call 2022008 <== NOT EXECUTED 2020a74: a0 04 a0 02 add %l2, 2, %l0 <== NOT EXECUTED 2020a78: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED 2020a7c: 02 bf ff d0 be 20209bc <== NOT EXECUTED 2020a80: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED 2020a84: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED 2020a88: 7f ff fe ef call 2020644 <== NOT EXECUTED 2020a8c: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 2020a90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020a94: 12 80 00 34 bne 2020b64 <== NOT EXECUTED 2020a98: 86 10 20 2f mov 0x2f, %g3 <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 2020a9c: c6 2c 00 00 stb %g3, [ %l0 ] <== 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) 2020aa0: c2 07 bf a8 ld [ %fp + -88 ], %g1 <== NOT EXECUTED 2020aa4: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED 2020aa8: 02 80 00 4e be 2020be0 <== NOT EXECUTED 2020aac: a4 04 a0 03 add %l2, 3, %l2 <== NOT EXECUTED 2020ab0: a8 10 20 00 clr %l4 <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 2020ab4: 40 00 06 17 call 2022310 <== NOT EXECUTED 2020ab8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2020abc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020ac0: 02 80 00 23 be 2020b4c <== NOT EXECUTED 2020ac4: 01 00 00 00 nop <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 2020ac8: c2 4a 20 0c ldsb [ %o0 + 0xc ], %g1 <== NOT EXECUTED 2020acc: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED 2020ad0: 12 80 00 08 bne 2020af0 <== NOT EXECUTED 2020ad4: a0 02 20 0c add %o0, 0xc, %l0 <== NOT EXECUTED 2020ad8: c2 4a 20 0d ldsb [ %o0 + 0xd ], %g1 <== NOT EXECUTED 2020adc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020ae0: 02 bf ff f5 be 2020ab4 <== NOT EXECUTED 2020ae4: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED 2020ae8: 22 80 00 31 be,a 2020bac <== NOT EXECUTED 2020aec: c2 4a 20 0e ldsb [ %o0 + 0xe ], %g1 <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 2020af0: 40 00 56 e3 call 203667c <== NOT EXECUTED 2020af4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2020af8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2020afc: 94 02 20 01 add %o0, 1, %o2 <== NOT EXECUTED 2020b00: 40 00 4a 63 call 203348c <== NOT EXECUTED 2020b04: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 2020b08: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2020b0c: 7f ff 95 5a call 2006074 <== NOT EXECUTED 2020b10: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 2020b14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020b18: 02 80 00 17 be 2020b74 <== NOT EXECUTED 2020b1c: c2 07 bf a8 ld [ %fp + -88 ], %g1 <== NOT EXECUTED { if (!save_errno) 2020b20: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2020b24: 02 80 00 1e be 2020b9c <== NOT EXECUTED 2020b28: 01 00 00 00 nop <== NOT EXECUTED save_errno = errno; errno = 0; 2020b2c: 40 00 40 32 call 2030bf4 <__errno> <== NOT EXECUTED 2020b30: 01 00 00 00 nop <== NOT EXECUTED 2020b34: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 2020b38: 40 00 05 f6 call 2022310 <== NOT EXECUTED 2020b3c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2020b40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020b44: 32 bf ff e2 bne,a 2020acc <== NOT EXECUTED 2020b48: c2 4a 20 0c ldsb [ %o0 + 0xc ], %g1 <== 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) 2020b4c: 40 00 40 2a call 2030bf4 <__errno> <== NOT EXECUTED 2020b50: 01 00 00 00 nop <== NOT EXECUTED 2020b54: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2020b58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020b5c: 02 80 00 5a be 2020cc4 <== NOT EXECUTED 2020b60: 01 00 00 00 nop <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 2020b64: 40 00 36 05 call 202e378 <== NOT EXECUTED 2020b68: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED if (ptsize) 2020b6c: 10 bf ff 94 b 20209bc <== NOT EXECUTED 2020b70: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED if (!save_errno) save_errno = errno; errno = 0; continue; } if (s.st_dev == dev && s.st_ino == ino) 2020b74: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED 2020b78: 12 bf ff cf bne 2020ab4 <== NOT EXECUTED 2020b7c: c2 07 bf ac ld [ %fp + -84 ], %g1 <== NOT EXECUTED 2020b80: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 2020b84: 12 bf ff cc bne 2020ab4 <== NOT EXECUTED 2020b88: c2 07 bf b0 ld [ %fp + -80 ], %g1 <== NOT EXECUTED 2020b8c: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED 2020b90: 12 bf ff c9 bne 2020ab4 <== NOT EXECUTED 2020b94: 01 00 00 00 nop <== NOT EXECUTED 2020b98: 30 80 00 1f b,a 2020c14 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) { if (!save_errno) save_errno = errno; 2020b9c: 40 00 40 16 call 2030bf4 <__errno> <== NOT EXECUTED 2020ba0: 01 00 00 00 nop <== NOT EXECUTED 2020ba4: 10 bf ff e2 b 2020b2c <== NOT EXECUTED 2020ba8: e8 02 00 00 ld [ %o0 ], %l4 <== NOT EXECUTED else for (;;) { if (!(dp = _readdir (dir))) goto notfound; if (ISDOT (dp)) 2020bac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020bb0: 02 bf ff c1 be 2020ab4 <== NOT EXECUTED 2020bb4: a0 02 20 0c add %o0, 0xc, %l0 <== NOT EXECUTED 2020bb8: 30 bf ff ce b,a 2020af0 <== NOT EXECUTED * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) { if (!(up = (char *) realloc (up, upsize *= 2))) 2020bbc: b5 2e a0 01 sll %i2, 1, %i2 <== NOT EXECUTED 2020bc0: 40 00 06 4c call 20224f0 <== NOT EXECUTED 2020bc4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 2020bc8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 2020bcc: 02 bf ff 7b be 20209b8 <== NOT EXECUTED 2020bd0: 82 04 40 1a add %l1, %i2, %g1 <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 2020bd4: a4 10 00 11 mov %l1, %l2 <== NOT EXECUTED 2020bd8: 10 bf ff a1 b 2020a5c <== NOT EXECUTED 2020bdc: c2 27 bf a4 st %g1, [ %fp + -92 ] <== 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) 2020be0: c2 07 bf ac ld [ %fp + -84 ], %g1 <== NOT EXECUTED 2020be4: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 2020be8: 12 bf ff b3 bne 2020ab4 <== NOT EXECUTED 2020bec: a8 10 20 00 clr %l4 <== NOT EXECUTED { for (;;) { if (!(dp = _readdir (dir))) 2020bf0: 40 00 05 c8 call 2022310 <== NOT EXECUTED 2020bf4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2020bf8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020bfc: 02 bf ff d4 be 2020b4c <== NOT EXECUTED 2020c00: a8 10 20 00 clr %l4 <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 2020c04: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2020c08: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED 2020c0c: 12 bf ff f9 bne 2020bf0 <== NOT EXECUTED 2020c10: a0 02 20 0c add %o0, 0xc, %l0 <== NOT EXECUTED /* * Check for length of the current name, preceding slash, * leading slash. */ if (bpt - pt <= strlen (dp->d_name) + (first ? 1 : 2)) 2020c14: 40 00 56 9a call 203667c <== NOT EXECUTED 2020c18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2020c1c: c6 07 bf 9c ld [ %fp + -100 ], %g3 <== NOT EXECUTED 2020c20: a8 27 00 18 sub %i4, %i0, %l4 <== NOT EXECUTED 2020c24: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED 2020c28: 82 20 80 03 sub %g2, %g3, %g1 <== NOT EXECUTED 2020c2c: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 2020c30: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED 2020c34: 18 80 00 13 bgu 2020c80 <== NOT EXECUTED 2020c38: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED { size_t len, off; if (!ptsize) 2020c3c: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED 2020c40: 02 80 00 49 be 2020d64 <== NOT EXECUTED 2020c44: 01 00 00 00 nop <== NOT EXECUTED errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 2020c48: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020c4c: af 2d e0 01 sll %l7, 1, %l7 <== NOT EXECUTED 2020c50: 40 00 06 28 call 20224f0 <== NOT EXECUTED 2020c54: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 2020c58: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2020c5c: 02 bf ff c2 be 2020b64 <== NOT EXECUTED 2020c60: 82 26 40 1c sub %i1, %i4, %g1 <== NOT EXECUTED { goto err; } bpt = pt + off; ept = pt + ptsize; (void) bcopy (bpt, ept - len, len); 2020c64: 92 06 00 14 add %i0, %l4, %o1 <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 2020c68: b2 06 00 17 add %i0, %l7, %i1 <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 2020c6c: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 2020c70: b8 26 40 01 sub %i1, %g1, %i4 <== NOT EXECUTED 2020c74: 40 00 4a 06 call 203348c <== NOT EXECUTED 2020c78: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED bpt = ept - len; } if (!first) 2020c7c: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED 2020c80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020c84: 12 80 00 04 bne 2020c94 <== NOT EXECUTED 2020c88: 84 10 20 2f mov 0x2f, %g2 <== NOT EXECUTED *--bpt = '/'; 2020c8c: b8 07 3f ff add %i4, -1, %i4 <== NOT EXECUTED 2020c90: c4 2f 00 00 stb %g2, [ %i4 ] <== NOT EXECUTED bpt -= strlen (dp->d_name); 2020c94: 40 00 56 7a call 203667c <== NOT EXECUTED 2020c98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 2020c9c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2020ca0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); bpt = ept - len; } if (!first) *--bpt = '/'; bpt -= strlen (dp->d_name); 2020ca4: b8 27 00 08 sub %i4, %o0, %i4 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); (void) _closedir (dir); dir = 0; /* Truncate any file name. */ *bup = '\0'; 2020ca8: c0 27 bf 9c clr [ %fp + -100 ] <== NOT EXECUTED bpt = ept - len; } if (!first) *--bpt = '/'; bpt -= strlen (dp->d_name); bcopy (dp->d_name, bpt, strlen (dp->d_name)); 2020cac: 40 00 49 f8 call 203348c <== NOT EXECUTED 2020cb0: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED (void) _closedir (dir); 2020cb4: 40 00 35 b1 call 202e378 <== NOT EXECUTED 2020cb8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 2020cbc: 10 bf ff 58 b 2020a1c <== NOT EXECUTED 2020cc0: c0 2c 80 00 clrb [ %l2 ] <== NOT EXECUTED * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) errno = save_errno ? save_errno : ENOENT; 2020cc4: 40 00 3f cc call 2030bf4 <__errno> <== NOT EXECUTED 2020cc8: 01 00 00 00 nop <== NOT EXECUTED 2020ccc: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2020cd0: 22 80 00 16 be,a 2020d28 <== NOT EXECUTED 2020cd4: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED 2020cd8: 10 bf ff a3 b 2020b64 <== NOT EXECUTED 2020cdc: e8 22 00 00 st %l4, [ %o0 ] <== 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) 2020ce0: c2 07 bf 94 ld [ %fp + -108 ], %g1 <== NOT EXECUTED 2020ce4: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 2020ce8: 12 bf ff 59 bne 2020a4c <== NOT EXECUTED 2020cec: c6 07 bf a4 ld [ %fp + -92 ], %g3 <== NOT EXECUTED 2020cf0: c4 07 bf a0 ld [ %fp + -96 ], %g2 <== NOT EXECUTED 2020cf4: 80 a0 80 1d cmp %g2, %i5 <== NOT EXECUTED 2020cf8: 12 bf ff 56 bne 2020a50 <== NOT EXECUTED 2020cfc: 82 04 a4 04 add %l2, 0x404, %g1 <== NOT EXECUTED { *--bpt = '/'; 2020d00: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED 2020d04: 92 07 3f ff add %i4, -1, %o1 <== NOT EXECUTED 2020d08: c2 2f 3f ff stb %g1, [ %i4 + -1 ] <== 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); 2020d0c: 94 26 40 09 sub %i1, %o1, %o2 <== NOT EXECUTED 2020d10: 40 00 49 df call 203348c <== NOT EXECUTED 2020d14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED free (up); 2020d18: 7f ff 8e 97 call 2004774 <== NOT EXECUTED 2020d1c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2020d20: 81 c7 e0 08 ret <== NOT EXECUTED 2020d24: 81 e8 00 00 restore <== NOT EXECUTED * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) errno = save_errno ? save_errno : ENOENT; 2020d28: 10 bf ff 8f b 2020b64 <== NOT EXECUTED 2020d2c: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED if (pt) { ptsize = 0; if (!size) { errno = EINVAL; 2020d30: 40 00 3f b1 call 2030bf4 <__errno> <== NOT EXECUTED 2020d34: b0 10 20 00 clr %i0 <== NOT EXECUTED 2020d38: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2020d3c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020d40: 81 c7 e0 08 ret <== NOT EXECUTED 2020d44: 81 e8 00 00 restore <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 2020d48: 7f ff 90 2f call 2004e04 <== NOT EXECUTED 2020d4c: 90 10 23 fc mov 0x3fc, %o0 <== NOT EXECUTED 2020d50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2020d54: 02 bf ff 1f be 20209d0 <== NOT EXECUTED 2020d58: b2 06 23 fc add %i0, 0x3fc, %i1 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 2020d5c: 10 bf ff 06 b 2020974 <== NOT EXECUTED 2020d60: ae 10 23 fc mov 0x3fc, %l7 <== NOT EXECUTED { size_t len, off; if (!ptsize) { errno = ERANGE; 2020d64: 40 00 3f a4 call 2030bf4 <__errno> <== NOT EXECUTED 2020d68: 01 00 00 00 nop <== NOT EXECUTED 2020d6c: 82 10 20 22 mov 0x22, %g1 ! 22 <== NOT EXECUTED 2020d70: 10 bf ff 7d b 2020b64 <== NOT EXECUTED 2020d74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 0202e814 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 202e814: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 202e818: 03 00 81 20 sethi %hi(0x2048000), %g1 <== NOT EXECUTED 202e81c: c4 00 63 08 ld [ %g1 + 0x308 ], %g2 ! 2048308 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 202e820: 88 10 00 18 mov %i0, %g4 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 202e824: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 202e828: 1a 80 00 0a bcc 202e850 <== NOT EXECUTED 202e82c: b0 10 20 00 clr %i0 <== NOT EXECUTED 202e830: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 202e834: c6 00 63 34 ld [ %g1 + 0x334 ], %g3 ! 205d334 <== NOT EXECUTED 202e838: 85 29 20 02 sll %g4, 2, %g2 <== NOT EXECUTED 202e83c: 83 29 20 04 sll %g4, 4, %g1 <== NOT EXECUTED 202e840: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202e844: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED 202e848: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e84c: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 202e850: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202e854: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED 202e858: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED 202e85c: c4 27 bf ec st %g2, [ %fp + -20 ] <== NOT EXECUTED 202e860: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 202e864: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED 202e868: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED if ( !loc.ops->node_type_h ) 202e86c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 202e870: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e874: 02 80 00 17 be 202e8d0 <== NOT EXECUTED 202e878: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 202e87c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202e880: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 202e884: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 202e888: 12 80 00 0c bne 202e8b8 <== NOT EXECUTED 202e88c: 01 00 00 00 nop <== NOT EXECUTED /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 202e890: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 202e894: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 202e898: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e89c: 02 80 00 0d be 202e8d0 <== NOT EXECUTED 202e8a0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 202e8a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202e8a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 202e8ac: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED } 202e8b0: 81 c7 e0 08 ret <== NOT EXECUTED 202e8b4: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ); 202e8b8: 40 00 08 cf call 2030bf4 <__errno> <== NOT EXECUTED 202e8bc: 01 00 00 00 nop <== NOT EXECUTED 202e8c0: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 202e8c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e8c8: 10 bf ff fa b 202e8b0 <== NOT EXECUTED 202e8cc: 90 10 3f ff mov -1, %o0 <== 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 ); 202e8d0: 40 00 08 c9 call 2030bf4 <__errno> <== NOT EXECUTED 202e8d4: 01 00 00 00 nop <== NOT EXECUTED 202e8d8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 202e8dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e8e0: 10 bf ff f4 b 202e8b0 <== NOT EXECUTED 202e8e4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02020d78 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 2020d78: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 2020d7c: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED return _POSIX_types_Egid; } 2020d80: 81 c3 e0 08 retl <== NOT EXECUTED 2020d84: d0 10 a0 2e lduh [ %g2 + 0x2e ], %o0 <== NOT EXECUTED 02020d88 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 2020d88: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 2020d8c: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED return _POSIX_types_Euid; } 2020d90: 81 c3 e0 08 retl <== NOT EXECUTED 2020d94: d0 10 a0 2c lduh [ %g2 + 0x2c ], %o0 <== NOT EXECUTED 02020d98 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 2020d98: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 2020d9c: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED return _POSIX_types_Gid; } 2020da0: 81 c3 e0 08 retl <== NOT EXECUTED 2020da4: d0 10 a0 2a lduh [ %g2 + 0x2a ], %o0 <== NOT EXECUTED 02021480 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2021480: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 2021484: 7f ff ff b3 call 2021350 <== NOT EXECUTED 2021488: 01 00 00 00 nop <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 202148c: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED 2021490: 13 00 81 1f sethi %hi(0x2047c00), %o1 <== NOT EXECUTED 2021494: 90 12 22 18 or %o0, 0x218, %o0 <== NOT EXECUTED 2021498: 40 00 40 49 call 20315bc <== NOT EXECUTED 202149c: 92 12 61 c8 or %o1, 0x1c8, %o1 <== NOT EXECUTED 20214a0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 20214a4: 12 80 00 0b bne 20214d0 <== NOT EXECUTED 20214a8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 20214ac: 30 80 00 27 b,a 2021548 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 20214b0: 40 00 52 55 call 2035e04 <== NOT EXECUTED 20214b4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20214b8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 20214bc: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); } if (match) { 20214c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20214c4: 12 80 00 14 bne 2021514 <== NOT EXECUTED 20214c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 20214cc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 20214d0: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 20214d4: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED 20214d8: 7f ff fe d1 call 202101c <== NOT EXECUTED 20214dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20214e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20214e4: 02 80 00 11 be 2021528 <== NOT EXECUTED 20214e8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 20214ec: 32 bf ff f1 bne,a 20214b0 <== NOT EXECUTED 20214f0: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 20214f4: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 20214f8: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 20214fc: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2021500: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 2021504: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021508: 02 bf ff f2 be 20214d0 <== NOT EXECUTED 202150c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 2021510: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2021514: 40 00 3e 10 call 2030d54 <== NOT EXECUTED 2021518: b0 10 20 00 clr %i0 <== NOT EXECUTED *result = grp; 202151c: f4 27 40 00 st %i2, [ %i5 ] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 2021520: 81 c7 e0 08 ret <== NOT EXECUTED 2021524: 81 e8 00 00 restore <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 2021528: 40 00 3d b3 call 2030bf4 <__errno> <== NOT EXECUTED 202152c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021530: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2021534: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2021538: 40 00 3e 07 call 2030d54 <== NOT EXECUTED 202153c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2021540: 81 c7 e0 08 ret <== NOT EXECUTED 2021544: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 2021548: 40 00 3d ab call 2030bf4 <__errno> <== NOT EXECUTED 202154c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021550: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2021554: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2021558: 81 c7 e0 08 ret <== NOT EXECUTED 202155c: 81 e8 00 00 restore <== NOT EXECUTED 0202119c : return NULL; return p; } struct group *getgrent() { 202119c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (group_fp == NULL) 20211a0: 03 00 81 72 sethi %hi(0x205c800), %g1 <== NOT EXECUTED 20211a4: d0 00 62 54 ld [ %g1 + 0x254 ], %o0 ! 205ca54 <== NOT EXECUTED 20211a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20211ac: 02 80 00 0d be 20211e0 <== NOT EXECUTED 20211b0: 21 00 81 72 sethi %hi(0x205c800), %l0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 20211b4: 15 00 81 72 sethi %hi(0x205c800), %o2 <== NOT EXECUTED 20211b8: 92 14 23 20 or %l0, 0x320, %o1 <== NOT EXECUTED 20211bc: 94 12 a2 58 or %o2, 0x258, %o2 <== NOT EXECUTED 20211c0: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20211c4: 7f ff ff 96 call 202101c <== NOT EXECUTED 20211c8: b0 14 23 20 or %l0, 0x320, %i0 <== NOT EXECUTED 20211cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20211d0: 02 80 00 04 be 20211e0 <== NOT EXECUTED 20211d4: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &grent; } 20211d8: 81 c7 e0 08 ret <== NOT EXECUTED 20211dc: 81 e8 00 00 restore <== NOT EXECUTED 20211e0: 81 c7 e0 08 ret <== NOT EXECUTED 20211e4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02021598 : } struct group *getgrgid( gid_t gid ) { 2021598: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 202159c: 13 00 81 72 sethi %hi(0x205c800), %o1 <== NOT EXECUTED 20215a0: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 20215a4: 92 12 63 20 or %o1, 0x320, %o1 <== NOT EXECUTED 20215a8: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 20215ac: 15 00 81 72 sethi %hi(0x205c800), %o2 <== NOT EXECUTED 20215b0: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20215b4: 94 12 a2 58 or %o2, 0x258, %o2 <== NOT EXECUTED 20215b8: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 20215bc: 7f ff ff e9 call 2021560 <== NOT EXECUTED 20215c0: b0 10 20 00 clr %i0 <== NOT EXECUTED 20215c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20215c8: 22 80 00 02 be,a 20215d0 <== NOT EXECUTED 20215cc: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 20215d0: 81 c7 e0 08 ret <== NOT EXECUTED 20215d4: 81 e8 00 00 restore <== NOT EXECUTED 02021560 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2021560: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED 2021564: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2021568: 86 10 00 0b mov %o3, %g3 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 202156c: 93 2a 20 10 sll %o0, 0x10, %o1 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2021570: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2021574: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 2021578: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 202157c: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2021580: 98 10 00 03 mov %g3, %o4 <== NOT EXECUTED 2021584: 90 10 20 00 clr %o0 <== NOT EXECUTED 2021588: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202158c: 7f ff ff bd call 2021480 <== NOT EXECUTED 2021590: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021594: 01 00 00 00 nop 02021604 : } struct group *getgrnam( const char *name ) { 2021604: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 2021608: 13 00 81 72 sethi %hi(0x205c800), %o1 <== NOT EXECUTED 202160c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021610: 92 12 63 20 or %o1, 0x320, %o1 <== NOT EXECUTED 2021614: 15 00 81 72 sethi %hi(0x205c800), %o2 <== NOT EXECUTED 2021618: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202161c: 94 12 a2 58 or %o2, 0x258, %o2 <== NOT EXECUTED 2021620: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 2021624: 7f ff ff ed call 20215d8 <== NOT EXECUTED 2021628: b0 10 20 00 clr %i0 <== NOT EXECUTED 202162c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021630: 22 80 00 02 be,a 2021638 <== NOT EXECUTED 2021634: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 2021638: 81 c7 e0 08 ret <== NOT EXECUTED 202163c: 81 e8 00 00 restore <== NOT EXECUTED 020215d8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20215d8: 82 10 00 0a mov %o2, %g1 <== NOT EXECUTED 20215dc: 84 10 00 0b mov %o3, %g2 <== NOT EXECUTED 20215e0: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 20215e4: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 20215e8: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED 20215ec: 98 10 00 02 mov %g2, %o4 <== NOT EXECUTED 20215f0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20215f4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20215f8: 7f ff ff a2 call 2021480 <== NOT EXECUTED 20215fc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021600: 01 00 00 00 nop 02021938 : */ pid_t getpid( void ) { return _Objects_Local_node; } 2021938: 81 c3 e0 08 retl <== NOT EXECUTED 202193c: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED 02021684 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2021684: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 2021688: 7f ff ff 32 call 2021350 <== NOT EXECUTED 202168c: 01 00 00 00 nop <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 2021690: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED 2021694: 13 00 81 1f sethi %hi(0x2047c00), %o1 <== NOT EXECUTED 2021698: 90 12 21 a0 or %o0, 0x1a0, %o0 <== NOT EXECUTED 202169c: 40 00 3f c8 call 20315bc <== NOT EXECUTED 20216a0: 92 12 61 c8 or %o1, 0x1c8, %o1 <== NOT EXECUTED 20216a4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 20216a8: 12 80 00 0b bne 20216d4 <== NOT EXECUTED 20216ac: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 20216b0: 30 80 00 27 b,a 202174c <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 20216b4: 40 00 51 d4 call 2035e04 <== NOT EXECUTED 20216b8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20216bc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 20216c0: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); } if (match) { 20216c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20216c8: 12 80 00 14 bne 2021718 <== NOT EXECUTED 20216cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 20216d0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 20216d4: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 20216d8: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED 20216dc: 7f ff fe c3 call 20211e8 <== NOT EXECUTED 20216e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20216e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20216e8: 02 80 00 11 be 202172c <== NOT EXECUTED 20216ec: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 20216f0: 32 bf ff f1 bne,a 20216b4 <== NOT EXECUTED 20216f4: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 20216f8: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 20216fc: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2021700: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2021704: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 2021708: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202170c: 02 bf ff f2 be 20216d4 <== NOT EXECUTED 2021710: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 2021714: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2021718: 40 00 3d 8f call 2030d54 <== NOT EXECUTED 202171c: b0 10 20 00 clr %i0 <== NOT EXECUTED *result = pwd; 2021720: f4 27 40 00 st %i2, [ %i5 ] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 2021724: 81 c7 e0 08 ret <== NOT EXECUTED 2021728: 81 e8 00 00 restore <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 202172c: 40 00 3d 32 call 2030bf4 <__errno> <== NOT EXECUTED 2021730: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021734: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2021738: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 202173c: 40 00 3d 86 call 2030d54 <== NOT EXECUTED 2021740: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2021744: 81 c7 e0 08 ret <== NOT EXECUTED 2021748: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 202174c: 40 00 3d 2a call 2030bf4 <__errno> <== NOT EXECUTED 2021750: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021754: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2021758: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202175c: 81 c7 e0 08 ret <== NOT EXECUTED 2021760: 81 e8 00 00 restore <== NOT EXECUTED 02021304 : return NULL; return p; } struct passwd *getpwent() { 2021304: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2021308: 03 00 81 72 sethi %hi(0x205c800), %g1 <== NOT EXECUTED 202130c: d0 00 61 6c ld [ %g1 + 0x16c ], %o0 ! 205c96c <== NOT EXECUTED 2021310: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021314: 02 80 00 0d be 2021348 <== NOT EXECUTED 2021318: 21 00 81 72 sethi %hi(0x205c800), %l0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 202131c: 15 00 81 72 sethi %hi(0x205c800), %o2 <== NOT EXECUTED 2021320: 92 14 22 38 or %l0, 0x238, %o1 <== NOT EXECUTED 2021324: 94 12 a1 70 or %o2, 0x170, %o2 <== NOT EXECUTED 2021328: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202132c: 7f ff ff af call 20211e8 <== NOT EXECUTED 2021330: b0 14 22 38 or %l0, 0x238, %i0 <== NOT EXECUTED 2021334: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021338: 02 80 00 04 be 2021348 <== NOT EXECUTED 202133c: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &pwent; } 2021340: 81 c7 e0 08 ret <== NOT EXECUTED 2021344: 81 e8 00 00 restore <== NOT EXECUTED 2021348: 81 c7 e0 08 ret <== NOT EXECUTED 202134c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02021808 : } struct passwd *getpwnam( const char *name ) { 2021808: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 202180c: 13 00 81 72 sethi %hi(0x205c800), %o1 <== NOT EXECUTED 2021810: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021814: 92 12 62 38 or %o1, 0x238, %o1 <== NOT EXECUTED 2021818: 15 00 81 72 sethi %hi(0x205c800), %o2 <== NOT EXECUTED 202181c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2021820: 94 12 a1 70 or %o2, 0x170, %o2 <== NOT EXECUTED 2021824: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 2021828: 7f ff ff ed call 20217dc <== NOT EXECUTED 202182c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2021830: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021834: 22 80 00 02 be,a 202183c <== NOT EXECUTED 2021838: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 202183c: 81 c7 e0 08 ret <== NOT EXECUTED 2021840: 81 e8 00 00 restore <== NOT EXECUTED 020217dc : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 20217dc: 82 10 00 0a mov %o2, %g1 <== NOT EXECUTED 20217e0: 84 10 00 0b mov %o3, %g2 <== NOT EXECUTED 20217e4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 20217e8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 20217ec: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED 20217f0: 98 10 00 02 mov %g2, %o4 <== NOT EXECUTED 20217f4: 92 10 20 00 clr %o1 <== NOT EXECUTED 20217f8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20217fc: 7f ff ff a2 call 2021684 <== NOT EXECUTED 2021800: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021804: 01 00 00 00 nop 0202179c : } struct passwd *getpwuid( uid_t uid ) { 202179c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 20217a0: 13 00 81 72 sethi %hi(0x205c800), %o1 <== NOT EXECUTED 20217a4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 20217a8: 92 12 62 38 or %o1, 0x238, %o1 <== NOT EXECUTED 20217ac: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 20217b0: 15 00 81 72 sethi %hi(0x205c800), %o2 <== NOT EXECUTED 20217b4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20217b8: 94 12 a1 70 or %o2, 0x170, %o2 <== NOT EXECUTED 20217bc: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 20217c0: 7f ff ff e9 call 2021764 <== NOT EXECUTED 20217c4: b0 10 20 00 clr %i0 <== NOT EXECUTED 20217c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20217cc: 22 80 00 02 be,a 20217d4 <== NOT EXECUTED 20217d0: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 20217d4: 81 c7 e0 08 ret <== NOT EXECUTED 20217d8: 81 e8 00 00 restore <== NOT EXECUTED 02021764 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2021764: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED 2021768: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 202176c: 86 10 00 0b mov %o3, %g3 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2021770: 93 2a 20 10 sll %o0, 0x10, %o1 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2021774: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2021778: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 202177c: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2021780: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2021784: 98 10 00 03 mov %g3, %o4 <== NOT EXECUTED 2021788: 90 10 20 00 clr %o0 <== NOT EXECUTED 202178c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2021790: 7f ff ff bd call 2021684 <== NOT EXECUTED 2021794: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021798: 01 00 00 00 nop 0200a9ec : int gettimeofday( struct timeval *tp, void * __tz ) { 200a9ec: 9d e3 bf 90 save %sp, -112, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 200a9f0: 80 a6 20 00 cmp %i0, 0 200a9f4: 02 80 00 11 be 200aa38 200a9f8: 01 00 00 00 nop ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 200a9fc: 7f ff dc ea call 2001da4 200aa00: 01 00 00 00 nop 200aa04: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 200aa08: 7f ff ef 49 call 200672c <_TOD_Get> 200aa0c: 90 07 bf f0 add %fp, -16, %o0 _ISR_Enable(level); 200aa10: 7f ff dc e9 call 2001db4 200aa14: 90 10 00 10 mov %l0, %o0 time->tv_sec = now.tv_sec; time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 200aa18: d0 07 bf f4 ld [ %fp + -12 ], %o0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 200aa1c: c2 07 bf f0 ld [ %fp + -16 ], %g1 time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 200aa20: 92 10 23 e8 mov 0x3e8, %o1 200aa24: 40 00 23 a0 call 20138a4 <.udiv> 200aa28: c2 26 00 00 st %g1, [ %i0 ] 200aa2c: d0 26 20 04 st %o0, [ %i0 + 4 ] * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 200aa30: 81 c7 e0 08 ret 200aa34: 91 e8 20 00 restore %g0, 0, %o0 void * __tz ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 200aa38: 40 00 08 d0 call 200cd78 <__errno> <== NOT EXECUTED 200aa3c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200aa40: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200aa44: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200aa48: 81 c7 e0 08 ret <== NOT EXECUTED 200aa4c: 81 e8 00 00 restore <== NOT EXECUTED 020048ac : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 20048ac: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 20048b0: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED return _POSIX_types_Uid; } 20048b4: 81 c3 e0 08 retl <== NOT EXECUTED 20048b8: d0 10 a0 28 lduh [ %g2 + 0x28 ], %o0 <== NOT EXECUTED 0202df2c : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 202df2c: 81 c3 e0 08 retl <== NOT EXECUTED 202df30: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202df34 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 202df34: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED buf->st_dev = 0ll; 202df38: c0 22 40 00 clr [ %o1 ] <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; 202df3c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 <== NOT EXECUTED buf->st_mode = the_jnode->st_mode; 202df40: c6 10 60 2e lduh [ %g1 + 0x2e ], %g3 <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 202df44: c4 22 60 08 st %g2, [ %o1 + 8 ] <== NOT EXECUTED buf->st_mode = the_jnode->st_mode; 202df48: c6 32 60 0c sth %g3, [ %o1 + 0xc ] <== 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; 202df4c: c0 22 60 3c clr [ %o1 + 0x3c ] <== 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; buf->st_nlink = the_jnode->st_nlink; 202df50: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 <== NOT EXECUTED 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; 202df54: c0 22 60 40 clr [ %o1 + 0x40 ] <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; 202df58: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== 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; buf->st_nlink = the_jnode->st_nlink; 202df5c: c4 32 60 0e sth %g2, [ %o1 + 0xe ] <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; 202df60: c6 22 60 24 st %g3, [ %o1 + 0x24 ] <== 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; 202df64: c4 10 60 38 lduh [ %g1 + 0x38 ], %g2 <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 202df68: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 <== 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; 202df6c: c4 32 60 10 sth %g2, [ %o1 + 0x10 ] <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 202df70: c6 22 60 2c st %g3, [ %o1 + 0x2c ] <== 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; 202df74: c4 10 60 3a lduh [ %g1 + 0x3a ], %g2 <== 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; buf->st_ctime = the_jnode->stat_ctime; 202df78: c6 00 60 44 ld [ %g1 + 0x44 ], %g3 <== 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; 202df7c: c4 32 60 12 sth %g2, [ %o1 + 0x12 ] <== 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; buf->st_ctime = the_jnode->stat_ctime; 202df80: c6 22 60 34 st %g3, [ %o1 + 0x34 ] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 202df84: c0 22 60 04 clr [ %o1 + 4 ] <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; 202df88: c0 22 60 18 clr [ %o1 + 0x18 ] <== NOT EXECUTED 202df8c: c0 22 60 1c clr [ %o1 + 0x1c ] <== 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; 202df90: c0 22 60 20 clr [ %o1 + 0x20 ] <== 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 ; 202df94: c6 00 60 4c ld [ %g1 + 0x4c ], %g3 <== NOT EXECUTED 202df98: 82 00 60 50 add %g1, 0x50, %g1 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; 202df9c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 202dfa0: 02 80 00 07 be 202dfbc <== NOT EXECUTED 202dfa4: 84 10 20 00 clr %g2 <== NOT EXECUTED the_node = the_node->next ) { 202dfa8: c6 00 c0 00 ld [ %g3 ], %g3 <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); 202dfac: 84 00 a1 0c add %g2, 0x10c, %g2 <== 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 ) ; 202dfb0: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 202dfb4: 12 bf ff fd bne 202dfa8 <== NOT EXECUTED 202dfb8: c4 22 60 20 st %g2, [ %o1 + 0x20 ] <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 202dfbc: 81 c3 e0 08 retl <== NOT EXECUTED 202dfc0: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202dfc4 : off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 202dfc4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED switch( whence ) { 202dfc8: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 202dfcc: 08 80 00 08 bleu 202dfec <== NOT EXECUTED 202dfd0: b4 10 00 18 mov %i0, %i2 <== 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 ); 202dfd4: 40 00 0b 08 call 2030bf4 <__errno> <== NOT EXECUTED 202dfd8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202dfdc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202dfe0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED break; } return 0; } 202dfe4: 81 c7 e0 08 ret <== NOT EXECUTED 202dfe8: 81 e8 00 00 restore <== 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)) * 202dfec: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 202dff0: 92 10 21 0c mov 0x10c, %o1 <== NOT EXECUTED 202dff4: 40 00 4b 8f call 2040e30 <.udiv> <== NOT EXECUTED 202dff8: b0 10 20 00 clr %i0 <== NOT EXECUTED 202dffc: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED 202e000: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 202e004: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 202e008: 82 20 40 08 sub %g1, %o0, %g1 <== NOT EXECUTED 202e00c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e010: c2 26 a0 08 st %g1, [ %i2 + 8 ] <== NOT EXECUTED 202e014: 81 c7 e0 08 ret <== NOT EXECUTED 202e018: 81 e8 00 00 restore <== NOT EXECUTED 0202df00 : IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 202df00: c4 02 20 2c ld [ %o0 + 0x2c ], %g2 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 202df04: 86 10 00 08 mov %o0, %g3 <== 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 ) 202df08: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 202df0c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 202df10: 02 80 00 04 be 202df20 <== NOT EXECUTED 202df14: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; return 0; } 202df18: 81 c3 e0 08 retl <== NOT EXECUTED 202df1c: 01 00 00 00 nop <== 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; 202df20: c0 20 e0 08 clr [ %g3 + 8 ] <== NOT EXECUTED return 0; } 202df24: 81 c3 e0 08 retl <== NOT EXECUTED 202df28: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202e120 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202e120: 9d e3 be 88 save %sp, -376, %sp <== NOT EXECUTED int current_entry; int first_entry; int last_entry; struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; 202e124: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202e128: aa 10 00 18 mov %i0, %l5 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 202e12c: e2 00 60 4c ld [ %g1 + 0x4c ], %l1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 202e130: a8 00 60 50 add %g1, 0x50, %l4 <== NOT EXECUTED 202e134: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 202e138: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED 202e13c: 02 80 00 33 be 202e208 <== NOT EXECUTED 202e140: b0 10 20 00 clr %i0 <== NOT EXECUTED /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 202e144: e6 05 60 08 ld [ %l5 + 8 ], %l3 <== 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); 202e148: 40 00 4b 3a call 2040e30 <.udiv> <== NOT EXECUTED 202e14c: 92 10 21 0c mov 0x10c, %o1 <== 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; 202e150: b0 10 20 00 clr %i0 <== 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); 202e154: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED 202e158: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 202e15c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 202e160: 82 20 40 08 sub %g1, %o0, %g1 <== NOT EXECUTED 202e164: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202e168: a4 00 40 13 add %g1, %l3, %l2 <== 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; 202e16c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 202e170: 04 80 00 26 ble 202e208 <== NOT EXECUTED 202e174: b4 10 20 00 clr %i2 <== 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 ); 202e178: ba 10 21 0c mov 0x10c, %i5 <== 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 ); strcpy( tmp_dirent.d_name, the_jnode->name ); 202e17c: ae 07 be ec add %fp, -276, %l7 <== NOT EXECUTED 202e180: 10 80 00 08 b 202e1a0 <== NOT EXECUTED 202e184: ac 07 be f8 add %fp, -264, %l6 <== 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; 202e188: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED 202e18c: 04 80 00 1f ble 202e208 <== NOT EXECUTED 202e190: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 202e194: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED 202e198: 02 80 00 1e be 202e210 <== NOT EXECUTED 202e19c: 01 00 00 00 nop <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 202e1a0: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 202e1a4: 34 bf ff f9 bg,a 202e188 <== NOT EXECUTED 202e1a8: b4 06 a1 0c add %i2, 0x10c, %i2 <== NOT EXECUTED /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 202e1ac: f4 27 be f0 st %i2, [ %fp + -272 ] <== NOT EXECUTED tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 202e1b0: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 202e1b4: a0 04 60 0c add %l1, 0xc, %l0 <== 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; 202e1b8: c2 27 be ec st %g1, [ %fp + -276 ] <== 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 ); 202e1bc: fa 37 be f4 sth %i5, [ %fp + -268 ] <== 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 ); 202e1c0: 40 00 21 2f call 203667c <== NOT EXECUTED 202e1c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 202e1c8: 92 10 00 10 mov %l0, %o1 <== 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 ); 202e1cc: d0 37 be f6 sth %o0, [ %fp + -266 ] <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 202e1d0: 40 00 1f 3d call 2035ec4 <== NOT EXECUTED 202e1d4: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED memcpy( 202e1d8: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 202e1dc: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 202e1e0: 40 00 14 72 call 20333a8 <== NOT EXECUTED 202e1e4: 94 10 21 0c mov 0x10c, %o2 <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 202e1e8: c2 05 60 08 ld [ %l5 + 8 ], %g1 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202e1ec: b4 06 a1 0c add %i2, 0x10c, %i2 <== NOT EXECUTED memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 202e1f0: 82 00 61 0c add %g1, 0x10c, %g1 <== NOT EXECUTED 202e1f4: c2 25 60 08 st %g1, [ %l5 + 8 ] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); 202e1f8: b0 06 21 0c add %i0, 0x10c, %i0 <== 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; 202e1fc: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED 202e200: 14 bf ff e5 bg 202e194 <== NOT EXECUTED 202e204: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 202e208: 81 c7 e0 08 ret <== NOT EXECUTED 202e20c: 81 e8 00 00 restore <== NOT EXECUTED 202e210: 81 c7 e0 08 ret <== NOT EXECUTED 202e214: 81 e8 00 00 restore <== NOT EXECUTED 0202e01c : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 202e01c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 202e020: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 202e024: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 202e028: 82 04 20 50 add %l0, 0x50, %g1 <== NOT EXECUTED 202e02c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 202e030: 12 80 00 30 bne 202e0f0 <== NOT EXECUTED 202e034: 01 00 00 00 nop <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 202e038: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 202e03c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 202e040: 80 a4 00 02 cmp %l0, %g2 <== NOT EXECUTED 202e044: 02 80 00 31 be 202e108 <== NOT EXECUTED 202e048: 01 00 00 00 nop <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 202e04c: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 202e050: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e054: 12 80 00 2d bne 202e108 <== NOT EXECUTED 202e058: 01 00 00 00 nop <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 202e05c: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 202e060: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e064: 22 80 00 06 be,a 202e07c <== NOT EXECUTED 202e068: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 202e06c: 7f ff d7 60 call 2023dec <_Chain_Extract> <== NOT EXECUTED 202e070: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 202e074: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 202e078: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 202e07c: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 202e080: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 202e084: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 202e088: 7f ff 59 e6 call 2004820 <== NOT EXECUTED 202e08c: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] <== NOT EXECUTED 202e090: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== 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) ) { 202e094: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202e098: 7f ff 5a 58 call 20049f8 <== NOT EXECUTED 202e09c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 202e0a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202e0a4: 12 80 00 11 bne 202e0e8 <== NOT EXECUTED 202e0a8: 01 00 00 00 nop <== NOT EXECUTED 202e0ac: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 202e0b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202e0b4: 12 80 00 0d bne 202e0e8 <== NOT EXECUTED 202e0b8: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 202e0bc: c6 00 61 8c ld [ %g1 + 0x18c ], %g3 ! 2048d8c <== NOT EXECUTED 202e0c0: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED 202e0c4: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 202e0c8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202e0cc: 22 80 00 02 be,a 202e0d4 <== NOT EXECUTED 202e0d0: c0 20 e0 04 clr [ %g3 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 202e0d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202e0d8: 7f ff 59 a7 call 2004774 <== NOT EXECUTED 202e0dc: b0 10 20 00 clr %i0 <== NOT EXECUTED 202e0e0: 81 c7 e0 08 ret <== NOT EXECUTED 202e0e4: 81 e8 00 00 restore <== NOT EXECUTED } return 0; } 202e0e8: 81 c7 e0 08 ret <== NOT EXECUTED 202e0ec: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 202e0f0: 40 00 0a c1 call 2030bf4 <__errno> <== NOT EXECUTED 202e0f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e0f8: 82 10 20 5a mov 0x5a, %g1 <== NOT EXECUTED 202e0fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e100: 81 c7 e0 08 ret <== NOT EXECUTED 202e104: 81 e8 00 00 restore <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 202e108: 40 00 0a bb call 2030bf4 <__errno> <== NOT EXECUTED 202e10c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202e110: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED 202e114: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202e118: 81 c7 e0 08 ret <== NOT EXECUTED 202e11c: 81 e8 00 00 restore <== NOT EXECUTED 02021350 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 2021350: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 2021354: 05 00 81 72 sethi %hi(0x205c800), %g2 <== NOT EXECUTED 2021358: c2 48 a1 68 ldsb [ %g2 + 0x168 ], %g1 ! 205c968 <== NOT EXECUTED 202135c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021360: 02 80 00 04 be 2021370 <== NOT EXECUTED 2021364: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2021368: 81 c7 e0 08 ret <== NOT EXECUTED 202136c: 81 e8 00 00 restore <== NOT EXECUTED return; etc_passwd_initted = 1; mkdir("/etc", 0777); 2021370: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 2021374: c2 28 a1 68 stb %g1, [ %g2 + 0x168 ] <== NOT EXECUTED mkdir("/etc", 0777); 2021378: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED 202137c: 7f ff 8f 18 call 2004fdc <== NOT EXECUTED 2021380: 90 12 21 98 or %o0, 0x198, %o0 ! 2045598 <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 2021384: 31 00 81 15 sethi %hi(0x2045400), %i0 <== NOT EXECUTED 2021388: 21 00 81 1f sethi %hi(0x2047c00), %l0 <== NOT EXECUTED 202138c: 90 16 21 a0 or %i0, 0x1a0, %o0 <== NOT EXECUTED 2021390: 40 00 40 8b call 20315bc <== NOT EXECUTED 2021394: 92 14 21 c8 or %l0, 0x1c8, %o1 <== NOT EXECUTED 2021398: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202139c: 22 80 00 0d be,a 20213d0 <== NOT EXECUTED 20213a0: 90 16 21 a0 or %i0, 0x1a0, %o0 <== NOT EXECUTED } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 20213a4: 40 00 3e 6c call 2030d54 <== NOT EXECUTED 20213a8: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 20213ac: 92 14 21 c8 or %l0, 0x1c8, %o1 <== NOT EXECUTED 20213b0: 31 00 81 15 sethi %hi(0x2045400), %i0 <== NOT EXECUTED 20213b4: 40 00 40 82 call 20315bc <== NOT EXECUTED 20213b8: 90 16 22 18 or %i0, 0x218, %o0 ! 2045618 <== NOT EXECUTED 20213bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20213c0: 22 80 00 11 be,a 2021404 <== NOT EXECUTED 20213c4: 90 16 22 18 or %i0, 0x218, %o0 <== NOT EXECUTED fclose(fp); 20213c8: 40 00 3e 63 call 2030d54 <== NOT EXECUTED 20213cc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 20213d0: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 20213d4: 40 00 40 7a call 20315bc <== NOT EXECUTED 20213d8: 92 12 63 18 or %o1, 0x318, %o1 ! 2044718 <_CPU_Trap_slot_template+0x1510> <== NOT EXECUTED 20213dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20213e0: 02 bf ff f3 be 20213ac <== NOT EXECUTED 20213e4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 20213e8: 94 10 20 66 mov 0x66, %o2 <== NOT EXECUTED 20213ec: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED 20213f0: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED 20213f4: 40 00 43 9c call 2032264 <== NOT EXECUTED 20213f8: 90 12 21 b0 or %o0, 0x1b0, %o0 ! 20455b0 <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 20213fc: 10 bf ff ea b 20213a4 <== NOT EXECUTED 2021400: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 2021404: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 2021408: 40 00 40 6d call 20315bc <== NOT EXECUTED 202140c: 92 12 63 18 or %o1, 0x318, %o1 ! 2044718 <_CPU_Trap_slot_template+0x1510> <== NOT EXECUTED 2021410: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2021414: 02 bf ff d5 be 2021368 <== NOT EXECUTED 2021418: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 202141c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2021420: 94 10 20 2a mov 0x2a, %o2 <== NOT EXECUTED 2021424: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED 2021428: 40 00 43 8f call 2032264 <== NOT EXECUTED 202142c: 90 12 22 28 or %o0, 0x228, %o0 <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 2021430: 40 00 3e 49 call 2030d54 <== NOT EXECUTED 2021434: 81 e8 00 00 restore <== NOT EXECUTED 2021438: 01 00 00 00 nop 0201710c : int ioctl( int fd, ioctl_command_t command, ... ) { 201710c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 2017110: 03 00 80 97 sethi %hi(0x2025c00), %g1 <== NOT EXECUTED 2017114: c4 00 62 a8 ld [ %g1 + 0x2a8 ], %g2 ! 2025ea8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 2017118: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 201711c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2017120: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2017124: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 2017128: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 201712c: 1a 80 00 1b bcc 2017198 <== NOT EXECUTED 2017130: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2017134: 03 00 80 9f sethi %hi(0x2027c00), %g1 <== NOT EXECUTED 2017138: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 ! 2027c3c <== NOT EXECUTED 201713c: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 2017140: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 2017144: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2017148: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 201714c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 2017150: 90 00 c0 01 add %g3, %g1, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2017154: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED 2017158: 80 88 a1 00 btst 0x100, %g2 <== NOT EXECUTED 201715c: 02 80 00 0f be 2017198 <== NOT EXECUTED 2017160: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 2017164: c4 02 20 30 ld [ %o0 + 0x30 ], %g2 <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 2017168: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 201716c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2017170: 02 80 00 0a be 2017198 <== NOT EXECUTED 2017174: d4 07 a0 4c ld [ %fp + 0x4c ], %o2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 2017178: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 201717c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2017180: 02 80 00 0c be 20171b0 <== NOT EXECUTED 2017184: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 2017188: 9f c0 40 00 call %g1 <== NOT EXECUTED 201718c: 01 00 00 00 nop <== NOT EXECUTED return rc; } 2017190: 81 c7 e0 08 ret <== NOT EXECUTED 2017194: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 2017198: 40 00 02 22 call 2017a20 <__errno> <== NOT EXECUTED 201719c: 01 00 00 00 nop <== NOT EXECUTED 20171a0: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 20171a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20171a8: 10 bf ff fa b 2017190 <== NOT EXECUTED 20171ac: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 20171b0: 40 00 02 1c call 2017a20 <__errno> <== NOT EXECUTED 20171b4: 01 00 00 00 nop <== NOT EXECUTED 20171b8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20171bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20171c0: 10 bf ff f4 b 2017190 <== NOT EXECUTED 20171c4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02003b20 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2003b20: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2003b24: c6 06 60 30 ld [ %i1 + 0x30 ], %g3 <== NOT EXECUTED 2003b28: 80 88 e0 20 btst 0x20, %g3 <== NOT EXECUTED 2003b2c: 02 80 00 03 be 2003b38 <== NOT EXECUTED 2003b30: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2003b34: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2003b38: 80 88 e2 00 btst 0x200, %g3 <== NOT EXECUTED 2003b3c: 02 80 00 0b be 2003b68 <== NOT EXECUTED 2003b40: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED c = tolower (c); 2003b44: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 2003b48: c4 00 61 b0 ld [ %g1 + 0x1b0 ], %g2 ! 20169b0 <__ctype_ptr> <== NOT EXECUTED 2003b4c: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003b50: c2 08 80 08 ldub [ %g2 + %o0 ], %g1 <== NOT EXECUTED 2003b54: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2003b58: 32 80 00 02 bne,a 2003b60 <== NOT EXECUTED 2003b5c: 90 02 20 20 add %o0, 0x20, %o0 <== NOT EXECUTED 2003b60: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED if (c == '\r') { 2003b64: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED 2003b68: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 2003b6c: 02 80 00 41 be 2003c70 <== NOT EXECUTED 2003b70: 80 a0 60 0a cmp %g1, 0xa <== 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)) { 2003b74: 02 80 00 14 be 2003bc4 <== NOT EXECUTED 2003b78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2003b7c: 32 80 00 16 bne,a 2003bd4 <== NOT EXECUTED 2003b80: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2003b84: c6 06 60 20 ld [ %i1 + 0x20 ], %g3 <== NOT EXECUTED 2003b88: 05 00 80 5a sethi %hi(0x2016800), %g2 <== NOT EXECUTED 2003b8c: c2 00 a1 54 ld [ %g2 + 0x154 ], %g1 ! 2016954 <== NOT EXECUTED 2003b90: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003b94: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003b98: 16 80 00 09 bge 2003bbc <== NOT EXECUTED 2003b9c: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003ba0: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003ba4: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003ba8: 12 80 00 3b bne 2003c94 <== NOT EXECUTED 2003bac: 84 00 e0 01 add %g3, 1, %g2 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2003bb0: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED 2003bb4: e0 28 40 03 stb %l0, [ %g1 + %g3 ] <== NOT EXECUTED 2003bb8: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2003bbc: 81 c7 e0 08 ret <== NOT EXECUTED 2003bc0: 81 e8 00 00 restore <== 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)) { 2003bc4: 80 88 e0 40 btst 0x40, %g3 <== NOT EXECUTED 2003bc8: 32 80 00 02 bne,a 2003bd0 <== NOT EXECUTED 2003bcc: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2003bd0: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 2003bd4: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 2003bd8: 22 bf ff ec be,a 2003b88 <== NOT EXECUTED 2003bdc: c6 06 60 20 ld [ %i1 + 0x20 ], %g3 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2003be0: c2 0e 60 43 ldub [ %i1 + 0x43 ], %g1 <== NOT EXECUTED 2003be4: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003be8: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2003bec: 22 80 00 34 be,a 2003cbc <== NOT EXECUTED 2003bf0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2003bf4: c2 0e 60 44 ldub [ %i1 + 0x44 ], %g1 <== NOT EXECUTED 2003bf8: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2003bfc: 22 80 00 41 be,a 2003d00 <== NOT EXECUTED 2003c00: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2003c04: c2 0e 60 45 ldub [ %i1 + 0x45 ], %g1 <== NOT EXECUTED 2003c08: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2003c0c: 02 bf ff ec be 2003bbc <== NOT EXECUTED 2003c10: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 2003c14: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 2003c18: 02 80 00 2e be 2003cd0 <== NOT EXECUTED 2003c1c: 80 88 a0 48 btst 0x48, %g2 <== 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]) 2003c20: c2 0e 60 4c ldub [ %i1 + 0x4c ], %g1 <== NOT EXECUTED 2003c24: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2003c28: 02 80 00 07 be 2003c44 <== NOT EXECUTED 2003c2c: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003c30: c2 0e 60 51 ldub [ %i1 + 0x51 ], %g1 <== NOT EXECUTED 2003c34: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 2003c38: 32 bf ff d4 bne,a 2003b88 <== NOT EXECUTED 2003c3c: c6 06 60 20 ld [ %i1 + 0x20 ], %g3 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 2003c40: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003c44: 22 80 00 05 be,a 2003c58 <== NOT EXECUTED 2003c48: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003c4c: 7f ff ff 0d call 2003880 <== NOT EXECUTED 2003c50: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003c54: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003c58: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2003c5c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 2003c60: e0 28 80 01 stb %l0, [ %g2 + %g1 ] <== NOT EXECUTED 2003c64: c6 26 60 20 st %g3, [ %i1 + 0x20 ] <== NOT EXECUTED 2003c68: 81 c7 e0 08 ret <== NOT EXECUTED 2003c6c: 91 e8 20 01 restore %g0, 1, %o0 <== 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) 2003c70: 80 88 e0 80 btst 0x80, %g3 <== NOT EXECUTED 2003c74: 02 80 00 04 be 2003c84 <== NOT EXECUTED 2003c78: 80 88 e1 00 btst 0x100, %g3 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 2003c7c: 81 c7 e0 08 ret <== NOT EXECUTED 2003c80: 91 e8 20 00 restore %g0, 0, %o0 <== 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) 2003c84: 32 bf ff d3 bne,a 2003bd0 <== NOT EXECUTED 2003c88: a0 10 20 0a mov 0xa, %l0 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2003c8c: 10 bf ff d2 b 2003bd4 <== NOT EXECUTED 2003c90: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2003c94: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003c98: 7f ff fe fa call 2003880 <== NOT EXECUTED 2003c9c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003ca0: c6 06 60 20 ld [ %i1 + 0x20 ], %g3 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003ca4: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED 2003ca8: 84 00 e0 01 add %g3, 1, %g2 <== NOT EXECUTED 2003cac: e0 28 40 03 stb %l0, [ %g1 + %g3 ] <== NOT EXECUTED 2003cb0: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2003cb4: 81 c7 e0 08 ret <== NOT EXECUTED 2003cb8: 91 e8 20 00 restore %g0, 0, %o0 <== 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); 2003cbc: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003cc0: 7f ff ff 10 call 2003900 <== NOT EXECUTED 2003cc4: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003cc8: 81 c7 e0 08 ret <== NOT EXECUTED 2003ccc: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 2003cd0: 22 80 00 05 be,a 2003ce4 <== NOT EXECUTED 2003cd4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003cd8: 7f ff fe ea call 2003880 <== NOT EXECUTED 2003cdc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003ce0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003ce4: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003ce8: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED 2003cec: c4 28 c0 01 stb %g2, [ %g3 + %g1 ] <== NOT EXECUTED 2003cf0: 82 00 60 01 inc %g1 <== NOT EXECUTED 2003cf4: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED 2003cf8: 81 c7 e0 08 ret <== NOT EXECUTED 2003cfc: 91 e8 20 01 restore %g0, 1, %o0 <== 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); 2003d00: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003d04: 7f ff fe ff call 2003900 <== NOT EXECUTED 2003d08: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003d0c: 81 c7 e0 08 ret <== NOT EXECUTED 2003d10: 81 e8 00 00 restore <== NOT EXECUTED 02021ac0 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 2021ac0: 81 c3 e0 08 retl <== NOT EXECUTED 2021ac4: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 02014868 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 2014868: 9d e3 bf 98 save %sp, -104, %sp /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) 201486c: 03 00 80 5d sethi %hi(0x2017400), %g1 2014870: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 ! 2017444 <_System_state_Current> 2014874: 80 a0 a0 03 cmp %g2, 3 2014878: 02 80 00 04 be 2014888 201487c: 21 00 80 5a sethi %hi(0x2016800), %l0 2014880: 81 c7 e0 08 ret <== NOT EXECUTED 2014884: 81 e8 00 00 restore <== NOT EXECUTED /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != &libc_global_reent) { 2014888: c4 04 21 b8 ld [ %l0 + 0x1b8 ], %g2 201488c: 03 00 80 59 sethi %hi(0x2016400), %g1 2014890: b0 10 61 50 or %g1, 0x150, %i0 ! 2016550 2014894: 80 a0 80 18 cmp %g2, %i0 2014898: 02 80 00 06 be 20148b0 201489c: c2 04 21 b8 ld [ %l0 + 0x1b8 ], %g1 _wrapup_reent(&libc_global_reent); 20148a0: 40 00 01 ce call 2014fd8 <_wrapup_reent> 20148a4: 90 10 00 18 mov %i0, %o0 /* 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; 20148a8: f0 24 21 b8 st %i0, [ %l0 + 0x1b8 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 20148ac: c2 04 21 b8 ld [ %l0 + 0x1b8 ], %g1 20148b0: 7f ff e1 8a call 200ced8 20148b4: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 20148b8: c2 04 21 b8 ld [ %l0 + 0x1b8 ], %g1 20148bc: 7f ff e1 87 call 200ced8 20148c0: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 20148c4: c2 04 21 b8 ld [ %l0 + 0x1b8 ], %g1 20148c8: f0 00 60 0c ld [ %g1 + 0xc ], %i0 20148cc: 7f ff e1 83 call 200ced8 20148d0: 81 e8 00 00 restore 20148d4: 01 00 00 00 nop 02021940 : int link( const char *existing, const char *new ) { 2021940: 9d e3 bf 70 save %sp, -144, %sp <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 2021944: 92 10 20 00 clr %o1 <== NOT EXECUTED 2021948: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202194c: a0 07 bf e4 add %fp, -28, %l0 <== NOT EXECUTED 2021950: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2021954: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2021958: 7f ff 8b 29 call 20045fc <== NOT EXECUTED 202195c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( result != 0 ) 2021960: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021964: 12 80 00 84 bne 2021b74 <== NOT EXECUTED 2021968: 01 00 00 00 nop <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 202196c: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 2021970: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2021974: 02 80 00 06 be 202198c <== NOT EXECUTED 2021978: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 202197c: 02 80 00 04 be 202198c <== NOT EXECUTED 2021980: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021984: 12 80 00 3a bne 2021a6c <== NOT EXECUTED 2021988: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 202198c: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 2021990: c6 00 61 8c ld [ %g1 + 0x18c ], %g3 ! 2048d8c <== NOT EXECUTED 2021994: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED 2021998: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 <== NOT EXECUTED 202199c: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED 20219a0: c4 00 e0 18 ld [ %g3 + 0x18 ], %g2 <== NOT EXECUTED 20219a4: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 20219a8: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 20219ac: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED 20219b0: c4 00 e0 20 ld [ %g3 + 0x20 ], %g2 <== NOT EXECUTED 20219b4: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 20219b8: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 20219bc: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 20219c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20219c4: 02 80 00 5e be 2021b3c <== NOT EXECUTED 20219c8: 90 06 40 04 add %i1, %g4, %o0 <== 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 ); 20219cc: a2 07 bf d4 add %fp, -44, %l1 <== NOT EXECUTED 20219d0: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 20219d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20219d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( result != 0 ) { 20219dc: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED 20219e0: 12 80 00 48 bne 2021b00 <== NOT EXECUTED 20219e4: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== 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 ) { 20219e8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20219ec: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20219f0: 12 80 00 2a bne 2021a98 <== NOT EXECUTED 20219f4: c4 07 bf dc ld [ %fp + -36 ], %g2 <== 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 ) { 20219f8: c2 00 a0 08 ld [ %g2 + 8 ], %g1 <== NOT EXECUTED 20219fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021a00: 02 80 00 5f be 2021b7c <== NOT EXECUTED 2021a04: d4 07 bf f4 ld [ %fp + -12 ], %o2 <== 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 ); 2021a08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2021a0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021a10: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 2021a14: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2021a18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021a1c: 02 80 00 08 be 2021a3c <== NOT EXECUTED 2021a20: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2021a24: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021a28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021a2c: 22 80 00 05 be,a 2021a40 <== NOT EXECUTED 2021a30: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2021a34: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021a38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2021a3c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2021a40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021a44: 02 80 00 4c be 2021b74 <== NOT EXECUTED 2021a48: 01 00 00 00 nop <== NOT EXECUTED 2021a4c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021a50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021a54: 02 80 00 48 be 2021b74 <== NOT EXECUTED 2021a58: 01 00 00 00 nop <== NOT EXECUTED 2021a5c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021a60: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return result; } 2021a64: 81 c7 e0 08 ret <== NOT EXECUTED 2021a68: 81 e8 00 00 restore <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 2021a6c: c6 00 61 8c ld [ %g1 + 0x18c ], %g3 <== NOT EXECUTED 2021a70: 88 10 20 00 clr %g4 <== NOT EXECUTED 2021a74: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 2021a78: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED 2021a7c: c4 00 e0 08 ld [ %g3 + 8 ], %g2 <== NOT EXECUTED 2021a80: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 2021a84: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 2021a88: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED 2021a8c: c4 00 e0 10 ld [ %g3 + 0x10 ], %g2 <== NOT EXECUTED 2021a90: 10 bf ff ca b 20219b8 <== NOT EXECUTED 2021a94: c4 27 bf e0 st %g2, [ %fp + -32 ] <== 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 ); 2021a98: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2021a9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021aa0: 22 80 00 09 be,a 2021ac4 <== NOT EXECUTED 2021aa4: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2021aa8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021aac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021ab0: 22 80 00 05 be,a 2021ac4 <== NOT EXECUTED 2021ab4: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2021ab8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021abc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2021ac0: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2021ac4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021ac8: 02 80 00 08 be 2021ae8 <== NOT EXECUTED 2021acc: 01 00 00 00 nop <== NOT EXECUTED 2021ad0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021ad4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021ad8: 02 80 00 04 be 2021ae8 <== NOT EXECUTED 2021adc: 01 00 00 00 nop <== NOT EXECUTED 2021ae0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021ae4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 2021ae8: 40 00 3c 43 call 2030bf4 <__errno> <== NOT EXECUTED 2021aec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021af0: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED 2021af4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2021af8: 81 c7 e0 08 ret <== NOT EXECUTED 2021afc: 81 e8 00 00 restore <== 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 ); 2021b00: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2021b04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021b08: 02 80 00 08 be 2021b28 <== NOT EXECUTED 2021b0c: 01 00 00 00 nop <== NOT EXECUTED 2021b10: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021b14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021b18: 02 80 00 04 be 2021b28 <== NOT EXECUTED 2021b1c: 01 00 00 00 nop <== NOT EXECUTED 2021b20: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021b24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2021b28: 40 00 3c 33 call 2030bf4 <__errno> <== NOT EXECUTED 2021b2c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021b30: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED 2021b34: 81 c7 e0 08 ret <== NOT EXECUTED 2021b38: 81 e8 00 00 restore <== NOT EXECUTED */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 2021b3c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2021b40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021b44: 02 80 00 08 be 2021b64 <== NOT EXECUTED 2021b48: 01 00 00 00 nop <== NOT EXECUTED 2021b4c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021b50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021b54: 02 80 00 04 be 2021b64 <== NOT EXECUTED 2021b58: 01 00 00 00 nop <== NOT EXECUTED 2021b5c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021b60: 90 10 00 10 mov %l0, %o0 <== 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 ); 2021b64: 40 00 3c 24 call 2030bf4 <__errno> <== NOT EXECUTED 2021b68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021b6c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2021b70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2021b74: 81 c7 e0 08 ret <== NOT EXECUTED 2021b78: 81 e8 00 00 restore <== 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 ); 2021b7c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2021b80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021b84: 02 80 00 0a be 2021bac <== NOT EXECUTED 2021b88: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2021b8c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021b90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021b94: 02 80 00 06 be 2021bac <== NOT EXECUTED 2021b98: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2021b9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021ba0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2021ba4: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2021ba8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2021bac: 02 bf ff ee be 2021b64 <== NOT EXECUTED 2021bb0: 01 00 00 00 nop <== NOT EXECUTED 2021bb4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2021bb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021bbc: 02 bf ff ea be 2021b64 <== NOT EXECUTED 2021bc0: 01 00 00 00 nop <== NOT EXECUTED 2021bc4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021bc8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2021bcc: 30 bf ff e6 b,a 2021b64 <== NOT EXECUTED 02014730 : off_t lseek( int fd, off_t offset, int whence ) { 2014730: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2014734: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2014738: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 ! 2016448 <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 201473c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2014740: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 2014744: 1a 80 00 31 bcc 2014808 <== NOT EXECUTED 2014748: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 201474c: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 2014750: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 ! 20170cc <== NOT EXECUTED 2014754: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 2014758: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 201475c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2014760: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 2014764: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 2014768: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 201476c: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED 2014770: 80 88 a1 00 btst 0x100, %g2 <== NOT EXECUTED 2014774: 02 80 00 25 be 2014808 <== NOT EXECUTED 2014778: 01 00 00 00 nop <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 201477c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 <== NOT EXECUTED 2014780: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED 2014784: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2014788: 02 80 00 26 be 2014820 <== NOT EXECUTED 201478c: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 2014790: 02 80 00 1b be 20147fc <== NOT EXECUTED 2014794: f4 06 20 08 ld [ %i0 + 8 ], %i2 <== NOT EXECUTED 2014798: 80 a2 a0 02 cmp %o2, 2 <== NOT EXECUTED 201479c: 02 80 00 0d be 20147d0 <== NOT EXECUTED 20147a0: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 20147a4: 12 80 00 0f bne 20147e0 <== NOT EXECUTED 20147a8: 01 00 00 00 nop <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 20147ac: f2 26 20 08 st %i1, [ %i0 + 8 ] <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 20147b0: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED 20147b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20147b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( status == (off_t) -1 ) 20147bc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20147c0: 22 80 00 02 be,a 20147c8 <== NOT EXECUTED 20147c4: f4 26 20 08 st %i2, [ %i0 + 8 ] <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 20147c8: 81 c7 e0 08 ret <== NOT EXECUTED 20147cc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 20147d0: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 20147d4: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED 20147d8: 10 bf ff f6 b 20147b0 <== NOT EXECUTED 20147dc: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 20147e0: 7f ff e1 66 call 200cd78 <__errno> <== NOT EXECUTED 20147e4: 01 00 00 00 nop <== NOT EXECUTED 20147e8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20147ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20147f0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 20147f4: 81 c7 e0 08 ret <== NOT EXECUTED 20147f8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 20147fc: 82 06 40 1a add %i1, %i2, %g1 <== NOT EXECUTED 2014800: 10 bf ff ec b 20147b0 <== NOT EXECUTED 2014804: c2 26 20 08 st %g1, [ %i0 + 8 ] <== 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); 2014808: 7f ff e1 5c call 200cd78 <__errno> <== NOT EXECUTED 201480c: 01 00 00 00 nop <== NOT EXECUTED 2014810: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2014814: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014818: 10 bf ff ec b 20147c8 <== NOT EXECUTED 201481c: 90 10 3f ff mov -1, %o0 <== 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 ); 2014820: 7f ff e1 56 call 200cd78 <__errno> <== NOT EXECUTED 2014824: 01 00 00 00 nop <== NOT EXECUTED 2014828: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201482c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014830: 10 bf ff e6 b 20147c8 <== NOT EXECUTED 2014834: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02021d0c : int _STAT_NAME( const char *path, struct stat *buf ) { 2021d0c: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2021d10: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2021d14: 02 80 00 32 be 2021ddc <== NOT EXECUTED 2021d18: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 2021d1c: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2021d20: 92 10 20 00 clr %o1 <== NOT EXECUTED 2021d24: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2021d28: 96 10 20 00 clr %o3 <== NOT EXECUTED 2021d2c: 7f ff 8a 34 call 20045fc <== NOT EXECUTED 2021d30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( status != 0 ) 2021d34: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021d38: 12 80 00 27 bne 2021dd4 <== NOT EXECUTED 2021d3c: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 2021d40: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 2021d44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021d48: 02 80 00 2b be 2021df4 <== NOT EXECUTED 2021d4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 2021d50: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 2021d54: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 2021d58: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 2021d5c: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 2021d60: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 2021d64: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 2021d68: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 2021d6c: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 2021d70: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 2021d74: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 2021d78: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 2021d7c: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 2021d80: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 2021d84: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED 2021d88: c0 26 60 38 clr [ %i1 + 0x38 ] <== NOT EXECUTED 2021d8c: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED 2021d90: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED 2021d94: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED 2021d98: c0 26 60 48 clr [ %i1 + 0x48 ] <== NOT EXECUTED 2021d9c: c0 26 60 4c clr [ %i1 + 0x4c ] <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 2021da0: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 2021da4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021da8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2021dac: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2021db0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021db4: 02 80 00 08 be 2021dd4 <== NOT EXECUTED 2021db8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2021dbc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021dc0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021dc4: 02 80 00 1a be 2021e2c <== NOT EXECUTED 2021dc8: 01 00 00 00 nop <== NOT EXECUTED 2021dcc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021dd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2021dd4: 81 c7 e0 08 ret <== NOT EXECUTED 2021dd8: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 2021ddc: 40 00 3b 86 call 2030bf4 <__errno> <== NOT EXECUTED 2021de0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021de4: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2021de8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2021dec: 81 c7 e0 08 ret <== NOT EXECUTED 2021df0: 81 e8 00 00 restore <== 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 ); 2021df4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2021df8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021dfc: 02 80 00 08 be 2021e1c <== NOT EXECUTED 2021e00: 01 00 00 00 nop <== NOT EXECUTED 2021e04: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2021e08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021e0c: 02 80 00 04 be 2021e1c <== NOT EXECUTED 2021e10: 01 00 00 00 nop <== NOT EXECUTED 2021e14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2021e18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2021e1c: 40 00 3b 76 call 2030bf4 <__errno> <== NOT EXECUTED 2021e20: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2021e24: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2021e28: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2021e2c: 81 c7 e0 08 ret <== NOT EXECUTED 2021e30: 81 e8 00 00 restore <== NOT EXECUTED 0200ae00 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200ae00: 9d e3 bf 98 save %sp, -104, %sp 200ae04: 05 00 80 5c sethi %hi(0x2017000), %g2 200ae08: 84 10 a1 30 or %g2, 0x130, %g2 ! 2017130 200ae0c: c2 00 a0 04 ld [ %g2 + 4 ], %g1 200ae10: a2 10 00 18 mov %i0, %l1 200ae14: 82 00 60 01 inc %g1 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200ae18: 7f ff ff ed call 200adcc 200ae1c: c2 20 a0 04 st %g1, [ %g2 + 4 ] /* * Validate the parameters */ if ( !size ) 200ae20: 80 a6 20 00 cmp %i0, 0 200ae24: 02 80 00 23 be 200aeb0 200ae28: 03 00 80 5d sethi %hi(0x2017400), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200ae2c: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 ! 2017444 <_System_state_Current> 200ae30: 80 a0 a0 03 cmp %g2, 3 200ae34: 02 80 00 1a be 200ae9c 200ae38: 11 00 80 5c sethi %hi(0x2017000), %o0 * 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 ); 200ae3c: 92 10 00 11 mov %l1, %o1 200ae40: 40 00 03 a9 call 200bce4 <_Protected_heap_Allocate> 200ae44: 90 12 20 d8 or %o0, 0xd8, %o0 if ( !return_this ) { 200ae48: b0 92 20 00 orcc %o0, 0, %i0 200ae4c: 02 80 00 1b be 200aeb8 200ae50: a0 10 00 18 mov %i0, %l0 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 200ae54: 03 00 80 5b sethi %hi(0x2016c00), %g1 200ae58: c2 00 62 6c ld [ %g1 + 0x26c ], %g1 ! 2016e6c 200ae5c: 80 a0 60 00 cmp %g1, 0 200ae60: 02 80 00 04 be 200ae70 200ae64: 92 10 00 11 mov %l1, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 200ae68: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ae6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200ae70: 03 00 80 5b sethi %hi(0x2016c00), %g1 200ae74: c2 00 62 64 ld [ %g1 + 0x264 ], %g1 ! 2016e64 200ae78: 80 a0 60 00 cmp %g1, 0 200ae7c: 02 80 00 06 be 200ae94 200ae80: b0 10 00 10 mov %l0, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 200ae84: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200ae88: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED 200ae8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ae90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200ae94: 81 c7 e0 08 ret 200ae98: 81 e8 00 00 restore return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200ae9c: 7f ff ff b2 call 200ad64 200aea0: 01 00 00 00 nop 200aea4: 80 8a 20 ff btst 0xff, %o0 200aea8: 12 bf ff e5 bne 200ae3c 200aeac: 11 00 80 5c sethi %hi(0x2017000), %o0 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 200aeb0: 81 c7 e0 08 ret <== NOT EXECUTED 200aeb4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 200aeb8: 03 00 80 5b sethi %hi(0x2016c00), %g1 <== NOT EXECUTED 200aebc: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 2016e68 <== NOT EXECUTED 200aec0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200aec4: 02 80 00 08 be 200aee4 <== NOT EXECUTED 200aec8: 01 00 00 00 nop <== NOT EXECUTED return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200aecc: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200aed0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200aed4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( !return_this ) { 200aed8: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 200aedc: 12 bf ff df bne 200ae58 <== NOT EXECUTED 200aee0: 03 00 80 5b sethi %hi(0x2016c00), %g1 <== NOT EXECUTED errno = ENOMEM; 200aee4: 40 00 07 a5 call 200cd78 <__errno> <== NOT EXECUTED 200aee8: 01 00 00 00 nop <== NOT EXECUTED 200aeec: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200aef0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200aef4: 81 c7 e0 08 ret <== NOT EXECUTED 200aef8: 81 e8 00 00 restore <== NOT EXECUTED 0200adb0 : } void malloc_deferred_free( void *pointer ) { 200adb0: 92 10 00 08 mov %o0, %o1 <== 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 ); 200adb4: 11 00 80 5d sethi %hi(0x2017400), %o0 <== NOT EXECUTED 200adb8: 90 12 21 5c or %o0, 0x15c, %o0 ! 201755c <== NOT EXECUTED 200adbc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200adc0: 7f ff ed 38 call 20062a0 <_Chain_Append> <== NOT EXECUTED 200adc4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200adc8: 01 00 00 00 nop 0200adcc : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 200adcc: 9d e3 bf 98 save %sp, -104, %sp 200add0: 03 00 80 5d sethi %hi(0x2017400), %g1 */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 200add4: 10 80 00 04 b 200ade4 200add8: a0 10 61 5c or %g1, 0x15c, %l0 ! 201755c /* * 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); 200addc: 7f ff fe 92 call 200a824 <== NOT EXECUTED 200ade0: 01 00 00 00 nop <== NOT EXECUTED 200ade4: 40 00 02 52 call 200b72c <_Chain_Get> 200ade8: 90 10 00 10 mov %l0, %o0 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) 200adec: 80 a2 20 00 cmp %o0, 0 200adf0: 12 bf ff fb bne 200addc 200adf4: 01 00 00 00 nop free(to_be_freed); } 200adf8: 81 c7 e0 08 ret 200adfc: 81 e8 00 00 restore 0202735c : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 202735c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 2027360: 03 00 81 28 sethi %hi(0x204a000), %g1 <== NOT EXECUTED 2027364: d2 00 61 fc ld [ %g1 + 0x1fc ], %o1 ! 204a1fc <== NOT EXECUTED 2027368: 7f ff 73 ef call 2004324 <== NOT EXECUTED 202736c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED if ( memory ) 2027370: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027374: 02 80 00 05 be 2027388 <== NOT EXECUTED 2027378: 05 00 81 72 sethi %hi(0x205c800), %g2 <== NOT EXECUTED memfile_blocks_allocated++; 202737c: c2 00 a3 30 ld [ %g2 + 0x330 ], %g1 ! 205cb30 <== NOT EXECUTED 2027380: 82 00 60 01 inc %g1 <== NOT EXECUTED 2027384: c2 20 a3 30 st %g1, [ %g2 + 0x330 ] <== NOT EXECUTED return memory; } 2027388: 81 c7 e0 08 ret <== NOT EXECUTED 202738c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020278b8 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 20278b8: 9d e3 bf 98 save %sp, -104, %sp <== 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) ) { 20278bc: 7f ff 74 4f call 20049f8 <== NOT EXECUTED 20278c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20278c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20278c8: 12 80 00 13 bne 2027914 <== NOT EXECUTED 20278cc: 01 00 00 00 nop <== NOT EXECUTED 20278d0: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 20278d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20278d8: 12 80 00 0f bne 2027914 <== NOT EXECUTED 20278dc: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 20278e0: c2 00 61 8c ld [ %g1 + 0x18c ], %g1 ! 2048d8c <== NOT EXECUTED 20278e4: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 20278e8: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED 20278ec: 22 80 00 02 be,a 20278f4 <== NOT EXECUTED 20278f0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 20278f4: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 20278f8: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 20278fc: 02 80 00 04 be 202790c <== NOT EXECUTED 2027900: 01 00 00 00 nop <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 2027904: 7f ff ff 7d call 20276f8 <== NOT EXECUTED 2027908: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED free( the_jnode ); 202790c: 7f ff 73 9a call 2004774 <== NOT EXECUTED 2027910: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2027914: 81 c7 e0 08 ret <== NOT EXECUTED 2027918: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02027970 : */ int memfile_close( rtems_libio_t *iop ) { 2027970: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (iop->flags & LIBIO_FLAGS_APPEND) 2027974: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2027978: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 202797c: 02 80 00 04 be 202798c <== NOT EXECUTED 2027980: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 2027984: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 2027988: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 202798c: 7f ff ff cb call 20278b8 <== NOT EXECUTED 2027990: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 2027994: 81 c7 e0 08 ret <== NOT EXECUTED 2027998: 81 e8 00 00 restore <== NOT EXECUTED 02027338 : */ void memfile_free_block( void *memory ) { 2027338: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 202733c: 7f ff 75 0e call 2004774 <== NOT EXECUTED 2027340: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED memfile_blocks_allocated--; 2027344: 05 00 81 72 sethi %hi(0x205c800), %g2 <== NOT EXECUTED 2027348: c2 00 a3 30 ld [ %g2 + 0x330 ], %g1 ! 205cb30 <== NOT EXECUTED 202734c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2027350: c2 20 a3 30 st %g1, [ %g2 + 0x330 ] <== NOT EXECUTED } 2027354: 81 c7 e0 08 ret <== NOT EXECUTED 2027358: 81 e8 00 00 restore <== NOT EXECUTED 02027674 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 2027674: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 2027678: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 202767c: 02 80 00 16 be 20276d4 <== NOT EXECUTED 2027680: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 2027688: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 202768c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2027690: a2 10 20 00 clr %l1 <== NOT EXECUTED if ( b[i] ) { 2027694: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 2027698: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202769c: 02 80 00 05 be 20276b0 <== NOT EXECUTED 20276a0: a2 04 60 01 inc %l1 <== NOT EXECUTED memfile_free_block( b[i] ); 20276a4: 7f ff ff 25 call 2027338 <== NOT EXECUTED 20276a8: 01 00 00 00 nop <== NOT EXECUTED b[i] = 0; 20276ac: c0 24 00 00 clr [ %l0 ] <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 20276b8: a0 04 20 04 add %l0, 4, %l0 <== NOT EXECUTED 20276bc: d0 06 00 00 ld [ %i0 ], %o0 <== 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 ); 20276c0: 7f ff ff 1e call 2027338 <== NOT EXECUTED 20276c4: 01 00 00 00 nop <== NOT EXECUTED *block_table = 0; 20276c8: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED } 20276cc: 81 c7 e0 08 ret <== NOT EXECUTED 20276d0: 81 e8 00 00 restore <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 20276d4: 11 00 81 16 sethi %hi(0x2045800), %o0 <== NOT EXECUTED 20276d8: 15 00 81 16 sethi %hi(0x2045800), %o2 <== NOT EXECUTED 20276dc: 17 00 81 16 sethi %hi(0x2045800), %o3 <== NOT EXECUTED 20276e0: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 20276e4: 94 12 a2 00 or %o2, 0x200, %o2 <== NOT EXECUTED 20276e8: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 20276ec: 7f ff 72 f6 call 20042c4 <__assert_func> <== NOT EXECUTED 20276f0: 92 10 21 b1 mov 0x1b1, %o1 <== NOT EXECUTED 20276f4: 01 00 00 00 nop 02027b98 : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 2027b98: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2027b9c: e0 06 20 2c ld [ %i0 + 0x2c ], %l0 <== 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 ) 2027ba0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2027ba4: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED 2027ba8: 06 80 00 0c bl 2027bd8 <== NOT EXECUTED 2027bac: 92 10 00 19 mov %i1, %o1 <== 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; 2027bb0: f2 24 20 4c st %i1, [ %l0 + 0x4c ] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2027bb4: f2 26 20 04 st %i1, [ %i0 + 4 ] <== NOT EXECUTED IMFS_update_atime( the_jnode ); 2027bb8: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 2027bbc: 7f ff 73 19 call 2004820 <== NOT EXECUTED 2027bc0: 92 10 20 00 clr %o1 <== NOT EXECUTED 2027bc4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2027bc8: 90 10 20 00 clr %o0 <== NOT EXECUTED 2027bcc: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return 0; } 2027bd0: 81 c7 e0 08 ret <== NOT EXECUTED 2027bd4: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ); 2027bd8: 7f ff ff 9b call 2027a44 <== NOT EXECUTED 2027bdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 2027be0: 81 c7 e0 08 ret <== NOT EXECUTED 2027be4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02027330 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 2027330: 81 c3 e0 08 retl <== NOT EXECUTED 2027334: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 02027be8 : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 2027be8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2027bec: e0 06 20 2c ld [ %i0 + 0x2c ], %l0 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 2027bf0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2027bf4: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2027bf8: 12 80 00 0a bne 2027c20 <== NOT EXECUTED 2027bfc: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 2027c00: d0 04 20 4c ld [ %l0 + 0x4c ], %o0 <== NOT EXECUTED 2027c04: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 2027c08: 80 a6 00 08 cmp %i0, %o0 <== NOT EXECUTED 2027c0c: 04 80 00 14 ble 2027c5c <== NOT EXECUTED 2027c10: 01 00 00 00 nop <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 2027c14: d0 24 60 08 st %o0, [ %l1 + 8 ] <== NOT EXECUTED 2027c18: 81 c7 e0 08 ret <== NOT EXECUTED 2027c1c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 2027c20: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 2027c24: 7f ff ff 88 call 2027a44 <== NOT EXECUTED 2027c28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2027c2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2027c30: 12 80 00 07 bne 2027c4c <== NOT EXECUTED 2027c34: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 2027c38: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2027c3c: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 2027c40: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED } return iop->offset; } 2027c44: 81 c7 e0 08 ret <== NOT EXECUTED 2027c48: 81 e8 00 00 restore <== 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 ); 2027c4c: 40 00 23 ea call 2030bf4 <__errno> <== NOT EXECUTED 2027c50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027c54: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2027c58: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2027c5c: 81 c7 e0 08 ret <== NOT EXECUTED 2027c60: 81 e8 00 00 restore <== NOT EXECUTED 02027f24 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2027f24: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 2027f28: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2027f2c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 2027f30: 80 88 a2 04 btst 0x204, %g2 <== NOT EXECUTED 2027f34: 02 80 00 06 be 2027f4c <== NOT EXECUTED 2027f38: e0 06 20 2c ld [ %i0 + 0x2c ], %l0 <== NOT EXECUTED 2027f3c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2027f40: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2027f44: 22 80 00 0b be,a 2027f70 <== NOT EXECUTED 2027f48: d6 04 20 4c ld [ %l0 + 0x4c ], %o3 <== 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) 2027f4c: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 2027f50: 02 80 00 04 be 2027f60 <== NOT EXECUTED 2027f54: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 2027f58: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2027f5c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2027f60: b0 10 20 00 clr %i0 <== NOT EXECUTED 2027f64: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED return 0; } 2027f68: 81 c7 e0 08 ret <== NOT EXECUTED 2027f6c: 81 e8 00 00 restore <== NOT EXECUTED * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; 2027f70: d4 04 20 50 ld [ %l0 + 0x50 ], %o2 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 2027f74: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 2027f78: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 2027f7c: c0 24 20 4c clr [ %l0 + 0x4c ] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; 2027f80: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 2027f84: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 2027f88: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED 2027f8c: 12 80 00 08 bne 2027fac <== NOT EXECUTED 2027f90: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED 2027f94: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 2027f98: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 2027f9c: 02 bf ff f1 be 2027f60 <== NOT EXECUTED 2027fa0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 2027fa4: 10 bf ff ee b 2027f5c <== NOT EXECUTED 2027fa8: c2 24 60 08 st %g1, [ %l1 + 8 ] <== 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) 2027fac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2027fb0: 92 10 20 00 clr %o1 <== NOT EXECUTED 2027fb4: 7f ff ff 2c call 2027c64 <== NOT EXECUTED 2027fb8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027fbc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2027fc0: 02 bf ff ea be 2027f68 <== NOT EXECUTED 2027fc4: 01 00 00 00 nop <== NOT EXECUTED 2027fc8: 10 bf ff f4 b 2027f98 <== NOT EXECUTED 2027fcc: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED 020282a0 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 20282a0: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 20282a4: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 20282a8: d0 02 20 2c ld [ %o0 + 0x2c ], %o0 <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 20282ac: 96 10 00 0a mov %o2, %o3 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 20282b0: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 20282b4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20282b8: 7f ff ff 46 call 2027fd0 <== NOT EXECUTED 20282bc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20282c0: 01 00 00 00 nop <== NOT EXECUTED 0202791c : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 202791c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2027920: f0 06 00 00 ld [ %i0 ], %i0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2027924: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 2027928: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202792c: 22 80 00 06 be,a 2027944 <== NOT EXECUTED 2027930: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2027934: 7f ff f1 2e call 2023dec <_Chain_Extract> <== NOT EXECUTED 2027938: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 202793c: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2027940: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 2027944: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2027948: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 202794c: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 2027950: 7f ff 73 b4 call 2004820 <== NOT EXECUTED 2027954: c2 36 20 30 sth %g1, [ %i0 + 0x30 ] <== NOT EXECUTED 2027958: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 202795c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2027960: 7f ff ff d6 call 20278b8 <== NOT EXECUTED 2027964: c2 26 20 44 st %g1, [ %i0 + 0x44 ] <== NOT EXECUTED } 2027968: 81 c7 e0 08 ret <== NOT EXECUTED 202796c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02027ef4 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2027ef4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 2027ef8: e2 06 20 2c ld [ %i0 + 0x2c ], %l1 <== NOT EXECUTED status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); 2027efc: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 2027f00: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 2027f04: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 2027f08: 7f ff ff 57 call 2027c64 <== NOT EXECUTED 2027f0c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2027f10: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 <== NOT EXECUTED ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2027f14: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); iop->size = the_jnode->info.file.size; 2027f18: c2 24 20 04 st %g1, [ %l0 + 4 ] <== NOT EXECUTED return status; } 2027f1c: 81 c7 e0 08 ret <== NOT EXECUTED 2027f20: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200988c : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 200988c: 13 00 80 56 sethi %hi(0x2015800), %o1 2009890: 15 00 80 5b sethi %hi(0x2016c00), %o2 2009894: 92 12 61 90 or %o1, 0x190, %o1 2009898: 94 12 a3 80 or %o2, 0x380, %o2 200989c: 96 10 00 0a mov %o2, %o3 20098a0: 82 13 c0 00 mov %o7, %g1 20098a4: 40 00 02 85 call 200a2b8 20098a8: 9e 10 40 00 mov %g1, %o7 20098ac: 01 00 00 00 nop <== NOT EXECUTED 02021f50 : int mkfifo( const char *path, mode_t mode ) { return mknod( path, mode | S_IFIFO, 0LL ); 2021f50: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED 2021f54: 94 10 20 00 clr %o2 <== NOT EXECUTED 2021f58: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED 2021f5c: 96 10 20 00 clr %o3 <== NOT EXECUTED 2021f60: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED 2021f64: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2021f68: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2021f6c: 7f ff 8c 26 call 2005004 <== NOT EXECUTED 2021f70: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2021f74: 01 00 00 00 nop 02002324 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 2002324: 9d e3 bf 80 save %sp, -128, %sp 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) ) ) 2002328: 03 00 00 3c sethi %hi(0xf000), %g1 200232c: b3 2e 60 10 sll %i1, 0x10, %i1 2002330: b3 36 60 10 srl %i1, 0x10, %i1 2002334: 84 8e 40 01 andcc %i1, %g1, %g2 2002338: 02 80 00 4e be 2002470 200233c: 03 00 00 04 sethi %hi(0x1000), %g1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( S_ISFIFO(mode) ) 2002340: 80 a0 80 01 cmp %g2, %g1 2002344: 02 80 00 18 be 20023a4 2002348: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 200234c: c2 4e 00 00 ldsb [ %i0 ], %g1 2002350: 80 a0 60 2f cmp %g1, 0x2f 2002354: 02 80 00 1a be 20023bc 2002358: 80 a0 60 5c cmp %g1, 0x5c 200235c: 02 80 00 18 be 20023bc <== NOT EXECUTED 2002360: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002364: 02 80 00 17 be 20023c0 <== NOT EXECUTED 2002368: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 200236c: c6 00 61 64 ld [ %g1 + 0x164 ], %g3 ! 2016964 <== NOT EXECUTED 2002370: 88 10 20 00 clr %g4 <== NOT EXECUTED 2002374: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 2002378: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED 200237c: c4 00 e0 08 ld [ %g3 + 8 ], %g2 <== NOT EXECUTED 2002380: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED 2002384: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 2002388: c2 27 bf ec st %g1, [ %fp + -20 ] <== NOT EXECUTED if ( !temp_loc.ops->evalformake_h ) { 200238c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== 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 ); 2002390: c4 00 e0 10 ld [ %g3 + 0x10 ], %g2 <== NOT EXECUTED if ( !temp_loc.ops->evalformake_h ) { 2002394: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2002398: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200239c: 12 80 00 17 bne 20023f8 <== NOT EXECUTED 20023a0: c4 27 bf f0 st %g2, [ %fp + -16 ] <== 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 ); 20023a4: 40 00 2a 75 call 200cd78 <__errno> <== NOT EXECUTED 20023a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20023ac: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20023b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20023b4: 81 c7 e0 08 ret <== NOT EXECUTED 20023b8: 81 e8 00 00 restore <== 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 ); 20023bc: 03 00 80 5a sethi %hi(0x2016800), %g1 20023c0: c6 00 61 64 ld [ %g1 + 0x164 ], %g3 ! 2016964 20023c4: 88 10 20 01 mov 1, %g4 20023c8: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 20023cc: c2 27 bf e4 st %g1, [ %fp + -28 ] 20023d0: c4 00 e0 18 ld [ %g3 + 0x18 ], %g2 20023d4: c4 27 bf e8 st %g2, [ %fp + -24 ] 20023d8: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 20023dc: c2 27 bf ec st %g1, [ %fp + -20 ] if ( !temp_loc.ops->evalformake_h ) { 20023e0: c2 07 bf ec ld [ %fp + -20 ], %g1 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 ); 20023e4: c4 00 e0 20 ld [ %g3 + 0x20 ], %g2 if ( !temp_loc.ops->evalformake_h ) { 20023e8: c2 00 60 04 ld [ %g1 + 4 ], %g1 20023ec: 80 a0 60 00 cmp %g1, 0 20023f0: 02 bf ff ed be 20023a4 20023f4: c4 27 bf f0 st %g2, [ %fp + -16 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 20023f8: 90 06 00 04 add %i0, %g4, %o0 20023fc: a0 07 bf e4 add %fp, -28, %l0 2002400: 94 07 bf f4 add %fp, -12, %o2 2002404: 92 10 00 10 mov %l0, %o1 2002408: 9f c0 40 00 call %g1 200240c: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 2002410: 80 a2 20 00 cmp %o0, 0 2002414: 12 bf ff e8 bne 20023b4 2002418: c2 07 bf ec ld [ %fp + -20 ], %g1 return -1; if ( !temp_loc.ops->mknod_h ) { 200241c: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 2002420: 80 a0 a0 00 cmp %g2, 0 2002424: 02 80 00 19 be 2002488 2002428: d0 07 bf f4 ld [ %fp + -12 ], %o0 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 ); 200242c: 92 10 00 19 mov %i1, %o1 2002430: 94 10 00 1a mov %i2, %o2 2002434: 96 10 00 1b mov %i3, %o3 2002438: 9f c0 80 00 call %g2 200243c: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 2002440: c2 07 bf ec ld [ %fp + -20 ], %g1 2002444: 80 a0 60 00 cmp %g1, 0 2002448: 02 bf ff db be 20023b4 200244c: b0 10 00 08 mov %o0, %i0 2002450: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002454: 80 a0 60 00 cmp %g1, 0 2002458: 02 80 00 0a be 2002480 200245c: 01 00 00 00 nop 2002460: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002464: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2002468: 81 c7 e0 08 ret <== NOT EXECUTED 200246c: 81 e8 00 00 restore <== 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 ); 2002470: 40 00 2a 42 call 200cd78 <__errno> <== NOT EXECUTED 2002474: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002478: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200247c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002480: 81 c7 e0 08 ret 2002484: 81 e8 00 00 restore ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 2002488: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200248c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002490: 02 bf ff c5 be 20023a4 <== NOT EXECUTED 2002494: 01 00 00 00 nop <== NOT EXECUTED 2002498: 9f c0 40 00 call %g1 <== NOT EXECUTED 200249c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20024a0: 30 bf ff c1 b,a 20023a4 <== NOT EXECUTED 0200af44 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 200af44: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 200af48: 80 a6 60 00 cmp %i1, 0 200af4c: 02 80 00 a1 be 200b1d0 200af50: a4 10 00 18 mov %i0, %l2 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 200af54: 80 a6 a0 01 cmp %i2, 1 200af58: 18 80 00 9e bgu 200b1d0 200af5c: 01 00 00 00 nop errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 200af60: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 200af64: 80 a0 60 00 cmp %g1, 0 200af68: 02 80 00 35 be 200b03c 200af6c: 80 a6 e0 00 cmp %i3, 0 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 200af70: 02 80 00 05 be 200af84 200af74: 90 10 20 64 mov 0x64, %o0 size += strlen( device ) + 1; 200af78: 40 00 0c a2 call 200e200 <== NOT EXECUTED 200af7c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 200af80: 90 02 20 65 add %o0, 0x65, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 200af84: 7f ff ff 9f call 200ae00 200af88: 01 00 00 00 nop if ( !temp_mt_entry ) { 200af8c: a0 92 20 00 orcc %o0, 0, %l0 200af90: 02 80 00 96 be 200b1e8 200af94: a2 10 00 10 mov %l0, %l1 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 200af98: f4 24 20 28 st %i2, [ %l0 + 0x28 ] if ( device ) { 200af9c: 80 a6 e0 00 cmp %i3, 0 200afa0: 02 80 00 4b be 200b0cc 200afa4: e0 24 20 24 st %l0, [ %l0 + 0x24 ] temp_mt_entry->dev = 200afa8: 90 04 20 64 add %l0, 0x64, %o0 <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 200afac: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 200afb0: 40 00 0c 72 call 200e178 <== NOT EXECUTED 200afb4: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 200afb8: 80 a7 20 00 cmp %i4, 0 200afbc: 02 80 00 29 be 200b060 200afc0: 90 10 00 1c mov %i4, %o0 if ( rtems_filesystem_evaluate_path( 200afc4: b6 07 bf e8 add %fp, -24, %i3 <== NOT EXECUTED 200afc8: 92 10 20 07 mov 7, %o1 <== NOT EXECUTED 200afcc: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 200afd0: 7f ff dc 14 call 2002020 <== NOT EXECUTED 200afd4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 200afd8: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 200afdc: 02 80 00 1c be 200b04c <== NOT EXECUTED 200afe0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 200afe4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 200afe8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200afec: 02 80 00 6d be 200b1a0 <== NOT EXECUTED 200aff0: 01 00 00 00 nop <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 200aff4: 9f c0 40 00 call %g1 <== NOT EXECUTED 200aff8: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 200affc: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 200b000: 02 80 00 35 be 200b0d4 <== NOT EXECUTED 200b004: 03 00 80 5d sethi %hi(0x2017400), %g1 <== NOT EXECUTED errno = ENOTDIR; 200b008: 40 00 07 5c call 200cd78 <__errno> <== NOT EXECUTED 200b00c: 01 00 00 00 nop <== NOT EXECUTED 200b010: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 200b014: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 200b018: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200b01c: 7f ff fe 02 call 200a824 <== NOT EXECUTED 200b020: b8 10 00 1b mov %i3, %i4 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 200b024: c2 07 20 08 ld [ %i4 + 8 ], %g1 <== NOT EXECUTED 200b028: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b02c: 32 80 00 62 bne,a 200b1b4 <== NOT EXECUTED 200b030: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED return -1; } 200b034: 81 c7 e0 08 ret <== NOT EXECUTED 200b038: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 200b03c: 40 00 07 4f call 200cd78 <__errno> <== NOT EXECUTED 200b040: a2 10 20 00 clr %l1 <== NOT EXECUTED 200b044: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200b048: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 200b04c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200b050: 7f ff fd f5 call 200a824 <== NOT EXECUTED 200b054: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b058: 81 c7 e0 08 ret <== NOT EXECUTED 200b05c: 81 e8 00 00 restore <== 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; 200b060: c0 24 20 18 clr [ %l0 + 0x18 ] temp_mt_entry->mt_fs_root.handlers = NULL; 200b064: c0 24 20 1c clr [ %l0 + 0x1c ] temp_mt_entry->mt_fs_root.ops = NULL; 200b068: c0 24 20 20 clr [ %l0 + 0x20 ] temp_mt_entry->mt_point_node.node_access = NULL; 200b06c: c0 24 20 08 clr [ %l0 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 200b070: c0 24 20 0c clr [ %l0 + 0xc ] temp_mt_entry->mt_point_node.ops = NULL; 200b074: c0 24 20 10 clr [ %l0 + 0x10 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 200b078: c0 24 20 14 clr [ %l0 + 0x14 ] 200b07c: b8 10 20 00 clr %i4 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 200b080: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 200b084: 9f c0 40 00 call %g1 200b088: 90 10 00 10 mov %l0, %o0 200b08c: 80 a2 20 00 cmp %o0, 0 200b090: 02 80 00 35 be 200b164 200b094: c2 07 bf f0 ld [ %fp + -16 ], %g1 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 200b098: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 200b09c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b0a0: 02 80 00 04 be 200b0b0 <== NOT EXECUTED 200b0a4: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 200b0a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 200b0ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 200b0b0: 7f ff fd dd call 200a824 <== NOT EXECUTED 200b0b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( loc_to_free ) 200b0b8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 200b0bc: 32 bf ff db bne,a 200b028 <== NOT EXECUTED 200b0c0: c2 07 20 08 ld [ %i4 + 8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 200b0c4: 81 c7 e0 08 ret <== NOT EXECUTED 200b0c8: 91 e8 3f ff restore %g0, -1, %o0 <== 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; 200b0cc: 10 bf ff bb b 200afb8 200b0d0: c0 24 20 60 clr [ %l0 + 0x60 ] /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 200b0d4: c4 00 61 68 ld [ %g1 + 0x168 ], %g2 <== NOT EXECUTED 200b0d8: 82 10 61 68 or %g1, 0x168, %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200b0dc: 88 00 60 04 add %g1, 4, %g4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 200b0e0: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 200b0e4: 02 80 00 0e be 200b11c <== NOT EXECUTED 200b0e8: c6 07 bf e8 ld [ %fp + -24 ], %g3 <== 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 ) 200b0ec: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 200b0f0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 200b0f4: 32 80 00 07 bne,a 200b110 <== NOT EXECUTED 200b0f8: c4 00 80 00 ld [ %g2 ], %g2 <== NOT EXECUTED 200b0fc: 30 80 00 24 b,a 200b18c <== NOT EXECUTED 200b100: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 200b104: 02 80 00 22 be 200b18c <== NOT EXECUTED 200b108: 01 00 00 00 nop <== 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 ) { 200b10c: c4 00 80 00 ld [ %g2 ], %g2 <== 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 ); 200b110: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 200b114: 32 bf ff fb bne,a 200b100 <== NOT EXECUTED 200b118: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== 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; 200b11c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== 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; 200b120: c6 24 20 08 st %g3, [ %l0 + 8 ] <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = loc.handlers; 200b124: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 200b128: c6 07 bf f4 ld [ %fp + -12 ], %g3 <== 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 ){ 200b12c: c8 00 60 20 ld [ %g1 + 0x20 ], %g4 <== 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; 200b130: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 200b134: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== 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 ){ 200b138: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 200b13c: 02 80 00 19 be 200b1a0 <== NOT EXECUTED 200b140: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 200b144: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200b148: 9f c1 00 00 call %g4 <== NOT EXECUTED 200b14c: b8 10 00 1b mov %i3, %i4 <== NOT EXECUTED 200b150: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b154: 22 bf ff cc be,a 200b084 <== NOT EXECUTED 200b158: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 200b15c: 10 bf ff b0 b 200b01c <== NOT EXECUTED 200b160: 90 10 00 10 mov %l0, %o0 <== 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 ); 200b164: 11 00 80 5d sethi %hi(0x2017400), %o0 200b168: 92 10 00 10 mov %l0, %o1 200b16c: 7f ff ec 4d call 20062a0 <_Chain_Append> 200b170: 90 12 21 68 or %o0, 0x168, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 200b174: 80 a4 a0 00 cmp %l2, 0 200b178: 02 bf ff b8 be 200b058 200b17c: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 200b180: e0 24 80 00 st %l0, [ %l2 ] 200b184: 81 c7 e0 08 ret 200b188: 81 e8 00 00 restore /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 200b18c: 40 00 06 fb call 200cd78 <__errno> <== NOT EXECUTED 200b190: 01 00 00 00 nop <== NOT EXECUTED 200b194: 82 10 20 10 mov 0x10, %g1 ! 10 <== NOT EXECUTED 200b198: 10 bf ff a0 b 200b018 <== NOT EXECUTED 200b19c: c2 22 00 00 st %g1, [ %o0 ] <== 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; 200b1a0: 40 00 06 f6 call 200cd78 <__errno> <== NOT EXECUTED 200b1a4: 01 00 00 00 nop <== NOT EXECUTED 200b1a8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200b1ac: 10 bf ff 9b b 200b018 <== NOT EXECUTED 200b1b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 200b1b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200b1b8: 02 bf ff a8 be 200b058 <== NOT EXECUTED 200b1bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b1c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200b1c4: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED 200b1c8: 81 c7 e0 08 ret <== NOT EXECUTED 200b1cc: 81 e8 00 00 restore <== NOT EXECUTED * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 200b1d0: 40 00 06 ea call 200cd78 <__errno> <== NOT EXECUTED 200b1d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b1d8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200b1dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b1e0: 81 c7 e0 08 ret <== NOT EXECUTED 200b1e4: 81 e8 00 00 restore <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 200b1e8: 40 00 06 e4 call 200cd78 <__errno> <== NOT EXECUTED 200b1ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b1f0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200b1f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b1f8: 81 c7 e0 08 ret <== NOT EXECUTED 200b1fc: 81 e8 00 00 restore <== NOT EXECUTED 0200252c : */ int newlib_free_buffers( FILE *fp ) { 200252c: 9d e3 bf 98 save %sp, -104, %sp switch ( fileno(fp) ) { 2002530: 40 00 2a f3 call 200d0fc 2002534: 90 10 00 18 mov %i0, %o0 2002538: 80 a2 20 02 cmp %o0, 2 200253c: 28 80 00 06 bleu,a 2002554 2002540: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 2002544: 40 00 2a 65 call 200ced8 <== NOT EXECUTED 2002548: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 200254c: 81 c7 e0 08 ret 2002550: 91 e8 20 00 restore %g0, 0, %o0 { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 2002554: 80 88 60 80 btst 0x80, %g1 2002558: 02 bf ff fd be 200254c 200255c: 01 00 00 00 nop free( fp->_bf._base ); 2002560: 40 00 20 b1 call 200a824 2002564: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 fp->_flags &= ~__SMBF; 2002568: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 fp->_bf._base = fp->_p = (unsigned char *) NULL; 200256c: c0 26 20 10 clr [ %i0 + 0x10 ] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002570: 82 08 7f 7f and %g1, -129, %g1 fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002574: c0 26 00 00 clr [ %i0 ] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002578: c2 36 20 0c sth %g1, [ %i0 + 0xc ] break; default: fclose(fp); } return 0; } 200257c: 81 c7 e0 08 ret 2002580: 91 e8 20 00 restore %g0, 0, %o0 020027dc : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 20027dc: 9d e3 bf 98 save %sp, -104, %sp rtems_device_driver status; if ( !initialized ) { 20027e0: 05 00 80 6a sethi %hi(0x201a800), %g2 20027e4: c2 48 a2 5c ldsb [ %g2 + 0x25c ], %g1 ! 201aa5c 20027e8: 80 a0 60 00 cmp %g1, 0 20027ec: 02 80 00 04 be 20027fc 20027f0: 82 10 20 01 mov 1, %g1 NULL_major = major; } return RTEMS_SUCCESSFUL; } 20027f4: 81 c7 e0 08 ret 20027f8: 91 e8 20 00 restore %g0, 0, %o0 rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( 20027fc: 11 00 80 61 sethi %hi(0x2018400), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 2002800: c2 28 a2 5c stb %g1, [ %g2 + 0x25c ] status = rtems_io_register_name( 2002804: 90 12 21 58 or %o0, 0x158, %o0 2002808: 92 10 00 18 mov %i0, %o1 200280c: 40 00 00 4e call 2002944 2002810: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 2002814: 80 a2 20 00 cmp %o0, 0 2002818: 12 80 00 05 bne 200282c 200281c: 03 00 80 6b sethi %hi(0x201ac00), %g1 rtems_fatal_error_occurred(status); NULL_major = major; 2002820: f0 20 60 d8 st %i0, [ %g1 + 0xd8 ] ! 201acd8 } return RTEMS_SUCCESSFUL; } 2002824: 81 c7 e0 08 ret 2002828: 91 e8 20 00 restore %g0, 0, %o0 major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 200282c: 40 00 10 fd call 2006c20 <== NOT EXECUTED 2002830: 01 00 00 00 nop 2002834: 01 00 00 00 nop 020027b8 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 20027b8: 80 a2 a0 00 cmp %o2, 0 20027bc: 02 80 00 04 be 20027cc 20027c0: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 20027c4: c2 02 a0 0c ld [ %o2 + 0xc ], %g1 <== NOT EXECUTED 20027c8: c2 22 a0 14 st %g1, [ %o2 + 0x14 ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 20027cc: 81 c3 e0 08 retl 20027d0: 90 10 20 00 clr %o0 020027a0 : int open( const char *pathname, int flags, ... ) { 20027a0: 9d e3 bf 80 save %sp, -128, %sp eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); 20027a4: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20027a8: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20027ac: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20027b0: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 20027b4: 82 06 60 01 add %i1, 1, %g1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 20027b8: 80 88 60 02 btst 2, %g1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 20027bc: 82 08 60 01 and %g1, 1, %g1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 20027c0: 02 80 00 03 be 20027cc 20027c4: a1 28 60 02 sll %g1, 2, %l0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 20027c8: a0 14 20 02 or %l0, 2, %l0 va_start(ap, flags); mode = va_arg( ap, int ); 20027cc: 82 07 a0 50 add %fp, 0x50, %g1 20027d0: f4 07 a0 4c ld [ %fp + 0x4c ], %i2 20027d4: c2 27 bf f4 st %g1, [ %fp + -12 ] * 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(); 20027d8: 40 00 21 18 call 200ac38 20027dc: b8 10 20 17 mov 0x17, %i4 if ( iop == 0 ) { 20027e0: ba 92 20 00 orcc %o0, 0, %i5 20027e4: 02 80 00 3b be 20028d0 20027e8: 92 10 00 10 mov %l0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 20027ec: b6 07 bf e4 add %fp, -28, %i3 20027f0: 90 10 00 18 mov %i0, %o0 20027f4: 94 10 00 1b mov %i3, %o2 20027f8: 7f ff fe 0a call 2002020 20027fc: 96 10 20 01 mov 1, %o3 pathname, eval_flags, &loc, true ); if ( status == -1 ) { 2002800: 80 a2 3f ff cmp %o0, -1 2002804: 02 80 00 4d be 2002938 2002808: 82 0e 6a 00 and %i1, 0xa00, %g1 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 200280c: b8 10 20 11 mov 0x11, %i4 2002810: 80 a0 6a 00 cmp %g1, 0xa00 2002814: 02 80 00 69 be 20029b8 2002818: a0 10 00 1b mov %i3, %l0 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 200281c: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->file_info = loc.node_access; 2002820: c4 07 bf e4 ld [ %fp + -28 ], %g2 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002824: c2 27 60 30 st %g1, [ %i5 + 0x30 ] iop->file_info = loc.node_access; 2002828: c4 27 60 2c st %g2, [ %i5 + 0x2c ] iop->flags |= rtems_libio_fcntl_flags( flags ); 200282c: e0 07 60 0c ld [ %i5 + 0xc ], %l0 2002830: 40 00 21 40 call 200ad30 2002834: 90 10 00 19 mov %i1, %o0 iop->pathinfo = loc; 2002838: c2 07 bf e4 ld [ %fp + -28 ], %g1 if ( !iop->handlers->open_h ) { 200283c: c4 07 60 30 ld [ %i5 + 0x30 ], %g2 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 2002840: c2 27 60 10 st %g1, [ %i5 + 0x10 ] 2002844: c2 07 bf e8 ld [ %fp + -24 ], %g1 if ( !iop->handlers->open_h ) { 2002848: c4 00 80 00 ld [ %g2 ], %g2 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 200284c: c2 27 60 14 st %g1, [ %i5 + 0x14 ] 2002850: c2 07 bf ec ld [ %fp + -20 ], %g1 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002854: 90 12 00 10 or %o0, %l0, %o0 iop->pathinfo = loc; 2002858: c2 27 60 18 st %g1, [ %i5 + 0x18 ] 200285c: c2 07 bf f0 ld [ %fp + -16 ], %g1 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002860: d0 27 60 0c st %o0, [ %i5 + 0xc ] iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 2002864: 80 a0 a0 00 cmp %g2, 0 2002868: 02 80 00 52 be 20029b0 200286c: c2 27 60 1c st %g1, [ %i5 + 0x1c ] rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 2002870: 92 10 00 18 mov %i0, %o1 2002874: 96 10 00 1a mov %i2, %o3 2002878: 90 10 00 1d mov %i5, %o0 200287c: 94 10 00 19 mov %i1, %o2 2002880: 9f c0 80 00 call %g2 2002884: a0 10 00 1b mov %i3, %l0 if ( rc ) 2002888: 80 a2 20 00 cmp %o0, 0 200288c: 02 80 00 16 be 20028e4 2002890: b8 10 00 08 mov %o0, %i4 done: va_end(ap); if ( rc ) { if ( iop ) rtems_libio_free( iop ); 2002894: 40 00 20 d2 call 200abdc <== NOT EXECUTED 2002898: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED if ( loc_to_free ) 200289c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 20028a0: 02 80 00 0c be 20028d0 <== NOT EXECUTED 20028a4: 01 00 00 00 nop <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 20028a8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 20028ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20028b0: 02 80 00 08 be 20028d0 <== NOT EXECUTED 20028b4: 01 00 00 00 nop <== NOT EXECUTED 20028b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20028bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20028c0: 02 80 00 04 be 20028d0 <== NOT EXECUTED 20028c4: 01 00 00 00 nop <== NOT EXECUTED 20028c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20028cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 20028d0: 40 00 29 2a call 200cd78 <__errno> 20028d4: b0 10 3f ff mov -1, %i0 20028d8: f8 22 00 00 st %i4, [ %o0 ] 20028dc: 81 c7 e0 08 ret 20028e0: 81 e8 00 00 restore 20028e4: 03 00 80 5c sethi %hi(0x2017000), %g1 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 20028e8: 80 8e 64 00 btst 0x400, %i1 20028ec: 12 80 00 40 bne 20029ec 20028f0: a0 10 60 cc or %g1, 0xcc, %l0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 20028f4: c6 04 00 00 ld [ %l0 ], %g3 20028f8: 86 27 40 03 sub %i5, %g3, %g3 20028fc: 87 38 e0 02 sra %g3, 2, %g3 2002900: 89 28 e0 02 sll %g3, 2, %g4 2002904: 85 28 e0 06 sll %g3, 6, %g2 2002908: 84 20 80 04 sub %g2, %g4, %g2 200290c: 83 28 a0 06 sll %g2, 6, %g1 2002910: 82 20 40 02 sub %g1, %g2, %g1 2002914: 89 28 60 0c sll %g1, 0xc, %g4 2002918: 82 00 40 04 add %g1, %g4, %g1 200291c: 82 00 40 03 add %g1, %g3, %g1 2002920: 83 28 60 04 sll %g1, 4, %g1 2002924: 82 20 40 03 sub %g1, %g3, %g1 2002928: 83 28 60 02 sll %g1, 2, %g1 200292c: b0 20 c0 01 sub %g3, %g1, %i0 } 2002930: 81 c7 e0 08 ret 2002934: 81 e8 00 00 restore status = rtems_filesystem_evaluate_path( pathname, eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 2002938: 40 00 29 10 call 200cd78 <__errno> <== NOT EXECUTED 200293c: 01 00 00 00 nop <== NOT EXECUTED 2002940: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002944: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002948: 12 80 00 20 bne 20029c8 <== NOT EXECUTED 200294c: 80 8e 62 00 btst 0x200, %i1 <== 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) ) { 2002950: b8 10 20 02 mov 2, %i4 <== NOT EXECUTED 2002954: 02 80 00 19 be 20029b8 <== NOT EXECUTED 2002958: a0 10 20 00 clr %l0 <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 200295c: 13 3f ff e0 sethi %hi(0xffff8000), %o1 <== NOT EXECUTED 2002960: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2002964: 92 16 80 09 or %i2, %o1, %o1 <== NOT EXECUTED 2002968: 94 10 20 00 clr %o2 <== NOT EXECUTED 200296c: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED 2002970: 96 10 20 00 clr %o3 <== NOT EXECUTED 2002974: 7f ff fe 6c call 2002324 <== NOT EXECUTED 2002978: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED if ( rc ) { 200297c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2002980: 12 80 00 12 bne 20029c8 <== NOT EXECUTED 2002984: 90 10 00 18 mov %i0, %o0 <== 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 ); 2002988: 92 10 20 00 clr %o1 <== NOT EXECUTED 200298c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2002990: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2002994: 7f ff fd a3 call 2002020 <== NOT EXECUTED 2002998: b8 10 20 0d mov 0xd, %i4 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 200299c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20029a0: 12 80 00 06 bne 20029b8 <== NOT EXECUTED 20029a4: a0 10 20 00 clr %l0 <== NOT EXECUTED /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 20029a8: 10 bf ff 9e b 2002820 <== NOT EXECUTED 20029ac: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== 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; 20029b0: a0 10 00 1b mov %i3, %l0 <== NOT EXECUTED 20029b4: b8 10 20 86 mov 0x86, %i4 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 20029b8: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED 20029bc: 02 bf ff b9 be 20028a0 <== NOT EXECUTED 20029c0: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 20029c4: 30 bf ff b4 b,a 2002894 <== NOT EXECUTED } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 20029c8: 40 00 28 ec call 200cd78 <__errno> <== NOT EXECUTED 20029cc: 01 00 00 00 nop <== NOT EXECUTED 20029d0: f8 02 00 00 ld [ %o0 ], %i4 <== NOT EXECUTED 20029d4: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 20029d8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 20029dc: 02 bf ff c6 be 20028f4 <== NOT EXECUTED 20029e0: a0 10 60 cc or %g1, 0xcc, %l0 <== NOT EXECUTED 20029e4: 10 bf ff f5 b 20029b8 <== NOT EXECUTED 20029e8: a0 10 20 00 clr %l0 <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 20029ec: c4 00 60 cc ld [ %g1 + 0xcc ], %g2 <== NOT EXECUTED 20029f0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20029f4: 84 27 40 02 sub %i5, %g2, %g2 <== NOT EXECUTED 20029f8: 85 38 a0 02 sra %g2, 2, %g2 <== NOT EXECUTED 20029fc: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2002a00: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2002a04: 82 20 40 03 sub %g1, %g3, %g1 <== NOT EXECUTED 2002a08: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED 2002a0c: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2002a10: 87 2a 20 0c sll %o0, 0xc, %g3 <== NOT EXECUTED 2002a14: 90 02 00 03 add %o0, %g3, %o0 <== NOT EXECUTED 2002a18: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 2002a1c: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED 2002a20: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED 2002a24: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2002a28: 40 00 1f aa call 200a8d0 <== NOT EXECUTED 2002a2c: 90 20 80 08 sub %g2, %o0, %o0 <== NOT EXECUTED if ( rc ) { 2002a30: b8 92 20 00 orcc %o0, 0, %i4 <== NOT EXECUTED 2002a34: 22 bf ff b1 be,a 20028f8 <== NOT EXECUTED 2002a38: c6 04 00 00 ld [ %l0 ], %g3 <== NOT EXECUTED if(errno) rc = errno; 2002a3c: 40 00 28 cf call 200cd78 <__errno> <== NOT EXECUTED 2002a40: 01 00 00 00 nop <== NOT EXECUTED 2002a44: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002a48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002a4c: 12 80 00 15 bne 2002aa0 <== NOT EXECUTED 2002a50: 01 00 00 00 nop <== NOT EXECUTED close( iop - rtems_libio_iops ); 2002a54: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 2002a58: 84 27 40 02 sub %i5, %g2, %g2 <== NOT EXECUTED 2002a5c: 85 38 a0 02 sra %g2, 2, %g2 <== NOT EXECUTED 2002a60: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2002a64: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2002a68: 82 20 40 03 sub %g1, %g3, %g1 <== NOT EXECUTED 2002a6c: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED 2002a70: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2002a74: 87 2a 20 0c sll %o0, 0xc, %g3 <== NOT EXECUTED 2002a78: ba 10 20 00 clr %i5 <== NOT EXECUTED 2002a7c: 90 02 00 03 add %o0, %g3, %o0 <== NOT EXECUTED 2002a80: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 2002a84: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED 2002a88: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED 2002a8c: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2002a90: 40 00 1f 34 call 200a760 <== NOT EXECUTED 2002a94: 90 20 80 08 sub %g2, %o0, %o0 <== NOT EXECUTED 2002a98: 10 bf ff d0 b 20029d8 <== NOT EXECUTED 2002a9c: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 2002aa0: 40 00 28 b6 call 200cd78 <__errno> <== NOT EXECUTED 2002aa4: 01 00 00 00 nop <== NOT EXECUTED 2002aa8: 10 bf ff eb b 2002a54 <== NOT EXECUTED 2002aac: f8 02 00 00 ld [ %o0 ], %i4 <== NOT EXECUTED 0200272c : /* * This is a replaceable stub */ void open_dev_console(void) { 200272c: 9d e3 bf 98 save %sp, -104, %sp int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 2002730: 21 00 80 55 sethi %hi(0x2015400), %l0 2002734: 92 10 20 00 clr %o1 2002738: 90 14 20 10 or %l0, 0x10, %o0 200273c: 40 00 00 19 call 20027a0 2002740: 94 10 20 00 clr %o2 2002744: 80 a2 3f ff cmp %o0, -1 2002748: 02 80 00 0e be 2002780 200274c: 90 14 20 10 or %l0, 0x10, %o0 /* * 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) 2002750: 92 10 20 01 mov 1, %o1 2002754: 40 00 00 13 call 20027a0 2002758: 94 10 20 00 clr %o2 200275c: 80 a2 3f ff cmp %o0, -1 2002760: 02 80 00 0c be 2002790 2002764: 92 10 20 01 mov 1, %o1 rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002768: 90 14 20 10 or %l0, 0x10, %o0 200276c: 40 00 00 0d call 20027a0 2002770: 94 10 20 00 clr %o2 2002774: 80 a2 3f ff cmp %o0, -1 2002778: 02 80 00 04 be 2002788 200277c: 11 14 d5 11 sethi %hi(0x53544400), %o0 2002780: 81 c7 e0 08 ret 2002784: 81 e8 00 00 restore rtems_fatal_error_occurred( error_code | '2' ); 2002788: 40 00 0d d6 call 2005ee0 <== NOT EXECUTED 200278c: 90 12 20 32 or %o0, 0x32, %o0 <== 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' ); 2002790: 11 14 d5 11 sethi %hi(0x53544400), %o0 <== NOT EXECUTED 2002794: 40 00 0d d3 call 2005ee0 <== NOT EXECUTED 2002798: 90 12 20 31 or %o0, 0x31, %o0 ! 53544431 <== NOT EXECUTED 200279c: 01 00 00 00 nop 02022008 : * open a directory. */ DIR * opendir( const char *name ) { 2022008: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 202200c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2022010: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022014: 7f ff 8d d2 call 200575c <== NOT EXECUTED 2022018: b0 10 20 00 clr %i0 <== NOT EXECUTED 202201c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2022020: 02 80 00 17 be 202207c <== NOT EXECUTED 2022024: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 2022028: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 202202c: 40 00 31 61 call 202e5b0 <== NOT EXECUTED 2022030: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2022034: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2022038: 02 80 00 14 be 2022088 <== NOT EXECUTED 202203c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022040: 7f ff 8b 71 call 2004e04 <== NOT EXECUTED 2022044: 90 10 20 18 mov 0x18, %o0 <== NOT EXECUTED 2022048: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 202204c: 02 80 00 0f be 2022088 <== NOT EXECUTED 2022050: 90 10 00 10 mov %l0, %o0 <== 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); 2022054: 7f ff 8b 6c call 2004e04 <== NOT EXECUTED 2022058: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED dirp->dd_len = 512; 202205c: 82 10 22 00 mov 0x200, %g1 <== 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); 2022060: d0 26 20 0c st %o0, [ %i0 + 0xc ] <== NOT EXECUTED dirp->dd_len = 512; if (dirp->dd_buf == NULL) { 2022064: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022068: 02 80 00 07 be 2022084 <== NOT EXECUTED 202206c: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED close (fd); return NULL; } dirp->dd_fd = fd; 2022070: e0 26 00 00 st %l0, [ %i0 ] <== NOT EXECUTED dirp->dd_loc = 0; 2022074: c0 26 20 04 clr [ %i0 + 4 ] <== NOT EXECUTED dirp->dd_seek = 0; 2022078: c0 26 20 14 clr [ %i0 + 0x14 ] <== NOT EXECUTED /* * Set up seek point for rewinddir. */ return dirp; } 202207c: 81 c7 e0 08 ret <== NOT EXECUTED 2022080: 81 e8 00 00 restore <== NOT EXECUTED */ dirp->dd_buf = malloc (512); dirp->dd_len = 512; if (dirp->dd_buf == NULL) { close (fd); 2022084: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022088: 7f ff 88 fc call 2004478 <== NOT EXECUTED 202208c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2022090: 81 c7 e0 08 ret <== NOT EXECUTED 2022094: 81 e8 00 00 restore <== NOT EXECUTED 020036fc : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 20036fc: 9d e3 bf 98 save %sp, -104, %sp int i; if (tty->termios.c_oflag & OPOST) { 2003700: c6 06 60 34 ld [ %i1 + 0x34 ], %g3 2003704: 80 88 e0 01 btst 1, %g3 2003708: 02 80 00 10 be 2003748 200370c: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 2003710: b0 0e 20 ff and %i0, 0xff, %i0 2003714: 80 a6 20 09 cmp %i0, 9 2003718: 22 80 00 28 be,a 20037b8 200371c: c8 06 60 28 ld [ %i1 + 0x28 ], %g4 2003720: 18 80 00 10 bgu 2003760 2003724: 80 a6 20 0a cmp %i0, 0xa 2003728: 80 a6 20 08 cmp %i0, 8 <== NOT EXECUTED 200372c: 12 80 00 11 bne 2003770 <== NOT EXECUTED 2003730: 80 88 e0 02 btst 2, %g3 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 2003734: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 2003738: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200373c: 04 80 00 03 ble 2003748 <== NOT EXECUTED 2003740: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED tty->column--; 2003744: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003748: 94 10 00 19 mov %i1, %o2 200374c: 90 07 a0 44 add %fp, 0x44, %o0 2003750: 7f ff ff 9d call 20035c4 2003754: 92 10 20 01 mov 1, %o1 2003758: 81 c7 e0 08 ret 200375c: 81 e8 00 00 restore oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 2003760: 02 80 00 24 be 20037f0 2003764: 80 a6 20 0d cmp %i0, 0xd 2003768: 02 80 00 2f be 2003824 200376c: 80 88 e0 02 btst 2, %g3 if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 2003770: 02 80 00 08 be 2003790 2003774: 07 00 80 5a sethi %hi(0x2016800), %g3 c = toupper(c); 2003778: c4 00 e1 b0 ld [ %g3 + 0x1b0 ], %g2 ! 20169b0 <__ctype_ptr> <== NOT EXECUTED 200377c: c2 08 80 18 ldub [ %g2 + %i0 ], %g1 <== NOT EXECUTED 2003780: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003784: 32 80 00 02 bne,a 200378c <== NOT EXECUTED 2003788: b0 06 3f e0 add %i0, -32, %i0 <== NOT EXECUTED 200378c: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] <== NOT EXECUTED if (!iscntrl(c)) 2003790: c2 00 e1 b0 ld [ %g3 + 0x1b0 ], %g1 2003794: c4 0f a0 44 ldub [ %fp + 0x44 ], %g2 2003798: c6 08 40 02 ldub [ %g1 + %g2 ], %g3 200379c: 80 88 e0 20 btst 0x20, %g3 20037a0: 12 bf ff eb bne 200374c 20037a4: 94 10 00 19 mov %i1, %o2 tty->column++; 20037a8: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 20037ac: 82 00 60 01 inc %g1 20037b0: 10 bf ff e7 b 200374c 20037b4: c2 26 60 28 st %g1, [ %i1 + 0x28 ] tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20037b8: 05 00 00 06 sethi %hi(0x1800), %g2 20037bc: 82 08 c0 02 and %g3, %g2, %g1 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 20037c0: 86 09 20 07 and %g4, 7, %g3 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20037c4: 80 a0 40 02 cmp %g1, %g2 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 20037c8: 82 10 20 08 mov 8, %g1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20037cc: 02 80 00 25 be 2003860 20037d0: 92 20 40 03 sub %g1, %g3, %o1 tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 20037d4: 82 02 40 04 add %o1, %g4, %g1 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 20037d8: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 20037dc: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 20037e0: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED 20037e4: 7f ff ff 78 call 20035c4 <== NOT EXECUTED 20037e8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 20037ec: 30 80 00 23 b,a 2003878 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 20037f0: 80 88 e0 20 btst 0x20, %g3 20037f4: 32 80 00 02 bne,a 20037fc 20037f8: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 20037fc: 80 88 e0 04 btst 4, %g3 2003800: 02 bf ff d3 be 200374c 2003804: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 2003808: 11 00 80 55 sethi %hi(0x2015400), %o0 200380c: 92 10 20 01 mov 1, %o1 2003810: 90 12 23 b8 or %o0, 0x3b8, %o0 2003814: 7f ff ff 6c call 20035c4 2003818: 94 10 00 19 mov %i1, %o2 tty->column = 0; 200381c: 10 bf ff cb b 2003748 2003820: c0 26 60 28 clr [ %i1 + 0x28 ] } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 2003824: 80 88 e0 10 btst 0x10, %g3 <== NOT EXECUTED 2003828: 02 80 00 06 be 2003840 <== NOT EXECUTED 200382c: 80 88 e0 08 btst 8, %g3 <== NOT EXECUTED 2003830: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 2003834: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003838: 02 bf ff c8 be 2003758 <== NOT EXECUTED 200383c: 80 88 e0 08 btst 8, %g3 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 2003840: 22 bf ff c2 be,a 2003748 <== NOT EXECUTED 2003844: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 2003848: 82 10 20 0a mov 0xa, %g1 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 200384c: 80 88 e0 20 btst 0x20, %g3 <== NOT EXECUTED 2003850: 02 bf ff be be 2003748 <== NOT EXECUTED 2003854: c2 2f a0 44 stb %g1, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; 2003858: 10 bf ff bc b 2003748 <== NOT EXECUTED 200385c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 2003860: 82 02 40 04 add %o1, %g4, %g1 rtems_termios_puts ( " ", i, tty); 2003864: 94 10 00 19 mov %i1, %o2 break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 2003868: c2 26 60 28 st %g1, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 200386c: 11 00 80 55 sethi %hi(0x2015400), %o0 2003870: 7f ff ff 55 call 20035c4 2003874: 90 12 23 c0 or %o0, 0x3c0, %o0 ! 20157c0 2003878: 81 c7 e0 08 ret 200387c: 81 e8 00 00 restore 020148f8 : ssize_t read( int fd, void *buffer, size_t count ) { 20148f8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20148fc: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2014900: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 ! 2016448 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 2014904: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2014908: 80 a6 00 02 cmp %i0, %g2 <== NOT EXECUTED 201490c: 1a 80 00 24 bcc 201499c <== NOT EXECUTED 2014910: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2014914: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 2014918: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 ! 20170cc <== NOT EXECUTED 201491c: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 2014920: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 2014924: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2014928: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 201492c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 2014930: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 2014934: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2014938: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 201493c: 02 80 00 18 be 201499c <== NOT EXECUTED 2014940: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 2014944: 02 80 00 1c be 20149b4 <== NOT EXECUTED 2014948: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED rtems_libio_check_count( count ); 201494c: 02 80 00 12 be 2014994 <== NOT EXECUTED 2014950: 90 10 20 00 clr %o0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2014954: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2014958: 02 80 00 17 be 20149b4 <== NOT EXECUTED 201495c: 01 00 00 00 nop <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 2014960: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2014964: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 2014968: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201496c: 02 80 00 18 be 20149cc <== NOT EXECUTED 2014970: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 2014974: 9f c0 40 00 call %g1 <== NOT EXECUTED 2014978: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( rc > 0 ) 201497c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2014980: 04 80 00 05 ble 2014994 <== NOT EXECUTED 2014984: 01 00 00 00 nop <== NOT EXECUTED iop->offset += rc; 2014988: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 201498c: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 2014990: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED return rc; } 2014994: 81 c7 e0 08 ret <== NOT EXECUTED 2014998: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ); 201499c: 7f ff e0 f7 call 200cd78 <__errno> <== NOT EXECUTED 20149a0: 01 00 00 00 nop <== NOT EXECUTED 20149a4: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 20149a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20149ac: 10 bf ff fa b 2014994 <== NOT EXECUTED 20149b0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 20149b4: 7f ff e0 f1 call 200cd78 <__errno> <== NOT EXECUTED 20149b8: 01 00 00 00 nop <== NOT EXECUTED 20149bc: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20149c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20149c4: 10 bf ff f4 b 2014994 <== NOT EXECUTED 20149c8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 20149cc: 7f ff e0 eb call 200cd78 <__errno> <== NOT EXECUTED 20149d0: 01 00 00 00 nop <== NOT EXECUTED 20149d4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20149d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20149dc: 10 bf ff ee b 2014994 <== NOT EXECUTED 20149e0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 02022310 : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 2022310: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 2022314: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2022318: 02 80 00 29 be 20223bc <== NOT EXECUTED 202231c: 88 10 20 00 clr %g4 <== NOT EXECUTED 2022320: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED return NULL; for (;;) { if (dirp->dd_loc == 0) { 2022324: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED 2022328: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202232c: 22 80 00 1b be,a 2022398 <== NOT EXECUTED 2022330: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 2022334: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 2022338: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202233c: 24 bf ff fa ble,a 2022324 <== NOT EXECUTED 2022340: c0 26 20 04 clr [ %i0 + 4 ] <== NOT EXECUTED dirp->dd_loc = 0; continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 2022344: 88 02 40 02 add %o1, %g2, %g4 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 2022348: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED 202234c: 32 80 00 1c bne,a 20223bc <== NOT EXECUTED 2022350: 88 10 20 00 clr %g4 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 2022354: c6 11 20 08 lduh [ %g4 + 8 ], %g3 <== NOT EXECUTED 2022358: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 202235c: 02 80 00 17 be 20223b8 <== NOT EXECUTED 2022360: 9a 00 80 03 add %g2, %g3, %o5 <== NOT EXECUTED 2022364: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2022368: 82 00 60 01 inc %g1 <== NOT EXECUTED 202236c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2022370: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2022374: 34 80 00 12 bg,a 20223bc <== NOT EXECUTED 2022378: 88 10 20 00 clr %g4 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 202237c: da 26 20 04 st %o5, [ %i0 + 4 ] <== NOT EXECUTED if (dp->d_ino == 0) 2022380: c2 01 00 00 ld [ %g4 ], %g1 <== NOT EXECUTED 2022384: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022388: 22 bf ff e8 be,a 2022328 <== NOT EXECUTED 202238c: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED continue; return (dp); } } 2022390: 81 c7 e0 08 ret <== NOT EXECUTED 2022394: 91 e8 00 04 restore %g0, %g4, %o0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 2022398: 40 00 31 1f call 202e814 <== NOT EXECUTED 202239c: d4 06 20 10 ld [ %i0 + 0x10 ], %o2 <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 20223a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20223a4: 04 80 00 05 ble 20223b8 <== NOT EXECUTED 20223a8: d0 26 20 08 st %o0, [ %i0 + 8 ] <== NOT EXECUTED 20223ac: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED 20223b0: 10 bf ff e1 b 2022334 <== NOT EXECUTED 20223b4: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== 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) 20223b8: 88 10 20 00 clr %g4 <== NOT EXECUTED continue; return (dp); } } 20223bc: 81 c7 e0 08 ret <== NOT EXECUTED 20223c0: 91 e8 00 04 restore %g0, %g4, %o0 <== NOT EXECUTED 020223c4 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 20223c4: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 20223c8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20223cc: 02 80 00 27 be 2022468 <== NOT EXECUTED 20223d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 20223d4: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 20223d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20223dc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20223e0: 96 10 20 00 clr %o3 <== NOT EXECUTED 20223e4: 7f ff 88 86 call 20045fc <== NOT EXECUTED 20223e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( result != 0 ) 20223ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20223f0: 12 80 00 1c bne 2022460 <== NOT EXECUTED 20223f4: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 20223f8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 20223fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022400: 22 80 00 31 be,a 20224c4 <== NOT EXECUTED 2022404: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== 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 ){ 2022408: 9f c0 40 00 call %g1 <== NOT EXECUTED 202240c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022410: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED 2022414: 12 80 00 1b bne 2022480 <== NOT EXECUTED 2022418: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 202241c: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 <== NOT EXECUTED 2022420: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022424: 02 80 00 27 be 20224c0 <== NOT EXECUTED 2022428: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 202242c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 2022430: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022434: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2022438: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202243c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022440: 02 80 00 08 be 2022460 <== NOT EXECUTED 2022444: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2022448: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202244c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022450: 02 80 00 26 be 20224e8 <== NOT EXECUTED 2022454: 01 00 00 00 nop <== NOT EXECUTED 2022458: 9f c0 40 00 call %g1 <== NOT EXECUTED 202245c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2022460: 81 c7 e0 08 ret <== NOT EXECUTED 2022464: 81 e8 00 00 restore <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 2022468: 40 00 39 e3 call 2030bf4 <__errno> <== NOT EXECUTED 202246c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022470: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2022474: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022478: 81 c7 e0 08 ret <== NOT EXECUTED 202247c: 81 e8 00 00 restore <== 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 ); 2022480: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2022484: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022488: 02 80 00 08 be 20224a8 <== NOT EXECUTED 202248c: 01 00 00 00 nop <== NOT EXECUTED 2022490: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022494: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022498: 02 80 00 04 be 20224a8 <== NOT EXECUTED 202249c: 01 00 00 00 nop <== NOT EXECUTED 20224a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20224a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 20224a8: 40 00 39 d3 call 2030bf4 <__errno> <== NOT EXECUTED 20224ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20224b0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20224b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20224b8: 81 c7 e0 08 ret <== NOT EXECUTED 20224bc: 81 e8 00 00 restore <== NOT EXECUTED } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 20224c0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 20224c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20224c8: 02 80 00 04 be 20224d8 <== NOT EXECUTED 20224cc: 01 00 00 00 nop <== NOT EXECUTED 20224d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20224d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20224d8: 40 00 39 c7 call 2030bf4 <__errno> <== NOT EXECUTED 20224dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20224e0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20224e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20224e8: 81 c7 e0 08 ret <== NOT EXECUTED 20224ec: 81 e8 00 00 restore <== NOT EXECUTED 02014a68 : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 2014a68: 9d e3 bf 90 save %sp, -112, %sp 2014a6c: 03 00 80 5c sethi %hi(0x2017000), %g1 2014a70: a2 10 61 30 or %g1, 0x130, %l1 ! 2017130 2014a74: c4 04 60 10 ld [ %l1 + 0x10 ], %g2 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2014a78: 03 00 80 5d sethi %hi(0x2017400), %g1 2014a7c: c6 00 60 44 ld [ %g1 + 0x44 ], %g3 ! 2017444 <_System_state_Current> { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 2014a80: 84 00 a0 01 inc %g2 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2014a84: 80 a0 e0 03 cmp %g3, 3 2014a88: 02 80 00 3b be 2014b74 2014a8c: c4 24 60 10 st %g2, [ %l1 + 0x10 ] } /* * Continue with realloc(). */ if ( !ptr ) 2014a90: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2014a94: 02 80 00 13 be 2014ae0 2014a98: 80 a6 60 00 cmp %i1, 0 return malloc( size ); if ( !size ) { 2014a9c: 02 80 00 2b be 2014b48 2014aa0: 21 00 80 5c sethi %hi(0x2017000), %l0 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 2014aa4: 92 10 00 18 mov %i0, %o1 2014aa8: 90 14 20 d8 or %l0, 0xd8, %o0 2014aac: 40 00 00 78 call 2014c8c <_Protected_heap_Get_block_size> 2014ab0: 94 07 bf f4 add %fp, -12, %o2 2014ab4: 80 8a 20 ff btst 0xff, %o0 2014ab8: 02 80 00 29 be 2014b5c 2014abc: 90 14 20 d8 or %l0, 0xd8, %o0 #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 ) ) { 2014ac0: 92 10 00 18 mov %i0, %o1 2014ac4: 40 00 00 7f call 2014cc0 <_Protected_heap_Resize_block> 2014ac8: 94 10 00 19 mov %i1, %o2 2014acc: 80 8a 20 ff btst 0xff, %o0 2014ad0: 02 80 00 08 be 2014af0 2014ad4: 01 00 00 00 nop memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 2014ad8: 81 c7 e0 08 ret 2014adc: 81 e8 00 00 restore /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 2014ae0: 7f ff d8 c8 call 200ae00 <== NOT EXECUTED 2014ae4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2014ae8: 81 c7 e0 08 ret <== NOT EXECUTED 2014aec: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ); 2014af0: 7f ff d8 c4 call 200ae00 2014af4: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 2014af8: c2 04 60 04 ld [ %l1 + 4 ], %g1 * 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 ); 2014afc: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 2014b00: 82 00 7f ff add %g1, -1, %g1 if ( !new_area ) { 2014b04: 80 a2 20 00 cmp %o0, 0 2014b08: 02 80 00 24 be 2014b98 2014b0c: c2 24 60 04 st %g1, [ %l1 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 2014b10: c2 07 bf f4 ld [ %fp + -12 ], %g1 2014b14: 80 a6 40 01 cmp %i1, %g1 2014b18: 08 80 00 03 bleu 2014b24 2014b1c: 90 10 00 19 mov %i1, %o0 2014b20: 90 10 00 01 mov %g1, %o0 2014b24: 94 10 00 08 mov %o0, %o2 2014b28: 92 10 00 18 mov %i0, %o1 2014b2c: 7f ff e2 85 call 200d540 2014b30: 90 10 00 10 mov %l0, %o0 free( ptr ); 2014b34: 90 10 00 18 mov %i0, %o0 2014b38: 7f ff d7 3b call 200a824 2014b3c: b0 10 00 10 mov %l0, %i0 2014b40: 81 c7 e0 08 ret 2014b44: 81 e8 00 00 restore */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 2014b48: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2014b4c: 7f ff d7 36 call 200a824 <== NOT EXECUTED 2014b50: b0 10 20 00 clr %i0 <== NOT EXECUTED 2014b54: 81 c7 e0 08 ret <== NOT EXECUTED 2014b58: 81 e8 00 00 restore <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 2014b5c: 7f ff e0 87 call 200cd78 <__errno> 2014b60: b0 10 20 00 clr %i0 2014b64: 82 10 20 16 mov 0x16, %g1 2014b68: c2 22 00 00 st %g1, [ %o0 ] 2014b6c: 81 c7 e0 08 ret 2014b70: 81 e8 00 00 restore /* * 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) 2014b74: 03 00 80 5c sethi %hi(0x2017000), %g1 2014b78: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 20172a0 <_Thread_Dispatch_disable_level> 2014b7c: 80 a0 a0 00 cmp %g2, 0 2014b80: 12 80 00 06 bne 2014b98 2014b84: 03 00 80 5c sethi %hi(0x2017000), %g1 return (void *) 0; if (_ISR_Nest_level > 0) 2014b88: c4 00 63 40 ld [ %g1 + 0x340 ], %g2 ! 2017340 <_ISR_Nest_level> 2014b8c: 80 a0 a0 00 cmp %g2, 0 2014b90: 02 bf ff c1 be 2014a94 2014b94: 80 a6 20 00 cmp %i0, 0 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 2014b98: 81 c7 e0 08 ret <== NOT EXECUTED 2014b9c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02022628 : #include int rmdir( const char *pathname ) { 2022628: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 202262c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2022630: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022634: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2022638: 96 10 20 00 clr %o3 <== NOT EXECUTED 202263c: 7f ff 87 f0 call 20045fc <== NOT EXECUTED 2022640: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if ( result != 0 ) 2022644: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022648: 02 80 00 04 be 2022658 <== NOT EXECUTED 202264c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 2022650: 81 c7 e0 08 ret <== NOT EXECUTED 2022654: 91 e8 3f ff restore %g0, -1, %o0 <== 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 ); 2022658: 7f ff 87 b9 call 200453c <== NOT EXECUTED 202265c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (result != 0) { 2022660: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022664: 12 80 00 2d bne 2022718 <== NOT EXECUTED 2022668: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 202266c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2022670: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022674: 22 80 00 35 be,a 2022748 <== NOT EXECUTED 2022678: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 202267c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022680: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022684: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2022688: 12 80 00 14 bne 20226d8 <== NOT EXECUTED 202268c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 2022690: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED 2022694: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022698: 22 80 00 37 be,a 2022774 <== NOT EXECUTED 202269c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 20226a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20226a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20226a8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20226ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20226b0: 02 80 00 08 be 20226d0 <== NOT EXECUTED 20226b4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20226b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20226bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20226c0: 02 80 00 2b be 202276c <== NOT EXECUTED 20226c4: 01 00 00 00 nop <== NOT EXECUTED 20226c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20226cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20226d0: 81 c7 e0 08 ret <== NOT EXECUTED 20226d4: 81 e8 00 00 restore <== 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 ); 20226d8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20226dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20226e0: 02 80 00 08 be 2022700 <== NOT EXECUTED 20226e4: 01 00 00 00 nop <== NOT EXECUTED 20226e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20226ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20226f0: 02 80 00 04 be 2022700 <== NOT EXECUTED 20226f4: 01 00 00 00 nop <== NOT EXECUTED 20226f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20226fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 2022700: 40 00 39 3d call 2030bf4 <__errno> <== NOT EXECUTED 2022704: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022708: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 202270c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022710: 81 c7 e0 08 ret <== NOT EXECUTED 2022714: 81 e8 00 00 restore <== NOT EXECUTED if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0) { rtems_filesystem_freenode( &loc ); 2022718: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202271c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022720: 02 bf ff ec be 20226d0 <== NOT EXECUTED 2022724: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022728: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202272c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022730: 02 bf ff e8 be 20226d0 <== NOT EXECUTED 2022734: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022738: 9f c0 40 00 call %g1 <== NOT EXECUTED 202273c: 01 00 00 00 nop <== NOT EXECUTED 2022740: 81 c7 e0 08 ret <== NOT EXECUTED 2022744: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 2022748: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202274c: 02 80 00 04 be 202275c <== NOT EXECUTED 2022750: 01 00 00 00 nop <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 2022754: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022758: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202275c: 40 00 39 26 call 2030bf4 <__errno> <== NOT EXECUTED 2022760: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022764: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2022768: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202276c: 81 c7 e0 08 ret <== NOT EXECUTED 2022770: 81 e8 00 00 restore <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 2022774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022778: 02 bf ff f9 be 202275c <== NOT EXECUTED 202277c: 01 00 00 00 nop <== NOT EXECUTED 2022780: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022784: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022788: 12 bf ff f3 bne 2022754 <== NOT EXECUTED 202278c: 01 00 00 00 nop <== NOT EXECUTED 2022790: 30 bf ff f3 b,a 202275c <== NOT EXECUTED 0200c61c : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 200c61c: 9d e3 bf 98 save %sp, -104, %sp 200c620: a2 10 20 01 mov 1, %l1 200c624: a4 10 00 18 mov %i0, %l2 200c628: a0 10 20 00 clr %l0 200c62c: 10 80 00 05 b 200c640 200c630: b0 10 20 00 clr %i0 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 200c634: 80 a4 20 20 cmp %l0, 0x20 200c638: 02 80 00 0d be 200c66c 200c63c: a3 2c 60 01 sll %l1, 1, %l1 if (b & remote_value) 200c640: 80 8c 40 19 btst %l1, %i1 200c644: 22 bf ff fc be,a 200c634 200c648: a0 04 20 01 inc %l0 local_value |= rtems_assoc_local_by_remote(ap, b); 200c64c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 200c650: 40 00 00 09 call 200c674 <== NOT EXECUTED 200c654: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 200c658: a0 04 20 01 inc %l0 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 200c65c: b0 16 00 08 or %i0, %o0, %i0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 200c660: 80 a4 20 20 cmp %l0, 0x20 <== NOT EXECUTED 200c664: 12 bf ff f7 bne 200c640 <== NOT EXECUTED 200c668: a3 2c 60 01 sll %l1, 1, %l1 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 200c66c: 81 c7 e0 08 ret 200c670: 81 e8 00 00 restore 02017048 : const char * rtems_assoc_name_bad( uint32_t bad_value ) { 2017048: 11 00 80 9b sethi %hi(0x2026c00), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 201704c: 81 c3 e0 08 retl <== NOT EXECUTED 2017050: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 2026df0 <== NOT EXECUTED 02012b5c : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 2012b5c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 2012b60: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2012b64: 40 00 00 0b call 2012b90 <== NOT EXECUTED 2012b68: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if (nap) 2012b6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012b70: 02 80 00 05 be 2012b84 <== NOT EXECUTED 2012b74: 01 00 00 00 nop <== NOT EXECUTED return nap->name; return rtems_assoc_name_bad(local_value); } 2012b78: f0 02 00 00 ld [ %o0 ], %i0 <== NOT EXECUTED 2012b7c: 81 c7 e0 08 ret <== NOT EXECUTED 2012b80: 81 e8 00 00 restore <== NOT EXECUTED nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 2012b84: 40 00 11 31 call 2017048 <== NOT EXECUTED 2012b88: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 2012b8c: 01 00 00 00 nop 0200ccc8 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200ccc8: 9d e3 bf 98 save %sp, -104, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200cccc: d0 06 00 00 ld [ %i0 ], %o0 200ccd0: 80 a2 20 00 cmp %o0, 0 200ccd4: 02 80 00 1d be 200cd48 200ccd8: 13 00 80 57 sethi %hi(0x2015c00), %o1 200ccdc: 40 00 04 f7 call 200e0b8 200cce0: 92 12 61 68 or %o1, 0x168, %o1 ! 2015d68 <__func__.5598+0x18> 200cce4: 80 a2 20 00 cmp %o0, 0 200cce8: 02 80 00 11 be 200cd2c 200ccec: 86 10 20 00 clr %g3 default_ap = ap++; for ( ; ap->name; ap++) if (ap->local_value == local_value) 200ccf0: c2 06 20 04 ld [ %i0 + 4 ], %g1 200ccf4: 80 a0 40 19 cmp %g1, %i1 200ccf8: 32 80 00 07 bne,a 200cd14 200ccfc: b0 06 20 0c add %i0, 0xc, %i0 200cd00: 30 80 00 14 b,a 200cd50 200cd04: 80 a0 40 19 cmp %g1, %i1 200cd08: 02 80 00 12 be 200cd50 200cd0c: 01 00 00 00 nop const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 200cd10: b0 06 20 0c add %i0, 0xc, %i0 200cd14: c2 06 00 00 ld [ %i0 ], %g1 200cd18: 80 a0 60 00 cmp %g1, 0 200cd1c: 32 bf ff fa bne,a 200cd04 200cd20: c2 06 20 04 ld [ %i0 + 4 ], %g1 if (ap->local_value == local_value) return ap; return default_ap; } 200cd24: 81 c7 e0 08 ret 200cd28: 91 e8 00 03 restore %g0, %g3, %o0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 200cd2c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 200cd30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cd34: 02 80 00 07 be 200cd50 <== NOT EXECUTED 200cd38: 84 06 20 0c add %i0, 0xc, %g2 <== NOT EXECUTED 200cd3c: 86 10 00 18 mov %i0, %g3 <== NOT EXECUTED 200cd40: 10 bf ff ec b 200ccf0 <== NOT EXECUTED 200cd44: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200cd48: 81 c7 e0 08 ret <== NOT EXECUTED 200cd4c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200cd50: 81 c7 e0 08 ret 200cd54: 81 e8 00 00 restore 0200c69c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 200c69c: 9d e3 bf 98 save %sp, -104, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200c6a0: d0 06 00 00 ld [ %i0 ], %o0 200c6a4: 80 a2 20 00 cmp %o0, 0 200c6a8: 02 80 00 1d be 200c71c 200c6ac: 13 00 80 57 sethi %hi(0x2015c00), %o1 200c6b0: 40 00 06 82 call 200e0b8 200c6b4: 92 12 61 68 or %o1, 0x168, %o1 ! 2015d68 <__func__.5598+0x18> 200c6b8: 80 a2 20 00 cmp %o0, 0 200c6bc: 02 80 00 11 be 200c700 200c6c0: 86 10 20 00 clr %g3 default_ap = ap++; for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 200c6c4: c2 06 20 08 ld [ %i0 + 8 ], %g1 200c6c8: 80 a0 40 19 cmp %g1, %i1 200c6cc: 32 80 00 07 bne,a 200c6e8 200c6d0: b0 06 20 0c add %i0, 0xc, %i0 200c6d4: 30 80 00 14 b,a 200c724 200c6d8: 80 a0 40 19 cmp %g1, %i1 200c6dc: 02 80 00 12 be 200c724 200c6e0: 01 00 00 00 nop const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 200c6e4: b0 06 20 0c add %i0, 0xc, %i0 <== NOT EXECUTED 200c6e8: c2 06 00 00 ld [ %i0 ], %g1 200c6ec: 80 a0 60 00 cmp %g1, 0 200c6f0: 32 bf ff fa bne,a 200c6d8 200c6f4: c2 06 20 08 ld [ %i0 + 8 ], %g1 if (ap->remote_value == remote_value) return ap; return default_ap; } 200c6f8: 81 c7 e0 08 ret <== NOT EXECUTED 200c6fc: 91 e8 00 03 restore %g0, %g3, %o0 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 200c700: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 200c704: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c708: 02 80 00 07 be 200c724 <== NOT EXECUTED 200c70c: 84 06 20 0c add %i0, 0xc, %g2 <== NOT EXECUTED 200c710: 86 10 00 18 mov %i0, %g3 <== NOT EXECUTED 200c714: 10 bf ff ec b 200c6c4 <== NOT EXECUTED 200c718: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200c71c: 81 c7 e0 08 ret <== NOT EXECUTED 200c720: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200c724: 81 c7 e0 08 ret 200c728: 81 e8 00 00 restore 0200c72c : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200c72c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200c730: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200c734: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200c738: 40 00 01 64 call 200ccc8 <== NOT EXECUTED 200c73c: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200c740: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c744: 32 80 00 02 bne,a 200c74c <== NOT EXECUTED 200c748: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200c74c: 81 c7 e0 08 ret <== NOT EXECUTED 200c750: 81 e8 00 00 restore <== NOT EXECUTED 02002a38 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002a38: 9d e3 bf 60 save %sp, -160, %sp struct timespec uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 2002a3c: 80 a6 60 00 cmp %i1, 0 2002a40: 02 80 00 6e be 2002bf8 2002a44: 01 00 00 00 nop * 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 ); 2002a48: 40 00 15 08 call 2007e68 <_TOD_Get_uptime> 2002a4c: 90 07 bf e8 add %fp, -24, %o0 _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 2002a50: 92 07 bf e8 add %fp, -24, %o1 2002a54: b4 07 bf e0 add %fp, -32, %i2 2002a58: 11 00 80 8e sethi %hi(0x2023800), %o0 2002a5c: 94 10 00 1a mov %i2, %o2 2002a60: 40 00 1f 9a call 200a8c8 <_Timespec_Subtract> 2002a64: 90 12 21 dc or %o0, 0x1dc, %o0 } } } #endif (*print)( context, "CPU Usage by thread\n" 2002a68: 90 10 00 18 mov %i0, %o0 2002a6c: 13 00 80 63 sethi %hi(0x2018c00), %o1 2002a70: 9f c6 40 00 call %i1 2002a74: 92 12 63 98 or %o1, 0x398, %o1 ! 2018f98 2002a78: 03 00 80 8d sethi %hi(0x2023400), %g1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002a7c: 05 00 80 63 sethi %hi(0x2018c00), %g2 } } } #endif (*print)( context, "CPU Usage by thread\n" 2002a80: a6 10 62 84 or %g1, 0x284, %l3 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002a84: b6 10 a3 e0 or %g2, 0x3e0, %i3 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002a88: 03 00 80 8d sethi %hi(0x2023400), %g1 /* * Print the information */ (*print)( context, 2002a8c: 05 00 80 63 sethi %hi(0x2018c00), %g2 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002a90: a8 07 bf c0 add %fp, -64, %l4 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002a94: b8 10 63 e4 or %g1, 0x3e4, %i4 /* * Print the information */ (*print)( context, 2002a98: ba 10 a3 f8 or %g2, 0x3f8, %i5 2002a9c: aa 07 bf d8 add %fp, -40, %l5 _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002aa0: ae 07 bf f4 add %fp, -12, %l7 2002aa4: ac 07 bf f0 add %fp, -16, %l6 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 2002aa8: c2 04 c0 00 ld [ %l3 ], %g1 2002aac: 80 a0 60 00 cmp %g1, 0 2002ab0: 22 80 00 44 be,a 2002bc0 2002ab4: a6 04 e0 04 add %l3, 4, %l3 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 2002ab8: e4 00 60 04 ld [ %g1 + 4 ], %l2 if ( information ) { 2002abc: 80 a4 a0 00 cmp %l2, 0 2002ac0: 22 80 00 40 be,a 2002bc0 2002ac4: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { 2002ac8: c2 14 a0 10 lduh [ %l2 + 0x10 ], %g1 2002acc: 86 90 60 00 orcc %g1, 0, %g3 2002ad0: 02 80 00 3b be 2002bbc 2002ad4: a2 10 20 01 mov 1, %l1 the_thread = (Thread_Control *)information->local_table[ i ]; 2002ad8: 10 80 00 17 b 2002b34 2002adc: c4 04 a0 1c ld [ %l2 + 0x1c ], %g2 _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002ae0: 96 10 00 16 mov %l6, %o3 2002ae4: 90 10 00 15 mov %l5, %o0 2002ae8: 40 00 1e e5 call 200a67c <_Timespec_Divide> 2002aec: 92 10 00 1a mov %i2, %o1 /* * Print the information */ (*print)( context, 2002af0: d0 07 bf dc ld [ %fp + -36 ], %o0 2002af4: 40 00 51 51 call 2017038 <.udiv> 2002af8: 92 10 23 e8 mov 0x3e8, %o1 2002afc: d4 07 bf d8 ld [ %fp + -40 ], %o2 2002b00: d8 07 bf f4 ld [ %fp + -12 ], %o4 2002b04: da 07 bf f0 ld [ %fp + -16 ], %o5 2002b08: 96 10 00 08 mov %o0, %o3 2002b0c: 92 10 00 1d mov %i5, %o1 2002b10: 9f c6 40 00 call %i1 2002b14: 90 10 00 18 mov %i0, %o0 2002b18: c6 14 a0 10 lduh [ %l2 + 0x10 ], %g3 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++ ) { 2002b1c: 83 28 e0 10 sll %g3, 0x10, %g1 2002b20: 83 30 60 10 srl %g1, 0x10, %g1 2002b24: 80 a0 40 11 cmp %g1, %l1 2002b28: 2a 80 00 26 bcs,a 2002bc0 2002b2c: a6 04 e0 04 add %l3, 4, %l3 the_thread = (Thread_Control *)information->local_table[ i ]; 2002b30: c4 04 a0 1c ld [ %l2 + 0x1c ], %g2 2002b34: 83 2c 60 02 sll %l1, 2, %g1 2002b38: e0 00 80 01 ld [ %g2 + %g1 ], %l0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002b3c: 94 10 00 14 mov %l4, %o2 2002b40: 92 10 20 0d mov 0xd, %o1 information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 2002b44: 80 a4 20 00 cmp %l0, 0 2002b48: 02 bf ff f5 be 2002b1c 2002b4c: a2 04 60 01 inc %l1 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002b50: 40 00 0f 7e call 2006948 2002b54: d0 04 20 08 ld [ %l0 + 8 ], %o0 (*print)( 2002b58: d4 04 20 08 ld [ %l0 + 8 ], %o2 2002b5c: 90 10 00 18 mov %i0, %o0 2002b60: 92 10 00 1b mov %i3, %o1 2002b64: 9f c6 40 00 call %i1 2002b68: 96 10 00 14 mov %l4, %o3 #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; 2002b6c: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002b70: c6 07 00 00 ld [ %i4 ], %g3 #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; 2002b74: c4 27 bf d8 st %g2, [ %fp + -40 ] 2002b78: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 2002b7c: c2 27 bf dc st %g1, [ %fp + -36 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002b80: c4 00 e0 08 ld [ %g3 + 8 ], %g2 2002b84: c2 04 20 08 ld [ %l0 + 8 ], %g1 2002b88: 80 a0 80 01 cmp %g2, %g1 2002b8c: 32 bf ff d5 bne,a 2002ae0 2002b90: 94 10 00 17 mov %l7, %o2 struct timespec used; _Timespec_Subtract( 2002b94: 92 07 bf e8 add %fp, -24, %o1 2002b98: 94 07 bf d0 add %fp, -48, %o2 2002b9c: 11 00 80 8d sethi %hi(0x2023400), %o0 2002ba0: 40 00 1f 4a call 200a8c8 <_Timespec_Subtract> 2002ba4: 90 12 23 ec or %o0, 0x3ec, %o0 ! 20237ec <_Thread_Time_of_last_context_switch> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 2002ba8: 90 10 00 15 mov %l5, %o0 2002bac: 40 00 1e 9a call 200a614 <_Timespec_Add_to> 2002bb0: 92 07 bf d0 add %fp, -48, %o1 }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002bb4: 10 bf ff cb b 2002ae0 2002bb8: 94 10 00 17 mov %l7, %o2 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++ ) { 2002bbc: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 2002bc0: 03 00 80 8d sethi %hi(0x2023400), %g1 2002bc4: 82 10 62 94 or %g1, 0x294, %g1 ! 2023694 <_Objects_Information_table+0x14> 2002bc8: 80 a4 c0 01 cmp %l3, %g1 2002bcc: 32 bf ff b8 bne,a 2002aac 2002bd0: c2 04 c0 00 ld [ %l3 ], %g1 } } } #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS (*print)( context, "Time since last CPU Usage reset %" PRId32 2002bd4: d0 07 bf e4 ld [ %fp + -28 ], %o0 2002bd8: 40 00 51 18 call 2017038 <.udiv> 2002bdc: 92 10 23 e8 mov 0x3e8, %o1 2002be0: d4 07 bf e0 ld [ %fp + -32 ], %o2 2002be4: 96 10 00 08 mov %o0, %o3 2002be8: 13 00 80 64 sethi %hi(0x2019000), %o1 2002bec: 90 10 00 18 mov %i0, %o0 2002bf0: 9f c6 40 00 call %i1 2002bf4: 92 12 60 10 or %o1, 0x10, %o1 2002bf8: 81 c7 e0 08 ret 2002bfc: 81 e8 00 00 restore 0200c27c : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { 200c27c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) 200c280: 11 00 80 57 sethi %hi(0x2015c00), %o0 <== NOT EXECUTED 200c284: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200c288: 40 00 01 29 call 200c72c <== NOT EXECUTED 200c28c: 90 12 20 44 or %o0, 0x44, %o0 <== NOT EXECUTED 200c290: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200c294: 02 80 00 05 be 200c2a8 <== NOT EXECUTED 200c298: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200c29c: 40 00 02 b7 call 200cd78 <__errno> <== NOT EXECUTED 200c2a0: 01 00 00 00 nop <== NOT EXECUTED 200c2a4: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200c2a8: 81 c7 e0 08 ret <== NOT EXECUTED 200c2ac: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 02007e40 : int rtems_error( int error_flag, const char *printf_format, ... ) { 2007e40: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 2007e44: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 2007e48: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007e4c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007e50: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2007e54: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 2007e58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2007e5c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007e60: 7f ff ff 71 call 2007c24 <== NOT EXECUTED 2007e64: d4 27 bf f4 st %o2, [ %fp + -12 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 2007e68: 81 c7 e0 08 ret <== NOT EXECUTED 2007e6c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02001f60 : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 2001f60: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 2001f64: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2001f68: 02 80 00 28 be 2002008 <== NOT EXECUTED 2001f6c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 2001f70: c8 06 60 08 ld [ %i1 + 8 ], %g4 <== NOT EXECUTED 2001f74: da 01 00 00 ld [ %g4 ], %o5 <== NOT EXECUTED 2001f78: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED 2001f7c: 02 80 00 1d be 2001ff0 <== NOT EXECUTED 2001f80: 11 00 80 55 sethi %hi(0x2015400), %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; 2001f84: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED 2001f88: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED 2001f8c: c4 06 60 04 ld [ %i1 + 4 ], %g2 <== NOT EXECUTED 2001f90: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED 2001f94: c4 27 bf ec st %g2, [ %fp + -20 ] <== NOT EXECUTED 2001f98: c8 27 bf f0 st %g4, [ %fp + -16 ] <== NOT EXECUTED 2001f9c: c6 27 bf f4 st %g3, [ %fp + -12 ] <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 2001fa0: b2 07 bf e8 add %fp, -24, %i1 <== NOT EXECUTED 2001fa4: 90 12 23 90 or %o0, 0x390, %o0 <== NOT EXECUTED 2001fa8: 9f c3 40 00 call %o5 <== NOT EXECUTED 2001fac: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if (result != 0){ 2001fb0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2001fb4: 12 80 00 0d bne 2001fe8 <== NOT EXECUTED 2001fb8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 2001fbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001fc0: 02 80 00 16 be 2002018 <== NOT EXECUTED 2001fc4: 01 00 00 00 nop <== NOT EXECUTED 2001fc8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001fcc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001fd0: 02 80 00 12 be 2002018 <== NOT EXECUTED 2001fd4: 01 00 00 00 nop <== NOT EXECUTED 2001fd8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001fdc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED return result; } 2001fe0: 81 c7 e0 08 ret <== NOT EXECUTED 2001fe4: 81 e8 00 00 restore <== 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){ 2001fe8: 81 c7 e0 08 ret <== NOT EXECUTED 2001fec: 91 e8 3f ff restore %g0, -1, %o0 <== 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 ); 2001ff0: 40 00 2b 62 call 200cd78 <__errno> <== NOT EXECUTED 2001ff4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001ff8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001ffc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002000: 81 c7 e0 08 ret <== NOT EXECUTED 2002004: 81 e8 00 00 restore <== NOT EXECUTED { rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002008: 40 00 2b 5c call 200cd78 <__errno> <== NOT EXECUTED 200200c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002010: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2002014: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002018: 81 c7 e0 08 ret <== NOT EXECUTED 200201c: 81 e8 00 00 restore <== NOT EXECUTED 02002020 : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002020: 9d e3 bf 98 save %sp, -104, %sp /* * Verify Input parameters. */ if ( !pathname ) 2002024: 80 a6 20 00 cmp %i0, 0 2002028: 02 80 00 50 be 2002168 200202c: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 2002030: 02 80 00 54 be 2002180 2002034: 01 00 00 00 nop /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2002038: c2 4e 00 00 ldsb [ %i0 ], %g1 200203c: 80 a0 60 2f cmp %g1, 0x2f 2002040: 02 80 00 06 be 2002058 2002044: 80 a0 60 5c cmp %g1, 0x5c 2002048: 02 80 00 04 be 2002058 <== NOT EXECUTED 200204c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002050: 12 80 00 27 bne 20020ec <== NOT EXECUTED 2002054: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 2002058: 03 00 80 5a sethi %hi(0x2016800), %g1 200205c: c6 00 61 64 ld [ %g1 + 0x164 ], %g3 ! 2016964 2002060: 88 10 20 01 mov 1, %g4 2002064: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 2002068: c2 26 80 00 st %g1, [ %i2 ] 200206c: c4 00 e0 18 ld [ %g3 + 0x18 ], %g2 2002070: c4 26 a0 04 st %g2, [ %i2 + 4 ] 2002074: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 2002078: c2 26 a0 08 st %g1, [ %i2 + 8 ] 200207c: c4 00 e0 20 ld [ %g3 + 0x20 ], %g2 2002080: c4 26 a0 0c st %g2, [ %i2 + 0xc ] if ( !pathloc->ops->evalpath_h ) 2002084: c2 06 a0 08 ld [ %i2 + 8 ], %g1 2002088: c2 00 40 00 ld [ %g1 ], %g1 200208c: 80 a0 60 00 cmp %g1, 0 2002090: 02 80 00 30 be 2002150 2002094: 90 06 00 04 add %i0, %g4, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 2002098: 92 10 00 19 mov %i1, %o1 200209c: 9f c0 40 00 call %g1 20020a0: 94 10 00 1a mov %i2, %o2 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 20020a4: b0 92 20 00 orcc %o0, 0, %i0 20020a8: 12 80 00 0f bne 20020e4 20020ac: 80 a6 e0 00 cmp %i3, 0 20020b0: 02 80 00 38 be 2002190 20020b4: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 20020b8: c4 06 a0 08 ld [ %i2 + 8 ], %g2 20020bc: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20020c0: 80 a0 60 00 cmp %g1, 0 20020c4: 22 80 00 1e be,a 200213c 20020c8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 20020cc: 9f c0 40 00 call %g1 20020d0: 90 10 00 1a mov %i2, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 20020d4: 90 02 3f fd add %o0, -3, %o0 20020d8: 80 a2 20 01 cmp %o0, 1 20020dc: 28 80 00 0f bleu,a 2002118 20020e0: c4 06 a0 08 ld [ %i2 + 8 ], %g2 <== NOT EXECUTED } } return result; } 20020e4: 81 c7 e0 08 ret 20020e8: 81 e8 00 00 restore /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 20020ec: c6 00 61 64 ld [ %g1 + 0x164 ], %g3 <== NOT EXECUTED 20020f0: 88 10 20 00 clr %g4 <== NOT EXECUTED 20020f4: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 20020f8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 20020fc: c4 00 e0 08 ld [ %g3 + 8 ], %g2 <== NOT EXECUTED 2002100: c4 26 a0 04 st %g2, [ %i2 + 4 ] <== NOT EXECUTED 2002104: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 2002108: c2 26 a0 08 st %g1, [ %i2 + 8 ] <== NOT EXECUTED 200210c: c4 00 e0 10 ld [ %g3 + 0x10 ], %g2 <== NOT EXECUTED 2002110: 10 bf ff dd b 2002084 <== NOT EXECUTED 2002114: c4 26 a0 0c st %g2, [ %i2 + 0xc ] <== 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 ){ 2002118: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 <== NOT EXECUTED 200211c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002120: 02 80 00 06 be 2002138 <== NOT EXECUTED 2002124: 90 10 00 1a mov %i2, %o0 <== 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 ); 2002128: 9f c0 40 00 call %g1 <== NOT EXECUTED 200212c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED } } return result; } 2002130: 81 c7 e0 08 ret <== NOT EXECUTED 2002134: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 2002138: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200213c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002140: 02 80 00 04 be 2002150 <== NOT EXECUTED 2002144: 01 00 00 00 nop <== NOT EXECUTED 2002148: 9f c0 40 00 call %g1 <== NOT EXECUTED 200214c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002150: 40 00 2b 0a call 200cd78 <__errno> <== NOT EXECUTED 2002154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002158: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200215c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002160: 81 c7 e0 08 ret <== NOT EXECUTED 2002164: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 2002168: 40 00 2b 04 call 200cd78 <__errno> <== NOT EXECUTED 200216c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002170: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002174: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002178: 81 c7 e0 08 ret <== NOT EXECUTED 200217c: 81 e8 00 00 restore <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002180: 40 00 2a fe call 200cd78 <__errno> <== NOT EXECUTED 2002184: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002188: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 200218c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002190: 81 c7 e0 08 ret 2002194: 81 e8 00 00 restore 0200a5d0 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 200a5d0: 9d e3 bf 80 save %sp, -128, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 200a5d4: 25 00 80 5a sethi %hi(0x2016800), %l2 200a5d8: c4 04 a1 64 ld [ %l2 + 0x164 ], %g2 ! 2016964 200a5dc: 82 10 20 12 mov 0x12, %g1 init_fs_mount_table(); 200a5e0: 40 00 02 51 call 200af24 200a5e4: c2 30 a0 24 sth %g1, [ %g2 + 0x24 ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 200a5e8: 03 00 80 54 sethi %hi(0x2015000), %g1 200a5ec: c4 00 62 cc ld [ %g1 + 0x2cc ], %g2 ! 20152cc 200a5f0: 80 a0 a0 00 cmp %g2, 0 200a5f4: 02 80 00 3d be 200a6e8 200a5f8: 03 00 80 59 sethi %hi(0x2016400), %g1 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 200a5fc: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 ! 2016450 status = mount( 200a600: 90 07 bf f4 add %fp, -12, %o0 200a604: d8 00 a0 0c ld [ %g2 + 0xc ], %o4 200a608: d2 00 80 00 ld [ %g2 ], %o1 200a60c: d4 00 a0 04 ld [ %g2 + 4 ], %o2 200a610: 40 00 02 4d call 200af44 200a614: d6 00 a0 08 ld [ %g2 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 200a618: 80 a2 3f ff cmp %o0, -1 200a61c: 02 80 00 36 be 200a6f4 200a620: c8 07 bf f4 ld [ %fp + -12 ], %g4 rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 200a624: c2 04 a1 64 ld [ %l2 + 0x164 ], %g1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200a628: c4 01 20 18 ld [ %g4 + 0x18 ], %g2 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 200a62c: c0 30 60 26 clrh [ %g1 + 0x26 ] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200a630: c4 20 60 14 st %g2, [ %g1 + 0x14 ] 200a634: c6 01 20 1c ld [ %g4 + 0x1c ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a638: a0 07 bf e4 add %fp, -28, %l0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200a63c: c6 20 60 18 st %g3, [ %g1 + 0x18 ] 200a640: c4 01 20 20 ld [ %g4 + 0x20 ], %g2 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a644: 23 00 80 56 sethi %hi(0x2015800), %l1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200a648: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 200a64c: c6 01 20 24 ld [ %g4 + 0x24 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a650: 92 10 20 00 clr %o1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200a654: c6 20 60 20 st %g3, [ %g1 + 0x20 ] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a658: 94 10 00 10 mov %l0, %o2 200a65c: 96 10 20 00 clr %o3 200a660: 7f ff de 70 call 2002020 200a664: 90 14 62 d0 or %l1, 0x2d0, %o0 rtems_filesystem_root = loc; 200a668: c4 04 a1 64 ld [ %l2 + 0x164 ], %g2 200a66c: c2 07 bf e4 ld [ %fp + -28 ], %g1 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a670: 94 10 00 10 mov %l0, %o2 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 200a674: c2 20 a0 14 st %g1, [ %g2 + 0x14 ] 200a678: c2 07 bf e8 ld [ %fp + -24 ], %g1 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a67c: 92 10 20 00 clr %o1 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 200a680: c2 20 a0 18 st %g1, [ %g2 + 0x18 ] 200a684: c2 07 bf ec ld [ %fp + -20 ], %g1 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a688: 96 10 20 00 clr %o3 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 200a68c: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] 200a690: c2 07 bf f0 ld [ %fp + -16 ], %g1 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 200a694: 90 14 62 d0 or %l1, 0x2d0, %o0 200a698: 7f ff de 62 call 2002020 200a69c: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] rtems_filesystem_current = loc; 200a6a0: c2 07 bf e4 ld [ %fp + -28 ], %g1 200a6a4: c6 04 a1 64 ld [ %l2 + 0x164 ], %g3 * * 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); 200a6a8: 11 00 80 56 sethi %hi(0x2015800), %o0 /* 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; 200a6ac: c2 20 e0 04 st %g1, [ %g3 + 4 ] 200a6b0: c2 07 bf e8 ld [ %fp + -24 ], %g1 * * 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); 200a6b4: 90 12 22 d8 or %o0, 0x2d8, %o0 /* 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; 200a6b8: c2 20 e0 08 st %g1, [ %g3 + 8 ] 200a6bc: c2 07 bf ec ld [ %fp + -20 ], %g1 * * 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); 200a6c0: 92 10 21 ff mov 0x1ff, %o1 /* 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; 200a6c4: c2 20 e0 0c st %g1, [ %g3 + 0xc ] 200a6c8: c4 07 bf f0 ld [ %fp + -16 ], %g2 * * 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); 200a6cc: 40 00 02 0c call 200aefc 200a6d0: c4 20 e0 10 st %g2, [ %g3 + 0x10 ] if ( status != 0 ) 200a6d4: 80 a2 20 00 cmp %o0, 0 200a6d8: 12 80 00 0a bne 200a700 200a6dc: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 200a6e0: 81 c7 e0 08 ret 200a6e4: 81 e8 00 00 restore /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 200a6e8: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 200a6ec: 7f ff ed fd call 2005ee0 <== NOT EXECUTED 200a6f0: 90 12 20 01 or %o0, 1, %o0 ! abcd0001 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 200a6f4: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 200a6f8: 7f ff ed fa call 2005ee0 <== NOT EXECUTED 200a6fc: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 200a700: 7f ff ed f8 call 2005ee0 <== NOT EXECUTED 200a704: 90 12 20 03 or %o0, 3, %o0 <== NOT EXECUTED 200a708: 01 00 00 00 nop 02022c0c : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 2022c0c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2022c10: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 2022c14: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 2022c18: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 2022c1c: 81 c3 e0 08 retl <== NOT EXECUTED 2022c20: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02001dc4 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 2001dc4: 9d e3 bf 88 save %sp, -120, %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 ); 2001dc8: 92 10 20 00 clr %o1 <== NOT EXECUTED 2001dcc: a2 07 bf e8 add %fp, -24, %l1 <== NOT EXECUTED 2001dd0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001dd4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2001dd8: 40 00 00 92 call 2002020 <== NOT EXECUTED 2001ddc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001de0: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== 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 ); 2001de4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001de8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2001dec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001df0: 02 80 00 28 be 2001e90 <== NOT EXECUTED 2001df4: e4 07 bf e8 ld [ %fp + -24 ], %l2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 2001df8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001dfc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2001e00: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2001e04: 02 80 00 0e be 2001e3c <== NOT EXECUTED 2001e08: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001e0c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2001e10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e14: 02 80 00 2b be 2001ec0 <== NOT EXECUTED 2001e18: 01 00 00 00 nop <== NOT EXECUTED 2001e1c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001e20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e24: 02 80 00 27 be 2001ec0 <== NOT EXECUTED 2001e28: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2001e2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e30: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED 2001e34: 81 c7 e0 08 ret <== NOT EXECUTED 2001e38: 81 e8 00 00 restore <== 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 ) { 2001e3c: 12 bf ff f5 bne 2001e10 <== NOT EXECUTED 2001e40: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 2001e44: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 2001e48: 40 00 30 ee call 200e200 <== NOT EXECUTED 2001e4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001e50: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 2001e54: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001e58: c6 07 bf f0 ld [ %fp + -16 ], %g3 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; 2001e5c: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 2001e60: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001e64: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2001e68: 02 80 00 18 be 2001ec8 <== NOT EXECUTED 2001e6c: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED 2001e70: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 2001e74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e78: 02 80 00 14 be 2001ec8 <== NOT EXECUTED 2001e7c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2001e80: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e84: b0 10 20 00 clr %i0 <== NOT EXECUTED 2001e88: 81 c7 e0 08 ret <== NOT EXECUTED 2001e8c: 81 e8 00 00 restore <== 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 ); 2001e90: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2001e94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e98: 02 80 00 04 be 2001ea8 <== NOT EXECUTED 2001e9c: 01 00 00 00 nop <== NOT EXECUTED 2001ea0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001ea4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2001ea8: 40 00 2b b4 call 200cd78 <__errno> <== NOT EXECUTED 2001eac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001eb0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001eb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001eb8: 81 c7 e0 08 ret <== NOT EXECUTED 2001ebc: 81 e8 00 00 restore <== 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 ); 2001ec0: 81 c7 e0 08 ret <== NOT EXECUTED 2001ec4: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 2001ec8: 81 c7 e0 08 ret <== NOT EXECUTED 2001ecc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02006ef8 : { /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 2006ef8: 9a 92 60 00 orcc %o1, 0, %o5 2006efc: 02 80 00 4d be 2007030 2006f00: 80 a2 a0 00 cmp %o2, 0 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) 2006f04: 02 80 00 4c be 2007034 2006f08: 82 10 20 09 mov 9, %g1 return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 2006f0c: c2 03 40 00 ld [ %o5 ], %g1 2006f10: 80 a0 60 00 cmp %g1, 0 2006f14: 22 80 00 44 be,a 2007024 2006f18: c2 03 60 04 ld [ %o5 + 4 ], %g1 *registered_major = 0; /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 2006f1c: 03 00 80 6c sethi %hi(0x201b000), %g1 return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) return RTEMS_INVALID_ADDRESS; *registered_major = 0; 2006f20: c0 22 80 00 clr [ %o2 ] /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 2006f24: c8 00 61 10 ld [ %g1 + 0x110 ], %g4 2006f28: 80 a1 00 08 cmp %g4, %o0 2006f2c: 08 80 00 39 bleu 2007010 2006f30: 82 10 20 0a mov 0xa, %g1 /* * Test for initialise/open being present to indicate the driver slot is * in use. */ if ( major == 0 ) { 2006f34: 80 a2 20 00 cmp %o0, 0 2006f38: 12 80 00 29 bne 2006fdc 2006f3c: 03 00 80 6c sethi %hi(0x201b000), %g1 bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 2006f40: 90 81 3f ff addcc %g4, -1, %o0 2006f44: 02 80 00 35 be 2007018 2006f48: 05 00 80 6c sethi %hi(0x201b000), %g2 2006f4c: c6 00 a1 14 ld [ %g2 + 0x114 ], %g3 ! 201b114 <_IO_Driver_address_table> 2006f50: 85 29 20 03 sll %g4, 3, %g2 2006f54: 83 29 20 05 sll %g4, 5, %g1 2006f58: 82 20 40 02 sub %g1, %g2, %g1 2006f5c: 82 00 7f e8 add %g1, -24, %g1 2006f60: 10 80 00 05 b 2006f74 2006f64: 84 00 c0 01 add %g3, %g1, %g2 2006f68: 90 82 3f ff addcc %o0, -1, %o0 2006f6c: 02 80 00 2b be 2007018 2006f70: 84 00 bf e8 add %g2, -24, %g2 if ( !_IO_Driver_address_table[major].initialization_entry && 2006f74: c2 00 80 00 ld [ %g2 ], %g1 2006f78: 80 a0 60 00 cmp %g1, 0 2006f7c: 12 bf ff fb bne 2006f68 2006f80: 88 10 00 02 mov %g2, %g4 2006f84: c2 00 a0 04 ld [ %g2 + 4 ], %g1 2006f88: 80 a0 60 00 cmp %g1, 0 2006f8c: 32 bf ff f8 bne,a 2006f6c 2006f90: 90 82 3f ff addcc %o0, -1, %o0 <== 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; 2006f94: c2 03 40 00 ld [ %o5 ], %g1 *registered_major = major; 2006f98: d0 22 80 00 st %o0, [ %o2 ] 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; 2006f9c: c2 21 00 00 st %g1, [ %g4 ] 2006fa0: c4 03 60 04 ld [ %o5 + 4 ], %g2 *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 2006fa4: 92 10 20 00 clr %o1 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; 2006fa8: c4 21 20 04 st %g2, [ %g4 + 4 ] 2006fac: c2 03 60 08 ld [ %o5 + 8 ], %g1 *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 2006fb0: 94 10 20 00 clr %o2 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; 2006fb4: c2 21 20 08 st %g1, [ %g4 + 8 ] 2006fb8: c4 03 60 0c ld [ %o5 + 0xc ], %g2 2006fbc: c4 21 20 0c st %g2, [ %g4 + 0xc ] 2006fc0: c2 03 60 10 ld [ %o5 + 0x10 ], %g1 2006fc4: c2 21 20 10 st %g1, [ %g4 + 0x10 ] 2006fc8: c4 03 60 14 ld [ %o5 + 0x14 ], %g2 2006fcc: c4 21 20 14 st %g2, [ %g4 + 0x14 ] *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 2006fd0: 82 13 c0 00 mov %o7, %g1 2006fd4: 7f ff ff 48 call 2006cf4 2006fd8: 9e 10 40 00 mov %g1, %o7 if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 2006fdc: c8 00 61 14 ld [ %g1 + 0x114 ], %g4 2006fe0: 85 2a 20 03 sll %o0, 3, %g2 2006fe4: 83 2a 20 05 sll %o0, 5, %g1 2006fe8: 82 20 40 02 sub %g1, %g2, %g1 2006fec: c6 01 00 01 ld [ %g4 + %g1 ], %g3 2006ff0: 80 a0 e0 00 cmp %g3, 0 2006ff4: 12 80 00 06 bne 200700c 2006ff8: 88 01 00 01 add %g4, %g1, %g4 2006ffc: c2 01 20 04 ld [ %g4 + 4 ], %g1 <== NOT EXECUTED 2007000: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007004: 22 bf ff e5 be,a 2006f98 <== NOT EXECUTED 2007008: c2 03 40 00 ld [ %o5 ], %g1 <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 200700c: 82 10 20 0c mov 0xc, %g1 } 2007010: 81 c3 e0 08 retl 2007014: 90 10 00 01 mov %g1, %o0 _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 2007018: 82 10 20 05 mov 5, %g1 } 200701c: 81 c3 e0 08 retl 2007020: 90 10 00 01 mov %g1, %o0 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 2007024: 80 a0 60 00 cmp %g1, 0 2007028: 12 bf ff be bne 2006f20 200702c: 03 00 80 6c sethi %hi(0x201b000), %g1 _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 2007030: 82 10 20 09 mov 9, %g1 } 2007034: 81 c3 e0 08 retl 2007038: 90 10 00 01 mov %g1, %o0 02008324 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 2008324: 9d e3 bf 98 save %sp, -104, %sp uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 2008328: 80 a6 20 00 cmp %i0, 0 200832c: 02 80 00 23 be 20083b8 2008330: 03 00 80 8d sethi %hi(0x2023400), %g1 return; 2008334: a4 10 62 84 or %g1, 0x284, %l2 ! 2023684 <_Objects_Information_table+0x4> 2008338: a6 04 a0 10 add %l2, 0x10, %l3 for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 200833c: c2 04 80 00 ld [ %l2 ], %g1 2008340: 80 a0 60 00 cmp %g1, 0 2008344: 22 80 00 1a be,a 20083ac 2008348: a4 04 a0 04 add %l2, 4, %l2 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 200834c: e2 00 60 04 ld [ %g1 + 4 ], %l1 if ( information ) { 2008350: 80 a4 60 00 cmp %l1, 0 2008354: 22 80 00 16 be,a 20083ac 2008358: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { 200835c: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 2008360: 86 90 60 00 orcc %g1, 0, %g3 2008364: 22 80 00 12 be,a 20083ac 2008368: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED 200836c: a0 10 20 01 mov 1, %l0 the_thread = (Thread_Control *)information->local_table[ i ]; 2008370: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 2008374: 83 2c 20 02 sll %l0, 2, %g1 2008378: d0 00 80 01 ld [ %g2 + %g1 ], %o0 if ( !the_thread ) 200837c: 80 a2 20 00 cmp %o0, 0 2008380: 02 80 00 05 be 2008394 2008384: a0 04 20 01 inc %l0 continue; (*routine)(the_thread); 2008388: 9f c6 00 00 call %i0 200838c: 01 00 00 00 nop 2008390: c6 14 60 10 lduh [ %l1 + 0x10 ], %g3 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++ ) { 2008394: 83 28 e0 10 sll %g3, 0x10, %g1 2008398: 83 30 60 10 srl %g1, 0x10, %g1 200839c: 80 a0 40 10 cmp %g1, %l0 20083a0: 3a bf ff f5 bcc,a 2008374 20083a4: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 20083a8: a4 04 a0 04 add %l2, 4, %l2 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 20083ac: 80 a4 80 13 cmp %l2, %l3 20083b0: 32 bf ff e4 bne,a 2008340 20083b4: c2 04 80 00 ld [ %l2 ], %g1 20083b8: 81 c7 e0 08 ret 20083bc: 81 e8 00 00 restore 0200ac38 : * 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 ) { 200ac38: 9d e3 bf 90 save %sp, -112, %sp rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 200ac3c: 23 00 80 5c sethi %hi(0x2017000), %l1 200ac40: d0 04 60 d4 ld [ %l1 + 0xd4 ], %o0 ! 20170d4 200ac44: 92 10 20 00 clr %o1 200ac48: 7f ff ea e5 call 20057dc 200ac4c: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 200ac50: 21 00 80 5c sethi %hi(0x2017000), %l0 200ac54: c4 04 20 d0 ld [ %l0 + 0xd0 ], %g2 ! 20170d0 200ac58: 80 a0 a0 00 cmp %g2, 0 200ac5c: 12 80 00 07 bne 200ac78 200ac60: 03 00 80 5c sethi %hi(0x2017000), %g1 } failed: iop = 0; done: 200ac64: b0 10 20 00 clr %i0 rtems_semaphore_release( rtems_libio_semaphore ); 200ac68: 7f ff eb 25 call 20058fc 200ac6c: d0 04 60 d4 ld [ %l1 + 0xd4 ], %o0 return iop; } 200ac70: 81 c7 e0 08 ret 200ac74: 81 e8 00 00 restore rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create( 200ac78: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 200ac7c: 92 10 20 01 mov 1, %o1 200ac80: 86 20 80 03 sub %g2, %g3, %g3 200ac84: 87 38 e0 02 sra %g3, 2, %g3 200ac88: 83 28 e0 02 sll %g3, 2, %g1 200ac8c: 85 28 e0 06 sll %g3, 6, %g2 200ac90: 84 20 80 01 sub %g2, %g1, %g2 200ac94: 83 28 a0 06 sll %g2, 6, %g1 200ac98: 82 20 40 02 sub %g1, %g2, %g1 200ac9c: 85 28 60 0c sll %g1, 0xc, %g2 200aca0: 82 00 40 02 add %g1, %g2, %g1 200aca4: 82 00 40 03 add %g1, %g3, %g1 200aca8: 83 28 60 04 sll %g1, 4, %g1 200acac: 82 20 40 03 sub %g1, %g3, %g1 200acb0: 83 28 60 02 sll %g1, 2, %g1 200acb4: 86 20 c0 01 sub %g3, %g1, %g3 200acb8: 94 10 20 54 mov 0x54, %o2 200acbc: 96 10 20 00 clr %o3 200acc0: 11 13 10 92 sethi %hi(0x4c424800), %o0 200acc4: 98 07 bf f4 add %fp, -12, %o4 200acc8: 90 12 21 00 or %o0, 0x100, %o0 200accc: 7f ff ea 1d call 2005540 200acd0: 90 10 c0 08 or %g3, %o0, %o0 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) 200acd4: 80 a2 20 00 cmp %o0, 0 200acd8: 32 bf ff e4 bne,a 200ac68 200acdc: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 200ace0: f0 04 20 d0 ld [ %l0 + 0xd0 ], %i0 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; 200ace4: 84 10 21 00 mov 0x100, %g2 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; 200ace8: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200acec: c0 26 20 20 clr [ %i0 + 0x20 ] 200acf0: c0 26 00 00 clr [ %i0 ] 200acf4: c0 26 20 04 clr [ %i0 + 4 ] 200acf8: c0 26 20 08 clr [ %i0 + 8 ] 200acfc: c0 26 20 10 clr [ %i0 + 0x10 ] 200ad00: c0 26 20 14 clr [ %i0 + 0x14 ] 200ad04: c0 26 20 18 clr [ %i0 + 0x18 ] 200ad08: c0 26 20 1c clr [ %i0 + 0x1c ] 200ad0c: c0 26 20 24 clr [ %i0 + 0x24 ] 200ad10: c0 26 20 2c clr [ %i0 + 0x2c ] 200ad14: c0 26 20 30 clr [ %i0 + 0x30 ] 200ad18: c0 26 20 28 clr [ %i0 + 0x28 ] iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; rtems_libio_iop_freelist = next; 200ad1c: c2 24 20 d0 st %g1, [ %l0 + 0xd0 ] goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 200ad20: c2 07 bf f4 ld [ %fp + -12 ], %g1 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; 200ad24: c4 26 20 0c st %g2, [ %i0 + 0xc ] iop->sem = sema; 200ad28: 10 bf ff d0 b 200ac68 200ad2c: c2 26 20 20 st %g1, [ %i0 + 0x20 ] 02002198 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 2002198: 9d e3 bf 98 save %sp, -104, %sp rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 200219c: 21 00 80 59 sethi %hi(0x2016400), %l0 20021a0: d0 04 20 48 ld [ %l0 + 0x48 ], %o0 ! 2016448 20021a4: 80 a2 20 00 cmp %o0, 0 20021a8: 22 80 00 1e be,a 2002220 20021ac: 11 13 10 92 sethi %hi(0x4c424800), %o0 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 20021b0: 40 00 21 57 call 200a70c 20021b4: 92 10 20 34 mov 0x34, %o1 20021b8: 03 00 80 5c sethi %hi(0x2017000), %g1 20021bc: d0 20 60 cc st %o0, [ %g1 + 0xcc ] ! 20170cc sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 20021c0: 80 a2 20 00 cmp %o0, 0 20021c4: 02 80 00 23 be 2002250 20021c8: 84 10 00 08 mov %o0, %g2 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++) 20021cc: c8 04 20 48 ld [ %l0 + 0x48 ], %g4 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; 20021d0: 03 00 80 5c sethi %hi(0x2017000), %g1 for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 20021d4: 80 a1 20 01 cmp %g4, 1 20021d8: 02 80 00 10 be 2002218 20021dc: d0 20 60 d0 st %o0, [ %g1 + 0xd0 ] 20021e0: 82 02 20 34 add %o0, 0x34, %g1 20021e4: 86 10 20 01 mov 1, %g3 iop->data1 = iop + 1; 20021e8: c2 20 7f f4 st %g1, [ %g1 + -12 ] 20021ec: 86 00 e0 01 inc %g3 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++) 20021f0: 80 a0 c0 04 cmp %g3, %g4 20021f4: 12 bf ff fd bne 20021e8 20021f8: 82 00 60 34 add %g1, 0x34, %g1 20021fc: 85 28 e0 02 sll %g3, 2, %g2 2002200: 83 28 e0 04 sll %g3, 4, %g1 2002204: 82 20 40 02 sub %g1, %g2, %g1 2002208: 82 00 40 03 add %g1, %g3, %g1 200220c: 83 28 60 02 sll %g1, 2, %g1 2002210: 82 00 7f cc add %g1, -52, %g1 2002214: 84 02 00 01 add %o0, %g1, %g2 iop->data1 = iop + 1; iop->data1 = NULL; 2002218: c0 20 a0 28 clr [ %g2 + 0x28 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 200221c: 11 13 10 92 sethi %hi(0x4c424800), %o0 2002220: 92 10 20 01 mov 1, %o1 2002224: 90 12 21 4f or %o0, 0x14f, %o0 2002228: 94 10 20 54 mov 0x54, %o2 200222c: 96 10 20 00 clr %o3 2002230: 19 00 80 5c sethi %hi(0x2017000), %o4 2002234: 40 00 0c c3 call 2005540 2002238: 98 13 20 d4 or %o4, 0xd4, %o4 ! 20170d4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 200223c: 80 a2 20 00 cmp %o0, 0 2002240: 12 80 00 06 bne 2002258 2002244: 01 00 00 00 nop /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 2002248: 40 00 20 e2 call 200a5d0 200224c: 81 e8 00 00 restore 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); 2002250: 40 00 0f 24 call 2005ee0 <== NOT EXECUTED 2002254: 90 10 20 1a mov 0x1a, %o0 <== 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 ); 2002258: 40 00 0f 22 call 2005ee0 <== NOT EXECUTED 200225c: 01 00 00 00 nop 2002260: 01 00 00 00 nop 0200aad4 : */ int rtems_libio_is_file_open( void *node_access ) { 200aad4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 200aad8: 21 00 80 5c sethi %hi(0x2017000), %l0 <== NOT EXECUTED 200aadc: d0 04 20 d4 ld [ %l0 + 0xd4 ], %o0 ! 20170d4 <== NOT EXECUTED 200aae0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200aae4: 7f ff eb 3e call 20057dc <== NOT EXECUTED 200aae8: 94 10 20 00 clr %o2 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 200aaec: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200aaf0: c8 00 60 48 ld [ %g1 + 0x48 ], %g4 ! 2016448 <== NOT EXECUTED 200aaf4: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 200aaf8: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 200aafc: 02 80 00 0e be 200ab34 <== NOT EXECUTED 200ab00: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 <== NOT EXECUTED 200ab04: 84 10 20 00 clr %g2 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 200ab08: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 200ab0c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 200ab10: 02 80 00 06 be 200ab28 <== NOT EXECUTED 200ab14: 84 00 a0 01 inc %g2 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 200ab18: c2 00 e0 10 ld [ %g3 + 0x10 ], %g1 <== NOT EXECUTED 200ab1c: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 200ab20: 02 80 00 0a be 200ab48 <== NOT EXECUTED 200ab24: d0 04 20 d4 ld [ %l0 + 0xd4 ], %o0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 200ab28: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 200ab2c: 0a bf ff f7 bcs 200ab08 <== NOT EXECUTED 200ab30: 86 00 e0 34 add %g3, 0x34, %g3 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 200ab34: d0 04 20 d4 ld [ %l0 + 0xd4 ], %o0 <== NOT EXECUTED 200ab38: 7f ff eb 71 call 20058fc <== NOT EXECUTED 200ab3c: b0 10 20 00 clr %i0 <== NOT EXECUTED return result; } 200ab40: 81 c7 e0 08 ret <== NOT EXECUTED 200ab44: 81 e8 00 00 restore <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 200ab48: 7f ff eb 6d call 20058fc <== NOT EXECUTED 200ab4c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return result; } 200ab50: 81 c7 e0 08 ret <== NOT EXECUTED 200ab54: 81 e8 00 00 restore <== NOT EXECUTED 0200ab58 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 200ab58: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 200ab5c: 21 00 80 5c sethi %hi(0x2017000), %l0 <== NOT EXECUTED 200ab60: d0 04 20 d4 ld [ %l0 + 0xd4 ], %o0 ! 20170d4 <== NOT EXECUTED 200ab64: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ab68: 7f ff eb 1d call 20057dc <== NOT EXECUTED 200ab6c: 94 10 20 00 clr %o2 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 200ab70: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200ab74: c8 00 60 48 ld [ %g1 + 0x48 ], %g4 ! 2016448 <== NOT EXECUTED 200ab78: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED 200ab7c: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 200ab80: 02 80 00 0e be 200abb8 <== NOT EXECUTED 200ab84: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 <== NOT EXECUTED 200ab88: 84 10 20 00 clr %g2 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 200ab8c: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 200ab90: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 200ab94: 02 80 00 06 be 200abac <== NOT EXECUTED 200ab98: 84 00 a0 01 inc %g2 <== 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 ) { 200ab9c: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 200aba0: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 200aba4: 02 80 00 0a be 200abcc <== NOT EXECUTED 200aba8: d0 04 20 d4 ld [ %l0 + 0xd4 ], %o0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 200abac: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 200abb0: 0a bf ff f7 bcs 200ab8c <== NOT EXECUTED 200abb4: 86 00 e0 34 add %g3, 0x34, %g3 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 200abb8: d0 04 20 d4 ld [ %l0 + 0xd4 ], %o0 <== NOT EXECUTED 200abbc: 7f ff eb 50 call 20058fc <== NOT EXECUTED 200abc0: b0 10 20 00 clr %i0 <== NOT EXECUTED return result; } 200abc4: 81 c7 e0 08 ret <== NOT EXECUTED 200abc8: 81 e8 00 00 restore <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 200abcc: 7f ff eb 4c call 20058fc <== NOT EXECUTED 200abd0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return result; } 200abd4: 81 c7 e0 08 ret <== NOT EXECUTED 200abd8: 81 e8 00 00 restore <== NOT EXECUTED 020221c4 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 20221c4: 9d e3 bf 80 save %sp, -128, %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); 20221c8: 90 10 20 00 clr %o0 <== NOT EXECUTED 20221cc: 92 10 20 00 clr %o1 <== NOT EXECUTED 20221d0: 40 00 05 28 call 2023670 <== NOT EXECUTED 20221d4: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 20221d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20221dc: 12 80 00 37 bne 20222b8 <== NOT EXECUTED 20221e0: 25 00 81 23 sethi %hi(0x2048c00), %l2 <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 20221e4: c4 04 a1 8c ld [ %l2 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED 20221e8: 03 00 81 76 sethi %hi(0x205d800), %g1 <== NOT EXECUTED 20221ec: a6 10 60 d0 or %g1, 0xd0, %l3 ! 205d8d0 <== NOT EXECUTED 20221f0: 80 a0 80 13 cmp %g2, %l3 <== NOT EXECUTED 20221f4: 02 80 00 33 be 20222c0 <== NOT EXECUTED 20221f8: a2 14 a1 8c or %l2, 0x18c, %l1 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 20221fc: d0 04 a1 8c ld [ %l2 + 0x18c ], %o0 <== NOT EXECUTED 2022200: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2022204: 40 00 44 69 call 20333a8 <== NOT EXECUTED 2022208: 94 10 20 40 mov 0x40, %o2 <== NOT EXECUTED rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202220c: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 2022210: c8 00 63 d8 ld [ %g1 + 0x3d8 ], %g4 ! 205d3d8 <== 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*/ 2022214: c4 04 a1 8c ld [ %l2 + 0x18c ], %g2 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2022218: c2 01 20 18 ld [ %g4 + 0x18 ], %g1 <== 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); 202221c: a2 07 bf e4 add %fp, -28, %l1 <== 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; 2022220: c2 20 a0 14 st %g1, [ %g2 + 0x14 ] <== 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*/ 2022224: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2022228: c6 01 20 1c ld [ %g4 + 0x1c ], %g3 <== 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*/ 202222c: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2022230: c6 20 a0 18 st %g3, [ %g2 + 0x18 ] <== NOT EXECUTED 2022234: c2 01 20 20 ld [ %g4 + 0x20 ], %g1 <== 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); 2022238: 21 00 81 0c sethi %hi(0x2043000), %l0 <== 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; 202223c: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED 2022240: c6 01 20 24 ld [ %g4 + 0x24 ], %g3 <== 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); 2022244: 92 10 20 00 clr %o1 <== 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; 2022248: c6 20 a0 20 st %g3, [ %g2 + 0x20 ] <== 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); 202224c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2022250: 96 10 20 00 clr %o3 <== NOT EXECUTED 2022254: 7f ff 88 ea call 20045fc <== NOT EXECUTED 2022258: 90 14 23 78 or %l0, 0x378, %o0 <== NOT EXECUTED rtems_filesystem_root = loc; 202225c: c4 04 a1 8c ld [ %l2 + 0x18c ], %g2 <== NOT EXECUTED 2022260: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 2022264: 90 14 23 78 or %l0, 0x378, %o0 <== NOT EXECUTED * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 2022268: c2 20 a0 14 st %g1, [ %g2 + 0x14 ] <== NOT EXECUTED 202226c: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 2022270: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 2022274: c2 20 a0 18 st %g1, [ %g2 + 0x18 ] <== NOT EXECUTED 2022278: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 202227c: 92 10 20 00 clr %o1 <== NOT EXECUTED * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_root = loc; 2022280: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED 2022284: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 2022288: 96 10 20 00 clr %o3 <== NOT EXECUTED 202228c: 7f ff 88 dc call 20045fc <== NOT EXECUTED 2022290: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] <== NOT EXECUTED rtems_filesystem_current = loc; 2022294: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 2022298: c6 04 a1 8c ld [ %l2 + 0x18c ], %g3 <== NOT EXECUTED 202229c: c2 20 e0 04 st %g1, [ %g3 + 4 ] <== NOT EXECUTED 20222a0: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED 20222a4: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED 20222a8: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20222ac: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED 20222b0: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED 20222b4: c4 20 e0 10 st %g2, [ %g3 + 0x10 ] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 20222b8: 81 c7 e0 08 ret <== NOT EXECUTED 20222bc: 81 e8 00 00 restore <== 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)); 20222c0: 7f ff 8a d1 call 2004e04 <== NOT EXECUTED 20222c4: 90 10 20 40 mov 0x40, %o0 <== NOT EXECUTED if (!tmp) 20222c8: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 20222cc: 02 80 00 0b be 20222f8 <== NOT EXECUTED 20222d0: 92 10 00 11 mov %l1, %o1 <== 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); 20222d4: 90 10 20 00 clr %o0 <== NOT EXECUTED 20222d8: 15 00 80 88 sethi %hi(0x2022000), %o2 <== NOT EXECUTED 20222dc: 40 00 05 fc call 2023acc <== NOT EXECUTED 20222e0: 94 12 a0 98 or %o2, 0x98, %o2 ! 2022098 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 20222e4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 20222e8: 32 80 00 06 bne,a 2022300 <== NOT EXECUTED 20222ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 20222f0: 10 bf ff c3 b 20221fc <== NOT EXECUTED 20222f4: e0 24 a1 8c st %l0, [ %l2 + 0x18c ] <== 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) 20222f8: 81 c7 e0 08 ret <== NOT EXECUTED 20222fc: 91 e8 20 1a restore %g0, 0x1a, %o0 <== 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); 2022300: 7f ff 89 1d call 2004774 <== NOT EXECUTED 2022304: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED 2022308: 81 c7 e0 08 ret <== NOT EXECUTED 202230c: 81 e8 00 00 restore <== NOT EXECUTED 02022110 : * 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) { 2022110: 9d e3 bf 90 save %sp, -112, %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); 2022114: 90 10 20 00 clr %o0 <== NOT EXECUTED 2022118: 92 10 20 00 clr %o1 <== NOT EXECUTED 202211c: 40 00 05 55 call 2023670 <== NOT EXECUTED 2022120: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2022124: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2022128: 12 80 00 13 bne 2022174 <== NOT EXECUTED 202212c: 25 00 81 23 sethi %hi(0x2048c00), %l2 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 2022130: e2 04 a1 8c ld [ %l2 + 0x18c ], %l1 ! 2048d8c <== NOT EXECUTED 2022134: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2022138: c4 04 40 00 ld [ %l1 ], %g2 <== NOT EXECUTED 202213c: 86 14 a1 8c or %l2, 0x18c, %g3 <== NOT EXECUTED 2022140: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2022144: 02 80 00 0e be 202217c <== NOT EXECUTED 2022148: a0 10 00 03 mov %g3, %l0 <== 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, 202214c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022150: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2022154: 40 00 06 b9 call 2023c38 <== NOT EXECUTED 2022158: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 202215c: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2022160: 02 80 00 10 be 20221a0 <== NOT EXECUTED 2022164: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 2022168: 03 00 81 76 sethi %hi(0x205d800), %g1 <== NOT EXECUTED 202216c: 82 10 60 d0 or %g1, 0xd0, %g1 ! 205d8d0 <== NOT EXECUTED 2022170: c2 24 a1 8c st %g1, [ %l2 + 0x18c ] <== NOT EXECUTED return sc; } 2022174: 81 c7 e0 08 ret <== NOT EXECUTED 2022178: 91 e8 00 02 restore %g0, %g2, %o0 <== 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); 202217c: 40 00 06 85 call 2023b90 <== NOT EXECUTED 2022180: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2022184: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2022188: 12 bf ff fb bne 2022174 <== NOT EXECUTED 202218c: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 2022190: 7f ff ff c2 call 2022098 <== NOT EXECUTED 2022194: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 2022198: 10 bf ff ee b 2022150 <== NOT EXECUTED 202219c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 20221a0: 15 00 80 88 sethi %hi(0x2022000), %o2 <== NOT EXECUTED 20221a4: 40 00 06 4a call 2023acc <== NOT EXECUTED 20221a8: 94 12 a0 98 or %o2, 0x98, %o2 ! 2022098 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 20221ac: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 20221b0: 12 bf ff ef bne 202216c <== NOT EXECUTED 20221b4: 03 00 81 76 sethi %hi(0x205d800), %g1 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 20221b8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20221bc: 10 bf ff ee b 2022174 <== NOT EXECUTED 20221c0: c2 24 a1 8c st %g1, [ %l2 + 0x18c ] <== NOT EXECUTED 0200aa78 : */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 200aa78: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 200aa7c: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200aa80: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200aa84: 02 80 00 06 be 200aa9c <== NOT EXECUTED 200aa88: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 200aa8c: 83 30 a0 02 srl %g2, 2, %g1 <== NOT EXECUTED 200aa90: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 200aa94: 12 80 00 0e bne 200aacc <== NOT EXECUTED 200aa98: 90 08 60 01 and %g1, 1, %o0 <== 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 ) { 200aa9c: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200aaa0: 02 80 00 04 be 200aab0 <== NOT EXECUTED 200aaa4: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 200aaa8: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED 200aaac: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 200aab0: 32 80 00 02 bne,a 200aab8 <== NOT EXECUTED 200aab4: 90 12 20 08 or %o0, 8, %o0 <== NOT EXECUTED fcntl_flags |= O_APPEND; } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 200aab8: 80 88 a4 00 btst 0x400, %g2 <== NOT EXECUTED 200aabc: 32 80 00 02 bne,a 200aac4 <== NOT EXECUTED 200aac0: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED fcntl_flags |= O_CREAT; } return fcntl_flags; } 200aac4: 81 c3 e0 08 retl <== NOT EXECUTED 200aac8: 01 00 00 00 nop <== 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) { 200aacc: 10 bf ff f4 b 200aa9c <== NOT EXECUTED 200aad0: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 02004f00 : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 2004f00: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 2004f04: 11 00 81 74 sethi %hi(0x205d000), %o0 <== NOT EXECUTED 2004f08: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2004f0c: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED 2004f10: 40 00 16 70 call 200a8d0 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2004f14: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2004f18: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2004f1c: 02 80 00 08 be 2004f3c <== NOT EXECUTED 2004f20: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 2004f24: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 2004f28: 82 10 63 a8 or %g1, 0x3a8, %g1 ! 205d3a8 <== NOT EXECUTED 2004f2c: d8 18 60 28 ldd [ %g1 + 0x28 ], %o4 <== NOT EXECUTED 2004f30: 86 83 40 02 addcc %o5, %g2, %g3 <== NOT EXECUTED 2004f34: 84 43 20 00 addx %o4, 0, %g2 <== NOT EXECUTED 2004f38: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 2004f3c: 81 c7 e0 08 ret <== NOT EXECUTED 2004f40: 81 e8 00 00 restore <== NOT EXECUTED 02004f44 : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 2004f44: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED size_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 2004f48: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 2004f4c: 02 80 00 13 be 2004f98 <== NOT EXECUTED 2004f50: 11 00 81 74 sethi %hi(0x205d000), %o0 <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 2004f54: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); 2004f58: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2004f5c: 40 00 16 5d call 200a8d0 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2004f60: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 2004f64: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 2004f68: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 2004f6c: 96 10 63 a8 or %g1, 0x3a8, %o3 <== NOT EXECUTED 2004f70: d8 1a e0 20 ldd [ %o3 + 0x20 ], %o4 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 2004f74: c2 02 e0 2c ld [ %o3 + 0x2c ], %g1 <== NOT EXECUTED if (current_depth > s->max_depth) 2004f78: c8 02 e0 18 ld [ %o3 + 0x18 ], %g4 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 2004f7c: 86 83 40 02 addcc %o5, %g2, %g3 <== NOT EXECUTED 2004f80: 84 43 20 00 addx %o4, 0, %g2 <== NOT EXECUTED 2004f84: c4 3a e0 20 std %g2, [ %o3 + 0x20 ] <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 2004f88: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED if (current_depth > s->max_depth) 2004f8c: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 2004f90: 38 80 00 02 bgu,a 2004f98 <== NOT EXECUTED 2004f94: c6 22 e0 18 st %g3, [ %o3 + 0x18 ] <== NOT EXECUTED 2004f98: 81 c7 e0 08 ret <== NOT EXECUTED 2004f9c: 81 e8 00 00 restore <== NOT EXECUTED 02004fa0 : void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 2004fa0: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED 2004fa4: c0 20 63 a8 clr [ %g1 + 0x3a8 ] ! 205d3a8 <== NOT EXECUTED 2004fa8: c0 20 63 ac clr [ %g1 + 0x3ac ] <== NOT EXECUTED 2004fac: 82 10 63 a8 or %g1, 0x3a8, %g1 <== NOT EXECUTED 2004fb0: c0 20 60 28 clr [ %g1 + 0x28 ] <== NOT EXECUTED 2004fb4: c0 20 60 2c clr [ %g1 + 0x2c ] <== NOT EXECUTED 2004fb8: c0 20 60 08 clr [ %g1 + 8 ] <== NOT EXECUTED 2004fbc: c0 20 60 0c clr [ %g1 + 0xc ] <== NOT EXECUTED 2004fc0: c0 20 60 10 clr [ %g1 + 0x10 ] <== NOT EXECUTED 2004fc4: c0 20 60 14 clr [ %g1 + 0x14 ] <== NOT EXECUTED 2004fc8: c0 20 60 18 clr [ %g1 + 0x18 ] <== NOT EXECUTED 2004fcc: c0 20 60 1c clr [ %g1 + 0x1c ] <== NOT EXECUTED 2004fd0: c0 20 60 20 clr [ %g1 + 0x20 ] <== NOT EXECUTED } 2004fd4: 81 c3 e0 08 retl <== NOT EXECUTED 2004fd8: c0 20 60 24 clr [ %g1 + 0x24 ] <== NOT EXECUTED 02004ddc : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 2004ddc: 9d e3 bf 98 save %sp, -104, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 2004de0: a0 96 20 00 orcc %i0, 0, %l0 2004de4: 02 80 00 1f be 2004e60 2004de8: 03 00 80 74 sethi %hi(0x201d000), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 2004dec: c4 00 60 84 ld [ %g1 + 0x84 ], %g2 ! 201d084 <_System_state_Current> 2004df0: 80 a0 a0 03 cmp %g2, 3 2004df4: 02 80 00 16 be 2004e4c 2004df8: c0 24 00 00 clr [ %l0 ] /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 2004dfc: 7f ff fb 7e call 2003bf4 2004e00: b0 10 20 0c mov 0xc, %i0 /* * Perform the aligned allocation requested */ return_this = _Protected_heap_Allocate_aligned( 2004e04: 92 10 00 1a mov %i2, %o1 2004e08: 94 10 00 19 mov %i1, %o2 2004e0c: 11 00 80 73 sethi %hi(0x201cc00), %o0 2004e10: 40 00 13 e4 call 2009da0 <_Protected_heap_Allocate_aligned> 2004e14: 90 12 21 10 or %o0, 0x110, %o0 ! 201cd10 &RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 2004e18: b4 92 20 00 orcc %o0, 0, %i2 2004e1c: 02 80 00 12 be 2004e64 2004e20: 03 00 80 71 sethi %hi(0x201c400), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 2004e24: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 201c604 2004e28: 80 a0 60 00 cmp %g1, 0 2004e2c: 22 80 00 06 be,a 2004e44 2004e30: f4 24 00 00 st %i2, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 2004e34: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2004e38: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004e3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; 2004e40: f4 24 00 00 st %i2, [ %l0 ] <== NOT EXECUTED 2004e44: 81 c7 e0 08 ret 2004e48: 91 e8 20 00 restore %g0, 0, %o0 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 2004e4c: 7f ff fb 50 call 2003b8c 2004e50: 01 00 00 00 nop 2004e54: 80 8a 20 ff btst 0xff, %o0 2004e58: 12 bf ff e9 bne 2004dfc 2004e5c: 01 00 00 00 nop if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 2004e60: b0 10 20 16 mov 0x16, %i0 ! 16 } 2004e64: 81 c7 e0 08 ret 2004e68: 81 e8 00 00 restore 02007e0c : void rtems_panic( const char *printf_format, ... ) { 2007e0c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007e10: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 2007e14: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 2007e18: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 2007e1c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007e20: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007e24: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2007e28: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007e2c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2007e30: 7f ff ff 7d call 2007c24 <== NOT EXECUTED 2007e34: d4 27 bf f4 st %o2, [ %fp + -12 ] <== NOT EXECUTED va_end(arglist); } 2007e38: 81 c7 e0 08 ret <== NOT EXECUTED 2007e3c: 81 e8 00 00 restore <== NOT EXECUTED 02006968 : rtems_status_code rtems_rate_monotonic_period( Objects_Id id, rtems_interval length ) { 2006968: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 200696c: 11 00 80 6f sethi %hi(0x201bc00), %o0 2006970: 92 10 00 18 mov %i0, %o1 2006974: 90 12 20 14 or %o0, 0x14, %o0 2006978: 40 00 09 28 call 2008e18 <_Objects_Get> 200697c: 94 07 bf f4 add %fp, -12, %o2 rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 2006980: c2 07 bf f4 ld [ %fp + -12 ], %g1 2006984: 80 a0 60 00 cmp %g1, 0 2006988: 02 80 00 04 be 2006998 200698c: a2 10 00 08 mov %o0, %l1 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2006990: 81 c7 e0 08 ret 2006994: 91 e8 20 04 restore %g0, 4, %o0 the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 2006998: 25 00 80 6f sethi %hi(0x201bc00), %l2 200699c: c4 02 20 50 ld [ %o0 + 0x50 ], %g2 20069a0: c2 04 a2 54 ld [ %l2 + 0x254 ], %g1 20069a4: 80 a0 80 01 cmp %g2, %g1 20069a8: 02 80 00 06 be 20069c0 20069ac: 80 a6 60 00 cmp %i1, 0 _Thread_Enable_dispatch(); 20069b0: 40 00 0b 9d call 2009824 <_Thread_Enable_dispatch> 20069b4: b0 10 20 17 mov 0x17, %i0 20069b8: 81 c7 e0 08 ret 20069bc: 81 e8 00 00 restore return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 20069c0: 12 80 00 0f bne 20069fc 20069c4: 01 00 00 00 nop switch ( the_period->state ) { 20069c8: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 20069cc: 80 a0 60 00 cmp %g1, 0 20069d0: 02 80 00 07 be 20069ec 20069d4: b0 10 20 0b mov 0xb, %i0 20069d8: 82 00 7f fd add %g1, -3, %g1 20069dc: 80 a0 60 01 cmp %g1, 1 20069e0: 18 80 00 03 bgu 20069ec 20069e4: b0 10 20 00 clr %i0 20069e8: b0 10 20 06 mov 6, %i0 ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 20069ec: 40 00 0b 8e call 2009824 <_Thread_Enable_dispatch> 20069f0: 01 00 00 00 nop 20069f4: 81 c7 e0 08 ret 20069f8: 81 e8 00 00 restore } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 20069fc: 7f ff f0 77 call 2002bd8 2006a00: 01 00 00 00 nop 2006a04: a0 10 00 08 mov %o0, %l0 switch ( the_period->state ) { 2006a08: e6 04 60 38 ld [ %l1 + 0x38 ], %l3 2006a0c: 80 a4 e0 02 cmp %l3, 2 2006a10: 02 80 00 1a be 2006a78 2006a14: 80 a4 e0 04 cmp %l3, 4 2006a18: 02 80 00 32 be 2006ae0 2006a1c: 80 a4 e0 00 cmp %l3, 0 2006a20: 12 bf ff dc bne 2006990 2006a24: 01 00 00 00 nop case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 2006a28: 7f ff f0 70 call 2002be8 2006a2c: 01 00 00 00 nop /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 2006a30: 7f ff ff 58 call 2006790 <_Rate_monotonic_Initiate_statistics> 2006a34: 90 10 00 11 mov %l1, %o0 the_period->state = RATE_MONOTONIC_ACTIVE; 2006a38: 84 10 20 02 mov 2, %g2 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2006a3c: 03 00 80 1b sethi %hi(0x2006c00), %g1 2006a40: 82 10 62 3c or %g1, 0x23c, %g1 ! 2006e3c <_Rate_monotonic_Timeout> the_watchdog->id = id; 2006a44: f0 24 60 30 st %i0, [ %l1 + 0x30 ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006a48: 92 04 60 10 add %l1, 0x10, %o1 2006a4c: 11 00 80 6f sethi %hi(0x201bc00), %o0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2006a50: f2 24 60 1c st %i1, [ %l1 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006a54: 90 12 22 74 or %o0, 0x274, %o0 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2006a58: c0 24 60 18 clr [ %l1 + 0x18 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 2006a5c: c0 24 60 34 clr [ %l1 + 0x34 ] _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 2006a60: f2 24 60 4c st %i1, [ %l1 + 0x4c ] /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); the_period->state = RATE_MONOTONIC_ACTIVE; 2006a64: c4 24 60 38 st %g2, [ %l1 + 0x38 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2006a68: c2 24 60 2c st %g1, [ %l1 + 0x2c ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006a6c: 40 00 11 09 call 200ae90 <_Watchdog_Insert> 2006a70: b0 10 20 00 clr %i0 2006a74: 30 bf ff de b,a 20069ec case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 2006a78: 7f ff ff 62 call 2006800 <_Rate_monotonic_Update_statistics> 2006a7c: 90 10 00 11 mov %l1, %o0 /* * 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; 2006a80: 82 10 20 01 mov 1, %g1 the_period->next_length = length; 2006a84: f2 24 60 4c st %i1, [ %l1 + 0x4c ] /* * 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; 2006a88: c2 24 60 38 st %g1, [ %l1 + 0x38 ] the_period->next_length = length; _ISR_Enable( level ); 2006a8c: 7f ff f0 57 call 2002be8 2006a90: 90 10 00 10 mov %l0, %o0 _Thread_Executing->Wait.id = the_period->Object.id; 2006a94: c2 04 a2 54 ld [ %l2 + 0x254 ], %g1 2006a98: c4 04 60 08 ld [ %l1 + 8 ], %g2 _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 2006a9c: 90 10 00 01 mov %g1, %o0 the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; 2006aa0: c4 20 60 20 st %g2, [ %g1 + 0x20 ] _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 2006aa4: 40 00 0e 14 call 200a2f4 <_Thread_Set_state> 2006aa8: 13 00 00 10 sethi %hi(0x4000), %o1 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 2006aac: 7f ff f0 4b call 2002bd8 2006ab0: 01 00 00 00 nop local_state = the_period->state; 2006ab4: e0 04 60 38 ld [ %l1 + 0x38 ], %l0 the_period->state = RATE_MONOTONIC_ACTIVE; 2006ab8: e6 24 60 38 st %l3, [ %l1 + 0x38 ] _ISR_Enable( level ); 2006abc: 7f ff f0 4b call 2002be8 2006ac0: 01 00 00 00 nop /* * 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 ) 2006ac4: 80 a4 20 03 cmp %l0, 3 2006ac8: 02 80 00 17 be 2006b24 2006acc: d0 04 a2 54 ld [ %l2 + 0x254 ], %o0 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 2006ad0: 40 00 0b 55 call 2009824 <_Thread_Enable_dispatch> 2006ad4: b0 10 20 00 clr %i0 2006ad8: 81 c7 e0 08 ret 2006adc: 81 e8 00 00 restore case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 2006ae0: 7f ff ff 48 call 2006800 <_Rate_monotonic_Update_statistics> 2006ae4: 90 10 00 11 mov %l1, %o0 _ISR_Enable( level ); 2006ae8: 7f ff f0 40 call 2002be8 2006aec: 90 10 00 10 mov %l0, %o0 the_period->state = RATE_MONOTONIC_ACTIVE; 2006af0: 82 10 20 02 mov 2, %g1 2006af4: 92 04 60 10 add %l1, 0x10, %o1 2006af8: 11 00 80 6f sethi %hi(0x201bc00), %o0 2006afc: 90 12 22 74 or %o0, 0x274, %o0 ! 201be74 <_Watchdog_Ticks_chain> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2006b00: f2 24 60 1c st %i1, [ %l1 + 0x1c ] the_period->next_length = length; 2006b04: f2 24 60 4c st %i1, [ %l1 + 0x4c ] */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 2006b08: c2 24 60 38 st %g1, [ %l1 + 0x38 ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006b0c: 40 00 10 e1 call 200ae90 <_Watchdog_Insert> 2006b10: b0 10 20 06 mov 6, %i0 the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 2006b14: 40 00 0b 44 call 2009824 <_Thread_Enable_dispatch> 2006b18: 01 00 00 00 nop 2006b1c: 81 c7 e0 08 ret 2006b20: 81 e8 00 00 restore /* * 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 ); 2006b24: 40 00 0a 27 call 20093c0 <_Thread_Clear_state> <== NOT EXECUTED 2006b28: 13 00 00 10 sethi %hi(0x4000), %o1 <== NOT EXECUTED 2006b2c: 30 bf ff e9 b,a 2006ad0 <== NOT EXECUTED 0202324c : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 202324c: 9d e3 bf 30 save %sp, -208, %sp rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 2023250: 80 a6 60 00 cmp %i1, 0 2023254: 02 80 00 4a be 202337c 2023258: 90 10 00 18 mov %i0, %o0 return; (*print)( context, "Period information by period\n" ); 202325c: 13 00 81 15 sethi %hi(0x2045400), %o1 2023260: 9f c6 40 00 call %i1 2023264: 92 12 63 10 or %o1, 0x310, %o1 ! 2045710 #if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) (*print)( context, "--- CPU times are in seconds ---\n" ); 2023268: 90 10 00 18 mov %i0, %o0 202326c: 13 00 81 15 sethi %hi(0x2045400), %o1 2023270: 9f c6 40 00 call %i1 2023274: 92 12 63 30 or %o1, 0x330, %o1 ! 2045730 #endif #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) (*print)( context, "--- Wall times are in seconds ---\n" ); 2023278: 90 10 00 18 mov %i0, %o0 202327c: 13 00 81 15 sethi %hi(0x2045400), %o1 2023280: 9f c6 40 00 call %i1 2023284: 92 12 63 58 or %o1, 0x358, %o1 ! 2045758 Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 2023288: 90 10 00 18 mov %i0, %o0 202328c: 13 00 81 15 sethi %hi(0x2045400), %o1 2023290: 9f c6 40 00 call %i1 2023294: 92 12 63 80 or %o1, 0x380, %o1 ! 2045780 #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS " " #endif " WALL TIME\n" ); (*print)( context, " " 2023298: 90 10 00 18 mov %i0, %o0 202329c: 13 00 81 15 sethi %hi(0x2045400), %o1 20232a0: 9f c6 40 00 call %i1 20232a4: 92 12 63 d0 or %o1, 0x3d0, %o1 ! 20457d0 /* * 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 ; 20232a8: 03 00 81 76 sethi %hi(0x205d800), %g1 20232ac: a6 10 62 a0 or %g1, 0x2a0, %l3 ! 205daa0 <_Rate_monotonic_Information> 20232b0: e4 04 e0 08 ld [ %l3 + 8 ], %l2 id <= _Rate_monotonic_Information.maximum_id ; 20232b4: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 20232b8: 80 a4 80 01 cmp %l2, %g1 20232bc: 18 80 00 30 bgu 202337c 20232c0: 03 00 81 16 sethi %hi(0x2045800), %g1 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 20232c4: 05 00 81 17 sethi %hi(0x2045c00), %g2 /* * Print part of report line that is not dependent on granularity */ (*print)( context, 20232c8: b6 10 60 20 or %g1, 0x20, %i3 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 20232cc: b8 10 a0 28 or %g2, 0x28, %i4 20232d0: a8 07 bf 98 add %fp, -104, %l4 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 ); 20232d4: ae 07 bf d0 add %fp, -48, %l7 20232d8: ac 07 bf f0 add %fp, -16, %l6 */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 20232dc: ba 07 bf b0 add %fp, -80, %i5 20232e0: aa 07 bf e8 add %fp, -24, %l5 * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 20232e4: 10 80 00 06 b 20232fc 20232e8: b4 07 bf c8 add %fp, -56, %i2 * 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++ ) { 20232ec: a4 04 a0 01 inc %l2 /* * 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 ; 20232f0: 80 a0 40 12 cmp %g1, %l2 20232f4: 0a 80 00 22 bcs 202337c 20232f8: 01 00 00 00 nop id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 20232fc: 90 10 00 12 mov %l2, %o0 2023300: 40 00 2d ea call 202eaa8 2023304: 92 10 00 14 mov %l4, %o1 if ( status != RTEMS_SUCCESSFUL ) 2023308: 80 a2 20 00 cmp %o0, 0 202330c: 32 bf ff f8 bne,a 20232ec 2023310: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 2023314: 92 10 00 17 mov %l7, %o1 2023318: 40 00 2d f9 call 202eafc 202331c: 90 10 00 12 mov %l2, %o0 continue; #endif name[ 0 ] = '\0'; if ( the_status.owner ) { 2023320: d0 07 bf d0 ld [ %fp + -48 ], %o0 2023324: 80 a2 20 00 cmp %o0, 0 2023328: 12 80 00 4b bne 2023454 202332c: c0 2f bf f0 clrb [ %fp + -16 ] /* * Print part of report line that is not dependent on granularity */ (*print)( context, 2023330: d8 1f bf 98 ldd [ %fp + -104 ], %o4 <== NOT EXECUTED 2023334: 94 10 00 12 mov %l2, %o2 2023338: 92 10 00 1b mov %i3, %o1 202333c: 96 10 00 16 mov %l6, %o3 2023340: 9f c6 40 00 call %i1 2023344: 90 10 00 18 mov %i0, %o0 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 2023348: c2 07 bf 98 ld [ %fp + -104 ], %g1 */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 202334c: 94 10 00 15 mov %l5, %o2 2023350: 90 10 00 1d mov %i5, %o0 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 2023354: 80 a0 60 00 cmp %g1, 0 2023358: 12 80 00 0b bne 2023384 202335c: 92 10 00 1c mov %i4, %o1 (*print)( context, "\n" ); 2023360: 9f c6 40 00 call %i1 2023364: 90 10 00 18 mov %i0, %o0 /* * 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 ; 2023368: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 id++ ) { 202336c: a4 04 a0 01 inc %l2 /* * 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 ; 2023370: 80 a0 40 12 cmp %g1, %l2 2023374: 1a bf ff e3 bcc 2023300 2023378: 90 10 00 12 mov %l2, %o0 202337c: 81 c7 e0 08 ret 2023380: 81 e8 00 00 restore */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 2023384: 40 00 06 05 call 2024b98 <_Timespec_Divide_by_integer> 2023388: 92 10 00 01 mov %g1, %o1 &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 202338c: d0 07 bf a4 ld [ %fp + -92 ], %o0 2023390: 40 00 76 aa call 2040e38 <.div> 2023394: 92 10 23 e8 mov 0x3e8, %o1 2023398: a2 10 00 08 mov %o0, %l1 202339c: d0 07 bf ac ld [ %fp + -84 ], %o0 20233a0: 40 00 76 a6 call 2040e38 <.div> 20233a4: 92 10 23 e8 mov 0x3e8, %o1 20233a8: c2 07 bf e8 ld [ %fp + -24 ], %g1 20233ac: a0 10 00 08 mov %o0, %l0 20233b0: d0 07 bf ec ld [ %fp + -20 ], %o0 20233b4: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 20233b8: 40 00 76 a0 call 2040e38 <.div> 20233bc: 92 10 23 e8 mov 0x3e8, %o1 20233c0: d8 07 bf a8 ld [ %fp + -88 ], %o4 20233c4: d4 07 bf a0 ld [ %fp + -96 ], %o2 20233c8: 96 10 00 11 mov %l1, %o3 20233cc: 9a 10 00 10 mov %l0, %o5 20233d0: d0 23 a0 60 st %o0, [ %sp + 0x60 ] 20233d4: 13 00 81 16 sethi %hi(0x2045800), %o1 20233d8: 90 10 00 18 mov %i0, %o0 20233dc: 9f c6 40 00 call %i1 20233e0: 92 12 60 38 or %o1, 0x38, %o1 * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 20233e4: d2 07 bf 98 ld [ %fp + -104 ], %o1 20233e8: 94 10 00 15 mov %l5, %o2 20233ec: 40 00 05 eb call 2024b98 <_Timespec_Divide_by_integer> 20233f0: 90 10 00 1a mov %i2, %o0 &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 20233f4: d0 07 bf bc ld [ %fp + -68 ], %o0 20233f8: 40 00 76 90 call 2040e38 <.div> 20233fc: 92 10 23 e8 mov 0x3e8, %o1 2023400: a2 10 00 08 mov %o0, %l1 2023404: d0 07 bf c4 ld [ %fp + -60 ], %o0 2023408: 40 00 76 8c call 2040e38 <.div> 202340c: 92 10 23 e8 mov 0x3e8, %o1 2023410: c2 07 bf e8 ld [ %fp + -24 ], %g1 2023414: a0 10 00 08 mov %o0, %l0 2023418: d0 07 bf ec ld [ %fp + -20 ], %o0 202341c: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 2023420: 40 00 76 86 call 2040e38 <.div> 2023424: 92 10 23 e8 mov 0x3e8, %o1 2023428: d4 07 bf b8 ld [ %fp + -72 ], %o2 202342c: d8 07 bf c0 ld [ %fp + -64 ], %o4 2023430: d0 23 a0 60 st %o0, [ %sp + 0x60 ] 2023434: 96 10 00 11 mov %l1, %o3 2023438: 9a 10 00 10 mov %l0, %o5 202343c: 90 10 00 18 mov %i0, %o0 2023440: 13 00 81 16 sethi %hi(0x2045800), %o1 2023444: 9f c6 40 00 call %i1 2023448: 92 12 60 58 or %o1, 0x58, %o1 ! 2045858 /* * 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 ; 202344c: 10 bf ff a8 b 20232ec 2023450: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 #endif name[ 0 ] = '\0'; if ( the_status.owner ) { rtems_object_get_name( the_status.owner, sizeof(name), name ); 2023454: 94 10 00 16 mov %l6, %o2 2023458: 7f ff 95 02 call 2008860 202345c: 92 10 20 05 mov 5, %o1 /* * Print part of report line that is not dependent on granularity */ (*print)( context, 2023460: 10 bf ff b5 b 2023334 2023464: d8 1f bf 98 ldd [ %fp + -104 ], %o4 020100c4 : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 20100c4: 9d e3 bf 90 save %sp, -112, %sp 20100c8: a0 10 00 18 mov %i0, %l0 Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Region_Control *the_region; if ( !starting_address ) 20100cc: 80 a6 60 00 cmp %i1, 0 20100d0: 02 80 00 28 be 2010170 20100d4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 20100d8: 23 00 80 c3 sethi %hi(0x2030c00), %l1 20100dc: 40 00 09 12 call 2012524 <_API_Mutex_Lock> 20100e0: d0 04 61 1c ld [ %l1 + 0x11c ], %o0 ! 2030d1c <_RTEMS_Allocator_Mutex> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 20100e4: 92 10 00 10 mov %l0, %o1 20100e8: 11 00 80 c2 sethi %hi(0x2030800), %o0 20100ec: 94 07 bf f0 add %fp, -16, %o2 20100f0: 40 00 10 29 call 2014194 <_Objects_Get_no_protection> 20100f4: 90 12 22 94 or %o0, 0x294, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 20100f8: c2 07 bf f0 ld [ %fp + -16 ], %g1 20100fc: 80 a0 60 00 cmp %g1, 0 2010100: 12 80 00 16 bne 2010158 2010104: a0 10 00 08 mov %o0, %l0 case OBJECTS_LOCAL: heap_status = _Heap_Extend( 2010108: 92 10 00 19 mov %i1, %o1 201010c: 94 10 00 1a mov %i2, %o2 2010110: 90 02 20 68 add %o0, 0x68, %o0 2010114: 96 07 bf f4 add %fp, -12, %o3 2010118: 40 00 0c 48 call 2013238 <_Heap_Extend> 201011c: b0 10 20 09 mov 9, %i0 starting_address, length, &amount_extended ); switch ( heap_status ) { 2010120: 80 a2 20 01 cmp %o0, 1 2010124: 02 80 00 11 be 2010168 2010128: 01 00 00 00 nop 201012c: 1a 80 00 13 bcc 2010178 2010130: 80 a2 20 02 cmp %o0, 2 case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 2010134: c6 07 bf f4 ld [ %fp + -12 ], %g3 2010138: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 the_region->maximum_segment_size += amount_extended; 201013c: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 2010140: 84 00 80 03 add %g2, %g3, %g2 the_region->maximum_segment_size += amount_extended; 2010144: 82 00 40 03 add %g1, %g3, %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 2010148: c4 24 20 54 st %g2, [ %l0 + 0x54 ] the_region->maximum_segment_size += amount_extended; 201014c: c2 24 20 5c st %g1, [ %l0 + 0x5c ] 2010150: 10 80 00 06 b 2010168 2010154: b0 10 20 00 clr %i0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { 2010158: 80 a0 60 01 cmp %g1, 1 201015c: 02 80 00 03 be 2010168 2010160: b0 10 20 04 mov 4, %i0 switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 2010164: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 2010168: 40 00 09 05 call 201257c <_API_Mutex_Unlock> 201016c: d0 04 61 1c ld [ %l1 + 0x11c ], %o0 return return_status; } 2010170: 81 c7 e0 08 ret 2010174: 81 e8 00 00 restore starting_address, length, &amount_extended ); switch ( heap_status ) { 2010178: 12 bf ff fb bne 2010164 201017c: b0 10 20 18 mov 0x18, %i0 2010180: 30 bf ff fa b,a 2010168 02010480 : Objects_Id id, void *segment, size_t size, size_t *old_size ) { 2010480: 9d e3 bf 88 save %sp, -120, %sp uint32_t osize; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) 2010484: 80 a6 e0 00 cmp %i3, 0 2010488: 02 80 00 2e be 2010540 201048c: 21 00 80 c3 sethi %hi(0x2030c00), %l0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 2010490: 40 00 08 25 call 2012524 <_API_Mutex_Lock> 2010494: d0 04 21 1c ld [ %l0 + 0x11c ], %o0 ! 2030d1c <_RTEMS_Allocator_Mutex> 2010498: 92 10 00 18 mov %i0, %o1 201049c: 11 00 80 c2 sethi %hi(0x2030800), %o0 20104a0: 94 07 bf f0 add %fp, -16, %o2 20104a4: 40 00 0f 3c call 2014194 <_Objects_Get_no_protection> 20104a8: 90 12 22 94 or %o0, 0x294, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 20104ac: c2 07 bf f0 ld [ %fp + -16 ], %g1 20104b0: 80 a0 60 00 cmp %g1, 0 20104b4: 12 80 00 14 bne 2010504 20104b8: b0 10 00 08 mov %o0, %i0 case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 20104bc: 94 10 00 1a mov %i2, %o2 20104c0: 92 10 00 19 mov %i1, %o1 20104c4: 90 02 20 68 add %o0, 0x68, %o0 20104c8: 96 07 bf ec add %fp, -20, %o3 20104cc: 40 00 0c e5 call 2013860 <_Heap_Resize_block> 20104d0: 98 07 bf f4 add %fp, -12, %o4 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 20104d4: c2 07 bf ec ld [ %fp + -20 ], %g1 _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 20104d8: b4 92 20 00 orcc %o0, 0, %i2 20104dc: 12 80 00 13 bne 2010528 20104e0: c2 26 c0 00 st %g1, [ %i3 ] 20104e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20104e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20104ec: 12 80 00 17 bne 2010548 <== NOT EXECUTED 20104f0: d0 04 21 1c ld [ %l0 + 0x11c ], %o0 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 20104f4: 40 00 08 22 call 201257c <_API_Mutex_Unlock> <== NOT EXECUTED 20104f8: b0 10 20 00 clr %i0 <== NOT EXECUTED 20104fc: 81 c7 e0 08 ret <== NOT EXECUTED 2010500: 81 e8 00 00 restore <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 2010504: d0 04 21 1c ld [ %l0 + 0x11c ], %o0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 2010508: 82 18 60 01 xor %g1, 1, %g1 201050c: 80 a0 00 01 cmp %g0, %g1 2010510: 84 40 3f ff addx %g0, -1, %g2 2010514: b0 08 bf eb and %g2, -21, %i0 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 2010518: 40 00 08 19 call 201257c <_API_Mutex_Unlock> 201051c: b0 06 20 19 add %i0, 0x19, %i0 2010520: 81 c7 e0 08 ret 2010524: 81 e8 00 00 restore _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(); 2010528: d0 04 21 1c ld [ %l0 + 0x11c ], %o0 201052c: 40 00 08 14 call 201257c <_API_Mutex_Unlock> 2010530: b0 10 20 0d mov 0xd, %i0 return 2010534: 80 a6 a0 01 cmp %i2, 1 2010538: 02 80 00 07 be 2010554 201053c: 01 00 00 00 nop break; } _RTEMS_Unlock_allocator(); return return_status; } 2010540: 81 c7 e0 08 ret 2010544: 91 e8 20 09 restore %g0, 9, %o0 *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 */ 2010548: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201054c: 40 00 21 5e call 2018ac4 <_Region_Process_queue> <== NOT EXECUTED 2010550: b0 10 20 00 clr %i0 <== NOT EXECUTED 2010554: 81 c7 e0 08 ret <== NOT EXECUTED 2010558: 81 e8 00 00 restore <== NOT EXECUTED 02005540 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 2005540: 9d e3 bf 80 save %sp, -128, %sp register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 2005544: a4 96 20 00 orcc %i0, 0, %l2 2005548: 02 80 00 33 be 2005614 200554c: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 2005550: 80 a7 20 00 cmp %i4, 0 2005554: 02 80 00 30 be 2005614 2005558: b0 10 20 09 mov 9, %i0 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 200555c: 82 8e a0 c0 andcc %i2, 0xc0, %g1 2005560: 12 80 00 2f bne 200561c 2005564: a0 0e a0 30 and %i2, 0x30, %l0 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 ) ) 2005568: 80 a4 20 00 cmp %l0, 0 200556c: 02 80 00 04 be 200557c 2005570: 80 a6 60 01 cmp %i1, 1 2005574: 18 80 00 28 bgu 2005614 2005578: b0 10 20 0a mov 0xa, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200557c: 05 00 80 5c sethi %hi(0x2017000), %g2 2005580: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 20172a0 <_Thread_Dispatch_disable_level> 2005584: 82 00 60 01 inc %g1 2005588: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] * 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 ); 200558c: 31 00 80 5c sethi %hi(0x2017000), %i0 2005590: 40 00 05 6e call 2006b48 <_Objects_Allocate> 2005594: 90 16 21 6c or %i0, 0x16c, %o0 ! 201716c <_Semaphore_Information> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 2005598: a2 92 20 00 orcc %o0, 0, %l1 200559c: 02 80 00 4e be 20056d4 20055a0: 80 a4 20 00 cmp %l0, 0 * 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 ) ) { 20055a4: 02 80 00 2c be 2005654 20055a8: f4 24 60 10 st %i2, [ %l1 + 0x10 ] CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 20055ac: 80 8e a0 40 btst 0x40, %i2 20055b0: 02 80 00 44 be 20056c0 20055b4: 80 8e a0 80 btst 0x80, %i2 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 20055b8: 82 10 20 02 mov 2, %g1 20055bc: c2 27 bf e8 st %g1, [ %fp + -24 ] the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 20055c0: 80 a4 20 10 cmp %l0, 0x10 20055c4: 02 80 00 48 be 20056e4 20055c8: 82 10 20 02 mov 2, %g1 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; 20055cc: c0 2f bf e4 clrb [ %fp + -28 ] 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; 20055d0: c2 27 bf e0 st %g1, [ %fp + -32 ] the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 20055d4: 82 1e 60 01 xor %i1, 1, %g1 20055d8: 80 a0 00 01 cmp %g0, %g1 } 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; 20055dc: f6 27 bf ec st %i3, [ %fp + -20 ] mutex_status = _CORE_mutex_Initialize( 20055e0: 94 60 3f ff subx %g0, -1, %o2 20055e4: 90 04 60 14 add %l1, 0x14, %o0 20055e8: 40 00 03 3e call 20062e0 <_CORE_mutex_Initialize> 20055ec: 92 07 bf e0 add %fp, -32, %o1 &the_semaphore->Core_control.mutex, &the_mutex_attributes, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 20055f0: 80 a2 20 06 cmp %o0, 6 20055f4: 32 80 00 26 bne,a 200568c 20055f8: c4 04 60 08 ld [ %l1 + 8 ], %g2 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 20055fc: 90 16 21 6c or %i0, 0x16c, %o0 <== NOT EXECUTED 2005600: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2005604: 40 00 06 4c call 2006f34 <_Objects_Free> <== NOT EXECUTED 2005608: b0 10 20 13 mov 0x13, %i0 <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 200560c: 40 00 09 3a call 2007af4 <_Thread_Enable_dispatch> <== NOT EXECUTED 2005610: 01 00 00 00 nop <== NOT EXECUTED 2005614: 81 c7 e0 08 ret 2005618: 81 e8 00 00 restore #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 200561c: 80 a4 20 10 cmp %l0, 0x10 2005620: 02 80 00 06 be 2005638 2005624: 80 a4 20 20 cmp %l0, 0x20 2005628: 02 80 00 05 be 200563c 200562c: 80 8e a0 04 btst 4, %i2 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 2005630: 81 c7 e0 08 ret 2005634: 91 e8 20 0b restore %g0, 0xb, %o0 #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 2005638: 80 8e a0 04 btst 4, %i2 200563c: 02 bf ff fd be 2005630 2005640: 80 a0 60 c0 cmp %g1, 0xc0 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 2005644: 12 bf ff ca bne 200556c 2005648: 80 a4 20 00 cmp %l0, 0 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 200564c: 81 c7 e0 08 ret 2005650: 91 e8 20 0b restore %g0, 0xb, %o0 _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 2005654: 80 8e a0 04 btst 4, %i2 2005658: 22 80 00 04 be,a 2005668 200565c: c0 27 bf f4 clr [ %fp + -12 ] the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 2005660: 82 10 20 01 mov 1, %g1 2005664: c2 27 bf f4 st %g1, [ %fp + -12 ] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 2005668: 82 10 3f ff mov -1, %g1 /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 200566c: c0 27 bf e0 clr [ %fp + -32 ] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; 2005670: c0 27 bf ec clr [ %fp + -20 ] _CORE_semaphore_Initialize( 2005674: 94 10 00 19 mov %i1, %o2 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 2005678: c2 27 bf f0 st %g1, [ %fp + -16 ] */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 200567c: 90 04 60 14 add %l1, 0x14, %o0 2005680: 40 00 04 03 call 200668c <_CORE_semaphore_Initialize> 2005684: 92 07 bf f0 add %fp, -16, %o1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2005688: c4 04 60 08 ld [ %l1 + 8 ], %g2 200568c: 82 16 21 6c or %i0, 0x16c, %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 2005690: e4 24 60 0c st %l2, [ %l1 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2005694: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 2005698: c4 27 00 00 st %g2, [ %i4 ] 200569c: 03 00 00 3f sethi %hi(0xfc00), %g1 20056a0: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 20056a4: 84 08 80 01 and %g2, %g1, %g2 20056a8: 85 28 a0 02 sll %g2, 2, %g2 the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 20056ac: b0 10 20 00 clr %i0 20056b0: 40 00 09 11 call 2007af4 <_Thread_Enable_dispatch> 20056b4: e2 20 c0 02 st %l1, [ %g3 + %g2 ] 20056b8: 81 c7 e0 08 ret 20056bc: 81 e8 00 00 restore 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 ) ) 20056c0: 02 80 00 0f be 20056fc 20056c4: 80 8e a0 04 btst 4, %i2 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 20056c8: 82 10 20 03 mov 3, %g1 20056cc: 10 bf ff bd b 20055c0 20056d0: c2 27 bf e8 st %g1, [ %fp + -24 ] _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 20056d4: 40 00 09 08 call 2007af4 <_Thread_Enable_dispatch> 20056d8: b0 10 20 05 mov 5, %i0 20056dc: 81 c7 e0 08 ret 20056e0: 81 e8 00 00 restore if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 20056e4: c2 07 bf e8 ld [ %fp + -24 ], %g1 20056e8: 80 a0 60 01 cmp %g1, 1 20056ec: 18 80 00 09 bgu 2005710 20056f0: c0 27 bf e0 clr [ %fp + -32 ] case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; 20056f4: 10 bf ff b8 b 20055d4 20056f8: c0 2f bf e4 clrb [ %fp + -28 ] 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 ) ) 20056fc: 22 bf ff b1 be,a 20055c0 2005700: c0 27 bf e8 clr [ %fp + -24 ] the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 2005704: 82 10 20 01 mov 1, %g1 2005708: 10 bf ff ae b 20055c0 200570c: c2 27 bf e8 st %g1, [ %fp + -24 ] if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 2005710: 80 a0 60 03 cmp %g1, 3 2005714: 18 bf ff b1 bgu 20055d8 2005718: 82 1e 60 01 xor %i1, 1, %g1 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; 200571c: 82 10 20 01 mov 1, %g1 2005720: 10 bf ff ad b 20055d4 2005724: c2 2f bf e4 stb %g1, [ %fp + -28 ] 020235d0 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 20235d0: 9d e3 bf 90 save %sp, -112, %sp 20235d4: 11 00 81 74 sethi %hi(0x205d000), %o0 20235d8: 92 10 00 18 mov %i0, %o1 20235dc: 90 12 23 f0 or %o0, 0x3f0, %o0 20235e0: 7f ff 9b fc call 200a5d0 <_Objects_Get> 20235e4: 94 07 bf f4 add %fp, -12, %o2 register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 20235e8: c2 07 bf f4 ld [ %fp + -12 ], %g1 20235ec: 80 a0 60 00 cmp %g1, 0 20235f0: 12 80 00 0b bne 202361c 20235f4: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 20235f8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 20235fc: 80 88 60 30 btst 0x30, %g1 2023600: 12 80 00 09 bne 2023624 2023604: 90 02 20 14 add %o0, 0x14, %o0 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 2023608: 92 10 20 00 clr %o1 <== NOT EXECUTED 202360c: 7f ff 98 e3 call 2009998 <_CORE_semaphore_Flush> <== NOT EXECUTED 2023610: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 2023614: 7f ff 9e 75 call 200afe8 <_Thread_Enable_dispatch> 2023618: b0 10 20 00 clr %i0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 202361c: 81 c7 e0 08 ret 2023620: 81 e8 00 00 restore the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Flush( 2023624: 92 10 20 00 clr %o1 2023628: 7f ff 97 f1 call 20095ec <_CORE_mutex_Flush> 202362c: 94 10 20 01 mov 1, %o2 2023630: 30 bf ff f9 b,a 2023614 02014a34 : */ void rtems_shutdown_executive( uint32_t result ) { 2014a34: 9d e3 bf 10 save %sp, -240, %sp if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 2014a38: 05 00 80 5d sethi %hi(0x2017400), %g2 2014a3c: c2 00 a0 44 ld [ %g2 + 0x44 ], %g1 ! 2017444 <_System_state_Current> 2014a40: 80 a0 60 04 cmp %g1, 4 2014a44: 02 80 00 07 be 2014a60 2014a48: 82 10 20 04 mov 4, %g1 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 ); 2014a4c: 13 00 80 5c sethi %hi(0x2017000), %o1 2014a50: c2 20 a0 44 st %g1, [ %g2 + 0x44 ] 2014a54: 92 12 62 18 or %o1, 0x218, %o1 2014a58: 7f ff d2 21 call 20092dc <_CPU_Context_switch> 2014a5c: 90 07 bf 70 add %fp, -144, %o0 2014a60: 81 c7 e0 08 ret <== NOT EXECUTED 2014a64: 81 e8 00 00 restore <== NOT EXECUTED 020030d0 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 20030d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 20030d4: 21 00 81 75 sethi %hi(0x205d400), %l0 <== NOT EXECUTED 20030d8: c2 04 21 e4 ld [ %l0 + 0x1e4 ], %g1 ! 205d5e4 <_Thread_Executing> <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 20030dc: d0 00 60 c8 ld [ %g1 + 0xc8 ], %o0 <== NOT EXECUTED 20030e0: 80 a7 80 08 cmp %fp, %o0 <== NOT EXECUTED 20030e4: 0a 80 00 07 bcs 2003100 <== NOT EXECUTED 20030e8: b0 10 20 00 clr %i0 <== NOT EXECUTED 20030ec: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 <== NOT EXECUTED 20030f0: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED 20030f4: 80 a0 40 1e cmp %g1, %fp <== NOT EXECUTED 20030f8: 84 60 3f ff subx %g0, -1, %g2 <== NOT EXECUTED 20030fc: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 2003100: 03 00 81 28 sethi %hi(0x204a000), %g1 <== NOT EXECUTED 2003104: c4 00 61 f0 ld [ %g1 + 0x1f0 ], %g2 ! 204a1f0 <== NOT EXECUTED 2003108: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200310c: 12 80 00 0d bne 2003140 <== NOT EXECUTED 2003110: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 2003114: 80 8e 20 ff btst 0xff, %i0 <== NOT EXECUTED 2003118: 02 80 00 05 be 200312c <== NOT EXECUTED 200311c: 92 08 60 ff and %g1, 0xff, %o1 <== NOT EXECUTED 2003120: 92 88 60 ff andcc %g1, 0xff, %o1 <== NOT EXECUTED 2003124: 12 80 00 05 bne 2003138 <== NOT EXECUTED 2003128: b0 10 20 00 clr %i0 <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 200312c: d0 04 21 e4 ld [ %l0 + 0x1e4 ], %o0 <== NOT EXECUTED 2003130: 7f ff ff cf call 200306c <== NOT EXECUTED 2003134: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 2003138: 81 c7 e0 08 ret <== NOT EXECUTED 200313c: 81 e8 00 00 restore <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { pattern_ok = (!memcmp( 2003140: 90 02 20 08 add %o0, 8, %o0 <== NOT EXECUTED 2003144: 13 00 81 74 sethi %hi(0x205d000), %o1 <== NOT EXECUTED 2003148: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200314c: 40 00 c0 69 call 20332f0 <== NOT EXECUTED 2003150: 92 12 63 1c or %o1, 0x31c, %o1 <== NOT EXECUTED 2003154: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 2003158: 10 bf ff ef b 2003114 <== NOT EXECUTED 200315c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED 02003050 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 2003050: 13 00 80 17 sethi %hi(0x2005c00), %o1 <== NOT EXECUTED 2003054: 90 10 20 00 clr %o0 <== NOT EXECUTED 2003058: 92 12 63 3c or %o1, 0x33c, %o1 <== NOT EXECUTED 200305c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2003060: 7f ff ff e6 call 2002ff8 <== NOT EXECUTED 2003064: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2003068: 01 00 00 00 nop 02002ff8 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002ff8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED print_context = context; 2002ffc: 23 00 81 28 sethi %hi(0x204a000), %l1 <== NOT EXECUTED print_handler = print; 2003000: 21 00 81 28 sethi %hi(0x204a000), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 2003004: f0 24 61 f4 st %i0, [ %l1 + 0x1f4 ] <== NOT EXECUTED print_handler = print; 2003008: f2 24 21 f8 st %i1, [ %l0 + 0x1f8 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 200300c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2003010: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2003014: 9f c6 40 00 call %i1 <== NOT EXECUTED 2003018: 92 12 60 d8 or %o1, 0xd8, %o1 ! 2042cd8 <== NOT EXECUTED (*print)( context, 200301c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2003020: 13 00 81 0b sethi %hi(0x2042c00), %o1 <== NOT EXECUTED 2003024: 9f c6 40 00 call %i1 <== NOT EXECUTED 2003028: 92 12 60 f0 or %o1, 0xf0, %o1 ! 2042cf0 <== 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 ); 200302c: 11 00 80 0b sethi %hi(0x2002c00), %o0 <== NOT EXECUTED 2003030: 40 00 1b 8d call 2009e64 <== NOT EXECUTED 2003034: 90 12 22 a0 or %o0, 0x2a0, %o0 ! 2002ea0 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 2003038: 7f ff ff 9a call 2002ea0 <== NOT EXECUTED 200303c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 2003040: c0 24 61 f4 clr [ %l1 + 0x1f4 ] <== NOT EXECUTED print_handler = NULL; 2003044: c0 24 21 f8 clr [ %l0 + 0x1f8 ] <== NOT EXECUTED } 2003048: 81 c7 e0 08 ret <== NOT EXECUTED 200304c: 81 e8 00 00 restore <== NOT EXECUTED 02003160 : */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 2003160: 9d e3 bf 98 save %sp, -104, %sp 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; 2003164: c4 06 20 c8 ld [ %i0 + 0xc8 ], %g2 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2003168: 80 a7 80 02 cmp %fp, %g2 200316c: 0a 80 00 07 bcs 2003188 2003170: 90 00 a0 08 add %g2, 8, %o0 return false; } if ( sp > (the_stack->area + the_stack->size) ) { 2003174: c2 06 20 c4 ld [ %i0 + 0xc4 ], %g1 2003178: 82 00 80 01 add %g2, %g1, %g1 200317c: 80 a7 80 01 cmp %fp, %g1 2003180: 28 80 00 0b bleu,a 20031ac 2003184: 13 00 81 74 sethi %hi(0x205d000), %o1 /* * 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, 2003188: 13 00 81 74 sethi %hi(0x205d000), %o1 <== NOT EXECUTED 200318c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2003190: 40 00 c0 58 call 20332f0 <== NOT EXECUTED 2003194: 92 12 63 1c or %o1, 0x31c, %o1 <== NOT EXECUTED 2003198: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200319c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 20031a0: b2 08 60 01 and %g1, 1, %i1 <== NOT EXECUTED 20031a4: 7f ff ff b2 call 200306c <== NOT EXECUTED 20031a8: 81 e8 00 00 restore <== 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, 20031ac: 94 10 20 10 mov 0x10, %o2 20031b0: 40 00 c0 50 call 20332f0 20031b4: 92 12 63 1c or %o1, 0x31c, %o1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 20031b8: 80 a2 20 00 cmp %o0, 0 20031bc: 12 bf ff f9 bne 20031a0 20031c0: 82 10 20 00 clr %g1 20031c4: 81 c7 e0 08 ret 20031c8: 81 e8 00 00 restore 02007c08 : const char * rtems_status_text( rtems_status_code status ) { 2007c08: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED return rtems_assoc_name_by_local(rtems_status_assoc, status); 2007c0c: 11 00 80 8d sethi %hi(0x2023400), %o0 <== NOT EXECUTED 2007c10: 90 12 21 88 or %o0, 0x188, %o0 ! 2023588 <== NOT EXECUTED 2007c14: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2007c18: 40 00 2b d1 call 2012b5c <== NOT EXECUTED 2007c1c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2007c20: 01 00 00 00 nop 02007840 : rtems_status_code rtems_task_set_note( Objects_Id id, uint32_t notepad, uint32_t note ) { 2007840: 9d e3 bf 90 save %sp, -112, %sp register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 2007844: 03 00 80 72 sethi %hi(0x201c800), %g1 2007848: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 201cb7c <_Configuration_Table> rtems_status_code rtems_task_set_note( Objects_Id id, uint32_t notepad, uint32_t note ) { 200784c: 90 10 00 18 mov %i0, %o0 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 2007850: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 2007854: c4 08 60 04 ldub [ %g1 + 4 ], %g2 2007858: 80 a0 a0 00 cmp %g2, 0 200785c: 02 80 00 1c be 20078cc 2007860: b0 10 20 16 mov 0x16, %i0 /* * 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 ) 2007864: 80 a6 60 0f cmp %i1, 0xf 2007868: 18 80 00 19 bgu 20078cc 200786c: b0 10 20 0a mov 0xa, %i0 2007870: 03 00 80 72 sethi %hi(0x201c800), %g1 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 2007874: 80 a2 20 00 cmp %o0, 0 2007878: 02 80 00 17 be 20078d4 200787c: 86 10 63 a4 or %g1, 0x3a4, %g3 2007880: 03 00 80 72 sethi %hi(0x201c800), %g1 2007884: c4 00 63 a4 ld [ %g1 + 0x3a4 ], %g2 ! 201cba4 <_Thread_Executing> 2007888: 86 10 63 a4 or %g1, 0x3a4, %g3 200788c: c2 00 a0 08 ld [ %g2 + 8 ], %g1 2007890: 80 a2 00 01 cmp %o0, %g1 2007894: 22 80 00 11 be,a 20078d8 2007898: c2 00 c0 00 ld [ %g3 ], %g1 <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 200789c: 40 00 08 60 call 2009a1c <_Thread_Get> 20078a0: 92 07 bf f4 add %fp, -12, %o1 switch ( location ) { 20078a4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20078a8: 80 a0 60 00 cmp %g1, 0 20078ac: 12 80 00 08 bne 20078cc 20078b0: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 20078b4: c4 02 21 68 ld [ %o0 + 0x168 ], %g2 20078b8: 82 06 60 08 add %i1, 8, %g1 20078bc: 83 28 60 02 sll %g1, 2, %g1 _Thread_Enable_dispatch(); 20078c0: b0 10 20 00 clr %i0 20078c4: 40 00 08 48 call 20099e4 <_Thread_Enable_dispatch> 20078c8: f4 20 80 01 st %i2, [ %g2 + %g1 ] case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 20078cc: 81 c7 e0 08 ret 20078d0: 81 e8 00 00 restore */ 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; 20078d4: c2 00 c0 00 ld [ %g3 ], %g1 20078d8: 84 06 60 08 add %i1, 8, %g2 20078dc: c6 00 61 68 ld [ %g1 + 0x168 ], %g3 20078e0: 85 28 a0 02 sll %g2, 2, %g2 20078e4: f4 20 c0 02 st %i2, [ %g3 + %g2 ] 20078e8: 81 c7 e0 08 ret 20078ec: 91 e8 20 00 restore %g0, 0, %o0 02002fd0 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 2002fd0: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 2002fd4: 05 00 80 5a sethi %hi(0x2016800), %g2 <== NOT EXECUTED int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 2002fd8: d0 20 61 54 st %o0, [ %g1 + 0x154 ] <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 2002fdc: d2 20 a1 58 st %o1, [ %g2 + 0x158 ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 2002fe0: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2002fe4: 90 10 20 00 clr %o0 <== NOT EXECUTED 2002fe8: 81 c3 e0 08 retl <== NOT EXECUTED 2002fec: d4 20 61 5c st %o2, [ %g1 + 0x15c ] <== NOT EXECUTED 0200470c : } } rtems_status_code rtems_termios_close (void *arg) { 200470c: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004710: 23 00 80 5c sethi %hi(0x2017000), %l1 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004714: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004718: d0 04 61 60 ld [ %l1 + 0x160 ], %o0 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 200471c: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004720: 92 10 20 00 clr %o1 2004724: 40 00 04 2e call 20057dc 2004728: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 200472c: 80 a2 20 00 cmp %o0, 0 2004730: 12 80 00 52 bne 2004878 2004734: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 2004738: c2 04 20 08 ld [ %l0 + 8 ], %g1 200473c: 82 00 7f ff add %g1, -1, %g1 2004740: 80 a0 60 00 cmp %g1, 0 2004744: 12 80 00 3a bne 200482c 2004748: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 200474c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2004750: 03 00 80 5b sethi %hi(0x2016c00), %g1 2004754: 85 28 a0 05 sll %g2, 5, %g2 2004758: 82 10 62 74 or %g1, 0x274, %g1 200475c: 82 00 40 02 add %g1, %g2, %g1 2004760: c2 00 60 04 ld [ %g1 + 4 ], %g1 2004764: 80 a0 60 00 cmp %g1, 0 2004768: 02 80 00 46 be 2004880 200476c: 01 00 00 00 nop /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004770: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004774: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED * default: just flush output buffer */ drainOutput (tty); } if (tty->device.outputUsesInterrupts 2004778: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 200477c: 80 a0 60 02 cmp %g1, 2 2004780: 22 80 00 33 be,a 200484c 2004784: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 2004788: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 200478c: 80 a0 60 00 cmp %g1, 0 2004790: 22 80 00 07 be,a 20047ac 2004794: c4 04 00 00 ld [ %l0 ], %g2 (*tty->device.lastClose)(tty->major, tty->minor, arg); 2004798: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 200479c: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 20047a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20047a4: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 20047a8: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 20047ac: 80 a0 a0 00 cmp %g2, 0 20047b0: 22 80 00 38 be,a 2004890 20047b4: c4 04 20 04 ld [ %l0 + 4 ], %g2 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 20047b8: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 20047bc: c2 20 a0 04 st %g1, [ %g2 + 4 ] <== NOT EXECUTED } if (tty->back == NULL) { 20047c0: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 20047c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20047c8: 22 80 00 39 be,a 20048ac <== NOT EXECUTED 20047cc: 03 00 80 5c sethi %hi(0x2017000), %g1 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 20047d0: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 20047d4: 40 00 03 d5 call 2005728 20047d8: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 20047dc: 40 00 03 d3 call 2005728 20047e0: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 20047e4: 40 00 03 d1 call 2005728 20047e8: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 20047ec: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 20047f0: 80 a0 60 00 cmp %g1, 0 20047f4: 02 80 00 13 be 2004840 20047f8: 01 00 00 00 nop 20047fc: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004800: 80 a0 60 02 cmp %g1, 2 2004804: 02 80 00 0f be 2004840 2004808: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 200480c: 40 00 18 06 call 200a824 2004810: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 2004814: 40 00 18 04 call 200a824 2004818: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 200481c: 40 00 18 02 call 200a824 2004820: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 2004824: 40 00 18 00 call 200a824 2004828: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 200482c: d0 04 61 60 ld [ %l1 + 0x160 ], %o0 2004830: 40 00 04 33 call 20058fc 2004834: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 2004838: 81 c7 e0 08 ret 200483c: 81 e8 00 00 restore 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); 2004840: 40 00 03 ba call 2005728 <== NOT EXECUTED 2004844: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2004848: 30 bf ff f1 b,a 200480c <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 200484c: 40 00 02 90 call 200528c <== NOT EXECUTED 2004850: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004854: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004858: 12 80 00 08 bne 2004878 <== NOT EXECUTED 200485c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 2004860: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 2004864: 40 00 02 8a call 200528c <== NOT EXECUTED 2004868: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 200486c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004870: 22 bf ff c7 be,a 200478c <== NOT EXECUTED 2004874: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004878: 40 00 05 9a call 2005ee0 <== NOT EXECUTED 200487c: 01 00 00 00 nop <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 2004880: 7f ff fd 6e call 2003e38 2004884: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 2004888: 10 bf ff bd b 200477c 200488c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 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; 2004890: 03 00 80 5c sethi %hi(0x2017000), %g1 if ( rtems_termios_ttyTail != NULL ) { 2004894: 80 a0 a0 00 cmp %g2, 0 2004898: 02 80 00 0a be 20048c0 200489c: c4 20 61 64 st %g2, [ %g1 + 0x164 ] rtems_termios_ttyTail->forw = NULL; 20048a0: c0 20 80 00 clr [ %g2 ] <== NOT EXECUTED 20048a4: 10 bf ff c7 b 20047c0 <== NOT EXECUTED 20048a8: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; if ( rtems_termios_ttyHead != NULL ) { 20048ac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20048b0: 02 bf ff c9 be 20047d4 <== NOT EXECUTED 20048b4: c4 20 61 68 st %g2, [ %g1 + 0x168 ] <== NOT EXECUTED rtems_termios_ttyHead->back = NULL; 20048b8: 10 bf ff c7 b 20047d4 <== NOT EXECUTED 20048bc: c0 20 a0 04 clr [ %g2 + 4 ] <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 20048c0: 03 00 80 5c sethi %hi(0x2017000), %g1 20048c4: 10 bf ff c4 b 20047d4 20048c8: c0 20 61 68 clr [ %g1 + 0x168 ] ! 2017168 02003204 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2003204: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003208: c2 06 20 90 ld [ %i0 + 0x90 ], %g1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 200320c: c4 06 20 b4 ld [ %i0 + 0xb4 ], %g2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003210: 82 00 40 19 add %g1, %i1, %g1 <== NOT EXECUTED 2003214: c2 26 20 90 st %g1, [ %i0 + 0x90 ] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2003218: 80 a0 a0 02 cmp %g2, 2 <== NOT EXECUTED 200321c: 02 80 00 10 be 200325c <== NOT EXECUTED 2003220: 90 10 00 18 mov %i0, %o0 <== 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 ) { 2003224: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003228: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 200322c: 12 80 00 0a bne 2003254 <== NOT EXECUTED 2003230: 03 00 80 5b sethi %hi(0x2016c00), %g1 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2003234: c2 00 63 28 ld [ %g1 + 0x328 ], %g1 ! 2016f28 <== NOT EXECUTED 2003238: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200323c: 02 80 00 04 be 200324c <== NOT EXECUTED 2003240: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2003244: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003248: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 200324c: 81 c7 e0 08 ret <== NOT EXECUTED 2003250: 91 e8 20 00 restore %g0, 0, %o0 <== 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); 2003254: 7f ff ff 6d call 2003008 <== NOT EXECUTED 2003258: 81 e8 00 00 restore <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 200325c: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2003260: 40 00 08 0b call 200528c <== NOT EXECUTED 2003264: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2003268: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200326c: 02 bf ff f8 be 200324c <== NOT EXECUTED 2003270: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2003274: 40 00 0b 1b call 2005ee0 <== NOT EXECUTED 2003278: 01 00 00 00 nop 200327c: 01 00 00 00 nop 02003280 : * 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) { 2003280: 9d e3 bf 98 save %sp, -104, %sp <== 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) { 2003284: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003288: 05 00 80 5b sethi %hi(0x2016c00), %g2 <== NOT EXECUTED 200328c: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2003290: a2 10 a2 74 or %g2, 0x274, %l1 <== NOT EXECUTED 2003294: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 2003298: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED 200329c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032a0: 02 80 00 22 be 2003328 <== NOT EXECUTED 20032a4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED while (len--) { 20032a8: 22 80 00 0f be,a 20032e4 <== NOT EXECUTED 20032ac: c2 06 20 e4 ld [ %i0 + 0xe4 ], %g1 <== NOT EXECUTED 20032b0: 10 80 00 05 b 20032c4 <== NOT EXECUTED 20032b4: a0 10 20 00 clr %l0 <== NOT EXECUTED 20032b8: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20032bc: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20032c0: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 20032c4: d0 4e 40 10 ldsb [ %i1 + %l0 ], %o0 <== NOT EXECUTED 20032c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20032cc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20032d0: a0 04 20 01 inc %l0 <== 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--) { 20032d4: 80 a4 00 1a cmp %l0, %i2 <== NOT EXECUTED 20032d8: 32 bf ff f8 bne,a 20032b8 <== NOT EXECUTED 20032dc: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 20032e0: c2 06 20 e4 ld [ %i0 + 0xe4 ], %g1 <== NOT EXECUTED 20032e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032e8: 12 80 00 0e bne 2003320 <== NOT EXECUTED 20032ec: a6 10 20 00 clr %l3 <== NOT EXECUTED 20032f0: c2 06 20 dc ld [ %i0 + 0xdc ], %g1 <== NOT EXECUTED 20032f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032f8: 02 80 00 0a be 2003320 <== NOT EXECUTED 20032fc: 01 00 00 00 nop <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003300: d2 06 20 e0 ld [ %i0 + 0xe0 ], %o1 <== NOT EXECUTED 2003304: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003308: 90 06 20 30 add %i0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 200330c: a6 10 20 00 clr %l3 <== NOT EXECUTED 2003310: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2003314: c2 26 20 e4 st %g1, [ %i0 + 0xe4 ] <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 2003318: 81 c7 e0 08 ret <== NOT EXECUTED 200331c: 91 e8 00 13 restore %g0, %l3, %o0 <== NOT EXECUTED 2003320: 81 c7 e0 08 ret <== NOT EXECUTED 2003324: 91 e8 00 13 restore %g0, %l3, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2003328: b4 06 bf ff add %i2, -1, %i2 <== 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, 200332c: ac 06 20 4a add %i0, 0x4a, %l6 <== 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); 2003330: aa 06 20 30 add %i0, 0x30, %l5 <== NOT EXECUTED 2003334: a6 10 20 00 clr %l3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2003338: 80 a6 bf ff cmp %i2, -1 <== NOT EXECUTED 200333c: 02 80 00 1c be 20033ac <== NOT EXECUTED 2003340: a2 10 20 00 clr %l1 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2003344: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003348: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 200334c: 02 80 00 0b be 2003378 <== NOT EXECUTED 2003350: e4 0e 40 00 ldub [ %i1 ], %l2 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 2003354: c4 0e 20 4a ldub [ %i0 + 0x4a ], %g2 <== NOT EXECUTED 2003358: 83 2c a0 18 sll %l2, 0x18, %g1 <== NOT EXECUTED 200335c: 87 38 60 18 sra %g1, 0x18, %g3 <== NOT EXECUTED 2003360: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2003364: 02 80 00 64 be 20034f4 <== NOT EXECUTED 2003368: c2 0e 20 49 ldub [ %i0 + 0x49 ], %g1 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 200336c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003370: 02 80 00 68 be 2003510 <== NOT EXECUTED 2003374: 01 00 00 00 nop <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 2003378: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200337c: 02 80 00 24 be 200340c <== NOT EXECUTED 2003380: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 2003384: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003388: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 200338c: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 2003390: 02 80 00 0f be 20033cc <== NOT EXECUTED 2003394: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003398: b2 06 60 01 inc %i1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 200339c: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED 20033a0: 80 a6 bf ff cmp %i2, -1 <== NOT EXECUTED 20033a4: 12 bf ff e8 bne 2003344 <== NOT EXECUTED 20033a8: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20033ac: c2 06 20 78 ld [ %i0 + 0x78 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20033b0: d0 06 20 68 ld [ %i0 + 0x68 ], %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20033b4: 82 00 40 13 add %g1, %l3, %g1 <== NOT EXECUTED 20033b8: c2 26 20 78 st %g1, [ %i0 + 0x78 ] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20033bc: 40 00 09 50 call 20058fc <== NOT EXECUTED 20033c0: b0 10 00 13 mov %l3, %i0 <== NOT EXECUTED return dropped; } 20033c4: 81 c7 e0 08 ret <== NOT EXECUTED 20033c8: 81 e8 00 00 restore <== 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); 20033cc: 7f ff fa 76 call 2001da4 <== NOT EXECUTED 20033d0: 01 00 00 00 nop <== NOT EXECUTED 20033d4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 20033d8: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20033dc: c4 06 20 94 ld [ %i0 + 0x94 ], %g2 <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 20033e0: 82 08 7f df and %g1, -33, %g1 <== NOT EXECUTED 20033e4: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20033e8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20033ec: 12 80 00 53 bne 2003538 <== NOT EXECUTED 20033f0: 01 00 00 00 nop <== 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); 20033f4: a2 10 20 01 mov 1, %l1 ! 1 <== NOT EXECUTED 20033f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20033fc: 7f ff fa 6e call 2001db4 <== NOT EXECUTED 2003400: b2 06 60 01 inc %i1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2003404: 10 bf ff e7 b 20033a0 <== NOT EXECUTED 2003408: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 200340c: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED 2003410: d2 06 20 64 ld [ %i0 + 0x64 ], %o1 <== NOT EXECUTED 2003414: 40 00 41 d0 call 2013b54 <.urem> <== NOT EXECUTED 2003418: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 200341c: 7f ff fa 62 call 2001da4 <== NOT EXECUTED 2003420: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2003424: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2003428: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED 200342c: d0 06 20 64 ld [ %i0 + 0x64 ], %o0 <== NOT EXECUTED 2003430: d2 06 20 64 ld [ %i0 + 0x64 ], %o1 <== NOT EXECUTED 2003434: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2003438: 40 00 41 c7 call 2013b54 <.urem> <== NOT EXECUTED 200343c: 90 02 00 10 add %o0, %l0, %o0 <== NOT EXECUTED 2003440: c2 06 20 c0 ld [ %i0 + 0xc0 ], %g1 <== NOT EXECUTED 2003444: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003448: 08 80 00 13 bleu 2003494 <== NOT EXECUTED 200344c: 01 00 00 00 nop <== NOT EXECUTED 2003450: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003454: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2003458: 12 80 00 0f bne 2003494 <== NOT EXECUTED 200345c: 01 00 00 00 nop <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 2003460: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003464: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 2003468: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 200346c: c4 06 20 b8 ld [ %i0 + 0xb8 ], %g2 <== NOT EXECUTED 2003470: 84 08 a4 02 and %g2, 0x402, %g2 <== NOT EXECUTED 2003474: 80 a0 a4 00 cmp %g2, 0x400 <== NOT EXECUTED 2003478: 02 80 00 38 be 2003558 <== NOT EXECUTED 200347c: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 2003480: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003484: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 2003488: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 200348c: 02 80 00 44 be 200359c <== NOT EXECUTED 2003490: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2003494: 7f ff fa 48 call 2001db4 <== NOT EXECUTED 2003498: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 200349c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED 20034a0: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 20034a4: 22 80 00 1f be,a 2003520 <== NOT EXECUTED 20034a8: a6 04 e0 01 inc %l3 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 20034ac: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 <== NOT EXECUTED 20034b0: e4 28 40 10 stb %l2, [ %g1 + %l0 ] <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 20034b4: c4 06 20 e4 ld [ %i0 + 0xe4 ], %g2 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 20034b8: e0 26 20 60 st %l0, [ %i0 + 0x60 ] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 20034bc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20034c0: 32 bf ff b7 bne,a 200339c <== NOT EXECUTED 20034c4: b2 06 60 01 inc %i1 <== NOT EXECUTED 20034c8: c2 06 20 dc ld [ %i0 + 0xdc ], %g1 <== NOT EXECUTED 20034cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20034d0: 22 bf ff b3 be,a 200339c <== NOT EXECUTED 20034d4: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 20034d8: d2 06 20 e0 ld [ %i0 + 0xe0 ], %o1 <== NOT EXECUTED 20034dc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20034e0: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 20034e4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 20034e8: b2 06 60 01 inc %i1 <== 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; 20034ec: 10 bf ff ac b 200339c <== NOT EXECUTED 20034f0: c2 26 20 e4 st %g1, [ %i0 + 0xe4 ] <== 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]) { 20034f4: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20034f8: 02 80 00 0c be 2003528 <== NOT EXECUTED 20034fc: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2003500: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003504: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED 2003508: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED 200350c: 30 bf ff 9e b,a 2003384 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 2003510: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003514: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED 2003518: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED 200351c: 30 bf ff 9a b,a 2003384 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003520: 10 bf ff 9f b 200339c <== NOT EXECUTED 2003524: b2 06 60 01 inc %i1 <== 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; 2003528: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 200352c: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED 2003530: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED 2003534: 30 bf ff 94 b,a 2003384 <== 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, 2003538: d2 06 20 84 ld [ %i0 + 0x84 ], %o1 <== NOT EXECUTED 200353c: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED 2003540: c4 06 20 a4 ld [ %i0 + 0xa4 ], %g2 <== NOT EXECUTED 2003544: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2003548: 92 00 40 09 add %g1, %o1, %o1 <== NOT EXECUTED 200354c: 9f c0 80 00 call %g2 <== NOT EXECUTED 2003550: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2003554: 30 bf ff a8 b,a 20033f4 <== 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) || 2003558: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 200355c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003560: 12 80 00 06 bne 2003578 <== NOT EXECUTED 2003564: 01 00 00 00 nop <== NOT EXECUTED 2003568: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED 200356c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003570: 12 bf ff c9 bne 2003494 <== NOT EXECUTED 2003574: 01 00 00 00 nop <== 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; 2003578: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 200357c: c4 06 20 a4 ld [ %i0 + 0xa4 ], %g2 <== NOT EXECUTED 2003580: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== 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; 2003584: 82 10 60 02 or %g1, 2, %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003588: 92 10 00 16 mov %l6, %o1 <== 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; 200358c: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003590: 9f c0 80 00 call %g2 <== NOT EXECUTED 2003594: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2003598: 30 bf ff bf b,a 2003494 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 200359c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 20035a0: c4 06 20 ac ld [ %i0 + 0xac ], %g2 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 20035a4: 82 10 60 04 or %g1, 4, %g1 <== NOT EXECUTED 20035a8: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 20035ac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20035b0: 02 bf ff b9 be 2003494 <== NOT EXECUTED 20035b4: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 20035b8: 9f c0 80 00 call %g2 <== NOT EXECUTED 20035bc: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 20035c0: 30 bf ff b5 b,a 2003494 <== NOT EXECUTED 02002f80 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2002f80: 9d e3 bf 98 save %sp, -104, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2002f84: 03 00 80 5c sethi %hi(0x2017000), %g1 2002f88: c4 00 61 60 ld [ %g1 + 0x160 ], %g2 ! 2017160 2002f8c: 80 a0 a0 00 cmp %g2, 0 2002f90: 02 80 00 04 be 2002fa0 2002f94: 98 10 61 60 or %g1, 0x160, %o4 2002f98: 81 c7 e0 08 ret 2002f9c: 81 e8 00 00 restore sc = rtems_semaphore_create ( 2002fa0: 11 15 14 9b sethi %hi(0x54526c00), %o0 2002fa4: 92 10 20 01 mov 1, %o1 2002fa8: 90 12 21 69 or %o0, 0x169, %o0 2002fac: 94 10 20 54 mov 0x54, %o2 2002fb0: 40 00 09 64 call 2005540 2002fb4: 96 10 20 00 clr %o3 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) 2002fb8: 80 a2 20 00 cmp %o0, 0 2002fbc: 02 bf ff f7 be 2002f98 2002fc0: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 2002fc4: 40 00 0b c7 call 2005ee0 <== NOT EXECUTED 2002fc8: 01 00 00 00 nop 2002fcc: 01 00 00 00 nop 020042f8 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 20042f8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 20042fc: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 2004300: c0 26 20 0c clr [ %i0 + 0xc ] <== 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; 2004304: e2 00 60 28 ld [ %g1 + 0x28 ], %l1 <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 2004308: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 200430c: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 <== NOT EXECUTED } } rtems_status_code rtems_termios_ioctl (void *arg) { 2004310: a4 10 00 18 mov %i0, %l2 <== 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); 2004314: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004318: 40 00 05 31 call 20057dc <== NOT EXECUTED 200431c: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 2004320: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2004324: 32 80 00 12 bne,a 200436c <== NOT EXECUTED 2004328: f0 24 a0 0c st %i0, [ %l2 + 0xc ] <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 200432c: c4 04 a0 04 ld [ %l2 + 4 ], %g2 <== NOT EXECUTED 2004330: 80 a0 a0 04 cmp %g2, 4 <== NOT EXECUTED 2004334: 22 80 00 27 be,a 20043d0 <== NOT EXECUTED 2004338: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 200433c: 18 80 00 0e bgu 2004374 <== NOT EXECUTED 2004340: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED 2004344: 80 a0 a0 02 cmp %g2, 2 <== NOT EXECUTED 2004348: 22 80 00 61 be,a 20044cc <== NOT EXECUTED 200434c: d2 04 a0 08 ld [ %l2 + 8 ], %o1 <== NOT EXECUTED 2004350: 08 80 00 4c bleu 2004480 <== NOT EXECUTED 2004354: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 2004358: 7f ff fe b8 call 2003e38 <== NOT EXECUTED 200435c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 2004360: 40 00 05 67 call 20058fc <== NOT EXECUTED 2004364: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 <== NOT EXECUTED args->ioctl_return = sc; 2004368: f0 24 a0 0c st %i0, [ %l2 + 0xc ] <== NOT EXECUTED return sc; } 200436c: 81 c7 e0 08 ret <== NOT EXECUTED 2004370: 81 e8 00 00 restore <== 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) { 2004374: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 2004378: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 200437c: 02 80 00 48 be 200449c <== NOT EXECUTED 2004380: 01 00 00 00 nop <== NOT EXECUTED 2004384: 18 80 00 1b bgu 20043f0 <== NOT EXECUTED 2004388: 03 10 01 1d sethi %hi(0x40047400), %g1 <== NOT EXECUTED 200438c: 80 a0 a0 05 cmp %g2, 5 <== NOT EXECUTED 2004390: 22 80 00 14 be,a 20043e0 <== NOT EXECUTED 2004394: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 2004398: c4 04 60 cc ld [ %l1 + 0xcc ], %g2 <== NOT EXECUTED 200439c: 03 00 80 5b sethi %hi(0x2016c00), %g1 <== NOT EXECUTED 20043a0: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 20043a4: 82 10 62 74 or %g1, 0x274, %g1 <== NOT EXECUTED 20043a8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 20043ac: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20043b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043b4: 02 bf ff eb be 2004360 <== NOT EXECUTED 20043b8: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 20043bc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20043c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20043c4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 20043c8: 10 bf ff e6 b 2004360 <== NOT EXECUTED 20043cc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 20043d0: c2 24 60 dc st %g1, [ %l1 + 0xdc ] <== NOT EXECUTED 20043d4: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED 20043d8: 10 bf ff e2 b 2004360 <== NOT EXECUTED 20043dc: c4 24 60 e0 st %g2, [ %l1 + 0xe0 ] <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 20043e0: c2 24 60 d4 st %g1, [ %l1 + 0xd4 ] <== NOT EXECUTED 20043e4: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED 20043e8: 10 bf ff de b 2004360 <== NOT EXECUTED 20043ec: c4 24 60 d8 st %g2, [ %l1 + 0xd8 ] <== 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) { 20043f0: 82 10 60 1a or %g1, 0x1a, %g1 <== NOT EXECUTED 20043f4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20043f8: 02 80 00 1e be 2004470 <== NOT EXECUTED 20043fc: 03 20 01 1d sethi %hi(0x80047400), %g1 <== NOT EXECUTED 2004400: 82 10 60 1b or %g1, 0x1b, %g1 ! 8004741b <== NOT EXECUTED 2004404: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004408: 32 bf ff e5 bne,a 200439c <== NOT EXECUTED 200440c: c4 04 60 cc ld [ %l1 + 0xcc ], %g2 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 2004410: c2 04 60 cc ld [ %l1 + 0xcc ], %g1 <== NOT EXECUTED 2004414: 05 00 80 5b sethi %hi(0x2016c00), %g2 <== NOT EXECUTED 2004418: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 200441c: a0 10 a2 74 or %g2, 0x274, %l0 <== NOT EXECUTED 2004420: 82 04 00 01 add %l0, %g1, %g1 <== NOT EXECUTED 2004424: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2004428: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200442c: 22 80 00 06 be,a 2004444 <== NOT EXECUTED 2004430: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004434: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004438: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200443c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 2004440: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 2004444: c0 24 60 d0 clr [ %l1 + 0xd0 ] <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); 2004448: c6 00 40 00 ld [ %g1 ], %g3 <== 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) { 200444c: 85 28 e0 05 sll %g3, 5, %g2 <== NOT EXECUTED 2004450: c2 04 00 02 ld [ %l0 + %g2 ], %g1 <== NOT EXECUTED 2004454: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004458: 02 bf ff c2 be 2004360 <== NOT EXECUTED 200445c: c6 24 60 cc st %g3, [ %l1 + 0xcc ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 2004460: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004464: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2004468: 10 bf ff be b 2004360 <== NOT EXECUTED 200446c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 2004470: c4 04 a0 08 ld [ %l2 + 8 ], %g2 <== NOT EXECUTED 2004474: c2 04 60 cc ld [ %l1 + 0xcc ], %g1 <== NOT EXECUTED 2004478: 10 bf ff ba b 2004360 <== NOT EXECUTED 200447c: c2 20 80 00 st %g1, [ %g2 ] <== 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) { 2004480: 32 bf ff c7 bne,a 200439c <== NOT EXECUTED 2004484: c4 04 60 cc ld [ %l1 + 0xcc ], %g2 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 2004488: d0 04 a0 08 ld [ %l2 + 8 ], %o0 <== NOT EXECUTED 200448c: 92 04 60 30 add %l1, 0x30, %o1 <== NOT EXECUTED 2004490: 40 00 24 2c call 200d540 <== NOT EXECUTED 2004494: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 2004498: 30 bf ff b2 b,a 2004360 <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 200449c: c4 04 60 60 ld [ %l1 + 0x60 ], %g2 <== NOT EXECUTED 20044a0: c2 04 60 5c ld [ %l1 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 20044a4: 88 a0 80 01 subcc %g2, %g1, %g4 <== NOT EXECUTED 20044a8: 0c 80 00 82 bneg 20046b0 <== NOT EXECUTED 20044ac: 01 00 00 00 nop <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 20044b0: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 20044b4: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED 20044b8: c6 04 a0 08 ld [ %l2 + 8 ], %g3 <== NOT EXECUTED 20044bc: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20044c0: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED 20044c4: 10 bf ff a7 b 2004360 <== NOT EXECUTED 20044c8: c2 20 c0 00 st %g1, [ %g3 ] <== 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; 20044cc: a6 04 60 30 add %l1, 0x30, %l3 <== NOT EXECUTED 20044d0: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 20044d4: 40 00 24 1b call 200d540 <== NOT EXECUTED 20044d8: 90 10 00 13 mov %l3, %o0 <== 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) && 20044dc: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20044e0: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20044e4: 02 80 00 19 be 2004548 <== NOT EXECUTED 20044e8: 01 00 00 00 nop <== NOT EXECUTED 20044ec: c2 04 60 30 ld [ %l1 + 0x30 ], %g1 <== NOT EXECUTED 20044f0: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 20044f4: 12 80 00 15 bne 2004548 <== NOT EXECUTED 20044f8: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 20044fc: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004500: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 2004504: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 2004508: c4 04 60 b8 ld [ %l1 + 0xb8 ], %g2 <== NOT EXECUTED 200450c: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 2004510: 02 80 00 0e be 2004548 <== NOT EXECUTED 2004514: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 2004518: 7f ff f6 23 call 2001da4 <== NOT EXECUTED 200451c: 01 00 00 00 nop <== NOT EXECUTED 2004520: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2004524: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004528: c4 04 60 94 ld [ %l1 + 0x94 ], %g2 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 200452c: 82 08 7f df and %g1, -33, %g1 <== NOT EXECUTED 2004530: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004534: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2004538: 12 80 00 6d bne 20046ec <== NOT EXECUTED 200453c: 01 00 00 00 nop <== 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); 2004540: 7f ff f6 1d call 2001db4 <== NOT EXECUTED 2004544: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 2004548: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 200454c: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 2004550: 02 80 00 0c be 2004580 <== NOT EXECUTED 2004554: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED 2004558: c4 04 60 30 ld [ %l1 + 0x30 ], %g2 <== NOT EXECUTED 200455c: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 2004560: 12 80 00 08 bne 2004580 <== NOT EXECUTED 2004564: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 2004568: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 200456c: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 2004570: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 2004574: c4 04 60 b8 ld [ %l1 + 0xb8 ], %g2 <== NOT EXECUTED 2004578: 84 08 bf fd and %g2, -3, %g2 <== NOT EXECUTED 200457c: c4 24 60 b8 st %g2, [ %l1 + 0xb8 ] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 2004580: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004584: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2004588: 12 80 00 22 bne 2004610 <== NOT EXECUTED 200458c: c6 04 60 38 ld [ %l1 + 0x38 ], %g3 <== 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) { 2004590: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2004594: 06 80 00 4a bl 20046bc <== NOT EXECUTED 2004598: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 200459c: c4 04 60 30 ld [ %l1 + 0x30 ], %g2 <== NOT EXECUTED 20045a0: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED 20045a4: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 20045a8: 02 80 00 06 be 20045c0 <== NOT EXECUTED 20045ac: 80 88 a4 00 btst 0x400, %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 20045b0: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20045b4: 82 10 64 00 or %g1, 0x400, %g1 <== NOT EXECUTED 20045b8: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 20045bc: 80 88 a4 00 btst 0x400, %g2 <== NOT EXECUTED 20045c0: 22 80 00 06 be,a 20045d8 <== NOT EXECUTED 20045c4: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 20045c8: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20045cc: 82 10 62 00 or %g1, 0x200, %g1 <== NOT EXECUTED 20045d0: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== 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) { 20045d4: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED 20045d8: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 20045dc: 02 80 00 23 be 2004668 <== NOT EXECUTED 20045e0: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 20045e4: c0 24 60 6c clr [ %l1 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 20045e8: c0 24 60 70 clr [ %l1 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 20045ec: c0 24 60 74 clr [ %l1 + 0x74 ] <== NOT EXECUTED else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 20045f0: c2 04 60 a8 ld [ %l1 + 0xa8 ], %g1 <== NOT EXECUTED 20045f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20045f8: 02 bf ff 5a be 2004360 <== NOT EXECUTED 20045fc: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 2004600: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 <== NOT EXECUTED 2004604: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004608: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 200460c: 30 bf ff 55 b,a 2004360 <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 2004610: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2004614: 06 80 00 2a bl 20046bc <== NOT EXECUTED 2004618: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 200461c: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004620: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 2004624: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 2004628: c4 04 60 b8 ld [ %l1 + 0xb8 ], %g2 <== NOT EXECUTED 200462c: 80 88 a0 04 btst 4, %g2 <== NOT EXECUTED 2004630: 02 80 00 09 be 2004654 <== NOT EXECUTED 2004634: 01 00 00 00 nop <== NOT EXECUTED 2004638: c2 04 60 b0 ld [ %l1 + 0xb0 ], %g1 <== NOT EXECUTED 200463c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004640: 02 80 00 05 be 2004654 <== NOT EXECUTED 2004644: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 2004648: 9f c0 40 00 call %g1 <== NOT EXECUTED 200464c: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 <== NOT EXECUTED 2004650: c6 04 60 38 ld [ %l1 + 0x38 ], %g3 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 2004654: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004658: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 200465c: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== 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) { 2004660: 10 bf ff cd b 2004594 <== NOT EXECUTED 2004664: 80 a0 e0 00 cmp %g3, 0 <== 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); 2004668: 40 00 01 ff call 2004e64 <== NOT EXECUTED 200466c: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 2004670: d2 07 bf f4 ld [ %fp + -12 ], %o1 <== NOT EXECUTED 2004674: e0 0c 60 46 ldub [ %l1 + 0x46 ], %l0 <== NOT EXECUTED 2004678: 40 00 3c 51 call 20137bc <.umul> <== NOT EXECUTED 200467c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004680: 40 00 3c 89 call 20138a4 <.udiv> <== NOT EXECUTED 2004684: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 2004688: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 200468c: 02 80 00 11 be 20046d0 <== NOT EXECUTED 2004690: d0 24 60 54 st %o0, [ %l1 + 0x54 ] <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004694: c2 0c 60 47 ldub [ %l1 + 0x47 ], %g1 <== NOT EXECUTED else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 2004698: c0 24 60 6c clr [ %l1 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 200469c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20046a0: 12 bf ff d3 bne 20045ec <== NOT EXECUTED 20046a4: d0 24 60 70 st %o0, [ %l1 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 20046a8: 10 bf ff d2 b 20045f0 <== NOT EXECUTED 20046ac: d0 24 60 74 st %o0, [ %l1 + 0x74 ] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 20046b0: c2 04 60 64 ld [ %l1 + 0x64 ], %g1 <== NOT EXECUTED 20046b4: 10 bf ff 7f b 20044b0 <== NOT EXECUTED 20046b8: 88 01 00 01 add %g4, %g1, %g4 <== 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; 20046bc: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20046c0: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 20046c4: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 20046c8: 10 bf ff b6 b 20045a0 <== NOT EXECUTED 20046cc: c4 04 60 30 ld [ %l1 + 0x30 ], %g2 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 20046d0: c2 0c 60 47 ldub [ %l1 + 0x47 ], %g1 <== NOT EXECUTED 20046d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20046d8: 32 bf ff c4 bne,a 20045e8 <== NOT EXECUTED 20046dc: c0 24 60 6c clr [ %l1 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 20046e0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20046e4: 10 bf ff c3 b 20045f0 <== NOT EXECUTED 20046e8: c2 24 60 6c st %g1, [ %l1 + 0x6c ] <== 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, 20046ec: d2 04 60 84 ld [ %l1 + 0x84 ], %o1 <== NOT EXECUTED 20046f0: c2 04 60 7c ld [ %l1 + 0x7c ], %g1 <== NOT EXECUTED 20046f4: c4 04 60 a4 ld [ %l1 + 0xa4 ], %g2 <== NOT EXECUTED 20046f8: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 <== NOT EXECUTED 20046fc: 92 00 40 09 add %g1, %o1, %o1 <== NOT EXECUTED 2004700: 9f c0 80 00 call %g2 <== NOT EXECUTED 2004704: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2004708: 30 bf ff 8e b,a 2004540 <== NOT EXECUTED 020048cc : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 20048cc: 9d e3 bf 98 save %sp, -104, %sp struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 20048d0: 29 00 80 5c sethi %hi(0x2017000), %l4 20048d4: d0 05 21 60 ld [ %l4 + 0x160 ], %o0 ! 2017160 20048d8: 92 10 20 00 clr %o1 20048dc: 40 00 03 c0 call 20057dc 20048e0: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 20048e4: a4 92 20 00 orcc %o0, 0, %l2 20048e8: 32 80 00 29 bne,a 200498c 20048ec: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 20048f0: 27 00 80 5c sethi %hi(0x2017000), %l3 20048f4: e0 04 e1 68 ld [ %l3 + 0x168 ], %l0 ! 2017168 20048f8: 80 a4 20 00 cmp %l0, 0 20048fc: 32 80 00 08 bne,a 200491c 2004900: c2 04 20 0c ld [ %l0 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004904: 10 80 00 24 b 2004994 2004908: 90 10 20 01 mov 1, %o0 */ 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) { 200490c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2004910: 02 80 00 21 be 2004994 <== NOT EXECUTED 2004914: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED if ((tty->major == major) && (tty->minor == minor)) 2004918: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200491c: 80 a0 40 18 cmp %g1, %i0 2004920: 32 bf ff fb bne,a 200490c 2004924: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED 2004928: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 200492c: 80 a0 40 19 cmp %g1, %i1 2004930: 32 bf ff f7 bne,a 200490c 2004934: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { 2004938: c2 04 20 08 ld [ %l0 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 200493c: c4 06 80 00 ld [ %i2 ], %g2 if (!tty->refcount++) { 2004940: 86 00 60 01 add %g1, 1, %g3 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 2004944: e0 20 a0 28 st %l0, [ %g2 + 0x28 ] if (!tty->refcount++) { 2004948: 80 a0 60 00 cmp %g1, 0 200494c: 12 80 00 0d bne 2004980 2004950: c6 24 20 08 st %g3, [ %l0 + 8 ] if (tty->device.firstOpen) 2004954: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 2004958: 80 a0 60 00 cmp %g1, 0 200495c: 02 80 00 05 be 2004970 2004960: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 2004964: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2004968: 9f c0 40 00 call %g1 <== NOT EXECUTED 200496c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004970: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004974: 80 a0 60 02 cmp %g1, 2 2004978: 22 80 00 a0 be,a 2004bf8 200497c: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 2004980: 40 00 03 df call 20058fc 2004984: d0 05 21 60 ld [ %l4 + 0x160 ], %o0 return RTEMS_SUCCESSFUL; } 2004988: b0 10 00 12 mov %l2, %i0 200498c: 81 c7 e0 08 ret 2004990: 81 e8 00 00 restore static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004994: 40 00 17 5e call 200a70c 2004998: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 200499c: a2 92 20 00 orcc %o0, 0, %l1 20049a0: 02 80 00 a8 be 2004c40 20049a4: a0 10 00 11 mov %l1, %l0 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 20049a8: 03 00 80 5a sethi %hi(0x2016800), %g1 20049ac: c4 00 61 58 ld [ %g1 + 0x158 ], %g2 ! 2016958 20049b0: c4 24 60 64 st %g2, [ %l1 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 20049b4: d0 04 60 64 ld [ %l1 + 0x64 ], %o0 20049b8: 40 00 19 12 call 200ae00 20049bc: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 20049c0: 80 a2 20 00 cmp %o0, 0 20049c4: 02 80 00 9d be 2004c38 20049c8: d0 24 60 58 st %o0, [ %l1 + 0x58 ] return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 20049cc: 03 00 80 5a sethi %hi(0x2016800), %g1 20049d0: c4 00 61 5c ld [ %g1 + 0x15c ], %g2 ! 201695c 20049d4: c4 24 60 88 st %g2, [ %l1 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 20049d8: d0 04 60 88 ld [ %l1 + 0x88 ], %o0 20049dc: 40 00 19 09 call 200ae00 20049e0: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 20049e4: 80 a2 20 00 cmp %o0, 0 20049e8: 02 80 00 9b be 2004c54 20049ec: d0 24 60 7c st %o0, [ %l1 + 0x7c ] return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 20049f0: 03 00 80 5a sethi %hi(0x2016800), %g1 20049f4: 40 00 19 03 call 200ae00 20049f8: d0 00 61 54 ld [ %g1 + 0x154 ], %o0 ! 2016954 if (tty->cbuf == NULL) { 20049fc: 80 a2 20 00 cmp %o0, 0 2004a00: 02 80 00 ab be 2004cac 2004a04: d0 24 60 1c st %o0, [ %l1 + 0x1c ] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004a08: c2 04 e1 68 ld [ %l3 + 0x168 ], %g1 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 2004a0c: c0 24 60 d4 clr [ %l1 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 2004a10: c0 24 60 d8 clr [ %l1 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 2004a14: c0 24 60 dc clr [ %l1 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 2004a18: c0 24 60 e0 clr [ %l1 + 0xe0 ] tty->tty_rcvwakeup = 0; 2004a1c: c0 24 60 e4 clr [ %l1 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004a20: c2 24 40 00 st %g1, [ %l1 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 2004a24: 80 a0 60 00 cmp %g1, 0 2004a28: 02 80 00 03 be 2004a34 2004a2c: c0 24 60 04 clr [ %l1 + 4 ] rtems_termios_ttyHead->back = tty; 2004a30: e2 20 60 04 st %l1, [ %g1 + 4 ] <== NOT EXECUTED rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 2004a34: 05 00 80 5c sethi %hi(0x2017000), %g2 2004a38: c2 00 a1 64 ld [ %g2 + 0x164 ], %g1 ! 2017164 2004a3c: 80 a0 60 00 cmp %g1, 0 2004a40: 02 80 00 b8 be 2004d20 2004a44: e2 24 e1 68 st %l1, [ %l3 + 0x168 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004a48: 27 00 80 5a sethi %hi(0x2016800), %l3 2004a4c: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 ! 2016960 2004a50: 11 15 14 9a sethi %hi(0x54526800), %o0 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 2004a54: f2 24 60 10 st %i1, [ %l1 + 0x10 ] tty->major = major; 2004a58: f0 24 60 0c st %i0, [ %l1 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004a5c: 90 12 21 00 or %o0, 0x100, %o0 2004a60: 92 10 20 01 mov 1, %o1 2004a64: 90 10 40 08 or %g1, %o0, %o0 2004a68: 94 10 20 54 mov 0x54, %o2 2004a6c: 96 10 20 00 clr %o3 2004a70: 40 00 02 b4 call 2005540 2004a74: 98 04 60 14 add %l1, 0x14, %o4 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) 2004a78: 80 a2 20 00 cmp %o0, 0 2004a7c: 12 80 00 6d bne 2004c30 2004a80: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 2004a84: 11 15 14 9b sethi %hi(0x54526c00), %o0 2004a88: 92 10 20 01 mov 1, %o1 2004a8c: 90 12 23 00 or %o0, 0x300, %o0 2004a90: 94 10 20 54 mov 0x54, %o2 2004a94: 90 10 40 08 or %g1, %o0, %o0 2004a98: 96 10 20 00 clr %o3 2004a9c: 40 00 02 a9 call 2005540 2004aa0: 98 04 60 18 add %l1, 0x18, %o4 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) 2004aa4: 80 a2 20 00 cmp %o0, 0 2004aa8: 12 80 00 62 bne 2004c30 2004aac: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 2004ab0: 11 15 14 9e sethi %hi(0x54527800), %o0 2004ab4: 92 10 20 00 clr %o1 2004ab8: 90 10 40 08 or %g1, %o0, %o0 2004abc: 94 10 20 20 mov 0x20, %o2 2004ac0: 96 10 20 00 clr %o3 2004ac4: 40 00 02 9f call 2005540 2004ac8: 98 04 60 8c add %l1, 0x8c, %o4 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 2004acc: 80 a2 20 00 cmp %o0, 0 2004ad0: 12 80 00 58 bne 2004c30 2004ad4: 92 10 00 1b mov %i3, %o1 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 2004ad8: c0 24 60 94 clr [ %l1 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 2004adc: 90 04 60 98 add %l1, 0x98, %o0 2004ae0: 40 00 22 98 call 200d540 2004ae4: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004ae8: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 2004aec: 80 a0 60 02 cmp %g1, 2 2004af0: 02 80 00 74 be 2004cc0 2004af4: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 2004af8: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 2004afc: 80 a0 60 00 cmp %g1, 0 2004b00: 02 80 00 5e be 2004c78 2004b04: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 2004b08: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 2004b0c: 80 a0 60 02 cmp %g1, 2 2004b10: 02 80 00 5a be 2004c78 2004b14: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 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; 2004b18: c0 24 60 b8 clr [ %l1 + 0xb8 ] /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 2004b1c: c2 04 60 64 ld [ %l1 + 0x64 ], %g1 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 2004b20: c8 0c e1 60 ldub [ %l3 + 0x160 ], %g4 /* 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; 2004b24: 83 30 60 01 srl %g1, 1, %g1 2004b28: c2 24 60 bc st %g1, [ %l1 + 0xbc ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 2004b2c: 03 00 00 09 sethi %hi(0x2400), %g1 2004b30: 82 10 61 02 or %g1, 0x102, %g1 ! 2502 tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004b34: 05 00 00 06 sethi %hi(0x1800), %g2 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 2004b38: c2 24 60 30 st %g1, [ %l1 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004b3c: 84 10 a0 05 or %g2, 5, %g2 tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 2004b40: 03 00 00 20 sethi %hi(0x8000), %g1 2004b44: 82 10 62 3b or %g1, 0x23b, %g1 ! 823b /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004b48: c4 24 60 34 st %g2, [ %l1 + 0x34 ] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 2004b4c: c2 24 60 3c st %g1, [ %l1 + 0x3c ] tty->termios.c_cc[VINTR] = '\003'; 2004b50: 84 10 20 03 mov 3, %g2 tty->termios.c_cc[VQUIT] = '\034'; 2004b54: 82 10 20 1c mov 0x1c, %g1 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'; 2004b58: c4 2c 60 41 stb %g2, [ %l1 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 2004b5c: c2 2c 60 42 stb %g1, [ %l1 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 2004b60: 84 10 20 7f mov 0x7f, %g2 tty->termios.c_cc[VKILL] = '\025'; 2004b64: 82 10 20 15 mov 0x15, %g1 tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; 2004b68: c4 2c 60 43 stb %g2, [ %l1 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 2004b6c: c2 2c 60 44 stb %g1, [ %l1 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 2004b70: 84 10 20 04 mov 4, %g2 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 2004b74: 82 10 20 11 mov 0x11, %g1 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; 2004b78: da 04 60 64 ld [ %l1 + 0x64 ], %o5 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'; 2004b7c: c4 2c 60 45 stb %g2, [ %l1 + 0x45 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 2004b80: c2 2c 60 49 stb %g1, [ %l1 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 2004b84: 84 10 20 13 mov 0x13, %g2 tty->termios.c_cc[VSUSP] = '\032'; 2004b88: 82 10 20 1a mov 0x1a, %g1 /* * 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; 2004b8c: 86 10 28 bd mov 0x8bd, %g3 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'; 2004b90: c4 2c 60 4a stb %g2, [ %l1 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 2004b94: c2 2c 60 4b stb %g1, [ %l1 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 2004b98: 84 10 20 12 mov 0x12, %g2 tty->termios.c_cc[VDISCARD] = '\017'; 2004b9c: 82 10 20 0f mov 0xf, %g1 /* * 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; 2004ba0: c6 24 60 38 st %g3, [ %l1 + 0x38 ] 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'; 2004ba4: c4 2c 60 4d stb %g2, [ %l1 + 0x4d ] tty->termios.c_cc[VDISCARD] = '\017'; 2004ba8: c2 2c 60 4e stb %g1, [ %l1 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 2004bac: 84 10 20 17 mov 0x17, %g2 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'; 2004bb0: c0 2c 60 4c clrb [ %l1 + 0x4c ] 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'; 2004bb4: c4 2c 60 4f stb %g2, [ %l1 + 0x4f ] tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; 2004bb8: c0 2c 60 51 clrb [ %l1 + 0x51 ] 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'; 2004bbc: 86 10 20 16 mov 0x16, %g3 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; 2004bc0: 83 2b 60 01 sll %o5, 1, %g1 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'; 2004bc4: c6 2c 60 50 stb %g3, [ %l1 + 0x50 ] 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; 2004bc8: 82 00 40 0d add %g1, %o5, %g1 2004bcc: 83 30 60 02 srl %g1, 2, %g1 2004bd0: c2 24 60 c0 st %g1, [ %l1 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 2004bd4: 84 01 20 01 add %g4, 1, %g2 2004bd8: 89 29 20 18 sll %g4, 0x18, %g4 2004bdc: 89 39 20 18 sra %g4, 0x18, %g4 2004be0: 80 a1 20 7a cmp %g4, 0x7a 2004be4: 12 bf ff 55 bne 2004938 2004be8: c4 2c e1 60 stb %g2, [ %l3 + 0x160 ] c = 'a'; 2004bec: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 2004bf0: 10 bf ff 52 b 2004938 <== NOT EXECUTED 2004bf4: c2 2c e1 60 stb %g1, [ %l3 + 0x160 ] <== 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, 2004bf8: 13 00 80 13 sethi %hi(0x2004c00), %o1 <== NOT EXECUTED 2004bfc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2004c00: 40 00 04 14 call 2005c50 <== NOT EXECUTED 2004c04: 92 12 61 c0 or %o1, 0x1c0, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004c08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004c0c: 12 80 00 09 bne 2004c30 <== NOT EXECUTED 2004c10: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 2004c14: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 2004c18: 13 00 80 13 sethi %hi(0x2004c00), %o1 <== NOT EXECUTED 2004c1c: 40 00 04 0d call 2005c50 <== NOT EXECUTED 2004c20: 92 12 61 28 or %o1, 0x128, %o1 ! 2004d28 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004c24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004c28: 02 bf ff 56 be 2004980 <== NOT EXECUTED 2004c2c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004c30: 40 00 04 ac call 2005ee0 <== NOT EXECUTED 2004c34: 01 00 00 00 nop <== 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); 2004c38: 40 00 16 fb call 200a824 <== NOT EXECUTED 2004c3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2004c40: d0 05 21 60 ld [ %l4 + 0x160 ], %o0 <== NOT EXECUTED 2004c44: 40 00 03 2e call 20058fc <== NOT EXECUTED 2004c48: a4 10 20 1a mov 0x1a, %l2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_SUCCESSFUL; } 2004c4c: 81 c7 e0 08 ret <== NOT EXECUTED 2004c50: 91 e8 00 12 restore %g0, %l2, %o0 <== 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)); 2004c54: d0 04 60 58 ld [ %l1 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 2004c58: a4 10 20 1a mov 0x1a, %l2 <== NOT EXECUTED * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); free((void *)(tty->rawInBuf.theBuf)); 2004c5c: 40 00 16 f2 call 200a824 <== NOT EXECUTED 2004c60: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED free(tty); 2004c64: 40 00 16 f0 call 200a824 <== NOT EXECUTED 2004c68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2004c6c: 40 00 03 24 call 20058fc <== NOT EXECUTED 2004c70: d0 05 21 60 ld [ %l4 + 0x160 ], %o0 <== NOT EXECUTED 2004c74: 30 bf ff 46 b,a 200498c <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 2004c78: 11 15 14 9c sethi %hi(0x54527000), %o0 <== NOT EXECUTED 2004c7c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004c80: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED 2004c84: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 2004c88: 90 10 40 08 or %g1, %o0, %o0 <== NOT EXECUTED 2004c8c: 96 10 20 00 clr %o3 <== NOT EXECUTED 2004c90: 40 00 02 2c call 2005540 <== NOT EXECUTED 2004c94: 98 04 60 68 add %l1, 0x68, %o4 <== 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) 2004c98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004c9c: 02 bf ff 9f be 2004b18 <== NOT EXECUTED 2004ca0: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 2004ca4: 40 00 04 8f call 2005ee0 <== NOT EXECUTED 2004ca8: 01 00 00 00 nop <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 2004cac: d0 04 60 7c ld [ %l1 + 0x7c ], %o0 <== NOT EXECUTED 2004cb0: 40 00 16 dd call 200a824 <== NOT EXECUTED 2004cb4: a4 10 20 1a mov 0x1a, %l2 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 2004cb8: 10 bf ff e9 b 2004c5c <== NOT EXECUTED 2004cbc: d0 04 60 58 ld [ %l1 + 0x58 ], %o0 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 2004cc0: 11 15 1e 15 sethi %hi(0x54785400), %o0 <== NOT EXECUTED 2004cc4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 2004cc8: 90 10 40 08 or %g1, %o0, %o0 <== NOT EXECUTED 2004ccc: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004cd0: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004cd4: 98 10 20 00 clr %o4 <== NOT EXECUTED 2004cd8: 40 00 03 34 call 20059a8 <== NOT EXECUTED 2004cdc: 9a 04 60 c8 add %l1, 0xc8, %o5 <== 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) 2004ce0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004ce4: 12 bf ff d3 bne 2004c30 <== NOT EXECUTED 2004ce8: c2 4c e1 60 ldsb [ %l3 + 0x160 ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 2004cec: 11 14 9e 15 sethi %hi(0x52785400), %o0 <== NOT EXECUTED 2004cf0: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 2004cf4: 90 10 40 08 or %g1, %o0, %o0 <== NOT EXECUTED 2004cf8: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004cfc: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004d00: 98 10 20 00 clr %o4 <== NOT EXECUTED 2004d04: 40 00 03 29 call 20059a8 <== NOT EXECUTED 2004d08: 9a 04 60 c4 add %l1, 0xc4, %o5 <== 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) 2004d0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004d10: 22 bf ff 7b be,a 2004afc <== NOT EXECUTED 2004d14: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 2004d18: 40 00 04 72 call 2005ee0 <== NOT EXECUTED 2004d1c: 01 00 00 00 nop <== 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; 2004d20: 10 bf ff 4a b 2004a48 2004d24: e2 20 a1 64 st %l1, [ %g2 + 0x164 ] 020035c4 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20035c4: 9d e3 bf 98 save %sp, -104, %sp const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 20035c8: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20035cc: 92 10 00 18 mov %i0, %o1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 20035d0: 80 a0 60 00 cmp %g1, 0 20035d4: 02 80 00 44 be 20036e4 20035d8: a6 10 00 18 mov %i0, %l3 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 20035dc: e4 06 a0 80 ld [ %i2 + 0x80 ], %l2 <== NOT EXECUTED while (len) { 20035e0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20035e4: 02 80 00 44 be 20036f4 <== NOT EXECUTED 20035e8: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 20035ec: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 20035f0: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED 20035f4: 40 00 41 58 call 2013b54 <.urem> <== NOT EXECUTED 20035f8: 90 04 a0 01 add %l2, 1, %o0 <== NOT EXECUTED rtems_interrupt_disable (level); 20035fc: 7f ff f9 ea call 2001da4 <== NOT EXECUTED 2003600: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED 2003604: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 2003608: e0 06 a0 84 ld [ %i2 + 0x84 ], %l0 <== NOT EXECUTED 200360c: 80 a4 00 12 cmp %l0, %l2 <== NOT EXECUTED 2003610: 12 80 00 13 bne 200365c <== NOT EXECUTED 2003614: 01 00 00 00 nop <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2003618: e2 26 a0 94 st %l1, [ %i2 + 0x94 ] <== NOT EXECUTED rtems_interrupt_enable (level); 200361c: 7f ff f9 e6 call 2001db4 <== NOT EXECUTED 2003620: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003624: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED 2003628: 92 10 20 00 clr %o1 <== NOT EXECUTED 200362c: 40 00 08 6c call 20057dc <== NOT EXECUTED 2003630: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003634: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003638: 12 80 00 20 bne 20036b8 <== NOT EXECUTED 200363c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2003640: 7f ff f9 d9 call 2001da4 <== NOT EXECUTED 2003644: 01 00 00 00 nop <== NOT EXECUTED 2003648: b0 10 00 08 mov %o0, %i0 <== 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) { 200364c: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED 2003650: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 2003654: 22 bf ff f2 be,a 200361c <== NOT EXECUTED 2003658: e2 26 a0 94 st %l1, [ %i2 + 0x94 ] <== 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++; 200365c: c8 06 a0 80 ld [ %i2 + 0x80 ], %g4 <== NOT EXECUTED 2003660: c4 0c c0 00 ldub [ %l3 ], %g2 <== NOT EXECUTED 2003664: c2 06 a0 7c ld [ %i2 + 0x7c ], %g1 <== NOT EXECUTED 2003668: c4 28 40 04 stb %g2, [ %g1 + %g4 ] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 200366c: c6 06 a0 94 ld [ %i2 + 0x94 ], %g3 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; 2003670: e4 26 a0 80 st %l2, [ %i2 + 0x80 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 2003674: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2003678: 12 80 00 0a bne 20036a0 <== NOT EXECUTED 200367c: 01 00 00 00 nop <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2003680: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 2003684: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 2003688: 02 80 00 0e be 20036c0 <== NOT EXECUTED 200368c: 01 00 00 00 nop <== 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; 2003690: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 2003694: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 2003698: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 200369c: e8 26 a0 94 st %l4, [ %i2 + 0x94 ] <== NOT EXECUTED } rtems_interrupt_enable (level); 20036a0: 7f ff f9 c5 call 2001db4 <== NOT EXECUTED 20036a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 20036a8: b2 86 7f ff addcc %i1, -1, %i1 <== NOT EXECUTED 20036ac: 02 80 00 12 be 20036f4 <== NOT EXECUTED 20036b0: a6 04 e0 01 inc %l3 <== NOT EXECUTED 20036b4: 30 bf ff cf b,a 20035f0 <== 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); 20036b8: 40 00 0a 0a call 2005ee0 <== NOT EXECUTED 20036bc: 01 00 00 00 nop <== 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, 20036c0: d2 06 a0 84 ld [ %i2 + 0x84 ], %o1 <== NOT EXECUTED 20036c4: c2 06 a0 7c ld [ %i2 + 0x7c ], %g1 <== NOT EXECUTED 20036c8: c4 06 a0 a4 ld [ %i2 + 0xa4 ], %g2 <== NOT EXECUTED 20036cc: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 20036d0: 92 00 40 09 add %g1, %o1, %o1 <== NOT EXECUTED 20036d4: 9f c0 80 00 call %g2 <== NOT EXECUTED 20036d8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 20036dc: 10 bf ff f1 b 20036a0 <== NOT EXECUTED 20036e0: e8 26 a0 94 st %l4, [ %i2 + 0x94 ] <== 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); 20036e4: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 20036e8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 20036ec: 9f c0 40 00 call %g1 20036f0: 94 10 00 19 mov %i1, %o2 20036f4: 81 c7 e0 08 ret 20036f8: 81 e8 00 00 restore 02003ecc : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003ecc: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003ed0: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 2003ed4: e4 06 20 0c ld [ %i0 + 0xc ], %l2 <== 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; 2003ed8: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 2003edc: e6 06 20 08 ld [ %i0 + 8 ], %l3 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003ee0: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003ee4: ac 10 00 18 mov %i0, %l6 <== 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); 2003ee8: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003eec: 40 00 06 3c call 20057dc <== NOT EXECUTED 2003ef0: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2003ef4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2003ef8: 12 80 00 10 bne 2003f38 <== NOT EXECUTED 2003efc: 03 00 80 5b sethi %hi(0x2016c00), %g1 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 2003f00: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED 2003f04: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 2003f08: 82 10 62 74 or %g1, 0x274, %g1 <== NOT EXECUTED 2003f0c: 84 00 a0 08 add %g2, 8, %g2 <== NOT EXECUTED 2003f10: c2 00 40 02 ld [ %g1 + %g2 ], %g1 <== NOT EXECUTED 2003f14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f18: 02 80 00 0a be 2003f40 <== NOT EXECUTED 2003f1c: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 2003f20: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003f24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003f28: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2003f2c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 2003f30: 40 00 06 73 call 20058fc <== NOT EXECUTED 2003f34: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED 2003f38: 81 c7 e0 08 ret <== NOT EXECUTED 2003f3c: 81 e8 00 00 restore <== NOT EXECUTED return sc; } if (tty->cindex == tty->ccount) { 2003f40: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2003f44: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003f48: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003f4c: 22 80 00 20 be,a 2003fcc <== NOT EXECUTED 2003f50: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003f54: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2003f58: 22 80 00 16 be,a 2003fb0 <== NOT EXECUTED 2003f5c: c2 05 a0 0c ld [ %l6 + 0xc ], %g1 <== NOT EXECUTED 2003f60: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED 2003f64: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003f68: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003f6c: 26 80 00 09 bl,a 2003f90 <== NOT EXECUTED 2003f70: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2003f74: 10 80 00 0f b 2003fb0 <== NOT EXECUTED 2003f78: c2 05 a0 0c ld [ %l6 + 0xc ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003f7c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003f80: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003f84: 24 80 00 0b ble,a 2003fb0 <== NOT EXECUTED 2003f88: c2 05 a0 0c ld [ %l6 + 0xc ], %g1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 2003f8c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003f90: a4 84 bf ff addcc %l2, -1, %l2 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 2003f94: c4 08 40 03 ldub [ %g1 + %g3 ], %g2 <== NOT EXECUTED 2003f98: 86 00 e0 01 inc %g3 <== NOT EXECUTED 2003f9c: c4 2c c0 00 stb %g2, [ %l3 ] <== NOT EXECUTED 2003fa0: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003fa4: 12 bf ff f6 bne 2003f7c <== NOT EXECUTED 2003fa8: a6 04 e0 01 inc %l3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2003fac: c2 05 a0 0c ld [ %l6 + 0xc ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2003fb0: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2003fb4: 82 20 40 12 sub %g1, %l2, %g1 <== NOT EXECUTED 2003fb8: c2 25 a0 14 st %g1, [ %l6 + 0x14 ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2003fbc: 40 00 06 50 call 20058fc <== NOT EXECUTED 2003fc0: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 2003fc4: 81 c7 e0 08 ret <== NOT EXECUTED 2003fc8: 81 e8 00 00 restore <== 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 2003fcc: c4 04 20 a0 ld [ %l0 + 0xa0 ], %g2 <== 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; 2003fd0: c2 24 20 2c st %g1, [ %l0 + 0x2c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 2003fd4: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED 2003fd8: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2003fdc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003fe0: 02 80 00 06 be 2003ff8 <== NOT EXECUTED 2003fe4: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED 2003fe8: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 2003fec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ff0: 22 80 00 69 be,a 2004194 <== NOT EXECUTED 2003ff4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== 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; 2003ff8: e2 04 20 74 ld [ %l0 + 0x74 ], %l1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003ffc: 03 00 80 5a sethi %hi(0x2016800), %g1 <== 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, 2004000: ae 04 20 49 add %l0, 0x49, %l7 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2004004: aa 10 61 54 or %g1, 0x154, %l5 <== 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, 2004008: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 200400c: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2004010: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2004014: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004018: 02 80 00 3e be 2004110 <== NOT EXECUTED 200401c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2004020: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED 2004024: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004028: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200402c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004030: 16 80 00 38 bge 2004110 <== NOT EXECUTED 2004034: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2004038: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 200403c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2004040: 40 00 3e c5 call 2013b54 <.urem> <== NOT EXECUTED 2004044: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2004048: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== 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; 200404c: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2004050: e2 08 40 08 ldub [ %g1 + %o0 ], %l1 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2004054: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 2004058: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 200405c: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 2004060: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2004064: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED 2004068: 40 00 3e bb call 2013b54 <.urem> <== NOT EXECUTED 200406c: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED 2004070: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 2004074: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2004078: 3a 80 00 18 bcc,a 20040d8 <== NOT EXECUTED 200407c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 2004080: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004084: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2004088: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 200408c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED 2004090: 84 08 a2 02 and %g2, 0x202, %g2 <== NOT EXECUTED 2004094: 80 a0 a2 02 cmp %g2, 0x202 <== NOT EXECUTED 2004098: 22 80 00 31 be,a 200415c <== NOT EXECUTED 200409c: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== 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) { 20040a0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20040a4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20040a8: 22 80 00 0c be,a 20040d8 <== NOT EXECUTED 20040ac: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 20040b0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 20040b4: c4 04 20 b0 ld [ %l0 + 0xb0 ], %g2 <== 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; 20040b8: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 20040bc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 20040c0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20040c4: 22 80 00 05 be,a 20040d8 <== NOT EXECUTED 20040c8: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 20040cc: 9f c0 80 00 call %g2 <== NOT EXECUTED 20040d0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 20040d4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 20040d8: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 20040dc: 02 80 00 17 be 2004138 <== NOT EXECUTED 20040e0: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 20040e4: 7f ff ff 0c call 2003d14 <== NOT EXECUTED 20040e8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20040ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20040f0: 32 80 00 02 bne,a 20040f8 <== NOT EXECUTED 20040f4: a8 10 20 00 clr %l4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 20040f8: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 20040fc: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2004100: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004104: 12 bf ff c7 bne 2004020 <== NOT EXECUTED 2004108: e2 04 20 70 ld [ %l0 + 0x70 ], %l1 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 200410c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2004110: 02 bf ff 92 be 2003f58 <== NOT EXECUTED 2004114: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 2004118: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 200411c: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED 2004120: 40 00 05 af call 20057dc <== NOT EXECUTED 2004124: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 2004128: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200412c: 02 bf ff b8 be 200400c <== NOT EXECUTED 2004130: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2004134: 30 bf ff 89 b,a 2003f58 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 2004138: 7f ff fe f7 call 2003d14 <== NOT EXECUTED 200413c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2004140: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 2004144: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2004148: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200414c: 06 bf ff eb bl 20040f8 <== NOT EXECUTED 2004150: 01 00 00 00 nop <== NOT EXECUTED 2004154: 10 bf ff e9 b 20040f8 <== NOT EXECUTED 2004158: a8 10 20 00 clr %l4 ! 0 <== 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)) 200415c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004160: 22 80 00 07 be,a 200417c <== NOT EXECUTED 2004164: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2004168: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200416c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004170: 02 bf ff cc be 20040a0 <== NOT EXECUTED 2004174: 01 00 00 00 nop <== 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, 2004178: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 200417c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2004180: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 2004184: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004188: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 200418c: 10 bf ff d3 b 20040d8 <== NOT EXECUTED 2004190: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2004194: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2004198: 12 80 00 37 bne 2004274 <== NOT EXECUTED 200419c: 01 00 00 00 nop <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 20041a0: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 20041a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041a8: 12 80 00 07 bne 20041c4 <== NOT EXECUTED 20041ac: a8 07 bf f4 add %fp, -12, %l4 <== NOT EXECUTED 20041b0: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 20041b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041b8: 12 80 00 3f bne 20042b4 <== NOT EXECUTED 20041bc: 90 10 20 02 mov 2, %o0 <== 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); 20041c0: a8 07 bf f4 add %fp, -12, %l4 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 20041c4: a2 07 bf f0 add %fp, -16, %l1 <== 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); 20041c8: 9f c0 80 00 call %g2 <== NOT EXECUTED 20041cc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 20041d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20041d4: 36 80 00 16 bge,a 200422c <== NOT EXECUTED 20041d8: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 20041dc: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 20041e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041e4: 02 80 00 38 be 20042c4 <== NOT EXECUTED 20041e8: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 20041ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041f0: 02 80 00 06 be 2004208 <== NOT EXECUTED 20041f4: 01 00 00 00 nop <== NOT EXECUTED 20041f8: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 20041fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004200: 12 80 00 34 bne 20042d0 <== NOT EXECUTED 2004204: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 2004208: 40 00 06 ad call 2005cbc <== NOT EXECUTED 200420c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 2004210: c4 04 20 a0 ld [ %l0 + 0xa0 ], %g2 <== 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); 2004214: 9f c0 80 00 call %g2 <== NOT EXECUTED 2004218: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 200421c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004220: 26 bf ff f0 bl,a 20041e0 <== NOT EXECUTED 2004224: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 2004228: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 200422c: 7f ff fe ba call 2003d14 <== NOT EXECUTED 2004230: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2004234: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 2004238: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 200423c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004240: 16 bf ff 45 bge 2003f54 <== NOT EXECUTED 2004244: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2004248: 22 bf ff e0 be,a 20041c8 <== NOT EXECUTED 200424c: c4 04 20 a0 ld [ %l0 + 0xa0 ], %g2 <== NOT EXECUTED 2004250: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 2004254: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004258: 12 80 00 13 bne 20042a4 <== NOT EXECUTED 200425c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2004260: 10 bf ff da b 20041c8 <== NOT EXECUTED 2004264: c4 04 20 a0 ld [ %l0 + 0xa0 ], %g2 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 2004268: 40 00 06 95 call 2005cbc <== NOT EXECUTED 200426c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2004270: c6 04 20 a0 ld [ %l0 + 0xa0 ], %g3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2004274: 9f c0 c0 00 call %g3 <== NOT EXECUTED 2004278: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 200427c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004280: 06 bf ff fa bl 2004268 <== NOT EXECUTED 2004284: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 2004288: 7f ff fe a3 call 2003d14 <== NOT EXECUTED 200428c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2004290: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004294: 12 bf ff 31 bne 2003f58 <== NOT EXECUTED 2004298: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 200429c: 10 bf ff f6 b 2004274 <== NOT EXECUTED 20042a0: c6 04 20 a0 ld [ %l0 + 0xa0 ], %g3 <== 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); 20042a4: 40 00 02 f0 call 2004e64 <== NOT EXECUTED 20042a8: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED 20042ac: 10 bf ff c7 b 20041c8 <== NOT EXECUTED 20042b0: c4 04 20 a0 ld [ %l0 + 0xa0 ], %g2 <== 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); 20042b4: 40 00 02 ec call 2004e64 <== NOT EXECUTED 20042b8: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED 20042bc: 10 bf ff c1 b 20041c0 <== NOT EXECUTED 20042c0: c4 04 20 a0 ld [ %l0 + 0xa0 ], %g2 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 20042c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20042c8: 02 bf ff 23 be 2003f54 <== NOT EXECUTED 20042cc: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 20042d0: 40 00 02 e5 call 2004e64 <== NOT EXECUTED 20042d4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 20042d8: c6 04 20 54 ld [ %l0 + 0x54 ], %g3 <== NOT EXECUTED 20042dc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 20042e0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20042e4: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20042e8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20042ec: 08 bf ff c7 bleu 2004208 <== NOT EXECUTED 20042f0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 20042f4: 30 bf ff 19 b,a 2003f58 <== NOT EXECUTED 02003008 : * 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) { 2003008: 9d e3 bf 98 save %sp, -104, %sp <== 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)) 200300c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003010: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED 2003014: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED 2003018: 22 80 00 3e be,a 2003110 <== NOT EXECUTED 200301c: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 2003020: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003024: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2003028: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200302c: 22 80 00 49 be,a 2003150 <== NOT EXECUTED 2003030: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2003034: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED 2003038: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 200303c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003040: 22 80 00 2f be,a 20030fc <== NOT EXECUTED 2003044: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 2003048: 7f ff fb 57 call 2001da4 <== NOT EXECUTED 200304c: 01 00 00 00 nop <== NOT EXECUTED len = tty->t_dqlen; 2003050: e0 06 20 90 ld [ %i0 + 0x90 ], %l0 <== NOT EXECUTED tty->t_dqlen = 0; 2003054: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003058: 7f ff fb 57 call 2001db4 <== NOT EXECUTED 200305c: 01 00 00 00 nop <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 2003060: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED 2003064: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED 2003068: 40 00 42 bb call 2013b54 <.urem> <== NOT EXECUTED 200306c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 2003070: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 2003074: d0 26 20 84 st %o0, [ %i0 + 0x84 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 2003078: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200307c: 02 80 00 54 be 20031cc <== NOT EXECUTED 2003080: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 2003084: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2003088: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 200308c: 22 80 00 41 be,a 2003190 <== NOT EXECUTED 2003090: c2 06 20 d4 ld [ %i0 + 0xd4 ], %g1 <== 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)) 2003094: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003098: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED 200309c: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED 20030a0: 02 80 00 4e be 20031d8 <== NOT EXECUTED 20030a4: 01 00 00 00 nop <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 20030a8: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 20030ac: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 20030b0: 08 80 00 41 bleu 20031b4 <== NOT EXECUTED 20030b4: 01 00 00 00 nop <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 20030b8: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED 20030bc: a0 20 40 11 sub %g1, %l1, %l0 <== 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)) { 20030c0: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 20030c4: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED 20030c8: 32 80 00 02 bne,a 20030d0 <== NOT EXECUTED 20030cc: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 20030d0: d2 06 20 7c ld [ %i0 + 0x7c ], %o1 <== NOT EXECUTED 20030d4: c4 06 20 a4 ld [ %i0 + 0xa4 ], %g2 <== NOT EXECUTED 20030d8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== 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*/ 20030dc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 20030e0: 92 02 40 11 add %o1, %l1, %o1 <== 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*/ 20030e4: c2 26 20 94 st %g1, [ %i0 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 20030e8: 9f c0 80 00 call %g2 <== NOT EXECUTED 20030ec: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20030f0: e2 26 20 84 st %l1, [ %i0 + 0x84 ] <== NOT EXECUTED } return nToSend; } 20030f4: 81 c7 e0 08 ret <== NOT EXECUTED 20030f8: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 20030fc: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2003100: 02 80 00 30 be 20031c0 <== NOT EXECUTED 2003104: a0 10 20 00 clr %l0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 2003108: 81 c7 e0 08 ret <== NOT EXECUTED 200310c: 91 e8 00 10 restore %g0, %l0, %o0 <== 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, 2003110: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2003114: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 2003118: 9f c0 40 00 call %g1 <== NOT EXECUTED 200311c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2003120: 7f ff fb 21 call 2001da4 <== NOT EXECUTED 2003124: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2003128: c2 06 20 90 ld [ %i0 + 0x90 ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 200312c: c4 06 20 b8 ld [ %i0 + 0xb8 ], %g2 <== 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--; 2003130: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2003134: 84 10 a0 02 or %g2, 2, %g2 <== 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--; 2003138: c2 26 20 90 st %g1, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 200313c: c4 26 20 b8 st %g2, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003140: 7f ff fb 1d call 2001db4 <== NOT EXECUTED 2003144: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 2003148: 81 c7 e0 08 ret <== NOT EXECUTED 200314c: 91 e8 00 10 restore %g0, %l0, %o0 <== 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, 2003150: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2003154: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED 2003158: 9f c0 40 00 call %g1 <== NOT EXECUTED 200315c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2003160: 7f ff fb 11 call 2001da4 <== NOT EXECUTED 2003164: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2003168: c2 06 20 90 ld [ %i0 + 0x90 ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 200316c: c4 06 20 b8 ld [ %i0 + 0xb8 ], %g2 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2003170: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2003174: 84 08 bf fd and %g2, -3, %g2 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2003178: c2 26 20 90 st %g1, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 200317c: c4 26 20 b8 st %g2, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003180: 7f ff fb 0d call 2001db4 <== NOT EXECUTED 2003184: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 2003188: 81 c7 e0 08 ret <== NOT EXECUTED 200318c: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2003190: c0 26 20 94 clr [ %i0 + 0x94 ] <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2003194: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003198: 02 bf ff d6 be 20030f0 <== NOT EXECUTED 200319c: a0 10 20 00 clr %l0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 20031a0: d2 06 20 d8 ld [ %i0 + 0xd8 ], %o1 <== NOT EXECUTED 20031a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20031a8: 90 06 20 30 add %i0, 0x30, %o0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20031ac: e2 26 20 84 st %l1, [ %i0 + 0x84 ] <== NOT EXECUTED 20031b0: 30 bf ff d1 b,a 20030f4 <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 20031b4: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 20031b8: 10 bf ff c2 b 20030c0 <== NOT EXECUTED 20031bc: a0 20 40 11 sub %g1, %l1, %l0 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 20031c0: 40 00 09 cf call 20058fc <== NOT EXECUTED 20031c4: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 20031c8: 30 bf ff d0 b,a 2003108 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 20031cc: 40 00 09 cc call 20058fc <== NOT EXECUTED 20031d0: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 20031d4: 30 bf ff ac b,a 2003084 <== 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); 20031d8: 7f ff fa f3 call 2001da4 <== NOT EXECUTED 20031dc: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 20031e0: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 20031e4: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 20031e8: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 20031ec: c4 26 20 94 st %g2, [ %i0 + 0x94 ] <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 20031f0: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 20031f4: 7f ff fa f0 call 2001db4 <== NOT EXECUTED 20031f8: a0 10 20 00 clr %l0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20031fc: e2 26 20 84 st %l1, [ %i0 + 0x84 ] <== NOT EXECUTED 2003200: 30 bf ff bd b,a 20030f4 <== NOT EXECUTED 02004dc0 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 2004dc0: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED 2004dc4: a0 07 bf f0 add %fp, -16, %l0 <== NOT EXECUTED 2004dc8: a2 07 bf f7 add %fp, -9, %l1 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004dcc: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004dd0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004dd4: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004dd8: 40 00 00 c3 call 20050e4 <== NOT EXECUTED 2004ddc: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 2004de0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2004de4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004de8: 32 80 00 16 bne,a 2004e40 <== NOT EXECUTED 2004dec: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 2004df0: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED 2004df4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004df8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 2004dfc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2004e00: 02 bf ff f3 be 2004dcc <== NOT EXECUTED 2004e04: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 2004e08: d0 2f bf f7 stb %o0, [ %fp + -9 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 2004e0c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2004e10: 7f ff f9 1c call 2003280 <== NOT EXECUTED 2004e14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004e18: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004e1c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004e20: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004e24: 40 00 00 b0 call 20050e4 <== NOT EXECUTED 2004e28: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 2004e2c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2004e30: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004e34: 22 bf ff f0 be,a 2004df4 <== NOT EXECUTED 2004e38: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 2004e3c: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004e40: 40 00 03 25 call 2005ad4 <== NOT EXECUTED 2004e44: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004e48: 10 bf ff e2 b 2004dd0 <== NOT EXECUTED 2004e4c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 02002ff0 : void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 2002ff0: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 2002ff4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2002ff8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002ffc: 40 00 08 a4 call 200528c <== NOT EXECUTED 2003000: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2003004: 01 00 00 00 nop 02004d28 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 2004d28: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED 2004d2c: 03 00 80 5b sethi %hi(0x2016c00), %g1 <== NOT EXECUTED 2004d30: a0 07 bf f4 add %fp, -12, %l0 <== NOT EXECUTED 2004d34: a2 10 62 74 or %g1, 0x274, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004d38: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004d3c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004d40: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004d44: 40 00 00 e8 call 20050e4 <== NOT EXECUTED 2004d48: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 2004d4c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2004d50: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004d54: 12 80 00 16 bne 2004dac <== NOT EXECUTED 2004d58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004d5c: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2004d60: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004d64: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 2004d68: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2004d6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004d70: 02 80 00 04 be 2004d80 <== NOT EXECUTED 2004d74: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2004d78: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004d7c: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 2004d80: 7f ff f8 a2 call 2003008 <== NOT EXECUTED 2004d84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004d88: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004d8c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004d90: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004d94: 40 00 00 d4 call 20050e4 <== NOT EXECUTED 2004d98: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 2004d9c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2004da0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004da4: 02 bf ff ee be 2004d5c <== NOT EXECUTED 2004da8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 2004dac: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004db0: 40 00 03 49 call 2005ad4 <== NOT EXECUTED 2004db4: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004db8: 10 bf ff e1 b 2004d3c <== NOT EXECUTED 2004dbc: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 02003d60 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003d60: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003d64: c2 06 00 00 ld [ %i0 ], %g1 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003d68: a8 10 00 18 mov %i0, %l4 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003d6c: e2 00 60 28 ld [ %g1 + 0x28 ], %l1 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003d70: 92 10 20 00 clr %o1 2003d74: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 2003d78: 40 00 06 99 call 20057dc 2003d7c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2003d80: b0 92 20 00 orcc %o0, 0, %i0 2003d84: 12 80 00 0f bne 2003dc0 2003d88: 03 00 80 5b sethi %hi(0x2016c00), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2003d8c: c4 04 60 cc ld [ %l1 + 0xcc ], %g2 2003d90: 85 28 a0 05 sll %g2, 5, %g2 2003d94: 82 10 62 74 or %g1, 0x274, %g1 2003d98: 82 00 40 02 add %g1, %g2, %g1 2003d9c: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2003da0: 80 a0 60 00 cmp %g1, 0 2003da4: 02 80 00 13 be 2003df0 2003da8: 92 10 00 14 mov %l4, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2003dac: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003db0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2003db4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003db8: 40 00 06 d1 call 20058fc <== NOT EXECUTED 2003dbc: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 <== NOT EXECUTED 2003dc0: 81 c7 e0 08 ret <== NOT EXECUTED 2003dc4: 81 e8 00 00 restore <== NOT EXECUTED while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2003dc8: d0 05 20 08 ld [ %l4 + 8 ], %o0 <== NOT EXECUTED 2003dcc: d2 05 20 0c ld [ %l4 + 0xc ], %o1 <== NOT EXECUTED 2003dd0: 7f ff fd fd call 20035c4 <== NOT EXECUTED 2003dd4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 2003dd8: c2 05 20 0c ld [ %l4 + 0xc ], %g1 <== NOT EXECUTED 2003ddc: c2 25 20 14 st %g1, [ %l4 + 0x14 ] } rtems_semaphore_release (tty->osem); 2003de0: 40 00 06 c7 call 20058fc 2003de4: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 return sc; } 2003de8: 81 c7 e0 08 ret 2003dec: 81 e8 00 00 restore 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) { 2003df0: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 2003df4: 80 88 60 01 btst 1, %g1 2003df8: 02 bf ff f4 be 2003dc8 2003dfc: a0 10 20 00 clr %l0 uint32_t count = args->count; 2003e00: e6 05 20 0c ld [ %l4 + 0xc ], %l3 char *buffer = args->buffer; 2003e04: e4 05 20 08 ld [ %l4 + 8 ], %l2 while (count--) 2003e08: 80 a4 e0 00 cmp %l3, 0 2003e0c: 02 bf ff f4 be 2003ddc 2003e10: 82 10 20 00 clr %g1 oproc (*buffer++, tty); 2003e14: d0 0c 80 10 ldub [ %l2 + %l0 ], %o0 2003e18: 7f ff fe 39 call 20036fc 2003e1c: 92 10 00 11 mov %l1, %o1 2003e20: a0 04 20 01 inc %l0 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2003e24: 80 a4 c0 10 cmp %l3, %l0 2003e28: 32 bf ff fc bne,a 2003e18 2003e2c: d0 0c 80 10 ldub [ %l2 + %l0 ], %o0 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2003e30: 10 bf ff eb b 2003ddc 2003e34: c2 05 20 0c ld [ %l4 + 0xc ], %g1 020114b0 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 20114b0: 9d e3 bf 90 save %sp, -112, %sp 20114b4: a4 10 00 18 mov %i0, %l2 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 20114b8: 80 a6 60 00 cmp %i1, 0 20114bc: 02 80 00 26 be 2011554 20114c0: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; if ( !routine ) 20114c4: 80 a6 a0 00 cmp %i2, 0 20114c8: 02 80 00 23 be 2011554 20114cc: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 20114d0: 11 00 80 c3 sethi %hi(0x2030c00), %o0 20114d4: 92 10 00 12 mov %l2, %o1 20114d8: 90 12 23 80 or %o0, 0x380, %o0 20114dc: 40 00 0b 40 call 20141dc <_Objects_Get> 20114e0: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 20114e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20114e8: a0 10 00 08 mov %o0, %l0 20114ec: 80 a0 60 00 cmp %g1, 0 20114f0: 12 80 00 19 bne 2011554 20114f4: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 20114f8: a2 02 20 10 add %o0, 0x10, %l1 20114fc: 40 00 14 45 call 2016610 <_Watchdog_Remove> 2011500: 90 10 00 11 mov %l1, %o0 _ISR_Disable( level ); 2011504: 7f ff e7 4c call 200b234 2011508: 01 00 00 00 nop /* * 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 ) { 201150c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2011510: 80 a0 60 00 cmp %g1, 0 2011514: 12 80 00 12 bne 201155c 2011518: 01 00 00 00 nop Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 201151c: f4 24 20 2c st %i2, [ %l0 + 0x2c ] the_watchdog->id = id; 2011520: e4 24 20 30 st %l2, [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 2011524: f6 24 20 34 st %i3, [ %l0 + 0x34 ] /* * 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; 2011528: c0 24 20 38 clr [ %l0 + 0x38 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 201152c: c0 24 20 18 clr [ %l0 + 0x18 ] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 2011530: 7f ff e7 45 call 200b244 2011534: b0 10 20 00 clr %i0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2011538: 92 10 00 11 mov %l1, %o1 201153c: 11 00 80 c3 sethi %hi(0x2030c00), %o0 2011540: 90 12 21 44 or %o0, 0x144, %o0 ! 2030d44 <_Watchdog_Ticks_chain> 2011544: 40 00 13 c8 call 2016464 <_Watchdog_Insert> 2011548: f2 24 20 1c st %i1, [ %l0 + 0x1c ] _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 201154c: 40 00 0d a7 call 2014be8 <_Thread_Enable_dispatch> 2011550: 01 00 00 00 nop case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2011554: 81 c7 e0 08 ret 2011558: 81 e8 00 00 restore * 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 ); 201155c: 7f ff e7 3a call 200b244 <== NOT EXECUTED 2011560: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); 2011564: 40 00 0d a1 call 2014be8 <_Thread_Enable_dispatch> <== NOT EXECUTED 2011568: 01 00 00 00 nop <== NOT EXECUTED 201156c: 81 c7 e0 08 ret <== NOT EXECUTED 2011570: 81 e8 00 00 restore <== NOT EXECUTED 02011968 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 2011968: 9d e3 bf 90 save %sp, -112, %sp 201196c: 92 96 20 00 orcc %i0, 0, %o1 2011970: 12 80 00 05 bne 2011984 2011974: 03 00 80 ae sethi %hi(0x202b800), %g1 * 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; 2011978: 90 10 20 13 mov 0x13, %o0 } return status; } 201197c: 81 c7 e0 08 ret 2011980: 91 e8 00 08 restore %g0, %o0, %o0 2011984: c4 08 63 14 ldub [ %g1 + 0x314 ], %g2 2011988: 80 a2 40 02 cmp %o1, %g2 201198c: 18 80 00 56 bgu 2011ae4 2011990: 80 a2 7f ff cmp %o1, -1 2011994: b0 10 00 09 mov %o1, %i0 <== NOT EXECUTED 2011998: 05 00 80 c3 sethi %hi(0x2030c00), %g2 201199c: c2 00 a0 60 ld [ %g2 + 0x60 ], %g1 ! 2030c60 <_Thread_Dispatch_disable_level> 20119a0: 82 00 60 01 inc %g1 20119a4: c2 20 a0 60 st %g1, [ %g2 + 0x60 ] /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 20119a8: 23 00 80 b1 sethi %hi(0x202c400), %l1 initialized = true; 20119ac: 82 10 20 01 mov 1, %g1 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 20119b0: e0 0c 61 d4 ldub [ %l1 + 0x1d4 ], %l0 initialized = true; _Thread_Enable_dispatch(); 20119b4: 40 00 0c 8d call 2014be8 <_Thread_Enable_dispatch> 20119b8: c2 2c 61 d4 stb %g1, [ %l1 + 0x1d4 ] if ( tmpInitialized ) 20119bc: 80 a4 20 00 cmp %l0, 0 20119c0: 12 bf ff ef bne 201197c 20119c4: 90 10 20 0e mov 0xe, %o0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 20119c8: 05 00 80 c2 sethi %hi(0x2030800), %g2 20119cc: 82 10 a3 74 or %g2, 0x374, %g1 ! 2030b74 <_Timer_To_be_inserted> the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 20119d0: c2 20 60 08 st %g1, [ %g1 + 8 ] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 20119d4: c0 20 60 04 clr [ %g1 + 4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 20119d8: 82 00 60 04 add %g1, 4, %g1 * 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( 20119dc: 92 10 00 18 mov %i0, %o1 20119e0: 94 10 00 19 mov %i1, %o2 20119e4: 19 00 00 20 sethi %hi(0x8000), %o4 20119e8: c2 20 a3 74 st %g1, [ %g2 + 0x374 ] 20119ec: 98 16 80 0c or %i2, %o4, %o4 20119f0: 11 15 12 53 sethi %hi(0x54494c00), %o0 20119f4: 96 10 21 00 mov 0x100, %o3 20119f8: 90 12 21 45 or %o0, 0x145, %o0 20119fc: 7f ff fc 78 call 2010bdc 2011a00: 9a 07 bf f4 add %fp, -12, %o5 /* 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) { 2011a04: 80 a2 20 00 cmp %o0, 0 2011a08: 12 80 00 34 bne 2011ad8 2011a0c: 03 00 80 c2 sethi %hi(0x2030800), %g1 * 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( 2011a10: d6 07 bf f4 ld [ %fp + -12 ], %o3 RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( Objects_Information *information, uint16_t index ) { if ( index > information->maximum ) 2011a14: 86 10 63 14 or %g1, 0x314, %g3 2011a18: c4 10 e0 10 lduh [ %g3 + 0x10 ], %g2 2011a1c: 03 00 00 3f sethi %hi(0xfc00), %g1 2011a20: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2011a24: 82 0a c0 01 and %o3, %g1, %g1 2011a28: 80 a0 40 02 cmp %g1, %g2 2011a2c: 18 80 00 05 bgu 2011a40 2011a30: 98 10 20 00 clr %o4 2011a34: c4 00 e0 1c ld [ %g3 + 0x1c ], %g2 2011a38: 83 28 60 02 sll %g1, 2, %g1 2011a3c: d8 00 80 01 ld [ %g2 + %g1 ], %o4 2011a40: 09 00 80 c2 sethi %hi(0x2030800), %g4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2011a44: 1b 00 80 c2 sethi %hi(0x2030800), %o5 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2011a48: 84 11 23 54 or %g4, 0x354, %g2 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2011a4c: 82 13 63 68 or %o5, 0x368, %g1 2011a50: c4 20 a0 08 st %g2, [ %g2 + 8 ] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2011a54: c0 20 a0 04 clr [ %g2 + 4 ] the_chain->last = _Chain_Head(the_chain); 2011a58: c2 20 60 08 st %g1, [ %g1 + 8 ] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2011a5c: c0 20 60 04 clr [ %g1 + 4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2011a60: 84 00 a0 04 add %g2, 4, %g2 2011a64: 82 00 60 04 add %g1, 4, %g1 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 2011a68: c0 23 20 6c clr [ %o4 + 0x6c ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011a6c: c0 23 20 50 clr [ %o4 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; 2011a70: d6 23 20 68 st %o3, [ %o4 + 0x68 ] 2011a74: c4 21 23 54 st %g2, [ %g4 + 0x354 ] 2011a78: c2 23 63 68 st %g1, [ %o5 + 0x368 ] 2011a7c: 05 00 80 c3 sethi %hi(0x2030c00), %g2 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2011a80: 07 00 80 52 sethi %hi(0x2014800), %g3 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011a84: 03 00 80 c2 sethi %hi(0x2030800), %g1 the_watchdog->routine = routine; 2011a88: 86 10 e2 0c or %g3, 0x20c, %g3 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011a8c: 82 10 63 80 or %g1, 0x380, %g1 the_watchdog->routine = routine; 2011a90: c6 23 20 64 st %g3, [ %o4 + 0x64 ] 2011a94: d8 20 a3 c4 st %o4, [ %g2 + 0x3c4 ] 2011a98: c6 20 60 1c st %g3, [ %g1 + 0x1c ] the_watchdog->id = id; the_watchdog->user_data = user_data; 2011a9c: c0 20 60 24 clr [ %g1 + 0x24 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011aa0: c0 20 60 08 clr [ %g1 + 8 ] the_watchdog->routine = routine; the_watchdog->id = id; 2011aa4: d6 20 60 20 st %o3, [ %g1 + 0x20 ] /* * 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; 2011aa8: 05 00 80 46 sethi %hi(0x2011800), %g2 2011aac: 03 00 80 c3 sethi %hi(0x2030c00), %g1 2011ab0: 84 10 a2 f4 or %g2, 0x2f4, %g2 /* * Start the timer server */ status = rtems_task_start( 2011ab4: 90 10 00 0b mov %o3, %o0 /* * 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; 2011ab8: c4 20 63 c0 st %g2, [ %g1 + 0x3c0 ] /* * Start the timer server */ status = rtems_task_start( 2011abc: 13 00 80 46 sethi %hi(0x2011800), %o1 2011ac0: 94 10 20 00 clr %o2 2011ac4: 7f ff fd 9e call 201113c 2011ac8: 92 12 63 c8 or %o1, 0x3c8, %o1 id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 2011acc: 80 a2 20 00 cmp %o0, 0 2011ad0: 02 bf ff ab be 201197c 2011ad4: 01 00 00 00 nop * 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; 2011ad8: c0 2c 61 d4 clrb [ %l1 + 0x1d4 ] } return status; } 2011adc: 81 c7 e0 08 ret 2011ae0: 91 e8 00 08 restore %g0, %o0, %o0 * 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 ) 2011ae4: 02 bf ff ad be 2011998 2011ae8: b0 10 20 00 clr %i0 * 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; 2011aec: 10 bf ff a4 b 201197c 2011af0: 90 10 20 13 mov 0x13, %o0 020116e8 : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 20116e8: 9d e3 bf 90 save %sp, -112, %sp 20116ec: 11 00 80 c3 sethi %hi(0x2030c00), %o0 20116f0: 92 10 00 18 mov %i0, %o1 20116f4: 90 12 23 80 or %o0, 0x380, %o0 20116f8: 40 00 0a b9 call 20141dc <_Objects_Get> 20116fc: 94 07 bf f4 add %fp, -12, %o2 Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 2011700: c2 07 bf f4 ld [ %fp + -12 ], %g1 2011704: a0 10 00 08 mov %o0, %l0 2011708: 80 a0 60 00 cmp %g1, 0 201170c: 12 80 00 11 bne 2011750 2011710: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 2011714: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2011718: 80 a0 60 01 cmp %g1, 1 201171c: 22 80 00 15 be,a 2011770 2011720: 31 00 80 c3 sethi %hi(0x2030c00), %i0 2011724: 1a 80 00 0d bcc 2011758 2011728: 80 a0 60 04 cmp %g1, 4 case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 201172c: a0 02 20 10 add %o0, 0x10, %l0 2011730: 40 00 13 b8 call 2016610 <_Watchdog_Remove> 2011734: 90 10 00 10 mov %l0, %o0 _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 2011738: 11 00 80 c3 sethi %hi(0x2030c00), %o0 201173c: 92 10 00 10 mov %l0, %o1 2011740: 40 00 13 49 call 2016464 <_Watchdog_Insert> 2011744: 90 12 21 44 or %o0, 0x144, %o0 case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 2011748: 40 00 0d 28 call 2014be8 <_Thread_Enable_dispatch> 201174c: b0 10 20 00 clr %i0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2011750: 81 c7 e0 08 ret 2011754: 81 e8 00 00 restore the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 2011758: 18 bf ff fc bgu 2011748 201175c: 01 00 00 00 nop (*_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(); 2011760: 40 00 0d 22 call 2014be8 <_Thread_Enable_dispatch> 2011764: b0 10 20 0b mov 0xb, %i0 ! b 2011768: 81 c7 e0 08 ret 201176c: 81 e8 00 00 restore 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 ) { 2011770: c2 06 23 c0 ld [ %i0 + 0x3c0 ], %g1 2011774: 80 a0 60 00 cmp %g1, 0 2011778: 02 80 00 08 be 2011798 201177c: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 2011780: 40 00 13 a4 call 2016610 <_Watchdog_Remove> 2011784: 90 02 20 10 add %o0, 0x10, %o0 (*_Timer_Server_schedule_operation)( the_timer ); 2011788: c2 06 23 c0 ld [ %i0 + 0x3c0 ], %g1 201178c: 9f c0 40 00 call %g1 2011790: 90 10 00 10 mov %l0, %o0 2011794: 30 bf ff ed b,a 2011748 _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(); 2011798: 40 00 0d 14 call 2014be8 <_Thread_Enable_dispatch> <== NOT EXECUTED 201179c: b0 10 20 0e mov 0xe, %i0 <== NOT EXECUTED 20117a0: 81 c7 e0 08 ret <== NOT EXECUTED 20117a4: 81 e8 00 00 restore <== NOT EXECUTED 020117a8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 20117a8: 9d e3 bf 90 save %sp, -112, %sp Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 20117ac: 03 00 80 c3 sethi %hi(0x2030c00), %g1 20117b0: c4 00 63 c4 ld [ %g1 + 0x3c4 ], %g2 ! 2030fc4 <_Timer_Server> Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 20117b4: a2 10 00 18 mov %i0, %l1 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 20117b8: 80 a0 a0 00 cmp %g2, 0 20117bc: 02 80 00 28 be 201185c 20117c0: b0 10 20 0e mov 0xe, %i0 return RTEMS_INCORRECT_STATE; if ( !routine ) 20117c4: 80 a6 a0 00 cmp %i2, 0 20117c8: 02 80 00 25 be 201185c 20117cc: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 20117d0: 80 a6 60 00 cmp %i1, 0 20117d4: 02 80 00 22 be 201185c 20117d8: b0 10 20 0a mov 0xa, %i0 20117dc: 11 00 80 c3 sethi %hi(0x2030c00), %o0 20117e0: 92 10 00 11 mov %l1, %o1 20117e4: 90 12 23 80 or %o0, 0x380, %o0 20117e8: 40 00 0a 7d call 20141dc <_Objects_Get> 20117ec: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 20117f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 20117f4: a0 10 00 08 mov %o0, %l0 20117f8: 80 a0 60 00 cmp %g1, 0 20117fc: 12 80 00 18 bne 201185c 2011800: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 2011804: 40 00 13 83 call 2016610 <_Watchdog_Remove> 2011808: 90 02 20 10 add %o0, 0x10, %o0 _ISR_Disable( level ); 201180c: 7f ff e6 8a call 200b234 2011810: 01 00 00 00 nop /* * 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 ) { 2011814: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2011818: 80 a0 60 00 cmp %g1, 0 201181c: 12 80 00 12 bne 2011864 2011820: 82 10 20 01 mov 1, %g1 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2011824: f4 24 20 2c st %i2, [ %l0 + 0x2c ] the_watchdog->id = id; 2011828: e2 24 20 30 st %l1, [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 201182c: f6 24 20 34 st %i3, [ %l0 + 0x34 ] * so we can atomically initialize it as in use. */ the_timer->the_class = TIMER_INTERVAL_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 2011830: f2 24 20 1c st %i1, [ %l0 + 0x1c ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011834: c0 24 20 18 clr [ %l0 + 0x18 ] /* * 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; 2011838: c2 24 20 38 st %g1, [ %l0 + 0x38 ] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; _ISR_Enable( level ); 201183c: 7f ff e6 82 call 200b244 2011840: b0 10 20 00 clr %i0 /* * _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 ); 2011844: 03 00 80 c3 sethi %hi(0x2030c00), %g1 2011848: c4 00 63 c0 ld [ %g1 + 0x3c0 ], %g2 ! 2030fc0 <_Timer_Server_schedule_operation> 201184c: 9f c0 80 00 call %g2 2011850: 90 10 00 10 mov %l0, %o0 _Thread_Enable_dispatch(); 2011854: 40 00 0c e5 call 2014be8 <_Thread_Enable_dispatch> 2011858: 01 00 00 00 nop case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 201185c: 81 c7 e0 08 ret 2011860: 81 e8 00 00 restore * 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 ); 2011864: 7f ff e6 78 call 200b244 <== NOT EXECUTED 2011868: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); 201186c: 40 00 0c df call 2014be8 <_Thread_Enable_dispatch> <== NOT EXECUTED 2011870: 01 00 00 00 nop <== NOT EXECUTED 2011874: 81 c7 e0 08 ret <== NOT EXECUTED 2011878: 81 e8 00 00 restore <== NOT EXECUTED 02007c24 : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 2007c24: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 2007c28: 03 08 00 00 sethi %hi(0x20000000), %g1 <== NOT EXECUTED 2007c2c: a8 8e 00 01 andcc %i0, %g1, %l4 <== NOT EXECUTED 2007c30: 02 80 00 10 be 2007c70 <== NOT EXECUTED 2007c34: a6 10 00 18 mov %i0, %l3 <== NOT EXECUTED { if (rtems_panic_in_progress++) 2007c38: 07 00 80 9f sethi %hi(0x2027c00), %g3 <== NOT EXECUTED 2007c3c: c4 00 e0 38 ld [ %g3 + 0x38 ], %g2 ! 2027c38 <== NOT EXECUTED 2007c40: 82 00 a0 01 add %g2, 1, %g1 <== NOT EXECUTED 2007c44: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2007c48: 02 80 00 06 be 2007c60 <== NOT EXECUTED 2007c4c: c2 20 e0 38 st %g1, [ %g3 + 0x38 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2007c50: 05 00 80 9f sethi %hi(0x2027c00), %g2 <== NOT EXECUTED 2007c54: c2 00 a2 20 ld [ %g2 + 0x220 ], %g1 ! 2027e20 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 2007c58: 82 00 60 01 inc %g1 <== NOT EXECUTED 2007c5c: c2 20 a2 20 st %g1, [ %g2 + 0x220 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 2007c60: c2 00 e0 38 ld [ %g3 + 0x38 ], %g1 <== NOT EXECUTED 2007c64: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2007c68: 34 80 00 3b bg,a 2007d54 <== NOT EXECUTED 2007c6c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 2007c70: 25 00 80 9b sethi %hi(0x2026c00), %l2 <== NOT EXECUTED 2007c74: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 ! 2026e20 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007c78: a2 10 20 00 clr %l1 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 2007c7c: 40 00 40 3a call 2017d64 <== NOT EXECUTED 2007c80: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 2007c84: 03 1c 00 00 sethi %hi(0x70000000), %g1 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007c88: 05 10 00 00 sethi %hi(0x40000000), %g2 <== NOT EXECUTED 2007c8c: 80 8c c0 02 btst %l3, %g2 <== NOT EXECUTED 2007c90: 12 80 00 42 bne 2007d98 <== NOT EXECUTED 2007c94: a0 2c c0 01 andn %l3, %g1, %l0 <== 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); 2007c98: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED 2007c9c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007ca0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007ca4: 40 00 59 08 call 201e0c4 <== NOT EXECUTED 2007ca8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 2007cac: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2007cb0: 12 80 00 2b bne 2007d5c <== NOT EXECUTED 2007cb4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 2007cb8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007cbc: 02 80 00 12 be 2007d04 <== NOT EXECUTED 2007cc0: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 2007cc4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007cc8: 04 80 00 08 ble 2007ce8 <== NOT EXECUTED 2007ccc: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED 2007cd0: 40 00 4d bb call 201b3bc <== NOT EXECUTED 2007cd4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007cd8: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 2007cdc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007ce0: 12 80 00 3b bne 2007dcc <== NOT EXECUTED 2007ce4: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 2007ce8: 13 00 80 8c sethi %hi(0x2023000), %o1 <== NOT EXECUTED 2007cec: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007cf0: 92 12 62 28 or %o1, 0x228, %o1 <== NOT EXECUTED 2007cf4: 40 00 41 87 call 2018310 <== NOT EXECUTED 2007cf8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2007cfc: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 2007d00: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED 2007d04: 13 00 80 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED 2007d08: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007d0c: 40 00 41 81 call 2018310 <== NOT EXECUTED 2007d10: 92 12 62 80 or %o1, 0x280, %o1 <== NOT EXECUTED (void) fflush(stderr); 2007d14: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== 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"); 2007d18: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED (void) fflush(stderr); 2007d1c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007d20: 40 00 40 11 call 2017d64 <== NOT EXECUTED 2007d24: b0 04 00 18 add %l0, %i0, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 2007d28: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 2007d2c: 80 8c c0 01 btst %l3, %g1 <== NOT EXECUTED 2007d30: 02 80 00 09 be 2007d54 <== NOT EXECUTED 2007d34: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 2007d38: 02 80 00 2f be 2007df4 <== NOT EXECUTED 2007d3c: 90 10 20 00 clr %o0 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 2007d40: 13 00 80 8c sethi %hi(0x2023000), %o1 <== NOT EXECUTED 2007d44: 40 00 00 3f call 2007e40 <== NOT EXECUTED 2007d48: 92 12 62 40 or %o1, 0x240, %o1 ! 2023240 <== NOT EXECUTED _exit(local_errno); 2007d4c: 40 00 02 47 call 2008668 <_exit> <== NOT EXECUTED 2007d50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 2007d54: 81 c7 e0 08 ret <== NOT EXECUTED 2007d58: 81 e8 00 00 restore <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007d5c: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 2007d60: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007d64: e0 00 60 0c ld [ %g1 + 0xc ], %l0 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 2007d68: 11 00 80 8d sethi %hi(0x2023400), %o0 <== NOT EXECUTED 2007d6c: 40 00 2b 7c call 2012b5c <== NOT EXECUTED 2007d70: 90 12 21 88 or %o0, 0x188, %o0 ! 2023588 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007d74: 13 00 80 8c sethi %hi(0x2023000), %o1 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 2007d78: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007d7c: 92 12 62 08 or %o1, 0x208, %o1 <== NOT EXECUTED 2007d80: 40 00 41 64 call 2018310 <== NOT EXECUTED 2007d84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (local_errno) 2007d88: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007d8c: 02 bf ff dd be 2007d00 <== NOT EXECUTED 2007d90: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED 2007d94: 30 bf ff cd b,a 2007cc8 <== 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; 2007d98: 40 00 3f 22 call 2017a20 <__errno> <== NOT EXECUTED 2007d9c: 01 00 00 00 nop <== 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); 2007da0: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== 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; 2007da4: e2 02 00 00 ld [ %o0 ], %l1 <== 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); 2007da8: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007dac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007db0: 40 00 58 c5 call 201e0c4 <== NOT EXECUTED 2007db4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 2007db8: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2007dbc: 02 bf ff bf be 2007cb8 <== NOT EXECUTED 2007dc0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007dc4: 10 bf ff e7 b 2007d60 <== NOT EXECUTED 2007dc8: c2 04 a2 20 ld [ %l2 + 0x220 ], %g1 <== NOT EXECUTED if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 2007dcc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007dd0: 40 00 4d 7b call 201b3bc <== NOT EXECUTED 2007dd4: e0 00 60 0c ld [ %g1 + 0xc ], %l0 <== NOT EXECUTED 2007dd8: 13 00 80 8c sethi %hi(0x2023000), %o1 <== NOT EXECUTED 2007ddc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007de0: 92 12 62 18 or %o1, 0x218, %o1 <== NOT EXECUTED 2007de4: 40 00 41 4b call 2018310 <== NOT EXECUTED 2007de8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2007dec: 10 bf ff c5 b 2007d00 <== NOT EXECUTED 2007df0: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 2007df4: 13 00 80 8c sethi %hi(0x2023000), %o1 <== NOT EXECUTED 2007df8: 40 00 00 12 call 2007e40 <== NOT EXECUTED 2007dfc: 92 12 62 58 or %o1, 0x258, %o1 ! 2023258 <== NOT EXECUTED abort(); 2007e00: 40 00 3e fa call 20179e8 <== NOT EXECUTED 2007e04: 01 00 00 00 nop 2007e08: 01 00 00 00 nop 02020e0c : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2020e0c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2020e10: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2020e14: 05 00 81 27 sethi %hi(0x2049c00), %g2 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2020e18: a6 10 63 ff or %g1, 0x3ff, %l3 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2020e1c: aa 10 a0 58 or %g2, 0x58, %l5 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 2020e20: 03 00 81 27 sethi %hi(0x2049c00), %g1 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2020e24: a2 10 20 00 clr %l1 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 2020e28: a8 10 60 48 or %g1, 0x48, %l4 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2020e2c: a4 10 20 00 clr %l2 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2020e30: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2020e34: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2020e38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020e3c: 06 80 00 23 bl 2020ec8 <== NOT EXECUTED 2020e40: c2 26 20 04 st %g1, [ %i0 + 4 ] <== NOT EXECUTED 2020e44: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED 2020e48: e0 08 40 00 ldub [ %g1 ], %l0 <== NOT EXECUTED 2020e4c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED if (c == ':') 2020e50: 80 a4 20 3a cmp %l0, 0x3a <== NOT EXECUTED 2020e54: 02 80 00 24 be 2020ee4 <== NOT EXECUTED 2020e58: c4 26 00 00 st %g2, [ %i0 ] <== NOT EXECUTED break; if (sign == 0) { 2020e5c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2020e60: 32 80 00 06 bne,a 2020e78 <== NOT EXECUTED 2020e64: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 2020e68: 80 a4 20 2d cmp %l0, 0x2d <== NOT EXECUTED 2020e6c: 02 80 00 2f be 2020f28 <== NOT EXECUTED 2020e70: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 2020e74: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED 2020e78: c4 08 40 10 ldub [ %g1 + %l0 ], %g2 <== NOT EXECUTED 2020e7c: 80 88 a0 04 btst 4, %g2 <== NOT EXECUTED 2020e80: 02 80 00 28 be 2020f20 <== NOT EXECUTED 2020e84: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 2020e88: 40 00 7f ea call 2040e30 <.udiv> <== NOT EXECUTED 2020e8c: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 2020e90: 80 a4 40 08 cmp %l1, %o0 <== NOT EXECUTED 2020e94: 18 80 00 23 bgu 2020f20 <== NOT EXECUTED 2020e98: 01 00 00 00 nop <== NOT EXECUTED 2020e9c: 02 80 00 1b be 2020f08 <== NOT EXECUTED 2020ea0: a0 04 3f d0 add %l0, -48, %l0 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 2020ea4: 85 2c 60 03 sll %l1, 3, %g2 <== NOT EXECUTED 2020ea8: 83 2c 60 01 sll %l1, 1, %g1 <== NOT EXECUTED 2020eac: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2020eb0: a2 04 00 01 add %l0, %g1, %l1 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2020eb4: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2020eb8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2020ebc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020ec0: 16 bf ff e1 bge 2020e44 <== NOT EXECUTED 2020ec4: c2 26 20 04 st %g1, [ %i0 + 4 ] <== NOT EXECUTED 2020ec8: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 2020ecc: 40 00 51 a4 call 203555c <__srget_r> <== NOT EXECUTED 2020ed0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2020ed4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED if (c == ':') 2020ed8: 80 a4 20 3a cmp %l0, 0x3a <== NOT EXECUTED 2020edc: 12 bf ff e1 bne 2020e60 <== NOT EXECUTED 2020ee0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 2020ee4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2020ee8: 02 80 00 0e be 2020f20 <== NOT EXECUTED 2020eec: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED return 0; *val = i * sign; 2020ef0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2020ef4: 40 00 7f 95 call 2040d48 <.umul> <== NOT EXECUTED 2020ef8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2020efc: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED 2020f00: 81 c7 e0 08 ret <== NOT EXECUTED 2020f04: 81 e8 00 00 restore <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 2020f08: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2020f0c: 40 00 80 75 call 20410e0 <.urem> <== NOT EXECUTED 2020f10: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 2020f14: 80 a4 00 08 cmp %l0, %o0 <== NOT EXECUTED 2020f18: 08 bf ff e4 bleu 2020ea8 <== NOT EXECUTED 2020f1c: 85 2c 60 03 sll %l1, 3, %g2 <== NOT EXECUTED } if (sign == 0) return 0; *val = i * sign; return 1; } 2020f20: 81 c7 e0 08 ret <== NOT EXECUTED 2020f24: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 2020f28: a6 04 e0 01 inc %l3 <== NOT EXECUTED 2020f2c: 10 bf ff c1 b 2020e30 <== NOT EXECUTED 2020f30: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED 02020f34 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 2020f34: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int c; *name = *bufp; 2020f38: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 2020f3c: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED for (;;) { c = getc(fp); 2020f40: 03 00 81 27 sethi %hi(0x2049c00), %g1 <== NOT EXECUTED 2020f44: 10 80 00 19 b 2020fa8 <== NOT EXECUTED 2020f48: b2 10 60 58 or %g1, 0x58, %i1 ! 2049c58 <_impure_ptr> <== NOT EXECUTED 2020f4c: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED 2020f50: d0 08 40 00 ldub [ %g1 ], %o0 <== NOT EXECUTED 2020f54: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED if (c == ':') { 2020f58: 80 a2 20 3a cmp %o0, 0x3a <== NOT EXECUTED 2020f5c: 02 80 00 1e be 2020fd4 <== NOT EXECUTED 2020f60: c4 26 00 00 st %g2, [ %i0 ] <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { 2020f64: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 2020f68: 02 80 00 28 be 2021008 <== NOT EXECUTED 2020f6c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED if (!nlFlag) return 0; break; } if (c == EOF) 2020f70: 02 80 00 29 be 2021014 <== NOT EXECUTED 2020f74: 01 00 00 00 nop <== NOT EXECUTED return 0; if (*nleft < 2) 2020f78: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 2020f7c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2020f80: 08 80 00 25 bleu 2021014 <== NOT EXECUTED 2020f84: 01 00 00 00 nop <== NOT EXECUTED return 0; **bufp = c; 2020f88: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 2020f8c: d0 28 40 00 stb %o0, [ %g1 ] <== NOT EXECUTED ++(*bufp); 2020f90: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED --(*nleft); 2020f94: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2020f98: 84 00 a0 01 inc %g2 <== NOT EXECUTED --(*nleft); 2020f9c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2020fa0: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED --(*nleft); 2020fa4: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 2020fa8: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2020fac: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2020fb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020fb4: 16 bf ff e6 bge 2020f4c <== NOT EXECUTED 2020fb8: c2 26 20 04 st %g1, [ %i0 + 4 ] <== NOT EXECUTED 2020fbc: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED 2020fc0: 40 00 51 67 call 203555c <__srget_r> <== NOT EXECUTED 2020fc4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (c == ':') { 2020fc8: 80 a2 20 3a cmp %o0, 0x3a <== NOT EXECUTED 2020fcc: 12 bf ff e7 bne 2020f68 <== NOT EXECUTED 2020fd0: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED if (nlFlag) 2020fd4: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 2020fd8: 12 80 00 0f bne 2021014 <== NOT EXECUTED 2020fdc: 01 00 00 00 nop <== NOT EXECUTED return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 2020fe0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 2020fe4: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED ++(*bufp); 2020fe8: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED --(*nleft); 2020fec: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2020ff0: 84 00 a0 01 inc %g2 <== NOT EXECUTED --(*nleft); 2020ff4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2020ff8: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED --(*nleft); 2020ffc: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED 2021000: 81 c7 e0 08 ret <== NOT EXECUTED 2021004: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 2021008: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 202100c: 32 bf ff f6 bne,a 2020fe4 <== NOT EXECUTED 2021010: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; } 2021014: 81 c7 e0 08 ret <== NOT EXECUTED 2021018: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0202101c : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 202101c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2021020: 98 10 20 00 clr %o4 <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 2021024: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2021028: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 202102c: b4 07 a0 50 add %fp, 0x50, %i2 <== NOT EXECUTED 2021030: b6 07 a0 4c add %fp, 0x4c, %i3 <== NOT EXECUTED 2021034: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021038: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 202103c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2021040: 7f ff ff bd call 2020f34 <== NOT EXECUTED 2021044: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 2021048: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202104c: 12 80 00 04 bne 202105c <== NOT EXECUTED 2021050: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; } 2021054: 81 c7 e0 08 ret <== NOT EXECUTED 2021058: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 202105c: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED 2021060: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2021064: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 2021068: 7f ff ff b3 call 2020f34 <== NOT EXECUTED 202106c: 98 10 20 00 clr %o4 <== NOT EXECUTED 2021070: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021074: 02 bf ff f8 be 2021054 <== NOT EXECUTED 2021078: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202107c: 7f ff ff 64 call 2020e0c <== NOT EXECUTED 2021080: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED 2021084: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021088: 02 bf ff f3 be 2021054 <== NOT EXECUTED 202108c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021090: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2021094: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 2021098: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED 202109c: 7f ff ff a6 call 2020f34 <== NOT EXECUTED 20210a0: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 20210a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20210a8: 02 bf ff eb be 2021054 <== NOT EXECUTED 20210ac: da 07 bf f0 ld [ %fp + -16 ], %o5 <== NOT EXECUTED || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 20210b0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20210b4: 86 10 00 0d mov %o5, %g3 <== 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; 20210b8: c2 36 60 08 sth %g1, [ %i1 + 8 ] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20210bc: c4 0b 40 00 ldub [ %o5 ], %g2 <== NOT EXECUTED 20210c0: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED 20210c4: 83 28 a0 18 sll %g2, 0x18, %g1 <== NOT EXECUTED 20210c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20210cc: 02 80 00 0e be 2021104 <== NOT EXECUTED 20210d0: 84 10 20 17 mov 0x17, %g2 <== NOT EXECUTED 20210d4: 86 00 e0 01 inc %g3 <== NOT EXECUTED 20210d8: c4 08 c0 00 ldub [ %g3 ], %g2 <== NOT EXECUTED if(*cp == ',') 20210dc: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED memcount++; 20210e0: 82 18 60 2c xor %g1, 0x2c, %g1 <== NOT EXECUTED 20210e4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20210e8: 83 28 a0 18 sll %g2, 0x18, %g1 <== NOT EXECUTED if(*cp == ',') memcount++; 20210ec: 88 61 3f ff subx %g4, -1, %g4 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20210f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20210f4: 32 bf ff f9 bne,a 20210d8 <== NOT EXECUTED 20210f8: 86 00 e0 01 inc %g3 <== NOT EXECUTED 20210fc: 83 29 20 02 sll %g4, 2, %g1 <== NOT EXECUTED 2021100: 84 00 60 13 add %g1, 0x13, %g2 <== NOT EXECUTED } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 2021104: c2 07 a0 50 ld [ %fp + 0x50 ], %g1 <== NOT EXECUTED 2021108: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202110c: 0a bf ff d2 bcs 2021054 <== NOT EXECUTED 2021110: c2 07 a0 4c ld [ %fp + 0x4c ], %g1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2021114: 88 10 20 01 mov 1, %g4 <== 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); 2021118: 82 00 60 0f add %g1, 0xf, %g1 <== NOT EXECUTED 202111c: 82 08 7f f0 and %g1, -16, %g1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 2021120: da 20 40 00 st %o5, [ %g1 ] <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2021124: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== 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); 2021128: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 202112c: c2 08 80 00 ldub [ %g2 ], %g1 <== NOT EXECUTED 2021130: 86 00 a0 01 add %g2, 1, %g3 <== NOT EXECUTED 2021134: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2021138: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202113c: 12 80 00 09 bne 2021160 <== NOT EXECUTED 2021140: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 2021144: 10 80 00 13 b 2021190 <== NOT EXECUTED 2021148: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 202114c: c2 08 c0 00 ldub [ %g3 ], %g1 <== NOT EXECUTED 2021150: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 2021154: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2021158: 02 80 00 0c be 2021188 <== NOT EXECUTED 202115c: 86 00 e0 01 inc %g3 <== NOT EXECUTED if(*cp == ',') { 2021160: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 2021164: 80 a0 60 2c cmp %g1, 0x2c <== NOT EXECUTED 2021168: 32 bf ff fa bne,a 2021150 <== NOT EXECUTED 202116c: c2 08 c0 00 ldub [ %g3 ], %g1 <== NOT EXECUTED *cp = '\0'; 2021170: c0 28 ff ff clrb [ %g3 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 2021174: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED 2021178: 83 29 20 02 sll %g4, 2, %g1 <== NOT EXECUTED 202117c: 88 01 20 01 inc %g4 <== NOT EXECUTED 2021180: 10 bf ff f3 b 202114c <== NOT EXECUTED 2021184: c6 20 80 01 st %g3, [ %g2 + %g1 ] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2021188: 85 29 20 02 sll %g4, 2, %g2 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 202118c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED 2021190: c0 20 40 02 clr [ %g1 + %g2 ] <== NOT EXECUTED 2021194: 81 c7 e0 08 ret <== NOT EXECUTED 2021198: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED 020211e8 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 20211e8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20211ec: 98 10 20 00 clr %o4 <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 20211f0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20211f4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20211f8: b4 07 a0 50 add %fp, 0x50, %i2 <== NOT EXECUTED 20211fc: b6 07 a0 4c add %fp, 0x4c, %i3 <== NOT EXECUTED 2021200: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021204: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2021208: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 202120c: 7f ff ff 4a call 2020f34 <== NOT EXECUTED 2021210: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 2021214: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021218: 12 80 00 04 bne 2021228 <== NOT EXECUTED 202121c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; } 2021220: 81 c7 e0 08 ret <== NOT EXECUTED 2021224: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2021228: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED 202122c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2021230: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 2021234: 7f ff ff 40 call 2020f34 <== NOT EXECUTED 2021238: 98 10 20 00 clr %o4 <== NOT EXECUTED 202123c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021240: 02 bf ff f8 be 2021220 <== NOT EXECUTED 2021244: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021248: 7f ff fe f1 call 2020e0c <== NOT EXECUTED 202124c: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED 2021250: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021254: 02 bf ff f3 be 2021220 <== NOT EXECUTED 2021258: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202125c: 7f ff fe ec call 2020e0c <== NOT EXECUTED 2021260: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED 2021264: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021268: 02 bf ff ee be 2021220 <== NOT EXECUTED 202126c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021270: 92 06 60 0c add %i1, 0xc, %o1 <== NOT EXECUTED 2021274: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2021278: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 202127c: 7f ff ff 2e call 2020f34 <== NOT EXECUTED 2021280: 98 10 20 00 clr %o4 <== NOT EXECUTED 2021284: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021288: 02 bf ff e6 be 2021220 <== NOT EXECUTED 202128c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2021290: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED 2021294: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 2021298: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 202129c: 7f ff ff 26 call 2020f34 <== NOT EXECUTED 20212a0: 98 10 20 00 clr %o4 <== NOT EXECUTED 20212a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20212a8: 02 bf ff de be 2021220 <== NOT EXECUTED 20212ac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20212b0: 92 06 60 14 add %i1, 0x14, %o1 <== NOT EXECUTED 20212b4: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 20212b8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 20212bc: 7f ff ff 1e call 2020f34 <== NOT EXECUTED 20212c0: 98 10 20 00 clr %o4 <== NOT EXECUTED 20212c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20212c8: 02 bf ff d6 be 2021220 <== NOT EXECUTED 20212cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20212d0: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 20212d4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 20212d8: 92 06 60 18 add %i1, 0x18, %o1 <== NOT EXECUTED 20212dc: 7f ff ff 16 call 2020f34 <== NOT EXECUTED 20212e0: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 20212e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20212e8: 02 bf ff ce be 2021220 <== NOT EXECUTED 20212ec: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== 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; 20212f0: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== 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; 20212f4: c2 36 60 08 sth %g1, [ %i1 + 8 ] <== NOT EXECUTED pwd->pw_gid = pwgid; 20212f8: c4 36 60 0a sth %g2, [ %i1 + 0xa ] <== NOT EXECUTED 20212fc: 81 c7 e0 08 ret <== NOT EXECUTED 2021300: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED 02020da8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 2020da8: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 2020dac: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED 2020db0: d0 30 a0 2a sth %o0, [ %g2 + 0x2a ] <== NOT EXECUTED return 0; } 2020db4: 81 c3 e0 08 retl <== NOT EXECUTED 2020db8: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202143c : return NULL; return &grent; } void setgrent(void) { 202143c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED init_etc_passwd_group(); 2021440: 7f ff ff c4 call 2021350 <== NOT EXECUTED 2021444: 21 00 81 72 sethi %hi(0x205c800), %l0 <== NOT EXECUTED if (group_fp != NULL) 2021448: d0 04 22 54 ld [ %l0 + 0x254 ], %o0 ! 205ca54 <== NOT EXECUTED 202144c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021450: 22 80 00 05 be,a 2021464 <== NOT EXECUTED 2021454: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED fclose(group_fp); 2021458: 40 00 3e 3f call 2030d54 <== NOT EXECUTED 202145c: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 2021460: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED 2021464: 13 00 81 1f sethi %hi(0x2047c00), %o1 <== NOT EXECUTED 2021468: 90 12 22 18 or %o0, 0x218, %o0 <== NOT EXECUTED 202146c: 40 00 40 54 call 20315bc <== NOT EXECUTED 2021470: 92 12 61 c8 or %o1, 0x1c8, %o1 <== NOT EXECUTED 2021474: d0 24 22 54 st %o0, [ %l0 + 0x254 ] <== NOT EXECUTED } 2021478: 81 c7 e0 08 ret <== NOT EXECUTED 202147c: 81 e8 00 00 restore <== NOT EXECUTED 02021640 : return NULL; return &pwent; } void setpwent(void) { 2021640: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED init_etc_passwd_group(); 2021644: 7f ff ff 43 call 2021350 <== NOT EXECUTED 2021648: 21 00 81 72 sethi %hi(0x205c800), %l0 <== NOT EXECUTED if (passwd_fp != NULL) 202164c: d0 04 21 6c ld [ %l0 + 0x16c ], %o0 ! 205c96c <== NOT EXECUTED 2021650: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2021654: 22 80 00 05 be,a 2021668 <== NOT EXECUTED 2021658: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED fclose(passwd_fp); 202165c: 40 00 3d be call 2030d54 <== NOT EXECUTED 2021660: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 2021664: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED 2021668: 13 00 81 1f sethi %hi(0x2047c00), %o1 <== NOT EXECUTED 202166c: 90 12 21 a0 or %o0, 0x1a0, %o0 <== NOT EXECUTED 2021670: 40 00 3f d3 call 20315bc <== NOT EXECUTED 2021674: 92 12 61 c8 or %o1, 0x1c8, %o1 <== NOT EXECUTED 2021678: d0 24 21 6c st %o0, [ %l0 + 0x16c ] <== NOT EXECUTED } 202167c: 81 c7 e0 08 ret <== NOT EXECUTED 2021680: 81 e8 00 00 restore <== NOT EXECUTED 020048bc : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 20048bc: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 20048c0: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED 20048c4: d0 30 a0 28 sth %o0, [ %g2 + 0x28 ] <== NOT EXECUTED return 0; } 20048c8: 81 c3 e0 08 retl <== NOT EXECUTED 20048cc: 90 10 20 00 clr %o0 <== NOT EXECUTED 02003d14 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2003d14: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 2003d18: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003d1c: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 2003d20: 32 80 00 05 bne,a 2003d34 <== NOT EXECUTED 2003d24: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== 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); 2003d28: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 2003d2c: 7f ff ff 7d call 2003b20 <== NOT EXECUTED 2003d30: 81 e8 00 00 restore <== 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); 2003d34: 94 10 20 00 clr %o2 <== NOT EXECUTED 2003d38: 40 00 06 a9 call 20057dc <== NOT EXECUTED 2003d3c: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 2003d40: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 2003d44: 7f ff ff 77 call 2003b20 <== NOT EXECUTED 2003d48: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003d4c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003d50: 40 00 06 eb call 20058fc <== NOT EXECUTED 2003d54: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2003d58: 81 c7 e0 08 ret <== NOT EXECUTED 2003d5c: 81 e8 00 00 restore <== NOT EXECUTED 02006074 : int _STAT_NAME( const char *path, struct stat *buf ) { 2006074: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2006078: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 200607c: 02 80 00 32 be 2006144 <== NOT EXECUTED 2006080: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 2006084: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2006088: 92 10 20 00 clr %o1 <== NOT EXECUTED 200608c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2006090: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2006094: 7f ff f9 5a call 20045fc <== NOT EXECUTED 2006098: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( status != 0 ) 200609c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20060a0: 12 80 00 27 bne 200613c <== NOT EXECUTED 20060a4: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 20060a8: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 20060ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20060b0: 02 80 00 2b be 200615c <== NOT EXECUTED 20060b4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 20060b8: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 20060bc: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 20060c0: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 20060c4: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 20060c8: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 20060cc: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 20060d0: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 20060d4: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 20060d8: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 20060dc: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 20060e0: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 20060e4: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 20060e8: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 20060ec: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED 20060f0: c0 26 60 38 clr [ %i1 + 0x38 ] <== NOT EXECUTED 20060f4: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED 20060f8: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED 20060fc: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED 2006100: c0 26 60 48 clr [ %i1 + 0x48 ] <== NOT EXECUTED 2006104: c0 26 60 4c clr [ %i1 + 0x4c ] <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 2006108: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 200610c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006110: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2006114: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2006118: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200611c: 02 80 00 08 be 200613c <== NOT EXECUTED 2006120: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2006124: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2006128: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200612c: 02 80 00 1a be 2006194 <== NOT EXECUTED 2006130: 01 00 00 00 nop <== NOT EXECUTED 2006134: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006138: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 200613c: 81 c7 e0 08 ret <== NOT EXECUTED 2006140: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 2006144: 40 00 aa ac call 2030bf4 <__errno> <== NOT EXECUTED 2006148: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200614c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2006150: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2006154: 81 c7 e0 08 ret <== NOT EXECUTED 2006158: 81 e8 00 00 restore <== 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 ); 200615c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2006160: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006164: 02 80 00 08 be 2006184 <== NOT EXECUTED 2006168: 01 00 00 00 nop <== NOT EXECUTED 200616c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2006170: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006174: 02 80 00 04 be 2006184 <== NOT EXECUTED 2006178: 01 00 00 00 nop <== NOT EXECUTED 200617c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006180: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006184: 40 00 aa 9c call 2030bf4 <__errno> <== NOT EXECUTED 2006188: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200618c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006190: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2006194: 81 c7 e0 08 ret <== NOT EXECUTED 2006198: 81 e8 00 00 restore <== NOT EXECUTED 02022794 : int symlink( const char *actualpath, const char *sympath ) { 2022794: 9d e3 bf 80 save %sp, -128, %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 ); 2022798: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 202279c: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 20227a0: 02 80 00 07 be 20227bc <== NOT EXECUTED 20227a4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED 20227a8: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 20227ac: 02 80 00 04 be 20227bc <== NOT EXECUTED 20227b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20227b4: 12 80 00 2b bne 2022860 <== NOT EXECUTED 20227b8: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 20227bc: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 20227c0: c6 00 61 8c ld [ %g1 + 0x18c ], %g3 ! 2048d8c <== NOT EXECUTED 20227c4: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED 20227c8: c2 00 e0 14 ld [ %g3 + 0x14 ], %g1 <== NOT EXECUTED 20227cc: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED 20227d0: c4 00 e0 18 ld [ %g3 + 0x18 ], %g2 <== NOT EXECUTED 20227d4: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED 20227d8: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 20227dc: c2 27 bf ec st %g1, [ %fp + -20 ] <== NOT EXECUTED 20227e0: c4 00 e0 20 ld [ %g3 + 0x20 ], %g2 <== NOT EXECUTED 20227e4: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 20227e8: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20227ec: 90 06 40 04 add %i1, %g4, %o0 <== NOT EXECUTED 20227f0: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 20227f4: b2 07 bf e4 add %fp, -28, %i1 <== NOT EXECUTED 20227f8: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 20227fc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2022800: 9f c0 80 00 call %g2 <== NOT EXECUTED 2022804: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( result != 0 ) 2022808: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202280c: 12 80 00 13 bne 2022858 <== NOT EXECUTED 2022810: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 2022814: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 <== NOT EXECUTED 2022818: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202281c: 02 80 00 1c be 202288c <== NOT EXECUTED 2022820: d4 07 bf f4 ld [ %fp + -12 ], %o2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 2022824: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2022828: 9f c0 40 00 call %g1 <== NOT EXECUTED 202282c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2022830: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2022834: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022838: 02 80 00 08 be 2022858 <== NOT EXECUTED 202283c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2022840: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022844: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022848: 02 80 00 1b be 20228b4 <== NOT EXECUTED 202284c: 01 00 00 00 nop <== NOT EXECUTED 2022850: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022854: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED return result; } 2022858: 81 c7 e0 08 ret <== NOT EXECUTED 202285c: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 2022860: c6 00 61 8c ld [ %g1 + 0x18c ], %g3 <== NOT EXECUTED 2022864: 88 10 20 00 clr %g4 <== NOT EXECUTED 2022868: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 202286c: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED 2022870: c4 00 e0 08 ld [ %g3 + 8 ], %g2 <== NOT EXECUTED 2022874: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED 2022878: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED 202287c: c2 27 bf ec st %g1, [ %fp + -20 ] <== NOT EXECUTED 2022880: c4 00 e0 10 ld [ %g3 + 0x10 ], %g2 <== NOT EXECUTED 2022884: 10 bf ff d9 b 20227e8 <== NOT EXECUTED 2022888: c4 27 bf f0 st %g2, [ %fp + -16 ] <== 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 ); 202288c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2022890: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022894: 02 80 00 04 be 20228a4 <== NOT EXECUTED 2022898: 01 00 00 00 nop <== NOT EXECUTED 202289c: 9f c0 40 00 call %g1 <== NOT EXECUTED 20228a0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20228a4: 40 00 38 d4 call 2030bf4 <__errno> <== NOT EXECUTED 20228a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20228ac: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20228b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20228b4: 81 c7 e0 08 ret <== NOT EXECUTED 20228b8: 81 e8 00 00 restore <== NOT EXECUTED 020228bc : int tcdrain( int fd ) { return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 20228bc: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20228c0: 94 10 20 00 clr %o2 <== NOT EXECUTED 20228c4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20228c8: 7f ff fb df call 2021844 <== NOT EXECUTED 20228cc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20228d0: 01 00 00 00 nop 02013744 : int tcgetattr( int fd, struct termios *tp ) { 2013744: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); 2013748: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 201374c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2013750: 40 00 0e 6f call 201710c <== NOT EXECUTED 2013754: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2013758: 01 00 00 00 nop 0201375c : int tcsetattr( int fd, int opt, struct termios *tp ) { 201375c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED switch (opt) { 2013760: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2013764: 02 80 00 10 be 20137a4 <== NOT EXECUTED 2013768: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 201376c: 02 80 00 08 be 201378c <== NOT EXECUTED 2013770: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 2013774: 40 00 10 ab call 2017a20 <__errno> <== NOT EXECUTED 2013778: 01 00 00 00 nop <== NOT EXECUTED 201377c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2013780: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 2013784: 81 c7 e0 08 ret <== NOT EXECUTED 2013788: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 201378c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2013790: 40 00 0e 5f call 201710c <== NOT EXECUTED 2013794: 94 10 20 00 clr %o2 <== NOT EXECUTED 2013798: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201379c: 06 bf ff fa bl 2013784 <== NOT EXECUTED 20137a0: 01 00 00 00 nop <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 20137a4: 40 00 0e 5a call 201710c <== NOT EXECUTED 20137a8: 93 e8 20 02 restore %g0, 2, %o1 <== NOT EXECUTED 20137ac: 01 00 00 00 nop 02022a44 : */ char *ttyname( int fd ) { 2022a44: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 2022a48: 21 00 81 23 sethi %hi(0x2048c00), %l0 <== NOT EXECUTED 2022a4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022a50: 94 10 24 06 mov 0x406, %o2 <== NOT EXECUTED 2022a54: 92 14 21 90 or %l0, 0x190, %o1 <== NOT EXECUTED 2022a58: 7f ff ff ba call 2022940 <== NOT EXECUTED 2022a5c: b0 14 21 90 or %l0, 0x190, %i0 <== NOT EXECUTED 2022a60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022a64: 12 80 00 04 bne 2022a74 <== NOT EXECUTED 2022a68: 01 00 00 00 nop <== NOT EXECUTED return ttyname_buf; return NULL; } 2022a6c: 81 c7 e0 08 ret <== NOT EXECUTED 2022a70: 81 e8 00 00 restore <== NOT EXECUTED 2022a74: 81 c7 e0 08 ret <== NOT EXECUTED 2022a78: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02022940 : int ttyname_r( int fd, char *name, size_t namesize ) { 2022940: 9d e3 be d0 save %sp, -304, %sp <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 2022944: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022948: 7f ff ff e3 call 20228d4 <== NOT EXECUTED 202294c: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED 2022950: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022954: 06 80 00 0d bl 2022988 <== NOT EXECUTED 2022958: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 202295c: 7f ff f7 3a call 2020644 <== NOT EXECUTED 2022960: 92 07 bf 80 add %fp, -128, %o1 <== NOT EXECUTED 2022964: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022968: 12 80 00 08 bne 2022988 <== NOT EXECUTED 202296c: c2 17 bf 8c lduh [ %fp + -116 ], %g1 <== NOT EXECUTED 2022970: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED 2022974: 07 00 00 08 sethi %hi(0x2000), %g3 <== NOT EXECUTED 2022978: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED 202297c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2022980: 02 80 00 08 be 20229a0 <== NOT EXECUTED 2022984: 11 00 81 15 sethi %hi(0x2045400), %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); 2022988: 40 00 38 9b call 2030bf4 <__errno> <== NOT EXECUTED 202298c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022990: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2022994: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022998: 81 c7 e0 08 ret <== NOT EXECUTED 202299c: 81 e8 00 00 restore <== 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); 20229a0: a0 06 60 05 add %i1, 5, %l0 <== 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) 20229a4: 90 12 23 08 or %o0, 0x308, %o0 <== NOT EXECUTED 20229a8: 7f ff fd 98 call 2022008 <== NOT EXECUTED 20229ac: a2 07 bf 30 add %fp, -208, %l1 <== NOT EXECUTED 20229b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20229b4: 02 bf ff f5 be 2022988 <== NOT EXECUTED 20229b8: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); for (rval = NULL; (dirp = readdir (dp)) != NULL ;) 20229bc: 7f ff fe 55 call 2022310 <== NOT EXECUTED 20229c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20229c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20229c8: 02 80 00 1a be 2022a30 <== NOT EXECUTED 20229cc: c2 07 bf 88 ld [ %fp + -120 ], %g1 <== NOT EXECUTED { if (dirp->d_ino != sb.st_ino) 20229d0: c4 02 00 00 ld [ %o0 ], %g2 <== NOT EXECUTED 20229d4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20229d8: 12 bf ff f9 bne 20229bc <== NOT EXECUTED 20229dc: 92 02 20 0c add %o0, 0xc, %o1 <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 20229e0: 40 00 4d 39 call 2035ec4 <== NOT EXECUTED 20229e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 20229e8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20229ec: 7f ff 8d a2 call 2006074 <== NOT EXECUTED 20229f0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20229f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20229f8: 12 bf ff f1 bne 20229bc <== NOT EXECUTED 20229fc: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED 2022a00: c2 07 bf 80 ld [ %fp + -128 ], %g1 <== NOT EXECUTED 2022a04: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2022a08: 12 bf ff ed bne 20229bc <== NOT EXECUTED 2022a0c: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED 2022a10: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED 2022a14: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2022a18: 12 bf ff e9 bne 20229bc <== NOT EXECUTED 2022a1c: c4 07 bf 38 ld [ %fp + -200 ], %g2 <== NOT EXECUTED 2022a20: c2 07 bf 88 ld [ %fp + -120 ], %g1 <== NOT EXECUTED 2022a24: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2022a28: 12 bf ff e5 bne 20229bc <== NOT EXECUTED 2022a2c: 01 00 00 00 nop <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 2022a30: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022a34: 40 00 2e 51 call 202e378 <== NOT EXECUTED 2022a38: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 2022a3c: 81 c7 e0 08 ret <== NOT EXECUTED 2022a40: 81 e8 00 00 restore <== NOT EXECUTED 02022a7c : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 2022a7c: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== NOT EXECUTED 2022a80: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED 2022a84: c6 10 a0 24 lduh [ %g2 + 0x24 ], %g3 <== NOT EXECUTED rtems_filesystem_umask = cmask; 2022a88: d0 30 a0 24 sth %o0, [ %g2 + 0x24 ] <== NOT EXECUTED return old_mask; } 2022a8c: 81 c3 e0 08 retl <== NOT EXECUTED 2022a90: 90 10 00 03 mov %g3, %o0 <== NOT EXECUTED 02022a94 : #include int unlink( const char *path ) { 2022a94: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 2022a98: 92 10 20 00 clr %o1 <== NOT EXECUTED 2022a9c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022aa0: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2022aa4: 96 10 20 00 clr %o3 <== NOT EXECUTED 2022aa8: 7f ff 86 d5 call 20045fc <== NOT EXECUTED 2022aac: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if ( result != 0 ) 2022ab0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022ab4: 02 80 00 04 be 2022ac4 <== NOT EXECUTED 2022ab8: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); return result; } 2022abc: 81 c7 e0 08 ret <== NOT EXECUTED 2022ac0: 91 e8 3f ff restore %g0, -1, %o0 <== 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 ); 2022ac4: 7f ff 86 9e call 200453c <== NOT EXECUTED 2022ac8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 2022acc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022ad0: 12 80 00 1d bne 2022b44 <== NOT EXECUTED 2022ad4: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return -1; } if ( !loc.ops->node_type_h ) { 2022ad8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2022adc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022ae0: 22 80 00 2b be,a 2022b8c <== NOT EXECUTED 2022ae4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 2022ae8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022aec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022af0: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2022af4: 02 80 00 31 be 2022bb8 <== NOT EXECUTED 2022af8: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 2022afc: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED 2022b00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022b04: 22 80 00 22 be,a 2022b8c <== NOT EXECUTED 2022b08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 2022b0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022b10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2022b14: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2022b18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022b1c: 02 80 00 08 be 2022b3c <== NOT EXECUTED 2022b20: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2022b24: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022b28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022b2c: 02 80 00 31 be 2022bf0 <== NOT EXECUTED 2022b30: 01 00 00 00 nop <== NOT EXECUTED 2022b34: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022b38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022b3c: 81 c7 e0 08 ret <== NOT EXECUTED 2022b40: 81 e8 00 00 restore <== 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) { 2022b44: 40 00 38 2c call 2030bf4 <__errno> <== NOT EXECUTED 2022b48: 01 00 00 00 nop <== NOT EXECUTED 2022b4c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2022b50: 80 a0 60 86 cmp %g1, 0x86 <== NOT EXECUTED 2022b54: 02 bf ff e1 be 2022ad8 <== NOT EXECUTED 2022b58: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2022b5c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2022b60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022b64: 02 bf ff f6 be 2022b3c <== NOT EXECUTED 2022b68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022b6c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022b70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022b74: 02 bf ff f2 be 2022b3c <== NOT EXECUTED 2022b78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2022b7c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022b80: 01 00 00 00 nop <== NOT EXECUTED 2022b84: 81 c7 e0 08 ret <== NOT EXECUTED 2022b88: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 2022b8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022b90: 02 80 00 04 be 2022ba0 <== NOT EXECUTED 2022b94: 01 00 00 00 nop <== NOT EXECUTED 2022b98: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022b9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2022ba0: 40 00 38 15 call 2030bf4 <__errno> <== NOT EXECUTED 2022ba4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022ba8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2022bac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022bb0: 81 c7 e0 08 ret <== NOT EXECUTED 2022bb4: 81 e8 00 00 restore <== 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 ); 2022bb8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2022bbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022bc0: 02 80 00 08 be 2022be0 <== NOT EXECUTED 2022bc4: 01 00 00 00 nop <== NOT EXECUTED 2022bc8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022bcc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022bd0: 02 80 00 04 be 2022be0 <== NOT EXECUTED 2022bd4: 01 00 00 00 nop <== NOT EXECUTED 2022bd8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022bdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 2022be0: 40 00 38 05 call 2030bf4 <__errno> <== NOT EXECUTED 2022be4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022be8: 82 10 20 15 mov 0x15, %g1 <== NOT EXECUTED 2022bec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022bf0: 81 c7 e0 08 ret <== NOT EXECUTED 2022bf4: 81 e8 00 00 restore <== NOT EXECUTED 02022c88 : */ int unmount( const char *path ) { 2022c88: 9d e3 bf 88 save %sp, -120, %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 ) ) 2022c8c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2022c90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022c94: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2022c98: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2022c9c: 7f ff 86 58 call 20045fc <== NOT EXECUTED 2022ca0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2022ca4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022ca8: 12 80 00 3e bne 2022da0 <== NOT EXECUTED 2022cac: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 2022cb0: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ 2022cb4: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 <== NOT EXECUTED 2022cb8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2022cbc: 12 80 00 41 bne 2022dc0 <== NOT EXECUTED 2022cc0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 2022cc4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022cc8: 22 80 00 09 be,a 2022cec <== NOT EXECUTED 2022ccc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2022cd0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022cd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022cd8: 22 80 00 05 be,a 2022cec <== NOT EXECUTED 2022cdc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2022ce0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022ce4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 2022ce8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2022cec: c4 00 60 28 ld [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 2022cf0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2022cf4: 02 80 00 61 be 2022e78 <== NOT EXECUTED 2022cf8: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 2022cfc: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2022d00: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 <== NOT EXECUTED 2022d04: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2022d08: 02 80 00 5c be 2022e78 <== NOT EXECUTED 2022d0c: 03 00 81 23 sethi %hi(0x2048c00), %g1 <== 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 ) 2022d10: c4 00 61 8c ld [ %g1 + 0x18c ], %g2 ! 2048d8c <== NOT EXECUTED 2022d14: c6 00 a0 10 ld [ %g2 + 0x10 ], %g3 <== NOT EXECUTED 2022d18: 80 a0 c0 18 cmp %g3, %i0 <== NOT EXECUTED 2022d1c: 02 80 00 23 be 2022da8 <== NOT EXECUTED 2022d20: 03 00 81 74 sethi %hi(0x205d000), %g1 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2022d24: c4 00 63 d8 ld [ %g1 + 0x3d8 ], %g2 ! 205d3d8 <== NOT EXECUTED 2022d28: 82 10 63 d8 or %g1, 0x3d8, %g1 <== NOT EXECUTED 2022d2c: 88 00 60 04 add %g1, 4, %g4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 2022d30: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED 2022d34: 02 80 00 0f be 2022d70 <== NOT EXECUTED 2022d38: 01 00 00 00 nop <== 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 ) { 2022d3c: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 <== NOT EXECUTED 2022d40: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED 2022d44: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2022d48: 32 80 00 07 bne,a 2022d64 <== NOT EXECUTED 2022d4c: c4 00 80 00 ld [ %g2 ], %g2 <== NOT EXECUTED 2022d50: 30 80 00 16 b,a 2022da8 <== NOT EXECUTED 2022d54: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2022d58: 02 80 00 14 be 2022da8 <== NOT EXECUTED 2022d5c: 01 00 00 00 nop <== 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 ) { 2022d60: c4 00 80 00 ld [ %g2 ], %g2 <== 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 ); 2022d64: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED 2022d68: 32 bf ff fb bne,a 2022d54 <== NOT EXECUTED 2022d6c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== 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 ) 2022d70: 7f ff 87 43 call 2004a7c <== NOT EXECUTED 2022d74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022d78: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2022d7c: 02 80 00 0b be 2022da8 <== NOT EXECUTED 2022d80: 01 00 00 00 nop <== 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 ) 2022d84: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 2022d88: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1 <== NOT EXECUTED 2022d8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022d90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022d94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022d98: 22 80 00 19 be,a 2022dfc <== NOT EXECUTED 2022d9c: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 2022da0: 81 c7 e0 08 ret <== NOT EXECUTED 2022da4: 91 e8 3f ff restore %g0, -1, %o0 <== 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 ); 2022da8: 40 00 37 93 call 2030bf4 <__errno> <== NOT EXECUTED 2022dac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022db0: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED 2022db4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022db8: 81 c7 e0 08 ret <== NOT EXECUTED 2022dbc: 81 e8 00 00 restore <== 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 ); 2022dc0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022dc4: 02 80 00 08 be 2022de4 <== NOT EXECUTED 2022dc8: 01 00 00 00 nop <== NOT EXECUTED 2022dcc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022dd0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022dd4: 02 80 00 04 be 2022de4 <== NOT EXECUTED 2022dd8: 01 00 00 00 nop <== NOT EXECUTED 2022ddc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022de0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 2022de4: 40 00 37 84 call 2030bf4 <__errno> <== NOT EXECUTED 2022de8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022dec: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 2022df0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022df4: 81 c7 e0 08 ret <== NOT EXECUTED 2022df8: 81 e8 00 00 restore <== 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){ 2022dfc: c2 00 a0 2c ld [ %g2 + 0x2c ], %g1 <== NOT EXECUTED 2022e00: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022e04: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022e08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022e0c: 32 80 00 13 bne,a 2022e58 <== NOT EXECUTED 2022e10: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 2022e14: 40 00 03 f6 call 2023dec <_Chain_Extract> <== NOT EXECUTED 2022e18: 90 10 00 18 mov %i0, %o0 <== 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 ); 2022e1c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2022e20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022e24: 02 80 00 09 be 2022e48 <== NOT EXECUTED 2022e28: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022e2c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022e30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022e34: 02 80 00 05 be 2022e48 <== NOT EXECUTED 2022e38: 01 00 00 00 nop <== NOT EXECUTED 2022e3c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022e40: 90 06 20 08 add %i0, 8, %o0 <== NOT EXECUTED free( mt_entry ); 2022e44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022e48: 7f ff 86 4b call 2004774 <== NOT EXECUTED 2022e4c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2022e50: 81 c7 e0 08 ret <== NOT EXECUTED 2022e54: 81 e8 00 00 restore <== 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 ) 2022e58: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 <== NOT EXECUTED 2022e5c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022e60: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022e64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022e68: 02 bf ff ce be 2022da0 <== NOT EXECUTED 2022e6c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 2022e70: 7f ff 98 d0 call 20091b0 <== NOT EXECUTED 2022e74: 90 10 20 00 clr %o0 ! 0 <== 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 ); 2022e78: 40 00 37 5f call 2030bf4 <__errno> <== NOT EXECUTED 2022e7c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022e80: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2022e84: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022e88: 81 c7 e0 08 ret <== NOT EXECUTED 2022e8c: 81 e8 00 00 restore <== NOT EXECUTED 02022e90 : int utime( const char *path, const struct utimbuf *times ) { 2022e90: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) ) 2022e94: 92 10 20 00 clr %o1 <== NOT EXECUTED 2022e98: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2022e9c: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2022ea0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2022ea4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2022ea8: 7f ff 85 d5 call 20045fc <== NOT EXECUTED 2022eac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022eb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2022eb4: 12 80 00 14 bne 2022f04 <== NOT EXECUTED 2022eb8: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 2022ebc: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 2022ec0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022ec4: 22 80 00 12 be,a 2022f0c <== NOT EXECUTED 2022ec8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== 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 ); 2022ecc: d4 06 60 04 ld [ %i1 + 4 ], %o2 <== NOT EXECUTED 2022ed0: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 2022ed4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022ed8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 2022edc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2022ee0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022ee4: 02 80 00 08 be 2022f04 <== NOT EXECUTED 2022ee8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2022eec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2022ef0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022ef4: 02 80 00 0f be 2022f30 <== NOT EXECUTED 2022ef8: 01 00 00 00 nop <== NOT EXECUTED 2022efc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022f00: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2022f04: 81 c7 e0 08 ret <== NOT EXECUTED 2022f08: 81 e8 00 00 restore <== 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 ); 2022f0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2022f10: 02 80 00 04 be 2022f20 <== NOT EXECUTED 2022f14: 01 00 00 00 nop <== NOT EXECUTED 2022f18: 9f c0 40 00 call %g1 <== NOT EXECUTED 2022f1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2022f20: 40 00 37 35 call 2030bf4 <__errno> <== NOT EXECUTED 2022f24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2022f28: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2022f2c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2022f30: 81 c7 e0 08 ret <== NOT EXECUTED 2022f34: 81 e8 00 00 restore <== NOT EXECUTED 02002ba0 : */ void vprintk( const char *fmt, va_list ap ) { 2002ba0: 9d e3 bf 80 save %sp, -128, %sp char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002ba4: d0 0e 00 00 ldub [ %i0 ], %o0 2002ba8: 91 2a 20 18 sll %o0, 0x18, %o0 2002bac: 80 a2 20 00 cmp %o0, 0 2002bb0: 02 80 00 44 be 2002cc0 2002bb4: 03 00 80 59 sethi %hi(0x2016400), %g1 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002bb8: 05 00 80 0a sethi %hi(0x2002800), %g2 break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 2002bbc: a8 10 61 4c or %g1, 0x14c, %l4 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002bc0: b4 10 a2 cc or %g2, 0x2cc, %i2 2002bc4: 03 00 80 55 sethi %hi(0x2015400), %g1 count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 2002bc8: b6 07 bf f8 add %fp, -8, %i3 2002bcc: b8 10 63 a0 or %g1, 0x3a0, %i4 2002bd0: ae 07 bf e0 add %fp, -32, %l7 base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 2002bd4: 91 3a 20 18 sra %o0, 0x18, %o0 2002bd8: 80 a2 20 25 cmp %o0, 0x25 2002bdc: 32 80 00 3b bne,a 2002cc8 2002be0: c2 05 00 00 ld [ %l4 ], %g1 fmt++; if (*fmt == '0' ) { 2002be4: d0 0e 20 01 ldub [ %i0 + 1 ], %o0 sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; 2002be8: 88 06 20 01 add %i0, 1, %g4 if (*fmt == '0' ) { 2002bec: 87 2a 20 18 sll %o0, 0x18, %g3 2002bf0: 83 38 e0 18 sra %g3, 0x18, %g1 2002bf4: 80 a0 60 30 cmp %g1, 0x30 2002bf8: 02 80 00 b7 be 2002ed4 2002bfc: ba 10 20 20 mov 0x20, %i5 lead = '0'; fmt++; } if (*fmt == '-' ) { 2002c00: 83 38 e0 18 sra %g3, 0x18, %g1 2002c04: 80 a0 60 2d cmp %g1, 0x2d 2002c08: 02 80 00 ae be 2002ec0 2002c0c: ac 10 20 00 clr %l6 minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2002c10: 82 02 3f d0 add %o0, -48, %g1 2002c14: a0 10 20 00 clr %l0 2002c18: 82 08 60 ff and %g1, 0xff, %g1 2002c1c: b0 10 00 04 mov %g4, %i0 2002c20: 80 a0 60 09 cmp %g1, 9 2002c24: 08 80 00 05 bleu 2002c38 2002c28: aa 10 20 00 clr %l5 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 2002c2c: 10 80 00 13 b 2002c78 2002c30: 83 38 e0 18 sra %g3, 0x18, %g1 2002c34: 87 2a 20 18 sll %o0, 0x18, %g3 fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += (*fmt - '0'); fmt++; 2002c38: 88 01 20 01 inc %g4 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2002c3c: d0 09 00 00 ldub [ %g4 ], %o0 width *= 10; width += (*fmt - '0'); 2002c40: 85 2c 20 03 sll %l0, 3, %g2 2002c44: 83 2c 20 01 sll %l0, 1, %g1 2002c48: 87 38 e0 18 sra %g3, 0x18, %g3 2002c4c: 82 00 40 02 add %g1, %g2, %g1 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2002c50: 84 02 3f d0 add %o0, -48, %g2 width *= 10; width += (*fmt - '0'); 2002c54: 82 00 40 03 add %g1, %g3, %g1 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2002c58: 84 08 a0 ff and %g2, 0xff, %g2 2002c5c: 80 a0 a0 09 cmp %g2, 9 2002c60: 08 bf ff f5 bleu 2002c34 2002c64: a0 00 7f d0 add %g1, -48, %l0 2002c68: b0 10 00 04 mov %g4, %i0 2002c6c: aa 10 00 10 mov %l0, %l5 2002c70: 87 2a 20 18 sll %o0, 0x18, %g3 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 2002c74: 83 38 e0 18 sra %g3, 0x18, %g1 2002c78: 80 a0 60 6c cmp %g1, 0x6c 2002c7c: 22 80 00 9b be,a 2002ee8 2002c80: d0 09 20 01 ldub [ %g4 + 1 ], %o0 lflag = 1; c = *++fmt; } switch (c) { 2002c84: 82 02 3f bc add %o0, -68, %g1 2002c88: 82 08 60 ff and %g1, 0xff, %g1 2002c8c: 80 a0 60 34 cmp %g1, 0x34 2002c90: 08 80 00 12 bleu 2002cd8 2002c94: 83 28 60 02 sll %g1, 2, %g1 break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 2002c98: c2 05 00 00 ld [ %l4 ], %g1 2002c9c: 91 2a 20 18 sll %o0, 0x18, %o0 2002ca0: 9f c0 40 00 call %g1 2002ca4: 91 3a 20 18 sra %o0, 0x18, %o0 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002ca8: b0 06 20 01 inc %i0 2002cac: d0 0e 00 00 ldub [ %i0 ], %o0 2002cb0: 91 2a 20 18 sll %o0, 0x18, %o0 2002cb4: 80 a2 20 00 cmp %o0, 0 2002cb8: 12 bf ff c8 bne 2002bd8 2002cbc: 91 3a 20 18 sra %o0, 0x18, %o0 2002cc0: 81 c7 e0 08 ret 2002cc4: 81 e8 00 00 restore if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 2002cc8: 9f c0 40 00 call %g1 2002ccc: b0 06 20 01 inc %i0 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002cd0: 10 bf ff f8 b 2002cb0 2002cd4: d0 0e 00 00 ldub [ %i0 ], %o0 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002cd8: c4 06 80 01 ld [ %i2 + %g1 ], %g2 2002cdc: 81 c0 80 00 jmp %g2 2002ce0: 01 00 00 00 nop break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 2002ce4: 82 10 20 00 clr %g1 ! 0 <== NOT EXECUTED 2002ce8: a6 10 20 08 mov 8, %l3 <== NOT EXECUTED break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 2002cec: e2 06 40 00 ld [ %i1 ], %l1 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 2002cf0: 80 a4 60 00 cmp %l1, 0 2002cf4: 06 80 00 3d bl 2002de8 2002cf8: b2 06 60 04 add %i1, 4, %i1 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 2002cfc: 90 10 00 11 mov %l1, %o0 2002d00: 92 10 00 13 mov %l3, %o1 2002d04: 40 00 42 e8 call 20138a4 <.udiv> 2002d08: a0 10 20 00 clr %l0 2002d0c: 80 a2 20 00 cmp %o0, 0 2002d10: 02 80 00 14 be 2002d60 2002d14: a4 10 20 01 mov 1, %l2 2002d18: a4 10 00 11 mov %l1, %l2 2002d1c: a0 10 20 00 clr %l0 2002d20: 10 80 00 03 b 2002d2c 2002d24: a2 10 00 08 mov %o0, %l1 2002d28: a2 10 00 08 mov %o0, %l1 toPrint[count++] = (num - (n*base)); 2002d2c: 92 10 00 13 mov %l3, %o1 2002d30: 40 00 42 a3 call 20137bc <.umul> 2002d34: 90 10 00 11 mov %l1, %o0 2002d38: 90 24 80 08 sub %l2, %o0, %o0 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 2002d3c: 92 10 00 13 mov %l3, %o1 toPrint[count++] = (num - (n*base)); 2002d40: d0 2d c0 10 stb %o0, [ %l7 + %l0 ] num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 2002d44: 90 10 00 11 mov %l1, %o0 2002d48: 40 00 42 d7 call 20138a4 <.udiv> 2002d4c: a0 04 20 01 inc %l0 2002d50: 80 a2 20 00 cmp %o0, 0 2002d54: 12 bf ff f5 bne 2002d28 2002d58: a4 10 00 11 mov %l1, %l2 2002d5c: a4 04 20 01 add %l0, 1, %l2 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 2002d60: 82 06 c0 10 add %i3, %l0, %g1 2002d64: e2 28 7f e8 stb %l1, [ %g1 + -24 ] for (n=maxwidth ; n > count; n-- ) 2002d68: 80 a4 80 15 cmp %l2, %l5 2002d6c: 1a 80 00 0a bcc 2002d94 2002d70: a0 10 00 15 mov %l5, %l0 2002d74: a2 10 00 1d mov %i5, %l1 BSP_output_char(lead); 2002d78: c2 05 00 00 ld [ %l4 ], %g1 2002d7c: 9f c0 40 00 call %g1 2002d80: 90 10 00 11 mov %l1, %o0 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 2002d84: a0 04 3f ff add %l0, -1, %l0 2002d88: 80 a4 80 10 cmp %l2, %l0 2002d8c: 2a bf ff fc bcs,a 2002d7c 2002d90: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(lead); for (n = 0; n < count; n++) { 2002d94: 80 a4 a0 00 cmp %l2, 0 2002d98: 02 bf ff c4 be 2002ca8 2002d9c: a2 06 c0 12 add %i3, %l2, %l1 2002da0: a0 10 20 00 clr %l0 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 2002da4: 82 24 40 10 sub %l1, %l0, %g1 2002da8: c4 48 7f e7 ldsb [ %g1 + -25 ], %g2 2002dac: c6 05 00 00 ld [ %l4 ], %g3 2002db0: d0 4f 00 02 ldsb [ %i4 + %g2 ], %o0 2002db4: 9f c0 c0 00 call %g3 2002db8: a0 04 20 01 inc %l0 toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 2002dbc: 80 a4 80 10 cmp %l2, %l0 2002dc0: 18 bf ff fa bgu 2002da8 2002dc4: 82 24 40 10 sub %l1, %l0, %g1 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002dc8: 10 bf ff b9 b 2002cac 2002dcc: b0 06 20 01 inc %i0 BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 2002dd0: e2 06 40 00 ld [ %i1 ], %l1 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002dd4: 82 10 20 01 mov 1, %g1 2002dd8: a6 10 20 0a mov 0xa, %l3 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 2002ddc: 80 a4 60 00 cmp %l1, 0 2002de0: 16 bf ff c7 bge 2002cfc 2002de4: b2 06 60 04 add %i1, 4, %i1 2002de8: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED 2002dec: 02 bf ff c5 be 2002d00 <== NOT EXECUTED 2002df0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED BSP_output_char('-'); 2002df4: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED 2002df8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002dfc: 90 10 20 2d mov 0x2d, %o0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; 2002e00: 80 a0 00 15 cmp %g0, %l5 <== NOT EXECUTED int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; 2002e04: a2 20 00 11 neg %l1 <== NOT EXECUTED if (maxwidth) maxwidth--; 2002e08: 10 bf ff bd b 2002cfc <== NOT EXECUTED 2002e0c: aa 65 60 00 subx %l5, 0, %l5 <== NOT EXECUTED case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 2002e10: e6 06 40 00 ld [ %i1 ], %l3 /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 2002e14: a4 10 20 00 clr %l2 2002e18: c2 4c c0 00 ldsb [ %l3 ], %g1 2002e1c: 80 a0 60 00 cmp %g1, 0 2002e20: 02 80 00 07 be 2002e3c 2002e24: b2 06 60 04 add %i1, 4, %i1 2002e28: a4 04 a0 01 inc %l2 2002e2c: c2 4c c0 12 ldsb [ %l3 + %l2 ], %g1 2002e30: 80 a0 60 00 cmp %g1, 0 2002e34: 32 bf ff fe bne,a 2002e2c 2002e38: a4 04 a0 01 inc %l2 ; /* leading spaces */ if ( !minus ) 2002e3c: 80 a5 a0 00 cmp %l6, 0 2002e40: 02 80 00 36 be 2002f18 2002e44: 80 a4 00 12 cmp %l0, %l2 for ( i=len ; i 2002e50: aa 10 00 12 mov %l2, %l5 width = len; } /* output the string */ for ( i=0 ; i 2002e5c: 80 a5 a0 00 cmp %l6, 0 BSP_output_char(*str); /* trailing spaces */ if ( minus ) 2002e60: 22 bf ff 93 be,a 2002cac 2002e64: b0 06 20 01 inc %i0 for ( i=len ; i 2002e70: b0 06 20 01 inc %i0 <== NOT EXECUTED 2002e74: a0 10 00 12 mov %l2, %l0 BSP_output_char(' '); 2002e78: c2 05 00 00 ld [ %l4 ], %g1 2002e7c: 9f c0 40 00 call %g1 2002e80: 90 10 20 20 mov 0x20, %o0 for ( i=0 ; i 2002e90: c2 05 00 00 ld [ %l4 ], %g1 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002e94: 10 bf ff 86 b 2002cac 2002e98: b0 06 20 01 inc %i0 for ( i=len ; i <== NOT EXECUTED 2002eb0: b0 06 20 01 inc %i0 <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002eb4: 82 10 20 00 clr %g1 2002eb8: 10 bf ff 8d b 2002cec 2002ebc: a6 10 20 0a mov 0xa, %l3 lead = '0'; fmt++; } if (*fmt == '-' ) { minus = 1; fmt++; 2002ec0: 88 01 20 01 inc %g4 2002ec4: d0 09 00 00 ldub [ %g4 ], %o0 2002ec8: ac 10 20 01 mov 1, %l6 2002ecc: 10 bf ff 51 b 2002c10 2002ed0: 87 2a 20 18 sll %o0, 0x18, %g3 lead = ' '; if (*fmt == '%') { fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 2002ed4: d0 0e 20 02 ldub [ %i0 + 2 ], %o0 2002ed8: 88 06 20 02 add %i0, 2, %g4 2002edc: ba 10 20 30 mov 0x30, %i5 2002ee0: 10 bf ff 48 b 2002c00 2002ee4: 87 2a 20 18 sll %o0, 0x18, %g3 fmt++; } if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; 2002ee8: 10 bf ff 67 b 2002c84 2002eec: b0 01 20 01 add %g4, 1, %i0 width = len; } /* output the string */ for ( i=0 ; i 2002f0c: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(*str); /* trailing spaces */ if ( minus ) 2002f10: 10 bf ff d4 b 2002e60 2002f14: 80 a5 a0 00 cmp %l6, 0 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 2002f1c: a2 10 00 12 mov %l2, %l1 BSP_output_char(' '); 2002f20: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED 2002f24: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002f28: 90 10 20 20 mov 0x20, %o0 <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i <== NOT EXECUTED 2002f38: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i <== NOT EXECUTED 2002f40: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 2002f44: 82 10 20 00 clr %g1 2002f48: 10 bf ff 69 b 2002cec 2002f4c: a6 10 20 10 mov 0x10, %l3 02014ba0 : ssize_t write( int fd, const void *buffer, size_t count ) { 2014ba0: 9d e3 bf 98 save %sp, -104, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2014ba4: 03 00 80 59 sethi %hi(0x2016400), %g1 2014ba8: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 ! 2016448 ssize_t write( int fd, const void *buffer, size_t count ) { 2014bac: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2014bb0: 80 a6 00 02 cmp %i0, %g2 2014bb4: 1a 80 00 24 bcc 2014c44 2014bb8: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 2014bbc: 03 00 80 5c sethi %hi(0x2017000), %g1 2014bc0: c6 00 60 cc ld [ %g1 + 0xcc ], %g3 ! 20170cc 2014bc4: 85 2e 20 02 sll %i0, 2, %g2 2014bc8: 83 2e 20 04 sll %i0, 4, %g1 2014bcc: 82 20 40 02 sub %g1, %g2, %g1 2014bd0: 82 00 40 18 add %g1, %i0, %g1 2014bd4: 83 28 60 02 sll %g1, 2, %g1 2014bd8: b0 00 c0 01 add %g3, %g1, %i0 rtems_libio_check_is_open( iop ); 2014bdc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 2014be0: 80 88 61 00 btst 0x100, %g1 2014be4: 02 80 00 18 be 2014c44 2014be8: 80 a6 60 00 cmp %i1, 0 rtems_libio_check_buffer( buffer ); 2014bec: 02 80 00 1c be 2014c5c 2014bf0: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2014bf4: 02 80 00 12 be 2014c3c 2014bf8: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2014bfc: 80 88 60 04 btst 4, %g1 2014c00: 02 80 00 17 be 2014c5c 2014c04: 01 00 00 00 nop /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 2014c08: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2014c0c: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2014c10: 80 a0 60 00 cmp %g1, 0 2014c14: 02 80 00 18 be 2014c74 2014c18: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 2014c1c: 9f c0 40 00 call %g1 2014c20: 90 10 00 18 mov %i0, %o0 if ( rc > 0 ) 2014c24: 80 a2 20 00 cmp %o0, 0 2014c28: 04 80 00 05 ble 2014c3c 2014c2c: 01 00 00 00 nop iop->offset += rc; 2014c30: c2 06 20 08 ld [ %i0 + 8 ], %g1 2014c34: 82 00 40 08 add %g1, %o0, %g1 2014c38: c2 26 20 08 st %g1, [ %i0 + 8 ] return rc; } 2014c3c: 81 c7 e0 08 ret 2014c40: 91 e8 00 08 restore %g0, %o0, %o0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 2014c44: 7f ff e0 4d call 200cd78 <__errno> <== NOT EXECUTED 2014c48: 01 00 00 00 nop <== NOT EXECUTED 2014c4c: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2014c50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014c54: 10 bf ff fa b 2014c3c <== NOT EXECUTED 2014c58: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2014c5c: 7f ff e0 47 call 200cd78 <__errno> <== NOT EXECUTED 2014c60: 01 00 00 00 nop <== NOT EXECUTED 2014c64: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2014c68: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014c6c: 10 bf ff f4 b 2014c3c <== NOT EXECUTED 2014c70: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2014c74: 7f ff e0 41 call 200cd78 <__errno> <== NOT EXECUTED 2014c78: 01 00 00 00 nop <== NOT EXECUTED 2014c7c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2014c80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014c84: 10 bf ff ee b 2014c3c <== NOT EXECUTED 2014c88: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED