0200922c : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 200922c: 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; 2009230: c4 02 20 0c ld [ %o0 + 0xc ], %g2 switch( node->type ) { 2009234: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 2009238: 82 00 7f ff add %g1, -1, %g1 200923c: 80 a0 60 05 cmp %g1, 5 2009240: 18 80 00 12 bgu 2009288 2009244: c6 00 a0 2c ld [ %g2 + 0x2c ], %g3 2009248: 83 28 60 02 sll %g1, 2, %g1 200924c: 05 00 80 24 sethi %hi(0x2009000), %g2 2009250: 84 10 a2 14 or %g2, 0x214, %g2 ! 2009214 2009254: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2009258: 81 c0 40 00 jmp %g1 200925c: 01 00 00 00 nop case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 2009260: 10 80 00 09 b 2009284 2009264: c2 00 e0 08 ld [ %g3 + 8 ], %g1 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 2009268: 03 00 80 54 sethi %hi(0x2015000), %g1 200926c: 10 80 00 06 b 2009284 2009270: 82 10 60 3c or %g1, 0x3c, %g1 ! 201503c break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 2009274: 03 00 80 54 sethi %hi(0x2015000), %g1 <== NOT EXECUTED 2009278: 10 80 00 03 b 2009284 <== NOT EXECUTED 200927c: 82 10 60 74 or %g1, 0x74, %g1 ! 2015074 <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 2009280: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 2009284: c2 22 20 04 st %g1, [ %o0 + 4 ] break; } return 0; } 2009288: 81 c3 e0 08 retl 200928c: 90 10 20 00 clr %o0 0201cac4 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 201cac4: 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; 201cac8: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 201cacc: 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; 201cad0: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] <== NOT EXECUTED jnode->st_gid = group; 201cad4: f4 34 20 3a sth %i2, [ %l0 + 0x3a ] <== NOT EXECUTED IMFS_update_ctime( jnode ); 201cad8: 7f ff 9e a0 call 2004558 <== NOT EXECUTED 201cadc: 92 10 20 00 clr %o1 <== NOT EXECUTED 201cae0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201cae4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 201cae8: 81 c7 e0 08 ret <== NOT EXECUTED 201caec: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200bb80 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200bb80: 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 ) 200bb84: a2 96 20 00 orcc %i0, 0, %l1 200bb88: 02 80 00 03 be 200bb94 200bb8c: a0 10 20 00 clr %l0 parent = parent_loc->node_access; 200bb90: e0 04 40 00 ld [ %l1 ], %l0 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 200bb94: 90 10 20 01 mov 1, %o0 200bb98: 7f ff f8 ff call 2009f94 200bb9c: 92 10 20 5c mov 0x5c, %o1 if ( !node ) 200bba0: b0 92 20 00 orcc %o0, 0, %i0 200bba4: 02 80 00 48 be 200bcc4 200bba8: 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 ); 200bbac: 92 10 00 1a mov %i2, %o1 /* * Fill in the basic information */ node->st_nlink = 1; node->type = type; 200bbb0: f2 26 20 48 st %i1, [ %i0 + 0x48 ] strncpy( node->name, name, IMFS_NAME_MAX ); 200bbb4: 94 10 20 20 mov 0x20, %o2 /* * Fill in the basic information */ node->st_nlink = 1; 200bbb8: c2 36 20 30 sth %g1, [ %i0 + 0x30 ] node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 200bbbc: 40 00 07 43 call 200d8c8 200bbc0: 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; 200bbc4: 03 00 80 57 sethi %hi(0x2015c00), %g1 200bbc8: c2 00 63 44 ld [ %g1 + 0x344 ], %g1 ! 2015f44 /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200bbcc: 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; 200bbd0: c2 10 60 24 lduh [ %g1 + 0x24 ], %g1 /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200bbd4: 92 10 20 00 clr %o1 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 200bbd8: 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; 200bbdc: 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; 200bbe0: c2 36 20 2e sth %g1, [ %i0 + 0x2e ] /* * Now set all the times. */ gettimeofday( &tv, 0 ); 200bbe4: 7f ff f9 9d call 200a258 200bbe8: c0 36 20 3a clrh [ %i0 + 0x3a ] node->stat_atime = (time_t) tv.tv_sec; 200bbec: c2 07 bf f0 ld [ %fp + -16 ], %g1 /* * Set the type specific information */ switch (type) { 200bbf0: b2 06 7f ff add %i1, -1, %i1 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; 200bbf4: c2 26 20 44 st %g1, [ %i0 + 0x44 ] * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 200bbf8: c2 26 20 3c st %g1, [ %i0 + 0x3c ] /* * Set the type specific information */ switch (type) { 200bbfc: 80 a6 60 05 cmp %i1, 5 200bc00: 18 80 00 1d bgu 200bc74 200bc04: c2 26 20 40 st %g1, [ %i0 + 0x40 ] 200bc08: 83 2e 60 02 sll %i1, 2, %g1 200bc0c: 05 00 80 2e sethi %hi(0x200b800), %g2 200bc10: 84 10 a3 68 or %g2, 0x368, %g2 ! 200bb68 200bc14: c2 00 80 01 ld [ %g2 + %g1 ], %g1 200bc18: 81 c0 40 00 jmp %g1 200bc1c: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200bc20: 82 06 20 50 add %i0, 0x50, %g1 the_chain->permanent_null = NULL; 200bc24: 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); 200bc28: c2 26 20 4c st %g1, [ %i0 + 0x4c ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200bc2c: 82 06 20 4c add %i0, 0x4c, %g1 200bc30: 10 80 00 19 b 200bc94 200bc34: c2 26 20 54 st %g1, [ %i0 + 0x54 ] 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; 200bc38: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED 200bc3c: 10 80 00 16 b 200bc94 <== NOT EXECUTED 200bc40: c2 26 20 4c st %g1, [ %i0 + 0x4c ] <== NOT EXECUTED break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 200bc44: 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; 200bc48: c4 07 00 00 ld [ %i4 ], %g2 node->info.device.minor = info->device.minor; 200bc4c: 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; 200bc50: 10 80 00 11 b 200bc94 200bc54: c4 26 20 4c st %g2, [ %i0 + 0x4c ] node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200bc58: c0 26 20 4c clr [ %i0 + 0x4c ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200bc5c: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200bc60: c0 26 20 4c clr [ %i0 + 0x4c ] <== NOT EXECUTED node->info.file.indirect = 0; 200bc64: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED node->info.file.doubly_indirect = 0; 200bc68: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.file.triply_indirect = 0; 200bc6c: 10 80 00 0a b 200bc94 <== NOT EXECUTED 200bc70: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED break; default: assert(0); 200bc74: 11 00 80 54 sethi %hi(0x2015000), %o0 <== NOT EXECUTED 200bc78: 15 00 80 54 sethi %hi(0x2015000), %o2 <== NOT EXECUTED 200bc7c: 17 00 80 54 sethi %hi(0x2015000), %o3 <== NOT EXECUTED 200bc80: 90 12 22 d8 or %o0, 0x2d8, %o0 <== NOT EXECUTED 200bc84: 94 12 a3 30 or %o2, 0x330, %o2 <== NOT EXECUTED 200bc88: 96 12 e3 28 or %o3, 0x328, %o3 <== NOT EXECUTED 200bc8c: 7f ff d8 84 call 2001e9c <__assert_func> <== NOT EXECUTED 200bc90: 92 10 20 74 mov 0x74, %o1 <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { 200bc94: 80 a4 20 00 cmp %l0, 0 200bc98: 02 80 00 0b be 200bcc4 200bc9c: 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 ); 200bca0: 7f ff e8 84 call 2005eb0 <_Chain_Append> 200bca4: 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; 200bca8: 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; 200bcac: e0 26 20 08 st %l0, [ %i0 + 8 ] fs_info = parent_loc->mt_entry->fs_info; 200bcb0: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 node->st_ino = ++fs_info->ino_count; 200bcb4: c2 00 80 00 ld [ %g2 ], %g1 200bcb8: 82 00 60 01 inc %g1 200bcbc: c2 20 80 00 st %g1, [ %g2 ] 200bcc0: c2 26 20 34 st %g1, [ %i0 + 0x34 ] } return node; } 200bcc4: 81 c7 e0 08 ret 200bcc8: 81 e8 00 00 restore 020093e8 : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 20093e8: 9d e3 bf 60 save %sp, -160, %sp case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 20093ec: 03 00 80 57 sethi %hi(0x2015c00), %g1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 20093f0: 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 ) 20093f4: ac 10 63 44 or %g1, 0x344, %l6 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 20093f8: a4 10 20 00 clr %l2 20093fc: a2 10 20 01 mov 1, %l1 * 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 ); 2009400: a8 07 bf c0 add %fp, -64, %l4 2009404: 10 80 00 6d b 20095b8 2009408: aa 07 bf f4 add %fp, -12, %l5 200940c: 90 06 00 12 add %i0, %l2, %o0 2009410: 92 10 00 14 mov %l4, %o1 2009414: 40 00 01 a0 call 2009a94 2009418: 94 10 00 15 mov %l5, %o2 i += len; if ( !pathloc->node_access ) 200941c: c4 06 80 00 ld [ %i2 ], %g2 * 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 ); 2009420: a2 10 00 08 mov %o0, %l1 i += len; if ( !pathloc->node_access ) 2009424: 80 a0 a0 00 cmp %g2, 0 2009428: 02 80 00 5c be 2009598 200942c: e6 07 bf f4 ld [ %fp + -12 ], %l3 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009430: 80 a2 20 00 cmp %o0, 0 2009434: 22 80 00 0b be,a 2009460 2009438: a4 04 80 13 add %l2, %l3, %l2 if ( node->type == IMFS_DIRECTORY ) 200943c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2009440: 80 a0 60 01 cmp %g1, 1 2009444: 32 80 00 07 bne,a 2009460 2009448: a4 04 80 13 add %l2, %l3, %l2 <== 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 ) 200944c: c2 10 a0 2e lduh [ %g2 + 0x2e ], %g1 2009450: 80 88 60 40 btst 0x40, %g1 2009454: 02 80 00 85 be 2009668 2009458: 01 00 00 00 nop */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); i += len; 200945c: a4 04 80 13 add %l2, %l3, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 2009460: 80 a4 60 03 cmp %l1, 3 2009464: 02 80 00 26 be 20094fc 2009468: a0 10 00 02 mov %g2, %l0 200946c: 80 a4 60 04 cmp %l1, 4 2009470: 02 80 00 4e be 20095a8 2009474: 80 a4 60 02 cmp %l1, 2 2009478: 12 80 00 51 bne 20095bc 200947c: 80 a4 60 00 cmp %l1, 0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009480: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED 2009484: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2009488: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 200948c: 02 bf ff e1 be 2009410 <== NOT EXECUTED 2009490: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 2009494: d2 06 a0 0c ld [ %i2 + 0xc ], %o1 <== NOT EXECUTED 2009498: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED 200949c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20094a0: 32 80 00 0f bne,a 20094dc <== NOT EXECUTED 20094a4: e0 00 a0 08 ld [ %g2 + 8 ], %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; 20094a8: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 20094ac: a0 07 bf e4 add %fp, -28, %l0 <== NOT EXECUTED 20094b0: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 20094b4: 40 00 0d b5 call 200cb88 <== NOT EXECUTED 20094b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED *pathloc = newloc; 20094bc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 20094c0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20094c4: 40 00 0d b1 call 200cb88 <== NOT EXECUTED 20094c8: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); 20094cc: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED 20094d0: 90 24 80 13 sub %l2, %l3, %o0 <== NOT EXECUTED 20094d4: 10 80 00 53 b 2009620 <== NOT EXECUTED 20094d8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED } } else { if ( !node->Parent ) 20094dc: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 20094e0: 32 bf ff cb bne,a 200940c <== NOT EXECUTED 20094e4: e0 26 80 00 st %l0, [ %i2 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 20094e8: 40 00 0b b6 call 200c3c0 <__errno> <== NOT EXECUTED 20094ec: 01 00 00 00 nop <== NOT EXECUTED 20094f0: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED 20094f4: 10 80 00 5a b 200965c <== NOT EXECUTED 20094f8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 20094fc: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 2009500: 80 a0 60 03 cmp %g1, 3 2009504: 12 80 00 0a bne 200952c 2009508: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 200950c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2009510: 7f ff ff 67 call 20092ac <== NOT EXECUTED 2009514: 92 10 20 00 clr %o1 <== NOT EXECUTED node = pathloc->node_access; 2009518: e0 06 80 00 ld [ %i2 ], %l0 <== NOT EXECUTED if ( !node ) 200951c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2009520: 32 80 00 0d bne,a 2009554 <== NOT EXECUTED 2009524: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2009528: 30 80 00 0e b,a 2009560 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 200952c: 32 80 00 0a bne,a 2009554 2009530: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 2009534: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2009538: 7f ff ff 77 call 2009314 <== NOT EXECUTED 200953c: 92 10 20 00 clr %o1 <== NOT EXECUTED node = pathloc->node_access; if ( result == -1 ) 2009540: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2009544: 02 80 00 46 be 200965c <== NOT EXECUTED 2009548: 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; 200954c: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 2009550: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2009554: 80 a0 60 01 cmp %g1, 1 2009558: 22 80 00 06 be,a 2009570 200955c: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2009560: 40 00 0b 98 call 200c3c0 <__errno> <== NOT EXECUTED 2009564: 01 00 00 00 nop <== NOT EXECUTED 2009568: 10 80 00 43 b 2009674 <== NOT EXECUTED 200956c: 82 10 20 14 mov 0x14, %g1 ! 14 <== 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 ) { 2009570: 80 a2 60 00 cmp %o1, 0 2009574: 02 80 00 04 be 2009584 2009578: 90 10 00 10 mov %l0, %o0 newloc = node->info.directory.mt_fs->mt_fs_root; 200957c: 10 80 00 1d b 20095f0 <== NOT EXECUTED 2009580: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009584: 40 00 01 19 call 20099e8 2009588: 92 10 00 14 mov %l4, %o1 if ( !node ) 200958c: a0 92 20 00 orcc %o0, 0, %l0 2009590: 32 bf ff 9f bne,a 200940c 2009594: e0 26 80 00 st %l0, [ %i2 ] rtems_set_errno_and_return_minus_one( ENOENT ); 2009598: 40 00 0b 8a call 200c3c0 <__errno> <== NOT EXECUTED 200959c: 01 00 00 00 nop <== NOT EXECUTED 20095a0: 10 80 00 35 b 2009674 <== NOT EXECUTED 20095a4: 82 10 20 02 mov 2, %g1 ! 2 <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 20095a8: 40 00 0b 86 call 200c3c0 <__errno> <== NOT EXECUTED 20095ac: 01 00 00 00 nop <== NOT EXECUTED 20095b0: 10 80 00 31 b 2009674 <== NOT EXECUTED 20095b4: 82 10 20 5b mov 0x5b, %g1 ! 5b <== NOT EXECUTED /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 20095b8: 80 a4 60 00 cmp %l1, 0 20095bc: 22 80 00 06 be,a 20095d4 20095c0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20095c4: 80 a4 60 04 cmp %l1, 4 20095c8: 12 bf ff 92 bne 2009410 20095cc: 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 ) { 20095d0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 20095d4: 80 a0 60 01 cmp %g1, 1 20095d8: 12 80 00 18 bne 2009638 20095dc: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 20095e0: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 20095e4: 80 a2 20 00 cmp %o0, 0 20095e8: 02 80 00 14 be 2009638 20095ec: 92 02 20 18 add %o0, 0x18, %o1 newloc = node->info.directory.mt_fs->mt_fs_root; 20095f0: a0 07 bf e4 add %fp, -28, %l0 <== NOT EXECUTED 20095f4: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 20095f8: 40 00 0d 64 call 200cb88 <== NOT EXECUTED 20095fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED *pathloc = newloc; 2009600: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2009604: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2009608: 40 00 0d 60 call 200cb88 <== NOT EXECUTED 200960c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 2009610: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED 2009614: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED 2009618: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 200961c: 90 24 80 08 sub %l2, %o0, %o0 <== NOT EXECUTED 2009620: 90 06 00 08 add %i0, %o0, %o0 <== NOT EXECUTED 2009624: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009628: 9f c0 40 00 call %g1 <== NOT EXECUTED 200962c: 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; } 2009630: 81 c7 e0 08 ret <== NOT EXECUTED 2009634: 91 e8 00 08 restore %g0, %o0, %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 ); 2009638: 7f ff fe fd call 200922c 200963c: 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 ) 2009640: c2 06 80 00 ld [ %i2 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009644: 85 2e 60 06 sll %i1, 6, %g2 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 2009648: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 200964c: 82 08 80 01 and %g2, %g1, %g1 2009650: 80 a0 40 02 cmp %g1, %g2 2009654: 12 80 00 05 bne 2009668 2009658: 01 00 00 00 nop if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200965c: b0 10 00 08 mov %o0, %i0 2009660: 81 c7 e0 08 ret 2009664: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 2009668: 40 00 0b 56 call 200c3c0 <__errno> <== NOT EXECUTED 200966c: 01 00 00 00 nop <== NOT EXECUTED 2009670: 82 10 20 0d mov 0xd, %g1 ! d <== NOT EXECUTED 2009674: 10 bf ff a0 b 20094f4 <== NOT EXECUTED 2009678: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 02009734 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 2009734: 9d e3 bf 60 save %sp, -160, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009738: e2 06 40 00 ld [ %i1 ], %l1 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200973c: 03 00 80 57 sethi %hi(0x2015c00), %g1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009740: 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 ) 2009744: ac 10 63 44 or %g1, 0x344, %l6 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 2009748: a8 07 bf c0 add %fp, -64, %l4 200974c: aa 07 bf f4 add %fp, -12, %l5 2009750: 90 06 00 12 add %i0, %l2, %o0 2009754: 92 10 00 14 mov %l4, %o1 2009758: 40 00 00 cf call 2009a94 200975c: 94 10 00 15 mov %l5, %o2 i += len; if ( !pathloc->node_access ) 2009760: c4 06 40 00 ld [ %i1 ], %g2 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 2009764: a0 10 00 08 mov %o0, %l0 i += len; if ( !pathloc->node_access ) 2009768: 80 a0 a0 00 cmp %g2, 0 200976c: 02 80 00 7f be 2009968 2009770: e6 07 bf f4 ld [ %fp + -12 ], %l3 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009774: 80 a2 20 00 cmp %o0, 0 2009778: 02 80 00 0a be 20097a0 200977c: a4 04 80 13 add %l2, %l3, %l2 if ( node->type == IMFS_DIRECTORY ) 2009780: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2009784: 80 a0 60 01 cmp %g1, 1 2009788: 12 80 00 06 bne 20097a0 200978c: 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 ) 2009790: c2 10 a0 2e lduh [ %g2 + 0x2e ], %g1 2009794: 80 88 60 40 btst 0x40, %g1 2009798: 02 80 00 8e be 20099d0 200979c: 01 00 00 00 nop if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 20097a0: 80 a4 20 02 cmp %l0, 2 20097a4: 02 80 00 0f be 20097e0 20097a8: a2 10 00 02 mov %g2, %l1 20097ac: 80 a4 20 02 cmp %l0, 2 20097b0: 18 80 00 07 bgu 20097cc 20097b4: 80 a4 20 03 cmp %l0, 3 20097b8: 80 a4 20 00 cmp %l0, 0 20097bc: 02 80 00 59 be 2009920 20097c0: 01 00 00 00 nop * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 20097c4: 10 bf ff e4 b 2009754 20097c8: 90 06 00 12 add %i0, %l2, %o0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 20097cc: 02 80 00 23 be 2009858 20097d0: 80 a4 20 04 cmp %l0, 4 20097d4: 32 bf ff e0 bne,a 2009754 <== NOT EXECUTED 20097d8: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED 20097dc: 30 80 00 55 b,a 2009930 <== NOT EXECUTED case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 20097e0: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED 20097e4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 20097e8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20097ec: 02 bf ff da be 2009754 <== NOT EXECUTED 20097f0: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 20097f4: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED 20097f8: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED 20097fc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2009800: 32 80 00 0f bne,a 200983c <== NOT EXECUTED 2009804: e2 00 a0 08 ld [ %g2 + 8 ], %l1 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 2009808: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 200980c: a0 07 bf e4 add %fp, -28, %l0 <== NOT EXECUTED 2009810: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2009814: 40 00 0c dd call 200cb88 <== NOT EXECUTED 2009818: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED *pathloc = newloc; 200981c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2009820: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2009824: 40 00 0c d9 call 200cb88 <== NOT EXECUTED 2009828: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200982c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED 2009830: 90 24 80 13 sub %l2, %l3, %o0 <== NOT EXECUTED 2009834: 10 80 00 2e b 20098ec <== NOT EXECUTED 2009838: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED } } else { if ( !node->Parent ) 200983c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2009840: 32 bf ff c4 bne,a 2009750 <== NOT EXECUTED 2009844: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 2009848: 40 00 0a de call 200c3c0 <__errno> <== NOT EXECUTED 200984c: 01 00 00 00 nop <== NOT EXECUTED 2009850: 10 80 00 64 b 20099e0 <== NOT EXECUTED 2009854: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 2009858: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 200985c: 80 a0 60 03 cmp %g1, 3 2009860: 02 80 00 06 be 2009878 2009864: 90 10 00 19 mov %i1, %o0 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 2009868: 80 a0 60 04 cmp %g1, 4 200986c: 32 80 00 09 bne,a 2009890 2009870: d0 06 40 00 ld [ %i1 ], %o0 result = IMFS_evaluate_link( pathloc, 0 ); 2009874: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2009878: 7f ff ff 81 call 200967c <== NOT EXECUTED 200987c: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( result == -1 ) 2009880: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2009884: 22 80 00 51 be,a 20099c8 <== NOT EXECUTED 2009888: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return -1; } node = pathloc->node_access; 200988c: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED if ( !node ) 2009890: 80 a2 20 00 cmp %o0, 0 2009894: 02 80 00 44 be 20099a4 2009898: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200989c: c2 02 20 48 ld [ %o0 + 0x48 ], %g1 20098a0: 80 a0 60 01 cmp %g1, 1 20098a4: 12 80 00 40 bne 20099a4 20098a8: 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 ) { 20098ac: d2 02 20 58 ld [ %o0 + 0x58 ], %o1 20098b0: 80 a2 60 00 cmp %o1, 0 20098b4: 02 80 00 14 be 2009904 20098b8: 92 02 60 18 add %o1, 0x18, %o1 newloc = node->info.directory.mt_fs->mt_fs_root; 20098bc: a0 07 bf e4 add %fp, -28, %l0 <== NOT EXECUTED 20098c0: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 20098c4: 40 00 0c b1 call 200cb88 <== NOT EXECUTED 20098c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED *pathloc = newloc; 20098cc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20098d0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20098d4: 40 00 0c ad call 200cb88 <== NOT EXECUTED 20098d8: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 20098dc: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED 20098e0: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED 20098e4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 20098e8: 90 24 80 08 sub %l2, %o0, %o0 <== NOT EXECUTED 20098ec: 90 06 00 08 add %i0, %o0, %o0 <== NOT EXECUTED 20098f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20098f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20098f8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 20098fc: 81 c7 e0 08 ret <== NOT EXECUTED 2009900: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009904: 40 00 00 39 call 20099e8 2009908: 92 10 00 14 mov %l4, %o1 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 200990c: a2 92 20 00 orcc %o0, 0, %l1 2009910: 02 80 00 0c be 2009940 2009914: c2 07 bf f4 ld [ %fp + -12 ], %g1 done = true; else pathloc->node_access = node; 2009918: 10 bf ff 8e b 2009750 200991c: e2 26 40 00 st %l1, [ %i1 ] break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 2009920: 40 00 0a a8 call 200c3c0 <__errno> <== NOT EXECUTED 2009924: 01 00 00 00 nop <== NOT EXECUTED 2009928: 10 80 00 2d b 20099dc <== NOT EXECUTED 200992c: 82 10 20 11 mov 0x11, %g1 ! 11 <== NOT EXECUTED break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 2009930: 40 00 0a a4 call 200c3c0 <__errno> <== NOT EXECUTED 2009934: 01 00 00 00 nop <== NOT EXECUTED 2009938: 10 80 00 29 b 20099dc <== NOT EXECUTED 200993c: 82 10 20 5b mov 0x5b, %g1 ! 5b <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 2009940: 84 06 00 12 add %i0, %l2, %g2 2009944: 82 24 80 01 sub %l2, %g1, %g1 2009948: 82 06 00 01 add %i0, %g1, %g1 200994c: 10 80 00 0b b 2009978 2009950: 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++) { if ( !IMFS_is_separator( path[ i ] ) ) 2009954: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2009958: 02 80 00 08 be 2009978 <== NOT EXECUTED 200995c: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2009960: 22 80 00 07 be,a 200997c <== NOT EXECUTED 2009964: c2 48 80 00 ldsb [ %g2 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 2009968: 40 00 0a 96 call 200c3c0 <__errno> <== NOT EXECUTED 200996c: 01 00 00 00 nop <== NOT EXECUTED 2009970: 10 80 00 1b b 20099dc <== NOT EXECUTED 2009974: 82 10 20 02 mov 2, %g1 ! 2 <== NOT EXECUTED /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 2009978: c2 48 80 00 ldsb [ %g2 ], %g1 200997c: 80 a0 60 00 cmp %g1, 0 2009980: 12 bf ff f5 bne 2009954 2009984: 84 00 a0 01 inc %g2 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 2009988: 7f ff fe 29 call 200922c 200998c: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 2009990: d2 06 40 00 ld [ %i1 ], %o1 if ( node->type != IMFS_DIRECTORY ) 2009994: c2 02 60 48 ld [ %o1 + 0x48 ], %g1 2009998: 80 a0 60 01 cmp %g1, 1 200999c: 22 80 00 06 be,a 20099b4 20099a0: c2 12 60 2e lduh [ %o1 + 0x2e ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 20099a4: 40 00 0a 87 call 200c3c0 <__errno> <== NOT EXECUTED 20099a8: 01 00 00 00 nop <== NOT EXECUTED 20099ac: 10 80 00 0c b 20099dc <== NOT EXECUTED 20099b0: 82 10 20 14 mov 0x14, %g1 ! 14 <== 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 ) 20099b4: 82 08 60 c0 and %g1, 0xc0, %g1 20099b8: 80 a0 60 c0 cmp %g1, 0xc0 20099bc: 12 80 00 05 bne 20099d0 20099c0: 01 00 00 00 nop if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 20099c4: b0 10 00 08 mov %o0, %i0 20099c8: 81 c7 e0 08 ret 20099cc: 81 e8 00 00 restore */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); 20099d0: 40 00 0a 7c call 200c3c0 <__errno> <== NOT EXECUTED 20099d4: 01 00 00 00 nop <== NOT EXECUTED 20099d8: 82 10 20 0d mov 0xd, %g1 ! d <== NOT EXECUTED 20099dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20099e0: 10 bf ff f9 b 20099c4 <== NOT EXECUTED 20099e4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 020092ac : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 20092ac: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 20092b0: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 20092b4: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 20092b8: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 20092bc: 22 80 00 04 be,a 20092cc <== NOT EXECUTED 20092c0: c2 00 a0 4c ld [ %g2 + 0x4c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); 20092c4: 7f ff f2 22 call 2005b4c <== NOT EXECUTED 20092c8: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; IMFS_Set_handlers( node ); 20092cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20092d0: 7f ff ff d7 call 200922c <== NOT EXECUTED 20092d4: 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 ) 20092d8: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 20092dc: 85 2e 60 06 sll %i1, 6, %g2 <== 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 ) 20092e0: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 <== NOT EXECUTED 20092e4: 82 08 80 01 and %g2, %g1, %g1 <== NOT EXECUTED 20092e8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20092ec: 12 80 00 04 bne 20092fc <== NOT EXECUTED 20092f0: 01 00 00 00 nop <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 20092f4: 81 c7 e0 08 ret <== NOT EXECUTED 20092f8: 91 e8 20 00 restore %g0, 0, %o0 <== 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 ); 20092fc: 40 00 0c 31 call 200c3c0 <__errno> <== NOT EXECUTED 2009300: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009304: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 2009308: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200930c: 81 c7 e0 08 ret <== NOT EXECUTED 2009310: 81 e8 00 00 restore <== NOT EXECUTED 0200967c : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200967c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 2009680: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2009684: a2 10 63 44 or %g1, 0x344, %l1 ! 2015f44 <== NOT EXECUTED 2009688: c4 04 40 00 ld [ %l1 ], %g2 <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 200968c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 2009690: c2 10 a0 26 lduh [ %g2 + 0x26 ], %g1 <== NOT EXECUTED 2009694: 82 00 60 01 inc %g1 <== NOT EXECUTED 2009698: c2 30 a0 26 sth %g1, [ %g2 + 0x26 ] <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 200969c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED 20096a0: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 20096a4: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 20096a8: 28 80 00 08 bleu,a 20096c8 <== NOT EXECUTED 20096ac: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 20096b0: 40 00 0b 44 call 200c3c0 <__errno> <== NOT EXECUTED 20096b4: c0 30 a0 26 clrh [ %g2 + 0x26 ] <== NOT EXECUTED 20096b8: 82 10 20 5c mov 0x5c, %g1 <== NOT EXECUTED 20096bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20096c0: 10 80 00 1b b 200972c <== NOT EXECUTED 20096c4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 20096c8: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 20096cc: 32 80 00 07 bne,a 20096e8 <== NOT EXECUTED 20096d0: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); 20096d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20096d8: 7f ff fe f5 call 20092ac <== NOT EXECUTED 20096dc: 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 ) ) ); 20096e0: 10 80 00 08 b 2009700 <== NOT EXECUTED 20096e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 20096e8: 32 80 00 09 bne,a 200970c <== NOT EXECUTED 20096ec: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); 20096f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20096f4: 7f ff ff 08 call 2009314 <== NOT EXECUTED 20096f8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 20096fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009700: 12 80 00 09 bne 2009724 <== NOT EXECUTED 2009704: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2009708: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 200970c: 82 00 7f fd add %g1, -3, %g1 <== NOT EXECUTED 2009710: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2009714: 28 bf ff de bleu,a 200968c <== NOT EXECUTED 2009718: c4 04 40 00 ld [ %l1 ], %g2 <== NOT EXECUTED 200971c: 90 10 20 00 clr %o0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 2009720: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2009724: c2 00 63 44 ld [ %g1 + 0x344 ], %g1 ! 2015f44 <== NOT EXECUTED 2009728: c0 30 60 26 clrh [ %g1 + 0x26 ] <== NOT EXECUTED return result; } 200972c: 81 c7 e0 08 ret <== NOT EXECUTED 2009730: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02009290 : */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009290: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2009294: 93 2a 60 06 sll %o1, 6, %o1 <== NOT EXECUTED 2009298: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 <== NOT EXECUTED 200929c: 82 2a 40 01 andn %o1, %g1, %g1 <== NOT EXECUTED */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 20092a0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 20092a4: 81 c3 e0 08 retl <== NOT EXECUTED 20092a8: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02009314 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009314: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 2009318: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200931c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 2009320: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2009324: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 2009328: 12 80 00 07 bne 2009344 <== NOT EXECUTED 200932c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 2009330: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 2009334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009338: 32 80 00 05 bne,a 200934c <== NOT EXECUTED 200933c: c2 26 00 00 st %g1, [ %i0 ] <== NOT EXECUTED rtems_fatal_error_occurred( 0xBAD00000 ); 2009340: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 2009344: 7f ff f2 02 call 2005b4c <== NOT EXECUTED 2009348: 01 00 00 00 nop <== NOT EXECUTED * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 200934c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2009350: c2 48 40 00 ldsb [ %g1 ], %g1 <== NOT EXECUTED 2009354: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2009358: 02 80 00 06 be 2009370 <== NOT EXECUTED 200935c: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2009360: 02 80 00 04 be 2009370 <== NOT EXECUTED 2009364: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009368: 12 80 00 09 bne 200938c <== NOT EXECUTED 200936c: 82 10 20 00 clr %g1 <== NOT EXECUTED 2009370: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2009374: d2 00 63 44 ld [ %g1 + 0x344 ], %o1 ! 2015f44 <== NOT EXECUTED 2009378: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200937c: 92 02 60 14 add %o1, 0x14, %o1 <== NOT EXECUTED 2009380: 40 00 0e 02 call 200cb88 <== NOT EXECUTED 2009384: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2009388: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 200938c: d0 04 20 4c ld [ %l0 + 0x4c ], %o0 <== NOT EXECUTED 2009390: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009394: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED 2009398: 40 00 00 14 call 20093e8 <== NOT EXECUTED 200939c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 20093a0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 20093a4: 7f ff ff a2 call 200922c <== NOT EXECUTED 20093a8: 90 10 00 11 mov %l1, %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 ) 20093ac: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 20093b0: 85 2e 60 06 sll %i1, 6, %g2 <== 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 ) 20093b4: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 <== NOT EXECUTED 20093b8: 82 08 80 01 and %g2, %g1, %g1 <== NOT EXECUTED 20093bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20093c0: 12 80 00 04 bne 20093d0 <== NOT EXECUTED 20093c4: 01 00 00 00 nop <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 20093c8: 81 c7 e0 08 ret <== NOT EXECUTED 20093cc: 81 e8 00 00 restore <== 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 ); 20093d0: 40 00 0b fc call 200c3c0 <__errno> <== NOT EXECUTED 20093d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20093d8: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 20093dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20093e0: 81 c7 e0 08 ret <== NOT EXECUTED 20093e4: 81 e8 00 00 restore <== NOT EXECUTED 0200bccc : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200bccc: 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 ) ) ) 200bcd0: 83 2e 60 10 sll %i1, 0x10, %g1 <== NOT EXECUTED 200bcd4: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED 200bcd8: 82 08 7e 00 and %g1, -512, %g1 <== NOT EXECUTED 200bcdc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bce0: 02 80 00 08 be 200bd00 <== NOT EXECUTED 200bce4: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200bce8: 40 00 01 b6 call 200c3c0 <__errno> <== NOT EXECUTED 200bcec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200bcf0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200bcf4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200bcf8: 81 c7 e0 08 ret <== NOT EXECUTED 200bcfc: 81 e8 00 00 restore <== NOT EXECUTED jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 200bd00: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 <== NOT EXECUTED IMFS_update_ctime( jnode ); 200bd04: 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; 200bd08: 82 08 7e 00 and %g1, -512, %g1 <== NOT EXECUTED 200bd0c: 82 16 40 01 or %i1, %g1, %g1 <== NOT EXECUTED IMFS_update_ctime( jnode ); 200bd10: 92 10 20 00 clr %o1 <== NOT EXECUTED 200bd14: 7f ff f9 51 call 200a258 <== NOT EXECUTED 200bd18: c2 34 20 2e sth %g1, [ %l0 + 0x2e ] <== NOT EXECUTED 200bd1c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 200bd20: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 200bd24: 81 c7 e0 08 ret <== NOT EXECUTED 200bd28: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0202ad0c : int cmd, rtems_libio_t *iop ) { return 0; } 202ad0c: 81 c3 e0 08 retl <== NOT EXECUTED 202ad10: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202ad14 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 202ad14: 81 c3 e0 08 retl <== NOT EXECUTED 202ad18: 90 10 20 00 clr %o0 <== NOT EXECUTED 020099e8 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 20099e8: 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 ); 20099ec: 80 a6 20 00 cmp %i0, 0 20099f0: 12 80 00 0a bne 2009a18 20099f4: 80 a6 60 00 cmp %i1, 0 20099f8: 11 00 80 53 sethi %hi(0x2014c00), %o0 <== NOT EXECUTED 20099fc: 15 00 80 54 sethi %hi(0x2015000), %o2 <== NOT EXECUTED 2009a00: 17 00 80 54 sethi %hi(0x2015000), %o3 <== NOT EXECUTED 2009a04: 90 12 23 b0 or %o0, 0x3b0, %o0 <== NOT EXECUTED 2009a08: 94 12 a0 20 or %o2, 0x20, %o2 <== NOT EXECUTED 2009a0c: 96 12 e0 00 mov %o3, %o3 <== NOT EXECUTED 2009a10: 7f ff e1 23 call 2001e9c <__assert_func> <== NOT EXECUTED 2009a14: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 2009a18: 02 80 00 1c be 2009a88 2009a1c: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 2009a20: 13 00 80 54 sethi %hi(0x2015000), %o1 2009a24: 40 00 0f 37 call 200d700 2009a28: 92 12 60 10 or %o1, 0x10, %o1 ! 2015010 2009a2c: 80 a2 20 00 cmp %o0, 0 2009a30: 02 80 00 09 be 2009a54 2009a34: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 2009a38: 13 00 80 54 sethi %hi(0x2015000), %o1 2009a3c: 40 00 0f 31 call 200d700 2009a40: 92 12 60 18 or %o1, 0x18, %o1 ! 2015018 2009a44: 80 a2 20 00 cmp %o0, 0 2009a48: 12 80 00 05 bne 2009a5c 2009a4c: a0 06 20 50 add %i0, 0x50, %l0 return directory->Parent; 2009a50: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 2009a54: 81 c7 e0 08 ret <== NOT EXECUTED 2009a58: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 2009a5c: 10 80 00 08 b 2009a7c 2009a60: f0 06 20 4c ld [ %i0 + 0x4c ], %i0 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) 2009a64: 40 00 0f 27 call 200d700 2009a68: 92 06 20 0c add %i0, 0xc, %o1 2009a6c: 80 a2 20 00 cmp %o0, 0 2009a70: 02 80 00 07 be 2009a8c 2009a74: 01 00 00 00 nop the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 2009a78: f0 06 00 00 ld [ %i0 ], %i0 return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); 2009a7c: 80 a6 00 10 cmp %i0, %l0 2009a80: 12 bf ff f9 bne 2009a64 2009a84: 90 10 00 19 mov %i1, %o0 2009a88: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 2009a8c: 81 c7 e0 08 ret 2009a90: 81 e8 00 00 restore 0201d428 : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } 201d428: 81 c3 e0 08 retl <== NOT EXECUTED 201d42c: 90 10 20 00 clr %o0 <== NOT EXECUTED 0201d430 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 201d430: 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; 201d434: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201d438: 90 07 bf e8 add %fp, -24, %o0 <== 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; 201d43c: e0 06 20 18 ld [ %i0 + 0x18 ], %l0 <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 201d440: a2 10 00 08 mov %o0, %l1 <== 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; 201d444: 40 00 49 c4 call 202fb54 <== NOT EXECUTED 201d448: 92 06 20 18 add %i0, 0x18, %o1 <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 201d44c: c0 26 20 18 clr [ %i0 + 0x18 ] <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; 201d450: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 201d454: f0 04 20 08 ld [ %l0 + 8 ], %i0 <== NOT EXECUTED loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 201d458: 7f ff fe 05 call 201cc6c <== NOT EXECUTED 201d45c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { 201d460: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 201d464: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 201d468: 12 80 00 06 bne 201d480 <== NOT EXECUTED 201d46c: 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 ) ) { 201d470: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 201d474: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 201d478: 12 80 00 08 bne 201d498 <== NOT EXECUTED 201d47c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED result = IMFS_unlink( &loc ); 201d480: 7f ff 9a 51 call 2003dc4 <== NOT EXECUTED 201d484: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if (result != 0) 201d488: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201d48c: 12 80 00 13 bne 201d4d8 <== NOT EXECUTED 201d490: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return -1; jnode = next; } if ( jnode != NULL ) { 201d494: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 201d498: 22 80 00 11 be,a 201d4dc <== NOT EXECUTED 201d49c: b0 10 20 00 clr %i0 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 201d4a0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 201d4a4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 201d4a8: 32 bf ff eb bne,a 201d454 <== NOT EXECUTED 201d4ac: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 201d4b0: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 201d4b4: 82 04 20 50 add %l0, 0x50, %g1 <== NOT EXECUTED 201d4b8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 201d4bc: 22 bf ff e6 be,a 201d454 <== NOT EXECUTED 201d4c0: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 201d4c4: a0 90 a0 00 orcc %g2, 0, %l0 <== NOT EXECUTED 201d4c8: 32 bf ff e3 bne,a 201d454 <== NOT EXECUTED 201d4cc: e0 27 bf e8 st %l0, [ %fp + -24 ] <== NOT EXECUTED 201d4d0: 81 c7 e0 08 ret <== NOT EXECUTED 201d4d4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201d4d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 201d4dc: 81 c7 e0 08 ret <== NOT EXECUTED 201d4e0: 81 e8 00 00 restore <== NOT EXECUTED 02009a94 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 2009a94: 9d e3 bf 98 save %sp, -104, %sp register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 2009a98: 84 10 20 00 clr %g2 2009a9c: 10 80 00 07 b 2009ab8 2009aa0: c6 0e 00 00 ldub [ %i0 ], %g3 while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 2009aa4: 12 80 00 04 bne 2009ab4 2009aa8: 84 00 a0 01 inc %g2 2009aac: 81 c7 e0 08 ret <== NOT EXECUTED 2009ab0: 91 e8 20 04 restore %g0, 4, %o0 <== NOT EXECUTED return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 2009ab4: c6 0e 00 02 ldub [ %i0 + %g2 ], %g3 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 2009ab8: 83 28 e0 18 sll %g3, 0x18, %g1 2009abc: 83 38 60 18 sra %g1, 0x18, %g1 2009ac0: 80 a0 60 2f cmp %g1, 0x2f 2009ac4: 02 80 00 09 be 2009ae8 2009ac8: 80 a0 60 5c cmp %g1, 0x5c 2009acc: 02 80 00 07 be 2009ae8 2009ad0: 80 a0 60 00 cmp %g1, 0 2009ad4: 02 80 00 06 be 2009aec 2009ad8: 80 a0 a0 00 cmp %g2, 0 2009adc: 80 a0 a0 20 cmp %g2, 0x20 2009ae0: 24 bf ff f1 ble,a 2009aa4 2009ae4: c6 2e 40 02 stb %g3, [ %i1 + %g2 ] /* * Copy a seperator into token. */ if ( i == 0 ) { 2009ae8: 80 a0 a0 00 cmp %g2, 0 2009aec: 12 80 00 0a bne 2009b14 2009af0: 82 06 40 02 add %i1, %g2, %g1 token[i] = c; 2009af4: c6 2e 40 00 stb %g3, [ %i1 ] if ( token[i] != '\0' ) { 2009af8: 83 28 e0 18 sll %g3, 0x18, %g1 2009afc: 80 a0 60 00 cmp %g1, 0 2009b00: 02 80 00 0b be 2009b2c 2009b04: b0 10 20 00 clr %i0 2009b08: 84 10 20 01 mov 1, %g2 2009b0c: 10 80 00 08 b 2009b2c 2009b10: b0 10 20 01 mov 1, %i0 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 2009b14: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 2009b18: 80 a0 60 00 cmp %g1, 0 2009b1c: 02 80 00 04 be 2009b2c 2009b20: b0 10 20 03 mov 3, %i0 token[i] = '\0'; 2009b24: c0 2e 40 02 clrb [ %i1 + %g2 ] 2009b28: b0 10 20 03 mov 3, %i0 /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 2009b2c: 80 a6 20 03 cmp %i0, 3 2009b30: 12 80 00 11 bne 2009b74 2009b34: c4 26 80 00 st %g2, [ %i2 ] if ( strcmp( token, "..") == 0 ) 2009b38: 90 10 00 19 mov %i1, %o0 2009b3c: 13 00 80 53 sethi %hi(0x2014c00), %o1 2009b40: 40 00 0e f0 call 200d700 2009b44: 92 12 61 60 or %o1, 0x160, %o1 ! 2014d60 2009b48: 80 a2 20 00 cmp %o0, 0 2009b4c: 12 80 00 04 bne 2009b5c 2009b50: 90 10 00 19 mov %i1, %o0 2009b54: 81 c7 e0 08 ret <== NOT EXECUTED 2009b58: 91 e8 20 02 restore %g0, 2, %o0 <== NOT EXECUTED type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 2009b5c: 13 00 80 54 sethi %hi(0x2015000), %o1 2009b60: 40 00 0e e8 call 200d700 2009b64: 92 12 60 38 or %o1, 0x38, %o1 ! 2015038 <__func__.5181+0x18> 2009b68: 80 a2 20 00 cmp %o0, 0 2009b6c: 22 80 00 02 be,a 2009b74 2009b70: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED type = IMFS_CURRENT_DIR; } return type; } 2009b74: 81 c7 e0 08 ret 2009b78: 81 e8 00 00 restore 02003a30 : int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 2003a30: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2003a34: 15 00 81 06 sethi %hi(0x2041800), %o2 <== NOT EXECUTED 2003a38: 17 00 81 05 sethi %hi(0x2041400), %o3 <== NOT EXECUTED 2003a3c: 92 12 62 74 or %o1, 0x274, %o1 <== NOT EXECUTED 2003a40: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED 2003a44: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2003a48: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2003a4c: 40 00 00 03 call 2003a58 <== NOT EXECUTED 2003a50: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2003a54: 01 00 00 00 nop 02009b7c : 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 ) { 2009b7c: 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, 2009b80: 03 00 80 56 sethi %hi(0x2015800), %g1 2009b84: 84 10 20 10 mov 0x10, %g2 2009b88: c6 00 62 2c ld [ %g1 + 0x22c ], %g3 2009b8c: 82 10 20 00 clr %g1 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 2009b90: 80 a0 80 03 cmp %g2, %g3 2009b94: 02 80 00 06 be 2009bac 2009b98: 82 00 60 01 inc %g1 2009b9c: 80 a0 60 06 cmp %g1, 6 2009ba0: 12 bf ff fc bne 2009b90 2009ba4: 85 28 a0 01 sll %g2, 1, %g2 2009ba8: 84 10 20 80 mov 0x80, %g2 <== NOT EXECUTED bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 2009bac: 03 00 80 59 sethi %hi(0x2016400), %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( 2009bb0: 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) 2009bb4: c4 20 61 5c st %g2, [ %g1 + 0x15c ] * 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( 2009bb8: 92 10 20 01 mov 1, %o1 2009bbc: 90 10 20 00 clr %o0 2009bc0: 15 00 80 53 sethi %hi(0x2014c00), %o2 2009bc4: 17 00 00 10 sethi %hi(0x4000), %o3 2009bc8: 94 12 a0 d0 or %o2, 0xd0, %o2 2009bcc: 40 00 07 ed call 200bb80 2009bd0: 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; 2009bd4: 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( 2009bd8: 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; 2009bdc: f2 26 20 20 st %i1, [ %i0 + 0x20 ] "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 2009be0: 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; 2009be4: 13 00 80 54 sethi %hi(0x2015000), %o1 2009be8: 90 06 20 30 add %i0, 0x30, %o0 2009bec: 40 00 0b e7 call 200cb88 2009bf0: 92 12 62 a8 or %o1, 0x2a8, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 2009bf4: 90 10 20 01 mov 1, %o0 2009bf8: 40 00 00 e7 call 2009f94 2009bfc: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ){ 2009c00: 80 a2 20 00 cmp %o0, 0 2009c04: 12 80 00 0a bne 2009c2c 2009c08: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 free(temp_mt_entry->mt_fs_root.node_access); 2009c0c: 40 00 01 2c call 200a0bc <== NOT EXECUTED 2009c10: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2009c14: 40 00 09 eb call 200c3c0 <__errno> <== NOT EXECUTED 2009c18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009c1c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2009c20: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009c24: 81 c7 e0 08 ret <== NOT EXECUTED 2009c28: 81 e8 00 00 restore <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 2009c2c: 82 10 20 01 mov 1, %g1 2009c30: 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; 2009c34: 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; 2009c38: f6 22 20 08 st %i3, [ %o0 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 2009c3c: 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; 2009c40: 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; } 2009c44: 81 c7 e0 08 ret 2009c48: 91 e8 20 00 restore %g0, 0, %o0 02003b28 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 2003b28: 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; 2003b2c: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED 2003b30: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2003b34: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 <== NOT EXECUTED 2003b38: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED 2003b3c: 08 80 00 06 bleu 2003b54 <== NOT EXECUTED 2003b40: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EMLINK ); 2003b44: 40 00 a6 17 call 202d3a0 <__errno> <== NOT EXECUTED 2003b48: 01 00 00 00 nop <== NOT EXECUTED 2003b4c: 10 80 00 13 b 2003b98 <== NOT EXECUTED 2003b50: 82 10 20 1f mov 0x1f, %g1 ! 1f <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 2003b54: a0 07 bf b8 add %fp, -72, %l0 <== NOT EXECUTED 2003b58: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2003b5c: 7f ff ff 7b call 2003948 <== NOT EXECUTED 2003b60: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 2003b64: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003b68: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2003b6c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003b70: 17 00 00 28 sethi %hi(0xa000), %o3 <== NOT EXECUTED 2003b74: 98 07 bf dc add %fp, -36, %o4 <== NOT EXECUTED 2003b78: 40 00 63 e4 call 201cb08 <== NOT EXECUTED 2003b7c: 96 12 e1 ff or %o3, 0x1ff, %o3 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2003b80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003b84: 12 80 00 08 bne 2003ba4 <== NOT EXECUTED 2003b88: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 2003b8c: 40 00 a6 05 call 202d3a0 <__errno> <== NOT EXECUTED 2003b90: 01 00 00 00 nop <== NOT EXECUTED 2003b94: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2003b98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003b9c: 81 c7 e0 08 ret <== NOT EXECUTED 2003ba0: 91 e8 3f ff restore %g0, -1, %o0 <== 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 ); 2003ba4: 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++; 2003ba8: c2 10 a0 30 lduh [ %g2 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 2003bac: 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++; 2003bb0: 82 00 60 01 inc %g1 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 2003bb4: 40 00 02 69 call 2004558 <== NOT EXECUTED 2003bb8: c2 30 a0 30 sth %g1, [ %g2 + 0x30 ] <== NOT EXECUTED 2003bbc: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 2003bc0: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 2003bc4: c4 20 60 44 st %g2, [ %g1 + 0x44 ] <== NOT EXECUTED return 0; } 2003bc8: 81 c7 e0 08 ret <== NOT EXECUTED 2003bcc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02024bb4 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 2024bb4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2024bb8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 2024bbc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2024bc0: 12 80 00 0a bne 2024be8 <== NOT EXECUTED 2024bc4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2024bc8: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024bcc: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024bd0: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024bd4: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024bd8: 94 12 a2 38 or %o2, 0x238, %o2 <== NOT EXECUTED 2024bdc: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED 2024be0: 10 80 00 0c b 2024c10 <== NOT EXECUTED 2024be4: 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 ); 2024be8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2024bec: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2024bf0: 02 80 00 0a be 2024c18 <== NOT EXECUTED 2024bf4: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024bf8: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024bfc: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024c00: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024c04: 94 12 a2 38 or %o2, 0x238, %o2 <== NOT EXECUTED 2024c08: 96 12 e0 d8 or %o3, 0xd8, %o3 <== NOT EXECUTED 2024c0c: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 2024c10: 7f ff 7d 09 call 2004034 <__assert_func> <== NOT EXECUTED 2024c14: 01 00 00 00 nop <== 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 ); 2024c18: 7f ff fe 7a call 2024600 <== NOT EXECUTED 2024c1c: 94 10 20 01 mov 1, %o2 ! 1 <== NOT EXECUTED if ( *block_entry_ptr ) 2024c20: 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 ); 2024c24: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED if ( *block_entry_ptr ) 2024c28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024c2c: 12 80 00 09 bne 2024c50 <== NOT EXECUTED 2024c30: b0 10 20 00 clr %i0 <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 2024c34: 7f ff fe 66 call 20245cc <== NOT EXECUTED 2024c38: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED if ( !memory ) 2024c3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024c40: 02 80 00 04 be 2024c50 <== NOT EXECUTED 2024c44: 01 00 00 00 nop <== NOT EXECUTED return 1; *block_entry_ptr = memory; 2024c48: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED 2024c4c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 2024c50: 81 c7 e0 08 ret <== NOT EXECUTED 2024c54: 81 e8 00 00 restore <== NOT EXECUTED 02024c58 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 2024c58: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2024c5c: a4 96 20 00 orcc %i0, 0, %l2 <== NOT EXECUTED 2024c60: 32 80 00 0a bne,a 2024c88 <== NOT EXECUTED 2024c64: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 <== NOT EXECUTED 2024c68: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024c6c: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024c70: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024c74: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024c78: 94 12 a2 50 or %o2, 0x250, %o2 <== NOT EXECUTED 2024c7c: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED 2024c80: 10 80 00 0c b 2024cb0 <== NOT EXECUTED 2024c84: 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 ); 2024c88: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2024c8c: 02 80 00 0b be 2024cb8 <== NOT EXECUTED 2024c90: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 2024c94: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024c98: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024c9c: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024ca0: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024ca4: 94 12 a2 50 or %o2, 0x250, %o2 <== NOT EXECUTED 2024ca8: 96 12 e0 d8 or %o3, 0xd8, %o3 <== NOT EXECUTED 2024cac: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 2024cb0: 7f ff 7c e1 call 2004034 <__assert_func> <== NOT EXECUTED 2024cb4: 01 00 00 00 nop <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 2024cb8: e2 00 62 0c ld [ %g1 + 0x20c ], %l1 <== NOT EXECUTED 2024cbc: a1 34 60 02 srl %l1, 2, %l0 <== NOT EXECUTED 2024cc0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2024cc4: 40 00 62 0c call 203d4f4 <.umul> <== NOT EXECUTED 2024cc8: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED 2024ccc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2024cd0: 40 00 62 09 call 203d4f4 <.umul> <== NOT EXECUTED 2024cd4: 90 02 20 01 inc %o0 <== NOT EXECUTED 2024cd8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2024cdc: 40 00 62 06 call 203d4f4 <.umul> <== NOT EXECUTED 2024ce0: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 2024ce4: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 2024ce8: 2a 80 00 06 bcs,a 2024d00 <== NOT EXECUTED 2024cec: e0 04 a0 4c ld [ %l2 + 0x4c ], %l0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2024cf0: 40 00 21 ac call 202d3a0 <__errno> <== NOT EXECUTED 2024cf4: 01 00 00 00 nop <== NOT EXECUTED 2024cf8: 10 80 00 1f b 2024d74 <== NOT EXECUTED 2024cfc: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 2024d00: 80 a6 40 10 cmp %i1, %l0 <== NOT EXECUTED 2024d04: 04 80 00 24 ble 2024d94 <== NOT EXECUTED 2024d08: 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; 2024d0c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2024d10: 40 00 62 35 call 203d5e4 <.div> <== NOT EXECUTED 2024d14: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2024d18: 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; 2024d1c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2024d20: 40 00 62 31 call 203d5e4 <.div> <== NOT EXECUTED 2024d24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2024d28: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 2024d2c: 10 80 00 15 b 2024d80 <== NOT EXECUTED 2024d30: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { 2024d34: 7f ff ff a0 call 2024bb4 <== NOT EXECUTED 2024d38: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2024d3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024d40: 22 80 00 10 be,a 2024d80 <== NOT EXECUTED 2024d44: a0 04 20 01 inc %l0 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { 2024d48: 10 80 00 06 b 2024d60 <== NOT EXECUTED 2024d4c: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 2024d50: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2024d54: 7f ff fe d5 call 20248a8 <== NOT EXECUTED 2024d58: 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-- ) { 2024d5c: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 2024d60: 1a bf ff fc bcc 2024d50 <== NOT EXECUTED 2024d64: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 2024d68: 40 00 21 8e call 202d3a0 <__errno> <== NOT EXECUTED 2024d6c: 01 00 00 00 nop <== NOT EXECUTED 2024d70: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2024d74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2024d78: 81 c7 e0 08 ret <== NOT EXECUTED 2024d7c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2024d80: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED 2024d84: 08 bf ff ec bleu 2024d34 <== NOT EXECUTED 2024d88: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 2024d8c: f2 24 a0 4c st %i1, [ %l2 + 0x4c ] <== NOT EXECUTED 2024d90: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 2024d94: 81 c7 e0 08 ret <== NOT EXECUTED 2024d98: 81 e8 00 00 restore <== NOT EXECUTED 02024600 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2024600: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2024604: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2024608: 32 80 00 0a bne,a 2024630 <== NOT EXECUTED 202460c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2024610: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024614: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024618: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 202461c: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024620: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED 2024624: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED 2024628: 10 80 00 0c b 2024658 <== NOT EXECUTED 202462c: 92 10 23 86 mov 0x386, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2024630: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2024634: 02 80 00 0b be 2024660 <== NOT EXECUTED 2024638: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 202463c: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024640: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024644: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024648: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 202464c: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED 2024650: 96 12 e0 d8 or %o3, 0xd8, %o3 <== NOT EXECUTED 2024654: 92 10 23 8a mov 0x38a, %o1 <== NOT EXECUTED 2024658: 7f ff 7e 77 call 2004034 <__assert_func> <== NOT EXECUTED 202465c: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2024660: c2 00 62 0c ld [ %g1 + 0x20c ], %g1 <== NOT EXECUTED 2024664: a3 30 60 02 srl %g1, 2, %l1 <== NOT EXECUTED 2024668: 82 04 7f ff add %l1, -1, %g1 <== NOT EXECUTED 202466c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2024670: 18 80 00 13 bgu 20246bc <== NOT EXECUTED 2024674: 90 04 60 01 add %l1, 1, %o0 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 2024678: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 202467c: 02 80 00 0d be 20246b0 <== NOT EXECUTED 2024680: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 <== NOT EXECUTED if ( !p ) { 2024684: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2024688: 12 80 00 08 bne 20246a8 <== NOT EXECUTED 202468c: 01 00 00 00 nop <== NOT EXECUTED p = memfile_alloc_block(); 2024690: 7f ff ff cf call 20245cc <== NOT EXECUTED 2024694: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2024698: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202469c: 22 80 00 81 be,a 20248a0 <== NOT EXECUTED 20246a0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 20246a4: d0 26 20 50 st %o0, [ %i0 + 0x50 ] <== NOT EXECUTED } return &info->indirect[ my_block ]; 20246a8: 10 80 00 2a b 2024750 <== NOT EXECUTED 20246ac: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 <== NOT EXECUTED } if ( !p ) 20246b0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED return 0; return &info->indirect[ my_block ]; 20246b4: 10 80 00 30 b 2024774 <== NOT EXECUTED 20246b8: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 20246bc: 40 00 63 8e call 203d4f4 <.umul> <== NOT EXECUTED 20246c0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20246c4: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 20246c8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 20246cc: 18 80 00 2e bgu 2024784 <== NOT EXECUTED 20246d0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 20246d4: a0 26 40 11 sub %i1, %l1, %l0 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20246d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20246dc: 40 00 64 6c call 203d88c <.urem> <== NOT EXECUTED 20246e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20246e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20246e8: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20246ec: 40 00 63 bc call 203d5dc <.udiv> <== NOT EXECUTED 20246f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 20246f4: 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; 20246f8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 20246fc: 02 80 00 17 be 2024758 <== NOT EXECUTED 2024700: d0 06 20 54 ld [ %i0 + 0x54 ], %o0 <== NOT EXECUTED if ( !p ) { 2024704: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024708: 12 80 00 08 bne 2024728 <== NOT EXECUTED 202470c: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED p = memfile_alloc_block(); 2024710: 7f ff ff af call 20245cc <== NOT EXECUTED 2024714: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2024718: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202471c: 02 80 00 60 be 202489c <== NOT EXECUTED 2024720: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED return 0; info->doubly_indirect = p; 2024724: d0 26 20 54 st %o0, [ %i0 + 0x54 ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 2024728: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 202472c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2024730: 12 80 00 08 bne 2024750 <== NOT EXECUTED 2024734: a0 02 00 01 add %o0, %g1, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 2024738: 7f ff ff a5 call 20245cc <== NOT EXECUTED 202473c: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2024740: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2024744: 22 80 00 57 be,a 20248a0 <== NOT EXECUTED 2024748: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 202474c: c4 24 00 00 st %g2, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 2024750: 10 80 00 51 b 2024894 <== NOT EXECUTED 2024754: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED } if ( !p ) 2024758: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202475c: 02 80 00 51 be 20248a0 <== NOT EXECUTED 2024760: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2024764: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED 2024768: c2 02 00 01 ld [ %o0 + %g1 ], %g1 <== 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 ]; 202476c: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2024770: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024774: 12 80 00 4b bne 20248a0 <== NOT EXECUTED 2024778: b0 00 40 02 add %g1, %g2, %i0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 202477c: 81 c7 e0 08 ret <== NOT EXECUTED 2024780: 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 ) { 2024784: 90 02 20 01 inc %o0 <== NOT EXECUTED 2024788: 40 00 63 5b call 203d4f4 <.umul> <== NOT EXECUTED 202478c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2024790: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 2024794: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 2024798: 18 80 00 41 bgu 202489c <== NOT EXECUTED 202479c: a0 26 40 10 sub %i1, %l0, %l0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20247a0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20247a4: 40 00 64 3a call 203d88c <.urem> <== NOT EXECUTED 20247a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20247ac: 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; 20247b0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20247b4: 40 00 63 8a call 203d5dc <.udiv> <== NOT EXECUTED 20247b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 20247bc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 20247c0: 40 00 63 87 call 203d5dc <.udiv> <== NOT EXECUTED 20247c4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 20247c8: 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; 20247cc: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 20247d0: 40 00 64 2f call 203d88c <.urem> <== NOT EXECUTED 20247d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 20247d8: 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; 20247dc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 20247e0: 02 80 00 23 be 202486c <== NOT EXECUTED 20247e4: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 <== NOT EXECUTED if ( !p ) { 20247e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20247ec: 12 80 00 08 bne 202480c <== NOT EXECUTED 20247f0: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED p = memfile_alloc_block(); 20247f4: 7f ff ff 76 call 20245cc <== NOT EXECUTED 20247f8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 20247fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024800: 02 80 00 27 be 202489c <== NOT EXECUTED 2024804: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED return 0; info->triply_indirect = p; 2024808: d0 26 20 58 st %o0, [ %i0 + 0x58 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 202480c: c6 02 00 01 ld [ %o0 + %g1 ], %g3 <== NOT EXECUTED if ( !p1 ) { 2024810: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2024814: 12 80 00 08 bne 2024834 <== NOT EXECUTED 2024818: a0 02 00 01 add %o0, %g1, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 202481c: 7f ff ff 6c call 20245cc <== NOT EXECUTED 2024820: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2024824: 86 92 20 00 orcc %o0, 0, %g3 <== NOT EXECUTED 2024828: 02 80 00 1e be 20248a0 <== NOT EXECUTED 202482c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 2024830: c6 24 00 00 st %g3, [ %l0 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 2024834: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 2024838: d0 00 c0 01 ld [ %g3 + %g1 ], %o0 <== NOT EXECUTED if ( !p2 ) { 202483c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024840: 12 80 00 08 bne 2024860 <== NOT EXECUTED 2024844: a0 00 c0 01 add %g3, %g1, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 2024848: 7f ff ff 61 call 20245cc <== NOT EXECUTED 202484c: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2024850: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024854: 22 80 00 13 be,a 20248a0 <== NOT EXECUTED 2024858: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 202485c: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 2024860: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED 2024864: 81 c7 e0 08 ret <== NOT EXECUTED 2024868: 91 ea 00 01 restore %o0, %g1, %o0 <== NOT EXECUTED } if ( !p ) 202486c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024870: 02 80 00 0c be 20248a0 <== NOT EXECUTED 2024874: b0 10 20 00 clr %i0 <== 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 ]; 2024878: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED 202487c: d0 02 00 01 ld [ %o0 + %g1 ], %o0 <== NOT EXECUTED if ( !p1 ) 2024880: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024884: 02 80 00 07 be 20248a0 <== NOT EXECUTED 2024888: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 202488c: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 2024890: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED 2024894: 81 c7 e0 08 ret <== NOT EXECUTED 2024898: 91 e8 80 01 restore %g2, %g1, %o0 <== NOT EXECUTED 202489c: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 20248a0: 81 c7 e0 08 ret <== NOT EXECUTED 20248a4: 81 e8 00 00 restore <== NOT EXECUTED 0202518c : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 202518c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2025190: a6 96 20 00 orcc %i0, 0, %l3 <== NOT EXECUTED 2025194: 32 80 00 0a bne,a 20251bc <== NOT EXECUTED 2025198: c4 04 e0 48 ld [ %l3 + 0x48 ], %g2 <== NOT EXECUTED 202519c: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 20251a0: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 20251a4: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 20251a8: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 20251ac: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 20251b0: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED 20251b4: 10 80 00 0d b 20251e8 <== NOT EXECUTED 20251b8: 92 10 22 4a mov 0x24a, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 20251bc: 82 00 bf fb add %g2, -5, %g1 <== NOT EXECUTED 20251c0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 20251c4: 08 80 00 0b bleu 20251f0 <== NOT EXECUTED 20251c8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 20251cc: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 20251d0: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 20251d4: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 20251d8: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 20251dc: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 20251e0: 96 12 e1 58 or %o3, 0x158, %o3 <== NOT EXECUTED 20251e4: 92 10 22 4f mov 0x24f, %o1 <== NOT EXECUTED 20251e8: 7f ff 7b 93 call 2004034 <__assert_func> <== NOT EXECUTED 20251ec: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 20251f0: 32 80 00 0a bne,a 2025218 <== NOT EXECUTED 20251f4: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20251f8: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 20251fc: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2025200: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2025204: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2025208: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 202520c: 96 12 e1 a8 or %o3, 0x1a8, %o3 <== NOT EXECUTED 2025210: 10 bf ff f6 b 20251e8 <== NOT EXECUTED 2025214: 92 10 22 58 mov 0x258, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 2025218: 12 80 00 08 bne 2025238 <== NOT EXECUTED 202521c: 80 a0 a0 06 cmp %g2, 6 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2025220: 40 00 20 60 call 202d3a0 <__errno> <== NOT EXECUTED 2025224: 01 00 00 00 nop <== NOT EXECUTED 2025228: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 202522c: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2025230: 10 80 00 76 b 2025408 <== NOT EXECUTED 2025234: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 2025238: 32 80 00 0c bne,a 2025268 <== NOT EXECUTED 202523c: c4 04 e0 4c ld [ %l3 + 0x4c ], %g2 <== NOT EXECUTED unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 2025240: c2 04 e0 4c ld [ %l3 + 0x4c ], %g1 <== NOT EXECUTED 2025244: b0 20 40 19 sub %g1, %i1, %i0 <== NOT EXECUTED 2025248: 80 a6 00 1b cmp %i0, %i3 <== NOT EXECUTED 202524c: 38 80 00 02 bgu,a 2025254 <== NOT EXECUTED 2025250: b0 10 00 1b mov %i3, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 2025254: d2 04 e0 50 ld [ %l3 + 0x50 ], %o1 <== NOT EXECUTED 2025258: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 202525c: 92 02 40 19 add %o1, %i1, %o1 <== NOT EXECUTED 2025260: 10 80 00 62 b 20253e8 <== NOT EXECUTED 2025264: 94 10 00 18 mov %i0, %o2 <== 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 ) 2025268: 82 06 c0 19 add %i3, %i1, %g1 <== NOT EXECUTED 202526c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2025270: 18 80 00 03 bgu 202527c <== NOT EXECUTED 2025274: a0 20 80 19 sub %g2, %i1, %l0 <== NOT EXECUTED 2025278: a0 10 00 1b mov %i3, %l0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 202527c: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 2025280: f6 00 62 0c ld [ %g1 + 0x20c ], %i3 ! 2046a0c <== NOT EXECUTED 2025284: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2025288: 40 00 61 83 call 203d894 <.rem> <== NOT EXECUTED 202528c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2025290: 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; 2025294: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2025298: 40 00 60 d3 call 203d5e4 <.div> <== NOT EXECUTED 202529c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( start_offset ) { 20252a0: 80 a4 60 00 cmp %l1, 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; 20252a4: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED if ( start_offset ) { 20252a8: a4 10 00 1a mov %i2, %l2 <== NOT EXECUTED 20252ac: 02 80 00 1d be 2025320 <== NOT EXECUTED 20252b0: b0 10 20 00 clr %i0 <== NOT EXECUTED to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 20252b4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20252b8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20252bc: 7f ff fc d1 call 2024600 <== NOT EXECUTED 20252c0: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 20252c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20252c8: 32 80 00 0a bne,a 20252f0 <== NOT EXECUTED 20252cc: 92 26 c0 11 sub %i3, %l1, %o1 <== NOT EXECUTED 20252d0: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 20252d4: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 20252d8: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 20252dc: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 20252e0: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 20252e4: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 20252e8: 10 bf ff c0 b 20251e8 <== NOT EXECUTED 20252ec: 92 10 22 94 mov 0x294, %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; 20252f0: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED 20252f4: 08 80 00 03 bleu 2025300 <== NOT EXECUTED 20252f8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20252fc: 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 ); 2025300: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED dest += to_copy; 2025304: a4 06 80 0a add %i2, %o2, %l2 <== 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 ); 2025308: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED dest += to_copy; block++; 202530c: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 2025310: a0 24 00 0a sub %l0, %o2, %l0 <== NOT EXECUTED 2025314: b0 10 00 0a mov %o2, %i0 <== 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 ); 2025318: 40 00 2a 0f call 202fb54 <== NOT EXECUTED 202531c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2025320: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2025324: a2 10 62 0c or %g1, 0x20c, %l1 ! 2046a0c <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2025328: 10 80 00 17 b 2025384 <== NOT EXECUTED 202532c: f6 00 62 0c ld [ %g1 + 0x20c ], %i3 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2025330: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2025334: 7f ff fc b3 call 2024600 <== NOT EXECUTED 2025338: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 202533c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025340: 32 80 00 0a bne,a 2025368 <== NOT EXECUTED 2025344: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED 2025348: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 202534c: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2025350: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2025354: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2025358: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 202535c: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 2025360: 10 bf ff a2 b 20251e8 <== NOT EXECUTED 2025364: 92 10 22 a5 mov 0x2a5, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; 2025368: b2 06 60 01 inc %i1 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 202536c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED dest += to_copy; block++; my_length -= to_copy; 2025370: a0 24 00 1b sub %l0, %i3, %l0 <== NOT EXECUTED copied += to_copy; 2025374: b0 06 00 1b add %i0, %i3, %i0 <== 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; 2025378: a4 04 80 1b add %l2, %i3, %l2 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 202537c: 40 00 29 f6 call 202fb54 <== NOT EXECUTED 2025380: 94 10 00 1b mov %i3, %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 ) { 2025384: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED 2025388: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 202538c: 1a bf ff e9 bcc 2025330 <== NOT EXECUTED 2025390: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 2025394: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2025398: 02 80 00 17 be 20253f4 <== NOT EXECUTED 202539c: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 20253a0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20253a4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20253a8: 7f ff fc 96 call 2024600 <== NOT EXECUTED 20253ac: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 20253b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20253b4: 32 80 00 0a bne,a 20253dc <== NOT EXECUTED 20253b8: d2 02 00 00 ld [ %o0 ], %o1 <== NOT EXECUTED 20253bc: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 20253c0: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 20253c4: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 20253c8: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 20253cc: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 20253d0: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 20253d4: 10 bf ff 85 b 20251e8 <== NOT EXECUTED 20253d8: 92 10 22 b7 mov 0x2b7, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 20253dc: b0 04 00 18 add %l0, %i0, %i0 <== NOT EXECUTED if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 20253e0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20253e4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20253e8: 40 00 29 db call 202fb54 <== NOT EXECUTED 20253ec: 01 00 00 00 nop <== NOT EXECUTED copied += my_length; } IMFS_update_atime( the_jnode ); 20253f0: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 20253f4: 7f ff 7c 59 call 2004558 <== NOT EXECUTED 20253f8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20253fc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return copied; 2025400: 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 ); 2025404: c2 24 e0 3c st %g1, [ %l3 + 0x3c ] <== NOT EXECUTED return copied; } 2025408: 81 c7 e0 08 ret <== NOT EXECUTED 202540c: 91 e8 00 0a restore %g0, %o2, %o0 <== NOT EXECUTED 0202494c : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 202494c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2024950: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2024954: 32 80 00 0a bne,a 202497c <== NOT EXECUTED 2024958: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 202495c: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024960: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024964: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024968: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 202496c: 94 12 a2 00 or %o2, 0x200, %o2 <== NOT EXECUTED 2024970: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED 2024974: 10 80 00 0c b 20249a4 <== NOT EXECUTED 2024978: 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 ); 202497c: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2024980: 02 80 00 0b be 20249ac <== NOT EXECUTED 2024984: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 2024988: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 202498c: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024990: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024994: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024998: 94 12 a2 00 or %o2, 0x200, %o2 <== NOT EXECUTED 202499c: 96 12 e0 d8 or %o3, 0xd8, %o3 <== NOT EXECUTED 20249a0: 92 10 21 f0 mov 0x1f0, %o1 <== NOT EXECUTED 20249a4: 7f ff 7d a4 call 2004034 <__assert_func> <== NOT EXECUTED 20249a8: 01 00 00 00 nop <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 20249ac: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 <== 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; 20249b0: c2 00 62 0c ld [ %g1 + 0x20c ], %g1 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 20249b4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20249b8: 02 80 00 05 be 20249cc <== NOT EXECUTED 20249bc: a7 30 60 02 srl %g1, 2, %l3 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); 20249c0: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED 20249c4: 7f ff ff c5 call 20248d8 <== NOT EXECUTED 20249c8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED } if ( info->doubly_indirect ) { 20249cc: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 <== NOT EXECUTED 20249d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20249d4: 02 80 00 15 be 2024a28 <== NOT EXECUTED 20249d8: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 20249dc: a0 10 20 00 clr %l0 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 20249e4: a2 10 62 0c or %g1, 0x20c, %l1 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 20249e8: 85 2c 20 02 sll %l0, 2, %g2 <== NOT EXECUTED 20249ec: c2 02 00 02 ld [ %o0 + %g2 ], %g1 <== NOT EXECUTED 20249f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20249f4: 02 80 00 04 be 2024a04 <== NOT EXECUTED 20249f8: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 20249fc: 7f ff ff b7 call 20248d8 <== NOT EXECUTED 2024a00: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2024a18: d0 06 20 54 ld [ %i0 + 0x54 ], %o0 <== 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 ); 2024a1c: 90 06 20 54 add %i0, 0x54, %o0 <== NOT EXECUTED 2024a20: 7f ff ff ae call 20248d8 <== NOT EXECUTED 2024a24: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED } if ( info->triply_indirect ) { 2024a28: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 <== NOT EXECUTED 2024a2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024a30: 02 80 00 26 be 2024ac8 <== NOT EXECUTED 2024a34: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 2024a38: a4 10 20 00 clr %l2 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 2024a40: aa 10 62 0c or %g1, 0x20c, %l5 <== NOT EXECUTED } memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { 2024a44: a9 2c a0 02 sll %l2, 2, %l4 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; 2024a48: d0 00 40 14 ld [ %g1 + %l4 ], %o0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2024a4c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024a50: 22 80 00 1c be,a 2024ac0 <== NOT EXECUTED 2024a54: 90 06 20 58 add %i0, 0x58, %o0 <== NOT EXECUTED break; 2024a58: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2024a5c: 10 80 00 09 b 2024a80 <== NOT EXECUTED 2024a60: a2 10 20 00 clr %l1 <== NOT EXECUTED for ( j=0 ; j <== NOT EXECUTED 2024a6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 2024a70: 7f ff ff 9a call 20248d8 <== NOT EXECUTED 2024a74: 92 10 00 13 mov %l3, %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 2024a90: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 2024a94: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2024aa4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2024ab8: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 2024abc: 90 06 20 58 add %i0, 0x58, %o0 <== NOT EXECUTED 2024ac0: 7f ff ff 86 call 20248d8 <== NOT EXECUTED 2024ac4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2024ac8: 81 c7 e0 08 ret <== NOT EXECUTED 2024acc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020248a8 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 20248a8: 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 ); 20248ac: 94 10 20 00 clr %o2 <== NOT EXECUTED 20248b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20248b4: 7f ff ff 53 call 2024600 <== NOT EXECUTED 20248b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED ptr = *block_entry_ptr; 20248bc: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED *block_entry_ptr = 0; memfile_free_block( ptr ); return 1; } 20248c0: 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; 20248c4: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED memfile_free_block( ptr ); 20248c8: 7f ff ff 38 call 20245a8 <== NOT EXECUTED 20248cc: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED return 1; } 20248d0: 81 c7 e0 08 ret <== NOT EXECUTED 20248d4: 81 e8 00 00 restore <== NOT EXECUTED 02024e60 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 2024e60: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2024e64: a4 96 20 00 orcc %i0, 0, %l2 <== NOT EXECUTED 2024e68: 32 80 00 0a bne,a 2024e90 <== NOT EXECUTED 2024e6c: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 <== NOT EXECUTED 2024e70: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024e74: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024e78: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024e7c: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024e80: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2024e84: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED 2024e88: 10 80 00 82 b 2025090 <== NOT EXECUTED 2024e8c: 92 10 22 e1 mov 0x2e1, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2024e90: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2024e94: 02 80 00 0a be 2024ebc <== NOT EXECUTED 2024e98: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2024e9c: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024ea0: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024ea4: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024ea8: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024eac: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2024eb0: 96 12 e0 d8 or %o3, 0xd8, %o3 <== NOT EXECUTED 2024eb4: 10 80 00 77 b 2025090 <== NOT EXECUTED 2024eb8: 92 10 22 e5 mov 0x2e5, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 2024ebc: 12 80 00 0a bne 2024ee4 <== NOT EXECUTED 2024ec0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2024ec4: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024ec8: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024ecc: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024ed0: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024ed4: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2024ed8: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 2024edc: 10 80 00 6d b 2025090 <== NOT EXECUTED 2024ee0: 92 10 22 ed mov 0x2ed, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 2024ee4: 32 80 00 06 bne,a 2024efc <== NOT EXECUTED 2024ee8: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2024eec: 40 00 21 2d call 202d3a0 <__errno> <== NOT EXECUTED 2024ef0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2024ef4: 10 80 00 0e b 2024f2c <== NOT EXECUTED 2024ef8: 82 10 20 16 mov 0x16, %g1 <== 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; 2024efc: 92 06 c0 19 add %i3, %i1, %o1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { 2024f00: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED 2024f04: 08 80 00 0d bleu 2024f38 <== NOT EXECUTED 2024f08: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED status = IMFS_memfile_extend( the_jnode, last_byte ); 2024f0c: 7f ff ff 53 call 2024c58 <== NOT EXECUTED 2024f10: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED if ( status ) 2024f14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024f18: 02 80 00 08 be 2024f38 <== NOT EXECUTED 2024f1c: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 2024f20: 40 00 21 20 call 202d3a0 <__errno> <== NOT EXECUTED 2024f24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2024f28: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2024f2c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2024f30: 81 c7 e0 08 ret <== NOT EXECUTED 2024f34: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2024f38: e0 00 62 0c ld [ %g1 + 0x20c ], %l0 <== NOT EXECUTED 2024f3c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2024f40: 40 00 62 55 call 203d894 <.rem> <== NOT EXECUTED 2024f44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2024f48: 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; 2024f4c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2024f50: 40 00 61 a5 call 203d5e4 <.div> <== NOT EXECUTED 2024f54: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( start_offset ) { 2024f58: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2024f5c: 12 80 00 05 bne 2024f70 <== NOT EXECUTED 2024f60: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED 2024f64: a0 10 00 1a mov %i2, %l0 <== NOT EXECUTED 2024f68: 10 80 00 1c b 2024fd8 <== NOT EXECUTED 2024f6c: b0 10 20 00 clr %i0 <== NOT EXECUTED to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2024f70: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2024f74: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2024f78: 7f ff fd a2 call 2024600 <== NOT EXECUTED 2024f7c: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2024f80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024f84: 32 80 00 0a bne,a 2024fac <== NOT EXECUTED 2024f88: 94 24 00 11 sub %l0, %l1, %o2 <== NOT EXECUTED 2024f8c: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2024f90: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2024f94: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2024f98: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2024f9c: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2024fa0: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 2024fa4: 10 80 00 3b b 2025090 <== NOT EXECUTED 2024fa8: 92 10 23 1a mov 0x31a, %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; 2024fac: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED 2024fb0: 38 80 00 02 bgu,a 2024fb8 <== NOT EXECUTED 2024fb4: 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 ); 2024fb8: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED src += to_copy; 2024fbc: 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 ); 2024fc0: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED src += to_copy; block++; 2024fc4: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 2024fc8: b6 26 c0 0a sub %i3, %o2, %i3 <== NOT EXECUTED copied += to_copy; 2024fcc: 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 ); 2024fd0: 40 00 2a e1 call 202fb54 <== NOT EXECUTED 2024fd4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2024fd8: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2024fdc: a2 10 62 0c or %g1, 0x20c, %l1 ! 2046a0c <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2024fe0: 10 80 00 17 b 202503c <== NOT EXECUTED 2024fe4: f4 00 62 0c ld [ %g1 + 0x20c ], %i2 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2024fe8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2024fec: 7f ff fd 85 call 2024600 <== NOT EXECUTED 2024ff0: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2024ff4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024ff8: 32 80 00 0a bne,a 2025020 <== NOT EXECUTED 2024ffc: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED 2025000: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2025004: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 2025008: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 202500c: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2025010: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2025014: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 2025018: 10 80 00 1e b 2025090 <== NOT EXECUTED 202501c: 92 10 23 2e mov 0x32e, %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 ); 2025020: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED src += to_copy; block++; 2025024: b2 06 60 01 inc %i1 <== NOT EXECUTED my_length -= to_copy; 2025028: b6 26 c0 1a sub %i3, %i2, %i3 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 202502c: b0 06 00 1a add %i0, %i2, %i0 <== 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; 2025030: a0 04 00 1a add %l0, %i2, %l0 <== 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 ); 2025034: 40 00 2a c8 call 202fb54 <== NOT EXECUTED 2025038: 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 ) { 202503c: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED 2025040: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED 2025044: 1a bf ff e9 bcc 2024fe8 <== NOT EXECUTED 2025048: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 202504c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 2025050: 02 80 00 17 be 20250ac <== NOT EXECUTED 2025054: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2025058: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 202505c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2025060: 7f ff fd 68 call 2024600 <== NOT EXECUTED 2025064: 94 10 20 00 clr %o2 <== NOT EXECUTED assert( block_ptr ); 2025068: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202506c: 32 80 00 0b bne,a 2025098 <== NOT EXECUTED 2025070: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED 2025074: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 2025078: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 202507c: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 2025080: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 2025084: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED 2025088: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 202508c: 92 10 23 44 mov 0x344, %o1 <== NOT EXECUTED 2025090: 7f ff 7b e9 call 2004034 <__assert_func> <== NOT EXECUTED 2025094: 01 00 00 00 nop <== NOT EXECUTED #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; 2025098: 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 ); 202509c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20250a0: 40 00 2a ad call 202fb54 <== NOT EXECUTED 20250a4: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED my_length = 0; copied += to_copy; } IMFS_atime_mtime_update( the_jnode ); 20250a8: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 20250ac: 7f ff 7d 2b call 2004558 <== NOT EXECUTED 20250b0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20250b4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20250b8: c2 24 a0 3c st %g1, [ %l2 + 0x3c ] <== NOT EXECUTED 20250bc: c2 24 a0 40 st %g1, [ %l2 + 0x40 ] <== NOT EXECUTED return copied; } 20250c0: 81 c7 e0 08 ret <== NOT EXECUTED 20250c4: 81 e8 00 00 restore <== NOT EXECUTED 02009c4c : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009c4c: 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 ); 2009c50: 90 10 00 18 mov %i0, %o0 2009c54: 92 07 bf c0 add %fp, -64, %o1 2009c58: 7f ff ff 8f call 2009a94 2009c5c: 94 07 bf f4 add %fp, -12, %o2 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 2009c60: 03 00 00 3c sethi %hi(0xf000), %g1 2009c64: b3 2e 60 10 sll %i1, 0x10, %i1 2009c68: 97 36 60 10 srl %i1, 0x10, %o3 2009c6c: 84 0a c0 01 and %o3, %g1, %g2 2009c70: 03 00 00 10 sethi %hi(0x4000), %g1 2009c74: 80 a0 80 01 cmp %g2, %g1 2009c78: 02 80 00 17 be 2009cd4 2009c7c: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 2009c80: 03 00 00 20 sethi %hi(0x8000), %g1 2009c84: 80 a0 80 01 cmp %g2, %g1 2009c88: 02 80 00 14 be 2009cd8 2009c8c: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 2009c90: 03 00 00 18 sethi %hi(0x6000), %g1 2009c94: 80 a0 80 01 cmp %g2, %g1 2009c98: 02 80 00 05 be 2009cac 2009c9c: 03 00 00 08 sethi %hi(0x2000), %g1 2009ca0: 80 a0 80 01 cmp %g2, %g1 2009ca4: 12 80 00 06 bne 2009cbc 2009ca8: 01 00 00 00 nop type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 2009cac: f4 27 bf e4 st %i2, [ %fp + -28 ] 2009cb0: f6 27 bf e8 st %i3, [ %fp + -24 ] 2009cb4: 10 80 00 09 b 2009cd8 2009cb8: 92 10 20 02 mov 2, %o1 } else { rtems_set_errno_and_return_minus_one( EINVAL ); 2009cbc: 40 00 09 c1 call 200c3c0 <__errno> <== NOT EXECUTED 2009cc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009cc4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2009cc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009ccc: 81 c7 e0 08 ret <== NOT EXECUTED 2009cd0: 81 e8 00 00 restore <== NOT EXECUTED 2009cd4: 92 10 20 01 mov 1, %o1 /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 2009cd8: 94 07 bf c0 add %fp, -64, %o2 2009cdc: 98 07 bf e4 add %fp, -28, %o4 2009ce0: 40 00 07 a8 call 200bb80 2009ce4: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 2009ce8: 80 a2 20 00 cmp %o0, 0 2009cec: 12 80 00 06 bne 2009d04 2009cf0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 2009cf4: 40 00 09 b3 call 200c3c0 <__errno> <== NOT EXECUTED 2009cf8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2009cfc: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2009d00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 2009d04: 81 c7 e0 08 ret 2009d08: 81 e8 00 00 restore 02003c90 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2003c90: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003c94: 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 ) 2003c98: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 2003c9c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2003ca0: 22 80 00 08 be,a 2003cc0 <== NOT EXECUTED 2003ca4: f0 20 a0 58 st %i0, [ %g2 + 0x58 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 2003ca8: 40 00 a5 be call 202d3a0 <__errno> <== NOT EXECUTED 2003cac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003cb0: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2003cb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003cb8: 81 c7 e0 08 ret <== NOT EXECUTED 2003cbc: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 2003cc0: 81 c7 e0 08 ret <== NOT EXECUTED 2003cc4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02003cd4 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 2003cd4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; 2003cd8: c6 06 00 00 ld [ %i0 ], %g3 <== NOT EXECUTED if ( node->type != IMFS_SYM_LINK ) 2003cdc: c2 00 e0 48 ld [ %g3 + 0x48 ], %g1 <== NOT EXECUTED 2003ce0: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 2003ce4: 02 80 00 0a be 2003d0c <== NOT EXECUTED 2003ce8: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2003cec: 40 00 a5 ad call 202d3a0 <__errno> <== NOT EXECUTED 2003cf0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003cf4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003cf8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003cfc: 81 c7 e0 08 ret <== NOT EXECUTED 2003d00: 81 e8 00 00 restore <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 2003d04: c2 2e 40 18 stb %g1, [ %i1 + %i0 ] <== 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++ ) 2003d08: b0 06 20 01 inc %i0 <== NOT EXECUTED 2003d0c: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 2003d10: 1a 80 00 07 bcc 2003d2c <== NOT EXECUTED 2003d14: 01 00 00 00 nop <== NOT EXECUTED 2003d18: c2 00 e0 4c ld [ %g3 + 0x4c ], %g1 <== NOT EXECUTED 2003d1c: c4 48 40 18 ldsb [ %g1 + %i0 ], %g2 <== NOT EXECUTED 2003d20: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003d24: 12 bf ff f8 bne 2003d04 <== NOT EXECUTED 2003d28: c2 08 40 18 ldub [ %g1 + %i0 ], %g1 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 2003d2c: 81 c7 e0 08 ret <== NOT EXECUTED 2003d30: 81 e8 00 00 restore <== NOT EXECUTED 02009d18 : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2009d18: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2009d1c: 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 ) { 2009d20: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 2009d24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009d28: 22 80 00 06 be,a 2009d40 <== NOT EXECUTED 2009d2c: 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 ); 2009d30: 40 00 04 6f call 200aeec <_Chain_Extract> <== NOT EXECUTED 2009d34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2009d38: 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--; 2009d3c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 2009d40: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2009d44: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 2009d48: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 2009d4c: 40 00 01 43 call 200a258 <== NOT EXECUTED 2009d50: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] <== NOT EXECUTED 2009d54: 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) ) { 2009d58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2009d5c: 40 00 01 78 call 200a33c <== NOT EXECUTED 2009d60: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 2009d64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009d68: 12 80 00 18 bne 2009dc8 <== NOT EXECUTED 2009d6c: 01 00 00 00 nop <== NOT EXECUTED 2009d70: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 2009d74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009d78: 12 80 00 14 bne 2009dc8 <== NOT EXECUTED 2009d7c: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 2009d80: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2015f44 <== NOT EXECUTED 2009d84: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED 2009d88: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 2009d8c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2009d90: 22 80 00 02 be,a 2009d98 <== NOT EXECUTED 2009d94: c0 20 e0 04 clr [ %g3 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 2009d98: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2009d9c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 2009da0: 12 80 00 08 bne 2009dc0 <== NOT EXECUTED 2009da4: 01 00 00 00 nop <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) 2009da8: d0 04 20 4c ld [ %l0 + 0x4c ], %o0 <== NOT EXECUTED 2009dac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009db0: 02 80 00 04 be 2009dc0 <== NOT EXECUTED 2009db4: 01 00 00 00 nop <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 2009db8: 40 00 00 c1 call 200a0bc <== NOT EXECUTED 2009dbc: 01 00 00 00 nop <== NOT EXECUTED } free( the_jnode ); 2009dc0: 40 00 00 bf call 200a0bc <== NOT EXECUTED 2009dc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } return 0; } 2009dc8: 81 c7 e0 08 ret <== NOT EXECUTED 2009dcc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02009dd0 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2009dd0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 2009dd4: f0 06 00 00 ld [ %i0 ], %i0 switch ( the_jnode->type ) { 2009dd8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2009ddc: 80 a0 60 04 cmp %g1, 4 2009de0: 22 80 00 19 be,a 2009e44 2009de4: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 2009de8: 14 80 00 07 bg 2009e04 2009dec: 80 a0 60 06 cmp %g1, 6 2009df0: 80 a0 60 02 cmp %g1, 2 2009df4: 12 80 00 0e bne 2009e2c 2009df8: 01 00 00 00 nop case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 2009dfc: 10 80 00 06 b 2009e14 2009e00: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 2009e04: 14 80 00 0a bg 2009e2c <== NOT EXECUTED 2009e08: 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; 2009e0c: 10 80 00 06 b 2009e24 <== NOT EXECUTED 2009e10: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 <== NOT EXECUTED rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 2009e14: 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 ); 2009e18: c2 26 60 04 st %g1, [ %i1 + 4 ] 2009e1c: 10 80 00 0a b 2009e44 2009e20: c4 26 40 00 st %g2, [ %i1 ] break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 2009e24: 10 80 00 08 b 2009e44 <== NOT EXECUTED 2009e28: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 2009e2c: 40 00 09 65 call 200c3c0 <__errno> <== NOT EXECUTED 2009e30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009e34: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2009e38: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009e3c: 81 c7 e0 08 ret <== NOT EXECUTED 2009e40: 81 e8 00 00 restore <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; 2009e44: c2 16 20 2e lduh [ %i0 + 0x2e ], %g1 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 2009e48: 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; 2009e4c: c2 36 60 0c sth %g1, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 2009e50: 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; 2009e54: 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; 2009e58: 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; 2009e5c: 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; 2009e60: 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; 2009e64: 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; 2009e68: 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; 2009e6c: 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; 2009e70: 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; 2009e74: 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; 2009e78: 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; 2009e7c: 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; 2009e80: c2 26 60 34 st %g1, [ %i1 + 0x34 ] return 0; } 2009e84: 81 c7 e0 08 ret 2009e88: 91 e8 20 00 restore %g0, 0, %o0 02003d34 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 2003d34: 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 ); 2003d38: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2003d3c: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 2003d40: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 2003d44: 7f ff ff 01 call 2003948 <== NOT EXECUTED 2003d48: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 2003d4c: 40 00 ba 6b call 20326f8 <== NOT EXECUTED 2003d50: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003d54: d0 27 bf e4 st %o0, [ %fp + -28 ] <== NOT EXECUTED if (info.sym_link.name == NULL) { 2003d58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003d5c: 12 80 00 08 bne 2003d7c <== NOT EXECUTED 2003d60: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 2003d64: 40 00 a5 8f call 202d3a0 <__errno> <== NOT EXECUTED 2003d68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003d6c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2003d70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003d74: 81 c7 e0 08 ret <== NOT EXECUTED 2003d78: 81 e8 00 00 restore <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 2003d7c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2003d80: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED 2003d84: 17 00 00 28 sethi %hi(0xa000), %o3 <== NOT EXECUTED 2003d88: 98 07 bf e4 add %fp, -28, %o4 <== NOT EXECUTED 2003d8c: 96 12 e1 ff or %o3, 0x1ff, %o3 <== NOT EXECUTED 2003d90: 40 00 63 5e call 201cb08 <== NOT EXECUTED 2003d94: b0 10 20 00 clr %i0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2003d98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003d9c: 12 bf ff f6 bne 2003d74 <== NOT EXECUTED 2003da0: d0 07 bf e4 ld [ %fp + -28 ], %o0 <== NOT EXECUTED free( info.sym_link.name); 2003da4: 40 00 01 c3 call 20044b0 <== NOT EXECUTED 2003da8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 2003dac: 40 00 a5 7d call 202d3a0 <__errno> <== NOT EXECUTED 2003db0: 01 00 00 00 nop <== NOT EXECUTED 2003db4: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2003db8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2003dbc: 81 c7 e0 08 ret <== NOT EXECUTED 2003dc0: 81 e8 00 00 restore <== NOT EXECUTED 02003dc4 : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 2003dc4: 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; 2003dc8: 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 ) { 2003dcc: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2003dd0: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2003dd4: 32 80 00 29 bne,a 2003e78 <== NOT EXECUTED 2003dd8: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 2003ddc: e2 04 20 4c ld [ %l0 + 0x4c ], %l1 <== NOT EXECUTED 2003de0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2003de4: 12 80 00 08 bne 2003e04 <== NOT EXECUTED 2003de8: a4 07 bf e0 add %fp, -32, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2003dec: 40 00 a5 6d call 202d3a0 <__errno> <== NOT EXECUTED 2003df0: 01 00 00 00 nop <== NOT EXECUTED 2003df4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2003df8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003dfc: 10 80 00 22 b 2003e84 <== NOT EXECUTED 2003e00: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 2003e04: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2003e08: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2003e0c: 40 00 af 52 call 202fb54 <== NOT EXECUTED 2003e10: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 2003e14: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2003e18: 40 00 63 95 call 201cc6c <== NOT EXECUTED 2003e1c: e2 27 bf e0 st %l1, [ %fp + -32 ] <== 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) 2003e20: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 2003e24: c2 10 a0 30 lduh [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 2003e28: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2003e2c: 12 80 00 0b bne 2003e58 <== NOT EXECUTED 2003e30: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED { result = (*the_link.handlers->rmnod_h)( &the_link ); 2003e34: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 2003e38: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED 2003e3c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003e40: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED if ( result != 0 ) 2003e44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003e48: 02 80 00 0b be 2003e74 <== NOT EXECUTED 2003e4c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( loc ); return result; } 2003e50: 81 c7 e0 08 ret <== NOT EXECUTED 2003e54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return -1; } else { node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); 2003e58: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2003e5c: c2 30 a0 30 sth %g1, [ %g2 + 0x30 ] <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 2003e60: 40 00 01 be call 2004558 <== NOT EXECUTED 2003e64: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003e68: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 2003e6c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2003e70: 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 ); 2003e74: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2003e78: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED 2003e7c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003e80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return result; } 2003e84: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2003e88: 81 c7 e0 08 ret <== NOT EXECUTED 2003e8c: 81 e8 00 00 restore <== NOT EXECUTED 02003e90 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2003e90: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003e94: 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 ) 2003e98: c2 00 a0 48 ld [ %g2 + 0x48 ], %g1 <== NOT EXECUTED 2003e9c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2003ea0: 22 80 00 06 be,a 2003eb8 <== NOT EXECUTED 2003ea4: c2 00 a0 58 ld [ %g2 + 0x58 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 2003ea8: 40 00 a5 3e call 202d3a0 <__errno> <== NOT EXECUTED 2003eac: 01 00 00 00 nop <== NOT EXECUTED 2003eb0: 10 80 00 08 b 2003ed0 <== NOT EXECUTED 2003eb4: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 2003eb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ebc: 32 80 00 08 bne,a 2003edc <== NOT EXECUTED 2003ec0: c0 20 a0 58 clr [ %g2 + 0x58 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 2003ec4: 40 00 a5 37 call 202d3a0 <__errno> <== NOT EXECUTED 2003ec8: 01 00 00 00 nop <== NOT EXECUTED 2003ecc: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2003ed0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003ed4: 81 c7 e0 08 ret <== NOT EXECUTED 2003ed8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 2003edc: 81 c7 e0 08 ret <== NOT EXECUTED 2003ee0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02003ee4 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2003ee4: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } 2003ee8: 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; 2003eec: d4 20 60 40 st %o2, [ %g1 + 0x40 ] <== NOT EXECUTED return 0; } 2003ef0: 81 c3 e0 08 retl <== NOT EXECUTED 2003ef4: d2 20 60 3c st %o1, [ %g1 + 0x3c ] <== NOT EXECUTED 020021b8 : void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 20021b8: 9d e3 bf 98 save %sp, -104, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 20021bc: 03 00 80 59 sethi %hi(0x2016400), %g1 20021c0: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 2016444 20021c4: 80 a0 60 00 cmp %g1, 0 20021c8: 02 80 00 05 be 20021dc 20021cc: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 20021d0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20021d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20021d8: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 20021dc: 40 00 20 fd call 200a5d0 20021e0: a0 10 00 18 mov %i0, %l0 starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 20021e4: 03 00 80 59 sethi %hi(0x2016400), %g1 20021e8: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 ! 2016448 20021ec: 80 a0 60 00 cmp %g1, 0 20021f0: 02 80 00 06 be 2002208 20021f4: 90 10 00 18 mov %i0, %o0 starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 20021f8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20021fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002200: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 2002204: 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() ) 2002208: 03 00 80 5a sethi %hi(0x2016800), %g1 200220c: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201691c <_Configuration_Table> 2002210: c2 08 60 28 ldub [ %g1 + 0x28 ], %g1 2002214: 80 a0 60 00 cmp %g1, 0 2002218: 02 80 00 07 be 2002234 200221c: 92 10 00 10 mov %l0, %o1 memset( starting_address, 0, length ); 2002220: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002224: 92 10 20 00 clr %o1 <== NOT EXECUTED 2002228: 40 00 2a 91 call 200cc6c <== NOT EXECUTED 200222c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 2002230: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2002234: 11 00 80 59 sethi %hi(0x2016400), %o0 2002238: 94 10 00 19 mov %i1, %o2 200223c: 90 12 22 b8 or %o0, 0x2b8, %o0 2002240: 40 00 10 72 call 2006408 <_Heap_Initialize> 2002244: 96 10 20 08 mov 8, %o3 &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 2002248: 80 a2 20 00 cmp %o0, 0 200224c: 12 80 00 04 bne 200225c 2002250: 05 00 80 59 sethi %hi(0x2016400), %g2 rtems_fatal_error_occurred( status ); 2002254: 40 00 0e 3e call 2005b4c <== NOT EXECUTED 2002258: 01 00 00 00 nop <== NOT EXECUTED rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 200225c: c2 00 a3 10 ld [ %g2 + 0x310 ], %g1 2002260: 82 06 40 01 add %i1, %g1, %g1 2002264: c2 20 a3 10 st %g1, [ %g2 + 0x310 ] } 2002268: 81 c7 e0 08 ret 200226c: 81 e8 00 00 restore 02002d0c : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2002d0c: 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 ) 2002d10: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2002d14: 02 80 00 4a be 2002e3c <== NOT EXECUTED 2002d18: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED return; if ( !print_handler ) 2002d1c: e8 00 62 08 ld [ %g1 + 0x208 ], %l4 ! 2046a08 <== NOT EXECUTED 2002d20: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2002d24: 02 80 00 46 be 2002e3c <== NOT EXECUTED 2002d28: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2002d2c: 32 80 00 0b bne,a 2002d58 <== NOT EXECUTED 2002d30: ec 06 21 50 ld [ %i0 + 0x150 ], %l6 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 2002d34: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 2002d38: 96 10 63 3c or %g1, 0x33c, %o3 ! 2059b3c <== NOT EXECUTED 2002d3c: c2 02 e0 04 ld [ %o3 + 4 ], %g1 <== NOT EXECUTED 2002d40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002d44: 02 80 00 3e be 2002e3c <== NOT EXECUTED 2002d48: a4 10 00 0b mov %o3, %l2 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 2002d4c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2002d50: 10 80 00 03 b 2002d5c <== NOT EXECUTED 2002d54: ac 10 20 00 clr %l6 <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; 2002d58: a4 06 20 c4 add %i0, 0xc4, %l2 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 2002d5c: e0 04 a0 04 ld [ %l2 + 4 ], %l0 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2002d60: 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); 2002d64: a0 04 20 10 add %l0, 0x10, %l0 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2002d68: a6 00 7f f0 add %g1, -16, %l3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 2002d6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002d70: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2002d74: 7f ff ff d6 call 2002ccc <== NOT EXECUTED 2002d78: a0 04 00 13 add %l0, %l3, %l0 <== NOT EXECUTED if ( high_water_mark ) 2002d7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2002d80: 12 80 00 03 bne 2002d8c <== NOT EXECUTED 2002d84: aa 24 00 08 sub %l0, %o0, %l5 <== NOT EXECUTED 2002d88: aa 10 20 00 clr %l5 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { 2002d8c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2002d90: 02 80 00 10 be 2002dd0 <== NOT EXECUTED 2002d94: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED (*print_handler)( 2002d98: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED 2002d9c: e2 00 62 04 ld [ %g1 + 0x204 ], %l1 <== NOT EXECUTED 2002da0: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED 2002da4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002da8: 40 00 15 06 call 20081c0 <== NOT EXECUTED 2002dac: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2002db0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2002db4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2002db8: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002dbc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2002dc0: 9f c5 00 00 call %l4 <== NOT EXECUTED 2002dc4: 92 12 60 30 or %o1, 0x30, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2002dc8: 10 80 00 08 b 2002de8 <== NOT EXECUTED 2002dcc: d6 04 80 00 ld [ %l2 ], %o3 <== 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 ); 2002dd0: d0 00 62 04 ld [ %g1 + 0x204 ], %o0 <== NOT EXECUTED 2002dd4: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002dd8: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2002ddc: 9f c5 00 00 call %l4 <== NOT EXECUTED 2002de0: 92 12 60 40 or %o1, 0x40, %o1 <== NOT EXECUTED } (*print_handler)( 2002de4: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 2002de8: d4 04 a0 04 ld [ %l2 + 4 ], %o2 <== NOT EXECUTED 2002dec: 21 00 81 1a sethi %hi(0x2046800), %l0 <== NOT EXECUTED 2002df0: 23 00 81 1a sethi %hi(0x2046800), %l1 <== NOT EXECUTED 2002df4: c2 04 22 08 ld [ %l0 + 0x208 ], %g1 <== NOT EXECUTED 2002df8: d0 04 62 04 ld [ %l1 + 0x204 ], %o0 <== NOT EXECUTED 2002dfc: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2002e00: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED 2002e04: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2002e08: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED 2002e0c: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002e10: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002e14: 92 12 60 50 or %o1, 0x50, %o1 ! 203f450 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2002e18: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 2002e1c: c2 00 62 00 ld [ %g1 + 0x200 ], %g1 ! 2046a00 <== NOT EXECUTED 2002e20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002e24: 12 80 00 08 bne 2002e44 <== NOT EXECUTED 2002e28: c2 04 22 08 ld [ %l0 + 0x208 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 2002e2c: d0 04 62 04 ld [ %l1 + 0x204 ], %o0 <== NOT EXECUTED 2002e30: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002e34: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002e38: 92 12 60 70 or %o1, 0x70, %o1 ! 203f470 <== NOT EXECUTED 2002e3c: 81 c7 e0 08 ret <== NOT EXECUTED 2002e40: 81 e8 00 00 restore <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 2002e44: d0 04 62 04 ld [ %l1 + 0x204 ], %o0 <== NOT EXECUTED 2002e48: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002e4c: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED 2002e50: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002e54: 92 12 60 80 or %o1, 0x80, %o1 <== NOT EXECUTED 2002e58: 81 c7 e0 08 ret <== NOT EXECUTED 2002e5c: 81 e8 00 00 restore <== NOT EXECUTED 02002ccc : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2002ccc: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2002cd0: 92 0a 7f fc and %o1, -4, %o1 <== NOT EXECUTED if (*base != U32_PATTERN) 2002cd4: 03 29 69 69 sethi %hi(0xa5a5a400), %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++) 2002cd8: 84 02 00 09 add %o0, %o1, %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 2002cdc: 10 80 00 06 b 2002cf4 <== NOT EXECUTED 2002ce0: 86 10 61 a5 or %g1, 0x1a5, %g3 <== NOT EXECUTED 2002ce4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2002ce8: 12 80 00 07 bne 2002d04 <== NOT EXECUTED 2002cec: 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++) 2002cf0: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2002cf4: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 2002cf8: 2a bf ff fb bcs,a 2002ce4 <== NOT EXECUTED 2002cfc: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002d00: 90 10 20 00 clr %o0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 2002d04: 81 c3 e0 08 retl <== NOT EXECUTED 2002d08: 01 00 00 00 nop 02002ed4 : */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 2002ed4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; printk( 2002ed8: d4 1e 20 08 ldd [ %i0 + 8 ], %o2 <== NOT EXECUTED 2002edc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2002ee0: 11 00 80 fd sethi %hi(0x203f400), %o0 <== NOT EXECUTED 2002ee4: 40 00 0a c5 call 20059f8 <== NOT EXECUTED 2002ee8: 90 12 20 f0 or %o0, 0xf0, %o0 ! 203f4f0 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 2002eec: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2 <== NOT EXECUTED 2002ef0: d2 06 20 c8 ld [ %i0 + 0xc8 ], %o1 <== NOT EXECUTED 2002ef4: 96 10 00 0a mov %o2, %o3 <== NOT EXECUTED 2002ef8: 11 00 80 fd sethi %hi(0x203f400), %o0 <== NOT EXECUTED 2002efc: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 2002f00: 90 12 21 30 or %o0, 0x130, %o0 <== NOT EXECUTED 2002f04: 40 00 0a bd call 20059f8 <== NOT EXECUTED 2002f08: 94 02 40 0a add %o1, %o2, %o2 <== NOT EXECUTED stack->area, stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { 2002f0c: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 2002f10: 12 80 00 07 bne 2002f2c <== NOT EXECUTED 2002f14: 11 00 80 fd sethi %hi(0x203f400), %o0 <== NOT EXECUTED printk( 2002f18: d2 06 20 c8 ld [ %i0 + 0xc8 ], %o1 <== NOT EXECUTED 2002f1c: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 2002f20: 90 12 21 60 or %o0, 0x160, %o0 <== NOT EXECUTED 2002f24: 40 00 0a b5 call 20059f8 <== NOT EXECUTED 2002f28: 94 10 20 10 mov 0x10, %o2 <== 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 ); 2002f2c: 40 00 16 f7 call 2008b08 <== NOT EXECUTED 2002f30: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED 2002f34: 01 00 00 00 nop 02005d0c <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 2005d0c: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2005d10: 03 00 80 5a sethi %hi(0x2016800), %g1 2005d14: e0 00 62 c4 ld [ %g1 + 0x2c4 ], %l0 ! 2016ac4 <_API_extensions_List> 2005d18: 82 10 62 c4 or %g1, 0x2c4, %g1 !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 2005d1c: 10 80 00 08 b 2005d3c <_API_extensions_Run_postdriver+0x30> 2005d20: a2 00 60 04 add %g1, 4, %l1 the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) 2005d24: 80 a0 60 00 cmp %g1, 0 2005d28: 22 80 00 05 be,a 2005d3c <_API_extensions_Run_postdriver+0x30> 2005d2c: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED (*the_extension->postdriver_hook)(); 2005d30: 9f c0 40 00 call %g1 2005d34: 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 ) { 2005d38: 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 ) ; 2005d3c: 80 a4 00 11 cmp %l0, %l1 2005d40: 32 bf ff f9 bne,a 2005d24 <_API_extensions_Run_postdriver+0x18> 2005d44: c2 04 20 0c ld [ %l0 + 0xc ], %g1 the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) (*the_extension->postdriver_hook)(); } } 2005d48: 81 c7 e0 08 ret 2005d4c: 81 e8 00 00 restore 02005d50 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 2005d50: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2005d54: 03 00 80 5a sethi %hi(0x2016800), %g1 2005d58: e0 00 62 c4 ld [ %g1 + 0x2c4 ], %l0 ! 2016ac4 <_API_extensions_List> 2005d5c: 82 10 62 c4 or %g1, 0x2c4, %g1 !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 2005d60: a4 00 60 04 add %g1, 4, %l2 the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) (*the_extension->postswitch_hook)( _Thread_Executing ); 2005d64: 03 00 80 5a sethi %hi(0x2016800), %g1 2005d68: 10 80 00 08 b 2005d88 <_API_extensions_Run_postswitch+0x38> 2005d6c: a2 10 61 44 or %g1, 0x144, %l1 ! 2016944 <_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 ) 2005d70: 80 a0 60 00 cmp %g1, 0 2005d74: 22 80 00 05 be,a 2005d88 <_API_extensions_Run_postswitch+0x38> 2005d78: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED (*the_extension->postswitch_hook)( _Thread_Executing ); 2005d7c: 9f c0 40 00 call %g1 2005d80: d0 04 40 00 ld [ %l1 ], %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 ) { 2005d84: 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 ) ; 2005d88: 80 a4 00 12 cmp %l0, %l2 2005d8c: 32 bf ff f9 bne,a 2005d70 <_API_extensions_Run_postswitch+0x20> 2005d90: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) (*the_extension->postswitch_hook)( _Thread_Executing ); } } 2005d94: 81 c7 e0 08 ret 2005d98: 81 e8 00 00 restore 02005cc8 <_API_extensions_Run_predriver>: * * _API_extensions_Run_predriver */ void _API_extensions_Run_predriver( void ) { 2005cc8: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 2005ccc: 03 00 80 5a sethi %hi(0x2016800), %g1 2005cd0: e0 00 62 c4 ld [ %g1 + 0x2c4 ], %l0 ! 2016ac4 <_API_extensions_List> 2005cd4: 82 10 62 c4 or %g1, 0x2c4, %g1 !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 2005cd8: 10 80 00 08 b 2005cf8 <_API_extensions_Run_predriver+0x30> 2005cdc: a2 00 60 04 add %g1, 4, %l1 the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) 2005ce0: 80 a0 60 00 cmp %g1, 0 2005ce4: 22 80 00 05 be,a 2005cf8 <_API_extensions_Run_predriver+0x30> 2005ce8: e0 04 00 00 ld [ %l0 ], %l0 (*the_extension->predriver_hook)(); 2005cec: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005cf0: 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 ) { 2005cf4: 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 ) ; 2005cf8: 80 a4 00 11 cmp %l0, %l1 2005cfc: 32 bf ff f9 bne,a 2005ce0 <_API_extensions_Run_predriver+0x18> 2005d00: c2 04 20 08 ld [ %l0 + 8 ], %g1 the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) (*the_extension->predriver_hook)(); } } 2005d04: 81 c7 e0 08 ret 2005d08: 81 e8 00 00 restore 020124f4 <_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 ) { 20124f4: 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 ) { 20124f8: 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 ) { 20124fc: 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 ) { 2012500: 80 a6 80 01 cmp %i2, %g1 2012504: 18 80 00 17 bgu 2012560 <_CORE_message_queue_Broadcast+0x6c> 2012508: 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 ) { 201250c: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 2012510: 80 a0 60 00 cmp %g1, 0 2012514: 02 80 00 0a be 201253c <_CORE_message_queue_Broadcast+0x48> 2012518: a2 10 20 00 clr %l1 *count = 0; 201251c: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED 2012520: 81 c7 e0 08 ret <== NOT EXECUTED 2012524: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2012528: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 201252c: 40 00 1f 44 call 201a23c 2012530: a2 04 60 01 inc %l1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 2012534: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 2012538: 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))) { 201253c: 40 00 09 d2 call 2014c84 <_Thread_queue_Dequeue> 2012540: 90 10 00 12 mov %l2, %o0 2012544: 92 10 00 19 mov %i1, %o1 2012548: a0 10 00 08 mov %o0, %l0 201254c: 80 a2 20 00 cmp %o0, 0 2012550: 12 bf ff f6 bne 2012528 <_CORE_message_queue_Broadcast+0x34> 2012554: 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; 2012558: e2 27 40 00 st %l1, [ %i5 ] 201255c: b0 10 20 00 clr %i0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 2012560: 81 c7 e0 08 ret 2012564: 81 e8 00 00 restore 02014b04 <_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 ) { 2014b04: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 2014b08: 03 20 00 00 sethi %hi(0x80000000), %g1 2014b0c: 80 a6 80 01 cmp %i2, %g1 2014b10: 02 80 00 15 be 2014b64 <_CORE_message_queue_Insert_message+0x60> 2014b14: f4 26 60 08 st %i2, [ %i1 + 8 ] 2014b18: 82 00 7c 00 add %g1, -1024, %g1 2014b1c: 82 10 63 ff or %g1, 0x3ff, %g1 2014b20: 80 a6 80 01 cmp %i2, %g1 2014b24: 12 80 00 1f bne 2014ba0 <_CORE_message_queue_Insert_message+0x9c> 2014b28: a2 06 20 54 add %i0, 0x54, %l1 case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 2014b2c: 7f ff b6 78 call 200250c 2014b30: 01 00 00 00 nop Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2014b34: e2 26 40 00 st %l1, [ %i1 ] if ( the_message_queue->number_of_pending_messages++ == 0 ) 2014b38: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 old_last_node = the_chain->last; 2014b3c: c4 06 20 58 ld [ %i0 + 0x58 ], %g2 the_chain->last = the_node; 2014b40: f2 26 20 58 st %i1, [ %i0 + 0x58 ] 2014b44: 80 a0 00 01 cmp %g0, %g1 old_last_node->next = the_node; the_node->previous = old_last_node; 2014b48: c4 26 60 04 st %g2, [ %i1 + 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; 2014b4c: f2 20 80 00 st %i1, [ %g2 ] 2014b50: 82 00 60 01 inc %g1 2014b54: 84 60 3f ff subx %g0, -1, %g2 2014b58: c2 26 20 48 st %g1, [ %i0 + 0x48 ] 2014b5c: a0 10 00 02 mov %g2, %l0 notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 2014b60: 30 80 00 27 b,a 2014bfc <_CORE_message_queue_Insert_message+0xf8> break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); 2014b64: 7f ff b6 6a call 200250c 2014b68: 01 00 00 00 nop if ( the_message_queue->number_of_pending_messages++ == 0 ) 2014b6c: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2014b70: c6 06 20 50 ld [ %i0 + 0x50 ], %g3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 2014b74: 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; 2014b78: f2 26 20 50 st %i1, [ %i0 + 0x50 ] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2014b7c: c2 26 60 04 st %g1, [ %i1 + 4 ] 2014b80: 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; 2014b84: f2 20 e0 04 st %i1, [ %g3 + 4 ] 2014b88: 82 60 3f ff subx %g0, -1, %g1 2014b8c: 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; 2014b90: c6 26 40 00 st %g3, [ %i1 ] 2014b94: a0 10 00 01 mov %g1, %l0 2014b98: c4 26 20 48 st %g2, [ %i0 + 0x48 ] notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 2014b9c: 30 80 00 18 b,a 2014bfc <_CORE_message_queue_Insert_message+0xf8> 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; 2014ba0: 10 80 00 06 b 2014bb8 <_CORE_message_queue_Insert_message+0xb4> <== NOT EXECUTED 2014ba4: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 <== NOT EXECUTED while ( !_Chain_Is_tail( the_header, the_node ) ) { this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 2014ba8: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 2014bac: 14 80 00 06 bg 2014bc4 <_CORE_message_queue_Insert_message+0xc0> <== NOT EXECUTED 2014bb0: 01 00 00 00 nop <== NOT EXECUTED the_node = the_node->next; 2014bb4: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { 2014bb8: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 2014bbc: 32 bf ff fb bne,a 2014ba8 <_CORE_message_queue_Insert_message+0xa4> <== NOT EXECUTED 2014bc0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 2014bc4: 7f ff b6 52 call 200250c <== NOT EXECUTED 2014bc8: 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 ); 2014bcc: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 2014bd0: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2014bd4: c6 00 40 00 ld [ %g1 ], %g3 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2014bd8: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 2014bdc: f2 20 40 00 st %i1, [ %g1 ] <== NOT EXECUTED 2014be0: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 2014be4: f2 20 e0 04 st %i1, [ %g3 + 4 ] <== NOT EXECUTED 2014be8: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED 2014bec: 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; 2014bf0: c6 26 40 00 st %g3, [ %i1 ] <== NOT EXECUTED 2014bf4: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED 2014bf8: c4 26 20 48 st %g2, [ %i0 + 0x48 ] <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 2014bfc: 7f ff b6 48 call 200251c 2014c00: 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 ) 2014c04: 80 8c 20 ff btst 0xff, %l0 2014c08: 02 80 00 08 be 2014c28 <_CORE_message_queue_Insert_message+0x124> 2014c0c: 01 00 00 00 nop 2014c10: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 2014c14: 80 a0 60 00 cmp %g1, 0 2014c18: 02 80 00 04 be 2014c28 <_CORE_message_queue_Insert_message+0x124> 2014c1c: 01 00 00 00 nop (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 2014c20: 9f c0 40 00 call %g1 <== NOT EXECUTED 2014c24: d0 06 20 64 ld [ %i0 + 0x64 ], %o0 <== NOT EXECUTED 2014c28: 81 c7 e0 08 ret 2014c2c: 81 e8 00 00 restore 02011c9c <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 2011c9c: 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; 2011ca0: 27 00 80 95 sethi %hi(0x2025400), %l3 2011ca4: e2 04 e0 e4 ld [ %l3 + 0xe4 ], %l1 ! 20254e4 <_Thread_Executing> void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 2011ca8: a4 10 00 19 mov %i1, %l2 CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 2011cac: c0 24 60 34 clr [ %l1 + 0x34 ] _ISR_Disable( level ); 2011cb0: 7f ff c2 17 call 200250c 2011cb4: a0 10 00 18 mov %i0, %l0 2011cb8: 86 10 00 08 mov %o0, %g3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2011cbc: 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)) 2011cc0: 82 06 20 54 add %i0, 0x54, %g1 2011cc4: 80 a6 40 01 cmp %i1, %g1 2011cc8: 02 80 00 24 be 2011d58 <_CORE_message_queue_Seize+0xbc> 2011ccc: 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; 2011cd0: c2 06 40 00 ld [ %i1 ], %g1 the_chain->first = new_first; 2011cd4: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { 2011cd8: 80 a6 60 00 cmp %i1, 0 2011cdc: 02 80 00 1f be 2011d58 <_CORE_message_queue_Seize+0xbc> 2011ce0: c4 20 60 04 st %g2, [ %g1 + 4 ] the_message_queue->number_of_pending_messages -= 1; 2011ce4: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011ce8: 82 00 7f ff add %g1, -1, %g1 2011cec: c2 26 20 48 st %g1, [ %i0 + 0x48 ] _ISR_Enable( level ); 2011cf0: 7f ff c2 0b call 200251c 2011cf4: a2 06 60 10 add %i1, 0x10, %l1 *size_p = the_message->Contents.size; 2011cf8: d4 06 60 0c ld [ %i1 + 0xc ], %o2 _Thread_Executing->Wait.count = the_message->priority; 2011cfc: c4 04 e0 e4 ld [ %l3 + 0xe4 ], %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; 2011d00: d4 26 c0 00 st %o2, [ %i3 ] _Thread_Executing->Wait.count = the_message->priority; 2011d04: c2 06 60 08 ld [ %i1 + 8 ], %g1 2011d08: c2 20 a0 24 st %g1, [ %g2 + 0x24 ] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2011d0c: 92 10 00 11 mov %l1, %o1 2011d10: 40 00 13 43 call 2016a1c 2011d14: 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 ); 2011d18: 7f ff ea 6f call 200c6d4 <_Thread_queue_Dequeue> 2011d1c: 90 10 00 18 mov %i0, %o0 if ( !the_thread ) { 2011d20: 80 a2 20 00 cmp %o0, 0 2011d24: 32 80 00 04 bne,a 2011d34 <_CORE_message_queue_Seize+0x98> 2011d28: d4 02 20 30 ld [ %o0 + 0x30 ], %o2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); 2011d2c: 7f ff e3 63 call 200aab8 <_Chain_Append> 2011d30: 91 ee 20 68 restore %i0, 0x68, %o0 * 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; 2011d34: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 2011d38: 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; 2011d3c: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2011d40: d2 02 20 2c ld [ %o0 + 0x2c ], %o1 <== NOT EXECUTED 2011d44: 40 00 13 36 call 2016a1c <== NOT EXECUTED 2011d48: 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( 2011d4c: f4 06 60 08 ld [ %i1 + 8 ], %i2 <== NOT EXECUTED 2011d50: 40 00 0b 6d call 2014b04 <_CORE_message_queue_Insert_message> <== NOT EXECUTED 2011d54: 81 e8 00 00 restore <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 2011d58: 80 8f 20 ff btst 0xff, %i4 2011d5c: 12 80 00 08 bne 2011d7c <_CORE_message_queue_Seize+0xe0> 2011d60: 82 10 20 01 mov 1, %g1 _ISR_Enable( level ); 2011d64: 7f ff c1 ee call 200251c 2011d68: 90 10 00 03 mov %g3, %o0 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 2011d6c: 82 10 20 04 mov 4, %g1 2011d70: 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 ); } 2011d74: 81 c7 e0 08 ret 2011d78: 81 e8 00 00 restore 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; 2011d7c: c2 24 20 30 st %g1, [ %l0 + 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; 2011d80: f6 24 60 28 st %i3, [ %l1 + 0x28 ] return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; 2011d84: e4 24 60 20 st %l2, [ %l1 + 0x20 ] executing->Wait.return_argument_second.mutable_object = buffer; 2011d88: f4 24 60 2c st %i2, [ %l1 + 0x2c ] 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; 2011d8c: e0 24 60 44 st %l0, [ %l1 + 0x44 ] executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 2011d90: 90 10 00 03 mov %g3, %o0 2011d94: 7f ff c1 e2 call 200251c 2011d98: 35 00 80 33 sethi %hi(0x200cc00), %i2 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 2011d9c: b0 10 00 10 mov %l0, %i0 2011da0: b2 10 00 1d mov %i5, %i1 2011da4: 7f ff ea b1 call 200c868 <_Thread_queue_Enqueue_with_handler> 2011da8: 95 ee a0 34 restore %i2, 0x34, %o2 2011dac: 01 00 00 00 nop 02011db0 <_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 ) { 2011db0: 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 ) { 2011db4: 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 ) { 2011db8: 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 ) { 2011dbc: 80 a6 80 01 cmp %i2, %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 ) { 2011dc0: 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 ) { 2011dc4: 18 80 00 3f bgu 2011ec0 <_CORE_message_queue_Submit+0x110> 2011dc8: 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 ) { 2011dcc: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2011dd0: 80 a0 60 00 cmp %g1, 0 2011dd4: 32 80 00 0f bne,a 2011e10 <_CORE_message_queue_Submit+0x60> 2011dd8: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 2011ddc: 7f ff ea 3e call 200c6d4 <_Thread_queue_Dequeue> 2011de0: 90 10 00 11 mov %l1, %o0 if ( the_thread ) { 2011de4: a0 92 20 00 orcc %o0, 0, %l0 2011de8: 02 80 00 09 be 2011e0c <_CORE_message_queue_Submit+0x5c> 2011dec: 92 10 00 19 mov %i1, %o1 2011df0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 2011df4: 40 00 13 0a call 2016a1c 2011df8: 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; 2011dfc: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 the_thread->Wait.count = submit_type; 2011e00: 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; 2011e04: 10 80 00 15 b 2011e58 <_CORE_message_queue_Submit+0xa8> 2011e08: f4 20 40 00 st %i2, [ %g1 ] /* * 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 < 2011e0c: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 2011e10: c2 04 60 44 ld [ %l1 + 0x44 ], %g1 2011e14: 80 a0 80 01 cmp %g2, %g1 2011e18: 1a 80 00 12 bcc 2011e60 <_CORE_message_queue_Submit+0xb0> 2011e1c: 80 a4 a0 00 cmp %l2, 0 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 *) 2011e20: 7f ff e3 32 call 200aae8 <_Chain_Get> 2011e24: 90 04 60 68 add %l1, 0x68, %o0 /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 2011e28: a0 92 20 00 orcc %o0, 0, %l0 2011e2c: 02 80 00 27 be 2011ec8 <_CORE_message_queue_Submit+0x118> 2011e30: 92 10 00 19 mov %i1, %o1 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 2011e34: 94 10 00 1a mov %i2, %o2 2011e38: 40 00 12 f9 call 2016a1c 2011e3c: 90 04 20 10 add %l0, 0x10, %o0 size ); the_message->Contents.size = size; the_message->priority = submit_type; _CORE_message_queue_Insert_message( 2011e40: 90 10 00 11 mov %l1, %o0 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 2011e44: f4 24 20 0c st %i2, [ %l0 + 0xc ] the_message->priority = submit_type; 2011e48: fa 24 20 08 st %i5, [ %l0 + 8 ] _CORE_message_queue_Insert_message( 2011e4c: 92 10 00 10 mov %l0, %o1 2011e50: 40 00 0b 2d call 2014b04 <_CORE_message_queue_Insert_message> 2011e54: 94 10 00 1d mov %i5, %o2 2011e58: 81 c7 e0 08 ret 2011e5c: 91 e8 20 00 restore %g0, 0, %o0 * 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 ) { 2011e60: 02 80 00 18 be 2011ec0 <_CORE_message_queue_Submit+0x110> 2011e64: 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() ) { 2011e68: 03 00 80 95 sethi %hi(0x2025400), %g1 <== NOT EXECUTED 2011e6c: c2 00 60 c0 ld [ %g1 + 0xc0 ], %g1 ! 20254c0 <_ISR_Nest_level> <== NOT EXECUTED 2011e70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011e74: 32 80 00 13 bne,a 2011ec0 <_CORE_message_queue_Submit+0x110> <== NOT EXECUTED 2011e78: 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; 2011e7c: 03 00 80 95 sethi %hi(0x2025400), %g1 <== NOT EXECUTED _ISR_Disable( level ); 2011e80: 7f ff c1 a3 call 200250c <== NOT EXECUTED 2011e84: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 ! 20254e4 <_Thread_Executing> <== NOT EXECUTED 2011e88: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2011e8c: 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; 2011e90: 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; 2011e94: f6 24 20 20 st %i3, [ %l0 + 0x20 ] <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; 2011e98: f2 24 20 2c st %i1, [ %l0 + 0x2c ] <== NOT EXECUTED executing->Wait.option = (uint32_t) size; 2011e9c: 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; 2011ea0: 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 ); 2011ea4: 7f ff c1 9e call 200251c <== NOT EXECUTED 2011ea8: b0 10 20 07 mov 7, %i0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 2011eac: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED 2011eb0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2011eb4: 15 00 80 33 sethi %hi(0x200cc00), %o2 <== NOT EXECUTED 2011eb8: 7f ff ea 6c call 200c868 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 2011ebc: 94 12 a0 34 or %o2, 0x34, %o2 ! 200cc34 <_Thread_queue_Timeout> <== NOT EXECUTED 2011ec0: 81 c7 e0 08 ret 2011ec4: 81 e8 00 00 restore } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; 2011ec8: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED } 2011ecc: 81 c7 e0 08 ret <== NOT EXECUTED 2011ed0: 81 e8 00 00 restore <== NOT EXECUTED 0200af8c <_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 ) { 200af8c: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 200af90: 03 00 80 5a sethi %hi(0x2016800), %g1 200af94: c4 00 61 44 ld [ %g1 + 0x144 ], %g2 ! 2016944 <_Thread_Executing> CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 200af98: d0 06 40 00 ld [ %i1 ], %o0 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 200af9c: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 200afa0: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200afa4: 80 a0 60 00 cmp %g1, 0 200afa8: 22 80 00 32 be,a 200b070 <_CORE_mutex_Seize_interrupt_trylock+0xe4> 200afac: c6 06 20 5c ld [ %i0 + 0x5c ], %g3 the_mutex->lock = CORE_MUTEX_LOCKED; 200afb0: c0 26 20 50 clr [ %i0 + 0x50 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200afb4: c2 00 a0 08 ld [ %g2 + 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; 200afb8: c6 06 20 48 ld [ %i0 + 0x48 ], %g3 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; 200afbc: 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; 200afc0: c4 26 20 5c st %g2, [ %i0 + 0x5c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 200afc4: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 200afc8: 80 a0 e0 02 cmp %g3, 2 200afcc: 02 80 00 05 be 200afe0 <_CORE_mutex_Seize_interrupt_trylock+0x54> 200afd0: c2 26 20 54 st %g1, [ %i0 + 0x54 ] 200afd4: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 200afd8: 32 80 00 06 bne,a 200aff0 <_CORE_mutex_Seize_interrupt_trylock+0x64> <== NOT EXECUTED 200afdc: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200afe0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 200afe4: 82 00 60 01 inc %g1 200afe8: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200afec: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 200aff0: 80 a0 60 03 cmp %g1, 3 200aff4: 22 80 00 03 be,a 200b000 <_CORE_mutex_Seize_interrupt_trylock+0x74> 200aff8: c6 06 20 4c ld [ %i0 + 0x4c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 200affc: 30 80 00 2c b,a 200b0ac <_CORE_mutex_Seize_interrupt_trylock+0x120> { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 200b000: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 200b004: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 200b008: 12 80 00 03 bne 200b014 <_CORE_mutex_Seize_interrupt_trylock+0x88> <== NOT EXECUTED 200b00c: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 200b010: 30 80 00 27 b,a 200b0ac <_CORE_mutex_Seize_interrupt_trylock+0x120> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 200b014: 08 80 00 0f bleu 200b050 <_CORE_mutex_Seize_interrupt_trylock+0xc4> <== NOT EXECUTED 200b018: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200b01c: 05 00 80 5a sethi %hi(0x2016800), %g2 <== NOT EXECUTED 200b020: c2 00 a0 80 ld [ %g2 + 0x80 ], %g1 ! 2016880 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 200b024: 82 00 60 01 inc %g1 <== NOT EXECUTED 200b028: c2 20 a0 80 st %g1, [ %g2 + 0x80 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 200b02c: 7f ff db 49 call 2001d50 <== NOT EXECUTED 200b030: 01 00 00 00 nop <== NOT EXECUTED _Thread_Change_priority( 200b034: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 <== NOT EXECUTED 200b038: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 <== NOT EXECUTED 200b03c: 7f ff ef e6 call 2006fd4 <_Thread_Change_priority> <== NOT EXECUTED 200b040: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 200b044: 7f ff f1 72 call 200760c <_Thread_Enable_dispatch> <== NOT EXECUTED 200b048: b0 10 20 00 clr %i0 <== NOT EXECUTED 200b04c: 30 80 00 1a b,a 200b0b4 <_CORE_mutex_Seize_interrupt_trylock+0x128> <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 200b050: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 200b054: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 200b058: 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; 200b05c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 200b060: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200b064: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200b068: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 200b06c: 30 80 00 10 b,a 200b0ac <_CORE_mutex_Seize_interrupt_trylock+0x120> <== 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 ) ) { 200b070: 80 a0 c0 02 cmp %g3, %g2 200b074: 12 80 00 12 bne 200b0bc <_CORE_mutex_Seize_interrupt_trylock+0x130> 200b078: 01 00 00 00 nop switch ( the_mutex->Attributes.lock_nesting_behavior ) { 200b07c: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200b080: 80 a0 60 00 cmp %g1, 0 200b084: 22 80 00 07 be,a 200b0a0 <_CORE_mutex_Seize_interrupt_trylock+0x114> 200b088: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 200b08c: 80 a0 60 01 cmp %g1, 1 200b090: 12 80 00 0b bne 200b0bc <_CORE_mutex_Seize_interrupt_trylock+0x130> 200b094: 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; 200b098: 10 80 00 05 b 200b0ac <_CORE_mutex_Seize_interrupt_trylock+0x120> 200b09c: c2 20 e0 34 st %g1, [ %g3 + 0x34 ] * 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++; 200b0a0: 82 00 60 01 inc %g1 200b0a4: c2 26 20 54 st %g1, [ %i0 + 0x54 ] _ISR_Enable( level ); 200b0a8: 30 80 00 01 b,a 200b0ac <_CORE_mutex_Seize_interrupt_trylock+0x120> return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; _ISR_Enable( level ); 200b0ac: 7f ff db 29 call 2001d50 200b0b0: b0 10 20 00 clr %i0 200b0b4: 81 c7 e0 08 ret 200b0b8: 81 e8 00 00 restore return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 200b0bc: 81 c7 e0 08 ret 200b0c0: 91 e8 20 01 restore %g0, 1, %o0 020060c8 <_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 ) { 20060c8: 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 ) { 20060cc: 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 ) { 20060d0: 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 ) { 20060d4: 80 a0 60 00 cmp %g1, 0 20060d8: 02 80 00 07 be 20060f4 <_CORE_mutex_Surrender+0x2c> 20060dc: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 if ( !_Thread_Is_executing( holder ) ) 20060e0: 03 00 80 5a sethi %hi(0x2016800), %g1 20060e4: c2 00 61 44 ld [ %g1 + 0x144 ], %g1 ! 2016944 <_Thread_Executing> 20060e8: 80 a2 00 01 cmp %o0, %g1 20060ec: 12 80 00 52 bne 2006234 <_CORE_mutex_Surrender+0x16c> 20060f0: 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 ) 20060f4: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 20060f8: 80 a0 60 00 cmp %g1, 0 20060fc: 02 80 00 4d be 2006230 <_CORE_mutex_Surrender+0x168> 2006100: 82 00 7f ff add %g1, -1, %g1 return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { 2006104: 80 a0 60 00 cmp %g1, 0 2006108: 02 80 00 09 be 200612c <_CORE_mutex_Surrender+0x64> 200610c: c2 24 20 54 st %g1, [ %l0 + 0x54 ] switch ( the_mutex->Attributes.lock_nesting_behavior ) { 2006110: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2006114: 80 a0 60 00 cmp %g1, 0 2006118: 02 80 00 47 be 2006234 <_CORE_mutex_Surrender+0x16c> 200611c: b0 10 20 00 clr %i0 2006120: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 2006124: 02 80 00 44 be 2006234 <_CORE_mutex_Surrender+0x16c> <== NOT EXECUTED 2006128: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED 200612c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 2006130: 80 a0 60 02 cmp %g1, 2 2006134: 02 80 00 04 be 2006144 <_CORE_mutex_Surrender+0x7c> 2006138: 80 a0 60 03 cmp %g1, 3 200613c: 32 80 00 07 bne,a 2006158 <_CORE_mutex_Surrender+0x90> 2006140: c0 24 20 5c clr [ %l0 + 0x5c ] the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; 2006144: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 2006148: 82 00 7f ff add %g1, -1, %g1 200614c: c2 22 20 1c st %g1, [ %o0 + 0x1c ] 2006150: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 } the_mutex->holder = NULL; 2006154: 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 ) || 2006158: 80 a0 60 02 cmp %g1, 2 200615c: 02 80 00 05 be 2006170 <_CORE_mutex_Surrender+0xa8> 2006160: c0 24 20 60 clr [ %l0 + 0x60 ] 2006164: 80 a0 60 03 cmp %g1, 3 2006168: 12 80 00 0d bne 200619c <_CORE_mutex_Surrender+0xd4> 200616c: 01 00 00 00 nop _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 && 2006170: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 2006174: 80 a0 60 00 cmp %g1, 0 2006178: 12 80 00 09 bne 200619c <_CORE_mutex_Surrender+0xd4> 200617c: 01 00 00 00 nop 2006180: d2 02 20 18 ld [ %o0 + 0x18 ], %o1 2006184: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 2006188: 80 a2 40 01 cmp %o1, %g1 200618c: 02 80 00 04 be 200619c <_CORE_mutex_Surrender+0xd4> 2006190: 01 00 00 00 nop holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 2006194: 40 00 03 90 call 2006fd4 <_Thread_Change_priority> 2006198: 94 10 20 01 mov 1, %o2 ! 1 /* * 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 ) ) ) { 200619c: 40 00 06 0e call 20079d4 <_Thread_queue_Dequeue> 20061a0: 90 10 00 10 mov %l0, %o0 20061a4: 86 92 20 00 orcc %o0, 0, %g3 20061a8: 02 80 00 1f be 2006224 <_CORE_mutex_Surrender+0x15c> 20061ac: 82 10 20 01 mov 1, %g1 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 20061b0: c2 00 e0 08 ld [ %g3 + 8 ], %g1 the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 20061b4: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 20061b8: c2 24 20 60 st %g1, [ %l0 + 0x60 ] } else #endif { the_mutex->holder = the_thread; 20061bc: c6 24 20 5c st %g3, [ %l0 + 0x5c ] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 20061c0: 82 10 20 01 mov 1, %g1 switch ( the_mutex->Attributes.discipline ) { 20061c4: 80 a0 a0 02 cmp %g2, 2 20061c8: 02 80 00 07 be 20061e4 <_CORE_mutex_Surrender+0x11c> 20061cc: c2 24 20 54 st %g1, [ %l0 + 0x54 ] 20061d0: 80 a0 a0 03 cmp %g2, 3 20061d4: 12 80 00 18 bne 2006234 <_CORE_mutex_Surrender+0x16c> 20061d8: b0 10 20 00 clr %i0 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++; 20061dc: 10 80 00 07 b 20061f8 <_CORE_mutex_Surrender+0x130> <== NOT EXECUTED 20061e0: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== 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++; 20061e4: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 20061e8: 82 00 60 01 inc %g1 20061ec: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] 20061f0: 81 c7 e0 08 ret 20061f4: 91 e8 20 00 restore %g0, 0, %o0 #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 < 20061f8: 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++; 20061fc: 82 00 60 01 inc %g1 <== NOT EXECUTED 2006200: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 2006204: d2 04 20 4c ld [ %l0 + 0x4c ], %o1 <== NOT EXECUTED 2006208: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED 200620c: 3a 80 00 0a bcc,a 2006234 <_CORE_mutex_Surrender+0x16c> <== NOT EXECUTED 2006210: b0 10 20 00 clr %i0 <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 2006214: 40 00 03 70 call 2006fd4 <_Thread_Change_priority> <== NOT EXECUTED 2006218: 94 10 20 00 clr %o2 <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 200621c: 81 c7 e0 08 ret <== NOT EXECUTED 2006220: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 2006224: c2 24 20 50 st %g1, [ %l0 + 0x50 ] 2006228: 81 c7 e0 08 ret 200622c: 91 e8 20 00 restore %g0, 0, %o0 2006230: b0 10 20 00 clr %i0 return CORE_MUTEX_STATUS_SUCCESSFUL; } 2006234: 81 c7 e0 08 ret 2006238: 81 e8 00 00 restore 02021454 <_Chain_Insert>: void _Chain_Insert( Chain_Node *after_node, Chain_Node *node ) { 2021454: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 2021458: 7f ff 86 09 call 2002c7c <== NOT EXECUTED 202145c: 01 00 00 00 nop <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2021460: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2021464: f0 26 60 04 st %i0, [ %i1 + 4 ] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 2021468: f2 26 00 00 st %i1, [ %i0 ] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 202146c: 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; 2021470: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 2021474: 7f ff 86 06 call 2002c8c <== NOT EXECUTED 2021478: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 202147c: 01 00 00 00 nop 0200ae80 <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 200ae80: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 200ae84: c2 00 61 48 ld [ %g1 + 0x148 ], %g1 ! 2016948 <_Debug_Level> <== NOT EXECUTED 200ae88: 90 0a 00 01 and %o0, %g1, %o0 <== NOT EXECUTED 200ae8c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 200ae90: 81 c3 e0 08 retl <== NOT EXECUTED 200ae94: 90 40 20 00 addx %g0, 0, %o0 <== NOT EXECUTED 02004f6c <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 2004f6c: 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 ]; 2004f70: e0 06 21 68 ld [ %i0 + 0x168 ], %l0 option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); 2004f74: 7f ff f3 73 call 2001d40 2004f78: e2 06 20 30 ld [ %i0 + 0x30 ], %l1 2004f7c: b2 10 00 08 mov %o0, %i1 pending_events = api->pending_events; 2004f80: c8 04 00 00 ld [ %l0 ], %g4 event_condition = (rtems_event_set) the_thread->Wait.count; 2004f84: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 2004f88: 86 88 80 04 andcc %g2, %g4, %g3 2004f8c: 12 80 00 03 bne 2004f98 <_Event_Surrender+0x2c> 2004f90: 03 00 80 5a sethi %hi(0x2016800), %g1 _ISR_Enable( level ); 2004f94: 30 80 00 42 b,a 200509c <_Event_Surrender+0x130> /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 2004f98: c2 00 61 20 ld [ %g1 + 0x120 ], %g1 ! 2016920 <_ISR_Nest_level> 2004f9c: 80 a0 60 00 cmp %g1, 0 2004fa0: 22 80 00 1e be,a 2005018 <_Event_Surrender+0xac> 2004fa4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 2004fa8: 03 00 80 5a sethi %hi(0x2016800), %g1 2004fac: c2 00 61 44 ld [ %g1 + 0x144 ], %g1 ! 2016944 <_Thread_Executing> 2004fb0: 80 a6 00 01 cmp %i0, %g1 2004fb4: 32 80 00 19 bne,a 2005018 <_Event_Surrender+0xac> 2004fb8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 2004fbc: 1b 00 80 5a sethi %hi(0x2016800), %o5 2004fc0: c2 03 63 54 ld [ %o5 + 0x354 ], %g1 ! 2016b54 <_Event_Sync_state> 2004fc4: 80 a0 60 01 cmp %g1, 1 2004fc8: 02 80 00 07 be 2004fe4 <_Event_Surrender+0x78> 2004fcc: 80 a0 c0 02 cmp %g3, %g2 2004fd0: c2 03 63 54 ld [ %o5 + 0x354 ], %g1 2004fd4: 80 a0 60 02 cmp %g1, 2 2004fd8: 32 80 00 10 bne,a 2005018 <_Event_Surrender+0xac> 2004fdc: 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) ) { 2004fe0: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2004fe4: 02 80 00 04 be 2004ff4 <_Event_Surrender+0x88> 2004fe8: 80 8c 60 02 btst 2, %l1 2004fec: 02 80 00 0a be 2005014 <_Event_Surrender+0xa8> <== NOT EXECUTED 2004ff0: 01 00 00 00 nop <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 2004ff4: 82 29 00 03 andn %g4, %g3, %g1 2004ff8: c2 24 00 00 st %g1, [ %l0 ] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2004ffc: c2 06 20 28 ld [ %i0 + 0x28 ], %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) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 2005000: c0 26 20 24 clr [ %i0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005004: c6 20 40 00 st %g3, [ %g1 ] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 2005008: 84 10 20 03 mov 3, %g2 200500c: 03 00 80 5a sethi %hi(0x2016800), %g1 2005010: c4 20 63 54 st %g2, [ %g1 + 0x354 ] ! 2016b54 <_Event_Sync_state> } _ISR_Enable( level ); 2005014: 30 80 00 22 b,a 200509c <_Event_Surrender+0x130> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 2005018: 80 88 61 00 btst 0x100, %g1 200501c: 02 80 00 20 be 200509c <_Event_Surrender+0x130> 2005020: 80 a0 c0 02 cmp %g3, %g2 if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 2005024: 02 80 00 04 be 2005034 <_Event_Surrender+0xc8> 2005028: 80 8c 60 02 btst 2, %l1 200502c: 02 80 00 1c be 200509c <_Event_Surrender+0x130> 2005030: 01 00 00 00 nop api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 2005034: 82 29 00 03 andn %g4, %g3, %g1 2005038: c2 24 00 00 st %g1, [ %l0 ] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 200503c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; 2005040: c0 26 20 24 clr [ %i0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 2005044: c6 20 40 00 st %g3, [ %g1 ] _ISR_Flash( level ); 2005048: 7f ff f3 42 call 2001d50 200504c: 90 10 00 19 mov %i1, %o0 2005050: 7f ff f3 3c call 2001d40 2005054: 01 00 00 00 nop if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 2005058: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200505c: 80 a0 60 02 cmp %g1, 2 2005060: 02 80 00 06 be 2005078 <_Event_Surrender+0x10c> 2005064: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 2005068: 7f ff f3 3a call 2001d50 200506c: 90 10 00 19 mov %i1, %o0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2005070: 10 80 00 08 b 2005090 <_Event_Surrender+0x124> 2005074: 33 04 00 ff sethi %hi(0x1003fc00), %i1 RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 2005078: c2 26 20 50 st %g1, [ %i0 + 0x50 ] _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 200507c: 7f ff f3 35 call 2001d50 2005080: 90 10 00 19 mov %i1, %o0 (void) _Watchdog_Remove( &the_thread->Timer ); 2005084: 40 00 0e 32 call 200894c <_Watchdog_Remove> 2005088: 90 06 20 48 add %i0, 0x48, %o0 200508c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 2005090: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 2005094: 40 00 08 48 call 20071b4 <_Thread_Clear_state> 2005098: 81 e8 00 00 restore _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 200509c: 7f ff f3 2d call 2001d50 20050a0: 91 e8 00 19 restore %g0, %i1, %o0 20050a4: 01 00 00 00 nop 020050a8 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 20050a8: 9d e3 bf 90 save %sp, -112, %sp Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 20050ac: 90 10 00 18 mov %i0, %o0 20050b0: 40 00 09 64 call 2007640 <_Thread_Get> 20050b4: 92 07 bf f4 add %fp, -12, %o1 switch ( location ) { 20050b8: c2 07 bf f4 ld [ %fp + -12 ], %g1 20050bc: 80 a0 60 00 cmp %g1, 0 20050c0: 12 80 00 0f bne 20050fc <_Event_Timeout+0x54> 20050c4: 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 ); 20050c8: 7f ff f3 1e call 2001d40 20050cc: 01 00 00 00 nop 20050d0: 86 10 00 08 mov %o0, %g3 if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 20050d4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 20050d8: 80 a0 60 00 cmp %g1, 0 20050dc: 12 80 00 0a bne 2005104 <_Event_Timeout+0x5c> 20050e0: 03 00 80 5a sethi %hi(0x2016800), %g1 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 20050e4: 05 00 80 5a sethi %hi(0x2016800), %g2 <== NOT EXECUTED 20050e8: c2 00 a0 80 ld [ %g2 + 0x80 ], %g1 ! 2016880 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 20050ec: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20050f0: c2 20 a0 80 st %g1, [ %g2 + 0x80 ] <== NOT EXECUTED _Thread_Unnest_dispatch(); _ISR_Enable( level ); 20050f4: 7f ff f3 17 call 2001d50 <== NOT EXECUTED 20050f8: 01 00 00 00 nop <== NOT EXECUTED 20050fc: 81 c7 e0 08 ret <== NOT EXECUTED 2005100: 81 e8 00 00 restore <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 2005104: c2 00 61 44 ld [ %g1 + 0x144 ], %g1 2005108: 80 a6 00 01 cmp %i0, %g1 200510c: 12 80 00 09 bne 2005130 <_Event_Timeout+0x88> 2005110: c0 26 20 24 clr [ %i0 + 0x24 ] Thread_blocking_operation_States sync = _Event_Sync_state; 2005114: 05 00 80 5a sethi %hi(0x2016800), %g2 2005118: c2 00 a3 54 ld [ %g2 + 0x354 ], %g1 ! 2016b54 <_Event_Sync_state> if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 200511c: 80 a0 60 01 cmp %g1, 1 2005120: 18 80 00 05 bgu 2005134 <_Event_Timeout+0x8c> 2005124: 82 10 20 06 mov 6, %g1 (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 2005128: 82 10 20 02 mov 2, %g1 200512c: c2 20 a3 54 st %g1, [ %g2 + 0x354 ] } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 2005130: 82 10 20 06 mov 6, %g1 2005134: c2 26 20 34 st %g1, [ %i0 + 0x34 ] _ISR_Enable( level ); 2005138: 7f ff f3 06 call 2001d50 200513c: 90 10 00 03 mov %g3, %o0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 2005140: 90 10 00 18 mov %i0, %o0 2005144: 13 04 00 ff sethi %hi(0x1003fc00), %o1 2005148: 40 00 08 1b call 20071b4 <_Thread_Clear_state> 200514c: 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; 2005150: 05 00 80 5a sethi %hi(0x2016800), %g2 2005154: c2 00 a0 80 ld [ %g2 + 0x80 ], %g1 ! 2016880 <_Thread_Dispatch_disable_level> 2005158: 82 00 7f ff add %g1, -1, %g1 200515c: c2 20 a0 80 st %g1, [ %g2 + 0x80 ] 2005160: 81 c7 e0 08 ret 2005164: 81 e8 00 00 restore 020085c4 <_Heap_Allocate_aligned>: void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 20085c4: 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; 20085c8: e8 06 20 10 ld [ %i0 + 0x10 ], %l4 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); 20085cc: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 20085d0: 90 10 00 19 mov %i1, %o0 20085d4: 40 00 01 5d call 2008b48 <_Heap_Calc_block_size> 20085d8: 92 10 00 14 mov %l4, %o1 void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; Heap_Statistics *const stats = &the_heap->stats; Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; 20085dc: b2 06 7f fc add %i1, -4, %i1 uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); if(the_size == 0) 20085e0: ba 92 20 00 orcc %o0, 0, %i5 20085e4: 02 80 00 67 be 2008780 <_Heap_Allocate_aligned+0x1bc> 20085e8: 90 10 20 00 clr %o0 return NULL; if(alignment == 0) 20085ec: 80 a6 a0 00 cmp %i2, 0 20085f0: 22 80 00 02 be,a 20085f8 <_Heap_Allocate_aligned+0x34> 20085f4: b4 10 20 08 mov 8, %i2 */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 20085f8: e2 06 20 08 ld [ %i0 + 8 ], %l1 20085fc: 10 80 00 59 b 2008760 <_Heap_Allocate_aligned+0x19c> 2008600: aa 10 20 00 clr %l5 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2008604: a6 08 7f fe and %g1, -2, %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. */ 2008608: 80 a4 c0 1d cmp %l3, %i5 200860c: 2a 80 00 54 bcs,a 200875c <_Heap_Allocate_aligned+0x198> 2008610: e2 04 60 08 ld [ %l1 + 8 ], %l1 _H_uptr_t *value, uint32_t alignment ) { _H_uptr_t v = *value; *value = v - (v % alignment); 2008614: 92 10 00 1a mov %i2, %o1 /* 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; 2008618: ae 04 40 13 add %l1, %l3, %l7 aligned_user_addr = block_end - end_to_user_offs; 200861c: a0 25 c0 19 sub %l7, %i1, %l0 2008620: 40 00 3c 0c call 2017650 <.urem> 2008624: 90 10 00 10 mov %l0, %o0 if(block_size >= the_size) { /* the_block is large enough. */ _H_uptr_t user_addr; _H_uptr_t aligned_user_addr; _H_uptr_t const user_area = _H_p2u(_Heap_User_area(the_block)); 2008628: 92 10 00 14 mov %l4, %o1 200862c: a4 24 00 08 sub %l0, %o0, %l2 2008630: 40 00 3c 08 call 2017650 <.urem> 2008634: 90 10 00 12 mov %l2, %o0 2008638: a0 04 60 08 add %l1, 8, %l0 200863c: 84 24 80 08 sub %l2, %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) { 2008640: 80 a0 80 10 cmp %g2, %l0 2008644: 2a 80 00 46 bcs,a 200875c <_Heap_Allocate_aligned+0x198> 2008648: 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) { 200864c: ec 06 20 14 ld [ %i0 + 0x14 ], %l6 2008650: 82 20 80 10 sub %g2, %l0, %g1 2008654: 80 a0 40 16 cmp %g1, %l6 2008658: 1a 80 00 15 bcc 20086ac <_Heap_Allocate_aligned+0xe8> 200865c: 80 a4 a0 00 cmp %l2, 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) { 2008660: 82 24 80 10 sub %l2, %l0, %g1 2008664: 80 a0 40 14 cmp %g1, %l4 2008668: 0a 80 00 10 bcs 20086a8 <_Heap_Allocate_aligned+0xe4> 200866c: 84 10 00 10 mov %l0, %g2 uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 2008670: 90 10 00 10 mov %l0, %o0 2008674: 40 00 3b f7 call 2017650 <.urem> 2008678: 92 10 00 1a mov %i2, %o1 *value = r ? v - r + a : v; 200867c: 82 04 00 1a add %l0, %i2, %g1 2008680: 80 a2 20 00 cmp %o0, 0 2008684: 12 80 00 03 bne 2008690 <_Heap_Allocate_aligned+0xcc> 2008688: 90 20 40 08 sub %g1, %o0, %o0 200868c: 90 10 00 10 mov %l0, %o0 <== 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) { 2008690: 82 22 00 10 sub %o0, %l0, %g1 2008694: 80 a0 40 14 cmp %g1, %l4 2008698: 3a 80 00 31 bcc,a 200875c <_Heap_Allocate_aligned+0x198> 200869c: e2 04 60 08 ld [ %l1 + 8 ], %l1 20086a0: 84 10 00 10 mov %l0, %g2 <== NOT EXECUTED 20086a4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED aligned_user_addr = 0; } } } if(aligned_user_addr) { 20086a8: 80 a4 a0 00 cmp %l2, 0 20086ac: 22 80 00 2c be,a 200875c <_Heap_Allocate_aligned+0x198> 20086b0: 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; 20086b4: 82 05 e0 08 add %l7, 8, %g1 20086b8: a0 20 40 02 sub %g1, %g2, %l0 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; 20086bc: 84 24 c0 10 sub %l3, %l0, %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) { 20086c0: 80 a0 80 16 cmp %g2, %l6 20086c4: 2a 80 00 08 bcs,a 20086e4 <_Heap_Allocate_aligned+0x120> 20086c8: 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; 20086cc: 82 10 a0 01 or %g2, 1, %g1 20086d0: 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); 20086d4: a2 04 40 02 add %l1, %g2, %l1 the_block = _Heap_Block_at(the_block, the_rest); the_block->prev_size = the_rest; 20086d8: c4 24 40 00 st %g2, [ %l1 ] the_block->size = alloc_size; 20086dc: 10 80 00 09 b 2008700 <_Heap_Allocate_aligned+0x13c> 20086e0: e0 24 60 04 st %l0, [ %l1 + 4 ] ) { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 20086e4: 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; 20086e8: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 prev->next = next; next->prev = prev; 20086ec: c4 20 e0 0c st %g2, [ %g3 + 0xc ] 20086f0: 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; 20086f4: c6 20 a0 08 st %g3, [ %g2 + 8 ] 20086f8: c2 26 20 38 st %g1, [ %i0 + 0x38 ] 20086fc: a0 10 00 13 mov %l3, %l0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2008700: 84 04 40 10 add %l1, %l0, %g2 } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; 2008704: c2 00 a0 04 ld [ %g2 + 4 ], %g1 2008708: 82 10 60 01 or %g1, 1, %g1 200870c: c2 20 a0 04 st %g1, [ %g2 + 4 ] /* Update statistics */ stats->free_size -= alloc_size; 2008710: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 if(stats->min_free_size > stats->free_size) 2008714: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 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; 2008718: 82 20 40 10 sub %g1, %l0, %g1 if(stats->min_free_size > stats->free_size) 200871c: 80 a0 80 01 cmp %g2, %g1 2008720: 08 80 00 03 bleu 200872c <_Heap_Allocate_aligned+0x168> 2008724: c2 26 20 30 st %g1, [ %i0 + 0x30 ] stats->min_free_size = stats->free_size; 2008728: c2 26 20 34 st %g1, [ %i0 + 0x34 ] stats->used_blocks += 1; 200872c: c2 06 20 40 ld [ %i0 + 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; 2008730: c6 06 20 4c ld [ %i0 + 0x4c ], %g3 stats->allocs += 1; 2008734: c4 06 20 48 ld [ %i0 + 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; 2008738: 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; 200873c: 86 00 e0 01 inc %g3 stats->allocs += 1; 2008740: 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; 2008744: 86 00 c0 15 add %g3, %l5, %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; 2008748: c2 26 20 40 st %g1, [ %i0 + 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; 200874c: c4 26 20 48 st %g2, [ %i0 + 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; 2008750: c6 26 20 4c st %g3, [ %i0 + 0x4c ] stats->allocs += 1; check_result(the_heap, the_block, user_addr, aligned_user_addr, size); user_ptr = (void*)aligned_user_addr; 2008754: 10 80 00 07 b 2008770 <_Heap_Allocate_aligned+0x1ac> 2008758: 90 10 00 12 mov %l2, %o0 /* 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) 200875c: aa 05 60 01 inc %l5 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; 2008760: 80 a4 40 18 cmp %l1, %i0 2008764: 32 bf ff a8 bne,a 2008604 <_Heap_Allocate_aligned+0x40> 2008768: c2 04 60 04 ld [ %l1 + 4 ], %g1 200876c: 90 10 20 00 clr %o0 } } } } if(stats->max_search < search_count) 2008770: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 2008774: 80 a0 40 15 cmp %g1, %l5 2008778: 2a 80 00 02 bcs,a 2008780 <_Heap_Allocate_aligned+0x1bc> 200877c: ea 26 20 44 st %l5, [ %i0 + 0x44 ] stats->max_search = search_count; return user_ptr; } 2008780: 81 c7 e0 08 ret 2008784: 91 e8 00 08 restore %g0, %o0, %o0 0202b9f4 <_Heap_Get_information>: 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; 202b9f4: c0 22 40 00 clr [ %o1 ] Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 202b9f8: d8 02 20 24 ld [ %o0 + 0x24 ], %o4 _HAssert(the_block->prev_size == HEAP_PREV_USED); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; the_info->Free.total = 0; 202b9fc: c0 22 60 08 clr [ %o1 + 8 ] the_info->Free.largest = 0; 202ba00: c0 22 60 04 clr [ %o1 + 4 ] the_info->Used.number = 0; 202ba04: c0 22 60 0c clr [ %o1 + 0xc ] the_info->Used.total = 0; 202ba08: c0 22 60 14 clr [ %o1 + 0x14 ] the_info->Used.largest = 0; 202ba0c: c0 22 60 10 clr [ %o1 + 0x10 ] Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->start; 202ba10: 10 80 00 23 b 202ba9c <_Heap_Get_information+0xa8> 202ba14: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 202ba18: 88 08 7f fe and %g1, -2, %g4 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 202ba1c: 9a 00 80 04 add %g2, %g4, %o5 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) ) { 202ba20: c2 03 60 04 ld [ %o5 + 4 ], %g1 202ba24: 80 88 60 01 btst 1, %g1 202ba28: 22 80 00 0d be,a 202ba5c <_Heap_Get_information+0x68> 202ba2c: c2 02 40 00 ld [ %o1 ], %g1 the_info->Used.number++; 202ba30: c2 02 60 0c ld [ %o1 + 0xc ], %g1 the_info->Used.total += the_size; 202ba34: c4 02 60 14 ld [ %o1 + 0x14 ], %g2 if ( the_info->Used.largest < the_size ) 202ba38: 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++; 202ba3c: 82 00 60 01 inc %g1 the_info->Used.total += the_size; 202ba40: 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++; 202ba44: c2 22 60 0c st %g1, [ %o1 + 0xc ] the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) 202ba48: 80 a0 c0 04 cmp %g3, %g4 202ba4c: 1a 80 00 13 bcc 202ba98 <_Heap_Get_information+0xa4> 202ba50: c4 22 60 14 st %g2, [ %o1 + 0x14 ] the_info->Used.largest = the_size; 202ba54: 10 80 00 11 b 202ba98 <_Heap_Get_information+0xa4> 202ba58: c8 22 60 10 st %g4, [ %o1 + 0x10 ] } else { the_info->Free.number++; the_info->Free.total += the_size; 202ba5c: c4 02 60 08 ld [ %o1 + 8 ], %g2 if ( the_info->Free.largest < the_size ) 202ba60: 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++; 202ba64: 82 00 60 01 inc %g1 the_info->Free.total += the_size; 202ba68: 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++; 202ba6c: c2 22 40 00 st %g1, [ %o1 ] the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) 202ba70: 80 a0 c0 04 cmp %g3, %g4 202ba74: 1a 80 00 03 bcc 202ba80 <_Heap_Get_information+0x8c> 202ba78: c4 22 60 08 st %g2, [ %o1 + 8 ] the_info->Free.largest = the_size; 202ba7c: c8 22 60 04 st %g4, [ %o1 + 4 ] if ( the_size != next_block->prev_size ) 202ba80: c2 03 40 00 ld [ %o5 ], %g1 202ba84: 80 a1 00 01 cmp %g4, %g1 202ba88: 02 80 00 05 be 202ba9c <_Heap_Get_information+0xa8> 202ba8c: 84 10 00 0d mov %o5, %g2 202ba90: 81 c3 e0 08 retl <== NOT EXECUTED 202ba94: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 202ba98: 84 10 00 0d mov %o5, %g2 the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 202ba9c: 80 a0 80 0c cmp %g2, %o4 202baa0: 32 bf ff de bne,a 202ba18 <_Heap_Get_information+0x24> 202baa4: c2 00 a0 04 ld [ %g2 + 4 ], %g1 } /* 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; 202baa8: c2 02 60 14 ld [ %o1 + 0x14 ], %g1 202baac: 90 10 20 00 clr %o0 202bab0: 82 00 60 08 add %g1, 8, %g1 return HEAP_GET_INFORMATION_SUCCESSFUL; } 202bab4: 81 c3 e0 08 retl 202bab8: c2 22 60 14 st %g1, [ %o1 + 0x14 ] 020142d0 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 20142d0: 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; 20142d4: e8 06 20 14 ld [ %i0 + 0x14 ], %l4 uint32_t const page_size = the_heap->page_size; 20142d8: ec 06 20 10 ld [ %i0 + 0x10 ], %l6 *old_mem_size = 0; 20142dc: c0 26 c0 00 clr [ %i3 ] *avail_mem_size = 0; 20142e0: 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); 20142e4: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 20142e8: 7f ff fb ad call 201319c <.urem> 20142ec: 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 ); 20142f0: c8 06 20 20 ld [ %i0 + 0x20 ], %g4 20142f4: 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); 20142f8: 82 06 7f f8 add %i1, -8, %g1 20142fc: a4 20 40 08 sub %g1, %o0, %l2 _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)) 2014300: 80 a4 80 04 cmp %l2, %g4 2014304: 84 60 3f ff subx %g0, -1, %g2 2014308: 80 a0 c0 12 cmp %g3, %l2 201430c: 82 60 3f ff subx %g0, -1, %g1 2014310: 80 88 80 01 btst %g2, %g1 2014314: 02 80 00 75 be 20144e8 <_Heap_Resize_block+0x218> 2014318: a6 10 00 18 mov %i0, %l3 return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 201431c: da 04 a0 04 ld [ %l2 + 4 ], %o5 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2014320: aa 0b 7f fe and %o5, -2, %l5 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2014324: a2 04 80 15 add %l2, %l5, %l1 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) || 2014328: 80 a4 40 04 cmp %l1, %g4 201432c: 84 60 3f ff subx %g0, -1, %g2 2014330: 80 a0 c0 11 cmp %g3, %l1 2014334: 82 60 3f ff subx %g0, -1, %g1 2014338: 80 88 80 01 btst %g2, %g1 201433c: 02 80 00 6b be 20144e8 <_Heap_Resize_block+0x218> 2014340: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 2014344: c2 04 60 04 ld [ %l1 + 4 ], %g1 2014348: 80 88 60 01 btst 1, %g1 201434c: 02 80 00 67 be 20144e8 <_Heap_Resize_block+0x218> 2014350: 80 a4 40 03 cmp %l1, %g3 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2014354: b0 08 7f fe and %g1, -2, %i0 !_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) || 2014358: 84 10 20 01 mov 1, %g2 201435c: 02 80 00 04 be 201436c <_Heap_Resize_block+0x9c> 2014360: 82 04 40 18 add %l1, %i0, %g1 2014364: c2 00 60 04 ld [ %g1 + 4 ], %g1 2014368: 84 08 60 01 and %g1, 1, %g2 _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) 201436c: 82 24 40 19 sub %l1, %i1, %g1 2014370: 82 00 60 04 add %g1, 4, %g1 + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; 2014374: c2 26 c0 00 st %g1, [ %i3 ] !_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) || 2014378: b2 10 00 02 mov %g2, %i1 old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 201437c: 80 a6 80 01 cmp %i2, %g1 2014380: 08 80 00 1e bleu 20143f8 <_Heap_Resize_block+0x128> 2014384: 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 */ 2014388: 80 a6 60 00 cmp %i1, 0 201438c: 12 80 00 59 bne 20144f0 <_Heap_Resize_block+0x220> 2014390: a0 26 80 01 sub %i2, %g1, %l0 uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 2014394: 92 10 00 16 mov %l6, %o1 2014398: 7f ff fb 81 call 201319c <.urem> 201439c: 90 10 00 10 mov %l0, %o0 *value = r ? v - r + a : v; 20143a0: 80 a2 20 00 cmp %o0, 0 20143a4: 02 80 00 05 be 20143b8 <_Heap_Resize_block+0xe8> 20143a8: 80 a4 00 14 cmp %l0, %l4 20143ac: 82 04 00 16 add %l0, %l6, %g1 20143b0: a0 20 40 08 sub %g1, %o0, %l0 20143b4: 80 a4 00 14 cmp %l0, %l4 20143b8: 1a 80 00 03 bcc 20143c4 <_Heap_Resize_block+0xf4> 20143bc: 90 10 00 10 mov %l0, %o0 20143c0: 90 10 00 14 mov %l4, %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) 20143c4: 80 a2 00 18 cmp %o0, %i0 20143c8: 18 80 00 4a bgu 20144f0 <_Heap_Resize_block+0x220> 20143cc: 94 10 00 08 mov %o0, %o2 return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 20143d0: 92 10 00 11 mov %l1, %o1 20143d4: 7f ff c8 6d call 2006588 <_Heap_Block_allocate> 20143d8: 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; 20143dc: 90 02 00 15 add %o0, %l5, %o0 20143e0: 90 12 00 1b or %o0, %i3, %o0 20143e4: d0 24 a0 04 st %o0, [ %l2 + 4 ] --stats->used_blocks; 20143e8: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 20143ec: 82 00 7f ff add %g1, -1, %g1 20143f0: 10 80 00 39 b 20144d4 <_Heap_Resize_block+0x204> 20143f4: c2 24 e0 40 st %g1, [ %l3 + 0x40 ] } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 20143f8: a0 20 40 1a sub %g1, %i2, %l0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 20143fc: 92 10 00 16 mov %l6, %o1 2014400: 7f ff fb 67 call 201319c <.urem> 2014404: 90 10 00 10 mov %l0, %o0 _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 2014408: a0 a4 00 08 subcc %l0, %o0, %l0 201440c: 22 80 00 33 be,a 20144d8 <_Heap_Resize_block+0x208> 2014410: 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; 2014414: 84 25 40 10 sub %l5, %l0, %g2 if (new_block_size < min_block_size) { 2014418: 80 a0 80 14 cmp %g2, %l4 201441c: 1a 80 00 07 bcc 2014438 <_Heap_Resize_block+0x168> 2014420: 80 a6 60 00 cmp %i1, 0 uint32_t delta = min_block_size - new_block_size; 2014424: 82 25 00 02 sub %l4, %g2, %g1 _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 2014428: a0 a4 00 01 subcc %l0, %g1, %l0 201442c: 02 80 00 2a be 20144d4 <_Heap_Resize_block+0x204> 2014430: 84 00 80 01 add %g2, %g1, %g2 _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) { 2014434: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2014438: 12 80 00 15 bne 201448c <_Heap_Resize_block+0x1bc> 201443c: 80 a4 00 14 cmp %l0, %l4 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; 2014440: 82 10 80 1b or %g2, %i3, %g1 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; 2014444: 86 04 00 18 add %l0, %i0, %g3 _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 2014448: c2 24 a0 04 st %g1, [ %l2 + 4 ] new_next_block->size = new_next_block_size | HEAP_PREV_USED; 201444c: 82 10 e0 01 or %g3, 1, %g1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 2014450: 84 04 80 02 add %l2, %g2, %g2 next_next_block->prev_size = new_next_block_size; 2014454: c6 24 40 18 st %g3, [ %l1 + %i0 ] Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 2014458: da 04 60 0c ld [ %l1 + 0xc ], %o5 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 201445c: c8 04 60 08 ld [ %l1 + 8 ], %g4 _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; 2014460: c2 20 a0 04 st %g1, [ %g2 + 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; 2014464: c2 04 e0 30 ld [ %l3 + 0x30 ], %g1 Heap_Block *prev = block->prev; block = new_block; block->next = next; 2014468: c8 20 a0 08 st %g4, [ %g2 + 8 ] 201446c: 82 00 40 10 add %g1, %l0, %g1 block->prev = prev; 2014470: da 20 a0 0c st %o5, [ %g2 + 0xc ] 2014474: c2 24 e0 30 st %g1, [ %l3 + 0x30 ] *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 2014478: 86 00 ff fc add %g3, -4, %g3 next->prev = prev->next = block; 201447c: c4 21 20 0c st %g2, [ %g4 + 0xc ] 2014480: c4 23 60 08 st %g2, [ %o5 + 8 ] 2014484: 10 80 00 14 b 20144d4 <_Heap_Resize_block+0x204> 2014488: c6 27 00 00 st %g3, [ %i4 ] } else if (free_block_size >= min_block_size) { 201448c: 2a 80 00 13 bcs,a 20144d8 <_Heap_Resize_block+0x208> <== NOT EXECUTED 2014490: 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; 2014494: 82 10 80 1b or %g2, %i3, %g1 <== NOT EXECUTED 2014498: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 201449c: 82 14 20 01 or %l0, 1, %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 20144a0: 92 04 80 02 add %l2, %g2, %o1 <== NOT EXECUTED 20144a4: c2 22 60 04 st %g1, [ %o1 + 4 ] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 20144a8: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 20144ac: 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 */ 20144b0: 82 00 60 01 inc %g1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 20144b4: 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 */ 20144b8: c2 24 e0 40 st %g1, [ %l3 + 0x40 ] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 20144bc: c4 24 e0 50 st %g2, [ %l3 + 0x50 ] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 20144c0: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 20144c4: 7f ff db 40 call 200b1c4 <_Heap_Free> <== NOT EXECUTED 20144c8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 20144cc: 82 04 3f fc add %l0, -4, %g1 <== NOT EXECUTED 20144d0: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED } } } ++stats->resizes; 20144d4: c2 04 e0 54 ld [ %l3 + 0x54 ], %g1 20144d8: 82 00 60 01 inc %g1 20144dc: c2 24 e0 54 st %g1, [ %l3 + 0x54 ] 20144e0: 81 c7 e0 08 ret 20144e4: 91 e8 20 00 restore %g0, 0, %o0 return HEAP_RESIZE_SUCCESSFUL; 20144e8: 81 c7 e0 08 ret 20144ec: 91 e8 20 02 restore %g0, 2, %o0 } 20144f0: 81 c7 e0 08 ret 20144f4: 91 e8 20 01 restore %g0, 1, %o0 0200dcbc <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 200dcbc: 9d e3 bf 98 save %sp, -104, %sp 200dcc0: a6 10 00 18 mov %i0, %l3 /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 200dcc4: 80 a6 60 00 cmp %i1, 0 Heap_Control *the_heap, int source, bool do_dump ) { Heap_Block *the_block = the_heap->start; 200dcc8: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 200dccc: 16 80 00 03 bge 200dcd8 <_Heap_Walk+0x1c> 200dcd0: ec 06 20 24 ld [ %i0 + 0x24 ], %l6 source = the_heap->stats.instance; 200dcd4: f2 06 20 28 ld [ %i0 + 0x28 ], %i1 <== NOT EXECUTED /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 200dcd8: c2 04 20 04 ld [ %l0 + 4 ], %g1 200dcdc: 80 88 60 01 btst 1, %g1 200dce0: 12 80 00 07 bne 200dcfc <_Heap_Walk+0x40> 200dce4: b0 10 20 00 clr %i0 printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); 200dce8: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200dcec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200dcf0: 90 12 21 58 or %o0, 0x158, %o0 <== NOT EXECUTED 200dcf4: 7f ff db 27 call 2004990 <== NOT EXECUTED 200dcf8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED error = 1; } if (the_block->prev_size != the_heap->page_size) { 200dcfc: c4 04 00 00 ld [ %l0 ], %g2 200dd00: c2 04 e0 10 ld [ %l3 + 0x10 ], %g1 200dd04: 80 a0 80 01 cmp %g2, %g1 200dd08: 22 80 00 5e be,a 200de80 <_Heap_Walk+0x1c4> 200dd0c: 03 00 80 64 sethi %hi(0x2019000), %g1 printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); 200dd10: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200dd14: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200dd18: 90 12 21 90 or %o0, 0x190, %o0 <== NOT EXECUTED 200dd1c: 7f ff db 1d call 2004990 <== NOT EXECUTED 200dd20: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 200dd24: 10 80 00 57 b 200de80 <_Heap_Walk+0x1c4> <== NOT EXECUTED 200dd28: 03 00 80 64 sethi %hi(0x2019000), %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 200dd2c: e8 04 20 04 ld [ %l0 + 4 ], %l4 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)) { 200dd30: c6 04 e0 24 ld [ %l3 + 0x24 ], %g3 200dd34: a4 0d 3f fe and %l4, -2, %l2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 200dd38: a2 04 00 12 add %l0, %l2, %l1 200dd3c: 80 a4 40 01 cmp %l1, %g1 200dd40: 84 60 3f ff subx %g0, -1, %g2 200dd44: 80 a0 c0 11 cmp %g3, %l1 200dd48: 82 60 3f ff subx %g0, -1, %g1 200dd4c: 80 88 80 01 btst %g2, %g1 200dd50: 32 80 00 09 bne,a 200dd74 <_Heap_Walk+0xb8> 200dd54: c2 04 60 04 ld [ %l1 + 4 ], %g1 if (do_dump) printk("\n"); printk("PASS: %d !block %p is out of heap\n", source, next_block); 200dd58: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200dd5c: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200dd60: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200dd64: 7f ff db 0b call 2004990 <== NOT EXECUTED 200dd68: 90 12 21 c8 or %o0, 0x1c8, %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", 200dd6c: 10 80 00 51 b 200deb0 <_Heap_Walk+0x1f4> <== NOT EXECUTED 200dd70: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED printk("PASS: %d !block %p is out of heap\n", source, next_block); error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 200dd74: 80 88 60 01 btst 1, %g1 200dd78: 12 80 00 27 bne 200de14 <_Heap_Walk+0x158> 200dd7c: 80 a6 20 00 cmp %i0, 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) { 200dd80: c2 04 40 00 ld [ %l1 ], %g1 200dd84: 80 a4 80 01 cmp %l2, %g1 200dd88: 02 80 00 07 be 200dda4 <_Heap_Walk+0xe8> 200dd8c: 80 8d 20 01 btst 1, %l4 if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 200dd90: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 200dd94: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200dd98: 7f ff da fe call 2004990 <== NOT EXECUTED 200dd9c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED error = 1; } if (!prev_used) { 200dda0: 80 8d 20 01 btst 1, %l4 <== NOT EXECUTED 200dda4: 32 80 00 0c bne,a 200ddd4 <_Heap_Walk+0x118> 200dda8: c2 04 e0 08 ld [ %l3 + 8 ], %g1 if (do_dump || error) printk("\n"); 200ddac: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200ddb0: 02 80 00 05 be 200ddc4 <_Heap_Walk+0x108> <== NOT EXECUTED 200ddb4: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED 200ddb8: 7f ff da f6 call 2004990 <== NOT EXECUTED 200ddbc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 200ddc0: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED 200ddc4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200ddc8: 7f ff da f2 call 2004990 <== NOT EXECUTED 200ddcc: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 200ddd0: c2 04 e0 08 ld [ %l3 + 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) 200ddd4: 80 a0 40 10 cmp %g1, %l0 200ddd8: 02 80 00 0e be 200de10 <_Heap_Walk+0x154> 200dddc: 80 a0 40 13 cmp %g1, %l3 200dde0: 32 bf ff fd bne,a 200ddd4 <_Heap_Walk+0x118> 200dde4: c2 00 60 08 ld [ %g1 + 8 ], %g1 block = block->next; if(block != the_block) { if (do_dump || error) printk("\n"); 200dde8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200ddec: 22 80 00 05 be,a 200de00 <_Heap_Walk+0x144> <== NOT EXECUTED 200ddf0: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED 200ddf4: 7f ff da e7 call 2004990 <== NOT EXECUTED 200ddf8: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 200ddfc: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED 200de00: 7f ff da e4 call 2004990 <== NOT EXECUTED 200de04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 200de08: 10 80 00 06 b 200de20 <_Heap_Walk+0x164> <== NOT EXECUTED 200de0c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 200de10: 80 a6 20 00 cmp %i0, 0 200de14: 22 80 00 06 be,a 200de2c <_Heap_Walk+0x170> 200de18: c2 04 e0 14 ld [ %l3 + 0x14 ], %g1 200de1c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 200de20: 7f ff da dc call 2004990 <== NOT EXECUTED 200de24: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 200de28: c2 04 e0 14 ld [ %l3 + 0x14 ], %g1 <== NOT EXECUTED 200de2c: 80 a4 80 01 cmp %l2, %g1 200de30: 3a 80 00 05 bcc,a 200de44 <_Heap_Walk+0x188> 200de34: d2 04 e0 10 ld [ %l3 + 0x10 ], %o1 printk("PASS: %d !block size is too small\n", source); 200de38: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200de3c: 10 80 00 09 b 200de60 <_Heap_Walk+0x1a4> <== NOT EXECUTED 200de40: 90 12 22 80 or %o0, 0x280, %o0 ! 2019e80 <== NOT EXECUTED error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { 200de44: 40 00 26 03 call 2017650 <.urem> 200de48: 90 10 00 12 mov %l2, %o0 200de4c: 80 a2 20 00 cmp %o0, 0 200de50: 02 80 00 08 be 200de70 <_Heap_Walk+0x1b4> 200de54: 80 a6 20 00 cmp %i0, 0 printk("PASS: %d !block size is misaligned\n", source); 200de58: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200de5c: 90 12 22 a8 or %o0, 0x2a8, %o0 ! 2019ea8 <== NOT EXECUTED 200de60: 7f ff da cc call 2004990 <== NOT EXECUTED 200de64: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 200de68: 10 80 00 12 b 200deb0 <_Heap_Walk+0x1f4> <== NOT EXECUTED 200de6c: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { printk("PASS: %d !block size is misaligned\n", source); error = 1; } if (++passes > (do_dump ? 10 : 0) && error) 200de70: 12 80 00 10 bne 200deb0 <_Heap_Walk+0x1f4> 200de74: 96 10 00 16 mov %l6, %o3 break; 200de78: 10 80 00 09 b 200de9c <_Heap_Walk+0x1e0> 200de7c: a0 10 00 11 mov %l1, %l0 error = 1; } } } if (do_dump || error) printk("\n"); 200de80: aa 10 61 a8 or %g1, 0x1a8, %l5 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); 200de84: 03 00 80 67 sethi %hi(0x2019c00), %g1 200de88: b8 10 62 50 or %g1, 0x250, %i4 ! 2019e50 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); 200de8c: 03 00 80 67 sethi %hi(0x2019c00), %g1 200de90: ba 10 62 20 or %g1, 0x220, %i5 ! 2019e20 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); 200de94: 03 00 80 67 sethi %hi(0x2019c00), %g1 200de98: ae 10 61 f0 or %g1, 0x1f0, %l7 ! 2019df0 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 ) { 200de9c: 80 a4 00 16 cmp %l0, %l6 200dea0: 32 bf ff a3 bne,a 200dd2c <_Heap_Walk+0x70> 200dea4: c2 04 e0 20 ld [ %l3 + 0x20 ], %g1 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 200dea8: 10 80 00 09 b 200decc <_Heap_Walk+0x210> 200deac: c2 04 20 04 ld [ %l0 + 4 ], %g1 the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 200deb0: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200deb4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200deb8: 90 12 22 d0 or %o0, 0x2d0, %o0 <== NOT EXECUTED 200debc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 200dec0: 7f ff da b4 call 2004990 <== NOT EXECUTED 200dec4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 200dec8: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 200decc: d6 04 e0 10 ld [ %l3 + 0x10 ], %o3 200ded0: 94 08 7f fe and %g1, -2, %o2 200ded4: 80 a2 80 0b cmp %o2, %o3 200ded8: 02 80 00 06 be 200def0 <_Heap_Walk+0x234> 200dedc: 92 10 00 19 mov %i1, %o1 printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 200dee0: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 200dee4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 200dee8: 7f ff da aa call 2004990 <== NOT EXECUTED 200deec: 90 12 23 10 or %o0, 0x310, %o0 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 200def0: 81 c7 e0 08 ret 200def4: 81 e8 00 00 restore 020067c0 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 20067c0: 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; 20067c4: 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 ) 20067c8: e0 16 20 10 lduh [ %i0 + 0x10 ], %l0 20067cc: 03 00 00 3f sethi %hi(0xfc00), %g1 20067d0: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 20067d4: a2 08 80 01 and %g2, %g1, %l1 20067d8: 80 a4 00 11 cmp %l0, %l1 20067dc: 3a 80 00 06 bcc,a 20067f4 <_Objects_Extend_information+0x34> 20067e0: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 20067e4: aa 10 00 11 mov %l1, %l5 20067e8: ae 10 20 00 clr %l7 20067ec: 10 80 00 13 b 2006838 <_Objects_Extend_information+0x78> 20067f0: ac 10 20 00 clr %l6 block_count = 0; else { block_count = information->maximum / information->allocation_size; 20067f4: 90 10 00 10 mov %l0, %o0 20067f8: 92 10 00 12 mov %l2, %o1 20067fc: 40 00 31 bc call 2012eec <.udiv> 2006800: aa 10 00 11 mov %l1, %l5 2006804: ac 10 20 00 clr %l6 2006808: 10 80 00 09 b 200682c <_Objects_Extend_information+0x6c> 200680c: ae 10 00 08 mov %o0, %l7 for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 2006810: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2006814: c2 00 40 02 ld [ %g1 + %g2 ], %g1 2006818: 80 a0 60 00 cmp %g1, 0 200681c: 02 80 00 08 be 200683c <_Objects_Extend_information+0x7c> 2006820: 80 a5 40 10 cmp %l5, %l0 break; else index_base += information->allocation_size; 2006824: aa 05 40 12 add %l5, %l2, %l5 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2006828: ac 05 a0 01 inc %l6 200682c: 80 a5 80 17 cmp %l6, %l7 2006830: 0a bf ff f8 bcs 2006810 <_Objects_Extend_information+0x50> 2006834: 85 2d a0 02 sll %l6, 2, %g2 /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 2006838: 80 a5 40 10 cmp %l5, %l0 200683c: 2a 80 00 5d bcs,a 20069b0 <_Objects_Extend_information+0x1f0> 2006840: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 2006844: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 2006848: c4 0e 20 12 ldub [ %i0 + 0x12 ], %g2 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 200684c: ba 04 00 01 add %l0, %g1, %i5 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 2006850: 80 a0 a0 00 cmp %g2, 0 /* * Up the block count and maximum */ block_count++; 2006854: a0 05 e0 01 add %l7, 1, %l0 2006858: 82 07 40 11 add %i5, %l1, %g1 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 200685c: 02 80 00 0b be 2006888 <_Objects_Extend_information+0xc8> 2006860: 91 2c 20 01 sll %l0, 1, %o0 object_blocks = (void**) 2006864: 90 02 00 10 add %o0, %l0, %o0 2006868: 90 00 40 08 add %g1, %o0, %o0 200686c: 40 00 08 93 call 2008ab8 <_Workspace_Allocate> 2006870: 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 ) 2006874: a4 92 20 00 orcc %o0, 0, %l2 2006878: 32 80 00 0a bne,a 20068a0 <_Objects_Extend_information+0xe0> 200687c: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2006880: 81 c7 e0 08 ret <== NOT EXECUTED 2006884: 81 e8 00 00 restore <== NOT EXECUTED return; } else { object_blocks = (void**) 2006888: 90 02 00 10 add %o0, %l0, %o0 200688c: 90 00 40 08 add %g1, %o0, %o0 2006890: 40 00 08 91 call 2008ad4 <_Workspace_Allocate_or_fatal_error> 2006894: 91 2a 20 02 sll %o0, 2, %o0 2006898: a4 10 00 08 mov %o0, %l2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 200689c: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 20068a0: 85 2c 20 02 sll %l0, 2, %g2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 20068a4: 80 a0 40 11 cmp %g1, %l1 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 20068a8: a8 04 80 02 add %l2, %g2, %l4 20068ac: a6 05 00 02 add %l4, %g2, %l3 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 20068b0: 08 80 00 15 bleu 2006904 <_Objects_Extend_information+0x144> 20068b4: 84 10 20 00 clr %g2 /* * 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, 20068b8: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 20068bc: a1 2d e0 02 sll %l7, 2, %l0 20068c0: 90 10 00 12 mov %l2, %o0 20068c4: 40 00 18 b1 call 200cb88 20068c8: 94 10 00 10 mov %l0, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 20068cc: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 20068d0: 94 10 00 10 mov %l0, %o2 20068d4: 40 00 18 ad call 200cb88 20068d8: 90 10 00 14 mov %l4, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 20068dc: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2 20068e0: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 20068e4: 94 04 40 0a add %l1, %o2, %o2 20068e8: 90 10 00 13 mov %l3, %o0 20068ec: 40 00 18 a7 call 200cb88 20068f0: 95 2a a0 02 sll %o2, 2, %o2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 20068f4: 10 80 00 08 b 2006914 <_Objects_Extend_information+0x154> 20068f8: 83 2d e0 02 sll %l7, 2, %g1 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 20068fc: 84 00 a0 01 inc %g2 local_table[ index ] = NULL; 2006900: c0 24 c0 01 clr [ %l3 + %g1 ] else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 2006904: 80 a0 80 11 cmp %g2, %l1 2006908: 2a bf ff fd bcs,a 20068fc <_Objects_Extend_information+0x13c> 200690c: 83 28 a0 02 sll %g2, 2, %g1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 2006910: 83 2d e0 02 sll %l7, 2, %g1 inactive_per_block[block_count] = 0; 2006914: c0 25 00 01 clr [ %l4 + %g1 ] for ( index=index_base ; index < ( information->allocation_size + index_base ); 2006918: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 200691c: c0 24 80 01 clr [ %l2 + %g1 ] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 2006920: 83 2d 60 02 sll %l5, 2, %g1 2006924: 86 05 40 02 add %l5, %g2, %g3 2006928: 84 04 c0 01 add %l3, %g1, %g2 200692c: 10 80 00 04 b 200693c <_Objects_Extend_information+0x17c> 2006930: 82 10 00 15 mov %l5, %g1 index++ ) { 2006934: 82 00 60 01 inc %g1 2006938: 84 00 a0 04 add %g2, 4, %g2 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 200693c: 80 a0 40 03 cmp %g1, %g3 2006940: 2a bf ff fd bcs,a 2006934 <_Objects_Extend_information+0x174> 2006944: c0 20 80 00 clr [ %g2 ] index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 2006948: 7f ff ec fe call 2001d40 200694c: 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( 2006950: c2 06 00 00 ld [ %i0 ], %g1 2006954: c8 16 20 04 lduh [ %i0 + 4 ], %g4 2006958: 87 2f 60 10 sll %i5, 0x10, %g3 200695c: 89 29 20 1b sll %g4, 0x1b, %g4 2006960: 87 30 e0 10 srl %g3, 0x10, %g3 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 2006964: 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( 2006968: 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; 200696c: e8 26 20 30 st %l4, [ %i0 + 0x30 ] information->local_table = local_table; 2006970: e6 26 20 1c st %l3, [ %i0 + 0x1c ] information->maximum = maximum; information->maximum_id = _Objects_Build_id( 2006974: 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; 2006978: fa 36 20 10 sth %i5, [ %i0 + 0x10 ] information->maximum_id = _Objects_Build_id( 200697c: 82 10 40 02 or %g1, %g2, %g1 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 2006980: e4 26 20 34 st %l2, [ %i0 + 0x34 ] information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 2006984: 82 10 40 04 or %g1, %g4, %g1 2006988: 82 10 40 03 or %g1, %g3, %g1 200698c: c2 26 20 0c st %g1, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 2006990: 7f ff ec f0 call 2001d50 2006994: 01 00 00 00 nop if ( old_tables ) 2006998: 80 a4 20 00 cmp %l0, 0 200699c: 22 80 00 05 be,a 20069b0 <_Objects_Extend_information+0x1f0> 20069a0: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 _Workspace_Free( old_tables ); 20069a4: 40 00 08 3e call 2008a9c <_Workspace_Free> 20069a8: 90 10 00 10 mov %l0, %o0 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 20069ac: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 20069b0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 20069b4: 80 a0 60 00 cmp %g1, 0 20069b8: 02 80 00 0f be 20069f4 <_Objects_Extend_information+0x234> 20069bc: a1 2d a0 02 sll %l6, 2, %l0 information->object_blocks[ block ] = 20069c0: d0 06 20 18 ld [ %i0 + 0x18 ], %o0 20069c4: 40 00 31 10 call 2012e04 <.umul> 20069c8: d2 06 20 14 ld [ %i0 + 0x14 ], %o1 20069cc: 40 00 08 3b call 2008ab8 <_Workspace_Allocate> 20069d0: 01 00 00 00 nop _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 20069d4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 20069d8: d0 24 40 10 st %o0, [ %l1 + %l0 ] _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 20069dc: c2 00 40 10 ld [ %g1 + %l0 ], %g1 20069e0: 80 a0 60 00 cmp %g1, 0 20069e4: 32 80 00 0b bne,a 2006a10 <_Objects_Extend_information+0x250> 20069e8: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 20069ec: 81 c7 e0 08 ret <== NOT EXECUTED 20069f0: 81 e8 00 00 restore <== NOT EXECUTED return; } else { information->object_blocks[ block ] = 20069f4: d0 06 20 18 ld [ %i0 + 0x18 ], %o0 20069f8: 40 00 31 03 call 2012e04 <.umul> 20069fc: d2 06 20 14 ld [ %i0 + 0x14 ], %o1 2006a00: 40 00 08 35 call 2008ad4 <_Workspace_Allocate_or_fatal_error> 2006a04: 01 00 00 00 nop 2006a08: d0 24 40 10 st %o0, [ %l1 + %l0 ] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2006a0c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2006a10: a5 2d a0 02 sll %l6, 2, %l2 2006a14: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 2006a18: d2 00 40 12 ld [ %g1 + %l2 ], %o1 2006a1c: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 2006a20: 90 07 bf ec add %fp, -20, %o0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2006a24: a0 10 00 15 mov %l5, %l0 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 2006a28: a8 10 00 08 mov %o0, %l4 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2006a2c: 40 00 11 4a call 200af54 <_Chain_Initialize> 2006a30: a2 06 20 20 add %i0, 0x20, %l1 index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 2006a34: 10 80 00 0d b 2006a68 <_Objects_Extend_information+0x2a8> 2006a38: 27 00 00 40 sethi %hi(0x10000), %l3 2006a3c: c4 16 20 04 lduh [ %i0 + 4 ], %g2 2006a40: 83 28 60 18 sll %g1, 0x18, %g1 2006a44: 85 28 a0 1b sll %g2, 0x1b, %g2 2006a48: 82 10 40 13 or %g1, %l3, %g1 2006a4c: 82 10 40 02 or %g1, %g2, %g1 2006a50: 82 10 40 10 or %g1, %l0, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2006a54: 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( 2006a58: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 2006a5c: a0 04 20 01 inc %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 2006a60: 7f ff fd 14 call 2005eb0 <_Chain_Append> 2006a64: 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 ) { 2006a68: 40 00 11 2b call 200af14 <_Chain_Get> 2006a6c: 90 10 00 14 mov %l4, %o0 2006a70: 80 a2 20 00 cmp %o0, 0 2006a74: 32 bf ff f2 bne,a 2006a3c <_Objects_Extend_information+0x27c> 2006a78: c2 06 00 00 ld [ %i0 ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2006a7c: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2006a80: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive += information->allocation_size; 2006a84: c6 16 20 2c lduh [ %i0 + 0x2c ], %g3 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2006a88: c2 20 80 12 st %g1, [ %g2 + %l2 ] information->inactive += information->allocation_size; 2006a8c: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2006a90: 82 00 40 03 add %g1, %g3, %g1 2006a94: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2006a98: 81 c7 e0 08 ret 2006a9c: 81 e8 00 00 restore 02006b4c <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 2006b4c: 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 ) 2006b50: 82 06 3f ff add %i0, -1, %g1 2006b54: 80 a0 60 03 cmp %g1, 3 2006b58: 38 80 00 1c bgu,a 2006bc8 <_Objects_Get_information+0x7c> 2006b5c: b0 10 20 00 clr %i0 int the_class_api_maximum; if ( !_Objects_Is_api_valid( the_api ) ) return NULL; if ( !the_class ) 2006b60: 10 80 00 1c b 2006bd0 <_Objects_Get_information+0x84> 2006b64: 80 a6 60 00 cmp %i1, 0 return NULL; the_class_api_maximum = _Objects_API_maximum_class( the_api ); 2006b68: 40 00 12 14 call 200b3b8 <_Objects_API_maximum_class> 2006b6c: 90 10 00 18 mov %i0, %o0 if ( the_class_api_maximum < 0 || 2006b70: 80 a2 20 00 cmp %o0, 0 2006b74: 06 80 00 14 bl 2006bc4 <_Objects_Get_information+0x78> 2006b78: 80 a6 40 08 cmp %i1, %o0 2006b7c: 38 80 00 13 bgu,a 2006bc8 <_Objects_Get_information+0x7c> 2006b80: b0 10 20 00 clr %i0 <== NOT EXECUTED the_class > (uint32_t) the_class_api_maximum ) return NULL; if ( !_Objects_Information_table[ the_api ] ) 2006b84: 85 2e 20 02 sll %i0, 2, %g2 2006b88: 03 00 80 59 sethi %hi(0x2016400), %g1 2006b8c: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 20167e0 <_Objects_Information_table> 2006b90: c4 00 40 02 ld [ %g1 + %g2 ], %g2 2006b94: 80 a0 a0 00 cmp %g2, 0 2006b98: 02 80 00 0c be 2006bc8 <_Objects_Get_information+0x7c> 2006b9c: b0 10 20 00 clr %i0 return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 2006ba0: 83 2e 60 02 sll %i1, 2, %g1 2006ba4: f0 00 80 01 ld [ %g2 + %g1 ], %i0 if ( !info ) 2006ba8: 80 a6 20 00 cmp %i0, 0 2006bac: 02 80 00 07 be 2006bc8 <_Objects_Get_information+0x7c> 2006bb0: 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 ) 2006bb4: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2006bb8: 80 a0 60 00 cmp %g1, 0 2006bbc: 12 80 00 03 bne 2006bc8 <_Objects_Get_information+0x7c> 2006bc0: 01 00 00 00 nop 2006bc4: b0 10 20 00 clr %i0 ! 0 return NULL; #endif return info; } 2006bc8: 81 c7 e0 08 ret 2006bcc: 81 e8 00 00 restore int the_class_api_maximum; if ( !_Objects_Is_api_valid( the_api ) ) return NULL; if ( !the_class ) 2006bd0: 22 bf ff fe be,a 2006bc8 <_Objects_Get_information+0x7c> 2006bd4: b0 10 20 00 clr %i0 2006bd8: 30 bf ff e4 b,a 2006b68 <_Objects_Get_information+0x1c> 02006bdc <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 2006bdc: 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; 2006be0: 03 00 00 3f sethi %hi(0xfc00), %g1 2006be4: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 2006be8: 7f ff ec 56 call 2001d40 2006bec: b2 0e 40 01 and %i1, %g1, %i1 if ( information->maximum >= index ) { 2006bf0: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2006bf4: 80 a0 40 19 cmp %g1, %i1 2006bf8: 0a 80 00 11 bcs 2006c3c <_Objects_Get_isr_disable+0x60> 2006bfc: 83 2e 60 02 sll %i1, 2, %g1 if ( (the_object = information->local_table[ index ]) != NULL ) { 2006c00: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 2006c04: f0 00 80 01 ld [ %g2 + %g1 ], %i0 2006c08: 80 a6 20 00 cmp %i0, 0 2006c0c: 02 80 00 06 be 2006c24 <_Objects_Get_isr_disable+0x48> 2006c10: 01 00 00 00 nop *location = OBJECTS_LOCAL; *level_p = level; 2006c14: 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; 2006c18: c0 26 80 00 clr [ %i2 ] 2006c1c: 81 c7 e0 08 ret 2006c20: 81 e8 00 00 restore *level_p = level; return the_object; } _ISR_Enable( level ); 2006c24: 7f ff ec 4b call 2001d50 <== NOT EXECUTED 2006c28: 01 00 00 00 nop <== NOT EXECUTED *location = OBJECTS_ERROR; 2006c2c: 82 10 20 01 mov 1, %g1 ! 1 <== NOT EXECUTED 2006c30: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 2006c34: 81 c7 e0 08 ret <== NOT EXECUTED 2006c38: 81 e8 00 00 restore <== NOT EXECUTED return NULL; } _ISR_Enable( level ); 2006c3c: 7f ff ec 45 call 2001d50 2006c40: b0 10 20 00 clr %i0 *location = OBJECTS_ERROR; 2006c44: 82 10 20 01 mov 1, %g1 2006c48: c2 26 80 00 st %g1, [ %i2 ] _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 2006c4c: 81 c7 e0 08 ret 2006c50: 81 e8 00 00 restore 02012350 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 2012350: 9d e3 bf 88 save %sp, -120, %sp char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 2012354: 80 a6 60 00 cmp %i1, 0 2012358: 22 80 00 41 be,a 201245c <_Objects_Get_name_as_string+0x10c> 201235c: b4 10 20 00 clr %i2 return NULL; if ( name == NULL ) 2012360: 80 a6 a0 00 cmp %i2, 0 2012364: 22 80 00 3f be,a 2012460 <_Objects_Get_name_as_string+0x110> 2012368: b0 10 00 1a mov %i2, %i0 return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 201236c: b0 96 20 00 orcc %i0, 0, %i0 2012370: 12 80 00 04 bne 2012380 <_Objects_Get_name_as_string+0x30> 2012374: 03 00 80 95 sethi %hi(0x2025400), %g1 2012378: c2 00 60 e4 ld [ %g1 + 0xe4 ], %g1 ! 20254e4 <_Thread_Executing> 201237c: f0 00 60 08 ld [ %g1 + 8 ], %i0 information = _Objects_Get_information_id( tmpId ); 2012380: 7f ff e4 fe call 200b778 <_Objects_Get_information_id> 2012384: 90 10 00 18 mov %i0, %o0 if ( !information ) 2012388: a0 92 20 00 orcc %o0, 0, %l0 201238c: 22 80 00 34 be,a 201245c <_Objects_Get_name_as_string+0x10c> 2012390: b4 10 20 00 clr %i2 return NULL; the_object = _Objects_Get( information, tmpId, &location ); 2012394: 92 10 00 18 mov %i0, %o1 2012398: 7f ff e5 41 call 200b89c <_Objects_Get> 201239c: 94 07 bf f4 add %fp, -12, %o2 switch ( location ) { 20123a0: c2 07 bf f4 ld [ %fp + -12 ], %g1 20123a4: 80 a0 60 00 cmp %g1, 0 20123a8: 32 80 00 2d bne,a 201245c <_Objects_Get_name_as_string+0x10c> 20123ac: b4 10 20 00 clr %i2 case OBJECTS_ERROR: return NULL; case OBJECTS_LOCAL: if ( information->is_string ) { 20123b0: c2 0c 20 38 ldub [ %l0 + 0x38 ], %g1 20123b4: 80 a0 60 00 cmp %g1, 0 20123b8: 22 80 00 07 be,a 20123d4 <_Objects_Get_name_as_string+0x84> 20123bc: c2 02 20 0c ld [ %o0 + 0xc ], %g1 s = the_object->name.name_p; 20123c0: d0 02 20 0c ld [ %o0 + 0xc ], %o0 lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { 20123c4: 80 a2 20 00 cmp %o0, 0 20123c8: 12 80 00 0c bne 20123f8 <_Objects_Get_name_as_string+0xa8> 20123cc: 86 10 00 1a mov %i2, %g3 20123d0: 30 80 00 1f b,a 201244c <_Objects_Get_name_as_string+0xfc> <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 20123d4: c0 2f bf ec clrb [ %fp + -20 ] if ( information->is_string ) { s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 20123d8: 85 30 60 18 srl %g1, 0x18, %g2 lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; 20123dc: c2 2f bf eb stb %g1, [ %fp + -21 ] if ( information->is_string ) { s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 20123e0: c4 2f bf e8 stb %g2, [ %fp + -24 ] lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 20123e4: 90 07 bf e8 add %fp, -24, %o0 s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 20123e8: 85 30 60 10 srl %g1, 0x10, %g2 lname[ 2 ] = (u32_name >> 8) & 0xff; 20123ec: 83 30 60 08 srl %g1, 8, %g1 s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 20123f0: c4 2f bf e9 stb %g2, [ %fp + -23 ] lname[ 2 ] = (u32_name >> 8) & 0xff; 20123f4: c2 2f bf ea stb %g1, [ %fp + -22 ] } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (isprint(*s)) ? *s : '*'; 20123f8: 03 00 80 91 sethi %hi(0x2024400), %g1 s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 20123fc: b2 06 7f ff add %i1, -1, %i1 *d = (isprint(*s)) ? *s : '*'; 2012400: 98 10 60 18 or %g1, 0x18, %o4 lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 2012404: 86 10 00 1a mov %i2, %g3 2012408: 10 80 00 0a b 2012430 <_Objects_Get_name_as_string+0xe0> 201240c: 84 10 20 00 clr %g2 } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (isprint(*s)) ? *s : '*'; 2012410: c2 03 00 00 ld [ %o4 ], %g1 2012414: c2 48 40 04 ldsb [ %g1 + %g4 ], %g1 2012418: 80 88 60 97 btst 0x97, %g1 201241c: 12 80 00 03 bne 2012428 <_Objects_Get_name_as_string+0xd8> 2012420: 84 00 a0 01 inc %g2 2012424: 9a 10 20 2a mov 0x2a, %o5 2012428: da 28 c0 00 stb %o5, [ %g3 ] s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 201242c: 86 00 e0 01 inc %g3 2012430: 80 a0 80 19 cmp %g2, %i1 2012434: 1a 80 00 06 bcc 201244c <_Objects_Get_name_as_string+0xfc> 2012438: 01 00 00 00 nop 201243c: c8 4a 00 02 ldsb [ %o0 + %g2 ], %g4 2012440: 80 a1 20 00 cmp %g4, 0 2012444: 12 bf ff f3 bne 2012410 <_Objects_Get_name_as_string+0xc0> 2012448: da 0a 00 02 ldub [ %o0 + %g2 ], %o5 *d = (isprint(*s)) ? *s : '*'; } } *d = '\0'; _Thread_Enable_dispatch(); 201244c: 7f ff e7 9a call 200c2b4 <_Thread_Enable_dispatch> 2012450: c0 28 c0 00 clrb [ %g3 ] return name; } return NULL; /* unreachable path */ } 2012454: 81 c7 e0 08 ret 2012458: 91 e8 00 1a restore %g0, %i2, %o0 201245c: b0 10 00 1a mov %i2, %i0 2012460: 81 c7 e0 08 ret 2012464: 81 e8 00 00 restore 02014f00 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 2014f00: 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) 2014f04: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 2014f08: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <== NOT EXECUTED 2014f0c: 80 8e 40 01 btst %i1, %g1 <== NOT EXECUTED 2014f10: 22 80 00 02 be,a 2014f18 <_Objects_Get_next+0x18> <== NOT EXECUTED 2014f14: 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) 2014f18: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 2014f1c: a0 10 63 ff or %g1, 0x3ff, %l0 ! ffff <== NOT EXECUTED 2014f20: c4 16 20 10 lduh [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 2014f24: 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); 2014f28: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2014f2c: 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) 2014f30: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2014f34: 08 80 00 08 bleu 2014f54 <_Objects_Get_next+0x54> <== NOT EXECUTED 2014f38: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED { *location_p = OBJECTS_ERROR; 2014f3c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 2014f40: 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; 2014f44: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 2014f48: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED 2014f4c: 10 80 00 09 b 2014f70 <_Objects_Get_next+0x70> <== NOT EXECUTED 2014f50: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 2014f54: 7f ff da 52 call 200b89c <_Objects_Get> <== NOT EXECUTED 2014f58: b2 06 60 01 inc %i1 <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 2014f5c: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 2014f60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2014f64: 32 bf ff f0 bne,a 2014f24 <_Objects_Get_next+0x24> <== NOT EXECUTED 2014f68: c4 16 20 10 lduh [ %i0 + 0x10 ], %g2 <== NOT EXECUTED *next_id_p = next_id; 2014f6c: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 2014f70: 81 c7 e0 08 ret <== NOT EXECUTED 2014f74: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020080ac <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 20080ac: 9d e3 bf 90 save %sp, -112, %sp 20080b0: 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 ) 20080b4: 80 a6 60 00 cmp %i1, 0 20080b8: 02 80 00 22 be 2008140 <_Objects_Id_to_name+0x94> 20080bc: b0 10 20 01 mov 1, %i0 return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 20080c0: 80 a2 60 00 cmp %o1, 0 20080c4: 12 80 00 06 bne 20080dc <_Objects_Id_to_name+0x30> 20080c8: 83 32 60 18 srl %o1, 0x18, %g1 20080cc: 03 00 80 6a sethi %hi(0x201a800), %g1 20080d0: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 201aac4 <_Thread_Executing> 20080d4: d2 00 60 08 ld [ %g1 + 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); 20080d8: 83 32 60 18 srl %o1, 0x18, %g1 20080dc: 84 08 60 07 and %g1, 7, %g2 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 20080e0: 82 00 bf ff add %g2, -1, %g1 20080e4: 80 a0 60 03 cmp %g1, 3 20080e8: 38 80 00 16 bgu,a 2008140 <_Objects_Id_to_name+0x94> 20080ec: 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 ] ) 20080f0: 10 80 00 18 b 2008150 <_Objects_Id_to_name+0xa4> 20080f4: 85 28 a0 02 sll %g2, 2, %g2 return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 20080f8: 83 28 60 02 sll %g1, 2, %g1 20080fc: d0 00 80 01 ld [ %g2 + %g1 ], %o0 if ( !information ) 2008100: 80 a2 20 00 cmp %o0, 0 2008104: 02 80 00 0f be 2008140 <_Objects_Id_to_name+0x94> 2008108: b0 10 20 03 mov 3, %i0 return OBJECTS_INVALID_ID; if ( information->is_string ) 200810c: c2 0a 20 38 ldub [ %o0 + 0x38 ], %g1 2008110: 80 a0 60 00 cmp %g1, 0 2008114: 12 80 00 0d bne 2008148 <_Objects_Id_to_name+0x9c> 2008118: 01 00 00 00 nop return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &ignored_location ); 200811c: 7f ff ff c7 call 2008038 <_Objects_Get> 2008120: 94 07 bf f4 add %fp, -12, %o2 if ( !the_object ) 2008124: 80 a2 20 00 cmp %o0, 0 2008128: 22 80 00 06 be,a 2008140 <_Objects_Id_to_name+0x94> 200812c: b0 10 20 03 mov 3, %i0 return OBJECTS_INVALID_ID; *name = the_object->name; 2008130: c2 02 20 0c ld [ %o0 + 0xc ], %g1 _Thread_Enable_dispatch(); 2008134: b0 10 20 00 clr %i0 2008138: 40 00 02 5f call 2008ab4 <_Thread_Enable_dispatch> 200813c: c2 26 40 00 st %g1, [ %i1 ] 2008140: 81 c7 e0 08 ret 2008144: 81 e8 00 00 restore return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 2008148: 81 c7 e0 08 ret <== NOT EXECUTED 200814c: 81 e8 00 00 restore <== 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 ] ) 2008150: 03 00 80 6a sethi %hi(0x201a800), %g1 2008154: 82 10 61 60 or %g1, 0x160, %g1 ! 201a960 <_Objects_Information_table> 2008158: c4 00 40 02 ld [ %g1 + %g2 ], %g2 200815c: 80 a0 a0 00 cmp %g2, 0 2008160: 12 bf ff e6 bne 20080f8 <_Objects_Id_to_name+0x4c> 2008164: 83 32 60 1b srl %o1, 0x1b, %g1 if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 2008168: 81 c7 e0 08 ret <== NOT EXECUTED 200816c: 91 e8 20 03 restore %g0, 3, %o0 <== NOT EXECUTED 02006dd0 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 2006dd0: 9a 10 00 08 mov %o0, %o5 Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == FALSE */ if ( !id ) 2006dd4: 80 a2 e0 00 cmp %o3, 0 2006dd8: 02 80 00 29 be 2006e7c <_Objects_Name_to_id_u32+0xac> 2006ddc: 90 10 20 02 mov 2, %o0 return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 2006de0: 80 a2 60 00 cmp %o1, 0 2006de4: 22 80 00 26 be,a 2006e7c <_Objects_Name_to_id_u32+0xac> 2006de8: 90 10 20 01 mov 1, %o0 return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 2006dec: c2 13 60 10 lduh [ %o5 + 0x10 ], %g1 2006df0: 84 90 60 00 orcc %g1, 0, %g2 2006df4: 22 80 00 22 be,a 2006e7c <_Objects_Name_to_id_u32+0xac> 2006df8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 2006dfc: 80 a2 a0 00 cmp %o2, 0 2006e00: 02 80 00 19 be 2006e64 <_Objects_Name_to_id_u32+0x94> 2006e04: 83 28 a0 10 sll %g2, 0x10, %g1 2006e08: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 2006e0c: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 2006e10: 80 a2 80 01 cmp %o2, %g1 2006e14: 02 80 00 13 be 2006e60 <_Objects_Name_to_id_u32+0x90> 2006e18: 80 a2 a0 01 cmp %o2, 1 2006e1c: 32 80 00 18 bne,a 2006e7c <_Objects_Name_to_id_u32+0xac> 2006e20: 90 10 20 01 mov 1, %o0 search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 2006e24: 10 80 00 10 b 2006e64 <_Objects_Name_to_id_u32+0x94> 2006e28: 83 28 a0 10 sll %g2, 0x10, %g1 the_object = information->local_table[ index ]; 2006e2c: c2 03 60 1c ld [ %o5 + 0x1c ], %g1 2006e30: c4 00 40 02 ld [ %g1 + %g2 ], %g2 if ( !the_object ) 2006e34: 80 a0 a0 00 cmp %g2, 0 2006e38: 02 80 00 0d be 2006e6c <_Objects_Name_to_id_u32+0x9c> 2006e3c: 86 00 e0 01 inc %g3 continue; if ( name == the_object->name.name_u32 ) { 2006e40: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 2006e44: 80 a2 40 01 cmp %o1, %g1 2006e48: 32 80 00 0a bne,a 2006e70 <_Objects_Name_to_id_u32+0xa0> 2006e4c: 80 a0 c0 04 cmp %g3, %g4 *id = the_object->id; 2006e50: c2 00 a0 08 ld [ %g2 + 8 ], %g1 2006e54: 90 10 20 00 clr %o0 2006e58: 81 c3 e0 08 retl 2006e5c: c2 22 c0 00 st %g1, [ %o3 ] search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 2006e60: 83 28 a0 10 sll %g2, 0x10, %g1 2006e64: 86 10 20 01 mov 1, %g3 2006e68: 89 30 60 10 srl %g1, 0x10, %g4 2006e6c: 80 a0 c0 04 cmp %g3, %g4 2006e70: 08 bf ff ef bleu 2006e2c <_Objects_Name_to_id_u32+0x5c> 2006e74: 85 28 e0 02 sll %g3, 2, %g2 2006e78: 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 } 2006e7c: 81 c3 e0 08 retl 2006e80: 01 00 00 00 nop 02006d98 <_Objects_Namespace_remove>: void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 2006d98: 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 ) 2006d9c: c2 0e 20 38 ldub [ %i0 + 0x38 ], %g1 2006da0: 80 a0 60 00 cmp %g1, 0 2006da4: 22 80 00 09 be,a 2006dc8 <_Objects_Namespace_remove+0x30> 2006da8: c0 26 60 0c clr [ %i1 + 0xc ] 2006dac: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED 2006db0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2006db4: 22 80 00 05 be,a 2006dc8 <_Objects_Namespace_remove+0x30> <== NOT EXECUTED 2006db8: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 2006dbc: 40 00 07 38 call 2008a9c <_Workspace_Free> <== NOT EXECUTED 2006dc0: 01 00 00 00 nop <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; the_object->name.name_u32 = 0; 2006dc4: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED } 2006dc8: 81 c7 e0 08 ret 2006dcc: 81 e8 00 00 restore 02008b30 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 2008b30: 9d e3 bf 98 save %sp, -104, %sp size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 2008b34: d2 16 20 3a lduh [ %i0 + 0x3a ], %o1 2008b38: 40 00 1d 18 call 200ff98 2008b3c: 90 10 00 1a mov %i2, %o0 if ( information->is_string ) { 2008b40: c2 0e 20 38 ldub [ %i0 + 0x38 ], %g1 2008b44: 80 a0 60 00 cmp %g1, 0 2008b48: 02 80 00 17 be 2008ba4 <_Objects_Set_name+0x74> 2008b4c: a0 02 20 01 add %o0, 1, %l0 char *d; d = _Workspace_Allocate( length ); 2008b50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2008b54: 40 00 07 3c call 200a844 <_Workspace_Allocate> <== NOT EXECUTED 2008b58: b0 10 20 00 clr %i0 <== NOT EXECUTED if ( !d ) 2008b5c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 2008b60: 02 80 00 27 be 2008bfc <_Objects_Set_name+0xcc> <== NOT EXECUTED 2008b64: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 2008b68: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED 2008b6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2008b70: 02 80 00 06 be 2008b88 <_Objects_Set_name+0x58> <== NOT EXECUTED 2008b74: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 2008b78: 40 00 07 2c call 200a828 <_Workspace_Free> <== NOT EXECUTED 2008b7c: 01 00 00 00 nop <== NOT EXECUTED the_object->name.name_p = NULL; 2008b80: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED } strncpy( d, name, length ); 2008b84: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 2008b88: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2008b8c: 40 00 1c c9 call 200feb0 <== NOT EXECUTED 2008b90: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED d[ length ] = '\0'; 2008b94: c0 2c 40 10 clrb [ %l1 + %l0 ] <== NOT EXECUTED the_object->name.name_p = d; 2008b98: e2 26 60 0c st %l1, [ %i1 + 0xc ] <== NOT EXECUTED 2008b9c: 81 c7 e0 08 ret <== NOT EXECUTED 2008ba0: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED } else { the_object->name.name_u32 = _Objects_Build_name( 2008ba4: 80 a4 20 00 cmp %l0, 0 2008ba8: 02 80 00 1a be 2008c10 <_Objects_Set_name+0xe0> 2008bac: 1b 08 00 00 sethi %hi(0x20000000), %o5 2008bb0: c2 4e 80 00 ldsb [ %i2 ], %g1 2008bb4: 80 a4 20 01 cmp %l0, 1 2008bb8: 02 80 00 16 be 2008c10 <_Objects_Set_name+0xe0> 2008bbc: 9b 28 60 18 sll %g1, 0x18, %o5 2008bc0: c2 4e a0 01 ldsb [ %i2 + 1 ], %g1 2008bc4: 80 a4 20 02 cmp %l0, 2 2008bc8: 08 80 00 0f bleu 2008c04 <_Objects_Set_name+0xd4> 2008bcc: 89 28 60 10 sll %g1, 0x10, %g4 2008bd0: c2 4e a0 02 ldsb [ %i2 + 2 ], %g1 2008bd4: 80 a4 20 03 cmp %l0, 3 2008bd8: 87 28 60 08 sll %g1, 8, %g3 2008bdc: 08 80 00 03 bleu 2008be8 <_Objects_Set_name+0xb8> 2008be0: 84 10 20 20 mov 0x20, %g2 2008be4: c4 4e a0 03 ldsb [ %i2 + 3 ], %g2 2008be8: 82 13 40 04 or %o5, %g4, %g1 2008bec: b0 10 20 01 mov 1, %i0 2008bf0: 82 10 40 03 or %g1, %g3, %g1 2008bf4: 82 10 40 02 or %g1, %g2, %g1 2008bf8: c2 26 60 0c st %g1, [ %i1 + 0xc ] ); } return TRUE; } 2008bfc: 81 c7 e0 08 ret 2008c00: 81 e8 00 00 restore strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 2008c04: 84 10 20 20 mov 0x20, %g2 2008c08: 10 bf ff f8 b 2008be8 <_Objects_Set_name+0xb8> 2008c0c: 07 00 00 08 sethi %hi(0x2000), %g3 2008c10: 10 bf ff fd b 2008c04 <_Objects_Set_name+0xd4> 2008c14: 09 00 08 00 sethi %hi(0x200000), %g4 02006e8c <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 2006e8c: 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; 2006e90: 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; 2006e94: e0 06 20 14 ld [ %i0 + 0x14 ], %l0 2006e98: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 2006e9c: 03 00 00 3f sethi %hi(0xfc00), %g1 2006ea0: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2006ea4: 92 10 00 10 mov %l0, %o1 2006ea8: a2 08 80 01 and %g2, %g1, %l1 2006eac: 40 00 30 10 call 2012eec <.udiv> 2006eb0: 90 22 00 11 sub %o0, %l1, %o0 2006eb4: 10 80 00 2e b 2006f6c <_Objects_Shrink_information+0xe0> 2006eb8: 84 10 20 00 clr %g2 for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == information->allocation_size ) { 2006ebc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2006ec0: c2 00 40 12 ld [ %g1 + %l2 ], %g1 2006ec4: 80 a0 40 10 cmp %g1, %l0 2006ec8: 12 80 00 28 bne 2006f68 <_Objects_Shrink_information+0xdc> 2006ecc: 84 00 a0 01 inc %g2 /* * 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; 2006ed0: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 2006ed4: 03 00 00 3f sethi %hi(0xfc00), %g1 2006ed8: a6 10 63 ff or %g1, 0x3ff, %l3 ! ffff 2006edc: c2 04 20 08 ld [ %l0 + 8 ], %g1 2006ee0: 84 08 40 13 and %g1, %l3, %g2 */ do { index = _Objects_Get_index( the_object->id ); if ((index >= index_base) && 2006ee4: 80 a0 80 11 cmp %g2, %l1 2006ee8: 2a 80 00 0c bcs,a 2006f18 <_Objects_Shrink_information+0x8c> 2006eec: e0 04 00 00 ld [ %l0 ], %l0 2006ef0: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2006ef4: 82 04 40 01 add %l1, %g1, %g1 2006ef8: 80 a0 80 01 cmp %g2, %g1 2006efc: 1a 80 00 06 bcc 2006f14 <_Objects_Shrink_information+0x88> 2006f00: 90 10 00 10 mov %l0, %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 ); 2006f04: 40 00 0f fa call 200aeec <_Chain_Extract> 2006f08: e0 04 00 00 ld [ %l0 ], %l0 } else { the_object = (Objects_Control *) the_object->Node.next; } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 2006f0c: 10 80 00 04 b 2006f1c <_Objects_Shrink_information+0x90> 2006f10: 80 a4 20 00 cmp %l0, 0 the_object = NULL; _Chain_Extract( &extract_me->Node ); } else { the_object = (Objects_Control *) the_object->Node.next; 2006f14: e0 04 00 00 ld [ %l0 ], %l0 } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 2006f18: 80 a4 20 00 cmp %l0, 0 2006f1c: 22 80 00 07 be,a 2006f38 <_Objects_Shrink_information+0xac> 2006f20: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 2006f24: c2 04 00 00 ld [ %l0 ], %g1 2006f28: 80 a0 60 00 cmp %g1, 0 2006f2c: 32 bf ff ed bne,a 2006ee0 <_Objects_Shrink_information+0x54> 2006f30: c2 04 20 08 ld [ %l0 + 8 ], %g1 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 2006f34: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2006f38: 40 00 06 d9 call 2008a9c <_Workspace_Free> 2006f3c: d0 00 40 12 ld [ %g1 + %l2 ], %o0 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 2006f40: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive -= information->allocation_size; 2006f44: 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; 2006f48: c0 20 80 12 clr [ %g2 + %l2 ] /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 2006f4c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2006f50: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 2006f54: c0 20 80 12 clr [ %g2 + %l2 ] information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2006f58: 82 20 40 03 sub %g1, %g3, %g1 2006f5c: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2006f60: 81 c7 e0 08 ret 2006f64: 81 e8 00 00 restore return; } index_base += information->allocation_size; 2006f68: a2 04 40 10 add %l1, %l0, %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++ ) { 2006f6c: 80 a0 80 08 cmp %g2, %o0 2006f70: 0a bf ff d3 bcs 2006ebc <_Objects_Shrink_information+0x30> 2006f74: a5 28 a0 02 sll %g2, 2, %l2 2006f78: 81 c7 e0 08 ret 2006f7c: 81 e8 00 00 restore 02021b68 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 2021b68: 9d e3 bf 98 save %sp, -104, %sp Heap_Get_information_status status; if ( !the_heap ) 2021b6c: 80 a6 20 00 cmp %i0, 0 2021b70: 02 80 00 10 be 2021bb0 <_Protected_heap_Get_information+0x48> 2021b74: 80 a6 60 00 cmp %i1, 0 return false; if ( !the_info ) 2021b78: 02 80 00 0e be 2021bb0 <_Protected_heap_Get_information+0x48> 2021b7c: 23 00 81 67 sethi %hi(0x2059c00), %l1 return false; _RTEMS_Lock_allocator(); 2021b80: 7f ff 9c 99 call 2008de4 <_API_Mutex_Lock> 2021b84: d0 04 61 ec ld [ %l1 + 0x1ec ], %o0 ! 2059dec <_RTEMS_Allocator_Mutex> status = _Heap_Get_information( the_heap, the_info ); 2021b88: 90 10 00 18 mov %i0, %o0 2021b8c: 40 00 27 9a call 202b9f4 <_Heap_Get_information> 2021b90: 92 10 00 19 mov %i1, %o1 2021b94: a0 10 00 08 mov %o0, %l0 _RTEMS_Unlock_allocator(); 2021b98: 7f ff 9c a9 call 2008e3c <_API_Mutex_Unlock> 2021b9c: d0 04 61 ec ld [ %l1 + 0x1ec ], %o0 if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 2021ba0: 80 a0 00 10 cmp %g0, %l0 2021ba4: 82 60 3f ff subx %g0, -1, %g1 2021ba8: 81 c7 e0 08 ret 2021bac: 91 e8 00 01 restore %g0, %g1, %o0 return true; return false; } 2021bb0: 81 c7 e0 08 ret <== NOT EXECUTED 2021bb4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02006ac8 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 2006ac8: 9d e3 bf 90 save %sp, -112, %sp 2006acc: 11 00 80 6c sethi %hi(0x201b000), %o0 2006ad0: 92 10 00 18 mov %i0, %o1 2006ad4: 90 12 21 e4 or %o0, 0x1e4, %o0 2006ad8: 40 00 07 9c call 2008948 <_Objects_Get> 2006adc: 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 ) { 2006ae0: c2 07 bf f4 ld [ %fp + -12 ], %g1 2006ae4: 80 a0 60 00 cmp %g1, 0 2006ae8: 12 80 00 26 bne 2006b80 <_Rate_monotonic_Timeout+0xb8> 2006aec: b0 10 00 08 mov %o0, %i0 case OBJECTS_LOCAL: the_thread = the_period->owner; 2006af0: d0 02 20 50 ld [ %o0 + 0x50 ], %o0 if ( _States_Is_waiting_for_period( the_thread->current_state ) && 2006af4: 03 00 00 10 sethi %hi(0x4000), %g1 2006af8: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 2006afc: 80 88 80 01 btst %g2, %g1 2006b00: 22 80 00 0c be,a 2006b30 <_Rate_monotonic_Timeout+0x68> 2006b04: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 2006b08: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 2006b0c: c2 06 20 08 ld [ %i0 + 8 ], %g1 2006b10: 80 a0 80 01 cmp %g2, %g1 2006b14: 32 80 00 07 bne,a 2006b30 <_Rate_monotonic_Timeout+0x68> 2006b18: 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 ); 2006b1c: 13 04 00 ff sethi %hi(0x1003fc00), %o1 2006b20: 40 00 08 e2 call 2008ea8 <_Thread_Clear_state> 2006b24: 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 ); 2006b28: 10 80 00 08 b 2006b48 <_Rate_monotonic_Timeout+0x80> 2006b2c: 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 ) { 2006b30: 80 a0 60 01 cmp %g1, 1 2006b34: 12 80 00 0e bne 2006b6c <_Rate_monotonic_Timeout+0xa4> 2006b38: 82 10 20 04 mov 4, %g1 the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 2006b3c: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 2006b40: 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; 2006b44: c2 26 20 38 st %g1, [ %i0 + 0x38 ] <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 2006b48: 7f ff fe 4a call 2006470 <_Rate_monotonic_Initiate_statistics> 2006b4c: 01 00 00 00 nop Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2006b50: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006b54: 92 06 20 10 add %i0, 0x10, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 2006b58: c2 26 20 1c st %g1, [ %i0 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006b5c: 11 00 80 6d sethi %hi(0x201b400), %o0 2006b60: 40 00 0f 41 call 200a864 <_Watchdog_Insert> 2006b64: 90 12 20 44 or %o0, 0x44, %o0 ! 201b444 <_Watchdog_Ticks_chain> 2006b68: 30 80 00 02 b,a 2006b70 <_Rate_monotonic_Timeout+0xa8> _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 2006b6c: 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; 2006b70: 05 00 80 6c sethi %hi(0x201b000), %g2 2006b74: c2 00 a3 60 ld [ %g2 + 0x360 ], %g1 ! 201b360 <_Thread_Dispatch_disable_level> 2006b78: 82 00 7f ff add %g1, -1, %g1 2006b7c: c2 20 a3 60 st %g1, [ %g2 + 0x360 ] 2006b80: 81 c7 e0 08 ret 2006b84: 81 e8 00 00 restore 0200736c <_Thread_Create_idle>: * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { 200736c: 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 ); 2007370: 11 00 80 5a sethi %hi(0x2016800), %o0 2007374: 7f ff fc de call 20066ec <_Objects_Allocate> 2007378: 90 12 21 e0 or %o0, 0x1e0, %o0 ! 20169e0 <_Thread_Internal_information> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200737c: 05 00 80 5a sethi %hi(0x2016800), %g2 2007380: c2 00 a0 80 ld [ %g2 + 0x80 ], %g1 ! 2016880 <_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(); 2007384: 07 00 80 5a sethi %hi(0x2016800), %g3 2007388: 82 00 60 01 inc %g1 200738c: d0 20 e2 2c st %o0, [ %g3 + 0x22c ] 2007390: c2 20 a0 80 st %g1, [ %g2 + 0x80 ] * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( 2007394: 03 00 80 5a sethi %hi(0x2016800), %g1 2007398: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201691c <_Configuration_Table> 200739c: d2 00 e2 2c ld [ %g3 + 0x22c ], %o1 20073a0: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 20073a4: 03 00 80 56 sethi %hi(0x2015800), %g1 20073a8: d6 00 62 d0 ld [ %g1 + 0x2d0 ], %o3 ! 2015ad0 20073ac: 03 00 80 53 sethi %hi(0x2014c00), %g1 20073b0: 82 10 63 58 or %g1, 0x358, %g1 ! 2014f58 20073b4: 80 a2 c0 02 cmp %o3, %g2 20073b8: 1a 80 00 03 bcc 20073c4 <_Thread_Create_idle+0x58> 20073bc: c2 27 bf f4 st %g1, [ %fp + -12 ] 20073c0: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 20073c4: 03 00 80 56 sethi %hi(0x2015800), %g1 20073c8: da 08 62 d4 ldub [ %g1 + 0x2d4 ], %o5 ! 2015ad4 20073cc: 82 10 20 01 mov 1, %g1 20073d0: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 20073d4: 82 07 bf f4 add %fp, -12, %g1 20073d8: c0 23 a0 60 clr [ %sp + 0x60 ] 20073dc: c0 23 a0 64 clr [ %sp + 0x64 ] 20073e0: c0 23 a0 68 clr [ %sp + 0x68 ] 20073e4: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 20073e8: 94 10 20 00 clr %o2 20073ec: 98 10 20 00 clr %o4 20073f0: 11 00 80 5a sethi %hi(0x2016800), %o0 20073f4: 40 00 00 bf call 20076f0 <_Thread_Initialize> 20073f8: 90 12 21 e0 or %o0, 0x1e0, %o0 ! 20169e0 <_Thread_Internal_information> * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; _Thread_Start( 20073fc: 03 00 80 5a sethi %hi(0x2016800), %g1 2007400: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201691c <_Configuration_Table> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 2007404: 07 00 80 5a sethi %hi(0x2016800), %g3 2007408: f4 00 60 14 ld [ %g1 + 0x14 ], %i2 200740c: c2 00 e0 80 ld [ %g3 + 0x80 ], %g1 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 2007410: 05 00 80 5a sethi %hi(0x2016800), %g2 2007414: 82 00 7f ff add %g1, -1, %g1 2007418: c4 00 a2 2c ld [ %g2 + 0x22c ], %g2 200741c: c2 20 e0 80 st %g1, [ %g3 + 0x80 ] 2007420: 03 00 80 5a sethi %hi(0x2016800), %g1 2007424: c4 20 61 44 st %g2, [ %g1 + 0x144 ] ! 2016944 <_Thread_Executing> 2007428: 03 00 80 5a sethi %hi(0x2016800), %g1 _Thread_Executing = _Thread_Idle; _Thread_Start( 200742c: b0 10 00 02 mov %g2, %i0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 2007430: c4 20 61 10 st %g2, [ %g1 + 0x110 ] _Thread_Executing = _Thread_Idle; _Thread_Start( 2007434: b2 10 20 00 clr %i1 2007438: b6 10 20 00 clr %i3 200743c: 40 00 03 ae call 20082f4 <_Thread_Start> 2007440: 99 e8 20 00 restore %g0, 0, %o4 2007444: 01 00 00 00 nop 0200c144 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; 200c144: 03 00 80 5a sethi %hi(0x2016800), %g1 200c148: c4 00 61 44 ld [ %g1 + 0x144 ], %g2 ! 2016944 <_Thread_Executing> if ( !_States_Is_ready( executing->current_state ) || 200c14c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200c150: 80 a0 60 00 cmp %g1, 0 200c154: 32 80 00 0b bne,a 200c180 <_Thread_Evaluate_mode+0x3c> 200c158: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED 200c15c: 03 00 80 5a sethi %hi(0x2016800), %g1 200c160: c2 00 61 10 ld [ %g1 + 0x110 ], %g1 ! 2016910 <_Thread_Heir> 200c164: 80 a0 80 01 cmp %g2, %g1 200c168: 02 80 00 0b be 200c194 <_Thread_Evaluate_mode+0x50> 200c16c: 01 00 00 00 nop 200c170: c2 08 a0 76 ldub [ %g2 + 0x76 ], %g1 200c174: 80 a0 60 00 cmp %g1, 0 200c178: 02 80 00 07 be 200c194 <_Thread_Evaluate_mode+0x50> 200c17c: 84 10 20 01 mov 1, %g2 ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { _Context_Switch_necessary = TRUE; 200c180: 03 00 80 5a sethi %hi(0x2016800), %g1 200c184: 90 10 20 01 mov 1, %o0 200c188: c4 28 61 54 stb %g2, [ %g1 + 0x154 ] 200c18c: 81 c3 e0 08 retl 200c190: 01 00 00 00 nop return TRUE; } return FALSE; } 200c194: 81 c3 e0 08 retl 200c198: 90 10 20 00 clr %o0 ! 0 02007640 <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 2007640: 88 10 00 08 mov %o0, %g4 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 ) ) { 2007644: 80 a2 20 00 cmp %o0, 0 2007648: 12 80 00 0a bne 2007670 <_Thread_Get+0x30> 200764c: 94 10 00 09 mov %o1, %o2 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2007650: 03 00 80 5a sethi %hi(0x2016800), %g1 2007654: c4 00 60 80 ld [ %g1 + 0x80 ], %g2 ! 2016880 <_Thread_Dispatch_disable_level> 2007658: 84 00 a0 01 inc %g2 200765c: c4 20 60 80 st %g2, [ %g1 + 0x80 ] _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 2007660: 03 00 80 5a sethi %hi(0x2016800), %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; 2007664: c0 22 40 00 clr [ %o1 ] tp = _Thread_Executing; 2007668: 81 c3 e0 08 retl 200766c: d0 00 61 44 ld [ %g1 + 0x144 ], %o0 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 2007670: 83 32 20 18 srl %o0, 0x18, %g1 2007674: 84 08 60 07 and %g1, 7, %g2 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 2007678: 82 00 bf ff add %g2, -1, %g1 200767c: 80 a0 60 03 cmp %g1, 3 2007680: 08 80 00 16 bleu 20076d8 <_Thread_Get+0x98> 2007684: 87 32 20 1b srl %o0, 0x1b, %g3 goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; 2007688: 82 10 20 01 mov 1, %g1 200768c: 10 80 00 09 b 20076b0 <_Thread_Get+0x70> 2007690: c2 22 80 00 st %g1, [ %o2 ] goto done; } api_information = _Objects_Information_table[ the_api ]; 2007694: 03 00 80 59 sethi %hi(0x2016400), %g1 2007698: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 20167e0 <_Objects_Information_table> 200769c: c2 00 40 02 ld [ %g1 + %g2 ], %g1 if ( !api_information ) { 20076a0: 80 a0 60 00 cmp %g1, 0 20076a4: 32 80 00 05 bne,a 20076b8 <_Thread_Get+0x78> 20076a8: d0 00 60 04 ld [ %g1 + 4 ], %o0 *location = OBJECTS_ERROR; 20076ac: c6 22 80 00 st %g3, [ %o2 ] 20076b0: 81 c3 e0 08 retl 20076b4: 90 10 20 00 clr %o0 goto done; } information = api_information[ the_class ]; if ( !information ) { 20076b8: 80 a2 20 00 cmp %o0, 0 20076bc: 12 80 00 04 bne 20076cc <_Thread_Get+0x8c> 20076c0: 92 10 00 04 mov %g4, %o1 *location = OBJECTS_ERROR; 20076c4: 81 c3 e0 08 retl <== NOT EXECUTED 20076c8: c6 22 80 00 st %g3, [ %o2 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 20076cc: 82 13 c0 00 mov %o7, %g1 20076d0: 7f ff fd 61 call 2006c54 <_Objects_Get> 20076d4: 9e 10 40 00 mov %g1, %o7 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 20076d8: 80 a0 e0 01 cmp %g3, 1 20076dc: 22 bf ff ee be,a 2007694 <_Thread_Get+0x54> 20076e0: 85 28 a0 02 sll %g2, 2, %g2 *location = OBJECTS_ERROR; 20076e4: 10 bf ff ea b 200768c <_Thread_Get+0x4c> 20076e8: 82 10 20 01 mov 1, %g1 0200c19c <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 200c19c: 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; 200c1a0: 03 00 80 5a sethi %hi(0x2016800), %g1 200c1a4: e0 00 61 44 ld [ %g1 + 0x144 ], %l0 ! 2016944 <_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(); 200c1a8: 3f 00 80 30 sethi %hi(0x200c000), %i7 200c1ac: be 17 e1 9c or %i7, 0x19c, %i7 ! 200c19c <_Thread_Handler> /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 200c1b0: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0 _ISR_Set_level(level); 200c1b4: 7f ff d6 e7 call 2001d50 200c1b8: 91 2a 20 08 sll %o0, 8, %o0 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; doneConstructors = 1; 200c1bc: 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; 200c1c0: 05 00 80 59 sethi %hi(0x2016400), %g2 200c1c4: e2 08 a1 98 ldub [ %g2 + 0x198 ], %l1 ! 2016598 doneConstructors = 1; 200c1c8: c2 28 a1 98 stb %g1, [ %g2 + 0x198 ] #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 ) ) { 200c1cc: c2 04 21 60 ld [ %l0 + 0x160 ], %g1 200c1d0: 80 a0 60 00 cmp %g1, 0 200c1d4: 02 80 00 0c be 200c204 <_Thread_Handler+0x68> 200c1d8: 03 00 80 5a sethi %hi(0x2016800), %g1 #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 ); 200c1dc: d0 00 61 08 ld [ %g1 + 0x108 ], %o0 ! 2016908 <_Thread_Allocated_fp> 200c1e0: 80 a4 00 08 cmp %l0, %o0 200c1e4: 02 80 00 08 be 200c204 <_Thread_Handler+0x68> 200c1e8: 80 a2 20 00 cmp %o0, 0 if ( _Thread_Allocated_fp != NULL ) 200c1ec: 22 80 00 06 be,a 200c204 <_Thread_Handler+0x68> 200c1f0: e0 20 61 08 st %l0, [ %g1 + 0x108 ] _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 200c1f4: 7f ff f2 65 call 2008b88 <_CPU_Context_save_fp> 200c1f8: 90 02 21 60 add %o0, 0x160, %o0 _Thread_Allocated_fp = executing; 200c1fc: 03 00 80 5a sethi %hi(0x2016800), %g1 200c200: e0 20 61 08 st %l0, [ %g1 + 0x108 ] ! 2016908 <_Thread_Allocated_fp> * 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 ); 200c204: 7f ff f0 f5 call 20085d8 <_User_extensions_Thread_begin> 200c208: 90 10 00 10 mov %l0, %o0 /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 200c20c: 7f ff ed 00 call 200760c <_Thread_Enable_dispatch> 200c210: 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) */ 200c214: 83 2c 60 18 sll %l1, 0x18, %g1 200c218: 80 a0 60 00 cmp %g1, 0 200c21c: 32 80 00 05 bne,a 200c230 <_Thread_Handler+0x94> 200c220: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 { _init (); 200c224: 40 00 25 f3 call 20159f0 <_init> 200c228: 01 00 00 00 nop #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 200c22c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 200c230: 80 a0 60 01 cmp %g1, 1 200c234: 22 80 00 0d be,a 200c268 <_Thread_Handler+0xcc> 200c238: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 200c23c: 2a 80 00 09 bcs,a 200c260 <_Thread_Handler+0xc4> 200c240: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 200c244: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200c248: 02 80 00 0d be 200c27c <_Thread_Handler+0xe0> <== NOT EXECUTED 200c24c: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 200c250: 12 80 00 14 bne 200c2a0 <_Thread_Handler+0x104> <== NOT EXECUTED 200c254: 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 = 200c258: 10 80 00 0d b 200c28c <_Thread_Handler+0xf0> <== NOT EXECUTED 200c25c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED __main (); #endif switch ( executing->Start.prototype ) { case THREAD_START_NUMERIC: executing->Wait.return_argument = 200c260: 10 80 00 03 b 200c26c <_Thread_Handler+0xd0> 200c264: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = 200c268: d0 04 20 a4 ld [ %l0 + 0xa4 ], %o0 <== NOT EXECUTED 200c26c: 9f c0 40 00 call %g1 200c270: 01 00 00 00 nop executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 200c274: 10 80 00 0b b 200c2a0 <_Thread_Handler+0x104> 200c278: d0 24 20 28 st %o0, [ %l0 + 0x28 ] (*(Thread_Entry_pointer) executing->Start.entry_point)( executing->Start.pointer_argument ); break; case THREAD_START_BOTH_POINTER_FIRST: executing->Wait.return_argument = 200c27c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 200c280: d0 04 20 a4 ld [ %l0 + 0xa4 ], %o0 <== NOT EXECUTED 200c284: 10 80 00 04 b 200c294 <_Thread_Handler+0xf8> <== NOT EXECUTED 200c288: d2 04 20 a8 ld [ %l0 + 0xa8 ], %o1 <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 200c28c: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0 <== NOT EXECUTED 200c290: d2 04 20 a4 ld [ %l0 + 0xa4 ], %o1 <== NOT EXECUTED 200c294: 9f c0 40 00 call %g1 <== NOT EXECUTED 200c298: 01 00 00 00 nop <== NOT EXECUTED 200c29c: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 200c2a0: 7f ff f0 df call 200861c <_User_extensions_Thread_exitted> 200c2a4: 90 10 00 10 mov %l0, %o0 _Internal_error_Occurred( 200c2a8: 90 10 20 00 clr %o0 200c2ac: 92 10 20 01 mov 1, %o1 200c2b0: 7f ff e8 e0 call 2006630 <_Internal_error_Occurred> 200c2b4: 94 10 20 06 mov 6, %o2 200c2b8: 01 00 00 00 nop 020076f0 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 20076f0: 9d e3 bf 98 save %sp, -104, %sp 20076f4: c2 07 a0 6c ld [ %fp + 0x6c ], %g1 /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 20076f8: 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 ) { 20076fc: e2 00 40 00 ld [ %g1 ], %l1 2007700: e4 07 a0 60 ld [ %fp + 0x60 ], %l2 /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 2007704: 12 80 00 0e bne 200773c <_Thread_Initialize+0x4c> 2007708: e0 0f a0 5f ldub [ %fp + 0x5f ], %l0 actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 200770c: 90 10 00 19 mov %i1, %o0 2007710: 40 00 02 ba call 20081f8 <_Thread_Stack_Allocate> 2007714: 92 10 00 1b mov %i3, %o1 if ( !actual_stack_size || actual_stack_size < stack_size ) 2007718: 80 a2 20 00 cmp %o0, 0 200771c: 02 80 00 2d be 20077d0 <_Thread_Initialize+0xe0> 2007720: 80 a2 00 1b cmp %o0, %i3 2007724: 0a 80 00 2b bcs 20077d0 <_Thread_Initialize+0xe0> 2007728: 01 00 00 00 nop return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = TRUE; 200772c: 82 10 20 01 mov 1, %g1 ! 1 actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; 2007730: f4 06 60 d0 ld [ %i1 + 0xd0 ], %i2 the_thread->Start.core_allocated_stack = TRUE; 2007734: 10 80 00 04 b 2007744 <_Thread_Initialize+0x54> 2007738: c2 2e 60 c0 stb %g1, [ %i1 + 0xc0 ] } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = FALSE; 200773c: c0 2e 60 c0 clrb [ %i1 + 0xc0 ] <== NOT EXECUTED 2007740: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 2007744: f4 26 60 c8 st %i2, [ %i1 + 0xc8 ] the_stack->size = size; 2007748: 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 ) { 200774c: 80 8f 20 ff btst 0xff, %i4 2007750: 02 80 00 07 be 200776c <_Thread_Initialize+0x7c> 2007754: b8 10 20 00 clr %i4 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 2007758: 40 00 04 d8 call 2008ab8 <_Workspace_Allocate> 200775c: 90 10 20 88 mov 0x88, %o0 if ( !fp_area ) { 2007760: b8 92 20 00 orcc %o0, 0, %i4 2007764: 02 80 00 19 be 20077c8 <_Thread_Initialize+0xd8> 2007768: 01 00 00 00 nop /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 200776c: 03 00 80 5a sethi %hi(0x2016800), %g1 2007770: d0 00 61 24 ld [ %g1 + 0x124 ], %o0 ! 2016924 <_Thread_Maximum_extensions> fp_area = _Context_Fp_start( fp_area, 0 ); } else fp_area = NULL; the_thread->fp_context = fp_area; 2007774: f8 26 61 60 st %i4, [ %i1 + 0x160 ] the_thread->Start.fp_context = fp_area; 2007778: f8 26 60 cc st %i4, [ %i1 + 0xcc ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 200777c: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 2007780: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 2007784: c0 26 60 68 clr [ %i1 + 0x68 ] the_watchdog->user_data = user_data; 2007788: c0 26 60 6c clr [ %i1 + 0x6c ] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 200778c: c0 26 61 64 clr [ %i1 + 0x164 ] /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2007790: 80 a2 20 00 cmp %o0, 0 2007794: 02 80 00 11 be 20077d8 <_Thread_Initialize+0xe8> 2007798: b6 10 20 00 clr %i3 extensions_area = _Workspace_Allocate( 200779c: 90 02 20 01 inc %o0 20077a0: 40 00 04 c6 call 2008ab8 <_Workspace_Allocate> 20077a4: 91 2a 20 02 sll %o0, 2, %o0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 20077a8: b6 92 20 00 orcc %o0, 0, %i3 20077ac: 12 80 00 0c bne 20077dc <_Thread_Initialize+0xec> 20077b0: 80 a6 e0 00 cmp %i3, 0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 20077b4: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 20077b8: 02 80 00 04 be 20077c8 <_Thread_Initialize+0xd8> <== NOT EXECUTED 20077bc: 01 00 00 00 nop <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 20077c0: 40 00 04 b7 call 2008a9c <_Workspace_Free> <== NOT EXECUTED 20077c4: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED #endif _Thread_Stack_Free( the_thread ); 20077c8: 40 00 02 a4 call 2008258 <_Thread_Stack_Free> <== NOT EXECUTED 20077cc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20077d0: 81 c7 e0 08 ret 20077d4: 91 e8 20 00 restore %g0, 0, %o0 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 20077d8: 80 a6 e0 00 cmp %i3, 0 20077dc: 02 80 00 0e be 2007814 <_Thread_Initialize+0x124> 20077e0: f6 26 61 74 st %i3, [ %i1 + 0x174 ] uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 20077e4: 03 00 80 5a sethi %hi(0x2016800), %g1 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 20077e8: 84 10 20 00 clr %g2 uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 20077ec: 10 80 00 05 b 2007800 <_Thread_Initialize+0x110> 20077f0: 88 10 61 24 or %g1, 0x124, %g4 the_thread->extensions[i] = NULL; 20077f4: c2 06 61 74 ld [ %i1 + 0x174 ], %g1 * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 20077f8: 84 00 a0 01 inc %g2 the_thread->extensions[i] = NULL; 20077fc: c0 20 40 03 clr [ %g1 + %g3 ] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 2007800: c2 01 00 00 ld [ %g4 ], %g1 2007804: 82 00 60 01 inc %g1 2007808: 80 a0 80 01 cmp %g2, %g1 200780c: 0a bf ff fa bcs 20077f4 <_Thread_Initialize+0x104> 2007810: 87 28 a0 02 sll %g2, 2, %g3 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2007814: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 2007818: e0 2e 60 ac stb %l0, [ %i1 + 0xac ] the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 200781c: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ] switch ( budget_algorithm ) { 2007820: 80 a4 a0 02 cmp %l2, 2 2007824: 12 80 00 05 bne 2007838 <_Thread_Initialize+0x148> 2007828: e4 26 60 b0 st %l2, [ %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; 200782c: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2007830: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 ! 20167d8 <_Thread_Ticks_per_timeslice> <== NOT EXECUTED 2007834: c2 26 60 78 st %g1, [ %i1 + 0x78 ] <== NOT EXECUTED break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 2007838: 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 ); 200783c: 92 10 00 1d mov %i5, %o1 break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 2007840: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->current_state = STATES_DORMANT; 2007844: 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 ); 2007848: 90 10 00 19 mov %i1, %o0 break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 200784c: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; 2007850: c0 26 60 44 clr [ %i1 + 0x44 ] the_thread->resource_count = 0; 2007854: c0 26 60 1c clr [ %i1 + 0x1c ] the_thread->suspend_count = 0; 2007858: c0 26 60 70 clr [ %i1 + 0x70 ] the_thread->real_priority = priority; 200785c: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2007860: 40 00 01 c5 call 2007f74 <_Thread_Set_priority> 2007864: fa 26 60 bc st %i5, [ %i1 + 0xbc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2007868: c4 06 60 08 ld [ %i1 + 8 ], %g2 200786c: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 2007870: 03 00 00 3f sethi %hi(0xfc00), %g1 2007874: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 2007878: 84 08 80 01 and %g2, %g1, %g2 200787c: 85 28 a0 02 sll %g2, 2, %g2 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 2007880: e2 26 60 0c st %l1, [ %i1 + 0xc ] /* * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 2007884: c0 26 60 84 clr [ %i1 + 0x84 ] the_thread->cpu_time_used.tv_nsec = 0; 2007888: c0 26 60 88 clr [ %i1 + 0x88 ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 200788c: 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 ); 2007890: 90 10 00 19 mov %i1, %o0 2007894: 40 00 03 86 call 20086ac <_User_extensions_Thread_create> 2007898: b0 10 20 01 mov 1, %i0 if ( !extension_status ) { 200789c: 80 8a 20 ff btst 0xff, %o0 20078a0: 12 80 00 0e bne 20078d8 <_Thread_Initialize+0x1e8> 20078a4: 80 a6 e0 00 cmp %i3, 0 if ( extensions_area ) 20078a8: 02 80 00 05 be 20078bc <_Thread_Initialize+0x1cc> <== NOT EXECUTED 20078ac: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 20078b0: 40 00 04 7b call 2008a9c <_Workspace_Free> <== NOT EXECUTED 20078b4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 20078b8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 20078bc: 02 80 00 05 be 20078d0 <_Thread_Initialize+0x1e0> <== NOT EXECUTED 20078c0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 20078c4: 40 00 04 76 call 2008a9c <_Workspace_Free> <== NOT EXECUTED 20078c8: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED #endif _Thread_Stack_Free( the_thread ); 20078cc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20078d0: 40 00 02 62 call 2008258 <_Thread_Stack_Free> <== NOT EXECUTED 20078d4: b0 10 20 00 clr %i0 <== NOT EXECUTED return FALSE; } return TRUE; } 20078d8: 81 c7 e0 08 ret 20078dc: 81 e8 00 00 restore 0200c5a4 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 200c5a4: 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; 200c5a8: 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; 200c5ac: c2 0e 20 ac ldub [ %i0 + 0xac ], %g1 the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 200c5b0: 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; 200c5b4: 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; 200c5b8: c6 26 20 80 st %g3, [ %i0 + 0x80 ] the_thread->Start.pointer_argument = pointer_argument; 200c5bc: f2 26 20 a4 st %i1, [ %i0 + 0xa4 ] the_thread->Start.numeric_argument = numeric_argument; 200c5c0: 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; 200c5c4: c0 26 20 1c clr [ %i0 + 0x1c ] the_thread->suspend_count = 0; 200c5c8: 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 ) ) { 200c5cc: 7f ff f0 fe call 20089c4 <_Thread_queue_Extract_with_proxy> 200c5d0: 90 10 00 18 mov %i0, %o0 200c5d4: 80 8a 20 ff btst 0xff, %o0 200c5d8: 32 80 00 09 bne,a 200c5fc <_Thread_Reset+0x58> 200c5dc: f2 06 20 bc ld [ %i0 + 0xbc ], %i1 if ( _Watchdog_Is_active( &the_thread->Timer ) ) 200c5e0: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200c5e4: 80 a0 60 02 cmp %g1, 2 200c5e8: 32 80 00 05 bne,a 200c5fc <_Thread_Reset+0x58> 200c5ec: f2 06 20 bc ld [ %i0 + 0xbc ], %i1 (void) _Watchdog_Remove( &the_thread->Timer ); 200c5f0: 7f ff f4 02 call 20095f8 <_Watchdog_Remove> <== NOT EXECUTED 200c5f4: 90 06 20 48 add %i0, 0x48, %o0 <== NOT EXECUTED } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 200c5f8: f2 06 20 bc ld [ %i0 + 0xbc ], %i1 <== NOT EXECUTED 200c5fc: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 200c600: 80 a0 40 19 cmp %g1, %i1 200c604: 02 80 00 05 be 200c618 <_Thread_Reset+0x74> 200c608: 01 00 00 00 nop the_thread->real_priority = the_thread->Start.initial_priority; 200c60c: f2 26 20 18 st %i1, [ %i0 + 0x18 ] _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 200c610: 7f ff f1 71 call 2008bd4 <_Thread_Set_priority> 200c614: 81 e8 00 00 restore 200c618: 81 c7 e0 08 ret 200c61c: 81 e8 00 00 restore 0200b864 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 200b864: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 200b868: 03 00 80 5a sethi %hi(0x2016800), %g1 200b86c: e0 00 61 44 ld [ %g1 + 0x144 ], %l0 ! 2016944 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 200b870: 7f ff d9 34 call 2001d40 200b874: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 200b878: b0 10 00 08 mov %o0, %i0 if ( _Chain_Has_only_one_node( ready ) ) { 200b87c: c4 04 40 00 ld [ %l1 ], %g2 200b880: c2 04 60 08 ld [ %l1 + 8 ], %g1 200b884: 80 a0 80 01 cmp %g2, %g1 200b888: 32 80 00 03 bne,a 200b894 <_Thread_Reset_timeslice+0x30> 200b88c: c6 04 00 00 ld [ %l0 ], %g3 _ISR_Enable( level ); 200b890: 30 80 00 18 b,a 200b8f0 <_Thread_Reset_timeslice+0x8c> { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 200b894: c4 04 20 04 ld [ %l0 + 4 ], %g2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200b898: 82 04 60 04 add %l1, 4, %g1 Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; 200b89c: c6 20 80 00 st %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200b8a0: c2 24 00 00 st %g1, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200b8a4: 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; 200b8a8: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 200b8ac: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200b8b0: 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; 200b8b4: e0 20 40 00 st %l0, [ %g1 ] return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 200b8b8: 7f ff d9 26 call 2001d50 200b8bc: 01 00 00 00 nop 200b8c0: 7f ff d9 20 call 2001d40 200b8c4: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 200b8c8: 05 00 80 5a sethi %hi(0x2016800), %g2 200b8cc: c2 00 a1 10 ld [ %g2 + 0x110 ], %g1 ! 2016910 <_Thread_Heir> 200b8d0: 80 a4 00 01 cmp %l0, %g1 200b8d4: 32 80 00 05 bne,a 200b8e8 <_Thread_Reset_timeslice+0x84> 200b8d8: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED _Thread_Heir = (Thread_Control *) ready->first; 200b8dc: c2 04 40 00 ld [ %l1 ], %g1 200b8e0: c2 20 a1 10 st %g1, [ %g2 + 0x110 ] _Context_Switch_necessary = TRUE; 200b8e4: 84 10 20 01 mov 1, %g2 200b8e8: 03 00 80 5a sethi %hi(0x2016800), %g1 200b8ec: c4 28 61 54 stb %g2, [ %g1 + 0x154 ] ! 2016954 <_Context_Switch_necessary> _ISR_Enable( level ); 200b8f0: 7f ff d9 18 call 2001d50 200b8f4: 81 e8 00 00 restore 200b8f8: 01 00 00 00 nop 02009924 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 2009924: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 2009928: 7f ff e4 79 call 2002b0c 200992c: 01 00 00 00 nop 2009930: a0 10 00 08 mov %o0, %l0 if ( force == TRUE ) 2009934: 80 8e 60 ff btst 0xff, %i1 2009938: 22 80 00 04 be,a 2009948 <_Thread_Resume+0x24> 200993c: c2 06 20 70 ld [ %i0 + 0x70 ], %g1 <== NOT EXECUTED the_thread->suspend_count = 0; 2009940: 10 80 00 04 b 2009950 <_Thread_Resume+0x2c> 2009944: c0 26 20 70 clr [ %i0 + 0x70 ] else the_thread->suspend_count--; 2009948: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200994c: c2 26 20 70 st %g1, [ %i0 + 0x70 ] <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 2009950: c2 06 20 70 ld [ %i0 + 0x70 ], %g1 2009954: 80 a0 60 00 cmp %g1, 0 2009958: 22 80 00 03 be,a 2009964 <_Thread_Resume+0x40> 200995c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 _ISR_Enable( level ); 2009960: 30 80 00 2e b,a 2009a18 <_Thread_Resume+0xf4> <== NOT EXECUTED return; } current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { 2009964: 80 88 60 02 btst 2, %g1 2009968: 02 80 00 2c be 2009a18 <_Thread_Resume+0xf4> 200996c: 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 ) ) { 2009970: 80 a0 60 00 cmp %g1, 0 2009974: 12 80 00 29 bne 2009a18 <_Thread_Resume+0xf4> 2009978: c2 26 20 10 st %g1, [ %i0 + 0x10 ] RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 200997c: c8 06 20 90 ld [ %i0 + 0x90 ], %g4 2009980: c4 16 20 96 lduh [ %i0 + 0x96 ], %g2 2009984: c2 11 00 00 lduh [ %g4 ], %g1 _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 2009988: c6 06 20 8c ld [ %i0 + 0x8c ], %g3 200998c: 82 10 40 02 or %g1, %g2, %g1 2009990: c2 31 00 00 sth %g1, [ %g4 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2009994: 82 00 e0 04 add %g3, 4, %g1 _Priority_Major_bit_map |= the_priority_map->ready_major; 2009998: 1b 00 80 8b sethi %hi(0x2022c00), %o5 200999c: c2 26 00 00 st %g1, [ %i0 ] 20099a0: c4 16 20 94 lduh [ %i0 + 0x94 ], %g2 old_last_node = the_chain->last; 20099a4: c2 00 e0 08 ld [ %g3 + 8 ], %g1 20099a8: c8 13 62 28 lduh [ %o5 + 0x228 ], %g4 the_chain->last = the_node; 20099ac: f0 20 e0 08 st %i0, [ %g3 + 8 ] 20099b0: 84 10 80 04 or %g2, %g4, %g2 old_last_node->next = the_node; the_node->previous = old_last_node; 20099b4: c2 26 20 04 st %g1, [ %i0 + 4 ] 20099b8: c4 33 62 28 sth %g2, [ %o5 + 0x228 ] 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; 20099bc: f0 20 40 00 st %i0, [ %g1 ] _ISR_Flash( level ); 20099c0: 7f ff e4 57 call 2002b1c 20099c4: 90 10 00 10 mov %l0, %o0 20099c8: 7f ff e4 51 call 2002b0c 20099cc: 01 00 00 00 nop if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 20099d0: 07 00 80 8b sethi %hi(0x2022c00), %g3 20099d4: c2 00 e2 00 ld [ %g3 + 0x200 ], %g1 ! 2022e00 <_Thread_Heir> 20099d8: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 20099dc: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 20099e0: 80 a0 80 01 cmp %g2, %g1 20099e4: 1a 80 00 0d bcc 2009a18 <_Thread_Resume+0xf4> 20099e8: 03 00 80 8b sethi %hi(0x2022c00), %g1 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 20099ec: c2 00 62 34 ld [ %g1 + 0x234 ], %g1 ! 2022e34 <_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; 20099f0: f0 20 e2 00 st %i0, [ %g3 + 0x200 ] if ( _Thread_Executing->is_preemptible || 20099f4: c2 08 60 76 ldub [ %g1 + 0x76 ], %g1 20099f8: 80 a0 60 00 cmp %g1, 0 20099fc: 32 80 00 05 bne,a 2009a10 <_Thread_Resume+0xec> 2009a00: 84 10 20 01 mov 1, %g2 2009a04: 80 a0 a0 00 cmp %g2, 0 2009a08: 12 80 00 04 bne 2009a18 <_Thread_Resume+0xf4> 2009a0c: 84 10 20 01 mov 1, %g2 the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 2009a10: 03 00 80 8b sethi %hi(0x2022c00), %g1 2009a14: c4 28 62 44 stb %g2, [ %g1 + 0x244 ] ! 2022e44 <_Context_Switch_necessary> } } } _ISR_Enable( level ); 2009a18: 7f ff e4 41 call 2002b1c 2009a1c: 91 e8 00 10 restore %g0, %l0, %o0 2009a20: 01 00 00 00 nop 020081f8 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 20081f8: 9d e3 bf 98 save %sp, -104, %sp 20081fc: 03 00 80 56 sethi %hi(0x2015800), %g1 2008200: c2 00 62 d0 ld [ %g1 + 0x2d0 ], %g1 ! 2015ad0 2008204: 80 a6 40 01 cmp %i1, %g1 2008208: 2a 80 00 02 bcs,a 2008210 <_Thread_Stack_Allocate+0x18> 200820c: 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 ) { 2008210: 03 00 80 5a sethi %hi(0x2016800), %g1 2008214: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201691c <_Configuration_Table> 2008218: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200821c: 80 a0 60 00 cmp %g1, 0 2008220: 22 80 00 06 be,a 2008238 <_Thread_Stack_Allocate+0x40> 2008224: b2 06 60 10 add %i1, 0x10, %i1 stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 2008228: 9f c0 40 00 call %g1 <== NOT EXECUTED 200822c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 2008230: 10 80 00 05 b 2008244 <_Thread_Stack_Allocate+0x4c> <== NOT EXECUTED 2008234: d0 26 20 d0 st %o0, [ %i0 + 0xd0 ] <== 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 ); 2008238: 40 00 02 20 call 2008ab8 <_Workspace_Allocate> 200823c: 90 10 00 19 mov %i1, %o0 } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 2008240: 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 ) 2008244: 80 a0 00 08 cmp %g0, %o0 2008248: b0 60 20 00 subx %g0, 0, %i0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 200824c: b0 0e 40 18 and %i1, %i0, %i0 2008250: 81 c7 e0 08 ret 2008254: 81 e8 00 00 restore 02008258 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 2008258: 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 ) 200825c: c2 0e 20 c0 ldub [ %i0 + 0xc0 ], %g1 2008260: 80 a0 60 00 cmp %g1, 0 2008264: 02 80 00 09 be 2008288 <_Thread_Stack_Free+0x30> 2008268: 03 00 80 5a sethi %hi(0x2016800), %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 ) 200826c: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201691c <_Configuration_Table> 2008270: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 2008274: 80 a0 60 00 cmp %g1, 0 2008278: 02 80 00 06 be 2008290 <_Thread_Stack_Free+0x38> 200827c: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 (*_Configuration_Table->stack_free_hook)( 2008280: 9f c0 40 00 call %g1 <== NOT EXECUTED 2008284: 01 00 00 00 nop <== NOT EXECUTED 2008288: 81 c7 e0 08 ret <== NOT EXECUTED 200828c: 81 e8 00 00 restore <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 2008290: 40 00 02 03 call 2008a9c <_Workspace_Free> 2008294: 91 e8 00 08 restore %g0, %o0, %o0 2008298: 01 00 00 00 nop 02008340 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 2008340: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *executing; executing = _Thread_Executing; 2008344: 03 00 80 5a sethi %hi(0x2016800), %g1 2008348: e0 00 61 44 ld [ %g1 + 0x144 ], %l0 ! 2016944 <_Thread_Executing> /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 200834c: c2 0c 20 76 ldub [ %l0 + 0x76 ], %g1 2008350: 80 a0 60 00 cmp %g1, 0 2008354: 02 80 00 23 be 20083e0 <_Thread_Tickle_timeslice+0xa0> 2008358: 01 00 00 00 nop return; if ( !_States_Is_ready( executing->current_state ) ) 200835c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 2008360: 80 a0 60 00 cmp %g1, 0 2008364: 12 80 00 1f bne 20083e0 <_Thread_Tickle_timeslice+0xa0> 2008368: 01 00 00 00 nop /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 200836c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 2008370: 80 a0 60 01 cmp %g1, 1 2008374: 0a 80 00 12 bcs 20083bc <_Thread_Tickle_timeslice+0x7c> 2008378: 80 a0 60 02 cmp %g1, 2 200837c: 28 80 00 07 bleu,a 2008398 <_Thread_Tickle_timeslice+0x58> 2008380: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 2008384: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2008388: 12 80 00 16 bne 20083e0 <_Thread_Tickle_timeslice+0xa0> <== NOT EXECUTED 200838c: 01 00 00 00 nop <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 2008390: 10 80 00 0d b 20083c4 <_Thread_Tickle_timeslice+0x84> <== NOT EXECUTED 2008394: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== 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 ) { 2008398: 82 00 7f ff add %g1, -1, %g1 200839c: 80 a0 60 00 cmp %g1, 0 20083a0: 14 80 00 07 bg 20083bc <_Thread_Tickle_timeslice+0x7c> 20083a4: c2 24 20 78 st %g1, [ %l0 + 0x78 ] _Thread_Reset_timeslice(); 20083a8: 40 00 0d 2f call 200b864 <_Thread_Reset_timeslice> 20083ac: 01 00 00 00 nop executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 20083b0: 03 00 80 59 sethi %hi(0x2016400), %g1 20083b4: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 ! 20167d8 <_Thread_Ticks_per_timeslice> 20083b8: c2 24 20 78 st %g1, [ %l0 + 0x78 ] 20083bc: 81 c7 e0 08 ret 20083c0: 81 e8 00 00 restore } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 20083c4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20083c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20083cc: 12 bf ff fc bne 20083bc <_Thread_Tickle_timeslice+0x7c> <== NOT EXECUTED 20083d0: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED (*executing->budget_callout)( executing ); 20083d4: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 20083d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20083dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20083e0: 81 c7 e0 08 ret 20083e4: 81 e8 00 00 restore 02007bfc <_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 ) { 2007bfc: 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; 2007c00: 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); 2007c04: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2007c08: c0 26 60 3c clr [ %i1 + 0x3c ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2007c0c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2007c10: 82 06 60 38 add %i1, 0x38, %g1 2007c14: c2 26 60 40 st %g1, [ %i1 + 0x40 ] 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 ) ) 2007c18: 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); 2007c1c: 83 34 a0 06 srl %l2, 6, %g1 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; 2007c20: ec 06 20 38 ld [ %i0 + 0x38 ], %l6 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 2007c24: 85 28 60 04 sll %g1, 4, %g2 2007c28: 83 28 60 02 sll %g1, 2, %g1 2007c2c: 84 20 80 01 sub %g2, %g1, %g2 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2007c30: 12 80 00 31 bne 2007cf4 <_Thread_queue_Enqueue_priority+0xf8> 2007c34: a6 06 00 02 add %i0, %g2, %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2007c38: a8 04 e0 04 add %l3, 4, %l4 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 2007c3c: aa 10 00 02 mov %g2, %l5 if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2007c40: 7f ff e8 40 call 2001d40 2007c44: 01 00 00 00 nop 2007c48: a6 10 00 08 mov %o0, %l3 search_thread = (Thread_Control *) header->first; 2007c4c: a2 10 3f ff mov -1, %l1 2007c50: 10 80 00 18 b 2007cb0 <_Thread_queue_Enqueue_priority+0xb4> 2007c54: e0 06 00 15 ld [ %i0 + %l5 ], %l0 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; if ( priority <= search_priority ) 2007c58: 80 a4 80 11 cmp %l2, %l1 2007c5c: 28 80 00 19 bleu,a 2007cc0 <_Thread_queue_Enqueue_priority+0xc4> 2007c60: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.next; 2007c64: e0 04 00 00 ld [ %l0 ], %l0 if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 2007c68: 80 a4 00 14 cmp %l0, %l4 2007c6c: 22 80 00 15 be,a 2007cc0 <_Thread_queue_Enqueue_priority+0xc4> 2007c70: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; 2007c74: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 if ( priority <= search_priority ) 2007c78: 80 a4 80 11 cmp %l2, %l1 2007c7c: 28 80 00 11 bleu,a 2007cc0 <_Thread_queue_Enqueue_priority+0xc4> 2007c80: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #endif _ISR_Flash( level ); 2007c84: 7f ff e8 33 call 2001d50 2007c88: 90 10 00 13 mov %l3, %o0 2007c8c: 7f ff e8 2d call 2001d40 2007c90: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2007c94: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 2007c98: 80 8d 80 01 btst %l6, %g1 2007c9c: 32 80 00 05 bne,a 2007cb0 <_Thread_queue_Enqueue_priority+0xb4> 2007ca0: e0 04 00 00 ld [ %l0 ], %l0 _ISR_Enable( level ); 2007ca4: 7f ff e8 2b call 2001d50 <== NOT EXECUTED 2007ca8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007cac: 30 bf ff e5 b,a 2007c40 <_Thread_queue_Enqueue_priority+0x44> <== NOT EXECUTED restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2007cb0: 80 a4 00 14 cmp %l0, %l4 2007cb4: 32 bf ff e9 bne,a 2007c58 <_Thread_queue_Enqueue_priority+0x5c> 2007cb8: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2007cbc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2007cc0: 80 a0 60 01 cmp %g1, 1 2007cc4: 12 80 00 48 bne 2007de4 <_Thread_queue_Enqueue_priority+0x1e8> 2007cc8: 90 10 00 13 mov %l3, %o0 THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 2007ccc: 80 a4 80 11 cmp %l2, %l1 2007cd0: 02 80 00 3a be 2007db8 <_Thread_queue_Enqueue_priority+0x1bc> 2007cd4: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 2007cd8: c2 04 20 04 ld [ %l0 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2007cdc: e0 26 40 00 st %l0, [ %i1 ] the_node->previous = previous_node; 2007ce0: 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; 2007ce4: f0 26 60 44 st %i0, [ %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; 2007ce8: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2007cec: f2 24 20 04 st %i1, [ %l0 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007cf0: 30 80 00 39 b,a 2007dd4 <_Thread_queue_Enqueue_priority+0x1d8> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 2007cf4: 03 00 80 56 sethi %hi(0x2015800), %g1 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 2007cf8: aa 10 00 13 mov %l3, %l5 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 2007cfc: ae 10 62 d4 or %g1, 0x2d4, %l7 2007d00: c2 0d c0 00 ldub [ %l7 ], %g1 _ISR_Disable( level ); 2007d04: 7f ff e8 0f call 2001d40 2007d08: a2 00 60 01 add %g1, 1, %l1 2007d0c: a8 10 00 08 mov %o0, %l4 search_thread = (Thread_Control *) header->last; 2007d10: 10 80 00 19 b 2007d74 <_Thread_queue_Enqueue_priority+0x178> 2007d14: e0 05 60 08 ld [ %l5 + 8 ], %l0 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; if ( priority >= search_priority ) 2007d18: 80 a4 80 11 cmp %l2, %l1 2007d1c: 3a 80 00 1a bcc,a 2007d84 <_Thread_queue_Enqueue_priority+0x188> 2007d20: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 2007d24: e0 04 20 04 ld [ %l0 + 4 ], %l0 if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 2007d28: 80 a4 00 13 cmp %l0, %l3 2007d2c: 22 80 00 16 be,a 2007d84 <_Thread_queue_Enqueue_priority+0x188> 2007d30: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; 2007d34: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 if ( priority >= search_priority ) 2007d38: 80 a4 80 11 cmp %l2, %l1 2007d3c: 3a 80 00 12 bcc,a 2007d84 <_Thread_queue_Enqueue_priority+0x188> 2007d40: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #endif _ISR_Flash( level ); 2007d44: 7f ff e8 03 call 2001d50 2007d48: 90 10 00 14 mov %l4, %o0 2007d4c: 7f ff e7 fd call 2001d40 2007d50: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2007d54: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 2007d58: 80 8d 80 01 btst %l6, %g1 2007d5c: 32 80 00 06 bne,a 2007d74 <_Thread_queue_Enqueue_priority+0x178> 2007d60: e0 04 20 04 ld [ %l0 + 4 ], %l0 _ISR_Enable( level ); 2007d64: 7f ff e7 fb call 2001d50 <== NOT EXECUTED 2007d68: 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; 2007d6c: 10 bf ff e6 b 2007d04 <_Thread_queue_Enqueue_priority+0x108> <== NOT EXECUTED 2007d70: c2 0d c0 00 ldub [ %l7 ], %g1 <== NOT EXECUTED _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 2007d74: 80 a4 00 13 cmp %l0, %l3 2007d78: 32 bf ff e8 bne,a 2007d18 <_Thread_queue_Enqueue_priority+0x11c> 2007d7c: e2 04 20 14 ld [ %l0 + 0x14 ], %l1 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2007d80: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2007d84: 80 a0 60 01 cmp %g1, 1 2007d88: 12 80 00 17 bne 2007de4 <_Thread_queue_Enqueue_priority+0x1e8> 2007d8c: 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 ) 2007d90: 80 a4 80 11 cmp %l2, %l1 2007d94: 02 80 00 09 be 2007db8 <_Thread_queue_Enqueue_priority+0x1bc> 2007d98: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2007d9c: c2 04 00 00 ld [ %l0 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 2007da0: 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; 2007da4: 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; 2007da8: f0 26 60 44 st %i0, [ %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; 2007dac: 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; 2007db0: f2 24 00 00 st %i1, [ %l0 ] next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007db4: 30 80 00 08 b,a 2007dd4 <_Thread_queue_Enqueue_priority+0x1d8> 2007db8: 82 04 20 3c add %l0, 0x3c, %g1 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; 2007dbc: c4 00 60 04 ld [ %g1 + 4 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2007dc0: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = previous_node; 2007dc4: 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; 2007dc8: f0 26 60 44 st %i0, [ %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; 2007dcc: f2 20 80 00 st %i1, [ %g2 ] search_node->previous = the_node; 2007dd0: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007dd4: 7f ff e7 df call 2001d50 2007dd8: b0 10 20 01 mov 1, %i0 2007ddc: 81 c7 e0 08 ret 2007de0: 81 e8 00 00 restore * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; 2007de4: f0 06 20 30 ld [ %i0 + 0x30 ], %i0 <== NOT EXECUTED * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; 2007de8: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED return the_thread_queue->sync_state; } 2007dec: 81 c7 e0 08 ret <== NOT EXECUTED 2007df0: 81 e8 00 00 restore <== NOT EXECUTED 0200c2bc <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 200c2bc: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; _ISR_Disable( level ); 200c2c0: 7f ff d6 a0 call 2001d40 200c2c4: b0 10 00 19 mov %i1, %i0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 200c2c8: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 200c2cc: 03 00 00 ef sethi %hi(0x3bc00), %g1 200c2d0: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 200c2d4: 80 88 80 01 btst %g2, %g1 200c2d8: 32 80 00 04 bne,a 200c2e8 <_Thread_queue_Extract_fifo+0x2c> 200c2dc: c2 06 40 00 ld [ %i1 ], %g1 _ISR_Enable( level ); 200c2e0: 7f ff d6 9c call 2001d50 <== NOT EXECUTED 200c2e4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 200c2e8: 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 ) ) { 200c2ec: c6 06 60 50 ld [ %i1 + 0x50 ], %g3 next->previous = previous; previous->next = next; 200c2f0: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200c2f4: c4 20 60 04 st %g2, [ %g1 + 4 ] 200c2f8: 80 a0 e0 02 cmp %g3, 2 200c2fc: 02 80 00 06 be 200c314 <_Thread_queue_Extract_fifo+0x58> 200c300: c0 26 60 44 clr [ %i1 + 0x44 ] _ISR_Enable( level ); 200c304: 7f ff d6 93 call 2001d50 200c308: 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 ); 200c30c: 10 80 00 0a b 200c334 <_Thread_queue_Extract_fifo+0x78> 200c310: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 200c314: 82 10 20 03 mov 3, %g1 200c318: c2 26 60 50 st %g1, [ %i1 + 0x50 ] } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 200c31c: 7f ff d6 8d call 2001d50 200c320: 01 00 00 00 nop (void) _Watchdog_Remove( &the_thread->Timer ); 200c324: 7f ff f1 8a call 200894c <_Watchdog_Remove> 200c328: 90 06 60 48 add %i1, 0x48, %o0 200c32c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 200c330: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 200c334: 7f ff eb a0 call 20071b4 <_Thread_Clear_state> 200c338: 81 e8 00 00 restore 200c33c: 01 00 00 00 nop 0200b5e0 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 200b5e0: 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 ); 200b5e4: 7f ff d9 d7 call 2001d40 200b5e8: b0 10 00 19 mov %i1, %i0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 200b5ec: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 200b5f0: 03 00 00 ef sethi %hi(0x3bc00), %g1 200b5f4: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 200b5f8: 80 88 80 01 btst %g2, %g1 200b5fc: 32 80 00 03 bne,a 200b608 <_Thread_queue_Extract_priority_helper+0x28> 200b600: c6 06 60 38 ld [ %i1 + 0x38 ], %g3 _ISR_Enable( level ); 200b604: 30 80 00 1c b,a 200b674 <_Thread_queue_Extract_priority_helper+0x94> <== NOT EXECUTED */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 200b608: 82 06 60 3c add %i1, 0x3c, %g1 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 200b60c: c4 06 40 00 ld [ %i1 ], %g2 previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 200b610: 80 a0 c0 01 cmp %g3, %g1 200b614: 02 80 00 13 be 200b660 <_Thread_queue_Extract_priority_helper+0x80> 200b618: 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; 200b61c: da 06 60 40 ld [ %i1 + 0x40 ], %o5 new_second_node = new_first_node->next; 200b620: c8 00 c0 00 ld [ %g3 ], %g4 previous_node->next = new_first_node; next_node->previous = new_first_node; 200b624: 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; 200b628: c6 20 40 00 st %g3, [ %g1 ] next_node->previous = new_first_node; new_first_node->next = next_node; 200b62c: c4 20 c0 00 st %g2, [ %g3 ] new_first_node->previous = previous_node; 200b630: c2 20 e0 04 st %g1, [ %g3 + 4 ] if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 200b634: c4 06 60 38 ld [ %i1 + 0x38 ], %g2 200b638: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 200b63c: 80 a0 80 01 cmp %g2, %g1 200b640: 02 80 00 0a be 200b668 <_Thread_queue_Extract_priority_helper+0x88> 200b644: 82 00 e0 38 add %g3, 0x38, %g1 /* > two threads on 2-n */ new_second_node->previous = 200b648: c2 21 20 04 st %g1, [ %g4 + 4 ] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 200b64c: c8 20 e0 38 st %g4, [ %g3 + 0x38 ] new_first_thread->Wait.Block2n.last = last_node; 200b650: da 20 e0 40 st %o5, [ %g3 + 0x40 ] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 200b654: 82 00 e0 3c add %g3, 0x3c, %g1 200b658: 10 80 00 04 b 200b668 <_Thread_queue_Extract_priority_helper+0x88> 200b65c: c2 23 40 00 st %g1, [ %o5 ] } } else { previous_node->next = next_node; next_node->previous = previous_node; 200b660: 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; 200b664: c4 20 40 00 st %g2, [ %g1 ] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 200b668: 80 8e a0 ff btst 0xff, %i2 200b66c: 22 80 00 04 be,a 200b67c <_Thread_queue_Extract_priority_helper+0x9c> 200b670: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 _ISR_Enable( level ); 200b674: 7f ff d9 b7 call 2001d50 200b678: 91 e8 00 08 restore %g0, %o0, %o0 return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 200b67c: 80 a0 60 02 cmp %g1, 2 200b680: 02 80 00 06 be 200b698 <_Thread_queue_Extract_priority_helper+0xb8> 200b684: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 200b688: 7f ff d9 b2 call 2001d50 200b68c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 200b690: 10 80 00 08 b 200b6b0 <_Thread_queue_Extract_priority_helper+0xd0> 200b694: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 200b698: c2 26 20 50 st %g1, [ %i0 + 0x50 ] <== NOT EXECUTED } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 200b69c: 7f ff d9 ad call 2001d50 <== NOT EXECUTED 200b6a0: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 200b6a4: 7f ff f4 aa call 200894c <_Watchdog_Remove> <== NOT EXECUTED 200b6a8: 90 06 20 48 add %i0, 0x48, %o0 <== NOT EXECUTED 200b6ac: b2 16 63 f8 or %i1, 0x3f8, %i1 <== NOT EXECUTED 200b6b0: 7f ff ee c1 call 20071b4 <_Thread_Clear_state> 200b6b4: 81 e8 00 00 restore 200b6b8: 01 00 00 00 nop 0200b6bc <_Thread_queue_Process_timeout>: void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 200b6bc: c4 02 20 44 ld [ %o0 + 0x44 ], %g2 * 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 && 200b6c0: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 200b6c4: 80 a0 e0 00 cmp %g3, 0 200b6c8: 02 80 00 0f be 200b704 <_Thread_queue_Process_timeout+0x48> 200b6cc: 92 10 00 08 mov %o0, %o1 200b6d0: 03 00 80 5a sethi %hi(0x2016800), %g1 200b6d4: c2 00 61 44 ld [ %g1 + 0x144 ], %g1 ! 2016944 <_Thread_Executing> 200b6d8: 80 a2 00 01 cmp %o0, %g1 200b6dc: 32 80 00 0b bne,a 200b708 <_Thread_queue_Process_timeout+0x4c> 200b6e0: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 <== NOT EXECUTED _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { 200b6e4: 80 a0 e0 03 cmp %g3, 3 200b6e8: 02 80 00 0d be 200b71c <_Thread_queue_Process_timeout+0x60> 200b6ec: 01 00 00 00 nop the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 200b6f0: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 200b6f4: c2 22 20 34 st %g1, [ %o0 + 0x34 ] the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 200b6f8: 82 10 20 02 mov 2, %g1 200b6fc: 81 c3 e0 08 retl 200b700: c2 20 a0 30 st %g1, [ %g2 + 0x30 ] } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 200b704: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 200b708: d0 02 60 44 ld [ %o1 + 0x44 ], %o0 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; 200b70c: c2 22 60 34 st %g1, [ %o1 + 0x34 ] _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 200b710: 82 13 c0 00 mov %o7, %g1 200b714: 7f ff ff a8 call 200b5b4 <_Thread_queue_Extract> 200b718: 9e 10 40 00 mov %g1, %o7 200b71c: 81 c3 e0 08 retl <== NOT EXECUTED 200b720: 01 00 00 00 nop 0200a134 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 200a134: 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; 200a138: c2 06 40 00 ld [ %i1 ], %g1 right += rhs->tv_nsec; 200a13c: 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; 200a140: 91 38 60 1f sra %g1, 0x1f, %o0 200a144: 92 10 00 01 mov %g1, %o1 200a148: 83 30 60 1d srl %g1, 0x1d, %g1 200a14c: 87 2a 60 03 sll %o1, 3, %g3 200a150: 85 2a 20 03 sll %o0, 3, %g2 200a154: 84 10 40 02 or %g1, %g2, %g2 200a158: 83 30 e0 1b srl %g3, 0x1b, %g1 200a15c: 99 28 a0 05 sll %g2, 5, %o4 200a160: 9b 28 e0 05 sll %g3, 5, %o5 200a164: 98 10 40 0c or %g1, %o4, %o4 200a168: 9a a3 40 03 subcc %o5, %g3, %o5 200a16c: 83 33 60 1a srl %o5, 0x1a, %g1 200a170: 98 63 00 02 subx %o4, %g2, %o4 200a174: 97 2b 60 06 sll %o5, 6, %o3 200a178: 95 2b 20 06 sll %o4, 6, %o2 200a17c: 96 a2 c0 0d subcc %o3, %o5, %o3 200a180: 94 10 40 0a or %g1, %o2, %o2 200a184: 94 62 80 0c subx %o2, %o4, %o2 200a188: 96 82 c0 09 addcc %o3, %o1, %o3 200a18c: 94 42 80 08 addx %o2, %o0, %o2 200a190: 83 32 e0 1e srl %o3, 0x1e, %g1 200a194: 85 2a a0 02 sll %o2, 2, %g2 200a198: 84 10 40 02 or %g1, %g2, %g2 200a19c: 87 2a e0 02 sll %o3, 2, %g3 200a1a0: 96 82 c0 03 addcc %o3, %g3, %o3 200a1a4: 94 42 80 02 addx %o2, %g2, %o2 200a1a8: 83 32 e0 1e srl %o3, 0x1e, %g1 200a1ac: 85 2a a0 02 sll %o2, 2, %g2 200a1b0: 84 10 40 02 or %g1, %g2, %g2 200a1b4: 87 2a e0 02 sll %o3, 2, %g3 200a1b8: 96 82 c0 03 addcc %o3, %g3, %o3 200a1bc: 94 42 80 02 addx %o2, %g2, %o2 200a1c0: 83 32 e0 1e srl %o3, 0x1e, %g1 200a1c4: 85 2a a0 02 sll %o2, 2, %g2 200a1c8: 84 10 40 02 or %g1, %g2, %g2 200a1cc: 87 2a e0 02 sll %o3, 2, %g3 200a1d0: 96 82 c0 03 addcc %o3, %g3, %o3 200a1d4: 94 42 80 02 addx %o2, %g2, %o2 200a1d8: 85 32 e0 17 srl %o3, 0x17, %g2 200a1dc: 83 2a a0 09 sll %o2, 9, %g1 200a1e0: 9b 2a e0 09 sll %o3, 9, %o5 200a1e4: 98 10 80 01 or %g2, %g1, %o4 right += rhs->tv_nsec; 200a1e8: 96 83 40 0f addcc %o5, %o7, %o3 200a1ec: 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; 200a1f0: e4 06 20 04 ld [ %i0 + 4 ], %l2 right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; 200a1f4: 94 43 00 02 addx %o4, %g2, %o2 if ( right == 0 ) { 200a1f8: 80 92 80 0b orcc %o2, %o3, %g0 200a1fc: 12 80 00 06 bne 200a214 <_Timespec_Divide+0xe0> 200a200: d0 06 00 00 ld [ %i0 ], %o0 *ival_percentage = 0; 200a204: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED *fval_percentage = 0; 200a208: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED 200a20c: 81 c7 e0 08 ret <== NOT EXECUTED 200a210: 81 e8 00 00 restore <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 200a214: 92 10 00 08 mov %o0, %o1 200a218: 83 32 60 1d srl %o1, 0x1d, %g1 200a21c: 9b 2a 60 03 sll %o1, 3, %o5 200a220: 91 3a 20 1f sra %o0, 0x1f, %o0 200a224: 99 2a 20 03 sll %o0, 3, %o4 200a228: 98 10 40 0c or %g1, %o4, %o4 200a22c: 83 33 60 1b srl %o5, 0x1b, %g1 200a230: 85 2b 20 05 sll %o4, 5, %g2 200a234: 87 2b 60 05 sll %o5, 5, %g3 200a238: 84 10 40 02 or %g1, %g2, %g2 200a23c: 86 a0 c0 0d subcc %g3, %o5, %g3 200a240: 83 30 e0 1a srl %g3, 0x1a, %g1 200a244: 84 60 80 0c subx %g2, %o4, %g2 200a248: 9b 28 e0 06 sll %g3, 6, %o5 200a24c: 99 28 a0 06 sll %g2, 6, %o4 200a250: 9a a3 40 03 subcc %o5, %g3, %o5 200a254: 98 10 40 0c or %g1, %o4, %o4 200a258: 98 63 00 02 subx %o4, %g2, %o4 200a25c: 9a 83 40 09 addcc %o5, %o1, %o5 200a260: 83 33 60 1e srl %o5, 0x1e, %g1 200a264: 98 43 00 08 addx %o4, %o0, %o4 200a268: 87 2b 60 02 sll %o5, 2, %g3 200a26c: 85 2b 20 02 sll %o4, 2, %g2 200a270: 9a 83 40 03 addcc %o5, %g3, %o5 200a274: 84 10 40 02 or %g1, %g2, %g2 200a278: 83 33 60 1e srl %o5, 0x1e, %g1 200a27c: 98 43 00 02 addx %o4, %g2, %o4 200a280: 87 2b 60 02 sll %o5, 2, %g3 200a284: 85 2b 20 02 sll %o4, 2, %g2 200a288: 9a 83 40 03 addcc %o5, %g3, %o5 200a28c: 84 10 40 02 or %g1, %g2, %g2 200a290: 83 33 60 1e srl %o5, 0x1e, %g1 200a294: 98 43 00 02 addx %o4, %g2, %o4 200a298: 87 2b 60 02 sll %o5, 2, %g3 200a29c: 85 2b 20 02 sll %o4, 2, %g2 200a2a0: 9a 83 40 03 addcc %o5, %g3, %o5 200a2a4: 84 10 40 02 or %g1, %g2, %g2 200a2a8: 98 43 00 02 addx %o4, %g2, %o4 200a2ac: 83 2b 20 09 sll %o4, 9, %g1 200a2b0: 85 33 60 17 srl %o5, 0x17, %g2 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 200a2b4: 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; 200a2b8: a0 10 80 01 or %g2, %g1, %l0 200a2bc: 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; 200a2c0: a2 84 40 13 addcc %l1, %l3, %l1 200a2c4: 83 34 60 1e srl %l1, 0x1e, %g1 200a2c8: 87 2c 60 02 sll %l1, 2, %g3 200a2cc: a5 3c a0 1f sra %l2, 0x1f, %l2 200a2d0: a0 44 00 12 addx %l0, %l2, %l0 200a2d4: 85 2c 20 02 sll %l0, 2, %g2 200a2d8: 84 10 40 02 or %g1, %g2, %g2 200a2dc: 83 30 e0 1b srl %g3, 0x1b, %g1 200a2e0: 99 28 a0 05 sll %g2, 5, %o4 200a2e4: 9b 28 e0 05 sll %g3, 5, %o5 200a2e8: 98 10 40 0c or %g1, %o4, %o4 200a2ec: 9a a3 40 03 subcc %o5, %g3, %o5 200a2f0: 98 63 00 02 subx %o4, %g2, %o4 200a2f4: 9a 83 40 11 addcc %o5, %l1, %o5 200a2f8: 83 33 60 1e srl %o5, 0x1e, %g1 200a2fc: 98 43 00 10 addx %o4, %l0, %o4 200a300: 87 2b 60 02 sll %o5, 2, %g3 200a304: 85 2b 20 02 sll %o4, 2, %g2 200a308: 9a 83 40 03 addcc %o5, %g3, %o5 200a30c: 84 10 40 02 or %g1, %g2, %g2 200a310: 83 33 60 1e srl %o5, 0x1e, %g1 200a314: 87 2b 60 02 sll %o5, 2, %g3 200a318: 98 43 00 02 addx %o4, %g2, %o4 200a31c: 9a 83 40 03 addcc %o5, %g3, %o5 200a320: 85 2b 20 02 sll %o4, 2, %g2 200a324: 84 10 40 02 or %g1, %g2, %g2 200a328: 83 33 60 1b srl %o5, 0x1b, %g1 200a32c: 98 43 00 02 addx %o4, %g2, %o4 200a330: 99 2b 20 05 sll %o4, 5, %o4 200a334: 98 10 40 0c or %g1, %o4, %o4 200a338: 93 2b 60 05 sll %o5, 5, %o1 200a33c: 40 00 32 46 call 2016c54 <__udivdi3> 200a340: 90 10 00 0c mov %o4, %o0 *ival_percentage = answer / 1000; 200a344: 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; 200a348: a0 10 00 08 mov %o0, %l0 200a34c: a2 10 00 09 mov %o1, %l1 *ival_percentage = answer / 1000; 200a350: 96 10 23 e8 mov 0x3e8, %o3 200a354: 40 00 32 40 call 2016c54 <__udivdi3> 200a358: 90 10 00 10 mov %l0, %o0 *fval_percentage = answer % 1000; 200a35c: 90 10 00 10 mov %l0, %o0 * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; 200a360: d2 26 80 00 st %o1, [ %i2 ] *fval_percentage = answer % 1000; 200a364: 94 10 20 00 clr %o2 200a368: 92 10 00 11 mov %l1, %o1 200a36c: 40 00 33 16 call 2016fc4 <__umoddi3> 200a370: 96 10 23 e8 mov 0x3e8, %o3 200a374: d2 26 c0 00 st %o1, [ %i3 ] 200a378: 81 c7 e0 08 ret 200a37c: 81 e8 00 00 restore 02012974 <_Timespec_From_ticks>: void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 2012974: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 2012978: 03 00 80 95 sethi %hi(0x2025400), %g1 <== NOT EXECUTED 201297c: d2 00 61 c0 ld [ %g1 + 0x1c0 ], %o1 ! 20255c0 <_TOD_Microseconds_per_tick> <== NOT EXECUTED 2012980: 40 00 2e 38 call 201e260 <.umul> <== NOT EXECUTED 2012984: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 2012988: 21 00 03 d0 sethi %hi(0xf4000), %l0 <== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 201298c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 2012990: 7f ff bb 88 call 20017b0 <.udiv> <== NOT EXECUTED 2012994: 92 14 22 40 or %l0, 0x240, %o1 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 2012998: 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; 201299c: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 20129a0: 40 00 2e 6a call 201e348 <.urem> <== NOT EXECUTED 20129a4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20129a8: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED 20129ac: 83 2a 20 07 sll %o0, 7, %g1 <== NOT EXECUTED 20129b0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20129b4: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 20129b8: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED 20129bc: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 20129c0: 81 c7 e0 08 ret <== NOT EXECUTED 20129c4: 81 e8 00 00 restore <== NOT EXECUTED 020129c8 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 20129c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20129cc: 02 80 00 0f be 2012a08 <_Timespec_Is_valid+0x40> <== NOT EXECUTED 20129d0: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 20129d4: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 20129d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20129dc: 06 80 00 0b bl 2012a08 <_Timespec_Is_valid+0x40> <== NOT EXECUTED 20129e0: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 20129e4: d0 02 20 04 ld [ %o0 + 4 ], %o0 <== NOT EXECUTED 20129e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20129ec: 06 80 00 07 bl 2012a08 <_Timespec_Is_valid+0x40> <== NOT EXECUTED 20129f0: 03 0e e6 b2 sethi %hi(0x3b9ac800), %g1 <== NOT EXECUTED 20129f4: 82 10 61 ff or %g1, 0x1ff, %g1 ! 3b9ac9ff <== NOT EXECUTED 20129f8: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 20129fc: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED 2012a00: 81 c3 e0 08 retl <== NOT EXECUTED 2012a04: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 2012a08: 81 c3 e0 08 retl <== NOT EXECUTED 2012a0c: 90 10 20 00 clr %o0 <== NOT EXECUTED 02012a10 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 2012a10: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 2012a14: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED 2012a18: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2012a1c: 12 80 00 06 bne 2012a34 <_Timespec_To_ticks+0x24> <== NOT EXECUTED 2012a20: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED 2012a24: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2012a28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012a2c: 02 80 00 13 be 2012a78 <_Timespec_To_ticks+0x68> <== NOT EXECUTED 2012a30: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 2012a34: 03 00 80 95 sethi %hi(0x2025400), %g1 <== NOT EXECUTED 2012a38: e2 00 61 c0 ld [ %g1 + 0x1c0 ], %l1 ! 20255c0 <_TOD_Microseconds_per_tick> <== NOT EXECUTED 2012a3c: 11 00 03 d0 sethi %hi(0xf4000), %o0 <== NOT EXECUTED 2012a40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2012a44: 7f ff bb 5b call 20017b0 <.udiv> <== NOT EXECUTED 2012a48: 90 12 22 40 or %o0, 0x240, %o0 <== NOT EXECUTED 2012a4c: 40 00 2e 05 call 201e260 <.umul> <== NOT EXECUTED 2012a50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2012a54: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 2012a58: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED 2012a5c: 7f ff bb 55 call 20017b0 <.udiv> <== NOT EXECUTED 2012a60: 92 10 23 e8 mov 0x3e8, %o1 <== NOT EXECUTED 2012a64: 7f ff bb 53 call 20017b0 <.udiv> <== NOT EXECUTED 2012a68: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 2012a6c: b0 82 00 10 addcc %o0, %l0, %i0 <== NOT EXECUTED 2012a70: 22 80 00 02 be,a 2012a78 <_Timespec_To_ticks+0x68> <== NOT EXECUTED 2012a74: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return ticks; return 1; } 2012a78: 81 c7 e0 08 ret <== NOT EXECUTED 2012a7c: 81 e8 00 00 restore <== NOT EXECUTED 0200b8fc <_User_extensions_Add_API_set>: */ void _User_extensions_Add_API_set ( User_extensions_Control *the_extension ) { 200b8fc: 9d e3 bf 98 save %sp, -104, %sp _Chain_Append( &_User_extensions_List, &the_extension->Node ); 200b900: 11 00 80 5a sethi %hi(0x2016800), %o0 200b904: 92 10 00 18 mov %i0, %o1 200b908: 7f ff e9 6a call 2005eb0 <_Chain_Append> 200b90c: 90 12 22 b8 or %o0, 0x2b8, %o0 /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { 200b910: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200b914: 80 a0 60 00 cmp %g1, 0 200b918: 02 80 00 06 be 200b930 <_User_extensions_Add_API_set+0x34> 200b91c: b2 06 20 08 add %i0, 8, %i1 the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; 200b920: c2 26 20 10 st %g1, [ %i0 + 0x10 ] _Chain_Append( 200b924: 31 00 80 5a sethi %hi(0x2016800), %i0 200b928: 7f ff e9 62 call 2005eb0 <_Chain_Append> 200b92c: 91 ee 20 84 restore %i0, 0x84, %o0 200b930: 81 c7 e0 08 ret <== NOT EXECUTED 200b934: 81 e8 00 00 restore <== NOT EXECUTED 0200d324 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 200d324: 9d e3 bf 98 save %sp, -104, %sp _Chain_Extract( &the_extension->Node ); 200d328: 40 00 12 20 call 2011ba8 <_Chain_Extract> 200d32c: 90 10 00 18 mov %i0, %o0 /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 200d330: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200d334: 80 a0 60 00 cmp %g1, 0 200d338: 02 80 00 04 be 200d348 <_User_extensions_Remove_set+0x24> 200d33c: 01 00 00 00 nop _Chain_Extract( &the_extension->Switch.Node ); 200d340: 40 00 12 1a call 2011ba8 <_Chain_Extract> <== NOT EXECUTED 200d344: 91 ee 20 08 restore %i0, 8, %o0 <== NOT EXECUTED 200d348: 81 c7 e0 08 ret 200d34c: 81 e8 00 00 restore 020086ac <_User_extensions_Thread_create>: */ bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 20086ac: 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 ; 20086b0: 03 00 80 5a sethi %hi(0x2016800), %g1 20086b4: e0 00 62 b8 ld [ %g1 + 0x2b8 ], %l0 ! 2016ab8 <_User_extensions_List> 20086b8: 82 10 62 b8 or %g1, 0x2b8, %g1 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 20086bc: a4 00 60 04 add %g1, 4, %l2 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)( 20086c0: 03 00 80 5a sethi %hi(0x2016800), %g1 20086c4: 10 80 00 0d b 20086f8 <_User_extensions_Thread_create+0x4c> 20086c8: a2 10 61 44 or %g1, 0x144, %l1 ! 2016944 <_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 ) { 20086cc: 80 a0 60 00 cmp %g1, 0 20086d0: 02 80 00 09 be 20086f4 <_User_extensions_Thread_create+0x48> 20086d4: 92 10 00 18 mov %i0, %o1 status = (*the_extension->Callouts.thread_create)( 20086d8: 9f c0 40 00 call %g1 20086dc: d0 04 40 00 ld [ %l1 ], %o0 _Thread_Executing, the_thread ); if ( !status ) 20086e0: 80 8a 20 ff btst 0xff, %o0 20086e4: 32 80 00 05 bne,a 20086f8 <_User_extensions_Thread_create+0x4c> 20086e8: e0 04 00 00 ld [ %l0 ], %l0 20086ec: 81 c7 e0 08 ret <== NOT EXECUTED 20086f0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 20086f4: 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 ) ; 20086f8: 80 a4 00 12 cmp %l0, %l2 20086fc: 32 bf ff f4 bne,a 20086cc <_User_extensions_Thread_create+0x20> 2008700: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 return FALSE; } } return TRUE; } 2008704: 81 c7 e0 08 ret 2008708: 91 e8 20 01 restore %g0, 1, %o0 02015f2c <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 2015f2c: 9d e3 bf 98 save %sp, -104, %sp Watchdog_Interval units = units_arg; ISR_Level level; Chain_Node *node; if ( !units ) { 2015f30: 80 a6 60 00 cmp %i1, 0 2015f34: 02 80 00 31 be 2015ff8 <_Watchdog_Adjust_to_chain+0xcc> 2015f38: 01 00 00 00 nop return; } _ISR_Disable( level ); 2015f3c: 7f ff d5 6f call 200b4f8 2015f40: 01 00 00 00 nop 2015f44: a4 10 00 08 mov %o0, %l2 if ( !_Chain_Is_empty( header ) ) { 2015f48: c2 06 00 00 ld [ %i0 ], %g1 2015f4c: a2 06 20 04 add %i0, 4, %l1 2015f50: 80 a0 40 11 cmp %g1, %l1 2015f54: 02 80 00 27 be 2015ff0 <_Watchdog_Adjust_to_chain+0xc4> 2015f58: 01 00 00 00 nop 2015f5c: a6 06 a0 04 add %i2, 4, %l3 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 2015f60: c4 06 00 00 ld [ %i0 ], %g2 while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 2015f64: e0 00 a0 10 ld [ %g2 + 0x10 ], %l0 2015f68: 80 a6 40 10 cmp %i1, %l0 2015f6c: 3a 80 00 05 bcc,a 2015f80 <_Watchdog_Adjust_to_chain+0x54> 2015f70: c0 20 a0 10 clr [ %g2 + 0x10 ] _Watchdog_First( header )->delta_interval -= units; 2015f74: 82 24 00 19 sub %l0, %i1, %g1 2015f78: 10 80 00 1e b 2015ff0 <_Watchdog_Adjust_to_chain+0xc4> 2015f7c: c2 20 a0 10 st %g1, [ %g2 + 0x10 ] */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2015f80: c4 06 00 00 ld [ %i0 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 2015f84: 80 a0 80 11 cmp %g2, %l1 2015f88: 32 80 00 04 bne,a 2015f98 <_Watchdog_Adjust_to_chain+0x6c> 2015f8c: c2 00 80 00 ld [ %g2 ], %g1 2015f90: 10 80 00 04 b 2015fa0 <_Watchdog_Adjust_to_chain+0x74> <== NOT EXECUTED 2015f94: 84 10 20 00 clr %g2 <== NOT EXECUTED Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 2015f98: c2 26 00 00 st %g1, [ %i0 ] new_first->previous = _Chain_Head(the_chain); 2015f9c: f0 20 60 04 st %i0, [ %g1 + 4 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2015fa0: e6 20 80 00 st %l3, [ %g2 ] old_last_node = the_chain->last; 2015fa4: c2 06 a0 08 ld [ %i2 + 8 ], %g1 the_chain->last = the_node; 2015fa8: c4 26 a0 08 st %g2, [ %i2 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2015fac: 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; 2015fb0: c4 20 40 00 st %g2, [ %g1 ] do { node = _Chain_Get_unprotected( header ); _Chain_Append_unprotected( to_fire, node ); _ISR_Flash( level ); 2015fb4: 7f ff d5 55 call 200b508 2015fb8: 90 10 00 12 mov %l2, %o0 2015fbc: 7f ff d5 4f call 200b4f8 2015fc0: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2015fc4: c2 06 00 00 ld [ %i0 ], %g1 } while ( !_Chain_Is_empty( header ) && _Watchdog_First( header )->delta_interval == 0 ); 2015fc8: 80 a0 40 11 cmp %g1, %l1 2015fcc: 02 80 00 09 be 2015ff0 <_Watchdog_Adjust_to_chain+0xc4> 2015fd0: 01 00 00 00 nop 2015fd4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2015fd8: 80 a0 60 00 cmp %g1, 0 2015fdc: 22 bf ff ea be,a 2015f84 <_Watchdog_Adjust_to_chain+0x58> 2015fe0: c4 06 00 00 ld [ %i0 ], %g2 return; } _ISR_Disable( level ); if ( !_Chain_Is_empty( header ) ) { while ( units ) { 2015fe4: b2 a6 40 10 subcc %i1, %l0, %i1 2015fe8: 32 bf ff df bne,a 2015f64 <_Watchdog_Adjust_to_chain+0x38> 2015fec: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED break; } } } _ISR_Enable( level ); 2015ff0: 7f ff d5 46 call 200b508 2015ff4: 91 e8 00 12 restore %g0, %l2, %o0 2015ff8: 81 c7 e0 08 ret 2015ffc: 81 e8 00 00 restore 020087e4 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 20087e4: 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; 20087e8: 03 00 80 5a sethi %hi(0x2016800), %g1 void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 20087ec: aa 10 00 18 mov %i0, %l5 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 20087f0: e6 00 61 20 ld [ %g1 + 0x120 ], %l3 _ISR_Disable( level ); 20087f4: 7f ff e5 53 call 2001d40 20087f8: 01 00 00 00 nop 20087fc: 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 ) { 2008800: c2 06 60 08 ld [ %i1 + 8 ], %g1 2008804: 80 a0 60 00 cmp %g1, 0 2008808: 02 80 00 03 be 2008814 <_Watchdog_Insert+0x30> 200880c: 07 00 80 5a sethi %hi(0x2016800), %g3 _ISR_Enable( level ); 2008810: 30 80 00 39 b,a 20088f4 <_Watchdog_Insert+0x110> <== NOT EXECUTED return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 2008814: c2 00 e1 d0 ld [ %g3 + 0x1d0 ], %g1 ! 20169d0 <_Watchdog_Sync_count> if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 2008818: 84 10 20 01 mov 1, %g2 _Watchdog_Sync_count++; 200881c: 82 00 60 01 inc %g1 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 2008820: c4 26 60 08 st %g2, [ %i1 + 8 ] _Watchdog_Sync_count++; 2008824: c2 20 e1 d0 st %g1, [ %g3 + 0x1d0 ] if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 2008828: 03 00 80 5a sethi %hi(0x2016800), %g1 200882c: a8 10 61 40 or %g1, 0x140, %l4 ! 2016940 <_Watchdog_Sync_level> 2008830: ac 10 00 14 mov %l4, %l6 the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 2008834: 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 ; 2008838: e2 05 40 00 ld [ %l5 ], %l1 ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 200883c: 80 a4 a0 00 cmp %l2, 0 2008840: 22 80 00 1c be,a 20088b0 <_Watchdog_Insert+0xcc> 2008844: c4 04 60 04 ld [ %l1 + 4 ], %g2 2008848: c2 04 40 00 ld [ %l1 ], %g1 200884c: 80 a0 60 00 cmp %g1, 0 2008850: 22 80 00 18 be,a 20088b0 <_Watchdog_Insert+0xcc> 2008854: c4 04 60 04 ld [ %l1 + 4 ], %g2 break; if ( delta_interval < after->delta_interval ) { 2008858: e0 04 60 10 ld [ %l1 + 0x10 ], %l0 200885c: 80 a4 80 10 cmp %l2, %l0 2008860: 1a 80 00 04 bcc 2008870 <_Watchdog_Insert+0x8c> 2008864: 82 24 00 12 sub %l0, %l2, %g1 after->delta_interval -= delta_interval; 2008868: 10 80 00 11 b 20088ac <_Watchdog_Insert+0xc8> 200886c: c2 24 60 10 st %g1, [ %l1 + 0x10 ] * 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 ); 2008870: 7f ff e5 38 call 2001d50 2008874: 90 10 00 18 mov %i0, %o0 2008878: 7f ff e5 32 call 2001d40 200887c: 01 00 00 00 nop if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 2008880: c2 06 60 08 ld [ %i1 + 8 ], %g1 2008884: 80 a0 60 01 cmp %g1, 1 2008888: 12 80 00 15 bne 20088dc <_Watchdog_Insert+0xf8> 200888c: a4 24 80 10 sub %l2, %l0, %l2 goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 2008890: c2 05 00 00 ld [ %l4 ], %g1 2008894: 80 a0 40 13 cmp %g1, %l3 2008898: 28 bf ff e9 bleu,a 200883c <_Watchdog_Insert+0x58> 200889c: e2 04 40 00 ld [ %l1 ], %l1 _Watchdog_Sync_level = insert_isr_nest_level; 20088a0: e6 25 80 00 st %l3, [ %l6 ] the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 20088a4: 10 bf ff e5 b 2008838 <_Watchdog_Insert+0x54> 20088a8: e4 06 60 0c ld [ %i1 + 0xc ], %l2 _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 20088ac: c4 04 60 04 ld [ %l1 + 4 ], %g2 the_watchdog->start_time = _Watchdog_Ticks_since_boot; 20088b0: 03 00 80 5a sethi %hi(0x2016800), %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 20088b4: c6 00 80 00 ld [ %g2 ], %g3 20088b8: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 after_node->next = the_node; 20088bc: f2 20 80 00 st %i1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 20088c0: c4 26 60 04 st %g2, [ %i1 + 4 ] 20088c4: c2 26 60 14 st %g1, [ %i1 + 0x14 ] } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 20088c8: e4 26 60 10 st %l2, [ %i1 + 0x10 ] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 20088cc: 82 10 20 02 mov 2, %g1 before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 20088d0: f2 20 e0 04 st %i1, [ %g3 + 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; 20088d4: c6 26 40 00 st %g3, [ %i1 ] 20088d8: c2 26 60 08 st %g1, [ %i1 + 8 ] _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; 20088dc: 03 00 80 5a sethi %hi(0x2016800), %g1 _Watchdog_Sync_count--; 20088e0: 05 00 80 5a sethi %hi(0x2016800), %g2 _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; 20088e4: e6 20 61 40 st %l3, [ %g1 + 0x140 ] _Watchdog_Sync_count--; 20088e8: c2 00 a1 d0 ld [ %g2 + 0x1d0 ], %g1 20088ec: 82 00 7f ff add %g1, -1, %g1 20088f0: c2 20 a1 d0 st %g1, [ %g2 + 0x1d0 ] _ISR_Enable( level ); 20088f4: 7f ff e5 17 call 2001d50 20088f8: 81 e8 00 00 restore 20088fc: 01 00 00 00 nop 0200894c <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 200894c: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 2008950: 7f ff e4 fc call 2001d40 2008954: 01 00 00 00 nop previous_state = the_watchdog->state; 2008958: e0 06 20 08 ld [ %i0 + 8 ], %l0 switch ( previous_state ) { 200895c: 80 a4 20 01 cmp %l0, 1 2008960: 22 80 00 1e be,a 20089d8 <_Watchdog_Remove+0x8c> 2008964: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED 2008968: 0a 80 00 1d bcs 20089dc <_Watchdog_Remove+0x90> 200896c: 03 00 80 5a sethi %hi(0x2016800), %g1 2008970: 80 a4 20 03 cmp %l0, 3 2008974: 18 80 00 1a bgu 20089dc <_Watchdog_Remove+0x90> 2008978: 01 00 00 00 nop 200897c: c6 06 00 00 ld [ %i0 ], %g3 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 2008980: c0 26 20 08 clr [ %i0 + 8 ] next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 2008984: c2 00 c0 00 ld [ %g3 ], %g1 2008988: 80 a0 60 00 cmp %g1, 0 200898c: 02 80 00 07 be 20089a8 <_Watchdog_Remove+0x5c> 2008990: 03 00 80 5a sethi %hi(0x2016800), %g1 next_watchdog->delta_interval += the_watchdog->delta_interval; 2008994: c2 00 e0 10 ld [ %g3 + 0x10 ], %g1 2008998: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 200899c: 82 00 40 02 add %g1, %g2, %g1 20089a0: c2 20 e0 10 st %g1, [ %g3 + 0x10 ] if ( _Watchdog_Sync_count ) 20089a4: 03 00 80 5a sethi %hi(0x2016800), %g1 20089a8: c2 00 61 d0 ld [ %g1 + 0x1d0 ], %g1 ! 20169d0 <_Watchdog_Sync_count> 20089ac: 80 a0 60 00 cmp %g1, 0 20089b0: 22 80 00 07 be,a 20089cc <_Watchdog_Remove+0x80> 20089b4: c4 06 00 00 ld [ %i0 ], %g2 _Watchdog_Sync_level = _ISR_Nest_level; 20089b8: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 20089bc: c4 00 61 20 ld [ %g1 + 0x120 ], %g2 ! 2016920 <_ISR_Nest_level> <== NOT EXECUTED 20089c0: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED 20089c4: c4 20 61 40 st %g2, [ %g1 + 0x140 ] ! 2016940 <_Watchdog_Sync_level> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 20089c8: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED previous = the_node->previous; 20089cc: c2 06 20 04 ld [ %i0 + 4 ], %g1 next->previous = previous; previous->next = next; 20089d0: c4 20 40 00 st %g2, [ %g1 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 20089d4: c2 20 a0 04 st %g1, [ %g2 + 4 ] _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 20089d8: 03 00 80 5a sethi %hi(0x2016800), %g1 20089dc: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 ! 20169d4 <_Watchdog_Ticks_since_boot> 20089e0: c2 26 20 18 st %g1, [ %i0 + 0x18 ] _ISR_Enable( level ); 20089e4: 7f ff e4 db call 2001d50 20089e8: b0 10 00 10 mov %l0, %i0 return( previous_state ); } 20089ec: 81 c7 e0 08 ret 20089f0: 81 e8 00 00 restore 02008b04 <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 2008b04: 9d e3 bf 98 save %sp, -104, %sp uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 2008b08: 80 a6 20 00 cmp %i0, 0 2008b0c: 02 80 00 04 be 2008b1c <_Workspace_Handler_initialization+0x18> 2008b10: 80 8e 20 07 btst 7, %i0 2008b14: 02 80 00 06 be 2008b2c <_Workspace_Handler_initialization+0x28> 2008b18: 03 00 80 5a sethi %hi(0x2016800), %g1 _Internal_error_Occurred( 2008b1c: 90 10 20 00 clr %o0 2008b20: 92 10 20 01 mov 1, %o1 2008b24: 10 80 00 15 b 2008b78 <_Workspace_Handler_initialization+0x74> 2008b28: 94 10 20 02 mov 2, %o2 INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 2008b2c: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 2008b30: c2 08 60 28 ldub [ %g1 + 0x28 ], %g1 2008b34: 80 a0 60 00 cmp %g1, 0 2008b38: 02 80 00 07 be 2008b54 <_Workspace_Handler_initialization+0x50> 2008b3c: 92 10 00 18 mov %i0, %o1 memset( starting_address, 0, size ); 2008b40: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2008b44: 92 10 20 00 clr %o1 <== NOT EXECUTED 2008b48: 40 00 10 49 call 200cc6c <== NOT EXECUTED 2008b4c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED memory_available = _Heap_Initialize( 2008b50: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2008b54: 94 10 00 19 mov %i1, %o2 2008b58: 11 00 80 5a sethi %hi(0x2016800), %o0 2008b5c: 96 10 20 08 mov 8, %o3 2008b60: 7f ff f6 2a call 2006408 <_Heap_Initialize> 2008b64: 90 12 20 a4 or %o0, 0xa4, %o0 starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 2008b68: 80 a2 20 00 cmp %o0, 0 2008b6c: 12 80 00 05 bne 2008b80 <_Workspace_Handler_initialization+0x7c> 2008b70: 92 10 20 01 mov 1, %o1 _Internal_error_Occurred( 2008b74: 94 10 20 03 mov 3, %o2 <== NOT EXECUTED 2008b78: 7f ff f6 ae call 2006630 <_Internal_error_Occurred> 2008b7c: 01 00 00 00 nop 2008b80: 81 c7 e0 08 ret 2008b84: 81 e8 00 00 restore 02001ee4 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 2001ee4: 96 10 00 0a mov %o2, %o3 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 2001ee8: 94 10 20 00 clr %o2 <== NOT EXECUTED 2001eec: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2001ef0: 7f ff ff eb call 2001e9c <__assert_func> <== NOT EXECUTED 2001ef4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2001ef8: 01 00 00 00 nop 02001e9c <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 2001e9c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 2001ea0: 03 00 80 53 sethi %hi(0x2014c00), %g1 <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 2001ea4: 9a 10 00 1a mov %i2, %o5 <== NOT EXECUTED 2001ea8: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2001eac: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED 2001eb0: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 2001eb4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2001eb8: 12 80 00 05 bne 2001ecc <__assert_func+0x30> <== NOT EXECUTED 2001ebc: 98 10 61 20 or %g1, 0x120, %o4 <== NOT EXECUTED 2001ec0: 03 00 80 53 sethi %hi(0x2014c00), %g1 <== NOT EXECUTED 2001ec4: 9a 10 60 d0 or %g1, 0xd0, %o5 ! 2014cd0 <== NOT EXECUTED 2001ec8: 98 10 00 0d mov %o5, %o4 <== NOT EXECUTED 2001ecc: 11 00 80 53 sethi %hi(0x2014c00), %o0 <== NOT EXECUTED 2001ed0: 40 00 03 87 call 2002cec <== NOT EXECUTED 2001ed4: 90 12 21 30 or %o0, 0x130, %o0 ! 2014d30 <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 2001ed8: 40 00 0f 1d call 2005b4c <== NOT EXECUTED 2001edc: 90 10 20 00 clr %o0 <== NOT EXECUTED 2001ee0: 01 00 00 00 nop 0201f0e4 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 201f0e4: 81 c3 e0 08 retl <== NOT EXECUTED 201f0e8: 90 10 20 00 clr %o0 <== NOT EXECUTED 02013ebc <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 2013ebc: 9d e3 bf 98 save %sp, -104, %sp 2013ec0: 40 00 06 d3 call 2015a0c <_fini> 2013ec4: 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(); 2013ec8: 7f ff ff e1 call 2013e4c 2013ecc: 01 00 00 00 nop rtems_shutdown_executive(status); 2013ed0: 40 00 00 4e call 2014008 2013ed4: 90 10 00 18 mov %i0, %o0 2013ed8: 30 80 00 00 b,a 2013ed8 <_exit+0x1c> <== NOT EXECUTED 0202b1d4 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 202b1d4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 202b1d8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 202b1dc: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 202b1e0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202b1e4: 7f ff ff 79 call 202afc8 <== NOT EXECUTED 202b1e8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202b1ec: 01 00 00 00 nop 0201ef68 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr ) { return getpid(); } 201ef68: 81 c3 e0 08 retl <== NOT EXECUTED 201ef6c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 0200a2bc <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 200a2bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a2c0: 7f ff ff e6 call 200a258 <== NOT EXECUTED 200a2c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200a2c8: 01 00 00 00 nop 0201f0dc <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 201f0dc: 81 c3 e0 08 retl <== NOT EXECUTED 201f0e0: 90 10 20 00 clr %o0 <== NOT EXECUTED 0201f3c4 <_link_r>: struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 201f3c4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201f3c8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 201f3cc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201f3d0: 7f ff ff 65 call 201f164 <== NOT EXECUTED 201f3d4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201f3d8: 01 00 00 00 nop 02013e1c <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 2013e1c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2013e20: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2013e24: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 2013e28: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2013e2c: 7f ff ff bf call 2013d28 <== NOT EXECUTED 2013e30: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2013e34: 01 00 00 00 nop 0201f5d0 <_lstat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 201f5d0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201f5d4: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 201f5d8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201f5dc: 7f ff ff c4 call 201f4ec <== NOT EXECUTED 201f5e0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201f5e4: 01 00 00 00 nop 02002980 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 2002980: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2002984: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2002988: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 200298c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002990: 7f ff ff 40 call 2002690 <== NOT EXECUTED 2002994: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2002998: 01 00 00 00 nop 02013fb8 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 2013fb8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2013fbc: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2013fc0: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 2013fc4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2013fc8: 7f ff ff c5 call 2013edc <== NOT EXECUTED 2013fcc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2013fd0: 01 00 00 00 nop 02013fd4 <_realloc_r>: struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 2013fd4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2013fd8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2013fdc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2013fe0: 40 00 00 17 call 201403c <== NOT EXECUTED 2013fe4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2013fe8: 01 00 00 00 nop 0203e444 <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 203e444: 9d e3 bf 48 save %sp, -184, %sp <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 203e448: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 203e44c: 7f ff 1d c1 call 2005b50 <== NOT EXECUTED 203e450: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( s < 0 ) 203e454: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203e458: 06 80 00 13 bl 203e4a4 <_rename_r+0x60> <== NOT EXECUTED 203e45c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED return s; s = link( old, new ); 203e460: 7f ff 83 41 call 201f164 <== NOT EXECUTED 203e464: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( s < 0 ) 203e468: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203e46c: 06 80 00 0e bl 203e4a4 <_rename_r+0x60> <== NOT EXECUTED 203e470: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 203e474: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED 203e478: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED 203e47c: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED 203e480: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 203e484: 12 80 00 06 bne 203e49c <_rename_r+0x58> <== NOT EXECUTED 203e488: 01 00 00 00 nop <== NOT EXECUTED 203e48c: 7f ff 86 45 call 201fda0 <== NOT EXECUTED 203e490: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } 203e494: 81 c7 e0 08 ret <== NOT EXECUTED 203e498: 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 ); 203e49c: 7f ff 87 50 call 20201dc <== NOT EXECUTED 203e4a0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } 203e4a4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 203e4a8: 81 c7 e0 08 ret <== NOT EXECUTED 203e4ac: 81 e8 00 00 restore <== NOT EXECUTED 02005c34 <_stat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2005c34: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2005c38: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2005c3c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2005c40: 7f ff ff c4 call 2005b50 <== NOT EXECUTED 2005c44: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2005c48: 01 00 00 00 nop 0202034c <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 202034c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2020350: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2020354: 7f ff ff a2 call 20201dc <== NOT EXECUTED 2020358: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202035c: 01 00 00 00 nop 0201d704 : int access( const char *path, int amode ) { 201d704: 9d e3 bf 48 save %sp, -184, %sp <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 201d708: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201d70c: 7f ff a1 11 call 2005b50 <== NOT EXECUTED 201d710: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 201d714: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201d718: 12 80 00 13 bne 201d764 <== NOT EXECUTED 201d71c: 80 8e 60 04 btst 4, %i1 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 201d720: 02 80 00 06 be 201d738 <== NOT EXECUTED 201d724: 80 8e 60 02 btst 2, %i1 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) 201d728: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED 201d72c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 201d730: 02 80 00 0d be 201d764 <== NOT EXECUTED 201d734: 80 8e 60 02 btst 2, %i1 <== NOT EXECUTED return -1; } if ( amode & W_OK ) { 201d738: 02 80 00 06 be 201d750 <== NOT EXECUTED 201d73c: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) 201d740: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED 201d744: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 201d748: 02 80 00 07 be 201d764 <== NOT EXECUTED 201d74c: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED return -1; } if ( amode & X_OK ) { 201d750: 02 80 00 07 be 201d76c <== NOT EXECUTED 201d754: c2 17 bf b4 lduh [ %fp + -76 ], %g1 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 201d758: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 201d75c: 12 80 00 04 bne 201d76c <== NOT EXECUTED 201d760: 01 00 00 00 nop <== NOT EXECUTED 201d764: 81 c7 e0 08 ret <== NOT EXECUTED 201d768: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; } return 0; } 201d76c: 81 c7 e0 08 ret <== NOT EXECUTED 201d770: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201d94c : #include int chdir( const char *pathname ) { 201d94c: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 201d950: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 201d954: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201d958: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 201d95c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 201d960: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201d964: 7f ff 9a 81 call 2004368 <== NOT EXECUTED 201d968: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 201d96c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201d970: 12 80 00 37 bne 201da4c <== NOT EXECUTED 201d974: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 201d978: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 201d97c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201d980: 12 80 00 0c bne 201d9b0 <== NOT EXECUTED 201d984: 01 00 00 00 nop <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201d988: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 201d98c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201d990: 02 80 00 04 be 201d9a0 <== NOT EXECUTED 201d994: 01 00 00 00 nop <== NOT EXECUTED 201d998: 9f c0 40 00 call %g1 <== NOT EXECUTED 201d99c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201d9a0: 40 00 3e 80 call 202d3a0 <__errno> <== NOT EXECUTED 201d9a4: 01 00 00 00 nop <== NOT EXECUTED 201d9a8: 10 80 00 14 b 201d9f8 <== NOT EXECUTED 201d9ac: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 201d9b0: 9f c0 40 00 call %g1 <== NOT EXECUTED 201d9b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201d9b8: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 201d9bc: 02 80 00 12 be 201da04 <== NOT EXECUTED 201d9c0: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201d9c4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201d9c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201d9cc: 02 80 00 08 be 201d9ec <== NOT EXECUTED 201d9d0: 01 00 00 00 nop <== NOT EXECUTED 201d9d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201d9d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201d9dc: 02 80 00 04 be 201d9ec <== NOT EXECUTED 201d9e0: 01 00 00 00 nop <== NOT EXECUTED 201d9e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 201d9e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 201d9ec: 40 00 3e 6d call 202d3a0 <__errno> <== NOT EXECUTED 201d9f0: 01 00 00 00 nop <== NOT EXECUTED 201d9f4: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 201d9f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201d9fc: 81 c7 e0 08 ret <== NOT EXECUTED 201da00: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } rtems_filesystem_freenode( &rtems_filesystem_current ); 201da04: d0 00 61 9c ld [ %g1 + 0x19c ], %o0 <== NOT EXECUTED 201da08: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED 201da0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201da10: 22 80 00 09 be,a 201da34 <== NOT EXECUTED 201da14: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201da18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 204541c <== NOT EXECUTED 201da1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201da20: 22 80 00 05 be,a 201da34 <== NOT EXECUTED 201da24: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201da28: 9f c0 40 00 call %g1 <== NOT EXECUTED 201da2c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 201da30: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201da34: d0 00 61 9c ld [ %g1 + 0x19c ], %o0 ! 204559c <== NOT EXECUTED 201da38: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 201da3c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 201da40: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201da44: 40 00 48 44 call 202fb54 <== NOT EXECUTED 201da48: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 201da4c: 81 c7 e0 08 ret <== NOT EXECUTED 201da50: 81 e8 00 00 restore <== NOT EXECUTED 020040f0 : int chmod( const char *path, mode_t mode ) { 20040f0: 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 ); 20040f4: 92 10 20 00 clr %o1 <== NOT EXECUTED 20040f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20040fc: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2004100: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2004104: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2004108: 40 00 00 98 call 2004368 <== NOT EXECUTED 200410c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( status != 0 ) 2004110: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004114: 12 80 00 24 bne 20041a4 <== NOT EXECUTED 2004118: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers ){ 200411c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004120: 32 80 00 10 bne,a 2004160 <== NOT EXECUTED 2004124: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2004128: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 200412c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004130: 02 80 00 08 be 2004150 <== NOT EXECUTED 2004134: 01 00 00 00 nop <== NOT EXECUTED 2004138: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200413c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004140: 02 80 00 04 be 2004150 <== NOT EXECUTED 2004144: 01 00 00 00 nop <== NOT EXECUTED 2004148: 9f c0 40 00 call %g1 <== NOT EXECUTED 200414c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2004150: 40 00 a4 94 call 202d3a0 <__errno> <== NOT EXECUTED 2004154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004158: 10 80 00 12 b 20041a0 <== NOT EXECUTED 200415c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 2004160: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004164: 12 80 00 12 bne 20041ac <== NOT EXECUTED 2004168: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 200416c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2004170: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004174: 02 80 00 08 be 2004194 <== NOT EXECUTED 2004178: 01 00 00 00 nop <== NOT EXECUTED 200417c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2004180: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004184: 02 80 00 04 be 2004194 <== NOT EXECUTED 2004188: 01 00 00 00 nop <== NOT EXECUTED 200418c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004190: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2004194: 40 00 a4 83 call 202d3a0 <__errno> <== NOT EXECUTED 2004198: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200419c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20041a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20041a4: 81 c7 e0 08 ret <== NOT EXECUTED 20041a8: 81 e8 00 00 restore <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); 20041ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20041b0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20041b4: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20041b8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 20041bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041c0: 02 bf ff f9 be 20041a4 <== NOT EXECUTED 20041c4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20041c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20041cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041d0: 02 80 00 04 be 20041e0 <== NOT EXECUTED 20041d4: 01 00 00 00 nop <== NOT EXECUTED 20041d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20041dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 20041e0: 81 c7 e0 08 ret <== NOT EXECUTED 20041e4: 81 e8 00 00 restore <== NOT EXECUTED 0201da54 : int chown( const char *path, uid_t owner, gid_t group ) { 201da54: 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 ) ) 201da58: 92 10 20 00 clr %o1 <== NOT EXECUTED 201da5c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201da60: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 201da64: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 201da68: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201da6c: 7f ff 9a 3f call 2004368 <== NOT EXECUTED 201da70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201da74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201da78: 12 80 00 10 bne 201dab8 <== NOT EXECUTED 201da7c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 201da80: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 201da84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 201da88: 12 80 00 0e bne 201dac0 <== NOT EXECUTED 201da8c: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201da90: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201da94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201da98: 02 80 00 04 be 201daa8 <== NOT EXECUTED 201da9c: 01 00 00 00 nop <== NOT EXECUTED 201daa0: 9f c0 40 00 call %g1 <== NOT EXECUTED 201daa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201daa8: 40 00 3e 3e call 202d3a0 <__errno> <== NOT EXECUTED 201daac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201dab0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201dab4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201dab8: 81 c7 e0 08 ret <== NOT EXECUTED 201dabc: 81 e8 00 00 restore <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); 201dac0: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 201dac4: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 201dac8: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED 201dacc: 9f c0 80 00 call %g2 <== NOT EXECUTED 201dad0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201dad4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201dad8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201dadc: 02 bf ff f7 be 201dab8 <== NOT EXECUTED 201dae0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 201dae4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201dae8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201daec: 02 80 00 04 be 201dafc <== NOT EXECUTED 201daf0: 01 00 00 00 nop <== NOT EXECUTED 201daf4: 9f c0 40 00 call %g1 <== NOT EXECUTED 201daf8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 201dafc: 81 c7 e0 08 ret <== NOT EXECUTED 201db00: 81 e8 00 00 restore <== NOT EXECUTED 0201db04 : #include int chroot( const char *pathname ) { 201db04: 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) { 201db08: 23 00 81 15 sethi %hi(0x2045400), %l1 <== NOT EXECUTED 201db0c: e0 04 61 9c ld [ %l1 + 0x19c ], %l0 ! 204559c <== NOT EXECUTED 201db10: 03 00 81 68 sethi %hi(0x205a000), %g1 <== NOT EXECUTED 201db14: 82 10 60 e0 or %g1, 0xe0, %g1 ! 205a0e0 <== NOT EXECUTED 201db18: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 201db1c: 12 80 00 0e bne 201db54 <== NOT EXECUTED 201db20: 01 00 00 00 nop <== NOT EXECUTED rtems_libio_set_private_env(); /* try to set a new private env*/ 201db24: 40 00 07 90 call 201f964 <== NOT EXECUTED 201db28: 01 00 00 00 nop <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 201db2c: c2 04 61 9c ld [ %l1 + 0x19c ], %g1 <== NOT EXECUTED 201db30: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 201db34: 12 80 00 08 bne 201db54 <== NOT EXECUTED 201db38: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201db3c: 40 00 3e 19 call 202d3a0 <__errno> <== NOT EXECUTED 201db40: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 201db44: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201db48: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201db4c: 81 c7 e0 08 ret <== NOT EXECUTED 201db50: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 201db54: 7f ff ff 7e call 201d94c <== NOT EXECUTED 201db58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if (result) { 201db5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201db60: 12 80 00 0b bne 201db8c <== NOT EXECUTED 201db64: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 201db68: 11 00 81 00 sethi %hi(0x2040000), %o0 <== NOT EXECUTED 201db6c: 92 10 20 00 clr %o1 <== NOT EXECUTED 201db70: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED 201db74: 94 07 bf e8 add %fp, -24, %o2 <== NOT EXECUTED 201db78: 7f ff 99 fc call 2004368 <== NOT EXECUTED 201db7c: 96 10 20 00 clr %o3 <== NOT EXECUTED 201db80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201db84: 02 80 00 0a be 201dbac <== NOT EXECUTED 201db88: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 201db8c: 40 00 3e 05 call 202d3a0 <__errno> <== NOT EXECUTED 201db90: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201db94: 40 00 3e 03 call 202d3a0 <__errno> <== NOT EXECUTED 201db98: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 201db9c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201dba0: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 201dba4: 81 c7 e0 08 ret <== NOT EXECUTED 201dba8: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 201dbac: d0 00 61 9c ld [ %g1 + 0x19c ], %o0 <== NOT EXECUTED 201dbb0: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== NOT EXECUTED 201dbb4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201dbb8: 22 80 00 09 be,a 201dbdc <== NOT EXECUTED 201dbbc: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201dbc0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 204541c <== NOT EXECUTED 201dbc4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201dbc8: 22 80 00 05 be,a 201dbdc <== NOT EXECUTED 201dbcc: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201dbd0: 9f c0 40 00 call %g1 <== NOT EXECUTED 201dbd4: 90 02 20 14 add %o0, 0x14, %o0 <== NOT EXECUTED rtems_filesystem_root = loc; 201dbd8: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201dbdc: d0 00 61 9c ld [ %g1 + 0x19c ], %o0 ! 204559c <== NOT EXECUTED 201dbe0: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 201dbe4: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201dbe8: 90 02 20 14 add %o0, 0x14, %o0 <== NOT EXECUTED 201dbec: 40 00 47 da call 202fb54 <== NOT EXECUTED 201dbf0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 201dbf4: 81 c7 e0 08 ret <== NOT EXECUTED 201dbf8: 81 e8 00 00 restore <== NOT EXECUTED 02009ff0 : #include int close( int fd ) { 2009ff0: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 2009ff4: 03 00 80 56 sethi %hi(0x2015800), %g1 2009ff8: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 2015a28 2009ffc: 80 a6 00 01 cmp %i0, %g1 200a000: 1a 80 00 0e bcc 200a038 200a004: 01 00 00 00 nop iop = rtems_libio_iop(fd); 200a008: 03 00 80 59 sethi %hi(0x2016400), %g1 200a00c: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac 200a010: 85 2e 20 02 sll %i0, 2, %g2 200a014: 83 2e 20 04 sll %i0, 4, %g1 200a018: 82 20 40 02 sub %g1, %g2, %g1 200a01c: 82 00 40 18 add %g1, %i0, %g1 200a020: 83 28 60 02 sll %g1, 2, %g1 200a024: b0 00 c0 01 add %g3, %g1, %i0 rtems_libio_check_is_open(iop); 200a028: c2 06 20 0c ld [ %i0 + 0xc ], %g1 200a02c: 80 88 61 00 btst 0x100, %g1 200a030: 32 80 00 08 bne,a 200a050 200a034: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 200a038: 40 00 08 e2 call 200c3c0 <__errno> <== NOT EXECUTED 200a03c: 01 00 00 00 nop <== NOT EXECUTED 200a040: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 200a044: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a048: 10 80 00 16 b 200a0a0 <== NOT EXECUTED 200a04c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 200a050: c2 00 60 04 ld [ %g1 + 4 ], %g1 200a054: 80 a0 60 00 cmp %g1, 0 200a058: 02 80 00 05 be 200a06c 200a05c: a0 10 20 00 clr %l0 rc = (*iop->handlers->close_h)( iop ); 200a060: 9f c0 40 00 call %g1 200a064: 90 10 00 18 mov %i0, %o0 200a068: a0 10 00 08 mov %o0, %l0 rtems_filesystem_freenode( &iop->pathinfo ); 200a06c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200a070: 80 a0 60 00 cmp %g1, 0 200a074: 02 80 00 08 be 200a094 200a078: 01 00 00 00 nop 200a07c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200a080: 80 a0 60 00 cmp %g1, 0 200a084: 02 80 00 04 be 200a094 200a088: 01 00 00 00 nop 200a08c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a090: 90 06 20 10 add %i0, 0x10, %o0 <== NOT EXECUTED rtems_libio_free( iop ); 200a094: 40 00 00 e8 call 200a434 200a098: 90 10 00 18 mov %i0, %o0 return rc; 200a09c: 90 10 00 10 mov %l0, %o0 } 200a0a0: 81 c7 e0 08 ret 200a0a4: 91 e8 00 08 restore %g0, %o0, %o0 0202add8 : * close a directory. */ int closedir( DIR *dirp ) { 202add8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int fd; if ( !dirp ) 202addc: a0 96 20 00 orcc %i0, 0, %l0 <== NOT EXECUTED 202ade0: 32 80 00 08 bne,a 202ae00 <== NOT EXECUTED 202ade4: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 202ade8: 40 00 09 6e call 202d3a0 <__errno> <== NOT EXECUTED 202adec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202adf0: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 202adf4: 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)); } 202adf8: 81 c7 e0 08 ret <== NOT EXECUTED 202adfc: 81 e8 00 00 restore <== NOT EXECUTED if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; 202ae00: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 202ae04: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; 202ae08: c0 24 20 04 clr [ %l0 + 4 ] <== NOT EXECUTED (void)free((void *)dirp->dd_buf); 202ae0c: 7f ff 65 a9 call 20044b0 <== NOT EXECUTED 202ae10: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED (void)free((void *)dirp); 202ae14: 7f ff 65 a7 call 20044b0 <== NOT EXECUTED 202ae18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return(close(fd)); 202ae1c: 7f ff 64 f3 call 20041e8 <== NOT EXECUTED 202ae20: 81 e8 00 00 restore <== NOT EXECUTED 202ae24: 01 00 00 00 nop 0200bad4 : */ int device_close( rtems_libio_t *iop ) { 200bad4: 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; 200bad8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 args.iop = iop; 200badc: f0 27 bf ec st %i0, [ %fp + -20 ] args.flags = 0; 200bae0: c0 27 bf f0 clr [ %fp + -16 ] args.mode = 0; 200bae4: c0 27 bf f4 clr [ %fp + -12 ] status = rtems_io_close( 200bae8: d2 00 60 50 ld [ %g1 + 0x50 ], %o1 200baec: d0 00 60 4c ld [ %g1 + 0x4c ], %o0 200baf0: 94 07 bf ec add %fp, -20, %o2 200baf4: 40 00 01 26 call 200bf8c 200baf8: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200bafc: 80 a2 20 00 cmp %o0, 0 200bb00: 02 80 00 05 be 200bb14 200bb04: 01 00 00 00 nop return rtems_deviceio_errno(status); 200bb08: 7f ff ff a3 call 200b994 <== NOT EXECUTED 200bb0c: 01 00 00 00 nop <== NOT EXECUTED 200bb10: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 200bb14: 81 c7 e0 08 ret 200bb18: 81 e8 00 00 restore 0200b98c : rtems_libio_t *iop, off_t length ) { return 0; } 200b98c: 81 c3 e0 08 retl <== NOT EXECUTED 200b990: 90 10 20 00 clr %o0 <== NOT EXECUTED 0200b9c8 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b9c8: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200b9cc: 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; 200b9d0: f2 27 bf ec st %i1, [ %fp + -20 ] <== NOT EXECUTED args.buffer = buffer; 200b9d4: 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; 200b9d8: 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( 200b9dc: d2 00 60 50 ld [ %g1 + 0x50 ], %o1 <== NOT EXECUTED 200b9e0: d0 00 60 4c ld [ %g1 + 0x4c ], %o0 <== NOT EXECUTED 200b9e4: 40 00 01 80 call 200bfe4 <== NOT EXECUTED 200b9e8: 94 07 bf e8 add %fp, -24, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200b9ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200b9f0: 22 80 00 06 be,a 200ba08 <== NOT EXECUTED 200b9f4: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200b9f8: 7f ff ff e7 call 200b994 <== NOT EXECUTED 200b9fc: 01 00 00 00 nop <== NOT EXECUTED return args.ioctl_return; } 200ba00: 81 c7 e0 08 ret <== NOT EXECUTED 200ba04: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 200ba08: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200ba0c: 81 c7 e0 08 ret <== NOT EXECUTED 200ba10: 81 e8 00 00 restore <== NOT EXECUTED 0200b984 : off_t offset, int whence ) { return offset; } 200b984: 81 c3 e0 08 retl <== NOT EXECUTED 200b988: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 0200bb1c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200bb1c: 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; 200bb20: 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; 200bb24: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 args.iop = iop; 200bb28: f0 27 bf ec st %i0, [ %fp + -20 ] args.flags = iop->flags; 200bb2c: c2 27 bf f0 st %g1, [ %fp + -16 ] args.mode = mode; 200bb30: f6 27 bf f4 st %i3, [ %fp + -12 ] status = rtems_io_open( 200bb34: d2 00 a0 50 ld [ %g2 + 0x50 ], %o1 200bb38: d0 00 a0 4c ld [ %g2 + 0x4c ], %o0 200bb3c: 94 07 bf ec add %fp, -20, %o2 200bb40: 40 00 01 3f call 200c03c 200bb44: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200bb48: 80 a2 20 00 cmp %o0, 0 200bb4c: 02 80 00 05 be 200bb60 200bb50: 01 00 00 00 nop return rtems_deviceio_errno(status); 200bb54: 7f ff ff 90 call 200b994 <== NOT EXECUTED 200bb58: 01 00 00 00 nop <== NOT EXECUTED 200bb5c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 200bb60: 81 c7 e0 08 ret 200bb64: 81 e8 00 00 restore 0200ba74 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200ba74: 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; 200ba78: 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; 200ba7c: 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; 200ba80: c6 06 20 2c ld [ %i0 + 0x2c ], %g3 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 200ba84: 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; 200ba88: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200ba8c: f4 27 bf ec st %i2, [ %fp + -20 ] <== NOT EXECUTED args.flags = iop->flags; 200ba90: 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; 200ba94: 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; 200ba98: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED status = rtems_io_read( 200ba9c: d2 00 e0 50 ld [ %g3 + 0x50 ], %o1 <== NOT EXECUTED 200baa0: d0 00 e0 4c ld [ %g3 + 0x4c ], %o0 <== NOT EXECUTED 200baa4: 40 00 01 7c call 200c094 <== NOT EXECUTED 200baa8: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200baac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bab0: 22 80 00 06 be,a 200bac8 <== NOT EXECUTED 200bab4: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200bab8: 7f ff ff b7 call 200b994 <== NOT EXECUTED 200babc: 01 00 00 00 nop <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200bac0: 81 c7 e0 08 ret <== NOT EXECUTED 200bac4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 200bac8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200bacc: 81 c7 e0 08 ret <== NOT EXECUTED 200bad0: 81 e8 00 00 restore <== NOT EXECUTED 0200ba14 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200ba14: 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; 200ba18: 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; 200ba1c: 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; 200ba20: c6 06 20 2c ld [ %i0 + 0x2c ], %g3 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 200ba24: 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; 200ba28: c2 27 bf e4 st %g1, [ %fp + -28 ] args.buffer = (void *) buffer; args.count = count; 200ba2c: f4 27 bf ec st %i2, [ %fp + -20 ] args.flags = iop->flags; 200ba30: 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; 200ba34: 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; 200ba38: c0 27 bf f4 clr [ %fp + -12 ] status = rtems_io_write( 200ba3c: d2 00 e0 50 ld [ %g3 + 0x50 ], %o1 200ba40: d0 00 e0 4c ld [ %g3 + 0x4c ], %o0 200ba44: 40 00 01 aa call 200c0ec 200ba48: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200ba4c: 80 a2 20 00 cmp %o0, 0 200ba50: 22 80 00 06 be,a 200ba68 200ba54: d0 07 bf f4 ld [ %fp + -12 ], %o0 return rtems_deviceio_errno(status); 200ba58: 7f ff ff cf call 200b994 <== NOT EXECUTED 200ba5c: 01 00 00 00 nop <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200ba60: 81 c7 e0 08 ret <== NOT EXECUTED 200ba64: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 200ba68: b0 10 00 08 mov %o0, %i0 200ba6c: 81 c7 e0 08 ret 200ba70: 81 e8 00 00 restore 02003b78 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2003b78: 9d e3 bf 98 save %sp, -104, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2003b7c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 2003b80: 80 a0 60 00 cmp %g1, 0 2003b84: 02 80 00 1a be 2003bec 2003b88: 01 00 00 00 nop rtems_interrupt_disable (level); 2003b8c: 7f ff f8 6d call 2001d40 <== NOT EXECUTED 2003b90: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; 2003b94: 10 80 00 0f b 2003bd0 <== NOT EXECUTED 2003b98: a0 10 20 02 mov 2, %l0 ! 2 <== NOT EXECUTED rtems_interrupt_enable (level); 2003b9c: 7f ff f8 6d call 2001d50 <== NOT EXECUTED 2003ba0: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003ba4: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 2003ba8: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003bac: 40 00 06 28 call 200544c <== NOT EXECUTED 2003bb0: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003bb4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003bb8: 02 80 00 04 be 2003bc8 <== NOT EXECUTED 2003bbc: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2003bc0: 40 00 07 e3 call 2005b4c <== NOT EXECUTED 2003bc4: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 2003bc8: 7f ff f8 5e call 2001d40 <== NOT EXECUTED 2003bcc: 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) { 2003bd0: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2003bd4: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2003bd8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003bdc: 32 bf ff f0 bne,a 2003b9c <== NOT EXECUTED 2003be0: 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); 2003be4: 7f ff f8 5b call 2001d50 <== NOT EXECUTED 2003be8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 2003bec: 81 c7 e0 08 ret 2003bf0: 81 e8 00 00 restore 020035e4 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 20035e4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 20035e8: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 20035ec: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20035f0: 02 80 00 1b be 200365c <== NOT EXECUTED 20035f4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20035f8: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 20035fc: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2015f90 <__ctype_ptr> <== NOT EXECUTED 2003600: 84 0e 20 ff and %i0, 0xff, %g2 <== NOT EXECUTED 2003604: c2 08 40 02 ldub [ %g1 + %g2 ], %g1 <== NOT EXECUTED 2003608: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 200360c: 22 80 00 15 be,a 2003660 <== NOT EXECUTED 2003610: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 2003614: 80 a0 a0 09 cmp %g2, 9 <== NOT EXECUTED 2003618: 02 80 00 11 be 200365c <== NOT EXECUTED 200361c: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED 2003620: 02 80 00 10 be 2003660 <== NOT EXECUTED 2003624: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 2003628: 82 1e 20 40 xor %i0, 0x40, %g1 <== NOT EXECUTED 200362c: 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] = '^'; 2003630: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 2003634: 90 07 bf f0 add %fp, -16, %o0 <== 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] = '^'; 2003638: c2 2f bf f0 stb %g1, [ %fp + -16 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 200363c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2003640: 7f ff ff 3b call 200332c <== NOT EXECUTED 2003644: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 2003648: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 200364c: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 2003650: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED 2003654: 81 c7 e0 08 ret <== NOT EXECUTED 2003658: 81 e8 00 00 restore <== NOT EXECUTED } else { oproc (c, tty); 200365c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 2003660: 7f ff ff 7f call 200345c <== NOT EXECUTED 2003664: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003668: 81 c7 e0 08 ret <== NOT EXECUTED 200366c: 81 e8 00 00 restore <== NOT EXECUTED 0201e66c : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 201e66c: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201e670: d0 00 62 64 ld [ %g1 + 0x264 ], %o0 ! 2059264 <== NOT EXECUTED 201e674: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e678: 02 80 00 05 be 201e68c <== NOT EXECUTED 201e67c: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 201e680: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201e684: 40 00 3b 9f call 202d500 <== NOT EXECUTED 201e688: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201e68c: 81 c3 e0 08 retl <== NOT EXECUTED 201e690: 01 00 00 00 nop 0201e694 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 201e694: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201e698: d0 00 61 7c ld [ %g1 + 0x17c ], %o0 ! 205917c <== NOT EXECUTED 201e69c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e6a0: 02 80 00 05 be 201e6b4 <== NOT EXECUTED 201e6a4: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 201e6a8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201e6ac: 40 00 3b 95 call 202d500 <== NOT EXECUTED 201e6b0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201e6b4: 81 c3 e0 08 retl <== NOT EXECUTED 201e6b8: 01 00 00 00 nop 02003670 : * 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) { 2003670: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (tty->ccount == 0) 2003674: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2003678: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200367c: 02 80 00 0a be 20036a4 <== NOT EXECUTED 2003680: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 2003684: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003688: 02 80 00 78 be 2003868 <== NOT EXECUTED 200368c: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 2003690: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 2003694: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003698: 32 80 00 05 bne,a 20036ac <== NOT EXECUTED 200369c: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED tty->ccount = 0; 20036a0: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED 20036a4: 81 c7 e0 08 ret <== NOT EXECUTED 20036a8: 81 e8 00 00 restore <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { 20036ac: 12 80 00 6f bne 2003868 <== NOT EXECUTED 20036b0: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 20036b4: 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; 20036b8: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 20036bc: 7f ff ff ca call 20035e4 <== NOT EXECUTED 20036c0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 20036c4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); 20036c8: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) 20036cc: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20036d0: 02 bf ff f5 be 20036a4 <== NOT EXECUTED 20036d4: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 20036d8: 30 80 00 0f b,a 2003714 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 20036dc: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 20036e0: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 20036e4: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 20036e8: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 20036ec: 02 80 00 5a be 2003854 <== NOT EXECUTED 20036f0: c2 08 40 03 ldub [ %g1 + %g3 ], %g1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 20036f4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20036f8: 12 80 00 09 bne 200371c <== NOT EXECUTED 20036fc: b0 08 60 ff and %g1, 0xff, %i0 <== NOT EXECUTED 2003700: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED 2003704: 12 80 00 07 bne 2003720 <== NOT EXECUTED 2003708: 80 a6 20 09 cmp %i0, 9 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 200370c: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED 2003710: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED 2003714: 7f ff ff b4 call 20035e4 <== NOT EXECUTED 2003718: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == '\t') { 200371c: 80 a6 20 09 cmp %i0, 9 <== NOT EXECUTED 2003720: 32 80 00 29 bne,a 20037c4 <== NOT EXECUTED 2003724: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 2003728: 9a 08 a2 00 and %g2, 0x200, %o5 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; 200372c: f0 04 20 2c ld [ %l0 + 0x2c ], %i0 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2003730: c8 04 40 00 ld [ %l1 ], %g4 <== NOT EXECUTED 2003734: 10 80 00 12 b 200377c <== NOT EXECUTED 2003738: 84 10 20 00 clr %g2 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { 200373c: c2 08 40 02 ldub [ %g1 + %g2 ], %g1 <== NOT EXECUTED 2003740: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED 2003744: 32 80 00 05 bne,a 2003758 <== NOT EXECUTED 2003748: c2 09 00 01 ldub [ %g4 + %g1 ], %g1 <== NOT EXECUTED col = (col | 7) + 1; 200374c: 82 16 20 07 or %i0, 7, %g1 <== NOT EXECUTED 2003750: 10 80 00 0a b 2003778 <== NOT EXECUTED 2003754: b0 00 60 01 add %g1, 1, %i0 <== NOT EXECUTED } else if (iscntrl (c)) { 2003758: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 200375c: 22 80 00 07 be,a 2003778 <== NOT EXECUTED 2003760: b0 06 20 01 inc %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2003764: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED 2003768: 32 80 00 04 bne,a 2003778 <== NOT EXECUTED 200376c: b0 06 20 02 add %i0, 2, %i0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2003770: 10 80 00 03 b 200377c <== NOT EXECUTED 2003774: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2003778: 84 00 a0 01 inc %g2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 200377c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 2003780: 32 bf ff ef bne,a 200373c <== NOT EXECUTED 2003784: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003788: 10 80 00 08 b 20037a8 <== NOT EXECUTED 200378c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2003790: 7f ff fe e7 call 200332c <== NOT EXECUTED 2003794: 01 00 00 00 nop <== NOT EXECUTED tty->column--; 2003798: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 200379c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20037a0: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 20037a4: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 20037a8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20037ac: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 20037b0: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 20037b4: 14 bf ff f7 bg 2003790 <== NOT EXECUTED 20037b8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 20037bc: 10 80 00 27 b 2003858 <== NOT EXECUTED 20037c0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 20037c4: c2 08 40 18 ldub [ %g1 + %i0 ], %g1 <== NOT EXECUTED 20037c8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20037cc: 22 80 00 10 be,a 200380c <== NOT EXECUTED 20037d0: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED 20037d4: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 20037d8: 22 80 00 0d be,a 200380c <== NOT EXECUTED 20037dc: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 20037e0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20037e4: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20037e8: 7f ff fe d1 call 200332c <== NOT EXECUTED 20037ec: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20037f0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20037f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20037f8: 22 80 00 05 be,a 200380c <== NOT EXECUTED 20037fc: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED tty->column--; 2003800: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003804: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 2003808: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED 200380c: c2 08 40 18 ldub [ %g1 + %i0 ], %g1 <== NOT EXECUTED 2003810: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003814: 02 80 00 07 be 2003830 <== NOT EXECUTED 2003818: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 200381c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003820: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003824: 02 80 00 0d be 2003858 <== NOT EXECUTED 2003828: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 200382c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2003830: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003834: 7f ff fe be call 200332c <== NOT EXECUTED 2003838: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 200383c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003840: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003844: 02 80 00 05 be 2003858 <== NOT EXECUTED 2003848: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 200384c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003850: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } } } if (!lineFlag) 2003854: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003858: 32 80 00 0a bne,a 2003880 <== NOT EXECUTED 200385c: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2003860: 81 c7 e0 08 ret <== NOT EXECUTED 2003864: 81 e8 00 00 restore <== NOT EXECUTED 2003868: a2 10 63 90 or %g1, 0x390, %l1 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 200386c: 03 00 80 53 sethi %hi(0x2014c00), %g1 <== NOT EXECUTED 2003870: a4 10 61 a8 or %g1, 0x1a8, %l2 ! 2014da8 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003874: 03 00 80 53 sethi %hi(0x2014c00), %g1 <== NOT EXECUTED 2003878: a6 10 61 a0 or %g1, 0x1a0, %l3 ! 2014da0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 200387c: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2003880: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2003884: 32 bf ff 96 bne,a 20036dc <== NOT EXECUTED 2003888: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200388c: 81 c7 e0 08 ret <== NOT EXECUTED 2003890: 81 e8 00 00 restore <== NOT EXECUTED 0202ae28 : #include int fchdir( int fd ) { 202ae28: 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 ); 202ae2c: 03 00 81 12 sethi %hi(0x2044800), %g1 <== NOT EXECUTED 202ae30: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2044b18 <== NOT EXECUTED 202ae34: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202ae38: 1a 80 00 0e bcc 202ae70 <== NOT EXECUTED 202ae3c: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202ae40: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 202ae44: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2059b44 <== NOT EXECUTED 202ae48: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 202ae4c: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 202ae50: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202ae54: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 202ae58: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202ae5c: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202ae60: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED 202ae64: 80 89 21 00 btst 0x100, %g4 <== NOT EXECUTED 202ae68: 12 80 00 06 bne 202ae80 <== NOT EXECUTED 202ae6c: 80 89 20 02 btst 2, %g4 <== NOT EXECUTED 202ae70: 40 00 09 4c call 202d3a0 <__errno> <== NOT EXECUTED 202ae74: 01 00 00 00 nop <== NOT EXECUTED 202ae78: 10 80 00 1b b 202aee4 <== NOT EXECUTED 202ae7c: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 202ae80: 32 80 00 06 bne,a 202ae98 <== NOT EXECUTED 202ae84: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED 202ae88: 40 00 09 46 call 202d3a0 <__errno> <== NOT EXECUTED 202ae8c: 01 00 00 00 nop <== NOT EXECUTED 202ae90: 10 80 00 15 b 202aee4 <== NOT EXECUTED 202ae94: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 202ae98: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 202ae9c: 02 80 00 06 be 202aeb4 <== NOT EXECUTED 202aea0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 202aea4: c4 01 20 10 ld [ %g4 + 0x10 ], %g2 <== NOT EXECUTED 202aea8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202aeac: 32 80 00 06 bne,a 202aec4 <== NOT EXECUTED 202aeb0: b0 00 60 10 add %g1, 0x10, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202aeb4: 40 00 09 3b call 202d3a0 <__errno> <== NOT EXECUTED 202aeb8: 01 00 00 00 nop <== NOT EXECUTED 202aebc: 10 80 00 0a b 202aee4 <== NOT EXECUTED 202aec0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 202aec4: 9f c0 80 00 call %g2 <== NOT EXECUTED 202aec8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202aecc: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 202aed0: 02 80 00 07 be 202aeec <== NOT EXECUTED 202aed4: 25 00 81 15 sethi %hi(0x2045400), %l2 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 202aed8: 40 00 09 32 call 202d3a0 <__errno> <== NOT EXECUTED 202aedc: 01 00 00 00 nop <== NOT EXECUTED 202aee0: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 202aee4: 10 80 00 1b b 202af50 <== NOT EXECUTED 202aee8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 202aeec: e0 04 a1 9c ld [ %l2 + 0x19c ], %l0 <== NOT EXECUTED 202aef0: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 202aef4: a0 04 20 04 add %l0, 4, %l0 <== NOT EXECUTED 202aef8: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED 202aefc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 202af00: 40 00 13 15 call 202fb54 <== NOT EXECUTED 202af04: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 202af08: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 202af0c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 202af10: 40 00 13 11 call 202fb54 <== NOT EXECUTED 202af14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 202af18: 92 10 20 00 clr %o1 <== NOT EXECUTED 202af1c: 11 00 81 00 sethi %hi(0x2040000), %o0 <== NOT EXECUTED 202af20: 94 07 bf e8 add %fp, -24, %o2 <== NOT EXECUTED 202af24: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED 202af28: 7f ff 65 10 call 2004368 <== NOT EXECUTED 202af2c: 96 10 20 00 clr %o3 <== NOT EXECUTED 202af30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202af34: 02 80 00 09 be 202af58 <== NOT EXECUTED 202af38: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 202af3c: d0 04 a1 9c ld [ %l2 + 0x19c ], %o0 <== NOT EXECUTED 202af40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 202af44: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 202af48: 40 00 13 03 call 202fb54 <== NOT EXECUTED 202af4c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 202af50: 81 c7 e0 08 ret <== NOT EXECUTED 202af54: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 202af58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202af5c: 22 80 00 09 be,a 202af80 <== NOT EXECUTED 202af60: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 202af64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 204541c <== NOT EXECUTED 202af68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202af6c: 22 80 00 05 be,a 202af80 <== NOT EXECUTED 202af70: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 202af74: 9f c0 40 00 call %g1 <== NOT EXECUTED 202af78: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 202af7c: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 202af80: d0 00 61 9c ld [ %g1 + 0x19c ], %o0 ! 204559c <== NOT EXECUTED 202af84: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 202af88: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 202af8c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 202af90: 40 00 12 f1 call 202fb54 <== NOT EXECUTED 202af94: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 202af98: 81 c7 e0 08 ret <== NOT EXECUTED 202af9c: 81 e8 00 00 restore <== NOT EXECUTED 0201de38 : int fchmod( int fd, mode_t mode ) { 201de38: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201de3c: 03 00 81 12 sethi %hi(0x2044800), %g1 <== NOT EXECUTED 201de40: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2044b18 <== NOT EXECUTED 201de44: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 201de48: 1a 80 00 0e bcc 201de80 <== NOT EXECUTED 201de4c: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 201de50: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 201de54: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2059b44 <== NOT EXECUTED 201de58: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 201de5c: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 201de60: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 201de64: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 201de68: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 201de6c: 84 00 c0 01 add %g3, %g1, %g2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 201de70: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED 201de74: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 201de78: 12 80 00 06 bne 201de90 <== NOT EXECUTED 201de7c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 201de80: 40 00 3d 48 call 202d3a0 <__errno> <== NOT EXECUTED 201de84: 01 00 00 00 nop <== NOT EXECUTED 201de88: 10 80 00 0f b 201dec4 <== NOT EXECUTED 201de8c: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 201de90: 32 80 00 06 bne,a 201dea8 <== NOT EXECUTED 201de94: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED 201de98: 40 00 3d 42 call 202d3a0 <__errno> <== NOT EXECUTED 201de9c: 01 00 00 00 nop <== NOT EXECUTED 201dea0: 10 80 00 09 b 201dec4 <== NOT EXECUTED 201dea4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 201dea8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201deac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201deb0: 32 80 00 08 bne,a 201ded0 <== NOT EXECUTED 201deb4: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201deb8: 40 00 3d 3a call 202d3a0 <__errno> <== NOT EXECUTED 201debc: 01 00 00 00 nop <== NOT EXECUTED 201dec0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201dec4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201dec8: 10 80 00 07 b 201dee4 <== NOT EXECUTED 201decc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 201ded0: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED 201ded4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201ded8: 90 00 a0 10 add %g2, 0x10, %o0 <== NOT EXECUTED 201dedc: 9f c0 40 00 call %g1 <== NOT EXECUTED 201dee0: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 201dee4: 81 c7 e0 08 ret <== NOT EXECUTED 201dee8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0201deec : int fchown( int fd, uid_t owner, gid_t group ) { 201deec: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201def0: 03 00 81 12 sethi %hi(0x2044800), %g1 <== NOT EXECUTED 201def4: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2044b18 <== NOT EXECUTED 201def8: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 201defc: 1a 80 00 0e bcc 201df34 <== NOT EXECUTED 201df00: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 201df04: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 201df08: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2059b44 <== NOT EXECUTED 201df0c: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 201df10: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 201df14: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 201df18: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 201df1c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 201df20: 84 00 c0 01 add %g3, %g1, %g2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 201df24: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED 201df28: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 201df2c: 12 80 00 06 bne 201df44 <== NOT EXECUTED 201df30: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 201df34: 40 00 3d 1b call 202d3a0 <__errno> <== NOT EXECUTED 201df38: 01 00 00 00 nop <== NOT EXECUTED 201df3c: 10 80 00 0f b 201df78 <== NOT EXECUTED 201df40: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 201df44: 32 80 00 06 bne,a 201df5c <== NOT EXECUTED 201df48: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== NOT EXECUTED 201df4c: 40 00 3d 15 call 202d3a0 <__errno> <== NOT EXECUTED 201df50: 01 00 00 00 nop <== NOT EXECUTED 201df54: 10 80 00 09 b 201df78 <== NOT EXECUTED 201df58: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 201df5c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 201df60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201df64: 12 80 00 08 bne 201df84 <== NOT EXECUTED 201df68: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201df6c: 40 00 3d 0d call 202d3a0 <__errno> <== NOT EXECUTED 201df70: 01 00 00 00 nop <== NOT EXECUTED 201df74: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201df78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201df7c: 10 80 00 07 b 201df98 <== NOT EXECUTED 201df80: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 201df84: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 201df88: 90 00 a0 10 add %g2, 0x10, %o0 <== NOT EXECUTED 201df8c: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 201df90: 9f c0 40 00 call %g1 <== NOT EXECUTED 201df94: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 201df98: 81 c7 e0 08 ret <== NOT EXECUTED 201df9c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0202afc8 : int fcntl( int fd, int cmd, ... ) { 202afc8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 202afcc: 03 00 81 12 sethi %hi(0x2044800), %g1 <== NOT EXECUTED 202afd0: da 00 63 18 ld [ %g1 + 0x318 ], %o5 ! 2044b18 <== NOT EXECUTED ... ) { int ret; va_list ap; va_start( ap, cmd ); 202afd4: 86 07 a0 4c add %fp, 0x4c, %g3 <== NOT EXECUTED 202afd8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 202afdc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 202afe0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 202afe4: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 202afe8: 80 a6 00 0d cmp %i0, %o5 <== NOT EXECUTED 202afec: 1a 80 00 0e bcc 202b024 <== NOT EXECUTED 202aff0: c6 27 bf f4 st %g3, [ %fp + -12 ] <== NOT EXECUTED iop = rtems_libio_iop( fd ); 202aff4: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 202aff8: c8 00 63 44 ld [ %g1 + 0x344 ], %g4 ! 2059b44 <== NOT EXECUTED 202affc: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 202b000: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 202b004: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202b008: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 202b00c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202b010: b8 01 00 01 add %g4, %g1, %i4 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202b014: d0 07 20 0c ld [ %i4 + 0xc ], %o0 <== NOT EXECUTED 202b018: 80 8a 21 00 btst 0x100, %o0 <== NOT EXECUTED 202b01c: 12 80 00 06 bne 202b034 <== NOT EXECUTED 202b020: 80 a6 60 09 cmp %i1, 9 <== NOT EXECUTED 202b024: 40 00 08 df call 202d3a0 <__errno> <== NOT EXECUTED 202b028: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202b02c: 10 80 00 55 b 202b180 <== NOT EXECUTED 202b030: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 202b034: 18 80 00 50 bgu 202b174 <== NOT EXECUTED 202b038: 83 2e 60 02 sll %i1, 2, %g1 <== NOT EXECUTED 202b03c: 05 00 80 ab sethi %hi(0x202ac00), %g2 <== NOT EXECUTED 202b040: 84 10 a3 a0 or %g2, 0x3a0, %g2 ! 202afa0 <== NOT EXECUTED 202b044: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 202b048: 81 c0 40 00 jmp %g1 <== NOT EXECUTED 202b04c: 01 00 00 00 nop <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 202b050: d0 00 c0 00 ld [ %g3 ], %o0 <== NOT EXECUTED if ( fd2 ) 202b054: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202b058: 02 80 00 0b be 202b084 <== NOT EXECUTED 202b05c: 80 a2 00 0d cmp %o0, %o5 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 202b060: 1a 80 00 0e bcc 202b098 <== NOT EXECUTED 202b064: ba 10 20 00 clr %i5 <== NOT EXECUTED 202b068: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED 202b06c: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED 202b070: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202b074: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 202b078: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202b07c: 10 80 00 07 b 202b098 <== NOT EXECUTED 202b080: ba 01 00 01 add %g4, %g1, %i5 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 202b084: 7f ff 65 fd call 2004878 <== NOT EXECUTED 202b088: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( diop == 0 ) { 202b08c: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED 202b090: 02 80 00 4f be 202b1cc <== NOT EXECUTED 202b094: 01 00 00 00 nop <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 202b098: c2 07 20 30 ld [ %i4 + 0x30 ], %g1 <== NOT EXECUTED diop->file_info = iop->file_info; 202b09c: c4 07 20 2c ld [ %i4 + 0x2c ], %g2 <== NOT EXECUTED diop->flags = iop->flags; 202b0a0: c6 07 20 0c ld [ %i4 + 0xc ], %g3 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 202b0a4: c2 27 60 30 st %g1, [ %i5 + 0x30 ] <== NOT EXECUTED diop->file_info = iop->file_info; 202b0a8: c4 27 60 2c st %g2, [ %i5 + 0x2c ] <== NOT EXECUTED diop->flags = iop->flags; 202b0ac: c6 27 60 0c st %g3, [ %i5 + 0xc ] <== NOT EXECUTED diop->pathinfo = iop->pathinfo; 202b0b0: 90 07 60 10 add %i5, 0x10, %o0 <== NOT EXECUTED 202b0b4: 92 07 20 10 add %i4, 0x10, %o1 <== NOT EXECUTED 202b0b8: 40 00 12 a7 call 202fb54 <== NOT EXECUTED 202b0bc: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 202b0c0: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 202b0c4: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2059b44 <== NOT EXECUTED 202b0c8: 86 27 40 03 sub %i5, %g3, %g3 <== NOT EXECUTED 202b0cc: 87 38 e0 02 sra %g3, 2, %g3 <== NOT EXECUTED 202b0d0: 83 28 e0 02 sll %g3, 2, %g1 <== NOT EXECUTED 202b0d4: 85 28 e0 06 sll %g3, 6, %g2 <== NOT EXECUTED 202b0d8: 84 20 80 01 sub %g2, %g1, %g2 <== NOT EXECUTED 202b0dc: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 202b0e0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202b0e4: 85 28 60 0c sll %g1, 0xc, %g2 <== NOT EXECUTED 202b0e8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 202b0ec: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED 202b0f0: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED 202b0f4: 82 20 40 03 sub %g1, %g3, %g1 <== NOT EXECUTED 202b0f8: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202b0fc: 10 80 00 24 b 202b18c <== NOT EXECUTED 202b100: b0 20 c0 01 sub %g3, %g1, %i0 <== NOT EXECUTED break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 202b104: 83 32 20 0b srl %o0, 0xb, %g1 <== NOT EXECUTED 202b108: 10 80 00 24 b 202b198 <== NOT EXECUTED 202b10c: b0 08 60 01 and %g1, 1, %i0 <== 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 ) ) 202b110: c2 00 c0 00 ld [ %g3 ], %g1 <== NOT EXECUTED 202b114: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202b118: 22 80 00 03 be,a 202b124 <== NOT EXECUTED 202b11c: 82 0a 37 ff and %o0, -2049, %g1 <== NOT EXECUTED 202b120: 82 12 28 00 or %o0, 0x800, %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 202b124: c2 27 20 0c st %g1, [ %i4 + 0xc ] <== NOT EXECUTED 202b128: 10 80 00 1c b 202b198 <== NOT EXECUTED 202b12c: b0 10 20 00 clr %i0 <== NOT EXECUTED break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 202b130: 7f ff 65 66 call 20046c8 <== NOT EXECUTED 202b134: 01 00 00 00 nop <== NOT EXECUTED 202b138: 10 80 00 15 b 202b18c <== NOT EXECUTED 202b13c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 202b140: d0 00 c0 00 ld [ %g3 ], %o0 <== NOT EXECUTED 202b144: 7f ff 66 03 call 2004950 <== NOT EXECUTED 202b148: 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); 202b14c: c2 07 20 0c ld [ %i4 + 0xc ], %g1 <== NOT EXECUTED 202b150: 90 0a 22 01 and %o0, 0x201, %o0 <== NOT EXECUTED 202b154: 82 08 7d fe and %g1, -514, %g1 <== NOT EXECUTED 202b158: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 202b15c: 10 80 00 0f b 202b198 <== NOT EXECUTED 202b160: d0 27 20 0c st %o0, [ %i4 + 0xc ] <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 202b164: 40 00 08 8f call 202d3a0 <__errno> <== NOT EXECUTED 202b168: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202b16c: 10 80 00 05 b 202b180 <== NOT EXECUTED 202b170: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED ret = -1; break; default: errno = EINVAL; 202b174: 40 00 08 8b call 202d3a0 <__errno> <== NOT EXECUTED 202b178: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202b17c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202b180: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202b184: 81 c7 e0 08 ret <== NOT EXECUTED 202b188: 81 e8 00 00 restore <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 202b18c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 202b190: 06 80 00 0f bl 202b1cc <== NOT EXECUTED 202b194: 01 00 00 00 nop <== NOT EXECUTED if (iop->handlers->fcntl_h) { 202b198: c2 07 20 30 ld [ %i4 + 0x30 ], %g1 <== NOT EXECUTED 202b19c: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 <== NOT EXECUTED 202b1a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202b1a4: 02 bf ff f8 be 202b184 <== NOT EXECUTED 202b1a8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 202b1ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 202b1b0: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED if (err) { 202b1b4: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED 202b1b8: 02 80 00 05 be 202b1cc <== NOT EXECUTED 202b1bc: 01 00 00 00 nop <== NOT EXECUTED errno = err; 202b1c0: 40 00 08 78 call 202d3a0 <__errno> <== NOT EXECUTED 202b1c4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 202b1c8: 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; } 202b1cc: 81 c7 e0 08 ret <== NOT EXECUTED 202b1d0: 81 e8 00 00 restore <== NOT EXECUTED 02020378 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2020378: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 202037c: c6 00 63 e8 ld [ %g1 + 0x3e8 ], %g3 ! 2059be8 <== NOT EXECUTED 2020380: 82 10 63 e8 or %g1, 0x3e8, %g1 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 2020384: 10 80 00 08 b 20203a4 <== NOT EXECUTED 2020388: 88 00 60 04 add %g1, 4, %g4 <== 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 ) { 202038c: c2 02 60 0c ld [ %o1 + 0xc ], %g1 <== NOT EXECUTED 2020390: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2020394: 32 80 00 04 bne,a 20203a4 <== NOT EXECUTED 2020398: c6 00 c0 00 ld [ %g3 ], %g3 <== NOT EXECUTED 202039c: 81 c3 e0 08 retl <== NOT EXECUTED 20203a0: 90 10 20 01 mov 1, %o0 <== 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 ); 20203a4: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 20203a8: 32 bf ff f9 bne,a 202038c <== NOT EXECUTED 20203ac: c4 00 e0 14 ld [ %g3 + 0x14 ], %g2 <== NOT EXECUTED return true; } } return false; } 20203b0: 81 c3 e0 08 retl <== NOT EXECUTED 20203b4: 90 10 20 00 clr %o0 <== NOT EXECUTED 0200a0bc : void free( void *ptr ) { MSBUMP(free_calls, 1); 200a0bc: 9d e3 bf 98 save %sp, -104, %sp 200a0c0: 05 00 80 59 sethi %hi(0x2016400), %g2 200a0c4: 84 10 a3 10 or %g2, 0x310, %g2 ! 2016710 200a0c8: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200a0cc: b2 10 00 18 mov %i0, %i1 200a0d0: 82 00 60 01 inc %g1 if ( !ptr ) 200a0d4: 80 a6 20 00 cmp %i0, 0 200a0d8: 02 80 00 21 be 200a15c 200a0dc: 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()) && 200a0e0: 03 00 80 5a sethi %hi(0x2016800), %g1 200a0e4: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 2016a24 <_System_state_Current> 200a0e8: 80 a0 60 03 cmp %g1, 3 200a0ec: 12 80 00 09 bne 200a110 200a0f0: 03 00 80 59 sethi %hi(0x2016400), %g1 200a0f4: 40 00 01 2b call 200a5a0 200a0f8: 01 00 00 00 nop 200a0fc: 80 8a 20 ff btst 0xff, %o0 200a100: 12 80 00 04 bne 200a110 200a104: 03 00 80 59 sethi %hi(0x2016400), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 200a108: 40 00 01 39 call 200a5ec <== NOT EXECUTED 200a10c: 81 e8 00 00 restore <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200a110: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 200a114: 80 a0 60 00 cmp %g1, 0 200a118: 02 80 00 06 be 200a130 200a11c: 37 00 80 59 sethi %hi(0x2016400), %i3 (*rtems_malloc_statistics_helpers->at_free)(ptr); 200a120: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 200a124: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a128: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 200a12c: 37 00 80 59 sethi %hi(0x2016400), %i3 <== NOT EXECUTED 200a130: 92 10 00 19 mov %i1, %o1 200a134: 40 00 04 c1 call 200b438 <_Protected_heap_Free> 200a138: 90 16 e2 b8 or %i3, 0x2b8, %o0 200a13c: 80 8a 20 ff btst 0xff, %o0 200a140: 12 80 00 07 bne 200a15c 200a144: 82 16 e2 b8 or %i3, 0x2b8, %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 200a148: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 200a14c: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 200a150: 31 00 80 54 sethi %hi(0x2015000), %i0 <== NOT EXECUTED 200a154: 7f ff e2 e6 call 2002cec <== NOT EXECUTED 200a158: 91 ee 20 c0 restore %i0, 0xc0, %o0 <== NOT EXECUTED 200a15c: 81 c7 e0 08 ret 200a160: 81 e8 00 00 restore 0201f834 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 201f834: 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 201f838: 03 00 81 68 sethi %hi(0x205a000), %g1 <== NOT EXECUTED 201f83c: 82 10 60 e0 or %g1, 0xe0, %g1 ! 205a0e0 <== NOT EXECUTED 201f840: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 201f844: 02 80 00 18 be 201f8a4 <== NOT EXECUTED 201f848: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 201f84c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 201f850: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f854: 22 80 00 09 be,a 201f878 <== NOT EXECUTED 201f858: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 201f85c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f860: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f864: 22 80 00 05 be,a 201f878 <== NOT EXECUTED 201f868: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 201f86c: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f870: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 201f874: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED 201f878: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f87c: 02 80 00 08 be 201f89c <== NOT EXECUTED 201f880: 01 00 00 00 nop <== NOT EXECUTED 201f884: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f888: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f88c: 02 80 00 04 be 201f89c <== NOT EXECUTED 201f890: 01 00 00 00 nop <== NOT EXECUTED 201f894: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f898: 90 06 20 14 add %i0, 0x14, %o0 <== NOT EXECUTED free(env); 201f89c: 7f ff 93 05 call 20044b0 <== NOT EXECUTED 201f8a0: 81 e8 00 00 restore <== NOT EXECUTED 201f8a4: 81 c7 e0 08 ret <== NOT EXECUTED 201f8a8: 81 e8 00 00 restore <== NOT EXECUTED 02013c04 : int fstat( int fd, struct stat *sbuf ) { 2013c04: 9d e3 bf 98 save %sp, -104, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 2013c08: 80 a6 60 00 cmp %i1, 0 2013c0c: 32 80 00 06 bne,a 2013c24 2013c10: 03 00 80 56 sethi %hi(0x2015800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 2013c14: 7f ff e1 eb call 200c3c0 <__errno> <== NOT EXECUTED 2013c18: 01 00 00 00 nop <== NOT EXECUTED 2013c1c: 10 80 00 2a b 2013cc4 <== NOT EXECUTED 2013c20: 82 10 20 0e mov 0xe, %g1 ! e <== NOT EXECUTED /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 2013c24: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 2013c28: 80 a6 00 01 cmp %i0, %g1 2013c2c: 1a 80 00 23 bcc 2013cb8 2013c30: 03 00 80 59 sethi %hi(0x2016400), %g1 2013c34: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac 2013c38: 85 2e 20 02 sll %i0, 2, %g2 2013c3c: 83 2e 20 04 sll %i0, 4, %g1 2013c40: 82 20 40 02 sub %g1, %g2, %g1 2013c44: 82 00 40 18 add %g1, %i0, %g1 2013c48: 83 28 60 02 sll %g1, 2, %g1 2013c4c: b0 00 c0 01 add %g3, %g1, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 2013c50: c2 06 20 0c ld [ %i0 + 0xc ], %g1 2013c54: 80 88 61 00 btst 0x100, %g1 2013c58: 02 80 00 18 be 2013cb8 2013c5c: 01 00 00 00 nop if ( !iop->handlers ) 2013c60: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2013c64: 80 a0 60 00 cmp %g1, 0 2013c68: 02 80 00 14 be 2013cb8 2013c6c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2013c70: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2013c74: 80 a0 60 00 cmp %g1, 0 2013c78: 12 80 00 06 bne 2013c90 2013c7c: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2013c80: 7f ff e1 d0 call 200c3c0 <__errno> <== NOT EXECUTED 2013c84: 01 00 00 00 nop <== NOT EXECUTED 2013c88: 10 80 00 0f b 2013cc4 <== NOT EXECUTED 2013c8c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 2013c90: 94 10 20 50 mov 0x50, %o2 2013c94: 7f ff e3 f6 call 200cc6c 2013c98: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 2013c9c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2013ca0: 90 06 20 10 add %i0, 0x10, %o0 2013ca4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2013ca8: 9f c0 40 00 call %g1 2013cac: 92 10 00 19 mov %i1, %o1 } 2013cb0: 81 c7 e0 08 ret 2013cb4: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 2013cb8: 7f ff e1 c2 call 200c3c0 <__errno> <== NOT EXECUTED 2013cbc: 01 00 00 00 nop <== NOT EXECUTED 2013cc0: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2013cc4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013cc8: 10 bf ff fa b 2013cb0 <== NOT EXECUTED 2013ccc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 0201e084 : #include int fsync( int fd ) { 201e084: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201e088: 03 00 81 12 sethi %hi(0x2044800), %g1 <== NOT EXECUTED 201e08c: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2044b18 <== NOT EXECUTED 201e090: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 201e094: 1a 80 00 18 bcc 201e0f4 <== NOT EXECUTED 201e098: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 201e09c: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 201e0a0: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2059b44 <== NOT EXECUTED 201e0a4: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 201e0a8: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 201e0ac: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 201e0b0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 201e0b4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 201e0b8: 90 00 c0 01 add %g3, %g1, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 201e0bc: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED 201e0c0: 80 89 21 00 btst 0x100, %g4 <== NOT EXECUTED 201e0c4: 02 80 00 0c be 201e0f4 <== NOT EXECUTED 201e0c8: 01 00 00 00 nop <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 201e0cc: 80 89 20 04 btst 4, %g4 <== NOT EXECUTED 201e0d0: 32 80 00 06 bne,a 201e0e8 <== NOT EXECUTED 201e0d4: c8 02 20 30 ld [ %o0 + 0x30 ], %g4 <== NOT EXECUTED 201e0d8: 40 00 3c b2 call 202d3a0 <__errno> <== NOT EXECUTED 201e0dc: 01 00 00 00 nop <== NOT EXECUTED 201e0e0: 10 80 00 0f b 201e11c <== NOT EXECUTED 201e0e4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 201e0e8: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED 201e0ec: 32 80 00 06 bne,a 201e104 <== NOT EXECUTED 201e0f0: c2 01 20 28 ld [ %g4 + 0x28 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 201e0f4: 40 00 3c ab call 202d3a0 <__errno> <== NOT EXECUTED 201e0f8: 01 00 00 00 nop <== NOT EXECUTED 201e0fc: 10 80 00 08 b 201e11c <== NOT EXECUTED 201e100: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 201e104: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e108: 12 80 00 08 bne 201e128 <== NOT EXECUTED 201e10c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201e110: 40 00 3c a4 call 202d3a0 <__errno> <== NOT EXECUTED 201e114: 01 00 00 00 nop <== NOT EXECUTED 201e118: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201e11c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201e120: 10 80 00 04 b 201e130 <== NOT EXECUTED 201e124: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->handlers->fsync_h)( iop ); 201e128: 9f c0 40 00 call %g1 <== NOT EXECUTED 201e12c: 01 00 00 00 nop <== NOT EXECUTED } 201e130: 81 c7 e0 08 ret <== NOT EXECUTED 201e134: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200a164 : int ftruncate( int fd, off_t length ) { 200a164: 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 ); 200a168: 03 00 80 56 sethi %hi(0x2015800), %g1 <== NOT EXECUTED 200a16c: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 2015a28 <== NOT EXECUTED 200a170: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 200a174: 1a 80 00 0e bcc 200a1ac <== NOT EXECUTED 200a178: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 200a17c: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a180: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac <== NOT EXECUTED 200a184: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 200a188: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 200a18c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 200a190: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 200a194: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 200a198: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 200a19c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 200a1a0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 200a1a4: 12 80 00 06 bne 200a1bc <== NOT EXECUTED 200a1a8: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 200a1ac: 40 00 08 85 call 200c3c0 <__errno> <== NOT EXECUTED 200a1b0: 01 00 00 00 nop <== NOT EXECUTED 200a1b4: 10 80 00 22 b 200a23c <== NOT EXECUTED 200a1b8: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200a1bc: 92 06 20 10 add %i0, 0x10, %o1 <== NOT EXECUTED 200a1c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200a1c4: 40 00 0a 71 call 200cb88 <== NOT EXECUTED 200a1c8: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED if ( !loc.ops->node_type_h ) 200a1cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 200a1d0: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 200a1d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a1d8: 02 80 00 16 be 200a230 <== NOT EXECUTED 200a1dc: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200a1e0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a1e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200a1e8: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 200a1ec: 32 80 00 06 bne,a 200a204 <== NOT EXECUTED 200a1f0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 200a1f4: 40 00 08 73 call 200c3c0 <__errno> <== NOT EXECUTED 200a1f8: 01 00 00 00 nop <== NOT EXECUTED 200a1fc: 10 80 00 10 b 200a23c <== NOT EXECUTED 200a200: 82 10 20 15 mov 0x15, %g1 ! 15 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200a204: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 200a208: 32 80 00 06 bne,a 200a220 <== NOT EXECUTED 200a20c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 200a210: 40 00 08 6c call 200c3c0 <__errno> <== NOT EXECUTED 200a214: 01 00 00 00 nop <== NOT EXECUTED 200a218: 10 80 00 09 b 200a23c <== NOT EXECUTED 200a21c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 200a220: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 200a224: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a228: 32 80 00 08 bne,a 200a248 <== NOT EXECUTED 200a22c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a230: 40 00 08 64 call 200c3c0 <__errno> <== NOT EXECUTED 200a234: 01 00 00 00 nop <== NOT EXECUTED 200a238: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200a23c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a240: 10 80 00 04 b 200a250 <== NOT EXECUTED 200a244: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); 200a248: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a24c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED } 200a250: 81 c7 e0 08 ret <== NOT EXECUTED 200a254: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0201e22c : char * getcwd ( char *pt, size_t size) { 201e22c: 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) 201e230: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 201e234: 02 80 00 0b be 201e260 <== NOT EXECUTED 201e238: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED if (!size) { errno = EINVAL; return (char *) NULL; } ept = pt + size; 201e23c: ac 10 20 00 clr %l6 <== NOT EXECUTED */ if (pt) { ptsize = 0; if (!size) 201e240: 12 80 00 0e bne 201e278 <== NOT EXECUTED 201e244: b2 06 00 19 add %i0, %i1, %i1 <== NOT EXECUTED { errno = EINVAL; 201e248: 40 00 3c 56 call 202d3a0 <__errno> <== NOT EXECUTED 201e24c: b0 10 20 00 clr %i0 <== NOT EXECUTED 201e250: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201e254: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201e258: 81 c7 e0 08 ret <== NOT EXECUTED 201e25c: 81 e8 00 00 restore <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 201e260: 7f ff 9a 26 call 2004af8 <== NOT EXECUTED 201e264: 90 10 23 fc mov 0x3fc, %o0 <== NOT EXECUTED 201e268: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 201e26c: 02 bf ff fb be 201e258 <== NOT EXECUTED 201e270: b2 06 23 fc add %i0, 0x3fc, %i1 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 201e274: ac 10 23 fc mov 0x3fc, %l6 <== NOT EXECUTED } bpt = ept - 1; *bpt = '\0'; 201e278: 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))) 201e27c: 90 10 23 fc mov 0x3fc, %o0 <== NOT EXECUTED 201e280: 7f ff 9a 1e call 2004af8 <== NOT EXECUTED 201e284: aa 06 7f ff add %i1, -1, %l5 <== NOT EXECUTED 201e288: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 201e28c: 02 80 00 d9 be 201e5f0 <== NOT EXECUTED 201e290: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; up[1] = '\0'; 201e294: c0 2c a0 01 clrb [ %l2 + 1 ] <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 201e298: c2 2c 80 00 stb %g1, [ %l2 ] <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 201e29c: a0 07 bf a8 add %fp, -88, %l0 <== NOT EXECUTED 201e2a0: 11 00 80 fe sethi %hi(0x203f800), %o0 <== NOT EXECUTED 201e2a4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201e2a8: 7f ff 9e 2a call 2005b50 <== NOT EXECUTED 201e2ac: 90 12 23 38 or %o0, 0x338, %o0 <== NOT EXECUTED 201e2b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e2b4: 12 80 00 d0 bne 201e5f4 <== NOT EXECUTED 201e2b8: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED goto err; root_dev = s.st_dev; 201e2bc: c2 07 bf a8 ld [ %fp + -88 ], %g1 <== NOT EXECUTED 201e2c0: c4 07 bf ac ld [ %fp + -84 ], %g2 <== NOT EXECUTED root_ino = s.st_ino; 201e2c4: 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; 201e2c8: c2 27 bf 98 st %g1, [ %fp + -104 ] <== NOT EXECUTED 201e2cc: c4 27 bf 94 st %g2, [ %fp + -108 ] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 201e2d0: 82 04 a4 00 add %l2, 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. */ 201e2d4: 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; 201e2d8: c6 27 bf a0 st %g3, [ %fp + -96 ] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 201e2dc: 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. */ 201e2e0: c4 27 bf 9c st %g2, [ %fp + -100 ] <== NOT EXECUTED 201e2e4: 40 00 3c 2f call 202d3a0 <__errno> <== NOT EXECUTED 201e2e8: a8 10 00 12 mov %l2, %l4 <== NOT EXECUTED 201e2ec: b4 10 23 fc mov 0x3fc, %i2 <== NOT EXECUTED 201e2f0: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 201e2f4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 201e2f8: 7f ff 9e 16 call 2005b50 <== NOT EXECUTED 201e2fc: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 201e300: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e304: 12 80 00 bb bne 201e5f0 <== NOT EXECUTED 201e308: f8 07 bf a8 ld [ %fp + -88 ], %i4 <== 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) 201e30c: 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; 201e310: f6 07 bf b0 ld [ %fp + -80 ], %i3 <== NOT EXECUTED dev = s.st_dev; /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 201e314: 80 a0 c0 1c cmp %g3, %i4 <== NOT EXECUTED 201e318: 12 80 00 14 bne 201e368 <== NOT EXECUTED 201e31c: fa 07 bf ac ld [ %fp + -84 ], %i5 <== NOT EXECUTED 201e320: c2 07 bf 94 ld [ %fp + -108 ], %g1 <== NOT EXECUTED 201e324: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED 201e328: 12 80 00 11 bne 201e36c <== NOT EXECUTED 201e32c: c6 07 bf a4 ld [ %fp + -92 ], %g3 <== NOT EXECUTED 201e330: c4 07 bf a0 ld [ %fp + -96 ], %g2 <== NOT EXECUTED 201e334: 80 a0 80 1b cmp %g2, %i3 <== NOT EXECUTED 201e338: 12 80 00 0e bne 201e370 <== NOT EXECUTED 201e33c: 82 05 24 04 add %l4, 0x404, %g1 <== NOT EXECUTED { *--bpt = '/'; 201e340: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED 201e344: 92 05 7f ff add %l5, -1, %o1 <== NOT EXECUTED 201e348: c2 2d 7f ff stb %g1, [ %l5 + -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); 201e34c: 94 26 40 09 sub %i1, %o1, %o2 <== NOT EXECUTED 201e350: 40 00 46 3a call 202fc38 <== NOT EXECUTED 201e354: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED free (up); 201e358: 7f ff 98 56 call 20044b0 <== NOT EXECUTED 201e35c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 201e360: 81 c7 e0 08 ret <== NOT EXECUTED 201e364: 81 e8 00 00 restore <== 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) 201e368: c6 07 bf a4 ld [ %fp + -92 ], %g3 <== NOT EXECUTED 201e36c: 82 05 24 04 add %l4, 0x404, %g1 <== NOT EXECUTED 201e370: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 201e374: 18 80 00 0c bgu 201e3a4 <== NOT EXECUTED 201e378: 84 10 20 2e mov 0x2e, %g2 <== NOT EXECUTED { if (!(up = (char *) realloc (up, upsize *= 2))) 201e37c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 201e380: b5 2e a0 01 sll %i2, 1, %i2 <== NOT EXECUTED 201e384: 40 00 06 37 call 201fc60 <== NOT EXECUTED 201e388: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED 201e38c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 201e390: 02 80 00 98 be 201e5f0 <== NOT EXECUTED 201e394: 82 04 80 1a add %l2, %i2, %g1 <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 201e398: a8 10 00 12 mov %l2, %l4 <== NOT EXECUTED 201e39c: c2 27 bf a4 st %g1, [ %fp + -92 ] <== NOT EXECUTED } *bup++ = '.'; 201e3a0: 84 10 20 2e mov 0x2e, %g2 <== NOT EXECUTED *bup++ = '.'; *bup = '\0'; 201e3a4: c0 2d 20 02 clrb [ %l4 + 2 ] <== NOT EXECUTED goto err; } bup = up; eup = up + upsize; } *bup++ = '.'; 201e3a8: c4 2d 00 00 stb %g2, [ %l4 ] <== NOT EXECUTED *bup++ = '.'; 201e3ac: c4 2d 20 01 stb %g2, [ %l4 + 1 ] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 201e3b0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 201e3b4: 40 00 04 fc call 201f7a4 <== NOT EXECUTED 201e3b8: a0 05 20 02 add %l4, 2, %l0 <== NOT EXECUTED 201e3bc: ae 92 20 00 orcc %o0, 0, %l7 <== NOT EXECUTED 201e3c0: 02 80 00 8d be 201e5f4 <== NOT EXECUTED 201e3c4: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED 201e3c8: d0 05 c0 00 ld [ %l7 ], %o0 <== NOT EXECUTED 201e3cc: 7f ff fe f5 call 201dfa0 <== NOT EXECUTED 201e3d0: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 201e3d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e3d8: 12 80 00 90 bne 201e618 <== NOT EXECUTED 201e3dc: 86 10 20 2f mov 0x2f, %g3 <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 201e3e0: 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) 201e3e4: c2 07 bf a8 ld [ %fp + -88 ], %g1 <== NOT EXECUTED 201e3e8: 80 a0 40 1c cmp %g1, %i4 <== NOT EXECUTED 201e3ec: 12 80 00 06 bne 201e404 <== NOT EXECUTED 201e3f0: a8 05 20 03 add %l4, 3, %l4 <== NOT EXECUTED 201e3f4: c2 07 bf ac ld [ %fp + -84 ], %g1 <== NOT EXECUTED 201e3f8: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED 201e3fc: 02 80 00 04 be 201e40c <== NOT EXECUTED 201e400: 01 00 00 00 nop <== NOT EXECUTED 201e404: 10 80 00 0c b 201e434 <== NOT EXECUTED 201e408: a6 10 20 00 clr %l3 ! 0 <== NOT EXECUTED { for (;;) { if (!(dp = _readdir (dir))) 201e40c: 40 00 05 9e call 201fa84 <== NOT EXECUTED 201e410: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 201e414: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 201e418: 02 80 00 69 be 201e5bc <== NOT EXECUTED 201e41c: a6 10 20 00 clr %l3 <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 201e420: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED 201e424: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 201e428: 12 bf ff f9 bne 201e40c <== NOT EXECUTED 201e42c: a0 04 60 0c add %l1, 0xc, %l0 <== NOT EXECUTED 201e430: 30 80 00 33 b,a 201e4fc <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 201e434: 40 00 05 94 call 201fa84 <== NOT EXECUTED 201e438: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 201e43c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 201e440: 02 80 00 5f be 201e5bc <== NOT EXECUTED 201e444: 01 00 00 00 nop <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 201e448: c2 4c 60 0c ldsb [ %l1 + 0xc ], %g1 <== NOT EXECUTED 201e44c: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED 201e450: 12 80 00 0c bne 201e480 <== NOT EXECUTED 201e454: a0 04 60 0c add %l1, 0xc, %l0 <== NOT EXECUTED 201e458: c2 4c 60 0d ldsb [ %l1 + 0xd ], %g1 <== NOT EXECUTED 201e45c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e460: 02 bf ff f5 be 201e434 <== NOT EXECUTED 201e464: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED 201e468: 12 80 00 06 bne 201e480 <== NOT EXECUTED 201e46c: 01 00 00 00 nop <== NOT EXECUTED 201e470: c2 4c 60 0e ldsb [ %l1 + 0xe ], %g1 <== NOT EXECUTED 201e474: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e478: 02 bf ff ef be 201e434 <== NOT EXECUTED 201e47c: 01 00 00 00 nop <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 201e480: 40 00 52 6a call 2032e28 <== NOT EXECUTED 201e484: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201e488: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201e48c: 94 02 20 01 add %o0, 1, %o2 <== NOT EXECUTED 201e490: 40 00 45 ea call 202fc38 <== NOT EXECUTED 201e494: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 201e498: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 201e49c: 7f ff 9d ad call 2005b50 <== NOT EXECUTED 201e4a0: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED 201e4a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e4a8: 02 80 00 0c be 201e4d8 <== NOT EXECUTED 201e4ac: c2 07 bf a8 ld [ %fp + -88 ], %g1 <== NOT EXECUTED { if (!save_errno) 201e4b0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 201e4b4: 12 80 00 05 bne 201e4c8 <== NOT EXECUTED 201e4b8: 01 00 00 00 nop <== NOT EXECUTED save_errno = errno; 201e4bc: 40 00 3b b9 call 202d3a0 <__errno> <== NOT EXECUTED 201e4c0: 01 00 00 00 nop <== NOT EXECUTED 201e4c4: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED errno = 0; 201e4c8: 40 00 3b b6 call 202d3a0 <__errno> <== NOT EXECUTED 201e4cc: 01 00 00 00 nop <== NOT EXECUTED 201e4d0: 10 bf ff d9 b 201e434 <== NOT EXECUTED 201e4d4: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED continue; } if (s.st_dev == dev && s.st_ino == ino) 201e4d8: 80 a0 40 1c cmp %g1, %i4 <== NOT EXECUTED 201e4dc: 12 bf ff d6 bne 201e434 <== NOT EXECUTED 201e4e0: c2 07 bf ac ld [ %fp + -84 ], %g1 <== NOT EXECUTED 201e4e4: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED 201e4e8: 12 bf ff d3 bne 201e434 <== NOT EXECUTED 201e4ec: c2 07 bf b0 ld [ %fp + -80 ], %g1 <== NOT EXECUTED 201e4f0: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED 201e4f4: 12 bf ff d0 bne 201e434 <== NOT EXECUTED 201e4f8: a0 04 60 0c add %l1, 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)) 201e4fc: 40 00 52 4b call 2032e28 <== NOT EXECUTED 201e500: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201e504: c6 07 bf 9c ld [ %fp + -100 ], %g3 <== NOT EXECUTED 201e508: a2 25 40 18 sub %l5, %i0, %l1 <== NOT EXECUTED 201e50c: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED 201e510: 82 20 80 03 sub %g2, %g3, %g1 <== NOT EXECUTED 201e514: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 201e518: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 201e51c: 18 80 00 17 bgu 201e578 <== NOT EXECUTED 201e520: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED { size_t len, off; if (!ptsize) 201e524: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED 201e528: 32 80 00 07 bne,a 201e544 <== NOT EXECUTED 201e52c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED { errno = ERANGE; 201e530: 40 00 3b 9c call 202d3a0 <__errno> <== NOT EXECUTED 201e534: 01 00 00 00 nop <== NOT EXECUTED 201e538: 82 10 20 22 mov 0x22, %g1 ! 22 <== NOT EXECUTED 201e53c: 10 80 00 37 b 201e618 <== NOT EXECUTED 201e540: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 201e544: ad 2d a0 01 sll %l6, 1, %l6 <== NOT EXECUTED 201e548: 40 00 05 c6 call 201fc60 <== NOT EXECUTED 201e54c: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 201e550: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 201e554: 02 80 00 31 be 201e618 <== NOT EXECUTED 201e558: 82 26 40 15 sub %i1, %l5, %g1 <== NOT EXECUTED { goto err; } bpt = pt + off; ept = pt + ptsize; (void) bcopy (bpt, ept - len, len); 201e55c: 92 06 00 11 add %i0, %l1, %o1 <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 201e560: b2 06 00 16 add %i0, %l6, %i1 <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 201e564: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 201e568: aa 26 40 01 sub %i1, %g1, %l5 <== NOT EXECUTED 201e56c: 40 00 45 b3 call 202fc38 <== NOT EXECUTED 201e570: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED bpt = ept - len; } if (!first) 201e574: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED 201e578: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e57c: 12 80 00 04 bne 201e58c <== NOT EXECUTED 201e580: 84 10 20 2f mov 0x2f, %g2 <== NOT EXECUTED *--bpt = '/'; 201e584: aa 05 7f ff add %l5, -1, %l5 <== NOT EXECUTED 201e588: c4 2d 40 00 stb %g2, [ %l5 ] <== NOT EXECUTED bpt -= strlen (dp->d_name); 201e58c: 40 00 52 27 call 2032e28 <== NOT EXECUTED 201e590: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 201e594: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201e598: 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); 201e59c: aa 25 40 08 sub %l5, %o0, %l5 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); (void) _closedir (dir); dir = 0; /* Truncate any file name. */ *bup = '\0'; 201e5a0: 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)); 201e5a4: 40 00 45 a5 call 202fc38 <== NOT EXECUTED 201e5a8: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED (void) _closedir (dir); 201e5ac: 40 00 32 0b call 202add8 <== NOT EXECUTED 201e5b0: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 201e5b4: 10 bf ff 50 b 201e2f4 <== NOT EXECUTED 201e5b8: c0 2d 00 00 clrb [ %l4 ] <== 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) 201e5bc: 40 00 3b 79 call 202d3a0 <__errno> <== NOT EXECUTED 201e5c0: 01 00 00 00 nop <== NOT EXECUTED 201e5c4: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201e5c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e5cc: 12 80 00 13 bne 201e618 <== NOT EXECUTED 201e5d0: 01 00 00 00 nop <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; 201e5d4: 40 00 3b 73 call 202d3a0 <__errno> <== NOT EXECUTED 201e5d8: 01 00 00 00 nop <== NOT EXECUTED 201e5dc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 201e5e0: 22 80 00 02 be,a 201e5e8 <== NOT EXECUTED 201e5e4: a6 10 20 02 mov 2, %l3 <== NOT EXECUTED 201e5e8: 10 80 00 0c b 201e618 <== NOT EXECUTED 201e5ec: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 201e5f0: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED 201e5f4: 02 80 00 05 be 201e608 <== NOT EXECUTED 201e5f8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED free (pt); 201e5fc: 7f ff 97 ad call 20044b0 <== NOT EXECUTED 201e600: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED free (up); 201e604: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 201e608: 7f ff 97 aa call 20044b0 <== NOT EXECUTED 201e60c: b0 10 20 00 clr %i0 <== NOT EXECUTED return (char *) NULL; } 201e610: 81 c7 e0 08 ret <== NOT EXECUTED 201e614: 81 e8 00 00 restore <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 201e618: 40 00 31 f0 call 202add8 <== NOT EXECUTED 201e61c: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED if (ptsize) 201e620: 10 bf ff f5 b 201e5f4 <== NOT EXECUTED 201e624: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED 0202b1f0 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 202b1f0: 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 ); 202b1f4: 03 00 81 12 sethi %hi(0x2044800), %g1 <== NOT EXECUTED 202b1f8: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2044b18 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 202b1fc: 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 ); 202b200: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202b204: 1a 80 00 0a bcc 202b22c <== NOT EXECUTED 202b208: b0 10 20 00 clr %i0 <== NOT EXECUTED 202b20c: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 202b210: c6 00 63 44 ld [ %g1 + 0x344 ], %g3 ! 2059b44 <== NOT EXECUTED 202b214: 85 29 20 02 sll %g4, 2, %g2 <== NOT EXECUTED 202b218: 83 29 20 04 sll %g4, 4, %g1 <== NOT EXECUTED 202b21c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 202b220: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED 202b224: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202b228: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 202b22c: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 202b230: 92 06 20 10 add %i0, 0x10, %o1 <== NOT EXECUTED 202b234: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202b238: 40 00 12 47 call 202fb54 <== NOT EXECUTED 202b23c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED if ( !loc.ops->node_type_h ) 202b240: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202b244: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 202b248: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202b24c: 02 80 00 11 be 202b290 <== NOT EXECUTED 202b250: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 202b254: 9f c0 40 00 call %g1 <== NOT EXECUTED 202b258: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202b25c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 202b260: 22 80 00 08 be,a 202b280 <== NOT EXECUTED 202b264: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 202b268: 40 00 08 4e call 202d3a0 <__errno> <== NOT EXECUTED 202b26c: 01 00 00 00 nop <== NOT EXECUTED 202b270: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 202b274: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202b278: 10 80 00 0d b 202b2ac <== NOT EXECUTED 202b27c: 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 ) 202b280: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 202b284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202b288: 32 80 00 06 bne,a 202b2a0 <== NOT EXECUTED 202b28c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202b290: 40 00 08 44 call 202d3a0 <__errno> <== NOT EXECUTED 202b294: 01 00 00 00 nop <== NOT EXECUTED 202b298: 10 bf ff f7 b 202b274 <== NOT EXECUTED 202b29c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 202b2a0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 202b2a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 202b2a8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED } 202b2ac: 81 c7 e0 08 ret <== NOT EXECUTED 202b2b0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0201e628 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 201e628: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201e62c: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED return _POSIX_types_Egid; } 201e630: 81 c3 e0 08 retl <== NOT EXECUTED 201e634: d0 10 60 2e lduh [ %g1 + 0x2e ], %o0 <== NOT EXECUTED 0201e638 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 201e638: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201e63c: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED return _POSIX_types_Euid; } 201e640: 81 c3 e0 08 retl <== NOT EXECUTED 201e644: d0 10 60 2c lduh [ %g1 + 0x2c ], %o0 <== NOT EXECUTED 0201e648 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 201e648: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201e64c: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED return _POSIX_types_Gid; } 201e650: 81 c3 e0 08 retl <== NOT EXECUTED 201e654: d0 10 60 2a lduh [ %g1 + 0x2a ], %o0 <== NOT EXECUTED 0201ecc8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 201ecc8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 201eccc: 7f ff ff b5 call 201eba0 <== NOT EXECUTED 201ecd0: 01 00 00 00 nop <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 201ecd4: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED 201ecd8: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 201ecdc: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED 201ece0: 40 00 3c 22 call 202dd68 <== NOT EXECUTED 201ece4: 92 12 61 e0 or %o1, 0x1e0, %o1 <== NOT EXECUTED 201ece8: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 201ecec: 12 80 00 08 bne 201ed0c <== NOT EXECUTED 201ecf0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED errno = EINVAL; 201ecf4: 40 00 39 ab call 202d3a0 <__errno> <== NOT EXECUTED 201ecf8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201ecfc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201ed00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201ed04: 81 c7 e0 08 ret <== NOT EXECUTED 201ed08: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 201ed0c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201ed10: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED 201ed14: 7f ff fe e8 call 201e8b4 <== NOT EXECUTED 201ed18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ed1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ed20: 12 80 00 0a bne 201ed48 <== NOT EXECUTED 201ed24: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED errno = EINVAL; 201ed28: 40 00 39 9e call 202d3a0 <__errno> <== NOT EXECUTED 201ed2c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201ed30: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201ed34: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 201ed38: 40 00 39 f2 call 202d500 <== NOT EXECUTED 201ed3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ed40: 81 c7 e0 08 ret <== NOT EXECUTED 201ed44: 81 e8 00 00 restore <== NOT EXECUTED return -1; } if (name) { 201ed48: 22 80 00 07 be,a 201ed64 <== NOT EXECUTED 201ed4c: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 201ed50: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED 201ed54: 40 00 4e 17 call 20325b0 <== NOT EXECUTED 201ed58: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 201ed5c: 10 80 00 04 b 201ed6c <== NOT EXECUTED 201ed60: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); 201ed64: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 201ed68: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 201ed6c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 201ed70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ed74: 02 bf ff e6 be 201ed0c <== NOT EXECUTED 201ed78: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 201ed7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ed80: 40 00 39 e0 call 202d500 <== NOT EXECUTED 201ed84: b0 10 20 00 clr %i0 <== NOT EXECUTED *result = grp; 201ed88: f4 27 40 00 st %i2, [ %i5 ] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 201ed8c: 81 c7 e0 08 ret <== NOT EXECUTED 201ed90: 81 e8 00 00 restore <== NOT EXECUTED 0201e9f4 : return NULL; return p; } struct group *getgrent() { 201e9f4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (group_fp == NULL) 201e9f8: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201e9fc: d0 00 62 64 ld [ %g1 + 0x264 ], %o0 ! 2059264 <== NOT EXECUTED 201ea00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ea04: 02 80 00 0b be 201ea30 <== NOT EXECUTED 201ea08: 15 00 81 64 sethi %hi(0x2059000), %o2 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 201ea0c: 21 00 81 64 sethi %hi(0x2059000), %l0 <== NOT EXECUTED 201ea10: 92 14 23 30 or %l0, 0x330, %o1 ! 2059330 <== NOT EXECUTED 201ea14: 94 12 a2 68 or %o2, 0x268, %o2 <== NOT EXECUTED 201ea18: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 201ea1c: 7f ff ff a6 call 201e8b4 <== NOT EXECUTED 201ea20: b0 14 23 30 or %l0, 0x330, %i0 <== NOT EXECUTED 201ea24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ea28: 12 80 00 03 bne 201ea34 <== NOT EXECUTED 201ea2c: 01 00 00 00 nop <== NOT EXECUTED 201ea30: b0 10 20 00 clr %i0 ! 0 <== NOT EXECUTED return NULL; return &grent; } 201ea34: 81 c7 e0 08 ret <== NOT EXECUTED 201ea38: 81 e8 00 00 restore <== NOT EXECUTED 0201edcc : } struct group *getgrgid( gid_t gid ) { 201edcc: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 201edd0: 13 00 81 64 sethi %hi(0x2059000), %o1 <== NOT EXECUTED 201edd4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 201edd8: 92 12 63 30 or %o1, 0x330, %o1 <== NOT EXECUTED 201eddc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 201ede0: 15 00 81 64 sethi %hi(0x2059000), %o2 <== NOT EXECUTED 201ede4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 201ede8: 94 12 a2 68 or %o2, 0x268, %o2 <== NOT EXECUTED 201edec: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 201edf0: 7f ff ff e9 call 201ed94 <== NOT EXECUTED 201edf4: b0 10 20 00 clr %i0 <== NOT EXECUTED 201edf8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201edfc: 22 80 00 02 be,a 201ee04 <== NOT EXECUTED 201ee00: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 201ee04: 81 c7 e0 08 ret <== NOT EXECUTED 201ee08: 81 e8 00 00 restore <== NOT EXECUTED 0201ed94 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 201ed94: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED 201ed98: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 201ed9c: 86 10 00 0b mov %o3, %g3 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 201eda0: 93 2a 20 10 sll %o0, 0x10, %o1 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 201eda4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 201eda8: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 201edac: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 201edb0: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 201edb4: 98 10 00 03 mov %g3, %o4 <== NOT EXECUTED 201edb8: 90 10 20 00 clr %o0 <== NOT EXECUTED 201edbc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201edc0: 7f ff ff c2 call 201ecc8 <== NOT EXECUTED 201edc4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201edc8: 01 00 00 00 nop 0201ee38 : } struct group *getgrnam( const char *name ) { 201ee38: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 201ee3c: 13 00 81 64 sethi %hi(0x2059000), %o1 <== NOT EXECUTED 201ee40: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201ee44: 92 12 63 30 or %o1, 0x330, %o1 <== NOT EXECUTED 201ee48: 15 00 81 64 sethi %hi(0x2059000), %o2 <== NOT EXECUTED 201ee4c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 201ee50: 94 12 a2 68 or %o2, 0x268, %o2 <== NOT EXECUTED 201ee54: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 201ee58: 7f ff ff ed call 201ee0c <== NOT EXECUTED 201ee5c: b0 10 20 00 clr %i0 <== NOT EXECUTED 201ee60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ee64: 22 80 00 02 be,a 201ee6c <== NOT EXECUTED 201ee68: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 201ee6c: 81 c7 e0 08 ret <== NOT EXECUTED 201ee70: 81 e8 00 00 restore <== NOT EXECUTED 0201ee0c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 201ee0c: 82 10 00 0a mov %o2, %g1 <== NOT EXECUTED 201ee10: 84 10 00 0b mov %o3, %g2 <== NOT EXECUTED 201ee14: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 201ee18: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 201ee1c: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED 201ee20: 98 10 00 02 mov %g2, %o4 <== NOT EXECUTED 201ee24: 92 10 20 00 clr %o1 <== NOT EXECUTED 201ee28: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201ee2c: 7f ff ff a7 call 201ecc8 <== NOT EXECUTED 201ee30: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201ee34: 01 00 00 00 nop 0201ef60 : */ pid_t getpid( void ) { return _Objects_Local_node; } 201ef60: 81 c3 e0 08 retl <== NOT EXECUTED 201ef64: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED 0201eec0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 201eec0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 201eec4: 7f ff ff 37 call 201eba0 <== NOT EXECUTED 201eec8: 01 00 00 00 nop <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 201eecc: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED 201eed0: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 201eed4: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED 201eed8: 40 00 3b a4 call 202dd68 <== NOT EXECUTED 201eedc: 92 12 61 e0 or %o1, 0x1e0, %o1 <== NOT EXECUTED 201eee0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 201eee4: 12 80 00 08 bne 201ef04 <== NOT EXECUTED 201eee8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED errno = EINVAL; 201eeec: 40 00 39 2d call 202d3a0 <__errno> <== NOT EXECUTED 201eef0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201eef4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201eef8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201eefc: 81 c7 e0 08 ret <== NOT EXECUTED 201ef00: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 201ef04: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201ef08: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED 201ef0c: 7f ff fe cc call 201ea3c <== NOT EXECUTED 201ef10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ef14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ef18: 12 80 00 0a bne 201ef40 <== NOT EXECUTED 201ef1c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED errno = EINVAL; 201ef20: 40 00 39 20 call 202d3a0 <__errno> <== NOT EXECUTED 201ef24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201ef28: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201ef2c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 201ef30: 40 00 39 74 call 202d500 <== NOT EXECUTED 201ef34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ef38: 81 c7 e0 08 ret <== NOT EXECUTED 201ef3c: 81 e8 00 00 restore <== NOT EXECUTED return -1; } if (name) { 201ef40: 22 80 00 07 be,a 201ef5c <== NOT EXECUTED 201ef44: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 201ef48: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED 201ef4c: 40 00 4d 99 call 20325b0 <== NOT EXECUTED 201ef50: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 201ef54: 10 80 00 04 b 201ef64 <== NOT EXECUTED 201ef58: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); 201ef5c: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 201ef60: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 201ef64: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 201ef68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ef6c: 02 bf ff e6 be 201ef04 <== NOT EXECUTED 201ef70: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 201ef74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201ef78: 40 00 39 62 call 202d500 <== NOT EXECUTED 201ef7c: b0 10 20 00 clr %i0 <== NOT EXECUTED *result = pwd; 201ef80: f4 27 40 00 st %i2, [ %i5 ] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 201ef84: 81 c7 e0 08 ret <== NOT EXECUTED 201ef88: 81 e8 00 00 restore <== NOT EXECUTED 0201eb58 : return NULL; return p; } struct passwd *getpwent() { 201eb58: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (passwd_fp == NULL) 201eb5c: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201eb60: d0 00 61 7c ld [ %g1 + 0x17c ], %o0 ! 205917c <== NOT EXECUTED 201eb64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eb68: 02 80 00 0b be 201eb94 <== NOT EXECUTED 201eb6c: 15 00 81 64 sethi %hi(0x2059000), %o2 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 201eb70: 21 00 81 64 sethi %hi(0x2059000), %l0 <== NOT EXECUTED 201eb74: 92 14 22 48 or %l0, 0x248, %o1 ! 2059248 <== NOT EXECUTED 201eb78: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 201eb7c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 201eb80: 7f ff ff af call 201ea3c <== NOT EXECUTED 201eb84: b0 14 22 48 or %l0, 0x248, %i0 <== NOT EXECUTED 201eb88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eb8c: 12 80 00 03 bne 201eb98 <== NOT EXECUTED 201eb90: 01 00 00 00 nop <== NOT EXECUTED 201eb94: b0 10 20 00 clr %i0 ! 0 <== NOT EXECUTED return NULL; return &pwent; } 201eb98: 81 c7 e0 08 ret <== NOT EXECUTED 201eb9c: 81 e8 00 00 restore <== NOT EXECUTED 0201f030 : } struct passwd *getpwnam( const char *name ) { 201f030: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 201f034: 13 00 81 64 sethi %hi(0x2059000), %o1 <== NOT EXECUTED 201f038: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201f03c: 92 12 62 48 or %o1, 0x248, %o1 <== NOT EXECUTED 201f040: 15 00 81 64 sethi %hi(0x2059000), %o2 <== NOT EXECUTED 201f044: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 201f048: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 201f04c: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 201f050: 7f ff ff ed call 201f004 <== NOT EXECUTED 201f054: b0 10 20 00 clr %i0 <== NOT EXECUTED 201f058: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201f05c: 22 80 00 02 be,a 201f064 <== NOT EXECUTED 201f060: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 201f064: 81 c7 e0 08 ret <== NOT EXECUTED 201f068: 81 e8 00 00 restore <== NOT EXECUTED 0201f004 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 201f004: 82 10 00 0a mov %o2, %g1 <== NOT EXECUTED 201f008: 84 10 00 0b mov %o3, %g2 <== NOT EXECUTED 201f00c: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 201f010: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 201f014: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED 201f018: 98 10 00 02 mov %g2, %o4 <== NOT EXECUTED 201f01c: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f020: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201f024: 7f ff ff a7 call 201eec0 <== NOT EXECUTED 201f028: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201f02c: 01 00 00 00 nop 0201efc4 : } struct passwd *getpwuid( uid_t uid ) { 201efc4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 201efc8: 13 00 81 64 sethi %hi(0x2059000), %o1 <== NOT EXECUTED 201efcc: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 201efd0: 92 12 62 48 or %o1, 0x248, %o1 <== NOT EXECUTED 201efd4: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 201efd8: 15 00 81 64 sethi %hi(0x2059000), %o2 <== NOT EXECUTED 201efdc: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 201efe0: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 201efe4: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED 201efe8: 7f ff ff e9 call 201ef8c <== NOT EXECUTED 201efec: b0 10 20 00 clr %i0 <== NOT EXECUTED 201eff0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eff4: 22 80 00 02 be,a 201effc <== NOT EXECUTED 201eff8: f0 07 bf f4 ld [ %fp + -12 ], %i0 <== NOT EXECUTED return NULL; return p; } 201effc: 81 c7 e0 08 ret <== NOT EXECUTED 201f000: 81 e8 00 00 restore <== NOT EXECUTED 0201ef8c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 201ef8c: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED 201ef90: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 201ef94: 86 10 00 0b mov %o3, %g3 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 201ef98: 93 2a 20 10 sll %o0, 0x10, %o1 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 201ef9c: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 201efa0: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 201efa4: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 201efa8: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 201efac: 98 10 00 03 mov %g3, %o4 <== NOT EXECUTED 201efb0: 90 10 20 00 clr %o0 <== NOT EXECUTED 201efb4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201efb8: 7f ff ff c2 call 201eec0 <== NOT EXECUTED 201efbc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201efc0: 01 00 00 00 nop 0200a258 : int gettimeofday( struct timeval *tp, void * __tz ) { 200a258: 9d e3 bf 90 save %sp, -112, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 200a25c: 80 a6 20 00 cmp %i0, 0 200a260: 12 80 00 08 bne 200a280 200a264: 01 00 00 00 nop errno = EFAULT; 200a268: 40 00 08 56 call 200c3c0 <__errno> <== NOT EXECUTED 200a26c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200a270: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200a274: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a278: 81 c7 e0 08 ret <== NOT EXECUTED 200a27c: 81 e8 00 00 restore <== NOT EXECUTED ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 200a280: 7f ff de b0 call 2001d40 200a284: 01 00 00 00 nop 200a288: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 200a28c: 7f ff f0 15 call 20062e0 <_TOD_Get> 200a290: 90 07 bf f0 add %fp, -16, %o0 _ISR_Enable(level); 200a294: 7f ff de af call 2001d50 200a298: 90 10 00 10 mov %l0, %o0 time->tv_sec = now.tv_sec; time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 200a29c: d0 07 bf f4 ld [ %fp + -12 ], %o0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 200a2a0: c2 07 bf f0 ld [ %fp + -16 ], %g1 time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 200a2a4: 92 10 23 e8 mov 0x3e8, %o1 200a2a8: 40 00 23 11 call 2012eec <.udiv> 200a2ac: c2 26 00 00 st %g1, [ %i0 ] 200a2b0: 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; } 200a2b4: 81 c7 e0 08 ret 200a2b8: 91 e8 20 00 restore %g0, 0, %o0 020045e4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 20045e4: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 20045e8: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED return _POSIX_types_Uid; } 20045ec: 81 c3 e0 08 retl <== NOT EXECUTED 20045f0: d0 10 60 28 lduh [ %g1 + 0x28 ], %o0 <== NOT EXECUTED 0202a9f8 : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 202a9f8: 81 c3 e0 08 retl <== NOT EXECUTED 202a9fc: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 0202aa00 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 202aa00: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED buf->st_dev = 0ll; 202aa04: c0 22 40 00 clr [ %o1 ] <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; 202aa08: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 <== NOT EXECUTED buf->st_mode = the_jnode->st_mode; 202aa0c: 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; 202aa10: c4 22 60 08 st %g2, [ %o1 + 8 ] <== NOT EXECUTED buf->st_mode = the_jnode->st_mode; 202aa14: 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; 202aa18: c0 22 60 3c clr [ %o1 + 0x3c ] <== NOT EXECUTED buf->st_blocks = 0; 202aa1c: c0 22 60 40 clr [ %o1 + 0x40 ] <== 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; 202aa20: 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; buf->st_atime = the_jnode->stat_atime; 202aa24: 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; 202aa28: 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; 202aa2c: 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; 202aa30: 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; 202aa34: 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; 202aa38: 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; 202aa3c: 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; 202aa40: 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; 202aa44: 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; 202aa48: 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; 202aa4c: 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; 202aa50: 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; 202aa54: c0 22 60 18 clr [ %o1 + 0x18 ] <== NOT EXECUTED 202aa58: 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; 202aa5c: c0 22 60 20 clr [ %o1 + 0x20 ] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 202aa60: 86 00 60 50 add %g1, 0x50, %g3 <== 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 ; 202aa64: 10 80 00 05 b 202aa78 <== NOT EXECUTED 202aa68: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 202aa6c: c4 00 80 00 ld [ %g2 ], %g2 <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); 202aa70: 82 00 61 0c add %g1, 0x10c, %g1 <== NOT EXECUTED 202aa74: c2 22 60 20 st %g1, [ %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 ; !rtems_chain_is_tail( the_chain, the_node ) ; 202aa78: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 202aa7c: 32 bf ff fc bne,a 202aa6c <== NOT EXECUTED 202aa80: c2 02 60 20 ld [ %o1 + 0x20 ], %g1 <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 202aa84: 81 c3 e0 08 retl <== NOT EXECUTED 202aa88: 90 10 20 00 clr %o0 <== NOT EXECUTED 0202aa8c : off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 202aa8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED switch( whence ) { 202aa90: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED 202aa94: 18 80 00 0e bgu 202aacc <== NOT EXECUTED 202aa98: b4 10 00 18 mov %i0, %i2 <== NOT EXECUTED case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * 202aa9c: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 202aaa0: 92 10 21 0c mov 0x10c, %o1 <== NOT EXECUTED 202aaa4: 40 00 4a ce call 203d5dc <.udiv> <== NOT EXECUTED 202aaa8: b0 10 20 00 clr %i0 <== NOT EXECUTED 202aaac: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED 202aab0: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 202aab4: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 202aab8: 82 20 40 08 sub %g1, %o0, %g1 <== NOT EXECUTED 202aabc: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202aac0: c2 26 a0 08 st %g1, [ %i2 + 8 ] <== NOT EXECUTED 202aac4: 81 c7 e0 08 ret <== NOT EXECUTED 202aac8: 81 e8 00 00 restore <== 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 ); 202aacc: 40 00 0a 35 call 202d3a0 <__errno> <== NOT EXECUTED 202aad0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202aad4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202aad8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED break; } return 0; } 202aadc: 81 c7 e0 08 ret <== NOT EXECUTED 202aae0: 81 e8 00 00 restore <== NOT EXECUTED 0202a9d0 : IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 202a9d0: c2 02 20 2c ld [ %o0 + 0x2c ], %g1 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 202a9d4: 84 10 00 08 mov %o0, %g2 <== 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 ) 202a9d8: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 <== NOT EXECUTED 202a9dc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 202a9e0: 12 80 00 04 bne 202a9f0 <== NOT EXECUTED 202a9e4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 202a9e8: c0 20 a0 08 clr [ %g2 + 8 ] <== NOT EXECUTED 202a9ec: 90 10 20 00 clr %o0 <== NOT EXECUTED return 0; } 202a9f0: 81 c3 e0 08 retl <== NOT EXECUTED 202a9f4: 01 00 00 00 nop 0202abd8 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202abd8: 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; 202abdc: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202abe0: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 202abe4: 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; 202abe8: aa 00 60 50 add %g1, 0x50, %l5 <== NOT EXECUTED 202abec: 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 ) ) 202abf0: 80 a4 40 15 cmp %l1, %l5 <== NOT EXECUTED 202abf4: 02 80 00 2c be 202aca4 <== NOT EXECUTED 202abf8: 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; 202abfc: e6 04 a0 08 ld [ %l2 + 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); 202ac00: 40 00 4a 77 call 203d5dc <.udiv> <== NOT EXECUTED 202ac04: 92 10 21 0c mov 0x10c, %o1 <== NOT EXECUTED 202ac08: b4 10 20 00 clr %i2 <== NOT EXECUTED 202ac0c: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED 202ac10: 85 2a 20 06 sll %o0, 6, %g2 <== 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 ); 202ac14: ba 10 21 0c mov 0x10c, %i5 <== 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); 202ac18: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); strcpy( tmp_dirent.d_name, the_jnode->name ); 202ac1c: ae 07 be ec add %fp, -276, %l7 <== 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); 202ac20: 82 20 40 08 sub %g1, %o0, %g1 <== NOT EXECUTED tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); strcpy( tmp_dirent.d_name, the_jnode->name ); 202ac24: ac 07 be f8 add %fp, -264, %l6 <== 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); 202ac28: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 202ac2c: 10 80 00 1b b 202ac98 <== NOT EXECUTED 202ac30: a8 00 40 13 add %g1, %l3, %l4 <== NOT EXECUTED for ( current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 202ac34: 02 80 00 1c be 202aca4 <== NOT EXECUTED 202ac38: 80 a6 80 13 cmp %i2, %l3 <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 202ac3c: 26 80 00 16 bl,a 202ac94 <== NOT EXECUTED 202ac40: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 202ac44: 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; 202ac48: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 202ac4c: 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; 202ac50: 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 ); 202ac54: 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 ); 202ac58: 40 00 20 74 call 2032e28 <== NOT EXECUTED 202ac5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 202ac60: 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 ); 202ac64: d0 37 be f6 sth %o0, [ %fp + -266 ] <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 202ac68: 40 00 1e 82 call 2032670 <== NOT EXECUTED 202ac6c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED memcpy( 202ac70: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 202ac74: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 202ac78: 40 00 13 b7 call 202fb54 <== NOT EXECUTED 202ac7c: 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); 202ac80: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); 202ac84: b0 06 21 0c add %i0, 0x10c, %i0 <== NOT EXECUTED memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 202ac88: 82 00 61 0c add %g1, 0x10c, %g1 <== NOT EXECUTED 202ac8c: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 202ac90: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202ac94: b4 06 a1 0c add %i2, 0x10c, %i2 <== 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; 202ac98: 80 a6 80 14 cmp %i2, %l4 <== NOT EXECUTED 202ac9c: 06 bf ff e6 bl 202ac34 <== NOT EXECUTED 202aca0: 80 a4 40 15 cmp %l1, %l5 <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 202aca4: 81 c7 e0 08 ret <== NOT EXECUTED 202aca8: 81 e8 00 00 restore <== NOT EXECUTED 0202aae4 : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 202aae4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 202aae8: 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 ) ) 202aaec: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED 202aaf0: 82 04 20 50 add %l0, 0x50, %g1 <== NOT EXECUTED 202aaf4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 202aaf8: 22 80 00 06 be,a 202ab10 <== NOT EXECUTED 202aafc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTEMPTY ); 202ab00: 40 00 0a 28 call 202d3a0 <__errno> <== NOT EXECUTED 202ab04: 01 00 00 00 nop <== NOT EXECUTED 202ab08: 10 80 00 0d b 202ab3c <== NOT EXECUTED 202ab0c: 82 10 20 5a mov 0x5a, %g1 ! 5a <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 202ab10: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 202ab14: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED 202ab18: 02 80 00 06 be 202ab30 <== NOT EXECUTED 202ab1c: 01 00 00 00 nop <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 202ab20: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 202ab24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202ab28: 22 80 00 08 be,a 202ab48 <== NOT EXECUTED 202ab2c: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBUSY ); 202ab30: 40 00 0a 1c call 202d3a0 <__errno> <== NOT EXECUTED 202ab34: 01 00 00 00 nop <== NOT EXECUTED 202ab38: 82 10 20 10 mov 0x10, %g1 ! 10 <== NOT EXECUTED 202ab3c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202ab40: 81 c7 e0 08 ret <== NOT EXECUTED 202ab44: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 202ab48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202ab4c: 22 80 00 06 be,a 202ab64 <== NOT EXECUTED 202ab50: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 202ab54: 7f ff da 36 call 202142c <_Chain_Extract> <== NOT EXECUTED 202ab58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 202ab5c: 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--; 202ab60: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 202ab64: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 202ab68: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 202ab6c: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 202ab70: 7f ff 66 7a call 2004558 <== NOT EXECUTED 202ab74: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] <== NOT EXECUTED 202ab78: 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) ) { 202ab7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202ab80: 7f ff 66 e8 call 2004720 <== NOT EXECUTED 202ab84: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 202ab88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202ab8c: 12 80 00 11 bne 202abd0 <== NOT EXECUTED 202ab90: 01 00 00 00 nop <== NOT EXECUTED 202ab94: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 202ab98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202ab9c: 12 80 00 0d bne 202abd0 <== NOT EXECUTED 202aba0: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 202aba4: c6 00 61 9c ld [ %g1 + 0x19c ], %g3 ! 204559c <== NOT EXECUTED 202aba8: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED 202abac: c2 00 e0 04 ld [ %g3 + 4 ], %g1 <== NOT EXECUTED 202abb0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202abb4: 22 80 00 02 be,a 202abbc <== NOT EXECUTED 202abb8: c0 20 e0 04 clr [ %g3 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 202abbc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202abc0: 7f ff 66 3c call 20044b0 <== NOT EXECUTED 202abc4: b0 10 20 00 clr %i0 <== NOT EXECUTED 202abc8: 81 c7 e0 08 ret <== NOT EXECUTED 202abcc: 81 e8 00 00 restore <== NOT EXECUTED } return 0; } 202abd0: 81 c7 e0 08 ret <== NOT EXECUTED 202abd4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201eba0 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 201eba0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 201eba4: 05 00 81 64 sethi %hi(0x2059000), %g2 <== NOT EXECUTED 201eba8: c2 48 a1 78 ldsb [ %g2 + 0x178 ], %g1 ! 2059178 <== NOT EXECUTED 201ebac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ebb0: 12 80 00 31 bne 201ec74 <== NOT EXECUTED 201ebb4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED return; etc_passwd_initted = 1; mkdir("/etc", 0777); 201ebb8: 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; 201ebbc: c2 28 a1 78 stb %g1, [ %g2 + 0x178 ] <== NOT EXECUTED mkdir("/etc", 0777); 201ebc0: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED 201ebc4: 7f ff 98 3c call 2004cb4 <== NOT EXECUTED 201ebc8: 90 12 21 80 or %o0, 0x180, %o0 ! 2041d80 <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 201ebcc: 31 00 81 07 sethi %hi(0x2041c00), %i0 <== NOT EXECUTED 201ebd0: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 201ebd4: 90 16 21 88 or %i0, 0x188, %o0 <== NOT EXECUTED 201ebd8: 40 00 3c 64 call 202dd68 <== NOT EXECUTED 201ebdc: 92 12 61 e0 or %o1, 0x1e0, %o1 <== NOT EXECUTED 201ebe0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ebe4: 12 80 00 0d bne 201ec18 <== NOT EXECUTED 201ebe8: 01 00 00 00 nop <== NOT EXECUTED fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 201ebec: 90 16 21 88 or %i0, 0x188, %o0 <== NOT EXECUTED 201ebf0: 13 00 81 03 sethi %hi(0x2040c00), %o1 <== NOT EXECUTED 201ebf4: 40 00 3c 5d call 202dd68 <== NOT EXECUTED 201ebf8: 92 12 62 f0 or %o1, 0x2f0, %o1 ! 2040ef0 <== NOT EXECUTED 201ebfc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 201ec00: 02 80 00 08 be 201ec20 <== NOT EXECUTED 201ec04: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 201ec08: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 201ec0c: 40 00 3c b1 call 202ded0 <== NOT EXECUTED 201ec10: 90 12 21 98 or %o0, 0x198, %o0 <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 201ec14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201ec18: 40 00 3a 3a call 202d500 <== NOT EXECUTED 201ec1c: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 201ec20: 31 00 81 07 sethi %hi(0x2041c00), %i0 <== NOT EXECUTED 201ec24: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 201ec28: 90 16 22 00 or %i0, 0x200, %o0 <== NOT EXECUTED 201ec2c: 40 00 3c 4f call 202dd68 <== NOT EXECUTED 201ec30: 92 12 61 e0 or %o1, 0x1e0, %o1 <== NOT EXECUTED 201ec34: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ec38: 22 80 00 04 be,a 201ec48 <== NOT EXECUTED 201ec3c: 90 16 22 00 or %i0, 0x200, %o0 <== NOT EXECUTED fclose(fp); 201ec40: 10 80 00 0b b 201ec6c <== NOT EXECUTED 201ec44: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } else if ((fp = fopen("/etc/group", "w")) != NULL) { 201ec48: 13 00 81 03 sethi %hi(0x2040c00), %o1 <== NOT EXECUTED 201ec4c: 40 00 3c 47 call 202dd68 <== NOT EXECUTED 201ec50: 92 12 62 f0 or %o1, 0x2f0, %o1 ! 2040ef0 <== NOT EXECUTED 201ec54: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 201ec58: 02 80 00 07 be 201ec74 <== NOT EXECUTED 201ec5c: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 201ec60: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 201ec64: 40 00 3c 9b call 202ded0 <== NOT EXECUTED 201ec68: 90 12 22 10 or %o0, 0x210, %o0 <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 201ec6c: 40 00 3a 25 call 202d500 <== NOT EXECUTED 201ec70: 81 e8 00 00 restore <== NOT EXECUTED 201ec74: 81 c7 e0 08 ret <== NOT EXECUTED 201ec78: 81 e8 00 00 restore <== NOT EXECUTED 02014894 : int ioctl( int fd, ioctl_command_t command, ... ) { 2014894: 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 ); 2014898: 03 00 80 8d sethi %hi(0x2023400), %g1 <== NOT EXECUTED 201489c: c2 00 60 a8 ld [ %g1 + 0xa8 ], %g1 ! 20234a8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 20148a0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20148a4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 20148a8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 20148ac: 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 ); 20148b0: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20148b4: 1a 80 00 14 bcc 2014904 <== NOT EXECUTED 20148b8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20148bc: 03 00 80 94 sethi %hi(0x2025000), %g1 <== NOT EXECUTED 20148c0: c6 00 62 3c ld [ %g1 + 0x23c ], %g3 ! 202523c <== NOT EXECUTED 20148c4: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 20148c8: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 20148cc: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20148d0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 20148d4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 20148d8: 90 00 c0 01 add %g3, %g1, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20148dc: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED 20148e0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20148e4: 02 80 00 08 be 2014904 <== NOT EXECUTED 20148e8: 01 00 00 00 nop <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 20148ec: 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 *); 20148f0: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED 20148f4: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 20148f8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20148fc: 12 80 00 06 bne 2014914 <== NOT EXECUTED 2014900: d4 07 a0 4c ld [ %fp + 0x4c ], %o2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2014904: 40 00 02 14 call 2015154 <__errno> <== NOT EXECUTED 2014908: 01 00 00 00 nop <== NOT EXECUTED 201490c: 10 80 00 09 b 2014930 <== NOT EXECUTED 2014910: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->ioctl_h ) 2014914: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2014918: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201491c: 12 80 00 08 bne 201493c <== NOT EXECUTED 2014920: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2014924: 40 00 02 0c call 2015154 <__errno> <== NOT EXECUTED 2014928: 01 00 00 00 nop <== NOT EXECUTED 201492c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2014930: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014934: 10 80 00 04 b 2014944 <== NOT EXECUTED 2014938: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 201493c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2014940: 01 00 00 00 nop <== NOT EXECUTED return rc; } 2014944: 81 c7 e0 08 ret <== NOT EXECUTED 2014948: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02003894 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2003894: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2003898: c4 06 60 30 ld [ %i1 + 0x30 ], %g2 <== NOT EXECUTED 200389c: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 20038a0: 02 80 00 03 be 20038ac <== NOT EXECUTED 20038a4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 20038a8: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 20038ac: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 20038b0: 02 80 00 0b be 20038dc <== NOT EXECUTED 20038b4: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED c = tolower (c); 20038b8: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 20038bc: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2015f90 <__ctype_ptr> <== NOT EXECUTED 20038c0: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 20038c4: c2 08 40 08 ldub [ %g1 + %o0 ], %g1 <== NOT EXECUTED 20038c8: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20038cc: 32 80 00 02 bne,a 20038d4 <== NOT EXECUTED 20038d0: 90 02 20 20 add %o0, 0x20, %o0 <== NOT EXECUTED 20038d4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED if (c == '\r') { 20038d8: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED 20038dc: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 20038e0: 12 80 00 09 bne 2003904 <== NOT EXECUTED 20038e4: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 20038e8: 80 88 a0 80 btst 0x80, %g2 <== NOT EXECUTED 20038ec: 12 80 00 5d bne 2003a60 <== NOT EXECUTED 20038f0: 80 88 a1 00 btst 0x100, %g2 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 20038f4: 32 80 00 0d bne,a 2003928 <== NOT EXECUTED 20038f8: 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)) { 20038fc: 10 80 00 0c b 200392c <== NOT EXECUTED 2003900: c6 06 60 3c ld [ %i1 + 0x3c ], %g3 <== 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)) { 2003904: 12 80 00 07 bne 2003920 <== NOT EXECUTED 2003908: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200390c: 80 88 a0 40 btst 0x40, %g2 <== NOT EXECUTED 2003910: 32 80 00 06 bne,a 2003928 <== NOT EXECUTED 2003914: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2003918: 10 80 00 05 b 200392c <== NOT EXECUTED 200391c: c6 06 60 3c ld [ %i1 + 0x3c ], %g3 <== NOT EXECUTED 2003920: 02 80 00 3c be 2003a10 <== NOT EXECUTED 2003924: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2003928: c6 06 60 3c ld [ %i1 + 0x3c ], %g3 <== NOT EXECUTED 200392c: 80 88 e0 02 btst 2, %g3 <== NOT EXECUTED 2003930: 02 80 00 38 be 2003a10 <== NOT EXECUTED 2003934: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2003938: c2 0e 60 43 ldub [ %i1 + 0x43 ], %g1 <== NOT EXECUTED 200393c: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED erase (tty, 0); 2003940: 90 10 00 19 mov %i1, %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]) { 2003944: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003948: 02 80 00 08 be 2003968 <== NOT EXECUTED 200394c: 92 10 20 00 clr %o1 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2003950: c2 0e 60 44 ldub [ %i1 + 0x44 ], %g1 <== NOT EXECUTED 2003954: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003958: 32 80 00 07 bne,a 2003974 <== NOT EXECUTED 200395c: c2 0e 60 45 ldub [ %i1 + 0x45 ], %g1 <== NOT EXECUTED erase (tty, 1); 2003960: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003964: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003968: 7f ff ff 42 call 2003670 <== NOT EXECUTED 200396c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003970: 30 80 00 3d b,a 2003a64 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2003974: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003978: 02 80 00 3b be 2003a64 <== NOT EXECUTED 200397c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 2003980: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED 2003984: 32 80 00 0f bne,a 20039c0 <== NOT EXECUTED 2003988: c2 0e 60 4c ldub [ %i1 + 0x4c ], %g1 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 200398c: 80 88 e0 48 btst 0x48, %g3 <== NOT EXECUTED 2003990: 22 80 00 06 be,a 20039a8 <== NOT EXECUTED 2003994: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003998: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 200399c: 7f ff ff 12 call 20035e4 <== NOT EXECUTED 20039a0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 20039a4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20039a8: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 20039ac: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED 20039b0: c4 28 c0 01 stb %g2, [ %g3 + %g1 ] <== NOT EXECUTED 20039b4: 82 00 60 01 inc %g1 <== NOT EXECUTED 20039b8: 10 80 00 14 b 2003a08 <== NOT EXECUTED 20039bc: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 20039c0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20039c4: 02 80 00 07 be 20039e0 <== NOT EXECUTED 20039c8: 80 88 e0 08 btst 8, %g3 <== NOT EXECUTED 20039cc: c2 0e 60 51 ldub [ %i1 + 0x51 ], %g1 <== NOT EXECUTED 20039d0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20039d4: 12 80 00 0f bne 2003a10 <== NOT EXECUTED 20039d8: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 20039dc: 80 88 e0 08 btst 8, %g3 <== NOT EXECUTED 20039e0: 22 80 00 06 be,a 20039f8 <== NOT EXECUTED 20039e4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 20039e8: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 20039ec: 7f ff fe fe call 20035e4 <== NOT EXECUTED 20039f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 20039f4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20039f8: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 20039fc: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 2003a00: e0 28 80 01 stb %l0, [ %g2 + %g1 ] <== NOT EXECUTED 2003a04: c6 26 60 20 st %g3, [ %i1 + 0x20 ] <== NOT EXECUTED 2003a08: 81 c7 e0 08 ret <== NOT EXECUTED 2003a0c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2003a10: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 2003a14: c2 00 63 34 ld [ %g1 + 0x334 ], %g1 <== NOT EXECUTED 2003a18: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003a1c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003a20: 16 80 00 11 bge 2003a64 <== NOT EXECUTED 2003a24: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003a28: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003a2c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003a30: 22 80 00 06 be,a 2003a48 <== NOT EXECUTED 2003a34: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003a38: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003a3c: 7f ff fe ea call 20035e4 <== NOT EXECUTED 2003a40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003a44: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003a48: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2003a4c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 2003a50: e0 28 80 01 stb %l0, [ %g2 + %g1 ] <== NOT EXECUTED 2003a54: c6 26 60 20 st %g3, [ %i1 + 0x20 ] <== NOT EXECUTED 2003a58: 81 c7 e0 08 ret <== NOT EXECUTED 2003a5c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 2003a60: b0 10 20 00 clr %i0 <== NOT EXECUTED } return 0; } 2003a64: 81 c7 e0 08 ret <== NOT EXECUTED 2003a68: 81 e8 00 00 restore <== NOT EXECUTED 0201f0d4 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 201f0d4: 81 c3 e0 08 retl <== NOT EXECUTED 201f0d8: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 02013e4c : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 2013e4c: 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())) 2013e50: 03 00 80 5a sethi %hi(0x2016800), %g1 2013e54: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 2016a24 <_System_state_Current> 2013e58: 80 a0 60 03 cmp %g1, 3 2013e5c: 12 80 00 16 bne 2013eb4 2013e60: 31 00 80 57 sethi %hi(0x2015c00), %i0 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != &libc_global_reent) { 2013e64: c4 06 23 98 ld [ %i0 + 0x398 ], %g2 ! 2015f98 <_impure_ptr> 2013e68: 03 00 80 56 sethi %hi(0x2015800), %g1 2013e6c: a0 10 63 30 or %g1, 0x330, %l0 ! 2015b30 2013e70: 80 a0 80 10 cmp %g2, %l0 2013e74: 22 80 00 06 be,a 2013e8c 2013e78: 21 00 80 57 sethi %hi(0x2015c00), %l0 _wrapup_reent(&libc_global_reent); 2013e7c: 40 00 01 c9 call 20145a0 <_wrapup_reent> 2013e80: 90 10 00 10 mov %l0, %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; 2013e84: e0 26 23 98 st %l0, [ %i0 + 0x398 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 2013e88: 21 00 80 57 sethi %hi(0x2015c00), %l0 2013e8c: c2 04 23 98 ld [ %l0 + 0x398 ], %g1 ! 2015f98 <_impure_ptr> 2013e90: 7f ff e1 a4 call 200c520 2013e94: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 2013e98: c2 04 23 98 ld [ %l0 + 0x398 ], %g1 2013e9c: 7f ff e1 a1 call 200c520 2013ea0: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 2013ea4: c2 04 23 98 ld [ %l0 + 0x398 ], %g1 2013ea8: f0 00 60 0c ld [ %g1 + 0xc ], %i0 2013eac: 7f ff e1 9d call 200c520 2013eb0: 81 e8 00 00 restore 2013eb4: 81 c7 e0 08 ret <== NOT EXECUTED 2013eb8: 81 e8 00 00 restore <== NOT EXECUTED 0201f164 : int link( const char *existing, const char *new ) { 201f164: 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 ); 201f168: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f16c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201f170: 94 07 bf e4 add %fp, -28, %o2 <== NOT EXECUTED 201f174: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 201f178: 7f ff 94 7c call 2004368 <== NOT EXECUTED 201f17c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( result != 0 ) 201f180: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201f184: 12 80 00 8e bne 201f3bc <== NOT EXECUTED 201f188: 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 ); 201f18c: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 201f190: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 201f194: 02 80 00 06 be 201f1ac <== NOT EXECUTED 201f198: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 201f19c: 02 80 00 04 be 201f1ac <== NOT EXECUTED 201f1a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f1a4: 12 80 00 0a bne 201f1cc <== NOT EXECUTED 201f1a8: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201f1ac: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201f1b0: d2 00 61 9c ld [ %g1 + 0x19c ], %o1 ! 204559c <== NOT EXECUTED 201f1b4: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 201f1b8: 92 02 60 14 add %o1, 0x14, %o1 <== NOT EXECUTED 201f1bc: 40 00 42 66 call 202fb54 <== NOT EXECUTED 201f1c0: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201f1c4: 10 80 00 08 b 201f1e4 <== NOT EXECUTED 201f1c8: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED 201f1cc: d2 00 61 9c ld [ %g1 + 0x19c ], %o1 <== NOT EXECUTED 201f1d0: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 201f1d4: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 201f1d8: 40 00 42 5f call 202fb54 <== NOT EXECUTED 201f1dc: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201f1e0: 84 10 20 00 clr %g2 <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 201f1e4: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f1e8: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 201f1ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f1f0: 12 80 00 0b bne 201f21c <== NOT EXECUTED 201f1f4: 90 06 40 02 add %i1, %g2, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 201f1f8: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201f1fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f200: 02 80 00 51 be 201f344 <== NOT EXECUTED 201f204: 01 00 00 00 nop <== NOT EXECUTED 201f208: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f20c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f210: 12 80 00 4b bne 201f33c <== NOT EXECUTED 201f214: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED 201f218: 30 80 00 4b b,a 201f344 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 201f21c: b0 07 bf d4 add %fp, -44, %i0 <== NOT EXECUTED 201f220: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 201f224: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f228: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if ( result != 0 ) { 201f22c: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED 201f230: 02 80 00 11 be 201f274 <== NOT EXECUTED 201f234: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 201f238: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201f23c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f240: 02 80 00 08 be 201f260 <== NOT EXECUTED 201f244: 01 00 00 00 nop <== NOT EXECUTED 201f248: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f24c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f250: 02 80 00 04 be 201f260 <== NOT EXECUTED 201f254: 01 00 00 00 nop <== NOT EXECUTED 201f258: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f25c: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 201f260: 40 00 38 50 call 202d3a0 <__errno> <== NOT EXECUTED 201f264: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201f268: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED 201f26c: 81 c7 e0 08 ret <== NOT EXECUTED 201f270: 81 e8 00 00 restore <== 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 ) { 201f274: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 201f278: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 201f27c: 02 80 00 1a be 201f2e4 <== NOT EXECUTED 201f280: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 201f284: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201f288: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f28c: 22 80 00 09 be,a 201f2b0 <== NOT EXECUTED 201f290: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f294: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f298: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f29c: 22 80 00 05 be,a 201f2b0 <== NOT EXECUTED 201f2a0: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f2a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f2a8: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 201f2ac: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f2b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f2b4: 02 80 00 08 be 201f2d4 <== NOT EXECUTED 201f2b8: 01 00 00 00 nop <== NOT EXECUTED 201f2bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f2c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f2c4: 02 80 00 04 be 201f2d4 <== NOT EXECUTED 201f2c8: 01 00 00 00 nop <== NOT EXECUTED 201f2cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f2d0: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 201f2d4: 40 00 38 33 call 202d3a0 <__errno> <== NOT EXECUTED 201f2d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201f2dc: 10 80 00 1d b 201f350 <== NOT EXECUTED 201f2e0: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { 201f2e4: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 201f2e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f2ec: 12 80 00 1c bne 201f35c <== NOT EXECUTED 201f2f0: d4 07 bf f4 ld [ %fp + -12 ], %o2 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 201f2f4: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201f2f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f2fc: 22 80 00 09 be,a 201f320 <== NOT EXECUTED 201f300: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f304: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f308: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f30c: 22 80 00 05 be,a 201f320 <== NOT EXECUTED 201f310: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f314: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f318: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 201f31c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f320: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f324: 02 80 00 08 be 201f344 <== NOT EXECUTED 201f328: 01 00 00 00 nop <== NOT EXECUTED 201f32c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f330: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f334: 02 80 00 04 be 201f344 <== NOT EXECUTED 201f338: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 201f33c: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f340: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201f344: 40 00 38 17 call 202d3a0 <__errno> <== NOT EXECUTED 201f348: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 201f34c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201f350: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201f354: 81 c7 e0 08 ret <== NOT EXECUTED 201f358: 81 e8 00 00 restore <== NOT EXECUTED } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 201f35c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 201f360: b2 07 bf e4 add %fp, -28, %i1 <== NOT EXECUTED 201f364: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f368: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 201f36c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201f370: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f374: 02 80 00 08 be 201f394 <== NOT EXECUTED 201f378: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 201f37c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f380: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f384: 22 80 00 05 be,a 201f398 <== NOT EXECUTED 201f388: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f38c: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f390: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 201f394: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED 201f398: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f39c: 02 80 00 08 be 201f3bc <== NOT EXECUTED 201f3a0: 01 00 00 00 nop <== NOT EXECUTED 201f3a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f3a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f3ac: 02 80 00 04 be 201f3bc <== NOT EXECUTED 201f3b0: 01 00 00 00 nop <== NOT EXECUTED 201f3b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f3b8: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED return result; } 201f3bc: 81 c7 e0 08 ret <== NOT EXECUTED 201f3c0: 81 e8 00 00 restore <== NOT EXECUTED 02013d28 : off_t lseek( int fd, off_t offset, int whence ) { 2013d28: 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 ); 2013d2c: 03 00 80 56 sethi %hi(0x2015800), %g1 <== NOT EXECUTED 2013d30: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 2015a28 <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 2013d34: 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 ); 2013d38: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2013d3c: 1a 80 00 0e bcc 2013d74 <== NOT EXECUTED 2013d40: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2013d44: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2013d48: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac <== NOT EXECUTED 2013d4c: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 2013d50: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 2013d54: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2013d58: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 2013d5c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 2013d60: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2013d64: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2013d68: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2013d6c: 32 80 00 06 bne,a 2013d84 <== NOT EXECUTED 2013d70: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2013d74: 7f ff e1 93 call 200c3c0 <__errno> <== NOT EXECUTED 2013d78: 01 00 00 00 nop <== NOT EXECUTED 2013d7c: 10 80 00 1c b 2013dec <== NOT EXECUTED 2013d80: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 2013d84: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2013d88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2013d8c: 12 80 00 06 bne 2013da4 <== NOT EXECUTED 2013d90: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2013d94: 7f ff e1 8b call 200c3c0 <__errno> <== NOT EXECUTED 2013d98: 01 00 00 00 nop <== NOT EXECUTED 2013d9c: 10 80 00 14 b 2013dec <== NOT EXECUTED 2013da0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 2013da4: 02 80 00 09 be 2013dc8 <== NOT EXECUTED 2013da8: f4 06 20 08 ld [ %i0 + 8 ], %i2 <== NOT EXECUTED 2013dac: 80 a2 a0 02 cmp %o2, 2 <== NOT EXECUTED 2013db0: 02 80 00 08 be 2013dd0 <== NOT EXECUTED 2013db4: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 2013db8: 12 80 00 0a bne 2013de0 <== NOT EXECUTED 2013dbc: 01 00 00 00 nop <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 2013dc0: 10 80 00 0e b 2013df8 <== NOT EXECUTED 2013dc4: f2 26 20 08 st %i1, [ %i0 + 8 ] <== NOT EXECUTED break; case SEEK_CUR: iop->offset += offset; 2013dc8: 10 80 00 04 b 2013dd8 <== NOT EXECUTED 2013dcc: 82 06 40 1a add %i1, %i2, %g1 <== NOT EXECUTED break; case SEEK_END: iop->offset = iop->size + offset; 2013dd0: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 2013dd4: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED 2013dd8: 10 80 00 08 b 2013df8 <== NOT EXECUTED 2013ddc: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 2013de0: 7f ff e1 78 call 200c3c0 <__errno> <== NOT EXECUTED 2013de4: 01 00 00 00 nop <== NOT EXECUTED 2013de8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2013dec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013df0: 10 80 00 09 b 2013e14 <== NOT EXECUTED 2013df4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 2013df8: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2013dfc: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2013e00: 9f c0 40 00 call %g1 <== NOT EXECUTED 2013e04: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( status == (off_t) -1 ) 2013e08: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2013e0c: 22 80 00 02 be,a 2013e14 <== NOT EXECUTED 2013e10: f4 26 20 08 st %i2, [ %i0 + 8 ] <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 2013e14: 81 c7 e0 08 ret <== NOT EXECUTED 2013e18: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0201f4ec : int _STAT_NAME( const char *path, struct stat *buf ) { 201f4ec: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 201f4f0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 201f4f4: 12 80 00 06 bne 201f50c <== NOT EXECUTED 201f4f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 201f4fc: 40 00 37 a9 call 202d3a0 <__errno> <== NOT EXECUTED 201f500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201f504: 10 80 00 1c b 201f574 <== NOT EXECUTED 201f508: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 201f50c: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 201f510: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f514: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201f518: 96 10 20 00 clr %o3 <== NOT EXECUTED 201f51c: 7f ff 93 93 call 2004368 <== NOT EXECUTED 201f520: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( status != 0 ) 201f524: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201f528: 12 80 00 14 bne 201f578 <== NOT EXECUTED 201f52c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 201f530: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 201f534: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f538: 12 80 00 12 bne 201f580 <== NOT EXECUTED 201f53c: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201f540: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201f544: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f548: 02 80 00 08 be 201f568 <== NOT EXECUTED 201f54c: 01 00 00 00 nop <== NOT EXECUTED 201f550: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f554: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f558: 02 80 00 04 be 201f568 <== NOT EXECUTED 201f55c: 01 00 00 00 nop <== NOT EXECUTED 201f560: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f564: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201f568: 40 00 37 8e call 202d3a0 <__errno> <== NOT EXECUTED 201f56c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201f570: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201f574: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201f578: 81 c7 e0 08 ret <== NOT EXECUTED 201f57c: 81 e8 00 00 restore <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 201f580: 94 10 20 50 mov 0x50, %o2 <== NOT EXECUTED 201f584: 40 00 41 fc call 202fd74 <== NOT EXECUTED 201f588: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 201f58c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201f590: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 201f594: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 201f598: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f59c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201f5a0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201f5a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f5a8: 02 bf ff f4 be 201f578 <== NOT EXECUTED 201f5ac: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 201f5b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201f5b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201f5b8: 02 80 00 04 be 201f5c8 <== NOT EXECUTED 201f5bc: 01 00 00 00 nop <== NOT EXECUTED 201f5c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 201f5c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 201f5c8: 81 c7 e0 08 ret <== NOT EXECUTED 201f5cc: 81 e8 00 00 restore <== NOT EXECUTED 0200a63c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200a63c: 9d e3 bf 98 save %sp, -104, %sp 200a640: 05 00 80 59 sethi %hi(0x2016400), %g2 200a644: 84 10 a3 10 or %g2, 0x310, %g2 ! 2016710 200a648: c2 00 a0 04 ld [ %g2 + 4 ], %g1 200a64c: a0 10 00 18 mov %i0, %l0 200a650: 82 00 60 01 inc %g1 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200a654: 7f ff ff ed call 200a608 200a658: c2 20 a0 04 st %g1, [ %g2 + 4 ] /* * Validate the parameters */ if ( !size ) 200a65c: 80 a6 20 00 cmp %i0, 0 200a660: 02 80 00 33 be 200a72c 200a664: 03 00 80 5a sethi %hi(0x2016800), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200a668: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 2016a24 <_System_state_Current> 200a66c: 80 a0 60 03 cmp %g1, 3 200a670: 12 80 00 07 bne 200a68c 200a674: 11 00 80 59 sethi %hi(0x2016400), %o0 200a678: 7f ff ff ca call 200a5a0 200a67c: 01 00 00 00 nop 200a680: 80 8a 20 ff btst 0xff, %o0 200a684: 02 80 00 2a be 200a72c 200a688: 11 00 80 59 sethi %hi(0x2016400), %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 ); 200a68c: 92 10 00 10 mov %l0, %o1 200a690: 40 00 03 5e call 200b408 <_Protected_heap_Allocate> 200a694: 90 12 22 b8 or %o0, 0x2b8, %o0 if ( !return_this ) { 200a698: b0 92 20 00 orcc %o0, 0, %i0 200a69c: 12 80 00 14 bne 200a6ec 200a6a0: 03 00 80 59 sethi %hi(0x2016400), %g1 if (rtems_malloc_sbrk_helpers) 200a6a4: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a6a8: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 ! 2016448 <== NOT EXECUTED 200a6ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a6b0: 02 80 00 08 be 200a6d0 <== NOT EXECUTED 200a6b4: 01 00 00 00 nop <== NOT EXECUTED return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200a6b8: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200a6bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a6c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 200a6c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a6c8: 32 80 00 08 bne,a 200a6e8 <== NOT EXECUTED 200a6cc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED errno = ENOMEM; 200a6d0: 40 00 07 3c call 200c3c0 <__errno> <== NOT EXECUTED 200a6d4: 01 00 00 00 nop <== NOT EXECUTED 200a6d8: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200a6dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a6e0: 81 c7 e0 08 ret <== NOT EXECUTED 200a6e4: 81 e8 00 00 restore <== NOT EXECUTED } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 200a6e8: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a6ec: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 ! 201644c 200a6f0: 80 a0 60 00 cmp %g1, 0 200a6f4: 02 80 00 04 be 200a704 200a6f8: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 200a6fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a700: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200a704: 03 00 80 59 sethi %hi(0x2016400), %g1 200a708: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 2016444 200a70c: 80 a0 60 00 cmp %g1, 0 200a710: 02 80 00 08 be 200a730 200a714: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 200a718: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200a71c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a720: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200a724: 81 c7 e0 08 ret <== NOT EXECUTED 200a728: 81 e8 00 00 restore <== NOT EXECUTED 200a72c: b0 10 20 00 clr %i0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 200a730: 81 c7 e0 08 ret 200a734: 81 e8 00 00 restore 0200a5ec : } void malloc_deferred_free( void *pointer ) { 200a5ec: 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 ); 200a5f0: 11 00 80 5a sethi %hi(0x2016800), %o0 <== NOT EXECUTED 200a5f4: 90 12 23 3c or %o0, 0x33c, %o0 ! 2016b3c <== NOT EXECUTED 200a5f8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a5fc: 7f ff ee 2d call 2005eb0 <_Chain_Append> <== NOT EXECUTED 200a600: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200a604: 01 00 00 00 nop 0200a608 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 200a608: 9d e3 bf 98 save %sp, -104, %sp */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 200a60c: 03 00 80 5a sethi %hi(0x2016800), %g1 200a610: 10 80 00 04 b 200a620 200a614: a0 10 63 3c or %g1, 0x33c, %l0 ! 2016b3c /* * 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); 200a618: 7f ff fe a9 call 200a0bc <== NOT EXECUTED 200a61c: 01 00 00 00 nop <== NOT EXECUTED 200a620: 40 00 02 3d call 200af14 <_Chain_Get> 200a624: 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) 200a628: 80 a2 20 00 cmp %o0, 0 200a62c: 12 bf ff fb bne 200a618 200a630: 01 00 00 00 nop free(to_be_freed); } 200a634: 81 c7 e0 08 ret 200a638: 81 e8 00 00 restore 020245cc : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 20245cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 20245d0: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 20245d4: d2 00 62 0c ld [ %g1 + 0x20c ], %o1 ! 2046a0c <== NOT EXECUTED 20245d8: 7f ff 7e af call 2004094 <== NOT EXECUTED 20245dc: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED if ( memory ) 20245e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20245e4: 02 80 00 05 be 20245f8 <== NOT EXECUTED 20245e8: 05 00 81 64 sethi %hi(0x2059000), %g2 <== NOT EXECUTED memfile_blocks_allocated++; 20245ec: c2 00 a3 40 ld [ %g2 + 0x340 ], %g1 ! 2059340 <== NOT EXECUTED 20245f0: 82 00 60 01 inc %g1 <== NOT EXECUTED 20245f4: c2 20 a3 40 st %g1, [ %g2 + 0x340 ] <== NOT EXECUTED return memory; } 20245f8: 81 c7 e0 08 ret <== NOT EXECUTED 20245fc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02024ad0 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 2024ad0: 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) ) { 2024ad4: 7f ff 7f 13 call 2004720 <== NOT EXECUTED 2024ad8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024adc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024ae0: 12 80 00 13 bne 2024b2c <== NOT EXECUTED 2024ae4: 01 00 00 00 nop <== NOT EXECUTED 2024ae8: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2024aec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024af0: 12 80 00 0f bne 2024b2c <== NOT EXECUTED 2024af4: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 2024af8: c4 00 61 9c ld [ %g1 + 0x19c ], %g2 ! 204559c <== NOT EXECUTED 2024afc: c2 00 a0 04 ld [ %g2 + 4 ], %g1 <== NOT EXECUTED 2024b00: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 2024b04: 22 80 00 02 be,a 2024b0c <== NOT EXECUTED 2024b08: c0 20 a0 04 clr [ %g2 + 4 ] <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 2024b0c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 <== NOT EXECUTED 2024b10: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2024b14: 02 80 00 04 be 2024b24 <== NOT EXECUTED 2024b18: 01 00 00 00 nop <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 2024b1c: 7f ff ff 8c call 202494c <== NOT EXECUTED 2024b20: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED free( the_jnode ); 2024b24: 7f ff 7e 63 call 20044b0 <== NOT EXECUTED 2024b28: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2024b2c: 81 c7 e0 08 ret <== NOT EXECUTED 2024b30: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02024b88 : */ int memfile_close( rtems_libio_t *iop ) { 2024b88: 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) 2024b8c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2024b90: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2024b94: 02 80 00 04 be 2024ba4 <== NOT EXECUTED 2024b98: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 2024b9c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 2024ba0: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 2024ba4: 7f ff ff cb call 2024ad0 <== NOT EXECUTED 2024ba8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 2024bac: 81 c7 e0 08 ret <== NOT EXECUTED 2024bb0: 81 e8 00 00 restore <== NOT EXECUTED 020245a8 : */ void memfile_free_block( void *memory ) { 20245a8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 20245ac: 7f ff 7f c1 call 20044b0 <== NOT EXECUTED 20245b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED memfile_blocks_allocated--; 20245b4: 05 00 81 64 sethi %hi(0x2059000), %g2 <== NOT EXECUTED 20245b8: c2 00 a3 40 ld [ %g2 + 0x340 ], %g1 ! 2059340 <== NOT EXECUTED 20245bc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20245c0: c2 20 a3 40 st %g1, [ %g2 + 0x340 ] <== NOT EXECUTED } 20245c4: 81 c7 e0 08 ret <== NOT EXECUTED 20245c8: 81 e8 00 00 restore <== NOT EXECUTED 020248d8 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 20248d8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 20248dc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20248e0: 32 80 00 0a bne,a 2024908 <== NOT EXECUTED 20248e4: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED 20248e8: 11 00 81 08 sethi %hi(0x2042000), %o0 <== NOT EXECUTED 20248ec: 15 00 81 08 sethi %hi(0x2042000), %o2 <== NOT EXECUTED 20248f0: 17 00 81 08 sethi %hi(0x2042000), %o3 <== NOT EXECUTED 20248f4: 90 12 20 78 or %o0, 0x78, %o0 <== NOT EXECUTED 20248f8: 94 12 a2 18 or %o2, 0x218, %o2 <== NOT EXECUTED 20248fc: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 2024900: 7f ff 7d cd call 2004034 <__assert_func> <== NOT EXECUTED 2024904: 92 10 21 b1 mov 0x1b1, %o1 <== NOT EXECUTED 2024908: 10 80 00 09 b 202492c <== NOT EXECUTED 202490c: a2 10 20 00 clr %l1 <== NOT EXECUTED */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 2024918: a2 04 60 01 inc %l1 <== NOT EXECUTED memfile_free_block( b[i] ); 202491c: 7f ff ff 23 call 20245a8 <== NOT EXECUTED 2024920: 01 00 00 00 nop <== NOT EXECUTED b[i] = 0; 2024924: 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 2024934: d0 04 00 00 ld [ %l0 ], %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 ); 2024938: 7f ff ff 1c call 20245a8 <== NOT EXECUTED 202493c: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED *block_table = 0; 2024940: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED } 2024944: 81 c7 e0 08 ret <== NOT EXECUTED 2024948: 81 e8 00 00 restore <== NOT EXECUTED 02024d9c : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 2024d9c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2024da0: 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 ) 2024da4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 2024da8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2024dac: 04 80 00 06 ble 2024dc4 <== NOT EXECUTED 2024db0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return IMFS_memfile_extend( the_jnode, length ); 2024db4: 7f ff ff a9 call 2024c58 <== NOT EXECUTED 2024db8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 2024dbc: 81 c7 e0 08 ret <== NOT EXECUTED 2024dc0: 91 e8 00 08 restore %g0, %o0, %o0 <== 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; 2024dc4: f2 24 20 4c st %i1, [ %l0 + 0x4c ] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2024dc8: f2 26 20 04 st %i1, [ %i0 + 4 ] <== NOT EXECUTED IMFS_update_atime( the_jnode ); 2024dcc: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 2024dd0: 7f ff 7d e2 call 2004558 <== NOT EXECUTED 2024dd4: 92 10 20 00 clr %o1 <== NOT EXECUTED 2024dd8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2024ddc: 90 10 20 00 clr %o0 <== NOT EXECUTED 2024de0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return 0; } 2024de4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2024de8: 81 c7 e0 08 ret <== NOT EXECUTED 2024dec: 81 e8 00 00 restore <== NOT EXECUTED 020245a0 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 20245a0: 81 c3 e0 08 retl <== NOT EXECUTED 20245a4: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 02024df0 : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 2024df0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2024df4: e0 06 20 2c ld [ %i0 + 0x2c ], %l0 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 2024df8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2024dfc: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2024e00: 12 80 00 09 bne 2024e24 <== NOT EXECUTED 2024e04: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 2024e08: d0 04 20 4c ld [ %l0 + 0x4c ], %o0 <== NOT EXECUTED 2024e0c: 80 a2 40 08 cmp %o1, %o0 <== NOT EXECUTED 2024e10: 34 80 00 11 bg,a 2024e54 <== NOT EXECUTED 2024e14: d0 26 20 08 st %o0, [ %i0 + 8 ] <== NOT EXECUTED 2024e18: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 2024e1c: 81 c7 e0 08 ret <== NOT EXECUTED 2024e20: 81 e8 00 00 restore <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 2024e24: 7f ff ff 8d call 2024c58 <== NOT EXECUTED 2024e28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2024e2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2024e30: 22 80 00 08 be,a 2024e50 <== NOT EXECUTED 2024e34: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 2024e38: 40 00 21 5a call 202d3a0 <__errno> <== NOT EXECUTED 2024e3c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2024e40: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2024e44: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2024e48: 81 c7 e0 08 ret <== NOT EXECUTED 2024e4c: 81 e8 00 00 restore <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2024e50: c2 26 20 04 st %g1, [ %i0 + 4 ] <== NOT EXECUTED } return iop->offset; 2024e54: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED } 2024e58: 81 c7 e0 08 ret <== NOT EXECUTED 2024e5c: 81 e8 00 00 restore <== NOT EXECUTED 020250f8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 20250f8: 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)) 20250fc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2025100: 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)) 2025104: 80 88 62 04 btst 0x204, %g1 <== NOT EXECUTED 2025108: 02 80 00 17 be 2025164 <== NOT EXECUTED 202510c: e0 06 20 2c ld [ %i0 + 0x2c ], %l0 <== NOT EXECUTED 2025110: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2025114: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2025118: 32 80 00 14 bne,a 2025168 <== NOT EXECUTED 202511c: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; 2025120: d6 04 20 4c ld [ %l0 + 0x4c ], %o3 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 2025124: d4 04 20 50 ld [ %l0 + 0x50 ], %o2 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 2025128: 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; 202512c: 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; 2025130: 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; 2025134: 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; 2025138: 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) 202513c: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED 2025140: 02 80 00 09 be 2025164 <== NOT EXECUTED 2025144: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED 2025148: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202514c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2025150: 7f ff ff 44 call 2024e60 <== NOT EXECUTED 2025154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025158: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 202515c: 02 80 00 0a be 2025184 <== NOT EXECUTED 2025160: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 2025164: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED 2025168: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 202516c: 02 80 00 04 be 202517c <== NOT EXECUTED 2025170: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 2025174: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2025178: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED 202517c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2025180: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED return 0; } 2025184: 81 c7 e0 08 ret <== NOT EXECUTED 2025188: 81 e8 00 00 restore <== NOT EXECUTED 02025410 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2025410: 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 ); 2025414: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 2025418: d0 02 20 2c ld [ %o0 + 0x2c ], %o0 <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 202541c: 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 ); 2025420: 94 10 00 01 mov %g1, %o2 <== NOT EXECUTED 2025424: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025428: 7f ff ff 59 call 202518c <== NOT EXECUTED 202542c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2025430: 01 00 00 00 nop <== NOT EXECUTED 02024b34 : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2024b34: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2024b38: 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 ) { 2024b3c: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 2024b40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024b44: 22 80 00 06 be,a 2024b5c <== NOT EXECUTED 2024b48: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2024b4c: 7f ff f2 38 call 202142c <_Chain_Extract> <== NOT EXECUTED 2024b50: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2024b54: 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--; 2024b58: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 2024b5c: 92 10 20 00 clr %o1 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2024b60: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 2024b64: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 2024b68: 7f ff 7e 7c call 2004558 <== NOT EXECUTED 2024b6c: c2 36 20 30 sth %g1, [ %i0 + 0x30 ] <== NOT EXECUTED 2024b70: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 2024b74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2024b78: 7f ff ff d6 call 2024ad0 <== NOT EXECUTED 2024b7c: c2 26 20 44 st %g1, [ %i0 + 0x44 ] <== NOT EXECUTED } 2024b80: 81 c7 e0 08 ret <== NOT EXECUTED 2024b84: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020250c8 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 20250c8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 20250cc: e2 06 20 2c ld [ %i0 + 0x2c ], %l1 <== NOT EXECUTED status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); 20250d0: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 20250d4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 20250d8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 20250dc: 7f ff ff 61 call 2024e60 <== NOT EXECUTED 20250e0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 20250e4: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 <== NOT EXECUTED ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 20250e8: 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; 20250ec: c2 24 20 04 st %g1, [ %l0 + 4 ] <== NOT EXECUTED return status; } 20250f0: 81 c7 e0 08 ret <== NOT EXECUTED 20250f4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020091f0 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 20091f0: 13 00 80 53 sethi %hi(0x2014c00), %o1 20091f4: 15 00 80 59 sethi %hi(0x2016400), %o2 20091f8: 92 12 63 70 or %o1, 0x370, %o1 20091fc: 94 12 a1 60 or %o2, 0x160, %o2 2009200: 96 10 00 0a mov %o2, %o3 2009204: 82 13 c0 00 mov %o7, %g1 2009208: 40 00 02 5d call 2009b7c 200920c: 9e 10 40 00 mov %g1, %o7 2009210: 01 00 00 00 nop <== NOT EXECUTED 0201f6ec : int mkfifo( const char *path, mode_t mode ) { return mknod( path, mode | S_IFIFO, 0LL ); 201f6ec: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED 201f6f0: 94 10 20 00 clr %o2 <== NOT EXECUTED 201f6f4: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED 201f6f8: 96 10 20 00 clr %o3 <== NOT EXECUTED 201f6fc: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED 201f700: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 201f704: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201f708: 7f ff 95 75 call 2004cdc <== NOT EXECUTED 201f70c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 201f710: 01 00 00 00 nop 02002270 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 2002270: 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) ) ) 2002274: 03 00 00 3c sethi %hi(0xf000), %g1 2002278: b3 2e 60 10 sll %i1, 0x10, %i1 200227c: b3 36 60 10 srl %i1, 0x10, %i1 2002280: 84 8e 40 01 andcc %i1, %g1, %g2 2002284: 32 80 00 06 bne,a 200229c 2002288: 03 00 00 04 sethi %hi(0x1000), %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 200228c: 40 00 28 4d call 200c3c0 <__errno> <== NOT EXECUTED 2002290: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002294: 10 80 00 36 b 200236c <== NOT EXECUTED 2002298: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED if ( S_ISFIFO(mode) ) 200229c: 80 a0 80 01 cmp %g2, %g1 20022a0: 02 80 00 30 be 2002360 20022a4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 20022a8: c2 4e 00 00 ldsb [ %i0 ], %g1 20022ac: 80 a0 60 2f cmp %g1, 0x2f 20022b0: 02 80 00 06 be 20022c8 20022b4: 80 a0 60 5c cmp %g1, 0x5c 20022b8: 02 80 00 04 be 20022c8 <== NOT EXECUTED 20022bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20022c0: 12 80 00 0a bne 20022e8 <== NOT EXECUTED 20022c4: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 20022c8: 03 00 80 57 sethi %hi(0x2015c00), %g1 20022cc: d2 00 63 44 ld [ %g1 + 0x344 ], %o1 ! 2015f44 20022d0: 90 07 bf e4 add %fp, -28, %o0 20022d4: 92 02 60 14 add %o1, 0x14, %o1 20022d8: 40 00 2a 2c call 200cb88 20022dc: 94 10 20 10 mov 0x10, %o2 20022e0: 10 80 00 08 b 2002300 20022e4: 84 10 20 01 mov 1, %g2 20022e8: d2 00 63 44 ld [ %g1 + 0x344 ], %o1 <== NOT EXECUTED 20022ec: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED 20022f0: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 20022f4: 40 00 2a 25 call 200cb88 <== NOT EXECUTED 20022f8: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 20022fc: 84 10 20 00 clr %g2 <== NOT EXECUTED if ( !temp_loc.ops->evalformake_h ) { 2002300: c2 07 bf ec ld [ %fp + -20 ], %g1 2002304: c2 00 60 04 ld [ %g1 + 4 ], %g1 2002308: 80 a0 60 00 cmp %g1, 0 200230c: 02 80 00 15 be 2002360 2002310: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2002314: 90 06 00 02 add %i0, %g2, %o0 2002318: a0 07 bf e4 add %fp, -28, %l0 200231c: 94 07 bf f4 add %fp, -12, %o2 2002320: 92 10 00 10 mov %l0, %o1 2002324: 9f c0 40 00 call %g1 2002328: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 200232c: 80 a2 20 00 cmp %o0, 0 2002330: 12 80 00 10 bne 2002370 2002334: c2 07 bf ec ld [ %fp + -20 ], %g1 return -1; if ( !temp_loc.ops->mknod_h ) { 2002338: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 200233c: 80 a0 a0 00 cmp %g2, 0 2002340: 12 80 00 0e bne 2002378 2002344: d0 07 bf f4 ld [ %fp + -12 ], %o0 rtems_filesystem_freenode( &temp_loc ); 2002348: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200234c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002350: 02 80 00 04 be 2002360 <== NOT EXECUTED 2002354: 01 00 00 00 nop <== NOT EXECUTED 2002358: 9f c0 40 00 call %g1 <== NOT EXECUTED 200235c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002360: 40 00 28 18 call 200c3c0 <__errno> <== NOT EXECUTED 2002364: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002368: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200236c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002370: 81 c7 e0 08 ret <== NOT EXECUTED 2002374: 81 e8 00 00 restore <== NOT EXECUTED } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 2002378: 92 10 00 19 mov %i1, %o1 200237c: 94 10 00 1a mov %i2, %o2 2002380: 96 10 00 1b mov %i3, %o3 2002384: 9f c0 80 00 call %g2 2002388: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 200238c: c2 07 bf ec ld [ %fp + -20 ], %g1 2002390: 80 a0 60 00 cmp %g1, 0 2002394: 02 bf ff f7 be 2002370 2002398: b0 10 00 08 mov %o0, %i0 200239c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20023a0: 80 a0 60 00 cmp %g1, 0 20023a4: 02 80 00 04 be 20023b4 20023a8: 01 00 00 00 nop 20023ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 20023b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 20023b4: 81 c7 e0 08 ret 20023b8: 81 e8 00 00 restore 0200a780 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 200a780: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 200a784: 80 a6 60 00 cmp %i1, 0 200a788: 02 80 00 05 be 200a79c 200a78c: a4 10 00 18 mov %i0, %l2 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 200a790: 80 a6 a0 01 cmp %i2, 1 200a794: 28 80 00 06 bleu,a 200a7ac 200a798: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 200a79c: 40 00 07 09 call 200c3c0 <__errno> <== NOT EXECUTED 200a7a0: 01 00 00 00 nop <== NOT EXECUTED 200a7a4: 10 80 00 15 b 200a7f8 <== NOT EXECUTED 200a7a8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 200a7ac: 80 a0 60 00 cmp %g1, 0 200a7b0: 12 80 00 05 bne 200a7c4 200a7b4: 80 a6 e0 00 cmp %i3, 0 errno = ENOTSUP; 200a7b8: a2 10 20 00 clr %l1 <== NOT EXECUTED 200a7bc: 10 80 00 47 b 200a8d8 <== NOT EXECUTED 200a7c0: b8 10 20 00 clr %i4 <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 200a7c4: 02 80 00 05 be 200a7d8 200a7c8: 90 10 20 64 mov 0x64, %o0 size += strlen( device ) + 1; 200a7cc: 40 00 0c 1f call 200d848 <== NOT EXECUTED 200a7d0: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 200a7d4: 90 02 20 65 add %o0, 0x65, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 200a7d8: 7f ff ff 99 call 200a63c 200a7dc: 01 00 00 00 nop if ( !temp_mt_entry ) { 200a7e0: a0 92 20 00 orcc %o0, 0, %l0 200a7e4: 12 80 00 07 bne 200a800 200a7e8: a2 10 00 10 mov %l0, %l1 errno = ENOMEM; 200a7ec: 40 00 06 f5 call 200c3c0 <__errno> <== NOT EXECUTED 200a7f0: 01 00 00 00 nop <== NOT EXECUTED 200a7f4: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200a7f8: 10 80 00 74 b 200a9c8 <== NOT EXECUTED 200a7fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 200a800: f4 24 20 28 st %i2, [ %l0 + 0x28 ] if ( device ) { 200a804: 80 a6 e0 00 cmp %i3, 0 200a808: 02 80 00 08 be 200a828 200a80c: e0 24 20 24 st %l0, [ %l0 + 0x24 ] temp_mt_entry->dev = 200a810: 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 ); 200a814: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 200a818: 40 00 0b ea call 200d7c0 <== NOT EXECUTED 200a81c: 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 ) { 200a820: 10 80 00 04 b 200a830 <== NOT EXECUTED 200a824: 80 a7 20 00 cmp %i4, 0 <== 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; 200a828: c0 24 20 60 clr [ %l0 + 0x60 ] /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 200a82c: 80 a7 20 00 cmp %i4, 0 200a830: 02 80 00 37 be 200a90c 200a834: 90 10 00 1c mov %i4, %o0 if ( rtems_filesystem_evaluate_path( 200a838: 92 10 20 07 mov 7, %o1 <== NOT EXECUTED 200a83c: b8 07 bf e8 add %fp, -24, %i4 <== NOT EXECUTED 200a840: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 200a844: 7f ff dd db call 2001fb0 <== NOT EXECUTED 200a848: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED 200a84c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 200a850: 02 80 00 4e be 200a988 <== NOT EXECUTED 200a854: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 200a858: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 200a85c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a860: 02 80 00 1e be 200a8d8 <== NOT EXECUTED 200a864: 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 ) { 200a868: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a86c: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED 200a870: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 200a874: 02 80 00 07 be 200a890 <== NOT EXECUTED 200a878: 03 00 80 5a sethi %hi(0x2016800), %g1 <== NOT EXECUTED errno = ENOTDIR; 200a87c: 40 00 06 d1 call 200c3c0 <__errno> <== NOT EXECUTED 200a880: 01 00 00 00 nop <== NOT EXECUTED 200a884: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 200a888: 10 80 00 41 b 200a98c <== NOT EXECUTED 200a88c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 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 ) { the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node; if ( the_mount_entry->mt_fs_root.node_access == loc->node_access ) 200a890: c8 07 bf e8 ld [ %fp + -24 ], %g4 <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 200a894: c4 00 63 48 ld [ %g1 + 0x348 ], %g2 <== NOT EXECUTED 200a898: 82 10 63 48 or %g1, 0x348, %g1 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 200a89c: 10 80 00 06 b 200a8b4 <== NOT EXECUTED 200a8a0: 86 00 60 04 add %g1, 4, %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 ) 200a8a4: 80 a0 40 04 cmp %g1, %g4 <== NOT EXECUTED 200a8a8: 02 80 00 08 be 200a8c8 <== NOT EXECUTED 200a8ac: 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 ) { 200a8b0: 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 ); 200a8b4: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 200a8b8: 32 bf ff fb bne,a 200a8a4 <== NOT EXECUTED 200a8bc: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 <== 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; 200a8c0: 10 80 00 45 b 200a9d4 <== NOT EXECUTED 200a8c4: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 200a8c8: 40 00 06 be call 200c3c0 <__errno> <== NOT EXECUTED 200a8cc: b8 07 bf e8 add %fp, -24, %i4 <== NOT EXECUTED 200a8d0: 10 bf ff ee b 200a888 <== NOT EXECUTED 200a8d4: 82 10 20 10 mov 0x10, %g1 <== 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; 200a8d8: 40 00 06 ba call 200c3c0 <__errno> <== NOT EXECUTED 200a8dc: 01 00 00 00 nop <== NOT EXECUTED 200a8e0: 10 bf ff ea b 200a888 <== NOT EXECUTED 200a8e4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 200a8e8: 9f c0 c0 00 call %g3 <== NOT EXECUTED 200a8ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200a8f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a8f4: 02 80 00 04 be 200a904 <== NOT EXECUTED 200a8f8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 200a8fc: 10 80 00 24 b 200a98c <== NOT EXECUTED 200a900: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED 200a904: 10 80 00 0a b 200a92c <== NOT EXECUTED 200a908: b8 10 00 08 mov %o0, %i4 <== 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; 200a90c: c0 24 20 18 clr [ %l0 + 0x18 ] temp_mt_entry->mt_fs_root.handlers = NULL; 200a910: c0 24 20 1c clr [ %l0 + 0x1c ] temp_mt_entry->mt_fs_root.ops = NULL; 200a914: c0 24 20 20 clr [ %l0 + 0x20 ] temp_mt_entry->mt_point_node.node_access = NULL; 200a918: c0 24 20 08 clr [ %l0 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 200a91c: c0 24 20 0c clr [ %l0 + 0xc ] temp_mt_entry->mt_point_node.ops = NULL; 200a920: c0 24 20 10 clr [ %l0 + 0x10 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 200a924: c0 24 20 14 clr [ %l0 + 0x14 ] 200a928: b8 10 20 00 clr %i4 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 200a92c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 200a930: 9f c0 40 00 call %g1 200a934: 90 10 00 10 mov %l0, %o0 200a938: 80 a2 20 00 cmp %o0, 0 200a93c: 02 80 00 09 be 200a960 200a940: c2 07 bf f0 ld [ %fp + -16 ], %g1 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 200a944: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 200a948: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a94c: 02 80 00 10 be 200a98c <== NOT EXECUTED 200a950: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 200a954: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a958: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200a95c: 30 80 00 0c b,a 200a98c <== 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 ); 200a960: 11 00 80 5a sethi %hi(0x2016800), %o0 200a964: 92 10 00 10 mov %l0, %o1 200a968: 7f ff ed 52 call 2005eb0 <_Chain_Append> 200a96c: 90 12 23 48 or %o0, 0x348, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 200a970: 80 a4 a0 00 cmp %l2, 0 200a974: 02 80 00 03 be 200a980 200a978: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 200a97c: e0 24 80 00 st %l0, [ %l2 ] 200a980: 81 c7 e0 08 ret 200a984: 81 e8 00 00 restore 200a988: b8 10 20 00 clr %i4 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 200a98c: 7f ff fd cc call 200a0bc <== NOT EXECUTED 200a990: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( loc_to_free ) 200a994: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 200a998: 02 bf ff fa be 200a980 <== NOT EXECUTED 200a99c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 200a9a0: c2 07 20 08 ld [ %i4 + 8 ], %g1 <== NOT EXECUTED 200a9a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a9a8: 02 80 00 09 be 200a9cc <== NOT EXECUTED 200a9ac: 01 00 00 00 nop <== NOT EXECUTED 200a9b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200a9b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a9b8: 02 80 00 05 be 200a9cc <== NOT EXECUTED 200a9bc: 01 00 00 00 nop <== NOT EXECUTED 200a9c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a9c4: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED 200a9c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; } 200a9cc: 81 c7 e0 08 ret <== NOT EXECUTED 200a9d0: 81 e8 00 00 restore <== 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; 200a9d4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== 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; 200a9d8: 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; 200a9dc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== 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 ){ 200a9e0: c6 00 60 20 ld [ %g1 + 0x20 ], %g3 <== 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; 200a9e4: c8 24 20 08 st %g4, [ %l0 + 8 ] <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 200a9e8: c4 24 20 14 st %g2, [ %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 ){ 200a9ec: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 200a9f0: 12 bf ff be bne 200a8e8 <== NOT EXECUTED 200a9f4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED errno = ENOTSUP; 200a9f8: 10 bf ff b8 b 200a8d8 <== NOT EXECUTED 200a9fc: b8 07 bf e8 add %fp, -24, %i4 <== NOT EXECUTED 02002440 : */ int newlib_free_buffers( FILE *fp ) { 2002440: 9d e3 bf 98 save %sp, -104, %sp switch ( fileno(fp) ) { 2002444: 40 00 28 c0 call 200c744 2002448: 90 10 00 18 mov %i0, %o0 200244c: 80 a2 20 02 cmp %o0, 2 2002450: 18 80 00 0e bgu 2002488 2002454: 01 00 00 00 nop case 0: case 1: case 2: if (fp->_flags & __SMBF) { 2002458: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 200245c: 80 88 60 80 btst 0x80, %g1 2002460: 02 80 00 0c be 2002490 2002464: 01 00 00 00 nop free( fp->_bf._base ); 2002468: 40 00 1f 15 call 200a0bc 200246c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 fp->_flags &= ~__SMBF; 2002470: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002474: c0 26 20 10 clr [ %i0 + 0x10 ] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002478: 82 08 7f 7f and %g1, -129, %g1 fp->_bf._base = fp->_p = (unsigned char *) NULL; 200247c: c0 26 00 00 clr [ %i0 ] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002480: 10 80 00 04 b 2002490 2002484: c2 36 20 0c sth %g1, [ %i0 + 0xc ] fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 2002488: 40 00 28 26 call 200c520 <== NOT EXECUTED 200248c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2002490: 81 c7 e0 08 ret 2002494: 91 e8 20 00 restore %g0, 0, %o0 02002838 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 2002838: 9d e3 bf 98 save %sp, -104, %sp rtems_device_driver status; if ( !initialized ) { 200283c: 05 00 80 68 sethi %hi(0x201a000), %g2 2002840: c2 48 a0 9c ldsb [ %g2 + 0x9c ], %g1 ! 201a09c 2002844: 80 a0 60 00 cmp %g1, 0 2002848: 12 80 00 0e bne 2002880 200284c: 82 10 20 01 mov 1, %g1 initialized = 1; status = rtems_io_register_name( 2002850: 11 00 80 5e sethi %hi(0x2017800), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 2002854: c2 28 a0 9c stb %g1, [ %g2 + 0x9c ] status = rtems_io_register_name( 2002858: 90 12 23 88 or %o0, 0x388, %o0 200285c: 92 10 00 18 mov %i0, %o1 2002860: 40 00 00 4d call 2002994 2002864: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 2002868: 80 a2 20 00 cmp %o0, 0 200286c: 02 80 00 04 be 200287c 2002870: 03 00 80 68 sethi %hi(0x201a000), %g1 rtems_fatal_error_occurred(status); 2002874: 40 00 10 28 call 2006914 <== NOT EXECUTED 2002878: 01 00 00 00 nop <== NOT EXECUTED NULL_major = major; 200287c: f0 20 63 18 st %i0, [ %g1 + 0x318 ] } return RTEMS_SUCCESSFUL; } 2002880: 81 c7 e0 08 ret 2002884: 91 e8 20 00 restore %g0, 0, %o0 02002814 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 2002814: 80 a2 a0 00 cmp %o2, 0 2002818: 02 80 00 04 be 2002828 200281c: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 2002820: c2 02 a0 0c ld [ %o2 + 0xc ], %g1 <== NOT EXECUTED 2002824: c2 22 a0 14 st %g1, [ %o2 + 0x14 ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 2002828: 81 c3 e0 08 retl 200282c: 90 10 20 00 clr %o0 02002690 : int open( const char *pathname, int flags, ... ) { 2002690: 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); 2002694: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2002698: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 200269c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20026a0: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 20026a4: 82 06 60 01 add %i1, 1, %g1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 20026a8: 80 88 60 02 btst 2, %g1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 20026ac: 82 08 60 01 and %g1, 1, %g1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 20026b0: 02 80 00 03 be 20026bc 20026b4: a1 28 60 02 sll %g1, 2, %l0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 20026b8: a0 14 20 02 or %l0, 2, %l0 va_start(ap, flags); mode = va_arg( ap, int ); 20026bc: 82 07 a0 50 add %fp, 0x50, %g1 20026c0: f4 07 a0 4c ld [ %fp + 0x4c ], %i2 20026c4: 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(); 20026c8: 40 00 1f 73 call 200a494 20026cc: ba 10 20 17 mov 0x17, %i5 if ( iop == 0 ) { 20026d0: b8 92 20 00 orcc %o0, 0, %i4 20026d4: 02 80 00 93 be 2002920 20026d8: 92 10 00 10 mov %l0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 20026dc: b6 07 bf e4 add %fp, -28, %i3 20026e0: 90 10 00 18 mov %i0, %o0 20026e4: 94 10 00 1b mov %i3, %o2 20026e8: 7f ff fe 32 call 2001fb0 20026ec: 96 10 20 01 mov 1, %o3 pathname, eval_flags, &loc, true ); if ( status == -1 ) { 20026f0: 80 a2 3f ff cmp %o0, -1 20026f4: 12 80 00 25 bne 2002788 20026f8: 82 0e 6a 00 and %i1, 0xa00, %g1 if ( errno != ENOENT ) { 20026fc: 40 00 27 31 call 200c3c0 <__errno> <== NOT EXECUTED 2002700: 01 00 00 00 nop <== NOT EXECUTED 2002704: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002708: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200270c: 12 80 00 11 bne 2002750 <== NOT EXECUTED 2002710: 01 00 00 00 nop <== 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) ) { 2002714: 80 8e 62 00 btst 0x200, %i1 <== NOT EXECUTED 2002718: ba 10 20 02 mov 2, %i5 <== NOT EXECUTED 200271c: 02 80 00 6f be 20028d8 <== NOT EXECUTED 2002720: 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 ); 2002724: 13 3f ff e0 sethi %hi(0xffff8000), %o1 <== NOT EXECUTED 2002728: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200272c: 92 16 80 09 or %i2, %o1, %o1 <== NOT EXECUTED 2002730: 94 10 20 00 clr %o2 <== NOT EXECUTED 2002734: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED 2002738: 96 10 20 00 clr %o3 <== NOT EXECUTED 200273c: 7f ff fe cd call 2002270 <== NOT EXECUTED 2002740: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED if ( rc ) { 2002744: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2002748: 02 80 00 06 be 2002760 <== NOT EXECUTED 200274c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED rc = errno; 2002750: 40 00 27 1c call 200c3c0 <__errno> <== NOT EXECUTED 2002754: 01 00 00 00 nop <== NOT EXECUTED 2002758: 10 80 00 5c b 20028c8 <== NOT EXECUTED 200275c: fa 02 00 00 ld [ %o0 ], %i5 <== NOT EXECUTED goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, 0x0, &loc, true ); 2002760: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2002764: 92 10 20 00 clr %o1 <== NOT EXECUTED 2002768: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 200276c: 7f ff fe 11 call 2001fb0 <== NOT EXECUTED 2002770: ba 10 20 0d mov 0xd, %i5 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 2002774: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2002778: 12 80 00 58 bne 20028d8 <== NOT EXECUTED 200277c: 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; 2002780: 10 80 00 07 b 200279c <== NOT EXECUTED 2002784: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 2002788: a0 10 00 1b mov %i3, %l0 200278c: 80 a0 6a 00 cmp %g1, 0xa00 2002790: 02 80 00 52 be 20028d8 2002794: ba 10 20 11 mov 0x11, %i5 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002798: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 200279c: e0 07 20 0c ld [ %i4 + 0xc ], %l0 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 20027a0: c2 27 20 30 st %g1, [ %i4 + 0x30 ] iop->file_info = loc.node_access; 20027a4: c2 07 bf e4 ld [ %fp + -28 ], %g1 iop->flags |= rtems_libio_fcntl_flags( flags ); 20027a8: 90 10 00 19 mov %i1, %o0 20027ac: 40 00 1f 70 call 200a56c 20027b0: c2 27 20 2c st %g1, [ %i4 + 0x2c ] 20027b4: 90 12 00 10 or %o0, %l0, %o0 iop->pathinfo = loc; 20027b8: 94 10 20 10 mov 0x10, %o2 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 20027bc: d0 27 20 0c st %o0, [ %i4 + 0xc ] iop->pathinfo = loc; 20027c0: a0 07 bf e4 add %fp, -28, %l0 20027c4: 90 07 20 10 add %i4, 0x10, %o0 20027c8: 40 00 28 f0 call 200cb88 20027cc: 92 10 00 10 mov %l0, %o1 if ( !iop->handlers->open_h ) { 20027d0: c2 07 20 30 ld [ %i4 + 0x30 ], %g1 20027d4: c2 00 40 00 ld [ %g1 ], %g1 20027d8: 80 a0 60 00 cmp %g1, 0 20027dc: 02 80 00 67 be 2002978 20027e0: 92 10 00 18 mov %i0, %o1 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 20027e4: 96 10 00 1a mov %i2, %o3 20027e8: 90 10 00 1c mov %i4, %o0 20027ec: 9f c0 40 00 call %g1 20027f0: 94 10 00 19 mov %i1, %o2 if ( rc ) 20027f4: ba 92 20 00 orcc %o0, 0, %i5 20027f8: 12 80 00 39 bne 20028dc 20027fc: 80 a7 20 00 cmp %i4, 0 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 2002800: 80 8e 64 00 btst 0x400, %i1 2002804: 02 80 00 4c be 2002934 2002808: 03 00 80 59 sethi %hi(0x2016400), %g1 rc = ftruncate( iop - rtems_libio_iops, 0 ); 200280c: c4 00 62 ac ld [ %g1 + 0x2ac ], %g2 ! 20166ac <== NOT EXECUTED 2002810: 92 10 20 00 clr %o1 <== NOT EXECUTED 2002814: 84 27 00 02 sub %i4, %g2, %g2 <== NOT EXECUTED 2002818: 85 38 a0 02 sra %g2, 2, %g2 <== NOT EXECUTED 200281c: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2002820: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2002824: 82 20 40 03 sub %g1, %g3, %g1 <== NOT EXECUTED 2002828: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED 200282c: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2002830: 83 2a 20 0c sll %o0, 0xc, %g1 <== NOT EXECUTED 2002834: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED 2002838: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 200283c: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED 2002840: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED 2002844: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2002848: 40 00 1e 47 call 200a164 <== NOT EXECUTED 200284c: 90 20 80 08 sub %g2, %o0, %o0 <== NOT EXECUTED if ( rc ) { 2002850: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED 2002854: 02 80 00 38 be 2002934 <== NOT EXECUTED 2002858: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED if(errno) rc = errno; 200285c: 40 00 26 d9 call 200c3c0 <__errno> <== NOT EXECUTED 2002860: 01 00 00 00 nop <== NOT EXECUTED 2002864: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002868: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200286c: 02 80 00 06 be 2002884 <== NOT EXECUTED 2002870: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2002874: 40 00 26 d3 call 200c3c0 <__errno> <== NOT EXECUTED 2002878: 01 00 00 00 nop <== NOT EXECUTED 200287c: fa 02 00 00 ld [ %o0 ], %i5 <== NOT EXECUTED close( iop - rtems_libio_iops ); 2002880: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2002884: c4 00 62 ac ld [ %g1 + 0x2ac ], %g2 ! 20166ac <== NOT EXECUTED 2002888: 84 27 00 02 sub %i4, %g2, %g2 <== NOT EXECUTED 200288c: 85 38 a0 02 sra %g2, 2, %g2 <== NOT EXECUTED 2002890: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2002894: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2002898: 82 20 40 03 sub %g1, %g3, %g1 <== NOT EXECUTED 200289c: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED 20028a0: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 20028a4: 83 2a 20 0c sll %o0, 0xc, %g1 <== NOT EXECUTED 20028a8: b8 10 20 00 clr %i4 <== NOT EXECUTED 20028ac: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED 20028b0: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 20028b4: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED 20028b8: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED 20028bc: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 20028c0: 40 00 1d cc call 2009ff0 <== NOT EXECUTED 20028c4: 90 20 80 08 sub %g2, %o0, %o0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 20028c8: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED 20028cc: 02 80 00 1a be 2002934 <== NOT EXECUTED 20028d0: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 20028d4: a0 10 20 00 clr %l0 <== NOT EXECUTED if ( iop ) 20028d8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 20028dc: 02 80 00 05 be 20028f0 <== NOT EXECUTED 20028e0: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED rtems_libio_free( iop ); 20028e4: 40 00 1e d4 call 200a434 <== NOT EXECUTED 20028e8: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED if ( loc_to_free ) 20028ec: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 20028f0: 02 80 00 0c be 2002920 <== NOT EXECUTED 20028f4: 01 00 00 00 nop <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 20028f8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 20028fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002900: 02 80 00 08 be 2002920 <== NOT EXECUTED 2002904: 01 00 00 00 nop <== NOT EXECUTED 2002908: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200290c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002910: 02 80 00 04 be 2002920 <== NOT EXECUTED 2002914: 01 00 00 00 nop <== NOT EXECUTED 2002918: 9f c0 40 00 call %g1 <== NOT EXECUTED 200291c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 2002920: 40 00 26 a8 call 200c3c0 <__errno> 2002924: b0 10 3f ff mov -1, %i0 2002928: fa 22 00 00 st %i5, [ %o0 ] 200292c: 81 c7 e0 08 ret 2002930: 81 e8 00 00 restore } return iop - rtems_libio_iops; 2002934: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 2002938: 86 27 00 03 sub %i4, %g3, %g3 200293c: 87 38 e0 02 sra %g3, 2, %g3 2002940: 83 28 e0 02 sll %g3, 2, %g1 2002944: 85 28 e0 06 sll %g3, 6, %g2 2002948: 84 20 80 01 sub %g2, %g1, %g2 200294c: 83 28 a0 06 sll %g2, 6, %g1 2002950: 82 20 40 02 sub %g1, %g2, %g1 2002954: 85 28 60 0c sll %g1, 0xc, %g2 2002958: 82 00 40 02 add %g1, %g2, %g1 200295c: 82 00 40 03 add %g1, %g3, %g1 2002960: 83 28 60 04 sll %g1, 4, %g1 2002964: 82 20 40 03 sub %g1, %g3, %g1 2002968: 83 28 60 02 sll %g1, 2, %g1 200296c: b0 20 c0 01 sub %g3, %g1, %i0 } 2002970: 81 c7 e0 08 ret 2002974: 81 e8 00 00 restore if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2002978: 10 bf ff d8 b 20028d8 <== NOT EXECUTED 200297c: ba 10 20 86 mov 0x86, %i5 <== NOT EXECUTED 0200261c : /* * This is a replaceable stub */ void open_dev_console(void) { 200261c: 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) { 2002620: 21 00 80 52 sethi %hi(0x2014800), %l0 2002624: 92 10 20 00 clr %o1 2002628: 90 14 21 e0 or %l0, 0x1e0, %o0 200262c: 40 00 00 19 call 2002690 2002630: 94 10 20 00 clr %o2 2002634: 80 a2 3f ff cmp %o0, -1 2002638: 02 80 00 14 be 2002688 200263c: 90 14 21 e0 or %l0, 0x1e0, %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) 2002640: 92 10 20 01 mov 1, %o1 2002644: 40 00 00 13 call 2002690 2002648: 94 10 20 00 clr %o2 200264c: 80 a2 3f ff cmp %o0, -1 2002650: 32 80 00 05 bne,a 2002664 2002654: 90 14 21 e0 or %l0, 0x1e0, %o0 rtems_fatal_error_occurred( error_code | '1' ); 2002658: 11 14 d5 11 sethi %hi(0x53544400), %o0 <== NOT EXECUTED 200265c: 10 80 00 09 b 2002680 <== NOT EXECUTED 2002660: 90 12 20 31 or %o0, 0x31, %o0 ! 53544431 <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002664: 92 10 20 01 mov 1, %o1 2002668: 40 00 00 0a call 2002690 200266c: 94 10 20 00 clr %o2 2002670: 80 a2 3f ff cmp %o0, -1 2002674: 12 80 00 05 bne 2002688 2002678: 11 14 d5 11 sethi %hi(0x53544400), %o0 rtems_fatal_error_occurred( error_code | '2' ); 200267c: 90 12 20 32 or %o0, 0x32, %o0 ! 53544432 <== NOT EXECUTED 2002680: 40 00 0d 33 call 2005b4c <== NOT EXECUTED 2002684: 01 00 00 00 nop <== NOT EXECUTED 2002688: 81 c7 e0 08 ret 200268c: 81 e8 00 00 restore 0201f7a4 : * open a directory. */ DIR * opendir( const char *name ) { 201f7a4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 201f7a8: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f7ac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201f7b0: 7f ff 96 fb call 200539c <== NOT EXECUTED 201f7b4: b0 10 20 00 clr %i0 <== NOT EXECUTED 201f7b8: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 201f7bc: 02 80 00 17 be 201f818 <== NOT EXECUTED 201f7c0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 201f7c4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 201f7c8: 40 00 2e 00 call 202afc8 <== NOT EXECUTED 201f7cc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 201f7d0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 201f7d4: 02 80 00 0f be 201f810 <== NOT EXECUTED 201f7d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201f7dc: 7f ff 94 c7 call 2004af8 <== NOT EXECUTED 201f7e0: 90 10 20 18 mov 0x18, %o0 <== NOT EXECUTED 201f7e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 201f7e8: 02 80 00 0a be 201f810 <== NOT EXECUTED 201f7ec: 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); 201f7f0: 7f ff 94 c2 call 2004af8 <== NOT EXECUTED 201f7f4: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED dirp->dd_len = 512; 201f7f8: 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); 201f7fc: d0 26 20 0c st %o0, [ %i0 + 0xc ] <== NOT EXECUTED dirp->dd_len = 512; if (dirp->dd_buf == NULL) { 201f800: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201f804: 12 80 00 07 bne 201f820 <== NOT EXECUTED 201f808: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED close (fd); 201f80c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201f810: 7f ff 92 76 call 20041e8 <== NOT EXECUTED 201f814: b0 10 20 00 clr %i0 <== NOT EXECUTED 201f818: 81 c7 e0 08 ret <== NOT EXECUTED 201f81c: 81 e8 00 00 restore <== NOT EXECUTED return NULL; } dirp->dd_fd = fd; 201f820: e0 26 00 00 st %l0, [ %i0 ] <== NOT EXECUTED dirp->dd_loc = 0; 201f824: c0 26 20 04 clr [ %i0 + 4 ] <== NOT EXECUTED dirp->dd_seek = 0; 201f828: c0 26 20 14 clr [ %i0 + 0x14 ] <== NOT EXECUTED /* * Set up seek point for rewinddir. */ return dirp; } 201f82c: 81 c7 e0 08 ret <== NOT EXECUTED 201f830: 81 e8 00 00 restore <== NOT EXECUTED 0200345c : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 200345c: 9d e3 bf 98 save %sp, -104, %sp int i; if (tty->termios.c_oflag & OPOST) { 2003460: c8 06 60 34 ld [ %i1 + 0x34 ], %g4 2003464: 80 89 20 01 btst 1, %g4 2003468: 02 80 00 59 be 20035cc 200346c: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 2003470: 82 0e 20 ff and %i0, 0xff, %g1 2003474: 80 a0 60 09 cmp %g1, 9 2003478: 22 80 00 2b be,a 2003524 200347c: c6 06 60 28 ld [ %i1 + 0x28 ], %g3 2003480: 18 80 00 07 bgu 200349c 2003484: 80 a0 60 0a cmp %g1, 0xa 2003488: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED 200348c: 12 80 00 3c bne 200357c <== NOT EXECUTED 2003490: 80 89 20 02 btst 2, %g4 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 2003494: 10 80 00 35 b 2003568 <== NOT EXECUTED 2003498: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 200349c: 02 80 00 06 be 20034b4 20034a0: 80 a0 60 0d cmp %g1, 0xd 20034a4: 32 80 00 36 bne,a 200357c 20034a8: 80 89 20 02 btst 2, %g4 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 20034ac: 10 80 00 10 b 20034ec <== NOT EXECUTED 20034b0: 80 89 20 10 btst 0x10, %g4 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 20034b4: 80 89 20 20 btst 0x20, %g4 20034b8: 32 80 00 02 bne,a 20034c0 20034bc: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 20034c0: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 20034c4: 80 88 60 04 btst 4, %g1 20034c8: 02 80 00 42 be 20035d0 20034cc: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 20034d0: 11 00 80 53 sethi %hi(0x2014c00), %o0 20034d4: 92 10 20 01 mov 1, %o1 20034d8: 90 12 21 88 or %o0, 0x188, %o0 20034dc: 7f ff ff 94 call 200332c 20034e0: 94 10 00 19 mov %i1, %o2 c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 20034e4: 10 80 00 3a b 20035cc 20034e8: c0 26 60 28 clr [ %i1 + 0x28 ] tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 20034ec: 02 80 00 06 be 2003504 <== NOT EXECUTED 20034f0: 80 89 20 08 btst 8, %g4 <== NOT EXECUTED 20034f4: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 20034f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20034fc: 02 80 00 17 be 2003558 <== NOT EXECUTED 2003500: 80 89 20 08 btst 8, %g4 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 2003504: 22 80 00 32 be,a 20035cc <== NOT EXECUTED 2003508: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 200350c: 82 10 20 0a mov 0xa, %g1 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 2003510: 80 89 20 20 btst 0x20, %g4 <== NOT EXECUTED 2003514: 02 80 00 2e be 20035cc <== NOT EXECUTED 2003518: c2 2f a0 44 stb %g1, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; 200351c: 10 80 00 2c b 20035cc <== NOT EXECUTED 2003520: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2003524: 05 00 00 06 sethi %hi(0x1800), %g2 2003528: 82 09 00 02 and %g4, %g2, %g1 200352c: 80 a0 40 02 cmp %g1, %g2 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2003530: 84 08 e0 07 and %g3, 7, %g2 2003534: 82 10 20 08 mov 8, %g1 2003538: 92 20 40 02 sub %g1, %g2, %o1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 200353c: 12 80 00 09 bne 2003560 2003540: 84 02 40 03 add %o1, %g3, %g2 tty->column += i; 2003544: c4 26 60 28 st %g2, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 2003548: 94 10 00 19 mov %i1, %o2 200354c: 11 00 80 53 sethi %hi(0x2014c00), %o0 2003550: 7f ff ff 77 call 200332c 2003554: 90 12 21 90 or %o0, 0x190, %o0 ! 2014d90 2003558: 81 c7 e0 08 ret 200355c: 81 e8 00 00 restore return; } tty->column += i; 2003560: 10 80 00 1b b 20035cc <== NOT EXECUTED 2003564: c4 26 60 28 st %g2, [ %i1 + 0x28 ] <== NOT EXECUTED break; case '\b': if (tty->column > 0) 2003568: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200356c: 04 80 00 18 ble 20035cc <== NOT EXECUTED 2003570: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); if (!iscntrl(c)) tty->column++; 2003574: 10 80 00 16 b 20035cc <== NOT EXECUTED 2003578: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 200357c: 02 80 00 0b be 20035a8 2003580: c4 0f a0 44 ldub [ %fp + 0x44 ], %g2 c = toupper(c); 2003584: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2003588: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2015f90 <__ctype_ptr> <== NOT EXECUTED 200358c: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 2003590: c2 08 40 18 ldub [ %g1 + %i0 ], %g1 <== NOT EXECUTED 2003594: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003598: 32 80 00 02 bne,a 20035a0 <== NOT EXECUTED 200359c: b0 06 3f e0 add %i0, -32, %i0 <== NOT EXECUTED 20035a0: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] <== NOT EXECUTED if (!iscntrl(c)) 20035a4: c4 0f a0 44 ldub [ %fp + 0x44 ], %g2 <== NOT EXECUTED 20035a8: 03 00 80 57 sethi %hi(0x2015c00), %g1 20035ac: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2015f90 <__ctype_ptr> 20035b0: c2 08 40 02 ldub [ %g1 + %g2 ], %g1 20035b4: 80 88 60 20 btst 0x20, %g1 20035b8: 12 80 00 06 bne 20035d0 20035bc: 94 10 00 19 mov %i1, %o2 tty->column++; 20035c0: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 20035c4: 82 00 60 01 inc %g1 20035c8: c2 26 60 28 st %g1, [ %i1 + 0x28 ] break; } } rtems_termios_puts (&c, 1, tty); 20035cc: 94 10 00 19 mov %i1, %o2 20035d0: 90 07 a0 44 add %fp, 0x44, %o0 20035d4: 7f ff ff 56 call 200332c 20035d8: 92 10 20 01 mov 1, %o1 20035dc: 81 c7 e0 08 ret 20035e0: 81 e8 00 00 restore 02013edc : ssize_t read( int fd, void *buffer, size_t count ) { 2013edc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2013ee0: 03 00 80 56 sethi %hi(0x2015800), %g1 <== NOT EXECUTED 2013ee4: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 2015a28 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 2013ee8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2013eec: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2013ef0: 1a 80 00 0e bcc 2013f28 <== NOT EXECUTED 2013ef4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2013ef8: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2013efc: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac <== NOT EXECUTED 2013f00: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED 2013f04: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED 2013f08: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2013f0c: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 2013f10: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 2013f14: b0 00 c0 01 add %g3, %g1, %i0 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 2013f18: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2013f1c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2013f20: 12 80 00 06 bne 2013f38 <== NOT EXECUTED 2013f24: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2013f28: 7f ff e1 26 call 200c3c0 <__errno> <== NOT EXECUTED 2013f2c: 01 00 00 00 nop <== NOT EXECUTED 2013f30: 10 80 00 15 b 2013f84 <== NOT EXECUTED 2013f34: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 2013f38: 02 80 00 08 be 2013f58 <== NOT EXECUTED 2013f3c: 01 00 00 00 nop <== NOT EXECUTED rtems_libio_check_count( count ); 2013f40: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2013f44: 02 80 00 1b be 2013fb0 <== NOT EXECUTED 2013f48: 90 10 20 00 clr %o0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2013f4c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2013f50: 32 80 00 06 bne,a 2013f68 <== NOT EXECUTED 2013f54: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED 2013f58: 7f ff e1 1a call 200c3c0 <__errno> <== NOT EXECUTED 2013f5c: 01 00 00 00 nop <== NOT EXECUTED 2013f60: 10 80 00 09 b 2013f84 <== NOT EXECUTED 2013f64: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 2013f68: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 2013f6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2013f70: 12 80 00 08 bne 2013f90 <== NOT EXECUTED 2013f74: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2013f78: 7f ff e1 12 call 200c3c0 <__errno> <== NOT EXECUTED 2013f7c: 01 00 00 00 nop <== NOT EXECUTED 2013f80: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2013f84: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013f88: 10 80 00 0a b 2013fb0 <== NOT EXECUTED 2013f8c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->read_h)( iop, buffer, count ); 2013f90: 9f c0 40 00 call %g1 <== NOT EXECUTED 2013f94: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( rc > 0 ) 2013f98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2013f9c: 04 80 00 05 ble 2013fb0 <== NOT EXECUTED 2013fa0: 01 00 00 00 nop <== NOT EXECUTED iop->offset += rc; 2013fa4: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 2013fa8: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 2013fac: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED return rc; } 2013fb0: 81 c7 e0 08 ret <== NOT EXECUTED 2013fb4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0201fa84 : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 201fa84: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 201fa88: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 201fa8c: 02 80 00 2a be 201fb34 <== NOT EXECUTED 201fa90: 88 10 20 00 clr %g4 <== NOT EXECUTED return NULL; for (;;) { if (dirp->dd_loc == 0) { 201fa94: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 201fa98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fa9c: 32 80 00 0a bne,a 201fac4 <== NOT EXECUTED 201faa0: c6 06 20 04 ld [ %i0 + 4 ], %g3 <== NOT EXECUTED dirp->dd_size = getdents (dirp->dd_fd, 201faa4: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 201faa8: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 201faac: 40 00 2d d1 call 202b1f0 <== NOT EXECUTED 201fab0: d4 06 20 10 ld [ %i0 + 0x10 ], %o2 <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 201fab4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201fab8: 04 80 00 1e ble 201fb30 <== NOT EXECUTED 201fabc: d0 26 20 08 st %o0, [ %i0 + 8 ] <== NOT EXECUTED return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 201fac0: c6 06 20 04 ld [ %i0 + 4 ], %g3 <== NOT EXECUTED 201fac4: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 201fac8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 201facc: 26 80 00 04 bl,a 201fadc <== NOT EXECUTED 201fad0: d8 06 20 0c ld [ %i0 + 0xc ], %o4 <== NOT EXECUTED dirp->dd_loc = 0; 201fad4: 10 bf ff f0 b 201fa94 <== NOT EXECUTED 201fad8: c0 26 20 04 clr [ %i0 + 4 ] <== NOT EXECUTED continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 201fadc: 88 03 00 03 add %o4, %g3, %g4 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 201fae0: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED 201fae4: 32 80 00 14 bne,a 201fb34 <== NOT EXECUTED 201fae8: 88 10 20 00 clr %g4 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 201faec: c4 11 20 08 lduh [ %g4 + 8 ], %g2 <== NOT EXECUTED 201faf0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 201faf4: 02 80 00 0f be 201fb30 <== NOT EXECUTED 201faf8: 9a 00 80 03 add %g2, %g3, %o5 <== NOT EXECUTED 201fafc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 201fb00: 82 00 60 01 inc %g1 <== NOT EXECUTED 201fb04: 82 20 40 03 sub %g1, %g3, %g1 <== NOT EXECUTED 201fb08: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 201fb0c: 34 80 00 0a bg,a 201fb34 <== NOT EXECUTED 201fb10: 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; 201fb14: da 26 20 04 st %o5, [ %i0 + 4 ] <== NOT EXECUTED if (dp->d_ino == 0) 201fb18: c2 03 00 03 ld [ %o4 + %g3 ], %g1 <== NOT EXECUTED 201fb1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fb20: 22 bf ff de be,a 201fa98 <== NOT EXECUTED 201fb24: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED continue; return (dp); } } 201fb28: 81 c7 e0 08 ret <== NOT EXECUTED 201fb2c: 91 e8 00 04 restore %g0, %g4, %o0 <== 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) 201fb30: 88 10 20 00 clr %g4 <== NOT EXECUTED continue; return (dp); } } 201fb34: b0 10 00 04 mov %g4, %i0 <== NOT EXECUTED 201fb38: 81 c7 e0 08 ret <== NOT EXECUTED 201fb3c: 81 e8 00 00 restore <== NOT EXECUTED 0201fb40 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 201fb40: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 201fb44: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 201fb48: 12 80 00 06 bne 201fb60 <== NOT EXECUTED 201fb4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 201fb50: 40 00 36 14 call 202d3a0 <__errno> <== NOT EXECUTED 201fb54: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201fb58: 10 80 00 30 b 201fc18 <== NOT EXECUTED 201fb5c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 201fb60: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 201fb64: 92 10 20 00 clr %o1 <== NOT EXECUTED 201fb68: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201fb6c: 96 10 20 00 clr %o3 <== NOT EXECUTED 201fb70: 7f ff 91 fe call 2004368 <== NOT EXECUTED 201fb74: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( result != 0 ) 201fb78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201fb7c: 12 80 00 28 bne 201fc1c <== NOT EXECUTED 201fb80: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 201fb84: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 201fb88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fb8c: 12 80 00 04 bne 201fb9c <== NOT EXECUTED 201fb90: 01 00 00 00 nop <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fb94: 10 80 00 19 b 201fbf8 <== NOT EXECUTED 201fb98: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 201fb9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fba0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201fba4: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED 201fba8: 02 80 00 0f be 201fbe4 <== NOT EXECUTED 201fbac: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fbb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fbb4: 02 80 00 08 be 201fbd4 <== NOT EXECUTED 201fbb8: 01 00 00 00 nop <== NOT EXECUTED 201fbbc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fbc0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fbc4: 02 80 00 04 be 201fbd4 <== NOT EXECUTED 201fbc8: 01 00 00 00 nop <== NOT EXECUTED 201fbcc: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fbd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 201fbd4: 40 00 35 f3 call 202d3a0 <__errno> <== NOT EXECUTED 201fbd8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201fbdc: 10 80 00 0f b 201fc18 <== NOT EXECUTED 201fbe0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED } if ( !loc.ops->readlink_h ){ 201fbe4: c4 00 60 3c ld [ %g1 + 0x3c ], %g2 <== NOT EXECUTED 201fbe8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 201fbec: 12 80 00 0e bne 201fc24 <== NOT EXECUTED 201fbf0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fbf4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fbf8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fbfc: 02 80 00 04 be 201fc0c <== NOT EXECUTED 201fc00: 01 00 00 00 nop <== NOT EXECUTED 201fc04: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fc08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201fc0c: 40 00 35 e5 call 202d3a0 <__errno> <== NOT EXECUTED 201fc10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201fc14: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201fc18: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201fc1c: 81 c7 e0 08 ret <== NOT EXECUTED 201fc20: 81 e8 00 00 restore <== NOT EXECUTED } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 201fc24: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 201fc28: 9f c0 80 00 call %g2 <== NOT EXECUTED 201fc2c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fc30: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201fc34: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fc38: 02 bf ff f9 be 201fc1c <== NOT EXECUTED 201fc3c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 201fc40: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fc44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fc48: 02 80 00 04 be 201fc58 <== NOT EXECUTED 201fc4c: 01 00 00 00 nop <== NOT EXECUTED 201fc50: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fc54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 201fc58: 81 c7 e0 08 ret <== NOT EXECUTED 201fc5c: 81 e8 00 00 restore <== NOT EXECUTED 0201403c : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 201403c: 9d e3 bf 90 save %sp, -112, %sp 2014040: 07 00 80 59 sethi %hi(0x2016400), %g3 2014044: 86 10 e3 10 or %g3, 0x310, %g3 ! 2016710 2014048: c2 00 e0 10 ld [ %g3 + 0x10 ], %g1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 201404c: 05 00 80 5a sethi %hi(0x2016800), %g2 2014050: c4 00 a2 24 ld [ %g2 + 0x224 ], %g2 ! 2016a24 <_System_state_Current> { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 2014054: 82 00 60 01 inc %g1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2014058: 80 a0 a0 03 cmp %g2, 3 201405c: 12 80 00 0c bne 201408c 2014060: c2 20 e0 10 st %g1, [ %g3 + 0x10 ] if (_Thread_Dispatch_disable_level > 0) 2014064: 03 00 80 5a sethi %hi(0x2016800), %g1 2014068: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 2016880 <_Thread_Dispatch_disable_level> 201406c: 80 a0 60 00 cmp %g1, 0 2014070: 32 80 00 13 bne,a 20140bc 2014074: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; if (_ISR_Nest_level > 0) 2014078: 03 00 80 5a sethi %hi(0x2016800), %g1 201407c: c2 00 61 20 ld [ %g1 + 0x120 ], %g1 ! 2016920 <_ISR_Nest_level> 2014080: 80 a0 60 00 cmp %g1, 0 2014084: 32 80 00 0e bne,a 20140bc 2014088: b0 10 20 00 clr %i0 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 201408c: 80 a6 20 00 cmp %i0, 0 2014090: 12 80 00 06 bne 20140a8 2014094: 80 a6 60 00 cmp %i1, 0 return malloc( size ); 2014098: 7f ff d9 69 call 200a63c <== NOT EXECUTED 201409c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20140a0: 81 c7 e0 08 ret <== NOT EXECUTED 20140a4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED if ( !size ) { 20140a8: 12 80 00 07 bne 20140c4 20140ac: 21 00 80 59 sethi %hi(0x2016400), %l0 free( ptr ); 20140b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20140b4: 7f ff d8 02 call 200a0bc <== NOT EXECUTED 20140b8: b0 10 20 00 clr %i0 <== NOT EXECUTED 20140bc: 81 c7 e0 08 ret <== NOT EXECUTED 20140c0: 81 e8 00 00 restore <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 20140c4: 92 10 00 18 mov %i0, %o1 20140c8: 90 14 22 b8 or %l0, 0x2b8, %o0 20140cc: 40 00 00 63 call 2014258 <_Protected_heap_Get_block_size> 20140d0: 94 07 bf f4 add %fp, -12, %o2 20140d4: 80 8a 20 ff btst 0xff, %o0 20140d8: 12 80 00 08 bne 20140f8 20140dc: 90 14 22 b8 or %l0, 0x2b8, %o0 errno = EINVAL; 20140e0: 7f ff e0 b8 call 200c3c0 <__errno> 20140e4: b0 10 20 00 clr %i0 20140e8: 82 10 20 16 mov 0x16, %g1 20140ec: c2 22 00 00 st %g1, [ %o0 ] 20140f0: 81 c7 e0 08 ret 20140f4: 81 e8 00 00 restore #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 ) ) { 20140f8: 92 10 00 18 mov %i0, %o1 20140fc: 40 00 00 64 call 201428c <_Protected_heap_Resize_block> 2014100: 94 10 00 19 mov %i1, %o2 2014104: 80 8a 20 ff btst 0xff, %o0 2014108: 12 80 00 1b bne 2014174 201410c: 01 00 00 00 nop * 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 ); 2014110: 7f ff d9 4b call 200a63c 2014114: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 2014118: 05 00 80 59 sethi %hi(0x2016400), %g2 201411c: 84 10 a3 10 or %g2, 0x310, %g2 ! 2016710 2014120: c2 00 a0 04 ld [ %g2 + 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 ); 2014124: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 2014128: 82 00 7f ff add %g1, -1, %g1 if ( !new_area ) { 201412c: 80 a2 20 00 cmp %o0, 0 2014130: 02 80 00 10 be 2014170 2014134: c2 20 a0 04 st %g1, [ %g2 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 2014138: c2 07 bf f4 ld [ %fp + -12 ], %g1 201413c: 80 a6 40 01 cmp %i1, %g1 2014140: 08 80 00 03 bleu 201414c 2014144: 90 10 00 19 mov %i1, %o0 2014148: 90 10 00 01 mov %g1, %o0 201414c: 94 10 00 08 mov %o0, %o2 2014150: 92 10 00 18 mov %i0, %o1 2014154: 7f ff e2 8d call 200cb88 2014158: 90 10 00 10 mov %l0, %o0 free( ptr ); 201415c: 90 10 00 18 mov %i0, %o0 2014160: 7f ff d7 d7 call 200a0bc 2014164: b0 10 00 10 mov %l0, %i0 2014168: 81 c7 e0 08 ret 201416c: 81 e8 00 00 restore return new_area; 2014170: b0 10 20 00 clr %i0 <== NOT EXECUTED } 2014174: 81 c7 e0 08 ret 2014178: 81 e8 00 00 restore 0201fda0 : #include int rmdir( const char *pathname ) { 201fda0: 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 ); 201fda4: 92 10 20 00 clr %o1 <== NOT EXECUTED 201fda8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201fdac: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 201fdb0: 96 10 20 00 clr %o3 <== NOT EXECUTED 201fdb4: 7f ff 91 6d call 2004368 <== NOT EXECUTED 201fdb8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if ( result != 0 ) 201fdbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201fdc0: 32 80 00 11 bne,a 201fe04 <== NOT EXECUTED 201fdc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 201fdc8: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 201fdcc: 7f ff 91 3a call 20042b4 <== NOT EXECUTED 201fdd0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (result != 0) { 201fdd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201fdd8: 02 80 00 0d be 201fe0c <== NOT EXECUTED 201fddc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fde0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fde4: 02 80 00 08 be 201fe04 <== NOT EXECUTED 201fde8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201fdec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fdf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fdf4: 02 80 00 04 be 201fe04 <== NOT EXECUTED 201fdf8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201fdfc: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fe00: 01 00 00 00 nop <== NOT EXECUTED 201fe04: 81 c7 e0 08 ret <== NOT EXECUTED 201fe08: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 201fe0c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 201fe10: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 201fe14: 22 80 00 1e be,a 201fe8c <== NOT EXECUTED 201fe18: c2 00 60 1c ld [ %g1 + 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 ){ 201fe1c: 9f c0 80 00 call %g2 <== NOT EXECUTED 201fe20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201fe24: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 201fe28: 02 80 00 10 be 201fe68 <== NOT EXECUTED 201fe2c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fe30: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201fe34: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fe38: 02 80 00 08 be 201fe58 <== NOT EXECUTED 201fe3c: 01 00 00 00 nop <== NOT EXECUTED 201fe40: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fe44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fe48: 02 80 00 04 be 201fe58 <== NOT EXECUTED 201fe4c: 01 00 00 00 nop <== NOT EXECUTED 201fe50: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fe54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 201fe58: 40 00 35 52 call 202d3a0 <__errno> <== NOT EXECUTED 201fe5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201fe60: 10 80 00 13 b 201feac <== NOT EXECUTED 201fe64: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 201fe68: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED 201fe6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fe70: 12 80 00 12 bne 201feb8 <== NOT EXECUTED 201fe74: 01 00 00 00 nop <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fe78: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201fe7c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fe80: 02 80 00 08 be 201fea0 <== NOT EXECUTED 201fe84: 01 00 00 00 nop <== NOT EXECUTED 201fe88: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fe8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fe90: 02 80 00 04 be 201fea0 <== NOT EXECUTED 201fe94: 01 00 00 00 nop <== NOT EXECUTED 201fe98: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fe9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201fea0: 40 00 35 40 call 202d3a0 <__errno> <== NOT EXECUTED 201fea4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201fea8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201feac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201feb0: 81 c7 e0 08 ret <== NOT EXECUTED 201feb4: 81 e8 00 00 restore <== NOT EXECUTED } result = (*loc.handlers->rmnod_h)( &loc ); 201feb8: 9f c0 40 00 call %g1 <== NOT EXECUTED 201febc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201fec0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201fec4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fec8: 02 bf ff cf be 201fe04 <== NOT EXECUTED 201fecc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 201fed0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201fed4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201fed8: 02 80 00 06 be 201fef0 <== NOT EXECUTED 201fedc: 01 00 00 00 nop <== NOT EXECUTED 201fee0: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fee4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201fee8: 81 c7 e0 08 ret <== NOT EXECUTED 201feec: 81 e8 00 00 restore <== NOT EXECUTED return result; } 201fef0: 81 c7 e0 08 ret <== NOT EXECUTED 201fef4: 81 e8 00 00 restore <== NOT EXECUTED 0200bd2c : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 200bd2c: 9d e3 bf 98 save %sp, -104, %sp 200bd30: a0 10 20 01 mov 1, %l0 200bd34: a4 10 00 18 mov %i0, %l2 200bd38: a2 10 20 00 clr %l1 200bd3c: b0 10 20 00 clr %i0 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) 200bd40: 80 8c 00 19 btst %l0, %i1 200bd44: 22 80 00 07 be,a 200bd60 200bd48: a2 04 60 01 inc %l1 local_value |= rtems_assoc_local_by_remote(ap, b); 200bd4c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200bd50: 40 00 00 09 call 200bd74 <== NOT EXECUTED 200bd54: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 200bd58: b0 16 00 08 or %i0, %o0, %i0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 200bd5c: a2 04 60 01 inc %l1 <== NOT EXECUTED 200bd60: 80 a4 60 20 cmp %l1, 0x20 200bd64: 12 bf ff f7 bne 200bd40 200bd68: a1 2c 20 01 sll %l0, 1, %l0 if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 200bd6c: 81 c7 e0 08 ret 200bd70: 81 e8 00 00 restore 02014800 : const char * rtems_assoc_name_bad( uint32_t bad_value ) { 2014800: 11 00 80 90 sethi %hi(0x2024000), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 2014804: 81 c3 e0 08 retl <== NOT EXECUTED 2014808: 90 12 23 f0 or %o0, 0x3f0, %o0 ! 20243f0 <== NOT EXECUTED 0201083c : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 201083c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 2010840: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2010844: 40 00 00 0b call 2010870 <== NOT EXECUTED 2010848: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if (nap) 201084c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2010850: 02 80 00 05 be 2010864 <== NOT EXECUTED 2010854: 01 00 00 00 nop <== NOT EXECUTED return nap->name; return rtems_assoc_name_bad(local_value); } 2010858: f0 02 00 00 ld [ %o0 ], %i0 <== NOT EXECUTED 201085c: 81 c7 e0 08 ret <== NOT EXECUTED 2010860: 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); 2010864: 40 00 0f e7 call 2014800 <== NOT EXECUTED 2010868: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 201086c: 01 00 00 00 nop 0200bd9c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 200bd9c: 9d e3 bf 98 save %sp, -104, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200bda0: d0 06 00 00 ld [ %i0 ], %o0 200bda4: 80 a2 20 00 cmp %o0, 0 200bda8: 02 80 00 0e be 200bde0 200bdac: 84 10 20 00 clr %g2 200bdb0: 13 00 80 54 sethi %hi(0x2015000), %o1 200bdb4: 40 00 06 53 call 200d700 200bdb8: 92 12 63 48 or %o1, 0x348, %o1 ! 2015348 <__func__.5598+0x18> 200bdbc: 80 a2 20 00 cmp %o0, 0 200bdc0: 02 80 00 07 be 200bddc 200bdc4: 84 10 00 18 mov %i0, %g2 default_ap = ap++; 200bdc8: 10 80 00 06 b 200bde0 200bdcc: 84 10 20 00 clr %g2 for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 200bdd0: 80 a0 40 19 cmp %g1, %i1 200bdd4: 02 80 00 08 be 200bdf4 200bdd8: 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++) 200bddc: b0 06 20 0c add %i0, 0xc, %i0 200bde0: c2 06 00 00 ld [ %i0 ], %g1 200bde4: 80 a0 60 00 cmp %g1, 0 200bde8: 32 bf ff fa bne,a 200bdd0 200bdec: c2 06 20 08 ld [ %i0 + 8 ], %g1 200bdf0: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED if (ap->remote_value == remote_value) return ap; return default_ap; } 200bdf4: 81 c7 e0 08 ret 200bdf8: 81 e8 00 00 restore 0200bdfc : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200bdfc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200be00: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200be04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200be08: 40 00 01 4e call 200c340 <== NOT EXECUTED 200be0c: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200be10: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200be14: 32 80 00 02 bne,a 200be1c <== NOT EXECUTED 200be18: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200be1c: 81 c7 e0 08 ret <== NOT EXECUTED 200be20: 81 e8 00 00 restore <== NOT EXECUTED 02002b2c : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002b2c: 9d e3 bf 60 save %sp, -160, %sp struct timespec uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 2002b30: 80 a6 60 00 cmp %i1, 0 2002b34: 02 80 00 66 be 2002ccc 2002b38: a0 07 bf e8 add %fp, -24, %l0 * 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 ); 2002b3c: 40 00 13 e5 call 2007ad0 <_TOD_Get_uptime> 2002b40: 90 10 00 10 mov %l0, %o0 _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 2002b44: 92 10 00 10 mov %l0, %o1 2002b48: 11 00 80 8c sethi %hi(0x2023000), %o0 2002b4c: a0 07 bf e0 add %fp, -32, %l0 2002b50: 90 12 20 2c or %o0, 0x2c, %o0 2002b54: 40 00 1e 0b call 200a380 <_Timespec_Subtract> 2002b58: 94 10 00 10 mov %l0, %o2 } } } #endif (*print)( context, "CPU Usage by thread\n" 2002b5c: 90 10 00 18 mov %i0, %o0 2002b60: 13 00 80 61 sethi %hi(0x2018400), %o1 2002b64: 9f c6 40 00 call %i1 2002b68: 92 12 61 d8 or %o1, 0x1d8, %o1 ! 20185d8 2002b6c: 03 00 80 8b sethi %hi(0x2022c00), %g1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002b70: ac 07 bf c0 add %fp, -64, %l6 } } } #endif (*print)( context, "CPU Usage by thread\n" 2002b74: a4 10 60 d4 or %g1, 0xd4, %l2 _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002b78: aa 07 bf d8 add %fp, -40, %l5 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( 2002b7c: 03 00 80 8b sethi %hi(0x2022c00), %g1 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002b80: b6 07 bf f4 add %fp, -12, %i3 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( 2002b84: b4 10 62 3c or %g1, 0x23c, %i2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002b88: b8 07 bf f0 add %fp, -16, %i4 " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 2002b8c: ba 04 a0 10 add %l2, 0x10, %i5 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 2002b90: c2 04 80 00 ld [ %l2 ], %g1 2002b94: 80 a0 60 00 cmp %g1, 0 2002b98: 22 80 00 41 be,a 2002c9c 2002b9c: a4 04 a0 04 add %l2, 4, %l2 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 2002ba0: e6 00 60 04 ld [ %g1 + 4 ], %l3 if ( information ) { 2002ba4: 80 a4 e0 00 cmp %l3, 0 2002ba8: 22 80 00 3d be,a 2002c9c 2002bac: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED 2002bb0: a2 10 20 01 mov 1, %l1 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( 2002bb4: ae 07 bf e8 add %fp, -24, %l7 2002bb8: 10 80 00 32 b 2002c80 2002bbc: a8 07 bf d0 add %fp, -48, %l4 if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; 2002bc0: c2 04 e0 1c ld [ %l3 + 0x1c ], %g1 2002bc4: e0 00 40 02 ld [ %g1 + %g2 ], %l0 if ( !the_thread ) 2002bc8: 80 a4 20 00 cmp %l0, 0 2002bcc: 02 80 00 2d be 2002c80 2002bd0: a2 04 60 01 inc %l1 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002bd4: 40 00 0e b6 call 20066ac 2002bd8: d0 04 20 08 ld [ %l0 + 8 ], %o0 (*print)( 2002bdc: d4 04 20 08 ld [ %l0 + 8 ], %o2 2002be0: 90 10 00 18 mov %i0, %o0 2002be4: 13 00 80 61 sethi %hi(0x2018400), %o1 2002be8: 96 10 00 16 mov %l6, %o3 2002bec: 9f c6 40 00 call %i1 2002bf0: 92 12 62 20 or %o1, 0x220, %o1 #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; 2002bf4: c2 04 20 84 ld [ %l0 + 0x84 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002bf8: 07 00 80 8b sethi %hi(0x2022c00), %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; 2002bfc: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002c00: 86 10 e2 34 or %g3, 0x234, %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; 2002c04: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002c08: c4 00 c0 00 ld [ %g3 ], %g2 #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; 2002c0c: c2 27 bf dc st %g1, [ %fp + -36 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002c10: c4 00 a0 08 ld [ %g2 + 8 ], %g2 2002c14: c2 04 20 08 ld [ %l0 + 8 ], %g1 2002c18: 80 a0 80 01 cmp %g2, %g1 2002c1c: 12 80 00 0a bne 2002c44 2002c20: 94 10 00 1b mov %i3, %o2 struct timespec used; _Timespec_Subtract( 2002c24: 90 10 00 1a mov %i2, %o0 2002c28: 92 10 00 17 mov %l7, %o1 2002c2c: 40 00 1d d5 call 200a380 <_Timespec_Subtract> 2002c30: 94 10 00 14 mov %l4, %o2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 2002c34: 90 10 00 15 mov %l5, %o0 2002c38: 40 00 1d 27 call 200a0d4 <_Timespec_Add_to> 2002c3c: 92 10 00 14 mov %l4, %o1 }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2002c40: 94 10 00 1b mov %i3, %o2 2002c44: 96 10 00 1c mov %i4, %o3 2002c48: 90 10 00 15 mov %l5, %o0 2002c4c: 40 00 1d 3a call 200a134 <_Timespec_Divide> 2002c50: 92 07 bf e0 add %fp, -32, %o1 /* * Print the information */ (*print)( context, 2002c54: d0 07 bf dc ld [ %fp + -36 ], %o0 2002c58: 40 00 4e a7 call 20166f4 <.udiv> 2002c5c: 92 10 23 e8 mov 0x3e8, %o1 2002c60: d4 07 bf d8 ld [ %fp + -40 ], %o2 2002c64: d8 07 bf f4 ld [ %fp + -12 ], %o4 2002c68: da 07 bf f0 ld [ %fp + -16 ], %o5 2002c6c: 96 10 00 08 mov %o0, %o3 2002c70: 13 00 80 61 sethi %hi(0x2018400), %o1 2002c74: 90 10 00 18 mov %i0, %o0 2002c78: 9f c6 40 00 call %i1 2002c7c: 92 12 62 38 or %o1, 0x238, %o1 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++ ) { 2002c80: c2 14 e0 10 lduh [ %l3 + 0x10 ], %g1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002c84: 94 10 00 16 mov %l6, %o2 2002c88: 92 10 20 0d mov 0xd, %o1 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++ ) { 2002c8c: 80 a4 40 01 cmp %l1, %g1 2002c90: 08 bf ff cc bleu 2002bc0 2002c94: 85 2c 60 02 sll %l1, 2, %g2 2002c98: a4 04 a0 04 add %l2, 4, %l2 " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 2002c9c: 80 a4 80 1d cmp %l2, %i5 2002ca0: 32 bf ff bd bne,a 2002b94 2002ca4: c2 04 80 00 ld [ %l2 ], %g1 } } } #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS (*print)( context, "Time since last CPU Usage reset %" PRId32 2002ca8: d0 07 bf e4 ld [ %fp + -28 ], %o0 2002cac: 40 00 4e 92 call 20166f4 <.udiv> 2002cb0: 92 10 23 e8 mov 0x3e8, %o1 2002cb4: d4 07 bf e0 ld [ %fp + -32 ], %o2 2002cb8: 96 10 00 08 mov %o0, %o3 2002cbc: 13 00 80 61 sethi %hi(0x2018400), %o1 2002cc0: 90 10 00 18 mov %i0, %o0 2002cc4: 9f c6 40 00 call %i1 2002cc8: 92 12 62 50 or %o1, 0x250, %o1 2002ccc: 81 c7 e0 08 ret 2002cd0: 81 e8 00 00 restore 0200b994 : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { 200b994: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) 200b998: 11 00 80 54 sethi %hi(0x2015000), %o0 <== NOT EXECUTED 200b99c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200b9a0: 40 00 01 17 call 200bdfc <== NOT EXECUTED 200b9a4: 90 12 22 24 or %o0, 0x224, %o0 <== NOT EXECUTED 200b9a8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200b9ac: 02 80 00 05 be 200b9c0 <== NOT EXECUTED 200b9b0: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200b9b4: 40 00 02 83 call 200c3c0 <__errno> <== NOT EXECUTED 200b9b8: 01 00 00 00 nop <== NOT EXECUTED 200b9bc: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200b9c0: 81 c7 e0 08 ret <== NOT EXECUTED 200b9c4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 02006460 : int rtems_error( int error_flag, const char *printf_format, ... ) { 2006460: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 2006464: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 2006468: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 200646c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2006470: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2006474: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 2006478: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200647c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2006480: 7f ff ff 7c call 2006270 <== NOT EXECUTED 2006484: d4 27 bf f4 st %o2, [ %fp + -12 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 2006488: 81 c7 e0 08 ret <== NOT EXECUTED 200648c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02001efc : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 2001efc: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 2001f00: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2001f04: 32 80 00 06 bne,a 2001f1c <== NOT EXECUTED 2001f08: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2001f0c: 40 00 29 2d call 200c3c0 <__errno> <== NOT EXECUTED 2001f10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001f14: 10 80 00 09 b 2001f38 <== NOT EXECUTED 2001f18: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 2001f1c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 2001f20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001f24: 12 80 00 08 bne 2001f44 <== NOT EXECUTED 2001f28: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2001f2c: 40 00 29 25 call 200c3c0 <__errno> <== NOT EXECUTED 2001f30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001f34: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001f38: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001f3c: 81 c7 e0 08 ret <== NOT EXECUTED 2001f40: 81 e8 00 00 restore <== NOT EXECUTED parent = *pathloc; 2001f44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2001f48: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2001f4c: 40 00 2b 0f call 200cb88 <== NOT EXECUTED 2001f50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 2001f54: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED 2001f58: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2001f5c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 2001f60: 11 00 80 53 sethi %hi(0x2014c00), %o0 <== NOT EXECUTED 2001f64: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2001f68: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001f6c: 90 12 21 60 or %o0, 0x160, %o0 <== NOT EXECUTED if (result != 0){ 2001f70: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2001f74: 02 80 00 04 be 2001f84 <== NOT EXECUTED 2001f78: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2001f7c: 81 c7 e0 08 ret <== NOT EXECUTED 2001f80: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 2001f84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001f88: 02 80 00 08 be 2001fa8 <== NOT EXECUTED 2001f8c: 01 00 00 00 nop <== NOT EXECUTED 2001f90: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001f94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001f98: 02 80 00 04 be 2001fa8 <== NOT EXECUTED 2001f9c: 01 00 00 00 nop <== NOT EXECUTED 2001fa0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001fa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2001fa8: 81 c7 e0 08 ret <== NOT EXECUTED 2001fac: 81 e8 00 00 restore <== NOT EXECUTED 02001fb0 : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2001fb0: 9d e3 bf 98 save %sp, -104, %sp /* * Verify Input parameters. */ if ( !pathname ) 2001fb4: 80 a6 20 00 cmp %i0, 0 2001fb8: 12 80 00 06 bne 2001fd0 2001fbc: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EFAULT ); 2001fc0: 40 00 29 00 call 200c3c0 <__errno> <== NOT EXECUTED 2001fc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001fc8: 10 80 00 44 b 20020d8 <== NOT EXECUTED 2001fcc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED if ( !pathloc ) 2001fd0: 32 80 00 06 bne,a 2001fe8 2001fd4: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2001fd8: 40 00 28 fa call 200c3c0 <__errno> <== NOT EXECUTED 2001fdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001fe0: 10 80 00 3e b 20020d8 <== NOT EXECUTED 2001fe4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2001fe8: 80 a0 60 2f cmp %g1, 0x2f 2001fec: 02 80 00 06 be 2002004 2001ff0: 80 a0 60 5c cmp %g1, 0x5c 2001ff4: 02 80 00 04 be 2002004 <== NOT EXECUTED 2001ff8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001ffc: 12 80 00 0a bne 2002024 <== NOT EXECUTED 2002000: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2002004: 03 00 80 57 sethi %hi(0x2015c00), %g1 2002008: d2 00 63 44 ld [ %g1 + 0x344 ], %o1 ! 2015f44 200200c: 90 10 00 1a mov %i2, %o0 2002010: 92 02 60 14 add %o1, 0x14, %o1 2002014: 40 00 2a dd call 200cb88 2002018: 94 10 20 10 mov 0x10, %o2 200201c: 10 80 00 08 b 200203c 2002020: 84 10 20 01 mov 1, %g2 2002024: d2 00 63 44 ld [ %g1 + 0x344 ], %o1 <== NOT EXECUTED 2002028: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED 200202c: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 2002030: 40 00 2a d6 call 200cb88 <== NOT EXECUTED 2002034: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2002038: 84 10 20 00 clr %g2 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 200203c: c2 06 a0 08 ld [ %i2 + 8 ], %g1 2002040: c2 00 40 00 ld [ %g1 ], %g1 2002044: 80 a0 60 00 cmp %g1, 0 2002048: 02 80 00 21 be 20020cc 200204c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 2002050: 90 06 00 02 add %i0, %g2, %o0 2002054: 92 10 00 19 mov %i1, %o1 2002058: 9f c0 40 00 call %g1 200205c: 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 ) { 2002060: b0 92 20 00 orcc %o0, 0, %i0 2002064: 12 80 00 1e bne 20020dc 2002068: 80 a6 e0 00 cmp %i3, 0 200206c: 02 80 00 21 be 20020f0 2002070: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 2002074: c2 06 a0 08 ld [ %i2 + 8 ], %g1 2002078: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200207c: 80 a0 a0 00 cmp %g2, 0 2002080: 22 80 00 0e be,a 20020b8 2002084: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 2002088: 9f c0 80 00 call %g2 200208c: 90 10 00 1a mov %i2, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 2002090: 90 02 3f fd add %o0, -3, %o0 2002094: 80 a2 20 01 cmp %o0, 1 2002098: 18 80 00 16 bgu 20020f0 200209c: 01 00 00 00 nop ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 20020a0: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED 20020a4: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 <== NOT EXECUTED 20020a8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20020ac: 12 80 00 0e bne 20020e4 <== NOT EXECUTED 20020b0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); 20020b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20020b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20020bc: 02 80 00 04 be 20020cc <== NOT EXECUTED 20020c0: 01 00 00 00 nop <== NOT EXECUTED 20020c4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20020c8: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20020cc: 40 00 28 bd call 200c3c0 <__errno> <== NOT EXECUTED 20020d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20020d4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20020d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20020dc: 81 c7 e0 08 ret <== NOT EXECUTED 20020e0: 81 e8 00 00 restore <== 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 ); 20020e4: 9f c0 80 00 call %g2 <== NOT EXECUTED 20020e8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20020ec: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } } return result; } 20020f0: 81 c7 e0 08 ret 20020f4: 81 e8 00 00 restore 02009e8c : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 2009e8c: 9d e3 bf 80 save %sp, -128, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 2009e90: 25 00 80 57 sethi %hi(0x2015c00), %l2 2009e94: c4 04 a3 44 ld [ %l2 + 0x344 ], %g2 ! 2015f44 2009e98: 82 10 20 12 mov 0x12, %g1 init_fs_mount_table(); 2009e9c: 40 00 02 31 call 200a760 2009ea0: c2 30 a0 24 sth %g1, [ %g2 + 0x24 ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2009ea4: 03 00 80 52 sethi %hi(0x2014800), %g1 2009ea8: c2 00 60 9c ld [ %g1 + 0x9c ], %g1 ! 201489c rtems_fatal_error_occurred( 0xABCD0001 ); 2009eac: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2009eb0: 80 a0 60 00 cmp %g1, 0 2009eb4: 02 80 00 0f be 2009ef0 2009eb8: 90 12 20 01 or %o0, 1, %o0 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 2009ebc: 03 00 80 56 sethi %hi(0x2015800), %g1 2009ec0: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 2015a30 status = mount( 2009ec4: 90 07 bf f4 add %fp, -12, %o0 2009ec8: d8 00 60 0c ld [ %g1 + 0xc ], %o4 2009ecc: d2 00 40 00 ld [ %g1 ], %o1 2009ed0: d4 00 60 04 ld [ %g1 + 4 ], %o2 2009ed4: 40 00 02 2b call 200a780 2009ed8: d6 00 60 08 ld [ %g1 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 2009edc: 80 a2 3f ff cmp %o0, -1 2009ee0: 32 80 00 06 bne,a 2009ef8 2009ee4: d0 04 a3 44 ld [ %l2 + 0x344 ], %o0 rtems_fatal_error_occurred( 0xABCD0002 ); 2009ee8: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2009eec: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED 2009ef0: 7f ff ef 17 call 2005b4c <== NOT EXECUTED 2009ef4: 01 00 00 00 nop <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2009ef8: d2 07 bf f4 ld [ %fp + -12 ], %o1 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 2009efc: c0 32 20 26 clrh [ %o0 + 0x26 ] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2009f00: 92 02 60 18 add %o1, 0x18, %o1 2009f04: 94 10 20 10 mov 0x10, %o2 2009f08: 40 00 0b 20 call 200cb88 2009f0c: 90 02 20 14 add %o0, 0x14, %o0 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 2009f10: a0 07 bf e4 add %fp, -28, %l0 2009f14: 96 10 20 00 clr %o3 2009f18: 23 00 80 54 sethi %hi(0x2015000), %l1 2009f1c: 92 10 20 00 clr %o1 2009f20: 94 10 00 10 mov %l0, %o2 2009f24: 7f ff e0 23 call 2001fb0 2009f28: 90 14 60 b0 or %l1, 0xb0, %o0 rtems_filesystem_root = loc; 2009f2c: d0 04 a3 44 ld [ %l2 + 0x344 ], %o0 2009f30: 92 10 00 10 mov %l0, %o1 2009f34: 94 10 20 10 mov 0x10, %o2 2009f38: 40 00 0b 14 call 200cb88 2009f3c: 90 02 20 14 add %o0, 0x14, %o0 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 2009f40: 96 10 20 00 clr %o3 2009f44: 92 10 20 00 clr %o1 2009f48: 94 10 00 10 mov %l0, %o2 2009f4c: 7f ff e0 19 call 2001fb0 2009f50: 90 14 60 b0 or %l1, 0xb0, %o0 rtems_filesystem_current = loc; 2009f54: d0 04 a3 44 ld [ %l2 + 0x344 ], %o0 2009f58: 92 10 00 10 mov %l0, %o1 2009f5c: 94 10 20 10 mov 0x10, %o2 2009f60: 40 00 0b 0a call 200cb88 2009f64: 90 02 20 04 add %o0, 4, %o0 * * 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); 2009f68: 92 10 21 ff mov 0x1ff, %o1 2009f6c: 11 00 80 54 sethi %hi(0x2015000), %o0 2009f70: 40 00 01 f2 call 200a738 2009f74: 90 12 20 b8 or %o0, 0xb8, %o0 ! 20150b8 if ( status != 0 ) 2009f78: 80 a2 20 00 cmp %o0, 0 2009f7c: 02 80 00 04 be 2009f8c 2009f80: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred( 0xABCD0003 ); 2009f84: 10 bf ff db b 2009ef0 <== NOT EXECUTED 2009f88: 90 12 20 03 or %o0, 3, %o0 ! abcd0003 <== NOT EXECUTED 2009f8c: 81 c7 e0 08 ret 2009f90: 81 e8 00 00 restore 02020360 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 2020360: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2020364: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 2020368: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 202036c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 2020370: 81 c3 e0 08 retl <== NOT EXECUTED 2020374: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02001d60 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 2001d60: 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 ); 2001d64: 92 10 20 00 clr %o1 <== NOT EXECUTED 2001d68: a4 07 bf e8 add %fp, -24, %l2 <== NOT EXECUTED 2001d6c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001d70: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2001d74: 40 00 00 8f call 2001fb0 <== NOT EXECUTED 2001d78: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001d7c: 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 ); 2001d80: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001d84: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2001d88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001d8c: 12 80 00 0e bne 2001dc4 <== NOT EXECUTED 2001d90: e2 07 bf e8 ld [ %fp + -24 ], %l1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001d94: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2001d98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001d9c: 02 80 00 04 be 2001dac <== NOT EXECUTED 2001da0: 01 00 00 00 nop <== NOT EXECUTED 2001da4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001da8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2001dac: 40 00 29 85 call 200c3c0 <__errno> <== NOT EXECUTED 2001db0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001db4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001db8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001dbc: 81 c7 e0 08 ret <== NOT EXECUTED 2001dc0: 81 e8 00 00 restore <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 2001dc4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001dc8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2001dcc: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2001dd0: 12 80 00 05 bne 2001de4 <== NOT EXECUTED 2001dd4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2001dd8: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED 2001ddc: 22 80 00 0d be,a 2001e10 <== NOT EXECUTED 2001de0: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001de4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001de8: 02 80 00 1c be 2001e58 <== NOT EXECUTED 2001dec: 01 00 00 00 nop <== NOT EXECUTED 2001df0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001df4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001df8: 02 80 00 18 be 2001e58 <== NOT EXECUTED 2001dfc: 01 00 00 00 nop <== NOT EXECUTED 2001e00: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e04: 90 07 bf e8 add %fp, -24, %o0 <== 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 ); 2001e08: 81 c7 e0 08 ret <== NOT EXECUTED 2001e0c: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 2001e10: 40 00 2e 8e call 200d848 <== NOT EXECUTED 2001e14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001e18: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 2001e1c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001e20: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== 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; 2001e24: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 2001e28: c2 04 60 50 ld [ %l1 + 0x50 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001e2c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2001e30: 02 80 00 0c be 2001e60 <== NOT EXECUTED 2001e34: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED 2001e38: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2001e3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e40: 02 80 00 08 be 2001e60 <== NOT EXECUTED 2001e44: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2001e48: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e4c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2001e50: 81 c7 e0 08 ret <== NOT EXECUTED 2001e54: 81 e8 00 00 restore <== NOT EXECUTED 2001e58: 81 c7 e0 08 ret <== NOT EXECUTED 2001e5c: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED 2001e60: b0 10 20 00 clr %i0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 2001e64: 81 c7 e0 08 ret <== NOT EXECUTED 2001e68: 81 e8 00 00 restore <== NOT EXECUTED 02006bac : rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 2006bac: 9d e3 bf 98 save %sp, -104, %sp 2006bb0: 92 10 00 19 mov %i1, %o1 /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 2006bb4: 80 a6 60 00 cmp %i1, 0 2006bb8: 02 80 00 3f be 2006cb4 2006bbc: a0 10 00 18 mov %i0, %l0 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) 2006bc0: 80 a6 a0 00 cmp %i2, 0 2006bc4: 02 80 00 3c be 2006cb4 2006bc8: 01 00 00 00 nop return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 2006bcc: c2 06 40 00 ld [ %i1 ], %g1 2006bd0: 80 a0 60 00 cmp %g1, 0 2006bd4: 32 80 00 07 bne,a 2006bf0 2006bd8: c0 26 80 00 clr [ %i2 ] 2006bdc: c2 06 60 04 ld [ %i1 + 4 ], %g1 2006be0: 80 a0 60 00 cmp %g1, 0 2006be4: 02 80 00 34 be 2006cb4 2006be8: 01 00 00 00 nop return RTEMS_INVALID_ADDRESS; *registered_major = 0; 2006bec: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 2006bf0: 03 00 80 69 sethi %hi(0x201a400), %g1 2006bf4: c8 00 63 50 ld [ %g1 + 0x350 ], %g4 ! 201a750 <_IO_Number_of_drivers> 2006bf8: 80 a4 00 04 cmp %l0, %g4 2006bfc: 1a 80 00 31 bcc 2006cc0 2006c00: b0 10 20 0a mov 0xa, %i0 /* * Test for initialise/open being present to indicate the driver slot is * in use. */ if ( major == 0 ) { 2006c04: 80 a4 20 00 cmp %l0, 0 2006c08: 12 80 00 18 bne 2006c68 2006c0c: 03 00 80 69 sethi %hi(0x201a400), %g1 bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 2006c10: c6 00 63 54 ld [ %g1 + 0x354 ], %g3 ! 201a754 <_IO_Driver_address_table> 2006c14: 85 29 20 03 sll %g4, 3, %g2 2006c18: 83 29 20 05 sll %g4, 5, %g1 2006c1c: a0 01 3f ff add %g4, -1, %l0 2006c20: 82 20 40 02 sub %g1, %g2, %g1 2006c24: 82 00 7f e8 add %g1, -24, %g1 2006c28: 10 80 00 0b b 2006c54 2006c2c: 86 00 c0 01 add %g3, %g1, %g3 if ( !_IO_Driver_address_table[major].initialization_entry && 2006c30: 80 a0 60 00 cmp %g1, 0 2006c34: 32 80 00 07 bne,a 2006c50 2006c38: a0 04 3f ff add %l0, -1, %l0 2006c3c: c2 00 e0 04 ld [ %g3 + 4 ], %g1 2006c40: 80 a0 60 00 cmp %g1, 0 2006c44: 02 80 00 09 be 2006c68 2006c48: 03 00 80 69 sethi %hi(0x201a400), %g1 * in use. */ if ( major == 0 ) { bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 2006c4c: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED 2006c50: 86 00 ff e8 add %g3, -24, %g3 2006c54: 80 a4 20 00 cmp %l0, 0 2006c58: 32 bf ff f6 bne,a 2006c30 2006c5c: c2 00 c0 00 ld [ %g3 ], %g1 2006c60: 81 c7 e0 08 ret 2006c64: 91 e8 20 05 restore %g0, 5, %o0 if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 2006c68: c6 00 63 54 ld [ %g1 + 0x354 ], %g3 2006c6c: 85 2c 20 03 sll %l0, 3, %g2 2006c70: 83 2c 20 05 sll %l0, 5, %g1 2006c74: 82 20 40 02 sub %g1, %g2, %g1 2006c78: c4 00 c0 01 ld [ %g3 + %g1 ], %g2 2006c7c: 80 a0 a0 00 cmp %g2, 0 2006c80: 12 80 00 0f bne 2006cbc 2006c84: 90 00 c0 01 add %g3, %g1, %o0 2006c88: c2 02 20 04 ld [ %o0 + 4 ], %g1 2006c8c: 80 a0 60 00 cmp %g1, 0 2006c90: 32 80 00 0c bne,a 2006cc0 2006c94: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; 2006c98: 40 00 1b a5 call 200db2c 2006c9c: 94 10 20 18 mov 0x18, %o2 *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 2006ca0: b0 10 00 10 mov %l0, %i0 _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; *registered_major = major; 2006ca4: e0 26 80 00 st %l0, [ %i2 ] return rtems_io_initialize( major, 0, NULL ); 2006ca8: b2 10 20 00 clr %i1 2006cac: 7f ff ff 4f call 20069e8 2006cb0: 95 e8 20 00 restore %g0, 0, %o2 2006cb4: 81 c7 e0 08 ret 2006cb8: 91 e8 20 09 restore %g0, 9, %o0 2006cbc: b0 10 20 0c mov 0xc, %i0 } 2006cc0: 81 c7 e0 08 ret 2006cc4: 81 e8 00 00 restore 02007f5c : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 2007f5c: 9d e3 bf 98 save %sp, -104, %sp uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 2007f60: 80 a6 20 00 cmp %i0, 0 2007f64: 02 80 00 1d be 2007fd8 2007f68: 03 00 80 8b sethi %hi(0x2022c00), %g1 return; 2007f6c: a4 10 60 d4 or %g1, 0xd4, %l2 ! 2022cd4 <_Objects_Information_table+0x4> for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 2007f70: a6 04 a0 10 add %l2, 0x10, %l3 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 2007f74: c2 04 80 00 ld [ %l2 ], %g1 2007f78: 80 a0 60 00 cmp %g1, 0 2007f7c: 22 80 00 14 be,a 2007fcc 2007f80: a4 04 a0 04 add %l2, 4, %l2 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 2007f84: e2 00 60 04 ld [ %g1 + 4 ], %l1 if ( information ) { 2007f88: 80 a4 60 00 cmp %l1, 0 2007f8c: 12 80 00 0b bne 2007fb8 2007f90: a0 10 20 01 mov 1, %l0 for ( i=1 ; i <= information->maximum ; i++ ) { 2007f94: 10 80 00 0e b 2007fcc <== NOT EXECUTED 2007f98: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 2007f9c: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 2007fa0: d0 00 40 08 ld [ %g1 + %o0 ], %o0 if ( !the_thread ) 2007fa4: 80 a2 20 00 cmp %o0, 0 2007fa8: 02 80 00 04 be 2007fb8 2007fac: a0 04 20 01 inc %l0 continue; (*routine)(the_thread); 2007fb0: 9f c6 00 00 call %i0 2007fb4: 01 00 00 00 nop 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++ ) { 2007fb8: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 2007fbc: 80 a4 00 01 cmp %l0, %g1 2007fc0: 08 bf ff f7 bleu 2007f9c 2007fc4: 91 2c 20 02 sll %l0, 2, %o0 2007fc8: a4 04 a0 04 add %l2, 4, %l2 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 2007fcc: 80 a4 80 13 cmp %l2, %l3 2007fd0: 32 bf ff ea bne,a 2007f78 2007fd4: c2 04 80 00 ld [ %l2 ], %g1 2007fd8: 81 c7 e0 08 ret 2007fdc: 81 e8 00 00 restore 0200a494 : * 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 ) { 200a494: 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 ); 200a498: 03 00 80 59 sethi %hi(0x2016400), %g1 200a49c: d0 00 62 b4 ld [ %g1 + 0x2b4 ], %o0 ! 20166b4 200a4a0: 92 10 20 00 clr %o1 200a4a4: 7f ff eb ea call 200544c 200a4a8: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 200a4ac: 23 00 80 59 sethi %hi(0x2016400), %l1 200a4b0: c4 04 62 b0 ld [ %l1 + 0x2b0 ], %g2 ! 20166b0 200a4b4: 80 a0 a0 00 cmp %g2, 0 200a4b8: 02 80 00 28 be 200a558 200a4bc: b0 10 20 00 clr %i0 rc = rtems_semaphore_create( 200a4c0: 03 00 80 59 sethi %hi(0x2016400), %g1 200a4c4: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac 200a4c8: 92 10 20 01 mov 1, %o1 200a4cc: 86 20 80 03 sub %g2, %g3, %g3 200a4d0: 87 38 e0 02 sra %g3, 2, %g3 200a4d4: 83 28 e0 02 sll %g3, 2, %g1 200a4d8: 85 28 e0 06 sll %g3, 6, %g2 200a4dc: 84 20 80 01 sub %g2, %g1, %g2 200a4e0: 83 28 a0 06 sll %g2, 6, %g1 200a4e4: 82 20 40 02 sub %g1, %g2, %g1 200a4e8: 85 28 60 0c sll %g1, 0xc, %g2 200a4ec: 82 00 40 02 add %g1, %g2, %g1 200a4f0: 82 00 40 03 add %g1, %g3, %g1 200a4f4: 83 28 60 04 sll %g1, 4, %g1 200a4f8: 82 20 40 03 sub %g1, %g3, %g1 200a4fc: 83 28 60 02 sll %g1, 2, %g1 200a500: 86 20 c0 01 sub %g3, %g1, %g3 200a504: 94 10 20 54 mov 0x54, %o2 200a508: 96 10 20 00 clr %o3 200a50c: 11 13 10 92 sethi %hi(0x4c424800), %o0 200a510: 98 07 bf f4 add %fp, -12, %o4 200a514: 90 12 21 00 or %o0, 0x100, %o0 200a518: 7f ff eb 27 call 20051b4 200a51c: 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) 200a520: 80 a2 20 00 cmp %o0, 0 200a524: 32 80 00 0d bne,a 200a558 200a528: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 200a52c: f0 04 62 b0 ld [ %l1 + 0x2b0 ], %i0 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200a530: 92 10 20 00 clr %o1 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; 200a534: e0 06 20 28 ld [ %i0 + 0x28 ], %l0 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200a538: 90 10 00 18 mov %i0, %o0 200a53c: 40 00 09 cc call 200cc6c 200a540: 94 10 20 34 mov 0x34, %o2 iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 200a544: c2 07 bf f4 ld [ %fp + -12 ], %g1 rtems_libio_iop_freelist = next; 200a548: e0 24 62 b0 st %l0, [ %l1 + 0x2b0 ] 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; 200a54c: c2 26 20 20 st %g1, [ %i0 + 0x20 ] 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; 200a550: 82 10 21 00 mov 0x100, %g1 200a554: c2 26 20 0c st %g1, [ %i0 + 0xc ] failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 200a558: 03 00 80 59 sethi %hi(0x2016400), %g1 200a55c: 7f ff ec 03 call 2005568 200a560: d0 00 62 b4 ld [ %g1 + 0x2b4 ], %o0 ! 20166b4 return iop; } 200a564: 81 c7 e0 08 ret 200a568: 81 e8 00 00 restore 020020f8 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 20020f8: 9d e3 bf 98 save %sp, -104, %sp rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 20020fc: 21 00 80 56 sethi %hi(0x2015800), %l0 2002100: d0 04 22 28 ld [ %l0 + 0x228 ], %o0 ! 2015a28 2002104: 80 a2 20 00 cmp %o0, 0 2002108: 22 80 00 1d be,a 200217c 200210c: 11 13 10 92 sethi %hi(0x4c424800), %o0 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 2002110: 40 00 1f a1 call 2009f94 2002114: 92 10 20 34 mov 0x34, %o1 2002118: 03 00 80 59 sethi %hi(0x2016400), %g1 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 200211c: 80 a2 20 00 cmp %o0, 0 2002120: 12 80 00 04 bne 2002130 2002124: d0 20 62 ac st %o0, [ %g1 + 0x2ac ] rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 2002128: 10 80 00 1f b 20021a4 <== NOT EXECUTED 200212c: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; 2002130: 03 00 80 59 sethi %hi(0x2016400), %g1 for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 2002134: c4 04 22 28 ld [ %l0 + 0x228 ], %g2 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; 2002138: d0 20 62 b0 st %o0, [ %g1 + 0x2b0 ] for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 200213c: 86 10 20 00 clr %g3 2002140: 10 80 00 03 b 200214c 2002144: 82 10 00 08 mov %o0, %g1 iop->data1 = iop + 1; 2002148: c2 20 7f f4 st %g1, [ %g1 + -12 ] 200214c: 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++) 2002150: 80 a0 c0 02 cmp %g3, %g2 2002154: 12 bf ff fd bne 2002148 2002158: 82 00 60 34 add %g1, 0x34, %g1 iop->data1 = iop + 1; iop->data1 = NULL; 200215c: 85 28 e0 02 sll %g3, 2, %g2 2002160: 83 28 e0 04 sll %g3, 4, %g1 2002164: 82 20 40 02 sub %g1, %g2, %g1 2002168: 82 00 40 03 add %g1, %g3, %g1 200216c: 83 28 60 02 sll %g1, 2, %g1 2002170: 82 02 00 01 add %o0, %g1, %g1 2002174: c0 20 7f f4 clr [ %g1 + -12 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 2002178: 11 13 10 92 sethi %hi(0x4c424800), %o0 200217c: 92 10 20 01 mov 1, %o1 2002180: 90 12 21 4f or %o0, 0x14f, %o0 2002184: 94 10 20 54 mov 0x54, %o2 2002188: 96 10 20 00 clr %o3 200218c: 19 00 80 59 sethi %hi(0x2016400), %o4 2002190: 40 00 0c 09 call 20051b4 2002194: 98 13 22 b4 or %o4, 0x2b4, %o4 ! 20166b4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 2002198: 80 a2 20 00 cmp %o0, 0 200219c: 02 80 00 04 be 20021ac 20021a0: 01 00 00 00 nop rtems_fatal_error_occurred( rc ); 20021a4: 40 00 0e 6a call 2005b4c <== NOT EXECUTED 20021a8: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 20021ac: 40 00 1f 38 call 2009e8c 20021b0: 81 e8 00 00 restore 20021b4: 01 00 00 00 nop 0200a33c : */ int rtems_libio_is_file_open( void *node_access ) { 200a33c: 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 ); 200a340: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a344: d0 00 62 b4 ld [ %g1 + 0x2b4 ], %o0 ! 20166b4 <== NOT EXECUTED 200a348: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a34c: 7f ff ec 40 call 200544c <== NOT EXECUTED 200a350: 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++){ 200a354: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a358: 86 10 20 00 clr %g3 <== NOT EXECUTED 200a35c: c4 00 62 ac ld [ %g1 + 0x2ac ], %g2 <== NOT EXECUTED 200a360: 03 00 80 56 sethi %hi(0x2015800), %g1 <== NOT EXECUTED 200a364: 10 80 00 0c b 200a394 <== NOT EXECUTED 200a368: c8 00 62 28 ld [ %g1 + 0x228 ], %g4 ! 2015a28 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 200a36c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 200a370: 02 80 00 08 be 200a390 <== NOT EXECUTED 200a374: 86 00 e0 01 inc %g3 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 200a378: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 200a37c: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 200a380: 12 80 00 05 bne 200a394 <== NOT EXECUTED 200a384: 84 00 a0 34 add %g2, 0x34, %g2 <== NOT EXECUTED 200a388: 10 80 00 07 b 200a3a4 <== NOT EXECUTED 200a38c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 200a390: 84 00 a0 34 add %g2, 0x34, %g2 <== NOT EXECUTED 200a394: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 200a398: 2a bf ff f5 bcs,a 200a36c <== NOT EXECUTED 200a39c: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED 200a3a0: b0 10 20 00 clr %i0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 200a3a4: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a3a8: 7f ff ec 70 call 2005568 <== NOT EXECUTED 200a3ac: d0 00 62 b4 ld [ %g1 + 0x2b4 ], %o0 ! 20166b4 <== NOT EXECUTED return result; } 200a3b0: 81 c7 e0 08 ret <== NOT EXECUTED 200a3b4: 81 e8 00 00 restore <== NOT EXECUTED 0200a3b8 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 200a3b8: 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 ); 200a3bc: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a3c0: d0 00 62 b4 ld [ %g1 + 0x2b4 ], %o0 ! 20166b4 <== NOT EXECUTED 200a3c4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a3c8: 7f ff ec 21 call 200544c <== NOT EXECUTED 200a3cc: 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++){ 200a3d0: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a3d4: 86 10 20 00 clr %g3 <== NOT EXECUTED 200a3d8: c4 00 62 ac ld [ %g1 + 0x2ac ], %g2 <== NOT EXECUTED 200a3dc: 03 00 80 56 sethi %hi(0x2015800), %g1 <== NOT EXECUTED 200a3e0: 10 80 00 0c b 200a410 <== NOT EXECUTED 200a3e4: c8 00 62 28 ld [ %g1 + 0x228 ], %g4 ! 2015a28 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 200a3e8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 200a3ec: 02 80 00 08 be 200a40c <== NOT EXECUTED 200a3f0: 86 00 e0 01 inc %g3 <== 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 ) { 200a3f4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200a3f8: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 200a3fc: 12 80 00 05 bne 200a410 <== NOT EXECUTED 200a400: 84 00 a0 34 add %g2, 0x34, %g2 <== NOT EXECUTED 200a404: 10 80 00 07 b 200a420 <== NOT EXECUTED 200a408: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 200a40c: 84 00 a0 34 add %g2, 0x34, %g2 <== NOT EXECUTED 200a410: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 200a414: 2a bf ff f5 bcs,a 200a3e8 <== NOT EXECUTED 200a418: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED 200a41c: b0 10 20 00 clr %i0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 200a420: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200a424: 7f ff ec 51 call 2005568 <== NOT EXECUTED 200a428: d0 00 62 b4 ld [ %g1 + 0x2b4 ], %o0 ! 20166b4 <== NOT EXECUTED return result; } 200a42c: 81 c7 e0 08 ret <== NOT EXECUTED 200a430: 81 e8 00 00 restore <== NOT EXECUTED 0201f964 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 201f964: 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); 201f968: 90 10 20 00 clr %o0 <== NOT EXECUTED 201f96c: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f970: 40 00 04 f2 call 2020d38 <== NOT EXECUTED 201f974: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 201f978: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 201f97c: 12 80 00 19 bne 201f9e0 <== NOT EXECUTED 201f980: 23 00 81 15 sethi %hi(0x2045400), %l1 <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 201f984: c4 04 61 9c ld [ %l1 + 0x19c ], %g2 ! 204559c <== NOT EXECUTED 201f988: 03 00 81 68 sethi %hi(0x205a000), %g1 <== NOT EXECUTED 201f98c: 82 10 60 e0 or %g1, 0xe0, %g1 ! 205a0e0 <== NOT EXECUTED 201f990: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 201f994: 12 80 00 16 bne 201f9ec <== NOT EXECUTED 201f998: a4 14 61 9c or %l1, 0x19c, %l2 <== NOT EXECUTED rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 201f99c: 7f ff 94 57 call 2004af8 <== NOT EXECUTED 201f9a0: 90 10 20 40 mov 0x40, %o0 <== NOT EXECUTED if (!tmp) 201f9a4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 201f9a8: 12 80 00 04 bne 201f9b8 <== NOT EXECUTED 201f9ac: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 201f9b0: 81 c7 e0 08 ret <== NOT EXECUTED 201f9b4: 91 e8 20 1a restore %g0, 0x1a, %o0 <== 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); 201f9b8: 90 10 20 00 clr %o0 <== NOT EXECUTED 201f9bc: 15 00 80 7e sethi %hi(0x201f800), %o2 <== NOT EXECUTED 201f9c0: 40 00 05 df call 202113c <== NOT EXECUTED 201f9c4: 94 12 a0 34 or %o2, 0x34, %o2 ! 201f834 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 201f9c8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 201f9cc: 22 80 00 07 be,a 201f9e8 <== NOT EXECUTED 201f9d0: e0 24 61 9c st %l0, [ %l1 + 0x19c ] <== NOT EXECUTED /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 201f9d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201f9d8: 7f ff 92 b6 call 20044b0 <== NOT EXECUTED 201f9dc: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED 201f9e0: 81 c7 e0 08 ret <== NOT EXECUTED 201f9e4: 81 e8 00 00 restore <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 201f9e8: 23 00 81 15 sethi %hi(0x2045400), %l1 <== NOT EXECUTED 201f9ec: d0 04 61 9c ld [ %l1 + 0x19c ], %o0 ! 204559c <== NOT EXECUTED 201f9f0: 94 10 20 40 mov 0x40, %o2 <== NOT EXECUTED 201f9f4: 13 00 81 68 sethi %hi(0x205a000), %o1 <== NOT EXECUTED 201f9f8: 40 00 40 57 call 202fb54 <== NOT EXECUTED 201f9fc: 92 12 60 e0 or %o1, 0xe0, %o1 ! 205a0e0 <== 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; 201fa00: 03 00 81 66 sethi %hi(0x2059800), %g1 <== 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*/ 201fa04: d0 04 61 9c ld [ %l1 + 0x19c ], %o0 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 201fa08: d2 00 63 e8 ld [ %g1 + 0x3e8 ], %o1 <== 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*/ 201fa0c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 201fa10: 92 02 60 18 add %o1, 0x18, %o1 <== 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*/ 201fa14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 201fa18: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201fa1c: 40 00 40 4e call 202fb54 <== NOT EXECUTED 201fa20: 90 02 20 14 add %o0, 0x14, %o0 <== 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); 201fa24: a0 07 bf e4 add %fp, -28, %l0 <== NOT EXECUTED 201fa28: 96 10 20 00 clr %o3 <== NOT EXECUTED 201fa2c: 25 00 80 fe sethi %hi(0x203f800), %l2 <== NOT EXECUTED 201fa30: 92 10 20 00 clr %o1 <== NOT EXECUTED 201fa34: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201fa38: 7f ff 92 4c call 2004368 <== NOT EXECUTED 201fa3c: 90 14 a3 38 or %l2, 0x338, %o0 <== NOT EXECUTED rtems_filesystem_root = loc; 201fa40: d0 04 61 9c ld [ %l1 + 0x19c ], %o0 <== NOT EXECUTED 201fa44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201fa48: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201fa4c: 40 00 40 42 call 202fb54 <== NOT EXECUTED 201fa50: 90 02 20 14 add %o0, 0x14, %o0 <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 201fa54: 92 10 20 00 clr %o1 <== NOT EXECUTED 201fa58: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 201fa5c: 90 14 a3 38 or %l2, 0x338, %o0 <== NOT EXECUTED 201fa60: 7f ff 92 42 call 2004368 <== NOT EXECUTED 201fa64: 96 10 20 00 clr %o3 <== NOT EXECUTED rtems_filesystem_current = loc; 201fa68: d0 04 61 9c ld [ %l1 + 0x19c ], %o0 <== NOT EXECUTED 201fa6c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201fa70: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 201fa74: 40 00 40 38 call 202fb54 <== NOT EXECUTED 201fa78: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 201fa7c: 81 c7 e0 08 ret <== NOT EXECUTED 201fa80: 81 e8 00 00 restore <== NOT EXECUTED 0201f8ac : * 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) { 201f8ac: 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); 201f8b0: 90 10 20 00 clr %o0 <== NOT EXECUTED 201f8b4: 92 10 20 00 clr %o1 <== NOT EXECUTED 201f8b8: 40 00 05 20 call 2020d38 <== NOT EXECUTED 201f8bc: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 201f8c0: 86 92 20 00 orcc %o0, 0, %g3 <== NOT EXECUTED 201f8c4: 12 80 00 26 bne 201f95c <== NOT EXECUTED 201f8c8: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 201f8cc: e0 00 61 9c ld [ %g1 + 0x19c ], %l0 ! 204559c <== NOT EXECUTED 201f8d0: 92 10 61 9c or %g1, 0x19c, %o1 <== NOT EXECUTED 201f8d4: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 201f8d8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201f8dc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 201f8e0: 32 80 00 0a bne,a 201f908 <== NOT EXECUTED 201f8e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 201f8e8: 40 00 06 41 call 20211ec <== NOT EXECUTED 201f8ec: 01 00 00 00 nop <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 201f8f0: 86 92 20 00 orcc %o0, 0, %g3 <== NOT EXECUTED 201f8f4: 12 80 00 1a bne 201f95c <== NOT EXECUTED 201f8f8: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 201f8fc: 7f ff ff ce call 201f834 <== NOT EXECUTED 201f900: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 201f904: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201f908: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 201f90c: 31 00 81 15 sethi %hi(0x2045400), %i0 <== NOT EXECUTED 201f910: a0 16 21 9c or %i0, 0x19c, %l0 ! 204559c <== NOT EXECUTED 201f914: 40 00 06 5b call 2021280 <== NOT EXECUTED 201f918: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 201f91c: 86 92 20 00 orcc %o0, 0, %g3 <== NOT EXECUTED 201f920: 12 80 00 0c bne 201f950 <== NOT EXECUTED 201f924: 03 00 81 68 sethi %hi(0x205a000), %g1 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 201f928: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201f92c: 15 00 80 7e sethi %hi(0x201f800), %o2 <== NOT EXECUTED 201f930: 40 00 06 03 call 202113c <== NOT EXECUTED 201f934: 94 12 a0 34 or %o2, 0x34, %o2 ! 201f834 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 201f938: 86 92 20 00 orcc %o0, 0, %g3 <== NOT EXECUTED 201f93c: 12 80 00 05 bne 201f950 <== NOT EXECUTED 201f940: 03 00 81 68 sethi %hi(0x205a000), %g1 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 201f944: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 201f948: 10 80 00 05 b 201f95c <== NOT EXECUTED 201f94c: c2 26 21 9c st %g1, [ %i0 + 0x19c ] <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 201f950: 05 00 81 15 sethi %hi(0x2045400), %g2 <== NOT EXECUTED 201f954: 82 10 60 e0 or %g1, 0xe0, %g1 <== NOT EXECUTED 201f958: c2 20 a1 9c st %g1, [ %g2 + 0x19c ] <== NOT EXECUTED return sc; } 201f95c: 81 c7 e0 08 ret <== NOT EXECUTED 201f960: 91 e8 00 03 restore %g0, %g3, %o0 <== NOT EXECUTED 0200a2e4 : */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 200a2e4: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 200a2e8: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200a2ec: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200a2f0: 02 80 00 07 be 200a30c <== NOT EXECUTED 200a2f4: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 200a2f8: 83 30 a0 02 srl %g2, 2, %g1 <== NOT EXECUTED 200a2fc: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 200a300: 02 80 00 03 be 200a30c <== NOT EXECUTED 200a304: 90 08 60 01 and %g1, 1, %o0 <== NOT EXECUTED 200a308: 90 10 20 00 clr %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 ) { 200a30c: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200a310: 02 80 00 04 be 200a320 <== NOT EXECUTED 200a314: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 200a318: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED 200a31c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 200a320: 32 80 00 02 bne,a 200a328 <== NOT EXECUTED 200a324: 90 12 20 08 or %o0, 8, %o0 <== NOT EXECUTED fcntl_flags |= O_APPEND; } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 200a328: 80 88 a4 00 btst 0x400, %g2 <== NOT EXECUTED 200a32c: 32 80 00 02 bne,a 200a334 <== NOT EXECUTED 200a330: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED fcntl_flags |= O_CREAT; } return fcntl_flags; } 200a334: 81 c3 e0 08 retl <== NOT EXECUTED 200a338: 01 00 00 00 nop 02004bf4 : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 2004bf4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 2004bf8: 11 00 81 66 sethi %hi(0x2059800), %o0 <== NOT EXECUTED 2004bfc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2004c00: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED 2004c04: 40 00 15 30 call 200a0c4 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2004c08: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2004c0c: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2004c10: 02 80 00 08 be 2004c30 <== NOT EXECUTED 2004c14: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 2004c18: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 2004c1c: 82 10 63 b8 or %g1, 0x3b8, %g1 ! 2059bb8 <== NOT EXECUTED 2004c20: d8 18 60 28 ldd [ %g1 + 0x28 ], %o4 <== NOT EXECUTED 2004c24: 86 83 40 02 addcc %o5, %g2, %g3 <== NOT EXECUTED 2004c28: 84 43 20 00 addx %o4, 0, %g2 <== NOT EXECUTED 2004c2c: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 2004c30: 81 c7 e0 08 ret <== NOT EXECUTED 2004c34: 81 e8 00 00 restore <== NOT EXECUTED 02004c38 : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 2004c38: 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 ) 2004c3c: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 2004c40: 02 80 00 13 be 2004c8c <== NOT EXECUTED 2004c44: 11 00 81 66 sethi %hi(0x2059800), %o0 <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 2004c48: 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); 2004c4c: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 2004c50: 40 00 15 1d call 200a0c4 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2004c54: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 2004c58: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED 2004c5c: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 2004c60: 96 10 63 b8 or %g1, 0x3b8, %o3 <== NOT EXECUTED 2004c64: d8 1a e0 20 ldd [ %o3 + 0x20 ], %o4 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 2004c68: c2 02 e0 2c ld [ %o3 + 0x2c ], %g1 <== NOT EXECUTED if (current_depth > s->max_depth) 2004c6c: 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); 2004c70: 86 83 40 02 addcc %o5, %g2, %g3 <== NOT EXECUTED 2004c74: 84 43 20 00 addx %o4, 0, %g2 <== NOT EXECUTED 2004c78: c4 3a e0 20 std %g2, [ %o3 + 0x20 ] <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 2004c7c: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED if (current_depth > s->max_depth) 2004c80: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 2004c84: 38 80 00 02 bgu,a 2004c8c <== NOT EXECUTED 2004c88: c6 22 e0 18 st %g3, [ %o3 + 0x18 ] <== NOT EXECUTED 2004c8c: 81 c7 e0 08 ret <== NOT EXECUTED 2004c90: 81 e8 00 00 restore <== NOT EXECUTED 02004c94 : void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 2004c94: 11 00 81 66 sethi %hi(0x2059800), %o0 <== NOT EXECUTED 2004c98: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004c9c: 90 12 23 b8 or %o0, 0x3b8, %o0 <== NOT EXECUTED 2004ca0: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED 2004ca4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2004ca8: 40 00 ac 33 call 202fd74 <== NOT EXECUTED 2004cac: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2004cb0: 01 00 00 00 nop 02004b30 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 2004b30: 9d e3 bf 98 save %sp, -104, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 2004b34: a0 96 20 00 orcc %i0, 0, %l0 2004b38: 02 80 00 1f be 2004bb4 2004b3c: 03 00 80 71 sethi %hi(0x201c400), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 2004b40: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 201c4f4 <_System_state_Current> 2004b44: 80 a0 60 03 cmp %g1, 3 2004b48: 12 80 00 07 bne 2004b64 2004b4c: c0 24 00 00 clr [ %l0 ] 2004b50: 7f ff fb cf call 2003a8c 2004b54: 01 00 00 00 nop 2004b58: 80 8a 20 ff btst 0xff, %o0 2004b5c: 02 80 00 17 be 2004bb8 2004b60: b0 10 20 16 mov 0x16, %i0 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 2004b64: 7f ff fb e4 call 2003af4 2004b68: b0 10 20 0c mov 0xc, %i0 /* * Perform the aligned allocation requested */ return_this = _Protected_heap_Allocate_aligned( 2004b6c: 92 10 00 1a mov %i2, %o1 2004b70: 94 10 00 19 mov %i1, %o2 2004b74: 11 00 80 70 sethi %hi(0x201c000), %o0 2004b78: 40 00 13 10 call 20097b8 <_Protected_heap_Allocate_aligned> 2004b7c: 90 12 21 80 or %o0, 0x180, %o0 ! 201c180 &RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 2004b80: b4 92 20 00 orcc %o0, 0, %i2 2004b84: 02 80 00 0d be 2004bb8 2004b88: 03 00 80 6e sethi %hi(0x201b800), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 2004b8c: c2 00 62 74 ld [ %g1 + 0x274 ], %g1 ! 201ba74 2004b90: 80 a0 60 00 cmp %g1, 0 2004b94: 22 80 00 06 be,a 2004bac 2004b98: f4 24 00 00 st %i2, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 2004b9c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2004ba0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004ba4: 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; 2004ba8: f4 24 00 00 st %i2, [ %l0 ] <== NOT EXECUTED 2004bac: 81 c7 e0 08 ret 2004bb0: 91 e8 20 00 restore %g0, 0, %o0 return 0; 2004bb4: b0 10 20 16 mov 0x16, %i0 } 2004bb8: 81 c7 e0 08 ret 2004bbc: 81 e8 00 00 restore 0200642c : void rtems_panic( const char *printf_format, ... ) { 200642c: 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); 2006430: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 2006434: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 2006438: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 200643c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2006440: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2006444: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2006448: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 200644c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2006450: 7f ff ff 88 call 2006270 <== NOT EXECUTED 2006454: d4 27 bf f4 st %o2, [ %fp + -12 ] <== NOT EXECUTED va_end(arglist); } 2006458: 81 c7 e0 08 ret <== NOT EXECUTED 200645c: 81 e8 00 00 restore <== NOT EXECUTED 0200ea34 : void *internal_start, void *external_start, uint32_t length, Objects_Id *id ) { 200ea34: 9d e3 bf 98 save %sp, -104, %sp register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name) ) 200ea38: a2 96 20 00 orcc %i0, 0, %l1 200ea3c: 02 80 00 14 be 200ea8c 200ea40: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 200ea44: 80 a7 20 00 cmp %i4, 0 200ea48: 02 80 00 24 be 200ead8 200ea4c: 82 16 80 19 or %i2, %i1, %g1 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 200ea50: 80 88 60 07 btst 7, %g1 200ea54: 12 80 00 0e bne 200ea8c 200ea58: b0 10 20 09 mov 9, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200ea5c: 05 00 80 c1 sethi %hi(0x2030400), %g2 200ea60: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 ! 2030420 <_Thread_Dispatch_disable_level> 200ea64: 82 00 60 01 inc %g1 200ea68: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] * of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) 200ea6c: 21 00 80 c0 sethi %hi(0x2030000), %l0 200ea70: 40 00 13 b9 call 2013954 <_Objects_Allocate> 200ea74: 90 14 21 94 or %l0, 0x194, %o0 ! 2030194 <_Dual_ported_memory_Information> _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 200ea78: 80 a2 20 00 cmp %o0, 0 200ea7c: 32 80 00 06 bne,a 200ea94 200ea80: c4 02 20 08 ld [ %o0 + 8 ], %g2 _Thread_Enable_dispatch(); 200ea84: 40 00 17 8e call 20148bc <_Thread_Enable_dispatch> 200ea88: b0 10 20 05 mov 5, %i0 200ea8c: 81 c7 e0 08 ret 200ea90: 81 e8 00 00 restore #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 200ea94: 82 14 21 94 or %l0, 0x194, %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 200ea98: e2 22 20 0c st %l1, [ %o0 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 200ea9c: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; 200eaa0: 82 06 ff ff add %i3, -1, %g1 200eaa4: c2 22 20 18 st %g1, [ %o0 + 0x18 ] &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 200eaa8: c4 27 00 00 st %g2, [ %i4 ] 200eaac: 03 00 00 3f sethi %hi(0xfc00), %g1 200eab0: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 200eab4: 84 08 80 01 and %g2, %g1, %g2 200eab8: 85 28 a0 02 sll %g2, 2, %g2 if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 200eabc: f2 22 20 10 st %i1, [ %o0 + 0x10 ] the_port->external_base = external_start; 200eac0: f4 22 20 14 st %i2, [ %o0 + 0x14 ] 200eac4: d0 20 c0 02 st %o0, [ %g3 + %g2 ] &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); 200eac8: 40 00 17 7d call 20148bc <_Thread_Enable_dispatch> 200eacc: b0 10 20 00 clr %i0 200ead0: 81 c7 e0 08 ret 200ead4: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; 200ead8: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED } 200eadc: 81 c7 e0 08 ret <== NOT EXECUTED 200eae0: 81 e8 00 00 restore <== NOT EXECUTED 02006644 : rtems_status_code rtems_rate_monotonic_period( Objects_Id id, rtems_interval length ) { 2006644: 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 *) 2006648: 11 00 80 6c sethi %hi(0x201b000), %o0 200664c: 92 10 00 18 mov %i0, %o1 2006650: 90 12 21 e4 or %o0, 0x1e4, %o0 2006654: 40 00 08 bd call 2008948 <_Objects_Get> 2006658: 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 ) { 200665c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2006660: 80 a0 60 00 cmp %g1, 0 2006664: 12 80 00 64 bne 20067f4 2006668: a2 10 00 08 mov %o0, %l1 case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 200666c: 27 00 80 6d sethi %hi(0x201b400), %l3 2006670: c4 02 20 50 ld [ %o0 + 0x50 ], %g2 2006674: c2 04 e0 24 ld [ %l3 + 0x24 ], %g1 2006678: 80 a0 80 01 cmp %g2, %g1 200667c: 02 80 00 06 be 2006694 2006680: 80 a6 60 00 cmp %i1, 0 _Thread_Enable_dispatch(); 2006684: 40 00 0b 1f call 2009300 <_Thread_Enable_dispatch> 2006688: b0 10 20 17 mov 0x17, %i0 200668c: 81 c7 e0 08 ret 2006690: 81 e8 00 00 restore return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 2006694: 12 80 00 0c bne 20066c4 2006698: 01 00 00 00 nop switch ( the_period->state ) { 200669c: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 20066a0: 80 a0 60 00 cmp %g1, 0 20066a4: 02 80 00 50 be 20067e4 20066a8: b0 10 20 0b mov 0xb, %i0 20066ac: 82 00 7f fd add %g1, -3, %g1 20066b0: 80 a0 60 01 cmp %g1, 1 20066b4: 18 80 00 4c bgu 20067e4 20066b8: b0 10 20 00 clr %i0 the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 20066bc: 10 80 00 4a b 20067e4 20066c0: b0 10 20 06 mov 6, %i0 } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 20066c4: 7f ff f1 59 call 2002c28 20066c8: 01 00 00 00 nop 20066cc: a0 10 00 08 mov %o0, %l0 switch ( the_period->state ) { 20066d0: e4 04 60 38 ld [ %l1 + 0x38 ], %l2 20066d4: 80 a4 a0 02 cmp %l2, 2 20066d8: 02 80 00 1a be 2006740 20066dc: 80 a4 a0 04 cmp %l2, 4 20066e0: 02 80 00 34 be 20067b0 20066e4: 80 a4 a0 00 cmp %l2, 0 20066e8: 12 80 00 43 bne 20067f4 20066ec: 01 00 00 00 nop case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 20066f0: 7f ff f1 52 call 2002c38 20066f4: 01 00 00 00 nop /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 20066f8: 7f ff ff 5e call 2006470 <_Rate_monotonic_Initiate_statistics> 20066fc: 90 10 00 11 mov %l1, %o0 the_period->state = RATE_MONOTONIC_ACTIVE; 2006700: 82 10 20 02 mov 2, %g1 2006704: c2 24 60 38 st %g1, [ %l1 + 0x38 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2006708: 03 00 80 1a sethi %hi(0x2006800), %g1 200670c: 82 10 62 c8 or %g1, 0x2c8, %g1 ! 2006ac8 <_Rate_monotonic_Timeout> the_watchdog->id = id; 2006710: f0 24 60 30 st %i0, [ %l1 + 0x30 ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006714: 92 04 60 10 add %l1, 0x10, %o1 2006718: 11 00 80 6d sethi %hi(0x201b400), %o0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 200671c: f2 24 60 1c st %i1, [ %l1 + 0x1c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006720: 90 12 20 44 or %o0, 0x44, %o0 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2006724: c0 24 60 18 clr [ %l1 + 0x18 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 2006728: c0 24 60 34 clr [ %l1 + 0x34 ] _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 200672c: f2 24 60 4c st %i1, [ %l1 + 0x4c ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 2006730: c2 24 60 2c st %g1, [ %l1 + 0x2c ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2006734: 40 00 10 4c call 200a864 <_Watchdog_Insert> 2006738: b0 10 20 00 clr %i0 200673c: 30 80 00 2a b,a 20067e4 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 2006740: 7f ff ff 68 call 20064e0 <_Rate_monotonic_Update_statistics> 2006744: 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; 2006748: 82 10 20 01 mov 1, %g1 the_period->next_length = length; 200674c: 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; 2006750: c2 24 60 38 st %g1, [ %l1 + 0x38 ] the_period->next_length = length; _ISR_Enable( level ); 2006754: 7f ff f1 39 call 2002c38 2006758: 90 10 00 10 mov %l0, %o0 _Thread_Executing->Wait.id = the_period->Object.id; 200675c: c2 04 e0 24 ld [ %l3 + 0x24 ], %g1 2006760: c4 04 60 08 ld [ %l1 + 8 ], %g2 _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 2006764: 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; 2006768: c4 20 60 20 st %g2, [ %g1 + 0x20 ] _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 200676c: 40 00 0d 6f call 2009d28 <_Thread_Set_state> 2006770: 13 00 00 10 sethi %hi(0x4000), %o1 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 2006774: 7f ff f1 2d call 2002c28 2006778: 01 00 00 00 nop local_state = the_period->state; 200677c: e0 04 60 38 ld [ %l1 + 0x38 ], %l0 the_period->state = RATE_MONOTONIC_ACTIVE; 2006780: e4 24 60 38 st %l2, [ %l1 + 0x38 ] _ISR_Enable( level ); 2006784: 7f ff f1 2d call 2002c38 2006788: 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 ) 200678c: 80 a4 20 03 cmp %l0, 3 2006790: 12 80 00 04 bne 20067a0 2006794: d0 04 e0 24 ld [ %l3 + 0x24 ], %o0 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 2006798: 40 00 09 c4 call 2008ea8 <_Thread_Clear_state> <== NOT EXECUTED 200679c: 13 00 00 10 sethi %hi(0x4000), %o1 <== NOT EXECUTED _Thread_Enable_dispatch(); 20067a0: 40 00 0a d8 call 2009300 <_Thread_Enable_dispatch> 20067a4: b0 10 20 00 clr %i0 20067a8: 81 c7 e0 08 ret 20067ac: 81 e8 00 00 restore case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 20067b0: 7f ff ff 4c call 20064e0 <_Rate_monotonic_Update_statistics> 20067b4: 90 10 00 11 mov %l1, %o0 _ISR_Enable( level ); 20067b8: 7f ff f1 20 call 2002c38 20067bc: 90 10 00 10 mov %l0, %o0 the_period->state = RATE_MONOTONIC_ACTIVE; 20067c0: 82 10 20 02 mov 2, %g1 20067c4: 11 00 80 6d sethi %hi(0x201b400), %o0 20067c8: 92 04 60 10 add %l1, 0x10, %o1 20067cc: 90 12 20 44 or %o0, 0x44, %o0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 20067d0: f2 24 60 1c st %i1, [ %l1 + 0x1c ] the_period->next_length = length; 20067d4: f2 24 60 4c st %i1, [ %l1 + 0x4c ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 20067d8: 40 00 10 23 call 200a864 <_Watchdog_Insert> 20067dc: c2 24 60 38 st %g1, [ %l1 + 0x38 ] _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 20067e0: b0 10 20 06 mov 6, %i0 20067e4: 40 00 0a c7 call 2009300 <_Thread_Enable_dispatch> 20067e8: 01 00 00 00 nop 20067ec: 81 c7 e0 08 ret 20067f0: 81 e8 00 00 restore case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 20067f4: 81 c7 e0 08 ret 20067f8: 91 e8 20 04 restore %g0, 4, %o0 0200ffdc : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 200ffdc: 9d e3 bf 90 save %sp, -112, %sp 200ffe0: 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 ) 200ffe4: 80 a6 60 00 cmp %i1, 0 200ffe8: 02 80 00 2c be 2010098 200ffec: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 200fff0: 03 00 80 c1 sethi %hi(0x2030400), %g1 200fff4: 40 00 08 f4 call 20123c4 <_API_Mutex_Lock> 200fff8: d0 00 60 dc ld [ %g1 + 0xdc ], %o0 ! 20304dc <_RTEMS_Allocator_Mutex> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 200fffc: 92 10 00 10 mov %l0, %o1 2010000: 11 00 80 c0 sethi %hi(0x2030000), %o0 2010004: 94 07 bf f0 add %fp, -16, %o2 2010008: 40 00 0f ad call 2013ebc <_Objects_Get_no_protection> 201000c: 90 12 22 54 or %o0, 0x254, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 2010010: c2 07 bf f0 ld [ %fp + -16 ], %g1 2010014: 80 a0 60 00 cmp %g1, 0 2010018: 02 80 00 05 be 201002c 201001c: a0 10 00 08 mov %o0, %l0 2010020: 80 a0 60 01 cmp %g1, 1 2010024: 10 80 00 0f b 2010060 2010028: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: heap_status = _Heap_Extend( 201002c: 92 10 00 19 mov %i1, %o1 2010030: 94 10 00 1a mov %i2, %o2 2010034: 90 02 20 68 add %o0, 0x68, %o0 2010038: 96 07 bf f4 add %fp, -12, %o3 201003c: 40 00 0b e3 call 2012fc8 <_Heap_Extend> 2010040: b0 10 20 09 mov 9, %i0 starting_address, length, &amount_extended ); switch ( heap_status ) { 2010044: 80 a2 20 01 cmp %o0, 1 2010048: 02 80 00 12 be 2010090 201004c: 03 00 80 c1 sethi %hi(0x2030400), %g1 2010050: 0a 80 00 08 bcs 2010070 2010054: c6 07 bf f4 ld [ %fp + -12 ], %g3 2010058: 80 a2 20 02 cmp %o0, 2 case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 201005c: b0 10 20 18 mov 0x18, %i0 starting_address, length, &amount_extended ); switch ( heap_status ) { 2010060: 32 80 00 0b bne,a 201008c 2010064: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 2010068: 10 80 00 0a b 2010090 201006c: 03 00 80 c1 sethi %hi(0x2030400), %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 2010070: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 the_region->maximum_segment_size += amount_extended; 2010074: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 2010078: 84 00 80 03 add %g2, %g3, %g2 the_region->maximum_segment_size += amount_extended; 201007c: 82 00 40 03 add %g1, %g3, %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 2010080: c4 24 20 54 st %g2, [ %l0 + 0x54 ] the_region->maximum_segment_size += amount_extended; 2010084: c2 24 20 5c st %g1, [ %l0 + 0x5c ] 2010088: b0 10 20 00 clr %i0 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 201008c: 03 00 80 c1 sethi %hi(0x2030400), %g1 2010090: 40 00 08 e3 call 201241c <_API_Mutex_Unlock> 2010094: d0 00 60 dc ld [ %g1 + 0xdc ], %o0 ! 20304dc <_RTEMS_Allocator_Mutex> return return_status; } 2010098: 81 c7 e0 08 ret 201009c: 81 e8 00 00 restore 020103a4 : Objects_Id id, void *segment, size_t size, size_t *old_size ) { 20103a4: 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 ) 20103a8: 80 a6 e0 00 cmp %i3, 0 20103ac: 02 80 00 32 be 2010474 20103b0: 21 00 80 c1 sethi %hi(0x2030400), %l0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 20103b4: 40 00 08 04 call 20123c4 <_API_Mutex_Lock> 20103b8: d0 04 20 dc ld [ %l0 + 0xdc ], %o0 ! 20304dc <_RTEMS_Allocator_Mutex> 20103bc: 92 10 00 18 mov %i0, %o1 20103c0: 11 00 80 c0 sethi %hi(0x2030000), %o0 20103c4: 94 07 bf f0 add %fp, -16, %o2 20103c8: 40 00 0e bd call 2013ebc <_Objects_Get_no_protection> 20103cc: 90 12 22 54 or %o0, 0x254, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 20103d0: c2 07 bf f0 ld [ %fp + -16 ], %g1 20103d4: 80 a0 60 00 cmp %g1, 0 20103d8: 02 80 00 0b be 2010404 20103dc: b0 10 00 08 mov %o0, %i0 20103e0: 82 18 60 01 xor %g1, 1, %g1 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 20103e4: d0 04 20 dc ld [ %l0 + 0xdc ], %o0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 20103e8: 80 a0 00 01 cmp %g0, %g1 20103ec: 82 40 3f ff addx %g0, -1, %g1 20103f0: b0 08 7f eb and %g1, -21, %i0 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 20103f4: 40 00 08 0a call 201241c <_API_Mutex_Unlock> 20103f8: b0 06 20 19 add %i0, 0x19, %i0 20103fc: 81 c7 e0 08 ret 2010400: 81 e8 00 00 restore case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 2010404: 94 10 00 1a mov %i2, %o2 2010408: 92 10 00 19 mov %i1, %o1 201040c: 90 02 20 68 add %o0, 0x68, %o0 2010410: 96 07 bf ec add %fp, -20, %o3 2010414: 40 00 0c 6d call 20135c8 <_Heap_Resize_block> 2010418: 98 07 bf f4 add %fp, -12, %o4 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 201041c: c2 07 bf ec ld [ %fp + -20 ], %g1 _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 2010420: b4 92 20 00 orcc %o0, 0, %i2 2010424: 12 80 00 0b bne 2010450 2010428: c2 26 c0 00 st %g1, [ %i3 ] 201042c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2010430: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2010434: 02 80 00 08 be 2010454 <== NOT EXECUTED 2010438: 03 00 80 c1 sethi %hi(0x2030400), %g1 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ 201043c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2010440: 40 00 1f f6 call 2018418 <_Region_Process_queue> <== NOT EXECUTED 2010444: b0 10 20 00 clr %i0 <== NOT EXECUTED 2010448: 81 c7 e0 08 ret <== NOT EXECUTED 201044c: 81 e8 00 00 restore <== NOT EXECUTED else _RTEMS_Unlock_allocator(); 2010450: 03 00 80 c1 sethi %hi(0x2030400), %g1 2010454: d0 00 60 dc ld [ %g1 + 0xdc ], %o0 ! 20304dc <_RTEMS_Allocator_Mutex> 2010458: 40 00 07 f1 call 201241c <_API_Mutex_Unlock> 201045c: b0 10 20 00 clr %i0 return 2010460: 80 a6 a0 00 cmp %i2, 0 2010464: 02 bf ff e6 be 20103fc 2010468: 80 a6 a0 01 cmp %i2, 1 201046c: 02 bf ff e4 be 20103fc 2010470: b0 10 20 0d mov 0xd, %i0 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 2010474: b0 10 20 09 mov 9, %i0 } 2010478: 81 c7 e0 08 ret 201047c: 81 e8 00 00 restore 020051b4 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 20051b4: 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 ) ) 20051b8: a4 96 20 00 orcc %i0, 0, %l2 20051bc: 02 80 00 23 be 2005248 20051c0: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 20051c4: 80 a7 20 00 cmp %i4, 0 20051c8: 02 80 00 20 be 2005248 20051cc: b0 10 20 09 mov 9, %i0 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 20051d0: 84 8e a0 c0 andcc %i2, 0xc0, %g2 20051d4: 02 80 00 0d be 2005208 20051d8: a2 8e a0 30 andcc %i2, 0x30, %l1 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 20051dc: 82 0e a0 30 and %i2, 0x30, %g1 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 20051e0: 80 a0 60 10 cmp %g1, 0x10 20051e4: 02 80 00 04 be 20051f4 20051e8: 80 a0 60 20 cmp %g1, 0x20 20051ec: 32 80 00 17 bne,a 2005248 20051f0: b0 10 20 0b mov 0xb, %i0 20051f4: 80 8e a0 04 btst 4, %i2 20051f8: 02 80 00 64 be 2005388 20051fc: 80 a0 a0 c0 cmp %g2, 0xc0 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 2005200: 02 80 00 62 be 2005388 2005204: a2 8e a0 30 andcc %i2, 0x30, %l1 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 2005208: 02 80 00 04 be 2005218 200520c: 80 a6 60 01 cmp %i1, 1 2005210: 18 80 00 0e bgu 2005248 2005214: b0 10 20 0a mov 0xa, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2005218: 03 00 80 5a sethi %hi(0x2016800), %g1 200521c: c4 00 60 80 ld [ %g1 + 0x80 ], %g2 ! 2016880 <_Thread_Dispatch_disable_level> 2005220: 84 00 a0 01 inc %g2 2005224: c4 20 60 80 st %g2, [ %g1 + 0x80 ] * 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 ); 2005228: 11 00 80 59 sethi %hi(0x2016400), %o0 200522c: 40 00 05 30 call 20066ec <_Objects_Allocate> 2005230: 90 12 23 4c or %o0, 0x34c, %o0 ! 201674c <_Semaphore_Information> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 2005234: a0 92 20 00 orcc %o0, 0, %l0 2005238: 12 80 00 06 bne 2005250 200523c: 80 a4 60 00 cmp %l1, 0 _Thread_Enable_dispatch(); 2005240: 40 00 08 f3 call 200760c <_Thread_Enable_dispatch> 2005244: b0 10 20 05 mov 5, %i0 2005248: 81 c7 e0 08 ret 200524c: 81 e8 00 00 restore * 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 ) ) { 2005250: 02 80 00 33 be 200531c 2005254: f4 24 20 10 st %i2, [ %l0 + 0x10 ] CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 2005258: 80 8e a0 40 btst 0x40, %i2 200525c: 12 80 00 06 bne 2005274 2005260: 82 10 20 02 mov 2, %g1 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 2005264: 80 8e a0 80 btst 0x80, %i2 2005268: 02 80 00 05 be 200527c 200526c: 80 8e a0 04 btst 4, %i2 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 2005270: 82 10 20 03 mov 3, %g1 2005274: 10 80 00 05 b 2005288 2005278: c2 27 bf e8 st %g1, [ %fp + -24 ] else if ( _Attributes_Is_priority( attribute_set ) ) 200527c: 12 bf ff fe bne 2005274 2005280: 82 10 20 01 mov 1, %g1 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; 2005284: c0 27 bf e8 clr [ %fp + -24 ] if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 2005288: 80 a4 60 10 cmp %l1, 0x10 200528c: 12 80 00 0f bne 20052c8 2005290: 82 10 20 02 mov 2, %g1 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 2005294: c2 07 bf e8 ld [ %fp + -24 ], %g1 2005298: 80 a0 60 01 cmp %g1, 1 200529c: 08 80 00 07 bleu 20052b8 20052a0: c0 27 bf e0 clr [ %fp + -32 ] 20052a4: 80 a0 60 03 cmp %g1, 3 20052a8: 38 80 00 0b bgu,a 20052d4 20052ac: 82 1e 60 01 xor %i1, 1, %g1 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; 20052b0: 10 80 00 04 b 20052c0 20052b4: 82 10 20 01 mov 1, %g1 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; 20052b8: 10 80 00 06 b 20052d0 20052bc: c0 2f bf e4 clrb [ %fp + -28 ] break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; 20052c0: 10 80 00 04 b 20052d0 20052c4: c2 2f bf e4 stb %g1, [ %fp + -28 ] break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; 20052c8: 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; 20052cc: 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( 20052d0: 82 1e 60 01 xor %i1, 1, %g1 20052d4: 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; 20052d8: f6 27 bf ec st %i3, [ %fp + -20 ] mutex_status = _CORE_mutex_Initialize( 20052dc: 94 60 3f ff subx %g0, -1, %o2 20052e0: 90 04 20 14 add %l0, 0x14, %o0 20052e4: 40 00 03 03 call 2005ef0 <_CORE_mutex_Initialize> 20052e8: 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 ) { 20052ec: 80 a2 20 06 cmp %o0, 6 20052f0: 32 80 00 19 bne,a 2005354 20052f4: c4 04 20 08 ld [ %l0 + 8 ], %g2 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 20052f8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20052fc: 11 00 80 59 sethi %hi(0x2016400), %o0 <== NOT EXECUTED 2005300: 90 12 23 4c or %o0, 0x34c, %o0 ! 201674c <_Semaphore_Information> <== NOT EXECUTED 2005304: 40 00 05 e7 call 2006aa0 <_Objects_Free> <== NOT EXECUTED 2005308: b0 10 20 13 mov 0x13, %i0 <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 200530c: 40 00 08 c0 call 200760c <_Thread_Enable_dispatch> <== NOT EXECUTED 2005310: 01 00 00 00 nop <== NOT EXECUTED 2005314: 81 c7 e0 08 ret <== NOT EXECUTED 2005318: 81 e8 00 00 restore <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 200531c: 80 8e a0 04 btst 4, %i2 2005320: 22 80 00 04 be,a 2005330 2005324: c0 27 bf f4 clr [ %fp + -12 ] the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 2005328: 82 10 20 01 mov 1, %g1 200532c: c2 27 bf f4 st %g1, [ %fp + -12 ] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 2005330: 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; 2005334: c0 27 bf e0 clr [ %fp + -32 ] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; 2005338: c0 27 bf ec clr [ %fp + -20 ] _CORE_semaphore_Initialize( 200533c: 94 10 00 19 mov %i1, %o2 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 2005340: 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( 2005344: 90 04 20 14 add %l0, 0x14, %o0 2005348: 40 00 03 c1 call 200624c <_CORE_semaphore_Initialize> 200534c: 92 07 bf f0 add %fp, -16, %o1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2005350: c4 04 20 08 ld [ %l0 + 8 ], %g2 2005354: 03 00 80 59 sethi %hi(0x2016400), %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 2005358: e4 24 20 0c st %l2, [ %l0 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 200535c: c6 00 63 68 ld [ %g1 + 0x368 ], %g3 &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 2005360: c4 27 00 00 st %g2, [ %i4 ] 2005364: 03 00 00 3f sethi %hi(0xfc00), %g1 2005368: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 200536c: 84 08 80 01 and %g2, %g1, %g2 2005370: 85 28 a0 02 sll %g2, 2, %g2 the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 2005374: b0 10 20 00 clr %i0 2005378: 40 00 08 a5 call 200760c <_Thread_Enable_dispatch> 200537c: e0 20 c0 02 st %l0, [ %g3 + %g2 ] 2005380: 81 c7 e0 08 ret 2005384: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; 2005388: b0 10 20 0b mov 0xb, %i0 } 200538c: 81 c7 e0 08 ret 2005390: 81 e8 00 00 restore 02020c98 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 2020c98: 9d e3 bf 90 save %sp, -112, %sp 2020c9c: 11 00 81 67 sethi %hi(0x2059c00), %o0 2020ca0: 92 10 00 18 mov %i0, %o1 2020ca4: 90 12 20 00 mov %o0, %o0 2020ca8: 7f ff a4 51 call 2009dec <_Objects_Get> 2020cac: 94 07 bf f4 add %fp, -12, %o2 register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 2020cb0: c2 07 bf f4 ld [ %fp + -12 ], %g1 2020cb4: 80 a0 60 00 cmp %g1, 0 2020cb8: 12 80 00 0f bne 2020cf4 2020cbc: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 2020cc0: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 2020cc4: 80 88 60 30 btst 0x30, %g1 2020cc8: 02 80 00 06 be 2020ce0 2020ccc: 90 02 20 14 add %o0, 0x14, %o0 _CORE_mutex_Flush( 2020cd0: 92 10 20 00 clr %o1 2020cd4: 7f ff a0 82 call 2008edc <_CORE_mutex_Flush> 2020cd8: 94 10 20 01 mov 1, %o2 2020cdc: 30 80 00 04 b,a 2020cec &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 2020ce0: 92 10 20 00 clr %o1 <== NOT EXECUTED 2020ce4: 7f ff a1 55 call 2009238 <_CORE_semaphore_Flush> <== NOT EXECUTED 2020ce8: 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(); 2020cec: 7f ff a6 b2 call 200a7b4 <_Thread_Enable_dispatch> 2020cf0: b0 10 20 00 clr %i0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2020cf4: 81 c7 e0 08 ret 2020cf8: 81 e8 00 00 restore 02014008 : */ void rtems_shutdown_executive( uint32_t result ) { 2014008: 9d e3 bf 10 save %sp, -240, %sp if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 201400c: 05 00 80 5a sethi %hi(0x2016800), %g2 2014010: c2 00 a2 24 ld [ %g2 + 0x224 ], %g1 ! 2016a24 <_System_state_Current> 2014014: 80 a0 60 04 cmp %g1, 4 2014018: 02 80 00 07 be 2014034 201401c: 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 ); 2014020: 13 00 80 59 sethi %hi(0x2016400), %o1 2014024: c2 20 a2 24 st %g1, [ %g2 + 0x224 ] 2014028: 92 12 63 f8 or %o1, 0x3f8, %o1 201402c: 7f ff d3 11 call 2008c70 <_CPU_Context_switch> 2014030: 90 07 bf 70 add %fp, -144, %o0 2014034: 81 c7 e0 08 ret <== NOT EXECUTED 2014038: 81 e8 00 00 restore <== NOT EXECUTED 02002f38 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2002f38: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2002f3c: 03 00 81 67 sethi %hi(0x2059c00), %g1 <== NOT EXECUTED 2002f40: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 2059df4 <_Thread_Executing> <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2002f44: d0 00 60 c8 ld [ %g1 + 0xc8 ], %o0 <== NOT EXECUTED 2002f48: 80 a7 80 08 cmp %fp, %o0 <== NOT EXECUTED 2002f4c: 0a 80 00 07 bcs 2002f68 <== NOT EXECUTED 2002f50: b0 10 20 00 clr %i0 <== NOT EXECUTED 2002f54: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 <== NOT EXECUTED 2002f58: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED 2002f5c: 80 a0 40 1e cmp %g1, %fp <== NOT EXECUTED 2002f60: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED 2002f64: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 2002f68: 03 00 81 1a sethi %hi(0x2046800), %g1 <== NOT EXECUTED 2002f6c: c2 00 62 00 ld [ %g1 + 0x200 ], %g1 ! 2046a00 <== NOT EXECUTED 2002f70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002f74: 02 80 00 0a be 2002f9c <== NOT EXECUTED 2002f78: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED pattern_ok = (!memcmp( 2002f7c: 90 02 20 08 add %o0, 8, %o0 <== NOT EXECUTED 2002f80: 13 00 81 66 sethi %hi(0x2059800), %o1 <== NOT EXECUTED 2002f84: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2002f88: 40 00 b2 c5 call 202fa9c <== NOT EXECUTED 2002f8c: 92 12 63 2c or %o1, 0x32c, %o1 <== NOT EXECUTED 2002f90: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 2002f94: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED 2002f98: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 2002f9c: 80 8e 20 ff btst 0xff, %i0 <== NOT EXECUTED 2002fa0: 02 80 00 04 be 2002fb0 <== NOT EXECUTED 2002fa4: 80 8a 60 ff btst 0xff, %o1 <== NOT EXECUTED 2002fa8: 12 80 00 07 bne 2002fc4 <== NOT EXECUTED 2002fac: 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 ); 2002fb0: 03 00 81 67 sethi %hi(0x2059c00), %g1 <== NOT EXECUTED 2002fb4: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 ! 2059df4 <_Thread_Executing> <== NOT EXECUTED 2002fb8: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED 2002fbc: 7f ff ff c6 call 2002ed4 <== NOT EXECUTED 2002fc0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 2002fc4: 81 c7 e0 08 ret <== NOT EXECUTED 2002fc8: 81 e8 00 00 restore <== NOT EXECUTED 02002eb8 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 2002eb8: 13 00 80 16 sethi %hi(0x2005800), %o1 <== NOT EXECUTED 2002ebc: 90 10 20 00 clr %o0 <== NOT EXECUTED 2002ec0: 92 12 62 28 or %o1, 0x228, %o1 <== NOT EXECUTED 2002ec4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002ec8: 7f ff ff e6 call 2002e60 <== NOT EXECUTED 2002ecc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2002ed0: 01 00 00 00 nop 02002e60 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002e60: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED print_context = context; 2002e64: 23 00 81 1a sethi %hi(0x2046800), %l1 <== NOT EXECUTED print_handler = print; 2002e68: 21 00 81 1a sethi %hi(0x2046800), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 2002e6c: f0 24 62 04 st %i0, [ %l1 + 0x204 ] <== NOT EXECUTED print_handler = print; 2002e70: f2 24 22 08 st %i1, [ %l0 + 0x208 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 2002e74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2002e78: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002e7c: 9f c6 40 00 call %i1 <== NOT EXECUTED 2002e80: 92 12 60 88 or %o1, 0x88, %o1 ! 203f488 <== NOT EXECUTED (*print)( context, 2002e84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2002e88: 13 00 80 fd sethi %hi(0x203f400), %o1 <== NOT EXECUTED 2002e8c: 9f c6 40 00 call %i1 <== NOT EXECUTED 2002e90: 92 12 60 a0 or %o1, 0xa0, %o1 ! 203f4a0 <== 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 ); 2002e94: 11 00 80 0b sethi %hi(0x2002c00), %o0 <== NOT EXECUTED 2002e98: 40 00 1a 14 call 20096e8 <== NOT EXECUTED 2002e9c: 90 12 21 0c or %o0, 0x10c, %o0 ! 2002d0c <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 2002ea0: 7f ff ff 9b call 2002d0c <== NOT EXECUTED 2002ea4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 2002ea8: c0 24 62 04 clr [ %l1 + 0x204 ] <== NOT EXECUTED print_handler = NULL; 2002eac: c0 24 22 08 clr [ %l0 + 0x208 ] <== NOT EXECUTED } 2002eb0: 81 c7 e0 08 ret <== NOT EXECUTED 2002eb4: 81 e8 00 00 restore <== NOT EXECUTED 02002fcc : */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 2002fcc: 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; 2002fd0: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2002fd4: 80 a7 80 08 cmp %fp, %o0 2002fd8: 0a 80 00 07 bcs 2002ff4 2002fdc: b2 10 20 00 clr %i1 2002fe0: c2 06 20 c4 ld [ %i0 + 0xc4 ], %g1 2002fe4: 82 02 00 01 add %o0, %g1, %g1 2002fe8: 80 a0 40 1e cmp %g1, %fp 2002fec: 82 60 3f ff subx %g0, -1, %g1 2002ff0: b2 10 00 01 mov %g1, %i1 /* * 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, 2002ff4: 90 02 20 08 add %o0, 8, %o0 2002ff8: 13 00 81 66 sethi %hi(0x2059800), %o1 2002ffc: 94 10 20 10 mov 0x10, %o2 2003000: 40 00 b2 a7 call 202fa9c 2003004: 92 12 63 2c or %o1, 0x32c, %o1 2003008: 80 a0 00 08 cmp %g0, %o0 200300c: 82 60 3f ff subx %g0, -1, %g1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 2003010: 80 8e 60 ff btst 0xff, %i1 2003014: 02 80 00 04 be 2003024 2003018: 80 a0 60 00 cmp %g1, 0 200301c: 12 80 00 05 bne 2003030 2003020: 01 00 00 00 nop Stack_check_report_blown_task( running, pattern_ok ); 2003024: b2 08 60 01 and %g1, 1, %i1 <== NOT EXECUTED 2003028: 7f ff ff ab call 2002ed4 <== NOT EXECUTED 200302c: 81 e8 00 00 restore <== NOT EXECUTED 2003030: 81 c7 e0 08 ret 2003034: 81 e8 00 00 restore 02006254 : const char * rtems_status_text( rtems_status_code status ) { 2006254: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED return rtems_assoc_name_by_local(rtems_status_assoc, status); 2006258: 11 00 80 82 sethi %hi(0x2020800), %o0 <== NOT EXECUTED 200625c: 90 12 23 78 or %o0, 0x378, %o0 ! 2020b78 <== NOT EXECUTED 2006260: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2006264: 40 00 29 76 call 201083c <== NOT EXECUTED 2006268: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200626c: 01 00 00 00 nop 02002d68 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 2002d68: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2002d6c: d0 20 63 34 st %o0, [ %g1 + 0x334 ] ! 2015f34 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 2002d70: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 2002d74: 90 10 20 00 clr %o0 <== NOT EXECUTED int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; 2002d78: d2 20 63 38 st %o1, [ %g1 + 0x338 ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 2002d7c: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2002d80: 81 c3 e0 08 retl <== NOT EXECUTED 2002d84: d4 20 63 3c st %o2, [ %g1 + 0x33c ] ! 2015f3c <== NOT EXECUTED 020043fc : } } rtems_status_code rtems_termios_close (void *arg) { 20043fc: 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); 2004400: 03 00 80 59 sethi %hi(0x2016400), %g1 2004404: d0 00 63 40 ld [ %g1 + 0x340 ], %o0 ! 2016740 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004408: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 200440c: 92 10 20 00 clr %o1 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004410: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004414: 40 00 04 0e call 200544c 2004418: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 200441c: 80 a2 20 00 cmp %o0, 0 2004420: 12 80 00 26 bne 20044b8 2004424: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 2004428: c2 04 20 08 ld [ %l0 + 8 ], %g1 200442c: 82 00 7f ff add %g1, -1, %g1 2004430: 80 a0 60 00 cmp %g1, 0 2004434: 12 80 00 58 bne 2004594 2004438: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 200443c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2004440: 03 00 80 59 sethi %hi(0x2016400), %g1 2004444: 85 28 a0 05 sll %g2, 5, %g2 2004448: 82 10 60 54 or %g1, 0x54, %g1 200444c: 82 00 40 02 add %g1, %g2, %g1 2004450: c2 00 60 04 ld [ %g1 + 4 ], %g1 2004454: 80 a0 60 00 cmp %g1, 0 2004458: 02 80 00 06 be 2004470 200445c: 01 00 00 00 nop /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004460: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004464: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED * default: just flush output buffer */ drainOutput (tty); } if (tty->device.outputUsesInterrupts 2004468: 10 80 00 05 b 200447c <== NOT EXECUTED 200446c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 2004470: 7f ff fd c2 call 2003b78 2004474: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 2004478: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 200447c: 80 a0 60 02 cmp %g1, 2 2004480: 32 80 00 10 bne,a 20044c0 2004484: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 2004488: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED 200448c: 40 00 02 a2 call 2004f14 <== NOT EXECUTED 2004490: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004494: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004498: 12 80 00 08 bne 20044b8 <== NOT EXECUTED 200449c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 20044a0: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 20044a4: 40 00 02 9c call 2004f14 <== NOT EXECUTED 20044a8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 20044ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20044b0: 22 80 00 04 be,a 20044c0 <== NOT EXECUTED 20044b4: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 20044b8: 40 00 05 a5 call 2005b4c <== NOT EXECUTED 20044bc: 01 00 00 00 nop <== NOT EXECUTED } if (tty->device.lastClose) 20044c0: 80 a0 60 00 cmp %g1, 0 20044c4: 22 80 00 07 be,a 20044e0 20044c8: c2 04 00 00 ld [ %l0 ], %g1 (*tty->device.lastClose)(tty->major, tty->minor, arg); 20044cc: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 20044d0: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 20044d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20044d8: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 20044dc: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 20044e0: 80 a0 60 00 cmp %g1, 0 20044e4: 12 80 00 08 bne 2004504 20044e8: c4 04 20 04 ld [ %l0 + 4 ], %g2 rtems_termios_ttyTail = tty->back; 20044ec: 03 00 80 59 sethi %hi(0x2016400), %g1 if ( rtems_termios_ttyTail != NULL ) { 20044f0: 80 a0 a0 00 cmp %g2, 0 20044f4: 02 80 00 05 be 2004508 20044f8: c4 20 63 44 st %g2, [ %g1 + 0x344 ] rtems_termios_ttyTail->forw = NULL; 20044fc: 10 80 00 03 b 2004508 <== NOT EXECUTED 2004500: c0 20 80 00 clr [ %g2 ] <== NOT EXECUTED } } else { tty->forw->back = tty->back; 2004504: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED } if (tty->back == NULL) { 2004508: c2 04 20 04 ld [ %l0 + 4 ], %g1 200450c: 80 a0 60 00 cmp %g1, 0 2004510: 12 80 00 08 bne 2004530 2004514: c4 04 00 00 ld [ %l0 ], %g2 rtems_termios_ttyHead = tty->forw; 2004518: 03 00 80 59 sethi %hi(0x2016400), %g1 if ( rtems_termios_ttyHead != NULL ) { 200451c: 80 a0 a0 00 cmp %g2, 0 2004520: 02 80 00 05 be 2004534 2004524: c4 20 63 48 st %g2, [ %g1 + 0x348 ] rtems_termios_ttyHead->back = NULL; 2004528: 10 80 00 03 b 2004534 <== NOT EXECUTED 200452c: c0 20 a0 04 clr [ %g2 + 4 ] <== NOT EXECUTED } } else { tty->back->forw = tty->forw; 2004530: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 2004534: 40 00 03 98 call 2005394 2004538: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 200453c: 40 00 03 96 call 2005394 2004540: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 2004544: 40 00 03 94 call 2005394 2004548: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 200454c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 2004550: 80 a0 60 00 cmp %g1, 0 2004554: 02 80 00 06 be 200456c 2004558: 01 00 00 00 nop 200455c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004560: 80 a0 60 02 cmp %g1, 2 2004564: 12 80 00 04 bne 2004574 2004568: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 200456c: 40 00 03 8a call 2005394 <== NOT EXECUTED 2004570: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free (tty->rawInBuf.theBuf); 2004574: 40 00 16 d2 call 200a0bc 2004578: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 200457c: 40 00 16 d0 call 200a0bc 2004580: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 2004584: 40 00 16 ce call 200a0bc 2004588: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 200458c: 40 00 16 cc call 200a0bc 2004590: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 2004594: 03 00 80 59 sethi %hi(0x2016400), %g1 2004598: d0 00 63 40 ld [ %g1 + 0x340 ], %o0 ! 2016740 200459c: 40 00 03 f3 call 2005568 20045a0: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 20045a4: 81 c7 e0 08 ret 20045a8: 81 e8 00 00 restore 02002f94 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2002f94: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2002f98: c2 06 20 90 ld [ %i0 + 0x90 ], %g1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2002f9c: c4 06 20 b4 ld [ %i0 + 0xb4 ], %g2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2002fa0: 82 00 40 19 add %g1, %i1, %g1 <== NOT EXECUTED 2002fa4: c2 26 20 90 st %g1, [ %i0 + 0x90 ] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2002fa8: 80 a0 a0 02 cmp %g2, 2 <== NOT EXECUTED 2002fac: 12 80 00 0a bne 2002fd4 <== NOT EXECUTED 2002fb0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 2002fb4: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2002fb8: 40 00 07 d7 call 2004f14 <== NOT EXECUTED 2002fbc: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2002fc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2002fc4: 02 80 00 11 be 2003008 <== NOT EXECUTED 2002fc8: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2002fcc: 40 00 0a e0 call 2005b4c <== NOT EXECUTED 2002fd0: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 2002fd4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2002fd8: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2002fdc: 12 80 00 09 bne 2003000 <== NOT EXECUTED 2002fe0: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2002fe4: c2 00 61 08 ld [ %g1 + 0x108 ], %g1 ! 2016508 <== NOT EXECUTED 2002fe8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002fec: 02 80 00 07 be 2003008 <== NOT EXECUTED 2002ff0: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2002ff4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002ff8: 01 00 00 00 nop <== NOT EXECUTED 2002ffc: 30 80 00 03 b,a 2003008 <== NOT EXECUTED } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 2003000: 7f ff ff 68 call 2002da0 <== NOT EXECUTED 2003004: 81 e8 00 00 restore <== NOT EXECUTED } } 2003008: 81 c7 e0 08 ret <== NOT EXECUTED 200300c: 81 e8 00 00 restore <== NOT EXECUTED 02003010 : * 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) { 2003010: 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) { 2003014: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003018: 05 00 80 59 sethi %hi(0x2016400), %g2 <== NOT EXECUTED 200301c: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2003020: 84 10 a0 54 or %g2, 0x54, %g2 <== NOT EXECUTED 2003024: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 2003028: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 200302c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003030: 12 80 00 10 bne 2003070 <== NOT EXECUTED 2003034: a0 10 00 02 mov %g2, %l0 <== 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, 2003038: 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); 200303c: aa 06 20 30 add %i0, 0x30, %l5 <== NOT EXECUTED 2003040: a2 10 20 00 clr %l1 <== NOT EXECUTED 2003044: 10 80 00 ac b 20032f4 <== NOT EXECUTED 2003048: a4 10 20 00 clr %l2 <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; 200304c: d0 0e 40 00 ldub [ %i1 ], %o0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2003050: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2003054: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 2003058: c2 04 00 01 ld [ %l0 + %g1 ], %g1 <== NOT EXECUTED 200305c: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; 2003060: b2 06 60 01 inc %i1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2003064: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED 2003068: 9f c0 40 00 call %g1 <== NOT EXECUTED 200306c: 92 10 00 18 mov %i0, %o1 <== 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--) { 2003070: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED 2003074: 80 a6 bf ff cmp %i2, -1 <== NOT EXECUTED 2003078: 32 bf ff f5 bne,a 200304c <== NOT EXECUTED 200307c: 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 )) { 2003080: c2 06 20 e4 ld [ %i0 + 0xe4 ], %g1 <== NOT EXECUTED 2003084: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003088: 12 80 00 a6 bne 2003320 <== NOT EXECUTED 200308c: a2 10 20 00 clr %l1 <== NOT EXECUTED 2003090: c2 06 20 dc ld [ %i0 + 0xdc ], %g1 <== NOT EXECUTED 2003094: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003098: 22 80 00 a3 be,a 2003324 <== NOT EXECUTED 200309c: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 20030a0: d2 06 20 e0 ld [ %i0 + 0xe0 ], %o1 <== NOT EXECUTED 20030a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20030a8: 90 06 20 30 add %i0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 20030ac: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20030b0: a2 10 20 00 clr %l1 <== NOT EXECUTED 20030b4: 10 80 00 9b b 2003320 <== NOT EXECUTED 20030b8: c2 26 20 e4 st %g1, [ %i0 + 0xe4 ] <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 20030bc: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 20030c0: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20030c4: 02 80 00 1a be 200312c <== NOT EXECUTED 20030c8: e8 0e 40 00 ldub [ %i1 ], %l4 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 20030cc: c4 0e 20 4a ldub [ %i0 + 0x4a ], %g2 <== NOT EXECUTED 20030d0: 83 2d 20 18 sll %l4, 0x18, %g1 <== NOT EXECUTED 20030d4: 87 38 60 18 sra %g1, 0x18, %g3 <== NOT EXECUTED 20030d8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 20030dc: 12 80 00 0c bne 200310c <== NOT EXECUTED 20030e0: c2 0e 20 49 ldub [ %i0 + 0x49 ], %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 20030e4: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED 20030e8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20030ec: 12 80 00 05 bne 2003100 <== NOT EXECUTED 20030f0: 01 00 00 00 nop <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 20030f4: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 20030f8: 10 80 00 0b b 2003124 <== NOT EXECUTED 20030fc: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2003100: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003104: 10 80 00 08 b 2003124 <== NOT EXECUTED 2003108: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 200310c: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED 2003110: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003114: 12 80 00 07 bne 2003130 <== NOT EXECUTED 2003118: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 200311c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003120: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED 2003124: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED 2003128: 30 80 00 04 b,a 2003138 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 200312c: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED 2003130: 02 80 00 1d be 20031a4 <== NOT EXECUTED 2003134: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 2003138: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 200313c: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 2003140: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 2003144: 12 80 00 6b bne 20032f0 <== NOT EXECUTED 2003148: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 200314c: 7f ff fa fd call 2001d40 <== NOT EXECUTED 2003150: 01 00 00 00 nop <== NOT EXECUTED 2003154: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2003158: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 200315c: 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; 2003160: 82 08 7f df and %g1, -33, %g1 <== NOT EXECUTED 2003164: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2003168: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200316c: 02 80 00 09 be 2003190 <== NOT EXECUTED 2003170: 01 00 00 00 nop <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 2003174: d2 06 20 84 ld [ %i0 + 0x84 ], %o1 <== NOT EXECUTED 2003178: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED 200317c: c4 06 20 a4 ld [ %i0 + 0xa4 ], %g2 <== NOT EXECUTED 2003180: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2003184: 92 00 40 09 add %g1, %o1, %o1 <== NOT EXECUTED 2003188: 9f c0 80 00 call %g2 <== NOT EXECUTED 200318c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 2003190: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED 2003194: 7f ff fa ef call 2001d50 <== NOT EXECUTED 2003198: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 200319c: 10 80 00 56 b 20032f4 <== NOT EXECUTED 20031a0: b2 06 60 01 inc %i1 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 20031a4: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED 20031a8: d2 06 20 64 ld [ %i0 + 0x64 ], %o1 <== NOT EXECUTED 20031ac: 40 00 3f fc call 201319c <.urem> <== NOT EXECUTED 20031b0: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 20031b4: 7f ff fa e3 call 2001d40 <== NOT EXECUTED 20031b8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 20031bc: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 20031c0: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED 20031c4: d0 06 20 64 ld [ %i0 + 0x64 ], %o0 <== NOT EXECUTED 20031c8: d2 06 20 64 ld [ %i0 + 0x64 ], %o1 <== NOT EXECUTED 20031cc: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 20031d0: 40 00 3f f3 call 201319c <.urem> <== NOT EXECUTED 20031d4: 90 02 00 10 add %o0, %l0, %o0 <== NOT EXECUTED 20031d8: c2 06 20 c0 ld [ %i0 + 0xc0 ], %g1 <== NOT EXECUTED 20031dc: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 20031e0: 08 80 00 2d bleu 2003294 <== NOT EXECUTED 20031e4: 01 00 00 00 nop <== NOT EXECUTED 20031e8: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 20031ec: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20031f0: 12 80 00 29 bne 2003294 <== NOT EXECUTED 20031f4: 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; 20031f8: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 20031fc: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 2003200: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 2003204: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003208: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED 200320c: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 2003210: 12 80 00 13 bne 200325c <== NOT EXECUTED 2003214: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 2003218: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 200321c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003220: 12 80 00 06 bne 2003238 <== NOT EXECUTED 2003224: 01 00 00 00 nop <== NOT EXECUTED 2003228: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED 200322c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003230: 12 80 00 19 bne 2003294 <== NOT EXECUTED 2003234: 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; 2003238: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 200323c: c4 06 20 a4 ld [ %i0 + 0xa4 ], %g2 <== NOT EXECUTED 2003240: 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; 2003244: 82 10 60 02 or %g1, 2, %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003248: 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; 200324c: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003250: 9f c0 80 00 call %g2 <== NOT EXECUTED 2003254: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2003258: 30 80 00 0f b,a 2003294 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 200325c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003260: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 2003264: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 2003268: 12 80 00 0b bne 2003294 <== NOT EXECUTED 200326c: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2003270: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003274: 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; 2003278: 82 10 60 04 or %g1, 4, %g1 <== NOT EXECUTED 200327c: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003280: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003284: 02 80 00 04 be 2003294 <== NOT EXECUTED 2003288: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 200328c: 9f c0 80 00 call %g2 <== NOT EXECUTED 2003290: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2003294: 7f ff fa af call 2001d50 <== NOT EXECUTED 2003298: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 200329c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED 20032a0: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 20032a4: 32 80 00 04 bne,a 20032b4 <== NOT EXECUTED 20032a8: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 <== NOT EXECUTED dropped++; 20032ac: 10 80 00 11 b 20032f0 <== NOT EXECUTED 20032b0: a2 04 60 01 inc %l1 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; 20032b4: e8 28 40 10 stb %l4, [ %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 )) { 20032b8: c2 06 20 e4 ld [ %i0 + 0xe4 ], %g1 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 20032bc: 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 )) { 20032c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032c4: 32 80 00 0c bne,a 20032f4 <== NOT EXECUTED 20032c8: b2 06 60 01 inc %i1 <== NOT EXECUTED 20032cc: c2 06 20 dc ld [ %i0 + 0xdc ], %g1 <== NOT EXECUTED 20032d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032d4: 22 80 00 08 be,a 20032f4 <== NOT EXECUTED 20032d8: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 20032dc: d2 06 20 e0 ld [ %i0 + 0xe0 ], %o1 <== NOT EXECUTED 20032e0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20032e4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 20032e8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20032ec: c2 26 20 e4 st %g1, [ %i0 + 0xe4 ] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 20032f0: b2 06 60 01 inc %i1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 20032f4: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED 20032f8: 80 a6 bf ff cmp %i2, -1 <== NOT EXECUTED 20032fc: 12 bf ff 70 bne 20030bc <== NOT EXECUTED 2003300: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 2003304: c2 06 20 78 ld [ %i0 + 0x78 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 2003308: d0 06 20 68 ld [ %i0 + 0x68 ], %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 200330c: 82 00 40 11 add %g1, %l1, %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 2003310: 40 00 08 96 call 2005568 <== NOT EXECUTED 2003314: c2 26 20 78 st %g1, [ %i0 + 0x78 ] <== NOT EXECUTED return dropped; } 2003318: 81 c7 e0 08 ret <== NOT EXECUTED 200331c: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED 2003320: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED 2003324: 81 c7 e0 08 ret <== NOT EXECUTED 2003328: 81 e8 00 00 restore <== NOT EXECUTED 02002d1c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2002d1c: 9d e3 bf 98 save %sp, -104, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2002d20: 03 00 80 59 sethi %hi(0x2016400), %g1 2002d24: c4 00 63 40 ld [ %g1 + 0x340 ], %g2 ! 2016740 2002d28: 80 a0 a0 00 cmp %g2, 0 2002d2c: 12 80 00 0d bne 2002d60 2002d30: 98 10 63 40 or %g1, 0x340, %o4 sc = rtems_semaphore_create ( 2002d34: 11 15 14 9b sethi %hi(0x54526c00), %o0 2002d38: 92 10 20 01 mov 1, %o1 2002d3c: 90 12 21 69 or %o0, 0x169, %o0 2002d40: 94 10 20 54 mov 0x54, %o2 2002d44: 40 00 09 1c call 20051b4 2002d48: 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) 2002d4c: 80 a2 20 00 cmp %o0, 0 2002d50: 02 80 00 04 be 2002d60 2002d54: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 2002d58: 40 00 0b 7d call 2005b4c <== NOT EXECUTED 2002d5c: 01 00 00 00 nop <== NOT EXECUTED 2002d60: 81 c7 e0 08 ret 2002d64: 81 e8 00 00 restore 02003ff0 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 2003ff0: 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; 2003ff4: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 2003ff8: 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; 2003ffc: e2 00 60 28 ld [ %g1 + 0x28 ], %l1 <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 2004000: 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); 2004004: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 <== NOT EXECUTED } } rtems_status_code rtems_termios_ioctl (void *arg) { 2004008: 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); 200400c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004010: 40 00 05 0f call 200544c <== NOT EXECUTED 2004014: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 2004018: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200401c: 22 80 00 05 be,a 2004030 <== NOT EXECUTED 2004020: c4 04 a0 04 ld [ %l2 + 4 ], %g2 <== NOT EXECUTED args->ioctl_return = sc; 2004024: f0 24 a0 0c st %i0, [ %l2 + 0xc ] <== NOT EXECUTED 2004028: 81 c7 e0 08 ret <== NOT EXECUTED 200402c: 81 e8 00 00 restore <== NOT EXECUTED return sc; } switch (args->command) { 2004030: 80 a0 a0 04 cmp %g2, 4 <== NOT EXECUTED 2004034: 22 80 00 bf be,a 2004330 <== NOT EXECUTED 2004038: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 200403c: 18 80 00 0b bgu 2004068 <== NOT EXECUTED 2004040: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED 2004044: 80 a0 a0 02 cmp %g2, 2 <== NOT EXECUTED 2004048: 22 80 00 2c be,a 20040f8 <== NOT EXECUTED 200404c: d2 04 a0 08 ld [ %l2 + 8 ], %o1 <== NOT EXECUTED 2004050: 18 80 00 b1 bgu 2004314 <== NOT EXECUTED 2004054: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2004058: 32 80 00 17 bne,a 20040b4 <== NOT EXECUTED 200405c: 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; 2004060: 10 80 00 22 b 20040e8 <== NOT EXECUTED 2004064: d0 04 a0 08 ld [ %l2 + 8 ], %o0 <== 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) { 2004068: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 200406c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004070: 02 80 00 d1 be 20043b4 <== NOT EXECUTED 2004074: 01 00 00 00 nop <== NOT EXECUTED 2004078: 38 80 00 07 bgu,a 2004094 <== NOT EXECUTED 200407c: 03 10 01 1d sethi %hi(0x40047400), %g1 <== NOT EXECUTED 2004080: 80 a0 a0 05 cmp %g2, 5 <== NOT EXECUTED 2004084: 32 80 00 0c bne,a 20040b4 <== NOT EXECUTED 2004088: c4 04 60 cc ld [ %l1 + 0xcc ], %g2 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 200408c: 10 80 00 a5 b 2004320 <== NOT EXECUTED 2004090: c2 04 00 00 ld [ %l0 ], %g1 <== 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) { 2004094: 82 10 60 1a or %g1, 0x1a, %g1 <== NOT EXECUTED 2004098: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 200409c: 02 80 00 c2 be 20043a4 <== NOT EXECUTED 20040a0: 03 20 01 1d sethi %hi(0x80047400), %g1 <== NOT EXECUTED 20040a4: 82 10 60 1b or %g1, 0x1b, %g1 ! 8004741b <== NOT EXECUTED 20040a8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20040ac: 02 80 00 a5 be 2004340 <== NOT EXECUTED 20040b0: c4 04 60 cc ld [ %l1 + 0xcc ], %g2 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 20040b4: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 20040b8: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 20040bc: 82 10 60 54 or %g1, 0x54, %g1 <== NOT EXECUTED 20040c0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 20040c4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20040c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20040cc: 02 80 00 c7 be 20043e8 <== NOT EXECUTED 20040d0: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 20040d4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20040d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20040dc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); 20040e0: 10 80 00 c2 b 20043e8 <== NOT EXECUTED 20040e4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 20040e8: 92 04 60 30 add %l1, 0x30, %o1 <== NOT EXECUTED 20040ec: 40 00 22 a7 call 200cb88 <== NOT EXECUTED 20040f0: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 20040f4: 30 80 00 bd b,a 20043e8 <== NOT EXECUTED break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 20040f8: 90 04 60 30 add %l1, 0x30, %o0 <== NOT EXECUTED 20040fc: 40 00 22 a3 call 200cb88 <== NOT EXECUTED 2004100: 94 10 20 24 mov 0x24, %o2 <== 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) && 2004104: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004108: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 200410c: 02 80 00 20 be 200418c <== NOT EXECUTED 2004110: 01 00 00 00 nop <== NOT EXECUTED 2004114: c2 04 60 30 ld [ %l1 + 0x30 ], %g1 <== NOT EXECUTED 2004118: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 200411c: 12 80 00 1c bne 200418c <== NOT EXECUTED 2004120: 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); 2004124: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004128: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 200412c: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 2004130: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004134: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004138: 02 80 00 15 be 200418c <== NOT EXECUTED 200413c: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 2004140: 7f ff f7 00 call 2001d40 <== NOT EXECUTED 2004144: 01 00 00 00 nop <== NOT EXECUTED 2004148: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 200414c: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004150: 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; 2004154: 82 08 7f df and %g1, -33, %g1 <== NOT EXECUTED 2004158: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 200415c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2004160: 02 80 00 09 be 2004184 <== NOT EXECUTED 2004164: 01 00 00 00 nop <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 2004168: d2 04 60 84 ld [ %l1 + 0x84 ], %o1 <== NOT EXECUTED 200416c: c2 04 60 7c ld [ %l1 + 0x7c ], %g1 <== NOT EXECUTED 2004170: c4 04 60 a4 ld [ %l1 + 0xa4 ], %g2 <== NOT EXECUTED 2004174: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 <== NOT EXECUTED 2004178: 92 00 40 09 add %g1, %o1, %o1 <== NOT EXECUTED 200417c: 9f c0 80 00 call %g2 <== NOT EXECUTED 2004180: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 2004184: 7f ff f6 f3 call 2001d50 <== NOT EXECUTED 2004188: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 200418c: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004190: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 2004194: 02 80 00 0c be 20041c4 <== NOT EXECUTED 2004198: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED 200419c: c4 04 60 30 ld [ %l1 + 0x30 ], %g2 <== NOT EXECUTED 20041a0: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 20041a4: 12 80 00 08 bne 20041c4 <== NOT EXECUTED 20041a8: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 20041ac: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20041b0: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 20041b4: 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); 20041b8: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20041bc: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED 20041c0: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 20041c4: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20041c8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20041cc: 02 80 00 16 be 2004224 <== NOT EXECUTED 20041d0: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 <== NOT EXECUTED 20041d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041d8: 06 80 00 14 bl 2004228 <== NOT EXECUTED 20041dc: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 20041e0: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20041e4: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 20041e8: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 20041ec: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 20041f0: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 20041f4: 02 80 00 08 be 2004214 <== NOT EXECUTED 20041f8: 01 00 00 00 nop <== NOT EXECUTED 20041fc: c2 04 60 b0 ld [ %l1 + 0xb0 ], %g1 <== NOT EXECUTED 2004200: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004204: 02 80 00 04 be 2004214 <== NOT EXECUTED 2004208: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 200420c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004210: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 2004214: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004218: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 200421c: 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) { 2004220: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 <== NOT EXECUTED 2004224: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004228: 36 80 00 06 bge,a 2004240 <== NOT EXECUTED 200422c: c4 04 60 30 ld [ %l1 + 0x30 ], %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; 2004230: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004234: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 2004238: 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) { 200423c: c4 04 60 30 ld [ %l1 + 0x30 ], %g2 <== NOT EXECUTED 2004240: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED 2004244: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 2004248: 22 80 00 06 be,a 2004260 <== NOT EXECUTED 200424c: c2 04 60 30 ld [ %l1 + 0x30 ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 2004250: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004254: 82 10 64 00 or %g1, 0x400, %g1 <== NOT EXECUTED 2004258: 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) { 200425c: c2 04 60 30 ld [ %l1 + 0x30 ], %g1 <== NOT EXECUTED 2004260: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 2004264: 22 80 00 06 be,a 200427c <== NOT EXECUTED 2004268: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 200426c: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2004270: 82 10 62 00 or %g1, 0x200, %g1 <== NOT EXECUTED 2004274: 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) { 2004278: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED 200427c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2004280: 32 80 00 19 bne,a 20042e4 <== NOT EXECUTED 2004284: c0 24 60 6c clr [ %l1 + 0x6c ] <== 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); 2004288: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED 200428c: 40 00 02 22 call 2004b14 <== NOT EXECUTED 2004290: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 2004294: d2 07 bf f4 ld [ %fp + -12 ], %o1 <== NOT EXECUTED 2004298: e0 0c 60 46 ldub [ %l1 + 0x46 ], %l0 <== NOT EXECUTED 200429c: 40 00 3a da call 2012e04 <.umul> <== NOT EXECUTED 20042a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20042a4: 40 00 3b 12 call 2012eec <.udiv> <== NOT EXECUTED 20042a8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 20042ac: d0 24 60 54 st %o0, [ %l1 + 0x54 ] <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 20042b0: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 20042b4: 02 80 00 08 be 20042d4 <== NOT EXECUTED 20042b8: c2 0c 60 47 ldub [ %l1 + 0x47 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 20042bc: c0 24 60 6c clr [ %l1 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 20042c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20042c4: 12 80 00 09 bne 20042e8 <== NOT EXECUTED 20042c8: d0 24 60 70 st %o0, [ %l1 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 20042cc: 10 80 00 0a b 20042f4 <== NOT EXECUTED 20042d0: d0 24 60 74 st %o0, [ %l1 + 0x74 ] <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { 20042d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20042d8: 02 80 00 06 be 20042f0 <== NOT EXECUTED 20042dc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 20042e0: c0 24 60 6c clr [ %l1 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 20042e4: c0 24 60 70 clr [ %l1 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 20042e8: 10 80 00 03 b 20042f4 <== NOT EXECUTED 20042ec: c0 24 60 74 clr [ %l1 + 0x74 ] <== NOT EXECUTED } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 20042f0: c2 24 60 6c st %g1, [ %l1 + 0x6c ] <== NOT EXECUTED } } } if (tty->device.setAttributes) 20042f4: c2 04 60 a8 ld [ %l1 + 0xa8 ], %g1 <== NOT EXECUTED 20042f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20042fc: 02 80 00 3b be 20043e8 <== NOT EXECUTED 2004300: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 2004304: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 <== NOT EXECUTED 2004308: 9f c0 40 00 call %g1 <== NOT EXECUTED 200430c: 92 04 60 30 add %l1, 0x30, %o1 <== NOT EXECUTED 2004310: 30 80 00 36 b,a 20043e8 <== NOT EXECUTED break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 2004314: 7f ff fe 19 call 2003b78 <== NOT EXECUTED 2004318: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200431c: 30 80 00 33 b,a 20043e8 <== NOT EXECUTED break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 2004320: c2 24 60 d4 st %g1, [ %l1 + 0xd4 ] <== NOT EXECUTED 2004324: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 2004328: 10 80 00 30 b 20043e8 <== NOT EXECUTED 200432c: c2 24 60 d8 st %g1, [ %l1 + 0xd8 ] <== NOT EXECUTED break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 2004330: c2 24 60 dc st %g1, [ %l1 + 0xdc ] <== NOT EXECUTED 2004334: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 2004338: 10 80 00 2c b 20043e8 <== NOT EXECUTED 200433c: c2 24 60 e0 st %g1, [ %l1 + 0xe0 ] <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 2004340: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 2004344: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 2004348: 82 10 60 54 or %g1, 0x54, %g1 <== NOT EXECUTED 200434c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2004350: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2004354: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004358: 22 80 00 06 be,a 2004370 <== NOT EXECUTED 200435c: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004360: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004364: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2004368: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 200436c: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 2004370: 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); 2004374: 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) { 2004378: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200437c: 85 28 e0 05 sll %g3, 5, %g2 <== NOT EXECUTED 2004380: 82 10 60 54 or %g1, 0x54, %g1 <== NOT EXECUTED 2004384: c2 00 40 02 ld [ %g1 + %g2 ], %g1 <== NOT EXECUTED 2004388: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200438c: 02 80 00 17 be 20043e8 <== NOT EXECUTED 2004390: c6 24 60 cc st %g3, [ %l1 + 0xcc ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 2004394: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004398: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200439c: 10 80 00 13 b 20043e8 <== NOT EXECUTED 20043a0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 20043a4: c4 04 a0 08 ld [ %l2 + 8 ], %g2 <== NOT EXECUTED 20043a8: c2 04 60 cc ld [ %l1 + 0xcc ], %g1 <== NOT EXECUTED 20043ac: 10 80 00 0f b 20043e8 <== NOT EXECUTED 20043b0: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 20043b4: c4 04 60 60 ld [ %l1 + 0x60 ], %g2 <== NOT EXECUTED 20043b8: c2 04 60 5c ld [ %l1 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 20043bc: 88 a0 80 01 subcc %g2, %g1, %g4 <== NOT EXECUTED 20043c0: 3c 80 00 05 bpos,a 20043d4 <== NOT EXECUTED 20043c4: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 20043c8: c2 04 60 64 ld [ %l1 + 0x64 ], %g1 <== NOT EXECUTED 20043cc: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 20043d0: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 20043d4: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED 20043d8: c6 04 a0 08 ld [ %l2 + 8 ], %g3 <== NOT EXECUTED 20043dc: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 20043e0: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED 20043e4: c2 20 c0 00 st %g1, [ %g3 ] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 20043e8: 40 00 04 60 call 2005568 <== NOT EXECUTED 20043ec: d0 04 60 18 ld [ %l1 + 0x18 ], %o0 <== NOT EXECUTED args->ioctl_return = sc; 20043f0: f0 24 a0 0c st %i0, [ %l2 + 0xc ] <== NOT EXECUTED return sc; } 20043f4: 81 c7 e0 08 ret <== NOT EXECUTED 20043f8: 81 e8 00 00 restore <== NOT EXECUTED 020045ac : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 20045ac: 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, 20045b0: 03 00 80 59 sethi %hi(0x2016400), %g1 20045b4: d0 00 63 40 ld [ %g1 + 0x340 ], %o0 ! 2016740 20045b8: 92 10 20 00 clr %o1 20045bc: 40 00 03 a4 call 200544c 20045c0: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 20045c4: a6 92 20 00 orcc %o0, 0, %l3 20045c8: 12 80 01 0a bne 20049f0 20045cc: 03 00 80 59 sethi %hi(0x2016400), %g1 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 20045d0: 10 80 00 0a b 20045f8 20045d4: e2 00 63 48 ld [ %g1 + 0x348 ], %l1 ! 2016748 if ((tty->major == major) && (tty->minor == minor)) 20045d8: 80 a0 40 18 cmp %g1, %i0 20045dc: 32 80 00 07 bne,a 20045f8 20045e0: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED 20045e4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 20045e8: 80 a0 40 19 cmp %g1, %i1 20045ec: 22 80 00 da be,a 2004954 20045f0: c2 04 60 08 ld [ %l1 + 8 ], %g1 */ 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) { 20045f4: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED 20045f8: 80 a4 60 00 cmp %l1, 0 20045fc: 32 bf ff f7 bne,a 20045d8 2004600: c2 04 60 0c ld [ %l1 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004604: 10 80 00 fd b 20049f8 2004608: 90 10 20 01 mov 1, %o0 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 200460c: 03 00 80 57 sethi %hi(0x2015c00), %g1 2004610: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 2015f38 2004614: c2 24 60 64 st %g1, [ %l1 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 2004618: d0 04 60 64 ld [ %l1 + 0x64 ], %o0 200461c: 40 00 18 08 call 200a63c 2004620: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 2004624: 80 a2 20 00 cmp %o0, 0 2004628: 12 80 00 08 bne 2004648 200462c: d0 24 60 58 st %o0, [ %l1 + 0x58 ] free(tty); 2004630: 40 00 16 a3 call 200a0bc <== NOT EXECUTED 2004634: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2004638: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 200463c: a6 10 20 1a mov 0x1a, %l3 <== NOT EXECUTED 2004640: 10 80 00 ea b 20049e8 <== NOT EXECUTED 2004644: d0 00 63 40 ld [ %g1 + 0x340 ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 2004648: 03 00 80 57 sethi %hi(0x2015c00), %g1 200464c: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 2015f3c 2004650: c2 24 60 88 st %g1, [ %l1 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 2004654: d0 04 60 88 ld [ %l1 + 0x88 ], %o0 2004658: 40 00 17 f9 call 200a63c 200465c: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 2004660: 80 a2 20 00 cmp %o0, 0 2004664: 12 80 00 05 bne 2004678 2004668: d0 24 60 7c st %o0, [ %l1 + 0x7c ] free((void *)(tty->rawInBuf.theBuf)); 200466c: d0 04 60 58 ld [ %l1 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 2004670: 10 80 00 0c b 20046a0 <== NOT EXECUTED 2004674: a6 10 20 1a mov 0x1a, %l3 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 2004678: 03 00 80 57 sethi %hi(0x2015c00), %g1 200467c: 40 00 17 f0 call 200a63c 2004680: d0 00 63 34 ld [ %g1 + 0x334 ], %o0 ! 2015f34 if (tty->cbuf == NULL) { 2004684: 80 a2 20 00 cmp %o0, 0 2004688: 12 80 00 0c bne 20046b8 200468c: d0 24 60 1c st %o0, [ %l1 + 0x1c ] free((void *)(tty->rawOutBuf.theBuf)); 2004690: d0 04 60 7c ld [ %l1 + 0x7c ], %o0 <== NOT EXECUTED 2004694: 40 00 16 8a call 200a0bc <== NOT EXECUTED 2004698: a6 10 20 1a mov 0x1a, %l3 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 200469c: d0 04 60 58 ld [ %l1 + 0x58 ], %o0 <== NOT EXECUTED 20046a0: 40 00 16 87 call 200a0bc <== NOT EXECUTED 20046a4: 01 00 00 00 nop <== NOT EXECUTED free(tty); 20046a8: 40 00 16 85 call 200a0bc <== NOT EXECUTED 20046ac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 20046b0: 10 80 00 cd b 20049e4 <== NOT EXECUTED 20046b4: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 20046b8: 03 00 80 59 sethi %hi(0x2016400), %g1 20046bc: c2 00 63 48 ld [ %g1 + 0x348 ], %g1 ! 2016748 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 20046c0: c0 24 60 d4 clr [ %l1 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 20046c4: c0 24 60 d8 clr [ %l1 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 20046c8: c0 24 60 dc clr [ %l1 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 20046cc: c0 24 60 e0 clr [ %l1 + 0xe0 ] tty->tty_rcvwakeup = 0; 20046d0: c0 24 60 e4 clr [ %l1 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 20046d4: c2 24 40 00 st %g1, [ %l1 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 20046d8: 80 a0 60 00 cmp %g1, 0 20046dc: 02 80 00 03 be 20046e8 20046e0: c0 24 60 04 clr [ %l1 + 4 ] rtems_termios_ttyHead->back = tty; 20046e4: e2 20 60 04 st %l1, [ %g1 + 4 ] <== NOT EXECUTED rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 20046e8: 07 00 80 59 sethi %hi(0x2016400), %g3 20046ec: c4 00 e3 44 ld [ %g3 + 0x344 ], %g2 ! 2016744 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 20046f0: 03 00 80 59 sethi %hi(0x2016400), %g1 if (rtems_termios_ttyTail == NULL) 20046f4: 80 a0 a0 00 cmp %g2, 0 20046f8: 12 80 00 03 bne 2004704 20046fc: e0 20 63 48 st %l0, [ %g1 + 0x348 ] rtems_termios_ttyTail = tty; 2004700: e0 20 e3 44 st %l0, [ %g3 + 0x344 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004704: 25 00 80 57 sethi %hi(0x2015c00), %l2 2004708: c2 4c a3 40 ldsb [ %l2 + 0x340 ], %g1 ! 2015f40 200470c: 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; 2004710: f2 24 20 10 st %i1, [ %l0 + 0x10 ] tty->major = major; 2004714: f0 24 20 0c st %i0, [ %l0 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004718: 90 12 21 00 or %o0, 0x100, %o0 200471c: 92 10 20 01 mov 1, %o1 2004720: 90 10 40 08 or %g1, %o0, %o0 2004724: 94 10 20 54 mov 0x54, %o2 2004728: 96 10 20 00 clr %o3 200472c: 40 00 02 a2 call 20051b4 2004730: 98 04 20 14 add %l0, 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) 2004734: 80 a2 20 00 cmp %o0, 0 2004738: 12 80 00 a8 bne 20049d8 200473c: 01 00 00 00 nop rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 2004740: c2 4c a3 40 ldsb [ %l2 + 0x340 ], %g1 2004744: 11 15 14 9b sethi %hi(0x54526c00), %o0 2004748: 92 10 20 01 mov 1, %o1 200474c: 90 12 23 00 or %o0, 0x300, %o0 2004750: 94 10 20 54 mov 0x54, %o2 2004754: 90 10 40 08 or %g1, %o0, %o0 2004758: 96 10 20 00 clr %o3 200475c: 40 00 02 96 call 20051b4 2004760: 98 04 20 18 add %l0, 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) 2004764: 80 a2 20 00 cmp %o0, 0 2004768: 12 80 00 9c bne 20049d8 200476c: 01 00 00 00 nop rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 2004770: c2 4c a3 40 ldsb [ %l2 + 0x340 ], %g1 2004774: 11 15 14 9e sethi %hi(0x54527800), %o0 2004778: 92 10 20 00 clr %o1 200477c: 90 10 40 08 or %g1, %o0, %o0 2004780: 94 10 20 20 mov 0x20, %o2 2004784: 96 10 20 00 clr %o3 2004788: 40 00 02 8b call 20051b4 200478c: 98 04 20 8c add %l0, 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) 2004790: 80 a2 20 00 cmp %o0, 0 2004794: 12 80 00 91 bne 20049d8 2004798: 01 00 00 00 nop rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 200479c: c0 24 20 94 clr [ %l0 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 20047a0: 92 10 00 1b mov %i3, %o1 20047a4: 90 04 20 98 add %l0, 0x98, %o0 20047a8: 40 00 20 f8 call 200cb88 20047ac: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 20047b0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 20047b4: 80 a0 60 02 cmp %g1, 2 20047b8: 32 80 00 1b bne,a 2004824 20047bc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 sc = rtems_task_create ( 20047c0: c2 4c a3 40 ldsb [ %l2 + 0x340 ], %g1 <== NOT EXECUTED 20047c4: 11 15 1e 15 sethi %hi(0x54785400), %o0 <== NOT EXECUTED 20047c8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 20047cc: 90 10 40 08 or %g1, %o0, %o0 <== NOT EXECUTED 20047d0: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 20047d4: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 20047d8: 98 10 20 00 clr %o4 <== NOT EXECUTED 20047dc: 40 00 03 8f call 2005618 <== NOT EXECUTED 20047e0: 9a 04 20 c8 add %l0, 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) 20047e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20047e8: 12 80 00 7c bne 20049d8 <== NOT EXECUTED 20047ec: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 20047f0: c2 4c a3 40 ldsb [ %l2 + 0x340 ], %g1 <== NOT EXECUTED 20047f4: 11 14 9e 15 sethi %hi(0x52785400), %o0 <== NOT EXECUTED 20047f8: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 20047fc: 90 10 40 08 or %g1, %o0, %o0 <== NOT EXECUTED 2004800: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004804: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004808: 98 10 20 00 clr %o4 <== NOT EXECUTED 200480c: 40 00 03 83 call 2005618 <== NOT EXECUTED 2004810: 9a 04 20 c4 add %l0, 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) 2004814: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004818: 12 80 00 70 bne 20049d8 <== NOT EXECUTED 200481c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 2004820: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004824: 80 a0 60 00 cmp %g1, 0 2004828: 02 80 00 07 be 2004844 200482c: 03 00 80 57 sethi %hi(0x2015c00), %g1 2004830: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004834: 80 a0 60 02 cmp %g1, 2 2004838: 12 80 00 0f bne 2004874 200483c: 82 10 20 03 mov 3, %g1 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 2004840: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED 2004844: c2 48 63 40 ldsb [ %g1 + 0x340 ], %g1 ! 2015f40 <== NOT EXECUTED 2004848: 11 15 14 9c sethi %hi(0x54527000), %o0 <== NOT EXECUTED 200484c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004850: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED 2004854: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 2004858: 90 10 40 08 or %g1, %o0, %o0 <== NOT EXECUTED 200485c: 96 10 20 00 clr %o3 <== NOT EXECUTED 2004860: 40 00 02 55 call 20051b4 <== NOT EXECUTED 2004864: 98 04 20 68 add %l0, 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) 2004868: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200486c: 12 80 00 5b bne 20049d8 <== NOT EXECUTED 2004870: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 2004874: c2 2c 20 41 stb %g1, [ %l0 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 2004878: 82 10 20 1c mov 0x1c, %g1 200487c: c2 2c 20 42 stb %g1, [ %l0 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 2004880: 82 10 20 7f mov 0x7f, %g1 2004884: c2 2c 20 43 stb %g1, [ %l0 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 2004888: 82 10 20 15 mov 0x15, %g1 200488c: c2 2c 20 44 stb %g1, [ %l0 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 2004890: 82 10 20 04 mov 4, %g1 2004894: c2 2c 20 45 stb %g1, [ %l0 + 0x45 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 2004898: 82 10 20 11 mov 0x11, %g1 200489c: c2 2c 20 49 stb %g1, [ %l0 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 20048a0: 82 10 20 13 mov 0x13, %g1 20048a4: c2 2c 20 4a stb %g1, [ %l0 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 20048a8: 82 10 20 1a mov 0x1a, %g1 20048ac: c2 2c 20 4b stb %g1, [ %l0 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 20048b0: 82 10 20 12 mov 0x12, %g1 20048b4: c2 2c 20 4d stb %g1, [ %l0 + 0x4d ] tty->termios.c_cc[VDISCARD] = '\017'; 20048b8: 82 10 20 0f mov 0xf, %g1 20048bc: c2 2c 20 4e stb %g1, [ %l0 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 20048c0: 82 10 20 17 mov 0x17, %g1 20048c4: c2 2c 20 4f stb %g1, [ %l0 + 0x4f ] tty->termios.c_cc[VLNEXT] = '\026'; 20048c8: 82 10 20 16 mov 0x16, %g1 20048cc: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 20048d0: 03 00 00 09 sethi %hi(0x2400), %g1 20048d4: 82 10 61 02 or %g1, 0x102, %g1 ! 2502 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'; 20048d8: c0 2c 20 4c clrb [ %l0 + 0x4c ] tty->termios.c_cc[VEOL2] = '\000'; 20048dc: c0 2c 20 51 clrb [ %l0 + 0x51 ] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 20048e0: 1b 00 80 57 sethi %hi(0x2015c00), %o5 20048e4: c4 0b 63 40 ldub [ %o5 + 0x340 ], %g2 ! 2015f40 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 20048e8: c2 24 20 30 st %g1, [ %l0 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 20048ec: 03 00 00 06 sethi %hi(0x1800), %g1 20048f0: 82 10 60 05 or %g1, 5, %g1 ! 1805 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; 20048f4: c0 24 20 b8 clr [ %l0 + 0xb8 ] /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 20048f8: c2 24 20 34 st %g1, [ %l0 + 0x34 ] /* 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; 20048fc: c6 04 20 64 ld [ %l0 + 0x64 ], %g3 /* * 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; 2004900: 82 10 28 bd mov 0x8bd, %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; 2004904: c8 04 20 64 ld [ %l0 + 0x64 ], %g4 /* * 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; 2004908: c2 24 20 38 st %g1, [ %l0 + 0x38 ] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 200490c: 03 00 00 20 sethi %hi(0x8000), %g1 2004910: 82 10 62 3b or %g1, 0x23b, %g1 ! 823b /* 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; 2004914: 87 30 e0 01 srl %g3, 1, %g3 * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 2004918: c2 24 20 3c st %g1, [ %l0 + 0x3c ] /* 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; 200491c: c6 24 20 bc st %g3, [ %l0 + 0xbc ] tty->highwater = tty->rawInBuf.Size * 3/4; 2004920: 83 29 20 01 sll %g4, 1, %g1 2004924: 82 00 40 04 add %g1, %g4, %g1 2004928: 83 30 60 02 srl %g1, 2, %g1 200492c: c2 24 20 c0 st %g1, [ %l0 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 2004930: 82 00 a0 01 add %g2, 1, %g1 2004934: 85 28 a0 18 sll %g2, 0x18, %g2 2004938: 85 38 a0 18 sra %g2, 0x18, %g2 200493c: 80 a0 a0 7a cmp %g2, 0x7a 2004940: 12 80 00 04 bne 2004950 2004944: c2 2b 63 40 stb %g1, [ %o5 + 0x340 ] c = 'a'; 2004948: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200494c: c2 2b 63 40 stb %g1, [ %o5 + 0x340 ] <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { 2004950: c2 04 60 08 ld [ %l1 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 2004954: c4 06 80 00 ld [ %i2 ], %g2 if (!tty->refcount++) { 2004958: 86 00 60 01 add %g1, 1, %g3 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 200495c: e2 20 a0 28 st %l1, [ %g2 + 0x28 ] if (!tty->refcount++) { 2004960: 80 a0 60 00 cmp %g1, 0 2004964: 12 80 00 1f bne 20049e0 2004968: c6 24 60 08 st %g3, [ %l1 + 8 ] if (tty->device.firstOpen) 200496c: c2 04 60 98 ld [ %l1 + 0x98 ], %g1 2004970: 80 a0 60 00 cmp %g1, 0 2004974: 02 80 00 05 be 2004988 2004978: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 200497c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2004980: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004984: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004988: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 200498c: 80 a0 60 02 cmp %g1, 2 2004990: 12 80 00 15 bne 20049e4 2004994: 03 00 80 59 sethi %hi(0x2016400), %g1 sc = rtems_task_start(tty->rxTaskId, 2004998: d0 04 60 c4 ld [ %l1 + 0xc4 ], %o0 <== NOT EXECUTED 200499c: 13 00 80 12 sethi %hi(0x2004800), %o1 <== NOT EXECUTED 20049a0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 20049a4: 40 00 03 c9 call 20058c8 <== NOT EXECUTED 20049a8: 92 12 62 90 or %o1, 0x290, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 20049ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20049b0: 12 80 00 0a bne 20049d8 <== NOT EXECUTED 20049b4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 20049b8: d0 04 60 c8 ld [ %l1 + 0xc8 ], %o0 <== NOT EXECUTED 20049bc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 20049c0: 13 00 80 12 sethi %hi(0x2004800), %o1 <== NOT EXECUTED 20049c4: 40 00 03 c1 call 20058c8 <== NOT EXECUTED 20049c8: 92 12 62 14 or %o1, 0x214, %o1 ! 2004a14 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 20049cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20049d0: 02 80 00 05 be 20049e4 <== NOT EXECUTED 20049d4: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 20049d8: 40 00 04 5d call 2005b4c <== NOT EXECUTED 20049dc: 01 00 00 00 nop <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 20049e0: 03 00 80 59 sethi %hi(0x2016400), %g1 20049e4: d0 00 63 40 ld [ %g1 + 0x340 ], %o0 ! 2016740 20049e8: 40 00 02 e0 call 2005568 20049ec: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } 20049f0: 81 c7 e0 08 ret 20049f4: 91 e8 00 13 restore %g0, %l3, %o0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 20049f8: 40 00 15 67 call 2009f94 20049fc: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 2004a00: a2 92 20 00 orcc %o0, 0, %l1 2004a04: 12 bf ff 02 bne 200460c 2004a08: a0 10 00 11 mov %l1, %l0 */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 2004a0c: 10 bf ff 0c b 200463c <== NOT EXECUTED 2004a10: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED 0200332c : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 200332c: 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) { 2003330: 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) { 2003334: 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) { 2003338: 80 a0 60 00 cmp %g1, 0 200333c: 12 80 00 08 bne 200335c 2003340: a2 10 00 18 mov %i0, %l1 (*tty->device.write)(tty->minor, (void *)buf, len); 2003344: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 2003348: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 200334c: 9f c0 40 00 call %g1 2003350: 94 10 00 19 mov %i1, %o2 2003354: 81 c7 e0 08 ret 2003358: 81 e8 00 00 restore return; } newHead = tty->rawOutBuf.Head; 200335c: e0 06 a0 80 ld [ %i2 + 0x80 ], %l0 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 2003360: a6 10 20 02 mov 2, %l3 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 2003364: 10 80 00 39 b 2003448 <== NOT EXECUTED 2003368: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 200336c: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED 2003370: 40 00 3f 8b call 201319c <.urem> <== NOT EXECUTED 2003374: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED rtems_interrupt_disable (level); 2003378: 7f ff fa 72 call 2001d40 <== NOT EXECUTED 200337c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2003380: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2003384: 30 80 00 0f b,a 20033c0 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 2003388: 7f ff fa 72 call 2001d50 <== NOT EXECUTED 200338c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003390: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED 2003394: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003398: 40 00 08 2d call 200544c <== NOT EXECUTED 200339c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 20033a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20033a4: 02 80 00 04 be 20033b4 <== NOT EXECUTED 20033a8: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 20033ac: 40 00 09 e8 call 2005b4c <== NOT EXECUTED 20033b0: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 20033b4: 7f ff fa 63 call 2001d40 <== NOT EXECUTED 20033b8: 01 00 00 00 nop <== NOT EXECUTED 20033bc: 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) { 20033c0: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED 20033c4: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 20033c8: 22 bf ff f0 be,a 2003388 <== NOT EXECUTED 20033cc: e6 26 a0 94 st %l3, [ %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++; 20033d0: c6 06 a0 80 ld [ %i2 + 0x80 ], %g3 <== NOT EXECUTED 20033d4: c4 0c 40 00 ldub [ %l1 ], %g2 <== NOT EXECUTED 20033d8: c2 06 a0 7c ld [ %i2 + 0x7c ], %g1 <== NOT EXECUTED 20033dc: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 20033e0: c2 06 a0 94 ld [ %i2 + 0x94 ], %g1 <== 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; 20033e4: e0 26 a0 80 st %l0, [ %i2 + 0x80 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 20033e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20033ec: 32 80 00 14 bne,a 200343c <== NOT EXECUTED 20033f0: a2 04 60 01 inc %l1 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 20033f4: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 20033f8: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 20033fc: 12 80 00 0b bne 2003428 <== NOT EXECUTED 2003400: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003404: d2 06 a0 84 ld [ %i2 + 0x84 ], %o1 <== NOT EXECUTED 2003408: c2 06 a0 7c ld [ %i2 + 0x7c ], %g1 <== NOT EXECUTED 200340c: c4 06 a0 a4 ld [ %i2 + 0xa4 ], %g2 <== NOT EXECUTED 2003410: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 2003414: 92 00 40 09 add %g1, %o1, %o1 <== NOT EXECUTED 2003418: 9f c0 80 00 call %g2 <== NOT EXECUTED 200341c: 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; 2003420: 10 80 00 06 b 2003438 <== NOT EXECUTED 2003424: e4 26 a0 94 st %l2, [ %i2 + 0x94 ] <== 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; 2003428: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 200342c: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 2003430: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 2003434: e4 26 a0 94 st %l2, [ %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++; 2003438: a2 04 60 01 inc %l1 <== NOT EXECUTED /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); 200343c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2003440: 7f ff fa 44 call 2001d50 <== NOT EXECUTED 2003444: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 2003448: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 200344c: 12 bf ff c8 bne 200336c <== NOT EXECUTED 2003450: 01 00 00 00 nop <== NOT EXECUTED 2003454: 81 c7 e0 08 ret <== NOT EXECUTED 2003458: 81 e8 00 00 restore <== NOT EXECUTED 02003bf4 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003bf4: 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; 2003bf8: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 2003bfc: e6 06 20 0c ld [ %i0 + 0xc ], %l3 <== 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; 2003c00: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 2003c04: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003c08: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003c0c: 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); 2003c10: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003c14: 40 00 06 0e call 200544c <== NOT EXECUTED 2003c18: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2003c1c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2003c20: 12 80 00 10 bne 2003c60 <== NOT EXECUTED 2003c24: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 2003c28: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED 2003c2c: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 2003c30: 82 10 60 54 or %g1, 0x54, %g1 <== NOT EXECUTED 2003c34: 84 00 a0 08 add %g2, 8, %g2 <== NOT EXECUTED 2003c38: c2 00 40 02 ld [ %g1 + %g2 ], %g1 <== NOT EXECUTED 2003c3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003c40: 02 80 00 0a be 2003c68 <== NOT EXECUTED 2003c44: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 2003c48: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003c4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003c50: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2003c54: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 2003c58: 40 00 06 44 call 2005568 <== NOT EXECUTED 2003c5c: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED 2003c60: 81 c7 e0 08 ret <== NOT EXECUTED 2003c64: 81 e8 00 00 restore <== NOT EXECUTED return sc; } if (tty->cindex == tty->ccount) { 2003c68: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2003c6c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003c70: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003c74: 12 80 00 d0 bne 2003fb4 <== NOT EXECUTED 2003c78: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2003c7c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED if (tty->device.pollRead != NULL 2003c80: 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; 2003c84: 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; 2003c88: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2003c8c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003c90: 02 80 00 5b be 2003dfc <== NOT EXECUTED 2003c94: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED 2003c98: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 2003c9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ca0: 12 80 00 58 bne 2003e00 <== NOT EXECUTED 2003ca4: 03 00 80 57 sethi %hi(0x2015c00), %g1 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2003ca8: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003cac: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003cb0: 22 80 00 13 be,a 2003cfc <== NOT EXECUTED 2003cb4: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003cb8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003cbc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003cc0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2003cc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003cc8: 16 80 00 06 bge 2003ce0 <== NOT EXECUTED 2003ccc: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); 2003cd0: 40 00 07 19 call 2005934 <== NOT EXECUTED 2003cd4: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED { int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003cd8: 10 bf ff f9 b 2003cbc <== NOT EXECUTED 2003cdc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) 2003ce0: 7f ff ff 63 call 2003a6c <== NOT EXECUTED 2003ce4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003ce8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003cec: 22 bf ff f4 be,a 2003cbc <== NOT EXECUTED 2003cf0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003cf4: 10 80 00 b0 b 2003fb4 <== NOT EXECUTED 2003cf8: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2003cfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d00: 12 80 00 0a bne 2003d28 <== NOT EXECUTED 2003d04: a4 07 bf f4 add %fp, -12, %l2 <== NOT EXECUTED 2003d08: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 2003d0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d10: 02 80 00 07 be 2003d2c <== NOT EXECUTED 2003d14: a2 07 bf f0 add %fp, -16, %l1 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 2003d18: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2003d1c: 40 00 03 7e call 2004b14 <== NOT EXECUTED 2003d20: 92 07 bf f4 add %fp, -12, %o1 <== 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); 2003d24: a4 07 bf f4 add %fp, -12, %l2 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 2003d28: 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); 2003d2c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003d30: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003d34: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2003d38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003d3c: 36 80 00 1e bge,a 2003db4 <== NOT EXECUTED 2003d40: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 2003d44: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2003d48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d4c: 02 80 00 0a be 2003d74 <== NOT EXECUTED 2003d50: c4 0c 20 46 ldub [ %l0 + 0x46 ], %g2 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 2003d54: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003d58: 02 80 00 13 be 2003da4 <== NOT EXECUTED 2003d5c: 01 00 00 00 nop <== NOT EXECUTED 2003d60: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003d64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d68: 02 80 00 0f be 2003da4 <== NOT EXECUTED 2003d6c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2003d70: 30 80 00 04 b,a 2003d80 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 2003d74: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003d78: 02 80 00 8e be 2003fb0 <== NOT EXECUTED 2003d7c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 2003d80: 40 00 03 65 call 2004b14 <== NOT EXECUTED 2003d84: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 2003d88: c6 04 20 54 ld [ %l0 + 0x54 ], %g3 <== NOT EXECUTED 2003d8c: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 2003d90: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2003d94: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 2003d98: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003d9c: 18 80 00 86 bgu 2003fb4 <== NOT EXECUTED 2003da0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 2003da4: 40 00 06 e4 call 2005934 <== NOT EXECUTED 2003da8: 90 10 20 01 mov 1, %o0 <== 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); 2003dac: 10 bf ff e1 b 2003d30 <== NOT EXECUTED 2003db0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 2003db4: 7f ff ff 2e call 2003a6c <== NOT EXECUTED 2003db8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2003dbc: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 2003dc0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003dc4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003dc8: 16 80 00 7a bge 2003fb0 <== NOT EXECUTED 2003dcc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2003dd0: 22 bf ff d8 be,a 2003d30 <== NOT EXECUTED 2003dd4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003dd8: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 2003ddc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003de0: 22 bf ff d4 be,a 2003d30 <== NOT EXECUTED 2003de4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 2003de8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2003dec: 40 00 03 4a call 2004b14 <== NOT EXECUTED 2003df0: 90 10 20 02 mov 2, %o0 <== 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); 2003df4: 10 bf ff cf b 2003d30 <== NOT EXECUTED 2003df8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003dfc: 03 00 80 57 sethi %hi(0x2015c00), %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; 2003e00: e4 04 20 74 ld [ %l0 + 0x74 ], %l2 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003e04: ba 10 63 34 or %g1, 0x334, %i5 <== 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, 2003e08: ae 04 20 49 add %l0, 0x49, %l7 <== NOT EXECUTED 2003e0c: 10 80 00 60 b 2003f8c <== NOT EXECUTED 2003e10: a2 10 20 01 mov 1, %l1 <== 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; 2003e14: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 2003e18: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003e1c: 40 00 3c e0 call 201319c <.urem> <== NOT EXECUTED 2003e20: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2003e24: 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; 2003e28: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2003e2c: e2 08 40 08 ldub [ %g1 + %o0 ], %l1 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2003e30: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 2003e34: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2003e38: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 2003e3c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003e40: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED 2003e44: 40 00 3c d6 call 201319c <.urem> <== NOT EXECUTED 2003e48: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED 2003e4c: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 2003e50: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003e54: 3a 80 00 27 bcc,a 2003ef0 <== NOT EXECUTED 2003e58: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 2003e5c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003e60: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2003e64: 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)) 2003e68: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003e6c: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED 2003e70: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED 2003e74: 12 80 00 11 bne 2003eb8 <== NOT EXECUTED 2003e78: 01 00 00 00 nop <== NOT EXECUTED 2003e7c: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 2003e80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e84: 22 80 00 07 be,a 2003ea0 <== NOT EXECUTED 2003e88: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003e8c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003e90: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003e94: 02 80 00 09 be 2003eb8 <== NOT EXECUTED 2003e98: 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, 2003e9c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003ea0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2003ea4: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 2003ea8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003eac: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2003eb0: 10 80 00 10 b 2003ef0 <== NOT EXECUTED 2003eb4: c2 04 20 3c ld [ %l0 + 0x3c ], %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) { 2003eb8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003ebc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2003ec0: 22 80 00 0c be,a 2003ef0 <== NOT EXECUTED 2003ec4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 2003ec8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2003ecc: 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; 2003ed0: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 2003ed4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2003ed8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003edc: 22 80 00 05 be,a 2003ef0 <== NOT EXECUTED 2003ee0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 2003ee4: 9f c0 80 00 call %g2 <== NOT EXECUTED 2003ee8: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2003eec: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003ef0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003ef4: 02 80 00 09 be 2003f18 <== NOT EXECUTED 2003ef8: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 2003efc: 7f ff fe dc call 2003a6c <== NOT EXECUTED 2003f00: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003f04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003f08: 32 80 00 0c bne,a 2003f38 <== NOT EXECUTED 2003f0c: a8 10 20 00 clr %l4 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2003f10: 10 80 00 0b b 2003f3c <== NOT EXECUTED 2003f14: d4 04 20 70 ld [ %l0 + 0x70 ], %o2 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 2003f18: 7f ff fe d5 call 2003a6c <== NOT EXECUTED 2003f1c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2003f20: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 2003f24: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003f28: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003f2c: 26 80 00 04 bl,a 2003f3c <== NOT EXECUTED 2003f30: d4 04 20 70 ld [ %l0 + 0x70 ], %o2 <== NOT EXECUTED 2003f34: a8 10 20 00 clr %l4 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2003f38: d4 04 20 70 ld [ %l0 + 0x70 ], %o2 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003f3c: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2003f40: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2003f44: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003f48: 02 80 00 08 be 2003f68 <== NOT EXECUTED 2003f4c: a2 10 00 14 mov %l4, %l1 <== NOT EXECUTED 2003f50: c2 07 40 00 ld [ %i5 ], %g1 <== NOT EXECUTED 2003f54: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003f58: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003f5c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003f60: 06 bf ff ad bl 2003e14 <== NOT EXECUTED 2003f64: 01 00 00 00 nop <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2003f68: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 2003f6c: 02 80 00 11 be 2003fb0 <== NOT EXECUTED 2003f70: a4 10 00 0a mov %o2, %l2 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 2003f74: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2003f78: 40 00 05 35 call 200544c <== NOT EXECUTED 2003f7c: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 2003f80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003f84: 12 80 00 0c bne 2003fb4 <== NOT EXECUTED 2003f88: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { 2003f8c: a8 10 00 11 mov %l1, %l4 <== NOT EXECUTED 2003f90: 10 bf ff eb b 2003f3c <== NOT EXECUTED 2003f94: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 2003f98: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED count--; 2003f9c: a6 04 ff ff add %l3, -1, %l3 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 2003fa0: c2 08 40 02 ldub [ %g1 + %g2 ], %g1 <== NOT EXECUTED 2003fa4: c2 2d 40 00 stb %g1, [ %l5 ] <== NOT EXECUTED 2003fa8: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED 2003fac: aa 05 60 01 inc %l5 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003fb0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2003fb4: 22 80 00 08 be,a 2003fd4 <== NOT EXECUTED 2003fb8: c2 05 a0 0c ld [ %l6 + 0xc ], %g1 <== NOT EXECUTED 2003fbc: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2003fc0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003fc4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fc8: 06 bf ff f4 bl 2003f98 <== NOT EXECUTED 2003fcc: 86 00 a0 01 add %g2, 1, %g3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2003fd0: c2 05 a0 0c ld [ %l6 + 0xc ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2003fd4: 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; 2003fd8: 82 20 40 13 sub %g1, %l3, %g1 <== NOT EXECUTED 2003fdc: c2 25 a0 14 st %g1, [ %l6 + 0x14 ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2003fe0: 40 00 05 62 call 2005568 <== NOT EXECUTED 2003fe4: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 2003fe8: 81 c7 e0 08 ret <== NOT EXECUTED 2003fec: 81 e8 00 00 restore <== NOT EXECUTED 02002da0 : * 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) { 2002da0: 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)) 2002da4: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2002da8: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED 2002dac: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED 2002db0: 12 80 00 10 bne 2002df0 <== NOT EXECUTED 2002db4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 2002db8: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2002dbc: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2002dc0: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 2002dc4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002dc8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2002dcc: 7f ff fb dd call 2001d40 <== NOT EXECUTED 2002dd0: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2002dd4: c2 06 20 90 ld [ %i0 + 0x90 ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002dd8: 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--; 2002ddc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002de0: 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--; 2002de4: c2 26 20 90 st %g1, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002de8: c4 26 20 b8 st %g2, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002dec: 30 80 00 12 b,a 2002e34 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 2002df0: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2002df4: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2002df8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002dfc: 12 80 00 12 bne 2002e44 <== NOT EXECUTED 2002e00: 92 06 20 49 add %i0, 0x49, %o1 <== 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, 2002e04: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2002e08: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2002e0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002e10: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2002e14: 7f ff fb cb call 2001d40 <== NOT EXECUTED 2002e18: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2002e1c: c2 06 20 90 ld [ %i0 + 0x90 ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002e20: 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--; 2002e24: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002e28: 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--; 2002e2c: c2 26 20 90 st %g1, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002e30: c4 26 20 b8 st %g2, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002e34: 7f ff fb c7 call 2001d50 <== NOT EXECUTED 2002e38: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2002e3c: 81 c7 e0 08 ret <== NOT EXECUTED 2002e40: 81 e8 00 00 restore <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2002e44: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED 2002e48: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2002e4c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2002e50: 12 80 00 0a bne 2002e78 <== NOT EXECUTED 2002e54: 01 00 00 00 nop <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 2002e58: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED 2002e5c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002e60: 12 bf ff f7 bne 2002e3c <== NOT EXECUTED 2002e64: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2002e68: 40 00 09 c0 call 2005568 <== NOT EXECUTED 2002e6c: d0 04 60 8c ld [ %l1 + 0x8c ], %o0 <== NOT EXECUTED 2002e70: 81 c7 e0 08 ret <== NOT EXECUTED 2002e74: 81 e8 00 00 restore <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 2002e78: 7f ff fb b2 call 2001d40 <== NOT EXECUTED 2002e7c: 01 00 00 00 nop <== NOT EXECUTED len = tty->t_dqlen; 2002e80: e0 06 20 90 ld [ %i0 + 0x90 ], %l0 <== NOT EXECUTED tty->t_dqlen = 0; 2002e84: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002e88: 7f ff fb b2 call 2001d50 <== NOT EXECUTED 2002e8c: 01 00 00 00 nop <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 2002e90: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED 2002e94: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED 2002e98: 40 00 40 c1 call 201319c <.urem> <== NOT EXECUTED 2002e9c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 2002ea0: 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; 2002ea4: d0 24 60 84 st %o0, [ %l1 + 0x84 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 2002ea8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002eac: 12 80 00 04 bne 2002ebc <== NOT EXECUTED 2002eb0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2002eb4: 40 00 09 ad call 2005568 <== NOT EXECUTED 2002eb8: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 2002ebc: c2 04 60 80 ld [ %l1 + 0x80 ], %g1 <== NOT EXECUTED 2002ec0: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 2002ec4: 12 80 00 0c bne 2002ef4 <== NOT EXECUTED 2002ec8: 01 00 00 00 nop <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2002ecc: c2 04 60 d4 ld [ %l1 + 0xd4 ], %g1 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2002ed0: c0 24 60 94 clr [ %l1 + 0x94 ] <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2002ed4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002ed8: 02 80 00 2c be 2002f88 <== NOT EXECUTED 2002edc: b0 10 20 00 clr %i0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 2002ee0: d2 04 60 d8 ld [ %l1 + 0xd8 ], %o1 <== NOT EXECUTED 2002ee4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002ee8: 90 04 60 30 add %l1, 0x30, %o0 <== NOT EXECUTED /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 2002eec: 10 80 00 27 b 2002f88 <== NOT EXECUTED 2002ef0: b0 10 20 00 clr %i0 <== 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)) 2002ef4: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2002ef8: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED 2002efc: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED 2002f00: 12 80 00 0d bne 2002f34 <== NOT EXECUTED 2002f04: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 2002f08: 7f ff fb 8e call 2001d40 <== NOT EXECUTED 2002f0c: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 2002f10: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2002f14: 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; 2002f18: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2002f1c: c4 24 60 94 st %g2, [ %l1 + 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; 2002f20: c2 24 60 b8 st %g1, [ %l1 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 2002f24: 7f ff fb 8b call 2001d50 <== NOT EXECUTED 2002f28: 01 00 00 00 nop <== NOT EXECUTED 2002f2c: 10 80 00 17 b 2002f88 <== NOT EXECUTED 2002f30: b0 10 20 00 clr %i0 ! 0 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 2002f34: c2 04 60 80 ld [ %l1 + 0x80 ], %g1 <== NOT EXECUTED 2002f38: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 2002f3c: 08 80 00 05 bleu 2002f50 <== NOT EXECUTED 2002f40: 01 00 00 00 nop <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 2002f44: c2 04 60 88 ld [ %l1 + 0x88 ], %g1 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 2002f48: 10 80 00 04 b 2002f58 <== NOT EXECUTED 2002f4c: b0 20 40 10 sub %g1, %l0, %i0 <== NOT EXECUTED 2002f50: c2 04 60 80 ld [ %l1 + 0x80 ], %g1 <== NOT EXECUTED 2002f54: b0 20 40 10 sub %g1, %l0, %i0 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 2002f58: c2 04 60 b8 ld [ %l1 + 0xb8 ], %g1 <== NOT EXECUTED 2002f5c: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED 2002f60: 32 80 00 02 bne,a 2002f68 <== NOT EXECUTED 2002f64: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 2002f68: d2 04 60 7c ld [ %l1 + 0x7c ], %o1 <== NOT EXECUTED 2002f6c: c4 04 60 a4 ld [ %l1 + 0xa4 ], %g2 <== NOT EXECUTED 2002f70: d0 04 60 10 ld [ %l1 + 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*/ 2002f74: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2002f78: 92 02 40 10 add %o1, %l0, %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*/ 2002f7c: c2 24 60 94 st %g1, [ %l1 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2002f80: 9f c0 80 00 call %g2 <== NOT EXECUTED 2002f84: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 2002f88: e0 24 60 84 st %l0, [ %l1 + 0x84 ] <== NOT EXECUTED } return nToSend; } 2002f8c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f90: 81 e8 00 00 restore <== NOT EXECUTED 02004a90 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 2004a90: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004a94: a2 07 bf f0 add %fp, -16, %l1 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 2004a98: a0 07 bf f7 add %fp, -9, %l0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004a9c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2004aa0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004aa4: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004aa8: 40 00 00 b9 call 2004d8c <== NOT EXECUTED 2004aac: 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) { 2004ab0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2004ab4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004ab8: 22 80 00 07 be,a 2004ad4 <== NOT EXECUTED 2004abc: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 2004ac0: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004ac4: 40 00 03 22 call 200574c <== NOT EXECUTED 2004ac8: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004acc: 10 bf ff f5 b 2004aa0 <== NOT EXECUTED 2004ad0: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 2004ad4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004ad8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 2004adc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2004ae0: 02 bf ff ef be 2004a9c <== NOT EXECUTED 2004ae4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 2004ae8: d0 2f bf f7 stb %o0, [ %fp + -9 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 2004aec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004af0: 7f ff f9 48 call 2003010 <== NOT EXECUTED 2004af4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004af8: 10 bf ff ea b 2004aa0 <== NOT EXECUTED 2004afc: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 02002d88 : 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); 2002d88: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 2002d8c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2002d90: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002d94: 40 00 08 60 call 2004f14 <== NOT EXECUTED 2002d98: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2002d9c: 01 00 00 00 nop 02004a14 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 2004a14: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a18: 03 00 80 59 sethi %hi(0x2016400), %g1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a1c: a0 07 bf f4 add %fp, -12, %l0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a20: a2 10 60 54 or %g1, 0x54, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a24: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004a28: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004a2c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004a30: 40 00 00 d7 call 2004d8c <== NOT EXECUTED 2004a34: 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) { 2004a38: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2004a3c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004a40: 02 80 00 07 be 2004a5c <== NOT EXECUTED 2004a44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 2004a48: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004a4c: 40 00 03 40 call 200574c <== NOT EXECUTED 2004a50: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a54: 10 bf ff f5 b 2004a28 <== NOT EXECUTED 2004a58: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a5c: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2004a60: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004a64: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 2004a68: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2004a6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004a70: 02 80 00 04 be 2004a80 <== NOT EXECUTED 2004a74: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2004a78: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004a7c: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 2004a80: 7f ff f8 c8 call 2002da0 <== NOT EXECUTED 2004a84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a88: 10 bf ff e8 b 2004a28 <== NOT EXECUTED 2004a8c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 02003abc : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003abc: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003ac0: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003ac4: 92 10 20 00 clr %o1 rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003ac8: e4 00 60 28 ld [ %g1 + 0x28 ], %l2 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003acc: 94 10 20 00 clr %o2 2003ad0: 40 00 06 5f call 200544c 2003ad4: d0 04 a0 18 ld [ %l2 + 0x18 ], %o0 if (sc != RTEMS_SUCCESSFUL) 2003ad8: a6 92 20 00 orcc %o0, 0, %l3 2003adc: 12 80 00 25 bne 2003b70 2003ae0: 03 00 80 59 sethi %hi(0x2016400), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2003ae4: c4 04 a0 cc ld [ %l2 + 0xcc ], %g2 2003ae8: 85 28 a0 05 sll %g2, 5, %g2 2003aec: 82 10 60 54 or %g1, 0x54, %g1 2003af0: 82 00 40 02 add %g1, %g2, %g1 2003af4: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2003af8: 80 a0 60 00 cmp %g1, 0 2003afc: 02 80 00 06 be 2003b14 2003b00: 92 10 00 18 mov %i0, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2003b04: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003b08: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2003b0c: 10 80 00 17 b 2003b68 <== NOT EXECUTED 2003b10: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 2003b14: c2 04 a0 34 ld [ %l2 + 0x34 ], %g1 2003b18: d2 06 20 0c ld [ %i0 + 0xc ], %o1 2003b1c: 80 88 60 01 btst 1, %g1 2003b20: 02 80 00 0e be 2003b58 2003b24: d0 06 20 08 ld [ %i0 + 8 ], %o0 uint32_t count = args->count; 2003b28: a2 10 00 09 mov %o1, %l1 char *buffer = args->buffer; 2003b2c: 10 80 00 06 b 2003b44 2003b30: a0 10 00 08 mov %o0, %l0 while (count--) oproc (*buffer++, tty); 2003b34: a2 04 7f ff add %l1, -1, %l1 2003b38: a0 04 20 01 inc %l0 2003b3c: 7f ff fe 48 call 200345c 2003b40: 92 10 00 12 mov %l2, %o1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2003b44: 80 a4 60 00 cmp %l1, 0 2003b48: 32 bf ff fb bne,a 2003b34 2003b4c: d0 0c 00 00 ldub [ %l0 ], %o0 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2003b50: 10 80 00 05 b 2003b64 2003b54: c2 06 20 0c ld [ %i0 + 0xc ], %g1 while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2003b58: 7f ff fd f5 call 200332c <== NOT EXECUTED 2003b5c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 2003b60: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED 2003b64: c2 26 20 14 st %g1, [ %i0 + 0x14 ] } rtems_semaphore_release (tty->osem); 2003b68: 40 00 06 80 call 2005568 2003b6c: d0 04 a0 18 ld [ %l2 + 0x18 ], %o0 return sc; } 2003b70: 81 c7 e0 08 ret 2003b74: 91 e8 00 13 restore %g0, %l3, %o0 020113b8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 20113b8: 9d e3 bf 90 save %sp, -112, %sp 20113bc: a4 10 00 18 mov %i0, %l2 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 20113c0: 80 a6 60 00 cmp %i1, 0 20113c4: 02 80 00 1c be 2011434 20113c8: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; if ( !routine ) 20113cc: 80 a6 a0 00 cmp %i2, 0 20113d0: 02 80 00 19 be 2011434 20113d4: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 20113d8: 11 00 80 c1 sethi %hi(0x2030400), %o0 20113dc: 92 10 00 12 mov %l2, %o1 20113e0: 90 12 23 40 or %o0, 0x340, %o0 20113e4: 40 00 0a c8 call 2013f04 <_Objects_Get> 20113e8: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 20113ec: c2 07 bf f4 ld [ %fp + -12 ], %g1 20113f0: a0 10 00 08 mov %o0, %l0 20113f4: 80 a0 60 00 cmp %g1, 0 20113f8: 12 80 00 0f bne 2011434 20113fc: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 2011400: a2 02 20 10 add %o0, 0x10, %l1 2011404: 40 00 13 59 call 2016168 <_Watchdog_Remove> 2011408: 90 10 00 11 mov %l1, %o0 _ISR_Disable( level ); 201140c: 7f ff e8 3b call 200b4f8 2011410: 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 ) { 2011414: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2011418: 80 a0 60 00 cmp %g1, 0 201141c: 22 80 00 08 be,a 201143c 2011420: f4 24 20 2c st %i2, [ %l0 + 0x2c ] _ISR_Enable( level ); 2011424: 7f ff e8 39 call 200b508 <== NOT EXECUTED 2011428: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); 201142c: 40 00 0d 24 call 20148bc <_Thread_Enable_dispatch> <== NOT EXECUTED 2011430: 01 00 00 00 nop <== NOT EXECUTED 2011434: 81 c7 e0 08 ret 2011438: 81 e8 00 00 restore void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 201143c: e4 24 20 30 st %l2, [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 2011440: 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; 2011444: c0 24 20 38 clr [ %l0 + 0x38 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011448: c0 24 20 18 clr [ %l0 + 0x18 ] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 201144c: 7f ff e8 2f call 200b508 2011450: b0 10 20 00 clr %i0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 2011454: 92 10 00 11 mov %l1, %o1 2011458: 11 00 80 c1 sethi %hi(0x2030400), %o0 201145c: 90 12 21 04 or %o0, 0x104, %o0 ! 2030504 <_Watchdog_Ticks_chain> 2011460: 40 00 12 e8 call 2016000 <_Watchdog_Insert> 2011464: f2 24 20 1c st %i1, [ %l0 + 0x1c ] _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 2011468: 40 00 0d 15 call 20148bc <_Thread_Enable_dispatch> 201146c: 01 00 00 00 nop case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2011470: 81 c7 e0 08 ret 2011474: 81 e8 00 00 restore 0201187c : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 201187c: 9d e3 bf 90 save %sp, -112, %sp */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 2011880: 80 a6 20 00 cmp %i0, 0 2011884: 02 80 00 06 be 201189c 2011888: 82 10 20 00 clr %g1 201188c: 03 00 80 ac sethi %hi(0x202b000), %g1 2011890: c2 08 62 d4 ldub [ %g1 + 0x2d4 ], %g1 ! 202b2d4 2011894: 80 a0 40 18 cmp %g1, %i0 2011898: 82 60 3f ff subx %g0, -1, %g1 * Make sure the requested priority is valid. The if is * structured so we check it is invalid before looking for * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { 201189c: 80 a0 60 00 cmp %g1, 0 20118a0: 12 80 00 06 bne 20118b8 20118a4: a2 10 00 18 mov %i0, %l1 if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) 20118a8: 80 a6 3f ff cmp %i0, -1 20118ac: 12 80 00 56 bne 2011a04 20118b0: 90 10 20 13 mov 0x13, %o0 20118b4: a2 10 20 00 clr %l1 20118b8: 05 00 80 c1 sethi %hi(0x2030400), %g2 20118bc: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 ! 2030420 <_Thread_Dispatch_disable_level> 20118c0: 82 00 60 01 inc %g1 20118c4: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 20118c8: 31 00 80 af sethi %hi(0x202bc00), %i0 initialized = true; 20118cc: 82 10 20 01 mov 1, %g1 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 20118d0: e0 0e 21 94 ldub [ %i0 + 0x194 ], %l0 initialized = true; _Thread_Enable_dispatch(); 20118d4: 40 00 0b fa call 20148bc <_Thread_Enable_dispatch> 20118d8: c2 2e 21 94 stb %g1, [ %i0 + 0x194 ] if ( tmpInitialized ) 20118dc: 80 a4 20 00 cmp %l0, 0 20118e0: 12 80 00 49 bne 2011a04 20118e4: 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); 20118e8: 05 00 80 c0 sethi %hi(0x2030000), %g2 20118ec: 82 10 a3 34 or %g2, 0x334, %g1 ! 2030334 <_Timer_To_be_inserted> the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 20118f0: 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; 20118f4: 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); 20118f8: 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( 20118fc: 92 10 00 11 mov %l1, %o1 2011900: 94 10 00 19 mov %i1, %o2 2011904: 19 00 00 20 sethi %hi(0x8000), %o4 2011908: c2 20 a3 34 st %g1, [ %g2 + 0x334 ] 201190c: 98 16 80 0c or %i2, %o4, %o4 2011910: 11 15 12 53 sethi %hi(0x54494c00), %o0 2011914: 96 10 21 00 mov 0x100, %o3 2011918: 90 12 21 45 or %o0, 0x145, %o0 201191c: 7f ff fc 77 call 2010af8 2011920: 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) { 2011924: 80 a2 20 00 cmp %o0, 0 2011928: 02 80 00 04 be 2011938 201192c: 03 00 80 c0 sethi %hi(0x2030000), %g1 initialized = false; 2011930: 10 80 00 35 b 2011a04 2011934: c0 2e 21 94 clrb [ %i0 + 0x194 ] * 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( 2011938: 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 ) 201193c: 86 10 62 d4 or %g1, 0x2d4, %g3 2011940: c4 10 e0 10 lduh [ %g3 + 0x10 ], %g2 2011944: 03 00 00 3f sethi %hi(0xfc00), %g1 2011948: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 201194c: 82 0a c0 01 and %o3, %g1, %g1 2011950: 80 a0 40 02 cmp %g1, %g2 2011954: 18 80 00 05 bgu 2011968 2011958: 98 10 20 00 clr %o4 return NULL; return information->local_table[ index ]; 201195c: c4 00 e0 1c ld [ %g3 + 0x1c ], %g2 2011960: 83 28 60 02 sll %g1, 2, %g1 2011964: d8 00 80 01 ld [ %g2 + %g1 ], %o4 2011968: 1b 00 80 c0 sethi %hi(0x2030000), %o5 201196c: 82 13 63 28 or %o5, 0x328, %g1 ! 2030328 <_Timer_Seconds_chain> the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2011970: 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; 2011974: 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); 2011978: 82 00 60 04 add %g1, 4, %g1 201197c: c2 23 63 28 st %g1, [ %o5 + 0x328 ] 2011980: 03 00 80 c1 sethi %hi(0x2030400), %g1 2011984: 09 00 80 c0 sethi %hi(0x2030000), %g4 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 2011988: c0 23 20 6c clr [ %o4 + 0x6c ] 201198c: 84 11 23 14 or %g4, 0x314, %g2 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2011990: c0 23 20 50 clr [ %o4 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; 2011994: d6 23 20 68 st %o3, [ %o4 + 0x68 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2011998: 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; 201199c: c0 20 a0 04 clr [ %g2 + 4 ] 20119a0: d8 20 63 84 st %o4, [ %g1 + 0x384 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 20119a4: 84 00 a0 04 add %g2, 4, %g2 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 20119a8: 07 00 80 51 sethi %hi(0x2014400), %g3 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20119ac: 03 00 80 c0 sethi %hi(0x2030000), %g1 the_watchdog->routine = routine; 20119b0: 86 10 e2 f8 or %g3, 0x2f8, %g3 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20119b4: 82 10 63 40 or %g1, 0x340, %g1 the_watchdog->routine = routine; 20119b8: c6 23 20 64 st %g3, [ %o4 + 0x64 ] 20119bc: c4 21 23 14 st %g2, [ %g4 + 0x314 ] 20119c0: c6 20 60 1c st %g3, [ %g1 + 0x1c ] the_watchdog->id = id; the_watchdog->user_data = user_data; 20119c4: c0 20 60 24 clr [ %g1 + 0x24 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20119c8: c0 20 60 08 clr [ %g1 + 8 ] the_watchdog->routine = routine; the_watchdog->id = id; 20119cc: 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; 20119d0: 05 00 80 c1 sethi %hi(0x2030400), %g2 20119d4: 03 00 80 46 sethi %hi(0x2011800), %g1 20119d8: 82 10 62 0c or %g1, 0x20c, %g1 ! 2011a0c <_Timer_Server_schedule_operation_method> /* * Start the timer server */ status = rtems_task_start( 20119dc: 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; 20119e0: c2 20 a3 80 st %g1, [ %g2 + 0x380 ] /* * Start the timer server */ status = rtems_task_start( 20119e4: 13 00 80 46 sethi %hi(0x2011800), %o1 20119e8: 94 10 20 00 clr %o2 20119ec: 7f ff fd 99 call 2011050 20119f0: 92 12 62 bc or %o1, 0x2bc, %o1 id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 20119f4: 80 a2 20 00 cmp %o0, 0 20119f8: 02 80 00 03 be 2011a04 20119fc: 03 00 80 af sethi %hi(0x202bc00), %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; 2011a00: c0 28 61 94 clrb [ %g1 + 0x194 ] ! 202bd94 <== NOT EXECUTED } return status; } 2011a04: 81 c7 e0 08 ret 2011a08: 91 e8 00 08 restore %g0, %o0, %o0 020115f0 : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 20115f0: 9d e3 bf 90 save %sp, -112, %sp 20115f4: 11 00 80 c1 sethi %hi(0x2030400), %o0 20115f8: 92 10 00 18 mov %i0, %o1 20115fc: 90 12 23 40 or %o0, 0x340, %o0 2011600: 40 00 0a 41 call 2013f04 <_Objects_Get> 2011604: 94 07 bf f4 add %fp, -12, %o2 Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 2011608: c2 07 bf f4 ld [ %fp + -12 ], %g1 201160c: a0 10 00 08 mov %o0, %l0 2011610: 80 a0 60 00 cmp %g1, 0 2011614: 12 80 00 19 bne 2011678 2011618: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 201161c: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2011620: 80 a0 60 01 cmp %g1, 1 2011624: 22 80 00 0f be,a 2011660 2011628: 31 00 80 c1 sethi %hi(0x2030400), %i0 201162c: 2a 80 00 06 bcs,a 2011644 2011630: a0 02 20 10 add %o0, 0x10, %l0 2011634: 80 a0 60 04 cmp %g1, 4 2011638: 18 80 00 1c bgu 20116a8 201163c: 01 00 00 00 nop 2011640: 30 80 00 16 b,a 2011698 case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 2011644: 40 00 12 c9 call 2016168 <_Watchdog_Remove> 2011648: 90 10 00 10 mov %l0, %o0 _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 201164c: 92 10 00 10 mov %l0, %o1 2011650: 11 00 80 c1 sethi %hi(0x2030400), %o0 2011654: 40 00 12 6b call 2016000 <_Watchdog_Insert> 2011658: 90 12 21 04 or %o0, 0x104, %o0 ! 2030504 <_Watchdog_Ticks_chain> 201165c: 30 80 00 13 b,a 20116a8 break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { 2011660: c2 06 23 80 ld [ %i0 + 0x380 ], %g1 2011664: 80 a0 60 00 cmp %g1, 0 2011668: 12 80 00 06 bne 2011680 201166c: 01 00 00 00 nop _Thread_Enable_dispatch(); 2011670: 40 00 0c 93 call 20148bc <_Thread_Enable_dispatch> <== NOT EXECUTED 2011674: b0 10 20 0e mov 0xe, %i0 ! e <== NOT EXECUTED 2011678: 81 c7 e0 08 ret 201167c: 81 e8 00 00 restore return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 2011680: 40 00 12 ba call 2016168 <_Watchdog_Remove> 2011684: 90 02 20 10 add %o0, 0x10, %o0 (*_Timer_Server_schedule_operation)( the_timer ); 2011688: c2 06 23 80 ld [ %i0 + 0x380 ], %g1 201168c: 9f c0 40 00 call %g1 2011690: 90 10 00 10 mov %l0, %o0 2011694: 30 80 00 05 b,a 20116a8 break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); 2011698: 40 00 0c 89 call 20148bc <_Thread_Enable_dispatch> 201169c: b0 10 20 0b mov 0xb, %i0 20116a0: 81 c7 e0 08 ret 20116a4: 81 e8 00 00 restore return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 20116a8: 40 00 0c 85 call 20148bc <_Thread_Enable_dispatch> 20116ac: b0 10 20 00 clr %i0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 20116b0: 81 c7 e0 08 ret 20116b4: 81 e8 00 00 restore 020116b8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 20116b8: 9d e3 bf 90 save %sp, -112, %sp Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 20116bc: 03 00 80 c1 sethi %hi(0x2030400), %g1 20116c0: c2 00 63 84 ld [ %g1 + 0x384 ], %g1 ! 2030784 <_Timer_Server> Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 20116c4: a2 10 00 18 mov %i0, %l1 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 20116c8: 80 a0 60 00 cmp %g1, 0 20116cc: 02 80 00 1e be 2011744 20116d0: b0 10 20 0e mov 0xe, %i0 return RTEMS_INCORRECT_STATE; if ( !routine ) 20116d4: 80 a6 a0 00 cmp %i2, 0 20116d8: 02 80 00 1b be 2011744 20116dc: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 20116e0: 80 a6 60 00 cmp %i1, 0 20116e4: 02 80 00 18 be 2011744 20116e8: b0 10 20 0a mov 0xa, %i0 20116ec: 11 00 80 c1 sethi %hi(0x2030400), %o0 20116f0: 92 10 00 11 mov %l1, %o1 20116f4: 90 12 23 40 or %o0, 0x340, %o0 20116f8: 40 00 0a 03 call 2013f04 <_Objects_Get> 20116fc: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_NUMBER; 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 0e bne 2011744 2011710: b0 10 20 04 mov 4, %i0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 2011714: 40 00 12 95 call 2016168 <_Watchdog_Remove> 2011718: 90 02 20 10 add %o0, 0x10, %o0 _ISR_Disable( level ); 201171c: 7f ff e7 77 call 200b4f8 2011720: 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 ) { 2011724: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2011728: 80 a0 60 00 cmp %g1, 0 201172c: 02 80 00 08 be 201174c 2011730: 82 10 20 01 mov 1, %g1 _ISR_Enable( level ); 2011734: 7f ff e7 75 call 200b508 <== NOT EXECUTED 2011738: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); 201173c: 40 00 0c 60 call 20148bc <_Thread_Enable_dispatch> <== NOT EXECUTED 2011740: 01 00 00 00 nop <== NOT EXECUTED 2011744: 81 c7 e0 08 ret 2011748: 81 e8 00 00 restore Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 201174c: f4 24 20 2c st %i2, [ %l0 + 0x2c ] the_watchdog->id = id; 2011750: e2 24 20 30 st %l1, [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 2011754: 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; 2011758: f2 24 20 1c st %i1, [ %l0 + 0x1c ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 201175c: 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; 2011760: 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 ); 2011764: 7f ff e7 69 call 200b508 2011768: 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 ); 201176c: 03 00 80 c1 sethi %hi(0x2030400), %g1 2011770: c2 00 63 80 ld [ %g1 + 0x380 ], %g1 ! 2030780 <_Timer_Server_schedule_operation> 2011774: 9f c0 40 00 call %g1 2011778: 90 10 00 10 mov %l0, %o0 _Thread_Enable_dispatch(); 201177c: 40 00 0c 50 call 20148bc <_Thread_Enable_dispatch> 2011780: 01 00 00 00 nop case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2011784: 81 c7 e0 08 ret 2011788: 81 e8 00 00 restore 02006270 : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 2006270: 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) 2006274: 03 08 00 00 sethi %hi(0x20000000), %g1 <== NOT EXECUTED 2006278: a8 8e 00 01 andcc %i0, %g1, %l4 <== NOT EXECUTED 200627c: 02 80 00 11 be 20062c0 <== NOT EXECUTED 2006280: a6 10 00 18 mov %i0, %l3 <== NOT EXECUTED { if (rtems_panic_in_progress++) 2006284: 03 00 80 94 sethi %hi(0x2025000), %g1 <== NOT EXECUTED 2006288: c6 00 62 38 ld [ %g1 + 0x238 ], %g3 ! 2025238 <== NOT EXECUTED 200628c: 84 00 e0 01 add %g3, 1, %g2 <== NOT EXECUTED 2006290: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2006294: 02 80 00 07 be 20062b0 <== NOT EXECUTED 2006298: c4 20 62 38 st %g2, [ %g1 + 0x238 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200629c: 05 00 80 95 sethi %hi(0x2025400), %g2 <== NOT EXECUTED 20062a0: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 ! 2025420 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 20062a4: 82 00 60 01 inc %g1 <== NOT EXECUTED 20062a8: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 20062ac: 03 00 80 94 sethi %hi(0x2025000), %g1 <== NOT EXECUTED 20062b0: c2 00 62 38 ld [ %g1 + 0x238 ], %g1 ! 2025238 <== NOT EXECUTED 20062b4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 20062b8: 34 80 00 5b bg,a 2006424 <== NOT EXECUTED 20062bc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 20062c0: 03 00 80 91 sethi %hi(0x2024400), %g1 <== NOT EXECUTED 20062c4: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 2024420 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 20062c8: a4 10 20 00 clr %l2 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 20062cc: 40 00 3c 73 call 2015498 <== NOT EXECUTED 20062d0: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 20062d4: 03 1c 00 00 sethi %hi(0x70000000), %g1 <== NOT EXECUTED 20062d8: a0 2c c0 01 andn %l3, %g1, %l0 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 20062dc: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 20062e0: 80 8c c0 01 btst %l3, %g1 <== NOT EXECUTED 20062e4: 02 80 00 05 be 20062f8 <== NOT EXECUTED 20062e8: 23 00 80 91 sethi %hi(0x2024400), %l1 <== NOT EXECUTED local_errno = errno; 20062ec: 40 00 3b 9a call 2015154 <__errno> <== NOT EXECUTED 20062f0: 01 00 00 00 nop <== NOT EXECUTED 20062f4: e4 02 00 00 ld [ %o0 ], %l2 <== 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); 20062f8: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 20062fc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2006300: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2006304: 40 00 55 0e call 201b73c <== NOT EXECUTED 2006308: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 200630c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 2006310: 02 80 00 0e be 2006348 <== NOT EXECUTED 2006314: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2006318: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 200631c: 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)); 2006320: 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); 2006324: 11 00 80 82 sethi %hi(0x2020800), %o0 <== NOT EXECUTED 2006328: 40 00 29 45 call 201083c <== NOT EXECUTED 200632c: 90 12 23 78 or %o0, 0x378, %o0 ! 2020b78 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2006330: 13 00 80 81 sethi %hi(0x2020400), %o1 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 2006334: 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)); 2006338: 92 12 63 f8 or %o1, 0x3f8, %o1 <== NOT EXECUTED 200633c: 40 00 3d c2 call 2015a44 <== NOT EXECUTED 2006340: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2006344: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if (local_errno) 2006348: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 200634c: 02 80 00 1c be 20063bc <== NOT EXECUTED 2006350: 23 00 80 91 sethi %hi(0x2024400), %l1 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 2006354: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2006358: 04 80 00 11 ble 200639c <== NOT EXECUTED 200635c: 03 00 80 91 sethi %hi(0x2024400), %g1 <== NOT EXECUTED 2006360: 40 00 49 b5 call 2018a34 <== NOT EXECUTED 2006364: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2006368: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 200636c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006370: 02 80 00 0b be 200639c <== NOT EXECUTED 2006374: 03 00 80 91 sethi %hi(0x2024400), %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 2006378: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 2024420 <_impure_ptr> <== NOT EXECUTED 200637c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2006380: 40 00 49 ad call 2018a34 <== NOT EXECUTED 2006384: e0 00 60 0c ld [ %g1 + 0xc ], %l0 <== NOT EXECUTED 2006388: 13 00 80 82 sethi %hi(0x2020800), %o1 <== NOT EXECUTED 200638c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2006390: 92 12 60 08 or %o1, 8, %o1 <== NOT EXECUTED 2006394: 10 80 00 07 b 20063b0 <== NOT EXECUTED 2006398: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 200639c: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 20063a0: 13 00 80 82 sethi %hi(0x2020800), %o1 <== NOT EXECUTED 20063a4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20063a8: 92 12 60 18 or %o1, 0x18, %o1 <== NOT EXECUTED 20063ac: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 20063b0: 40 00 3d a5 call 2015a44 <== NOT EXECUTED 20063b4: 23 00 80 91 sethi %hi(0x2024400), %l1 <== NOT EXECUTED 20063b8: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 20063bc: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 20063c0: 13 00 80 84 sethi %hi(0x2021000), %o1 <== NOT EXECUTED 20063c4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20063c8: 40 00 3d 9f call 2015a44 <== NOT EXECUTED 20063cc: 92 12 60 80 or %o1, 0x80, %o1 <== NOT EXECUTED (void) fflush(stderr); 20063d0: c2 04 60 20 ld [ %l1 + 0x20 ], %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"); 20063d4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED (void) fflush(stderr); 20063d8: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20063dc: 40 00 3c 2f call 2015498 <== NOT EXECUTED 20063e0: b0 04 00 18 add %l0, %i0, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 20063e4: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 20063e8: 80 8c c0 01 btst %l3, %g1 <== NOT EXECUTED 20063ec: 02 80 00 0e be 2006424 <== NOT EXECUTED 20063f0: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 20063f4: 02 80 00 07 be 2006410 <== NOT EXECUTED 20063f8: 90 10 20 00 clr %o0 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 20063fc: 13 00 80 82 sethi %hi(0x2020800), %o1 <== NOT EXECUTED 2006400: 40 00 00 18 call 2006460 <== NOT EXECUTED 2006404: 92 12 60 30 or %o1, 0x30, %o1 ! 2020830 <== NOT EXECUTED _exit(local_errno); 2006408: 40 00 01 fe call 2006c00 <_exit> <== NOT EXECUTED 200640c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 2006410: 13 00 80 82 sethi %hi(0x2020800), %o1 <== NOT EXECUTED 2006414: 40 00 00 13 call 2006460 <== NOT EXECUTED 2006418: 92 12 60 48 or %o1, 0x48, %o1 ! 2020848 <== NOT EXECUTED abort(); 200641c: 40 00 3b 40 call 201511c <== NOT EXECUTED 2006420: 01 00 00 00 nop <== NOT EXECUTED } } return chars_written; } 2006424: 81 c7 e0 08 ret <== NOT EXECUTED 2006428: 81 e8 00 00 restore <== NOT EXECUTED 0201e6bc : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 201e6bc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 201e6c0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 <== NOT EXECUTED 201e6c4: a6 10 63 ff or %g1, 0x3ff, %l3 ! 7fffffff <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 201e6c8: 03 00 81 19 sethi %hi(0x2046400), %g1 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 201e6cc: a2 10 20 00 clr %l1 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 201e6d0: aa 10 60 68 or %g1, 0x68, %l5 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 201e6d4: a4 10 20 00 clr %l2 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 201e6d8: 03 00 81 19 sethi %hi(0x2046400), %g1 <== NOT EXECUTED 201e6dc: a8 10 60 58 or %g1, 0x58, %l4 ! 2046458 <__ctype_ptr> <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 201e6e0: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 201e6e4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 201e6e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e6ec: 16 80 00 07 bge 201e708 <== NOT EXECUTED 201e6f0: c2 26 20 04 st %g1, [ %i0 + 4 ] <== NOT EXECUTED 201e6f4: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 201e6f8: 40 00 4d 84 call 2031d08 <__srget_r> <== NOT EXECUTED 201e6fc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 201e700: 10 80 00 06 b 201e718 <== NOT EXECUTED 201e704: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 201e708: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED 201e70c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 201e710: e0 08 40 00 ldub [ %g1 ], %l0 <== NOT EXECUTED 201e714: c4 26 00 00 st %g2, [ %i0 ] <== NOT EXECUTED if (c == ':') 201e718: 80 a4 20 3a cmp %l0, 0x3a <== NOT EXECUTED 201e71c: 02 80 00 21 be 201e7a0 <== NOT EXECUTED 201e720: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; if (sign == 0) { 201e724: 32 80 00 09 bne,a 201e748 <== NOT EXECUTED 201e728: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 201e72c: 80 a4 20 2d cmp %l0, 0x2d <== NOT EXECUTED 201e730: 12 80 00 05 bne 201e744 <== NOT EXECUTED 201e734: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED sign = -1; limit++; 201e738: a6 04 e0 01 inc %l3 <== NOT EXECUTED 201e73c: 10 bf ff e9 b 201e6e0 <== NOT EXECUTED 201e740: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED continue; } sign = 1; } if (!isdigit(c)) 201e744: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED 201e748: c2 08 40 10 ldub [ %g1 + %l0 ], %g1 <== NOT EXECUTED 201e74c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 201e750: 02 80 00 1c be 201e7c0 <== NOT EXECUTED 201e754: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 201e758: 40 00 7b a1 call 203d5dc <.udiv> <== NOT EXECUTED 201e75c: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 201e760: 80 a4 40 08 cmp %l1, %o0 <== NOT EXECUTED 201e764: 18 80 00 17 bgu 201e7c0 <== NOT EXECUTED 201e768: 01 00 00 00 nop <== NOT EXECUTED 201e76c: 12 80 00 08 bne 201e78c <== NOT EXECUTED 201e770: a0 04 3f d0 add %l0, -48, %l0 <== NOT EXECUTED 201e774: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 201e778: 40 00 7c 45 call 203d88c <.urem> <== NOT EXECUTED 201e77c: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 201e780: 80 a4 00 08 cmp %l0, %o0 <== NOT EXECUTED 201e784: 18 80 00 0f bgu 201e7c0 <== NOT EXECUTED 201e788: 01 00 00 00 nop <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 201e78c: 85 2c 60 03 sll %l1, 3, %g2 <== NOT EXECUTED 201e790: 83 2c 60 01 sll %l1, 1, %g1 <== NOT EXECUTED 201e794: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 201e798: 10 bf ff d2 b 201e6e0 <== NOT EXECUTED 201e79c: a2 04 00 01 add %l0, %g1, %l1 <== NOT EXECUTED } if (sign == 0) 201e7a0: 02 80 00 08 be 201e7c0 <== NOT EXECUTED 201e7a4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED return 0; *val = i * sign; 201e7a8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 201e7ac: 40 00 7b 52 call 203d4f4 <.umul> <== NOT EXECUTED 201e7b0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 201e7b4: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED 201e7b8: 81 c7 e0 08 ret <== NOT EXECUTED 201e7bc: 81 e8 00 00 restore <== NOT EXECUTED return 1; } 201e7c0: 81 c7 e0 08 ret <== NOT EXECUTED 201e7c4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201e7c8 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 201e7c8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int c; *name = *bufp; 201e7cc: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 201e7d0: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED for (;;) { c = getc(fp); 201e7d4: 03 00 81 19 sethi %hi(0x2046400), %g1 <== NOT EXECUTED 201e7d8: b2 10 60 68 or %g1, 0x68, %i1 ! 2046468 <_impure_ptr> <== NOT EXECUTED 201e7dc: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 201e7e0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 201e7e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e7e8: 16 80 00 07 bge 201e804 <== NOT EXECUTED 201e7ec: c2 26 20 04 st %g1, [ %i0 + 4 ] <== NOT EXECUTED 201e7f0: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED 201e7f4: 40 00 4d 45 call 2031d08 <__srget_r> <== NOT EXECUTED 201e7f8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (c == ':') { 201e7fc: 10 80 00 07 b 201e818 <== NOT EXECUTED 201e800: 80 a2 20 3a cmp %o0, 0x3a <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 201e804: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED 201e808: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 201e80c: d0 08 40 00 ldub [ %g1 ], %o0 <== NOT EXECUTED 201e810: c4 26 00 00 st %g2, [ %i0 ] <== NOT EXECUTED if (c == ':') { 201e814: 80 a2 20 3a cmp %o0, 0x3a <== NOT EXECUTED 201e818: 12 80 00 07 bne 201e834 <== NOT EXECUTED 201e81c: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED if (nlFlag) 201e820: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 201e824: 22 80 00 1a be,a 201e88c <== NOT EXECUTED 201e828: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 201e82c: 81 c7 e0 08 ret <== NOT EXECUTED 201e830: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') { if (nlFlag) return 0; break; } if (c == '\n') { 201e834: 12 80 00 07 bne 201e850 <== NOT EXECUTED 201e838: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED if (!nlFlag) 201e83c: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED 201e840: 32 80 00 13 bne,a 201e88c <== NOT EXECUTED 201e844: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 201e848: 81 c7 e0 08 ret <== NOT EXECUTED 201e84c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == '\n') { if (!nlFlag) return 0; break; } if (c == EOF) 201e850: 22 80 00 17 be,a 201e8ac <== NOT EXECUTED 201e854: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (*nleft < 2) 201e858: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED 201e85c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 201e860: 28 80 00 13 bleu,a 201e8ac <== NOT EXECUTED 201e864: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; **bufp = c; 201e868: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 201e86c: d0 28 40 00 stb %o0, [ %g1 ] <== NOT EXECUTED ++(*bufp); 201e870: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED --(*nleft); 201e874: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 201e878: 82 00 60 01 inc %g1 <== NOT EXECUTED --(*nleft); 201e87c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 201e880: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED --(*nleft); 201e884: 10 bf ff d6 b 201e7dc <== NOT EXECUTED 201e888: c4 26 c0 00 st %g2, [ %i3 ] <== NOT EXECUTED } **bufp = '\0'; 201e88c: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED ++(*bufp); 201e890: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED --(*nleft); 201e894: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 201e898: 82 00 60 01 inc %g1 <== NOT EXECUTED --(*nleft); 201e89c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 201e8a0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED --(*nleft); 201e8a4: c4 26 c0 00 st %g2, [ %i3 ] <== NOT EXECUTED 201e8a8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } 201e8ac: 81 c7 e0 08 ret <== NOT EXECUTED 201e8b0: 81 e8 00 00 restore <== NOT EXECUTED 0201e8b4 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 201e8b4: 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) 201e8b8: 98 10 20 00 clr %o4 <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 201e8bc: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 201e8c0: 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) 201e8c4: b4 07 a0 50 add %fp, 0x50, %i2 <== NOT EXECUTED 201e8c8: b6 07 a0 4c add %fp, 0x4c, %i3 <== NOT EXECUTED 201e8cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201e8d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 201e8d4: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201e8d8: 7f ff ff bc call 201e7c8 <== NOT EXECUTED 201e8dc: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201e8e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e8e4: 02 80 00 42 be 201e9ec <== NOT EXECUTED 201e8e8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201e8ec: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED 201e8f0: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201e8f4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201e8f8: 7f ff ff b4 call 201e7c8 <== NOT EXECUTED 201e8fc: 98 10 20 00 clr %o4 <== NOT EXECUTED 201e900: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e904: 02 80 00 3a be 201e9ec <== NOT EXECUTED 201e908: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201e90c: 7f ff ff 6c call 201e6bc <== NOT EXECUTED 201e910: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED 201e914: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e918: 02 80 00 35 be 201e9ec <== NOT EXECUTED 201e91c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201e920: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201e924: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201e928: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED 201e92c: 7f ff ff a7 call 201e7c8 <== NOT EXECUTED 201e930: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 201e934: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201e938: 02 80 00 2d be 201e9ec <== NOT EXECUTED 201e93c: 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; 201e940: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 201e944: 84 10 00 0d mov %o5, %g2 <== 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; 201e948: c2 36 60 08 sth %g1, [ %i1 + 8 ] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 201e94c: 10 80 00 05 b 201e960 <== NOT EXECUTED 201e950: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED if(*cp == ',') memcount++; 201e954: 82 18 60 2c xor %g1, 0x2c, %g1 <== NOT EXECUTED 201e958: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 201e95c: 86 60 ff ff subx %g3, -1, %g3 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 201e960: c2 48 80 00 ldsb [ %g2 ], %g1 <== NOT EXECUTED 201e964: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e968: 12 bf ff fb bne 201e954 <== NOT EXECUTED 201e96c: 84 00 a0 01 inc %g2 <== NOT EXECUTED } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 201e970: c4 07 a0 50 ld [ %fp + 0x50 ], %g2 <== NOT EXECUTED 201e974: 83 28 e0 02 sll %g3, 2, %g1 <== NOT EXECUTED 201e978: 82 00 60 13 add %g1, 0x13, %g1 <== NOT EXECUTED 201e97c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 201e980: 0a 80 00 1b bcs 201e9ec <== NOT EXECUTED 201e984: c2 07 a0 4c ld [ %fp + 0x4c ], %g1 <== NOT EXECUTED grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 201e988: 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); 201e98c: 82 00 60 0f add %g1, 0xf, %g1 <== NOT EXECUTED 201e990: 82 08 7f f0 and %g1, -16, %g1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 201e994: da 20 40 00 st %o5, [ %g1 ] <== 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); 201e998: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 201e99c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201e9a0: 10 80 00 0a b 201e9c8 <== NOT EXECUTED 201e9a4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 201e9a8: 32 80 00 08 bne,a 201e9c8 <== NOT EXECUTED 201e9ac: 86 00 e0 01 inc %g3 <== NOT EXECUTED *cp = '\0'; 201e9b0: c0 28 ff ff clrb [ %g3 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 201e9b4: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED 201e9b8: 83 29 20 02 sll %g4, 2, %g1 <== NOT EXECUTED 201e9bc: 88 01 20 01 inc %g4 <== NOT EXECUTED 201e9c0: c6 20 80 01 st %g3, [ %g2 + %g1 ] <== NOT EXECUTED 201e9c4: 86 00 e0 01 inc %g3 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 201e9c8: c2 48 ff ff ldsb [ %g3 + -1 ], %g1 <== NOT EXECUTED 201e9cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201e9d0: 32 bf ff f6 bne,a 201e9a8 <== NOT EXECUTED 201e9d4: 80 a0 60 2c cmp %g1, 0x2c <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 201e9d8: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED 201e9dc: 83 29 20 02 sll %g4, 2, %g1 <== NOT EXECUTED 201e9e0: c0 20 80 01 clr [ %g2 + %g1 ] <== NOT EXECUTED 201e9e4: 81 c7 e0 08 ret <== NOT EXECUTED 201e9e8: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED return 1; } 201e9ec: 81 c7 e0 08 ret <== NOT EXECUTED 201e9f0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201ea3c : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 201ea3c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 201ea40: 98 10 20 00 clr %o4 <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 201ea44: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 201ea48: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 201ea4c: b4 07 a0 50 add %fp, 0x50, %i2 <== NOT EXECUTED 201ea50: b6 07 a0 4c add %fp, 0x4c, %i3 <== NOT EXECUTED 201ea54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201ea58: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 201ea5c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201ea60: 7f ff ff 5a call 201e7c8 <== NOT EXECUTED 201ea64: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201ea68: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ea6c: 02 80 00 39 be 201eb50 <== NOT EXECUTED 201ea70: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201ea74: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED 201ea78: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201ea7c: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201ea80: 7f ff ff 52 call 201e7c8 <== NOT EXECUTED 201ea84: 98 10 20 00 clr %o4 <== NOT EXECUTED 201ea88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ea8c: 02 80 00 31 be 201eb50 <== NOT EXECUTED 201ea90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201ea94: 7f ff ff 0a call 201e6bc <== NOT EXECUTED 201ea98: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED 201ea9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eaa0: 02 80 00 2c be 201eb50 <== NOT EXECUTED 201eaa4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201eaa8: 7f ff ff 05 call 201e6bc <== NOT EXECUTED 201eaac: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED 201eab0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eab4: 02 80 00 27 be 201eb50 <== NOT EXECUTED 201eab8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201eabc: 92 06 60 0c add %i1, 0xc, %o1 <== NOT EXECUTED 201eac0: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201eac4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201eac8: 7f ff ff 40 call 201e7c8 <== NOT EXECUTED 201eacc: 98 10 20 00 clr %o4 <== NOT EXECUTED 201ead0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ead4: 02 80 00 1f be 201eb50 <== NOT EXECUTED 201ead8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201eadc: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED 201eae0: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201eae4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201eae8: 7f ff ff 38 call 201e7c8 <== NOT EXECUTED 201eaec: 98 10 20 00 clr %o4 <== NOT EXECUTED 201eaf0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eaf4: 02 80 00 17 be 201eb50 <== NOT EXECUTED 201eaf8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201eafc: 92 06 60 14 add %i1, 0x14, %o1 <== NOT EXECUTED 201eb00: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201eb04: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201eb08: 7f ff ff 30 call 201e7c8 <== NOT EXECUTED 201eb0c: 98 10 20 00 clr %o4 <== NOT EXECUTED 201eb10: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eb14: 02 80 00 0f be 201eb50 <== NOT EXECUTED 201eb18: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201eb1c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED 201eb20: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED 201eb24: 92 06 60 18 add %i1, 0x18, %o1 <== NOT EXECUTED 201eb28: 7f ff ff 28 call 201e7c8 <== NOT EXECUTED 201eb2c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 201eb30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201eb34: 02 80 00 07 be 201eb50 <== NOT EXECUTED 201eb38: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== 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; 201eb3c: c2 36 60 08 sth %g1, [ %i1 + 8 ] <== NOT EXECUTED pwd->pw_gid = pwgid; 201eb40: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 201eb44: c2 36 60 0a sth %g1, [ %i1 + 0xa ] <== NOT EXECUTED 201eb48: 81 c7 e0 08 ret <== NOT EXECUTED 201eb4c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED return 1; } 201eb50: 81 c7 e0 08 ret <== NOT EXECUTED 201eb54: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201e658 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 201e658: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201e65c: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED 201e660: d0 30 60 2a sth %o0, [ %g1 + 0x2a ] <== NOT EXECUTED return 0; } 201e664: 81 c3 e0 08 retl <== NOT EXECUTED 201e668: 90 10 20 00 clr %o0 <== NOT EXECUTED 0201ec7c : return NULL; return &grent; } void setgrent(void) { 201ec7c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED init_etc_passwd_group(); 201ec80: 7f ff ff c8 call 201eba0 <== NOT EXECUTED 201ec84: 01 00 00 00 nop <== NOT EXECUTED if (group_fp != NULL) 201ec88: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201ec8c: d0 00 62 64 ld [ %g1 + 0x264 ], %o0 ! 2059264 <== NOT EXECUTED 201ec90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ec94: 22 80 00 05 be,a 201eca8 <== NOT EXECUTED 201ec98: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED fclose(group_fp); 201ec9c: 40 00 3a 19 call 202d500 <== NOT EXECUTED 201eca0: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 201eca4: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED 201eca8: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 201ecac: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED 201ecb0: 40 00 3c 2e call 202dd68 <== NOT EXECUTED 201ecb4: 92 12 61 e0 or %o1, 0x1e0, %o1 <== NOT EXECUTED 201ecb8: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201ecbc: d0 20 62 64 st %o0, [ %g1 + 0x264 ] ! 2059264 <== NOT EXECUTED } 201ecc0: 81 c7 e0 08 ret <== NOT EXECUTED 201ecc4: 81 e8 00 00 restore <== NOT EXECUTED 0201ee74 : return NULL; return &pwent; } void setpwent(void) { 201ee74: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED init_etc_passwd_group(); 201ee78: 7f ff ff 4a call 201eba0 <== NOT EXECUTED 201ee7c: 01 00 00 00 nop <== NOT EXECUTED if (passwd_fp != NULL) 201ee80: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201ee84: d0 00 61 7c ld [ %g1 + 0x17c ], %o0 ! 205917c <== NOT EXECUTED 201ee88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ee8c: 22 80 00 05 be,a 201eea0 <== NOT EXECUTED 201ee90: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED fclose(passwd_fp); 201ee94: 40 00 39 9b call 202d500 <== NOT EXECUTED 201ee98: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 201ee9c: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== NOT EXECUTED 201eea0: 13 00 81 11 sethi %hi(0x2044400), %o1 <== NOT EXECUTED 201eea4: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED 201eea8: 40 00 3b b0 call 202dd68 <== NOT EXECUTED 201eeac: 92 12 61 e0 or %o1, 0x1e0, %o1 <== NOT EXECUTED 201eeb0: 03 00 81 64 sethi %hi(0x2059000), %g1 <== NOT EXECUTED 201eeb4: d0 20 61 7c st %o0, [ %g1 + 0x17c ] ! 205917c <== NOT EXECUTED } 201eeb8: 81 c7 e0 08 ret <== NOT EXECUTED 201eebc: 81 e8 00 00 restore <== NOT EXECUTED 020045f4 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 20045f4: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 20045f8: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED 20045fc: d0 30 60 28 sth %o0, [ %g1 + 0x28 ] <== NOT EXECUTED return 0; } 2004600: 81 c3 e0 08 retl <== NOT EXECUTED 2004604: 90 10 20 00 clr %o0 <== NOT EXECUTED 02003a6c : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2003a6c: 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)) { 2003a70: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003a74: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 2003a78: 02 80 00 0e be 2003ab0 <== NOT EXECUTED 2003a7c: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003a80: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED 2003a84: 94 10 20 00 clr %o2 <== NOT EXECUTED 2003a88: 40 00 06 71 call 200544c <== NOT EXECUTED 2003a8c: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 2003a90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2003a94: 7f ff ff 80 call 2003894 <== NOT EXECUTED 2003a98: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003a9c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003aa0: 40 00 06 b2 call 2005568 <== NOT EXECUTED 2003aa4: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2003aa8: 81 c7 e0 08 ret <== NOT EXECUTED 2003aac: 81 e8 00 00 restore <== 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); 2003ab0: 7f ff ff 79 call 2003894 <== NOT EXECUTED 2003ab4: 81 e8 00 00 restore <== NOT EXECUTED 2003ab8: 01 00 00 00 nop 02005b50 : int _STAT_NAME( const char *path, struct stat *buf ) { 2005b50: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2005b54: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2005b58: 12 80 00 06 bne 2005b70 <== NOT EXECUTED 2005b5c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 2005b60: 40 00 9e 10 call 202d3a0 <__errno> <== NOT EXECUTED 2005b64: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005b68: 10 80 00 1c b 2005bd8 <== NOT EXECUTED 2005b6c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 2005b70: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 2005b74: 92 10 20 00 clr %o1 <== NOT EXECUTED 2005b78: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2005b7c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 2005b80: 7f ff f9 fa call 2004368 <== NOT EXECUTED 2005b84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( status != 0 ) 2005b88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2005b8c: 12 80 00 14 bne 2005bdc <== NOT EXECUTED 2005b90: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 2005b94: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2005b98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005b9c: 12 80 00 12 bne 2005be4 <== NOT EXECUTED 2005ba0: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2005ba4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2005ba8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005bac: 02 80 00 08 be 2005bcc <== NOT EXECUTED 2005bb0: 01 00 00 00 nop <== NOT EXECUTED 2005bb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005bb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005bbc: 02 80 00 04 be 2005bcc <== NOT EXECUTED 2005bc0: 01 00 00 00 nop <== NOT EXECUTED 2005bc4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005bc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005bcc: 40 00 9d f5 call 202d3a0 <__errno> <== NOT EXECUTED 2005bd0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005bd4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2005bd8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005bdc: 81 c7 e0 08 ret <== NOT EXECUTED 2005be0: 81 e8 00 00 restore <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 2005be4: 94 10 20 50 mov 0x50, %o2 <== NOT EXECUTED 2005be8: 40 00 a8 63 call 202fd74 <== NOT EXECUTED 2005bec: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 2005bf0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2005bf4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2005bf8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2005bfc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005c00: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2005c04: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2005c08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005c0c: 02 bf ff f4 be 2005bdc <== NOT EXECUTED 2005c10: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2005c14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005c18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005c1c: 02 80 00 04 be 2005c2c <== NOT EXECUTED 2005c20: 01 00 00 00 nop <== NOT EXECUTED 2005c24: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005c28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2005c2c: 81 c7 e0 08 ret <== NOT EXECUTED 2005c30: 81 e8 00 00 restore <== NOT EXECUTED 0201fef8 : int symlink( const char *actualpath, const char *sympath ) { 201fef8: 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 ); 201fefc: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 201ff00: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 201ff04: 02 80 00 07 be 201ff20 <== NOT EXECUTED 201ff08: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED 201ff0c: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 201ff10: 02 80 00 04 be 201ff20 <== NOT EXECUTED 201ff14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ff18: 32 80 00 0a bne,a 201ff40 <== NOT EXECUTED 201ff1c: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201ff20: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 201ff24: d2 00 61 9c ld [ %g1 + 0x19c ], %o1 ! 204559c <== NOT EXECUTED 201ff28: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED 201ff2c: 92 02 60 14 add %o1, 0x14, %o1 <== NOT EXECUTED 201ff30: 40 00 3f 09 call 202fb54 <== NOT EXECUTED 201ff34: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201ff38: 10 80 00 08 b 201ff58 <== NOT EXECUTED 201ff3c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 201ff40: d2 00 61 9c ld [ %g1 + 0x19c ], %o1 <== NOT EXECUTED 201ff44: 90 07 bf e4 add %fp, -28, %o0 <== NOT EXECUTED 201ff48: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 201ff4c: 40 00 3f 02 call 202fb54 <== NOT EXECUTED 201ff50: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 201ff54: 82 10 20 00 clr %g1 <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 201ff58: 90 06 40 01 add %i1, %g1, %o0 <== NOT EXECUTED 201ff5c: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201ff60: b2 07 bf e4 add %fp, -28, %i1 <== NOT EXECUTED 201ff64: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 201ff68: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 201ff6c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 201ff70: 9f c0 40 00 call %g1 <== NOT EXECUTED 201ff74: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( result != 0 ) 201ff78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201ff7c: 12 80 00 10 bne 201ffbc <== NOT EXECUTED 201ff80: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 201ff84: c4 00 60 38 ld [ %g1 + 0x38 ], %g2 <== NOT EXECUTED 201ff88: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 201ff8c: 12 80 00 0e bne 201ffc4 <== NOT EXECUTED 201ff90: d4 07 bf f4 ld [ %fp + -12 ], %o2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201ff94: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201ff98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ff9c: 02 80 00 04 be 201ffac <== NOT EXECUTED 201ffa0: 01 00 00 00 nop <== NOT EXECUTED 201ffa4: 9f c0 40 00 call %g1 <== NOT EXECUTED 201ffa8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 201ffac: 40 00 34 fd call 202d3a0 <__errno> <== NOT EXECUTED 201ffb0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201ffb4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201ffb8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201ffbc: 81 c7 e0 08 ret <== NOT EXECUTED 201ffc0: 81 e8 00 00 restore <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 201ffc4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 201ffc8: 9f c0 80 00 call %g2 <== NOT EXECUTED 201ffcc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 201ffd0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 201ffd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ffd8: 02 bf ff f9 be 201ffbc <== NOT EXECUTED 201ffdc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 201ffe0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 201ffe4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201ffe8: 02 80 00 04 be 201fff8 <== NOT EXECUTED 201ffec: 01 00 00 00 nop <== NOT EXECUTED 201fff0: 9f c0 40 00 call %g1 <== NOT EXECUTED 201fff4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED return result; } 201fff8: 81 c7 e0 08 ret <== NOT EXECUTED 201fffc: 81 e8 00 00 restore <== NOT EXECUTED 02020000 : int tcdrain( int fd ) { return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 2020000: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2020004: 94 10 20 00 clr %o2 <== NOT EXECUTED 2020008: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202000c: 7f ff fc 18 call 201f06c <== NOT EXECUTED 2020010: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2020014: 01 00 00 00 nop 02011344 : int tcgetattr( int fd, struct termios *tp ) { 2011344: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); 2011348: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 201134c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2011350: 40 00 0d 51 call 2014894 <== NOT EXECUTED 2011354: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2011358: 01 00 00 00 nop 0201135c : int tcsetattr( int fd, int opt, struct termios *tp ) { 201135c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED switch (opt) { 2011360: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2011364: 02 80 00 10 be 20113a4 <== NOT EXECUTED 2011368: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED 201136c: 02 80 00 08 be 201138c <== NOT EXECUTED 2011370: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 2011374: 40 00 0f 78 call 2015154 <__errno> <== NOT EXECUTED 2011378: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201137c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2011380: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011384: 81 c7 e0 08 ret <== NOT EXECUTED 2011388: 81 e8 00 00 restore <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 201138c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2011390: 40 00 0d 41 call 2014894 <== NOT EXECUTED 2011394: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011398: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201139c: 26 80 00 04 bl,a 20113ac <== NOT EXECUTED 20113a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 20113a4: 40 00 0d 3c call 2014894 <== NOT EXECUTED 20113a8: 93 e8 20 02 restore %g0, 2, %o1 <== NOT EXECUTED } } 20113ac: 81 c7 e0 08 ret <== NOT EXECUTED 20113b0: 81 e8 00 00 restore <== NOT EXECUTED 02020194 : */ char *ttyname( int fd ) { 2020194: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 2020198: 21 00 81 15 sethi %hi(0x2045400), %l0 <== NOT EXECUTED 202019c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20201a0: 94 10 24 06 mov 0x406, %o2 <== NOT EXECUTED 20201a4: 92 14 21 a0 or %l0, 0x1a0, %o1 <== NOT EXECUTED 20201a8: 7f ff ff b8 call 2020088 <== NOT EXECUTED 20201ac: b0 14 21 a0 or %l0, 0x1a0, %i0 <== NOT EXECUTED 20201b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20201b4: 32 80 00 02 bne,a 20201bc <== NOT EXECUTED 20201b8: b0 10 20 00 clr %i0 <== NOT EXECUTED return ttyname_buf; return NULL; } 20201bc: 81 c7 e0 08 ret <== NOT EXECUTED 20201c0: 81 e8 00 00 restore <== NOT EXECUTED 02020088 : int ttyname_r( int fd, char *name, size_t namesize ) { 2020088: 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) 202008c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020090: 7f ff ff e2 call 2020018 <== NOT EXECUTED 2020094: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED 2020098: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202009c: 06 80 00 16 bl 20200f4 <== NOT EXECUTED 20200a0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 20200a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20200a8: 7f ff f7 be call 201dfa0 <== NOT EXECUTED 20200ac: 92 07 bf 80 add %fp, -128, %o1 <== NOT EXECUTED 20200b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20200b4: 12 80 00 10 bne 20200f4 <== NOT EXECUTED 20200b8: c2 17 bf 8c lduh [ %fp + -116 ], %g1 <== NOT EXECUTED 20200bc: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED 20200c0: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED 20200c4: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED 20200c8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20200cc: 12 80 00 0a bne 20200f4 <== NOT EXECUTED 20200d0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) 20200d4: 11 00 81 07 sethi %hi(0x2041c00), %o0 <== 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); 20200d8: 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) 20200dc: 90 12 22 f0 or %o0, 0x2f0, %o0 <== NOT EXECUTED 20200e0: 7f ff fd b1 call 201f7a4 <== NOT EXECUTED 20200e4: a2 07 bf 30 add %fp, -208, %l1 <== NOT EXECUTED 20200e8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 20200ec: 12 80 00 20 bne 202016c <== NOT EXECUTED 20200f0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); 20200f4: 40 00 34 ab call 202d3a0 <__errno> <== NOT EXECUTED 20200f8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20200fc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2020100: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020104: 81 c7 e0 08 ret <== NOT EXECUTED 2020108: 81 e8 00 00 restore <== NOT EXECUTED for (rval = NULL; (dirp = readdir (dp)) != NULL ;) { if (dirp->d_ino != sb.st_ino) 202010c: c2 07 bf 88 ld [ %fp + -120 ], %g1 <== NOT EXECUTED 2020110: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2020114: 12 80 00 16 bne 202016c <== NOT EXECUTED 2020118: 92 02 20 0c add %o0, 0xc, %o1 <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 202011c: 40 00 49 55 call 2032670 <== NOT EXECUTED 2020120: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 2020124: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2020128: 7f ff 96 8a call 2005b50 <== NOT EXECUTED 202012c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2020130: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020134: 12 80 00 0e bne 202016c <== NOT EXECUTED 2020138: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED 202013c: c2 07 bf 80 ld [ %fp + -128 ], %g1 <== NOT EXECUTED 2020140: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2020144: 12 80 00 0a bne 202016c <== NOT EXECUTED 2020148: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED 202014c: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED 2020150: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2020154: 12 80 00 06 bne 202016c <== NOT EXECUTED 2020158: c4 07 bf 38 ld [ %fp + -200 ], %g2 <== NOT EXECUTED 202015c: c2 07 bf 88 ld [ %fp + -120 ], %g1 <== NOT EXECUTED 2020160: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2020164: 02 80 00 08 be 2020184 <== NOT EXECUTED 2020168: 90 10 00 18 mov %i0, %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); for (rval = NULL; (dirp = readdir (dp)) != NULL ;) 202016c: 7f ff fe 46 call 201fa84 <== NOT EXECUTED 2020170: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020174: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020178: 32 bf ff e5 bne,a 202010c <== NOT EXECUTED 202017c: c4 02 00 00 ld [ %o0 ], %g2 <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 2020180: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020184: 40 00 2b 15 call 202add8 <== NOT EXECUTED 2020188: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 202018c: 81 c7 e0 08 ret <== NOT EXECUTED 2020190: 81 e8 00 00 restore <== NOT EXECUTED 020201c4 : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 20201c4: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED 20201c8: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 204559c <== NOT EXECUTED 20201cc: c4 10 60 24 lduh [ %g1 + 0x24 ], %g2 <== NOT EXECUTED rtems_filesystem_umask = cmask; 20201d0: d0 30 60 24 sth %o0, [ %g1 + 0x24 ] <== NOT EXECUTED return old_mask; } 20201d4: 81 c3 e0 08 retl <== NOT EXECUTED 20201d8: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED 020201dc : #include int unlink( const char *path ) { 20201dc: 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 ); 20201e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20201e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20201e8: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 20201ec: 96 10 20 00 clr %o3 <== NOT EXECUTED 20201f0: 7f ff 90 5e call 2004368 <== NOT EXECUTED 20201f4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if ( result != 0 ) 20201f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20201fc: 32 80 00 17 bne,a 2020258 <== NOT EXECUTED 2020200: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 2020204: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2020208: 7f ff 90 2b call 20042b4 <== NOT EXECUTED 202020c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 2020210: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020214: 02 80 00 13 be 2020260 <== NOT EXECUTED 2020218: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202021c: 40 00 34 61 call 202d3a0 <__errno> <== NOT EXECUTED 2020220: 01 00 00 00 nop <== NOT EXECUTED 2020224: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2020228: 80 a0 60 86 cmp %g1, 0x86 <== NOT EXECUTED 202022c: 02 80 00 0d be 2020260 <== NOT EXECUTED 2020230: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2020234: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020238: 02 80 00 08 be 2020258 <== NOT EXECUTED 202023c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2020240: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020244: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020248: 02 80 00 04 be 2020258 <== NOT EXECUTED 202024c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2020250: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020254: 01 00 00 00 nop <== NOT EXECUTED 2020258: 81 c7 e0 08 ret <== NOT EXECUTED 202025c: 81 e8 00 00 restore <== NOT EXECUTED return -1; } if ( !loc.ops->node_type_h ) { 2020260: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 2020264: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2020268: 12 80 00 07 bne 2020284 <== NOT EXECUTED 202026c: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2020270: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020274: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020278: 12 80 00 1d bne 20202ec <== NOT EXECUTED 202027c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 2020280: 30 80 00 1d b,a 20202f4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 2020284: 9f c0 80 00 call %g2 <== NOT EXECUTED 2020288: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202028c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2020290: 12 80 00 0f bne 20202cc <== NOT EXECUTED 2020294: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2020298: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202029c: 02 80 00 08 be 20202bc <== NOT EXECUTED 20202a0: 01 00 00 00 nop <== NOT EXECUTED 20202a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20202a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20202ac: 02 80 00 04 be 20202bc <== NOT EXECUTED 20202b0: 01 00 00 00 nop <== NOT EXECUTED 20202b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20202b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 20202bc: 40 00 34 39 call 202d3a0 <__errno> <== NOT EXECUTED 20202c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20202c4: 10 80 00 0f b 2020300 <== NOT EXECUTED 20202c8: 82 10 20 15 mov 0x15, %g1 <== NOT EXECUTED } if ( !loc.ops->unlink_h ) { 20202cc: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 20202d0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20202d4: 12 80 00 0e bne 202030c <== NOT EXECUTED 20202d8: 01 00 00 00 nop <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20202dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20202e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20202e4: 02 80 00 04 be 20202f4 <== NOT EXECUTED 20202e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20202ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20202f0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20202f4: 40 00 34 2b call 202d3a0 <__errno> <== NOT EXECUTED 20202f8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20202fc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2020300: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020304: 81 c7 e0 08 ret <== NOT EXECUTED 2020308: 81 e8 00 00 restore <== NOT EXECUTED } result = (*loc.ops->unlink_h)( &loc ); 202030c: 9f c0 80 00 call %g2 <== NOT EXECUTED 2020310: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2020314: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 2020318: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202031c: 02 bf ff cf be 2020258 <== NOT EXECUTED 2020320: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2020324: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020328: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202032c: 02 80 00 06 be 2020344 <== NOT EXECUTED 2020330: 01 00 00 00 nop <== NOT EXECUTED 2020334: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020338: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202033c: 81 c7 e0 08 ret <== NOT EXECUTED 2020340: 81 e8 00 00 restore <== NOT EXECUTED return result; } 2020344: 81 c7 e0 08 ret <== NOT EXECUTED 2020348: 81 e8 00 00 restore <== NOT EXECUTED 020203b8 : */ int unmount( const char *path ) { 20203b8: 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 ) ) 20203bc: 92 10 20 00 clr %o1 <== NOT EXECUTED 20203c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20203c4: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 20203c8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 20203cc: 7f ff 8f e7 call 2004368 <== NOT EXECUTED 20203d0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20203d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20203d8: 12 80 00 6a bne 2020580 <== NOT EXECUTED 20203dc: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 20203e0: 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) ){ 20203e4: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 <== NOT EXECUTED 20203e8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20203ec: 02 80 00 0f be 2020428 <== NOT EXECUTED 20203f0: c6 07 bf f0 ld [ %fp + -16 ], %g3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20203f4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 20203f8: 02 80 00 08 be 2020418 <== NOT EXECUTED 20203fc: 01 00 00 00 nop <== NOT EXECUTED 2020400: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 2020404: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020408: 02 80 00 04 be 2020418 <== NOT EXECUTED 202040c: 01 00 00 00 nop <== NOT EXECUTED 2020410: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020414: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 2020418: 40 00 33 e2 call 202d3a0 <__errno> <== NOT EXECUTED 202041c: 01 00 00 00 nop <== NOT EXECUTED 2020420: 10 80 00 21 b 20204a4 <== NOT EXECUTED 2020424: 82 10 20 0d mov 0xd, %g1 ! d <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 2020428: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 202042c: 22 80 00 09 be,a 2020450 <== NOT EXECUTED 2020430: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2020434: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED 2020438: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202043c: 22 80 00 05 be,a 2020450 <== NOT EXECUTED 2020440: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2020444: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020448: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 202044c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2020450: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 2020454: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020458: 02 80 00 07 be 2020474 <== NOT EXECUTED 202045c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 2020460: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2020464: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 <== NOT EXECUTED 2020468: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202046c: 32 80 00 06 bne,a 2020484 <== NOT EXECUTED 2020470: 03 00 81 15 sethi %hi(0x2045400), %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2020474: 40 00 33 cb call 202d3a0 <__errno> <== NOT EXECUTED 2020478: 01 00 00 00 nop <== NOT EXECUTED 202047c: 10 80 00 0a b 20204a4 <== NOT EXECUTED 2020480: 82 10 20 86 mov 0x86, %g1 ! 86 <== 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 ) 2020484: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 <== NOT EXECUTED 2020488: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 202048c: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED 2020490: 12 80 00 08 bne 20204b0 <== NOT EXECUTED 2020494: 03 00 81 66 sethi %hi(0x2059800), %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBUSY ); 2020498: 40 00 33 c2 call 202d3a0 <__errno> <== NOT EXECUTED 202049c: 01 00 00 00 nop <== NOT EXECUTED 20204a0: 82 10 20 10 mov 0x10, %g1 ! 10 <== NOT EXECUTED 20204a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20204a8: 81 c7 e0 08 ret <== NOT EXECUTED 20204ac: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20204b0: c6 00 63 e8 ld [ %g1 + 0x3e8 ], %g3 <== NOT EXECUTED 20204b4: 82 10 63 e8 or %g1, 0x3e8, %g1 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 20204b8: 10 80 00 07 b 20204d4 <== NOT EXECUTED 20204bc: 88 00 60 04 add %g1, 4, %g4 <== 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 ) { 20204c0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 20204c4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20204c8: 02 bf ff f4 be 2020498 <== NOT EXECUTED 20204cc: 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 ) { 20204d0: c6 00 c0 00 ld [ %g3 ], %g3 <== 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 ); 20204d4: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 20204d8: 32 bf ff fa bne,a 20204c0 <== NOT EXECUTED 20204dc: c4 00 e0 14 ld [ %g3 + 0x14 ], %g2 <== NOT EXECUTED 20204e0: 30 80 00 2a b,a 2020588 <== 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 ) 20204e4: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 20204e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20204ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20204f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20204f4: 12 80 00 23 bne 2020580 <== NOT EXECUTED 20204f8: 01 00 00 00 nop <== 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){ 20204fc: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2020500: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 <== NOT EXECUTED 2020504: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020508: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202050c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2020510: 02 80 00 0b be 202053c <== NOT EXECUTED 2020514: 01 00 00 00 nop <== NOT EXECUTED if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 2020518: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202051c: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 2020520: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020524: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020528: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202052c: 02 80 00 15 be 2020580 <== NOT EXECUTED 2020530: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 2020534: 7f ff a1 75 call 2008b08 <== NOT EXECUTED 2020538: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 202053c: 40 00 03 bc call 202142c <_Chain_Extract> <== NOT EXECUTED 2020540: 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 ); 2020544: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2020548: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202054c: 02 80 00 09 be 2020570 <== NOT EXECUTED 2020550: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020554: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2020558: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202055c: 02 80 00 05 be 2020570 <== NOT EXECUTED 2020560: 01 00 00 00 nop <== NOT EXECUTED 2020564: 9f c0 40 00 call %g1 <== NOT EXECUTED 2020568: 90 06 20 08 add %i0, 8, %o0 <== NOT EXECUTED free( mt_entry ); 202056c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020570: 7f ff 8f d0 call 20044b0 <== NOT EXECUTED 2020574: b0 10 20 00 clr %i0 <== NOT EXECUTED 2020578: 81 c7 e0 08 ret <== NOT EXECUTED 202057c: 81 e8 00 00 restore <== NOT EXECUTED return 0; } 2020580: 81 c7 e0 08 ret <== NOT EXECUTED 2020584: 91 e8 3f ff restore %g0, -1, %o0 <== 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 ) 2020588: 7f ff 90 85 call 200479c <== NOT EXECUTED 202058c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2020590: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2020594: 32 bf ff d4 bne,a 20204e4 <== NOT EXECUTED 2020598: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202059c: 30 bf ff bf b,a 2020498 <== NOT EXECUTED 020205a0 : int utime( const char *path, const struct utimbuf *times ) { 20205a0: 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 ) ) 20205a4: 92 10 20 00 clr %o1 <== NOT EXECUTED 20205a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20205ac: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED 20205b0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED 20205b4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20205b8: 7f ff 8f 6c call 2004368 <== NOT EXECUTED 20205bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20205c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20205c4: 12 80 00 10 bne 2020604 <== NOT EXECUTED 20205c8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 20205cc: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 <== NOT EXECUTED 20205d0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20205d4: 32 80 00 0e bne,a 202060c <== NOT EXECUTED 20205d8: d4 06 60 04 ld [ %i1 + 4 ], %o2 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 20205dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20205e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20205e4: 02 80 00 04 be 20205f4 <== NOT EXECUTED 20205e8: 01 00 00 00 nop <== NOT EXECUTED 20205ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20205f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20205f4: 40 00 33 6b call 202d3a0 <__errno> <== NOT EXECUTED 20205f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20205fc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2020600: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2020604: 81 c7 e0 08 ret <== NOT EXECUTED 2020608: 81 e8 00 00 restore <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 202060c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 2020610: 9f c0 80 00 call %g2 <== NOT EXECUTED 2020614: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 2020618: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED 202061c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020620: 02 bf ff f9 be 2020604 <== NOT EXECUTED 2020624: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2020628: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202062c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2020630: 02 80 00 04 be 2020640 <== NOT EXECUTED 2020634: 01 00 00 00 nop <== NOT EXECUTED 2020638: 9f c0 40 00 call %g1 <== NOT EXECUTED 202063c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2020640: 81 c7 e0 08 ret <== NOT EXECUTED 2020644: 81 e8 00 00 restore <== NOT EXECUTED 0200299c : */ void vprintk( const char *fmt, va_list ap ) { 200299c: 9d e3 bf 80 save %sp, -128, %sp if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 20029a0: 03 00 80 56 sethi %hi(0x2015800), %g1 if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); 20029a4: b8 07 bf e0 add %fp, -32, %i4 if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 20029a8: ac 10 63 2c or %g1, 0x32c, %l6 count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 20029ac: ba 07 bf f8 add %fp, -8, %i5 for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 20029b0: 03 00 80 53 sethi %hi(0x2014c00), %g1 20029b4: 10 80 00 c8 b 2002cd4 20029b8: b6 10 61 70 or %g1, 0x170, %i3 ! 2014d70 base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 20029bc: 32 80 00 c4 bne,a 2002ccc 20029c0: c2 05 80 00 ld [ %l6 ], %g1 fmt++; 20029c4: b0 06 20 01 inc %i0 if (*fmt == '0' ) { 20029c8: c2 4e 00 00 ldsb [ %i0 ], %g1 20029cc: 80 a0 60 30 cmp %g1, 0x30 20029d0: 12 80 00 05 bne 20029e4 20029d4: ae 10 20 20 mov 0x20, %l7 lead = '0'; fmt++; 20029d8: b0 06 20 01 inc %i0 20029dc: ae 10 20 30 mov 0x30, %l7 } if (*fmt == '-' ) { 20029e0: c2 4e 00 00 ldsb [ %i0 ], %g1 20029e4: 80 a0 60 2d cmp %g1, 0x2d 20029e8: 12 80 00 04 bne 20029f8 20029ec: a6 10 20 00 clr %l3 minus = 1; fmt++; 20029f0: b0 06 20 01 inc %i0 20029f4: a6 10 20 01 mov 1, %l3 20029f8: 10 80 00 08 b 2002a18 20029fc: a8 10 20 00 clr %l4 } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += (*fmt - '0'); 2002a00: 85 38 60 18 sra %g1, 0x18, %g2 fmt++; 2002a04: b0 06 20 01 inc %i0 if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; 2002a08: 83 2d 20 01 sll %l4, 1, %g1 width += (*fmt - '0'); 2002a0c: 84 00 bf d0 add %g2, -48, %g2 if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; 2002a10: 82 00 40 03 add %g1, %g3, %g1 width += (*fmt - '0'); 2002a14: a8 00 80 01 add %g2, %g1, %l4 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2002a18: d0 0e 00 00 ldub [ %i0 ], %o0 width *= 10; 2002a1c: 87 2d 20 03 sll %l4, 3, %g3 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2002a20: 82 02 3f d0 add %o0, -48, %g1 2002a24: 82 08 60 ff and %g1, 0xff, %g1 2002a28: 80 a0 60 09 cmp %g1, 9 2002a2c: 08 bf ff f5 bleu 2002a00 2002a30: 83 2a 20 18 sll %o0, 0x18, %g1 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 2002a34: 83 38 60 18 sra %g1, 0x18, %g1 2002a38: 80 a0 60 6c cmp %g1, 0x6c 2002a3c: 12 80 00 05 bne 2002a50 2002a40: 83 2a 20 18 sll %o0, 0x18, %g1 lflag = 1; c = *++fmt; 2002a44: b0 06 20 01 inc %i0 2002a48: d0 0e 00 00 ldub [ %i0 ], %o0 } switch (c) { 2002a4c: 83 2a 20 18 sll %o0, 0x18, %g1 2002a50: 83 38 60 18 sra %g1, 0x18, %g1 2002a54: 80 a0 60 64 cmp %g1, 0x64 2002a58: 02 80 00 2c be 2002b08 2002a5c: aa 10 20 0a mov 0xa, %l5 2002a60: 14 80 00 16 bg 2002ab8 2002a64: 80 a0 60 70 cmp %g1, 0x70 2002a68: 80 a0 60 4f cmp %g1, 0x4f 2002a6c: 02 80 00 60 be 2002bec 2002a70: aa 10 20 08 mov 8, %l5 2002a74: 14 80 00 09 bg 2002a98 2002a78: 80 a0 60 58 cmp %g1, 0x58 2002a7c: 80 a0 60 44 cmp %g1, 0x44 2002a80: 02 80 00 21 be 2002b04 2002a84: 80 a0 60 49 cmp %g1, 0x49 2002a88: 32 80 00 55 bne,a 2002bdc 2002a8c: 91 2a 20 18 sll %o0, 0x18, %o0 2002a90: 10 80 00 1e b 2002b08 <== NOT EXECUTED 2002a94: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED 2002a98: 02 80 00 54 be 2002be8 <== NOT EXECUTED 2002a9c: 80 a0 60 63 cmp %g1, 0x63 <== NOT EXECUTED 2002aa0: 02 80 00 4b be 2002bcc <== NOT EXECUTED 2002aa4: 80 a0 60 55 cmp %g1, 0x55 <== NOT EXECUTED 2002aa8: 32 80 00 4d bne,a 2002bdc <== NOT EXECUTED 2002aac: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED 2002ab0: 10 80 00 4f b 2002bec <== NOT EXECUTED 2002ab4: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED 2002ab8: 02 80 00 4c be 2002be8 2002abc: 80 a0 60 70 cmp %g1, 0x70 2002ac0: 14 80 00 09 bg 2002ae4 2002ac4: 80 a0 60 75 cmp %g1, 0x75 2002ac8: 80 a0 60 69 cmp %g1, 0x69 <== NOT EXECUTED 2002acc: 02 80 00 0e be 2002b04 <== NOT EXECUTED 2002ad0: 80 a0 60 6f cmp %g1, 0x6f <== NOT EXECUTED 2002ad4: 32 80 00 42 bne,a 2002bdc <== NOT EXECUTED 2002ad8: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 2002adc: 10 80 00 44 b 2002bec <== NOT EXECUTED 2002ae0: aa 10 20 08 mov 8, %l5 <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002ae4: 02 80 00 0b be 2002b10 2002ae8: 80 a0 60 78 cmp %g1, 0x78 2002aec: 02 80 00 3f be 2002be8 2002af0: 80 a0 60 73 cmp %g1, 0x73 2002af4: 32 80 00 3a bne,a 2002bdc 2002af8: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 2002afc: 10 80 00 07 b 2002b18 2002b00: e4 06 40 00 ld [ %i1 ], %l2 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2002b04: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED 2002b08: 10 80 00 3a b 2002bf0 2002b0c: 82 10 20 01 mov 1, %g1 2002b10: 10 80 00 37 b 2002bec 2002b14: aa 10 20 0a mov 0xa, %l5 case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 2002b18: a2 10 20 00 clr %l1 2002b1c: b2 06 60 04 add %i1, 4, %i1 /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 2002b20: c2 4c 80 11 ldsb [ %l2 + %l1 ], %g1 2002b24: 80 a0 60 00 cmp %g1, 0 2002b28: 32 bf ff fe bne,a 2002b20 2002b2c: a2 04 60 01 inc %l1 ; /* leading spaces */ if ( !minus ) 2002b30: 80 a4 e0 00 cmp %l3, 0 2002b34: 02 80 00 07 be 2002b50 2002b38: a0 10 00 11 mov %l1, %l0 for ( i=len ; i 2002b40: 80 a5 20 00 cmp %l4, 0 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 2002b58: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED BSP_output_char(' '); /* no width option */ if (width == 0) { 2002b5c: 80 a5 20 00 cmp %l4, 0 2002b60: 22 80 00 02 be,a 2002b68 2002b64: a8 10 00 11 mov %l1, %l4 width = len; } /* output the string */ for ( i=0 ; i 2002b70: 80 a4 e0 00 cmp %l3, 0 2002b74: 10 80 00 06 b 2002b8c 2002b78: d0 4c 80 00 ldsb [ %l2 ], %o0 BSP_output_char(*str); 2002b7c: c2 05 80 00 ld [ %l6 ], %g1 2002b80: 9f c0 40 00 call %g1 2002b84: 01 00 00 00 nop if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 2002b94: a4 04 a0 01 inc %l2 BSP_output_char(*str); /* trailing spaces */ if ( minus ) 2002b98: 80 a4 e0 00 cmp %l3, 0 2002b9c: 12 80 00 07 bne 2002bb8 2002ba0: a0 10 00 11 mov %l1, %l0 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002ba4: 10 80 00 4c b 2002cd4 2002ba8: b0 06 20 01 inc %i0 for ( i=0 ; i 2002bc0: c2 05 80 00 ld [ %l6 ], %g1 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002bc4: 10 80 00 44 b 2002cd4 2002bc8: b0 06 20 01 inc %i0 for ( i=len ; i <== NOT EXECUTED 2002bd8: b2 06 60 04 add %i1, 4, %i1 <== NOT EXECUTED break; default: BSP_output_char(c); 2002bdc: c2 05 80 00 ld [ %l6 ], %g1 2002be0: 10 80 00 3b b 2002ccc 2002be4: 91 3a 20 18 sra %o0, 0x18, %o0 2002be8: aa 10 20 10 mov 0x10, %l5 2002bec: 82 10 20 00 clr %g1 2002bf0: 84 06 60 04 add %i1, 4, %g2 break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 2002bf4: e2 06 40 00 ld [ %i1 ], %l1 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 2002bf8: 80 a0 60 01 cmp %g1, 1 2002bfc: 12 80 00 0d bne 2002c30 2002c00: b2 10 00 02 mov %g2, %i1 2002c04: 80 a4 60 00 cmp %l1, 0 2002c08: 36 80 00 12 bge,a 2002c50 2002c0c: a4 10 20 00 clr %l2 BSP_output_char('-'); 2002c10: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED 2002c14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002c18: 90 10 20 2d mov 0x2d, %o0 <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; 2002c1c: 82 1d 20 00 xor %l4, 0, %g1 <== NOT EXECUTED int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; 2002c20: a2 20 00 11 neg %l1 <== NOT EXECUTED if (maxwidth) maxwidth--; 2002c24: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2002c28: 82 40 20 00 addx %g0, 0, %g1 <== NOT EXECUTED 2002c2c: a8 25 00 01 sub %l4, %g1, %l4 <== NOT EXECUTED 2002c30: 10 80 00 08 b 2002c50 2002c34: a4 10 20 00 clr %l2 } count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); 2002c38: 40 00 40 73 call 2012e04 <.umul> 2002c3c: 92 10 00 15 mov %l5, %o1 2002c40: 90 24 40 08 sub %l1, %o0, %o0 2002c44: a2 10 00 10 mov %l0, %l1 2002c48: d0 2f 00 12 stb %o0, [ %i4 + %l2 ] 2002c4c: a4 10 00 13 mov %l3, %l2 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 2002c50: 90 10 00 11 mov %l1, %o0 2002c54: 92 10 00 15 mov %l5, %o1 2002c58: 40 00 40 a5 call 2012eec <.udiv> 2002c5c: a6 04 a0 01 add %l2, 1, %l3 2002c60: a0 92 20 00 orcc %o0, 0, %l0 2002c64: 32 bf ff f5 bne,a 2002c38 2002c68: 90 10 00 10 mov %l0, %o0 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 2002c6c: 82 07 40 12 add %i5, %l2, %g1 for (n=maxwidth ; n > count; n-- ) 2002c70: a0 10 00 14 mov %l4, %l0 count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 2002c74: e2 28 7f e8 stb %l1, [ %g1 + -24 ] for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); 2002c78: 10 80 00 05 b 2002c8c 2002c7c: a2 10 00 17 mov %l7, %l1 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 2002c80: a0 04 3f ff add %l0, -1, %l0 BSP_output_char(lead); 2002c84: 9f c0 40 00 call %g1 2002c88: 90 10 00 11 mov %l1, %o0 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 2002c8c: 80 a4 00 13 cmp %l0, %l3 2002c90: 38 bf ff fc bgu,a 2002c80 2002c94: c2 05 80 00 ld [ %l6 ], %g1 2002c98: a0 10 20 00 clr %l0 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 2002c9c: 10 80 00 07 b 2002cb8 2002ca0: a2 07 40 13 add %i5, %l3, %l1 2002ca4: c2 48 7f e7 ldsb [ %g1 + -25 ], %g1 2002ca8: c4 05 80 00 ld [ %l6 ], %g2 2002cac: d0 4e c0 01 ldsb [ %i3 + %g1 ], %o0 2002cb0: 9f c0 80 00 call %g2 2002cb4: 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++) { 2002cb8: 80 a4 00 13 cmp %l0, %l3 2002cbc: 0a bf ff fa bcs 2002ca4 2002cc0: 82 24 40 10 sub %l1, %l0, %g1 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002cc4: 10 80 00 04 b 2002cd4 2002cc8: b0 06 20 01 inc %i0 if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 2002ccc: 9f c0 40 00 call %g1 2002cd0: b0 06 20 01 inc %i0 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2002cd4: d0 4e 00 00 ldsb [ %i0 ], %o0 2002cd8: 80 a2 20 00 cmp %o0, 0 2002cdc: 12 bf ff 38 bne 20029bc 2002ce0: 80 a2 20 25 cmp %o0, 0x25 base, sign, width, lead); } else { BSP_output_char(*fmt); } } } 2002ce4: 81 c7 e0 08 ret 2002ce8: 81 e8 00 00 restore 0201417c : ssize_t write( int fd, const void *buffer, size_t count ) { 201417c: 9d e3 bf 98 save %sp, -104, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2014180: 03 00 80 56 sethi %hi(0x2015800), %g1 2014184: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 2015a28 ssize_t write( int fd, const void *buffer, size_t count ) { 2014188: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201418c: 80 a6 00 01 cmp %i0, %g1 2014190: 1a 80 00 0e bcc 20141c8 2014194: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 2014198: 03 00 80 59 sethi %hi(0x2016400), %g1 201419c: c6 00 62 ac ld [ %g1 + 0x2ac ], %g3 ! 20166ac 20141a0: 85 2e 20 02 sll %i0, 2, %g2 20141a4: 83 2e 20 04 sll %i0, 4, %g1 20141a8: 82 20 40 02 sub %g1, %g2, %g1 20141ac: 82 00 40 18 add %g1, %i0, %g1 20141b0: 83 28 60 02 sll %g1, 2, %g1 20141b4: b0 00 c0 01 add %g3, %g1, %i0 rtems_libio_check_is_open( iop ); 20141b8: c2 06 20 0c ld [ %i0 + 0xc ], %g1 20141bc: 80 88 61 00 btst 0x100, %g1 20141c0: 12 80 00 06 bne 20141d8 20141c4: 80 a6 60 00 cmp %i1, 0 20141c8: 7f ff e0 7e call 200c3c0 <__errno> <== NOT EXECUTED 20141cc: 01 00 00 00 nop <== NOT EXECUTED 20141d0: 10 80 00 15 b 2014224 <== NOT EXECUTED 20141d4: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 20141d8: 02 80 00 08 be 20141f8 20141dc: 01 00 00 00 nop rtems_libio_check_count( count ); 20141e0: 80 a6 a0 00 cmp %i2, 0 20141e4: 02 80 00 1b be 2014250 20141e8: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20141ec: 80 88 60 04 btst 4, %g1 20141f0: 32 80 00 06 bne,a 2014208 20141f4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 20141f8: 7f ff e0 72 call 200c3c0 <__errno> <== NOT EXECUTED 20141fc: 01 00 00 00 nop <== NOT EXECUTED 2014200: 10 80 00 09 b 2014224 <== NOT EXECUTED 2014204: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 2014208: c2 00 60 0c ld [ %g1 + 0xc ], %g1 201420c: 80 a0 60 00 cmp %g1, 0 2014210: 12 80 00 08 bne 2014230 2014214: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2014218: 7f ff e0 6a call 200c3c0 <__errno> <== NOT EXECUTED 201421c: 01 00 00 00 nop <== NOT EXECUTED 2014220: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2014224: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2014228: 10 80 00 0a b 2014250 <== NOT EXECUTED 201422c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 2014230: 9f c0 40 00 call %g1 2014234: 90 10 00 18 mov %i0, %o0 if ( rc > 0 ) 2014238: 80 a2 20 00 cmp %o0, 0 201423c: 04 80 00 05 ble 2014250 2014240: 01 00 00 00 nop iop->offset += rc; 2014244: c2 06 20 08 ld [ %i0 + 8 ], %g1 2014248: 82 00 40 08 add %g1, %o0, %g1 201424c: c2 26 20 08 st %g1, [ %i0 + 8 ] return rc; } 2014250: 81 c7 e0 08 ret 2014254: 91 e8 00 08 restore %g0, %o0, %o0