0200f288 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 200f288: 9d e3 bf 98 save %sp, -104, %sp /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 200f28c: 40 00 05 12 call 20106d4 200f290: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200f294: 91 2a 20 10 sll %o0, 0x10, %o0 200f298: 91 32 20 10 srl %o0, 0x10, %o0 200f29c: 80 a2 20 00 cmp %o0, 0 200f2a0: 22 80 00 0c be,a 200f2d0 200f2a4: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] 200f2a8: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 200f2ac: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200f2b0: 22 80 00 08 be,a 200f2d0 <== NOT EXECUTED 200f2b4: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200f2b8: 40 00 18 48 call 20153d8 <__errno> <== NOT EXECUTED 200f2bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200f2c0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200f2c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200f2c8: 81 c7 e0 08 ret <== NOT EXECUTED 200f2cc: 81 e8 00 00 restore <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; 200f2d0: f4 34 20 3a sth %i2, [ %l0 + 0x3a ] IMFS_update_ctime( jnode ); 200f2d4: 90 07 bf f8 add %fp, -8, %o0 200f2d8: 7f ff d2 06 call 2003af0 200f2dc: 92 10 20 00 clr %o1 200f2e0: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f2e4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 200f2e8: 81 c7 e0 08 ret 200f2ec: 91 e8 20 00 restore %g0, 0, %o0 0200dd60 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200dd60: 9d e3 bf a0 save %sp, -96, %sp IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 200dd64: 80 a6 20 00 cmp %i0, 0 200dd68: 12 80 00 04 bne 200dd78 200dd6c: a0 10 20 00 clr %l0 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200dd70: 81 c7 e0 08 ret <== NOT EXECUTED 200dd74: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 200dd78: 03 00 80 6e sethi %hi(0x201b800), %g1 200dd7c: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 201bbb4 200dd80: 92 10 00 1a mov %i2, %o1 200dd84: d4 10 60 2c lduh [ %g1 + 0x2c ], %o2 200dd88: 90 10 00 19 mov %i1, %o0 200dd8c: b6 2e c0 0a andn %i3, %o2, %i3 200dd90: 95 2e e0 10 sll %i3, 0x10, %o2 200dd94: 7f ff ff c8 call 200dcb4 200dd98: 95 32 a0 10 srl %o2, 0x10, %o2 if ( !node ) 200dd9c: a0 92 20 00 orcc %o0, 0, %l0 200dda0: 02 bf ff f4 be 200dd70 200dda4: 80 a6 60 07 cmp %i1, 7 return NULL; /* * Set the type specific information */ switch (type) { 200dda8: 28 80 00 0a bleu,a 200ddd0 200ddac: b3 2e 60 02 sll %i1, 2, %i1 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 200ddb0: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200ddb4: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED 200ddb8: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED 200ddbc: 90 12 22 70 or %o0, 0x270, %o0 <== NOT EXECUTED 200ddc0: 94 12 a2 c8 or %o2, 0x2c8, %o2 <== NOT EXECUTED 200ddc4: 96 12 e2 c0 or %o3, 0x2c0, %o3 <== NOT EXECUTED 200ddc8: 7f ff d0 44 call 2001ed8 <__assert_func> <== NOT EXECUTED 200ddcc: 92 10 20 5c mov 0x5c, %o1 <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 200ddd0: 03 00 80 37 sethi %hi(0x200dc00), %g1 200ddd4: 82 10 60 94 or %g1, 0x94, %g1 ! 200dc94 200ddd8: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200dddc: 81 c0 40 00 jmp %g1 200dde0: 01 00 00 00 nop 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; 200dde4: c2 07 00 00 ld [ %i4 ], %g1 200dde8: c2 24 20 50 st %g1, [ %l0 + 0x50 ] /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; 200ddec: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 200ddf0: d0 06 00 00 ld [ %i0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200ddf4: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200ddf8: d0 24 20 08 st %o0, [ %l0 + 8 ] node->st_ino = ++fs_info->ino_count; 200ddfc: c2 00 80 00 ld [ %g2 ], %g1 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 200de00: 90 02 20 50 add %o0, 0x50, %o0 200de04: 82 00 60 01 inc %g1 200de08: c2 20 80 00 st %g1, [ %g2 ] 200de0c: c2 24 20 34 st %g1, [ %l0 + 0x34 ] 200de10: 92 10 00 10 mov %l0, %o1 200de14: 7f ff e1 d0 call 2006554 <_Chain_Append> 200de18: b0 10 00 10 mov %l0, %i0 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200de1c: 81 c7 e0 08 ret 200de20: 81 e8 00 00 restore node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200de24: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 200de28: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200de2c: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200de30: c0 24 20 50 clr [ %l0 + 0x50 ] 200de34: c0 24 20 54 clr [ %l0 + 0x54 ] node->info.file.indirect = 0; 200de38: c0 24 20 58 clr [ %l0 + 0x58 ] node->info.file.doubly_indirect = 0; 200de3c: c0 24 20 5c clr [ %l0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200de40: 10 bf ff eb b 200ddec 200de44: c0 24 20 60 clr [ %l0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200de48: 10 bf ff e9 b 200ddec 200de4c: c0 24 20 50 clr [ %l0 + 0x50 ] node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 200de50: c4 07 20 04 ld [ %i4 + 4 ], %g2 case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 200de54: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200de58: c4 24 20 54 st %g2, [ %l0 + 0x54 ] break; 200de5c: 10 bf ff e4 b 200ddec 200de60: c2 24 20 50 st %g1, [ %l0 + 0x50 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200de64: 82 04 20 54 add %l0, 0x54, %g1 the_chain->permanent_null = NULL; 200de68: c0 24 20 54 clr [ %l0 + 0x54 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200de6c: c2 24 20 50 st %g1, [ %l0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200de70: 82 04 20 50 add %l0, 0x50, %g1 200de74: 10 bf ff de b 200ddec 200de78: c2 24 20 58 st %g1, [ %l0 + 0x58 ] 02003c98 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2003c98: 9d e3 bf a0 save %sp, -96, %sp rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2003c9c: 80 a6 20 00 cmp %i0, 0 2003ca0: 02 80 00 2b be 2003d4c 2003ca4: 80 a6 60 00 cmp %i1, 0 assert( level >= 0 ); 2003ca8: 06 80 00 38 bl 2003d88 2003cac: 11 00 80 90 sethi %hi(0x2024000), %o0 assert( the_directory->type == IMFS_DIRECTORY ); 2003cb0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2003cb4: 80 a0 60 01 cmp %g1, 1 2003cb8: 12 80 00 2d bne 2003d6c 2003cbc: a8 06 20 54 add %i0, 0x54, %l4 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2003cc0: e6 06 20 50 ld [ %i0 + 0x50 ], %l3 2003cc4: 80 a4 c0 14 cmp %l3, %l4 2003cc8: 02 80 00 1b be 2003d34 2003ccc: 25 00 80 98 sethi %hi(0x2026000), %l2 2003cd0: 23 00 80 91 sethi %hi(0x2024400), %l1 2003cd4: a4 14 a0 98 or %l2, 0x98, %l2 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2003cd8: a2 14 60 b0 or %l1, 0xb0, %l1 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 2003cdc: aa 06 60 01 add %i1, 1, %l5 for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 2003ce0: a0 10 20 00 clr %l0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2003ce4: c2 04 80 00 ld [ %l2 ], %g1 2003ce8: 90 10 00 11 mov %l1, %o0 2003cec: d6 00 60 08 ld [ %g1 + 8 ], %o3 2003cf0: 92 10 20 01 mov 1, %o1 2003cf4: 40 00 46 d5 call 2015848 2003cf8: 94 10 20 04 mov 4, %o2 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) 2003cfc: a0 04 20 01 inc %l0 2003d00: 80 a6 40 10 cmp %i1, %l0 2003d04: 36 bf ff f9 bge,a 2003ce8 2003d08: c2 04 80 00 ld [ %l2 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 2003d0c: 7f ff ff 7d call 2003b00 2003d10: 90 10 00 13 mov %l3, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 2003d14: c2 04 e0 48 ld [ %l3 + 0x48 ], %g1 2003d18: 80 a0 60 01 cmp %g1, 1 2003d1c: 22 80 00 08 be,a 2003d3c 2003d20: 90 10 00 13 mov %l3, %o0 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 2003d24: e6 04 c0 00 ld [ %l3 ], %l3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2003d28: 80 a4 c0 14 cmp %l3, %l4 2003d2c: 12 bf ff ee bne 2003ce4 2003d30: a0 10 20 00 clr %l0 2003d34: 81 c7 e0 08 ret 2003d38: 81 e8 00 00 restore for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 2003d3c: 7f ff ff d7 call 2003c98 2003d40: 92 10 00 15 mov %l5, %o1 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 2003d44: 10 bf ff f9 b 2003d28 2003d48: e6 04 c0 00 ld [ %l3 ], %l3 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2003d4c: 11 00 80 90 sethi %hi(0x2024000), %o0 <== NOT EXECUTED 2003d50: 15 00 80 91 sethi %hi(0x2024400), %o2 <== NOT EXECUTED 2003d54: 17 00 80 91 sethi %hi(0x2024400), %o3 <== NOT EXECUTED 2003d58: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED 2003d5c: 94 12 a1 60 or %o2, 0x160, %o2 <== NOT EXECUTED 2003d60: 96 12 e0 68 or %o3, 0x68, %o3 <== NOT EXECUTED 2003d64: 40 00 02 01 call 2004568 <__assert_func> <== NOT EXECUTED 2003d68: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 2003d6c: 15 00 80 91 sethi %hi(0x2024400), %o2 <== NOT EXECUTED 2003d70: 17 00 80 91 sethi %hi(0x2024400), %o3 <== NOT EXECUTED 2003d74: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED 2003d78: 94 12 a1 60 or %o2, 0x160, %o2 <== NOT EXECUTED 2003d7c: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 2003d80: 40 00 01 fa call 2004568 <__assert_func> <== NOT EXECUTED 2003d84: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 2003d88: 15 00 80 91 sethi %hi(0x2024400), %o2 <== NOT EXECUTED 2003d8c: 17 00 80 91 sethi %hi(0x2024400), %o3 <== NOT EXECUTED 2003d90: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED 2003d94: 94 12 a1 60 or %o2, 0x160, %o2 <== NOT EXECUTED 2003d98: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2003d9c: 40 00 01 f3 call 2004568 <__assert_func> <== NOT EXECUTED 2003da0: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED 2003da4: 01 00 00 00 nop 02009e68 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009e68: 9d e3 bf 78 save %sp, -136, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009e6c: e0 06 c0 00 ld [ %i3 ], %l0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009e70: 2b 00 80 6e sethi %hi(0x201b800), %l5 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009e74: a2 10 00 18 mov %i0, %l1 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009e78: aa 15 63 b4 or %l5, 0x3b4, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009e7c: a4 10 20 00 clr %l2 2009e80: a6 07 bf d8 add %fp, -40, %l3 2009e84: a8 07 bf fc add %fp, -4, %l4 * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 2009e88: 90 04 40 12 add %l1, %l2, %o0 2009e8c: 92 10 00 19 mov %i1, %o1 2009e90: 94 10 00 13 mov %l3, %o2 2009e94: 40 00 02 7e call 200a88c 2009e98: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 2009e9c: c2 06 c0 00 ld [ %i3 ], %g1 * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 2009ea0: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 2009ea4: 80 a0 60 00 cmp %g1, 0 2009ea8: 02 80 00 59 be 200a00c 2009eac: c4 07 bf fc ld [ %fp + -4 ], %g2 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 2009eb0: a4 04 80 02 add %l2, %g2, %l2 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009eb4: 80 a2 20 00 cmp %o0, 0 2009eb8: 12 80 00 11 bne 2009efc 2009ebc: b2 26 40 02 sub %i1, %g2, %i1 * 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 ) { 2009ec0: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2009ec4: 80 a0 a0 01 cmp %g2, 1 2009ec8: 22 80 00 60 be,a 200a048 2009ecc: c8 00 60 5c ld [ %g1 + 0x5c ], %g4 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 2009ed0: 7f ff ff 50 call 2009c10 2009ed4: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 2009ed8: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 2009edc: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 2009ee0: 7f ff ff 6f call 2009c9c 2009ee4: 90 10 00 1b mov %i3, %o0 2009ee8: 80 a2 20 00 cmp %o0, 0 2009eec: 02 80 00 74 be 200a0bc 2009ef0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009ef4: 81 c7 e0 08 ret 2009ef8: 81 e8 00 00 restore /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 2009efc: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 2009f00: 80 a0 a0 01 cmp %g2, 1 2009f04: 02 80 00 3b be 2009ff0 2009f08: 90 10 00 1b mov %i3, %o0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 2009f0c: 80 a5 a0 03 cmp %l6, 3 2009f10: 02 80 00 0b be 2009f3c 2009f14: a0 10 00 01 mov %g1, %l0 2009f18: 80 a5 a0 04 cmp %l6, 4 2009f1c: 02 80 00 2f be 2009fd8 2009f20: 80 a5 a0 02 cmp %l6, 2 2009f24: 02 80 00 1a be 2009f8c 2009f28: 80 a5 a0 04 cmp %l6, 4 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 2009f2c: 12 bf ff d8 bne 2009e8c 2009f30: 90 04 40 12 add %l1, %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 ) { 2009f34: 10 bf ff e4 b 2009ec4 <== NOT EXECUTED 2009f38: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 2009f3c: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 2009f40: 80 a0 60 03 cmp %g1, 3 2009f44: 02 80 00 38 be 200a024 2009f48: 80 a0 60 04 cmp %g1, 4 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 2009f4c: 02 80 00 62 be 200a0d4 2009f50: 90 10 00 1b mov %i3, %o0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 2009f54: 80 a0 60 01 cmp %g1, 1 2009f58: 12 80 00 53 bne 200a0a4 2009f5c: 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 ) { 2009f60: c8 04 20 5c ld [ %l0 + 0x5c ], %g4 2009f64: 80 a1 20 00 cmp %g4, 0 2009f68: 12 80 00 3b bne 200a054 2009f6c: 90 10 00 10 mov %l0, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009f70: 40 00 02 16 call 200a7c8 2009f74: 92 10 00 13 mov %l3, %o1 if ( !node ) 2009f78: a0 92 20 00 orcc %o0, 0, %l0 2009f7c: 02 80 00 24 be 200a00c 2009f80: 01 00 00 00 nop /* * Set the node access to the point we have found. */ pathloc->node_access = node; break; 2009f84: 10 bf ff c1 b 2009e88 2009f88: e0 26 c0 00 st %l0, [ %i3 ] case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009f8c: c4 05 40 00 ld [ %l5 ], %g2 2009f90: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 2009f94: 80 a0 80 01 cmp %g2, %g1 2009f98: 02 bf ff bd be 2009e8c 2009f9c: 90 04 40 12 add %l1, %l2, %o0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 2009fa0: c8 06 e0 10 ld [ %i3 + 0x10 ], %g4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 2009fa4: c4 01 20 1c ld [ %g4 + 0x1c ], %g2 2009fa8: 80 a0 80 01 cmp %g2, %g1 2009fac: 22 80 00 58 be,a 200a10c 2009fb0: c4 01 20 14 ld [ %g4 + 0x14 ], %g2 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 2009fb4: e0 00 60 08 ld [ %g1 + 8 ], %l0 2009fb8: 80 a4 20 00 cmp %l0, 0 2009fbc: 32 bf ff b4 bne,a 2009e8c 2009fc0: e0 26 c0 00 st %l0, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 2009fc4: 40 00 16 65 call 200f958 <__errno> 2009fc8: b0 10 3f ff mov -1, %i0 2009fcc: ec 22 00 00 st %l6, [ %o0 ] 2009fd0: 81 c7 e0 08 ret 2009fd4: 81 e8 00 00 restore case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 2009fd8: 40 00 16 60 call 200f958 <__errno> 2009fdc: b0 10 3f ff mov -1, %i0 2009fe0: 82 10 20 5b mov 0x5b, %g1 2009fe4: c2 22 00 00 st %g1, [ %o0 ] 2009fe8: 81 c7 e0 08 ret 2009fec: 81 e8 00 00 restore /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 2009ff0: 7f ff ff 2b call 2009c9c 2009ff4: 92 10 20 01 mov 1, %o1 2009ff8: 80 a2 20 00 cmp %o0, 0 2009ffc: 02 80 00 3e be 200a0f4 200a000: 01 00 00 00 nop 200a004: 10 bf ff c2 b 2009f0c 200a008: c2 06 c0 00 ld [ %i3 ], %g1 * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 200a00c: 40 00 16 53 call 200f958 <__errno> 200a010: b0 10 3f ff mov -1, %i0 200a014: 82 10 20 02 mov 2, %g1 200a018: c2 22 00 00 st %g1, [ %o0 ] 200a01c: 81 c7 e0 08 ret 200a020: 81 e8 00 00 restore * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 200a024: 90 10 00 1b mov %i3, %o0 200a028: 7f ff ff 35 call 2009cfc 200a02c: 92 10 20 00 clr %o1 node = pathloc->node_access; 200a030: e0 06 c0 00 ld [ %i3 ], %l0 if ( !node ) 200a034: 80 a4 20 00 cmp %l0, 0 200a038: 02 80 00 1b be 200a0a4 200a03c: 01 00 00 00 nop } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 200a040: 10 bf ff c5 b 2009f54 200a044: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 * * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { 200a048: 80 a1 20 00 cmp %g4, 0 200a04c: 02 bf ff a1 be 2009ed0 200a050: 01 00 00 00 nop newloc = node->info.directory.mt_fs->mt_fs_root; 200a054: c4 01 20 28 ld [ %g4 + 0x28 ], %g2 *pathloc = newloc; 200a058: d6 01 20 2c ld [ %g4 + 0x2c ], %o3 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 200a05c: d8 01 20 24 ld [ %g4 + 0x24 ], %o4 200a060: da 01 20 20 ld [ %g4 + 0x20 ], %o5 *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a064: c2 00 80 00 ld [ %g2 ], %g1 200a068: c6 07 bf fc ld [ %fp + -4 ], %g3 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 200a06c: c8 01 20 1c ld [ %g4 + 0x1c ], %g4 *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a070: 92 06 40 03 add %i1, %g3, %o1 200a074: 86 24 80 03 sub %l2, %g3, %g3 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 200a078: d6 26 e0 10 st %o3, [ %i3 + 0x10 ] 200a07c: d8 26 e0 08 st %o4, [ %i3 + 8 ] 200a080: da 26 e0 04 st %o5, [ %i3 + 4 ] 200a084: c8 26 c0 00 st %g4, [ %i3 ] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a088: 90 04 40 03 add %l1, %g3, %o0 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 200a08c: c4 26 e0 0c st %g2, [ %i3 + 0xc ] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a090: 94 10 00 1a mov %i2, %o2 200a094: 9f c0 40 00 call %g1 200a098: 96 10 00 1b mov %i3, %o3 200a09c: 81 c7 e0 08 ret 200a0a0: 91 e8 00 08 restore %g0, %o0, %o0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200a0a4: 40 00 16 2d call 200f958 <__errno> 200a0a8: b0 10 3f ff mov -1, %i0 200a0ac: 82 10 20 14 mov 0x14, %g1 200a0b0: c2 22 00 00 st %g1, [ %o0 ] 200a0b4: 81 c7 e0 08 ret 200a0b8: 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 ); 200a0bc: 40 00 16 27 call 200f958 <__errno> 200a0c0: b0 10 3f ff mov -1, %i0 200a0c4: 82 10 20 0d mov 0xd, %g1 200a0c8: c2 22 00 00 st %g1, [ %o0 ] return result; } 200a0cc: 81 c7 e0 08 ret 200a0d0: 81 e8 00 00 restore if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 200a0d4: 7f ff ff 25 call 2009d68 200a0d8: 92 10 20 00 clr %o1 node = pathloc->node_access; 200a0dc: e0 06 c0 00 ld [ %i3 ], %l0 if ( result == -1 ) 200a0e0: 80 a2 3f ff cmp %o0, -1 200a0e4: 02 bf ff 84 be 2009ef4 200a0e8: b0 10 00 08 mov %o0, %i0 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 200a0ec: 10 bf ff 9a b 2009f54 200a0f0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200a0f4: 40 00 16 19 call 200f958 <__errno> 200a0f8: b0 10 3f ff mov -1, %i0 200a0fc: 82 10 20 0d mov 0xd, %g1 200a100: c2 22 00 00 st %g1, [ %o0 ] 200a104: 81 c7 e0 08 ret 200a108: 81 e8 00 00 restore if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 200a10c: d6 01 20 18 ld [ %g4 + 0x18 ], %o3 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 200a110: d8 01 20 10 ld [ %g4 + 0x10 ], %o4 200a114: da 01 20 0c ld [ %g4 + 0xc ], %o5 *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 200a118: c2 00 80 00 ld [ %g2 ], %g1 200a11c: c6 07 bf fc ld [ %fp + -4 ], %g3 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 200a120: 10 bf ff d4 b 200a070 200a124: c8 01 20 08 ld [ %g4 + 8 ], %g4 0200a200 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200a200: 9d e3 bf 78 save %sp, -136, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200a204: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 200a208: 90 10 00 18 mov %i0, %o0 200a20c: 40 00 19 8a call 2010834 200a210: 2d 00 80 6e sethi %hi(0x201b800), %l6 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200a214: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200a218: a6 10 20 00 clr %l3 200a21c: a8 07 bf d8 add %fp, -40, %l4 200a220: aa 07 bf fc add %fp, -4, %l5 200a224: a4 10 00 08 mov %o0, %l2 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200a228: ac 15 a3 b4 or %l6, 0x3b4, %l6 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200a22c: 92 10 00 12 mov %l2, %o1 200a230: 90 04 40 13 add %l1, %l3, %o0 200a234: 94 10 00 14 mov %l4, %o2 200a238: 40 00 01 95 call 200a88c 200a23c: 96 10 00 15 mov %l5, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 200a240: c2 06 40 00 ld [ %i1 ], %g1 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 200a244: fa 07 bf fc ld [ %fp + -4 ], %i5 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200a248: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 200a24c: 80 a0 60 00 cmp %g1, 0 200a250: 02 80 00 5e be 200a3c8 200a254: a4 24 80 1d sub %l2, %i5, %l2 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200a258: 80 a2 20 00 cmp %o0, 0 200a25c: 32 80 00 08 bne,a 200a27c 200a260: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200a264: 40 00 15 bd call 200f958 <__errno> 200a268: b0 10 3f ff mov -1, %i0 200a26c: 82 10 20 11 mov 0x11, %g1 200a270: c2 22 00 00 st %g1, [ %o0 ] 200a274: 81 c7 e0 08 ret 200a278: 81 e8 00 00 restore /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 200a27c: 80 a0 a0 01 cmp %g2, 1 200a280: 02 80 00 58 be 200a3e0 200a284: 90 10 00 19 mov %i1, %o0 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 200a288: a6 04 c0 1d add %l3, %i5, %l3 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200a28c: 80 a5 e0 02 cmp %l7, 2 200a290: 02 80 00 30 be 200a350 200a294: a0 10 00 01 mov %g1, %l0 200a298: 80 a5 e0 02 cmp %l7, 2 200a29c: 08 80 00 0d bleu 200a2d0 200a2a0: 80 a5 e0 00 cmp %l7, 0 200a2a4: 80 a5 e0 03 cmp %l7, 3 200a2a8: 02 80 00 12 be 200a2f0 200a2ac: 80 a5 e0 04 cmp %l7, 4 200a2b0: 12 bf ff e0 bne 200a230 200a2b4: 92 10 00 12 mov %l2, %o1 case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 200a2b8: 40 00 15 a8 call 200f958 <__errno> 200a2bc: b0 10 3f ff mov -1, %i0 200a2c0: 82 10 20 5b mov 0x5b, %g1 200a2c4: c2 22 00 00 st %g1, [ %o0 ] 200a2c8: 81 c7 e0 08 ret 200a2cc: 81 e8 00 00 restore if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 200a2d0: 12 bf ff d8 bne 200a230 200a2d4: 92 10 00 12 mov %l2, %o1 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200a2d8: 40 00 15 a0 call 200f958 <__errno> <== NOT EXECUTED 200a2dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a2e0: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED 200a2e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a2e8: 81 c7 e0 08 ret <== NOT EXECUTED 200a2ec: 81 e8 00 00 restore <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 200a2f0: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 200a2f4: 80 a0 60 03 cmp %g1, 3 200a2f8: 02 80 00 7f be 200a4f4 200a2fc: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 200a300: 02 80 00 7e be 200a4f8 200a304: 90 10 00 19 mov %i1, %o0 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 200a308: 80 a4 20 00 cmp %l0, 0 200a30c: 02 80 00 61 be 200a490 200a310: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200a314: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200a318: 80 a0 60 01 cmp %g1, 1 200a31c: 12 80 00 5d bne 200a490 200a320: 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 ) { 200a324: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 200a328: 80 a0 e0 00 cmp %g3, 0 200a32c: 12 80 00 5f bne 200a4a8 200a330: 90 10 00 10 mov %l0, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 200a334: 40 00 01 25 call 200a7c8 200a338: 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 ) 200a33c: a0 92 20 00 orcc %o0, 0, %l0 200a340: 02 80 00 17 be 200a39c 200a344: c2 07 bf fc ld [ %fp + -4 ], %g1 done = true; else pathloc->node_access = node; 200a348: 10 bf ff b9 b 200a22c 200a34c: e0 26 40 00 st %l0, [ %i1 ] case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200a350: c4 05 80 00 ld [ %l6 ], %g2 200a354: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 200a358: 80 a0 80 01 cmp %g2, %g1 200a35c: 02 bf ff b5 be 200a230 200a360: 92 10 00 12 mov %l2, %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 200a364: c6 06 60 10 ld [ %i1 + 0x10 ], %g3 200a368: c4 00 e0 1c ld [ %g3 + 0x1c ], %g2 200a36c: 80 a0 80 01 cmp %g2, %g1 200a370: 22 80 00 6f be,a 200a52c 200a374: c4 00 e0 14 ld [ %g3 + 0x14 ], %g2 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 200a378: e0 00 60 08 ld [ %g1 + 8 ], %l0 200a37c: 80 a4 20 00 cmp %l0, 0 200a380: 32 bf ff ac bne,a 200a230 200a384: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200a388: 40 00 15 74 call 200f958 <__errno> 200a38c: b0 10 3f ff mov -1, %i0 200a390: ee 22 00 00 st %l7, [ %o0 ] 200a394: 81 c7 e0 08 ret 200a398: 81 e8 00 00 restore case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 200a39c: 82 24 c0 01 sub %l3, %g1, %g1 200a3a0: 82 04 40 01 add %l1, %g1, %g1 200a3a4: 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++) { 200a3a8: c2 4c 40 13 ldsb [ %l1 + %l3 ], %g1 200a3ac: 80 a0 60 00 cmp %g1, 0 200a3b0: 02 80 00 23 be 200a43c 200a3b4: 80 a0 60 2f cmp %g1, 0x2f if ( !IMFS_is_separator( path[ i ] ) ) 200a3b8: 02 80 00 11 be 200a3fc 200a3bc: 80 a0 60 5c cmp %g1, 0x5c 200a3c0: 22 80 00 10 be,a 200a400 200a3c4: a2 04 40 13 add %l1, %l3, %l1 rtems_set_errno_and_return_minus_one( ENOENT ); 200a3c8: 40 00 15 64 call 200f958 <__errno> <== NOT EXECUTED 200a3cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a3d0: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED 200a3d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a3d8: 81 c7 e0 08 ret <== NOT EXECUTED 200a3dc: 81 e8 00 00 restore <== NOT EXECUTED * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200a3e0: 7f ff fe 2f call 2009c9c 200a3e4: 92 10 20 01 mov 1, %o1 200a3e8: 80 a2 20 00 cmp %o0, 0 200a3ec: 02 80 00 4a be 200a514 200a3f0: 01 00 00 00 nop 200a3f4: 10 bf ff a5 b 200a288 200a3f8: c2 06 40 00 ld [ %i1 ], %g1 * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); 200a3fc: a2 04 40 13 add %l1, %l3, %l1 /* * 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++) { 200a400: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 200a404: 80 a0 60 00 cmp %g1, 0 200a408: 02 80 00 0d be 200a43c 200a40c: a2 04 60 01 inc %l1 if ( !IMFS_is_separator( path[ i ] ) ) 200a410: 80 a0 60 5c cmp %g1, 0x5c 200a414: 02 bf ff fb be 200a400 200a418: 80 a0 60 2f cmp %g1, 0x2f 200a41c: 22 bf ff fa be,a 200a404 200a420: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 rtems_set_errno_and_return_minus_one( ENOENT ); 200a424: 40 00 15 4d call 200f958 <__errno> 200a428: b0 10 3f ff mov -1, %i0 200a42c: 82 10 20 02 mov 2, %g1 200a430: c2 22 00 00 st %g1, [ %o0 ] 200a434: 81 c7 e0 08 ret 200a438: 81 e8 00 00 restore /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 200a43c: 7f ff fd f5 call 2009c10 200a440: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 200a444: c2 06 40 00 ld [ %i1 ], %g1 200a448: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 200a44c: 80 a0 60 01 cmp %g1, 1 200a450: 12 80 00 10 bne 200a490 200a454: b0 10 00 08 mov %o0, %i0 /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 200a458: 90 10 00 19 mov %i1, %o0 200a45c: 7f ff fe 10 call 2009c9c 200a460: 92 10 20 03 mov 3, %o1 200a464: 80 a2 20 00 cmp %o0, 0 200a468: 02 80 00 04 be 200a478 200a46c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200a470: 81 c7 e0 08 ret 200a474: 81 e8 00 00 restore /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200a478: 40 00 15 38 call 200f958 <__errno> 200a47c: b0 10 3f ff mov -1, %i0 200a480: 82 10 20 0d mov 0xd, %g1 200a484: c2 22 00 00 st %g1, [ %o0 ] return result; } 200a488: 81 c7 e0 08 ret 200a48c: 81 e8 00 00 restore /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200a490: 40 00 15 32 call 200f958 <__errno> 200a494: b0 10 3f ff mov -1, %i0 200a498: 82 10 20 14 mov 0x14, %g1 200a49c: c2 22 00 00 st %g1, [ %o0 ] 200a4a0: 81 c7 e0 08 ret 200a4a4: 81 e8 00 00 restore * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 200a4a8: c4 00 e0 28 ld [ %g3 + 0x28 ], %g2 *pathloc = newloc; 200a4ac: d8 00 e0 2c ld [ %g3 + 0x2c ], %o4 * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 200a4b0: da 00 e0 24 ld [ %g3 + 0x24 ], %o5 200a4b4: c8 00 e0 20 ld [ %g3 + 0x20 ], %g4 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a4b8: c2 00 a0 04 ld [ %g2 + 4 ], %g1 * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 200a4bc: c6 00 e0 1c ld [ %g3 + 0x1c ], %g3 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a4c0: d0 07 bf fc ld [ %fp + -4 ], %o0 * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 200a4c4: d8 26 60 10 st %o4, [ %i1 + 0x10 ] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a4c8: 90 24 c0 08 sub %l3, %o0, %o0 * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 200a4cc: da 26 60 08 st %o5, [ %i1 + 8 ] 200a4d0: c8 26 60 04 st %g4, [ %i1 + 4 ] 200a4d4: c6 26 40 00 st %g3, [ %i1 ] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a4d8: 90 04 40 08 add %l1, %o0, %o0 * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 200a4dc: c4 26 60 0c st %g2, [ %i1 + 0xc ] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a4e0: 92 10 00 19 mov %i1, %o1 200a4e4: 9f c0 40 00 call %g1 200a4e8: 94 10 00 1a mov %i2, %o2 200a4ec: 81 c7 e0 08 ret 200a4f0: 91 e8 00 08 restore %g0, %o0, %o0 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 200a4f4: 90 10 00 19 mov %i1, %o0 200a4f8: 7f ff ff 0c call 200a128 200a4fc: 92 10 20 00 clr %o1 if ( result == -1 ) 200a500: 80 a2 3f ff cmp %o0, -1 200a504: 02 bf ff 5c be 200a274 200a508: b0 10 00 08 mov %o0, %i0 200a50c: 10 bf ff 7f b 200a308 200a510: e0 06 40 00 ld [ %i1 ], %l0 */ 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 ); 200a514: 40 00 15 11 call 200f958 <__errno> 200a518: b0 10 3f ff mov -1, %i0 200a51c: 82 10 20 0d mov 0xd, %g1 200a520: c2 22 00 00 st %g1, [ %o0 ] 200a524: 81 c7 e0 08 ret 200a528: 81 e8 00 00 restore if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 200a52c: d8 00 e0 18 ld [ %g3 + 0x18 ], %o4 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 200a530: da 00 e0 10 ld [ %g3 + 0x10 ], %o5 200a534: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200a538: c2 00 a0 04 ld [ %g2 + 4 ], %g1 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 200a53c: 10 bf ff e1 b 200a4c0 200a540: c6 00 e0 08 ld [ %g3 + 8 ], %g3 02009cfc : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009cfc: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 2009d00: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 2009d04: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2009d08: 80 a0 a0 03 cmp %g2, 3 2009d0c: 12 80 00 14 bne 2009d5c 2009d10: 90 10 00 18 mov %i0, %o0 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 2009d14: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 IMFS_Set_handlers( node ); 2009d18: 7f ff ff be call 2009c10 2009d1c: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 2009d20: 90 10 00 18 mov %i0, %o0 2009d24: 92 10 00 19 mov %i1, %o1 2009d28: 7f ff ff dd call 2009c9c 2009d2c: b0 10 20 00 clr %i0 2009d30: 80 a2 20 00 cmp %o0, 0 2009d34: 02 80 00 04 be 2009d44 2009d38: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009d3c: 81 c7 e0 08 ret 2009d40: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 2009d44: 40 00 17 05 call 200f958 <__errno> <== NOT EXECUTED 2009d48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009d4c: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 2009d50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 2009d54: 81 c7 e0 08 ret <== NOT EXECUTED 2009d58: 81 e8 00 00 restore <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 2009d5c: 7f ff f1 0f call 2006198 <== NOT EXECUTED 2009d60: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2009d64: 01 00 00 00 nop 0200a128 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200a128: 9d e3 bf a0 save %sp, -96, %sp 200a12c: 21 00 80 6e sethi %hi(0x201b800), %l0 200a130: a2 10 00 18 mov %i0, %l1 200a134: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 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 ) ) ); 200a138: 10 80 00 07 b 200a154 200a13c: a6 14 23 b4 or %l0, 0x3b4, %l3 */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 200a140: 02 80 00 21 be 200a1c4 200a144: 84 00 bf fd add %g2, -3, %g2 result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200a148: 80 a0 a0 01 cmp %g2, 1 200a14c: 18 80 00 1b bgu 200a1b8 200a150: 90 10 20 00 clr %o0 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 200a154: c4 10 60 2e lduh [ %g1 + 0x2e ], %g2 { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 200a158: e4 04 40 00 ld [ %l1 ], %l2 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 200a15c: 84 00 a0 01 inc %g2 200a160: c4 30 60 2e sth %g2, [ %g1 + 0x2e ] if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 200a164: 85 28 a0 10 sll %g2, 0x10, %g2 200a168: 85 30 a0 10 srl %g2, 0x10, %g2 200a16c: 80 a0 a0 05 cmp %g2, 5 200a170: 18 80 00 1d bgu 200a1e4 200a174: 01 00 00 00 nop /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 200a178: c4 04 a0 48 ld [ %l2 + 0x48 ], %g2 200a17c: 80 a0 a0 03 cmp %g2, 3 200a180: 12 bf ff f0 bne 200a140 200a184: 80 a0 a0 04 cmp %g2, 4 result = IMFS_evaluate_hard_link( node, flags ); 200a188: 90 10 00 11 mov %l1, %o0 200a18c: 7f ff fe dc call 2009cfc 200a190: 92 10 00 19 mov %i1, %o1 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 ) ) ); 200a194: 80 a2 20 00 cmp %o0, 0 200a198: 12 80 00 08 bne 200a1b8 200a19c: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 200a1a0: c4 04 a0 48 ld [ %l2 + 0x48 ], %g2 200a1a4: 84 00 bf fd add %g2, -3, %g2 200a1a8: 80 a0 a0 01 cmp %g2, 1 200a1ac: 08 bf ff ea bleu 200a154 200a1b0: c2 04 c0 00 ld [ %l3 ], %g1 200a1b4: 90 10 20 00 clr %o0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 200a1b8: c0 30 60 2e clrh [ %g1 + 0x2e ] return result; } 200a1bc: 81 c7 e0 08 ret 200a1c0: 91 e8 00 08 restore %g0, %o0, %o0 if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); 200a1c4: 90 10 00 11 mov %l1, %o0 200a1c8: 7f ff fe e8 call 2009d68 200a1cc: 92 10 00 19 mov %i1, %o1 } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200a1d0: 80 a2 20 00 cmp %o0, 0 200a1d4: 22 bf ff f4 be,a 200a1a4 200a1d8: c4 04 a0 48 ld [ %l2 + 0x48 ], %g2 200a1dc: 10 bf ff f7 b 200a1b8 200a1e0: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 200a1e4: 40 00 15 dd call 200f958 <__errno> 200a1e8: c0 30 60 2e clrh [ %g1 + 0x2e ] 200a1ec: 82 10 20 5c mov 0x5c, %g1 200a1f0: c2 22 00 00 st %g1, [ %o0 ] 200a1f4: 90 10 3f ff mov -1, %o0 */ rtems_filesystem_link_counts = 0; return result; } 200a1f8: 81 c7 e0 08 ret 200a1fc: 91 e8 00 08 restore %g0, %o0, %o0 02009c9c : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 2009c9c: 9d e3 bf a0 save %sp, -96, %sp } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 2009ca0: 40 00 04 de call 200b018 2009ca4: e0 06 00 00 ld [ %i0 ], %l0 st_gid = getegid(); 2009ca8: 40 00 04 d8 call 200b008 2009cac: a2 10 00 08 mov %o0, %l1 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 2009cb0: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 2009cb4: a3 2c 60 10 sll %l1, 0x10, %l1 2009cb8: a3 34 60 10 srl %l1, 0x10, %l1 2009cbc: 80 a4 40 01 cmp %l1, %g1 2009cc0: 02 80 00 09 be 2009ce4 2009cc4: 83 2e 60 06 sll %i1, 6, %g1 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 2009cc8: c2 14 20 3a lduh [ %l0 + 0x3a ], %g1 2009ccc: 91 2a 20 10 sll %o0, 0x10, %o0 2009cd0: 91 32 20 10 srl %o0, 0x10, %o0 2009cd4: 80 a2 00 01 cmp %o0, %g1 2009cd8: 02 80 00 03 be 2009ce4 2009cdc: 83 2e 60 03 sll %i1, 3, %g1 2009ce0: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED flags_to_test <<= 3; 2009ce4: c4 14 20 2e lduh [ %l0 + 0x2e ], %g2 2009ce8: 82 28 40 02 andn %g1, %g2, %g1 */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 2009cec: 80 a0 00 01 cmp %g0, %g1 2009cf0: b0 60 3f ff subx %g0, -1, %i0 2009cf4: 81 c7 e0 08 ret 2009cf8: 81 e8 00 00 restore 02009d68 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009d68: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 2009d6c: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 2009d70: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2009d74: 80 a0 a0 04 cmp %g2, 4 2009d78: 12 80 00 39 bne 2009e5c 2009d7c: 01 00 00 00 nop rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 2009d80: c4 00 60 08 ld [ %g1 + 8 ], %g2 2009d84: 80 a0 a0 00 cmp %g2, 0 2009d88: 02 80 00 33 be 2009e54 2009d8c: 01 00 00 00 nop /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 2009d90: c4 26 00 00 st %g2, [ %i0 ] rtems_filesystem_get_sym_start_loc( 2009d94: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2009d98: c6 48 80 00 ldsb [ %g2 ], %g3 2009d9c: 80 a0 e0 5c cmp %g3, 0x5c 2009da0: 02 80 00 19 be 2009e04 2009da4: 80 a0 e0 2f cmp %g3, 0x2f 2009da8: 02 80 00 17 be 2009e04 2009dac: 80 a0 e0 00 cmp %g3, 0 2009db0: 02 80 00 15 be 2009e04 2009db4: a0 10 20 00 clr %l0 * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 2009db8: a0 00 80 10 add %g2, %l0, %l0 2009dbc: 40 00 1a 9e call 2010834 2009dc0: 90 10 00 10 mov %l0, %o0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 2009dc4: 94 10 00 19 mov %i1, %o2 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 2009dc8: 92 10 00 08 mov %o0, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 2009dcc: 96 10 00 18 mov %i0, %o3 2009dd0: 40 00 00 26 call 2009e68 2009dd4: 90 10 00 10 mov %l0, %o0 2009dd8: a0 10 00 08 mov %o0, %l0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 2009ddc: 7f ff ff 8d call 2009c10 2009de0: 90 10 00 18 mov %i0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 2009de4: 90 10 00 18 mov %i0, %o0 2009de8: 7f ff ff ad call 2009c9c 2009dec: 92 10 00 19 mov %i1, %o1 2009df0: 80 a2 20 00 cmp %o0, 0 2009df4: 02 80 00 13 be 2009e40 2009df8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009dfc: 81 c7 e0 08 ret 2009e00: 91 e8 00 10 restore %g0, %l0, %o0 * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 2009e04: 05 00 80 6e sethi %hi(0x201b800), %g2 2009e08: c4 00 a3 b4 ld [ %g2 + 0x3b4 ], %g2 ! 201bbb4 2009e0c: a0 10 20 01 mov 1, %l0 2009e10: c6 00 a0 18 ld [ %g2 + 0x18 ], %g3 2009e14: c6 26 00 00 st %g3, [ %i0 ] 2009e18: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 2009e1c: c6 26 20 04 st %g3, [ %i0 + 4 ] 2009e20: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 2009e24: c6 26 20 08 st %g3, [ %i0 + 8 ] 2009e28: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 2009e2c: c6 26 20 0c st %g3, [ %i0 + 0xc ] 2009e30: c4 00 a0 28 ld [ %g2 + 0x28 ], %g2 2009e34: c4 26 20 10 st %g2, [ %i0 + 0x10 ] 2009e38: 10 bf ff e0 b 2009db8 2009e3c: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 2009e40: 40 00 16 c6 call 200f958 <__errno> <== NOT EXECUTED 2009e44: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED 2009e48: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 2009e4c: 10 bf ff ec b 2009dfc <== NOT EXECUTED 2009e50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 2009e54: 7f ff f0 d1 call 2006198 <== NOT EXECUTED 2009e58: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 2009e5c: 7f ff f0 cf call 2006198 <== NOT EXECUTED 2009e60: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2009e64: 01 00 00 00 nop 0200de7c : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200de7c: 9d e3 bf 98 save %sp, -104, %sp /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 200de80: 7f ff f4 66 call 200b018 200de84: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200de88: 91 2a 20 10 sll %o0, 0x10, %o0 200de8c: 91 32 20 10 srl %o0, 0x10, %o0 200de90: 80 a2 20 00 cmp %o0, 0 200de94: 22 80 00 0c be,a 200dec4 200de98: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 200de9c: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 200dea0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200dea4: 22 80 00 08 be,a 200dec4 <== NOT EXECUTED 200dea8: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200deac: 40 00 06 ab call 200f958 <__errno> <== NOT EXECUTED 200deb0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200deb4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200deb8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200debc: 81 c7 e0 08 ret <== NOT EXECUTED 200dec0: 81 e8 00 00 restore <== NOT EXECUTED */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); 200dec4: 90 07 bf f8 add %fp, -8, %o0 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 200dec8: 82 08 70 00 and %g1, -4096, %g1 IMFS_update_ctime( jnode ); 200decc: 92 10 20 00 clr %o1 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 200ded0: b2 0e 6f ff and %i1, 0xfff, %i1 200ded4: b2 16 40 01 or %i1, %g1, %i1 IMFS_update_ctime( jnode ); 200ded8: 7f ff f4 54 call 200b028 200dedc: f2 34 20 2e sth %i1, [ %l0 + 0x2e ] 200dee0: c2 07 bf f8 ld [ %fp + -8 ], %g1 200dee4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 200dee8: 81 c7 e0 08 ret 200deec: 91 e8 20 00 restore %g0, 0, %o0 0200a704 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 200a704: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200a708: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 200a70c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 200a710: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 200a714: 40 00 0b f7 call 200d6f0 <== NOT EXECUTED 200a718: 90 04 60 50 add %l1, 0x50, %o0 <== NOT EXECUTED if (! err) { 200a71c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200a720: 02 80 00 06 be 200a738 <== NOT EXECUTED 200a724: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) free(jnode); } IMFS_FIFO_RETURN(err); 200a728: 06 80 00 14 bl 200a778 <== NOT EXECUTED 200a72c: 01 00 00 00 nop <== NOT EXECUTED } 200a730: 81 c7 e0 08 ret <== NOT EXECUTED 200a734: 81 e8 00 00 restore <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 200a738: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) 200a73c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 200a740: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) 200a744: 40 00 02 72 call 200b10c <== NOT EXECUTED 200a748: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED 200a74c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a750: 12 80 00 08 bne 200a770 <== NOT EXECUTED 200a754: 01 00 00 00 nop <== NOT EXECUTED 200a758: c2 14 60 30 lduh [ %l1 + 0x30 ], %g1 <== NOT EXECUTED 200a75c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a760: 12 80 00 04 bne 200a770 <== NOT EXECUTED 200a764: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 200a768: 40 00 01 b6 call 200ae40 <== NOT EXECUTED 200a76c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200a770: 81 c7 e0 08 ret <== NOT EXECUTED 200a774: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200a778: 40 00 14 78 call 200f958 <__errno> <== NOT EXECUTED 200a77c: b0 20 00 18 neg %i0 <== NOT EXECUTED 200a780: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200a784: 81 c7 e0 08 ret <== NOT EXECUTED 200a788: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200a5a0 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200a5a0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 200a5a4: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED 200a5a8: 82 10 62 7e or %g1, 0x27e, %g1 ! 8004667e <== NOT EXECUTED 200a5ac: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200a5b0: 02 80 00 0c be 200a5e0 <== NOT EXECUTED 200a5b4: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 200a5b8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200a5bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200a5c0: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200a5c4: 40 00 0b 3c call 200d2b4 <== NOT EXECUTED 200a5c8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200a5cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200a5d0: 06 80 00 13 bl 200a61c <== NOT EXECUTED 200a5d4: b2 20 00 18 neg %i0, %i1 <== NOT EXECUTED } 200a5d8: 81 c7 e0 08 ret <== NOT EXECUTED 200a5dc: 81 e8 00 00 restore <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 200a5e0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200a5e4: 02 80 00 0e be 200a61c <== NOT EXECUTED 200a5e8: b2 10 20 0e mov 0xe, %i1 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 200a5ec: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 200a5f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200a5f4: 02 80 00 06 be 200a60c <== NOT EXECUTED 200a5f8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 200a5fc: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 200a600: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200a604: 81 c7 e0 08 ret <== NOT EXECUTED 200a608: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200a60c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 200a610: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200a614: 81 c7 e0 08 ret <== NOT EXECUTED 200a618: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 200a61c: 40 00 14 cf call 200f958 <__errno> <== NOT EXECUTED 200a620: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a624: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED } 200a628: 81 c7 e0 08 ret <== NOT EXECUTED 200a62c: 81 e8 00 00 restore <== NOT EXECUTED 0200a544 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200a544: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200a548: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200a54c: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200a550: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200a554: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 200a558: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200a55c: 40 00 0b 38 call 200d23c <== NOT EXECUTED 200a560: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200a564: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 200a568: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200a56c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200a570: 06 80 00 05 bl 200a584 <== NOT EXECUTED 200a574: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED } 200a578: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 200a57c: 81 c7 e0 08 ret <== NOT EXECUTED 200a580: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 200a584: 40 00 14 f5 call 200f958 <__errno> <== NOT EXECUTED 200a588: a0 20 00 10 neg %l0 <== NOT EXECUTED 200a58c: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200a590: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 200a594: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200a598: 10 bf ff f8 b 200a578 <== NOT EXECUTED 200a59c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED 0200a78c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200a78c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200a790: d0 06 20 3c ld [ %i0 + 0x3c ], %o0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200a794: 92 10 00 18 mov %i0, %o1 IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200a798: 40 00 0c 28 call 200d838 200a79c: 90 02 20 50 add %o0, 0x50, %o0 IMFS_FIFO_RETURN(err); 200a7a0: b0 92 20 00 orcc %o0, 0, %i0 200a7a4: 06 80 00 04 bl 200a7b4 200a7a8: 01 00 00 00 nop } 200a7ac: 81 c7 e0 08 ret <== NOT EXECUTED 200a7b0: 81 e8 00 00 restore <== NOT EXECUTED ) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); 200a7b4: 40 00 14 69 call 200f958 <__errno> 200a7b8: b0 20 00 18 neg %i0 200a7bc: f0 22 00 00 st %i0, [ %o0 ] } 200a7c0: 81 c7 e0 08 ret 200a7c4: 91 e8 3f ff restore %g0, -1, %o0 0200a69c : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200a69c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200a6a0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200a6a4: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 200a6a8: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200a6ac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200a6b0: 40 00 0b 1a call 200d318 <== NOT EXECUTED 200a6b4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 200a6b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200a6bc: 04 80 00 08 ble 200a6dc <== NOT EXECUTED 200a6c0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 200a6c4: 40 00 02 59 call 200b028 <== NOT EXECUTED 200a6c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a6cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200a6d0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED 200a6d4: 81 c7 e0 08 ret <== NOT EXECUTED 200a6d8: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200a6dc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200a6e0: 12 80 00 04 bne 200a6f0 <== NOT EXECUTED 200a6e4: 01 00 00 00 nop <== NOT EXECUTED } 200a6e8: 81 c7 e0 08 ret <== NOT EXECUTED 200a6ec: 81 e8 00 00 restore <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 200a6f0: 40 00 14 9a call 200f958 <__errno> <== NOT EXECUTED 200a6f4: b0 20 00 18 neg %i0 <== NOT EXECUTED 200a6f8: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200a6fc: 81 c7 e0 08 ret <== NOT EXECUTED 200a700: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200a630 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200a630: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200a634: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200a638: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 200a63c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200a640: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200a644: 40 00 0b a4 call 200d4d4 <== NOT EXECUTED 200a648: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 200a64c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200a650: 04 80 00 09 ble 200a674 <== NOT EXECUTED 200a654: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 200a658: 40 00 02 74 call 200b028 <== NOT EXECUTED 200a65c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200a660: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200a664: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 200a668: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 200a66c: 81 c7 e0 08 ret <== NOT EXECUTED 200a670: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200a674: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200a678: 12 80 00 04 bne 200a688 <== NOT EXECUTED 200a67c: 01 00 00 00 nop <== NOT EXECUTED } 200a680: 81 c7 e0 08 ret <== NOT EXECUTED 200a684: 81 e8 00 00 restore <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); 200a688: 40 00 14 b4 call 200f958 <__errno> <== NOT EXECUTED 200a68c: b0 20 00 18 neg %i0 <== NOT EXECUTED 200a690: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200a694: 81 c7 e0 08 ret <== NOT EXECUTED 200a698: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200a7c8 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 200a7c8: 9d e3 bf a0 save %sp, -96, %sp /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 200a7cc: 80 a6 20 00 cmp %i0, 0 200a7d0: 02 80 00 26 be 200a868 200a7d4: 80 a6 60 00 cmp %i1, 0 if ( !name ) 200a7d8: 02 80 00 11 be 200a81c 200a7dc: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 200a7e0: 13 00 80 6b sethi %hi(0x201ac00), %o1 200a7e4: 40 00 17 c3 call 20106f0 200a7e8: 92 12 62 b8 or %o1, 0x2b8, %o1 ! 201aeb8 200a7ec: 80 a2 20 00 cmp %o0, 0 200a7f0: 02 80 00 09 be 200a814 200a7f4: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 200a7f8: 13 00 80 6b sethi %hi(0x201ac00), %o1 200a7fc: 40 00 17 bd call 20106f0 200a800: 92 12 62 c0 or %o1, 0x2c0, %o1 ! 201aec0 200a804: 80 a2 20 00 cmp %o0, 0 200a808: 32 80 00 07 bne,a 200a824 200a80c: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 return directory->Parent; 200a810: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 200a814: 81 c7 e0 08 ret <== NOT EXECUTED 200a818: 81 e8 00 00 restore <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 200a81c: 81 c7 e0 08 ret 200a820: 91 e8 20 00 restore %g0, 0, %o0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200a824: b0 06 20 54 add %i0, 0x54, %i0 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 200a828: 80 a4 00 18 cmp %l0, %i0 200a82c: 12 80 00 07 bne 200a848 200a830: 90 10 00 19 mov %i1, %o0 200a834: 81 c7 e0 08 ret 200a838: 91 e8 20 00 restore %g0, 0, %o0 200a83c: 80 a4 00 18 cmp %l0, %i0 200a840: 02 bf ff f7 be 200a81c 200a844: 90 10 00 19 mov %i1, %o0 !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 ) ) 200a848: 40 00 17 aa call 20106f0 200a84c: 92 04 20 0c add %l0, 0xc, %o1 200a850: 80 a2 20 00 cmp %o0, 0 200a854: 32 bf ff fa bne,a 200a83c 200a858: e0 04 00 00 ld [ %l0 ], %l0 200a85c: b0 10 00 10 mov %l0, %i0 200a860: 81 c7 e0 08 ret 200a864: 81 e8 00 00 restore /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 200a868: 11 00 80 6b sethi %hi(0x201ac00), %o0 <== NOT EXECUTED 200a86c: 15 00 80 6b sethi %hi(0x201ac00), %o2 <== NOT EXECUTED 200a870: 17 00 80 6b sethi %hi(0x201ac00), %o3 <== NOT EXECUTED 200a874: 90 12 22 58 or %o0, 0x258, %o0 <== NOT EXECUTED 200a878: 94 12 a2 c8 or %o2, 0x2c8, %o2 <== NOT EXECUTED 200a87c: 96 12 e2 a8 or %o3, 0x2a8, %o3 <== NOT EXECUTED 200a880: 7f ff dd 96 call 2001ed8 <__assert_func> <== NOT EXECUTED 200a884: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED 200a888: 01 00 00 00 nop 020100b8 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 20100b8: 9d e3 bf 88 save %sp, -120, %sp * 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; 20100bc: c8 06 20 20 ld [ %i0 + 0x20 ], %g4 20100c0: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 20100c4: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 20100c8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 /* * 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; 20100cc: e4 06 20 1c ld [ %i0 + 0x1c ], %l2 loc = temp_mt_entry->mt_fs_root; 20100d0: c8 27 bf f0 st %g4, [ %fp + -16 ] 20100d4: c6 27 bf f4 st %g3, [ %fp + -12 ] 20100d8: c4 27 bf f8 st %g2, [ %fp + -8 ] 20100dc: c2 27 bf fc st %g1, [ %fp + -4 ] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 20100e0: c0 26 20 1c clr [ %i0 + 0x1c ] 20100e4: a0 07 bf ec add %fp, -20, %l0 do { next = jnode->Parent; loc.node_access = (void *)jnode; 20100e8: e4 27 bf ec st %l2, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 20100ec: e2 04 a0 08 ld [ %l2 + 8 ], %l1 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 20100f0: 7f ff fd 02 call 200f4f8 20100f4: 90 10 00 10 mov %l0, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 20100f8: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 20100fc: 80 a0 60 01 cmp %g1, 1 2010100: 12 80 00 17 bne 201015c 2010104: 84 04 a0 54 add %l2, 0x54, %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2010108: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1 201010c: 80 a0 40 02 cmp %g1, %g2 2010110: 22 80 00 14 be,a 2010160 2010114: 90 10 20 00 clr %o0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 2010118: 80 a4 a0 00 cmp %l2, 0 201011c: 02 80 00 0e be 2010154 2010120: 01 00 00 00 nop if ( jnode->type == IMFS_DIRECTORY ) { 2010124: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 2010128: 80 a0 60 01 cmp %g1, 1 201012c: 32 bf ff f0 bne,a 20100ec 2010130: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED 2010134: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1 2010138: 84 04 a0 54 add %l2, 0x54, %g2 201013c: 80 a0 40 02 cmp %g1, %g2 2010140: 22 bf ff eb be,a 20100ec 2010144: e4 27 bf ec st %l2, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 2010148: a4 90 60 00 orcc %g1, 0, %l2 201014c: 32 bf ff e8 bne,a 20100ec 2010150: e4 27 bf ec st %l2, [ %fp + -20 ] return 0; } 2010154: 81 c7 e0 08 ret 2010158: 91 e8 20 00 restore %g0, 0, %o0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 201015c: 90 10 20 00 clr %o0 2010160: 7f ff cc 56 call 20032b8 2010164: 92 10 00 10 mov %l0, %o1 if (result != 0) 2010168: 80 a2 20 00 cmp %o0, 0 201016c: 02 bf ff eb be 2010118 2010170: a4 10 00 11 mov %l1, %l2 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 2010174: 81 c7 e0 08 ret <== NOT EXECUTED 2010178: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200a88c : const char *path, int pathlen, char *token, int *token_len ) { 200a88c: 9d e3 bf a0 save %sp, -96, %sp register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 200a890: c2 0e 00 00 ldub [ %i0 ], %g1 while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200a894: 87 28 60 18 sll %g1, 0x18, %g3 200a898: 85 38 e0 18 sra %g3, 0x18, %g2 200a89c: 80 a0 a0 2f cmp %g2, 0x2f 200a8a0: 02 80 00 34 be 200a970 200a8a4: 80 a0 a0 5c cmp %g2, 0x5c 200a8a8: 02 80 00 32 be 200a970 200a8ac: 80 a0 00 02 cmp %g0, %g2 200a8b0: 84 40 20 00 addx %g0, 0, %g2 200a8b4: 80 a6 60 00 cmp %i1, 0 200a8b8: 04 80 00 30 ble 200a978 200a8bc: 86 08 a0 ff and %g2, 0xff, %g3 200a8c0: 86 88 a0 ff andcc %g2, 0xff, %g3 200a8c4: 02 80 00 2e be 200a97c 200a8c8: 80 a0 e0 00 cmp %g3, 0 token[i] = c; 200a8cc: c2 2e 80 00 stb %g1, [ %i2 ] 200a8d0: 82 10 20 00 clr %g1 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 200a8d4: 82 00 60 01 inc %g1 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200a8d8: c4 4e 00 01 ldsb [ %i0 + %g1 ], %g2 200a8dc: 80 a0 a0 5c cmp %g2, 0x5c 200a8e0: 02 80 00 07 be 200a8fc 200a8e4: c6 0e 00 01 ldub [ %i0 + %g1 ], %g3 200a8e8: 80 a0 a0 2f cmp %g2, 0x2f 200a8ec: 02 80 00 04 be 200a8fc 200a8f0: 80 a6 40 01 cmp %i1, %g1 200a8f4: 14 80 00 18 bg 200a954 200a8f8: 80 a0 a0 00 cmp %g2, 0 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 200a8fc: 84 06 80 01 add %i2, %g1, %g2 200a900: c4 48 bf ff ldsb [ %g2 + -1 ], %g2 200a904: 80 a0 a0 00 cmp %g2, 0 200a908: 32 80 00 02 bne,a 200a910 200a90c: c0 2e 80 01 clrb [ %i2 + %g1 ] /* * Set token_len to the number of characters copied. */ *token_len = i; 200a910: c2 26 c0 00 st %g1, [ %i3 ] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 200a914: 90 10 00 1a mov %i2, %o0 200a918: 13 00 80 6b sethi %hi(0x201ac00), %o1 200a91c: b0 10 20 02 mov 2, %i0 200a920: 40 00 17 74 call 20106f0 200a924: 92 12 62 e8 or %o1, 0x2e8, %o1 200a928: 80 a2 20 00 cmp %o0, 0 200a92c: 02 80 00 19 be 200a990 200a930: 90 10 00 1a mov %i2, %o0 type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 200a934: 13 00 80 6b sethi %hi(0x201ac00), %o1 200a938: 40 00 17 6e call 20106f0 200a93c: 92 12 62 e0 or %o1, 0x2e0, %o1 ! 201aee0 <__FUNCTION__.5462+0x18> 200a940: 80 a0 00 08 cmp %g0, %o0 200a944: b0 60 20 00 subx %g0, 0, %i0 200a948: b0 0e 20 02 and %i0, 2, %i0 type = IMFS_CURRENT_DIR; } return type; } 200a94c: 81 c7 e0 08 ret 200a950: 91 ee 20 01 restore %i0, 1, %o0 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 200a954: 22 bf ff eb be,a 200a900 200a958: 84 06 80 01 add %i2, %g1, %g2 <== NOT EXECUTED token[i] = c; if ( i == IMFS_NAME_MAX ) 200a95c: 80 a0 60 20 cmp %g1, 0x20 200a960: 12 bf ff dd bne 200a8d4 200a964: c6 2e 80 01 stb %g3, [ %i2 + %g1 ] 200a968: 81 c7 e0 08 ret 200a96c: 91 e8 20 04 restore %g0, 4, %o0 200a970: 80 a0 00 03 cmp %g0, %g3 200a974: 86 40 20 00 addx %g0, 0, %g3 */ if ( i == 0 ) { token[i] = c; if ( (token[i] != '\0') && pathlen ) { 200a978: 80 a0 e0 00 cmp %g3, 0 200a97c: 12 80 00 07 bne 200a998 200a980: c2 2e 80 00 stb %g1, [ %i2 ] type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 200a984: b0 10 20 00 clr %i0 200a988: 82 10 20 00 clr %g1 /* * Set token_len to the number of characters copied. */ *token_len = i; 200a98c: c2 26 c0 00 st %g1, [ %i3 ] 200a990: 81 c7 e0 08 ret 200a994: 81 e8 00 00 restore */ if ( i == 0 ) { token[i] = c; if ( (token[i] != '\0') && pathlen ) { 200a998: 80 a6 60 00 cmp %i1, 0 200a99c: b0 10 20 01 mov 1, %i0 200a9a0: 12 bf ff fb bne 200a98c 200a9a4: 82 10 20 01 mov 1, %g1 type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 200a9a8: 10 bf ff f8 b 200a988 200a9ac: b0 10 20 00 clr %i0 0200a9b0 : 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 ) { 200a9b0: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 200a9b4: 03 00 80 6e sethi %hi(0x201b800), %g1 200a9b8: c2 00 62 a8 ld [ %g1 + 0x2a8 ], %g1 ! 201baa8 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 200a9bc: 80 a0 60 10 cmp %g1, 0x10 200a9c0: 02 80 00 0a be 200a9e8 200a9c4: 86 10 20 00 clr %g3 200a9c8: 84 10 20 20 mov 0x20, %g2 200a9cc: 80 a0 40 02 cmp %g1, %g2 200a9d0: 02 80 00 06 be 200a9e8 200a9d4: 86 00 e0 01 inc %g3 200a9d8: 80 a0 e0 05 cmp %g3, 5 200a9dc: 12 bf ff fc bne 200a9cc 200a9e0: 85 28 a0 01 sll %g2, 1, %g2 200a9e4: 82 10 20 80 mov 0x80, %g1 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 200a9e8: 05 00 80 70 sethi %hi(0x201c000), %g2 /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); 200a9ec: 40 00 0c cd call 200dd20 200a9f0: c2 20 a2 6c st %g1, [ %g2 + 0x26c ] ! 201c26c 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; 200a9f4: 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_root_node(); 200a9f8: d0 26 20 1c st %o0, [ %i0 + 0x1c ] temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; 200a9fc: f2 26 20 28 st %i1, [ %i0 + 0x28 ] * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 200aa00: f6 26 20 24 st %i3, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 200aa04: 13 00 80 6c sethi %hi(0x201b000), %o1 200aa08: 90 06 20 38 add %i0, 0x38, %o0 200aa0c: 40 00 16 0e call 2010244 200aa10: 92 12 62 3c or %o1, 0x23c, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 200aa14: 90 10 20 01 mov 1, %o0 200aa18: 40 00 00 c5 call 200ad2c 200aa1c: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ) { 200aa20: 80 a2 20 00 cmp %o0, 0 200aa24: 02 80 00 0c be 200aa54 200aa28: 82 10 20 01 mov 1, %g1 fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 200aa2c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 200aa30: 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; 200aa34: d0 26 20 34 st %o0, [ %i0 + 0x34 ] * 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; 200aa38: f6 22 20 08 st %i3, [ %o0 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 200aa3c: 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; 200aa40: f4 22 20 04 st %i2, [ %o0 + 4 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 200aa44: 40 00 0a 00 call 200d244 200aa48: b0 10 20 00 clr %i0 return 0; } 200aa4c: 81 c7 e0 08 ret 200aa50: 81 e8 00 00 restore /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); 200aa54: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 <== NOT EXECUTED 200aa58: 40 00 00 fa call 200ae40 <== NOT EXECUTED 200aa5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 200aa60: 40 00 13 be call 200f958 <__errno> <== NOT EXECUTED 200aa64: 01 00 00 00 nop <== NOT EXECUTED 200aa68: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200aa6c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200aa70: 81 c7 e0 08 ret <== NOT EXECUTED 200aa74: 81 e8 00 00 restore <== NOT EXECUTED 02002f04 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 2002f04: 9d e3 bf 50 save %sp, -176, %sp int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 2002f08: c2 06 00 00 ld [ %i0 ], %g1 2002f0c: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2002f10: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 2002f14: 80 a0 60 07 cmp %g1, 7 2002f18: 18 80 00 1f bgu 2002f94 2002f1c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 2002f20: 40 00 4c cc call 2016250 2002f24: 90 10 00 1a mov %i2, %o0 2002f28: a0 07 bf b0 add %fp, -80, %l0 2002f2c: 92 10 00 08 mov %o0, %o1 2002f30: 96 07 bf fc add %fp, -4, %o3 2002f34: 94 10 00 10 mov %l0, %o2 2002f38: 40 00 34 c2 call 2010240 2002f3c: 90 10 00 1a mov %i2, %o0 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 2002f40: 90 10 00 19 mov %i1, %o0 2002f44: 94 10 00 10 mov %l0, %o2 2002f48: 92 10 20 03 mov 3, %o1 2002f4c: 17 00 00 28 sethi %hi(0xa000), %o3 2002f50: 98 07 bf d8 add %fp, -40, %o4 2002f54: 40 00 31 1a call 200f3bc 2002f58: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2002f5c: 80 a2 20 00 cmp %o0, 0 2002f60: 02 80 00 13 be 2002fac 2002f64: c2 07 bf d8 ld [ %fp + -40 ], %g1 /* * 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 ); 2002f68: 90 07 bf f4 add %fp, -12, %o0 rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 2002f6c: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002f70: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 2002f74: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002f78: 40 00 02 de call 2003af0 2002f7c: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] 2002f80: c4 07 bf f4 ld [ %fp + -12 ], %g2 2002f84: c2 07 bf d8 ld [ %fp + -40 ], %g1 2002f88: c4 20 60 44 st %g2, [ %g1 + 0x44 ] return 0; } 2002f8c: 81 c7 e0 08 ret 2002f90: 91 e8 20 00 restore %g0, 0, %o0 /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) rtems_set_errno_and_return_minus_one( EMLINK ); 2002f94: 40 00 49 11 call 20153d8 <__errno> 2002f98: b0 10 3f ff mov -1, %i0 2002f9c: 82 10 20 1f mov 0x1f, %g1 2002fa0: c2 22 00 00 st %g1, [ %o0 ] 2002fa4: 81 c7 e0 08 ret 2002fa8: 81 e8 00 00 restore ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 2002fac: 40 00 49 0b call 20153d8 <__errno> <== NOT EXECUTED 2002fb0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002fb4: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2002fb8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002fbc: 81 c7 e0 08 ret <== NOT EXECUTED 2002fc0: 81 e8 00 00 restore <== NOT EXECUTED 020131b8 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 20131b8: 9d e3 bf a0 save %sp, -96, %sp block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 20131bc: 80 a6 20 00 cmp %i0, 0 20131c0: 02 80 00 18 be 2013220 20131c4: 11 00 80 84 sethi %hi(0x2021000), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 20131c8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 20131cc: 80 a0 60 05 cmp %g1, 5 20131d0: 12 80 00 1b bne 201323c 20131d4: 90 10 00 18 mov %i0, %o0 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 ); 20131d8: 92 10 00 19 mov %i1, %o1 20131dc: 7f ff fe 64 call 2012b6c 20131e0: 94 10 20 01 mov 1, %o2 if ( *block_entry_ptr ) 20131e4: c2 02 00 00 ld [ %o0 ], %g1 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 ); 20131e8: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 20131ec: 80 a0 60 00 cmp %g1, 0 20131f0: 02 80 00 04 be 2013200 20131f4: b0 10 20 00 clr %i0 if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } 20131f8: 81 c7 e0 08 ret 20131fc: 81 e8 00 00 restore #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 2013200: 7f ff fe 4e call 2012b38 2013204: b0 10 20 01 mov 1, %i0 if ( !memory ) 2013208: 80 a2 20 00 cmp %o0, 0 201320c: 02 bf ff fb be 20131f8 2013210: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 2013214: d0 24 00 00 st %o0, [ %l0 ] return 0; } 2013218: 81 c7 e0 08 ret 201321c: 91 e8 20 00 restore %g0, 0, %o0 ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 2013220: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 2013224: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013228: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 201322c: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED 2013230: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 2013234: 7f ff c0 cb call 2003560 <__assert_func> <== NOT EXECUTED 2013238: 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 ); 201323c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013240: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 2013244: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013248: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 201324c: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED 2013250: 96 12 e3 10 or %o3, 0x310, %o3 <== NOT EXECUTED 2013254: 7f ff c0 c3 call 2003560 <__assert_func> <== NOT EXECUTED 2013258: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 201325c: 01 00 00 00 nop 02013260 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 2013260: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2013264: 80 a6 20 00 cmp %i0, 0 2013268: 02 80 00 5e be 20133e0 201326c: 11 00 80 84 sethi %hi(0x2021000), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013270: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2013274: 80 a0 60 05 cmp %g1, 5 2013278: 12 80 00 53 bne 20133c4 201327c: 03 00 80 88 sethi %hi(0x2022000), %g1 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 2013280: e2 00 63 44 ld [ %g1 + 0x344 ], %l1 ! 2022344 2013284: a1 34 60 02 srl %l1, 2, %l0 2013288: 92 10 00 10 mov %l0, %o1 201328c: 40 00 2c e5 call 201e620 <.umul> 2013290: 90 04 20 01 add %l0, 1, %o0 2013294: 92 10 00 10 mov %l0, %o1 2013298: 40 00 2c e2 call 201e620 <.umul> 201329c: 90 02 20 01 inc %o0 20132a0: 92 10 00 11 mov %l1, %o1 20132a4: 40 00 2c df call 201e620 <.umul> 20132a8: 90 02 3f ff add %o0, -1, %o0 20132ac: 82 10 20 00 clr %g1 20132b0: 80 a0 40 19 cmp %g1, %i1 20132b4: 34 80 00 0e bg,a 20132ec 20132b8: e4 06 20 50 ld [ %i0 + 0x50 ], %l2 <== NOT EXECUTED 20132bc: 80 a0 40 19 cmp %g1, %i1 20132c0: 02 80 00 08 be 20132e0 20132c4: 80 a2 00 1a cmp %o0, %i2 rtems_set_errno_and_return_minus_one( EINVAL ); 20132c8: 40 00 08 44 call 20153d8 <__errno> <== NOT EXECUTED 20132cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20132d0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20132d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20132d8: 81 c7 e0 08 ret <== NOT EXECUTED 20132dc: 81 e8 00 00 restore <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 20132e0: 08 bf ff fa bleu 20132c8 20132e4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 20132e8: e4 06 20 50 ld [ %i0 + 0x50 ], %l2 20132ec: 80 a6 40 12 cmp %i1, %l2 20132f0: 04 80 00 2a ble 2013398 20132f4: e8 06 20 54 ld [ %i0 + 0x54 ], %l4 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 20132f8: a7 3c 60 1f sra %l1, 0x1f, %l3 <== NOT EXECUTED 20132fc: 96 10 00 11 mov %l1, %o3 2013300: 94 10 00 13 mov %l3, %o2 2013304: 90 10 00 19 mov %i1, %o0 2013308: 40 00 2e 8b call 201ed34 <__divdi3> 201330c: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013310: 90 10 00 12 mov %l2, %o0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013314: a0 10 00 09 mov %o1, %l0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013318: 94 10 00 13 mov %l3, %o2 201331c: 92 10 00 14 mov %l4, %o1 2013320: 40 00 2e 85 call 201ed34 <__divdi3> 2013324: 96 10 00 11 mov %l1, %o3 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2013328: 80 a4 00 09 cmp %l0, %o1 201332c: 0a 80 00 1f bcs 20133a8 2013330: a4 10 00 09 mov %o1, %l2 2013334: 10 80 00 05 b 2013348 2013338: a2 10 00 09 mov %o1, %l1 201333c: 80 a4 00 11 cmp %l0, %l1 2013340: 2a 80 00 1b bcs,a 20133ac 2013344: f4 26 20 54 st %i2, [ %i0 + 0x54 ] if ( IMFS_memfile_addblock( the_jnode, block ) ) { 2013348: 90 10 00 18 mov %i0, %o0 201334c: 7f ff ff 9b call 20131b8 2013350: 92 10 00 11 mov %l1, %o1 2013354: 80 a2 20 00 cmp %o0, 0 2013358: 22 bf ff f9 be,a 201333c 201335c: a2 04 60 01 inc %l1 for ( ; block>=old_blocks ; block-- ) { 2013360: 10 80 00 06 b 2013378 <== NOT EXECUTED 2013364: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 2013368: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201336c: 7f ff fe d0 call 2012eac <== NOT EXECUTED 2013370: a2 04 7f ff add %l1, -1, %l1 <== 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-- ) { 2013374: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 2013378: 08 bf ff fc bleu 2013368 <== NOT EXECUTED 201337c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 2013380: 40 00 08 16 call 20153d8 <__errno> <== NOT EXECUTED 2013384: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2013388: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 201338c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013390: 81 c7 e0 08 ret <== NOT EXECUTED 2013394: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 2013398: 02 80 00 08 be 20133b8 201339c: 80 a6 80 14 cmp %i2, %l4 20133a0: 81 c7 e0 08 ret 20133a4: 91 e8 20 00 restore %g0, 0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 20133a8: f4 26 20 54 st %i2, [ %i0 + 0x54 ] <== NOT EXECUTED 20133ac: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 20133b0: 81 c7 e0 08 ret 20133b4: 91 e8 20 00 restore %g0, 0, %o0 rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 20133b8: 18 bf ff d1 bgu 20132fc 20133bc: a7 3c 60 1f sra %l1, 0x1f, %l3 20133c0: 30 bf ff f8 b,a 20133a0 assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 20133c4: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 20133c8: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 20133cc: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 20133d0: 94 12 a0 78 or %o2, 0x78, %o2 <== NOT EXECUTED 20133d4: 96 12 e3 10 or %o3, 0x310, %o3 <== NOT EXECUTED 20133d8: 7f ff c0 62 call 2003560 <__assert_func> <== NOT EXECUTED 20133dc: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 20133e0: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 20133e4: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 20133e8: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 20133ec: 94 12 a0 78 or %o2, 0x78, %o2 <== NOT EXECUTED 20133f0: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 20133f4: 7f ff c0 5b call 2003560 <__assert_func> <== NOT EXECUTED 20133f8: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED 20133fc: 01 00 00 00 nop 02012b6c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2012b6c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2012b70: 80 a6 20 00 cmp %i0, 0 2012b74: 02 80 00 91 be 2012db8 2012b78: 11 00 80 84 sethi %hi(0x2021000), %o0 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2012b7c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2012b80: 80 a0 60 05 cmp %g1, 5 2012b84: 12 80 00 94 bne 2012dd4 2012b88: 03 00 80 88 sethi %hi(0x2022000), %g1 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2012b8c: e0 00 63 44 ld [ %g1 + 0x344 ], %l0 ! 2022344 2012b90: a1 34 20 02 srl %l0, 2, %l0 2012b94: 82 04 3f ff add %l0, -1, %g1 2012b98: 80 a6 40 01 cmp %i1, %g1 2012b9c: 08 80 00 20 bleu 2012c1c 2012ba0: 80 a6 a0 00 cmp %i2, 0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 2012ba4: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED 2012ba8: 40 00 2e 9e call 201e620 <.umul> <== NOT EXECUTED 2012bac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2012bb0: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 2012bb4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2012bb8: 18 80 00 21 bgu 2012c3c <== NOT EXECUTED 2012bbc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 2012bc0: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2012bc4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2012bc8: 40 00 2f 7c call 201e9b8 <.urem> <== NOT EXECUTED 2012bcc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2012bd0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2012bd4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2012bd8: 40 00 2e cc call 201e708 <.udiv> <== NOT EXECUTED 2012bdc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2012be0: 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; 2012be4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2012be8: 02 80 00 42 be 2012cf0 <== NOT EXECUTED 2012bec: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 2012bf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012bf4: 02 80 00 5e be 2012d6c <== NOT EXECUTED 2012bf8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 2012bfc: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 2012c00: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 2012c04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012c08: 02 80 00 52 be 2012d50 <== NOT EXECUTED 2012c0c: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED if ( !p1 ) return 0; p[ doubly ] = (block_p) p1; } return (block_p *)&p1[ singly ]; 2012c10: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2012c14: 81 c7 e0 08 ret <== NOT EXECUTED 2012c18: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 2012c1c: 02 80 00 40 be 2012d1c 2012c20: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 if ( !p ) { 2012c24: 80 a2 20 00 cmp %o0, 0 2012c28: 02 80 00 43 be 2012d34 2012c2c: 01 00 00 00 nop p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 2012c30: b3 2e 60 02 sll %i1, 2, %i1 2012c34: 81 c7 e0 08 ret 2012c38: 91 ea 00 19 restore %o0, %i1, %o0 #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 2012c3c: 90 02 20 01 inc %o0 <== NOT EXECUTED 2012c40: 40 00 2e 78 call 201e620 <.umul> <== NOT EXECUTED 2012c44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2012c48: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 2012c4c: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 2012c50: 18 80 00 31 bgu 2012d14 <== NOT EXECUTED 2012c54: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 2012c58: a2 26 40 11 sub %i1, %l1, %l1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2012c5c: 40 00 2f 57 call 201e9b8 <.urem> <== NOT EXECUTED 2012c60: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2012c64: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2012c68: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2012c6c: 40 00 2e a7 call 201e708 <.udiv> <== NOT EXECUTED 2012c70: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 2012c74: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2012c78: 40 00 2e a4 call 201e708 <.udiv> <== NOT EXECUTED 2012c7c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2012c80: 92 10 00 10 mov %l0, %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; 2012c84: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2012c88: 40 00 2f 4c call 201e9b8 <.urem> <== NOT EXECUTED 2012c8c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2012c90: 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; 2012c94: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2012c98: 02 80 00 3c be 2012d88 <== NOT EXECUTED 2012c9c: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 2012ca0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012ca4: 02 80 00 53 be 2012df0 <== NOT EXECUTED 2012ca8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 2012cac: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2012cb0: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 2012cb4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2012cb8: 02 80 00 55 be 2012e0c <== NOT EXECUTED 2012cbc: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 2012cc0: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 2012cc4: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 2012cc8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012ccc: 12 bf ff d9 bne 2012c30 <== NOT EXECUTED 2012cd0: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 2012cd4: 7f ff ff 99 call 2012b38 <== NOT EXECUTED 2012cd8: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2012cdc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012ce0: 22 80 00 13 be,a 2012d2c <== NOT EXECUTED 2012ce4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 2012ce8: 10 bf ff d2 b 2012c30 <== NOT EXECUTED 2012cec: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 2012cf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012cf4: 02 80 00 0e be 2012d2c <== NOT EXECUTED 2012cf8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2012cfc: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 2012d00: c2 00 40 10 ld [ %g1 + %l0 ], %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 ]; 2012d04: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2012d08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012d0c: 12 80 00 08 bne 2012d2c <== NOT EXECUTED 2012d10: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 2012d14: 81 c7 e0 08 ret <== NOT EXECUTED 2012d18: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 2012d1c: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 2012d20: 80 a2 20 00 cmp %o0, 0 2012d24: 02 bf ff fc be 2012d14 2012d28: b0 02 00 19 add %o0, %i1, %i0 /* * This means the requested block number is out of range. */ return 0; } 2012d2c: 81 c7 e0 08 ret 2012d30: 81 e8 00 00 restore p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 2012d34: 7f ff ff 81 call 2012b38 2012d38: 01 00 00 00 nop if ( !p ) 2012d3c: 80 a2 20 00 cmp %o0, 0 2012d40: 22 bf ff fb be,a 2012d2c 2012d44: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 2012d48: 10 bf ff ba b 2012c30 2012d4c: d0 26 20 58 st %o0, [ %i0 + 0x58 ] info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 2012d50: 7f ff ff 7a call 2012b38 <== NOT EXECUTED 2012d54: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2012d58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012d5c: 22 bf ff f4 be,a 2012d2c <== NOT EXECUTED 2012d60: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 2012d64: 10 bf ff ab b 2012c10 <== NOT EXECUTED 2012d68: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 2012d6c: 7f ff ff 73 call 2012b38 <== NOT EXECUTED 2012d70: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2012d74: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2012d78: 22 bf ff ed be,a 2012d2c <== NOT EXECUTED 2012d7c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 2012d80: 10 bf ff 9f b 2012bfc <== NOT EXECUTED 2012d84: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 2012d88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012d8c: 02 bf ff e8 be 2012d2c <== NOT EXECUTED 2012d90: 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 ]; 2012d94: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2012d98: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 2012d9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2012da0: 02 bf ff e3 be 2012d2c <== NOT EXECUTED 2012da4: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 2012da8: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 2012dac: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED 2012db0: 81 c7 e0 08 ret <== NOT EXECUTED 2012db4: 91 ee 00 19 restore %i0, %i1, %o0 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2012db8: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2012dbc: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2012dc0: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2012dc4: 94 12 a3 b8 or %o2, 0x3b8, %o2 <== NOT EXECUTED 2012dc8: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 2012dcc: 7f ff c1 e5 call 2003560 <__assert_func> <== NOT EXECUTED 2012dd0: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2012dd4: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2012dd8: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2012ddc: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2012de0: 94 12 a3 b8 or %o2, 0x3b8, %o2 <== NOT EXECUTED 2012de4: 96 12 e3 10 or %o3, 0x310, %o3 <== NOT EXECUTED 2012de8: 7f ff c1 de call 2003560 <__assert_func> <== NOT EXECUTED 2012dec: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 2012df0: 7f ff ff 52 call 2012b38 <== NOT EXECUTED 2012df4: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2012df8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2012dfc: 22 bf ff cc be,a 2012d2c <== NOT EXECUTED 2012e00: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 2012e04: 10 bf ff aa b 2012cac <== NOT EXECUTED 2012e08: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 2012e0c: 7f ff ff 4b call 2012b38 <== NOT EXECUTED 2012e10: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2012e14: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2012e18: 22 bf ff c5 be,a 2012d2c <== NOT EXECUTED 2012e1c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 2012e20: 10 bf ff a8 b 2012cc0 <== NOT EXECUTED 2012e24: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED 020138a8 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 20138a8: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20138ac: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 20138b0: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 20138b4: 02 80 00 ae be 2013b6c 20138b8: a6 10 00 1a mov %i2, %l3 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 20138bc: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20138c0: 84 00 7f fb add %g1, -5, %g2 20138c4: 80 a0 a0 01 cmp %g2, 1 20138c8: 18 80 00 a1 bgu 2013b4c 20138cc: 80 a6 e0 00 cmp %i3, 0 /* * Error checks on arguments */ assert( dest ); 20138d0: 02 80 00 b7 be 2013bac 20138d4: 80 a7 20 00 cmp %i4, 0 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 20138d8: 02 80 00 87 be 2013af4 20138dc: 80 a0 60 06 cmp %g1, 6 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 20138e0: 02 80 00 5e be 2013a58 20138e4: 86 10 20 00 clr %g3 * 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 ) 20138e8: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 /* * 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; 20138ec: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 20138f0: 80 a0 c0 02 cmp %g3, %g2 20138f4: c8 04 20 54 ld [ %l0 + 0x54 ], %g4 20138f8: 14 80 00 56 bg 2013a50 20138fc: 9a 07 00 1a add %i4, %i2, %o5 2013900: 80 a0 c0 02 cmp %g3, %g2 2013904: 02 80 00 51 be 2013a48 2013908: 80 a3 40 04 cmp %o5, %g4 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 201390c: 29 00 80 88 sethi %hi(0x2022000), %l4 2013910: e2 05 23 44 ld [ %l4 + 0x344 ], %l1 ! 2022344 2013914: 90 10 00 12 mov %l2, %o0 2013918: ab 3c 60 1f sra %l1, 0x1f, %l5 201391c: 96 10 00 11 mov %l1, %o3 2013920: 94 10 00 15 mov %l5, %o2 2013924: 40 00 2d eb call 201f0d0 <__moddi3> 2013928: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 201392c: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2013930: ac 10 00 09 mov %o1, %l6 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013934: 94 10 00 15 mov %l5, %o2 2013938: 92 10 00 13 mov %l3, %o1 201393c: 40 00 2c fe call 201ed34 <__divdi3> 2013940: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2013944: 80 a5 a0 00 cmp %l6, 0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013948: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 201394c: aa 10 00 1b mov %i3, %l5 2013950: 02 80 00 14 be 20139a0 2013954: b0 10 20 00 clr %i0 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 ); 2013958: 90 10 00 10 mov %l0, %o0 201395c: 7f ff fc 84 call 2012b6c 2013960: 94 10 20 00 clr %o2 assert( block_ptr ); 2013964: 80 a2 20 00 cmp %o0, 0 2013968: 02 80 00 89 be 2013b8c 201396c: a2 24 40 16 sub %l1, %l6, %l1 */ 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; 2013970: 80 a7 00 11 cmp %i4, %l1 2013974: 18 80 00 4c bgu 2013aa4 2013978: b0 10 00 1c mov %i4, %i0 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 ); 201397c: d2 02 00 00 ld [ %o0 ], %o1 2013980: 94 10 00 18 mov %i0, %o2 2013984: 90 10 00 1b mov %i3, %o0 2013988: 40 00 08 cf call 2015cc4 201398c: 92 02 40 16 add %o1, %l6, %o1 dest += to_copy; block++; my_length -= to_copy; 2013990: e2 05 23 44 ld [ %l4 + 0x344 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; 2013994: aa 06 c0 18 add %i3, %i0, %l5 block++; 2013998: a4 04 a0 01 inc %l2 my_length -= to_copy; 201399c: b8 27 00 18 sub %i4, %i0, %i4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 20139a0: 80 a7 00 11 cmp %i4, %l1 20139a4: 0a 80 00 15 bcs 20139f8 20139a8: 80 a7 20 00 cmp %i4, 0 20139ac: a8 15 23 44 or %l4, 0x344, %l4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 20139b0: 90 10 00 10 mov %l0, %o0 20139b4: 92 10 00 12 mov %l2, %o1 20139b8: 7f ff fc 6d call 2012b6c 20139bc: 94 10 20 00 clr %o2 assert( block_ptr ); 20139c0: 80 a2 20 00 cmp %o0, 0 20139c4: 02 80 00 52 be 2013b0c 20139c8: 94 10 00 11 mov %l1, %o2 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 20139cc: d2 02 00 00 ld [ %o0 ], %o1 20139d0: 40 00 08 bd call 2015cc4 20139d4: 90 10 00 15 mov %l5, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 20139d8: c2 05 00 00 ld [ %l4 ], %g1 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 20139dc: b8 27 00 11 sub %i4, %l1, %i4 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; 20139e0: aa 05 40 11 add %l5, %l1, %l5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 20139e4: 80 a0 40 1c cmp %g1, %i4 assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; 20139e8: a4 04 a0 01 inc %l2 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 20139ec: 08 bf ff f1 bleu 20139b0 20139f0: b0 06 00 11 add %i0, %l1, %i0 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 20139f4: 80 a7 20 00 cmp %i4, 0 20139f8: 02 80 00 0e be 2013a30 20139fc: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013a00: 92 10 00 12 mov %l2, %o1 2013a04: 90 10 00 10 mov %l0, %o0 2013a08: 7f ff fc 59 call 2012b6c 2013a0c: 94 10 20 00 clr %o2 assert( block_ptr ); 2013a10: 80 a2 20 00 cmp %o0, 0 2013a14: 02 80 00 46 be 2013b2c 2013a18: b0 06 00 1c add %i0, %i4, %i0 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 2013a1c: d2 02 00 00 ld [ %o0 ], %o1 2013a20: 90 10 00 15 mov %l5, %o0 2013a24: 40 00 08 a8 call 2015cc4 2013a28: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 2013a2c: 90 07 bf f8 add %fp, -8, %o0 2013a30: 7f ff c0 30 call 2003af0 2013a34: 92 10 20 00 clr %o1 2013a38: c2 07 bf f8 ld [ %fp + -8 ], %g1 2013a3c: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return copied; } 2013a40: 81 c7 e0 08 ret 2013a44: 81 e8 00 00 restore * 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 ) 2013a48: 08 bf ff b2 bleu 2013910 2013a4c: 29 00 80 88 sethi %hi(0x2022000), %l4 my_length = the_jnode->info.file.size - start; 2013a50: 10 bf ff af b 201390c 2013a54: b8 21 00 01 sub %g4, %g1, %i4 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 2013a58: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 2013a5c: 82 10 20 00 clr %g1 <== NOT EXECUTED 2013a60: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 2013a64: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 2013a68: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2013a6c: 04 80 00 10 ble 2013aac <== NOT EXECUTED 2013a70: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 2013a74: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 2013a78: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 2013a7c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2013a80: 40 00 08 91 call 2015cc4 <== NOT EXECUTED 2013a84: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 2013a88: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2013a8c: 7f ff c0 19 call 2003af0 <== NOT EXECUTED 2013a90: 92 10 20 00 clr %o1 <== NOT EXECUTED 2013a94: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2013a98: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 2013a9c: 81 c7 e0 08 ret <== NOT EXECUTED 2013aa0: 81 e8 00 00 restore <== NOT EXECUTED */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; 2013aa4: 10 bf ff b6 b 201397c 2013aa8: b0 10 00 11 mov %l1, %i0 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 2013aac: 02 80 00 0d be 2013ae0 <== NOT EXECUTED 2013ab0: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 2013ab4: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 2013ab8: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2013abc: 40 00 08 82 call 2015cc4 <== NOT EXECUTED 2013ac0: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 2013ac4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2013ac8: 7f ff c0 0a call 2003af0 <== NOT EXECUTED 2013acc: 92 10 20 00 clr %o1 <== NOT EXECUTED 2013ad0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2013ad4: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 2013ad8: 81 c7 e0 08 ret <== NOT EXECUTED 2013adc: 81 e8 00 00 restore <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 2013ae0: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 2013ae4: 38 bf ff e5 bgu,a 2013a78 <== NOT EXECUTED 2013ae8: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED 2013aec: 10 bf ff f2 b 2013ab4 <== NOT EXECUTED 2013af0: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 2013af4: 40 00 06 39 call 20153d8 <__errno> <== NOT EXECUTED 2013af8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2013afc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2013b00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013b04: 81 c7 e0 08 ret <== NOT EXECUTED 2013b08: 81 e8 00 00 restore <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2013b0c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013b10: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013b14: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013b18: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013b1c: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 2013b20: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2013b24: 7f ff be 8f call 2003560 <__assert_func> <== NOT EXECUTED 2013b28: 92 10 22 a7 mov 0x2a7, %o1 <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2013b2c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013b30: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013b34: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013b38: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013b3c: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 2013b40: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2013b44: 7f ff be 87 call 2003560 <__assert_func> <== NOT EXECUTED 2013b48: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 2013b4c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013b50: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013b54: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013b58: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013b5c: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 2013b60: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 2013b64: 7f ff be 7f call 2003560 <__assert_func> <== NOT EXECUTED 2013b68: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2013b6c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013b70: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013b74: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013b78: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013b7c: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 2013b80: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 2013b84: 7f ff be 77 call 2003560 <__assert_func> <== NOT EXECUTED 2013b88: 92 10 22 4c mov 0x24c, %o1 <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2013b8c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013b90: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013b94: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013b98: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013b9c: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 2013ba0: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2013ba4: 7f ff be 6f call 2003560 <__assert_func> <== NOT EXECUTED 2013ba8: 92 10 22 96 mov 0x296, %o1 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 2013bac: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2013bb0: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013bb4: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013bb8: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013bbc: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED 2013bc0: 96 12 e3 b0 or %o3, 0x3b0, %o3 <== NOT EXECUTED 2013bc4: 7f ff be 67 call 2003560 <__assert_func> <== NOT EXECUTED 2013bc8: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED 2013bcc: 01 00 00 00 nop 02012f08 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 2012f08: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2012f0c: 80 a6 20 00 cmp %i0, 0 2012f10: 02 80 00 62 be 2013098 2012f14: 11 00 80 84 sethi %hi(0x2021000), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2012f18: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2012f1c: 80 a0 60 05 cmp %g1, 5 2012f20: 12 80 00 65 bne 20130b4 2012f24: 23 00 80 88 sethi %hi(0x2022000), %l1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2012f28: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 /* * 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; 2012f2c: e6 04 63 44 ld [ %l1 + 0x344 ], %l3 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2012f30: 80 a0 60 00 cmp %g1, 0 2012f34: 02 80 00 05 be 2012f48 2012f38: a7 34 e0 02 srl %l3, 2, %l3 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 2012f3c: 90 06 20 58 add %i0, 0x58, %o0 2012f40: 7f ff ff ba call 2012e28 2012f44: 92 10 00 13 mov %l3, %o1 } if ( info->doubly_indirect ) { 2012f48: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 2012f4c: 80 a0 60 00 cmp %g1, 0 2012f50: 02 80 00 1b be 2012fbc 2012f54: c4 04 63 44 ld [ %l1 + 0x344 ], %g2 for ( i=0 ; i <== NOT EXECUTED 2012f64: 90 10 20 00 clr %o0 <== NOT EXECUTED 2012f68: 25 00 80 88 sethi %hi(0x2022000), %l2 <== NOT EXECUTED 2012f6c: a4 14 a3 44 or %l2, 0x344, %l2 ! 2022344 <== NOT EXECUTED 2012f70: 10 80 00 03 b 2012f7c <== NOT EXECUTED 2012f74: a0 10 20 00 clr %l0 <== NOT EXECUTED 2012f78: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 2012f7c: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2012f80: c4 00 40 08 ld [ %g1 + %o0 ], %g2 <== NOT EXECUTED 2012f84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2012f88: 02 80 00 04 be 2012f98 <== NOT EXECUTED 2012f8c: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 2012f90: 7f ff ff a6 call 2012e28 <== NOT EXECUTED 2012f94: 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 2012fac: 90 10 00 10 mov %l0, %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 ); 2012fb0: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 2012fb4: 7f ff ff 9d call 2012e28 <== NOT EXECUTED 2012fb8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED } if ( info->triply_indirect ) { 2012fbc: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 2012fc0: 80 a2 20 00 cmp %o0, 0 2012fc4: 02 80 00 33 be 2013090 2012fc8: c2 04 63 44 ld [ %l1 + 0x344 ], %g1 for ( i=0 ; i <== NOT EXECUTED 2012fd8: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 2012fdc: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2012fe0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2012fe4: 22 80 00 29 be,a 2013088 <== NOT EXECUTED 2012fe8: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2012fec: 25 00 80 88 sethi %hi(0x2022000), %l2 <== NOT EXECUTED 2012ff0: aa 10 20 00 clr %l5 <== NOT EXECUTED 2012ff4: a4 14 a3 44 or %l2, 0x344, %l2 <== NOT EXECUTED 2012ff8: a8 10 20 00 clr %l4 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 2013004: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED 2013008: 90 10 20 00 clr %o0 <== NOT EXECUTED 201300c: a0 10 20 00 clr %l0 <== NOT EXECUTED if ( p[j] ) { 2013010: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2013014: c2 04 40 08 ld [ %l1 + %o0 ], %g1 <== NOT EXECUTED 2013018: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201301c: 02 80 00 04 be 201302c <== NOT EXECUTED 2013020: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 2013024: 7f ff ff 81 call 2012e28 <== NOT EXECUTED 2013028: 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 2013040: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2013044: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 2013048: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED 201304c: 7f ff ff 77 call 2012e28 <== NOT EXECUTED 2013050: 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 2013068: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 201306c: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2013070: ab 2d 20 02 sll %l4, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 2013074: e2 02 00 15 ld [ %o0 + %l5 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2013078: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 201307c: 12 bf ff e1 bne 2013000 <== NOT EXECUTED 2013080: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 2013084: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2013088: 7f ff ff 68 call 2012e28 <== NOT EXECUTED 201308c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2013090: 81 c7 e0 08 ret 2013094: 91 e8 20 00 restore %g0, 0, %o0 /* * Perform internal consistency checks */ assert( the_jnode ); 2013098: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 201309c: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 20130a0: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 20130a4: 94 12 a0 08 or %o2, 8, %o2 <== NOT EXECUTED 20130a8: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 20130ac: 7f ff c1 2d call 2003560 <__assert_func> <== NOT EXECUTED 20130b0: 92 10 21 ee mov 0x1ee, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 20130b4: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 20130b8: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 20130bc: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 20130c0: 94 12 a0 08 or %o2, 8, %o2 <== NOT EXECUTED 20130c4: 96 12 e3 10 or %o3, 0x310, %o3 <== NOT EXECUTED 20130c8: 7f ff c1 26 call 2003560 <__assert_func> <== NOT EXECUTED 20130cc: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 20130d0: 01 00 00 00 nop 02012eac : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 2012eac: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2012eb0: 94 10 20 00 clr %o2 <== NOT EXECUTED 2012eb4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2012eb8: 7f ff ff 2d call 2012b6c <== NOT EXECUTED 2012ebc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 2012ec0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012ec4: 02 80 00 08 be 2012ee4 <== NOT EXECUTED 2012ec8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 2012ecc: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED *block_ptr = 0; 2012ed0: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED memfile_free_block( ptr ); 2012ed4: 7f ff ff 10 call 2012b14 <== NOT EXECUTED 2012ed8: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED } return 1; } 2012edc: 81 c7 e0 08 ret <== NOT EXECUTED 2012ee0: 81 e8 00 00 restore <== NOT EXECUTED { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2012ee4: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2012ee8: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 2012eec: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2012ef0: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2012ef4: 94 12 a0 40 or %o2, 0x40, %o2 <== NOT EXECUTED 2012ef8: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2012efc: 7f ff c1 99 call 2003560 <__assert_func> <== NOT EXECUTED 2012f00: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED 2012f04: 01 00 00 00 nop 0201352c : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 201352c: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2013530: a0 96 20 00 orcc %i0, 0, %l0 2013534: 02 80 00 85 be 2013748 2013538: 11 00 80 84 sethi %hi(0x2021000), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 201353c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2013540: 80 a0 60 05 cmp %g1, 5 2013544: 12 80 00 8f bne 2013780 2013548: 80 a6 e0 00 cmp %i3, 0 /* * Error check arguments */ assert( source ); 201354c: 02 80 00 86 be 2013764 2013550: 80 a7 20 00 cmp %i4, 0 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 2013554: 02 80 00 67 be 20136f0 2013558: 01 00 00 00 nop * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 201355c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2013560: 80 a0 60 00 cmp %g1, 0 2013564: 06 80 00 57 bl 20136c0 2013568: 94 07 00 1a add %i4, %i2, %o2 201356c: 80 a0 60 00 cmp %g1, 0 2013570: 22 80 00 51 be,a 20136b4 2013574: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2013578: 25 00 80 88 sethi %hi(0x2022000), %l2 <== NOT EXECUTED 201357c: e2 04 a3 44 ld [ %l2 + 0x344 ], %l1 ! 2022344 2013580: 90 10 00 19 mov %i1, %o0 2013584: a7 3c 60 1f sra %l1, 0x1f, %l3 2013588: 96 10 00 11 mov %l1, %o3 201358c: 94 10 00 13 mov %l3, %o2 2013590: 40 00 2e d0 call 201f0d0 <__moddi3> 2013594: 92 10 00 1a mov %i2, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013598: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 201359c: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 20135a0: 90 10 00 19 mov %i1, %o0 20135a4: 92 10 00 1a mov %i2, %o1 20135a8: 40 00 2d e3 call 201ed34 <__divdi3> 20135ac: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 20135b0: b0 10 20 00 clr %i0 20135b4: 80 a5 20 00 cmp %l4, 0 20135b8: 02 80 00 14 be 2013608 20135bc: a6 10 00 09 mov %o1, %l3 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 ); 20135c0: 90 10 00 10 mov %l0, %o0 20135c4: 7f ff fd 6a call 2012b6c 20135c8: 94 10 20 00 clr %o2 assert( block_ptr ); 20135cc: 80 a2 20 00 cmp %o0, 0 20135d0: 02 80 00 73 be 201379c 20135d4: b0 24 40 14 sub %l1, %l4, %i0 */ 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; 20135d8: 80 a6 00 1c cmp %i0, %i4 20135dc: 38 80 00 02 bgu,a 20135e4 20135e0: b0 10 00 1c mov %i4, %i0 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 ); 20135e4: d0 02 00 00 ld [ %o0 ], %o0 20135e8: 92 10 00 1b mov %i3, %o1 20135ec: 90 02 00 14 add %o0, %l4, %o0 20135f0: 40 00 09 b5 call 2015cc4 20135f4: 94 10 00 18 mov %i0, %o2 src += to_copy; block++; my_length -= to_copy; copied += to_copy; 20135f8: e2 04 a3 44 ld [ %l2 + 0x344 ], %l1 return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; 20135fc: b6 06 c0 18 add %i3, %i0, %i3 block++; 2013600: a6 04 e0 01 inc %l3 my_length -= to_copy; 2013604: b8 27 00 18 sub %i4, %i0, %i4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2013608: 80 a7 00 11 cmp %i4, %l1 201360c: 0a 80 00 15 bcs 2013660 2013610: 80 a7 20 00 cmp %i4, 0 2013614: a4 14 a3 44 or %l2, 0x344, %l2 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013618: 90 10 00 10 mov %l0, %o0 201361c: 92 10 00 13 mov %l3, %o1 2013620: 7f ff fd 53 call 2012b6c 2013624: 94 10 20 00 clr %o2 assert( block_ptr ); 2013628: 80 a2 20 00 cmp %o0, 0 201362c: 02 80 00 37 be 2013708 2013630: 92 10 00 1b mov %i3, %o1 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 ); 2013634: d0 02 00 00 ld [ %o0 ], %o0 2013638: 40 00 09 a3 call 2015cc4 201363c: 94 10 00 11 mov %l1, %o2 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2013640: c2 04 80 00 ld [ %l2 ], %g1 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 2013644: b8 27 00 11 sub %i4, %l1, %i4 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; 2013648: b6 06 c0 11 add %i3, %l1, %i3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 201364c: 80 a0 40 1c cmp %g1, %i4 #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; 2013650: a6 04 e0 01 inc %l3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2013654: 08 bf ff f1 bleu 2013618 2013658: b0 06 00 11 add %i0, %l1, %i0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 201365c: 80 a7 20 00 cmp %i4, 0 2013660: 02 80 00 0e be 2013698 2013664: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013668: 92 10 00 13 mov %l3, %o1 201366c: 90 10 00 10 mov %l0, %o0 2013670: 7f ff fd 3f call 2012b6c 2013674: 94 10 20 00 clr %o2 assert( block_ptr ); 2013678: 80 a2 20 00 cmp %o0, 0 201367c: 02 80 00 2b be 2013728 2013680: b0 06 00 1c add %i0, %i4, %i0 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 ); 2013684: d0 02 00 00 ld [ %o0 ], %o0 2013688: 92 10 00 1b mov %i3, %o1 201368c: 40 00 09 8e call 2015cc4 2013690: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 2013694: 90 07 bf f8 add %fp, -8, %o0 2013698: 7f ff c1 16 call 2003af0 201369c: 92 10 20 00 clr %o1 20136a0: c2 07 bf f8 ld [ %fp + -8 ], %g1 20136a4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 20136a8: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 20136ac: 81 c7 e0 08 ret 20136b0: 81 e8 00 00 restore * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 20136b4: 80 a0 40 0a cmp %g1, %o2 20136b8: 1a bf ff b1 bcc 201357c 20136bc: 25 00 80 88 sethi %hi(0x2022000), %l2 status = IMFS_memfile_extend( the_jnode, last_byte ); 20136c0: 90 10 00 10 mov %l0, %o0 20136c4: 7f ff fe e7 call 2013260 20136c8: 92 10 20 00 clr %o1 if ( status ) 20136cc: 80 a2 20 00 cmp %o0, 0 20136d0: 02 bf ff ab be 201357c 20136d4: 25 00 80 88 sethi %hi(0x2022000), %l2 rtems_set_errno_and_return_minus_one( ENOSPC ); 20136d8: 40 00 07 40 call 20153d8 <__errno> <== NOT EXECUTED 20136dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20136e0: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 20136e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20136e8: 81 c7 e0 08 ret <== NOT EXECUTED 20136ec: 81 e8 00 00 restore <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 20136f0: 40 00 07 3a call 20153d8 <__errno> <== NOT EXECUTED 20136f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20136f8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20136fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013700: 81 c7 e0 08 ret <== NOT EXECUTED 2013704: 81 e8 00 00 restore <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2013708: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 201370c: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013710: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013714: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013718: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 201371c: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2013720: 7f ff bf 90 call 2003560 <__assert_func> <== NOT EXECUTED 2013724: 92 10 23 30 mov 0x330, %o1 <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 2013728: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 201372c: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013730: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013734: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013738: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 201373c: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 2013740: 7f ff bf 88 call 2003560 <__assert_func> <== NOT EXECUTED 2013744: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2013748: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 201374c: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013750: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013754: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 2013758: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 201375c: 7f ff bf 81 call 2003560 <__assert_func> <== NOT EXECUTED 2013760: 92 10 22 e3 mov 0x2e3, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 2013764: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013768: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 201376c: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2013770: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 2013774: 96 12 e3 58 or %o3, 0x358, %o3 <== NOT EXECUTED 2013778: 7f ff bf 7a call 2003560 <__assert_func> <== NOT EXECUTED 201377c: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013780: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 2013784: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2013788: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 201378c: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 2013790: 96 12 e3 10 or %o3, 0x310, %o3 <== NOT EXECUTED 2013794: 7f ff bf 73 call 2003560 <__assert_func> <== NOT EXECUTED 2013798: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 201379c: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 20137a0: 15 00 80 84 sethi %hi(0x2021000), %o2 <== NOT EXECUTED 20137a4: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 20137a8: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 20137ac: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 20137b0: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 20137b4: 7f ff bf 6b call 2003560 <__assert_func> <== NOT EXECUTED 20137b8: 92 10 23 1c mov 0x31c, %o1 <== NOT EXECUTED 20137bc: 01 00 00 00 nop 0200aa78 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200aa78: 9d e3 bf 58 save %sp, -168, %sp IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, strlen( token ), new_name, &result ); 200aa7c: 40 00 17 6e call 2010834 200aa80: 90 10 00 18 mov %i0, %o0 200aa84: 96 07 bf fc add %fp, -4, %o3 200aa88: 92 10 00 08 mov %o0, %o1 200aa8c: a0 07 bf b8 add %fp, -72, %l0 200aa90: 90 10 00 18 mov %i0, %o0 200aa94: 7f ff ff 7e call 200a88c 200aa98: 94 10 00 10 mov %l0, %o2 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 200aa9c: 97 2e 60 10 sll %i1, 0x10, %o3 200aaa0: 03 00 00 3c sethi %hi(0xf000), %g1 200aaa4: 97 32 e0 10 srl %o3, 0x10, %o3 200aaa8: 05 00 00 10 sethi %hi(0x4000), %g2 200aaac: 82 0a c0 01 and %o3, %g1, %g1 200aab0: 80 a0 40 02 cmp %g1, %g2 200aab4: 02 80 00 24 be 200ab44 200aab8: 05 00 00 20 sethi %hi(0x8000), %g2 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 200aabc: 80 a0 40 02 cmp %g1, %g2 200aac0: 02 80 00 0c be 200aaf0 200aac4: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 200aac8: 05 00 00 08 sethi %hi(0x2000), %g2 200aacc: 80 a0 40 02 cmp %g1, %g2 200aad0: 02 80 00 12 be 200ab18 200aad4: 05 00 00 18 sethi %hi(0x6000), %g2 200aad8: 80 a0 40 02 cmp %g1, %g2 200aadc: 02 80 00 0f be 200ab18 200aae0: 05 00 00 04 sethi %hi(0x1000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 200aae4: 80 a0 40 02 cmp %g1, %g2 200aae8: 12 80 00 21 bne 200ab6c 200aaec: 92 10 20 07 mov 7, %o1 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 200aaf0: 90 10 00 1c mov %i4, %o0 200aaf4: 94 10 00 10 mov %l0, %o2 200aaf8: 98 07 bf e0 add %fp, -32, %o4 200aafc: 40 00 0c 99 call 200dd60 200ab00: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200ab04: 80 a2 20 00 cmp %o0, 0 200ab08: 02 80 00 1f be 200ab84 200ab0c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 200ab10: 81 c7 e0 08 ret 200ab14: 81 e8 00 00 restore type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 200ab18: f4 3f bf e0 std %i2, [ %fp + -32 ] 200ab1c: 92 10 20 02 mov 2, %o1 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 200ab20: 90 10 00 1c mov %i4, %o0 200ab24: 94 10 00 10 mov %l0, %o2 200ab28: 98 07 bf e0 add %fp, -32, %o4 200ab2c: 40 00 0c 8d call 200dd60 200ab30: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200ab34: 80 a2 20 00 cmp %o0, 0 200ab38: 12 80 00 17 bne 200ab94 200ab3c: 01 00 00 00 nop 200ab40: 30 80 00 11 b,a 200ab84 <== NOT EXECUTED rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 200ab44: 92 10 20 01 mov 1, %o1 ! 1 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 200ab48: 90 10 00 1c mov %i4, %o0 200ab4c: 94 10 00 10 mov %l0, %o2 200ab50: 98 07 bf e0 add %fp, -32, %o4 200ab54: 40 00 0c 83 call 200dd60 200ab58: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200ab5c: 80 a2 20 00 cmp %o0, 0 200ab60: 12 80 00 0d bne 200ab94 200ab64: 01 00 00 00 nop 200ab68: 30 80 00 07 b,a 200ab84 <== NOT EXECUTED rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 200ab6c: 40 00 13 7b call 200f958 <__errno> <== NOT EXECUTED 200ab70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ab74: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200ab78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200ab7c: 81 c7 e0 08 ret <== NOT EXECUTED 200ab80: 81 e8 00 00 restore <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 200ab84: 40 00 13 75 call 200f958 <__errno> <== NOT EXECUTED 200ab88: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ab8c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200ab90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 200ab94: 81 c7 e0 08 ret 200ab98: 81 e8 00 00 restore 020030e8 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 20030e8: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 20030ec: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 20030f0: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 20030f4: 80 a0 a0 01 cmp %g2, 1 20030f8: 12 80 00 05 bne 200310c 20030fc: 01 00 00 00 nop /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 2003100: f0 20 60 5c st %i0, [ %g1 + 0x5c ] return 0; } 2003104: 81 c7 e0 08 ret 2003108: 91 e8 20 00 restore %g0, 0, %o0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 200310c: 40 00 48 b3 call 20153d8 <__errno> <== NOT EXECUTED 2003110: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003114: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2003118: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200311c: 81 c7 e0 08 ret <== NOT EXECUTED 2003120: 81 e8 00 00 restore <== NOT EXECUTED 02003b00 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 2003b00: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 2003b04: 80 a6 20 00 cmp %i0, 0 2003b08: 02 80 00 5b be 2003c74 2003b0c: 21 00 80 98 sethi %hi(0x2026000), %l0 fprintf(stdout, "%s", the_jnode->name ); 2003b10: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 ! 2026098 <_impure_ptr> 2003b14: 90 06 20 0c add %i0, 0xc, %o0 2003b18: 40 00 44 2c call 2014bc8 2003b1c: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 2003b20: d4 06 20 48 ld [ %i0 + 0x48 ], %o2 2003b24: 80 a2 a0 07 cmp %o2, 7 2003b28: 08 80 00 0f bleu 2003b64 2003b2c: 83 2a a0 02 sll %o2, 2, %g1 fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 2003b30: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 <== NOT EXECUTED 2003b34: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 2003b38: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2003b3c: 40 00 43 c5 call 2014a50 <== NOT EXECUTED 2003b40: 92 12 60 58 or %o1, 0x58, %o1 <== NOT EXECUTED assert(0); 2003b44: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); assert(0); 2003b48: 11 00 80 90 sethi %hi(0x2024000), %o0 <== NOT EXECUTED 2003b4c: 15 00 80 91 sethi %hi(0x2024400), %o2 <== NOT EXECUTED 2003b50: 17 00 80 91 sethi %hi(0x2024400), %o3 <== NOT EXECUTED 2003b54: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED 2003b58: 94 12 a1 78 or %o2, 0x178, %o2 <== NOT EXECUTED 2003b5c: 40 00 02 83 call 2004568 <__assert_func> <== NOT EXECUTED 2003b60: 96 12 e0 38 or %o3, 0x38, %o3 <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { 2003b64: 05 00 80 0e sethi %hi(0x2003800), %g2 2003b68: 84 10 a2 a4 or %g2, 0x2a4, %g2 ! 2003aa4 2003b6c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2003b70: 81 c0 40 00 jmp %g1 2003b74: 01 00 00 00 nop fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 2003b78: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 <== NOT EXECUTED 2003b7c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003b80: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2003b84: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 2003b88: 11 00 80 91 sethi %hi(0x2024400), %o0 <== NOT EXECUTED 2003b8c: 40 00 47 2f call 2015848 <== NOT EXECUTED 2003b90: 90 12 20 40 or %o0, 0x40, %o0 ! 2024440 <== NOT EXECUTED assert(0); 2003b94: 10 bf ff ed b 2003b48 <== NOT EXECUTED 2003b98: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2003b9c: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 <== NOT EXECUTED 2003ba0: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 2003ba4: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 2003ba8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2003bac: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 2003bb0: 40 00 43 a8 call 2014a50 <== NOT EXECUTED 2003bb4: 92 12 60 00 mov %o1, %o1 ! 2024400 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2003bb8: 31 00 80 90 sethi %hi(0x2024000), %i0 <== NOT EXECUTED 2003bbc: 40 00 4b 2d call 2016870 <== NOT EXECUTED 2003bc0: 91 ee 23 38 restore %i0, 0x338, %o0 <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 2003bc4: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 2003bc8: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 2003bcc: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003bd0: 13 00 80 91 sethi %hi(0x2024400), %o1 2003bd4: 40 00 43 9f call 2014a50 2003bd8: 92 12 60 10 or %o1, 0x10, %o1 ! 2024410 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2003bdc: 31 00 80 90 sethi %hi(0x2024000), %i0 2003be0: 40 00 4b 24 call 2016870 2003be4: 91 ee 23 38 restore %i0, 0x338, %o0 fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 2003be8: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 <== NOT EXECUTED 2003bec: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003bf0: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2003bf4: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED 2003bf8: 11 00 80 91 sethi %hi(0x2024400), %o0 <== NOT EXECUTED 2003bfc: 40 00 47 13 call 2015848 <== NOT EXECUTED 2003c00: 90 12 20 20 or %o0, 0x20, %o0 ! 2024420 <== NOT EXECUTED assert(0); 2003c04: 10 bf ff d1 b 2003b48 <== NOT EXECUTED 2003c08: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 2003c0c: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 <== NOT EXECUTED 2003c10: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003c14: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2003c18: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED 2003c1c: 11 00 80 91 sethi %hi(0x2024400), %o0 <== NOT EXECUTED 2003c20: 40 00 47 0a call 2015848 <== NOT EXECUTED 2003c24: 90 12 20 20 or %o0, 0x20, %o0 ! 2024420 <== NOT EXECUTED assert(0); 2003c28: 10 bf ff c8 b 2003b48 <== NOT EXECUTED 2003c2c: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2003c30: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 2003c34: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 2003c38: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 2003c3c: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003c40: 13 00 80 90 sethi %hi(0x2024000), %o1 2003c44: 40 00 43 83 call 2014a50 2003c48: 92 12 63 e8 or %o1, 0x3e8, %o1 ! 20243e8 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2003c4c: 31 00 80 90 sethi %hi(0x2024000), %i0 2003c50: 40 00 4b 08 call 2016870 2003c54: 91 ee 23 38 restore %i0, 0x338, %o0 assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 2003c58: c2 04 20 98 ld [ %l0 + 0x98 ], %g1 2003c5c: 90 10 20 2f mov 0x2f, %o0 2003c60: d2 00 60 08 ld [ %g1 + 8 ], %o1 2003c64: 40 00 43 95 call 2014ab8 2003c68: 31 00 80 90 sethi %hi(0x2024000), %i0 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2003c6c: 40 00 4b 01 call 2016870 2003c70: 91 ee 23 38 restore %i0, 0x338, %o0 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 2003c74: 11 00 80 90 sethi %hi(0x2024000), %o0 <== NOT EXECUTED 2003c78: 15 00 80 91 sethi %hi(0x2024400), %o2 <== NOT EXECUTED 2003c7c: 17 00 80 90 sethi %hi(0x2024000), %o3 <== NOT EXECUTED 2003c80: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED 2003c84: 94 12 a1 78 or %o2, 0x178, %o2 <== NOT EXECUTED 2003c88: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2003c8c: 40 00 02 37 call 2004568 <__assert_func> <== NOT EXECUTED 2003c90: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED 2003c94: 01 00 00 00 nop 02003130 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 2003130: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 2003134: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 2003138: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200313c: 80 a0 a0 04 cmp %g2, 4 2003140: 12 80 00 19 bne 20031a4 2003144: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2003148: 02 80 00 15 be 200319c 200314c: 86 10 20 00 clr %g3 2003150: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003154: c8 48 80 00 ldsb [ %g2 ], %g4 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 2003158: b0 10 20 00 clr %i0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 200315c: 80 a1 20 00 cmp %g4, 0 2003160: 12 80 00 08 bne 2003180 2003164: c4 08 80 00 ldub [ %g2 ], %g2 2003168: 30 80 00 13 b,a 20031b4 <== NOT EXECUTED 200316c: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003170: c8 48 80 18 ldsb [ %g2 + %i0 ], %g4 2003174: 80 a1 20 00 cmp %g4, 0 2003178: 02 80 00 07 be 2003194 200317c: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; 2003180: c4 2e 40 03 stb %g2, [ %i1 + %g3 ] 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++ ) 2003184: b0 06 20 01 inc %i0 2003188: 80 a6 80 18 cmp %i2, %i0 200318c: 18 bf ff f8 bgu 200316c 2003190: 86 10 00 18 mov %i0, %g3 buf[i] = node->info.sym_link.name[i]; return i; } 2003194: 81 c7 e0 08 ret 2003198: 81 e8 00 00 restore 200319c: 81 c7 e0 08 ret <== NOT EXECUTED 20031a0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 20031a4: 40 00 48 8d call 20153d8 <__errno> <== NOT EXECUTED 20031a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20031ac: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20031b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20031b4: 81 c7 e0 08 ret <== NOT EXECUTED 20031b8: 81 e8 00 00 restore <== NOT EXECUTED 020031bc : rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { 20031bc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 20031c0: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 20031c4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 20031c8: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 20031cc: 40 00 4c 56 call 2016324 <== NOT EXECUTED 20031d0: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 20031d4: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 20031d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20031dc: 22 80 00 05 be,a 20031f0 <== NOT EXECUTED 20031e0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 20031e4: 40 00 14 ac call 2008494 <_Chain_Extract> <== NOT EXECUTED 20031e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 20031ec: c2 06 80 00 ld [ %i2 ], %g1 <== 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 ); 20031f0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20031f4: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 20031f8: 40 00 14 9b call 2008464 <_Chain_Append> <== NOT EXECUTED 20031fc: c2 24 20 08 st %g1, [ %l0 + 8 ] <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 2003200: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2003204: 40 00 02 3b call 2003af0 <== NOT EXECUTED 2003208: 92 10 20 00 clr %o1 <== NOT EXECUTED 200320c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2003210: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 2003214: 81 c7 e0 08 ret <== NOT EXECUTED 2003218: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200aba8 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200aba8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200abac: e0 06 40 00 ld [ %i1 ], %l0 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 200abb0: c2 04 20 08 ld [ %l0 + 8 ], %g1 200abb4: 80 a0 60 00 cmp %g1, 0 200abb8: 22 80 00 06 be,a 200abd0 200abbc: 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 ); 200abc0: 40 00 05 e6 call 200c358 <_Chain_Extract> 200abc4: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200abc8: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200abcc: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 200abd0: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200abd4: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200abd8: 90 07 bf f8 add %fp, -8, %o0 200abdc: 40 00 01 13 call 200b028 200abe0: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 200abe4: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * 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) ) { 200abe8: 90 10 00 10 mov %l0, %o0 200abec: 40 00 01 48 call 200b10c 200abf0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 200abf4: 80 a2 20 00 cmp %o0, 0 200abf8: 12 80 00 12 bne 200ac40 200abfc: 01 00 00 00 nop 200ac00: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 200ac04: 80 a0 60 00 cmp %g1, 0 200ac08: 12 80 00 0e bne 200ac40 200ac0c: 03 00 80 6e sethi %hi(0x201b800), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200ac10: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 201bbb4 200ac14: c4 06 40 00 ld [ %i1 ], %g2 200ac18: c6 00 60 04 ld [ %g1 + 4 ], %g3 200ac1c: 80 a0 c0 02 cmp %g3, %g2 200ac20: 22 80 00 02 be,a 200ac28 200ac24: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200ac28: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200ac2c: 80 a0 60 04 cmp %g1, 4 200ac30: 22 80 00 06 be,a 200ac48 200ac34: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 200ac38: 40 00 00 82 call 200ae40 200ac3c: 90 10 00 10 mov %l0, %o0 } return 0; } 200ac40: 81 c7 e0 08 ret 200ac44: 91 e8 20 00 restore %g0, 0, %o0 /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 200ac48: 80 a2 20 00 cmp %o0, 0 200ac4c: 02 bf ff fb be 200ac38 200ac50: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200ac54: 40 00 00 7b call 200ae40 200ac58: 01 00 00 00 nop 200ac5c: 30 bf ff f7 b,a 200ac38 0200ac80 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200ac80: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 200ac84: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200ac88: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200ac8c: 80 a0 a0 07 cmp %g2, 7 200ac90: 08 80 00 08 bleu 200acb0 200ac94: 85 28 a0 02 sll %g2, 2, %g2 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200ac98: 40 00 13 30 call 200f958 <__errno> <== NOT EXECUTED 200ac9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200aca0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200aca4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200aca8: 81 c7 e0 08 ret <== NOT EXECUTED 200acac: 81 e8 00 00 restore <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 200acb0: 07 00 80 2b sethi %hi(0x200ac00), %g3 200acb4: 86 10 e0 60 or %g3, 0x60, %g3 ! 200ac60 200acb8: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200acbc: 81 c0 80 00 jmp %g2 200acc0: 01 00 00 00 nop case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200acc4: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 200acc8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 200accc: c6 10 60 2e lduh [ %g1 + 0x2e ], %g3 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200acd0: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 200acd4: c6 36 60 0c sth %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200acd8: 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; 200acdc: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 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; 200ace0: c4 00 60 3c ld [ %g1 + 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; 200ace4: c6 36 60 0e sth %g3, [ %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; 200ace8: c4 26 60 28 st %g2, [ %i1 + 0x28 ] } 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; 200acec: c6 10 60 38 lduh [ %g1 + 0x38 ], %g3 buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200acf0: c4 00 60 40 ld [ %g1 + 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; 200acf4: c6 36 60 10 sth %g3, [ %i1 + 0x10 ] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200acf8: c4 26 60 30 st %g2, [ %i1 + 0x30 ] buf->st_ctime = the_jnode->stat_ctime; 200acfc: c4 00 60 44 ld [ %g1 + 0x44 ], %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; buf->st_gid = the_jnode->st_gid; 200ad00: c2 10 60 3a lduh [ %g1 + 0x3a ], %g1 buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200ad04: c4 26 60 38 st %g2, [ %i1 + 0x38 ] 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; 200ad08: c2 36 60 12 sth %g1, [ %i1 + 0x12 ] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 200ad0c: 81 c7 e0 08 ret 200ad10: 91 e8 20 00 restore %g0, 0, %o0 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200ad14: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; 200ad18: 10 bf ff ed b 200accc 200ad1c: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200ad20: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200ad24: 10 bf ff ea b 200accc 200ad28: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] 0200321c : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 200321c: 9d e3 bf 58 save %sp, -168, %sp int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 2003220: 40 00 4c 0c call 2016250 2003224: 90 10 00 1a mov %i2, %o0 2003228: 96 07 bf fc add %fp, -4, %o3 200322c: 92 10 00 08 mov %o0, %o1 2003230: a0 07 bf b8 add %fp, -72, %l0 2003234: 90 10 00 1a mov %i2, %o0 2003238: 40 00 34 02 call 2010240 200323c: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2003240: 40 00 4b ef call 20161fc 2003244: 90 10 00 19 mov %i1, %o0 if (info.sym_link.name == NULL) { 2003248: 80 a2 20 00 cmp %o0, 0 200324c: 02 80 00 15 be 20032a0 2003250: d0 27 bf e0 st %o0, [ %fp + -32 ] * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 2003254: 90 10 00 18 mov %i0, %o0 2003258: 94 10 00 10 mov %l0, %o2 200325c: 92 10 20 04 mov 4, %o1 2003260: 17 00 00 28 sethi %hi(0xa000), %o3 2003264: 98 07 bf e0 add %fp, -32, %o4 2003268: 96 12 e1 ff or %o3, 0x1ff, %o3 200326c: 40 00 30 54 call 200f3bc 2003270: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2003274: 80 a2 20 00 cmp %o0, 0 2003278: 12 80 00 08 bne 2003298 200327c: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 2003280: 40 00 01 f1 call 2003a44 <== NOT EXECUTED 2003284: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2003288: 40 00 48 54 call 20153d8 <__errno> <== NOT EXECUTED 200328c: 01 00 00 00 nop <== NOT EXECUTED 2003290: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2003294: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2003298: 81 c7 e0 08 ret 200329c: 81 e8 00 00 restore /* * Duplicate link name */ info.sym_link.name = strdup(link_name); if (info.sym_link.name == NULL) { rtems_set_errno_and_return_minus_one(ENOMEM); 20032a0: 40 00 48 4e call 20153d8 <__errno> <== NOT EXECUTED 20032a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20032a8: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20032ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20032b0: 81 c7 e0 08 ret <== NOT EXECUTED 20032b4: 81 e8 00 00 restore <== NOT EXECUTED 020032b8 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 20032b8: 9d e3 bf 80 save %sp, -128, %sp IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 20032bc: e0 06 40 00 ld [ %i1 ], %l0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 20032c0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20032c4: 80 a0 60 03 cmp %g1, 3 20032c8: 02 80 00 09 be 20032ec 20032cc: a2 10 00 18 mov %i0, %l1 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 20032d0: c2 06 60 08 ld [ %i1 + 8 ], %g1 20032d4: 90 10 00 11 mov %l1, %o0 20032d8: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20032dc: 9f c0 40 00 call %g1 20032e0: 92 10 00 19 mov %i1, %o1 return result; } 20032e4: 81 c7 e0 08 ret 20032e8: 91 e8 00 08 restore %g0, %o0, %o0 * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 20032ec: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20032f0: 80 a0 60 00 cmp %g1, 0 20032f4: 02 80 00 25 be 2003388 20032f8: a4 07 bf e4 add %fp, -28, %l2 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 20032fc: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 2003300: da 06 60 04 ld [ %i1 + 4 ], %o5 2003304: c8 06 60 08 ld [ %i1 + 8 ], %g4 2003308: c6 06 60 0c ld [ %i1 + 0xc ], %g3 200330c: c4 27 bf f4 st %g2, [ %fp + -12 ] the_link.node_access = node->info.hard_link.link_node; 2003310: c2 27 bf e4 st %g1, [ %fp + -28 ] if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 2003314: da 27 bf e8 st %o5, [ %fp + -24 ] 2003318: c8 27 bf ec st %g4, [ %fp + -20 ] 200331c: c6 27 bf f0 st %g3, [ %fp + -16 ] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 2003320: 40 00 30 76 call 200f4f8 2003324: 90 10 00 12 mov %l2, %o0 /* * 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) 2003328: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200332c: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 2003330: 80 a0 a0 01 cmp %g2, 1 2003334: 02 80 00 0a be 200335c 2003338: 86 00 bf ff add %g2, -1, %g3 return -1; } else { node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); 200333c: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2003340: c6 30 60 30 sth %g3, [ %g1 + 0x30 ] IMFS_update_ctime( node->info.hard_link.link_node ); 2003344: 40 00 01 eb call 2003af0 2003348: 92 10 20 00 clr %o1 200334c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003350: c4 07 bf f8 ld [ %fp + -8 ], %g2 2003354: 10 bf ff df b 20032d0 2003358: c4 20 60 44 st %g2, [ %g1 + 0x44 ] * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 200335c: c2 07 bf ec ld [ %fp + -20 ], %g1 2003360: 90 10 00 18 mov %i0, %o0 2003364: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2003368: 92 10 00 12 mov %l2, %o1 200336c: 9f c0 40 00 call %g1 2003370: b0 10 3f ff mov -1, %i0 if ( result != 0 ) 2003374: 80 a2 20 00 cmp %o0, 0 2003378: 22 bf ff d7 be,a 20032d4 200337c: c2 06 60 08 ld [ %i1 + 8 ], %g1 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 2003380: 81 c7 e0 08 ret 2003384: 81 e8 00 00 restore */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 2003388: 40 00 48 14 call 20153d8 <__errno> <== NOT EXECUTED 200338c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003390: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003394: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003398: 81 c7 e0 08 ret <== NOT EXECUTED 200339c: 81 e8 00 00 restore <== NOT EXECUTED 020033a0 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 20033a0: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 20033a4: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 20033a8: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 20033ac: 80 a0 a0 01 cmp %g2, 1 20033b0: 12 80 00 09 bne 20033d4 20033b4: 01 00 00 00 nop /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 20033b8: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 20033bc: 80 a0 a0 00 cmp %g2, 0 20033c0: 02 80 00 0b be 20033ec 20033c4: 01 00 00 00 nop /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; 20033c8: c0 20 60 5c clr [ %g1 + 0x5c ] return 0; } 20033cc: 81 c7 e0 08 ret 20033d0: 91 e8 20 00 restore %g0, 0, %o0 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 20033d4: 40 00 48 01 call 20153d8 <__errno> <== NOT EXECUTED 20033d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20033dc: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 20033e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20033e4: 81 c7 e0 08 ret <== NOT EXECUTED 20033e8: 81 e8 00 00 restore <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 20033ec: 40 00 47 fb call 20153d8 <__errno> <== NOT EXECUTED 20033f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20033f4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20033f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20033fc: 81 c7 e0 08 ret <== NOT EXECUTED 2003400: 81 e8 00 00 restore <== NOT EXECUTED 02002444 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 2002444: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 2002448: 03 00 80 70 sethi %hi(0x201c000), %g1 200244c: c2 00 61 18 ld [ %g1 + 0x118 ], %g1 ! 201c118 2002450: 80 a0 60 00 cmp %g1, 0 2002454: 02 80 00 05 be 2002468 2002458: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 200245c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 2002460: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002464: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 2002468: 40 00 23 db call 200b3d4 200246c: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 2002470: 03 00 80 70 sethi %hi(0x201c000), %g1 2002474: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201c11c 2002478: 80 a0 60 00 cmp %g1, 0 200247c: 02 80 00 08 be 200249c 2002480: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 2002484: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002488: b2 06 00 19 add %i0, %i1, %i1 <== NOT EXECUTED /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 200248c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002490: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002494: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2002498: b2 26 40 08 sub %i1, %o0, %i1 <== 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 ( 200249c: 23 00 80 70 sethi %hi(0x201c000), %l1 20024a0: c2 0c 61 15 ldub [ %l1 + 0x115 ], %g1 ! 201c115 20024a4: 80 a0 60 00 cmp %g1, 0 20024a8: 12 80 00 10 bne 20024e8 20024ac: 21 00 80 6e sethi %hi(0x201b800), %l0 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 20024b0: 03 00 80 6e sethi %hi(0x201b800), %g1 20024b4: c2 08 63 80 ldub [ %g1 + 0x380 ], %g1 ! 201bb80 20024b8: 80 a0 60 00 cmp %g1, 0 20024bc: 12 80 00 13 bne 2002508 20024c0: 90 10 00 18 mov %i0, %o0 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 20024c4: 21 00 80 6e sethi %hi(0x201b800), %l0 20024c8: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0 ! 201bab0 20024cc: 92 10 00 18 mov %i0, %o1 20024d0: 94 10 00 19 mov %i1, %o2 20024d4: 40 00 11 69 call 2006a78 <_Heap_Initialize> 20024d8: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 20024dc: 80 a2 20 00 cmp %o0, 0 20024e0: 02 80 00 13 be 200252c 20024e4: 01 00 00 00 nop rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 20024e8: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0 20024ec: 21 00 80 70 sethi %hi(0x201c000), %l0 20024f0: 40 00 14 ae call 20077a8 <_Protected_heap_Get_size> 20024f4: e2 04 23 e0 ld [ %l0 + 0x3e0 ], %l1 ! 201c3e0 20024f8: 90 02 00 11 add %o0, %l1, %o0 20024fc: d0 24 23 e0 st %o0, [ %l0 + 0x3e0 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 2002500: 81 c7 e0 08 ret 2002504: 81 e8 00 00 restore if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 2002508: 92 10 20 00 clr %o1 200250c: 40 00 37 8d call 2010340 2002510: 94 10 00 19 mov %i1, %o2 * Unfortunately we cannot use assert if this fails because if this * has failed we do not have a heap and if we do not have a heap * STDIO cannot work because there will be no buffers. */ if ( !rtems_unified_work_area ) { 2002514: c2 0c 61 15 ldub [ %l1 + 0x115 ], %g1 2002518: 80 a0 60 00 cmp %g1, 0 200251c: 22 bf ff eb be,a 20024c8 2002520: 21 00 80 6e sethi %hi(0x201b800), %l0 if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 2002524: 10 bf ff f2 b 20024ec <== NOT EXECUTED 2002528: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0 ! 201bab0 <== NOT EXECUTED heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 200252c: 40 00 0f 1b call 2006198 <== NOT EXECUTED 2002530: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED 2002534: 01 00 00 00 nop 020041e4 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 20041e4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 20041e8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20041ec: 02 80 00 3b be 20042d8 <== NOT EXECUTED 20041f0: 27 00 81 aa sethi %hi(0x206a800), %l3 <== NOT EXECUTED return; if ( !print_handler ) 20041f4: e8 04 e3 68 ld [ %l3 + 0x368 ], %l4 ! 206ab68 <== NOT EXECUTED 20041f8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 20041fc: 02 80 00 37 be 20042d8 <== NOT EXECUTED 2004200: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2004204: 02 80 00 3e be 20042fc <== NOT EXECUTED 2004208: a4 06 20 c4 add %i0, 0xc4, %l2 <== 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); 200420c: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2004210: e2 04 80 00 ld [ %l2 ], %l1 <== 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); 2004214: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2004218: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 200421c: ec 06 21 50 ld [ %i0 + 0x150 ], %l6 <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); 2004220: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2004224: 7f ff ff d8 call 2004184 <== NOT EXECUTED 2004228: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( high_water_mark ) 200422c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2004230: a0 05 40 11 add %l5, %l1, %l0 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) 2004234: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2004238: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 200423c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2004240: 02 80 00 44 be 2004350 <== NOT EXECUTED 2004244: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED (*print_handler)( 2004248: ee 06 20 08 ld [ %i0 + 8 ], %l7 <== NOT EXECUTED 200424c: 2b 00 81 aa sethi %hi(0x206a800), %l5 <== NOT EXECUTED 2004250: fa 05 63 64 ld [ %l5 + 0x364 ], %i5 ! 206ab64 <== NOT EXECUTED 2004254: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2004258: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 200425c: 40 00 1a 85 call 200ac70 <== NOT EXECUTED 2004260: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 2004264: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 2004268: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 200426c: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED 2004270: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED 2004274: 9f c5 00 00 call %l4 <== NOT EXECUTED 2004278: 92 12 63 30 or %o1, 0x330, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 200427c: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 2004280: c2 04 e3 68 ld [ %l3 + 0x368 ], %g1 <== NOT EXECUTED 2004284: d4 04 a0 04 ld [ %l2 + 4 ], %o2 <== NOT EXECUTED 2004288: d0 05 63 64 ld [ %l5 + 0x364 ], %o0 <== NOT EXECUTED 200428c: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2004290: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED 2004294: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2004298: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED 200429c: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 20042a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20042a4: 92 12 63 50 or %o1, 0x350, %o1 ! 205f750 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 20042a8: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 20042ac: c4 00 63 60 ld [ %g1 + 0x360 ], %g2 ! 206ab60 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 20042b0: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 20042b4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20042b8: 02 80 00 0a be 20042e0 <== NOT EXECUTED 20042bc: 05 00 81 aa sethi %hi(0x206a800), %g2 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 20042c0: c2 00 63 68 ld [ %g1 + 0x368 ], %g1 <== NOT EXECUTED 20042c4: d0 00 a3 64 ld [ %g2 + 0x364 ], %o0 <== NOT EXECUTED 20042c8: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 20042cc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 20042d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20042d4: 92 12 63 80 or %o1, 0x380, %o1 <== NOT EXECUTED 20042d8: 81 c7 e0 08 ret <== NOT EXECUTED 20042dc: 81 e8 00 00 restore <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 20042e0: c2 00 63 68 ld [ %g1 + 0x368 ], %g1 <== NOT EXECUTED 20042e4: d0 00 a3 64 ld [ %g2 + 0x364 ], %o0 <== NOT EXECUTED 20042e8: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 20042ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20042f0: 92 12 63 70 or %o1, 0x370, %o1 ! 205f770 <== NOT EXECUTED 20042f4: 81 c7 e0 08 ret <== NOT EXECUTED 20042f8: 81 e8 00 00 restore <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 20042fc: 25 00 81 b5 sethi %hi(0x206d400), %l2 <== NOT EXECUTED 2004300: a4 14 a3 48 or %l2, 0x348, %l2 ! 206d748 <== NOT EXECUTED 2004304: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED 2004308: ac 10 20 00 clr %l6 <== NOT EXECUTED 200430c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004310: 02 bf ff f2 be 20042d8 <== NOT EXECUTED 2004314: b0 10 20 00 clr %i0 <== 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); 2004318: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 200431c: e2 04 80 00 ld [ %l2 ], %l1 <== 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); 2004320: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2004324: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 2004328: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 200432c: 7f ff ff 96 call 2004184 <== NOT EXECUTED 2004330: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( high_water_mark ) 2004334: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2004338: a0 05 40 11 add %l5, %l1, %l0 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) 200433c: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2004340: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 2004344: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2004348: 12 bf ff c0 bne 2004248 <== NOT EXECUTED 200434c: a0 0c 00 01 and %l0, %g1, %l0 <== 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 ); 2004350: 2b 00 81 aa sethi %hi(0x206a800), %l5 <== NOT EXECUTED 2004354: d0 05 63 64 ld [ %l5 + 0x364 ], %o0 ! 206ab64 <== NOT EXECUTED 2004358: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 200435c: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2004360: 9f c5 00 00 call %l4 <== NOT EXECUTED 2004364: 92 12 63 40 or %o1, 0x340, %o1 <== NOT EXECUTED } (*print_handler)( 2004368: 10 bf ff c6 b 2004280 <== NOT EXECUTED 200436c: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 02004184 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2004184: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2004188: 86 0a 7f fc and %o1, -4, %g3 <== NOT EXECUTED 200418c: 86 00 40 03 add %g1, %g3, %g3 <== NOT EXECUTED 2004190: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004194: 1a 80 00 10 bcc 20041d4 <== NOT EXECUTED 2004198: 05 29 69 69 sethi %hi(0xa5a5a400), %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 200419c: c8 02 20 10 ld [ %o0 + 0x10 ], %g4 <== NOT EXECUTED 20041a0: 84 10 a1 a5 or %g2, 0x1a5, %g2 <== NOT EXECUTED 20041a4: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED 20041a8: 22 80 00 08 be,a 20041c8 <== NOT EXECUTED 20041ac: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED return (void *) base; 20041b0: 81 c3 e0 08 retl <== NOT EXECUTED 20041b4: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) 20041b8: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 20041bc: 12 80 00 08 bne 20041dc <== NOT EXECUTED 20041c0: 90 10 00 01 mov %g1, %o0 <== 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++) 20041c4: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED 20041c8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20041cc: 38 bf ff fb bgu,a 20041b8 <== NOT EXECUTED 20041d0: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 20041d4: 81 c3 e0 08 retl <== NOT EXECUTED 20041d8: 90 10 20 00 clr %o0 <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; 20041dc: 81 c3 e0 08 retl <== NOT EXECUTED 20041e0: 01 00 00 00 nop 020043e4 : * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { 20043e4: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); 20043e8: 11 00 81 7d sethi %hi(0x205f400), %o0 <== NOT EXECUTED * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 20043ec: e0 06 20 c8 ld [ %i0 + 0xc8 ], %l0 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 20043f0: 40 00 0c 5b call 200755c <== NOT EXECUTED 20043f4: 90 12 23 f0 or %o0, 0x3f0, %o0 <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 20043f8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20043fc: 11 00 81 7e sethi %hi(0x205f800), %o0 <== NOT EXECUTED 2004400: 40 00 0c 57 call 200755c <== NOT EXECUTED 2004404: 90 12 20 00 mov %o0, %o0 ! 205f800 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 2004408: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 200440c: 11 00 81 7e sethi %hi(0x205f800), %o0 <== NOT EXECUTED 2004410: 40 00 0c 53 call 200755c <== NOT EXECUTED 2004414: 90 12 20 20 or %o0, 0x20, %o0 ! 205f820 <== NOT EXECUTED printk( 2004418: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 200441c: 11 00 81 7e sethi %hi(0x205f800), %o0 <== NOT EXECUTED 2004420: 40 00 0c 4f call 200755c <== NOT EXECUTED 2004424: 90 12 20 38 or %o0, 0x38, %o0 ! 205f838 <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 2004428: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 200442c: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED 2004430: 40 00 1a 10 call 200ac70 <== NOT EXECUTED 2004434: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED 2004438: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 200443c: 11 00 81 7e sethi %hi(0x205f800), %o0 <== NOT EXECUTED 2004440: 40 00 0c 47 call 200755c <== NOT EXECUTED 2004444: 90 12 20 50 or %o0, 0x50, %o0 ! 205f850 <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 2004448: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1 <== NOT EXECUTED 200444c: d4 06 20 c8 ld [ %i0 + 0xc8 ], %o2 <== NOT EXECUTED 2004450: 11 00 81 7e sethi %hi(0x205f800), %o0 <== NOT EXECUTED 2004454: 96 02 80 09 add %o2, %o1, %o3 <== NOT EXECUTED 2004458: 40 00 0c 41 call 200755c <== NOT EXECUTED 200445c: 90 12 20 68 or %o0, 0x68, %o0 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { 2004460: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 2004464: 02 80 00 04 be 2004474 <== NOT EXECUTED 2004468: 96 04 20 18 add %l0, 0x18, %o3 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 200446c: 40 00 1c 3d call 200b560 <== NOT EXECUTED 2004470: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 2004474: 11 00 81 7e sethi %hi(0x205f800), %o0 <== NOT EXECUTED 2004478: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 200447c: 90 12 20 a0 or %o0, 0xa0, %o0 <== NOT EXECUTED 2004480: 40 00 0c 37 call 200755c <== NOT EXECUTED 2004484: 94 04 20 08 add %l0, 8, %o2 <== NOT EXECUTED 2004488: 30 bf ff f9 b,a 200446c <== NOT EXECUTED 0200c678 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200c678: 9d e3 bf 98 save %sp, -104, %sp Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; 200c67c: a8 06 60 04 add %i1, 4, %l4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200c680: a0 10 00 18 mov %i0, %l0 - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 200c684: 80 a6 40 14 cmp %i1, %l4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200c688: e4 06 20 08 ld [ %i0 + 8 ], %l2 200c68c: 18 80 00 75 bgu 200c860 <_Heap_Allocate_aligned_with_boundary+0x1e8> 200c690: fa 06 20 10 ld [ %i0 + 0x10 ], %i5 /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 200c694: 80 a6 e0 00 cmp %i3, 0 200c698: 12 80 00 70 bne 200c858 <_Heap_Allocate_aligned_with_boundary+0x1e0> 200c69c: 80 a6 40 1b cmp %i1, %i3 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200c6a0: 80 a4 00 12 cmp %l0, %l2 200c6a4: 02 80 00 72 be 200c86c <_Heap_Allocate_aligned_with_boundary+0x1f4> 200c6a8: a2 10 20 00 clr %l1 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200c6ac: 82 10 20 04 mov 4, %g1 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 200c6b0: b8 07 60 07 add %i5, 7, %i4 uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200c6b4: 82 20 40 19 sub %g1, %i1, %g1 200c6b8: 10 80 00 09 b 200c6dc <_Heap_Allocate_aligned_with_boundary+0x64> 200c6bc: c2 27 bf fc st %g1, [ %fp + -4 ] boundary ); } } if ( alloc_begin != 0 ) { 200c6c0: 80 a6 20 00 cmp %i0, 0 200c6c4: 32 80 00 57 bne,a 200c820 <_Heap_Allocate_aligned_with_boundary+0x1a8> 200c6c8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 break; } block = block->next; 200c6cc: e4 04 a0 08 ld [ %l2 + 8 ], %l2 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200c6d0: 80 a4 00 12 cmp %l0, %l2 200c6d4: 22 80 00 5a be,a 200c83c <_Heap_Allocate_aligned_with_boundary+0x1c4> 200c6d8: b0 10 20 00 clr %i0 /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { 200c6dc: e6 04 a0 04 ld [ %l2 + 4 ], %l3 200c6e0: 80 a5 00 13 cmp %l4, %l3 200c6e4: 1a bf ff fa bcc 200c6cc <_Heap_Allocate_aligned_with_boundary+0x54> 200c6e8: a2 04 60 01 inc %l1 if ( alignment == 0 ) { 200c6ec: 80 a6 a0 00 cmp %i2, 0 200c6f0: 02 bf ff f4 be 200c6c0 <_Heap_Allocate_aligned_with_boundary+0x48> 200c6f4: b0 04 a0 08 add %l2, 8, %i0 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200c6f8: c2 07 bf fc ld [ %fp + -4 ], %g1 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; 200c6fc: ee 04 20 14 ld [ %l0 + 0x14 ], %l7 uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; 200c700: a6 0c ff fe and %l3, -2, %l3 200c704: a6 04 80 13 add %l2, %l3, %l3 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 200c708: b0 00 40 13 add %g1, %l3, %i0 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 200c70c: 82 27 00 17 sub %i4, %l7, %g1 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 200c710: 90 10 00 18 mov %i0, %o0 200c714: a6 00 40 13 add %g1, %l3, %l3 200c718: 40 00 32 64 call 20190a8 <.urem> 200c71c: 92 10 00 1a mov %i2, %o1 200c720: b0 26 00 08 sub %i0, %o0, %i0 uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { 200c724: 80 a4 c0 18 cmp %l3, %i0 200c728: 1a 80 00 06 bcc 200c740 <_Heap_Allocate_aligned_with_boundary+0xc8> 200c72c: ac 04 a0 08 add %l2, 8, %l6 200c730: 90 10 00 13 mov %l3, %o0 200c734: 40 00 32 5d call 20190a8 <.urem> 200c738: 92 10 00 1a mov %i2, %o1 200c73c: b0 24 c0 08 sub %l3, %o0, %i0 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 200c740: 80 a6 e0 00 cmp %i3, 0 200c744: 02 80 00 26 be 200c7dc <_Heap_Allocate_aligned_with_boundary+0x164> 200c748: 80 a5 80 18 cmp %l6, %i0 /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; 200c74c: a6 06 00 19 add %i0, %i1, %l3 200c750: 92 10 00 1b mov %i3, %o1 200c754: 40 00 32 55 call 20190a8 <.urem> 200c758: 90 10 00 13 mov %l3, %o0 200c75c: 90 24 c0 08 sub %l3, %o0, %o0 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 200c760: 80 a4 c0 08 cmp %l3, %o0 200c764: 08 80 00 1e bleu 200c7dc <_Heap_Allocate_aligned_with_boundary+0x164> 200c768: 80 a5 80 18 cmp %l6, %i0 200c76c: 80 a6 00 08 cmp %i0, %o0 200c770: 1a 80 00 1b bcc 200c7dc <_Heap_Allocate_aligned_with_boundary+0x164> 200c774: 80 a5 80 18 cmp %l6, %i0 alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; 200c778: aa 05 80 19 add %l6, %i1, %l5 uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { 200c77c: 80 a5 40 08 cmp %l5, %o0 200c780: 28 80 00 0a bleu,a 200c7a8 <_Heap_Allocate_aligned_with_boundary+0x130> 200c784: b0 22 00 19 sub %o0, %i1, %i0 if ( alloc_begin != 0 ) { break; } block = block->next; 200c788: 10 bf ff d2 b 200c6d0 <_Heap_Allocate_aligned_with_boundary+0x58> 200c78c: e4 04 a0 08 ld [ %l2 + 8 ], %l2 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 200c790: 1a 80 00 13 bcc 200c7dc <_Heap_Allocate_aligned_with_boundary+0x164> 200c794: 80 a5 80 18 cmp %l6, %i0 if ( boundary_line < boundary_floor ) { 200c798: 80 a5 40 08 cmp %l5, %o0 200c79c: 38 bf ff cd bgu,a 200c6d0 <_Heap_Allocate_aligned_with_boundary+0x58> 200c7a0: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 200c7a4: b0 22 00 19 sub %o0, %i1, %i0 200c7a8: 92 10 00 1a mov %i2, %o1 200c7ac: 40 00 32 3f call 20190a8 <.urem> 200c7b0: 90 10 00 18 mov %i0, %o0 200c7b4: 92 10 00 1b mov %i3, %o1 200c7b8: b0 26 00 08 sub %i0, %o0, %i0 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 200c7bc: a6 06 00 19 add %i0, %i1, %l3 200c7c0: 40 00 32 3a call 20190a8 <.urem> 200c7c4: 90 10 00 13 mov %l3, %o0 200c7c8: 90 24 c0 08 sub %l3, %o0, %o0 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 200c7cc: 80 a4 c0 08 cmp %l3, %o0 200c7d0: 18 bf ff f0 bgu 200c790 <_Heap_Allocate_aligned_with_boundary+0x118> 200c7d4: 80 a6 00 08 cmp %i0, %o0 boundary_line = _Heap_Align_down( alloc_end, boundary ); } } /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { 200c7d8: 80 a5 80 18 cmp %l6, %i0 200c7dc: 18 bf ff bc bgu 200c6cc <_Heap_Allocate_aligned_with_boundary+0x54> 200c7e0: 82 10 3f f8 mov -8, %g1 uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; 200c7e4: 90 10 00 18 mov %i0, %o0 200c7e8: a6 20 40 12 sub %g1, %l2, %l3 200c7ec: 92 10 00 1d mov %i5, %o1 200c7f0: 40 00 32 2e call 20190a8 <.urem> 200c7f4: a6 04 c0 18 add %l3, %i0, %l3 if ( free_size >= min_block_size || free_size == 0 ) { 200c7f8: 90 a4 c0 08 subcc %l3, %o0, %o0 200c7fc: 02 bf ff b2 be 200c6c4 <_Heap_Allocate_aligned_with_boundary+0x4c> 200c800: 80 a6 20 00 cmp %i0, 0 200c804: 80 a5 c0 08 cmp %l7, %o0 200c808: 38 bf ff b2 bgu,a 200c6d0 <_Heap_Allocate_aligned_with_boundary+0x58> 200c80c: e4 04 a0 08 ld [ %l2 + 8 ], %l2 boundary ); } } if ( alloc_begin != 0 ) { 200c810: 80 a6 20 00 cmp %i0, 0 200c814: 22 bf ff af be,a 200c6d0 <_Heap_Allocate_aligned_with_boundary+0x58> 200c818: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200c81c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200c820: 92 10 00 12 mov %l2, %o1 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200c824: 82 00 40 11 add %g1, %l1, %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200c828: 96 10 00 19 mov %i1, %o3 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200c82c: c2 24 20 4c st %g1, [ %l0 + 0x4c ] block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200c830: 90 10 00 10 mov %l0, %o0 200c834: 7f ff e9 2e call 2006cec <_Heap_Block_allocate> 200c838: 94 10 00 18 mov %i0, %o2 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 200c83c: c2 04 20 44 ld [ %l0 + 0x44 ], %g1 200c840: 80 a0 40 11 cmp %g1, %l1 200c844: 1a 80 00 08 bcc 200c864 <_Heap_Allocate_aligned_with_boundary+0x1ec> 200c848: 01 00 00 00 nop ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 200c84c: e2 24 20 44 st %l1, [ %l0 + 0x44 ] 200c850: 81 c7 e0 08 ret 200c854: 81 e8 00 00 restore /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 200c858: 08 80 00 07 bleu 200c874 <_Heap_Allocate_aligned_with_boundary+0x1fc> 200c85c: 80 a6 a0 00 cmp %i2, 0 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 200c860: b0 10 20 00 clr %i0 } return (void *) alloc_begin; } 200c864: 81 c7 e0 08 ret 200c868: 81 e8 00 00 restore if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200c86c: 10 bf ff f4 b 200c83c <_Heap_Allocate_aligned_with_boundary+0x1c4> 200c870: b0 10 20 00 clr %i0 if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 200c874: 22 bf ff 8b be,a 200c6a0 <_Heap_Allocate_aligned_with_boundary+0x28> 200c878: b4 10 00 1d mov %i5, %i2 alignment = page_size; } } while ( block != free_list_tail ) { 200c87c: 10 bf ff 8a b 200c6a4 <_Heap_Allocate_aligned_with_boundary+0x2c> 200c880: 80 a4 00 12 cmp %l0, %l2 02007c70 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 2007c70: 9d e3 bf 88 save %sp, -120, %sp uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 2007c74: 25 00 80 20 sethi %hi(0x2008000), %l2 2007c78: 80 8e a0 ff btst 0xff, %i2 2007c7c: a4 14 a2 70 or %l2, 0x270, %l2 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 2007c80: ea 06 20 10 ld [ %i0 + 0x10 ], %l5 uintptr_t const min_block_size = heap->min_block_size; 2007c84: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 Heap_Block *const last_block = heap->last_block; 2007c88: e8 06 20 24 ld [ %i0 + 0x24 ], %l4 Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 2007c8c: 12 80 00 04 bne 2007c9c <_Heap_Walk+0x2c> 2007c90: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 2007c94: 25 00 80 1f sethi %hi(0x2007c00), %l2 2007c98: a4 14 a0 68 or %l2, 0x68, %l2 ! 2007c68 <_Heap_Walk_print_nothing> if ( !_System_state_Is_up( _System_state_Get() ) ) { 2007c9c: 03 00 80 7b sethi %hi(0x201ec00), %g1 2007ca0: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201ef40 <_System_state_Current> 2007ca4: 80 a0 60 03 cmp %g1, 3 2007ca8: 22 80 00 04 be,a 2007cb8 <_Heap_Walk+0x48> 2007cac: da 06 20 18 ld [ %i0 + 0x18 ], %o5 block = next_block; } return true; } 2007cb0: 81 c7 e0 08 ret 2007cb4: 91 e8 20 01 restore %g0, 1, %o0 Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; (*printer)( 2007cb8: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 2007cbc: c4 06 20 08 ld [ %i0 + 8 ], %g2 2007cc0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 2007cc4: 90 10 00 19 mov %i1, %o0 2007cc8: c6 23 a0 5c st %g3, [ %sp + 0x5c ] 2007ccc: c4 23 a0 68 st %g2, [ %sp + 0x68 ] 2007cd0: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 2007cd4: e0 23 a0 60 st %l0, [ %sp + 0x60 ] 2007cd8: e8 23 a0 64 st %l4, [ %sp + 0x64 ] 2007cdc: 92 10 20 00 clr %o1 2007ce0: 15 00 80 70 sethi %hi(0x201c000), %o2 2007ce4: 96 10 00 15 mov %l5, %o3 2007ce8: 94 12 a0 b0 or %o2, 0xb0, %o2 2007cec: 9f c4 80 00 call %l2 2007cf0: 98 10 00 13 mov %l3, %o4 heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { 2007cf4: 80 a5 60 00 cmp %l5, 0 2007cf8: 02 80 00 36 be 2007dd0 <_Heap_Walk+0x160> 2007cfc: 80 8d 60 07 btst 7, %l5 (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 2007d00: 12 80 00 3c bne 2007df0 <_Heap_Walk+0x180> 2007d04: 90 10 00 13 mov %l3, %o0 ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 2007d08: 7f ff e7 6f call 2001ac4 <.urem> 2007d0c: 92 10 00 15 mov %l5, %o1 2007d10: 80 a2 20 00 cmp %o0, 0 2007d14: 12 80 00 40 bne 2007e14 <_Heap_Walk+0x1a4> 2007d18: 90 04 20 08 add %l0, 8, %o0 ); return false; } if ( 2007d1c: 7f ff e7 6a call 2001ac4 <.urem> 2007d20: 92 10 00 15 mov %l5, %o1 2007d24: 80 a2 20 00 cmp %o0, 0 2007d28: 32 80 00 44 bne,a 2007e38 <_Heap_Walk+0x1c8> 2007d2c: 90 10 00 19 mov %i1, %o0 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 2007d30: ec 04 20 04 ld [ %l0 + 4 ], %l6 ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 2007d34: ae 8d a0 01 andcc %l6, 1, %l7 2007d38: 22 80 00 48 be,a 2007e58 <_Heap_Walk+0x1e8> 2007d3c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( first_block->prev_size != page_size ) { 2007d40: d6 04 00 00 ld [ %l0 ], %o3 2007d44: 80 a5 40 0b cmp %l5, %o3 2007d48: 32 80 00 1a bne,a 2007db0 <_Heap_Walk+0x140> 2007d4c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_free( last_block ) ) { 2007d50: c2 05 20 04 ld [ %l4 + 4 ], %g1 2007d54: 82 08 7f fe and %g1, -2, %g1 2007d58: 82 05 00 01 add %l4, %g1, %g1 2007d5c: c2 00 60 04 ld [ %g1 + 4 ], %g1 2007d60: 80 88 60 01 btst 1, %g1 2007d64: 22 80 01 23 be,a 20081f0 <_Heap_Walk+0x580> 2007d68: 90 10 00 19 mov %i1, %o0 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2007d6c: e2 06 20 08 ld [ %i0 + 8 ], %l1 const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 2007d70: 80 a6 00 11 cmp %i0, %l1 2007d74: 02 80 00 6f be 2007f30 <_Heap_Walk+0x2c0> 2007d78: f4 06 20 10 ld [ %i0 + 0x10 ], %i2 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 2007d7c: f8 06 20 20 ld [ %i0 + 0x20 ], %i4 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 2007d80: 80 a7 00 11 cmp %i4, %l1 2007d84: 28 80 00 3c bleu,a 2007e74 <_Heap_Walk+0x204> 2007d88: f6 06 20 24 ld [ %i0 + 0x24 ], %i3 if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 2007d8c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2007d90: 96 10 00 11 mov %l1, %o3 2007d94: 92 10 20 01 mov 1, %o1 2007d98: 15 00 80 70 sethi %hi(0x201c000), %o2 2007d9c: b0 10 20 00 clr %i0 2007da0: 9f c4 80 00 call %l2 2007da4: 94 12 a2 58 or %o2, 0x258, %o2 2007da8: 81 c7 e0 08 ret 2007dac: 81 e8 00 00 restore return false; } if ( first_block->prev_size != page_size ) { (*printer)( 2007db0: 98 10 00 15 mov %l5, %o4 2007db4: 92 10 20 01 mov 1, %o1 2007db8: 15 00 80 70 sethi %hi(0x201c000), %o2 2007dbc: b0 10 20 00 clr %i0 2007dc0: 9f c4 80 00 call %l2 2007dc4: 94 12 a2 10 or %o2, 0x210, %o2 2007dc8: 81 c7 e0 08 ret 2007dcc: 81 e8 00 00 restore first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); 2007dd0: 90 10 00 19 mov %i1, %o0 2007dd4: 92 10 20 01 mov 1, %o1 2007dd8: 15 00 80 70 sethi %hi(0x201c000), %o2 2007ddc: b0 10 20 00 clr %i0 2007de0: 9f c4 80 00 call %l2 2007de4: 94 12 a1 48 or %o2, 0x148, %o2 2007de8: 81 c7 e0 08 ret 2007dec: 81 e8 00 00 restore return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 2007df0: 90 10 00 19 mov %i1, %o0 2007df4: 96 10 00 15 mov %l5, %o3 2007df8: 92 10 20 01 mov 1, %o1 2007dfc: 15 00 80 70 sethi %hi(0x201c000), %o2 2007e00: b0 10 20 00 clr %i0 2007e04: 9f c4 80 00 call %l2 2007e08: 94 12 a1 60 or %o2, 0x160, %o2 2007e0c: 81 c7 e0 08 ret 2007e10: 81 e8 00 00 restore return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 2007e14: 90 10 00 19 mov %i1, %o0 2007e18: 96 10 00 13 mov %l3, %o3 2007e1c: 92 10 20 01 mov 1, %o1 2007e20: 15 00 80 70 sethi %hi(0x201c000), %o2 2007e24: b0 10 20 00 clr %i0 2007e28: 9f c4 80 00 call %l2 2007e2c: 94 12 a1 80 or %o2, 0x180, %o2 2007e30: 81 c7 e0 08 ret 2007e34: 81 e8 00 00 restore } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 2007e38: 96 10 00 10 mov %l0, %o3 2007e3c: 92 10 20 01 mov 1, %o1 2007e40: 15 00 80 70 sethi %hi(0x201c000), %o2 2007e44: b0 10 20 00 clr %i0 2007e48: 9f c4 80 00 call %l2 2007e4c: 94 12 a1 a8 or %o2, 0x1a8, %o2 2007e50: 81 c7 e0 08 ret 2007e54: 81 e8 00 00 restore return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 2007e58: 92 10 20 01 mov 1, %o1 2007e5c: 15 00 80 70 sethi %hi(0x201c000), %o2 2007e60: b0 10 20 00 clr %i0 2007e64: 9f c4 80 00 call %l2 2007e68: 94 12 a1 e0 or %o2, 0x1e0, %o2 2007e6c: 81 c7 e0 08 ret 2007e70: 81 e8 00 00 restore 2007e74: 80 a6 c0 11 cmp %i3, %l1 2007e78: 0a bf ff c6 bcs 2007d90 <_Heap_Walk+0x120> 2007e7c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( 2007e80: 90 04 60 08 add %l1, 8, %o0 2007e84: 7f ff e7 10 call 2001ac4 <.urem> 2007e88: 92 10 00 1a mov %i2, %o1 2007e8c: 80 a2 20 00 cmp %o0, 0 2007e90: 12 80 00 df bne 200820c <_Heap_Walk+0x59c> 2007e94: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_used( free_block ) ) { 2007e98: c2 04 60 04 ld [ %l1 + 4 ], %g1 2007e9c: 82 08 7f fe and %g1, -2, %g1 2007ea0: 82 04 40 01 add %l1, %g1, %g1 2007ea4: c2 00 60 04 ld [ %g1 + 4 ], %g1 2007ea8: 80 88 60 01 btst 1, %g1 2007eac: 12 80 00 ea bne 2008254 <_Heap_Walk+0x5e4> 2007eb0: 96 10 00 11 mov %l1, %o3 ); return false; } if ( free_block->prev != prev_block ) { 2007eb4: d8 04 60 0c ld [ %l1 + 0xc ], %o4 2007eb8: 80 a6 00 0c cmp %i0, %o4 2007ebc: 02 80 00 19 be 2007f20 <_Heap_Walk+0x2b0> 2007ec0: ba 10 00 11 mov %l1, %i5 2007ec4: 30 80 00 dc b,a 2008234 <_Heap_Walk+0x5c4> <== NOT EXECUTED 2007ec8: 0a bf ff b2 bcs 2007d90 <_Heap_Walk+0x120> 2007ecc: 90 10 00 19 mov %i1, %o0 2007ed0: 80 a6 c0 11 cmp %i3, %l1 2007ed4: 0a bf ff b0 bcs 2007d94 <_Heap_Walk+0x124> 2007ed8: 96 10 00 11 mov %l1, %o3 ); return false; } if ( 2007edc: 90 04 60 08 add %l1, 8, %o0 2007ee0: 7f ff e6 f9 call 2001ac4 <.urem> 2007ee4: 92 10 00 1a mov %i2, %o1 2007ee8: 80 a2 20 00 cmp %o0, 0 2007eec: 32 80 00 c8 bne,a 200820c <_Heap_Walk+0x59c> 2007ef0: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_used( free_block ) ) { 2007ef4: c2 04 60 04 ld [ %l1 + 4 ], %g1 2007ef8: 82 08 7f fe and %g1, -2, %g1 2007efc: 82 00 40 11 add %g1, %l1, %g1 2007f00: c2 00 60 04 ld [ %g1 + 4 ], %g1 2007f04: 80 88 60 01 btst 1, %g1 2007f08: 32 80 00 d2 bne,a 2008250 <_Heap_Walk+0x5e0> 2007f0c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( free_block->prev != prev_block ) { 2007f10: d8 04 60 0c ld [ %l1 + 0xc ], %o4 2007f14: 80 a3 00 1d cmp %o4, %i5 2007f18: 12 80 00 c5 bne 200822c <_Heap_Walk+0x5bc> 2007f1c: ba 10 00 11 mov %l1, %i5 return false; } prev_block = free_block; free_block = free_block->next; 2007f20: e2 04 60 08 ld [ %l1 + 8 ], %l1 const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 2007f24: 80 a6 00 11 cmp %i0, %l1 2007f28: 12 bf ff e8 bne 2007ec8 <_Heap_Walk+0x258> 2007f2c: 80 a4 40 1c cmp %l1, %i4 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 2007f30: 80 a5 00 10 cmp %l4, %l0 2007f34: 02 bf ff 5f be 2007cb0 <_Heap_Walk+0x40> 2007f38: 37 00 80 70 sethi %hi(0x201c000), %i3 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2007f3c: 35 00 80 70 sethi %hi(0x201c000), %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2007f40: 39 00 80 71 sethi %hi(0x201c400), %i4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2007f44: ba 10 00 15 mov %l5, %i5 bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { (*printer)( 2007f48: b6 16 e3 00 or %i3, 0x300, %i3 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2007f4c: b4 16 a3 18 or %i2, 0x318, %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2007f50: b8 17 20 b0 or %i4, 0xb0, %i4 2007f54: aa 10 00 14 mov %l4, %l5 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 2007f58: ac 0d bf fe and %l6, -2, %l6 uintptr_t const block_size = _Heap_Block_size( block ); bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { 2007f5c: 80 a5 e0 00 cmp %l7, 0 2007f60: 02 80 00 16 be 2007fb8 <_Heap_Walk+0x348> 2007f64: a2 05 80 10 add %l6, %l0, %l1 (*printer)( 2007f68: 90 10 00 19 mov %i1, %o0 2007f6c: 92 10 20 00 clr %o1 2007f70: 94 10 00 1b mov %i3, %o2 2007f74: 96 10 00 10 mov %l0, %o3 2007f78: 9f c4 80 00 call %l2 2007f7c: 98 10 00 16 mov %l6, %o4 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 2007f80: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 2007f84: 80 a0 40 11 cmp %g1, %l1 2007f88: 28 80 00 18 bleu,a 2007fe8 <_Heap_Walk+0x378> 2007f8c: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 2007f90: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2007f94: 96 10 00 10 mov %l0, %o3 2007f98: 98 10 00 11 mov %l1, %o4 2007f9c: 92 10 20 01 mov 1, %o1 2007fa0: 15 00 80 70 sethi %hi(0x201c000), %o2 2007fa4: b0 10 20 00 clr %i0 2007fa8: 9f c4 80 00 call %l2 2007fac: 94 12 a3 40 or %o2, 0x340, %o2 "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; 2007fb0: 81 c7 e0 08 ret 2007fb4: 81 e8 00 00 restore "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2007fb8: da 04 00 00 ld [ %l0 ], %o5 2007fbc: 90 10 00 19 mov %i1, %o0 2007fc0: 92 10 20 00 clr %o1 2007fc4: 94 10 00 1a mov %i2, %o2 2007fc8: 96 10 00 10 mov %l0, %o3 2007fcc: 9f c4 80 00 call %l2 2007fd0: 98 10 00 16 mov %l6, %o4 2007fd4: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 2007fd8: 80 a0 40 11 cmp %g1, %l1 2007fdc: 18 bf ff ee bgu 2007f94 <_Heap_Walk+0x324> 2007fe0: 90 10 00 19 mov %i1, %o0 2007fe4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 2007fe8: 80 a0 40 11 cmp %g1, %l1 2007fec: 0a bf ff ea bcs 2007f94 <_Heap_Walk+0x324> 2007ff0: 90 10 00 19 mov %i1, %o0 ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 2007ff4: 90 10 00 16 mov %l6, %o0 2007ff8: 7f ff e6 b3 call 2001ac4 <.urem> 2007ffc: 92 10 00 1d mov %i5, %o1 2008000: 80 a2 20 00 cmp %o0, 0 2008004: 12 80 00 5d bne 2008178 <_Heap_Walk+0x508> 2008008: 80 a4 c0 16 cmp %l3, %l6 ); return false; } if ( block_size < min_block_size ) { 200800c: 18 80 00 65 bgu 20081a0 <_Heap_Walk+0x530> 2008010: 80 a4 00 11 cmp %l0, %l1 ); return false; } if ( next_block_begin <= block_begin ) { 2008014: 3a 80 00 6e bcc,a 20081cc <_Heap_Walk+0x55c> 2008018: 90 10 00 19 mov %i1, %o0 ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 200801c: c2 04 60 04 ld [ %l1 + 4 ], %g1 2008020: 80 88 60 01 btst 1, %g1 2008024: 12 80 00 40 bne 2008124 <_Heap_Walk+0x4b4> 2008028: 80 a5 40 11 cmp %l5, %l1 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 200802c: e8 04 20 04 ld [ %l0 + 4 ], %l4 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 2008030: d8 04 20 0c ld [ %l0 + 0xc ], %o4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2008034: c2 06 20 08 ld [ %i0 + 8 ], %g1 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 2008038: ac 0d 3f fe and %l4, -2, %l6 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200803c: 1b 00 80 71 sethi %hi(0x201c400), %o5 2008040: 80 a0 40 0c cmp %g1, %o4 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 2008044: c6 06 20 0c ld [ %i0 + 0xc ], %g3 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 2008048: ae 04 00 16 add %l0, %l6, %l7 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 200804c: 02 80 00 07 be 2008068 <_Heap_Walk+0x3f8> 2008050: 9a 13 60 08 or %o5, 8, %o5 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 2008054: 1b 00 80 71 sethi %hi(0x201c400), %o5 2008058: 80 a3 00 18 cmp %o4, %i0 200805c: 02 80 00 03 be 2008068 <_Heap_Walk+0x3f8> 2008060: 9a 13 60 18 or %o5, 0x18, %o5 2008064: 9a 10 00 1c mov %i4, %o5 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 2008068: c2 04 20 08 ld [ %l0 + 8 ], %g1 200806c: 05 00 80 71 sethi %hi(0x201c400), %g2 2008070: 80 a0 c0 01 cmp %g3, %g1 2008074: 02 80 00 07 be 2008090 <_Heap_Walk+0x420> 2008078: 84 10 a0 28 or %g2, 0x28, %g2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 200807c: 05 00 80 71 sethi %hi(0x201c400), %g2 2008080: 80 a0 40 18 cmp %g1, %i0 2008084: 02 80 00 03 be 2008090 <_Heap_Walk+0x420> 2008088: 84 10 a0 38 or %g2, 0x38, %g2 200808c: 84 10 00 1c mov %i4, %g2 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 2008090: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 2008094: c4 23 a0 60 st %g2, [ %sp + 0x60 ] 2008098: 90 10 00 19 mov %i1, %o0 200809c: 92 10 20 00 clr %o1 20080a0: 15 00 80 71 sethi %hi(0x201c400), %o2 20080a4: 96 10 00 10 mov %l0, %o3 20080a8: 9f c4 80 00 call %l2 20080ac: 94 12 a0 48 or %o2, 0x48, %o2 block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 20080b0: da 05 c0 00 ld [ %l7 ], %o5 20080b4: 80 a5 80 0d cmp %l6, %o5 20080b8: 02 80 00 0c be 20080e8 <_Heap_Walk+0x478> 20080bc: 90 10 00 19 mov %i1, %o0 (*printer)( 20080c0: ee 23 a0 5c st %l7, [ %sp + 0x5c ] 20080c4: 96 10 00 10 mov %l0, %o3 20080c8: 98 10 00 16 mov %l6, %o4 20080cc: 92 10 20 01 mov 1, %o1 20080d0: 15 00 80 71 sethi %hi(0x201c400), %o2 20080d4: b0 10 20 00 clr %i0 20080d8: 9f c4 80 00 call %l2 20080dc: 94 12 a0 78 or %o2, 0x78, %o2 20080e0: 81 c7 e0 08 ret 20080e4: 81 e8 00 00 restore ); return false; } if ( !prev_used ) { 20080e8: 80 8d 20 01 btst 1, %l4 20080ec: 02 80 00 1c be 200815c <_Heap_Walk+0x4ec> 20080f0: 96 10 00 10 mov %l0, %o3 20080f4: c2 06 20 08 ld [ %i0 + 8 ], %g1 ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 20080f8: 80 a0 40 18 cmp %g1, %i0 20080fc: 12 80 00 07 bne 2008118 <_Heap_Walk+0x4a8> 2008100: 80 a0 40 10 cmp %g1, %l0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008104: 10 80 00 0f b 2008140 <_Heap_Walk+0x4d0> <== NOT EXECUTED 2008108: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 200810c: 80 a0 40 18 cmp %g1, %i0 2008110: 02 80 00 0a be 2008138 <_Heap_Walk+0x4c8> 2008114: 80 a0 40 10 cmp %g1, %l0 if ( free_block == block ) { 2008118: 32 bf ff fd bne,a 200810c <_Heap_Walk+0x49c> 200811c: c2 00 60 08 ld [ %g1 + 8 ], %g1 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 2008120: 80 a5 40 11 cmp %l5, %l1 2008124: 02 bf fe e3 be 2007cb0 <_Heap_Walk+0x40> 2008128: a0 10 00 11 mov %l1, %l0 const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 200812c: ec 04 60 04 ld [ %l1 + 4 ], %l6 2008130: 10 bf ff 8a b 2007f58 <_Heap_Walk+0x2e8> 2008134: ae 0d a0 01 and %l6, 1, %l7 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008138: 90 10 00 19 mov %i1, %o0 200813c: 96 10 00 10 mov %l0, %o3 2008140: 92 10 20 01 mov 1, %o1 2008144: 15 00 80 71 sethi %hi(0x201c400), %o2 2008148: b0 10 20 00 clr %i0 200814c: 9f c4 80 00 call %l2 2008150: 94 12 a0 e8 or %o2, 0xe8, %o2 2008154: 81 c7 e0 08 ret 2008158: 81 e8 00 00 restore return false; } if ( !prev_used ) { (*printer)( 200815c: 92 10 20 01 mov 1, %o1 2008160: 15 00 80 71 sethi %hi(0x201c400), %o2 2008164: b0 10 20 00 clr %i0 2008168: 9f c4 80 00 call %l2 200816c: 94 12 a0 b8 or %o2, 0xb8, %o2 2008170: 81 c7 e0 08 ret 2008174: 81 e8 00 00 restore return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 2008178: 90 10 00 19 mov %i1, %o0 200817c: 96 10 00 10 mov %l0, %o3 2008180: 98 10 00 16 mov %l6, %o4 2008184: 92 10 20 01 mov 1, %o1 2008188: 15 00 80 70 sethi %hi(0x201c000), %o2 200818c: b0 10 20 00 clr %i0 2008190: 9f c4 80 00 call %l2 2008194: 94 12 a3 70 or %o2, 0x370, %o2 "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; 2008198: 81 c7 e0 08 ret 200819c: 81 e8 00 00 restore } if ( block_size < min_block_size ) { (*printer)( 20081a0: 90 10 00 19 mov %i1, %o0 20081a4: 96 10 00 10 mov %l0, %o3 20081a8: 98 10 00 16 mov %l6, %o4 20081ac: 9a 10 00 13 mov %l3, %o5 20081b0: 92 10 20 01 mov 1, %o1 20081b4: 15 00 80 70 sethi %hi(0x201c000), %o2 20081b8: b0 10 20 00 clr %i0 20081bc: 9f c4 80 00 call %l2 20081c0: 94 12 a3 a0 or %o2, 0x3a0, %o2 block, block_size, min_block_size ); return false; 20081c4: 81 c7 e0 08 ret 20081c8: 81 e8 00 00 restore } if ( next_block_begin <= block_begin ) { (*printer)( 20081cc: 96 10 00 10 mov %l0, %o3 20081d0: 98 10 00 11 mov %l1, %o4 20081d4: 92 10 20 01 mov 1, %o1 20081d8: 15 00 80 70 sethi %hi(0x201c000), %o2 20081dc: b0 10 20 00 clr %i0 20081e0: 9f c4 80 00 call %l2 20081e4: 94 12 a3 d0 or %o2, 0x3d0, %o2 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 20081e8: 81 c7 e0 08 ret 20081ec: 81 e8 00 00 restore return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 20081f0: 92 10 20 01 mov 1, %o1 20081f4: 15 00 80 70 sethi %hi(0x201c000), %o2 20081f8: b0 10 20 00 clr %i0 20081fc: 9f c4 80 00 call %l2 2008200: 94 12 a2 40 or %o2, 0x240, %o2 2008204: 81 c7 e0 08 ret 2008208: 81 e8 00 00 restore } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 200820c: 96 10 00 11 mov %l1, %o3 2008210: 92 10 20 01 mov 1, %o1 2008214: 15 00 80 70 sethi %hi(0x201c000), %o2 2008218: b0 10 20 00 clr %i0 200821c: 9f c4 80 00 call %l2 2008220: 94 12 a2 78 or %o2, 0x278, %o2 2008224: 81 c7 e0 08 ret 2008228: 81 e8 00 00 restore return false; } if ( free_block->prev != prev_block ) { (*printer)( 200822c: 90 10 00 19 mov %i1, %o0 2008230: 96 10 00 11 mov %l1, %o3 2008234: 92 10 20 01 mov 1, %o1 2008238: 15 00 80 70 sethi %hi(0x201c000), %o2 200823c: b0 10 20 00 clr %i0 2008240: 9f c4 80 00 call %l2 2008244: 94 12 a2 c8 or %o2, 0x2c8, %o2 2008248: 81 c7 e0 08 ret 200824c: 81 e8 00 00 restore return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 2008250: 96 10 00 11 mov %l1, %o3 2008254: 92 10 20 01 mov 1, %o1 2008258: 15 00 80 70 sethi %hi(0x201c000), %o2 200825c: b0 10 20 00 clr %i0 2008260: 9f c4 80 00 call %l2 2008264: 94 12 a2 a8 or %o2, 0x2a8, %o2 2008268: 81 c7 e0 08 ret 200826c: 81 e8 00 00 restore 02006fac <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 2006fac: 9d e3 bf 90 save %sp, -112, %sp minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 2006fb0: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 2006fb4: 80 a5 20 00 cmp %l4, 0 2006fb8: 02 80 00 ab be 2007264 <_Objects_Extend_information+0x2b8> 2006fbc: e6 16 20 0a lduh [ %i0 + 0xa ], %l3 block_count = 0; else { block_count = information->maximum / information->allocation_size; 2006fc0: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 2006fc4: e4 16 20 14 lduh [ %i0 + 0x14 ], %l2 2006fc8: ab 2d 60 10 sll %l5, 0x10, %l5 2006fcc: 92 10 00 12 mov %l2, %o1 2006fd0: 40 00 47 8a call 2018df8 <.udiv> 2006fd4: 91 35 60 10 srl %l5, 0x10, %o0 2006fd8: 91 2a 20 10 sll %o0, 0x10, %o0 2006fdc: b9 32 20 10 srl %o0, 0x10, %i4 for ( ; block < block_count; block++ ) { 2006fe0: 80 a7 20 00 cmp %i4, 0 2006fe4: 02 80 00 a7 be 2007280 <_Objects_Extend_information+0x2d4> 2006fe8: 90 10 00 12 mov %l2, %o0 if ( information->object_blocks[ block ] == NULL ) 2006fec: c2 05 00 00 ld [ %l4 ], %g1 2006ff0: 80 a0 60 00 cmp %g1, 0 2006ff4: 02 80 00 a4 be 2007284 <_Objects_Extend_information+0x2d8> 2006ff8: a2 10 00 13 mov %l3, %l1 2006ffc: 10 80 00 06 b 2007014 <_Objects_Extend_information+0x68> 2007000: a0 10 20 00 clr %l0 2007004: c2 05 00 01 ld [ %l4 + %g1 ], %g1 2007008: 80 a0 60 00 cmp %g1, 0 200700c: 22 80 00 08 be,a 200702c <_Objects_Extend_information+0x80> 2007010: ab 35 60 10 srl %l5, 0x10, %l5 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 2007014: a0 04 20 01 inc %l0 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 2007018: a2 04 40 12 add %l1, %l2, %l1 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 200701c: 80 a7 00 10 cmp %i4, %l0 2007020: 18 bf ff f9 bgu 2007004 <_Objects_Extend_information+0x58> 2007024: 83 2c 20 02 sll %l0, 2, %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007028: ab 35 60 10 srl %l5, 0x10, %l5 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 200702c: 03 00 00 3f sethi %hi(0xfc00), %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007030: aa 05 40 08 add %l5, %o0, %l5 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 2007034: 82 10 63 ff or %g1, 0x3ff, %g1 2007038: 80 a5 40 01 cmp %l5, %g1 200703c: 18 80 00 96 bgu 2007294 <_Objects_Extend_information+0x2e8> 2007040: 01 00 00 00 nop /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 2007044: 40 00 47 33 call 2018d10 <.umul> 2007048: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 if ( information->auto_extend ) { 200704c: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2007050: 80 a0 60 00 cmp %g1, 0 2007054: 12 80 00 6d bne 2007208 <_Objects_Extend_information+0x25c> 2007058: 01 00 00 00 nop new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 200705c: 40 00 08 fd call 2009450 <_Workspace_Allocate_or_fatal_error> 2007060: 01 00 00 00 nop 2007064: a4 10 00 08 mov %o0, %l2 } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 2007068: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 200706c: 80 a4 40 01 cmp %l1, %g1 2007070: 2a 80 00 43 bcs,a 200717c <_Objects_Extend_information+0x1d0> 2007074: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 */ /* * Up the block count and maximum */ block_count++; 2007078: a8 07 20 01 add %i4, 1, %l4 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 200707c: 91 2d 20 01 sll %l4, 1, %o0 2007080: 90 02 00 14 add %o0, %l4, %o0 2007084: 90 05 40 08 add %l5, %o0, %o0 2007088: 90 02 00 13 add %o0, %l3, %o0 200708c: 40 00 09 00 call 200948c <_Workspace_Allocate> 2007090: 91 2a 20 02 sll %o0, 2, %o0 if ( !object_blocks ) { 2007094: ac 92 20 00 orcc %o0, 0, %l6 2007098: 02 80 00 7d be 200728c <_Objects_Extend_information+0x2e0> 200709c: a9 2d 20 02 sll %l4, 2, %l4 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 20070a0: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 20070a4: 80 a4 c0 01 cmp %l3, %g1 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 20070a8: ae 05 80 14 add %l6, %l4, %l7 20070ac: 0a 80 00 5e bcs 2007224 <_Objects_Extend_information+0x278> 20070b0: a8 05 c0 14 add %l7, %l4, %l4 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 20070b4: 80 a4 e0 00 cmp %l3, 0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 20070b8: 82 10 20 00 clr %g1 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 20070bc: 02 80 00 08 be 20070dc <_Objects_Extend_information+0x130> 20070c0: bb 2f 20 02 sll %i4, 2, %i5 local_table[ index ] = NULL; 20070c4: 85 28 60 02 sll %g1, 2, %g2 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 20070c8: 82 00 60 01 inc %g1 20070cc: 80 a4 c0 01 cmp %l3, %g1 20070d0: 18 bf ff fd bgu 20070c4 <_Objects_Extend_information+0x118> 20070d4: c0 20 80 14 clr [ %g2 + %l4 ] 20070d8: bb 2f 20 02 sll %i4, 2, %i5 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 20070dc: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 20070e0: c0 25 c0 1d clr [ %l7 + %i5 ] for ( index=index_base ; index < ( information->allocation_size + index_base ); 20070e4: 86 04 40 03 add %l1, %g3, %g3 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 20070e8: 80 a4 40 03 cmp %l1, %g3 20070ec: 1a 80 00 0a bcc 2007114 <_Objects_Extend_information+0x168> 20070f0: c0 25 80 1d clr [ %l6 + %i5 ] 20070f4: 85 2c 60 02 sll %l1, 2, %g2 20070f8: 82 10 00 11 mov %l1, %g1 20070fc: 84 05 00 02 add %l4, %g2, %g2 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 2007100: c0 20 80 00 clr [ %g2 ] object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 2007104: 82 00 60 01 inc %g1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 2007108: 80 a0 40 03 cmp %g1, %g3 200710c: 0a bf ff fd bcs 2007100 <_Objects_Extend_information+0x154> 2007110: 84 00 a0 04 add %g2, 4, %g2 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 2007114: 7f ff eb 17 call 2001d70 2007118: 01 00 00 00 nop information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 200711c: c6 06 00 00 ld [ %i0 ], %g3 2007120: c4 16 20 04 lduh [ %i0 + 4 ], %g2 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 2007124: ea 36 20 10 sth %l5, [ %i0 + 0x10 ] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 2007128: e6 06 20 34 ld [ %i0 + 0x34 ], %l3 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 200712c: ee 26 20 30 st %l7, [ %i0 + 0x30 ] information->local_table = local_table; 2007130: e8 26 20 1c st %l4, [ %i0 + 0x1c ] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 2007134: 87 28 e0 18 sll %g3, 0x18, %g3 2007138: 85 28 a0 1b sll %g2, 0x1b, %g2 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 200713c: ec 26 20 34 st %l6, [ %i0 + 0x34 ] information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 2007140: ab 2d 60 10 sll %l5, 0x10, %l5 2007144: 03 00 00 40 sethi %hi(0x10000), %g1 2007148: ab 35 60 10 srl %l5, 0x10, %l5 200714c: 82 10 c0 01 or %g3, %g1, %g1 2007150: 82 10 40 02 or %g1, %g2, %g1 2007154: 82 10 40 15 or %g1, %l5, %g1 2007158: c2 26 20 0c st %g1, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 200715c: 7f ff eb 09 call 2001d80 2007160: 01 00 00 00 nop if ( old_tables ) 2007164: 80 a4 e0 00 cmp %l3, 0 2007168: 22 80 00 05 be,a 200717c <_Objects_Extend_information+0x1d0> 200716c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 _Workspace_Free( old_tables ); 2007170: 40 00 08 d0 call 20094b0 <_Workspace_Free> 2007174: 90 10 00 13 mov %l3, %o0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007178: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 200717c: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2 2007180: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 2007184: 92 10 00 12 mov %l2, %o1 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007188: a1 2c 20 02 sll %l0, 2, %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 200718c: a6 06 20 20 add %i0, 0x20, %l3 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 2007190: e4 20 40 10 st %l2, [ %g1 + %l0 ] */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( 2007194: 29 00 00 40 sethi %hi(0x10000), %l4 information->object_blocks[ block ] = new_object_block; /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 2007198: a4 07 bf f4 add %fp, -12, %l2 200719c: 40 00 14 8c call 200c3cc <_Chain_Initialize> 20071a0: 90 10 00 12 mov %l2, %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 ) { 20071a4: 30 80 00 0c b,a 20071d4 <_Objects_Extend_information+0x228> the_object->id = _Objects_Build_id( 20071a8: c4 16 20 04 lduh [ %i0 + 4 ], %g2 20071ac: 83 28 60 18 sll %g1, 0x18, %g1 20071b0: 85 28 a0 1b sll %g2, 0x1b, %g2 20071b4: 82 10 40 14 or %g1, %l4, %g1 20071b8: 82 10 40 02 or %g1, %g2, %g1 20071bc: 82 10 40 11 or %g1, %l1, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20071c0: 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( 20071c4: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 20071c8: a2 04 60 01 inc %l1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20071cc: 7f ff fc e2 call 2006554 <_Chain_Append> 20071d0: 90 10 00 13 mov %l3, %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 ) { 20071d4: 40 00 14 6b call 200c380 <_Chain_Get> 20071d8: 90 10 00 12 mov %l2, %o0 20071dc: 80 a2 20 00 cmp %o0, 0 20071e0: 32 bf ff f2 bne,a 20071a8 <_Objects_Extend_information+0x1fc> 20071e4: c2 06 00 00 ld [ %i0 ], %g1 index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = 20071e8: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 20071ec: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4 20071f0: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive = 20071f4: 82 01 00 01 add %g4, %g1, %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 20071f8: c8 20 80 10 st %g4, [ %g2 + %l0 ] information->inactive = 20071fc: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2007200: 81 c7 e0 08 ret 2007204: 81 e8 00 00 restore * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); 2007208: 40 00 08 a1 call 200948c <_Workspace_Allocate> 200720c: 01 00 00 00 nop if ( !new_object_block ) 2007210: a4 92 20 00 orcc %o0, 0, %l2 2007214: 32 bf ff 96 bne,a 200706c <_Objects_Extend_information+0xc0> 2007218: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 200721c: 81 c7 e0 08 ret 2007220: 81 e8 00 00 restore /* * 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, 2007224: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 information->object_blocks, block_count * sizeof(void*) ); 2007228: bb 2f 20 02 sll %i4, 2, %i5 /* * 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, 200722c: 40 00 24 06 call 2010244 2007230: 94 10 00 1d mov %i5, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 2007234: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 2007238: 94 10 00 1d mov %i5, %o2 200723c: 40 00 24 02 call 2010244 2007240: 90 10 00 17 mov %l7, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 2007244: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2 2007248: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 200724c: 94 04 c0 0a add %l3, %o2, %o2 2007250: 90 10 00 14 mov %l4, %o0 2007254: 40 00 23 fc call 2010244 2007258: 95 2a a0 02 sll %o2, 2, %o2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 200725c: 10 bf ff a1 b 20070e0 <_Objects_Extend_information+0x134> 2007260: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 2007264: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 2007268: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 200726c: ab 2d 60 10 sll %l5, 0x10, %l5 2007270: a2 10 00 13 mov %l3, %l1 2007274: a0 10 20 00 clr %l0 2007278: 10 bf ff 6c b 2007028 <_Objects_Extend_information+0x7c> 200727c: b8 10 20 00 clr %i4 block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 2007280: a2 10 00 13 mov %l3, %l1 <== NOT EXECUTED 2007284: 10 bf ff 69 b 2007028 <_Objects_Extend_information+0x7c> <== NOT EXECUTED 2007288: a0 10 20 00 clr %l0 <== NOT EXECUTED (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); 200728c: 40 00 08 89 call 20094b0 <_Workspace_Free> 2007290: 90 10 00 12 mov %l2, %o0 return; 2007294: 81 c7 e0 08 ret 2007298: 81 e8 00 00 restore 020076b4 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 20076b4: 9d e3 bf a0 save %sp, -96, %sp /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); 20076b8: e0 16 20 0a lduh [ %i0 + 0xa ], %l0 block_count = (information->maximum - index_base) / 20076bc: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1 20076c0: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 20076c4: 92 10 00 11 mov %l1, %o1 20076c8: 40 00 45 cc call 2018df8 <.udiv> 20076cc: 90 22 00 10 sub %o0, %l0, %o0 information->allocation_size; for ( block = 0; block < block_count; block++ ) { 20076d0: 80 a2 20 00 cmp %o0, 0 20076d4: 02 80 00 12 be 200771c <_Objects_Shrink_information+0x68> 20076d8: a4 10 20 04 mov 4, %l2 if ( information->inactive_per_block[ block ] == 20076dc: c6 06 20 30 ld [ %i0 + 0x30 ], %g3 20076e0: c4 00 c0 00 ld [ %g3 ], %g2 20076e4: 80 a4 40 02 cmp %l1, %g2 20076e8: 12 80 00 09 bne 200770c <_Objects_Shrink_information+0x58> 20076ec: 82 10 20 00 clr %g1 20076f0: 10 80 00 0d b 2007724 <_Objects_Shrink_information+0x70> <== NOT EXECUTED 20076f4: a4 10 20 00 clr %l2 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 20076f8: a0 04 00 11 add %l0, %l1, %l0 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == 20076fc: 80 a4 40 02 cmp %l1, %g2 2007700: 02 80 00 09 be 2007724 <_Objects_Shrink_information+0x70> 2007704: 84 04 a0 04 add %l2, 4, %g2 2007708: a4 10 00 02 mov %g2, %l2 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 200770c: 82 00 60 01 inc %g1 2007710: 80 a2 00 01 cmp %o0, %g1 2007714: 38 bf ff f9 bgu,a 20076f8 <_Objects_Shrink_information+0x44> 2007718: c4 00 c0 12 ld [ %g3 + %l2 ], %g2 200771c: 81 c7 e0 08 ret 2007720: 81 e8 00 00 restore information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; 2007724: 10 80 00 06 b 200773c <_Objects_Shrink_information+0x88> 2007728: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 200772c: 80 a4 60 00 cmp %l1, 0 2007730: 22 80 00 12 be,a 2007778 <_Objects_Shrink_information+0xc4> 2007734: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2007738: 90 10 00 11 mov %l1, %o0 * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; do { index = _Objects_Get_index( the_object->id ); 200773c: c2 12 20 0a lduh [ %o0 + 0xa ], %g1 /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && 2007740: 80 a0 40 10 cmp %g1, %l0 2007744: 0a bf ff fa bcs 200772c <_Objects_Shrink_information+0x78> 2007748: e2 02 00 00 ld [ %o0 ], %l1 (index < (index_base + information->allocation_size))) { 200774c: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 2007750: 84 04 00 02 add %l0, %g2, %g2 2007754: 80 a0 40 02 cmp %g1, %g2 2007758: 1a bf ff f6 bcc 2007730 <_Objects_Shrink_information+0x7c> 200775c: 80 a4 60 00 cmp %l1, 0 _Chain_Extract( &extract_me->Node ); 2007760: 40 00 12 fe call 200c358 <_Chain_Extract> 2007764: 01 00 00 00 nop } } while ( the_object ); 2007768: 80 a4 60 00 cmp %l1, 0 200776c: 12 bf ff f4 bne 200773c <_Objects_Shrink_information+0x88> 2007770: 90 10 00 11 mov %l1, %o0 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 2007774: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 2007778: 40 00 07 4e call 20094b0 <_Workspace_Free> 200777c: d0 00 40 12 ld [ %g1 + %l2 ], %o0 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2007780: c6 16 20 2c lduh [ %i0 + 0x2c ], %g3 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 2007784: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 information->inactive_per_block[ block ] = 0; 2007788: c8 06 20 30 ld [ %i0 + 0x30 ], %g4 information->inactive -= information->allocation_size; 200778c: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 2007790: c0 21 00 12 clr [ %g4 + %l2 ] information->inactive -= information->allocation_size; 2007794: 84 20 c0 02 sub %g3, %g2, %g2 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 2007798: c0 20 40 12 clr [ %g1 + %l2 ] information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 200779c: c4 36 20 2c sth %g2, [ %i0 + 0x2c ] return; 20077a0: 81 c7 e0 08 ret 20077a4: 81 e8 00 00 restore 0200bb7c <_POSIX_Threads_Sporadic_budget_callout>: ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200bb7c: c4 02 21 6c ld [ %o0 + 0x16c ], %g2 RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 200bb80: c6 00 a0 88 ld [ %g2 + 0x88 ], %g3 200bb84: 05 00 80 6e sethi %hi(0x201b800), %g2 200bb88: d2 08 a3 54 ldub [ %g2 + 0x354 ], %o1 ! 201bb54 */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 200bb8c: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 200bb90: 92 22 40 03 sub %o1, %g3, %o1 /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ 200bb94: 86 10 3f ff mov -1, %g3 new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority); the_thread->real_priority = new_priority; 200bb98: d2 22 20 18 st %o1, [ %o0 + 0x18 ] */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 200bb9c: 80 a0 a0 00 cmp %g2, 0 200bba0: 12 80 00 06 bne 200bbb8 <_POSIX_Threads_Sporadic_budget_callout+0x3c> 200bba4: c6 22 20 78 st %g3, [ %o0 + 0x78 ] /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { 200bba8: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 200bbac: 80 a0 40 09 cmp %g1, %o1 200bbb0: 0a 80 00 04 bcs 200bbc0 <_POSIX_Threads_Sporadic_budget_callout+0x44> 200bbb4: 94 10 20 01 mov 1, %o2 200bbb8: 81 c3 e0 08 retl <== NOT EXECUTED 200bbbc: 01 00 00 00 nop <== NOT EXECUTED _Thread_Change_priority( the_thread, new_priority, true ); 200bbc0: 82 13 c0 00 mov %o7, %g1 200bbc4: 7f ff ef 12 call 200780c <_Thread_Change_priority> 200bbc8: 9e 10 40 00 mov %g1, %o7 200bbcc: 01 00 00 00 nop 02005d24 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { 2005d24: 9d e3 bf a0 save %sp, -96, %sp bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 2005d28: c4 06 60 68 ld [ %i1 + 0x68 ], %g2 /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 2005d2c: c2 06 60 54 ld [ %i1 + 0x54 ], %g1 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 2005d30: 84 00 a0 01 inc %g2 /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 2005d34: 80 a0 60 00 cmp %g1, 0 2005d38: 12 80 00 0e bne 2005d70 <_POSIX_Timer_TSR+0x4c> 2005d3c: c4 26 60 68 st %g2, [ %i1 + 0x68 ] ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 2005d40: c2 06 60 58 ld [ %i1 + 0x58 ], %g1 2005d44: 80 a0 60 00 cmp %g1, 0 2005d48: 32 80 00 0b bne,a 2005d74 <_POSIX_Timer_TSR+0x50> 2005d4c: d2 06 60 64 ld [ %i1 + 0x64 ], %o1 /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; 2005d50: 82 10 20 04 mov 4, %g1 <== NOT EXECUTED 2005d54: c2 2e 60 3c stb %g1, [ %i1 + 0x3c ] <== NOT EXECUTED /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { 2005d58: d0 06 60 38 ld [ %i1 + 0x38 ], %o0 2005d5c: 40 00 1a 1b call 200c5c8 2005d60: d2 06 60 44 ld [ %i1 + 0x44 ], %o1 } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 2005d64: c0 26 60 68 clr [ %i1 + 0x68 ] 2005d68: 81 c7 e0 08 ret 2005d6c: 81 e8 00 00 restore ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { activated = _POSIX_Timer_Insert_helper( 2005d70: d2 06 60 64 ld [ %i1 + 0x64 ], %o1 2005d74: d4 06 60 08 ld [ %i1 + 8 ], %o2 2005d78: 90 06 60 10 add %i1, 0x10, %o0 2005d7c: 17 00 80 17 sethi %hi(0x2005c00), %o3 2005d80: 98 10 00 19 mov %i1, %o4 2005d84: 40 00 1b 3f call 200ca80 <_POSIX_Timer_Insert_helper> 2005d88: 96 12 e1 24 or %o3, 0x124, %o3 ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 2005d8c: 80 8a 20 ff btst 0xff, %o0 2005d90: 02 bf ff f6 be 2005d68 <_POSIX_Timer_TSR+0x44> 2005d94: 01 00 00 00 nop return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 2005d98: 40 00 05 da call 2007500 <_TOD_Get> 2005d9c: 90 06 60 6c add %i1, 0x6c, %o0 /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; 2005da0: 82 10 20 03 mov 3, %g1 /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 2005da4: 10 bf ff ed b 2005d58 <_POSIX_Timer_TSR+0x34> 2005da8: c2 2e 60 3c stb %g1, [ %i1 + 0x3c ] 0200f578 <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) { 200f578: 9d e3 bf a0 save %sp, -96, %sp clear_signal = true; mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); 200f57c: 7f ff c9 fd call 2001d70 200f580: 01 00 00 00 nop if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 200f584: 85 2e 20 04 sll %i0, 4, %g2 200f588: 83 2e 20 02 sll %i0, 2, %g1 200f58c: 82 20 80 01 sub %g2, %g1, %g1 200f590: 05 00 80 72 sethi %hi(0x201c800), %g2 200f594: 84 10 a3 34 or %g2, 0x334, %g2 ! 201cb34 <_POSIX_signals_Vectors> 200f598: c4 00 80 01 ld [ %g2 + %g1 ], %g2 200f59c: 80 a0 a0 02 cmp %g2, 2 200f5a0: 02 80 00 11 be 200f5e4 <_POSIX_signals_Clear_process_signals+0x6c> 200f5a4: 05 00 80 73 sethi %hi(0x201cc00), %g2 if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 200f5a8: 05 00 80 73 sethi %hi(0x201cc00), %g2 200f5ac: c6 00 a1 00 ld [ %g2 + 0x100 ], %g3 ! 201cd00 <_POSIX_signals_Pending> 200f5b0: b0 06 3f ff add %i0, -1, %i0 200f5b4: 82 10 20 01 mov 1, %g1 200f5b8: 83 28 40 18 sll %g1, %i0, %g1 200f5bc: 82 28 c0 01 andn %g3, %g1, %g1 if ( !_POSIX_signals_Pending ) 200f5c0: 80 a0 60 00 cmp %g1, 0 200f5c4: 12 80 00 06 bne 200f5dc <_POSIX_signals_Clear_process_signals+0x64> 200f5c8: c2 20 a1 00 st %g1, [ %g2 + 0x100 ] _Thread_Do_post_task_switch_extension--; 200f5cc: 03 00 80 71 sethi %hi(0x201c400), %g1 200f5d0: c4 00 62 44 ld [ %g1 + 0x244 ], %g2 ! 201c644 <_Thread_Do_post_task_switch_extension> 200f5d4: 84 00 bf ff add %g2, -1, %g2 200f5d8: c4 20 62 44 st %g2, [ %g1 + 0x244 ] } _ISR_Enable( level ); 200f5dc: 7f ff c9 e9 call 2001d80 200f5e0: 91 e8 00 08 restore %g0, %o0, %o0 ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) 200f5e4: 84 10 a1 04 or %g2, 0x104, %g2 200f5e8: c6 00 40 02 ld [ %g1 + %g2 ], %g3 200f5ec: 82 00 40 02 add %g1, %g2, %g1 200f5f0: 82 00 60 04 add %g1, 4, %g1 200f5f4: 80 a0 c0 01 cmp %g3, %g1 200f5f8: 02 bf ff ed be 200f5ac <_POSIX_signals_Clear_process_signals+0x34> 200f5fc: 05 00 80 73 sethi %hi(0x201cc00), %g2 if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); 200f600: 7f ff c9 e0 call 2001d80 <== NOT EXECUTED 200f604: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 200f608: 01 00 00 00 nop 0200f64c <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 200f64c: 9d e3 bf a0 save %sp, -96, %sp /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { 200f650: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 200f654: 05 04 00 20 sethi %hi(0x10008000), %g2 200f658: 88 06 7f ff add %i1, -1, %g4 200f65c: 9a 08 40 02 and %g1, %g2, %o5 200f660: 86 10 20 01 mov 1, %g3 200f664: 80 a3 40 02 cmp %o5, %g2 200f668: 89 28 c0 04 sll %g3, %g4, %g4 200f66c: 02 80 00 25 be 200f700 <_POSIX_signals_Unblock_thread+0xb4> 200f670: c4 06 21 6c ld [ %i0 + 0x16c ], %g2 } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { 200f674: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 200f678: 80 a9 00 02 andncc %g4, %g2, %g0 200f67c: 02 80 00 1f be 200f6f8 <_POSIX_signals_Unblock_thread+0xac> 200f680: 05 04 00 00 sethi %hi(0x10000000), %g2 * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { 200f684: 80 88 40 02 btst %g1, %g2 200f688: 02 80 00 11 be 200f6cc <_POSIX_signals_Unblock_thread+0x80> 200f68c: c6 2e 20 74 stb %g3, [ %i0 + 0x74 ] the_thread->Wait.return_code = EINTR; 200f690: 84 10 20 04 mov 4, %g2 #if 0 if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ 200f694: 80 88 60 08 btst 8, %g1 200f698: 02 80 00 18 be 200f6f8 <_POSIX_signals_Unblock_thread+0xac> 200f69c: c4 26 20 34 st %g2, [ %i0 + 0x34 ] if ( _Watchdog_Is_active( &the_thread->Timer ) ) 200f6a0: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200f6a4: 80 a0 60 02 cmp %g1, 2 200f6a8: 02 80 00 36 be 200f780 <_POSIX_signals_Unblock_thread+0x134> 200f6ac: 01 00 00 00 nop RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 200f6b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200f6b4: 13 04 00 ff sethi %hi(0x1003fc00), %o1 200f6b8: b0 10 20 00 clr %i0 200f6bc: 7f ff e0 d8 call 2007a1c <_Thread_Clear_state> 200f6c0: 92 12 63 f8 or %o1, 0x3f8, %o1 200f6c4: 81 c7 e0 08 ret 200f6c8: 81 e8 00 00 restore (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { 200f6cc: 80 a0 60 00 cmp %g1, 0 200f6d0: 12 80 00 0a bne 200f6f8 <_POSIX_signals_Unblock_thread+0xac> 200f6d4: 03 00 80 71 sethi %hi(0x201c400), %g1 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 200f6d8: c2 00 62 3c ld [ %g1 + 0x23c ], %g1 ! 201c63c <_ISR_Nest_level> 200f6dc: 80 a0 60 00 cmp %g1, 0 200f6e0: 02 80 00 06 be 200f6f8 <_POSIX_signals_Unblock_thread+0xac> 200f6e4: 03 00 80 71 sethi %hi(0x201c400), %g1 200f6e8: c2 00 62 60 ld [ %g1 + 0x260 ], %g1 ! 201c660 <_Thread_Executing> 200f6ec: 80 a6 00 01 cmp %i0, %g1 200f6f0: 02 80 00 21 be 200f774 <_POSIX_signals_Unblock_thread+0x128> 200f6f4: 03 00 80 71 sethi %hi(0x201c400), %g1 _ISR_Signals_to_thread_executing = true; } } return false; } 200f6f8: 81 c7 e0 08 ret 200f6fc: 91 e8 20 00 restore %g0, 0, %o0 * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 200f700: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 200f704: 80 89 00 01 btst %g4, %g1 200f708: 22 80 00 12 be,a 200f750 <_POSIX_signals_Unblock_thread+0x104> 200f70c: c2 00 a0 cc ld [ %g2 + 0xcc ], %g1 the_thread->Wait.return_code = EINTR; 200f710: 82 10 20 04 mov 4, %g1 200f714: c2 26 20 34 st %g1, [ %i0 + 0x34 ] the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { 200f718: 80 a6 a0 00 cmp %i2, 0 200f71c: 02 80 00 11 be 200f760 <_POSIX_signals_Unblock_thread+0x114> 200f720: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; } else { *the_info = *info; 200f724: c4 06 80 00 ld [ %i2 ], %g2 200f728: c4 20 40 00 st %g2, [ %g1 ] 200f72c: c4 06 a0 04 ld [ %i2 + 4 ], %g2 200f730: c4 20 60 04 st %g2, [ %g1 + 4 ] 200f734: c4 06 a0 08 ld [ %i2 + 8 ], %g2 200f738: c4 20 60 08 st %g2, [ %g1 + 8 ] } _Thread_queue_Extract_with_proxy( the_thread ); 200f73c: 90 10 00 18 mov %i0, %o0 200f740: 7f ff e3 e6 call 20086d8 <_Thread_queue_Extract_with_proxy> 200f744: b0 10 20 01 mov 1, %i0 return true; 200f748: 81 c7 e0 08 ret 200f74c: 81 e8 00 00 restore * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 200f750: 80 a9 00 01 andncc %g4, %g1, %g0 200f754: 12 bf ff f0 bne 200f714 <_POSIX_signals_Unblock_thread+0xc8> 200f758: 82 10 20 04 mov 4, %g1 200f75c: 30 bf ff e7 b,a 200f6f8 <_POSIX_signals_Unblock_thread+0xac> the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; the_info->si_code = SI_USER; 200f760: 84 10 20 01 mov 1, %g2 the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; 200f764: f2 20 40 00 st %i1, [ %g1 ] the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; 200f768: c0 20 60 08 clr [ %g1 + 8 ] the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; the_info->si_code = SI_USER; 200f76c: 10 bf ff f4 b 200f73c <_POSIX_signals_Unblock_thread+0xf0> 200f770: c4 20 60 04 st %g2, [ %g1 + 4 ] (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 200f774: c6 28 62 f8 stb %g3, [ %g1 + 0x2f8 ] 200f778: 81 c7 e0 08 ret 200f77c: 91 e8 20 00 restore %g0, 0, %o0 _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 200f780: 7f ff e6 d4 call 20092d0 <_Watchdog_Remove> 200f784: 90 06 20 48 add %i0, 0x48, %o0 200f788: 10 bf ff cb b 200f6b4 <_POSIX_signals_Unblock_thread+0x68> 200f78c: 90 10 00 18 mov %i0, %o0 0200780c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 200780c: 9d e3 bf a0 save %sp, -96, %sp */ /* * Save original state */ original_state = the_thread->current_state; 2007810: e2 06 20 10 ld [ %i0 + 0x10 ], %l1 /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); 2007814: 40 00 04 88 call 2008a34 <_Thread_Set_transient> 2007818: 90 10 00 18 mov %i0, %o0 /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 200781c: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2007820: 80 a0 40 19 cmp %g1, %i1 2007824: 02 80 00 05 be 2007838 <_Thread_Change_priority+0x2c> 2007828: a0 10 00 18 mov %i0, %l0 _Thread_Set_priority( the_thread, new_priority ); 200782c: 92 10 00 19 mov %i1, %o1 2007830: 40 00 04 05 call 2008844 <_Thread_Set_priority> 2007834: 90 10 00 18 mov %i0, %o0 _ISR_Disable( level ); 2007838: 7f ff e9 4e call 2001d70 200783c: 01 00 00 00 nop 2007840: b0 10 00 08 mov %o0, %i0 /* * If the thread has more than STATES_TRANSIENT set, then it is blocked, * If it is blocked on a thread queue, then we need to requeue it. */ state = the_thread->current_state; 2007844: e4 04 20 10 ld [ %l0 + 0x10 ], %l2 if ( state != STATES_TRANSIENT ) { 2007848: 80 a4 a0 04 cmp %l2, 4 200784c: 02 80 00 18 be 20078ac <_Thread_Change_priority+0xa0> 2007850: 80 8c 60 04 btst 4, %l1 /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 2007854: 02 80 00 0b be 2007880 <_Thread_Change_priority+0x74> 2007858: 82 0c bf fb and %l2, -5, %g1 the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 200785c: 7f ff e9 49 call 2001d80 <== NOT EXECUTED 2007860: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( _States_Is_waiting_on_thread_queue( state ) ) { 2007864: 03 00 00 ef sethi %hi(0x3bc00), %g1 <== NOT EXECUTED 2007868: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <== NOT EXECUTED 200786c: 80 8c 80 01 btst %l2, %g1 <== NOT EXECUTED 2007870: 32 80 00 0d bne,a 20078a4 <_Thread_Change_priority+0x98> <== NOT EXECUTED 2007874: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 <== NOT EXECUTED 2007878: 81 c7 e0 08 ret 200787c: 81 e8 00 00 restore */ state = the_thread->current_state; if ( state != STATES_TRANSIENT ) { /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 2007880: c2 24 20 10 st %g1, [ %l0 + 0x10 ] _ISR_Enable( level ); 2007884: 7f ff e9 3f call 2001d80 2007888: 90 10 00 18 mov %i0, %o0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 200788c: 03 00 00 ef sethi %hi(0x3bc00), %g1 2007890: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2007894: 80 8c 80 01 btst %l2, %g1 2007898: 02 bf ff f8 be 2007878 <_Thread_Change_priority+0x6c> 200789c: 01 00 00 00 nop _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 20078a0: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 20078a4: 40 00 03 b8 call 2008784 <_Thread_queue_Requeue> 20078a8: 93 e8 00 10 restore %g0, %l0, %o1 } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { 20078ac: 12 80 00 14 bne 20078fc <_Thread_Change_priority+0xf0> 20078b0: 23 00 80 71 sethi %hi(0x201c400), %l1 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 20078b4: c2 04 20 90 ld [ %l0 + 0x90 ], %g1 20078b8: c4 14 20 96 lduh [ %l0 + 0x96 ], %g2 20078bc: c6 10 40 00 lduh [ %g1 ], %g3 * Interrupts are STILL disabled. * We now know the thread will be in the READY state when we remove * the TRANSIENT state. So we have to place it on the appropriate * Ready Queue with interrupts off. */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 20078c0: c0 24 20 10 clr [ %l0 + 0x10 ] 20078c4: 84 10 c0 02 or %g3, %g2, %g2 20078c8: c4 30 40 00 sth %g2, [ %g1 ] _Priority_Major_bit_map |= the_priority_map->ready_major; 20078cc: c4 14 62 54 lduh [ %l1 + 0x254 ], %g2 20078d0: c2 14 20 94 lduh [ %l0 + 0x94 ], %g1 _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 20078d4: 80 8e a0 ff btst 0xff, %i2 20078d8: 82 10 80 01 or %g2, %g1, %g1 20078dc: c2 34 62 54 sth %g1, [ %l1 + 0x254 ] 20078e0: 02 80 00 48 be 2007a00 <_Thread_Change_priority+0x1f4> 20078e4: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 20078e8: c4 00 40 00 ld [ %g1 ], %g2 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 20078ec: c2 24 20 04 st %g1, [ %l0 + 4 ] before_node = after_node->next; after_node->next = the_node; 20078f0: e0 20 40 00 st %l0, [ %g1 ] the_node->next = before_node; before_node->previous = the_node; 20078f4: e0 20 a0 04 st %l0, [ %g2 + 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; 20078f8: c4 24 00 00 st %g2, [ %l0 ] _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); } _ISR_Flash( level ); 20078fc: 7f ff e9 21 call 2001d80 2007900: 90 10 00 18 mov %i0, %o0 2007904: 7f ff e9 1b call 2001d70 2007908: 01 00 00 00 nop RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); 200790c: c2 14 62 54 lduh [ %l1 + 0x254 ], %g1 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; 2007910: 05 00 80 71 sethi %hi(0x201c400), %g2 2007914: 83 28 60 10 sll %g1, 0x10, %g1 2007918: da 00 a0 f4 ld [ %g2 + 0xf4 ], %o5 200791c: 85 30 60 10 srl %g1, 0x10, %g2 2007920: 80 a0 a0 ff cmp %g2, 0xff 2007924: 08 80 00 27 bleu 20079c0 <_Thread_Change_priority+0x1b4> 2007928: 07 00 80 6b sethi %hi(0x201ac00), %g3 200792c: 83 30 60 18 srl %g1, 0x18, %g1 2007930: 86 10 e0 60 or %g3, 0x60, %g3 2007934: c4 08 c0 01 ldub [ %g3 + %g1 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2007938: 09 00 80 71 sethi %hi(0x201c400), %g4 200793c: 85 28 a0 10 sll %g2, 0x10, %g2 2007940: 88 11 22 d0 or %g4, 0x2d0, %g4 2007944: 83 30 a0 0f srl %g2, 0xf, %g1 2007948: c2 11 00 01 lduh [ %g4 + %g1 ], %g1 200794c: 83 28 60 10 sll %g1, 0x10, %g1 2007950: 89 30 60 10 srl %g1, 0x10, %g4 2007954: 80 a1 20 ff cmp %g4, 0xff 2007958: 18 80 00 28 bgu 20079f8 <_Thread_Change_priority+0x1ec> 200795c: 83 30 60 18 srl %g1, 0x18, %g1 2007960: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1 2007964: 82 00 60 08 add %g1, 8, %g1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 2007968: 85 30 a0 0c srl %g2, 0xc, %g2 200796c: 83 28 60 10 sll %g1, 0x10, %g1 2007970: 83 30 60 10 srl %g1, 0x10, %g1 2007974: 82 00 40 02 add %g1, %g2, %g1 2007978: 85 28 60 04 sll %g1, 4, %g2 200797c: 83 28 60 02 sll %g1, 2, %g1 2007980: 82 20 80 01 sub %g2, %g1, %g1 2007984: c2 03 40 01 ld [ %o5 + %g1 ], %g1 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 2007988: 05 00 80 71 sethi %hi(0x201c400), %g2 200798c: c4 00 a2 60 ld [ %g2 + 0x260 ], %g2 ! 201c660 <_Thread_Executing> * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 2007990: 07 00 80 71 sethi %hi(0x201c400), %g3 * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Thread_Calculate_heir(); if ( !_Thread_Is_executing_also_the_heir() && 2007994: 80 a0 40 02 cmp %g1, %g2 2007998: 02 80 00 08 be 20079b8 <_Thread_Change_priority+0x1ac> 200799c: c2 20 e2 30 st %g1, [ %g3 + 0x230 ] _Thread_Executing->is_preemptible ) 20079a0: c2 08 a0 75 ldub [ %g2 + 0x75 ], %g1 20079a4: 80 a0 60 00 cmp %g1, 0 20079a8: 02 80 00 04 be 20079b8 <_Thread_Change_priority+0x1ac> 20079ac: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 20079b0: 03 00 80 71 sethi %hi(0x201c400), %g1 20079b4: c4 28 62 70 stb %g2, [ %g1 + 0x270 ] ! 201c670 <_Context_Switch_necessary> _ISR_Enable( level ); 20079b8: 7f ff e8 f2 call 2001d80 20079bc: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); 20079c0: 86 10 e0 60 or %g3, 0x60, %g3 20079c4: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 20079c8: 09 00 80 71 sethi %hi(0x201c400), %g4 RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); 20079cc: 84 00 a0 08 add %g2, 8, %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 20079d0: 88 11 22 d0 or %g4, 0x2d0, %g4 20079d4: 85 28 a0 10 sll %g2, 0x10, %g2 20079d8: 83 30 a0 0f srl %g2, 0xf, %g1 20079dc: c2 11 00 01 lduh [ %g4 + %g1 ], %g1 20079e0: 83 28 60 10 sll %g1, 0x10, %g1 20079e4: 89 30 60 10 srl %g1, 0x10, %g4 20079e8: 80 a1 20 ff cmp %g4, 0xff 20079ec: 28 bf ff de bleu,a 2007964 <_Thread_Change_priority+0x158> 20079f0: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1 20079f4: 83 30 60 18 srl %g1, 0x18, %g1 20079f8: 10 bf ff dc b 2007968 <_Thread_Change_priority+0x15c> 20079fc: c2 08 c0 01 ldub [ %g3 + %g1 ], %g1 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2007a00: 84 00 60 04 add %g1, 4, %g2 2007a04: c4 24 00 00 st %g2, [ %l0 ] old_last_node = the_chain->last; 2007a08: c4 00 60 08 ld [ %g1 + 8 ], %g2 the_chain->last = the_node; 2007a0c: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2007a10: c4 24 20 04 st %g2, [ %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; 2007a14: 10 bf ff ba b 20078fc <_Thread_Change_priority+0xf0> 2007a18: e0 20 80 00 st %l0, [ %g2 ] 0200cee0 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 200cee0: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 200cee4: 03 00 80 71 sethi %hi(0x201c400), %g1 200cee8: e0 00 62 60 ld [ %g1 + 0x260 ], %l0 ! 201c660 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 200ceec: 7f ff d3 a1 call 2001d70 200cef0: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 200cef4: b0 10 00 08 mov %o0, %i0 if ( _Chain_Has_only_one_node( ready ) ) { 200cef8: c4 04 40 00 ld [ %l1 ], %g2 200cefc: c2 04 60 08 ld [ %l1 + 8 ], %g1 200cf00: 80 a0 80 01 cmp %g2, %g1 200cf04: 02 80 00 1f be 200cf80 <_Thread_Reset_timeslice+0xa0> 200cf08: 86 04 60 04 add %l1, 4, %g3 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 200cf0c: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 200cf10: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 200cf14: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 200cf18: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 200cf1c: c4 20 60 04 st %g2, [ %g1 + 4 ] ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 200cf20: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 200cf24: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 200cf28: 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; 200cf2c: e0 20 40 00 st %l0, [ %g1 ] return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 200cf30: 7f ff d3 94 call 2001d80 200cf34: 01 00 00 00 nop 200cf38: 7f ff d3 8e call 2001d70 200cf3c: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 200cf40: 03 00 80 71 sethi %hi(0x201c400), %g1 200cf44: c4 00 62 30 ld [ %g1 + 0x230 ], %g2 ! 201c630 <_Thread_Heir> 200cf48: 80 a4 00 02 cmp %l0, %g2 200cf4c: 02 80 00 06 be 200cf64 <_Thread_Reset_timeslice+0x84> 200cf50: 84 10 20 01 mov 1, %g2 _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; 200cf54: 03 00 80 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED 200cf58: c4 28 62 70 stb %g2, [ %g1 + 0x270 ] ! 201c670 <_Context_Switch_necessary> <== NOT EXECUTED _ISR_Enable( level ); 200cf5c: 7f ff d3 89 call 2001d80 <== NOT EXECUTED 200cf60: 81 e8 00 00 restore <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 200cf64: c4 04 40 00 ld [ %l1 ], %g2 200cf68: c4 20 62 30 st %g2, [ %g1 + 0x230 ] _Context_Switch_necessary = true; 200cf6c: 84 10 20 01 mov 1, %g2 200cf70: 03 00 80 71 sethi %hi(0x201c400), %g1 200cf74: c4 28 62 70 stb %g2, [ %g1 + 0x270 ] ! 201c670 <_Context_Switch_necessary> _ISR_Enable( level ); 200cf78: 7f ff d3 82 call 2001d80 200cf7c: 81 e8 00 00 restore executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { _ISR_Enable( level ); 200cf80: 7f ff d3 80 call 2001d80 200cf84: 81 e8 00 00 restore 200cf88: 01 00 00 00 nop 02008cbc <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 2008cbc: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 2008cc0: 03 00 80 71 sethi %hi(0x201c400), %g1 2008cc4: e0 00 62 60 ld [ %g1 + 0x260 ], %l0 ! 201c660 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 2008cc8: 7f ff e4 2a call 2001d70 2008ccc: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 2008cd0: b0 10 00 08 mov %o0, %i0 if ( !_Chain_Has_only_one_node( ready ) ) { 2008cd4: c4 04 40 00 ld [ %l1 ], %g2 2008cd8: c2 04 60 08 ld [ %l1 + 8 ], %g1 2008cdc: 80 a0 80 01 cmp %g2, %g1 2008ce0: 02 80 00 19 be 2008d44 <_Thread_Yield_processor+0x88> 2008ce4: 86 04 60 04 add %l1, 4, %g3 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 2008ce8: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 2008cec: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 2008cf0: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2008cf4: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 2008cf8: c4 20 60 04 st %g2, [ %g1 + 4 ] ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 2008cfc: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 2008d00: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2008d04: 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; 2008d08: e0 20 40 00 st %l0, [ %g1 ] _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 2008d0c: 7f ff e4 1d call 2001d80 2008d10: 01 00 00 00 nop 2008d14: 7f ff e4 17 call 2001d70 2008d18: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 2008d1c: 03 00 80 71 sethi %hi(0x201c400), %g1 2008d20: c4 00 62 30 ld [ %g1 + 0x230 ], %g2 ! 201c630 <_Thread_Heir> 2008d24: 80 a4 00 02 cmp %l0, %g2 2008d28: 22 80 00 0e be,a 2008d60 <_Thread_Yield_processor+0xa4> 2008d2c: c4 04 40 00 ld [ %l1 ], %g2 _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; 2008d30: 84 10 20 01 mov 1, %g2 2008d34: 03 00 80 71 sethi %hi(0x201c400), %g1 2008d38: c4 28 62 70 stb %g2, [ %g1 + 0x270 ] ! 201c670 <_Context_Switch_necessary> _ISR_Enable( level ); 2008d3c: 7f ff e4 11 call 2001d80 2008d40: 81 e8 00 00 restore if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 2008d44: 03 00 80 71 sethi %hi(0x201c400), %g1 2008d48: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 201c630 <_Thread_Heir> 2008d4c: 80 a4 00 01 cmp %l0, %g1 2008d50: 32 bf ff f9 bne,a 2008d34 <_Thread_Yield_processor+0x78> 2008d54: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED _Context_Switch_necessary = true; _ISR_Enable( level ); 2008d58: 7f ff e4 0a call 2001d80 2008d5c: 81 e8 00 00 restore _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 2008d60: 10 bf ff f4 b 2008d30 <_Thread_Yield_processor+0x74> 2008d64: c4 20 62 30 st %g2, [ %g1 + 0x230 ] 020084c8 <_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 ) { 20084c8: 9d e3 bf a0 save %sp, -96, %sp Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 20084cc: e0 06 60 14 ld [ %i1 + 0x14 ], %l0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 20084d0: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 20084d4: 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); 20084d8: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 20084dc: 82 06 60 38 add %i1, 0x38, %g1 20084e0: c2 26 60 40 st %g1, [ %i1 + 0x40 ] 20084e4: 2d 00 80 6e sethi %hi(0x201b800), %l6 header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 20084e8: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 20084ec: 80 8c 20 20 btst 0x20, %l0 _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 ]; 20084f0: ab 28 60 04 sll %g1, 4, %l5 20084f4: ac 15 a3 54 or %l6, 0x354, %l6 20084f8: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 20084fc: e8 06 20 38 ld [ %i0 + 0x38 ], %l4 _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 ]; 2008500: aa 25 40 01 sub %l5, %g1, %l5 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008504: 12 80 00 24 bne 2008594 <_Thread_queue_Enqueue_priority+0xcc> 2008508: aa 06 00 15 add %i0, %l5, %l5 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200850c: ac 05 60 04 add %l5, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2008510: 7f ff e6 18 call 2001d70 2008514: 01 00 00 00 nop 2008518: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 200851c: c2 05 40 00 ld [ %l5 ], %g1 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2008520: 80 a0 40 16 cmp %g1, %l6 2008524: 02 80 00 3a be 200860c <_Thread_queue_Enqueue_priority+0x144> 2008528: a2 10 00 01 mov %g1, %l1 search_priority = search_thread->current_priority; 200852c: e6 00 60 14 ld [ %g1 + 0x14 ], %l3 if ( priority <= search_priority ) 2008530: 80 a4 00 13 cmp %l0, %l3 2008534: 18 80 00 0b bgu 2008560 <_Thread_queue_Enqueue_priority+0x98> 2008538: 01 00 00 00 nop } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 200853c: 10 80 00 36 b 2008614 <_Thread_queue_Enqueue_priority+0x14c> 2008540: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 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 ) ) { 2008544: 80 a4 40 16 cmp %l1, %l6 2008548: 02 80 00 32 be 2008610 <_Thread_queue_Enqueue_priority+0x148> 200854c: 82 10 00 11 mov %l1, %g1 search_priority = search_thread->current_priority; 2008550: e6 04 60 14 ld [ %l1 + 0x14 ], %l3 if ( priority <= search_priority ) 2008554: 80 a4 00 13 cmp %l0, %l3 2008558: 28 80 00 2f bleu,a 2008614 <_Thread_queue_Enqueue_priority+0x14c> 200855c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 2008560: 7f ff e6 08 call 2001d80 2008564: 90 10 00 12 mov %l2, %o0 2008568: 7f ff e6 02 call 2001d70 200856c: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008570: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008574: 80 8d 00 01 btst %l4, %g1 2008578: 32 bf ff f3 bne,a 2008544 <_Thread_queue_Enqueue_priority+0x7c> 200857c: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 2008580: 7f ff e6 00 call 2001d80 <== NOT EXECUTED 2008584: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 2008588: 30 bf ff e2 b,a 2008510 <_Thread_queue_Enqueue_priority+0x48> <== NOT EXECUTED if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 200858c: 7f ff e5 fd call 2001d80 2008590: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 2008594: 7f ff e5 f7 call 2001d70 2008598: e6 0d 80 00 ldub [ %l6 ], %l3 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 200859c: a6 04 e0 01 inc %l3 _ISR_Disable( level ); 20085a0: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; 20085a4: c2 05 60 08 ld [ %l5 + 8 ], %g1 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 20085a8: 80 a0 40 15 cmp %g1, %l5 20085ac: 02 80 00 20 be 200862c <_Thread_queue_Enqueue_priority+0x164> 20085b0: a2 10 00 01 mov %g1, %l1 search_priority = search_thread->current_priority; 20085b4: e6 00 60 14 ld [ %g1 + 0x14 ], %l3 if ( priority >= search_priority ) 20085b8: 80 a4 00 13 cmp %l0, %l3 20085bc: 0a 80 00 0b bcs 20085e8 <_Thread_queue_Enqueue_priority+0x120> 20085c0: 01 00 00 00 nop } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 20085c4: 10 80 00 1b b 2008630 <_Thread_queue_Enqueue_priority+0x168> 20085c8: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 20085cc: 80 a4 40 15 cmp %l1, %l5 20085d0: 02 80 00 17 be 200862c <_Thread_queue_Enqueue_priority+0x164> 20085d4: 82 10 00 11 mov %l1, %g1 search_priority = search_thread->current_priority; 20085d8: e6 04 60 14 ld [ %l1 + 0x14 ], %l3 if ( priority >= search_priority ) 20085dc: 80 a4 00 13 cmp %l0, %l3 20085e0: 3a 80 00 14 bcc,a 2008630 <_Thread_queue_Enqueue_priority+0x168> 20085e4: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 20085e8: 7f ff e5 e6 call 2001d80 20085ec: 90 10 00 12 mov %l2, %o0 20085f0: 7f ff e5 e0 call 2001d70 20085f4: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 20085f8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 20085fc: 80 8d 00 01 btst %l4, %g1 2008600: 32 bf ff f3 bne,a 20085cc <_Thread_queue_Enqueue_priority+0x104> 2008604: e2 04 60 04 ld [ %l1 + 4 ], %l1 2008608: 30 bf ff e1 b,a 200858c <_Thread_queue_Enqueue_priority+0xc4> 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 ) ) { 200860c: a6 10 3f ff mov -1, %l3 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2008610: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 2008614: 80 a0 a0 01 cmp %g2, 1 2008618: 02 80 00 17 be 2008674 <_Thread_queue_Enqueue_priority+0x1ac> 200861c: 80 a4 00 13 cmp %l0, %l3 * 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; 2008620: e4 26 80 00 st %l2, [ %i2 ] return the_thread_queue->sync_state; } 2008624: 81 c7 e0 08 ret 2008628: 91 e8 00 02 restore %g0, %g2, %o0 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 200862c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 2008630: 80 a0 a0 01 cmp %g2, 1 2008634: 32 bf ff fc bne,a 2008624 <_Thread_queue_Enqueue_priority+0x15c> 2008638: e4 26 80 00 st %l2, [ %i2 ] THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 200863c: 80 a4 00 13 cmp %l0, %l3 2008640: 02 80 00 1a be 20086a8 <_Thread_queue_Enqueue_priority+0x1e0> 2008644: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2008648: c4 00 40 00 ld [ %g1 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 200864c: c2 26 60 04 st %g1, [ %i1 + 4 ] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 2008650: c4 26 40 00 st %g2, [ %i1 ] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 2008654: f0 26 60 44 st %i0, [ %i1 + 0x44 ] 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; 2008658: f2 20 40 00 st %i1, [ %g1 ] next_node->previous = the_node; 200865c: f2 20 a0 04 st %i1, [ %g2 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008660: b0 10 20 01 mov 1, %i0 2008664: 7f ff e5 c7 call 2001d80 2008668: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 200866c: 81 c7 e0 08 ret 2008670: 81 e8 00 00 restore THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 2008674: 02 80 00 0d be 20086a8 <_Thread_queue_Enqueue_priority+0x1e0> 2008678: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 200867c: c4 00 60 04 ld [ %g1 + 4 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2008680: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = previous_node; 2008684: 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; 2008688: 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; 200868c: f2 20 80 00 st %i1, [ %g2 ] search_node->previous = the_node; 2008690: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008694: b0 10 20 01 mov 1, %i0 2008698: 7f ff e5 ba call 2001d80 200869c: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 20086a0: 81 c7 e0 08 ret 20086a4: 81 e8 00 00 restore 20086a8: a2 04 60 3c add %l1, 0x3c, %l1 _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; 20086ac: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 20086b0: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 20086b4: 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; 20086b8: 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; 20086bc: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 20086c0: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 20086c4: b0 10 20 01 mov 1, %i0 20086c8: 7f ff e5 ae call 2001d80 20086cc: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 20086d0: 81 c7 e0 08 ret 20086d4: 81 e8 00 00 restore 02008784 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 2008784: 9d e3 bf 98 save %sp, -104, %sp /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) 2008788: 80 a6 20 00 cmp %i0, 0 200878c: 02 80 00 13 be 20087d8 <_Thread_queue_Requeue+0x54> 2008790: 01 00 00 00 nop /* * If queueing by FIFO, there is nothing to do. This only applies to * priority blocking discipline. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 2008794: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 2008798: 80 a4 60 01 cmp %l1, 1 200879c: 02 80 00 04 be 20087ac <_Thread_queue_Requeue+0x28> 20087a0: 01 00 00 00 nop 20087a4: 81 c7 e0 08 ret <== NOT EXECUTED 20087a8: 81 e8 00 00 restore <== NOT EXECUTED Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 20087ac: 7f ff e5 71 call 2001d70 20087b0: 01 00 00 00 nop 20087b4: a0 10 00 08 mov %o0, %l0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 20087b8: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 20087bc: 03 00 00 ef sethi %hi(0x3bc00), %g1 20087c0: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 20087c4: 80 88 80 01 btst %g2, %g1 20087c8: 12 80 00 06 bne 20087e0 <_Thread_queue_Requeue+0x5c> 20087cc: 90 10 00 18 mov %i0, %o0 _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); 20087d0: 7f ff e5 6c call 2001d80 20087d4: 90 10 00 10 mov %l0, %o0 20087d8: 81 c7 e0 08 ret 20087dc: 81 e8 00 00 restore ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); 20087e0: 92 10 00 19 mov %i1, %o1 20087e4: e2 26 20 30 st %l1, [ %i0 + 0x30 ] 20087e8: 40 00 11 1c call 200cc58 <_Thread_queue_Extract_priority_helper> 20087ec: 94 10 20 01 mov 1, %o2 (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 20087f0: 90 10 00 18 mov %i0, %o0 20087f4: 92 10 00 19 mov %i1, %o1 20087f8: 7f ff ff 34 call 20084c8 <_Thread_queue_Enqueue_priority> 20087fc: 94 07 bf fc add %fp, -4, %o2 2008800: 30 bf ff f4 b,a 20087d0 <_Thread_queue_Requeue+0x4c> 02015b60 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 2015b60: 9d e3 bf 88 save %sp, -120, %sp 2015b64: 2d 00 80 f3 sethi %hi(0x203cc00), %l6 2015b68: ba 07 bf f4 add %fp, -12, %i5 2015b6c: a8 07 bf f8 add %fp, -8, %l4 2015b70: a4 07 bf e8 add %fp, -24, %l2 2015b74: ae 07 bf ec add %fp, -20, %l7 2015b78: 2b 00 80 f2 sethi %hi(0x203c800), %l5 2015b7c: 39 00 80 f2 sethi %hi(0x203c800), %i4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2015b80: c0 27 bf f8 clr [ %fp + -8 ] 2015b84: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 2015b88: fa 27 bf fc st %i5, [ %fp + -4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2015b8c: e8 27 bf f4 st %l4, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2015b90: e4 27 bf f0 st %l2, [ %fp + -16 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2015b94: ee 27 bf e8 st %l7, [ %fp + -24 ] 2015b98: ac 15 a0 94 or %l6, 0x94, %l6 2015b9c: aa 15 63 d4 or %l5, 0x3d4, %l5 2015ba0: b8 17 23 40 or %i4, 0x340, %i4 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015ba4: a2 06 20 30 add %i0, 0x30, %l1 /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015ba8: a6 06 20 68 add %i0, 0x68, %l3 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2015bac: b2 06 20 08 add %i0, 8, %i1 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2015bb0: b4 06 20 40 add %i0, 0x40, %i2 _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; 2015bb4: b6 10 20 01 mov 1, %i3 { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; 2015bb8: fa 26 20 78 st %i5, [ %i0 + 0x78 ] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2015bbc: c2 05 80 00 ld [ %l6 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 2015bc0: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015bc4: 90 10 00 11 mov %l1, %o0 2015bc8: 92 20 40 09 sub %g1, %o1, %o1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2015bcc: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015bd0: 40 00 12 84 call 201a5e0 <_Watchdog_Adjust_to_chain> 2015bd4: 94 10 00 12 mov %l2, %o2 Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 2015bd8: d2 06 20 74 ld [ %i0 + 0x74 ], %o1 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2015bdc: e0 05 40 00 ld [ %l5 ], %l0 /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { 2015be0: 80 a4 00 09 cmp %l0, %o1 2015be4: 38 80 00 2f bgu,a 2015ca0 <_Timer_server_Body+0x140> 2015be8: 92 24 00 09 sub %l0, %o1, %o1 * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { 2015bec: 80 a4 00 09 cmp %l0, %o1 2015bf0: 0a 80 00 30 bcs 2015cb0 <_Timer_server_Body+0x150> 2015bf4: 94 22 40 10 sub %o1, %l0, %o2 */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 2015bf8: e0 26 20 74 st %l0, [ %i0 + 0x74 ] } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 2015bfc: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 2015c00: 40 00 02 b5 call 20166d4 <_Chain_Get> 2015c04: 01 00 00 00 nop if ( timer == NULL ) { 2015c08: 80 a2 20 00 cmp %o0, 0 2015c0c: 02 80 00 10 be 2015c4c <_Timer_server_Body+0xec> 2015c10: 01 00 00 00 nop static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 2015c14: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2015c18: 80 a0 60 01 cmp %g1, 1 2015c1c: 02 80 00 29 be 2015cc0 <_Timer_server_Body+0x160> 2015c20: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 2015c24: 12 bf ff f6 bne 2015bfc <_Timer_server_Body+0x9c> 2015c28: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 2015c2c: 40 00 12 a3 call 201a6b8 <_Watchdog_Insert> 2015c30: 90 10 00 13 mov %l3, %o0 } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 2015c34: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 2015c38: 40 00 02 a7 call 20166d4 <_Chain_Get> 2015c3c: 01 00 00 00 nop if ( timer == NULL ) { 2015c40: 80 a2 20 00 cmp %o0, 0 2015c44: 32 bf ff f5 bne,a 2015c18 <_Timer_server_Body+0xb8> 2015c48: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 2015c4c: 7f ff e3 a4 call 200eadc 2015c50: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 2015c54: c2 07 bf f4 ld [ %fp + -12 ], %g1 2015c58: 80 a5 00 01 cmp %l4, %g1 2015c5c: 02 80 00 1d be 2015cd0 <_Timer_server_Body+0x170> 2015c60: 01 00 00 00 nop ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 2015c64: 7f ff e3 a2 call 200eaec <== NOT EXECUTED 2015c68: 01 00 00 00 nop <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2015c6c: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 2015c70: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015c74: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2015c78: 92 20 40 09 sub %g1, %o1, %o1 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2015c7c: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015c80: 40 00 12 58 call 201a5e0 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED 2015c84: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 2015c88: d2 06 20 74 ld [ %i0 + 0x74 ], %o1 <== NOT EXECUTED static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2015c8c: e0 05 40 00 ld [ %l5 ], %l0 <== NOT EXECUTED /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { 2015c90: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED 2015c94: 08 bf ff d7 bleu 2015bf0 <_Timer_server_Body+0x90> <== NOT EXECUTED 2015c98: 01 00 00 00 nop <== NOT EXECUTED /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2015c9c: 92 24 00 09 sub %l0, %o1, %o1 <== NOT EXECUTED 2015ca0: 90 10 00 13 mov %l3, %o0 2015ca4: 40 00 12 4f call 201a5e0 <_Watchdog_Adjust_to_chain> 2015ca8: 94 10 00 12 mov %l2, %o2 2015cac: 30 bf ff d3 b,a 2015bf8 <_Timer_server_Body+0x98> /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 2015cb0: 90 10 00 13 mov %l3, %o0 2015cb4: 40 00 12 1b call 201a520 <_Watchdog_Adjust> 2015cb8: 92 10 20 01 mov 1, %o1 2015cbc: 30 bf ff cf b,a 2015bf8 <_Timer_server_Body+0x98> Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 2015cc0: 92 02 20 10 add %o0, 0x10, %o1 2015cc4: 40 00 12 7d call 201a6b8 <_Watchdog_Insert> 2015cc8: 90 10 00 11 mov %l1, %o0 2015ccc: 30 bf ff cc b,a 2015bfc <_Timer_server_Body+0x9c> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 2015cd0: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 2015cd4: 7f ff e3 86 call 200eaec 2015cd8: 01 00 00 00 nop _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { 2015cdc: c2 07 bf e8 ld [ %fp + -24 ], %g1 2015ce0: 80 a5 c0 01 cmp %l7, %g1 2015ce4: 12 80 00 0c bne 2015d14 <_Timer_server_Body+0x1b4> 2015ce8: 01 00 00 00 nop 2015cec: 30 80 00 13 b,a 2015d38 <_Timer_server_Body+0x1d8> * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 2015cf0: c0 24 20 08 clr [ %l0 + 8 ] Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 2015cf4: c2 27 bf e8 st %g1, [ %fp + -24 ] new_first->previous = _Chain_Head(the_chain); 2015cf8: e4 20 60 04 st %l2, [ %g1 + 4 ] _ISR_Enable( level ); 2015cfc: 7f ff e3 7c call 200eaec 2015d00: 01 00 00 00 nop /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); 2015d04: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 2015d08: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 2015d0c: 9f c0 40 00 call %g1 2015d10: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 2015d14: 7f ff e3 72 call 200eadc 2015d18: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2015d1c: e0 07 bf e8 ld [ %fp + -24 ], %l0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 2015d20: 80 a5 c0 10 cmp %l7, %l0 2015d24: 32 bf ff f3 bne,a 2015cf0 <_Timer_server_Body+0x190> 2015d28: c2 04 00 00 ld [ %l0 ], %g1 watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 2015d2c: 7f ff e3 70 call 200eaec 2015d30: 01 00 00 00 nop 2015d34: 30 bf ff a1 b,a 2015bb8 <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 2015d38: c0 2e 20 7c clrb [ %i0 + 0x7c ] 2015d3c: c2 07 00 00 ld [ %i4 ], %g1 2015d40: 82 00 60 01 inc %g1 2015d44: c2 27 00 00 st %g1, [ %i4 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 2015d48: d0 06 00 00 ld [ %i0 ], %o0 2015d4c: 40 00 0f 3d call 2019a40 <_Thread_Set_state> 2015d50: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 2015d54: 7f ff ff 59 call 2015ab8 <_Timer_server_Reset_interval_system_watchdog> 2015d58: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 2015d5c: 7f ff ff 6c call 2015b0c <_Timer_server_Reset_tod_system_watchdog> 2015d60: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 2015d64: 40 00 0c 3d call 2018e58 <_Thread_Enable_dispatch> 2015d68: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2015d6c: 90 10 00 19 mov %i1, %o0 _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; 2015d70: f6 2e 20 7c stb %i3, [ %i0 + 0x7c ] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2015d74: 40 00 12 be call 201a86c <_Watchdog_Remove> 2015d78: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2015d7c: 40 00 12 bc call 201a86c <_Watchdog_Remove> 2015d80: 90 10 00 1a mov %i2, %o0 2015d84: 30 bf ff 8d b,a 2015bb8 <_Timer_server_Body+0x58> 0200b378 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 200b378: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; _ISR_Disable( level ); 200b37c: 7f ff de 4a call 2002ca4 200b380: a0 10 00 18 mov %i0, %l0 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200b384: c2 06 00 00 ld [ %i0 ], %g1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200b388: a2 06 20 04 add %i0, 4, %l1 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 200b38c: 80 a0 40 11 cmp %g1, %l1 200b390: 02 80 00 1f be 200b40c <_Watchdog_Adjust+0x94> 200b394: 80 a6 60 00 cmp %i1, 0 switch ( direction ) { 200b398: 12 80 00 1f bne 200b414 <_Watchdog_Adjust+0x9c> 200b39c: 80 a6 60 01 cmp %i1, 1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200b3a0: 80 a6 a0 00 cmp %i2, 0 200b3a4: 02 80 00 1a be 200b40c <_Watchdog_Adjust+0x94> 200b3a8: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200b3ac: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200b3b0: 80 a6 80 19 cmp %i2, %i1 200b3b4: 1a 80 00 0b bcc 200b3e0 <_Watchdog_Adjust+0x68> 200b3b8: a4 10 20 01 mov 1, %l2 _Watchdog_First( header )->delta_interval -= units; 200b3bc: 10 80 00 1d b 200b430 <_Watchdog_Adjust+0xb8> <== NOT EXECUTED 200b3c0: b4 26 40 1a sub %i1, %i2, %i2 <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200b3c4: b4 a6 80 19 subcc %i2, %i1, %i2 200b3c8: 02 80 00 11 be 200b40c <_Watchdog_Adjust+0x94> 200b3cc: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200b3d0: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200b3d4: 80 a6 40 1a cmp %i1, %i2 200b3d8: 38 80 00 16 bgu,a 200b430 <_Watchdog_Adjust+0xb8> 200b3dc: b4 26 40 1a sub %i1, %i2, %i2 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 200b3e0: e4 20 60 10 st %l2, [ %g1 + 0x10 ] _ISR_Enable( level ); 200b3e4: 7f ff de 34 call 2002cb4 200b3e8: 01 00 00 00 nop _Watchdog_Tickle( header ); 200b3ec: 40 00 00 b6 call 200b6c4 <_Watchdog_Tickle> 200b3f0: 90 10 00 10 mov %l0, %o0 _ISR_Disable( level ); 200b3f4: 7f ff de 2c call 2002ca4 200b3f8: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200b3fc: c4 04 00 00 ld [ %l0 ], %g2 if ( _Chain_Is_empty( header ) ) 200b400: 80 a4 40 02 cmp %l1, %g2 200b404: 12 bf ff f0 bne 200b3c4 <_Watchdog_Adjust+0x4c> 200b408: 82 10 00 02 mov %g2, %g1 } break; } } _ISR_Enable( level ); 200b40c: 7f ff de 2a call 2002cb4 200b410: 91 e8 00 08 restore %g0, %o0, %o0 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 200b414: 12 bf ff fe bne 200b40c <_Watchdog_Adjust+0x94> 200b418: 01 00 00 00 nop case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 200b41c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200b420: b4 00 80 1a add %g2, %i2, %i2 200b424: f4 20 60 10 st %i2, [ %g1 + 0x10 ] } break; } } _ISR_Enable( level ); 200b428: 7f ff de 23 call 2002cb4 200b42c: 91 e8 00 08 restore %g0, %o0, %o0 break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; 200b430: 10 bf ff f7 b 200b40c <_Watchdog_Adjust+0x94> 200b434: f4 20 60 10 st %i2, [ %g1 + 0x10 ] 02019e1c <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 2019e1c: 9d e3 bf a0 save %sp, -96, %sp 2019e20: 40 00 07 15 call 201ba74 <_fini> 2019e24: 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(); 2019e28: 7f ff ff e2 call 2019db0 2019e2c: 01 00 00 00 nop rtems_shutdown_executive(status); 2019e30: 40 00 00 50 call 2019f70 2019e34: 90 10 00 18 mov %i0, %o0 2019e38: 30 80 00 00 b,a 2019e38 <_exit+0x1c> <== NOT EXECUTED 0203dc94 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 203dc94: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 203dc98: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 203dc9c: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 203dca0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 203dca4: 7f ff ff 69 call 203da48 <== NOT EXECUTED 203dca8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 203dcac: 01 00 00 00 nop 0200e010 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 200e010: 81 c3 e0 08 retl <== NOT EXECUTED 200e014: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 0200b08c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 200b08c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200b090: 7f ff ff e6 call 200b028 <== NOT EXECUTED 200b094: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200b098: 01 00 00 00 nop 02029e20 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 2029e20: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2029e24: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2029e28: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029e2c: 7f ff ff 52 call 2029b74 <== NOT EXECUTED 2029e30: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2029e34: 01 00 00 00 nop 0202a0f8 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 202a0f8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 202a0fc: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 202a100: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202a104: 7f ff ff b1 call 2029fc8 <== NOT EXECUTED 202a108: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202a10c: 01 00 00 00 nop 02019f3c <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 2019f3c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2019f40: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2019f44: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2019f48: 40 00 00 17 call 2019fa4 <== NOT EXECUTED 2019f4c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2019f50: 01 00 00 00 nop 0205df64 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 205df64: 9d e3 bf 60 save %sp, -160, %sp <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 205df68: 7f fe 9f ed call 2005f1c <== NOT EXECUTED 205df6c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 205df70: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 205df74: 32 80 01 1d bne,a 205e3e8 <_rename_r+0x484> <== NOT EXECUTED 205df78: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 205df7c: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 205df80: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 205df84: 02 80 00 13 be 205dfd0 <_rename_r+0x6c> <== NOT EXECUTED 205df88: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 205df8c: 02 80 00 11 be 205dfd0 <_rename_r+0x6c> <== NOT EXECUTED 205df90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205df94: 02 80 00 10 be 205dfd4 <_rename_r+0x70> <== NOT EXECUTED 205df98: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 205df9c: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 205dfa0: a2 10 20 00 clr %l1 <== NOT EXECUTED 205dfa4: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 205dfa8: c4 27 bf d4 st %g2, [ %fp + -44 ] <== NOT EXECUTED 205dfac: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 205dfb0: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 205dfb4: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 205dfb8: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 205dfbc: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 205dfc0: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 205dfc4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 205dfc8: 10 80 00 0f b 205e004 <_rename_r+0xa0> <== NOT EXECUTED 205dfcc: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED 205dfd0: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 205dfd4: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 205dfd8: a2 10 20 00 clr %l1 <== NOT EXECUTED 205dfdc: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 205dfe0: c4 27 bf d4 st %g2, [ %fp + -44 ] <== NOT EXECUTED 205dfe4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED 205dfe8: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 205dfec: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 205dff0: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 205dff4: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED 205dff8: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 205dffc: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 205e000: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205e004: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; 205e008: b2 06 40 10 add %i1, %l0, %i1 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205e00c: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED 205e010: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; 205e014: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205e018: c2 27 bf ec st %g1, [ %fp + -20 ] <== NOT EXECUTED 205e01c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 205e020: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205e024: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED 205e028: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 205e02c: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 205e030: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED 205e034: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 205e038: 7f ff b4 22 call 204b0c0 <== NOT EXECUTED 205e03c: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED 205e040: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 205e044: 7f fe 9f 97 call 2005ea0 <== NOT EXECUTED 205e048: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e04c: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 205e050: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 205e054: 7f ff b4 1b call 204b0c0 <== NOT EXECUTED 205e058: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e05c: 94 10 20 00 clr %o2 <== NOT EXECUTED 205e060: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 205e064: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 205e068: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e06c: 7f fe 9f cc call 2005f9c <== NOT EXECUTED 205e070: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 205e074: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED 205e078: 12 80 00 87 bne 205e294 <_rename_r+0x330> <== NOT EXECUTED 205e07c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 205e080: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED 205e084: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 205e088: 02 80 00 13 be 205e0d4 <_rename_r+0x170> <== NOT EXECUTED 205e08c: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 205e090: 02 80 00 11 be 205e0d4 <_rename_r+0x170> <== NOT EXECUTED 205e094: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e098: 02 80 00 10 be 205e0d8 <_rename_r+0x174> <== NOT EXECUTED 205e09c: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 205e0a0: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 205e0a4: 90 10 20 00 clr %o0 <== NOT EXECUTED 205e0a8: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 205e0ac: c4 27 bf c0 st %g2, [ %fp + -64 ] <== NOT EXECUTED 205e0b0: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 205e0b4: c4 27 bf c4 st %g2, [ %fp + -60 ] <== NOT EXECUTED 205e0b8: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 205e0bc: c4 27 bf c8 st %g2, [ %fp + -56 ] <== NOT EXECUTED 205e0c0: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 205e0c4: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED 205e0c8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 205e0cc: 10 80 00 0f b 205e108 <_rename_r+0x1a4> <== NOT EXECUTED 205e0d0: c2 27 bf d0 st %g1, [ %fp + -48 ] <== NOT EXECUTED 205e0d4: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 205e0d8: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 205e0dc: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 205e0e0: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 205e0e4: c4 27 bf c0 st %g2, [ %fp + -64 ] <== NOT EXECUTED 205e0e8: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED 205e0ec: c4 27 bf c4 st %g2, [ %fp + -60 ] <== NOT EXECUTED 205e0f0: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 205e0f4: c4 27 bf c8 st %g2, [ %fp + -56 ] <== NOT EXECUTED 205e0f8: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED 205e0fc: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED 205e100: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 205e104: c2 27 bf d0 st %g1, [ %fp + -48 ] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 205e108: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e10c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 205e110: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e114: 02 80 00 98 be 205e374 <_rename_r+0x410> <== NOT EXECUTED 205e118: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); 205e11c: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 205e120: b4 07 bf c0 add %fp, -64, %i2 <== NOT EXECUTED 205e124: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e128: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED if ( result != 0 ) { 205e12c: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED 205e130: 12 80 00 69 bne 205e2d4 <_rename_r+0x370> <== NOT EXECUTED 205e134: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED /* * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { 205e138: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED 205e13c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 205e140: 12 80 00 2e bne 205e1f8 <_rename_r+0x294> <== NOT EXECUTED 205e144: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { 205e148: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 205e14c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e150: 02 80 00 83 be 205e35c <_rename_r+0x3f8> <== NOT EXECUTED 205e154: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 205e158: b2 07 bf d4 add %fp, -44, %i1 <== NOT EXECUTED 205e15c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 205e160: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e164: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e168: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 205e16c: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e170: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e174: 02 80 00 08 be 205e194 <_rename_r+0x230> <== NOT EXECUTED 205e178: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 205e17c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e180: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e184: 02 80 00 05 be 205e198 <_rename_r+0x234> <== NOT EXECUTED 205e188: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e18c: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e190: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e194: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e198: 02 80 00 0d be 205e1cc <_rename_r+0x268> <== NOT EXECUTED 205e19c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e1a0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e1a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e1a8: 22 80 00 09 be,a 205e1cc <_rename_r+0x268> <== NOT EXECUTED 205e1ac: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e1b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e1b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e1b8: 22 80 00 05 be,a 205e1cc <_rename_r+0x268> <== NOT EXECUTED 205e1bc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e1c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e1c4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e1c8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e1cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e1d0: 02 80 00 8f be 205e40c <_rename_r+0x4a8> <== NOT EXECUTED 205e1d4: 01 00 00 00 nop <== NOT EXECUTED 205e1d8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e1dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e1e0: 02 80 00 8b be 205e40c <_rename_r+0x4a8> <== NOT EXECUTED 205e1e4: 01 00 00 00 nop <== NOT EXECUTED 205e1e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e1ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 205e1f0: 81 c7 e0 08 ret <== NOT EXECUTED 205e1f4: 81 e8 00 00 restore <== NOT EXECUTED * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { rtems_filesystem_freenode( &new_parent_loc ); 205e1f8: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e1fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e200: 02 80 00 09 be 205e224 <_rename_r+0x2c0> <== NOT EXECUTED 205e204: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e208: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e20c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e210: 02 80 00 05 be 205e224 <_rename_r+0x2c0> <== NOT EXECUTED 205e214: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e218: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e21c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e220: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e224: 02 80 00 0d be 205e258 <_rename_r+0x2f4> <== NOT EXECUTED 205e228: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e22c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e230: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e234: 22 80 00 09 be,a 205e258 <_rename_r+0x2f4> <== NOT EXECUTED 205e238: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e23c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e240: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e244: 22 80 00 05 be,a 205e258 <_rename_r+0x2f4> <== NOT EXECUTED 205e248: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e24c: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e250: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e254: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e258: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e25c: 02 80 00 08 be 205e27c <_rename_r+0x318> <== NOT EXECUTED 205e260: 01 00 00 00 nop <== NOT EXECUTED 205e264: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e268: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e26c: 02 80 00 04 be 205e27c <_rename_r+0x318> <== NOT EXECUTED 205e270: 01 00 00 00 nop <== NOT EXECUTED 205e274: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e278: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 205e27c: 7f ff 98 52 call 20443c4 <__errno> <== NOT EXECUTED 205e280: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205e284: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED 205e288: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205e28c: 81 c7 e0 08 ret <== NOT EXECUTED 205e290: 81 e8 00 00 restore <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) 205e294: 02 80 00 0b be 205e2c0 <_rename_r+0x35c> <== NOT EXECUTED 205e298: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e29c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e2a0: 02 80 00 08 be 205e2c0 <_rename_r+0x35c> <== NOT EXECUTED 205e2a4: 01 00 00 00 nop <== NOT EXECUTED 205e2a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e2ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e2b0: 02 80 00 04 be 205e2c0 <_rename_r+0x35c> <== NOT EXECUTED 205e2b4: 01 00 00 00 nop <== NOT EXECUTED 205e2b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e2bc: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( result ); 205e2c0: 7f ff 98 41 call 20443c4 <__errno> <== NOT EXECUTED 205e2c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205e2c8: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED 205e2cc: 81 c7 e0 08 ret <== NOT EXECUTED 205e2d0: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); 205e2d4: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e2d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e2dc: 02 80 00 09 be 205e300 <_rename_r+0x39c> <== NOT EXECUTED 205e2e0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e2e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e2e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e2ec: 02 80 00 05 be 205e300 <_rename_r+0x39c> <== NOT EXECUTED 205e2f0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e2f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e2f8: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e2fc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e300: 02 80 00 0d be 205e334 <_rename_r+0x3d0> <== NOT EXECUTED 205e304: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e308: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e30c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e310: 22 80 00 09 be,a 205e334 <_rename_r+0x3d0> <== NOT EXECUTED 205e314: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e318: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e31c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e320: 22 80 00 05 be,a 205e334 <_rename_r+0x3d0> <== NOT EXECUTED 205e324: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e328: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e32c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e330: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e338: 02 bf ff e2 be 205e2c0 <_rename_r+0x35c> <== NOT EXECUTED 205e33c: 01 00 00 00 nop <== NOT EXECUTED 205e340: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e344: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e348: 02 bf ff de be 205e2c0 <_rename_r+0x35c> <== NOT EXECUTED 205e34c: 01 00 00 00 nop <== NOT EXECUTED 205e350: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e354: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 205e358: 30 bf ff da b,a 205e2c0 <_rename_r+0x35c> <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); 205e35c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 205e360: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e364: 02 80 00 05 be 205e378 <_rename_r+0x414> <== NOT EXECUTED 205e368: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e36c: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e370: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e374: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e378: 02 80 00 0d be 205e3ac <_rename_r+0x448> <== NOT EXECUTED 205e37c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e380: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e384: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e388: 22 80 00 09 be,a 205e3ac <_rename_r+0x448> <== NOT EXECUTED 205e38c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e390: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e394: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e398: 22 80 00 05 be,a 205e3ac <_rename_r+0x448> <== NOT EXECUTED 205e39c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e3a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e3a4: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e3a8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e3ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e3b0: 02 80 00 08 be 205e3d0 <_rename_r+0x46c> <== NOT EXECUTED 205e3b4: 01 00 00 00 nop <== NOT EXECUTED 205e3b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e3bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e3c0: 02 80 00 04 be 205e3d0 <_rename_r+0x46c> <== NOT EXECUTED 205e3c4: 01 00 00 00 nop <== NOT EXECUTED 205e3c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e3cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 205e3d0: 7f ff 97 fd call 20443c4 <__errno> <== NOT EXECUTED 205e3d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205e3d8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 205e3dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205e3e0: 81 c7 e0 08 ret <== NOT EXECUTED 205e3e4: 81 e8 00 00 restore <== NOT EXECUTED old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 205e3e8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 205e3ec: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 205e3f0: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 205e3f4: 98 10 20 00 clr %o4 <== NOT EXECUTED 205e3f8: 7f fe 9f 2a call 20060a0 <== NOT EXECUTED 205e3fc: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 205e400: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 205e404: 02 bf ff 00 be 205e004 <_rename_r+0xa0> <== NOT EXECUTED 205e408: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } 205e40c: 81 c7 e0 08 ret <== NOT EXECUTED 205e410: 81 e8 00 00 restore <== NOT EXECUTED 02007c2c <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2007c2c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2007c30: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2007c34: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2007c38: 7f ff ff b1 call 2007afc <== NOT EXECUTED 2007c3c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2007c40: 01 00 00 00 nop 0200f22c <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200f22c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200f230: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200f234: 7f ff ff 43 call 200ef40 <== NOT EXECUTED 200f238: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200f23c: 01 00 00 00 nop 0202865c : #include int chdir( const char *pathname ) { 202865c: 9d e3 bf 88 save %sp, -120, %sp /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 2028660: 40 00 8a 98 call 204b0c0 2028664: 90 10 00 18 mov %i0, %o0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2028668: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 202866c: 92 10 00 08 mov %o0, %o1 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2028670: 94 10 20 01 mov 1, %o2 2028674: 90 10 00 18 mov %i0, %o0 2028678: 96 10 00 10 mov %l0, %o3 202867c: 98 10 20 01 mov 1, %o4 2028680: 7f ff 76 88 call 20060a0 2028684: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 2028688: 80 a2 20 00 cmp %o0, 0 202868c: 12 80 00 31 bne 2028750 2028690: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 2028694: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2028698: 80 a0 60 00 cmp %g1, 0 202869c: 22 80 00 2f be,a 2028758 20286a0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 20286a4: 9f c0 40 00 call %g1 20286a8: 90 10 00 10 mov %l0, %o0 20286ac: 80 a2 20 01 cmp %o0, 1 20286b0: 12 80 00 1b bne 202871c 20286b4: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 20286b8: 21 00 81 a6 sethi %hi(0x2069800), %l0 20286bc: d0 04 20 f4 ld [ %l0 + 0xf4 ], %o0 ! 20698f4 20286c0: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 20286c4: 80 a0 60 00 cmp %g1, 0 20286c8: 22 80 00 0a be,a 20286f0 20286cc: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20286d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20286d4: 80 a0 60 00 cmp %g1, 0 20286d8: 22 80 00 06 be,a 20286f0 20286dc: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20286e0: 9f c0 40 00 call %g1 20286e4: 90 02 20 04 add %o0, 4, %o0 20286e8: d0 04 20 f4 ld [ %l0 + 0xf4 ], %o0 rtems_filesystem_current = loc; 20286ec: c2 07 bf ec ld [ %fp + -20 ], %g1 20286f0: c2 22 20 04 st %g1, [ %o0 + 4 ] 20286f4: c2 07 bf f0 ld [ %fp + -16 ], %g1 20286f8: c2 22 20 08 st %g1, [ %o0 + 8 ] 20286fc: c2 07 bf f4 ld [ %fp + -12 ], %g1 2028700: c2 22 20 0c st %g1, [ %o0 + 0xc ] 2028704: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028708: c2 22 20 10 st %g1, [ %o0 + 0x10 ] 202870c: c2 07 bf fc ld [ %fp + -4 ], %g1 2028710: c2 22 20 14 st %g1, [ %o0 + 0x14 ] return 0; } 2028714: 81 c7 e0 08 ret 2028718: 91 e8 20 00 restore %g0, 0, %o0 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 202871c: 80 a0 60 00 cmp %g1, 0 2028720: 02 80 00 08 be 2028740 2028724: 01 00 00 00 nop 2028728: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202872c: 80 a0 60 00 cmp %g1, 0 2028730: 02 80 00 04 be 2028740 2028734: 01 00 00 00 nop 2028738: 9f c0 40 00 call %g1 202873c: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2028740: 40 00 6f 21 call 20443c4 <__errno> 2028744: b0 10 3f ff mov -1, %i0 2028748: 82 10 20 14 mov 0x14, %g1 202874c: c2 22 00 00 st %g1, [ %o0 ] 2028750: 81 c7 e0 08 ret 2028754: 81 e8 00 00 restore /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 2028758: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202875c: 02 80 00 04 be 202876c <== NOT EXECUTED 2028760: 01 00 00 00 nop <== NOT EXECUTED 2028764: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028768: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202876c: 40 00 6f 16 call 20443c4 <__errno> <== NOT EXECUTED 2028770: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028774: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028778: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202877c: 81 c7 e0 08 ret <== NOT EXECUTED 2028780: 81 e8 00 00 restore <== NOT EXECUTED 02005cd4 : int chmod( const char *path, mode_t mode ) { 2005cd4: 9d e3 bf 88 save %sp, -120, %sp int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); 2005cd8: 40 01 14 fa call 204b0c0 2005cdc: 90 10 00 18 mov %i0, %o0 2005ce0: a0 07 bf ec add %fp, -20, %l0 2005ce4: 92 10 00 08 mov %o0, %o1 2005ce8: 94 10 20 00 clr %o2 2005cec: 90 10 00 18 mov %i0, %o0 2005cf0: 96 10 00 10 mov %l0, %o3 2005cf4: 98 10 20 01 mov 1, %o4 2005cf8: 40 00 00 ea call 20060a0 2005cfc: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 2005d00: 80 a2 20 00 cmp %o0, 0 2005d04: 12 80 00 16 bne 2005d5c 2005d08: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 2005d0c: 80 a0 60 00 cmp %g1, 0 2005d10: 22 80 00 25 be,a 2005da4 2005d14: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 2005d18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2005d1c: 80 a0 60 00 cmp %g1, 0 2005d20: 02 80 00 11 be 2005d64 2005d24: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 2005d28: 90 10 00 10 mov %l0, %o0 2005d2c: 9f c0 40 00 call %g1 2005d30: 93 32 60 10 srl %o1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 2005d34: c2 07 bf f8 ld [ %fp + -8 ], %g1 2005d38: 80 a0 60 00 cmp %g1, 0 2005d3c: 02 80 00 08 be 2005d5c 2005d40: b0 10 00 08 mov %o0, %i0 2005d44: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2005d48: 80 a0 60 00 cmp %g1, 0 2005d4c: 02 80 00 23 be 2005dd8 2005d50: 01 00 00 00 nop 2005d54: 9f c0 40 00 call %g1 2005d58: 90 10 00 10 mov %l0, %o0 return result; } 2005d5c: 81 c7 e0 08 ret 2005d60: 81 e8 00 00 restore rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 2005d64: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2005d68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005d6c: 02 80 00 08 be 2005d8c <== NOT EXECUTED 2005d70: 01 00 00 00 nop <== NOT EXECUTED 2005d74: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005d78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005d7c: 02 80 00 04 be 2005d8c <== NOT EXECUTED 2005d80: 01 00 00 00 nop <== NOT EXECUTED 2005d84: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005d88: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005d8c: 40 00 f9 8e call 20443c4 <__errno> <== NOT EXECUTED 2005d90: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005d94: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2005d98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005d9c: 81 c7 e0 08 ret <== NOT EXECUTED 2005da0: 81 e8 00 00 restore <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 2005da4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005da8: 02 80 00 08 be 2005dc8 <== NOT EXECUTED 2005dac: 01 00 00 00 nop <== NOT EXECUTED 2005db0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005db4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005db8: 02 80 00 04 be 2005dc8 <== NOT EXECUTED 2005dbc: 01 00 00 00 nop <== NOT EXECUTED 2005dc0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005dc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2005dc8: 40 00 f9 7f call 20443c4 <__errno> <== NOT EXECUTED 2005dcc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005dd0: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2005dd4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005dd8: 81 c7 e0 08 ret <== NOT EXECUTED 2005ddc: 81 e8 00 00 restore <== NOT EXECUTED 02028784 : int chown( const char *path, uid_t owner, gid_t group ) { 2028784: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 2028788: 40 00 8a 4e call 204b0c0 202878c: 90 10 00 18 mov %i0, %o0 2028790: a0 07 bf ec add %fp, -20, %l0 2028794: 92 10 00 08 mov %o0, %o1 2028798: 94 10 20 00 clr %o2 202879c: 90 10 00 18 mov %i0, %o0 20287a0: 96 10 00 10 mov %l0, %o3 20287a4: 98 10 20 01 mov 1, %o4 20287a8: 7f ff 76 3e call 20060a0 20287ac: b0 10 3f ff mov -1, %i0 20287b0: 80 a2 20 00 cmp %o0, 0 20287b4: 12 80 00 15 bne 2028808 20287b8: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 20287bc: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 20287c0: 80 a0 60 00 cmp %g1, 0 20287c4: 02 80 00 13 be 2028810 20287c8: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 20287cc: 95 2e a0 10 sll %i2, 0x10, %o2 20287d0: 93 32 60 10 srl %o1, 0x10, %o1 20287d4: 95 32 a0 10 srl %o2, 0x10, %o2 20287d8: 9f c0 40 00 call %g1 20287dc: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 20287e0: c2 07 bf f8 ld [ %fp + -8 ], %g1 20287e4: 80 a0 60 00 cmp %g1, 0 20287e8: 02 80 00 08 be 2028808 20287ec: b0 10 00 08 mov %o0, %i0 20287f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20287f4: 80 a0 60 00 cmp %g1, 0 20287f8: 02 80 00 10 be 2028838 20287fc: 01 00 00 00 nop 2028800: 9f c0 40 00 call %g1 2028804: 90 10 00 10 mov %l0, %o0 return result; } 2028808: 81 c7 e0 08 ret 202880c: 81 e8 00 00 restore if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 2028810: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2028814: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028818: 02 80 00 04 be 2028828 <== NOT EXECUTED 202881c: 01 00 00 00 nop <== NOT EXECUTED 2028820: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028824: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028828: 40 00 6e e7 call 20443c4 <__errno> <== NOT EXECUTED 202882c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028830: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028834: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028838: 81 c7 e0 08 ret <== NOT EXECUTED 202883c: 81 e8 00 00 restore <== NOT EXECUTED 02028840 : #include int chroot( const char *pathname ) { 2028840: 9d e3 bf 88 save %sp, -120, %sp 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) { 2028844: 21 00 81 a6 sethi %hi(0x2069800), %l0 2028848: e2 04 20 f4 ld [ %l0 + 0xf4 ], %l1 ! 20698f4 202884c: 03 00 81 b5 sethi %hi(0x206d400), %g1 2028850: 82 10 63 b0 or %g1, 0x3b0, %g1 ! 206d7b0 2028854: 80 a4 40 01 cmp %l1, %g1 2028858: 02 80 00 28 be 20288f8 202885c: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); 2028860: 7f ff ff 7f call 202865c 2028864: 90 10 00 18 mov %i0, %o0 if (result) { 2028868: 80 a2 20 00 cmp %o0, 0 202886c: 12 80 00 2f bne 2028928 2028870: 11 00 81 83 sethi %hi(0x2060c00), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2028874: 92 10 20 01 mov 1, %o1 2028878: 90 12 20 30 or %o0, 0x30, %o0 202887c: 94 10 20 00 clr %o2 2028880: 96 07 bf ec add %fp, -20, %o3 2028884: 7f ff 76 07 call 20060a0 2028888: 98 10 20 00 clr %o4 202888c: 80 a2 20 00 cmp %o0, 0 2028890: 12 80 00 26 bne 2028928 2028894: d0 04 20 f4 ld [ %l0 + 0xf4 ], %o0 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); } rtems_filesystem_freenode(&rtems_filesystem_root); 2028898: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 202889c: 80 a0 60 00 cmp %g1, 0 20288a0: 22 80 00 0b be,a 20288cc 20288a4: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20288a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20288ac: 80 a0 60 00 cmp %g1, 0 20288b0: 22 80 00 07 be,a 20288cc 20288b4: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20288b8: 9f c0 40 00 call %g1 20288bc: 90 02 20 18 add %o0, 0x18, %o0 20288c0: 03 00 81 a6 sethi %hi(0x2069800), %g1 20288c4: d0 00 60 f4 ld [ %g1 + 0xf4 ], %o0 ! 20698f4 rtems_filesystem_root = loc; 20288c8: c2 07 bf ec ld [ %fp + -20 ], %g1 20288cc: c2 22 20 18 st %g1, [ %o0 + 0x18 ] 20288d0: c2 07 bf f0 ld [ %fp + -16 ], %g1 20288d4: c2 22 20 1c st %g1, [ %o0 + 0x1c ] 20288d8: c2 07 bf f4 ld [ %fp + -12 ], %g1 20288dc: c2 22 20 20 st %g1, [ %o0 + 0x20 ] 20288e0: c2 07 bf f8 ld [ %fp + -8 ], %g1 20288e4: c2 22 20 24 st %g1, [ %o0 + 0x24 ] 20288e8: c2 07 bf fc ld [ %fp + -4 ], %g1 20288ec: c2 22 20 28 st %g1, [ %o0 + 0x28 ] return 0; } 20288f0: 81 c7 e0 08 ret 20288f4: 91 e8 20 00 restore %g0, 0, %o0 int result; rtems_filesystem_location_info_t loc; /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ 20288f8: 40 00 06 d5 call 202a44c 20288fc: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 2028900: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 2028904: 80 a0 40 11 cmp %g1, %l1 2028908: 12 bf ff d6 bne 2028860 202890c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028910: 40 00 6e ad call 20443c4 <__errno> <== NOT EXECUTED 2028914: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2028918: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202891c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028920: 81 c7 e0 08 ret <== NOT EXECUTED 2028924: 81 e8 00 00 restore <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 2028928: 40 00 6e a7 call 20443c4 <__errno> <== NOT EXECUTED 202892c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028930: 40 00 6e a5 call 20443c4 <__errno> <== NOT EXECUTED 2028934: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2028938: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202893c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2028940: 81 c7 e0 08 ret <== NOT EXECUTED 2028944: 81 e8 00 00 restore <== NOT EXECUTED 02009bd4 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 2009bd4: 9d e3 bf 90 save %sp, -112, %sp rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2009bd8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 2009bdc: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 2009be0: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 2009be4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2009be8: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2009bec: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 2009bf0: 94 07 bf f4 add %fp, -12, %o2 2009bf4: 40 00 05 a6 call 200b28c 2009bf8: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 2009bfc: 80 a2 20 00 cmp %o0, 0 2009c00: 12 80 00 04 bne 2009c10 2009c04: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 2009c08: 81 c7 e0 08 ret 2009c0c: 81 e8 00 00 restore np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 2009c10: 40 00 00 3f call 2009d0c <== NOT EXECUTED 2009c14: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 2009c18: 81 c7 e0 08 ret <== NOT EXECUTED 2009c1c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02009c2c : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 2009c2c: 9d e3 bf a0 save %sp, -96, %sp assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 2009c30: e0 06 c0 00 ld [ %i3 ], %l0 if (!device_name_table) 2009c34: 80 a4 20 00 cmp %l0, 0 2009c38: 02 80 00 2f be 2009cf4 2009c3c: 03 00 80 42 sethi %hi(0x2010800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009c40: e6 00 62 a8 ld [ %g1 + 0x2a8 ], %l3 ! 2010aa8 } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 2009c44: a2 10 20 00 clr %l1 for (i = 0; i < rtems_device_table_size; i++) { 2009c48: 80 a4 e0 00 cmp %l3, 0 2009c4c: 02 80 00 18 be 2009cac 2009c50: 82 10 20 00 clr %g1 if (!device_name_table[i].device_name) 2009c54: 85 28 60 04 sll %g1, 4, %g2 2009c58: a9 28 60 02 sll %g1, 2, %l4 2009c5c: a8 05 00 02 add %l4, %g2, %l4 2009c60: e4 04 00 14 ld [ %l0 + %l4 ], %l2 /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009c64: a2 04 60 01 inc %l1 if (!device_name_table[i].device_name) 2009c68: 80 a4 a0 00 cmp %l2, 0 2009c6c: 02 80 00 0d be 2009ca0 2009c70: a8 04 00 14 add %l0, %l4, %l4 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 2009c74: 90 10 00 18 mov %i0, %o0 2009c78: 92 10 00 12 mov %l2, %o1 2009c7c: 40 00 10 62 call 200de04 2009c80: 94 10 00 19 mov %i1, %o2 2009c84: 80 a2 20 00 cmp %o0, 0 2009c88: 12 80 00 07 bne 2009ca4 2009c8c: 80 a4 c0 11 cmp %l3, %l1 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 2009c90: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 2009c94: 80 a0 60 00 cmp %g1, 0 2009c98: 02 80 00 0b be 2009cc4 2009c9c: 03 00 80 43 sethi %hi(0x2010c00), %g1 /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009ca0: 80 a4 c0 11 cmp %l3, %l1 2009ca4: 18 bf ff ec bgu 2009c54 2009ca8: 82 10 00 11 mov %l1, %g1 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 2009cac: 40 00 0c b6 call 200cf84 <__errno> 2009cb0: b0 10 3f ff mov -1, %i0 2009cb4: 82 10 20 02 mov 2, %g1 2009cb8: c2 22 00 00 st %g1, [ %o0 ] } 2009cbc: 81 c7 e0 08 ret 2009cc0: 81 e8 00 00 restore /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 2009cc4: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 2009cc8: e8 26 c0 00 st %l4, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 2009ccc: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009cd0: c2 26 e0 10 st %g1, [ %i3 + 0x10 ] if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; 2009cd4: 03 00 80 42 sethi %hi(0x2010800), %g1 2009cd8: 82 10 63 d4 or %g1, 0x3d4, %g1 ! 2010bd4 2009cdc: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 2009ce0: 03 00 80 42 sethi %hi(0x2010800), %g1 2009ce4: 82 10 63 8c or %g1, 0x38c, %g1 ! 2010b8c 2009ce8: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 2009cec: 81 c7 e0 08 ret 2009cf0: 91 e8 20 00 restore %g0, 0, %o0 } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 2009cf4: 40 00 0c a4 call 200cf84 <__errno> <== NOT EXECUTED 2009cf8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009cfc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2009d00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009d04: 81 c7 e0 08 ret <== NOT EXECUTED 2009d08: 81 e8 00 00 restore <== NOT EXECUTED 02001bb4 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 2001bb4: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 2001bb8: 23 00 80 42 sethi %hi(0x2010800), %l1 2001bbc: c2 04 62 a8 ld [ %l1 + 0x2a8 ], %g1 ! 2010aa8 2001bc0: 85 28 60 04 sll %g1, 4, %g2 2001bc4: 83 28 60 02 sll %g1, 2, %g1 2001bc8: 40 00 1e 33 call 2009494 <_Workspace_Allocate> 2001bcc: 90 00 40 02 add %g1, %g2, %o0 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 2001bd0: a0 92 20 00 orcc %o0, 0, %l0 2001bd4: 02 80 00 10 be 2001c14 2001bd8: c2 04 62 a8 ld [ %l1 + 0x2a8 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 2001bdc: 92 10 20 00 clr %o1 2001be0: 85 28 60 04 sll %g1, 4, %g2 2001be4: 83 28 60 02 sll %g1, 2, %g1 2001be8: 40 00 2f 47 call 200d904 2001bec: 94 00 40 02 add %g1, %g2, %o2 device_name_table, 0, sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; 2001bf0: 03 00 80 42 sethi %hi(0x2010800), %g1 2001bf4: 82 10 63 d4 or %g1, 0x3d4, %g1 ! 2010bd4 temp_mt_entry->mt_fs_root.ops = &devFS_ops; /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; 2001bf8: e0 26 20 1c st %l0, [ %i0 + 0x1c ] device_name_table, 0, sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; 2001bfc: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 2001c00: 03 00 80 42 sethi %hi(0x2010800), %g1 2001c04: 82 10 63 8c or %g1, 0x38c, %g1 ! 2010b8c 2001c08: c2 26 20 28 st %g1, [ %i0 + 0x28 ] /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } 2001c0c: 81 c7 e0 08 ret 2001c10: 91 e8 20 00 restore %g0, 0, %o0 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); 2001c14: 40 00 2c dc call 200cf84 <__errno> <== NOT EXECUTED 2001c18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001c1c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2001c20: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001c24: 81 c7 e0 08 ret <== NOT EXECUTED 2001c28: 81 e8 00 00 restore <== NOT EXECUTED 02001ddc : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2001ddc: 9d e3 bf 90 save %sp, -112, %sp rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001de0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 2001de4: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 2001de8: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001dec: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001df0: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 2001df4: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 2001df8: 40 00 11 37 call 20062d4 2001dfc: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2001e00: 80 a2 20 00 cmp %o0, 0 2001e04: 12 80 00 05 bne 2001e18 2001e08: 01 00 00 00 nop return rtems_deviceio_errno(status); return args.ioctl_return; 2001e0c: f0 07 bf fc ld [ %fp + -4 ], %i0 } 2001e10: 81 c7 e0 08 ret 2001e14: 81 e8 00 00 restore np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2001e18: 40 00 1f bd call 2009d0c <== NOT EXECUTED 2001e1c: 01 00 00 00 nop <== NOT EXECUTED 2001e20: 81 c7 e0 08 ret <== NOT EXECUTED 2001e24: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02001c2c : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001c2c: 9d e3 bf a0 save %sp, -96, %sp * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 2001c30: c2 4e 00 00 ldsb [ %i0 ], %g1 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001c34: a0 10 00 18 mov %i0, %l0 * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 2001c38: 80 a0 60 64 cmp %g1, 0x64 2001c3c: 02 80 00 4c be 2001d6c 2001c40: aa 10 00 19 mov %i1, %l5 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 2001c44: 03 00 00 3c sethi %hi(0xf000), %g1 2001c48: b2 0e 40 01 and %i1, %g1, %i1 2001c4c: 03 00 00 08 sethi %hi(0x2000), %g1 2001c50: 80 a6 40 01 cmp %i1, %g1 2001c54: 02 80 00 0b be 2001c80 2001c58: 03 00 00 18 sethi %hi(0x6000), %g1 2001c5c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2001c60: 22 80 00 09 be,a 2001c84 <== NOT EXECUTED 2001c64: e4 07 00 00 ld [ %i4 ], %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2001c68: 40 00 2c c7 call 200cf84 <__errno> <== NOT EXECUTED 2001c6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001c70: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2001c74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001c78: 81 c7 e0 08 ret <== NOT EXECUTED 2001c7c: 81 e8 00 00 restore <== NOT EXECUTED else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 2001c80: e4 07 00 00 ld [ %i4 ], %l2 if (!device_name_table) 2001c84: 80 a4 a0 00 cmp %l2, 0 2001c88: 02 80 00 4d be 2001dbc 2001c8c: 03 00 80 42 sethi %hi(0x2010800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001c90: e6 00 62 a8 ld [ %g1 + 0x2a8 ], %l3 ! 2010aa8 2001c94: 80 a4 e0 00 cmp %l3, 0 2001c98: 02 80 00 43 be 2001da4 2001c9c: 82 10 20 00 clr %g1 rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 2001ca0: a8 10 3f ff mov -1, %l4 2001ca4: 10 80 00 0a b 2001ccc 2001ca8: a2 10 20 00 clr %l1 for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 2001cac: 40 00 2f d0 call 200dbec 2001cb0: 01 00 00 00 nop 2001cb4: 80 a2 20 00 cmp %o0, 0 2001cb8: 02 80 00 27 be 2001d54 2001cbc: a2 04 60 01 inc %l1 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001cc0: 80 a4 40 13 cmp %l1, %l3 2001cc4: 1a 80 00 0e bcc 2001cfc 2001cc8: 82 10 00 11 mov %l1, %g1 if (device_name_table[i].device_name == NULL) 2001ccc: 85 28 60 04 sll %g1, 4, %g2 2001cd0: 83 28 60 02 sll %g1, 2, %g1 2001cd4: 82 00 40 02 add %g1, %g2, %g1 2001cd8: d2 04 80 01 ld [ %l2 + %g1 ], %o1 2001cdc: 80 a2 60 00 cmp %o1, 0 2001ce0: 12 bf ff f3 bne 2001cac 2001ce4: 90 10 00 10 mov %l0, %o0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 2001ce8: a8 10 00 11 mov %l1, %l4 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001cec: a2 04 60 01 inc %l1 2001cf0: 80 a4 40 13 cmp %l1, %l3 2001cf4: 0a bf ff f6 bcs 2001ccc 2001cf8: 82 10 00 11 mov %l1, %g1 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 2001cfc: 80 a5 3f ff cmp %l4, -1 2001d00: 02 80 00 29 be 2001da4 2001d04: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); 2001d08: 7f ff ff 81 call 2001b0c 2001d0c: 01 00 00 00 nop 2001d10: a2 10 00 08 mov %o0, %l1 device_name_table[slot].device_name = (char *)path; 2001d14: 83 2d 20 04 sll %l4, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 2001d18: 90 10 00 10 mov %l0, %o0 if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; 2001d1c: a9 2d 20 02 sll %l4, 2, %l4 2001d20: a8 05 00 01 add %l4, %g1, %l4 2001d24: e0 24 80 14 st %l0, [ %l2 + %l4 ] device_name_table[slot].device_name_length = strlen(path); 2001d28: 40 00 30 02 call 200dd30 2001d2c: a4 04 80 14 add %l2, %l4, %l2 device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 2001d30: ea 34 a0 10 sth %l5, [ %l2 + 0x10 ] if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; device_name_table[slot].device_name_length = strlen(path); 2001d34: d0 24 a0 04 st %o0, [ %l2 + 4 ] device_name_table[slot].major = major; 2001d38: f4 24 a0 08 st %i2, [ %l2 + 8 ] device_name_table[slot].minor = minor; 2001d3c: f6 24 a0 0c st %i3, [ %l2 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 2001d40: b0 10 20 00 clr %i0 2001d44: 7f ff ff 76 call 2001b1c 2001d48: 90 10 00 11 mov %l1, %o0 return 0; } 2001d4c: 81 c7 e0 08 ret 2001d50: 81 e8 00 00 restore for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 2001d54: 40 00 2c 8c call 200cf84 <__errno> <== NOT EXECUTED 2001d58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001d5c: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED 2001d60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001d64: 81 c7 e0 08 ret <== NOT EXECUTED 2001d68: 81 e8 00 00 restore <== NOT EXECUTED * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 2001d6c: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 2001d70: 80 a0 60 65 cmp %g1, 0x65 2001d74: 12 bf ff b5 bne 2001c48 2001d78: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 2001d7c: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 2001d80: 80 a0 60 76 cmp %g1, 0x76 2001d84: 12 bf ff b1 bne 2001c48 2001d88: 03 00 00 3c sethi %hi(0xf000), %g1 2001d8c: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 2001d90: 80 a0 60 00 cmp %g1, 0 2001d94: 12 bf ff ac bne 2001c44 2001d98: b0 10 20 00 clr %i0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 2001d9c: 81 c7 e0 08 ret 2001da0: 81 e8 00 00 restore if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); 2001da4: 40 00 2c 78 call 200cf84 <__errno> <== NOT EXECUTED 2001da8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001dac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2001db0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001db4: 81 c7 e0 08 ret <== NOT EXECUTED 2001db8: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); 2001dbc: 40 00 2c 72 call 200cf84 <__errno> <== NOT EXECUTED 2001dc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001dc4: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2001dc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001dcc: 81 c7 e0 08 ret <== NOT EXECUTED 2001dd0: 81 e8 00 00 restore <== NOT EXECUTED 02001e28 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2001e28: 9d e3 bf 90 save %sp, -112, %sp rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; 2001e2c: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001e30: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 2001e34: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 2001e38: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 2001e3c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001e40: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001e44: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 2001e48: 94 07 bf f4 add %fp, -12, %o2 2001e4c: 40 00 11 7f call 2006448 2001e50: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 2001e54: 80 a2 20 00 cmp %o0, 0 2001e58: 12 80 00 04 bne 2001e68 2001e5c: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 2001e60: 81 c7 e0 08 ret 2001e64: 81 e8 00 00 restore np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2001e68: 40 00 1f a9 call 2009d0c <== NOT EXECUTED 2001e6c: 01 00 00 00 nop <== NOT EXECUTED return 0; } 2001e70: 81 c7 e0 08 ret <== NOT EXECUTED 2001e74: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02001e78 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2001e78: 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; 2001e7c: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001e80: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 2001e84: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; 2001e88: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 2001e8c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001e90: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 2001e94: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 2001e98: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001e9c: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 2001ea0: f2 27 bf f0 st %i1, [ %fp + -16 ] <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001ea4: f0 27 bf e0 st %i0, [ %fp + -32 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 2001ea8: 40 00 11 80 call 20064a8 <== NOT EXECUTED 2001eac: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 2001eb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2001eb4: 12 80 00 05 bne 2001ec8 <== NOT EXECUTED 2001eb8: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 2001ebc: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED } 2001ec0: 81 c7 e0 08 ret <== NOT EXECUTED 2001ec4: 81 e8 00 00 restore <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2001ec8: 40 00 1f 91 call 2009d0c <== NOT EXECUTED 2001ecc: 01 00 00 00 nop <== NOT EXECUTED 2001ed0: 81 c7 e0 08 ret <== NOT EXECUTED 2001ed4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02001ed8 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2001ed8: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 2001edc: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 2001ee0: 80 a0 60 00 cmp %g1, 0 2001ee4: 02 80 00 0a be 2001f0c 2001ee8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; 2001eec: c6 10 60 10 lduh [ %g1 + 0x10 ], %g3 the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 2001ef0: c4 00 60 0c ld [ %g1 + 0xc ], %g2 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 2001ef4: c2 00 60 08 ld [ %g1 + 8 ], %g1 buf->st_mode = the_dev->mode; 2001ef8: c6 36 60 0c sth %g3, [ %i1 + 0xc ] the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 2001efc: c2 26 60 18 st %g1, [ %i1 + 0x18 ] 2001f00: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; return 0; } 2001f04: 81 c7 e0 08 ret 2001f08: 91 e8 20 00 restore %g0, 0, %o0 { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); 2001f0c: 40 00 2c 1e call 200cf84 <__errno> <== NOT EXECUTED 2001f10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001f14: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2001f18: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001f1c: 81 c7 e0 08 ret <== NOT EXECUTED 2001f20: 81 e8 00 00 restore <== NOT EXECUTED 02001f24 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2001f24: 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; 2001f28: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001f2c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 2001f30: c4 27 bf f8 st %g2, [ %fp + -8 ] np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; 2001f34: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 2001f38: c0 27 bf fc clr [ %fp + -4 ] rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001f3c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 2001f40: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001f44: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001f48: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 2001f4c: f2 27 bf f0 st %i1, [ %fp + -16 ] rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001f50: f0 27 bf e0 st %i0, [ %fp + -32 ] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 2001f54: 40 00 11 6d call 2006508 2001f58: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2001f5c: 80 a2 20 00 cmp %o0, 0 2001f60: 12 80 00 05 bne 2001f74 2001f64: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 2001f68: f0 07 bf fc ld [ %fp + -4 ], %i0 } 2001f6c: 81 c7 e0 08 ret 2001f70: 81 e8 00 00 restore np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2001f74: 40 00 1f 66 call 2009d0c <== NOT EXECUTED 2001f78: 01 00 00 00 nop <== NOT EXECUTED 2001f7c: 81 c7 e0 08 ret <== NOT EXECUTED 2001f80: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d1a8 : */ int device_close( rtems_libio_t *iop ) { 200d1a8: 9d e3 bf 90 save %sp, -112, %sp rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200d1ac: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200d1b0: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200d1b4: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200d1b8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200d1bc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d1c0: 94 07 bf f4 add %fp, -12, %o2 200d1c4: 40 00 05 a2 call 200e84c 200d1c8: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200d1cc: 80 a2 20 00 cmp %o0, 0 200d1d0: 12 80 00 04 bne 200d1e0 200d1d4: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 200d1d8: 81 c7 e0 08 ret 200d1dc: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 200d1e0: 40 00 07 37 call 200eebc <== NOT EXECUTED 200d1e4: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 200d1e8: 81 c7 e0 08 ret <== NOT EXECUTED 200d1ec: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d0a8 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200d0a8: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200d0ac: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; 200d0b0: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200d0b4: f4 27 bf f8 st %i2, [ %fp + -8 ] { rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; 200d0b8: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200d0bc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d0c0: 40 00 05 fb call 200e8ac 200d0c4: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d0c8: 80 a2 20 00 cmp %o0, 0 200d0cc: 12 80 00 05 bne 200d0e0 200d0d0: 01 00 00 00 nop return rtems_deviceio_errno(status); return args.ioctl_return; 200d0d4: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200d0d8: 81 c7 e0 08 ret 200d0dc: 81 e8 00 00 restore the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d0e0: 40 00 07 77 call 200eebc <== NOT EXECUTED 200d0e4: 01 00 00 00 nop <== NOT EXECUTED 200d0e8: 81 c7 e0 08 ret <== NOT EXECUTED 200d0ec: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d1f0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200d1f0: 9d e3 bf 90 save %sp, -112, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; 200d1f4: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200d1f8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200d1fc: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200d200: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200d204: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200d208: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d20c: 94 07 bf f4 add %fp, -12, %o2 200d210: 40 00 05 bf call 200e90c 200d214: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d218: 80 a2 20 00 cmp %o0, 0 200d21c: 12 80 00 04 bne 200d22c 200d220: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 200d224: 81 c7 e0 08 ret 200d228: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d22c: 40 00 07 24 call 200eebc <== NOT EXECUTED 200d230: 01 00 00 00 nop <== NOT EXECUTED return 0; } 200d234: 81 c7 e0 08 ret <== NOT EXECUTED 200d238: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d14c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200d14c: 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; 200d150: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200d154: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 200d158: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 200d15c: f2 27 bf f0 st %i1, [ %fp + -16 ] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 200d160: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200d164: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 200d168: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 200d16c: 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; 200d170: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 200d174: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200d178: 40 00 05 fd call 200e96c <== NOT EXECUTED 200d17c: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d180: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d184: 12 80 00 05 bne 200d198 <== NOT EXECUTED 200d188: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200d18c: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED } 200d190: 81 c7 e0 08 ret <== NOT EXECUTED 200d194: 81 e8 00 00 restore <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d198: 40 00 07 49 call 200eebc <== NOT EXECUTED 200d19c: 01 00 00 00 nop <== NOT EXECUTED 200d1a0: 81 c7 e0 08 ret <== NOT EXECUTED 200d1a4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d0f0 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200d0f0: 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; 200d0f4: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 200d0f8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200d0fc: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200d100: f2 27 bf f0 st %i1, [ %fp + -16 ] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 200d104: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200d108: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200d10c: c4 27 bf f8 st %g2, [ %fp + -8 ] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 200d110: 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; 200d114: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200d118: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d11c: 40 00 06 2c call 200e9cc 200d120: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d124: 80 a2 20 00 cmp %o0, 0 200d128: 12 80 00 05 bne 200d13c 200d12c: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200d130: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200d134: 81 c7 e0 08 ret 200d138: 81 e8 00 00 restore the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d13c: 40 00 07 60 call 200eebc <== NOT EXECUTED 200d140: 01 00 00 00 nop <== NOT EXECUTED 200d144: 81 c7 e0 08 ret <== NOT EXECUTED 200d148: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02003f94 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2003f94: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2003f98: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 2003f9c: 80 a0 60 00 cmp %g1, 0 2003fa0: 12 80 00 04 bne 2003fb0 2003fa4: 01 00 00 00 nop 2003fa8: 81 c7 e0 08 ret 2003fac: 81 e8 00 00 restore rtems_interrupt_disable (level); 2003fb0: 7f ff f7 70 call 2001d70 <== NOT EXECUTED 2003fb4: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2003fb8: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2003fbc: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2003fc0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fc4: 02 80 00 14 be 2004014 <== NOT EXECUTED 2003fc8: 01 00 00 00 nop <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2003fcc: a0 10 20 02 mov 2, %l0 ! 2 <== NOT EXECUTED 2003fd0: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED rtems_interrupt_enable (level); 2003fd4: 7f ff f7 6b call 2001d80 <== NOT EXECUTED 2003fd8: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003fdc: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 2003fe0: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003fe4: 40 00 06 be call 2005adc <== NOT EXECUTED 2003fe8: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003fec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003ff0: 12 80 00 0b bne 200401c <== NOT EXECUTED 2003ff4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2003ff8: 7f ff f7 5e call 2001d70 <== NOT EXECUTED 2003ffc: 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) { 2004000: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED 2004004: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED 2004008: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 200400c: 32 bf ff f2 bne,a 2003fd4 <== NOT EXECUTED 2004010: 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); 2004014: 7f ff f7 5b call 2001d80 <== NOT EXECUTED 2004018: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 200401c: 40 00 08 5f call 2006198 <== NOT EXECUTED 2004020: 01 00 00 00 nop 2004024: 01 00 00 00 nop 020030e4 : int dup2( int fildes, int fildes2 ) { 20030e4: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 20030e8: a0 07 bf b8 add %fp, -72, %l0 20030ec: 90 10 00 18 mov %i0, %o0 20030f0: 40 00 02 28 call 2003990 20030f4: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 20030f8: 80 a2 3f ff cmp %o0, -1 20030fc: 12 80 00 04 bne 200310c 2003100: 92 10 00 10 mov %l0, %o1 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); } 2003104: 81 c7 e0 08 ret 2003108: 91 e8 3f ff restore %g0, -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 200310c: 40 00 02 21 call 2003990 2003110: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 2003114: 80 a2 3f ff cmp %o0, -1 2003118: 02 bf ff fb be 2003104 200311c: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 2003120: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 2003124: 40 00 00 cf call 2003460 <== NOT EXECUTED 2003128: 92 10 20 00 clr %o1 <== NOT EXECUTED 200312c: 81 c7 e0 08 ret <== NOT EXECUTED 2003130: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020039c0 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 20039c0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 20039c4: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 20039c8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20039cc: 02 80 00 0d be 2003a00 <== NOT EXECUTED 20039d0: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 20039d4: 05 00 80 6f sethi %hi(0x201bc00), %g2 <== NOT EXECUTED 20039d8: c4 00 a0 54 ld [ %g2 + 0x54 ], %g2 ! 201bc54 <__ctype_ptr__> <== NOT EXECUTED 20039dc: 82 00 80 08 add %g2, %o0, %g1 <== NOT EXECUTED 20039e0: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED 20039e4: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20039e8: 02 80 00 06 be 2003a00 <== NOT EXECUTED 20039ec: 80 a2 20 09 cmp %o0, 9 <== NOT EXECUTED 20039f0: 02 80 00 04 be 2003a00 <== NOT EXECUTED 20039f4: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 20039f8: 12 80 00 06 bne 2003a10 <== NOT EXECUTED 20039fc: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 2003a00: 7f ff ff 83 call 200380c <== NOT EXECUTED 2003a04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003a08: 81 c7 e0 08 ret <== NOT EXECUTED 2003a0c: 81 e8 00 00 restore <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 2003a10: b0 1e 20 40 xor %i0, 0x40, %i0 <== 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] = '^'; 2003a14: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 2003a18: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 2003a1c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2003a20: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2003a24: 7f ff ff 2b call 20036d0 <== NOT EXECUTED 2003a28: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 2003a2c: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 2003a30: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 2003a34: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2003a38: 81 c7 e0 08 ret <== NOT EXECUTED 2003a3c: 81 e8 00 00 restore <== NOT EXECUTED 02029044 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 2029044: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED 2029048: d0 00 60 64 ld [ %g1 + 0x64 ], %o0 ! 206d464 <== NOT EXECUTED 202904c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029050: 02 80 00 05 be 2029064 <== NOT EXECUTED 2029054: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 2029058: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202905c: 40 00 6d 32 call 2044524 <== NOT EXECUTED 2029060: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2029064: 81 c3 e0 08 retl <== NOT EXECUTED 2029068: 01 00 00 00 nop 0202906c : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 202906c: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED 2029070: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 206d37c <== NOT EXECUTED 2029074: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029078: 02 80 00 05 be 202908c <== NOT EXECUTED 202907c: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2029080: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029084: 40 00 6d 28 call 2044524 <== NOT EXECUTED 2029088: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202908c: 81 c3 e0 08 retl <== NOT EXECUTED 2029090: 01 00 00 00 nop 02003a40 : * 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) { 2003a40: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 2003a44: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2003a48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003a4c: 02 80 00 36 be 2003b24 <== NOT EXECUTED 2003a50: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 2003a54: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003a58: 12 80 00 35 bne 2003b2c <== NOT EXECUTED 2003a5c: c4 06 20 3c ld [ %i0 + 0x3c ], %g2 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003a60: 27 00 80 6f sethi %hi(0x201bc00), %l3 <== NOT EXECUTED 2003a64: 29 00 80 6b sethi %hi(0x201ac00), %l4 <== NOT EXECUTED 2003a68: 25 00 80 6b sethi %hi(0x201ac00), %l2 <== NOT EXECUTED 2003a6c: a6 14 e0 54 or %l3, 0x54, %l3 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2003a70: a8 15 20 10 or %l4, 0x10, %l4 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003a74: 10 80 00 0c b 2003aa4 <== NOT EXECUTED 2003a78: a4 14 a0 08 or %l2, 8, %l2 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003a7c: 12 80 00 6a bne 2003c24 <== NOT EXECUTED 2003a80: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003a84: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003a88: 02 80 00 63 be 2003c14 <== NOT EXECUTED 2003a8c: 01 00 00 00 nop <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2003a90: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003a94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003a98: 02 80 00 5f be 2003c14 <== NOT EXECUTED 2003a9c: 01 00 00 00 nop <== NOT EXECUTED 2003aa0: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 2003aa4: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED 2003aa8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003aac: c2 24 20 20 st %g1, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2003ab0: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003ab4: 02 bf ff f4 be 2003a84 <== NOT EXECUTED 2003ab8: e2 09 00 01 ldub [ %g4 + %g1 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2003abc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003ac0: 12 80 00 05 bne 2003ad4 <== NOT EXECUTED 2003ac4: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 2003ac8: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED 2003acc: 22 80 00 54 be,a 2003c1c <== NOT EXECUTED 2003ad0: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 2003ad4: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 2003ad8: 02 80 00 24 be 2003b68 <== NOT EXECUTED 2003adc: a2 04 60 01 inc %l1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003ae0: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED 2003ae4: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 2003ae8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003aec: 12 bf ff e4 bne 2003a7c <== NOT EXECUTED 2003af0: 80 88 a2 00 btst 0x200, %g2 <== 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); 2003af4: 11 00 80 6b sethi %hi(0x201ac00), %o0 <== NOT EXECUTED 2003af8: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003afc: 90 12 20 10 or %o0, 0x10, %o0 <== NOT EXECUTED 2003b00: 7f ff fe f4 call 20036d0 <== NOT EXECUTED 2003b04: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2003b08: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003b0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003b10: 02 bf ff de be 2003a88 <== NOT EXECUTED 2003b14: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 2003b18: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } } } if (!lineFlag) 2003b1c: 12 bf ff dd bne 2003a90 <== NOT EXECUTED 2003b20: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED 2003b24: 81 c7 e0 08 ret <== NOT EXECUTED 2003b28: 81 e8 00 00 restore <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 2003b2c: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003b30: 02 80 00 38 be 2003c10 <== NOT EXECUTED 2003b34: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 2003b38: 12 bf ff cb bne 2003a64 <== NOT EXECUTED 2003b3c: 27 00 80 6f sethi %hi(0x201bc00), %l3 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 2003b40: 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; 2003b44: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 2003b48: 7f ff ff 9e call 20039c0 <== NOT EXECUTED 2003b4c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 2003b50: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 2003b54: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003b58: 02 bf ff f3 be 2003b24 <== NOT EXECUTED 2003b5c: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED echo ('\n', tty); 2003b60: 7f ff ff 98 call 20039c0 <== NOT EXECUTED 2003b64: 91 e8 20 0a restore %g0, 0xa, %o0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003b68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003b6c: 02 80 00 17 be 2003bc8 <== NOT EXECUTED 2003b70: e2 04 20 2c ld [ %l0 + 0x2c ], %l1 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 2003b74: 96 08 a2 00 and %g2, 0x200, %o3 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2003b78: d8 04 c0 00 ld [ %l3 ], %o4 <== NOT EXECUTED 2003b7c: 10 80 00 07 b 2003b98 <== NOT EXECUTED 2003b80: 84 10 20 00 clr %g2 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2003b84: 32 80 00 02 bne,a 2003b8c <== NOT EXECUTED 2003b88: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003b8c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003b90: 22 80 00 0f be,a 2003bcc <== NOT EXECUTED 2003b94: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED c = tty->cbuf[i++]; 2003b98: c6 09 00 02 ldub [ %g4 + %g2 ], %g3 <== NOT EXECUTED 2003b9c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (c == '\t') { 2003ba0: 80 a0 e0 09 cmp %g3, 9 <== NOT EXECUTED 2003ba4: 02 80 00 18 be 2003c04 <== NOT EXECUTED 2003ba8: 9a 03 00 03 add %o4, %g3, %o5 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 2003bac: c6 0b 60 01 ldub [ %o5 + 1 ], %g3 <== NOT EXECUTED 2003bb0: 80 88 e0 20 btst 0x20, %g3 <== NOT EXECUTED 2003bb4: 12 bf ff f4 bne 2003b84 <== NOT EXECUTED 2003bb8: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003bbc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003bc0: 12 bf ff f6 bne 2003b98 <== NOT EXECUTED 2003bc4: a2 04 60 01 inc %l1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003bc8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003bcc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2003bd0: 16 bf ff ae bge 2003a88 <== NOT EXECUTED 2003bd4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2003bd8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2003bdc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003be0: 7f ff fe bc call 20036d0 <== NOT EXECUTED 2003be4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED tty->column--; 2003be8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003bec: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003bf0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2003bf4: 06 bf ff f9 bl 2003bd8 <== NOT EXECUTED 2003bf8: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003bfc: 10 bf ff a3 b 2003a88 <== NOT EXECUTED 2003c00: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 2003c04: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED 2003c08: 10 bf ff e1 b 2003b8c <== NOT EXECUTED 2003c0c: a2 04 60 01 inc %l1 <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 2003c10: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 2003c14: 81 c7 e0 08 ret <== NOT EXECUTED 2003c18: 81 e8 00 00 restore <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); 2003c1c: 7f ff ff 69 call 20039c0 <== NOT EXECUTED 2003c20: 93 e8 00 10 restore %g0, %l0, %o1 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 2003c24: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003c28: 7f ff fe aa call 20036d0 <== NOT EXECUTED 2003c2c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2003c30: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003c34: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003c38: 22 80 00 05 be,a 2003c4c <== NOT EXECUTED 2003c3c: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED tty->column--; 2003c40: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003c44: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 2003c48: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED 2003c4c: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 2003c50: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003c54: 02 bf ff a9 be 2003af8 <== NOT EXECUTED 2003c58: 11 00 80 6b sethi %hi(0x201ac00), %o0 <== NOT EXECUTED 2003c5c: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED 2003c60: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 2003c64: 12 bf ff a6 bne 2003afc <== NOT EXECUTED 2003c68: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003c6c: 10 bf ff 87 b 2003a88 <== NOT EXECUTED 2003c70: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 0203d840 : #include int fchdir( int fd ) { 203d840: 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 ); 203d844: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 203d848: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 2069604 <== NOT EXECUTED 203d84c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 203d850: 1a 80 00 55 bcc 203d9a4 <== NOT EXECUTED 203d854: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 203d858: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 206d750 <== NOT EXECUTED 203d85c: 85 2e 20 06 sll %i0, 6, %g2 <== NOT EXECUTED 203d860: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 203d864: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED 203d868: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 203d86c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 203d870: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 203d874: 02 80 00 4c be 203d9a4 <== NOT EXECUTED 203d878: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 203d87c: 02 80 00 5d be 203d9f0 <== NOT EXECUTED 203d880: 01 00 00 00 nop <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 203d884: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED 203d888: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203d88c: 02 80 00 5f be 203da08 <== NOT EXECUTED 203d890: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 203d894: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 203d898: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203d89c: 02 80 00 5b be 203da08 <== NOT EXECUTED 203d8a0: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 203d8a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 203d8a8: 90 06 20 1c add %i0, 0x1c, %o0 <== NOT EXECUTED 203d8ac: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 203d8b0: 12 80 00 37 bne 203d98c <== NOT EXECUTED 203d8b4: 21 00 81 a6 sethi %hi(0x2069800), %l0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8b8: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d8bc: 11 00 81 83 sethi %hi(0x2060c00), %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8c0: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d8c4: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8c8: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 203d8cc: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d8d0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8d4: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 203d8d8: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d8dc: 94 10 20 00 clr %o2 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8e0: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 203d8e4: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d8e8: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8ec: c4 27 bf e4 st %g2, [ %fp + -28 ] <== NOT EXECUTED 203d8f0: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d8f4: 98 10 20 00 clr %o4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203d8f8: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 203d8fc: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED 203d900: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 203d904: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 <== NOT EXECUTED 203d908: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 203d90c: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 <== NOT EXECUTED 203d910: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 203d914: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 <== NOT EXECUTED 203d918: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 203d91c: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203d920: 7f ff 21 e0 call 20060a0 <== NOT EXECUTED 203d924: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED 203d928: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203d92c: 12 80 00 24 bne 203d9bc <== NOT EXECUTED 203d930: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 203d934: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203d938: 02 80 00 09 be 203d95c <== NOT EXECUTED 203d93c: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 203d940: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 203d944: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203d948: 22 80 00 06 be,a 203d960 <== NOT EXECUTED 203d94c: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 <== NOT EXECUTED 203d950: 9f c0 40 00 call %g1 <== NOT EXECUTED 203d954: 90 07 bf d8 add %fp, -40, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 203d958: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 203d95c: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 <== NOT EXECUTED 203d960: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 203d964: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED 203d968: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 203d96c: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 203d970: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 203d974: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED 203d978: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 203d97c: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 203d980: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED return 0; } 203d984: 81 c7 e0 08 ret <== NOT EXECUTED 203d988: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 203d98c: 40 00 1a 8e call 20443c4 <__errno> <== NOT EXECUTED 203d990: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203d994: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 203d998: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203d99c: 81 c7 e0 08 ret <== NOT EXECUTED 203d9a0: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 203d9a4: 40 00 1a 88 call 20443c4 <__errno> <== NOT EXECUTED 203d9a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203d9ac: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 203d9b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203d9b4: 81 c7 e0 08 ret <== NOT EXECUTED 203d9b8: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 203d9bc: c4 07 bf d8 ld [ %fp + -40 ], %g2 <== NOT EXECUTED 203d9c0: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 <== NOT EXECUTED 203d9c4: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 203d9c8: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED 203d9cc: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 203d9d0: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED 203d9d4: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 203d9d8: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED 203d9dc: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 203d9e0: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED 203d9e4: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED return -1; 203d9e8: 81 c7 e0 08 ret <== NOT EXECUTED 203d9ec: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 203d9f0: 40 00 1a 75 call 20443c4 <__errno> <== NOT EXECUTED 203d9f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203d9f8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 203d9fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203da00: 81 c7 e0 08 ret <== NOT EXECUTED 203da04: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 203da08: 40 00 1a 6f call 20443c4 <__errno> <== NOT EXECUTED 203da0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203da10: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 203da14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203da18: 81 c7 e0 08 ret <== NOT EXECUTED 203da1c: 81 e8 00 00 restore <== NOT EXECUTED 02028b7c : int fchmod( int fd, mode_t mode ) { 2028b7c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028b80: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 2028b84: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 2069604 <== NOT EXECUTED 2028b88: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028b8c: 1a 80 00 19 bcc 2028bf0 <== NOT EXECUTED 2028b90: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2028b94: d0 00 63 50 ld [ %g1 + 0x350 ], %o0 ! 206d750 <== NOT EXECUTED 2028b98: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028b9c: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2028ba0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028ba4: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028ba8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028bac: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2028bb0: 02 80 00 10 be 2028bf0 <== NOT EXECUTED 2028bb4: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028bb8: 02 80 00 14 be 2028c08 <== NOT EXECUTED 2028bbc: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 2028bc0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 2028bc4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028bc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028bcc: 02 80 00 15 be 2028c20 <== NOT EXECUTED 2028bd0: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2028bd4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED 2028bd8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028bdc: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2028be0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028be4: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 2028be8: 81 c7 e0 08 ret <== NOT EXECUTED 2028bec: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 2028bf0: 40 00 6d f5 call 20443c4 <__errno> <== NOT EXECUTED 2028bf4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028bf8: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2028bfc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028c00: 81 c7 e0 08 ret <== NOT EXECUTED 2028c04: 81 e8 00 00 restore <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028c08: 40 00 6d ef call 20443c4 <__errno> <== NOT EXECUTED 2028c0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028c10: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2028c14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028c18: 81 c7 e0 08 ret <== NOT EXECUTED 2028c1c: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028c20: 40 00 6d e9 call 20443c4 <__errno> <== NOT EXECUTED 2028c24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028c28: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028c2c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028c30: 81 c7 e0 08 ret <== NOT EXECUTED 2028c34: 81 e8 00 00 restore <== NOT EXECUTED 02028c38 : int fchown( int fd, uid_t owner, gid_t group ) { 2028c38: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028c3c: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 2028c40: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 2069604 <== NOT EXECUTED 2028c44: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028c48: 1a 80 00 19 bcc 2028cac <== NOT EXECUTED 2028c4c: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2028c50: d0 00 63 50 ld [ %g1 + 0x350 ], %o0 ! 206d750 <== NOT EXECUTED 2028c54: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028c58: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2028c5c: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028c60: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028c64: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028c68: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2028c6c: 02 80 00 10 be 2028cac <== NOT EXECUTED 2028c70: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028c74: 02 80 00 14 be 2028cc4 <== NOT EXECUTED 2028c78: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 2028c7c: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 2028c80: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2028c84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028c88: 02 80 00 15 be 2028cdc <== NOT EXECUTED 2028c8c: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 2028c90: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 2028c94: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2028c98: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED 2028c9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028ca0: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 2028ca4: 81 c7 e0 08 ret <== NOT EXECUTED 2028ca8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 2028cac: 40 00 6d c6 call 20443c4 <__errno> <== NOT EXECUTED 2028cb0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028cb4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2028cb8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028cbc: 81 c7 e0 08 ret <== NOT EXECUTED 2028cc0: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028cc4: 40 00 6d c0 call 20443c4 <__errno> <== NOT EXECUTED 2028cc8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028ccc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2028cd0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028cd4: 81 c7 e0 08 ret <== NOT EXECUTED 2028cd8: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028cdc: 40 00 6d ba call 20443c4 <__errno> <== NOT EXECUTED 2028ce0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028ce4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028ce8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028cec: 81 c7 e0 08 ret <== NOT EXECUTED 2028cf0: 81 e8 00 00 restore <== NOT EXECUTED 0203da48 : int fcntl( int fd, int cmd, ... ) { 203da48: 9d e3 bf 90 save %sp, -112, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203da4c: 03 00 81 a5 sethi %hi(0x2069400), %g1 203da50: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 2069604 ... ) { int ret; va_list ap; va_start( ap, cmd ); 203da54: 84 07 a0 4c add %fp, 0x4c, %g2 203da58: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 203da5c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 203da60: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 203da64: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203da68: 80 a6 00 01 cmp %i0, %g1 203da6c: 1a 80 00 7a bcc 203dc54 203da70: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 203da74: 21 00 81 b5 sethi %hi(0x206d400), %l0 203da78: c6 04 23 50 ld [ %l0 + 0x350 ], %g3 ! 206d750 203da7c: 89 2e 20 06 sll %i0, 6, %g4 203da80: 93 2e 20 03 sll %i0, 3, %o1 203da84: 92 02 40 04 add %o1, %g4, %o1 203da88: 92 00 c0 09 add %g3, %o1, %o1 rtems_libio_check_is_open(iop); 203da8c: d0 02 60 18 ld [ %o1 + 0x18 ], %o0 203da90: 80 8a 21 00 btst 0x100, %o0 203da94: 02 80 00 70 be 203dc54 203da98: 80 a6 60 09 cmp %i1, 9 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 203da9c: 08 80 00 08 bleu 203dabc 203daa0: 89 2e 60 02 sll %i1, 2, %g4 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 203daa4: 40 00 1a 48 call 20443c4 <__errno> 203daa8: b0 10 3f ff mov -1, %i0 203daac: 82 10 20 16 mov 0x16, %g1 203dab0: c2 22 00 00 st %g1, [ %o0 ] 203dab4: 81 c7 e0 08 ret 203dab8: 81 e8 00 00 restore /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 203dabc: 1b 00 80 f6 sethi %hi(0x203d800), %o5 203dac0: 9a 13 62 20 or %o5, 0x220, %o5 ! 203da20 203dac4: c8 03 40 04 ld [ %o5 + %g4 ], %g4 203dac8: 81 c1 00 00 jmp %g4 203dacc: 01 00 00 00 nop errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 203dad0: 40 00 1a 3d call 20443c4 <__errno> 203dad4: b0 10 3f ff mov -1, %i0 ! ffffffff 203dad8: 82 10 20 86 mov 0x86, %g1 203dadc: c2 22 00 00 st %g1, [ %o0 ] 203dae0: 81 c7 e0 08 ret 203dae4: 81 e8 00 00 restore case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 203dae8: d0 00 80 00 ld [ %g2 ], %o0 203daec: 7f ff 22 e6 call 2006684 203daf0: d2 27 bf f4 st %o1, [ %fp + -12 ] /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 203daf4: d2 07 bf f4 ld [ %fp + -12 ], %o1 203daf8: 90 0a 22 01 and %o0, 0x201, %o0 203dafc: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 203db00: b0 10 20 00 clr %i0 203db04: 82 08 7d fe and %g1, -514, %g1 203db08: 82 12 00 01 or %o0, %g1, %g1 203db0c: c2 22 60 18 st %g1, [ %o1 + 0x18 ] * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 203db10: c2 02 60 40 ld [ %o1 + 0x40 ], %g1 203db14: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 203db18: 80 a0 60 00 cmp %g1, 0 203db1c: 02 80 00 52 be 203dc64 203db20: 01 00 00 00 nop int err = (*iop->handlers->fcntl_h)( cmd, iop ); 203db24: 9f c0 40 00 call %g1 203db28: 90 10 00 19 mov %i1, %o0 if (err) { 203db2c: b2 92 20 00 orcc %o0, 0, %i1 203db30: 12 80 00 04 bne 203db40 203db34: 01 00 00 00 nop va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 203db38: 81 c7 e0 08 ret 203db3c: 81 e8 00 00 restore if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 203db40: 40 00 1a 21 call 20443c4 <__errno> <== NOT EXECUTED 203db44: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203db48: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 203db4c: 81 c7 e0 08 ret <== NOT EXECUTED 203db50: 81 e8 00 00 restore <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 203db54: 7f ff 22 1c call 20063c4 203db58: d2 27 bf f4 st %o1, [ %fp + -12 ] 203db5c: d2 07 bf f4 ld [ %fp + -12 ], %o1 203db60: b0 10 00 08 mov %o0, %i0 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 203db64: 80 a6 20 00 cmp %i0, 0 203db68: 36 bf ff eb bge,a 203db14 203db6c: c2 02 60 40 ld [ %o1 + 0x40 ], %g1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 203db70: 81 c7 e0 08 ret <== NOT EXECUTED 203db74: 81 e8 00 00 restore <== NOT EXECUTED * if a new process is exec()'ed. Since RTEMS does not support * processes, then we can ignore this one except to make * F_GETFD work. */ if ( va_arg( ap, int ) ) 203db78: c2 00 80 00 ld [ %g2 ], %g1 203db7c: 80 a0 60 00 cmp %g1, 0 203db80: 22 80 00 2c be,a 203dc30 203db84: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 203db88: 90 12 28 00 or %o0, 0x800, %o0 203db8c: b0 10 20 00 clr %i0 203db90: 10 bf ff e0 b 203db10 203db94: d0 22 60 18 st %o0, [ %o1 + 0x18 ] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 203db98: b1 32 20 0b srl %o0, 0xb, %i0 203db9c: 10 bf ff dd b 203db10 203dba0: b0 0e 20 01 and %i0, 1, %i0 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 203dba4: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 203dba8: 80 a0 a0 00 cmp %g2, 0 203dbac: 02 80 00 30 be 203dc6c 203dbb0: 80 a0 40 02 cmp %g1, %g2 diop = rtems_libio_iop( fd2 ); 203dbb4: b0 10 20 00 clr %i0 <== NOT EXECUTED 203dbb8: 18 80 00 21 bgu 203dc3c <== NOT EXECUTED 203dbbc: 82 10 20 00 clr %g1 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203dbc0: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 ret = -1; break; } } diop->handlers = iop->handlers; 203dbc4: da 02 60 40 ld [ %o1 + 0x40 ], %o5 diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203dbc8: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 203dbcc: c4 02 60 20 ld [ %o1 + 0x20 ], %g2 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 203dbd0: c8 02 60 3c ld [ %o1 + 0x3c ], %g4 diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203dbd4: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 203dbd8: c4 02 60 24 ld [ %o1 + 0x24 ], %g2 ret = (int) (diop - rtems_libio_iops); 203dbdc: 86 26 00 03 sub %i0, %g3, %g3 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203dbe0: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 203dbe4: c4 02 60 28 ld [ %o1 + 0x28 ], %g2 ret = (int) (diop - rtems_libio_iops); 203dbe8: 87 38 e0 03 sra %g3, 3, %g3 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203dbec: c4 20 60 28 st %g2, [ %g1 + 0x28 ] 203dbf0: c4 02 60 2c ld [ %o1 + 0x2c ], %g2 ret = -1; break; } } diop->handlers = iop->handlers; 203dbf4: da 20 60 40 st %o5, [ %g1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203dbf8: c4 20 60 2c st %g2, [ %g1 + 0x2c ] ret = (int) (diop - rtems_libio_iops); 203dbfc: 85 28 e0 06 sll %g3, 6, %g2 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 203dc00: c8 20 60 3c st %g4, [ %g1 + 0x3c ] diop->flags = iop->flags; 203dc04: d0 20 60 18 st %o0, [ %g1 + 0x18 ] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 203dc08: 83 28 e0 03 sll %g3, 3, %g1 203dc0c: 82 20 80 01 sub %g2, %g1, %g1 203dc10: 85 28 60 06 sll %g1, 6, %g2 203dc14: 82 00 40 02 add %g1, %g2, %g1 203dc18: 82 00 40 03 add %g1, %g3, %g1 203dc1c: b1 28 60 0f sll %g1, 0xf, %i0 203dc20: b0 26 00 01 sub %i0, %g1, %i0 203dc24: b1 2e 20 03 sll %i0, 3, %i0 203dc28: 10 bf ff cf b 203db64 203dc2c: b0 06 00 03 add %i0, %g3, %i0 */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 203dc30: b0 10 20 00 clr %i0 <== NOT EXECUTED 203dc34: 10 bf ff b7 b 203db10 <== NOT EXECUTED 203dc38: d0 22 60 18 st %o0, [ %o1 + 0x18 ] <== NOT EXECUTED switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); 203dc3c: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 203dc40: 85 28 a0 03 sll %g2, 3, %g2 <== NOT EXECUTED 203dc44: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 203dc48: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED 203dc4c: 10 bf ff dd b 203dbc0 <== NOT EXECUTED 203dc50: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 203dc54: 40 00 19 dc call 20443c4 <__errno> <== NOT EXECUTED 203dc58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203dc5c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 203dc60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203dc64: 81 c7 e0 08 ret <== NOT EXECUTED 203dc68: 81 e8 00 00 restore <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 203dc6c: 7f ff 22 45 call 2006580 203dc70: d2 27 bf f4 st %o1, [ %fp + -12 ] if ( diop == 0 ) { 203dc74: b0 10 3f ff mov -1, %i0 203dc78: 82 92 20 00 orcc %o0, 0, %g1 203dc7c: 02 bf ff 8e be 203dab4 203dc80: d2 07 bf f4 ld [ %fp + -12 ], %o1 203dc84: c6 04 23 50 ld [ %l0 + 0x350 ], %g3 203dc88: d0 02 60 18 ld [ %o1 + 0x18 ], %o0 203dc8c: 10 bf ff cd b 203dbc0 203dc90: b0 10 00 01 mov %g1, %i0 0200d838 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200d838: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200d83c: 21 00 80 70 sethi %hi(0x201c000), %l0 200d840: d0 04 22 70 ld [ %l0 + 0x270 ], %o0 ! 201c270 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200d844: a2 10 00 18 mov %i0, %l1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200d848: 92 10 20 00 clr %o1 200d84c: 94 10 20 00 clr %o2 200d850: 7f ff e0 a3 call 2005adc 200d854: b0 10 3f fc mov -4, %i0 200d858: 80 a2 20 00 cmp %o0, 0 200d85c: 12 80 01 0c bne 200dc8c 200d860: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200d864: e4 04 40 00 ld [ %l1 ], %l2 <== NOT EXECUTED if (pipe == NULL) { 200d868: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 200d86c: 02 80 00 8e be 200daa4 <== NOT EXECUTED 200d870: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200d874: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED 200d878: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d87c: 7f ff e0 98 call 2005adc <== NOT EXECUTED 200d880: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200d884: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200d888: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200d88c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200d890: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200d894: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200d898: 02 80 00 67 be 200da34 <== NOT EXECUTED 200d89c: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200d8a0: 7f ff e0 d6 call 2005bf8 <== NOT EXECUTED 200d8a4: d0 04 22 70 ld [ %l0 + 0x270 ], %o0 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 200d8a8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200d8ac: 12 80 00 f8 bne 200dc8c <== NOT EXECUTED 200d8b0: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200d8b4: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 200d8b8: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200d8bc: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200d8c0: 02 80 00 35 be 200d994 <== NOT EXECUTED 200d8c4: e0 04 40 00 ld [ %l1 ], %l0 <== NOT EXECUTED 200d8c8: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200d8cc: 02 80 00 61 be 200da50 <== NOT EXECUTED 200d8d0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200d8d4: 22 80 00 07 be,a 200d8f0 <== NOT EXECUTED 200d8d8: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 200d8dc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200d8e0: 7f ff e0 c6 call 2005bf8 <== NOT EXECUTED 200d8e4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 200d8e8: 81 c7 e0 08 ret <== NOT EXECUTED 200d8ec: 81 e8 00 00 restore <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200d8f0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200d8f4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200d8f8: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200d8fc: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED 200d900: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d904: 02 80 00 cc be 200dc34 <== NOT EXECUTED 200d908: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 200d90c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200d910: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d914: 32 bf ff f3 bne,a 200d8e0 <== NOT EXECUTED 200d918: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200d91c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200d920: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200d924: 32 bf ff ef bne,a 200d8e0 <== NOT EXECUTED 200d928: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200d92c: 10 80 00 0c b 200d95c <== NOT EXECUTED 200d930: e4 04 20 24 ld [ %l0 + 0x24 ], %l2 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 200d934: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d938: 7f ff e0 69 call 2005adc <== NOT EXECUTED 200d93c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d940: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d944: 12 80 00 0f bne 200d980 <== NOT EXECUTED 200d948: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200d94c: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 200d950: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 200d954: 32 bf ff e3 bne,a 200d8e0 <== NOT EXECUTED 200d958: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200d95c: 7f ff e0 a7 call 2005bf8 <== NOT EXECUTED 200d960: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200d964: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200d968: 40 00 03 36 call 200e640 <== NOT EXECUTED 200d96c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d970: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d974: 22 bf ff f0 be,a 200d934 <== NOT EXECUTED 200d978: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 200d97c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200d980: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200d984: 7f ff ff 5b call 200d6f0 <== NOT EXECUTED 200d988: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200d98c: 81 c7 e0 08 ret <== NOT EXECUTED 200d990: 81 e8 00 00 restore <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200d994: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200d998: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d99c: 32 80 00 06 bne,a 200d9b4 <== NOT EXECUTED 200d9a0: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 200d9a4: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200d9a8: 12 bf ff f6 bne 200d980 <== NOT EXECUTED 200d9ac: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200d9b0: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200d9b4: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200d9b8: 88 00 a0 01 add %g2, 1, %g4 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200d9bc: 86 00 e0 01 inc %g3 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200d9c0: c8 24 20 14 st %g4, [ %l0 + 0x14 ] <== NOT EXECUTED 200d9c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200d9c8: 02 80 00 a0 be 200dc48 <== NOT EXECUTED 200d9cc: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 200d9d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d9d4: 32 bf ff c3 bne,a 200d8e0 <== NOT EXECUTED 200d9d8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED prevCounter = pipe->readerCounter; 200d9dc: 10 80 00 0c b 200da0c <== NOT EXECUTED 200d9e0: e4 04 20 20 ld [ %l0 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 200d9e4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d9e8: 7f ff e0 3d call 2005adc <== NOT EXECUTED 200d9ec: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d9f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d9f4: 12 bf ff e3 bne 200d980 <== NOT EXECUTED 200d9f8: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200d9fc: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 200da00: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 200da04: 32 bf ff b7 bne,a 200d8e0 <== NOT EXECUTED 200da08: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 200da0c: 7f ff e0 7b call 2005bf8 <== NOT EXECUTED 200da10: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200da14: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200da18: 40 00 03 0a call 200e640 <== NOT EXECUTED 200da1c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200da20: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200da24: 22 bf ff f0 be,a 200d9e4 <== NOT EXECUTED 200da28: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 200da2c: 10 bf ff d5 b 200d980 <== NOT EXECUTED 200da30: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 200da34: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200da38: 12 80 00 89 bne 200dc5c <== NOT EXECUTED 200da3c: d0 04 22 70 ld [ %l0 + 0x270 ], %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200da40: 7f ff e0 6e call 2005bf8 <== NOT EXECUTED 200da44: e4 24 40 00 st %l2, [ %l1 ] <== NOT EXECUTED err = pipe_new(pipep); if (err) return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200da48: 10 bf ff 9c b 200d8b8 <== NOT EXECUTED 200da4c: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200da50: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200da54: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200da58: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200da5c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200da60: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED 200da64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200da68: 02 80 00 6e be 200dc20 <== NOT EXECUTED 200da6c: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200da70: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 200da74: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200da78: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 200da7c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200da80: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== NOT EXECUTED 200da84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200da88: 12 bf ff 95 bne 200d8dc <== NOT EXECUTED 200da8c: c4 24 20 24 st %g2, [ %l0 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200da90: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200da94: 40 00 02 d4 call 200e5e4 <== NOT EXECUTED 200da98: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200da9c: 10 bf ff 91 b 200d8e0 <== NOT EXECUTED 200daa0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 200daa4: 7f ff f6 67 call 200b440 <== NOT EXECUTED 200daa8: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 200daac: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED 200dab0: 02 bf ff 7c be 200d8a0 <== NOT EXECUTED 200dab4: a4 10 00 13 mov %l3, %l2 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 200dab8: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); 200dabc: c0 24 c0 00 clr [ %l3 ] <== NOT EXECUTED 200dac0: c0 24 e0 08 clr [ %l3 + 8 ] <== NOT EXECUTED 200dac4: c0 24 e0 0c clr [ %l3 + 0xc ] <== NOT EXECUTED 200dac8: c0 24 e0 10 clr [ %l3 + 0x10 ] <== NOT EXECUTED 200dacc: c0 24 e0 14 clr [ %l3 + 0x14 ] <== NOT EXECUTED 200dad0: c0 24 e0 18 clr [ %l3 + 0x18 ] <== NOT EXECUTED 200dad4: c0 24 e0 1c clr [ %l3 + 0x1c ] <== NOT EXECUTED 200dad8: c0 24 e0 20 clr [ %l3 + 0x20 ] <== NOT EXECUTED 200dadc: c0 24 e0 24 clr [ %l3 + 0x24 ] <== NOT EXECUTED 200dae0: c0 24 e0 28 clr [ %l3 + 0x28 ] <== NOT EXECUTED 200dae4: c0 24 e0 2c clr [ %l3 + 0x2c ] <== NOT EXECUTED 200dae8: c0 24 e0 30 clr [ %l3 + 0x30 ] <== NOT EXECUTED pipe->Size = PIPE_BUF; 200daec: c2 24 e0 04 st %g1, [ %l3 + 4 ] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200daf0: 7f ff f6 54 call 200b440 <== NOT EXECUTED 200daf4: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED if (! pipe->Buffer) 200daf8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dafc: 02 80 00 46 be 200dc14 <== NOT EXECUTED 200db00: d0 24 c0 00 st %o0, [ %l3 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 200db04: 29 00 80 6f sethi %hi(0x201bc00), %l4 <== NOT EXECUTED 200db08: d0 4d 20 40 ldsb [ %l4 + 0x40 ], %o0 ! 201bc40 <== NOT EXECUTED 200db0c: 2b 14 12 5c sethi %hi(0x50497000), %l5 <== NOT EXECUTED 200db10: 82 15 62 00 or %l5, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200db14: 92 10 20 00 clr %o1 <== NOT EXECUTED 200db18: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200db1c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200db20: 40 00 02 5f call 200e49c <== NOT EXECUTED 200db24: 96 04 e0 2c add %l3, 0x2c, %o3 <== NOT EXECUTED 200db28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200db2c: 32 80 00 38 bne,a 200dc0c <== NOT EXECUTED 200db30: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED rtems_build_name ('P', 'I', 'r', c), RTEMS_BARRIER_MANUAL_RELEASE, 0, &pipe->readBarrier) != RTEMS_SUCCESSFUL) goto err_rbar; if (rtems_barrier_create( 200db34: d0 4d 20 40 ldsb [ %l4 + 0x40 ], %o0 <== NOT EXECUTED 200db38: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200db3c: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200db40: 92 10 20 00 clr %o1 <== NOT EXECUTED 200db44: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200db48: 94 10 20 00 clr %o2 <== NOT EXECUTED 200db4c: 40 00 02 54 call 200e49c <== NOT EXECUTED 200db50: 96 04 e0 30 add %l3, 0x30, %o3 <== NOT EXECUTED 200db54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200db58: 12 80 00 2a bne 200dc00 <== NOT EXECUTED 200db5c: aa 15 63 00 or %l5, 0x300, %l5 <== NOT EXECUTED rtems_build_name ('P', 'I', 'w', c), RTEMS_BARRIER_MANUAL_RELEASE, 0, &pipe->writeBarrier) != RTEMS_SUCCESSFUL) goto err_wbar; if (rtems_semaphore_create( 200db60: d0 4d 20 40 ldsb [ %l4 + 0x40 ], %o0 <== NOT EXECUTED 200db64: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200db68: 90 12 00 15 or %o0, %l5, %o0 <== NOT EXECUTED 200db6c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200db70: 96 10 20 00 clr %o3 <== NOT EXECUTED 200db74: 7f ff df 39 call 2005858 <== NOT EXECUTED 200db78: 98 04 e0 28 add %l3, 0x28, %o4 <== NOT EXECUTED 200db7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200db80: 12 80 00 1e bne 200dbf8 <== NOT EXECUTED 200db84: ac 07 bf f8 add %fp, -8, %l6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 200db88: d2 04 e0 2c ld [ %l3 + 0x2c ], %o1 <== NOT EXECUTED 200db8c: 2b 00 80 73 sethi %hi(0x201cc00), %l5 <== NOT EXECUTED 200db90: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED 200db94: 7f ff e6 2a call 200743c <_Objects_Get> <== NOT EXECUTED 200db98: 90 15 63 20 or %l5, 0x320, %o0 <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state 200db9c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200dba0: 27 04 00 00 sethi %hi(0x10000000), %l3 <== NOT EXECUTED 200dba4: 82 10 40 13 or %g1, %l3, %g1 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200dba8: 7f ff e8 b7 call 2007e84 <_Thread_Enable_dispatch> <== NOT EXECUTED 200dbac: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED 200dbb0: d2 04 a0 30 ld [ %l2 + 0x30 ], %o1 <== NOT EXECUTED 200dbb4: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED 200dbb8: 7f ff e6 21 call 200743c <_Objects_Get> <== NOT EXECUTED 200dbbc: 90 15 63 20 or %l5, 0x320, %o0 <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 200dbc0: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200dbc4: a6 10 40 13 or %g1, %l3, %l3 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200dbc8: 7f ff e8 af call 2007e84 <_Thread_Enable_dispatch> <== NOT EXECUTED 200dbcc: e6 22 20 4c st %l3, [ %o0 + 0x4c ] <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200dbd0: c2 0d 20 40 ldub [ %l4 + 0x40 ], %g1 <== NOT EXECUTED 200dbd4: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200dbd8: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200dbdc: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200dbe0: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200dbe4: 12 bf ff 24 bne 200d874 <== NOT EXECUTED 200dbe8: c4 2d 20 40 stb %g2, [ %l4 + 0x40 ] <== NOT EXECUTED c = 'a'; 200dbec: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200dbf0: 10 bf ff 21 b 200d874 <== NOT EXECUTED 200dbf4: c2 2d 20 40 stb %g1, [ %l4 + 0x40 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200dbf8: 40 00 02 61 call 200e57c <== NOT EXECUTED 200dbfc: d0 04 e0 30 ld [ %l3 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200dc00: 40 00 02 5f call 200e57c <== NOT EXECUTED 200dc04: d0 04 e0 2c ld [ %l3 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200dc08: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED 200dc0c: 7f ff f4 8d call 200ae40 <== NOT EXECUTED 200dc10: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 200dc14: 7f ff f4 8b call 200ae40 <== NOT EXECUTED 200dc18: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 200dc1c: 30 bf ff 21 b,a 200d8a0 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 200dc20: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200dc24: 40 00 02 70 call 200e5e4 <== NOT EXECUTED 200dc28: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200dc2c: 10 bf ff 92 b 200da74 <== NOT EXECUTED 200dc30: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 200dc34: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200dc38: 40 00 02 6b call 200e5e4 <== NOT EXECUTED 200dc3c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200dc40: 10 bf ff 34 b 200d910 <== NOT EXECUTED 200dc44: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 200dc48: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200dc4c: 40 00 02 66 call 200e5e4 <== NOT EXECUTED 200dc50: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED 200dc54: 10 bf ff 5f b 200d9d0 <== NOT EXECUTED 200dc58: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 200dc5c: 40 00 02 48 call 200e57c <== NOT EXECUTED 200dc60: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200dc64: 40 00 02 46 call 200e57c <== NOT EXECUTED 200dc68: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200dc6c: 7f ff df 6f call 2005a28 <== NOT EXECUTED 200dc70: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200dc74: 7f ff f4 73 call 200ae40 <== NOT EXECUTED 200dc78: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED free(pipe); 200dc7c: 7f ff f4 71 call 200ae40 <== NOT EXECUTED 200dc80: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200dc84: 7f ff df dd call 2005bf8 <== NOT EXECUTED 200dc88: d0 04 22 70 ld [ %l0 + 0x270 ], %o0 <== NOT EXECUTED 200dc8c: 81 c7 e0 08 ret 200dc90: 81 e8 00 00 restore 02009e50 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2009e50: 05 00 81 b5 sethi %hi(0x206d400), %g2 <== NOT EXECUTED 2009e54: c2 00 a3 98 ld [ %g2 + 0x398 ], %g1 ! 206d798 <== NOT EXECUTED 2009e58: 84 10 a3 98 or %g2, 0x398, %g2 <== NOT EXECUTED 2009e5c: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED 2009e60: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2009e64: 02 80 00 10 be 2009ea4 <== NOT EXECUTED 2009e68: 01 00 00 00 nop <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) { 2009e6c: c8 02 60 10 ld [ %o1 + 0x10 ], %g4 <== NOT EXECUTED 2009e70: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED 2009e74: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 2009e78: 32 80 00 08 bne,a 2009e98 <== NOT EXECUTED 2009e7c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2009e80: 81 c3 e0 08 retl <== NOT EXECUTED 2009e84: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) { 2009e88: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 2009e8c: 02 80 00 08 be 2009eac <== NOT EXECUTED 2009e90: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { 2009e94: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2009e98: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2009e9c: 32 bf ff fb bne,a 2009e88 <== NOT EXECUTED 2009ea0: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED return true; } } return false; } 2009ea4: 81 c3 e0 08 retl <== NOT EXECUTED 2009ea8: 90 10 20 00 clr %o0 <== NOT EXECUTED 2009eac: 81 c3 e0 08 retl <== NOT EXECUTED 2009eb0: 01 00 00 00 nop 020037a8 : long fpathconf( int fd, int name ) { 20037a8: 9d e3 bf a0 save %sp, -96, %sp long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 20037ac: 03 00 80 7f sethi %hi(0x201fc00), %g1 20037b0: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201fd74 20037b4: 80 a6 00 01 cmp %i0, %g1 20037b8: 1a 80 00 3f bcc 20038b4 20037bc: 03 00 80 81 sethi %hi(0x2020400), %g1 iop = rtems_libio_iop(fd); 20037c0: c2 00 62 a8 ld [ %g1 + 0x2a8 ], %g1 ! 20206a8 20037c4: 85 2e 20 06 sll %i0, 6, %g2 20037c8: b1 2e 20 03 sll %i0, 3, %i0 20037cc: b0 06 00 02 add %i0, %g2, %i0 20037d0: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 20037d4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 20037d8: 80 88 61 00 btst 0x100, %g1 20037dc: 02 80 00 36 be 20038b4 20037e0: 80 88 60 02 btst 2, %g1 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 20037e4: 02 80 00 3a be 20038cc 20037e8: 80 a6 60 0b cmp %i1, 0xb * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 20037ec: 08 80 00 08 bleu 200380c 20037f0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 20037f4: 40 00 3b d7 call 2012750 <__errno> 20037f8: b0 10 3f ff mov -1, %i0 20037fc: 82 10 20 16 mov 0x16, %g1 2003800: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 2003804: 81 c7 e0 08 ret 2003808: 81 e8 00 00 restore * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 200380c: b3 2e 60 02 sll %i1, 2, %i1 2003810: 05 00 80 0d sethi %hi(0x2003400), %g2 2003814: 84 10 a3 78 or %g2, 0x378, %g2 ! 2003778 2003818: c4 00 80 19 ld [ %g2 + %i1 ], %g2 200381c: 81 c0 80 00 jmp %g2 2003820: 01 00 00 00 nop break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 2003824: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 2003828: 81 c7 e0 08 ret 200382c: 81 e8 00 00 restore break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 2003830: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 2003834: 81 c7 e0 08 ret 2003838: 81 e8 00 00 restore break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 200383c: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 2003840: 81 c7 e0 08 ret 2003844: 81 e8 00 00 restore break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 2003848: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 200384c: 81 c7 e0 08 ret 2003850: 81 e8 00 00 restore break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 2003854: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 2003858: 81 c7 e0 08 ret 200385c: 81 e8 00 00 restore break; case _PC_PATH_MAX: return_value = the_limits->path_max; break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 2003860: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 2003864: 81 c7 e0 08 ret 2003868: 81 e8 00 00 restore break; case _PC_NAME_MAX: return_value = the_limits->name_max; break; case _PC_PATH_MAX: return_value = the_limits->path_max; 200386c: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 2003870: 81 c7 e0 08 ret 2003874: 81 e8 00 00 restore break; case _PC_MAX_INPUT: return_value = the_limits->max_input; break; case _PC_NAME_MAX: return_value = the_limits->name_max; 2003878: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 200387c: 81 c7 e0 08 ret 2003880: 81 e8 00 00 restore break; case _PC_MAX_CANON: return_value = the_limits->max_canon; break; case _PC_MAX_INPUT: return_value = the_limits->max_input; 2003884: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 2003888: 81 c7 e0 08 ret 200388c: 81 e8 00 00 restore switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; break; case _PC_MAX_CANON: return_value = the_limits->max_canon; 2003890: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 2003894: 81 c7 e0 08 ret 2003898: 81 e8 00 00 restore the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; 200389c: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 20038a0: 81 c7 e0 08 ret 20038a4: 81 e8 00 00 restore break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 20038a8: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 20038ac: 81 c7 e0 08 ret 20038b0: 81 e8 00 00 restore rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 20038b4: 40 00 3b a7 call 2012750 <__errno> 20038b8: b0 10 3f ff mov -1, %i0 20038bc: 82 10 20 09 mov 9, %g1 20038c0: c2 22 00 00 st %g1, [ %o0 ] 20038c4: 81 c7 e0 08 ret 20038c8: 81 e8 00 00 restore rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 20038cc: 40 00 3b a1 call 2012750 <__errno> <== NOT EXECUTED 20038d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20038d4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20038d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20038dc: 81 c7 e0 08 ret <== NOT EXECUTED 20038e0: 81 e8 00 00 restore <== NOT EXECUTED 0200ae40 : void free( void *ptr ) { MSBUMP(free_calls, 1); 200ae40: 9d e3 bf a0 save %sp, -96, %sp 200ae44: 03 00 80 70 sethi %hi(0x201c000), %g1 200ae48: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 201c3e0 200ae4c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 200ae50: b2 10 00 18 mov %i0, %i1 200ae54: 84 00 a0 01 inc %g2 if ( !ptr ) 200ae58: 80 a6 20 00 cmp %i0, 0 200ae5c: 02 80 00 15 be 200aeb0 200ae60: c4 20 60 0c st %g2, [ %g1 + 0xc ] /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 200ae64: 03 00 80 71 sethi %hi(0x201c400), %g1 200ae68: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201c740 <_System_state_Current> 200ae6c: 80 a0 60 03 cmp %g1, 3 200ae70: 02 80 00 17 be 200aecc 200ae74: 03 00 80 70 sethi %hi(0x201c000), %g1 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200ae78: c2 00 61 18 ld [ %g1 + 0x118 ], %g1 ! 201c118 200ae7c: 80 a0 60 00 cmp %g1, 0 200ae80: 02 80 00 06 be 200ae98 200ae84: 21 00 80 6e sethi %hi(0x201b800), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 200ae88: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 200ae8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ae90: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 200ae94: 21 00 80 6e sethi %hi(0x201b800), %l0 <== NOT EXECUTED 200ae98: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0 ! 201bab0 200ae9c: 40 00 07 02 call 200caa4 <_Protected_heap_Free> 200aea0: 92 10 00 19 mov %i1, %o1 200aea4: 80 8a 20 ff btst 0xff, %o0 200aea8: 02 80 00 04 be 200aeb8 200aeac: c2 04 22 b0 ld [ %l0 + 0x2b0 ], %g1 200aeb0: 81 c7 e0 08 ret 200aeb4: 81 e8 00 00 restore printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 200aeb8: 31 00 80 6b sethi %hi(0x201ac00), %i0 <== NOT EXECUTED 200aebc: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 200aec0: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 200aec4: 7f ff e0 62 call 200304c <== NOT EXECUTED 200aec8: 91 ee 23 60 restore %i0, 0x360, %o0 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 200aecc: 40 00 01 37 call 200b3a8 200aed0: 01 00 00 00 nop 200aed4: 80 8a 20 ff btst 0xff, %o0 200aed8: 12 bf ff e8 bne 200ae78 200aedc: 03 00 80 70 sethi %hi(0x201c000), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 200aee0: 40 00 01 44 call 200b3f0 <== NOT EXECUTED 200aee4: 81 e8 00 00 restore <== NOT EXECUTED 200aee8: 01 00 00 00 nop 0202a318 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 202a318: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 202a31c: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED 202a320: 82 10 63 b0 or %g1, 0x3b0, %g1 ! 206d7b0 <== NOT EXECUTED 202a324: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202a328: 02 80 00 18 be 202a388 <== NOT EXECUTED 202a32c: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 202a330: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202a334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a338: 22 80 00 09 be,a 202a35c <== NOT EXECUTED 202a33c: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a340: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a344: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a348: 22 80 00 05 be,a 202a35c <== NOT EXECUTED 202a34c: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a350: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a354: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 202a358: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a35c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a360: 02 80 00 08 be 202a380 <== NOT EXECUTED 202a364: 01 00 00 00 nop <== NOT EXECUTED 202a368: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a36c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a370: 02 80 00 04 be 202a380 <== NOT EXECUTED 202a374: 01 00 00 00 nop <== NOT EXECUTED 202a378: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a37c: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 202a380: 7f ff 6f 83 call 200618c <== NOT EXECUTED 202a384: 81 e8 00 00 restore <== NOT EXECUTED 202a388: 81 c7 e0 08 ret <== NOT EXECUTED 202a38c: 81 e8 00 00 restore <== NOT EXECUTED 02019ad4 : int fstat( int fd, struct stat *sbuf ) { 2019ad4: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 2019ad8: 80 a6 60 00 cmp %i1, 0 2019adc: 02 80 00 3b be 2019bc8 2019ae0: 03 00 80 6e sethi %hi(0x201b800), %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 2019ae4: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201baa4 2019ae8: 80 a6 00 01 cmp %i0, %g1 2019aec: 1a 80 00 2b bcc 2019b98 2019af0: 03 00 80 70 sethi %hi(0x201c000), %g1 2019af4: d0 00 63 d0 ld [ %g1 + 0x3d0 ], %o0 ! 201c3d0 2019af8: 83 2e 20 06 sll %i0, 6, %g1 2019afc: b1 2e 20 03 sll %i0, 3, %i0 2019b00: b0 06 00 01 add %i0, %g1, %i0 2019b04: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 2019b08: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2019b0c: 80 88 61 00 btst 0x100, %g1 2019b10: 02 80 00 22 be 2019b98 2019b14: 01 00 00 00 nop if ( !iop->handlers ) 2019b18: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2019b1c: 80 a0 60 00 cmp %g1, 0 2019b20: 02 80 00 1e be 2019b98 2019b24: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2019b28: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2019b2c: 80 a0 60 00 cmp %g1, 0 2019b30: 02 80 00 20 be 2019bb0 2019b34: 92 10 00 19 mov %i1, %o1 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 2019b38: c0 26 40 00 clr [ %i1 ] 2019b3c: c0 26 60 04 clr [ %i1 + 4 ] 2019b40: c0 26 60 08 clr [ %i1 + 8 ] 2019b44: c0 26 60 0c clr [ %i1 + 0xc ] 2019b48: c0 26 60 10 clr [ %i1 + 0x10 ] 2019b4c: c0 26 60 14 clr [ %i1 + 0x14 ] 2019b50: c0 26 60 18 clr [ %i1 + 0x18 ] 2019b54: c0 26 60 1c clr [ %i1 + 0x1c ] 2019b58: c0 26 60 20 clr [ %i1 + 0x20 ] 2019b5c: c0 26 60 24 clr [ %i1 + 0x24 ] 2019b60: c0 26 60 28 clr [ %i1 + 0x28 ] 2019b64: c0 26 60 2c clr [ %i1 + 0x2c ] 2019b68: c0 26 60 30 clr [ %i1 + 0x30 ] 2019b6c: c0 26 60 34 clr [ %i1 + 0x34 ] 2019b70: c0 26 60 38 clr [ %i1 + 0x38 ] 2019b74: c0 26 60 3c clr [ %i1 + 0x3c ] 2019b78: c0 26 60 40 clr [ %i1 + 0x40 ] 2019b7c: c0 26 60 44 clr [ %i1 + 0x44 ] return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 2019b80: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2019b84: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2019b88: 9f c0 40 00 call %g1 2019b8c: 90 02 20 1c add %o0, 0x1c, %o0 } 2019b90: 81 c7 e0 08 ret 2019b94: 91 e8 00 08 restore %g0, %o0, %o0 iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 2019b98: 7f ff d7 70 call 200f958 <__errno> 2019b9c: b0 10 3f ff mov -1, %i0 2019ba0: 82 10 20 09 mov 9, %g1 2019ba4: c2 22 00 00 st %g1, [ %o0 ] 2019ba8: 81 c7 e0 08 ret 2019bac: 81 e8 00 00 restore if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2019bb0: 7f ff d7 6a call 200f958 <__errno> <== NOT EXECUTED 2019bb4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2019bb8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2019bbc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019bc0: 81 c7 e0 08 ret <== NOT EXECUTED 2019bc4: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 2019bc8: 7f ff d7 64 call 200f958 <__errno> 2019bcc: b0 10 3f ff mov -1, %i0 2019bd0: 82 10 20 0e mov 0xe, %g1 2019bd4: c2 22 00 00 st %g1, [ %o0 ] 2019bd8: 81 c7 e0 08 ret 2019bdc: 81 e8 00 00 restore 02028e18 : #include int fsync( int fd ) { 2028e18: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028e1c: 03 00 81 a5 sethi %hi(0x2069400), %g1 2028e20: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 2069604 2028e24: 80 a6 00 01 cmp %i0, %g1 2028e28: 1a 80 00 19 bcc 2028e8c 2028e2c: 03 00 81 b5 sethi %hi(0x206d400), %g1 iop = rtems_libio_iop( fd ); 2028e30: d0 00 63 50 ld [ %g1 + 0x350 ], %o0 ! 206d750 2028e34: 83 2e 20 06 sll %i0, 6, %g1 2028e38: b1 2e 20 03 sll %i0, 3, %i0 2028e3c: b0 06 00 01 add %i0, %g1, %i0 2028e40: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2028e44: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2028e48: 80 88 61 00 btst 0x100, %g1 2028e4c: 02 80 00 10 be 2028e8c 2028e50: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028e54: 02 80 00 14 be 2028ea4 2028e58: 01 00 00 00 nop /* * Now process the fsync(). */ if ( !iop->handlers ) 2028e5c: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2028e60: 80 a0 60 00 cmp %g1, 0 2028e64: 02 80 00 0a be 2028e8c 2028e68: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 2028e6c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2028e70: 80 a0 60 00 cmp %g1, 0 2028e74: 02 80 00 12 be 2028ebc 2028e78: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 2028e7c: 9f c0 40 00 call %g1 2028e80: 01 00 00 00 nop } 2028e84: 81 c7 e0 08 ret 2028e88: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 2028e8c: 40 00 6d 4e call 20443c4 <__errno> <== NOT EXECUTED 2028e90: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028e94: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2028e98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028e9c: 81 c7 e0 08 ret <== NOT EXECUTED 2028ea0: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028ea4: 40 00 6d 48 call 20443c4 <__errno> 2028ea8: b0 10 3f ff mov -1, %i0 2028eac: 82 10 20 16 mov 0x16, %g1 2028eb0: c2 22 00 00 st %g1, [ %o0 ] 2028eb4: 81 c7 e0 08 ret 2028eb8: 81 e8 00 00 restore if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028ebc: 40 00 6d 42 call 20443c4 <__errno> 2028ec0: b0 10 3f ff mov -1, %i0 2028ec4: 82 10 20 86 mov 0x86, %g1 2028ec8: c2 22 00 00 st %g1, [ %o0 ] 2028ecc: 81 c7 e0 08 ret 2028ed0: 81 e8 00 00 restore 0200aeec : int ftruncate( int fd, off_t length ) { 200aeec: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200aef0: 03 00 80 6e sethi %hi(0x201b800), %g1 200aef4: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201baa4 200aef8: 80 a6 00 01 cmp %i0, %g1 200aefc: 1a 80 00 2b bcc 200afa8 200af00: 03 00 80 70 sethi %hi(0x201c000), %g1 iop = rtems_libio_iop( fd ); 200af04: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 201c3d0 200af08: 85 2e 20 06 sll %i0, 6, %g2 200af0c: b1 2e 20 03 sll %i0, 3, %i0 200af10: b0 06 00 02 add %i0, %g2, %i0 200af14: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200af18: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200af1c: 80 88 61 00 btst 0x100, %g1 200af20: 02 80 00 22 be 200afa8 200af24: 01 00 00 00 nop /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200af28: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 200af2c: c2 27 bf ec st %g1, [ %fp + -20 ] 200af30: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 200af34: c2 27 bf f0 st %g1, [ %fp + -16 ] 200af38: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200af3c: c2 27 bf f4 st %g1, [ %fp + -12 ] 200af40: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 200af44: c2 27 bf f8 st %g1, [ %fp + -8 ] 200af48: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 if ( !loc.ops->node_type_h ) 200af4c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200af50: 80 a0 60 00 cmp %g1, 0 200af54: 02 80 00 21 be 200afd8 200af58: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200af5c: 9f c0 40 00 call %g1 200af60: 90 07 bf ec add %fp, -20, %o0 200af64: 80 a2 20 01 cmp %o0, 1 200af68: 02 80 00 22 be 200aff0 200af6c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200af70: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200af74: 80 88 60 04 btst 4, %g1 200af78: 02 80 00 12 be 200afc0 200af7c: 01 00 00 00 nop if ( !iop->handlers->ftruncate_h ) 200af80: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200af84: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200af88: 80 a0 60 00 cmp %g1, 0 200af8c: 02 80 00 13 be 200afd8 200af90: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 200af94: 92 10 00 19 mov %i1, %o1 200af98: 9f c0 40 00 call %g1 200af9c: 94 10 00 1a mov %i2, %o2 } 200afa0: 81 c7 e0 08 ret 200afa4: 91 e8 00 08 restore %g0, %o0, %o0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 200afa8: 40 00 12 6c call 200f958 <__errno> <== NOT EXECUTED 200afac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200afb0: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 200afb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200afb8: 81 c7 e0 08 ret <== NOT EXECUTED 200afbc: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200afc0: 40 00 12 66 call 200f958 <__errno> <== NOT EXECUTED 200afc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200afc8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200afcc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200afd0: 81 c7 e0 08 ret <== NOT EXECUTED 200afd4: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200afd8: 40 00 12 60 call 200f958 <__errno> <== NOT EXECUTED 200afdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200afe0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200afe4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200afe8: 81 c7 e0 08 ret <== NOT EXECUTED 200afec: 81 e8 00 00 restore <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 200aff0: 40 00 12 5a call 200f958 <__errno> 200aff4: b0 10 3f ff mov -1, %i0 200aff8: 82 10 20 15 mov 0x15, %g1 200affc: c2 22 00 00 st %g1, [ %o0 ] 200b000: 81 c7 e0 08 ret 200b004: 81 e8 00 00 restore 0205de54 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 205de54: 9d e3 bf 88 save %sp, -120, %sp /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 205de58: 03 00 81 a5 sethi %hi(0x2069400), %g1 205de5c: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 2069604 205de60: 80 a6 00 01 cmp %i0, %g1 205de64: 1a 80 00 08 bcc 205de84 205de68: a0 10 20 00 clr %l0 205de6c: 03 00 81 b5 sethi %hi(0x206d400), %g1 205de70: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 206d750 205de74: 83 2e 20 06 sll %i0, 6, %g1 205de78: b1 2e 20 03 sll %i0, 3, %i0 205de7c: b0 06 00 01 add %i0, %g1, %i0 205de80: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 205de84: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 205de88: c2 27 bf ec st %g1, [ %fp + -20 ] 205de8c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 205de90: c2 27 bf f0 st %g1, [ %fp + -16 ] 205de94: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 205de98: c2 27 bf f4 st %g1, [ %fp + -12 ] 205de9c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 205dea0: c2 27 bf f8 st %g1, [ %fp + -8 ] 205dea4: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 if ( !loc.ops->node_type_h ) 205dea8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 205deac: 80 a0 60 00 cmp %g1, 0 205deb0: 02 80 00 17 be 205df0c 205deb4: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 205deb8: 9f c0 40 00 call %g1 205debc: 90 07 bf ec add %fp, -20, %o0 205dec0: 80 a2 20 01 cmp %o0, 1 205dec4: 12 80 00 0c bne 205def4 205dec8: 01 00 00 00 nop /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 205decc: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 205ded0: c2 00 60 08 ld [ %g1 + 8 ], %g1 205ded4: 80 a0 60 00 cmp %g1, 0 205ded8: 02 80 00 0d be 205df0c 205dedc: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 205dee0: 92 10 00 19 mov %i1, %o1 205dee4: 9f c0 40 00 call %g1 205dee8: 94 10 00 1a mov %i2, %o2 } 205deec: 81 c7 e0 08 ret 205def0: 91 e8 00 08 restore %g0, %o0, %o0 loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 205def4: 7f ff 99 34 call 20443c4 <__errno> 205def8: b0 10 3f ff mov -1, %i0 205defc: 82 10 20 14 mov 0x14, %g1 205df00: c2 22 00 00 st %g1, [ %o0 ] 205df04: 81 c7 e0 08 ret 205df08: 81 e8 00 00 restore * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 205df0c: 7f ff 99 2e call 20443c4 <__errno> <== NOT EXECUTED 205df10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205df14: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 205df18: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205df1c: 81 c7 e0 08 ret <== NOT EXECUTED 205df20: 81 e8 00 00 restore <== NOT EXECUTED 02029010 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 2029010: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 2029014: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED return _POSIX_types_Gid; } 2029018: 81 c3 e0 08 retl <== NOT EXECUTED 202901c: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 0202970c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 202970c: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2029710: 7f ff ff b3 call 20295dc 2029714: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 2029718: 11 00 81 7b sethi %hi(0x205ec00), %o0 202971c: 13 00 81 a3 sethi %hi(0x2068c00), %o1 2029720: 90 12 22 28 or %o0, 0x228, %o0 2029724: 40 00 6d cf call 2044e60 2029728: 92 12 63 e8 or %o1, 0x3e8, %o1 202972c: a0 92 20 00 orcc %o0, 0, %l0 2029730: 12 80 00 0b bne 202975c 2029734: 92 10 00 1a mov %i2, %o1 2029738: 30 80 00 27 b,a 20297d4 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 202973c: 40 00 84 60 call 204a8bc 2029740: 92 10 00 18 mov %i0, %o1 2029744: 80 a0 00 08 cmp %g0, %o0 2029748: 82 60 3f ff subx %g0, -1, %g1 } else { match = (grp->gr_gid == gid); } if (match) { 202974c: 80 a0 60 00 cmp %g1, 0 2029750: 12 80 00 14 bne 20297a0 2029754: 90 10 00 10 mov %l0, %o0 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2029758: 92 10 00 1a mov %i2, %o1 202975c: 94 10 00 1b mov %i3, %o2 2029760: 96 10 00 1c mov %i4, %o3 2029764: 7f ff fe d1 call 20292a8 2029768: 90 10 00 10 mov %l0, %o0 202976c: 80 a2 20 00 cmp %o0, 0 2029770: 02 80 00 11 be 20297b4 2029774: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; fclose(fp); return -1; } if (name) { 2029778: 32 bf ff f1 bne,a 202973c 202977c: d0 06 80 00 ld [ %i2 ], %o0 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 2029780: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 2029784: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2029788: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 202978c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 2029790: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029794: 02 bf ff f2 be 202975c <== NOT EXECUTED 2029798: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 202979c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20297a0: 40 00 6b 61 call 2044524 20297a4: b0 10 20 00 clr %i0 *result = grp; 20297a8: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20297ac: 81 c7 e0 08 ret 20297b0: 81 e8 00 00 restore errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 20297b4: 40 00 6b 04 call 20443c4 <__errno> <== NOT EXECUTED 20297b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20297bc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20297c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 20297c4: 40 00 6b 58 call 2044524 <== NOT EXECUTED 20297c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 20297cc: 81 c7 e0 08 ret <== NOT EXECUTED 20297d0: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 20297d4: 40 00 6a fc call 20443c4 <__errno> <== NOT EXECUTED 20297d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20297dc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20297e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 20297e4: 81 c7 e0 08 ret <== NOT EXECUTED 20297e8: 81 e8 00 00 restore <== NOT EXECUTED 02029428 : return NULL; return p; } struct group *getgrent(void) { 2029428: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 202942c: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED 2029430: d0 00 60 64 ld [ %g1 + 0x64 ], %o0 ! 206d464 <== NOT EXECUTED 2029434: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029438: 32 80 00 04 bne,a 2029448 <== NOT EXECUTED 202943c: 31 00 81 b5 sethi %hi(0x206d400), %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) return NULL; return &grent; } 2029440: 81 c7 e0 08 ret <== NOT EXECUTED 2029444: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 2029448: 15 00 81 b5 sethi %hi(0x206d400), %o2 <== NOT EXECUTED 202944c: 92 16 21 30 or %i0, 0x130, %o1 <== NOT EXECUTED 2029450: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 2029454: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2029458: 7f ff ff 94 call 20292a8 <== NOT EXECUTED 202945c: b0 16 21 30 or %i0, 0x130, %i0 <== NOT EXECUTED 2029460: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029464: 02 bf ff f7 be 2029440 <== NOT EXECUTED 2029468: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &grent; } 202946c: 81 c7 e0 08 ret <== NOT EXECUTED 2029470: 81 e8 00 00 restore <== NOT EXECUTED 02029820 : } struct group *getgrgid( gid_t gid ) { 2029820: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 2029824: 13 00 81 b5 sethi %hi(0x206d400), %o1 <== NOT EXECUTED 2029828: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 202982c: 92 12 61 30 or %o1, 0x130, %o1 <== NOT EXECUTED 2029830: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2029834: 15 00 81 b5 sethi %hi(0x206d400), %o2 <== NOT EXECUTED 2029838: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202983c: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 2029840: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2029844: 7f ff ff ea call 20297ec <== NOT EXECUTED 2029848: b0 10 20 00 clr %i0 <== NOT EXECUTED 202984c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029850: 22 80 00 02 be,a 2029858 <== NOT EXECUTED 2029854: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2029858: 81 c7 e0 08 ret <== NOT EXECUTED 202985c: 81 e8 00 00 restore <== NOT EXECUTED 020297ec : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20297ec: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 20297f0: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 20297f4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 20297f8: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 20297fc: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2029800: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2029804: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2029808: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 202980c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2029810: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029814: 7f ff ff be call 202970c <== NOT EXECUTED 2029818: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202981c: 01 00 00 00 nop 0202990c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202990c: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2029910: 7f ff ff 33 call 20295dc 2029914: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 2029918: 11 00 81 7b sethi %hi(0x205ec00), %o0 202991c: 13 00 81 a3 sethi %hi(0x2068c00), %o1 2029920: 90 12 21 70 or %o0, 0x170, %o0 2029924: 40 00 6d 4f call 2044e60 2029928: 92 12 63 e8 or %o1, 0x3e8, %o1 202992c: a0 92 20 00 orcc %o0, 0, %l0 2029930: 12 80 00 0b bne 202995c 2029934: 92 10 00 1a mov %i2, %o1 2029938: 30 80 00 27 b,a 20299d4 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 202993c: 40 00 83 e0 call 204a8bc 2029940: 92 10 00 18 mov %i0, %o1 2029944: 80 a0 00 08 cmp %g0, %o0 2029948: 82 60 3f ff subx %g0, -1, %g1 } else { match = (pwd->pw_uid == uid); } if (match) { 202994c: 80 a0 60 00 cmp %g1, 0 2029950: 12 80 00 14 bne 20299a0 2029954: 90 10 00 10 mov %l0, %o0 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 2029958: 92 10 00 1a mov %i2, %o1 202995c: 94 10 00 1b mov %i3, %o2 2029960: 96 10 00 1c mov %i4, %o3 2029964: 7f ff fe c4 call 2029474 2029968: 90 10 00 10 mov %l0, %o0 202996c: 80 a2 20 00 cmp %o0, 0 2029970: 02 80 00 11 be 20299b4 2029974: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; fclose(fp); return -1; } if (name) { 2029978: 32 bf ff f1 bne,a 202993c 202997c: d0 06 80 00 ld [ %i2 ], %o0 match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 2029980: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 2029984: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2029988: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 202998c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 2029990: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029994: 02 bf ff f2 be 202995c <== NOT EXECUTED 2029998: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 202999c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20299a0: 40 00 6a e1 call 2044524 20299a4: b0 10 20 00 clr %i0 *result = pwd; 20299a8: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20299ac: 81 c7 e0 08 ret 20299b0: 81 e8 00 00 restore errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 20299b4: 40 00 6a 84 call 20443c4 <__errno> <== NOT EXECUTED 20299b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20299bc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20299c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 20299c4: 40 00 6a d8 call 2044524 <== NOT EXECUTED 20299c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 20299cc: 81 c7 e0 08 ret <== NOT EXECUTED 20299d0: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 20299d4: 40 00 6a 7c call 20443c4 <__errno> <== NOT EXECUTED 20299d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20299dc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20299e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 20299e4: 81 c7 e0 08 ret <== NOT EXECUTED 20299e8: 81 e8 00 00 restore <== NOT EXECUTED 02029590 : return NULL; return p; } struct passwd *getpwent(void) { 2029590: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2029594: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED 2029598: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 206d37c <== NOT EXECUTED 202959c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20295a0: 32 80 00 04 bne,a 20295b0 <== NOT EXECUTED 20295a4: 31 00 81 b5 sethi %hi(0x206d400), %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) return NULL; return &pwent; } 20295a8: 81 c7 e0 08 ret <== NOT EXECUTED 20295ac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 20295b0: 15 00 81 b4 sethi %hi(0x206d000), %o2 <== NOT EXECUTED 20295b4: 92 16 20 48 or %i0, 0x48, %o1 <== NOT EXECUTED 20295b8: 94 12 a3 80 or %o2, 0x380, %o2 <== NOT EXECUTED 20295bc: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20295c0: 7f ff ff ad call 2029474 <== NOT EXECUTED 20295c4: b0 16 20 48 or %i0, 0x48, %i0 <== NOT EXECUTED 20295c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20295cc: 02 bf ff f7 be 20295a8 <== NOT EXECUTED 20295d0: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &pwent; } 20295d4: 81 c7 e0 08 ret <== NOT EXECUTED 20295d8: 81 e8 00 00 restore <== NOT EXECUTED 02029a20 : } struct passwd *getpwuid( uid_t uid ) { 2029a20: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 2029a24: 13 00 81 b5 sethi %hi(0x206d400), %o1 <== NOT EXECUTED 2029a28: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2029a2c: 92 12 60 48 or %o1, 0x48, %o1 <== NOT EXECUTED 2029a30: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2029a34: 15 00 81 b4 sethi %hi(0x206d000), %o2 <== NOT EXECUTED 2029a38: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2029a3c: 94 12 a3 80 or %o2, 0x380, %o2 <== NOT EXECUTED 2029a40: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2029a44: 7f ff ff ea call 20299ec <== NOT EXECUTED 2029a48: b0 10 20 00 clr %i0 <== NOT EXECUTED 2029a4c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029a50: 22 80 00 02 be,a 2029a58 <== NOT EXECUTED 2029a54: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2029a58: 81 c7 e0 08 ret <== NOT EXECUTED 2029a5c: 81 e8 00 00 restore <== NOT EXECUTED 020299ec : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 20299ec: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 20299f0: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 20299f4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 20299f8: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 20299fc: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2029a00: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2029a04: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2029a08: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2029a0c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2029a10: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029a14: 7f ff ff be call 202990c <== NOT EXECUTED 2029a18: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2029a1c: 01 00 00 00 nop 0200b028 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 200b028: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 200b02c: 80 a6 20 00 cmp %i0, 0 200b030: 02 80 00 11 be 200b074 200b034: 01 00 00 00 nop { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 200b038: 7f ff db 4e call 2001d70 200b03c: 01 00 00 00 nop 200b040: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 200b044: 40 00 05 4f call 200c580 <_TOD_Get> 200b048: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 200b04c: 7f ff db 4d call 2001d80 200b050: 90 10 00 10 mov %l0, %o0 useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 200b054: d0 07 bf fc ld [ %fp + -4 ], %o0 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 200b058: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 200b05c: 92 10 23 e8 mov 0x3e8, %o1 200b060: 40 00 37 68 call 2018e00 <.div> 200b064: c2 26 00 00 st %g1, [ %i0 ] 200b068: 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; } 200b06c: 81 c7 e0 08 ret 200b070: 91 e8 20 00 restore %g0, 0, %o0 void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 200b074: 40 00 12 39 call 200f958 <__errno> <== NOT EXECUTED 200b078: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b07c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200b080: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 200b084: 81 c7 e0 08 ret <== NOT EXECUTED 200b088: 81 e8 00 00 restore <== NOT EXECUTED 020062c4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 20062c4: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 20062c8: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED return _POSIX_types_Uid; } 20062cc: 81 c3 e0 08 retl <== NOT EXECUTED 20062d0: d0 10 60 30 lduh [ %g1 + 0x30 ], %o0 <== NOT EXECUTED 020140d0 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 20140d0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 20140d4: e0 06 40 00 ld [ %i1 ], %l0 20140d8: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 20140dc: 82 04 20 54 add %l0, 0x54, %g1 20140e0: 80 a0 80 01 cmp %g2, %g1 20140e4: 12 80 00 30 bne 20141a4 20140e8: 01 00 00 00 nop /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 20140ec: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 20140f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20140f4: 80 a4 00 01 cmp %l0, %g1 20140f8: 02 80 00 31 be 20141bc 20140fc: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 2014100: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 2014104: 80 a0 60 00 cmp %g1, 0 2014108: 12 80 00 2d bne 20141bc 201410c: 01 00 00 00 nop /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2014110: c2 04 20 08 ld [ %l0 + 8 ], %g1 2014114: 80 a0 60 00 cmp %g1, 0 2014118: 22 80 00 06 be,a 2014130 201411c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 2014120: 7f ff d0 dd call 2008494 <_Chain_Extract> 2014124: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2014128: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 201412c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 2014130: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2014134: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2014138: 90 07 bf f8 add %fp, -8, %o0 201413c: 7f ff be 6d call 2003af0 2014140: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 2014144: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * 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) ) { 2014148: 90 10 00 10 mov %l0, %o0 201414c: 7f ff f1 80 call 201074c 2014150: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 2014154: 80 a2 20 00 cmp %o0, 0 2014158: 12 80 00 11 bne 201419c 201415c: 01 00 00 00 nop 2014160: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 2014164: 80 a0 60 00 cmp %g1, 0 2014168: 12 80 00 0d bne 201419c 201416c: 03 00 80 87 sethi %hi(0x2021c00), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 2014170: c2 00 61 4c ld [ %g1 + 0x14c ], %g1 ! 2021d4c 2014174: c4 06 40 00 ld [ %i1 ], %g2 2014178: c6 00 60 04 ld [ %g1 + 4 ], %g3 201417c: 80 a0 c0 02 cmp %g3, %g2 2014180: 22 80 00 02 be,a 2014188 2014184: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 2014188: 90 10 00 10 mov %l0, %o0 201418c: 7f ff be 2e call 2003a44 2014190: b0 10 20 00 clr %i0 2014194: 81 c7 e0 08 ret 2014198: 81 e8 00 00 restore } return 0; } 201419c: 81 c7 e0 08 ret 20141a0: 91 e8 20 00 restore %g0, 0, %o0 /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) rtems_set_errno_and_return_minus_one( ENOTEMPTY ); 20141a4: 40 00 04 8d call 20153d8 <__errno> 20141a8: b0 10 3f ff mov -1, %i0 20141ac: 82 10 20 5a mov 0x5a, %g1 20141b0: c2 22 00 00 st %g1, [ %o0 ] 20141b4: 81 c7 e0 08 ret 20141b8: 81 e8 00 00 restore /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 20141bc: 40 00 04 87 call 20153d8 <__errno> 20141c0: b0 10 3f ff mov -1, %i0 20141c4: 82 10 20 10 mov 0x10, %g1 20141c8: c2 22 00 00 st %g1, [ %o0 ] 20141cc: 81 c7 e0 08 ret 20141d0: 81 e8 00 00 restore 020295dc : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 20295dc: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 20295e0: 03 00 81 b4 sethi %hi(0x206d000), %g1 20295e4: c4 48 63 78 ldsb [ %g1 + 0x378 ], %g2 ! 206d378 20295e8: 80 a0 a0 00 cmp %g2, 0 20295ec: 02 80 00 04 be 20295fc 20295f0: 84 10 20 01 mov 1, %g2 20295f4: 81 c7 e0 08 ret 20295f8: 81 e8 00 00 restore return; etc_passwd_initted = 1; mkdir("/etc", 0777); 20295fc: 92 10 21 ff mov 0x1ff, %o1 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 2029600: c4 28 63 78 stb %g2, [ %g1 + 0x378 ] mkdir("/etc", 0777); 2029604: 11 00 81 7b sethi %hi(0x205ec00), %o0 2029608: 7f ff 75 10 call 2006a48 202960c: 90 12 20 e8 or %o0, 0xe8, %o0 ! 205ece8 <_rodata_start+0x7a8> /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 2029610: 31 00 81 7b sethi %hi(0x205ec00), %i0 2029614: 21 00 81 a3 sethi %hi(0x2068c00), %l0 2029618: 90 16 21 70 or %i0, 0x170, %o0 202961c: 40 00 6e 11 call 2044e60 2029620: 92 14 23 e8 or %l0, 0x3e8, %o1 2029624: 80 a2 20 00 cmp %o0, 0 2029628: 22 80 00 0d be,a 202965c 202962c: 90 16 21 70 or %i0, 0x170, %o0 } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 2029630: 40 00 6b bd call 2044524 2029634: 01 00 00 00 nop } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 2029638: 92 14 23 e8 or %l0, 0x3e8, %o1 202963c: 21 00 81 7b sethi %hi(0x205ec00), %l0 2029640: 40 00 6e 08 call 2044e60 2029644: 90 14 22 28 or %l0, 0x228, %o0 ! 205ee28 <_rodata_start+0x8e8> 2029648: 80 a2 20 00 cmp %o0, 0 202964c: 22 80 00 11 be,a 2029690 2029650: 90 14 22 28 or %l0, 0x228, %o0 fclose(fp); 2029654: 40 00 6b b4 call 2044524 <== NOT EXECUTED 2029658: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 202965c: 13 00 81 88 sethi %hi(0x2062000), %o1 2029660: 40 00 6e 00 call 2044e60 2029664: 92 12 63 08 or %o1, 0x308, %o1 ! 2062308 2029668: b0 92 20 00 orcc %o0, 0, %i0 202966c: 02 bf ff f3 be 2029638 2029670: 92 10 20 01 mov 1, %o1 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 2029674: 94 10 20 66 mov 0x66, %o2 2029678: 96 10 00 18 mov %i0, %o3 202967c: 11 00 81 90 sethi %hi(0x2064000), %o0 2029680: 40 00 72 d8 call 20461e0 2029684: 90 12 20 70 or %o0, 0x70, %o0 ! 2064070 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 2029688: 10 bf ff ea b 2029630 202968c: 90 10 00 18 mov %i0, %o0 * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 2029690: 13 00 81 88 sethi %hi(0x2062000), %o1 2029694: 40 00 6d f3 call 2044e60 2029698: 92 12 63 08 or %o1, 0x308, %o1 ! 2062308 202969c: b0 92 20 00 orcc %o0, 0, %i0 20296a0: 02 bf ff d5 be 20295f4 20296a4: 11 00 81 90 sethi %hi(0x2064000), %o0 fprintf( fp, "root:x:0:root\n" 20296a8: 92 10 20 01 mov 1, %o1 20296ac: 94 10 20 2a mov 0x2a, %o2 20296b0: 96 10 00 18 mov %i0, %o3 20296b4: 40 00 72 cb call 20461e0 20296b8: 90 12 20 d8 or %o0, 0xd8, %o0 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 20296bc: 40 00 6b 9a call 2044524 20296c0: 81 e8 00 00 restore 20296c4: 01 00 00 00 nop 02006394 : int ioctl( int fd, ioctl_command_t command, ... ) { 2006394: 9d e3 bf 98 save %sp, -104, %sp va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 2006398: 03 00 80 88 sethi %hi(0x2022000), %g1 200639c: c2 00 60 e4 ld [ %g1 + 0xe4 ], %g1 ! 20220e4 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 20063a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20063a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20063a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 20063ac: 80 a6 00 01 cmp %i0, %g1 20063b0: 1a 80 00 18 bcc 2006410 20063b4: f4 27 a0 4c st %i2, [ %fp + 0x4c ] iop = rtems_libio_iop( fd ); 20063b8: 03 00 80 8a sethi %hi(0x2022800), %g1 20063bc: d0 00 62 ec ld [ %g1 + 0x2ec ], %o0 ! 2022aec 20063c0: 83 2e 20 06 sll %i0, 6, %g1 20063c4: b1 2e 20 03 sll %i0, 3, %i0 20063c8: b0 06 00 01 add %i0, %g1, %i0 20063cc: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 20063d0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 20063d4: 80 88 61 00 btst 0x100, %g1 20063d8: 02 80 00 0e be 2006410 20063dc: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 20063e0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 20063e4: 80 a0 60 00 cmp %g1, 0 20063e8: 02 80 00 0a be 2006410 20063ec: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 20063f0: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20063f4: 80 a0 60 00 cmp %g1, 0 20063f8: 02 80 00 0c be 2006428 20063fc: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 2006400: 9f c0 40 00 call %g1 2006404: 94 10 00 1a mov %i2, %o2 return rc; } 2006408: 81 c7 e0 08 ret 200640c: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 2006410: 40 00 3d 00 call 2015810 <__errno> 2006414: b0 10 3f ff mov -1, %i0 2006418: 82 10 20 09 mov 9, %g1 200641c: c2 22 00 00 st %g1, [ %o0 ] 2006420: 81 c7 e0 08 ret 2006424: 81 e8 00 00 restore if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006428: 40 00 3c fa call 2015810 <__errno> <== NOT EXECUTED 200642c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2006430: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006434: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2006438: 81 c7 e0 08 ret <== NOT EXECUTED 200643c: 81 e8 00 00 restore <== NOT EXECUTED 02003c74 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2003c74: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2003c78: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 2003c7c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003c80: 02 80 00 03 be 2003c8c <== NOT EXECUTED 2003c84: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2003c88: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2003c8c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003c90: 02 80 00 0c be 2003cc0 <== NOT EXECUTED 2003c94: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 2003c98: 05 00 80 6f sethi %hi(0x201bc00), %g2 <== NOT EXECUTED 2003c9c: c4 00 a0 54 ld [ %g2 + 0x54 ], %g2 ! 201bc54 <__ctype_ptr__> <== NOT EXECUTED 2003ca0: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 2003ca4: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 2003ca8: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 2003cac: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 2003cb0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2003cb4: 22 80 00 02 be,a 2003cbc <== NOT EXECUTED 2003cb8: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 2003cbc: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 2003cc0: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 2003cc4: 02 80 00 16 be 2003d1c <== NOT EXECUTED 2003cc8: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 2003ccc: 02 80 00 41 be 2003dd0 <== NOT EXECUTED 2003cd0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2003cd4: 32 80 00 1a bne,a 2003d3c <== NOT EXECUTED 2003cd8: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2003cdc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003ce0: 05 00 80 6e sethi %hi(0x201b800), %g2 <== NOT EXECUTED 2003ce4: c4 00 a3 a4 ld [ %g2 + 0x3a4 ], %g2 ! 201bba4 <== NOT EXECUTED 2003ce8: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED 2003cec: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003cf0: 16 80 00 09 bge 2003d14 <== NOT EXECUTED 2003cf4: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003cf8: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 2003cfc: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003d00: 12 80 00 39 bne 2003de4 <== NOT EXECUTED 2003d04: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2003d08: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003d0c: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003d10: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2003d14: 81 c7 e0 08 ret <== NOT EXECUTED 2003d18: 81 e8 00 00 restore <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) 2003d1c: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 2003d20: 02 80 00 04 be 2003d30 <== NOT EXECUTED 2003d24: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } 2003d28: 81 c7 e0 08 ret <== NOT EXECUTED 2003d2c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) 2003d30: 32 80 00 02 bne,a 2003d38 <== NOT EXECUTED 2003d34: 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)) { 2003d38: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003d3c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003d40: 22 bf ff e8 be,a 2003ce0 <== NOT EXECUTED 2003d44: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2003d48: c4 0e 60 43 ldub [ %i1 + 0x43 ], %g2 <== NOT EXECUTED 2003d4c: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003d50: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2003d54: 22 80 00 43 be,a 2003e60 <== NOT EXECUTED 2003d58: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2003d5c: c4 0e 60 44 ldub [ %i1 + 0x44 ], %g2 <== NOT EXECUTED 2003d60: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2003d64: 22 80 00 2e be,a 2003e1c <== NOT EXECUTED 2003d68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2003d6c: c4 0e 60 45 ldub [ %i1 + 0x45 ], %g2 <== NOT EXECUTED 2003d70: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2003d74: 02 bf ff e8 be 2003d14 <== NOT EXECUTED 2003d78: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 2003d7c: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 2003d80: 02 80 00 2c be 2003e30 <== NOT EXECUTED 2003d84: 80 88 60 48 btst 0x48, %g1 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) 2003d88: c4 0e 60 4c ldub [ %i1 + 0x4c ], %g2 <== NOT EXECUTED 2003d8c: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2003d90: 02 80 00 07 be 2003dac <== NOT EXECUTED 2003d94: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 2003d98: c4 0e 60 51 ldub [ %i1 + 0x51 ], %g2 <== NOT EXECUTED 2003d9c: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2003da0: 32 bf ff d0 bne,a 2003ce0 <== NOT EXECUTED 2003da4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003da8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003dac: 12 80 00 18 bne 2003e0c <== NOT EXECUTED 2003db0: 01 00 00 00 nop <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2003db4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003db8: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003dbc: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2003dc0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003dc4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2003dc8: 81 c7 e0 08 ret <== NOT EXECUTED 2003dcc: 91 e8 20 01 restore %g0, 1, %o0 <== 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)) { 2003dd0: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 2003dd4: 32 bf ff d9 bne,a 2003d38 <== NOT EXECUTED 2003dd8: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2003ddc: 10 bf ff d8 b 2003d3c <== NOT EXECUTED 2003de0: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2003de4: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003de8: 7f ff fe f6 call 20039c0 <== NOT EXECUTED 2003dec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003df0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003df4: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003df8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2003dfc: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003e00: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2003e04: 81 c7 e0 08 ret <== NOT EXECUTED 2003e08: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2003e0c: 7f ff fe ed call 20039c0 <== NOT EXECUTED 2003e10: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003e14: 10 bf ff e9 b 2003db8 <== NOT EXECUTED 2003e18: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 2003e1c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003e20: 7f ff ff 08 call 2003a40 <== NOT EXECUTED 2003e24: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 2003e28: 81 c7 e0 08 ret <== NOT EXECUTED 2003e2c: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 2003e30: 22 80 00 05 be,a 2003e44 <== NOT EXECUTED 2003e34: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003e38: 7f ff fe e2 call 20039c0 <== NOT EXECUTED 2003e3c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003e40: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003e44: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2003e48: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 2003e4c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 2003e50: 82 00 60 01 inc %g1 <== NOT EXECUTED 2003e54: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2003e58: 81 c7 e0 08 ret <== NOT EXECUTED 2003e5c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); 2003e60: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003e64: 7f ff fe f7 call 2003a40 <== NOT EXECUTED 2003e68: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 2003e6c: 81 c7 e0 08 ret <== NOT EXECUTED 2003e70: 81 e8 00 00 restore <== NOT EXECUTED 0200f240 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 200f240: 9d e3 bf 90 save %sp, -112, %sp POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) 200f244: 7f ff fb 71 call 200e008 200f248: 01 00 00 00 nop 200f24c: 80 a2 00 18 cmp %o0, %i0 200f250: 12 80 00 b6 bne 200f528 200f254: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) 200f258: 02 80 00 ba be 200f540 200f25c: 82 06 7f ff add %i1, -1, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 200f260: 80 a0 60 1f cmp %g1, 0x1f 200f264: 18 80 00 b7 bgu 200f540 200f268: 23 00 80 72 sethi %hi(0x201c800), %l1 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) 200f26c: a5 2e 60 02 sll %i1, 2, %l2 200f270: a2 14 63 34 or %l1, 0x334, %l1 200f274: a7 2e 60 04 sll %i1, 4, %l3 200f278: 84 24 c0 12 sub %l3, %l2, %g2 200f27c: 84 04 40 02 add %l1, %g2, %g2 200f280: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200f284: 80 a0 a0 01 cmp %g2, 1 200f288: 02 80 00 45 be 200f39c 200f28c: b0 10 20 00 clr %i0 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) 200f290: 80 a6 60 04 cmp %i1, 4 200f294: 02 80 00 44 be 200f3a4 200f298: 80 a6 60 08 cmp %i1, 8 200f29c: 02 80 00 42 be 200f3a4 200f2a0: 80 a6 60 0b cmp %i1, 0xb 200f2a4: 02 80 00 40 be 200f3a4 200f2a8: a0 10 20 01 mov 1, %l0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 200f2ac: f2 27 bf f4 st %i1, [ %fp + -12 ] siginfo->si_code = SI_USER; 200f2b0: e0 27 bf f8 st %l0, [ %fp + -8 ] if ( !value ) { 200f2b4: 80 a6 a0 00 cmp %i2, 0 200f2b8: 02 80 00 41 be 200f3bc 200f2bc: a1 2c 00 01 sll %l0, %g1, %l0 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; 200f2c0: c2 06 80 00 ld [ %i2 ], %g1 200f2c4: c2 27 bf fc st %g1, [ %fp + -4 ] 200f2c8: 03 00 80 71 sethi %hi(0x201c400), %g1 200f2cc: c4 00 61 a0 ld [ %g1 + 0x1a0 ], %g2 ! 201c5a0 <_Thread_Dispatch_disable_level> 200f2d0: 84 00 a0 01 inc %g2 200f2d4: c4 20 61 a0 st %g2, [ %g1 + 0x1a0 ] /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; 200f2d8: 03 00 80 71 sethi %hi(0x201c400), %g1 200f2dc: c2 00 62 60 ld [ %g1 + 0x260 ], %g1 ! 201c660 <_Thread_Executing> api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200f2e0: c4 00 61 6c ld [ %g1 + 0x16c ], %g2 200f2e4: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 200f2e8: 80 ac 00 02 andncc %l0, %g2, %g0 200f2ec: 12 80 00 1a bne 200f354 200f2f0: 09 00 80 73 sethi %hi(0x201cc00), %g4 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 200f2f4: c4 01 20 c0 ld [ %g4 + 0xc0 ], %g2 ! 201ccc0 <_POSIX_signals_Wait_queue> 200f2f8: 88 11 20 c0 or %g4, 0xc0, %g4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200f2fc: 88 01 20 04 add %g4, 4, %g4 200f300: 80 a0 80 04 cmp %g2, %g4 200f304: 02 80 00 30 be 200f3c4 200f308: 82 10 00 02 mov %g2, %g1 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200f30c: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 200f310: 80 8c 00 03 btst %l0, %g3 200f314: 02 80 00 0c be 200f344 200f318: c6 00 a1 6c ld [ %g2 + 0x16c ], %g3 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 200f31c: 10 80 00 0f b 200f358 200f320: 84 10 20 01 mov 1, %g2 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 200f324: 80 a0 80 04 cmp %g2, %g4 200f328: 22 80 00 28 be,a 200f3c8 200f32c: 03 00 80 6e sethi %hi(0x201b800), %g1 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200f330: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200f334: c6 00 a1 6c ld [ %g2 + 0x16c ], %g3 <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200f338: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 200f33c: 12 80 00 06 bne 200f354 <== NOT EXECUTED 200f340: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 200f344: c6 00 e0 cc ld [ %g3 + 0xcc ], %g3 200f348: 80 ac 00 03 andncc %l0, %g3, %g0 200f34c: 22 bf ff f6 be,a 200f324 200f350: c4 00 80 00 ld [ %g2 ], %g2 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 200f354: 84 10 20 01 mov 1, %g2 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 200f358: 90 10 00 01 mov %g1, %o0 200f35c: 92 10 00 19 mov %i1, %o1 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 200f360: c4 28 60 74 stb %g2, [ %g1 + 0x74 ] /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 200f364: 40 00 00 ba call 200f64c <_POSIX_signals_Unblock_thread> 200f368: 94 07 bf f4 add %fp, -12, %o2 200f36c: 80 8a 20 ff btst 0xff, %o0 200f370: 12 80 00 5a bne 200f4d8 200f374: 01 00 00 00 nop /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); 200f378: 40 00 00 a5 call 200f60c <_POSIX_signals_Set_process_signals> 200f37c: 90 10 00 10 mov %l0, %o0 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 200f380: a4 24 c0 12 sub %l3, %l2, %l2 200f384: c2 04 40 12 ld [ %l1 + %l2 ], %g1 200f388: 80 a0 60 02 cmp %g1, 2 200f38c: 02 80 00 57 be 200f4e8 200f390: 11 00 80 73 sethi %hi(0x201cc00), %o0 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 200f394: 7f ff e2 bc call 2007e84 <_Thread_Enable_dispatch> 200f398: b0 10 20 00 clr %i0 return 0; } 200f39c: 81 c7 e0 08 ret 200f3a0: 81 e8 00 00 restore * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) return pthread_kill( pthread_self(), sig ); 200f3a4: 40 00 01 38 call 200f884 200f3a8: 01 00 00 00 nop 200f3ac: 40 00 00 f9 call 200f790 200f3b0: 92 10 00 19 mov %i1, %o1 200f3b4: 81 c7 e0 08 ret 200f3b8: 91 e8 00 08 restore %g0, %o0, %o0 */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; 200f3bc: 10 bf ff c3 b 200f2c8 200f3c0: c0 27 bf fc clr [ %fp + -4 ] * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 200f3c4: 03 00 80 6e sethi %hi(0x201b800), %g1 200f3c8: da 08 63 54 ldub [ %g1 + 0x354 ], %o5 ! 201bb54 200f3cc: 13 00 80 71 sethi %hi(0x201c400), %o1 200f3d0: 9a 03 60 01 inc %o5 200f3d4: 92 12 61 08 or %o1, 0x108, %o1 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 200f3d8: 82 10 20 00 clr %g1 200f3dc: 90 02 60 0c add %o1, 0xc, %o0 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 200f3e0: 35 04 00 00 sethi %hi(0x10000000), %i2 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) 200f3e4: c4 02 40 00 ld [ %o1 ], %g2 200f3e8: 80 a0 a0 00 cmp %g2, 0 200f3ec: 22 80 00 2d be,a 200f4a0 200f3f0: 92 02 60 04 add %o1, 4, %o1 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 200f3f4: c4 00 a0 04 ld [ %g2 + 4 ], %g2 */ if ( !the_info ) continue; #endif maximum = the_info->maximum; 200f3f8: d8 10 a0 10 lduh [ %g2 + 0x10 ], %o4 object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200f3fc: 80 a3 20 00 cmp %o4, 0 200f400: 02 80 00 27 be 200f49c 200f404: d6 00 a0 1c ld [ %g2 + 0x1c ], %o3 200f408: 84 10 20 01 mov 1, %g2 the_thread = (Thread_Control *) object_table[ index ]; 200f40c: 87 28 a0 02 sll %g2, 2, %g3 200f410: c6 02 c0 03 ld [ %o3 + %g3 ], %g3 if ( !the_thread ) 200f414: 80 a0 e0 00 cmp %g3, 0 200f418: 02 80 00 1e be 200f490 200f41c: 84 00 a0 01 inc %g2 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 200f420: c8 00 e0 14 ld [ %g3 + 0x14 ], %g4 200f424: 80 a1 00 0d cmp %g4, %o5 200f428: 18 80 00 1b bgu 200f494 200f42c: 80 a3 00 02 cmp %o4, %g2 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200f430: d4 00 e1 6c ld [ %g3 + 0x16c ], %o2 200f434: d4 02 a0 cc ld [ %o2 + 0xcc ], %o2 200f438: 80 ac 00 0a andncc %l0, %o2, %g0 200f43c: 02 80 00 16 be 200f494 200f440: 80 a3 00 02 cmp %o4, %g2 * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { 200f444: 80 a1 00 0d cmp %g4, %o5 200f448: 2a 80 00 11 bcs,a 200f48c 200f44c: 9a 10 00 04 mov %g4, %o5 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 200f450: d4 00 60 10 ld [ %g1 + 0x10 ], %o2 200f454: 80 a2 a0 00 cmp %o2, 0 200f458: 02 80 00 0f be 200f494 200f45c: 80 a3 00 02 cmp %o4, %g2 /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 200f460: de 00 e0 10 ld [ %g3 + 0x10 ], %o7 200f464: 80 a3 e0 00 cmp %o7, 0 200f468: 22 80 00 09 be,a 200f48c 200f46c: 9a 10 00 04 mov %g4, %o5 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 200f470: 80 8a 80 1a btst %o2, %i2 200f474: 12 80 00 08 bne 200f494 200f478: 80 a3 00 02 cmp %o4, %g2 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 200f47c: 80 8b c0 1a btst %o7, %i2 200f480: 02 80 00 05 be 200f494 200f484: 80 a3 00 02 cmp %o4, %g2 200f488: 9a 10 00 04 mov %g4, %o5 200f48c: 82 10 00 03 mov %g3, %g1 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200f490: 80 a3 00 02 cmp %o4, %g2 200f494: 1a bf ff df bcc 200f410 200f498: 87 28 a0 02 sll %g2, 2, %g3 200f49c: 92 02 60 04 add %o1, 4, %o1 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { 200f4a0: 80 a2 40 08 cmp %o1, %o0 200f4a4: 32 bf ff d1 bne,a 200f3e8 200f4a8: c4 02 40 00 ld [ %o1 ], %g2 } } } } if ( interested ) { 200f4ac: 80 a0 60 00 cmp %g1, 0 200f4b0: 02 bf ff b2 be 200f378 200f4b4: 84 10 20 01 mov 1, %g2 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 200f4b8: 90 10 00 01 mov %g1, %o0 200f4bc: 92 10 00 19 mov %i1, %o1 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 200f4c0: c4 28 60 74 stb %g2, [ %g1 + 0x74 ] /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 200f4c4: 40 00 00 62 call 200f64c <_POSIX_signals_Unblock_thread> 200f4c8: 94 07 bf f4 add %fp, -12, %o2 200f4cc: 80 8a 20 ff btst 0xff, %o0 200f4d0: 02 bf ff aa be 200f378 200f4d4: 01 00 00 00 nop _Thread_Enable_dispatch(); 200f4d8: 7f ff e2 6b call 2007e84 <_Thread_Enable_dispatch> 200f4dc: b0 10 20 00 clr %i0 ! 0 return 0; 200f4e0: 81 c7 e0 08 ret 200f4e4: 81 e8 00 00 restore */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) 200f4e8: 7f ff f3 a6 call 200c380 <_Chain_Get> 200f4ec: 90 12 20 b4 or %o0, 0xb4, %o0 _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 200f4f0: 80 a2 20 00 cmp %o0, 0 200f4f4: 02 80 00 19 be 200f558 200f4f8: c2 07 bf f4 ld [ %fp + -12 ], %g1 rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 200f4fc: 92 10 00 08 mov %o0, %o1 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; 200f500: c2 22 20 08 st %g1, [ %o0 + 8 ] 200f504: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f508: c2 22 20 0c st %g1, [ %o0 + 0xc ] 200f50c: c2 07 bf fc ld [ %fp + -4 ], %g1 200f510: c2 22 20 10 st %g1, [ %o0 + 0x10 ] _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 200f514: 11 00 80 73 sethi %hi(0x201cc00), %o0 200f518: 90 12 21 04 or %o0, 0x104, %o0 ! 201cd04 <_POSIX_signals_Siginfo> 200f51c: 7f ff dc 0e call 2006554 <_Chain_Append> 200f520: 90 02 00 12 add %o0, %l2, %o0 200f524: 30 bf ff 9c b,a 200f394 /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); 200f528: 40 00 01 0c call 200f958 <__errno> 200f52c: b0 10 3f ff mov -1, %i0 200f530: 82 10 20 03 mov 3, %g1 200f534: c2 22 00 00 st %g1, [ %o0 ] 200f538: 81 c7 e0 08 ret 200f53c: 81 e8 00 00 restore */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); 200f540: 40 00 01 06 call 200f958 <__errno> 200f544: b0 10 3f ff mov -1, %i0 200f548: 82 10 20 16 mov 0x16, %g1 200f54c: c2 22 00 00 st %g1, [ %o0 ] 200f550: 81 c7 e0 08 ret 200f554: 81 e8 00 00 restore if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); 200f558: 7f ff e2 4b call 2007e84 <_Thread_Enable_dispatch> 200f55c: b0 10 3f ff mov -1, %i0 rtems_set_errno_and_return_minus_one( EAGAIN ); 200f560: 40 00 00 fe call 200f958 <__errno> 200f564: 01 00 00 00 nop 200f568: 82 10 20 0b mov 0xb, %g1 ! b 200f56c: c2 22 00 00 st %g1, [ %o0 ] 200f570: 81 c7 e0 08 ret 200f574: 81 e8 00 00 restore 02019db0 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 2019db0: 9d e3 bf a0 save %sp, -96, %sp /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) 2019db4: 03 00 80 71 sethi %hi(0x201c400), %g1 2019db8: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201c740 <_System_state_Current> 2019dbc: 80 a0 60 03 cmp %g1, 3 2019dc0: 02 80 00 04 be 2019dd0 2019dc4: 03 00 80 6d sethi %hi(0x201b400), %g1 2019dc8: 81 c7 e0 08 ret <== NOT EXECUTED 2019dcc: 81 e8 00 00 restore <== NOT EXECUTED /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 2019dd0: 21 00 80 6f sethi %hi(0x201bc00), %l0 2019dd4: e2 00 62 98 ld [ %g1 + 0x298 ], %l1 2019dd8: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 2019ddc: 80 a0 40 11 cmp %g1, %l1 2019de0: 02 80 00 05 be 2019df4 2019de4: 01 00 00 00 nop _wrapup_reent(_global_impure_ptr); 2019de8: 40 00 01 80 call 201a3e8 <_wrapup_reent> 2019dec: 90 10 00 11 mov %l1, %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 = _global_impure_ptr; 2019df0: e2 24 20 58 st %l1, [ %l0 + 0x58 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 2019df4: 7f ff d7 31 call 200fab8 2019df8: d0 04 60 04 ld [ %l1 + 4 ], %o0 fclose (stdout); 2019dfc: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 2019e00: 7f ff d7 2e call 200fab8 2019e04: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 2019e08: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 2019e0c: f0 00 60 0c ld [ %g1 + 0xc ], %i0 2019e10: 7f ff d7 2a call 200fab8 2019e14: 81 e8 00 00 restore 2019e18: 01 00 00 00 nop 02029b74 : int link( const char *existing, const char *new ) { 2029b74: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 2029b78: 40 00 85 52 call 204b0c0 2029b7c: 90 10 00 18 mov %i0, %o0 2029b80: a0 07 bf e8 add %fp, -24, %l0 2029b84: 92 10 00 08 mov %o0, %o1 2029b88: 94 10 20 00 clr %o2 2029b8c: 90 10 00 18 mov %i0, %o0 2029b90: 96 10 00 10 mov %l0, %o3 2029b94: 98 10 20 01 mov 1, %o4 2029b98: 7f ff 71 42 call 20060a0 2029b9c: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 2029ba0: 80 a2 20 00 cmp %o0, 0 2029ba4: 12 80 00 88 bne 2029dc4 2029ba8: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 2029bac: c2 4e 40 00 ldsb [ %i1 ], %g1 2029bb0: 80 a0 60 5c cmp %g1, 0x5c 2029bb4: 02 80 00 06 be 2029bcc 2029bb8: 80 a0 60 2f cmp %g1, 0x2f 2029bbc: 02 80 00 04 be 2029bcc 2029bc0: 80 a0 60 00 cmp %g1, 0 2029bc4: 12 80 00 3c bne 2029cb4 2029bc8: 03 00 81 a6 sethi %hi(0x2069800), %g1 2029bcc: 03 00 81 a6 sethi %hi(0x2069800), %g1 2029bd0: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 2029bd4: 90 10 20 01 mov 1, %o0 2029bd8: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2029bdc: c4 27 bf d4 st %g2, [ %fp + -44 ] 2029be0: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 2029be4: c4 27 bf d8 st %g2, [ %fp + -40 ] 2029be8: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 2029bec: c4 27 bf dc st %g2, [ %fp + -36 ] 2029bf0: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 2029bf4: c4 27 bf e0 st %g2, [ %fp + -32 ] 2029bf8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2029bfc: c2 27 bf e4 st %g1, [ %fp + -28 ] if ( !parent_loc.ops->evalformake_h ) { 2029c00: c2 07 bf e0 ld [ %fp + -32 ], %g1 2029c04: c2 00 60 04 ld [ %g1 + 4 ], %g1 2029c08: 80 a0 60 00 cmp %g1, 0 2029c0c: 02 80 00 60 be 2029d8c 2029c10: 90 06 40 08 add %i1, %o0, %o0 rtems_filesystem_freenode( &existing_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 2029c14: 94 07 bf fc add %fp, -4, %o2 2029c18: b2 07 bf d4 add %fp, -44, %i1 2029c1c: 9f c0 40 00 call %g1 2029c20: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 2029c24: a2 92 20 00 orcc %o0, 0, %l1 2029c28: 12 80 00 4a bne 2029d50 2029c2c: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 2029c30: c4 07 bf e4 ld [ %fp + -28 ], %g2 2029c34: 80 a0 80 01 cmp %g2, %g1 2029c38: 12 80 00 2c bne 2029ce8 2029c3c: c4 07 bf e0 ld [ %fp + -32 ], %g2 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 2029c40: c2 00 a0 08 ld [ %g2 + 8 ], %g1 2029c44: 80 a0 60 00 cmp %g1, 0 2029c48: 02 80 00 61 be 2029dcc 2029c4c: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 2029c50: 90 10 00 10 mov %l0, %o0 2029c54: 9f c0 40 00 call %g1 2029c58: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &existing_loc ); 2029c5c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2029c60: 80 a0 60 00 cmp %g1, 0 2029c64: 02 80 00 08 be 2029c84 2029c68: b0 10 00 08 mov %o0, %i0 2029c6c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029c70: 80 a0 60 00 cmp %g1, 0 2029c74: 22 80 00 05 be,a 2029c88 2029c78: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2029c7c: 9f c0 40 00 call %g1 2029c80: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029c84: c2 07 bf e0 ld [ %fp + -32 ], %g1 2029c88: 80 a0 60 00 cmp %g1, 0 2029c8c: 02 80 00 4e be 2029dc4 2029c90: 01 00 00 00 nop 2029c94: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029c98: 80 a0 60 00 cmp %g1, 0 2029c9c: 02 80 00 4a be 2029dc4 2029ca0: 01 00 00 00 nop 2029ca4: 9f c0 40 00 call %g1 2029ca8: 90 10 00 19 mov %i1, %o0 return result; } 2029cac: 81 c7 e0 08 ret 2029cb0: 81 e8 00 00 restore /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 2029cb4: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 2029cb8: 90 10 20 00 clr %o0 2029cbc: c4 00 60 04 ld [ %g1 + 4 ], %g2 2029cc0: c4 27 bf d4 st %g2, [ %fp + -44 ] 2029cc4: c4 00 60 08 ld [ %g1 + 8 ], %g2 2029cc8: c4 27 bf d8 st %g2, [ %fp + -40 ] 2029ccc: c4 00 60 0c ld [ %g1 + 0xc ], %g2 2029cd0: c4 27 bf dc st %g2, [ %fp + -36 ] 2029cd4: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 2029cd8: c4 27 bf e0 st %g2, [ %fp + -32 ] 2029cdc: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2029ce0: 10 bf ff c8 b 2029c00 2029ce4: c2 27 bf e4 st %g1, [ %fp + -28 ] * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { rtems_filesystem_freenode( &existing_loc ); 2029ce8: c2 07 bf f4 ld [ %fp + -12 ], %g1 2029cec: 80 a0 60 00 cmp %g1, 0 2029cf0: 22 80 00 09 be,a 2029d14 2029cf4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2029cf8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029cfc: 80 a0 60 00 cmp %g1, 0 2029d00: 22 80 00 05 be,a 2029d14 2029d04: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2029d08: 9f c0 40 00 call %g1 2029d0c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029d10: c2 07 bf e0 ld [ %fp + -32 ], %g1 2029d14: 80 a0 60 00 cmp %g1, 0 2029d18: 02 80 00 08 be 2029d38 2029d1c: 01 00 00 00 nop 2029d20: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029d24: 80 a0 60 00 cmp %g1, 0 2029d28: 02 80 00 04 be 2029d38 2029d2c: 01 00 00 00 nop 2029d30: 9f c0 40 00 call %g1 2029d34: 90 10 00 19 mov %i1, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 2029d38: 40 00 69 a3 call 20443c4 <__errno> 2029d3c: b0 10 3f ff mov -1, %i0 2029d40: 82 10 20 12 mov 0x12, %g1 2029d44: c2 22 00 00 st %g1, [ %o0 ] 2029d48: 81 c7 e0 08 ret 2029d4c: 81 e8 00 00 restore rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); 2029d50: c2 07 bf f4 ld [ %fp + -12 ], %g1 2029d54: 80 a0 60 00 cmp %g1, 0 2029d58: 02 80 00 08 be 2029d78 2029d5c: 01 00 00 00 nop 2029d60: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029d64: 80 a0 60 00 cmp %g1, 0 2029d68: 02 80 00 04 be 2029d78 2029d6c: 01 00 00 00 nop 2029d70: 9f c0 40 00 call %g1 2029d74: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( result ); 2029d78: 40 00 69 93 call 20443c4 <__errno> 2029d7c: b0 10 3f ff mov -1, %i0 2029d80: e2 22 00 00 st %l1, [ %o0 ] 2029d84: 81 c7 e0 08 ret 2029d88: 81 e8 00 00 restore */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 2029d8c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2029d90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029d94: 02 80 00 08 be 2029db4 <== NOT EXECUTED 2029d98: 01 00 00 00 nop <== NOT EXECUTED 2029d9c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029da4: 02 80 00 04 be 2029db4 <== NOT EXECUTED 2029da8: 01 00 00 00 nop <== NOT EXECUTED 2029dac: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029db0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 2029db4: 40 00 69 84 call 20443c4 <__errno> <== NOT EXECUTED 2029db8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029dbc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2029dc0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029dc4: 81 c7 e0 08 ret 2029dc8: 81 e8 00 00 restore rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 2029dcc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2029dd0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029dd4: 02 80 00 0a be 2029dfc <== NOT EXECUTED 2029dd8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029ddc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029de0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029de4: 02 80 00 06 be 2029dfc <== NOT EXECUTED 2029de8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029dec: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029df0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2029df4: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2029df8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029dfc: 02 bf ff ee be 2029db4 <== NOT EXECUTED 2029e00: 01 00 00 00 nop <== NOT EXECUTED 2029e04: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2029e08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029e0c: 02 bf ff ea be 2029db4 <== NOT EXECUTED 2029e10: 01 00 00 00 nop <== NOT EXECUTED 2029e14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029e18: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2029e1c: 30 bf ff e6 b,a 2029db4 <== NOT EXECUTED 02019c0c : off_t lseek( int fd, off_t offset, int whence ) { 2019c0c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2019c10: 03 00 80 6e sethi %hi(0x201b800), %g1 2019c14: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201baa4 off_t lseek( int fd, off_t offset, int whence ) { 2019c18: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2019c1c: 80 a6 00 01 cmp %i0, %g1 2019c20: 1a 80 00 46 bcc 2019d38 2019c24: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 2019c28: 03 00 80 70 sethi %hi(0x201c000), %g1 2019c2c: e0 00 63 d0 ld [ %g1 + 0x3d0 ], %l0 ! 201c3d0 2019c30: 83 2e 20 06 sll %i0, 6, %g1 2019c34: b1 2e 20 03 sll %i0, 3, %i0 2019c38: b0 06 00 01 add %i0, %g1, %i0 2019c3c: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 2019c40: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2019c44: 80 88 61 00 btst 0x100, %g1 2019c48: 02 80 00 3c be 2019d38 2019c4c: 01 00 00 00 nop /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 2019c50: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2019c54: c8 00 60 14 ld [ %g1 + 0x14 ], %g4 2019c58: 80 a1 20 00 cmp %g4, 0 2019c5c: 02 80 00 3f be 2019d58 2019c60: 80 a6 e0 01 cmp %i3, 1 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 2019c64: 02 80 00 27 be 2019d00 2019c68: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 2019c6c: 80 a6 e0 02 cmp %i3, 2 2019c70: 02 80 00 11 be 2019cb4 2019c74: 80 a6 e0 00 cmp %i3, 0 2019c78: 12 80 00 26 bne 2019d10 2019c7c: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; 2019c80: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 2019c84: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2019c88: 92 10 00 02 mov %g2, %o1 2019c8c: 94 10 00 03 mov %g3, %o2 2019c90: 96 10 00 1b mov %i3, %o3 2019c94: 9f c0 40 00 call %g1 2019c98: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 2019c9c: 80 a2 3f ff cmp %o0, -1 2019ca0: 02 80 00 13 be 2019cec 2019ca4: 80 a2 7f ff cmp %o1, -1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 2019ca8: b2 10 00 09 mov %o1, %i1 2019cac: 81 c7 e0 08 ret 2019cb0: 91 e8 00 08 restore %g0, %o0, %o0 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 2019cb4: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 2019cb8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 2019cbc: 9a 86 80 0d addcc %i2, %o5, %o5 2019cc0: 98 46 40 0c addx %i1, %o4, %o4 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 2019cc4: 92 10 00 02 mov %g2, %o1 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 2019cc8: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 2019ccc: 94 10 00 03 mov %g3, %o2 2019cd0: 96 10 00 1b mov %i3, %o3 2019cd4: 9f c0 40 00 call %g1 2019cd8: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 2019cdc: 80 a2 3f ff cmp %o0, -1 2019ce0: 12 bf ff f3 bne 2019cac 2019ce4: b2 10 00 09 mov %o1, %i1 2019ce8: 80 a2 7f ff cmp %o1, -1 2019cec: 12 bf ff f0 bne 2019cac 2019cf0: b2 10 00 09 mov %o1, %i1 iop->offset = old_offset; 2019cf4: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 2019cf8: 81 c7 e0 08 ret 2019cfc: 91 e8 00 08 restore %g0, %o0, %o0 case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 2019d00: 9a 86 80 13 addcc %i2, %l3, %o5 2019d04: 98 46 40 12 addx %i1, %l2, %o4 break; 2019d08: 10 bf ff df b 2019c84 2019d0c: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 2019d10: 7f ff d7 12 call 200f958 <__errno> 2019d14: 01 00 00 00 nop 2019d18: 82 10 20 16 mov 0x16, %g1 ! 16 2019d1c: c2 22 00 00 st %g1, [ %o0 ] 2019d20: 11 3f ff ff sethi %hi(0xfffffc00), %o0 2019d24: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 2019d28: 92 10 00 08 mov %o0, %o1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 2019d2c: b0 10 00 08 mov %o0, %i0 2019d30: 81 c7 e0 08 ret 2019d34: 93 e8 00 09 restore %g0, %o1, %o1 off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 2019d38: 7f ff d7 08 call 200f958 <__errno> <== NOT EXECUTED 2019d3c: 01 00 00 00 nop <== NOT EXECUTED 2019d40: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 2019d44: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019d48: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED 2019d4c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <== NOT EXECUTED 2019d50: 10 bf ff d6 b 2019ca8 <== NOT EXECUTED 2019d54: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2019d58: 7f ff d7 00 call 200f958 <__errno> <== NOT EXECUTED 2019d5c: 01 00 00 00 nop <== NOT EXECUTED 2019d60: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2019d64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019d68: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED 2019d6c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <== NOT EXECUTED 2019d70: 10 bf ff ce b 2019ca8 <== NOT EXECUTED 2019d74: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 02029fc8 : int _STAT_NAME( const char *path, struct stat *buf ) { 2029fc8: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2029fcc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2029fd0: 02 80 00 34 be 202a0a0 <== NOT EXECUTED 2029fd4: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 2029fd8: 40 00 84 3a call 204b0c0 <== NOT EXECUTED 2029fdc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029fe0: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2029fe4: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2029fe8: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029fec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029ff0: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2029ff4: 98 10 20 00 clr %o4 <== NOT EXECUTED 2029ff8: 7f ff 70 2a call 20060a0 <== NOT EXECUTED 2029ffc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 202a000: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202a004: 12 80 00 25 bne 202a098 <== NOT EXECUTED 202a008: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 202a00c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 202a010: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 202a014: 02 80 00 29 be 202a0b8 <== NOT EXECUTED 202a018: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 202a01c: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 202a020: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 202a024: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 202a028: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 202a02c: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 202a030: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 202a034: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 202a038: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 202a03c: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 202a040: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 202a044: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 202a048: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 202a04c: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 202a050: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED 202a054: c0 26 60 38 clr [ %i1 + 0x38 ] <== NOT EXECUTED 202a058: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED 202a05c: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED 202a060: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 202a064: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 202a068: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a06c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 202a070: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202a074: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a078: 02 80 00 08 be 202a098 <== NOT EXECUTED 202a07c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 202a080: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a084: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a088: 02 80 00 1a be 202a0f0 <== NOT EXECUTED 202a08c: 01 00 00 00 nop <== NOT EXECUTED 202a090: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a094: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 202a098: 81 c7 e0 08 ret <== NOT EXECUTED 202a09c: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 202a0a0: 40 00 68 c9 call 20443c4 <__errno> <== NOT EXECUTED 202a0a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a0a8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 202a0ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a0b0: 81 c7 e0 08 ret <== NOT EXECUTED 202a0b4: 81 e8 00 00 restore <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 202a0b8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202a0bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a0c0: 02 80 00 08 be 202a0e0 <== NOT EXECUTED 202a0c4: 01 00 00 00 nop <== NOT EXECUTED 202a0c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a0cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a0d0: 02 80 00 04 be 202a0e0 <== NOT EXECUTED 202a0d4: 01 00 00 00 nop <== NOT EXECUTED 202a0d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a0dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a0e0: 40 00 68 b9 call 20443c4 <__errno> <== NOT EXECUTED 202a0e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a0e8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202a0ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a0f0: 81 c7 e0 08 ret <== NOT EXECUTED 202a0f4: 81 e8 00 00 restore <== NOT EXECUTED 0200b440 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200b440: 9d e3 bf a0 save %sp, -96, %sp 200b444: 03 00 80 70 sethi %hi(0x201c000), %g1 200b448: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 201c3e0 200b44c: c4 00 60 04 ld [ %g1 + 4 ], %g2 200b450: a0 10 00 18 mov %i0, %l0 200b454: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200b458: 7f ff ff ed call 200b40c 200b45c: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 200b460: 80 a6 20 00 cmp %i0, 0 200b464: 02 80 00 25 be 200b4f8 200b468: 03 00 80 71 sethi %hi(0x201c400), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200b46c: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201c740 <_System_state_Current> 200b470: 80 a0 60 03 cmp %g1, 3 200b474: 02 80 00 1c be 200b4e4 200b478: 03 00 80 6e sethi %hi(0x201b800), %g1 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 200b47c: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0 ! 201bab0 200b480: 92 10 00 10 mov %l0, %o1 200b484: 94 10 20 00 clr %o2 200b488: 40 00 05 79 call 200ca6c <_Protected_heap_Allocate_aligned_with_boundary> 200b48c: 96 10 20 00 clr %o3 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { 200b490: b0 92 20 00 orcc %o0, 0, %i0 200b494: 02 80 00 1b be 200b500 200b498: a2 10 00 18 mov %i0, %l1 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 200b49c: 03 00 80 70 sethi %hi(0x201c000), %g1 200b4a0: c2 00 61 20 ld [ %g1 + 0x120 ], %g1 ! 201c120 200b4a4: 80 a0 60 00 cmp %g1, 0 200b4a8: 02 80 00 05 be 200b4bc 200b4ac: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 200b4b0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 200b4b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 200b4b8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200b4bc: 03 00 80 70 sethi %hi(0x201c000), %g1 200b4c0: c2 00 61 18 ld [ %g1 + 0x118 ], %g1 ! 201c118 200b4c4: 80 a0 60 00 cmp %g1, 0 200b4c8: 02 80 00 05 be 200b4dc 200b4cc: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 200b4d0: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200b4d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 200b4d8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200b4dc: 81 c7 e0 08 ret 200b4e0: 81 e8 00 00 restore return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200b4e4: 7f ff ff b1 call 200b3a8 200b4e8: 01 00 00 00 nop 200b4ec: 80 8a 20 ff btst 0xff, %o0 200b4f0: 12 bf ff e3 bne 200b47c 200b4f4: 03 00 80 6e sethi %hi(0x201b800), %g1 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 200b4f8: 81 c7 e0 08 ret <== NOT EXECUTED 200b4fc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 200b500: 03 00 80 70 sethi %hi(0x201c000), %g1 200b504: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201c11c 200b508: 80 a0 60 00 cmp %g1, 0 200b50c: 02 80 00 08 be 200b52c 200b510: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200b514: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200b518: 9f c0 40 00 call %g1 <== NOT EXECUTED 200b51c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 200b520: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200b524: 12 bf ff df bne 200b4a0 <== NOT EXECUTED 200b528: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED errno = ENOMEM; 200b52c: 40 00 11 0b call 200f958 <__errno> 200b530: 01 00 00 00 nop 200b534: 82 10 20 0c mov 0xc, %g1 ! c 200b538: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 200b53c: 81 c7 e0 08 ret 200b540: 81 e8 00 00 restore 0200b3f0 : 200b3f0: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 200b3f4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED 200b3f8: 90 12 23 28 or %o0, 0x328, %o0 ! 201cb28 <== NOT EXECUTED 200b3fc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200b400: 7f ff ec 55 call 2006554 <_Chain_Append> <== NOT EXECUTED 200b404: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200b408: 01 00 00 00 nop 0200b40c : void malloc_deferred_frees_process(void) { 200b40c: 9d e3 bf a0 save %sp, -96, %sp 200b410: 21 00 80 72 sethi %hi(0x201c800), %l0 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) 200b414: 10 80 00 04 b 200b424 200b418: a0 14 23 28 or %l0, 0x328, %l0 ! 201cb28 free(to_be_freed); 200b41c: 7f ff fe 89 call 200ae40 <== NOT EXECUTED 200b420: 01 00 00 00 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 200b424: 40 00 03 d7 call 200c380 <_Chain_Get> 200b428: 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) 200b42c: 80 a2 20 00 cmp %o0, 0 200b430: 12 bf ff fb bne 200b41c 200b434: 01 00 00 00 nop free(to_be_freed); } 200b438: 81 c7 e0 08 ret 200b43c: 81 e8 00 00 restore 020130d4 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 20130d4: 9d e3 bf a0 save %sp, -96, %sp /* * 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) ) { 20130d8: 7f ff f5 9d call 201074c 20130dc: 90 10 00 18 mov %i0, %o0 20130e0: 80 a2 20 00 cmp %o0, 0 20130e4: 12 80 00 13 bne 2013130 20130e8: 01 00 00 00 nop 20130ec: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 20130f0: 80 a0 60 00 cmp %g1, 0 20130f4: 12 80 00 0f bne 2013130 20130f8: 03 00 80 87 sethi %hi(0x2021c00), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 20130fc: c2 00 61 4c ld [ %g1 + 0x14c ], %g1 ! 2021d4c 2013100: c4 00 60 04 ld [ %g1 + 4 ], %g2 2013104: 80 a0 80 18 cmp %g2, %i0 2013108: 22 80 00 02 be,a 2013110 201310c: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 2013110: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2013114: 80 a0 60 06 cmp %g1, 6 2013118: 02 80 00 04 be 2013128 201311c: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 2013120: 7f ff ff 7a call 2012f08 2013124: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 2013128: 7f ff c2 47 call 2003a44 201312c: 90 10 00 18 mov %i0, %o0 } return 0; } 2013130: 81 c7 e0 08 ret 2013134: 91 e8 20 00 restore %g0, 0, %o0 02012e28 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 2012e28: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 2012e2c: 80 a6 20 00 cmp %i0, 0 2012e30: 02 80 00 16 be 2012e88 2012e34: 80 a6 60 00 cmp %i1, 0 * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 2012e3c: d0 06 00 00 ld [ %i0 ], %o0 2012e40: a0 10 00 08 mov %o0, %l0 2012e44: a2 10 20 00 clr %l1 if ( b[i] ) { 2012e48: d0 04 00 00 ld [ %l0 ], %o0 2012e4c: 80 a2 20 00 cmp %o0, 0 2012e50: 02 80 00 05 be 2012e64 2012e54: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 2012e58: 7f ff ff 2f call 2012b14 2012e5c: 01 00 00 00 nop b[i] = 0; 2012e60: c0 24 00 00 clr [ %l0 ] * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 2012e6c: a0 04 20 04 add %l0, 4, %l0 2012e70: d0 06 00 00 ld [ %i0 ], %o0 /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 2012e74: 7f ff ff 28 call 2012b14 2012e78: 01 00 00 00 nop *block_table = 0; 2012e7c: c0 26 00 00 clr [ %i0 ] } 2012e80: 81 c7 e0 08 ret 2012e84: 81 e8 00 00 restore /* * Perform internal consistency checks */ assert( block_table ); 2012e88: 11 00 80 84 sethi %hi(0x2021000), %o0 <== NOT EXECUTED 2012e8c: 15 00 80 85 sethi %hi(0x2021400), %o2 <== NOT EXECUTED 2012e90: 17 00 80 84 sethi %hi(0x2021000), %o3 <== NOT EXECUTED 2012e94: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED 2012e98: 94 12 a0 20 or %o2, 0x20, %o2 <== NOT EXECUTED 2012e9c: 96 12 e3 38 or %o3, 0x338, %o3 <== NOT EXECUTED 2012ea0: 7f ff c1 b0 call 2003560 <__assert_func> <== NOT EXECUTED 2012ea4: 92 10 21 b3 mov 0x1b3, %o1 <== NOT EXECUTED 2012ea8: 01 00 00 00 nop 02013400 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 2013400: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2013404: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 * 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 ) 2013408: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 201340c: 80 a0 40 19 cmp %g1, %i1 2013410: 16 80 00 07 bge 201342c 2013414: 90 10 00 10 mov %l0, %o0 return IMFS_memfile_extend( the_jnode, length ); 2013418: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 201341c: 7f ff ff 91 call 2013260 <== NOT EXECUTED 2013420: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 2013424: 81 c7 e0 08 ret <== NOT EXECUTED 2013428: 91 e8 00 08 restore %g0, %o0, %o0 <== 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 ) 201342c: 22 80 00 0d be,a 2013460 2013430: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 * 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; 2013434: f2 24 20 50 st %i1, [ %l0 + 0x50 ] <== NOT EXECUTED 2013438: f4 24 20 54 st %i2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 201343c: f4 26 20 0c st %i2, [ %i0 + 0xc ] 2013440: f2 26 20 08 st %i1, [ %i0 + 8 ] IMFS_update_atime( the_jnode ); 2013444: 90 07 bf f8 add %fp, -8, %o0 2013448: 7f ff c1 aa call 2003af0 201344c: 92 10 20 00 clr %o1 2013450: c2 07 bf f8 ld [ %fp + -8 ], %g1 2013454: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return 0; } 2013458: 81 c7 e0 08 ret 201345c: 91 e8 20 00 restore %g0, 0, %o0 * 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 ) 2013460: 80 a0 40 1a cmp %g1, %i2 2013464: 3a bf ff f5 bcc,a 2013438 2013468: f2 24 20 50 st %i1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 201346c: 10 bf ff eb b 2013418 <== NOT EXECUTED 2013470: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 02013474 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 2013474: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2013478: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 201347c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2013480: 80 a0 60 06 cmp %g1, 6 2013484: 02 80 00 0f be 20134c0 2013488: 90 10 00 10 mov %l0, %o0 if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 201348c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 2013490: 92 10 00 02 mov %g2, %o1 2013494: 7f ff ff 73 call 2013260 2013498: 94 10 00 03 mov %g3, %o2 201349c: 80 a2 20 00 cmp %o0, 0 20134a0: 12 80 00 1b bne 201350c 20134a4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 20134a8: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 20134ac: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 20134b0: d8 3e 20 08 std %o4, [ %i0 + 8 ] } return iop->offset; } 20134b4: b2 10 00 03 mov %g3, %i1 20134b8: 81 c7 e0 08 ret 20134bc: 91 e8 00 02 restore %g0, %g2, %o0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 20134c0: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 <== NOT EXECUTED 20134c4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 20134c8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20134cc: 14 80 00 0c bg 20134fc <== NOT EXECUTED 20134d0: c8 06 20 14 ld [ %i0 + 0x14 ], %g4 <== NOT EXECUTED 20134d4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20134d8: 02 80 00 07 be 20134f4 <== NOT EXECUTED 20134dc: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 20134e0: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED 20134e4: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 20134e8: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED 20134ec: 81 c7 e0 08 ret <== NOT EXECUTED 20134f0: 93 e8 00 03 restore %g0, %g3, %o1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 20134f4: 28 bf ff fc bleu,a 20134e4 <== NOT EXECUTED 20134f8: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 20134fc: c4 3e 20 10 std %g2, [ %i0 + 0x10 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 2013500: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 2013504: 81 c7 e0 08 ret <== NOT EXECUTED 2013508: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); 201350c: 40 00 07 b3 call 20153d8 <__errno> <== NOT EXECUTED 2013510: 01 00 00 00 nop <== NOT EXECUTED 2013514: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2013518: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 201351c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013520: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 2013524: 10 bf ff e4 b 20134b4 <== NOT EXECUTED 2013528: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED 020137f8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 20137f8: 9d e3 bf a0 save %sp, -96, %sp the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 20137fc: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2013800: a0 10 00 18 mov %i0, %l0 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 2013804: 80 88 62 04 btst 0x204, %g1 2013808: 02 80 00 06 be 2013820 201380c: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 && (the_jnode->type == IMFS_LINEAR_FILE)) { 2013810: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 2013814: 80 a0 a0 06 cmp %g2, 6 2013818: 22 80 00 0c be,a 2013848 201381c: d8 04 60 54 ld [ %l1 + 0x54 ], %o4 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 2013820: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2 && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 2013824: 80 88 62 00 btst 0x200, %g1 2013828: 22 80 00 05 be,a 201383c 201382c: c4 3c 20 08 std %g2, [ %l0 + 8 ] iop->offset = the_jnode->info.file.size; 2013830: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] 2013834: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2 iop->size = the_jnode->info.file.size; 2013838: c4 3c 20 08 std %g2, [ %l0 + 8 ] 201383c: b0 10 20 00 clr %i0 return 0; } 2013840: 81 c7 e0 08 ret 2013844: 81 e8 00 00 restore * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; 2013848: d6 04 60 58 ld [ %l1 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 201384c: 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; 2013850: c0 24 60 5c clr [ %l1 + 0x5c ] <== 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; 2013854: c0 24 60 50 clr [ %l1 + 0x50 ] <== NOT EXECUTED 2013858: c0 24 60 54 clr [ %l1 + 0x54 ] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; 201385c: c0 24 60 60 clr [ %l1 + 0x60 ] <== 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; 2013860: c0 24 60 58 clr [ %l1 + 0x58 ] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 2013864: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 2013868: 12 80 00 06 bne 2013880 <== NOT EXECUTED 201386c: c2 24 60 48 st %g1, [ %l1 + 0x48 ] <== NOT EXECUTED 2013870: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 2013874: 84 10 20 00 clr %g2 <== NOT EXECUTED 2013878: 10 bf ff eb b 2013824 <== NOT EXECUTED 201387c: 86 10 20 00 clr %g3 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 2013880: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2013884: 92 10 20 00 clr %o1 <== NOT EXECUTED 2013888: 94 10 20 00 clr %o2 <== NOT EXECUTED 201388c: 7f ff ff 28 call 201352c <== NOT EXECUTED 2013890: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 2013894: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2013898: 02 bf ff ea be 2013840 <== NOT EXECUTED 201389c: 01 00 00 00 nop <== NOT EXECUTED 20138a0: 10 bf ff e0 b 2013820 <== NOT EXECUTED 20138a4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 02013138 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2013138: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 201313c: e0 06 40 00 ld [ %i1 ], %l0 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2013140: c2 04 20 08 ld [ %l0 + 8 ], %g1 2013144: 80 a0 60 00 cmp %g1, 0 2013148: 22 80 00 06 be,a 2013160 201314c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 2013150: 7f ff d4 d1 call 2008494 <_Chain_Extract> 2013154: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2013158: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 201315c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 2013160: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2013164: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2013168: 90 07 bf f8 add %fp, -8, %o0 201316c: 7f ff c2 61 call 2003af0 2013170: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 2013174: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 2013178: 90 10 00 10 mov %l0, %o0 201317c: 7f ff ff d6 call 20130d4 2013180: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } 2013184: 81 c7 e0 08 ret 2013188: 91 e8 00 08 restore %g0, %o0, %o0 02009bcc : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 2009bcc: 13 00 80 6b sethi %hi(0x201ac00), %o1 2009bd0: 15 00 80 6b sethi %hi(0x201ac00), %o2 2009bd4: 92 12 61 d4 or %o1, 0x1d4, %o1 2009bd8: 94 12 a3 98 or %o2, 0x398, %o2 2009bdc: 96 10 00 0a mov %o2, %o3 2009be0: 82 13 c0 00 mov %o7, %g1 2009be4: 40 00 03 73 call 200a9b0 2009be8: 9e 10 40 00 mov %g1, %o7 2009bec: 01 00 00 00 nop <== NOT EXECUTED 02002560 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 2002560: 9d e3 bf 88 save %sp, -120, %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) ) ) 2002564: 03 00 00 3c sethi %hi(0xf000), %g1 2002568: b3 2e 60 10 sll %i1, 0x10, %i1 200256c: b3 36 60 10 srl %i1, 0x10, %i1 2002570: 80 8e 40 01 btst %i1, %g1 2002574: 02 80 00 4f be 20026b0 2002578: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 200257c: c2 4e 00 00 ldsb [ %i0 ], %g1 2002580: 80 a0 60 5c cmp %g1, 0x5c 2002584: 02 80 00 1c be 20025f4 2002588: 80 a0 60 2f cmp %g1, 0x2f 200258c: 02 80 00 1a be 20025f4 2002590: 80 a0 60 00 cmp %g1, 0 2002594: 02 80 00 19 be 20025f8 2002598: 03 00 80 6e sethi %hi(0x201b800), %g1 200259c: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 201bbb4 20025a0: c4 00 60 04 ld [ %g1 + 4 ], %g2 20025a4: c4 27 bf e8 st %g2, [ %fp + -24 ] 20025a8: c4 00 60 08 ld [ %g1 + 8 ], %g2 20025ac: c4 27 bf ec st %g2, [ %fp + -20 ] 20025b0: c4 00 60 0c ld [ %g1 + 0xc ], %g2 20025b4: c4 27 bf f0 st %g2, [ %fp + -16 ] 20025b8: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 20025bc: c4 27 bf f4 st %g2, [ %fp + -12 ] 20025c0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 20025c4: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !temp_loc.ops->evalformake_h ) { 20025c8: c2 07 bf f4 ld [ %fp + -12 ], %g1 20025cc: c2 00 60 04 ld [ %g1 + 4 ], %g1 20025d0: 80 a0 60 00 cmp %g1, 0 20025d4: 12 80 00 19 bne 2002638 20025d8: 90 10 20 00 clr %o0 if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 20025dc: 40 00 34 df call 200f958 <__errno> <== NOT EXECUTED 20025e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20025e4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20025e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20025ec: 81 c7 e0 08 ret 20025f0: 81 e8 00 00 restore int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 20025f4: 03 00 80 6e sethi %hi(0x201b800), %g1 20025f8: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 201bbb4 20025fc: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2002600: c4 27 bf e8 st %g2, [ %fp + -24 ] 2002604: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 2002608: c4 27 bf ec st %g2, [ %fp + -20 ] 200260c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 2002610: c4 27 bf f0 st %g2, [ %fp + -16 ] 2002614: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 2002618: c4 27 bf f4 st %g2, [ %fp + -12 ] 200261c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2002620: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !temp_loc.ops->evalformake_h ) { 2002624: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002628: c2 00 60 04 ld [ %g1 + 4 ], %g1 200262c: 80 a0 60 00 cmp %g1, 0 2002630: 02 bf ff eb be 20025dc 2002634: 90 10 20 01 mov 1, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2002638: 90 06 00 08 add %i0, %o0, %o0 200263c: a0 07 bf e8 add %fp, -24, %l0 2002640: 94 07 bf fc add %fp, -4, %o2 2002644: 92 10 00 10 mov %l0, %o1 2002648: 9f c0 40 00 call %g1 200264c: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 2002650: 80 a2 20 00 cmp %o0, 0 2002654: 12 bf ff e6 bne 20025ec 2002658: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 200265c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 2002660: 80 a0 60 00 cmp %g1, 0 2002664: 02 80 00 19 be 20026c8 2002668: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 200266c: 92 10 00 19 mov %i1, %o1 2002670: 94 10 00 1a mov %i2, %o2 2002674: 96 10 00 1b mov %i3, %o3 2002678: 9f c0 40 00 call %g1 200267c: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 2002680: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002684: 80 a0 60 00 cmp %g1, 0 2002688: 02 bf ff d9 be 20025ec 200268c: b0 10 00 08 mov %o0, %i0 2002690: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002694: 80 a0 60 00 cmp %g1, 0 2002698: 02 80 00 0a be 20026c0 200269c: 01 00 00 00 nop 20026a0: 9f c0 40 00 call %g1 20026a4: 90 10 00 10 mov %l0, %o0 return result; } 20026a8: 81 c7 e0 08 ret 20026ac: 81 e8 00 00 restore int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); 20026b0: 40 00 34 aa call 200f958 <__errno> <== NOT EXECUTED 20026b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20026b8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20026bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20026c0: 81 c7 e0 08 ret 20026c4: 81 e8 00 00 restore ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 20026c8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 20026cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20026d0: 02 bf ff c3 be 20025dc <== NOT EXECUTED 20026d4: 01 00 00 00 nop <== NOT EXECUTED 20026d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20026dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20026e0: 30 bf ff bf b,a 20025dc <== NOT EXECUTED 02002704 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 2002704: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 2002708: 80 a6 60 00 cmp %i1, 0 200270c: 02 80 00 94 be 200295c 2002710: a0 10 00 18 mov %i0, %l0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 2002714: 80 a6 a0 01 cmp %i2, 1 2002718: 18 80 00 91 bgu 200295c 200271c: 01 00 00 00 nop errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 2002720: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 2002724: 80 a0 60 00 cmp %g1, 0 2002728: 02 80 00 98 be 2002988 200272c: 80 a6 e0 00 cmp %i3, 0 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 2002730: 02 80 00 05 be 2002744 2002734: 90 10 20 6c mov 0x6c, %o0 size += strlen( device ) + 1; 2002738: 40 00 38 3f call 2010834 <== NOT EXECUTED 200273c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 2002740: 90 02 20 6d add %o0, 0x6d, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 2002744: 40 00 23 3f call 200b440 2002748: 01 00 00 00 nop if ( !temp_mt_entry ) { 200274c: a2 92 20 00 orcc %o0, 0, %l1 2002750: 02 80 00 97 be 20029ac 2002754: a6 10 00 11 mov %l1, %l3 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 2002758: f4 24 60 30 st %i2, [ %l1 + 0x30 ] if ( device ) { 200275c: 80 a6 e0 00 cmp %i3, 0 2002760: 02 80 00 7d be 2002954 2002764: e2 24 60 2c st %l1, [ %l1 + 0x2c ] temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 2002768: 90 04 60 6c add %l1, 0x6c, %o0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 200276c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2002770: 40 00 38 0e call 20107a8 <== NOT EXECUTED 2002774: d0 24 60 68 st %o0, [ %l1 + 0x68 ] <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 2002778: 80 a7 20 00 cmp %i4, 0 200277c: 22 80 00 6e be,a 2002934 2002780: c0 24 60 1c clr [ %l1 + 0x1c ] if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 2002784: 40 00 38 2c call 2010834 2002788: 90 10 00 1c mov %i4, %o0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 200278c: a4 07 bf ec add %fp, -20, %l2 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 2002790: 92 10 00 08 mov %o0, %o1 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 2002794: 94 10 20 07 mov 7, %o2 2002798: 90 10 00 1c mov %i4, %o0 200279c: 96 10 00 12 mov %l2, %o3 20027a0: 7f ff fe b7 call 200227c 20027a4: 98 10 20 01 mov 1, %o4 20027a8: 80 a2 3f ff cmp %o0, -1 20027ac: 02 80 00 7b be 2002998 20027b0: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 20027b4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20027b8: 80 a0 60 00 cmp %g1, 0 20027bc: 02 80 00 46 be 20028d4 20027c0: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 20027c4: 9f c0 40 00 call %g1 20027c8: 90 10 00 12 mov %l2, %o0 20027cc: 80 a2 20 01 cmp %o0, 1 20027d0: 12 80 00 69 bne 2002974 20027d4: 09 00 80 71 sethi %hi(0x201c400), %g4 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 20027d8: c2 01 20 10 ld [ %g4 + 0x10 ], %g1 ! 201c410 20027dc: 88 11 20 10 or %g4, 0x10, %g4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 20027e0: 88 01 20 04 add %g4, 4, %g4 20027e4: 80 a0 40 04 cmp %g1, %g4 20027e8: 02 80 00 0e be 2002820 20027ec: c6 07 bf ec ld [ %fp + -20 ], %g3 !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 ) 20027f0: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 20027f4: 80 a0 80 03 cmp %g2, %g3 20027f8: 32 80 00 07 bne,a 2002814 20027fc: c2 00 40 00 ld [ %g1 ], %g1 2002800: 30 80 00 48 b,a 2002920 <== NOT EXECUTED 2002804: 80 a0 80 03 cmp %g2, %g3 2002808: 02 80 00 46 be 2002920 200280c: 01 00 00 00 nop * 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 ) { 2002810: c2 00 40 00 ld [ %g1 ], %g1 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 2002814: 80 a0 40 04 cmp %g1, %g4 2002818: 32 bf ff fb bne,a 2002804 200281c: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 * 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; 2002820: c6 24 60 08 st %g3, [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = loc.handlers; 2002824: c6 07 bf f4 ld [ %fp + -12 ], %g3 temp_mt_entry->mt_point_node.ops = loc.ops; 2002828: c4 07 bf f8 ld [ %fp + -8 ], %g2 * 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; 200282c: c6 24 60 10 st %g3, [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 2002830: c6 07 bf fc ld [ %fp + -4 ], %g3 /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 2002834: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 */ 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; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 2002838: c6 24 60 18 st %g3, [ %l1 + 0x18 ] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 200283c: 80 a0 60 00 cmp %g1, 0 2002840: 02 80 00 25 be 20028d4 2002844: c4 24 60 14 st %g2, [ %l1 + 0x14 ] errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 2002848: 90 10 00 11 mov %l1, %o0 200284c: 9f c0 40 00 call %g1 2002850: a6 10 00 12 mov %l2, %l3 2002854: 80 a2 20 00 cmp %o0, 0 2002858: 12 80 00 24 bne 20028e8 200285c: 90 10 00 11 mov %l1, %o0 temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 2002860: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 2002864: 9f c0 40 00 call %g1 2002868: 90 10 00 11 mov %l1, %o0 200286c: 80 a2 20 00 cmp %o0, 0 2002870: 12 80 00 0b bne 200289c 2002874: 11 00 80 71 sethi %hi(0x201c400), %o0 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 2002878: 92 10 00 11 mov %l1, %o1 200287c: 40 00 0f 36 call 2006554 <_Chain_Append> 2002880: 90 12 20 10 or %o0, 0x10, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 2002884: 80 a4 20 00 cmp %l0, 0 2002888: 02 80 00 03 be 2002894 200288c: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 2002890: e2 24 00 00 st %l1, [ %l0 ] 2002894: 81 c7 e0 08 ret 2002898: 81 e8 00 00 restore temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 200289c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20028a0: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 20028a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20028a8: 02 80 00 04 be 20028b8 <== NOT EXECUTED 20028ac: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 20028b0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20028b4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 20028b8: 40 00 21 62 call 200ae40 <== NOT EXECUTED 20028bc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( loc_to_free ) 20028c0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 20028c4: 32 80 00 0c bne,a 20028f4 <== NOT EXECUTED 20028c8: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); return -1; } 20028cc: 81 c7 e0 08 ret <== NOT EXECUTED 20028d0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ errno = ENOTSUP; 20028d4: 40 00 34 21 call 200f958 <__errno> <== NOT EXECUTED 20028d8: 01 00 00 00 nop <== NOT EXECUTED 20028dc: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20028e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 20028e4: 90 10 00 11 mov %l1, %o0 20028e8: 40 00 21 56 call 200ae40 20028ec: a6 10 00 12 mov %l2, %l3 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 20028f0: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 20028f4: 80 a0 60 00 cmp %g1, 0 20028f8: 02 bf ff e7 be 2002894 20028fc: b0 10 3f ff mov -1, %i0 2002900: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002904: 80 a0 60 00 cmp %g1, 0 2002908: 02 bf ff e3 be 2002894 200290c: 90 10 00 13 mov %l3, %o0 2002910: 9f c0 40 00 call %g1 2002914: 01 00 00 00 nop 2002918: 81 c7 e0 08 ret 200291c: 81 e8 00 00 restore /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 2002920: 40 00 34 0e call 200f958 <__errno> 2002924: 01 00 00 00 nop 2002928: 82 10 20 10 mov 0x10, %g1 ! 10 goto cleanup_and_bail; 200292c: 10 bf ff ee b 20028e4 2002930: c2 22 00 00 st %g1, [ %o0 ] * mt_point_node.node_access will be set to null to indicate that this * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL; temp_mt_entry->mt_fs_root.handlers = NULL; 2002934: c0 24 60 24 clr [ %l1 + 0x24 ] temp_mt_entry->mt_fs_root.ops = NULL; 2002938: c0 24 60 28 clr [ %l1 + 0x28 ] temp_mt_entry->mt_point_node.node_access = NULL; 200293c: c0 24 60 08 clr [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 2002940: c0 24 60 10 clr [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = NULL; 2002944: c0 24 60 14 clr [ %l1 + 0x14 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 2002948: c0 24 60 18 clr [ %l1 + 0x18 ] 200294c: 10 bf ff c5 b 2002860 2002950: a6 10 20 00 clr %l3 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; 2002954: 10 bf ff 89 b 2002778 2002958: c0 24 60 68 clr [ %l1 + 0x68 ] * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 200295c: 40 00 33 ff call 200f958 <__errno> 2002960: b0 10 3f ff mov -1, %i0 2002964: 82 10 20 16 mov 0x16, %g1 2002968: c2 22 00 00 st %g1, [ %o0 ] return -1; 200296c: 81 c7 e0 08 ret 2002970: 81 e8 00 00 restore /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 2002974: 40 00 33 f9 call 200f958 <__errno> 2002978: 01 00 00 00 nop 200297c: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 2002980: 10 bf ff d9 b 20028e4 2002984: c2 22 00 00 st %g1, [ %o0 ] return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 2002988: 40 00 33 f4 call 200f958 <__errno> <== NOT EXECUTED 200298c: a6 10 20 00 clr %l3 <== NOT EXECUTED 2002990: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002994: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 2002998: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 200299c: 40 00 21 29 call 200ae40 <== NOT EXECUTED 20029a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20029a4: 81 c7 e0 08 ret <== NOT EXECUTED 20029a8: 81 e8 00 00 restore <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 20029ac: 40 00 33 eb call 200f958 <__errno> <== NOT EXECUTED 20029b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20029b4: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20029b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 20029bc: 81 c7 e0 08 ret <== NOT EXECUTED 20029c0: 81 e8 00 00 restore <== NOT EXECUTED 02002a34 : */ int newlib_free_buffers( FILE *fp ) { 2002a34: 9d e3 bf a0 save %sp, -96, %sp switch ( fileno(fp) ) { 2002a38: 40 00 34 e1 call 200fdbc 2002a3c: 90 10 00 18 mov %i0, %o0 2002a40: 80 a2 20 02 cmp %o0, 2 2002a44: 28 80 00 06 bleu,a 2002a5c 2002a48: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 2002a4c: 40 00 34 1b call 200fab8 <== NOT EXECUTED 2002a50: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2002a54: 81 c7 e0 08 ret 2002a58: 91 e8 20 00 restore %g0, 0, %o0 { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 2002a5c: 80 88 60 80 btst 0x80, %g1 2002a60: 02 bf ff fd be 2002a54 2002a64: 01 00 00 00 nop free( fp->_bf._base ); 2002a68: 40 00 20 f6 call 200ae40 <== NOT EXECUTED 2002a6c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 2002a70: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002a74: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002a78: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002a7c: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002a80: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED break; default: fclose(fp); } return 0; } 2002a84: 81 c7 e0 08 ret <== NOT EXECUTED 2002a88: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02002ad4 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 2002ad4: 9d e3 bf a0 save %sp, -96, %sp rtems_device_driver status; if ( !initialized ) { 2002ad8: 03 00 80 84 sethi %hi(0x2021000), %g1 2002adc: c4 48 61 5c ldsb [ %g1 + 0x15c ], %g2 ! 202115c 2002ae0: 80 a0 a0 00 cmp %g2, 0 2002ae4: 02 80 00 04 be 2002af4 2002ae8: 84 10 20 01 mov 1, %g2 NULL_major = major; } return RTEMS_SUCCESSFUL; } 2002aec: 81 c7 e0 08 ret 2002af0: 91 e8 20 00 restore %g0, 0, %o0 rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( 2002af4: 11 00 80 7b sethi %hi(0x201ec00), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 2002af8: c4 28 61 5c stb %g2, [ %g1 + 0x15c ] status = rtems_io_register_name( 2002afc: 90 12 23 38 or %o0, 0x338, %o0 2002b00: 92 10 00 18 mov %i0, %o1 2002b04: 40 00 00 51 call 2002c48 2002b08: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 2002b0c: 80 a2 20 00 cmp %o0, 0 2002b10: 12 80 00 05 bne 2002b24 2002b14: 03 00 80 84 sethi %hi(0x2021000), %g1 rtems_fatal_error_occurred(status); NULL_major = major; 2002b18: f0 20 63 ec st %i0, [ %g1 + 0x3ec ] ! 20213ec } return RTEMS_SUCCESSFUL; } 2002b1c: 81 c7 e0 08 ret 2002b20: 91 e8 20 00 restore %g0, 0, %o0 major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 2002b24: 40 00 11 aa call 20071cc <== NOT EXECUTED 2002b28: 01 00 00 00 nop 2002b2c: 01 00 00 00 nop 02002ab0 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 2002ab0: 80 a2 a0 00 cmp %o2, 0 2002ab4: 02 80 00 04 be 2002ac4 2002ab8: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 2002abc: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED 2002ac0: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 2002ac4: 81 c3 e0 08 retl 2002ac8: 90 10 20 00 clr %o0 02002cd4 : int open( const char *pathname, int flags, ... ) { 2002cd4: 9d e3 bf 88 save %sp, -120, %sp eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); 2002cd8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2002cdc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2002ce0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2002ce4: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 2002ce8: a2 06 60 01 add %i1, 1, %l1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 2002cec: 80 8c 60 02 btst 2, %l1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 2002cf0: a2 0c 60 01 and %l1, 1, %l1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 2002cf4: 02 80 00 03 be 2002d00 2002cf8: a3 2c 60 02 sll %l1, 2, %l1 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 2002cfc: a2 14 60 02 or %l1, 2, %l1 va_start(ap, flags); mode = va_arg( ap, int ); 2002d00: 82 07 a0 50 add %fp, 0x50, %g1 2002d04: e4 07 a0 4c ld [ %fp + 0x4c ], %l2 2002d08: c2 27 bf fc st %g1, [ %fp + -4 ] * 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(); 2002d0c: 40 00 21 59 call 200b270 2002d10: a6 10 20 17 mov 0x17, %l3 if ( iop == 0 ) { 2002d14: a0 92 20 00 orcc %o0, 0, %l0 2002d18: 02 80 00 6c be 2002ec8 2002d1c: 01 00 00 00 nop /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 2002d20: 40 00 36 c5 call 2010834 2002d24: 90 10 00 18 mov %i0, %o0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2002d28: 94 10 00 11 mov %l1, %o2 pathname, strlen( pathname ), eval_flags, &loc, true ); 2002d2c: 92 10 00 08 mov %o0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2002d30: a2 07 bf e8 add %fp, -24, %l1 2002d34: 90 10 00 18 mov %i0, %o0 2002d38: 96 10 00 11 mov %l1, %o3 2002d3c: 7f ff fd 50 call 200227c 2002d40: 98 10 20 01 mov 1, %o4 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 2002d44: 80 a2 3f ff cmp %o0, -1 2002d48: 02 80 00 65 be 2002edc 2002d4c: 82 0e 6a 00 and %i1, 0xa00, %g1 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 2002d50: a8 10 00 11 mov %l1, %l4 2002d54: 80 a0 6a 00 cmp %g1, 0xa00 2002d58: 02 80 00 4a be 2002e80 2002d5c: a6 10 20 11 mov 0x11, %l3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002d60: c2 07 bf f0 ld [ %fp + -16 ], %g1 iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002d64: e6 04 20 18 ld [ %l0 + 0x18 ], %l3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002d68: c2 24 20 40 st %g1, [ %l0 + 0x40 ] iop->file_info = loc.node_access; 2002d6c: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->flags |= rtems_libio_fcntl_flags( flags ); 2002d70: 90 10 00 19 mov %i1, %o0 2002d74: 40 00 21 80 call 200b374 2002d78: c2 24 20 3c st %g1, [ %l0 + 0x3c ] iop->pathinfo = loc; 2002d7c: c4 07 bf e8 ld [ %fp + -24 ], %g2 if ( !iop->handlers || !iop->handlers->open_h ) { 2002d80: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 2002d84: c4 24 20 1c st %g2, [ %l0 + 0x1c ] 2002d88: c4 07 bf ec ld [ %fp + -20 ], %g2 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002d8c: 90 12 00 13 or %o0, %l3, %o0 iop->pathinfo = loc; 2002d90: c4 24 20 20 st %g2, [ %l0 + 0x20 ] 2002d94: c4 07 bf f0 ld [ %fp + -16 ], %g2 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002d98: d0 24 20 18 st %o0, [ %l0 + 0x18 ] iop->pathinfo = loc; 2002d9c: c4 24 20 24 st %g2, [ %l0 + 0x24 ] 2002da0: c4 07 bf f4 ld [ %fp + -12 ], %g2 if ( !iop->handlers || !iop->handlers->open_h ) { 2002da4: 80 a0 60 00 cmp %g1, 0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 2002da8: c4 24 20 28 st %g2, [ %l0 + 0x28 ] 2002dac: c4 07 bf f8 ld [ %fp + -8 ], %g2 if ( !iop->handlers || !iop->handlers->open_h ) { 2002db0: 02 80 00 32 be 2002e78 2002db4: c4 24 20 2c st %g2, [ %l0 + 0x2c ] 2002db8: c2 00 40 00 ld [ %g1 ], %g1 2002dbc: 80 a0 60 00 cmp %g1, 0 2002dc0: 02 80 00 2e be 2002e78 2002dc4: 92 10 00 18 mov %i0, %o1 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 2002dc8: 96 10 00 12 mov %l2, %o3 2002dcc: 90 10 00 10 mov %l0, %o0 2002dd0: 9f c0 40 00 call %g1 2002dd4: 94 10 00 19 mov %i1, %o2 if ( rc ) { 2002dd8: 80 a2 20 00 cmp %o0, 0 2002ddc: 12 80 00 12 bne 2002e24 2002de0: 80 8e 64 00 btst 0x400, %i1 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 2002de4: 12 80 00 48 bne 2002f04 2002de8: 23 00 80 70 sethi %hi(0x201c000), %l1 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2002dec: c2 04 63 d0 ld [ %l1 + 0x3d0 ], %g1 ! 201c3d0 2002df0: a0 24 00 01 sub %l0, %g1, %l0 2002df4: a1 3c 20 03 sra %l0, 3, %l0 2002df8: 85 2c 20 06 sll %l0, 6, %g2 2002dfc: 83 2c 20 03 sll %l0, 3, %g1 2002e00: 82 20 80 01 sub %g2, %g1, %g1 2002e04: 85 28 60 06 sll %g1, 6, %g2 2002e08: 82 00 40 02 add %g1, %g2, %g1 2002e0c: 82 00 40 10 add %g1, %l0, %g1 2002e10: b1 28 60 0f sll %g1, 0xf, %i0 2002e14: b0 26 00 01 sub %i0, %g1, %i0 2002e18: b1 2e 20 03 sll %i0, 3, %i0 } 2002e1c: 81 c7 e0 08 ret 2002e20: 91 ee 00 10 restore %i0, %l0, %o0 goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 2002e24: a8 10 00 11 mov %l1, %l4 2002e28: 40 00 32 cc call 200f958 <__errno> 2002e2c: 01 00 00 00 nop 2002e30: e6 02 00 00 ld [ %o0 ], %l3 */ done: va_end(ap); if ( rc ) { 2002e34: 80 a4 e0 00 cmp %l3, 0 2002e38: 12 80 00 12 bne 2002e80 2002e3c: 23 00 80 70 sethi %hi(0x201c000), %l1 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2002e40: c2 04 63 d0 ld [ %l1 + 0x3d0 ], %g1 ! 201c3d0 <== NOT EXECUTED 2002e44: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED 2002e48: a1 3c 20 03 sra %l0, 3, %l0 <== NOT EXECUTED 2002e4c: 85 2c 20 06 sll %l0, 6, %g2 <== NOT EXECUTED 2002e50: 83 2c 20 03 sll %l0, 3, %g1 <== NOT EXECUTED 2002e54: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED 2002e58: 85 28 60 06 sll %g1, 6, %g2 <== NOT EXECUTED 2002e5c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2002e60: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED 2002e64: b1 28 60 0f sll %g1, 0xf, %i0 <== NOT EXECUTED 2002e68: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED 2002e6c: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED } 2002e70: 81 c7 e0 08 ret <== NOT EXECUTED 2002e74: 91 ee 00 10 restore %i0, %l0, %o0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2002e78: a8 10 00 11 mov %l1, %l4 <== NOT EXECUTED 2002e7c: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 2002e80: 80 a4 20 00 cmp %l0, 0 2002e84: 02 80 00 05 be 2002e98 2002e88: 80 a5 20 00 cmp %l4, 0 rtems_libio_free( iop ); 2002e8c: 40 00 20 e2 call 200b214 2002e90: 90 10 00 10 mov %l0, %o0 if ( loc_to_free ) 2002e94: 80 a5 20 00 cmp %l4, 0 2002e98: 02 80 00 0c be 2002ec8 2002e9c: 01 00 00 00 nop rtems_filesystem_freenode( loc_to_free ); 2002ea0: c2 05 20 0c ld [ %l4 + 0xc ], %g1 2002ea4: 80 a0 60 00 cmp %g1, 0 2002ea8: 02 80 00 08 be 2002ec8 2002eac: 01 00 00 00 nop 2002eb0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002eb4: 80 a0 60 00 cmp %g1, 0 2002eb8: 02 80 00 04 be 2002ec8 2002ebc: 01 00 00 00 nop 2002ec0: 9f c0 40 00 call %g1 2002ec4: 90 10 00 14 mov %l4, %o0 rtems_set_errno_and_return_minus_one( rc ); 2002ec8: 40 00 32 a4 call 200f958 <__errno> 2002ecc: b0 10 3f ff mov -1, %i0 2002ed0: e6 22 00 00 st %l3, [ %o0 ] 2002ed4: 81 c7 e0 08 ret 2002ed8: 81 e8 00 00 restore status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 2002edc: 40 00 32 9f call 200f958 <__errno> 2002ee0: 01 00 00 00 nop 2002ee4: c2 02 00 00 ld [ %o0 ], %g1 2002ee8: 80 a0 60 02 cmp %g1, 2 2002eec: 02 80 00 31 be 2002fb0 2002ef0: 80 8e 62 00 btst 0x200, %i1 rc = errno; 2002ef4: 40 00 32 99 call 200f958 <__errno> 2002ef8: a8 10 20 00 clr %l4 goto done; 2002efc: 10 bf ff ce b 2002e34 2002f00: e6 02 00 00 ld [ %o0 ], %l3 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 2002f04: c2 04 63 d0 ld [ %l1 + 0x3d0 ], %g1 2002f08: 92 10 20 00 clr %o1 2002f0c: 82 24 00 01 sub %l0, %g1, %g1 2002f10: 83 38 60 03 sra %g1, 3, %g1 2002f14: 87 28 60 06 sll %g1, 6, %g3 2002f18: 85 28 60 03 sll %g1, 3, %g2 2002f1c: 84 20 c0 02 sub %g3, %g2, %g2 2002f20: 87 28 a0 06 sll %g2, 6, %g3 2002f24: 84 00 80 03 add %g2, %g3, %g2 2002f28: 84 00 80 01 add %g2, %g1, %g2 2002f2c: 91 28 a0 0f sll %g2, 0xf, %o0 2002f30: 84 22 00 02 sub %o0, %g2, %g2 2002f34: 94 10 20 00 clr %o2 2002f38: 91 28 a0 03 sll %g2, 3, %o0 2002f3c: 40 00 1f ec call 200aeec 2002f40: 90 02 00 01 add %o0, %g1, %o0 if ( rc ) { 2002f44: a6 92 20 00 orcc %o0, 0, %l3 2002f48: 02 bf ff aa be 2002df0 2002f4c: c2 04 63 d0 ld [ %l1 + 0x3d0 ], %g1 if(errno) rc = errno; 2002f50: 40 00 32 82 call 200f958 <__errno> <== NOT EXECUTED 2002f54: 01 00 00 00 nop <== NOT EXECUTED 2002f58: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002f5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002f60: 12 80 00 30 bne 2003020 <== NOT EXECUTED 2002f64: 01 00 00 00 nop <== NOT EXECUTED close( iop - rtems_libio_iops ); 2002f68: c2 04 63 d0 ld [ %l1 + 0x3d0 ], %g1 <== NOT EXECUTED 2002f6c: a8 10 20 00 clr %l4 <== NOT EXECUTED 2002f70: 82 24 00 01 sub %l0, %g1, %g1 <== NOT EXECUTED 2002f74: 83 38 60 03 sra %g1, 3, %g1 <== NOT EXECUTED 2002f78: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED 2002f7c: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED 2002f80: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 2002f84: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED 2002f88: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED 2002f8c: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 2002f90: 87 28 a0 0f sll %g2, 0xf, %g3 <== NOT EXECUTED 2002f94: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 2002f98: a0 10 20 00 clr %l0 <== NOT EXECUTED 2002f9c: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED 2002fa0: 40 00 1f 78 call 200ad80 <== NOT EXECUTED 2002fa4: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 2002fa8: 10 bf ff a4 b 2002e38 <== NOT EXECUTED 2002fac: 80 a4 e0 00 cmp %l3, 0 <== 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) ) { 2002fb0: a8 10 20 00 clr %l4 2002fb4: 02 bf ff b3 be 2002e80 2002fb8: a6 10 20 02 mov 2, %l3 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 2002fbc: 13 3f ff e0 sethi %hi(0xffff8000), %o1 2002fc0: 90 10 00 18 mov %i0, %o0 2002fc4: 92 14 80 09 or %l2, %o1, %o1 2002fc8: 94 10 20 00 clr %o2 2002fcc: 93 2a 60 10 sll %o1, 0x10, %o1 2002fd0: 96 10 20 00 clr %o3 2002fd4: 7f ff fd 63 call 2002560 2002fd8: 93 32 60 10 srl %o1, 0x10, %o1 if ( rc ) { 2002fdc: 80 a2 20 00 cmp %o0, 0 2002fe0: 12 bf ff 92 bne 2002e28 2002fe4: 01 00 00 00 nop rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); 2002fe8: 40 00 36 13 call 2010834 2002fec: 90 10 00 18 mov %i0, %o0 2002ff0: 94 10 20 00 clr %o2 2002ff4: 92 10 00 08 mov %o0, %o1 2002ff8: 96 10 00 11 mov %l1, %o3 2002ffc: 90 10 00 18 mov %i0, %o0 2003000: 98 10 20 01 mov 1, %o4 2003004: 7f ff fc 9e call 200227c 2003008: a8 10 20 00 clr %l4 if ( status != 0 ) { /* The file did not exist */ 200300c: 80 a2 20 00 cmp %o0, 0 2003010: 12 bf ff 9c bne 2002e80 2003014: a6 10 20 0d mov 0xd, %l3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2003018: 10 bf ff 53 b 2002d64 200301c: c2 07 bf f0 ld [ %fp + -16 ], %g1 */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 2003020: 40 00 32 4e call 200f958 <__errno> <== NOT EXECUTED 2003024: 01 00 00 00 nop <== NOT EXECUTED 2003028: 10 bf ff d0 b 2002f68 <== NOT EXECUTED 200302c: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED 02002c60 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 2002c60: 9d e3 bf a0 save %sp, -96, %sp int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 2002c64: 21 00 80 6a sethi %hi(0x201a800), %l0 2002c68: 92 10 20 00 clr %o1 2002c6c: 90 14 20 58 or %l0, 0x58, %o0 2002c70: 40 00 00 19 call 2002cd4 2002c74: 94 10 20 00 clr %o2 2002c78: 80 a2 3f ff cmp %o0, -1 2002c7c: 02 80 00 0e be 2002cb4 2002c80: 90 14 20 58 or %l0, 0x58, %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) 2002c84: 92 10 20 01 mov 1, %o1 2002c88: 40 00 00 13 call 2002cd4 2002c8c: 94 10 20 00 clr %o2 2002c90: 80 a2 3f ff cmp %o0, -1 2002c94: 02 80 00 0c be 2002cc4 2002c98: 92 10 20 01 mov 1, %o1 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002c9c: 90 14 20 58 or %l0, 0x58, %o0 2002ca0: 40 00 00 0d call 2002cd4 2002ca4: 94 10 20 00 clr %o2 2002ca8: 80 a2 3f ff cmp %o0, -1 2002cac: 02 80 00 04 be 2002cbc 2002cb0: 11 15 55 11 sethi %hi(0x55544400), %o0 2002cb4: 81 c7 e0 08 ret 2002cb8: 81 e8 00 00 restore rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 2002cbc: 40 00 0d 37 call 2006198 <== NOT EXECUTED 2002cc0: 90 12 20 32 or %o0, 0x32, %o0 <== NOT EXECUTED /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 2002cc4: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED 2002cc8: 40 00 0d 34 call 2006198 <== NOT EXECUTED 2002ccc: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <== NOT EXECUTED 2002cd0: 01 00 00 00 nop 0200380c : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 200380c: 9d e3 bf a0 save %sp, -96, %sp int i; if (tty->termios.c_oflag & OPOST) { 2003810: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 2003814: 80 88 60 01 btst 1, %g1 2003818: 02 80 00 19 be 200387c 200381c: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 2003820: b0 0e 20 ff and %i0, 0xff, %i0 2003824: 80 a6 20 09 cmp %i0, 9 2003828: 22 80 00 42 be,a 2003930 200382c: c6 06 60 28 ld [ %i1 + 0x28 ], %g3 2003830: 08 80 00 19 bleu 2003894 2003834: 80 a6 20 08 cmp %i0, 8 2003838: 80 a6 20 0a cmp %i0, 0xa 200383c: 02 80 00 22 be 20038c4 2003840: 80 a6 20 0d cmp %i0, 0xd 2003844: 02 80 00 2d be 20038f8 2003848: 80 88 60 10 btst 0x10, %g1 if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 200384c: 80 88 60 02 btst 2, %g1 2003850: 12 80 00 46 bne 2003968 2003854: 03 00 80 6f sethi %hi(0x201bc00), %g1 2003858: c2 00 60 54 ld [ %g1 + 0x54 ], %g1 ! 201bc54 <__ctype_ptr__> c = toupper(c); if (!iscntrl(c)) 200385c: b0 00 40 18 add %g1, %i0, %i0 2003860: c2 0e 20 01 ldub [ %i0 + 1 ], %g1 2003864: 80 88 60 20 btst 0x20, %g1 2003868: 12 80 00 06 bne 2003880 200386c: 94 10 00 19 mov %i1, %o2 tty->column++; 2003870: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 2003874: 82 00 60 01 inc %g1 2003878: c2 26 60 28 st %g1, [ %i1 + 0x28 ] break; } } rtems_termios_puts (&c, 1, tty); 200387c: 94 10 00 19 mov %i1, %o2 2003880: 90 07 a0 44 add %fp, 0x44, %o0 2003884: 7f ff ff 93 call 20036d0 2003888: 92 10 20 01 mov 1, %o1 200388c: 81 c7 e0 08 ret 2003890: 81 e8 00 00 restore oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 2003894: 12 bf ff ef bne 2003850 <== NOT EXECUTED 2003898: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 200389c: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 20038a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038a4: 04 bf ff f6 ble 200387c <== NOT EXECUTED 20038a8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 20038ac: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += i; break; case '\b': if (tty->column > 0) tty->column--; 20038b0: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 20038b4: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED 20038b8: 7f ff ff 86 call 20036d0 <== NOT EXECUTED 20038bc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 20038c0: 30 80 00 3e b,a 20039b8 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 20038c4: 80 88 60 20 btst 0x20, %g1 20038c8: 32 80 00 02 bne,a 20038d0 20038cc: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 20038d0: 80 88 60 04 btst 4, %g1 20038d4: 02 bf ff eb be 2003880 20038d8: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 20038dc: 11 00 80 6a sethi %hi(0x201a800), %o0 20038e0: 92 10 20 01 mov 1, %o1 20038e4: 90 12 23 f0 or %o0, 0x3f0, %o0 20038e8: 7f ff ff 7a call 20036d0 20038ec: 94 10 00 19 mov %i1, %o2 tty->column = 0; 20038f0: 10 bf ff e3 b 200387c 20038f4: c0 26 60 28 clr [ %i1 + 0x28 ] } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 20038f8: 02 80 00 06 be 2003910 <== NOT EXECUTED 20038fc: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003900: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED 2003904: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003908: 02 bf ff e1 be 200388c <== NOT EXECUTED 200390c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 2003910: 22 bf ff db be,a 200387c <== NOT EXECUTED 2003914: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 2003918: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 200391c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003920: 02 bf ff d7 be 200387c <== NOT EXECUTED 2003924: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; break; 2003928: 10 bf ff d5 b 200387c <== NOT EXECUTED 200392c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2003930: 05 00 00 06 sethi %hi(0x1800), %g2 2003934: 82 08 40 02 and %g1, %g2, %g1 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2003938: 92 10 20 08 mov 8, %o1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 200393c: 80 a0 40 02 cmp %g1, %g2 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2003940: 82 08 e0 07 and %g3, 7, %g1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2003944: 02 80 00 17 be 20039a0 2003948: 92 22 40 01 sub %o1, %g1, %o1 tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 200394c: 86 02 40 03 add %o1, %g3, %g3 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003950: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 2003954: c6 26 60 28 st %g3, [ %i1 + 0x28 ] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003958: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED 200395c: 7f ff ff 5d call 20036d0 <== NOT EXECUTED 2003960: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003964: 30 80 00 15 b,a 20039b8 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 2003968: c2 00 60 54 ld [ %g1 + 0x54 ], %g1 <== NOT EXECUTED 200396c: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED 2003970: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED 2003974: c6 0e 20 01 ldub [ %i0 + 1 ], %g3 <== NOT EXECUTED 2003978: 86 08 e0 03 and %g3, 3, %g3 <== NOT EXECUTED 200397c: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED 2003980: 22 80 00 05 be,a 2003994 <== NOT EXECUTED 2003984: 84 00 bf e0 add %g2, -32, %g2 <== NOT EXECUTED 2003988: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED 200398c: 10 bf ff b4 b 200385c <== NOT EXECUTED 2003990: b0 08 a0 ff and %g2, 0xff, %i0 <== NOT EXECUTED 2003994: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED 2003998: 10 bf ff b1 b 200385c <== NOT EXECUTED 200399c: b0 08 a0 ff and %g2, 0xff, %i0 <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 20039a0: 86 02 40 03 add %o1, %g3, %g3 rtems_termios_puts ( " ", i, tty); 20039a4: 94 10 00 19 mov %i1, %o2 break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 20039a8: c6 26 60 28 st %g3, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 20039ac: 11 00 80 6a sethi %hi(0x201a800), %o0 20039b0: 7f ff ff 48 call 20036d0 20039b4: 90 12 23 f8 or %o0, 0x3f8, %o0 ! 201abf8 return; 20039b8: 81 c7 e0 08 ret 20039bc: 81 e8 00 00 restore 0200ed0c : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 200ed0c: 9d e3 bf 78 save %sp, -136, %sp rtems_filesystem_location_info_t loc; rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) 200ed10: 23 00 80 6c sethi %hi(0x201b000), %l1 200ed14: a0 07 bf dc add %fp, -36, %l0 200ed18: 92 10 20 03 mov 3, %o1 200ed1c: 90 14 62 f0 or %l1, 0x2f0, %o0 200ed20: 94 10 20 07 mov 7, %o2 200ed24: 96 10 00 10 mov %l0, %o3 200ed28: 7f ff cd 55 call 200227c 200ed2c: 98 10 20 01 mov 1, %o4 200ed30: 80 a2 20 00 cmp %o0, 0 200ed34: 12 80 00 43 bne 200ee40 200ed38: c2 07 bf e8 ld [ %fp + -24 ], %g1 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 200ed3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ed40: 22 80 00 09 be,a 200ed64 <== NOT EXECUTED 200ed44: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200ed48: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201c01c <== NOT EXECUTED 200ed4c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ed50: 22 80 00 05 be,a 200ed64 <== NOT EXECUTED 200ed54: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200ed58: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ed5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200ed60: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200ed64: c4 10 62 76 lduh [ %g1 + 0x276 ], %g2 ! 201c276 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200ed68: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200ed6c: 95 28 a0 10 sll %g2, 0x10, %o2 200ed70: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200ed74: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200ed78: c4 30 62 76 sth %g2, [ %g1 + 0x276 ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200ed7c: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 200ed80: 03 00 00 19 sethi %hi(0x6400), %g1 200ed84: 84 10 a1 70 or %g2, 0x170, %g2 200ed88: 82 10 62 6f or %g1, 0x26f, %g1 200ed8c: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200ed90: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200ed94: c4 3f bf f0 std %g2, [ %fp + -16 ] 200ed98: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200ed9c: 90 07 bf fa add %fp, -6, %o0 200eda0: 13 00 80 6c sethi %hi(0x201b000), %o1 200eda4: 40 00 05 d8 call 2010504 200eda8: 92 12 62 f8 or %o1, 0x2f8, %o1 ! 201b2f8 <__FUNCTION__.5923+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 200edac: 90 10 00 10 mov %l0, %o0 200edb0: 40 00 00 5a call 200ef18 200edb4: 92 10 21 80 mov 0x180, %o1 200edb8: 80 a2 20 00 cmp %o0, 0 200edbc: 12 80 00 1d bne 200ee30 200edc0: 90 10 00 10 mov %l0, %o0 return -1; sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); 200edc4: 7f ff cf c4 call 2002cd4 200edc8: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 200edcc: 80 a2 20 00 cmp %o0, 0 200edd0: 06 80 00 2f bl 200ee8c 200edd4: d0 26 00 00 st %o0, [ %i0 ] the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 200edd8: 03 00 80 6e sethi %hi(0x201b800), %g1 <== NOT EXECUTED 200eddc: c4 00 62 a4 ld [ %g1 + 0x2a4 ], %g2 ! 201baa4 <== NOT EXECUTED 200ede0: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 200ede4: 0a 80 00 23 bcs 200ee70 <== NOT EXECUTED 200ede8: 82 10 20 00 clr %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200edec: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200edf0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200edf4: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200edf8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200edfc: 7f ff cf b6 call 2002cd4 <== NOT EXECUTED 200ee00: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 200ee04: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 200ee08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ee0c: 06 80 00 26 bl 200eea4 <== NOT EXECUTED 200ee10: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 200ee14: 40 00 00 4b call 200ef40 <== NOT EXECUTED 200ee18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 200ee1c: 40 00 02 cf call 200f958 <__errno> 200ee20: b0 10 3f ff mov -1, %i0 200ee24: e2 22 00 00 st %l1, [ %o0 ] } 200ee28: 81 c7 e0 08 ret 200ee2c: 81 e8 00 00 restore memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { if (errno != EEXIST){ 200ee30: 40 00 02 ca call 200f958 <__errno> <== NOT EXECUTED 200ee34: 01 00 00 00 nop <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 200ee38: 81 c7 e0 08 ret <== NOT EXECUTED 200ee3c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) != 0) { if (errno != ENOENT) 200ee40: 40 00 02 c6 call 200f958 <__errno> 200ee44: 01 00 00 00 nop 200ee48: c2 02 00 00 ld [ %o0 ], %g1 200ee4c: 80 a0 60 02 cmp %g1, 2 200ee50: 12 bf ff fa bne 200ee38 200ee54: 90 14 62 f0 or %l1, 0x2f0, %o0 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 200ee58: 7f ff cd b8 call 2002538 200ee5c: 92 10 23 ff mov 0x3ff, %o1 200ee60: 80 a2 20 00 cmp %o0, 0 200ee64: 02 bf ff c0 be 200ed64 200ee68: 03 00 80 70 sethi %hi(0x201c000), %g1 200ee6c: 30 bf ff f3 b,a 200ee38 <== NOT EXECUTED the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 200ee70: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200ee74: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 201c3d0 <== NOT EXECUTED 200ee78: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 200ee7c: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 200ee80: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 200ee84: 10 bf ff da b 200edec <== NOT EXECUTED 200ee88: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; 200ee8c: 40 00 02 b3 call 200f958 <__errno> 200ee90: 01 00 00 00 nop 200ee94: e2 02 00 00 ld [ %o0 ], %l1 /* Delete file at errors, or else if pipe is successfully created the file node will be deleted after it is closed by all. */ unlink(fifopath); 200ee98: 40 00 00 2a call 200ef40 200ee9c: 90 10 00 10 mov %l0, %o0 200eea0: 30 bf ff df b,a 200ee1c iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; 200eea4: 40 00 02 ad call 200f958 <__errno> <== NOT EXECUTED 200eea8: 01 00 00 00 nop <== NOT EXECUTED 200eeac: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 200eeb0: 7f ff ef b4 call 200ad80 <== NOT EXECUTED 200eeb4: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 200eeb8: 30 bf ff d7 b,a 200ee14 <== NOT EXECUTED 0200d2b4 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200d2b4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 200d2b8: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200d2bc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 200d2c0: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 200d2c4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200d2c8: 12 80 00 12 bne 200d310 <== NOT EXECUTED 200d2cc: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 200d2d0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200d2d4: 02 80 00 0f be 200d310 <== NOT EXECUTED 200d2d8: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 200d2dc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200d2e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d2e4: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d2e8: 7f ff e1 fd call 2005adc <== NOT EXECUTED 200d2ec: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200d2f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d2f4: 12 80 00 07 bne 200d310 <== NOT EXECUTED 200d2f8: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200d2fc: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d300: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200d304: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d308: 7f ff e2 3c call 2005bf8 <== NOT EXECUTED 200d30c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 200d310: 81 c7 e0 08 ret <== NOT EXECUTED 200d314: 81 e8 00 00 restore <== NOT EXECUTED 0200d23c : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 200d23c: 81 c3 e0 08 retl <== NOT EXECUTED 200d240: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 0200d318 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200d318: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200d31c: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200d320: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200d324: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d328: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d32c: 7f ff e1 ec call 2005adc <== NOT EXECUTED 200d330: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200d334: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d338: 12 80 00 2f bne 200d3f4 <== NOT EXECUTED 200d33c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 200d340: a4 10 20 00 clr %l2 <== NOT EXECUTED 200d344: b0 10 20 00 clr %i0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 200d348: 02 80 00 26 be 200d3e0 <== NOT EXECUTED 200d34c: a2 10 20 00 clr %l1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 200d350: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 200d354: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200d358: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200d35c: 12 80 00 2a bne 200d404 <== NOT EXECUTED 200d360: 82 26 80 12 sub %i2, %l2, %g1 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 200d364: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200d368: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d36c: 22 80 00 1d be,a 200d3e0 <== NOT EXECUTED 200d370: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 200d374: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200d378: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200d37c: 32 80 00 19 bne,a 200d3e0 <== NOT EXECUTED 200d380: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 200d384: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d388: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 200d38c: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d390: 7f ff e2 1a call 2005bf8 <== NOT EXECUTED 200d394: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200d398: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200d39c: 40 00 04 a9 call 200e640 <== NOT EXECUTED 200d3a0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d3a4: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d3a8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 200d3ac: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d3b0: 92 10 20 00 clr %o1 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 200d3b4: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d3b8: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d3bc: 7f ff e1 c8 call 2005adc <== NOT EXECUTED 200d3c0: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200d3c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d3c8: 12 80 00 32 bne 200d490 <== NOT EXECUTED 200d3cc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 200d3d0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200d3d4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200d3d8: 02 bf ff df be 200d354 <== NOT EXECUTED 200d3dc: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 200d3e0: 7f ff e2 06 call 2005bf8 <== NOT EXECUTED 200d3e4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 200d3e8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200d3ec: 04 80 00 04 ble 200d3fc <== NOT EXECUTED 200d3f0: 01 00 00 00 nop <== NOT EXECUTED return read; return ret; } 200d3f4: 81 c7 e0 08 ret <== NOT EXECUTED 200d3f8: 81 e8 00 00 restore <== NOT EXECUTED 200d3fc: 81 c7 e0 08 ret <== NOT EXECUTED 200d400: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 200d404: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 200d408: 38 80 00 02 bgu,a 200d410 <== NOT EXECUTED 200d40c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 200d410: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200d414: e8 04 20 04 ld [ %l0 + 4 ], %l4 <== NOT EXECUTED 200d418: a8 25 00 01 sub %l4, %g1, %l4 <== NOT EXECUTED if (chunk > chunk1) { 200d41c: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED 200d420: 14 80 00 1e bg 200d498 <== NOT EXECUTED 200d424: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 200d428: 90 06 40 12 add %i1, %l2, %o0 <== NOT EXECUTED 200d42c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200d430: 40 00 0b 85 call 2010244 <== NOT EXECUTED 200d434: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED pipe->Start += chunk; 200d438: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200d43c: d2 04 20 04 ld [ %l0 + 4 ], %o1 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; 200d440: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200d444: 40 00 2f 19 call 20190a8 <.urem> <== NOT EXECUTED 200d448: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200d44c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 200d450: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200d454: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 200d458: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d45c: 12 80 00 03 bne 200d468 <== NOT EXECUTED 200d460: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 200d464: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 200d468: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200d46c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d470: 32 80 00 15 bne,a 200d4c4 <== NOT EXECUTED 200d474: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; 200d478: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 200d47c: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200d480: 0a bf ff b5 bcs 200d354 <== NOT EXECUTED 200d484: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED 200d488: 10 bf ff d6 b 200d3e0 <== NOT EXECUTED 200d48c: a2 10 20 00 clr %l1 <== NOT EXECUTED /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d490: 10 bf ff d6 b 200d3e8 <== NOT EXECUTED 200d494: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 200d498: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED 200d49c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200d4a0: 40 00 0b 69 call 2010244 <== NOT EXECUTED 200d4a4: 90 06 40 12 add %i1, %l2, %o0 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 200d4a8: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 200d4ac: 90 04 80 14 add %l2, %l4, %o0 <== NOT EXECUTED 200d4b0: 94 24 40 14 sub %l1, %l4, %o2 <== NOT EXECUTED 200d4b4: 40 00 0b 64 call 2010244 <== NOT EXECUTED 200d4b8: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; 200d4bc: 10 bf ff e0 b 200d43c <== NOT EXECUTED 200d4c0: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 200d4c4: 40 00 04 48 call 200e5e4 <== NOT EXECUTED 200d4c8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 200d4cc: 10 bf ff ec b 200d47c <== NOT EXECUTED 200d4d0: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 0200d6f0 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 200d6f0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 200d6f4: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 200d6f8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d6fc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200d700: 7f ff e0 f7 call 2005adc <== NOT EXECUTED 200d704: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 200d708: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d70c: 12 80 00 48 bne 200d82c <== NOT EXECUTED 200d710: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 200d714: e4 06 60 18 ld [ %i1 + 0x18 ], %l2 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 200d718: 80 8c a0 02 btst 2, %l2 <== NOT EXECUTED 200d71c: 02 80 00 05 be 200d730 <== NOT EXECUTED 200d720: a4 0c a0 06 and %l2, 6, %l2 <== NOT EXECUTED pipe->Readers --; 200d724: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200d728: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200d72c: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 200d730: 80 8c a0 04 btst 4, %l2 <== NOT EXECUTED 200d734: 32 80 00 1d bne,a 200d7a8 <== NOT EXECUTED 200d738: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 200d73c: 23 00 80 70 sethi %hi(0x201c000), %l1 <== NOT EXECUTED 200d740: d0 04 62 70 ld [ %l1 + 0x270 ], %o0 ! 201c270 <== NOT EXECUTED 200d744: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d748: 7f ff e0 e5 call 2005adc <== NOT EXECUTED 200d74c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 200d750: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d754: 12 80 00 36 bne 200d82c <== NOT EXECUTED 200d758: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 200d75c: 7f ff e1 27 call 2005bf8 <== NOT EXECUTED 200d760: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 200d764: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200d768: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d76c: 12 80 00 12 bne 200d7b4 <== NOT EXECUTED 200d770: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200d774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d778: 02 80 00 1d be 200d7ec <== NOT EXECUTED 200d77c: 80 a4 a0 04 cmp %l2, 4 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 200d780: 02 80 00 06 be 200d798 <== NOT EXECUTED 200d784: d0 04 62 70 ld [ %l1 + 0x270 ], %o0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 200d788: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200d78c: 40 00 03 96 call 200e5e4 <== NOT EXECUTED 200d790: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); 200d794: d0 04 62 70 ld [ %l1 + 0x270 ], %o0 <== NOT EXECUTED 200d798: 7f ff e1 18 call 2005bf8 <== NOT EXECUTED 200d79c: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200d7a0: 81 c7 e0 08 ret <== NOT EXECUTED 200d7a4: 81 e8 00 00 restore <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; 200d7a8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200d7ac: 10 bf ff e4 b 200d73c <== NOT EXECUTED 200d7b0: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 200d7b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d7b8: 12 bf ff f8 bne 200d798 <== NOT EXECUTED 200d7bc: d0 04 62 70 ld [ %l1 + 0x270 ], %o0 <== NOT EXECUTED 200d7c0: 80 a4 a0 02 cmp %l2, 2 <== NOT EXECUTED 200d7c4: 02 bf ff f5 be 200d798 <== NOT EXECUTED 200d7c8: 01 00 00 00 nop <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200d7cc: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200d7d0: 40 00 03 85 call 200e5e4 <== NOT EXECUTED 200d7d4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 200d7d8: d0 04 62 70 ld [ %l1 + 0x270 ], %o0 <== NOT EXECUTED 200d7dc: 7f ff e1 07 call 2005bf8 <== NOT EXECUTED 200d7e0: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200d7e4: 81 c7 e0 08 ret <== NOT EXECUTED 200d7e8: 81 e8 00 00 restore <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 200d7ec: 40 00 03 64 call 200e57c <== NOT EXECUTED 200d7f0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200d7f4: 40 00 03 62 call 200e57c <== NOT EXECUTED 200d7f8: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200d7fc: 7f ff e0 8b call 2005a28 <== NOT EXECUTED 200d800: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200d804: 7f ff f5 8f call 200ae40 <== NOT EXECUTED 200d808: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED free(pipe); 200d80c: 7f ff f5 8d call 200ae40 <== NOT EXECUTED 200d810: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); 200d814: d0 04 62 70 ld [ %l1 + 0x270 ], %o0 <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; 200d818: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); 200d81c: 7f ff e0 f7 call 2005bf8 <== NOT EXECUTED 200d820: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200d824: 81 c7 e0 08 ret <== NOT EXECUTED 200d828: 81 e8 00 00 restore <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); 200d82c: 7f ff e2 5b call 2006198 <== NOT EXECUTED 200d830: 01 00 00 00 nop 200d834: 01 00 00 00 nop 0200d4d4 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 200d4d4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 200d4d8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 200d4dc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200d4e0: 12 80 00 04 bne 200d4f0 <== NOT EXECUTED 200d4e4: b0 10 20 00 clr %i0 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 200d4e8: 81 c7 e0 08 ret <== NOT EXECUTED 200d4ec: 81 e8 00 00 restore <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 200d4f0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200d4f4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d4f8: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d4fc: 7f ff e1 78 call 2005adc <== NOT EXECUTED 200d500: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200d504: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d508: 12 bf ff f8 bne 200d4e8 <== NOT EXECUTED 200d50c: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 200d510: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200d514: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d518: 02 80 00 56 be 200d670 <== NOT EXECUTED 200d51c: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 200d520: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED 200d524: 80 a6 80 15 cmp %i2, %l5 <== NOT EXECUTED 200d528: 18 80 00 03 bgu 200d534 <== NOT EXECUTED 200d52c: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED 200d530: a4 10 00 1a mov %i2, %l2 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 200d534: a6 10 20 00 clr %l3 <== NOT EXECUTED 200d538: b0 10 20 00 clr %i0 <== NOT EXECUTED else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 200d53c: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { 200d540: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200d544: a2 25 40 01 sub %l5, %g1, %l1 <== NOT EXECUTED 200d548: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200d54c: 1a 80 00 28 bcc 200d5ec <== NOT EXECUTED 200d550: 84 26 80 13 sub %i2, %l3, %g2 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 200d554: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200d558: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200d55c: 32 80 00 46 bne,a 200d674 <== NOT EXECUTED 200d560: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 200d564: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d568: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 200d56c: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d570: 7f ff e1 a2 call 2005bf8 <== NOT EXECUTED 200d574: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200d578: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200d57c: 40 00 04 31 call 200e640 <== NOT EXECUTED 200d580: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d584: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d588: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 200d58c: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d590: 92 10 20 00 clr %o1 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 200d594: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d598: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d59c: 7f ff e1 50 call 2005adc <== NOT EXECUTED 200d5a0: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200d5a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d5a8: 12 80 00 43 bne 200d6b4 <== NOT EXECUTED 200d5ac: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 200d5b0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200d5b4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200d5b8: 12 80 00 2f bne 200d674 <== NOT EXECUTED 200d5bc: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 200d5c0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200d5c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d5c8: 02 80 00 2b be 200d674 <== NOT EXECUTED 200d5cc: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED 200d5d0: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { 200d5d4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200d5d8: a2 25 40 01 sub %l5, %g1, %l1 <== NOT EXECUTED 200d5dc: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200d5e0: 2a bf ff de bcs,a 200d558 <== NOT EXECUTED 200d5e4: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 200d5e8: 84 26 80 13 sub %i2, %l3, %g2 <== NOT EXECUTED 200d5ec: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 200d5f0: 38 80 00 02 bgu,a 200d5f8 <== NOT EXECUTED 200d5f4: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 200d5f8: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 200d5fc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 200d600: 40 00 2e aa call 20190a8 <.urem> <== NOT EXECUTED 200d604: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200d608: a4 25 40 08 sub %l5, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200d60c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200d610: 04 80 00 2b ble 200d6bc <== NOT EXECUTED 200d614: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 200d618: 92 06 40 13 add %i1, %l3, %o1 <== NOT EXECUTED 200d61c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 200d620: 40 00 0b 09 call 2010244 <== NOT EXECUTED 200d624: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 200d628: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 200d62c: 92 04 80 13 add %l2, %l3, %o1 <== NOT EXECUTED 200d630: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200d634: 40 00 0b 04 call 2010244 <== NOT EXECUTED 200d638: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 200d63c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200d640: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 200d644: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200d648: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d64c: 12 80 00 22 bne 200d6d4 <== NOT EXECUTED 200d650: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 200d654: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 200d658: 80 a6 80 18 cmp %i2, %i0 <== NOT EXECUTED 200d65c: 08 80 00 23 bleu 200d6e8 <== NOT EXECUTED 200d660: a6 10 00 18 mov %i0, %l3 <== NOT EXECUTED 200d664: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED 200d668: 10 bf ff b6 b 200d540 <== NOT EXECUTED 200d66c: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED 200d670: b0 10 20 00 clr %i0 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 200d674: 7f ff e1 61 call 2005bf8 <== NOT EXECUTED 200d678: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 200d67c: 80 a4 7f e0 cmp %l1, -32 <== NOT EXECUTED 200d680: 02 80 00 07 be 200d69c <== NOT EXECUTED 200d684: 01 00 00 00 nop <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) 200d688: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200d68c: 14 bf ff 97 bg 200d4e8 <== NOT EXECUTED 200d690: 01 00 00 00 nop <== NOT EXECUTED return written; return ret; } 200d694: 81 c7 e0 08 ret <== NOT EXECUTED 200d698: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); 200d69c: 40 00 02 5b call 200e008 <== NOT EXECUTED 200d6a0: 01 00 00 00 nop <== NOT EXECUTED 200d6a4: 40 00 02 df call 200e220 <== NOT EXECUTED 200d6a8: 92 10 20 0d mov 0xd, %o1 ! d <== NOT EXECUTED #endif if (written > 0) 200d6ac: 10 bf ff f8 b 200d68c <== NOT EXECUTED 200d6b0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d6b4: 10 bf ff f5 b 200d688 <== NOT EXECUTED 200d6b8: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 200d6bc: 92 06 40 13 add %i1, %l3, %o1 <== NOT EXECUTED 200d6c0: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200d6c4: 40 00 0a e0 call 2010244 <== NOT EXECUTED 200d6c8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED pipe->Length += chunk; 200d6cc: 10 bf ff dd b 200d640 <== NOT EXECUTED 200d6d0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 200d6d4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200d6d8: 40 00 03 c3 call 200e5e4 <== NOT EXECUTED 200d6dc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 200d6e0: 10 bf ff de b 200d658 <== NOT EXECUTED 200d6e4: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 200d6e8: 10 bf ff e3 b 200d674 <== NOT EXECUTED 200d6ec: a2 10 20 00 clr %l1 <== NOT EXECUTED 0200641c : int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { 200641c: 9d e3 bf 98 save %sp, -104, %sp if ( !once_control || !init_routine ) 2006420: 80 a6 60 00 cmp %i1, 0 2006424: 02 80 00 19 be 2006488 2006428: a0 10 00 18 mov %i0, %l0 200642c: 80 a6 20 00 cmp %i0, 0 2006430: 02 80 00 16 be 2006488 2006434: 01 00 00 00 nop return EINVAL; if ( !once_control->init_executed ) { 2006438: c2 06 20 04 ld [ %i0 + 4 ], %g1 200643c: 80 a0 60 00 cmp %g1, 0 2006440: 12 80 00 10 bne 2006480 2006444: b0 10 20 00 clr %i0 rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 2006448: a2 07 bf fc add %fp, -4, %l1 200644c: 90 10 21 00 mov 0x100, %o0 2006450: 92 10 21 00 mov 0x100, %o1 2006454: 40 00 03 0b call 2007080 2006458: 94 10 00 11 mov %l1, %o2 if ( !once_control->init_executed ) { 200645c: c2 04 20 04 ld [ %l0 + 4 ], %g1 2006460: 80 a0 60 00 cmp %g1, 0 2006464: 02 80 00 0b be 2006490 2006468: 82 10 20 01 mov 1, %g1 once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 200646c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED 2006470: 94 10 00 11 mov %l1, %o2 2006474: 92 10 21 00 mov 0x100, %o1 2006478: 40 00 03 02 call 2007080 200647c: b0 10 20 00 clr %i0 } return 0; } 2006480: 81 c7 e0 08 ret 2006484: 81 e8 00 00 restore int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { if ( !once_control || !init_routine ) 2006488: 81 c7 e0 08 ret 200648c: 91 e8 20 16 restore %g0, 0x16, %o0 if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; 2006490: c2 24 20 04 st %g1, [ %l0 + 4 ] (*init_routine)(); 2006494: 9f c6 40 00 call %i1 2006498: c2 24 00 00 st %g1, [ %l0 ] } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 200649c: 10 bf ff f5 b 2006470 20064a0: d0 07 bf fc ld [ %fp + -4 ], %o0 02006018 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 2006018: 9d e3 bf a0 save %sp, -96, %sp * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) 200601c: 03 00 80 78 sethi %hi(0x201e000), %g1 2006020: c2 00 63 ac ld [ %g1 + 0x3ac ], %g1 ! 201e3ac <_ISR_Nest_level> 2006024: 80 a0 60 00 cmp %g1, 0 2006028: 12 80 00 15 bne 200607c 200602c: 03 00 80 78 sethi %hi(0x201e000), %g1 return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 2006030: 21 00 80 78 sethi %hi(0x201e000), %l0 2006034: c6 00 63 10 ld [ %g1 + 0x310 ], %g3 2006038: c4 04 23 d0 ld [ %l0 + 0x3d0 ], %g2 200603c: 86 00 e0 01 inc %g3 2006040: c6 20 63 10 st %g3, [ %g1 + 0x310 ] 2006044: c2 00 a1 6c ld [ %g2 + 0x16c ], %g1 _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 2006048: c4 00 60 d4 ld [ %g1 + 0xd4 ], %g2 200604c: 80 a0 a0 00 cmp %g2, 0 2006050: 12 80 00 0d bne 2006084 2006054: 01 00 00 00 nop thread_support->cancelation_requested ) 2006058: c2 00 60 dc ld [ %g1 + 0xdc ], %g1 200605c: 80 a0 60 00 cmp %g1, 0 2006060: 02 80 00 09 be 2006084 2006064: 01 00 00 00 nop cancel = true; _Thread_Enable_dispatch(); 2006068: 40 00 0a 56 call 20089c0 <_Thread_Enable_dispatch> 200606c: b2 10 3f ff mov -1, %i1 ! ffffffff if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); 2006070: f0 04 23 d0 ld [ %l0 + 0x3d0 ], %i0 2006074: 40 00 1a 12 call 200c8bc <_POSIX_Thread_Exit> 2006078: 81 e8 00 00 restore 200607c: 81 c7 e0 08 ret <== NOT EXECUTED 2006080: 81 e8 00 00 restore <== NOT EXECUTED _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); 2006084: 40 00 0a 4f call 20089c0 <_Thread_Enable_dispatch> 2006088: 81 e8 00 00 restore 200608c: 01 00 00 00 nop 02019e3c : ssize_t read( int fd, void *buffer, size_t count ) { 2019e3c: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2019e40: 03 00 80 6e sethi %hi(0x201b800), %g1 2019e44: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201baa4 2019e48: 80 a6 00 01 cmp %i0, %g1 2019e4c: 1a 80 00 23 bcc 2019ed8 2019e50: 03 00 80 70 sethi %hi(0x201c000), %g1 iop = rtems_libio_iop( fd ); 2019e54: e0 00 63 d0 ld [ %g1 + 0x3d0 ], %l0 ! 201c3d0 2019e58: 83 2e 20 06 sll %i0, 6, %g1 2019e5c: b1 2e 20 03 sll %i0, 3, %i0 2019e60: b0 06 00 01 add %i0, %g1, %i0 2019e64: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 2019e68: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2019e6c: 80 88 61 00 btst 0x100, %g1 2019e70: 02 80 00 1a be 2019ed8 2019e74: 80 a6 60 00 cmp %i1, 0 rtems_libio_check_buffer( buffer ); 2019e78: 02 80 00 1e be 2019ef0 2019e7c: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2019e80: 02 80 00 14 be 2019ed0 2019e84: b0 10 20 00 clr %i0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2019e88: 80 88 60 02 btst 2, %g1 2019e8c: 02 80 00 19 be 2019ef0 2019e90: 01 00 00 00 nop /* * Now process the read(). */ if ( !iop->handlers->read_h ) 2019e94: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2019e98: c2 00 60 08 ld [ %g1 + 8 ], %g1 2019e9c: 80 a0 60 00 cmp %g1, 0 2019ea0: 02 80 00 1a be 2019f08 2019ea4: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 2019ea8: 94 10 00 1a mov %i2, %o2 2019eac: 9f c0 40 00 call %g1 2019eb0: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2019eb4: b0 92 20 00 orcc %o0, 0, %i0 2019eb8: 04 80 00 06 ble 2019ed0 2019ebc: 85 3e 20 1f sra %i0, 0x1f, %g2 iop->offset += rc; 2019ec0: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2019ec4: 86 83 40 18 addcc %o5, %i0, %g3 2019ec8: 84 43 00 02 addx %o4, %g2, %g2 2019ecc: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 2019ed0: 81 c7 e0 08 ret 2019ed4: 81 e8 00 00 restore ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 2019ed8: 7f ff d6 a0 call 200f958 <__errno> 2019edc: b0 10 3f ff mov -1, %i0 2019ee0: 82 10 20 09 mov 9, %g1 2019ee4: c2 22 00 00 st %g1, [ %o0 ] 2019ee8: 81 c7 e0 08 ret 2019eec: 81 e8 00 00 restore rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2019ef0: 7f ff d6 9a call 200f958 <__errno> <== NOT EXECUTED 2019ef4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2019ef8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2019efc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019f00: 81 c7 e0 08 ret <== NOT EXECUTED 2019f04: 81 e8 00 00 restore <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2019f08: 7f ff d6 94 call 200f958 <__errno> <== NOT EXECUTED 2019f0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2019f10: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2019f14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019f18: 81 c7 e0 08 ret <== NOT EXECUTED 2019f1c: 81 e8 00 00 restore <== NOT EXECUTED 0202a5b0 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 202a5b0: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 202a5b4: 80 a6 60 00 cmp %i1, 0 202a5b8: 02 80 00 2b be 202a664 202a5bc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 202a5c0: 40 00 82 c0 call 204b0c0 202a5c4: 90 10 00 18 mov %i0, %o0 202a5c8: a0 07 bf ec add %fp, -20, %l0 202a5cc: 92 10 00 08 mov %o0, %o1 202a5d0: 94 10 20 00 clr %o2 202a5d4: 90 10 00 18 mov %i0, %o0 202a5d8: 96 10 00 10 mov %l0, %o3 202a5dc: 98 10 20 00 clr %o4 202a5e0: 7f ff 6e b0 call 20060a0 202a5e4: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 202a5e8: 80 a2 20 00 cmp %o0, 0 202a5ec: 12 80 00 1c bne 202a65c 202a5f0: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 202a5f4: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 202a5f8: 80 a0 60 00 cmp %g1, 0 202a5fc: 22 80 00 31 be,a 202a6c0 202a600: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 202a604: 9f c0 40 00 call %g1 202a608: 90 10 00 10 mov %l0, %o0 202a60c: 80 a2 20 04 cmp %o0, 4 202a610: 12 80 00 1b bne 202a67c 202a614: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 202a618: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 202a61c: 80 a0 60 00 cmp %g1, 0 202a620: 02 80 00 27 be 202a6bc 202a624: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 202a628: 94 10 00 1a mov %i2, %o2 202a62c: 9f c0 40 00 call %g1 202a630: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 202a634: c2 07 bf f8 ld [ %fp + -8 ], %g1 202a638: 80 a0 60 00 cmp %g1, 0 202a63c: 02 80 00 08 be 202a65c 202a640: b0 10 00 08 mov %o0, %i0 202a644: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a648: 80 a0 60 00 cmp %g1, 0 202a64c: 02 80 00 26 be 202a6e4 202a650: 01 00 00 00 nop 202a654: 9f c0 40 00 call %g1 202a658: 90 10 00 10 mov %l0, %o0 return result; } 202a65c: 81 c7 e0 08 ret 202a660: 81 e8 00 00 restore { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 202a664: 40 00 67 58 call 20443c4 <__errno> <== NOT EXECUTED 202a668: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a66c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 202a670: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a674: 81 c7 e0 08 ret <== NOT EXECUTED 202a678: 81 e8 00 00 restore <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); 202a67c: c2 07 bf f8 ld [ %fp + -8 ], %g1 202a680: 80 a0 60 00 cmp %g1, 0 202a684: 02 80 00 08 be 202a6a4 202a688: 01 00 00 00 nop 202a68c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a690: 80 a0 60 00 cmp %g1, 0 202a694: 02 80 00 04 be 202a6a4 202a698: 01 00 00 00 nop 202a69c: 9f c0 40 00 call %g1 202a6a0: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 202a6a4: 40 00 67 48 call 20443c4 <__errno> 202a6a8: b0 10 3f ff mov -1, %i0 202a6ac: 82 10 20 16 mov 0x16, %g1 202a6b0: c2 22 00 00 st %g1, [ %o0 ] 202a6b4: 81 c7 e0 08 ret 202a6b8: 81 e8 00 00 restore } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 202a6bc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202a6c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a6c4: 02 80 00 04 be 202a6d4 <== NOT EXECUTED 202a6c8: 01 00 00 00 nop <== NOT EXECUTED 202a6cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a6d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a6d4: 40 00 67 3c call 20443c4 <__errno> <== NOT EXECUTED 202a6d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a6dc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202a6e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a6e4: 81 c7 e0 08 ret <== NOT EXECUTED 202a6e8: 81 e8 00 00 restore <== NOT EXECUTED 02004824 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 2004824: 9d e3 bf a0 save %sp, -96, %sp int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 2004828: 03 00 80 82 sethi %hi(0x2020800), %g1 200482c: c2 00 60 e4 ld [ %g1 + 0xe4 ], %g1 ! 20208e4 2004830: 80 a6 00 01 cmp %i0, %g1 2004834: 1a 80 00 4a bcc 200495c 2004838: 03 00 80 86 sethi %hi(0x2021800), %g1 iop = rtems_libio_iop( fd ); 200483c: e4 00 61 e4 ld [ %g1 + 0x1e4 ], %l2 ! 20219e4 2004840: 83 2e 20 06 sll %i0, 6, %g1 2004844: b1 2e 20 03 sll %i0, 3, %i0 2004848: b0 06 00 01 add %i0, %g1, %i0 200484c: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 2004850: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 2004854: 80 88 61 00 btst 0x100, %g1 2004858: 02 80 00 41 be 200495c 200485c: 80 88 60 02 btst 2, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2004860: 02 80 00 39 be 2004944 2004864: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 2004868: 02 80 00 37 be 2004944 200486c: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 2004870: 04 80 00 35 ble 2004944 2004874: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2004878: 14 80 00 33 bg 2004944 200487c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 2004880: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2004884: c2 00 60 08 ld [ %g1 + 8 ], %g1 2004888: 80 a0 60 00 cmp %g1, 0 200488c: 02 80 00 3c be 200497c 2004890: 86 10 20 00 clr %g3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2004894: 84 10 00 19 mov %i1, %g2 2004898: 88 10 20 00 clr %g4 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) 200489c: da 00 80 00 ld [ %g2 ], %o5 20048a0: 80 a3 60 00 cmp %o5, 0 20048a4: 02 80 00 28 be 2004944 20048a8: 86 00 e0 01 inc %g3 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 20048ac: da 00 a0 04 ld [ %g2 + 4 ], %o5 20048b0: 80 a3 60 00 cmp %o5, 0 20048b4: 02 80 00 24 be 2004944 20048b8: 84 00 a0 08 add %g2, 8, %g2 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 20048bc: 9a 01 00 0d add %g4, %o5, %o5 if ( total < old ) 20048c0: 80 a1 00 0d cmp %g4, %o5 20048c4: 14 80 00 20 bg 2004944 20048c8: 80 a6 80 03 cmp %i2, %g3 * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { 20048cc: 14 bf ff f4 bg 200489c 20048d0: 88 10 00 0d mov %o5, %g4 20048d4: a6 10 20 00 clr %l3 20048d8: 10 80 00 04 b 20048e8 20048dc: b0 10 20 00 clr %i0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 20048e0: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 <== NOT EXECUTED 20048e4: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 20048e8: d2 06 40 00 ld [ %i1 ], %o1 20048ec: d4 06 60 04 ld [ %i1 + 4 ], %o2 20048f0: 9f c0 40 00 call %g1 20048f4: 90 10 00 12 mov %l2, %o0 if ( bytes < 0 ) 20048f8: 80 a2 20 00 cmp %o0, 0 20048fc: 06 80 00 1e bl 2004974 2004900: 01 00 00 00 nop return -1; if ( bytes > 0 ) { 2004904: 02 80 00 07 be 2004920 2004908: a1 3a 20 1f sra %o0, 0x1f, %l0 iop->offset += bytes; 200490c: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 2004910: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 2004914: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 2004918: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 200491c: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 2004920: c2 06 60 04 ld [ %i1 + 4 ], %g1 2004924: 80 a2 00 01 cmp %o0, %g1 2004928: 12 80 00 05 bne 200493c 200492c: a6 04 e0 01 inc %l3 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 2004930: 80 a6 80 13 cmp %i2, %l3 <== NOT EXECUTED 2004934: 14 bf ff eb bg 20048e0 <== NOT EXECUTED 2004938: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 200493c: 81 c7 e0 08 ret 2004940: 81 e8 00 00 restore /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); 2004944: 40 00 36 8a call 201236c <__errno> 2004948: b0 10 3f ff mov -1, %i0 200494c: 82 10 20 16 mov 0x16, %g1 2004950: c2 22 00 00 st %g1, [ %o0 ] 2004954: 81 c7 e0 08 ret 2004958: 81 e8 00 00 restore rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 200495c: 40 00 36 84 call 201236c <__errno> <== NOT EXECUTED 2004960: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004964: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2004968: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200496c: 81 c7 e0 08 ret <== NOT EXECUTED 2004970: 81 e8 00 00 restore <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 2004974: 81 c7 e0 08 ret <== NOT EXECUTED 2004978: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200497c: 40 00 36 7c call 201236c <__errno> <== NOT EXECUTED 2004980: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004984: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2004988: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200498c: 81 c7 e0 08 ret <== NOT EXECUTED 2004990: 81 e8 00 00 restore <== NOT EXECUTED 02019fa4 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2019fa4: 9d e3 bf 98 save %sp, -104, %sp 2019fa8: 21 00 80 70 sethi %hi(0x201c000), %l0 2019fac: a0 14 23 e0 or %l0, 0x3e0, %l0 ! 201c3e0 2019fb0: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2019fb4: 03 00 80 71 sethi %hi(0x201c400), %g1 2019fb8: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201c740 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2019fbc: 84 00 a0 01 inc %g2 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2019fc0: 80 a0 60 03 cmp %g1, 3 2019fc4: 02 80 00 36 be 201a09c 2019fc8: c4 24 20 10 st %g2, [ %l0 + 0x10 ] } /* * Continue with realloc(). */ if ( !ptr ) 2019fcc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2019fd0: 02 80 00 3e be 201a0c8 2019fd4: 80 a6 60 00 cmp %i1, 0 return malloc( size ); if ( !size ) { 2019fd8: 02 80 00 11 be 201a01c 2019fdc: 23 00 80 6e sethi %hi(0x201b800), %l1 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 2019fe0: d0 04 62 b0 ld [ %l1 + 0x2b0 ], %o0 ! 201bab0 2019fe4: 92 10 00 18 mov %i0, %o1 2019fe8: 40 00 00 75 call 201a1bc <_Protected_heap_Get_block_size> 2019fec: 94 07 bf fc add %fp, -4, %o2 2019ff0: 80 8a 20 ff btst 0xff, %o0 2019ff4: 02 80 00 0f be 201a030 2019ff8: d0 04 62 b0 ld [ %l1 + 0x2b0 ], %o0 #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS) if (rtems_malloc_boundary_helpers) resize += (*rtems_malloc_boundary_helpers->overhead)(); #endif if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) { 2019ffc: 92 10 00 18 mov %i0, %o1 201a000: 40 00 00 7c call 201a1f0 <_Protected_heap_Resize_block> 201a004: 94 10 00 19 mov %i1, %o2 201a008: 80 8a 20 ff btst 0xff, %o0 201a00c: 02 80 00 0f be 201a048 201a010: 01 00 00 00 nop memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 201a014: 81 c7 e0 08 ret 201a018: 81 e8 00 00 restore */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 201a01c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201a020: 7f ff c3 88 call 200ae40 <== NOT EXECUTED 201a024: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 201a028: 81 c7 e0 08 ret <== NOT EXECUTED 201a02c: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 201a030: 7f ff d6 4a call 200f958 <__errno> 201a034: b0 10 20 00 clr %i0 201a038: 82 10 20 16 mov 0x16, %g1 201a03c: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 201a040: 81 c7 e0 08 ret 201a044: 81 e8 00 00 restore * 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 ); 201a048: 7f ff c4 fe call 200b440 201a04c: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 201a050: c2 04 20 04 ld [ %l0 + 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 ); 201a054: a2 10 00 08 mov %o0, %l1 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 201a058: 82 00 7f ff add %g1, -1, %g1 if ( !new_area ) { 201a05c: 80 a2 20 00 cmp %o0, 0 201a060: 02 80 00 18 be 201a0c0 201a064: c2 24 20 04 st %g1, [ %l0 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 201a068: c2 07 bf fc ld [ %fp + -4 ], %g1 201a06c: 80 a6 40 01 cmp %i1, %g1 201a070: 08 80 00 03 bleu 201a07c 201a074: 94 10 00 19 mov %i1, %o2 201a078: 94 10 00 01 mov %g1, %o2 201a07c: 92 10 00 18 mov %i0, %o1 201a080: 7f ff d8 71 call 2010244 201a084: 90 10 00 11 mov %l1, %o0 free( ptr ); 201a088: 90 10 00 18 mov %i0, %o0 201a08c: 7f ff c3 6d call 200ae40 201a090: b0 10 00 11 mov %l1, %i0 return new_area; 201a094: 81 c7 e0 08 ret 201a098: 81 e8 00 00 restore /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) 201a09c: 03 00 80 71 sethi %hi(0x201c400), %g1 201a0a0: c2 00 61 a0 ld [ %g1 + 0x1a0 ], %g1 ! 201c5a0 <_Thread_Dispatch_disable_level> 201a0a4: 80 a0 60 00 cmp %g1, 0 201a0a8: 12 80 00 06 bne 201a0c0 201a0ac: 03 00 80 71 sethi %hi(0x201c400), %g1 return (void *) 0; if (_ISR_Nest_level > 0) 201a0b0: c2 00 62 3c ld [ %g1 + 0x23c ], %g1 ! 201c63c <_ISR_Nest_level> 201a0b4: 80 a0 60 00 cmp %g1, 0 201a0b8: 02 bf ff c6 be 2019fd0 201a0bc: 80 a6 20 00 cmp %i0, 0 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 201a0c0: 81 c7 e0 08 ret 201a0c4: 91 e8 20 00 restore %g0, 0, %o0 /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 201a0c8: 7f ff c4 de call 200b440 201a0cc: 90 10 00 19 mov %i1, %o0 201a0d0: 81 c7 e0 08 ret 201a0d4: 91 e8 00 08 restore %g0, %o0, %o0 020077f0 : #include int rmdir( const char *pathname ) { 20077f0: 9d e3 bf 78 save %sp, -136, %sp /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 20077f4: 7f ff f9 ca call 2005f1c 20077f8: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 20077fc: a0 92 20 00 orcc %o0, 0, %l0 2007800: 32 80 00 95 bne,a 2007a54 2007804: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 2007808: c2 4e 00 00 ldsb [ %i0 ], %g1 200780c: 80 a0 60 5c cmp %g1, 0x5c 2007810: 02 80 00 13 be 200785c 2007814: 80 a0 60 2f cmp %g1, 0x2f 2007818: 02 80 00 11 be 200785c 200781c: 80 a0 60 00 cmp %g1, 0 2007820: 02 80 00 10 be 2007860 <== NOT EXECUTED 2007824: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 2007828: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 200782c: a2 10 20 00 clr %l1 <== NOT EXECUTED 2007830: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 2007834: c4 27 bf ec st %g2, [ %fp + -20 ] <== NOT EXECUTED 2007838: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 200783c: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED 2007840: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 2007844: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED 2007848: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 200784c: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED 2007850: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2007854: 10 80 00 0f b 2007890 <== NOT EXECUTED 2007858: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED 200785c: 03 00 81 a6 sethi %hi(0x2069800), %g1 2007860: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 2007864: a2 10 20 00 clr %l1 2007868: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 200786c: c4 27 bf ec st %g2, [ %fp + -20 ] 2007870: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 2007874: c4 27 bf f0 st %g2, [ %fp + -16 ] 2007878: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 200787c: c4 27 bf f4 st %g2, [ %fp + -12 ] 2007880: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 2007884: c4 27 bf f8 st %g2, [ %fp + -8 ] 2007888: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200788c: c2 27 bf fc st %g1, [ %fp + -4 ] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 2007890: c2 07 bf ec ld [ %fp + -20 ], %g1 name = pathname + parentpathlen; 2007894: b0 06 00 10 add %i0, %l0, %i0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 2007898: c2 27 bf d8 st %g1, [ %fp + -40 ] 200789c: c2 07 bf f0 ld [ %fp + -16 ], %g1 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 20078a0: 90 10 00 18 mov %i0, %o0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 20078a4: c2 27 bf dc st %g1, [ %fp + -36 ] 20078a8: c2 07 bf f4 ld [ %fp + -12 ], %g1 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 20078ac: a0 07 bf d8 add %fp, -40, %l0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 20078b0: c2 27 bf e0 st %g1, [ %fp + -32 ] 20078b4: c2 07 bf f8 ld [ %fp + -8 ], %g1 20078b8: c2 27 bf e4 st %g1, [ %fp + -28 ] 20078bc: c2 07 bf fc ld [ %fp + -4 ], %g1 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 20078c0: 40 01 0e 00 call 204b0c0 20078c4: c2 27 bf e8 st %g1, [ %fp + -24 ] 20078c8: 92 10 00 08 mov %o0, %o1 20078cc: 7f ff f9 75 call 2005ea0 20078d0: 90 10 00 18 mov %i0, %o0 20078d4: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 20078d8: 40 01 0d fa call 204b0c0 20078dc: 90 10 00 18 mov %i0, %o0 20078e0: 94 10 20 00 clr %o2 20078e4: 92 10 00 08 mov %o0, %o1 20078e8: 96 10 00 10 mov %l0, %o3 20078ec: 90 10 00 18 mov %i0, %o0 20078f0: 7f ff f9 ab call 2005f9c 20078f4: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 20078f8: 80 a2 20 00 cmp %o0, 0 20078fc: 12 80 00 2a bne 20079a4 2007900: c4 07 bf e4 ld [ %fp + -28 ], %g2 /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 2007904: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2007908: 80 a0 60 00 cmp %g1, 0 200790c: 22 80 00 78 be,a 2007aec 2007910: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 2007914: 9f c0 40 00 call %g1 2007918: 90 10 00 10 mov %l0, %o0 200791c: 80 a2 20 01 cmp %o0, 1 2007920: 12 80 00 26 bne 20079b8 2007924: c2 07 bf e0 ld [ %fp + -32 ], %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 2007928: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200792c: 80 a0 60 00 cmp %g1, 0 2007930: 02 80 00 53 be 2007a7c 2007934: a4 07 bf ec add %fp, -20, %l2 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 2007938: 92 10 00 10 mov %l0, %o1 200793c: 9f c0 40 00 call %g1 2007940: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 2007944: c2 07 bf e4 ld [ %fp + -28 ], %g1 2007948: 80 a0 60 00 cmp %g1, 0 200794c: 02 80 00 08 be 200796c 2007950: b0 10 00 08 mov %o0, %i0 2007954: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007958: 80 a0 60 00 cmp %g1, 0 200795c: 02 80 00 05 be 2007970 2007960: 80 8c 60 ff btst 0xff, %l1 2007964: 9f c0 40 00 call %g1 2007968: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200796c: 80 8c 60 ff btst 0xff, %l1 2007970: 02 80 00 0b be 200799c 2007974: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 2007978: 80 a0 60 00 cmp %g1, 0 200797c: 02 80 00 5a be 2007ae4 2007980: 01 00 00 00 nop 2007984: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007988: 80 a0 60 00 cmp %g1, 0 200798c: 02 80 00 56 be 2007ae4 2007990: 01 00 00 00 nop 2007994: 9f c0 40 00 call %g1 2007998: 90 10 00 12 mov %l2, %o0 200799c: 81 c7 e0 08 ret 20079a0: 81 e8 00 00 restore name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 20079a4: 80 8c 60 ff btst 0xff, %l1 20079a8: 12 80 00 20 bne 2007a28 20079ac: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 20079b0: 81 c7 e0 08 ret 20079b4: 91 e8 3f ff restore %g0, -1, %o0 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); 20079b8: c2 07 bf e4 ld [ %fp + -28 ], %g1 20079bc: 80 a0 60 00 cmp %g1, 0 20079c0: 02 80 00 09 be 20079e4 20079c4: 80 8c 60 ff btst 0xff, %l1 20079c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20079cc: 80 a0 60 00 cmp %g1, 0 20079d0: 02 80 00 05 be 20079e4 20079d4: 80 8c 60 ff btst 0xff, %l1 20079d8: 9f c0 40 00 call %g1 20079dc: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 20079e0: 80 8c 60 ff btst 0xff, %l1 20079e4: 02 80 00 0b be 2007a10 20079e8: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 20079ec: 80 a0 60 00 cmp %g1, 0 20079f0: 02 80 00 08 be 2007a10 20079f4: 01 00 00 00 nop 20079f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20079fc: 80 a0 60 00 cmp %g1, 0 2007a00: 02 80 00 04 be 2007a10 2007a04: 01 00 00 00 nop 2007a08: 9f c0 40 00 call %g1 2007a0c: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2007a10: 40 00 f2 6d call 20443c4 <__errno> 2007a14: b0 10 3f ff mov -1, %i0 2007a18: 82 10 20 14 mov 0x14, %g1 2007a1c: c2 22 00 00 st %g1, [ %o0 ] 2007a20: 81 c7 e0 08 ret 2007a24: 81 e8 00 00 restore result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 2007a28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007a2c: 02 bf ff dc be 200799c <== NOT EXECUTED 2007a30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007a34: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007a38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007a3c: 02 bf ff d8 be 200799c <== NOT EXECUTED 2007a40: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 2007a44: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007a48: 01 00 00 00 nop <== NOT EXECUTED 2007a4c: 81 c7 e0 08 ret <== NOT EXECUTED 2007a50: 81 e8 00 00 restore <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 2007a54: 92 10 00 10 mov %l0, %o1 2007a58: 94 10 20 02 mov 2, %o2 2007a5c: 96 07 bf ec add %fp, -20, %o3 2007a60: 7f ff f9 90 call 20060a0 2007a64: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 2007a68: 80 a2 20 00 cmp %o0, 0 2007a6c: 12 bf ff d1 bne 20079b0 2007a70: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 2007a74: 10 bf ff 88 b 2007894 2007a78: c2 07 bf ec ld [ %fp + -20 ], %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 2007a7c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 2007a80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007a84: 02 80 00 09 be 2007aa8 <== NOT EXECUTED 2007a88: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007a8c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007a90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007a94: 02 80 00 05 be 2007aa8 <== NOT EXECUTED 2007a98: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007a9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007aa0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 2007aa4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007aa8: 02 80 00 0b be 2007ad4 <== NOT EXECUTED 2007aac: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 2007ab0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007ab4: 02 80 00 08 be 2007ad4 <== NOT EXECUTED 2007ab8: 01 00 00 00 nop <== NOT EXECUTED 2007abc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007ac0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007ac4: 02 80 00 04 be 2007ad4 <== NOT EXECUTED 2007ac8: 01 00 00 00 nop <== NOT EXECUTED 2007acc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007ad0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007ad4: 40 00 f2 3c call 20443c4 <__errno> <== NOT EXECUTED 2007ad8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007adc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2007ae0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2007ae4: 81 c7 e0 08 ret <== NOT EXECUTED 2007ae8: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 2007aec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007af0: 12 bf ff eb bne 2007a9c <== NOT EXECUTED 2007af4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007af8: 30 bf ff ec b,a 2007aa8 <== NOT EXECUTED 02015d28 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 2015d28: 11 00 80 9d sethi %hi(0x2027400), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 2015d2c: 81 c3 e0 08 retl <== NOT EXECUTED 2015d30: 90 12 23 98 or %o0, 0x398, %o0 ! 2027798 <== NOT EXECUTED 02011ff8 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 2011ff8: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 2011ffc: 90 10 00 18 mov %i0, %o0 2012000: 40 00 00 0b call 201202c 2012004: 92 10 00 19 mov %i1, %o1 if (nap) 2012008: 80 a2 20 00 cmp %o0, 0 201200c: 02 80 00 05 be 2012020 2012010: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 2012014: f0 02 00 00 ld [ %o0 ], %i0 2012018: 81 c7 e0 08 ret 201201c: 81 e8 00 00 restore nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 2012020: 40 00 0f 42 call 2015d28 <== NOT EXECUTED 2012024: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 2012028: 01 00 00 00 nop 0200f8a8 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200f8a8: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200f8ac: d0 06 00 00 ld [ %i0 ], %o0 200f8b0: 80 a2 20 00 cmp %o0, 0 200f8b4: 02 80 00 1d be 200f928 200f8b8: 13 00 80 6c sethi %hi(0x201b000), %o1 200f8bc: 40 00 03 8d call 20106f0 200f8c0: 92 12 62 e0 or %o1, 0x2e0, %o1 ! 201b2e0 <__FUNCTION__.5923+0x18> 200f8c4: 80 a2 20 00 cmp %o0, 0 200f8c8: 02 80 00 11 be 200f90c 200f8cc: 84 10 20 00 clr %g2 default_ap = ap++; for ( ; ap->name; ap++) if (ap->local_value == local_value) 200f8d0: c2 06 20 04 ld [ %i0 + 4 ], %g1 200f8d4: 80 a0 40 19 cmp %g1, %i1 200f8d8: 32 80 00 07 bne,a 200f8f4 200f8dc: b0 06 20 0c add %i0, 0xc, %i0 200f8e0: 30 80 00 14 b,a 200f930 200f8e4: 80 a0 40 19 cmp %g1, %i1 200f8e8: 02 80 00 12 be 200f930 200f8ec: 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++) 200f8f0: b0 06 20 0c add %i0, 0xc, %i0 200f8f4: c2 06 00 00 ld [ %i0 ], %g1 200f8f8: 80 a0 60 00 cmp %g1, 0 200f8fc: 32 bf ff fa bne,a 200f8e4 200f900: c2 06 20 04 ld [ %i0 + 4 ], %g1 if (ap->local_value == local_value) return ap; return default_ap; } 200f904: 81 c7 e0 08 ret 200f908: 91 e8 00 02 restore %g0, %g2, %o0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 200f90c: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED 200f910: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200f914: 02 80 00 07 be 200f930 <== NOT EXECUTED 200f918: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED 200f91c: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED 200f920: 10 bf ff ec b 200f8d0 <== NOT EXECUTED 200f924: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200f928: 81 c7 e0 08 ret <== NOT EXECUTED 200f92c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200f930: 81 c7 e0 08 ret 200f934: 81 e8 00 00 restore 0200df78 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 200df78: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200df7c: d0 06 00 00 ld [ %i0 ], %o0 200df80: 80 a2 20 00 cmp %o0, 0 200df84: 02 80 00 1d be 200dff8 200df88: 13 00 80 6c sethi %hi(0x201b000), %o1 200df8c: 40 00 09 d9 call 20106f0 200df90: 92 12 62 e0 or %o1, 0x2e0, %o1 ! 201b2e0 <__FUNCTION__.5923+0x18> 200df94: 80 a2 20 00 cmp %o0, 0 200df98: 02 80 00 11 be 200dfdc 200df9c: 84 10 20 00 clr %g2 default_ap = ap++; for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 200dfa0: c2 06 20 08 ld [ %i0 + 8 ], %g1 200dfa4: 80 a0 40 19 cmp %g1, %i1 200dfa8: 32 80 00 07 bne,a 200dfc4 200dfac: b0 06 20 0c add %i0, 0xc, %i0 200dfb0: 30 80 00 14 b,a 200e000 200dfb4: 80 a0 40 19 cmp %g1, %i1 200dfb8: 02 80 00 12 be 200e000 200dfbc: 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++) 200dfc0: b0 06 20 0c add %i0, 0xc, %i0 200dfc4: c2 06 00 00 ld [ %i0 ], %g1 200dfc8: 80 a0 60 00 cmp %g1, 0 200dfcc: 32 bf ff fa bne,a 200dfb4 200dfd0: c2 06 20 08 ld [ %i0 + 8 ], %g1 if (ap->remote_value == remote_value) return ap; return default_ap; } 200dfd4: 81 c7 e0 08 ret 200dfd8: 91 e8 00 02 restore %g0, %g2, %o0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 200dfdc: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED 200dfe0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200dfe4: 02 80 00 07 be 200e000 <== NOT EXECUTED 200dfe8: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED 200dfec: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED 200dff0: 10 bf ff ec b 200dfa0 <== NOT EXECUTED 200dff4: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200dff8: 81 c7 e0 08 ret <== NOT EXECUTED 200dffc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200e000: 81 c7 e0 08 ret 200e004: 81 e8 00 00 restore 0200eef0 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200eef0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200eef4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200eef8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200eefc: 40 00 02 6b call 200f8a8 <== NOT EXECUTED 200ef00: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200ef04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ef08: 32 80 00 02 bne,a 200ef10 <== NOT EXECUTED 200ef0c: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200ef10: 81 c7 e0 08 ret <== NOT EXECUTED 200ef14: 81 e8 00 00 restore <== NOT EXECUTED 02002190 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 2002190: 9d e3 bf a0 save %sp, -96, %sp const char *p; if ( !name ) 2002194: 80 a6 20 00 cmp %i0, 0 2002198: 12 80 00 05 bne 20021ac 200219c: 80 a6 60 00 cmp %i1, 0 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 20021b0: 80 a6 a0 00 cmp %i2, 0 return NULL; if ( !length ) 20021b4: 22 bf ff fc be,a 20021a4 20021b8: b2 10 20 00 clr %i1 return NULL; value[0] = '\0'; 20021bc: c0 2e 40 00 clrb [ %i1 ] p = rtems_bsp_cmdline_get_param_raw( name ); 20021c0: 40 00 00 25 call 2002254 20021c4: 90 10 00 18 mov %i0, %o0 if ( !p ) 20021c8: 80 a2 20 00 cmp %o0, 0 20021cc: 22 bf ff f6 be,a 20021a4 20021d0: b2 10 20 00 clr %i1 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 20021e4: b4 86 bf ff addcc %i2, -1, %i2 20021e8: 02 bf ff ef be 20021a4 20021ec: 88 10 20 00 clr %g4 20021f0: 82 10 20 00 clr %g1 20021f4: 10 80 00 12 b 200223c 20021f8: 9a 10 20 00 clr %o5 if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) 20021fc: 32 80 00 06 bne,a 2002214 2002200: c6 2e 40 04 stb %g3, [ %i1 + %g4 ] <== NOT EXECUTED 2002204: 80 a0 a0 20 cmp %g2, 0x20 2002208: 02 bf ff e7 be 20021a4 200220c: 01 00 00 00 nop break; value[i++] = *p++; 2002210: c6 2e 40 04 stb %g3, [ %i1 + %g4 ] 2002214: 82 00 60 01 inc %g1 value[i] = '\0'; 2002218: c0 2e 40 01 clrb [ %i1 + %g1 ] int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 200222c: 88 10 00 01 mov %g1, %g4 2002230: 80 a0 40 1a cmp %g1, %i2 2002234: 1a bf ff dc bcc 20021a4 2002238: 01 00 00 00 nop if ( *p == '\"' ) { 200223c: 85 38 a0 18 sra %g2, 0x18, %g2 2002240: 80 a0 a0 22 cmp %g2, 0x22 2002244: 12 bf ff ee bne 20021fc 2002248: 80 8b 60 01 btst 1, %o5 quotes++; 200224c: 10 bf ff f1 b 2002210 <== NOT EXECUTED 2002250: 9a 03 60 01 inc %o5 <== NOT EXECUTED 02002288 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 2002288: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 200228c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 2002290: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2002294: 7f ff ff bf call 2002190 <== NOT EXECUTED 2002298: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if ( !p ) 200229c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 20022a0: 12 80 00 05 bne 20022b4 <== NOT EXECUTED 20022a4: 01 00 00 00 nop <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; 20022a8: b2 10 20 00 clr %i1 ! 0 <== NOT EXECUTED } 20022ac: 81 c7 e0 08 ret <== NOT EXECUTED 20022b0: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 20022b4: 40 00 39 8f call 20108f0 <== NOT EXECUTED 20022b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( *rhs != '=' ) 20022bc: c2 4c 40 08 ldsb [ %l1 + %o0 ], %g1 <== NOT EXECUTED 20022c0: 80 a0 60 3d cmp %g1, 0x3d <== NOT EXECUTED 20022c4: 12 bf ff f9 bne 20022a8 <== NOT EXECUTED 20022c8: a2 04 40 08 add %l1, %o0, %l1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 20022cc: c6 0c 60 01 ldub [ %l1 + 1 ], %g3 <== NOT EXECUTED 20022d0: 85 28 e0 18 sll %g3, 0x18, %g2 <== NOT EXECUTED 20022d4: 89 38 a0 18 sra %g2, 0x18, %g4 <== NOT EXECUTED 20022d8: 80 a1 20 22 cmp %g4, 0x22 <== NOT EXECUTED 20022dc: 02 80 00 14 be 200232c <== NOT EXECUTED 20022e0: 82 04 60 01 add %l1, 1, %g1 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) 20022e4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20022e8: 02 80 00 09 be 200230c <== NOT EXECUTED 20022ec: 84 10 00 19 mov %i1, %g2 <== NOT EXECUTED *d++ = *rhs++; 20022f0: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED 20022f4: 82 00 60 01 inc %g1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 20022f8: c6 48 40 00 ldsb [ %g1 ], %g3 <== NOT EXECUTED *d++ = *rhs++; 20022fc: 84 00 a0 01 inc %g2 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 2002300: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2002304: 12 bf ff fb bne 20022f0 <== NOT EXECUTED 2002308: c6 08 40 00 ldub [ %g1 ], %g3 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 200230c: c6 48 bf ff ldsb [ %g2 + -1 ], %g3 <== NOT EXECUTED 2002310: 80 a0 e0 22 cmp %g3, 0x22 <== NOT EXECUTED 2002314: 02 80 00 03 be 2002320 <== NOT EXECUTED 2002318: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED 200231c: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED d--; *d = '\0'; 2002320: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED return value; } 2002324: 81 c7 e0 08 ret <== NOT EXECUTED 2002328: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++; 200232c: c6 0c 60 02 ldub [ %l1 + 2 ], %g3 <== NOT EXECUTED 2002330: 82 04 60 02 add %l1, 2, %g1 <== NOT EXECUTED 2002334: 10 bf ff ec b 20022e4 <== NOT EXECUTED 2002338: 85 28 e0 18 sll %g3, 0x18, %g2 <== NOT EXECUTED 02002cc4 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002cc4: 9d e3 bf 60 save %sp, -160, %sp Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 2002cc8: 80 a6 60 00 cmp %i1, 0 2002ccc: 02 80 00 72 be 2002e94 2002cd0: 01 00 00 00 nop * When not using nanosecond CPU usage resolution, we have to count * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 2002cd4: 40 00 15 f4 call 20084a4 <_TOD_Get_uptime> 2002cd8: 90 07 bf f0 add %fp, -16, %o0 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 2002cdc: 92 07 bf f0 add %fp, -16, %o1 2002ce0: a8 07 bf e8 add %fp, -24, %l4 2002ce4: 11 00 80 ab sethi %hi(0x202ac00), %o0 2002ce8: 94 10 00 14 mov %l4, %o2 2002cec: 40 00 20 c0 call 200afec <_Timespec_Subtract> 2002cf0: 90 12 22 a8 or %o0, 0x2a8, %o0 } } } #endif (*print)( 2002cf4: 90 10 00 18 mov %i0, %o0 2002cf8: 13 00 80 80 sethi %hi(0x2020000), %o1 2002cfc: 37 00 80 aa sethi %hi(0x202a800), %i3 2002d00: 92 12 61 88 or %o1, 0x188, %o1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002d04: 3b 00 80 80 sethi %hi(0x2020000), %i5 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002d08: 2f 00 80 aa sethi %hi(0x202a800), %l7 } } } #endif (*print)( 2002d0c: 9f c6 40 00 call %i1 2002d10: 2d 00 80 80 sethi %hi(0x2020000), %l6 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002d14: a4 07 bf c8 add %fp, -56, %l2 } } } #endif (*print)( 2002d18: b6 16 e0 44 or %i3, 0x44, %i3 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002d1c: ba 17 63 00 or %i5, 0x300, %i5 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002d20: ae 15 e1 a0 or %l7, 0x1a0, %l7 /* * Print the information */ (*print)( context, 2002d24: ac 15 a3 18 or %l6, 0x318, %l6 2002d28: a6 07 bf e0 add %fp, -32, %l3 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002d2c: aa 07 bf fc add %fp, -4, %l5 2002d30: b8 07 bf f8 add %fp, -8, %i4 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { Timestamp_Control used; _Timestamp_Subtract( 2002d34: b4 07 bf d8 add %fp, -40, %i2 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 2002d38: c2 06 c0 00 ld [ %i3 ], %g1 2002d3c: 80 a0 60 00 cmp %g1, 0 2002d40: 22 80 00 47 be,a 2002e5c 2002d44: b6 06 e0 04 add %i3, 4, %i3 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 2002d48: e2 00 60 04 ld [ %g1 + 4 ], %l1 if ( information ) { 2002d4c: 80 a4 60 00 cmp %l1, 0 2002d50: 22 80 00 43 be,a 2002e5c 2002d54: b6 06 e0 04 add %i3, 4, %i3 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { 2002d58: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 2002d5c: 86 90 60 00 orcc %g1, 0, %g3 2002d60: 02 80 00 3e be 2002e58 2002d64: a0 10 20 01 mov 1, %l0 the_thread = (Thread_Control *)information->local_table[ i ]; 2002d68: 10 80 00 17 b 2002dc4 2002d6c: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002d70: 96 10 00 1c mov %i4, %o3 2002d74: 90 10 00 13 mov %l3, %o0 2002d78: 40 00 20 0b call 200ada4 <_Timespec_Divide> 2002d7c: 92 10 00 14 mov %l4, %o1 /* * Print the information */ (*print)( context, 2002d80: d0 07 bf e4 ld [ %fp + -28 ], %o0 2002d84: 40 00 6d 2a call 201e22c <.udiv> 2002d88: 92 10 23 e8 mov 0x3e8, %o1 2002d8c: d4 07 bf e0 ld [ %fp + -32 ], %o2 2002d90: d8 07 bf fc ld [ %fp + -4 ], %o4 2002d94: da 07 bf f8 ld [ %fp + -8 ], %o5 2002d98: 96 10 00 08 mov %o0, %o3 2002d9c: 92 10 00 16 mov %l6, %o1 2002da0: 9f c6 40 00 call %i1 2002da4: 90 10 00 18 mov %i0, %o0 2002da8: c6 14 60 10 lduh [ %l1 + 0x10 ], %g3 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 2002dac: 83 28 e0 10 sll %g3, 0x10, %g1 2002db0: 83 30 60 10 srl %g1, 0x10, %g1 2002db4: 80 a0 40 10 cmp %g1, %l0 2002db8: 2a 80 00 29 bcs,a 2002e5c 2002dbc: b6 06 e0 04 add %i3, 4, %i3 the_thread = (Thread_Control *)information->local_table[ i ]; 2002dc0: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 2002dc4: 83 2c 20 02 sll %l0, 2, %g1 2002dc8: c2 00 80 01 ld [ %g2 + %g1 ], %g1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002dcc: 94 10 00 12 mov %l2, %o2 2002dd0: 92 10 20 0d mov 0xd, %o1 information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 2002dd4: 80 a0 60 00 cmp %g1, 0 2002dd8: 02 bf ff f5 be 2002dac 2002ddc: a0 04 20 01 inc %l0 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002de0: d0 00 60 08 ld [ %g1 + 8 ], %o0 2002de4: 40 00 10 83 call 2006ff0 2002de8: c2 27 bf c4 st %g1, [ %fp + -60 ] (*print)( 2002dec: c2 07 bf c4 ld [ %fp + -60 ], %g1 2002df0: 90 10 00 18 mov %i0, %o0 2002df4: d4 00 60 08 ld [ %g1 + 8 ], %o2 2002df8: 92 10 00 1d mov %i5, %o1 2002dfc: 9f c6 40 00 call %i1 2002e00: 96 10 00 12 mov %l2, %o3 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 2002e04: c2 07 bf c4 ld [ %fp + -60 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002e08: c4 05 c0 00 ld [ %l7 ], %g2 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 2002e0c: c6 00 60 84 ld [ %g1 + 0x84 ], %g3 2002e10: c6 27 bf e0 st %g3, [ %fp + -32 ] 2002e14: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 2002e18: c6 27 bf e4 st %g3, [ %fp + -28 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002e1c: c4 00 a0 08 ld [ %g2 + 8 ], %g2 2002e20: c2 00 60 08 ld [ %g1 + 8 ], %g1 2002e24: 80 a0 80 01 cmp %g2, %g1 2002e28: 32 bf ff d2 bne,a 2002d70 2002e2c: 94 10 00 15 mov %l5, %o2 Timestamp_Control used; _Timestamp_Subtract( 2002e30: 92 07 bf f0 add %fp, -16, %o1 2002e34: 94 10 00 1a mov %i2, %o2 2002e38: 11 00 80 aa sethi %hi(0x202a800), %o0 2002e3c: 40 00 20 6c call 200afec <_Timespec_Subtract> 2002e40: 90 12 21 a8 or %o0, 0x1a8, %o0 ! 202a9a8 <_Thread_Time_of_last_context_switch> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 2002e44: 90 10 00 13 mov %l3, %o0 2002e48: 40 00 1f be call 200ad40 <_Timespec_Add_to> 2002e4c: 92 10 00 1a mov %i2, %o1 }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002e50: 10 bf ff c8 b 2002d70 2002e54: 94 10 00 15 mov %l5, %o2 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 2002e58: b6 06 e0 04 add %i3, 4, %i3 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 2002e5c: 03 00 80 aa sethi %hi(0x202a800), %g1 2002e60: 82 10 60 54 or %g1, 0x54, %g1 ! 202a854 <_Objects_Information_table+0x14> 2002e64: 80 a6 c0 01 cmp %i3, %g1 2002e68: 32 bf ff b5 bne,a 2002d3c 2002e6c: c2 06 c0 00 ld [ %i3 ], %g1 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 2002e70: d0 07 bf ec ld [ %fp + -20 ], %o0 2002e74: 40 00 6c ee call 201e22c <.udiv> 2002e78: 92 10 23 e8 mov 0x3e8, %o1 2002e7c: d4 07 bf e8 ld [ %fp + -24 ], %o2 2002e80: 96 10 00 08 mov %o0, %o3 2002e84: 13 00 80 80 sethi %hi(0x2020000), %o1 2002e88: 90 10 00 18 mov %i0, %o0 2002e8c: 9f c6 40 00 call %i1 2002e90: 92 12 63 30 or %o1, 0x330, %o1 2002e94: 81 c7 e0 08 ret 2002e98: 81 e8 00 00 restore 0200eebc : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 200eebc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 200eec0: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200eec4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200eec8: 40 00 00 0a call 200eef0 <== NOT EXECUTED 200eecc: 90 12 23 8c or %o0, 0x38c, %o0 <== NOT EXECUTED 200eed0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 200eed4: 02 80 00 05 be 200eee8 <== NOT EXECUTED 200eed8: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200eedc: 40 00 02 9f call 200f958 <__errno> <== NOT EXECUTED 200eee0: 01 00 00 00 nop <== NOT EXECUTED 200eee4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200eee8: 81 c7 e0 08 ret <== NOT EXECUTED 200eeec: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 020079d0 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 20079d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 20079d4: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 20079d8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20079dc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 20079e0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 20079e4: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 20079e8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20079ec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20079f0: 7f ff ff 7e call 20077e8 <== NOT EXECUTED 20079f4: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 20079f8: 81 c7 e0 08 ret <== NOT EXECUTED 20079fc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020020f8 : } int rtems_filesystem_dirname( const char *pathname ) { 20020f8: 9d e3 bf a0 save %sp, -96, %sp int len = strlen( pathname ); 20020fc: 40 00 39 ce call 2010834 2002100: 90 10 00 18 mov %i0, %o0 while ( len ) { 2002104: 80 a2 20 00 cmp %o0, 0 2002108: 02 80 00 19 be 200216c 200210c: 84 10 00 08 mov %o0, %g2 len--; 2002110: 90 02 3f ff add %o0, -1, %o0 if ( rtems_filesystem_is_separator( pathname[len] ) ) 2002114: c2 4e 00 08 ldsb [ %i0 + %o0 ], %g1 2002118: 80 a0 60 5c cmp %g1, 0x5c 200211c: 02 80 00 14 be 200216c 2002120: 80 a0 60 2f cmp %g1, 0x2f 2002124: 02 80 00 12 be 200216c 2002128: 80 a0 60 00 cmp %g1, 0 200212c: 12 80 00 09 bne 2002150 2002130: a0 06 00 02 add %i0, %g2, %l0 break; } return len; } 2002134: 81 c7 e0 08 ret <== NOT EXECUTED 2002138: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { int len = strlen( pathname ); while ( len ) { len--; if ( rtems_filesystem_is_separator( pathname[len] ) ) 200213c: 80 a0 60 2f cmp %g1, 0x2f 2002140: 02 80 00 0b be 200216c 2002144: 80 a0 60 00 cmp %g1, 0 2002148: 02 80 00 09 be 200216c 200214c: a0 04 3f ff add %l0, -1, %l0 const char *pathname ) { int len = strlen( pathname ); while ( len ) { 2002150: 80 a2 20 00 cmp %o0, 0 2002154: 02 80 00 07 be 2002170 2002158: b0 10 00 08 mov %o0, %i0 len--; if ( rtems_filesystem_is_separator( pathname[len] ) ) 200215c: c2 4c 3f fe ldsb [ %l0 + -2 ], %g1 2002160: 80 a0 60 5c cmp %g1, 0x5c 2002164: 12 bf ff f6 bne 200213c 2002168: 90 02 3f ff add %o0, -1, %o0 break; } return len; } 200216c: b0 10 00 08 mov %o0, %i0 2002170: 81 c7 e0 08 ret 2002174: 81 e8 00 00 restore 0200227c : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 200227c: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 2002280: 80 a6 20 00 cmp %i0, 0 2002284: 02 80 00 33 be 2002350 2002288: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 200228c: 22 80 00 2b be,a 2002338 2002290: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2002294: c2 4e 00 00 ldsb [ %i0 ], %g1 2002298: 80 a0 60 5c cmp %g1, 0x5c 200229c: 02 80 00 06 be 20022b4 20022a0: 80 a0 60 2f cmp %g1, 0x2f 20022a4: 02 80 00 04 be 20022b4 20022a8: 80 a0 60 00 cmp %g1, 0 20022ac: 12 80 00 13 bne 20022f8 20022b0: 03 00 80 6e sethi %hi(0x201b800), %g1 20022b4: 03 00 80 6e sethi %hi(0x201b800), %g1 20022b8: c4 00 63 b4 ld [ %g1 + 0x3b4 ], %g2 ! 201bbb4 20022bc: 86 10 20 01 mov 1, %g3 20022c0: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 20022c4: 82 10 20 01 mov 1, %g1 20022c8: c8 26 c0 00 st %g4, [ %i3 ] 20022cc: c8 00 a0 1c ld [ %g2 + 0x1c ], %g4 20022d0: c8 26 e0 04 st %g4, [ %i3 + 4 ] 20022d4: c8 00 a0 20 ld [ %g2 + 0x20 ], %g4 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 20022d8: b2 26 40 01 sub %i1, %g1, %i1 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 20022dc: c8 26 e0 08 st %g4, [ %i3 + 8 ] 20022e0: c8 00 a0 24 ld [ %g2 + 0x24 ], %g4 20022e4: c8 26 e0 0c st %g4, [ %i3 + 0xc ] 20022e8: c4 00 a0 28 ld [ %g2 + 0x28 ], %g2 20022ec: c4 26 e0 10 st %g2, [ %i3 + 0x10 ] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 20022f0: 7f ff ff a2 call 2002178 20022f4: 91 ee 00 03 restore %i0, %g3, %o0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 20022f8: c4 00 63 b4 ld [ %g1 + 0x3b4 ], %g2 20022fc: 86 10 20 00 clr %g3 2002300: c8 00 a0 04 ld [ %g2 + 4 ], %g4 2002304: 82 10 20 00 clr %g1 2002308: c8 26 c0 00 st %g4, [ %i3 ] 200230c: c8 00 a0 08 ld [ %g2 + 8 ], %g4 2002310: c8 26 e0 04 st %g4, [ %i3 + 4 ] 2002314: c8 00 a0 0c ld [ %g2 + 0xc ], %g4 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 2002318: b2 26 40 01 sub %i1, %g1, %i1 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 200231c: c8 26 e0 08 st %g4, [ %i3 + 8 ] 2002320: c8 00 a0 10 ld [ %g2 + 0x10 ], %g4 2002324: c8 26 e0 0c st %g4, [ %i3 + 0xc ] 2002328: c4 00 a0 14 ld [ %g2 + 0x14 ], %g2 200232c: c4 26 e0 10 st %g2, [ %i3 + 0x10 ] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 2002330: 7f ff ff 92 call 2002178 2002334: 91 ee 00 03 restore %i0, %g3, %o0 if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002338: 40 00 35 88 call 200f958 <__errno> <== NOT EXECUTED 200233c: 01 00 00 00 nop <== NOT EXECUTED 2002340: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2002344: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 2002348: 81 c7 e0 08 ret <== NOT EXECUTED 200234c: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 2002350: 40 00 35 82 call 200f958 <__errno> 2002354: b0 10 3f ff mov -1, %i0 2002358: 82 10 20 0e mov 0xe, %g1 200235c: c2 22 00 00 st %g1, [ %o0 ] 2002360: 81 c7 e0 08 ret 2002364: 81 e8 00 00 restore 02002178 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002178: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 200217c: 80 a6 20 00 cmp %i0, 0 2002180: 02 80 00 33 be 200224c 2002184: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 2002188: 02 80 00 37 be 2002264 200218c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 2002190: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 2002194: c2 00 40 00 ld [ %g1 ], %g1 2002198: 80 a0 60 00 cmp %g1, 0 200219c: 02 80 00 26 be 2002234 20021a0: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 20021a4: 92 10 00 19 mov %i1, %o1 20021a8: 94 10 00 1a mov %i2, %o2 20021ac: 9f c0 40 00 call %g1 20021b0: 96 10 00 1b mov %i3, %o3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 20021b4: b0 92 20 00 orcc %o0, 0, %i0 20021b8: 12 80 00 0f bne 20021f4 20021bc: 80 a7 20 00 cmp %i4, 0 20021c0: 02 80 00 2d be 2002274 20021c4: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 20021c8: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 20021cc: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20021d0: 80 a0 60 00 cmp %g1, 0 20021d4: 22 80 00 13 be,a 2002220 20021d8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 20021dc: 9f c0 40 00 call %g1 20021e0: 90 10 00 1b mov %i3, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 20021e4: 90 02 3f fd add %o0, -3, %o0 20021e8: 80 a2 20 01 cmp %o0, 1 20021ec: 28 80 00 04 bleu,a 20021fc 20021f0: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 20021f4: 81 c7 e0 08 ret 20021f8: 81 e8 00 00 restore type = (*pathloc->ops->node_type_h)( pathloc ); if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 20021fc: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 2002200: 80 a0 60 00 cmp %g1, 0 2002204: 02 80 00 06 be 200221c 2002208: 90 10 00 1b mov %i3, %o0 * 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 ); 200220c: 9f c0 40 00 call %g1 2002210: 92 10 00 1a mov %i2, %o1 } } return result; } 2002214: 81 c7 e0 08 ret 2002218: 91 e8 00 08 restore %g0, %o0, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 200221c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002220: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002224: 02 80 00 04 be 2002234 <== NOT EXECUTED 2002228: 01 00 00 00 nop <== NOT EXECUTED 200222c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002230: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002234: 40 00 35 c9 call 200f958 <__errno> <== NOT EXECUTED 2002238: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200223c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002240: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002244: 81 c7 e0 08 ret <== NOT EXECUTED 2002248: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 200224c: 40 00 35 c3 call 200f958 <__errno> <== NOT EXECUTED 2002250: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002254: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002258: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200225c: 81 c7 e0 08 ret <== NOT EXECUTED 2002260: 81 e8 00 00 restore <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002264: 40 00 35 bd call 200f958 <__errno> <== NOT EXECUTED 2002268: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200226c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2002270: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002274: 81 c7 e0 08 ret 2002278: 81 e8 00 00 restore 02001f20 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 2001f20: 9d e3 bf 88 save %sp, -120, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 2001f24: 21 00 80 6e sethi %hi(0x201b800), %l0 2001f28: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 ! 201bbb4 2001f2c: 84 10 20 12 mov 0x12, %g2 init_fs_mount_table(); 2001f30: 40 00 01 ed call 20026e4 2001f34: c4 30 60 2c sth %g2, [ %g1 + 0x2c ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2001f38: 03 00 80 69 sethi %hi(0x201a400), %g1 2001f3c: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 201a73c 2001f40: 80 a0 60 00 cmp %g1, 0 2001f44: 02 80 00 45 be 2002058 2001f48: 03 00 80 6e sethi %hi(0x201b800), %g1 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 2001f4c: c2 00 62 ac ld [ %g1 + 0x2ac ], %g1 ! 201baac status = mount( 2001f50: 90 07 bf fc add %fp, -4, %o0 2001f54: d8 00 60 0c ld [ %g1 + 0xc ], %o4 2001f58: d2 00 40 00 ld [ %g1 ], %o1 2001f5c: d4 00 60 04 ld [ %g1 + 4 ], %o2 2001f60: 40 00 01 e9 call 2002704 2001f64: d6 00 60 08 ld [ %g1 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 2001f68: 80 a2 3f ff cmp %o0, -1 2001f6c: 02 80 00 40 be 200206c 2001f70: c4 07 bf fc ld [ %fp + -4 ], %g2 rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 2001f74: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f78: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 2001f7c: c0 30 60 2e clrh [ %g1 + 0x2e ] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f80: c6 20 60 18 st %g3, [ %g1 + 0x18 ] 2001f84: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001f88: a4 07 bf e8 add %fp, -24, %l2 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f8c: c6 20 60 1c st %g3, [ %g1 + 0x1c ] 2001f90: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001f94: 23 00 80 6a sethi %hi(0x201a800), %l1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f98: c6 20 60 20 st %g3, [ %g1 + 0x20 ] 2001f9c: c6 00 a0 28 ld [ %g2 + 0x28 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001fa0: 92 10 20 01 mov 1, %o1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001fa4: c6 20 60 24 st %g3, [ %g1 + 0x24 ] 2001fa8: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001fac: 94 10 20 00 clr %o2 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001fb0: c4 20 60 28 st %g2, [ %g1 + 0x28 ] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001fb4: 96 10 00 12 mov %l2, %o3 2001fb8: 98 10 20 00 clr %o4 2001fbc: 40 00 00 b0 call 200227c 2001fc0: 90 14 63 d8 or %l1, 0x3d8, %o0 rtems_filesystem_root = loc; 2001fc4: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 2001fc8: c4 07 bf e8 ld [ %fp + -24 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001fcc: 96 10 00 12 mov %l2, %o3 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 2001fd0: c4 20 60 18 st %g2, [ %g1 + 0x18 ] 2001fd4: c4 07 bf ec ld [ %fp + -20 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001fd8: 92 10 20 01 mov 1, %o1 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 2001fdc: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 2001fe0: c4 07 bf f0 ld [ %fp + -16 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001fe4: 94 10 20 00 clr %o2 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 2001fe8: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 2001fec: c4 07 bf f4 ld [ %fp + -12 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001ff0: 98 10 20 00 clr %o4 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 2001ff4: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 2001ff8: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001ffc: 90 14 63 d8 or %l1, 0x3d8, %o0 2002000: 40 00 00 9f call 200227c 2002004: c4 20 60 28 st %g2, [ %g1 + 0x28 ] rtems_filesystem_current = loc; 2002008: c4 07 bf e8 ld [ %fp + -24 ], %g2 200200c: c2 04 23 b4 ld [ %l0 + 0x3b4 ], %g1 * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 2002010: 11 00 80 6a sethi %hi(0x201a800), %o0 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 2002014: c4 20 60 04 st %g2, [ %g1 + 4 ] 2002018: c4 07 bf ec ld [ %fp + -20 ], %g2 * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 200201c: 90 12 23 e0 or %o0, 0x3e0, %o0 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 2002020: c4 20 60 08 st %g2, [ %g1 + 8 ] 2002024: c4 07 bf f0 ld [ %fp + -16 ], %g2 * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 2002028: 92 10 21 ff mov 0x1ff, %o1 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; 200202c: c4 20 60 0c st %g2, [ %g1 + 0xc ] 2002030: c4 07 bf f4 ld [ %fp + -12 ], %g2 2002034: c4 20 60 10 st %g2, [ %g1 + 0x10 ] 2002038: c4 07 bf f8 ld [ %fp + -8 ], %g2 * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 200203c: 40 00 01 3f call 2002538 2002040: c4 20 60 14 st %g2, [ %g1 + 0x14 ] if ( status != 0 ) 2002044: 80 a2 20 00 cmp %o0, 0 2002048: 12 80 00 07 bne 2002064 200204c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 2002050: 81 c7 e0 08 ret 2002054: 81 e8 00 00 restore /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 2002058: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 200205c: 40 00 10 4f call 2006198 <== NOT EXECUTED 2002060: 90 12 20 01 or %o0, 1, %o0 ! abcd0001 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 2002064: 40 00 10 4d call 2006198 <== NOT EXECUTED 2002068: 90 12 20 03 or %o0, 3, %o0 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 200206c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2002070: 40 00 10 4a call 2006198 <== NOT EXECUTED 2002074: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED 2002078: 01 00 00 00 nop 02009e38 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 2009e38: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2009e3c: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 2009e40: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 2009e44: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 2009e48: 81 c3 e0 08 retl <== NOT EXECUTED 2009e4c: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 0200207c : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 200207c: 82 10 00 08 mov %o0, %g1 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 2002080: 80 a2 60 00 cmp %o1, 0 2002084: 12 80 00 04 bne 2002094 2002088: c4 0a 00 00 ldub [ %o0 ], %g2 pathname++; pathnamelen--; stripped++; } return stripped; } 200208c: 81 c3 e0 08 retl <== NOT EXECUTED 2002090: 90 10 20 00 clr %o0 <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 2002094: 85 28 a0 18 sll %g2, 0x18, %g2 2002098: 85 38 a0 18 sra %g2, 0x18, %g2 200209c: 80 a0 a0 00 cmp %g2, 0 20020a0: 02 80 00 14 be 20020f0 20020a4: 90 10 20 00 clr %o0 20020a8: 80 a0 a0 5c cmp %g2, 0x5c 20020ac: 02 80 00 04 be 20020bc 20020b0: 80 a0 a0 2f cmp %g2, 0x2f 20020b4: 12 80 00 0f bne 20020f0 20020b8: 01 00 00 00 nop { pathname++; pathnamelen--; stripped++; 20020bc: 90 02 20 01 inc %o0 { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 20020c0: 80 a2 40 08 cmp %o1, %o0 20020c4: 02 80 00 0b be 20020f0 20020c8: c4 08 40 08 ldub [ %g1 + %o0 ], %g2 20020cc: 85 28 a0 18 sll %g2, 0x18, %g2 20020d0: 85 38 a0 18 sra %g2, 0x18, %g2 20020d4: 80 a0 a0 00 cmp %g2, 0 20020d8: 02 80 00 06 be 20020f0 20020dc: 80 a0 a0 5c cmp %g2, 0x5c 20020e0: 02 bf ff f7 be 20020bc 20020e4: 80 a0 a0 2f cmp %g2, 0x2f 20020e8: 22 bf ff f6 be,a 20020c0 20020ec: 90 02 20 01 inc %o0 <== NOT EXECUTED pathname++; pathnamelen--; stripped++; } return stripped; } 20020f0: 81 c3 e0 08 retl 20020f4: 01 00 00 00 nop 02001d90 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 2001d90: 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, strlen( name ), 0x00, &loc, true ); 2001d94: 40 00 3a a8 call 2010834 <== NOT EXECUTED 2001d98: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001d9c: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2001da0: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2001da4: 94 10 20 00 clr %o2 <== NOT EXECUTED 2001da8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001dac: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2001db0: 40 00 01 33 call 200227c <== NOT EXECUTED 2001db4: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001db8: c4 07 bf f8 ld [ %fp + -8 ], %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, strlen( name ), 0x00, &loc, true ); 2001dbc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001dc0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2001dc4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dc8: 02 80 00 13 be 2001e14 <== NOT EXECUTED 2001dcc: e4 07 bf ec ld [ %fp + -20 ], %l2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 2001dd0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001dd4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2001dd8: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED 2001ddc: 02 80 00 1a be 2001e44 <== NOT EXECUTED 2001de0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001de4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2001de8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dec: 02 80 00 2b be 2001e98 <== NOT EXECUTED 2001df0: 01 00 00 00 nop <== NOT EXECUTED 2001df4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001df8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dfc: 02 80 00 27 be 2001e98 <== NOT EXECUTED 2001e00: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2001e04: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e08: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED 2001e0c: 81 c7 e0 08 ret <== NOT EXECUTED 2001e10: 81 e8 00 00 restore <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 2001e14: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2001e18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e1c: 02 80 00 04 be 2001e2c <== NOT EXECUTED 2001e20: 01 00 00 00 nop <== NOT EXECUTED 2001e24: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2001e2c: 40 00 36 cb call 200f958 <__errno> <== NOT EXECUTED 2001e30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001e34: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001e38: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001e3c: 81 c7 e0 08 ret <== NOT EXECUTED 2001e40: 81 e8 00 00 restore <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2001e44: 12 bf ff e9 bne 2001de8 <== NOT EXECUTED 2001e48: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 2001e4c: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 2001e50: 40 00 3a 79 call 2010834 <== NOT EXECUTED 2001e54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001e58: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 2001e5c: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001e60: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== 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; 2001e64: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 2001e68: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001e6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e70: 02 80 00 0c be 2001ea0 <== NOT EXECUTED 2001e74: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED 2001e78: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001e7c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e80: 02 80 00 08 be 2001ea0 <== NOT EXECUTED 2001e84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2001e88: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e8c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2001e90: 81 c7 e0 08 ret <== NOT EXECUTED 2001e94: 81 e8 00 00 restore <== NOT EXECUTED 2001e98: 81 c7 e0 08 ret <== NOT EXECUTED 2001e9c: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2001ea0: 81 c7 e0 08 ret <== NOT EXECUTED 2001ea4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02007fd8 : 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 ) { 2007fd8: 9d e3 bf a0 save %sp, -96, %sp rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 2007fdc: 03 00 80 8a sethi %hi(0x2022800), %g1 2007fe0: c2 00 60 bc ld [ %g1 + 0xbc ], %g1 ! 20228bc <_ISR_Nest_level> rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; 2007fe4: 09 00 80 8c sethi %hi(0x2023000), %g4 if ( rtems_interrupt_is_in_progress() ) 2007fe8: 80 a0 60 00 cmp %g1, 0 2007fec: 84 10 20 12 mov 0x12, %g2 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 ) { 2007ff0: 82 10 00 19 mov %i1, %g1 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 2007ff4: 12 80 00 49 bne 2008118 2007ff8: c6 01 21 a4 ld [ %g4 + 0x1a4 ], %g3 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 2007ffc: 80 a6 a0 00 cmp %i2, 0 2008000: 02 80 00 4b be 200812c 2008004: 80 a6 60 00 cmp %i1, 0 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) 2008008: 02 80 00 49 be 200812c 200800c: c6 26 80 00 st %g3, [ %i2 ] static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 2008010: c4 06 40 00 ld [ %i1 ], %g2 2008014: 80 a0 a0 00 cmp %g2, 0 2008018: 22 80 00 42 be,a 2008120 200801c: c4 06 60 04 ld [ %i1 + 4 ], %g2 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 2008020: 80 a0 c0 18 cmp %g3, %i0 2008024: 08 80 00 3d bleu 2008118 2008028: 84 10 20 0a mov 0xa, %g2 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200802c: 05 00 80 8a sethi %hi(0x2022800), %g2 2008030: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 ! 2022820 <_Thread_Dispatch_disable_level> 2008034: 86 00 e0 01 inc %g3 2008038: c6 20 a0 20 st %g3, [ %g2 + 0x20 ] return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 200803c: 80 a6 20 00 cmp %i0, 0 2008040: 12 80 00 2b bne 20080ec 2008044: 05 00 80 8c sethi %hi(0x2023000), %g2 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 2008048: da 01 21 a4 ld [ %g4 + 0x1a4 ], %o5 rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 200804c: 80 a3 60 00 cmp %o5, 0 2008050: 02 80 00 3a be 2008138 2008054: d8 00 a1 a8 ld [ %g2 + 0x1a8 ], %o4 2008058: 10 80 00 05 b 200806c 200805c: 86 10 00 0c mov %o4, %g3 2008060: 80 a3 40 18 cmp %o5, %i0 2008064: 08 80 00 0b bleu 2008090 2008068: 86 00 e0 18 add %g3, 0x18, %g3 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 200806c: c8 00 c0 00 ld [ %g3 ], %g4 2008070: 80 a1 20 00 cmp %g4, 0 2008074: 32 bf ff fb bne,a 2008060 2008078: b0 06 20 01 inc %i0 200807c: c8 00 e0 04 ld [ %g3 + 4 ], %g4 2008080: 80 a1 20 00 cmp %g4, 0 2008084: 32 bf ff f7 bne,a 2008060 2008088: b0 06 20 01 inc %i0 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) 200808c: 80 a3 40 18 cmp %o5, %i0 2008090: 02 80 00 2b be 200813c 2008094: f0 26 80 00 st %i0, [ %i2 ] 2008098: 85 2e 20 03 sll %i0, 3, %g2 200809c: 87 2e 20 05 sll %i0, 5, %g3 20080a0: 84 20 c0 02 sub %g3, %g2, %g2 20080a4: 84 03 00 02 add %o4, %g2, %g2 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 20080a8: c6 00 40 00 ld [ %g1 ], %g3 _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 20080ac: b2 10 20 00 clr %i1 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 20080b0: c6 20 80 00 st %g3, [ %g2 ] 20080b4: c6 00 60 04 ld [ %g1 + 4 ], %g3 _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 20080b8: b4 10 20 00 clr %i2 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 20080bc: c6 20 a0 04 st %g3, [ %g2 + 4 ] 20080c0: c6 00 60 08 ld [ %g1 + 8 ], %g3 20080c4: c6 20 a0 08 st %g3, [ %g2 + 8 ] 20080c8: c6 00 60 0c ld [ %g1 + 0xc ], %g3 20080cc: c6 20 a0 0c st %g3, [ %g2 + 0xc ] 20080d0: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 20080d4: c6 20 a0 10 st %g3, [ %g2 + 0x10 ] 20080d8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 _Thread_Enable_dispatch(); 20080dc: 40 00 07 53 call 2009e28 <_Thread_Enable_dispatch> 20080e0: c2 20 a0 14 st %g1, [ %g2 + 0x14 ] return rtems_io_initialize( major, 0, NULL ); 20080e4: 40 00 26 e2 call 2011c6c 20080e8: 81 e8 00 00 restore _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 20080ec: c6 00 a1 a8 ld [ %g2 + 0x1a8 ], %g3 20080f0: 89 2e 20 05 sll %i0, 5, %g4 20080f4: 85 2e 20 03 sll %i0, 3, %g2 20080f8: 84 21 00 02 sub %g4, %g2, %g2 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 20080fc: c8 00 c0 02 ld [ %g3 + %g2 ], %g4 2008100: 80 a1 20 00 cmp %g4, 0 2008104: 02 80 00 12 be 200814c 2008108: 84 00 c0 02 add %g3, %g2, %g2 major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); 200810c: 40 00 07 47 call 2009e28 <_Thread_Enable_dispatch> 2008110: 01 00 00 00 nop 2008114: 84 10 20 0c mov 0xc, %g2 ! c _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 2008118: 81 c7 e0 08 ret 200811c: 91 e8 00 02 restore %g0, %g2, %o0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 2008120: 80 a0 a0 00 cmp %g2, 0 2008124: 12 bf ff c0 bne 2008024 2008128: 80 a0 c0 18 cmp %g3, %i0 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 200812c: 84 10 20 09 mov 9, %g2 } 2008130: 81 c7 e0 08 ret 2008134: 91 e8 00 02 restore %g0, %g2, %o0 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 2008138: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); 200813c: 40 00 07 3b call 2009e28 <_Thread_Enable_dispatch> 2008140: 01 00 00 00 nop return sc; 2008144: 10 bf ff f5 b 2008118 2008148: 84 10 20 05 mov 5, %g2 ! 5 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 200814c: c6 00 a0 04 ld [ %g2 + 4 ], %g3 2008150: 80 a0 e0 00 cmp %g3, 0 2008154: 12 bf ff ee bne 200810c 2008158: 01 00 00 00 nop if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 200815c: 10 bf ff d3 b 20080a8 2008160: f0 26 80 00 st %i0, [ %i2 ] 0200b270 : * 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 ) { 200b270: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 200b274: 21 00 80 70 sethi %hi(0x201c000), %l0 200b278: d0 04 23 d8 ld [ %l0 + 0x3d8 ], %o0 ! 201c3d8 200b27c: 92 10 20 00 clr %o1 200b280: 7f ff ea 17 call 2005adc 200b284: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 200b288: 23 00 80 70 sethi %hi(0x201c000), %l1 200b28c: c2 04 63 d4 ld [ %l1 + 0x3d4 ], %g1 ! 201c3d4 200b290: 80 a0 60 00 cmp %g1, 0 200b294: 12 80 00 07 bne 200b2b0 200b298: 05 00 80 70 sethi %hi(0x201c000), %g2 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; rtems_libio_iop_freelist = next; goto done; 200b29c: b0 10 20 00 clr %i0 failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 200b2a0: 7f ff ea 56 call 2005bf8 200b2a4: d0 04 23 d8 ld [ %l0 + 0x3d8 ], %o0 return iop; } 200b2a8: 81 c7 e0 08 ret 200b2ac: 81 e8 00 00 restore rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create( 200b2b0: c4 00 a3 d0 ld [ %g2 + 0x3d0 ], %g2 200b2b4: 92 10 20 01 mov 1, %o1 200b2b8: 82 20 40 02 sub %g1, %g2, %g1 200b2bc: 83 38 60 03 sra %g1, 3, %g1 200b2c0: 87 28 60 06 sll %g1, 6, %g3 200b2c4: 85 28 60 03 sll %g1, 3, %g2 200b2c8: 84 20 c0 02 sub %g3, %g2, %g2 200b2cc: 87 28 a0 06 sll %g2, 6, %g3 200b2d0: 84 00 80 03 add %g2, %g3, %g2 200b2d4: 84 00 80 01 add %g2, %g1, %g2 200b2d8: 87 28 a0 0f sll %g2, 0xf, %g3 200b2dc: 84 20 c0 02 sub %g3, %g2, %g2 200b2e0: 07 13 10 92 sethi %hi(0x4c424800), %g3 200b2e4: 85 28 a0 03 sll %g2, 3, %g2 200b2e8: 86 10 e1 00 or %g3, 0x100, %g3 200b2ec: 82 00 80 01 add %g2, %g1, %g1 200b2f0: 94 10 20 54 mov 0x54, %o2 200b2f4: 96 10 20 00 clr %o3 200b2f8: 90 10 40 03 or %g1, %g3, %o0 200b2fc: 7f ff e9 57 call 2005858 200b300: 98 07 bf fc add %fp, -4, %o4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) 200b304: 80 a2 20 00 cmp %o0, 0 200b308: 32 bf ff e6 bne,a 200b2a0 200b30c: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 200b310: f0 04 63 d4 ld [ %l1 + 0x3d4 ], %i0 next = iop->data1; 200b314: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200b318: c0 26 20 30 clr [ %i0 + 0x30 ] 200b31c: c0 26 20 1c clr [ %i0 + 0x1c ] 200b320: c0 26 20 34 clr [ %i0 + 0x34 ] 200b324: c0 26 00 00 clr [ %i0 ] 200b328: c0 26 20 04 clr [ %i0 + 4 ] 200b32c: c0 26 20 08 clr [ %i0 + 8 ] 200b330: c0 26 20 0c clr [ %i0 + 0xc ] 200b334: c0 26 20 10 clr [ %i0 + 0x10 ] 200b338: c0 26 20 14 clr [ %i0 + 0x14 ] 200b33c: c0 26 20 20 clr [ %i0 + 0x20 ] 200b340: c0 26 20 24 clr [ %i0 + 0x24 ] 200b344: c0 26 20 28 clr [ %i0 + 0x28 ] 200b348: c0 26 20 2c clr [ %i0 + 0x2c ] 200b34c: c0 26 20 40 clr [ %i0 + 0x40 ] 200b350: c0 26 20 44 clr [ %i0 + 0x44 ] 200b354: c0 26 20 38 clr [ %i0 + 0x38 ] 200b358: c0 26 20 3c clr [ %i0 + 0x3c ] iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; rtems_libio_iop_freelist = next; 200b35c: c2 24 63 d4 st %g1, [ %l1 + 0x3d4 ] 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; 200b360: 82 10 21 00 mov 0x100, %g1 200b364: c2 26 20 18 st %g1, [ %i0 + 0x18 ] iop->sem = sema; 200b368: c2 07 bf fc ld [ %fp + -4 ], %g1 rtems_libio_iop_freelist = next; goto done; 200b36c: 10 bf ff cd b 200b2a0 200b370: c2 26 20 30 st %g1, [ %i0 + 0x30 ] 02002368 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 2002368: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 200236c: 21 00 80 6e sethi %hi(0x201b800), %l0 2002370: d0 04 22 a4 ld [ %l0 + 0x2a4 ], %o0 ! 201baa4 2002374: 80 a2 20 00 cmp %o0, 0 2002378: 22 80 00 1c be,a 20023e8 200237c: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 2002380: 40 00 22 6b call 200ad2c 2002384: 92 10 20 48 mov 0x48, %o1 2002388: 03 00 80 70 sethi %hi(0x201c000), %g1 200238c: d0 20 63 d0 st %o0, [ %g1 + 0x3d0 ] ! 201c3d0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 2002390: 80 a2 20 00 cmp %o0, 0 2002394: 02 80 00 29 be 2002438 2002398: 82 10 00 08 mov %o0, %g1 rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 200239c: c6 04 22 a4 ld [ %l0 + 0x2a4 ], %g3 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; 20023a0: 05 00 80 70 sethi %hi(0x201c000), %g2 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 20023a4: 80 a0 e0 01 cmp %g3, 1 20023a8: 08 80 00 0e bleu 20023e0 20023ac: d0 20 a3 d4 st %o0, [ %g2 + 0x3d4 ] 20023b0: 82 02 20 48 add %o0, 0x48, %g1 20023b4: 84 10 20 01 mov 1, %g2 iop->data1 = iop + 1; 20023b8: c2 20 7f f0 st %g1, [ %g1 + -16 ] 20023bc: 84 00 a0 01 inc %g2 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 20023c0: 80 a0 80 03 cmp %g2, %g3 20023c4: 12 bf ff fd bne 20023b8 20023c8: 82 00 60 48 add %g1, 0x48, %g1 20023cc: 84 00 bf ff add %g2, -1, %g2 20023d0: 83 28 a0 06 sll %g2, 6, %g1 20023d4: 85 28 a0 03 sll %g2, 3, %g2 20023d8: 82 00 80 01 add %g2, %g1, %g1 20023dc: 82 02 00 01 add %o0, %g1, %g1 iop->data1 = iop + 1; iop->data1 = NULL; 20023e0: c0 20 60 38 clr [ %g1 + 0x38 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 20023e4: 11 13 10 92 sethi %hi(0x4c424800), %o0 20023e8: 92 10 20 01 mov 1, %o1 20023ec: 90 12 21 4f or %o0, 0x14f, %o0 20023f0: 94 10 20 54 mov 0x54, %o2 20023f4: 96 10 20 00 clr %o3 20023f8: 19 00 80 70 sethi %hi(0x201c000), %o4 20023fc: 40 00 0d 17 call 2005858 2002400: 98 13 23 d8 or %o4, 0x3d8, %o4 ! 201c3d8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 2002404: 80 a2 20 00 cmp %o0, 0 2002408: 12 80 00 0a bne 2002430 200240c: 03 00 80 6e sethi %hi(0x201b800), %g1 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 2002410: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 201baa0 2002414: 80 a0 60 00 cmp %g1, 0 2002418: 02 80 00 04 be 2002428 200241c: 01 00 00 00 nop (* rtems_fs_init_helper)(); 2002420: 9f c0 40 00 call %g1 2002424: 01 00 00 00 nop 2002428: 81 c7 e0 08 ret 200242c: 81 e8 00 00 restore RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); 2002430: 40 00 0f 5a call 2006198 <== NOT EXECUTED 2002434: 01 00 00 00 nop <== NOT EXECUTED if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 2002438: 40 00 0f 58 call 2006198 <== NOT EXECUTED 200243c: 90 10 20 1a mov 0x1a, %o0 ! 1a <== NOT EXECUTED 2002440: 01 00 00 00 nop 0202a44c : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 202a44c: 9d e3 bf 88 save %sp, -120, %sp rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 202a450: 90 10 20 00 clr %o0 202a454: 92 10 20 00 clr %o1 202a458: 40 00 06 db call 202bfc4 202a45c: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 202a460: b0 92 20 00 orcc %o0, 0, %i0 202a464: 12 80 00 51 bne 202a5a8 202a468: 21 00 81 a6 sethi %hi(0x2069800), %l0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 202a46c: e6 04 20 f4 ld [ %l0 + 0xf4 ], %l3 ! 20698f4 202a470: 23 00 81 b5 sethi %hi(0x206d400), %l1 202a474: a2 14 63 b0 or %l1, 0x3b0, %l1 ! 206d7b0 202a478: 80 a4 c0 11 cmp %l3, %l1 202a47c: 02 80 00 3a be 202a564 202a480: a4 14 20 f4 or %l0, 0xf4, %l2 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 202a484: 92 10 00 11 mov %l1, %o1 202a488: 94 10 20 48 mov 0x48, %o2 202a48c: 40 00 74 a1 call 2047710 202a490: 90 10 00 13 mov %l3, %o0 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a494: 03 00 81 b5 sethi %hi(0x206d400), %g1 202a498: c2 00 63 98 ld [ %g1 + 0x398 ], %g1 ! 206d798 } 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*/ 202a49c: c6 07 bf fc ld [ %fp + -4 ], %g3 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a4a0: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 } 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*/ 202a4a4: c6 24 c0 00 st %g3, [ %l3 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a4a8: c4 24 e0 18 st %g2, [ %l3 + 0x18 ] 202a4ac: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a4b0: a2 07 bf e8 add %fp, -24, %l1 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a4b4: c4 24 e0 1c st %g2, [ %l3 + 0x1c ] 202a4b8: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a4bc: 25 00 81 7e sethi %hi(0x205f800), %l2 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a4c0: c4 24 e0 20 st %g2, [ %l3 + 0x20 ] 202a4c4: c4 00 60 28 ld [ %g1 + 0x28 ], %g2 * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a4c8: 92 10 20 01 mov 1, %o1 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a4cc: c4 24 e0 24 st %g2, [ %l3 + 0x24 ] 202a4d0: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a4d4: 94 10 20 00 clr %o2 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a4d8: c2 24 e0 28 st %g1, [ %l3 + 0x28 ] * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a4dc: 96 10 00 11 mov %l1, %o3 202a4e0: 98 10 20 00 clr %o4 202a4e4: 7f ff 6e ef call 20060a0 202a4e8: 90 14 a2 10 or %l2, 0x210, %o0 rtems_filesystem_root = loc; 202a4ec: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 202a4f0: c4 07 bf e8 ld [ %fp + -24 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a4f4: 90 14 a2 10 or %l2, 0x210, %o0 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 202a4f8: c4 20 60 18 st %g2, [ %g1 + 0x18 ] 202a4fc: c4 07 bf ec ld [ %fp + -20 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a500: 96 10 00 11 mov %l1, %o3 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 202a504: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 202a508: c4 07 bf f0 ld [ %fp + -16 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a50c: 92 10 20 01 mov 1, %o1 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 202a510: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 202a514: c4 07 bf f4 ld [ %fp + -12 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a518: 94 10 20 00 clr %o2 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 202a51c: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 202a520: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a524: 98 10 20 00 clr %o4 202a528: 7f ff 6e de call 20060a0 202a52c: c4 20 60 28 st %g2, [ %g1 + 0x28 ] rtems_filesystem_current = loc; 202a530: c4 07 bf e8 ld [ %fp + -24 ], %g2 202a534: c2 04 20 f4 ld [ %l0 + 0xf4 ], %g1 202a538: c4 20 60 04 st %g2, [ %g1 + 4 ] 202a53c: c4 07 bf ec ld [ %fp + -20 ], %g2 202a540: c4 20 60 08 st %g2, [ %g1 + 8 ] 202a544: c4 07 bf f0 ld [ %fp + -16 ], %g2 202a548: c4 20 60 0c st %g2, [ %g1 + 0xc ] 202a54c: c4 07 bf f4 ld [ %fp + -12 ], %g2 202a550: c4 20 60 10 st %g2, [ %g1 + 0x10 ] 202a554: c4 07 bf f8 ld [ %fp + -8 ], %g2 202a558: c4 20 60 14 st %g2, [ %g1 + 0x14 ] return RTEMS_SUCCESSFUL; } 202a55c: 81 c7 e0 08 ret 202a560: 91 e8 20 00 restore %g0, 0, %o0 sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 202a564: 90 10 20 48 mov 0x48, %o0 202a568: 7f ff 70 bf call 2006864 202a56c: b0 10 20 1a mov 0x1a, %i0 if (!tmp) 202a570: a6 92 20 00 orcc %o0, 0, %l3 202a574: 02 80 00 0d be 202a5a8 202a578: 92 10 00 12 mov %l2, %o1 #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); 202a57c: 90 10 20 00 clr %o0 202a580: 15 00 80 a8 sethi %hi(0x202a000), %o2 202a584: 40 00 07 a6 call 202c41c 202a588: 94 12 a3 18 or %o2, 0x318, %o2 ! 202a318 if (sc != RTEMS_SUCCESSFUL) { 202a58c: b0 92 20 00 orcc %o0, 0, %i0 202a590: 12 80 00 04 bne 202a5a0 202a594: 01 00 00 00 nop * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 202a598: 10 bf ff bb b 202a484 202a59c: e6 24 20 f4 st %l3, [ %l0 + 0xf4 ] sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); if (sc != RTEMS_SUCCESSFUL) { /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 202a5a0: 7f ff 6e fb call 200618c <== NOT EXECUTED 202a5a4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED return sc; 202a5a8: 81 c7 e0 08 ret <== NOT EXECUTED 202a5ac: 81 e8 00 00 restore <== NOT EXECUTED 0202a390 : * 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) { 202a390: 9d e3 bf 98 save %sp, -104, %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); 202a394: 90 10 20 00 clr %o0 <== NOT EXECUTED 202a398: 92 10 20 00 clr %o1 <== NOT EXECUTED 202a39c: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 202a3a0: 40 00 07 09 call 202bfc4 <== NOT EXECUTED 202a3a4: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 202a3a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202a3ac: 12 80 00 14 bne 202a3fc <== NOT EXECUTED 202a3b0: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 202a3b4: 21 00 81 a6 sethi %hi(0x2069800), %l0 <== NOT EXECUTED 202a3b8: e6 04 20 f4 ld [ %l0 + 0xf4 ], %l3 ! 20698f4 <== NOT EXECUTED 202a3bc: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED 202a3c0: c6 04 c0 00 ld [ %l3 ], %g3 <== NOT EXECUTED 202a3c4: 82 14 20 f4 or %l0, 0xf4, %g1 <== NOT EXECUTED 202a3c8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 202a3cc: 02 80 00 0e be 202a404 <== NOT EXECUTED 202a3d0: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED free_user_env(tmp); }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 202a3d4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 202a3d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 202a3dc: 40 00 08 6e call 202c594 <== NOT EXECUTED 202a3e0: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 202a3e4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202a3e8: 02 80 00 10 be 202a428 <== NOT EXECUTED 202a3ec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 202a3f0: 05 00 81 b5 sethi %hi(0x206d400), %g2 <== NOT EXECUTED 202a3f4: 84 10 a3 b0 or %g2, 0x3b0, %g2 ! 206d7b0 <== NOT EXECUTED 202a3f8: c4 24 20 f4 st %g2, [ %l0 + 0xf4 ] <== NOT EXECUTED return sc; } 202a3fc: 81 c7 e0 08 ret <== NOT EXECUTED 202a400: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_current_user_env->task_id==current_task_id) { /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 202a404: 40 00 08 36 call 202c4dc <== NOT EXECUTED 202a408: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 202a40c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202a410: 12 bf ff fb bne 202a3fc <== NOT EXECUTED 202a414: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 202a418: 7f ff ff c0 call 202a318 <== NOT EXECUTED 202a41c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 202a420: 10 bf ff ee b 202a3d8 <== NOT EXECUTED 202a424: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 202a428: 15 00 80 a8 sethi %hi(0x202a000), %o2 <== NOT EXECUTED 202a42c: 40 00 07 fc call 202c41c <== NOT EXECUTED 202a430: 94 12 a3 18 or %o2, 0x318, %o2 ! 202a318 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 202a434: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202a438: 12 bf ff ef bne 202a3f4 <== NOT EXECUTED 202a43c: 05 00 81 b5 sethi %hi(0x206d400), %g2 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 202a440: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 202a444: 10 bf ff ee b 202a3fc <== NOT EXECUTED 202a448: c4 24 20 f4 st %g2, [ %l0 + 0xf4 ] <== NOT EXECUTED 02006968 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 2006968: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 200696c: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED 2006970: d0 00 62 10 ld [ %g1 + 0x210 ], %o0 ! 2069610 <== NOT EXECUTED 2006974: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2006978: 40 00 19 18 call 200cdd8 <_Protected_heap_Get_block_size> <== NOT EXECUTED 200697c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2006980: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2006984: 02 80 00 08 be 20069a4 <== NOT EXECUTED 2006988: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 200698c: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 2006990: 82 10 63 68 or %g1, 0x368, %g1 <== NOT EXECUTED 2006994: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 2006998: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 200699c: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 20069a0: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 20069a4: 81 c7 e0 08 ret <== NOT EXECUTED 20069a8: 81 e8 00 00 restore <== NOT EXECUTED 020069ac : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 20069ac: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 20069b0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20069b4: 02 80 00 14 be 2006a04 <== NOT EXECUTED 20069b8: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 20069bc: d0 00 62 10 ld [ %g1 + 0x210 ], %o0 ! 2069610 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 20069c0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 20069c4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20069c8: 40 00 19 04 call 200cdd8 <_Protected_heap_Get_block_size> <== NOT EXECUTED 20069cc: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 20069d0: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED 20069d4: d8 07 bf fc ld [ %fp + -4 ], %o4 <== NOT EXECUTED 20069d8: 82 10 63 68 or %g1, 0x368, %g1 <== NOT EXECUTED 20069dc: c4 18 60 20 ldd [ %g1 + 0x20 ], %g2 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20069e0: da 00 60 2c ld [ %g1 + 0x2c ], %o5 <== NOT EXECUTED if (current_depth > s->max_depth) 20069e4: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 20069e8: 86 80 c0 0c addcc %g3, %o4, %g3 <== NOT EXECUTED 20069ec: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 20069f0: c4 38 60 20 std %g2, [ %g1 + 0x20 ] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20069f4: 84 20 c0 0d sub %g3, %o5, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20069f8: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 20069fc: 38 80 00 02 bgu,a 2006a04 <== NOT EXECUTED 2006a00: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 2006a04: 81 c7 e0 08 ret <== NOT EXECUTED 2006a08: 81 e8 00 00 restore <== NOT EXECUTED 02006a0c : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 2006a0c: 03 00 81 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED 2006a10: c0 20 63 68 clr [ %g1 + 0x368 ] ! 206d768 <== NOT EXECUTED 2006a14: c0 20 63 6c clr [ %g1 + 0x36c ] <== NOT EXECUTED 2006a18: 82 10 63 68 or %g1, 0x368, %g1 <== NOT EXECUTED 2006a1c: c0 20 60 28 clr [ %g1 + 0x28 ] <== NOT EXECUTED 2006a20: c0 20 60 2c clr [ %g1 + 0x2c ] <== NOT EXECUTED 2006a24: c0 20 60 08 clr [ %g1 + 8 ] <== NOT EXECUTED 2006a28: c0 20 60 0c clr [ %g1 + 0xc ] <== NOT EXECUTED 2006a2c: c0 20 60 10 clr [ %g1 + 0x10 ] <== NOT EXECUTED 2006a30: c0 20 60 14 clr [ %g1 + 0x14 ] <== NOT EXECUTED 2006a34: c0 20 60 18 clr [ %g1 + 0x18 ] <== NOT EXECUTED 2006a38: c0 20 60 1c clr [ %g1 + 0x1c ] <== NOT EXECUTED 2006a3c: c0 20 60 20 clr [ %g1 + 0x20 ] <== NOT EXECUTED } 2006a40: 81 c3 e0 08 retl <== NOT EXECUTED 2006a44: c0 20 60 24 clr [ %g1 + 0x24 ] <== NOT EXECUTED 020109e8 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 20109e8: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 20109ec: a0 96 20 00 orcc %i0, 0, %l0 20109f0: 02 80 00 20 be 2010a70 20109f4: 03 00 80 8a sethi %hi(0x2022800), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 20109f8: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 20229c0 <_System_state_Current> 20109fc: 80 a0 60 03 cmp %g1, 3 2010a00: 02 80 00 17 be 2010a5c 2010a04: c0 24 00 00 clr [ %l0 ] /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 2010a08: 7f ff cc ad call 2003cbc 2010a0c: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 2010a10: 03 00 80 87 sethi %hi(0x2021c00), %g1 2010a14: d0 00 60 60 ld [ %g1 + 0x60 ], %o0 ! 2021c60 2010a18: 94 10 00 19 mov %i1, %o2 2010a1c: 92 10 00 1a mov %i2, %o1 2010a20: 7f ff e3 13 call 200966c <_Protected_heap_Allocate_aligned_with_boundary> 2010a24: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 2010a28: b2 92 20 00 orcc %o0, 0, %i1 2010a2c: 02 80 00 12 be 2010a74 2010a30: 03 00 80 88 sethi %hi(0x2022000), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 2010a34: c2 00 62 e8 ld [ %g1 + 0x2e8 ], %g1 ! 20222e8 2010a38: 80 a0 60 00 cmp %g1, 0 2010a3c: 22 80 00 06 be,a 2010a54 2010a40: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 2010a44: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2010a48: 9f c0 40 00 call %g1 <== NOT EXECUTED 2010a4c: 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; 2010a50: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 2010a54: 81 c7 e0 08 ret 2010a58: 91 e8 20 00 restore %g0, 0, %o0 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 2010a5c: 7f ff cc 7f call 2003c58 2010a60: 01 00 00 00 nop 2010a64: 80 8a 20 ff btst 0xff, %o0 2010a68: 12 bf ff e8 bne 2010a08 2010a6c: 01 00 00 00 nop if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 2010a70: b0 10 20 16 mov 0x16, %i0 ! 16 } 2010a74: 81 c7 e0 08 ret 2010a78: 81 e8 00 00 restore 0200799c : void rtems_panic( const char *printf_format, ... ) { 200799c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 20079a0: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 20079a4: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 20079a8: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 20079ac: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20079b0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 20079b4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 20079b8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 20079bc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20079c0: 7f ff ff 8a call 20077e8 <== NOT EXECUTED 20079c4: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 20079c8: 81 c7 e0 08 ret <== NOT EXECUTED 20079cc: 81 e8 00 00 restore <== NOT EXECUTED 0200d244 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 200d244: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 200d248: 03 00 80 70 sethi %hi(0x201c000), %g1 200d24c: c2 08 61 14 ldub [ %g1 + 0x114 ], %g1 ! 201c114 200d250: 80 a0 60 00 cmp %g1, 0 200d254: 02 80 00 13 be 200d2a0 200d258: 19 00 80 70 sethi %hi(0x201c000), %o4 return; if (rtems_pipe_semaphore) 200d25c: c2 03 22 70 ld [ %o4 + 0x270 ], %g1 ! 201c270 <== NOT EXECUTED 200d260: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d264: 12 80 00 0f bne 200d2a0 <== NOT EXECUTED 200d268: 98 13 22 70 or %o4, 0x270, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 200d26c: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 200d270: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200d274: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 200d278: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 200d27c: 7f ff e1 77 call 2005858 <== NOT EXECUTED 200d280: 96 10 20 00 clr %o3 <== NOT EXECUTED rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) 200d284: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d288: 12 80 00 08 bne 200d2a8 <== NOT EXECUTED 200d28c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 200d290: 7f ff e0 4e call 20053c8 <== NOT EXECUTED 200d294: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 200d298: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200d29c: d0 30 62 76 sth %o0, [ %g1 + 0x276 ] ! 201c276 <== NOT EXECUTED 200d2a0: 81 c7 e0 08 ret 200d2a4: 81 e8 00 00 restore sc = rtems_semaphore_create( rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 200d2a8: 7f ff e3 bc call 2006198 <== NOT EXECUTED 200d2ac: 01 00 00 00 nop 200d2b0: 01 00 00 00 nop 0200448c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 200448c: 9d e3 bf a0 save %sp, -96, %sp Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2004490: 21 00 81 b6 sethi %hi(0x206d800), %l0 2004494: c2 04 21 f0 ld [ %l0 + 0x1f0 ], %g1 ! 206d9f0 <_Thread_Executing> ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 2004498: d0 00 60 c8 ld [ %g1 + 0xc8 ], %o0 200449c: 80 a7 80 08 cmp %fp, %o0 20044a0: 0a 80 00 06 bcs 20044b8 20044a4: a2 10 20 00 clr %l1 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 20044a8: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 20044ac: 82 02 00 01 add %o0, %g1, %g1 20044b0: 80 a0 40 1e cmp %g1, %fp 20044b4: a2 60 3f ff subx %g0, -1, %l1 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 20044b8: 03 00 81 aa sethi %hi(0x206a800), %g1 20044bc: c4 00 63 60 ld [ %g1 + 0x360 ], %g2 ! 206ab60 20044c0: 80 a0 a0 00 cmp %g2, 0 20044c4: 02 80 00 09 be 20044e8 20044c8: 82 10 20 01 mov 1, %g1 pattern_ok = (!memcmp( 20044cc: 90 02 20 08 add %o0, 8, %o0 20044d0: 13 00 81 b5 sethi %hi(0x206d400), %o1 20044d4: 94 10 20 10 mov 0x10, %o2 20044d8: 40 01 0c 5d call 204764c 20044dc: 92 12 63 38 or %o1, 0x338, %o1 20044e0: 80 a0 00 08 cmp %g0, %o0 20044e4: 82 60 3f ff subx %g0, -1, %g1 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 20044e8: 80 8c 60 ff btst 0xff, %l1 20044ec: 02 80 00 05 be 2004500 20044f0: 92 08 60 ff and %g1, 0xff, %o1 20044f4: 92 88 60 ff andcc %g1, 0xff, %o1 20044f8: 12 80 00 05 bne 200450c 20044fc: b0 10 20 00 clr %i0 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 2004500: d0 04 21 f0 ld [ %l0 + 0x1f0 ], %o0 <== NOT EXECUTED 2004504: 7f ff ff b8 call 20043e4 <== NOT EXECUTED 2004508: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 200450c: 81 c7 e0 08 ret 2004510: 81 e8 00 00 restore 020043c8 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 20043c8: 13 00 80 1d sethi %hi(0x2007400), %o1 <== NOT EXECUTED 20043cc: 90 10 20 00 clr %o0 <== NOT EXECUTED 20043d0: 92 12 61 8c or %o1, 0x18c, %o1 <== NOT EXECUTED 20043d4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20043d8: 7f ff ff e6 call 2004370 <== NOT EXECUTED 20043dc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20043e0: 01 00 00 00 nop 02004370 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2004370: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED print_context = context; 2004374: 23 00 81 aa sethi %hi(0x206a800), %l1 <== NOT EXECUTED print_handler = print; 2004378: 21 00 81 aa sethi %hi(0x206a800), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 200437c: f0 24 63 64 st %i0, [ %l1 + 0x364 ] <== NOT EXECUTED print_handler = print; 2004380: f2 24 23 68 st %i1, [ %l0 + 0x368 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 2004384: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004388: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 200438c: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004390: 92 12 63 88 or %o1, 0x388, %o1 ! 205f788 <== NOT EXECUTED (*print)( context, 2004394: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004398: 13 00 81 7d sethi %hi(0x205f400), %o1 <== NOT EXECUTED 200439c: 9f c6 40 00 call %i1 <== NOT EXECUTED 20043a0: 92 12 63 a0 or %o1, 0x3a0, %o1 ! 205f7a0 <== 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 ); 20043a4: 11 00 80 10 sethi %hi(0x2004000), %o0 <== NOT EXECUTED 20043a8: 40 00 1f ff call 200c3a4 <== NOT EXECUTED 20043ac: 90 12 21 e4 or %o0, 0x1e4, %o0 ! 20041e4 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 20043b0: 7f ff ff 8d call 20041e4 <== NOT EXECUTED 20043b4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 20043b8: c0 24 63 64 clr [ %l1 + 0x364 ] <== NOT EXECUTED print_handler = NULL; 20043bc: c0 24 23 68 clr [ %l0 + 0x368 ] <== NOT EXECUTED } 20043c0: 81 c7 e0 08 ret <== NOT EXECUTED 20043c4: 81 e8 00 00 restore <== NOT EXECUTED 02004514 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 2004514: 9d e3 bf a0 save %sp, -96, %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; 2004518: c2 06 20 c8 ld [ %i0 + 0xc8 ], %g1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 200451c: 80 a7 80 01 cmp %fp, %g1 2004520: 0a 80 00 07 bcs 200453c 2004524: 90 00 60 08 add %g1, 8, %o0 void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; 2004528: c4 06 20 c4 ld [ %i0 + 0xc4 ], %g2 200452c: 82 00 40 02 add %g1, %g2, %g1 2004530: 80 a7 80 01 cmp %fp, %g1 2004534: 28 80 00 0b bleu,a 2004560 2004538: 13 00 81 b5 sethi %hi(0x206d400), %o1 /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 200453c: 13 00 81 b5 sethi %hi(0x206d400), %o1 <== NOT EXECUTED 2004540: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 2004544: 40 01 0c 42 call 204764c <== NOT EXECUTED 2004548: 92 12 63 38 or %o1, 0x338, %o1 <== NOT EXECUTED 200454c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 2004550: b2 60 3f ff subx %g0, -1, %i1 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 2004554: b2 0e 60 01 and %i1, 1, %i1 <== NOT EXECUTED 2004558: 7f ff ff a3 call 20043e4 <== NOT EXECUTED 200455c: 81 e8 00 00 restore <== NOT EXECUTED /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 2004560: 94 10 20 10 mov 0x10, %o2 2004564: 92 12 63 38 or %o1, 0x338, %o1 2004568: 40 01 0c 39 call 204764c 200456c: b2 10 20 00 clr %i1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 2004570: 80 a2 20 00 cmp %o0, 0 2004574: 12 bf ff f9 bne 2004558 2004578: b2 0e 60 01 and %i1, 1, %i1 200457c: 81 c7 e0 08 ret 2004580: 81 e8 00 00 restore 0200c7ac : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c7ac: 9d e3 bf 90 save %sp, -112, %sp 200c7b0: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c7b4: 80 a6 60 00 cmp %i1, 0 200c7b8: 02 80 00 18 be 200c818 200c7bc: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c7c0: 40 00 0e 86 call 20101d8 <__errno> 200c7c4: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200c7c8: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200c7cc: c0 22 00 00 clr [ %o0 ] *n = 0; 200c7d0: c0 26 40 00 clr [ %i1 ] 200c7d4: c0 26 60 04 clr [ %i1 + 4 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200c7d8: 40 00 1a 03 call 2012fe4 200c7dc: 90 10 00 10 mov %l0, %o0 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c7e0: 80 a6 a0 00 cmp %i2, 0 200c7e4: 02 80 00 03 be 200c7f0 200c7e8: c2 07 bf fc ld [ %fp + -4 ], %g1 *endptr = end; 200c7ec: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c7f0: 80 a0 40 10 cmp %g1, %l0 200c7f4: 02 80 00 09 be 200c818 200c7f8: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200c7fc: 03 00 80 7b sethi %hi(0x201ec00), %g1 200c800: d1 18 62 d0 ldd [ %g1 + 0x2d0 ], %f8 ! 201eed0 <_CPU_Trap_slot_template+0x14> 200c804: 81 a8 0a c8 fcmped %f0, %f8 200c808: 01 00 00 00 nop 200c80c: 0d 80 00 05 fbg 200c820 200c810: b0 10 20 00 clr %i0 ! 0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c814: c1 3e 40 00 std %f0, [ %i1 ] return RTEMS_SUCCESSFUL; } 200c818: 81 c7 e0 08 ret 200c81c: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200c820: c1 27 bf f4 st %f0, [ %fp + -12 ] 200c824: 40 00 0e 6d call 20101d8 <__errno> 200c828: c3 27 bf f0 st %f1, [ %fp + -16 ] 200c82c: c2 02 00 00 ld [ %o0 ], %g1 200c830: b0 10 20 0a mov 0xa, %i0 200c834: 80 a0 60 22 cmp %g1, 0x22 200c838: c1 07 bf f4 ld [ %fp + -12 ], %f0 200c83c: 02 bf ff f7 be 200c818 200c840: c3 07 bf f0 ld [ %fp + -16 ], %f1 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c844: c1 3e 40 00 std %f0, [ %i1 ] <== NOT EXECUTED 200c848: 81 c7 e0 08 ret <== NOT EXECUTED 200c84c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200c850 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c850: 9d e3 bf 90 save %sp, -112, %sp 200c854: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c858: 80 a6 60 00 cmp %i1, 0 200c85c: 02 80 00 17 be 200c8b8 200c860: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c864: 40 00 0e 5d call 20101d8 <__errno> 200c868: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200c86c: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200c870: c0 22 00 00 clr [ %o0 ] *n = 0; 200c874: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200c878: 40 00 19 c6 call 2012f90 200c87c: 90 10 00 10 mov %l0, %o0 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c880: 80 a6 a0 00 cmp %i2, 0 200c884: 02 80 00 03 be 200c890 200c888: c2 07 bf fc ld [ %fp + -4 ], %g1 *endptr = end; 200c88c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c890: 80 a0 40 10 cmp %g1, %l0 200c894: 02 80 00 09 be 200c8b8 200c898: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200c89c: 03 00 80 7b sethi %hi(0x201ec00), %g1 200c8a0: d1 00 62 d8 ld [ %g1 + 0x2d8 ], %f8 ! 201eed8 <_CPU_Trap_slot_template+0x1c> 200c8a4: 81 a8 0a a8 fcmpes %f0, %f8 200c8a8: 01 00 00 00 nop 200c8ac: 0d 80 00 05 fbg 200c8c0 200c8b0: b0 10 20 00 clr %i0 ! 0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c8b4: c1 26 40 00 st %f0, [ %i1 ] return RTEMS_SUCCESSFUL; } 200c8b8: 81 c7 e0 08 ret 200c8bc: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200c8c0: 40 00 0e 46 call 20101d8 <__errno> 200c8c4: c1 27 bf f4 st %f0, [ %fp + -12 ] 200c8c8: c2 02 00 00 ld [ %o0 ], %g1 200c8cc: b0 10 20 0a mov 0xa, %i0 200c8d0: 80 a0 60 22 cmp %g1, 0x22 200c8d4: 02 bf ff f9 be 200c8b8 200c8d8: c1 07 bf f4 ld [ %fp + -12 ], %f0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c8dc: c1 26 40 00 st %f0, [ %i1 ] <== NOT EXECUTED 200c8e0: 81 c7 e0 08 ret <== NOT EXECUTED 200c8e4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201f2bc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201f2bc: 9d e3 bf 98 save %sp, -104, %sp 201f2c0: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201f2c4: 80 a6 60 00 cmp %i1, 0 201f2c8: 02 80 00 18 be 201f328 201f2cc: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201f2d0: 40 00 94 3d call 20443c4 <__errno> 201f2d4: 01 00 00 00 nop 201f2d8: c0 22 00 00 clr [ %o0 ] *n = 0; 201f2dc: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 201f2e0: 94 10 00 1b mov %i3, %o2 201f2e4: 90 10 00 10 mov %l0, %o0 201f2e8: 40 00 b3 ed call 204c29c 201f2ec: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201f2f0: 80 a6 a0 00 cmp %i2, 0 201f2f4: 02 80 00 18 be 201f354 201f2f8: a2 10 00 08 mov %o0, %l1 *endptr = end; 201f2fc: c2 07 bf fc ld [ %fp + -4 ], %g1 201f300: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201f304: 80 a0 40 10 cmp %g1, %l0 201f308: 02 80 00 08 be 201f328 201f30c: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 201f310: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 201f314: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 201f318: 80 a4 40 01 cmp %l1, %g1 201f31c: 02 80 00 05 be 201f330 201f320: b0 10 20 00 clr %i0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201f324: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; } 201f328: 81 c7 e0 08 ret 201f32c: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 201f330: 40 00 94 25 call 20443c4 <__errno> 201f334: b0 10 20 0a mov 0xa, %i0 201f338: c2 02 00 00 ld [ %o0 ], %g1 201f33c: 80 a0 60 22 cmp %g1, 0x22 201f340: 02 bf ff fa be 201f328 201f344: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201f348: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201f34c: 81 c7 e0 08 ret <== NOT EXECUTED 201f350: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201f354: 10 bf ff ec b 201f304 201f358: c2 07 bf fc ld [ %fp + -4 ], %g1 0200ca54 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200ca54: 9d e3 bf 98 save %sp, -104, %sp 200ca58: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200ca5c: 80 a6 60 00 cmp %i1, 0 200ca60: 02 80 00 24 be 200caf0 200ca64: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200ca68: 40 00 0d dc call 20101d8 <__errno> 200ca6c: 01 00 00 00 nop #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200ca70: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200ca74: c0 22 00 00 clr [ %o0 ] *n = 0; 200ca78: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200ca7c: 90 10 00 10 mov %l0, %o0 200ca80: 40 00 19 e2 call 2013208 200ca84: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200ca88: 80 a6 a0 00 cmp %i2, 0 200ca8c: 02 80 00 1b be 200caf8 200ca90: a2 10 00 08 mov %o0, %l1 *endptr = end; 200ca94: c2 07 bf fc ld [ %fp + -4 ], %g1 200ca98: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200ca9c: 80 a0 40 10 cmp %g1, %l0 200caa0: 02 80 00 14 be 200caf0 200caa4: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200caa8: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200caac: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200cab0: 80 a4 40 01 cmp %l1, %g1 200cab4: 02 80 00 08 be 200cad4 200cab8: 03 20 00 00 sethi %hi(0x80000000), %g1 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 200cabc: 80 a4 40 01 cmp %l1, %g1 200cac0: 02 80 00 05 be 200cad4 200cac4: 01 00 00 00 nop return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200cac8: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; 200cacc: 81 c7 e0 08 ret 200cad0: 91 e8 20 00 restore %g0, 0, %o0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 200cad4: 40 00 0d c1 call 20101d8 <__errno> 200cad8: 01 00 00 00 nop 200cadc: c2 02 00 00 ld [ %o0 ], %g1 200cae0: 80 a0 60 22 cmp %g1, 0x22 200cae4: 32 bf ff fa bne,a 200cacc 200cae8: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 200caec: b0 10 20 0a mov 0xa, %i0 } 200caf0: 81 c7 e0 08 ret 200caf4: 81 e8 00 00 restore 200caf8: 10 bf ff e9 b 200ca9c 200cafc: c2 07 bf fc ld [ %fp + -4 ], %g1 0200c988 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c988: 9d e3 bf 90 save %sp, -112, %sp 200c98c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c990: 80 a6 60 00 cmp %i1, 0 200c994: 02 80 00 29 be 200ca38 200c998: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c99c: 40 00 0e 0f call 20101d8 <__errno> 200c9a0: 01 00 00 00 nop #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200c9a4: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200c9a8: c0 22 00 00 clr [ %o0 ] *n = 0; 200c9ac: c0 26 40 00 clr [ %i1 ] 200c9b0: c0 26 60 04 clr [ %i1 + 4 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200c9b4: 90 10 00 10 mov %l0, %o0 200c9b8: 40 00 1a 1e call 2013230 200c9bc: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c9c0: 80 a6 a0 00 cmp %i2, 0 200c9c4: 02 80 00 22 be 200ca4c 200c9c8: a2 10 00 08 mov %o0, %l1 *endptr = end; 200c9cc: c2 07 bf fc ld [ %fp + -4 ], %g1 200c9d0: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c9d4: 80 a0 40 10 cmp %g1, %l0 200c9d8: 02 80 00 18 be 200ca38 200c9dc: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200c9e0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200c9e4: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200c9e8: 80 a4 40 01 cmp %l1, %g1 200c9ec: 02 80 00 15 be 200ca40 200c9f0: 80 a2 7f ff cmp %o1, -1 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 200c9f4: 03 20 00 00 sethi %hi(0x80000000), %g1 200c9f8: 80 a4 40 01 cmp %l1, %g1 200c9fc: 02 80 00 06 be 200ca14 200ca00: 80 a2 60 00 cmp %o1, 0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200ca04: d2 26 60 04 st %o1, [ %i1 + 4 ] 200ca08: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; 200ca0c: 81 c7 e0 08 ret 200ca10: 91 e8 20 00 restore %g0, 0, %o0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 200ca14: 32 bf ff fd bne,a 200ca08 200ca18: d2 26 60 04 st %o1, [ %i1 + 4 ] <== NOT EXECUTED 200ca1c: 40 00 0d ef call 20101d8 <__errno> 200ca20: d2 27 bf f4 st %o1, [ %fp + -12 ] 200ca24: c2 02 00 00 ld [ %o0 ], %g1 200ca28: 80 a0 60 22 cmp %g1, 0x22 200ca2c: 12 bf ff f6 bne 200ca04 200ca30: d2 07 bf f4 ld [ %fp + -12 ], %o1 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 200ca34: b0 10 20 0a mov 0xa, %i0 } 200ca38: 81 c7 e0 08 ret 200ca3c: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200ca40: 12 bf ff ee bne 200c9f8 200ca44: 03 20 00 00 sethi %hi(0x80000000), %g1 200ca48: 30 bf ff f5 b,a 200ca1c 200ca4c: 10 bf ff e2 b 200c9d4 200ca50: c2 07 bf fc ld [ %fp + -4 ], %g1 0201f35c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201f35c: 9d e3 bf 98 save %sp, -104, %sp 201f360: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201f364: 80 a6 60 00 cmp %i1, 0 201f368: 02 80 00 16 be 201f3c0 201f36c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201f370: 40 00 94 15 call 20443c4 <__errno> 201f374: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 201f378: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201f37c: c0 22 00 00 clr [ %o0 ] *n = 0; 201f380: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 201f384: 90 10 00 10 mov %l0, %o0 201f388: 40 00 b4 fb call 204c774 201f38c: 94 10 20 10 mov 0x10, %o2 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201f390: 80 a6 a0 00 cmp %i2, 0 201f394: 02 80 00 16 be 201f3ec 201f398: a2 10 00 08 mov %o0, %l1 *endptr = end; 201f39c: c2 07 bf fc ld [ %fp + -4 ], %g1 201f3a0: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201f3a4: 80 a0 40 10 cmp %g1, %l0 201f3a8: 02 80 00 06 be 201f3c0 201f3ac: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 201f3b0: 80 a4 7f ff cmp %l1, -1 201f3b4: 02 80 00 05 be 201f3c8 201f3b8: b0 10 20 00 clr %i0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201f3bc: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; } 201f3c0: 81 c7 e0 08 ret 201f3c4: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 201f3c8: 40 00 93 ff call 20443c4 <__errno> <== NOT EXECUTED 201f3cc: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 201f3d0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201f3d4: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 201f3d8: 02 bf ff fa be 201f3c0 <== NOT EXECUTED 201f3dc: 01 00 00 00 nop <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201f3e0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201f3e4: 81 c7 e0 08 ret <== NOT EXECUTED 201f3e8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201f3ec: 10 bf ff ee b 201f3a4 201f3f0: c2 07 bf fc ld [ %fp + -4 ], %g1 0200cbf8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200cbf8: 9d e3 bf 98 save %sp, -104, %sp 200cbfc: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200cc00: 80 a6 60 00 cmp %i1, 0 200cc04: 02 80 00 16 be 200cc5c 200cc08: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200cc0c: 40 00 0d 73 call 20101d8 <__errno> 200cc10: 01 00 00 00 nop 200cc14: c0 22 00 00 clr [ %o0 ] *n = 0; 200cc18: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200cc1c: 94 10 00 1b mov %i3, %o2 200cc20: 90 10 00 10 mov %l0, %o0 200cc24: 40 00 1a af call 20136e0 200cc28: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200cc2c: 80 a6 a0 00 cmp %i2, 0 200cc30: 02 80 00 16 be 200cc88 200cc34: a2 10 00 08 mov %o0, %l1 *endptr = end; 200cc38: c2 07 bf fc ld [ %fp + -4 ], %g1 200cc3c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200cc40: 80 a0 40 10 cmp %g1, %l0 200cc44: 02 80 00 06 be 200cc5c 200cc48: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200cc4c: 80 a4 7f ff cmp %l1, -1 200cc50: 02 80 00 05 be 200cc64 200cc54: b0 10 20 00 clr %i0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200cc58: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; } 200cc5c: 81 c7 e0 08 ret 200cc60: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200cc64: 40 00 0d 5d call 20101d8 <__errno> 200cc68: b0 10 20 0a mov 0xa, %i0 200cc6c: c2 02 00 00 ld [ %o0 ], %g1 200cc70: 80 a0 60 22 cmp %g1, 0x22 200cc74: 02 bf ff fa be 200cc5c 200cc78: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200cc7c: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 200cc80: 81 c7 e0 08 ret <== NOT EXECUTED 200cc84: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200cc88: 10 bf ff ee b 200cc40 200cc8c: c2 07 bf fc ld [ %fp + -4 ], %g1 0201f454 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201f454: 9d e3 bf 98 save %sp, -104, %sp 201f458: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201f45c: 80 a6 60 00 cmp %i1, 0 201f460: 02 80 00 16 be 201f4b8 201f464: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201f468: 40 00 93 d7 call 20443c4 <__errno> 201f46c: 01 00 00 00 nop #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 201f470: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201f474: c0 22 00 00 clr [ %o0 ] *n = 0; 201f478: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 201f47c: 90 10 00 10 mov %l0, %o0 201f480: 40 00 b4 bd call 204c774 201f484: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201f488: 80 a6 a0 00 cmp %i2, 0 201f48c: 02 80 00 16 be 201f4e4 201f490: a2 10 00 08 mov %o0, %l1 *endptr = end; 201f494: c2 07 bf fc ld [ %fp + -4 ], %g1 201f498: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201f49c: 80 a0 40 10 cmp %g1, %l0 201f4a0: 02 80 00 06 be 201f4b8 201f4a4: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 201f4a8: 80 a4 7f ff cmp %l1, -1 201f4ac: 02 80 00 05 be 201f4c0 201f4b0: b0 10 20 00 clr %i0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201f4b4: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; } 201f4b8: 81 c7 e0 08 ret 201f4bc: 81 e8 00 00 restore return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 201f4c0: 40 00 93 c1 call 20443c4 <__errno> 201f4c4: b0 10 20 0a mov 0xa, %i0 201f4c8: c2 02 00 00 ld [ %o0 ], %g1 201f4cc: 80 a0 60 22 cmp %g1, 0x22 201f4d0: 02 bf ff fa be 201f4b8 201f4d4: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201f4d8: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201f4dc: 81 c7 e0 08 ret <== NOT EXECUTED 201f4e0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201f4e4: 10 bf ff ee b 201f49c 201f4e8: c2 07 bf fc ld [ %fp + -4 ], %g1 0200cc90 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200cc90: 9d e3 bf 90 save %sp, -112, %sp 200cc94: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200cc98: 80 a6 60 00 cmp %i1, 0 200cc9c: 02 80 00 23 be 200cd28 200cca0: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200cca4: 40 00 0d 4d call 20101d8 <__errno> 200cca8: 01 00 00 00 nop #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200ccac: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200ccb0: c0 22 00 00 clr [ %o0 ] *n = 0; 200ccb4: c0 26 40 00 clr [ %i1 ] 200ccb8: c0 26 60 04 clr [ %i1 + 4 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); 200ccbc: 90 10 00 10 mov %l0, %o0 200ccc0: 40 00 1a 92 call 2013708 200ccc4: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200ccc8: 80 a6 a0 00 cmp %i2, 0 200cccc: 02 80 00 19 be 200cd30 200ccd0: a2 10 00 08 mov %o0, %l1 *endptr = end; 200ccd4: c2 07 bf fc ld [ %fp + -4 ], %g1 200ccd8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200ccdc: 80 a0 40 10 cmp %g1, %l0 200cce0: 02 80 00 12 be 200cd28 200cce4: b0 10 20 0b mov 0xb, %i0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200cce8: 80 a4 7f ff cmp %l1, -1 200ccec: 02 80 00 06 be 200cd04 200ccf0: 80 a2 7f ff cmp %o1, -1 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200ccf4: d2 26 60 04 st %o1, [ %i1 + 4 ] 200ccf8: e2 26 40 00 st %l1, [ %i1 ] return RTEMS_SUCCESSFUL; } 200ccfc: 81 c7 e0 08 ret 200cd00: 91 e8 20 00 restore %g0, 0, %o0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 200cd04: 32 bf ff fd bne,a 200ccf8 200cd08: d2 26 60 04 st %o1, [ %i1 + 4 ] <== NOT EXECUTED 200cd0c: 40 00 0d 33 call 20101d8 <__errno> 200cd10: d2 27 bf f4 st %o1, [ %fp + -12 ] 200cd14: c2 02 00 00 ld [ %o0 ], %g1 200cd18: b0 10 20 0a mov 0xa, %i0 200cd1c: 80 a0 60 22 cmp %g1, 0x22 200cd20: 12 bf ff f5 bne 200ccf4 200cd24: d2 07 bf f4 ld [ %fp + -12 ], %o1 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 200cd28: 81 c7 e0 08 ret 200cd2c: 81 e8 00 00 restore 200cd30: 10 bf ff eb b 200ccdc 200cd34: c2 07 bf fc ld [ %fp + -4 ], %g1 02004650 : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 2004650: 82 10 00 08 mov %o0, %g1 int baud_index; switch (termios_baud) { 2004654: 80 a2 20 09 cmp %o0, 9 2004658: 02 80 00 2d be 200470c 200465c: 90 10 20 09 mov 9, %o0 2004660: 80 a0 60 09 cmp %g1, 9 2004664: 04 80 00 1a ble 20046cc 2004668: 80 a0 60 04 cmp %g1, 4 200466c: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 2004670: 02 80 00 27 be 200470c <== NOT EXECUTED 2004674: 90 10 20 0e mov 0xe, %o0 <== NOT EXECUTED 2004678: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 200467c: 04 80 00 26 ble 2004714 <== NOT EXECUTED 2004680: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 2004684: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED 2004688: 86 10 a0 02 or %g2, 2, %g3 ! 1002 <== NOT EXECUTED 200468c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004690: 02 80 00 1f be 200470c <== NOT EXECUTED 2004694: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED 2004698: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 200469c: 04 80 00 38 ble 200477c <== NOT EXECUTED 20046a0: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED 20046a4: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED 20046a8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20046ac: 02 80 00 18 be 200470c <== NOT EXECUTED 20046b0: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED 20046b4: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 20046b8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20046bc: 02 80 00 14 be 200470c <== NOT EXECUTED 20046c0: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 20046c4: 81 c3 e0 08 retl 20046c8: 90 10 3f ff mov -1, %o0 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 20046cc: 02 80 00 10 be 200470c 20046d0: 90 10 20 04 mov 4, %o0 20046d4: 80 a0 60 04 cmp %g1, 4 20046d8: 14 80 00 1c bg 2004748 20046dc: 80 a0 60 06 cmp %g1, 6 20046e0: 80 a0 60 01 cmp %g1, 1 20046e4: 02 80 00 0a be 200470c 20046e8: 90 10 20 01 mov 1, %o0 20046ec: 80 a0 60 01 cmp %g1, 1 20046f0: 04 80 00 2b ble 200479c 20046f4: 80 a0 60 02 cmp %g1, 2 20046f8: 02 80 00 05 be 200470c <== NOT EXECUTED 20046fc: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2004700: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2004704: 12 bf ff f0 bne 20046c4 <== NOT EXECUTED 2004708: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED 200470c: 81 c3 e0 08 retl <== NOT EXECUTED 2004710: 01 00 00 00 nop <== NOT EXECUTED 2004714: 02 bf ff fe be 200470c <== NOT EXECUTED 2004718: 90 10 20 0b mov 0xb, %o0 ! b <== NOT EXECUTED 200471c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 2004720: 06 bf ff fb bl 200470c <== NOT EXECUTED 2004724: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 2004728: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED 200472c: 02 bf ff f8 be 200470c <== NOT EXECUTED 2004730: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED 2004734: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 2004738: 12 bf ff e3 bne 20046c4 <== NOT EXECUTED 200473c: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED 2004740: 81 c3 e0 08 retl <== NOT EXECUTED 2004744: 01 00 00 00 nop <== NOT EXECUTED 2004748: 02 bf ff f1 be 200470c <== NOT EXECUTED 200474c: 90 10 20 06 mov 6, %o0 ! 6 <== NOT EXECUTED 2004750: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2004754: 06 bf ff ee bl 200470c <== NOT EXECUTED 2004758: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED 200475c: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED 2004760: 02 bf ff eb be 200470c <== NOT EXECUTED 2004764: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED 2004768: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED 200476c: 12 bf ff d6 bne 20046c4 <== NOT EXECUTED 2004770: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED 2004774: 81 c3 e0 08 retl <== NOT EXECUTED 2004778: 01 00 00 00 nop <== NOT EXECUTED 200477c: 02 bf ff e4 be 200470c <== NOT EXECUTED 2004780: 90 10 20 0f mov 0xf, %o0 ! f <== NOT EXECUTED 2004784: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED 2004788: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200478c: 12 bf ff ce bne 20046c4 <== NOT EXECUTED 2004790: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED 2004794: 81 c3 e0 08 retl <== NOT EXECUTED 2004798: 01 00 00 00 nop <== NOT EXECUTED 200479c: 80 a0 60 00 cmp %g1, 0 20047a0: 12 bf ff c9 bne 20046c4 20047a4: 90 10 20 00 clr %o0 case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 20047a8: 81 c3 e0 08 retl <== NOT EXECUTED 20047ac: 01 00 00 00 nop 020030cc : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 20030cc: 03 00 80 6e sethi %hi(0x201b800), %g1 <== NOT EXECUTED 20030d0: d0 20 63 a4 st %o0, [ %g1 + 0x3a4 ] ! 201bba4 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 20030d4: 03 00 80 6e sethi %hi(0x201b800), %g1 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 20030d8: 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; 20030dc: d2 20 63 a8 st %o1, [ %g1 + 0x3a8 ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 20030e0: 03 00 80 6e sethi %hi(0x201b800), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 20030e4: 81 c3 e0 08 retl <== NOT EXECUTED 20030e8: d4 20 63 ac st %o2, [ %g1 + 0x3ac ] ! 201bbac <== NOT EXECUTED 02004800 : } } rtems_status_code rtems_termios_close (void *arg) { 2004800: 9d e3 bf a0 save %sp, -96, %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); 2004804: 23 00 80 71 sethi %hi(0x201c400), %l1 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004808: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 200480c: d0 04 60 1c ld [ %l1 + 0x1c ], %o0 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004810: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004814: 92 10 20 00 clr %o1 2004818: 40 00 04 b1 call 2005adc 200481c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2004820: 80 a2 20 00 cmp %o0, 0 2004824: 12 80 00 6e bne 20049dc 2004828: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 200482c: c2 04 20 08 ld [ %l0 + 8 ], %g1 2004830: 82 00 7f ff add %g1, -1, %g1 2004834: 80 a0 60 00 cmp %g1, 0 2004838: 12 80 00 3a bne 2004920 200483c: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 2004840: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2004844: 03 00 80 70 sethi %hi(0x201c000), %g1 2004848: 85 28 a0 05 sll %g2, 5, %g2 200484c: 82 10 61 64 or %g1, 0x164, %g1 2004850: 82 00 40 02 add %g1, %g2, %g1 2004854: c2 00 60 04 ld [ %g1 + 4 ], %g1 2004858: 80 a0 60 00 cmp %g1, 0 200485c: 22 80 00 48 be,a 200497c 2004860: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004864: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004868: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 200486c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 2004870: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2004874: 22 80 00 4f be,a 20049b0 <== NOT EXECUTED 2004878: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 200487c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 2004880: 80 a0 60 00 cmp %g1, 0 2004884: 22 80 00 07 be,a 20048a0 2004888: c2 04 00 00 ld [ %l0 ], %g1 (*tty->device.lastClose)(tty->major, tty->minor, arg); 200488c: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 2004890: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 2004894: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004898: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 200489c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 20048a0: 80 a0 60 00 cmp %g1, 0 20048a4: 22 80 00 27 be,a 2004940 20048a8: c2 04 20 04 ld [ %l0 + 4 ], %g1 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 20048ac: c4 04 20 04 ld [ %l0 + 4 ], %g2 20048b0: c4 20 60 04 st %g2, [ %g1 + 4 ] } if (tty->back == NULL) { 20048b4: c4 04 20 04 ld [ %l0 + 4 ], %g2 20048b8: 80 a0 a0 00 cmp %g2, 0 20048bc: 22 80 00 2b be,a 2004968 20048c0: 05 00 80 71 sethi %hi(0x201c400), %g2 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 20048c4: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 20048c8: 40 00 04 58 call 2005a28 20048cc: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 20048d0: 40 00 04 56 call 2005a28 20048d4: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 20048d8: 40 00 04 54 call 2005a28 20048dc: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 20048e0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 20048e4: 80 a0 60 00 cmp %g1, 0 20048e8: 02 80 00 13 be 2004934 20048ec: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 20048f0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 20048f4: 80 a0 60 02 cmp %g1, 2 20048f8: 02 80 00 0f be 2004934 20048fc: 01 00 00 00 nop rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 2004900: 40 00 19 50 call 200ae40 2004904: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 2004908: 40 00 19 4e call 200ae40 200490c: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 2004910: 40 00 19 4c call 200ae40 2004914: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 2004918: 40 00 19 4a call 200ae40 200491c: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 2004920: d0 04 60 1c ld [ %l1 + 0x1c ], %o0 2004924: 40 00 04 b5 call 2005bf8 2004928: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200492c: 81 c7 e0 08 ret 2004930: 81 e8 00 00 restore rtems_semaphore_delete (tty->isem); rtems_semaphore_delete (tty->osem); rtems_semaphore_delete (tty->rawOutBuf.Semaphore); if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 2004934: 40 00 04 3d call 2005a28 <== NOT EXECUTED 2004938: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 200493c: 30 bf ff f1 b,a 2004900 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; 2004940: 05 00 80 71 sethi %hi(0x201c400), %g2 if ( rtems_termios_ttyTail != NULL ) { 2004944: 80 a0 60 00 cmp %g1, 0 2004948: 02 80 00 27 be 20049e4 200494c: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 2004950: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; 2004954: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 2004958: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200495c: 12 bf ff da bne 20048c4 <== NOT EXECUTED 2004960: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; 2004964: 05 00 80 71 sethi %hi(0x201c400), %g2 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { 2004968: 80 a0 60 00 cmp %g1, 0 200496c: 02 bf ff d7 be 20048c8 2004970: c2 20 a0 24 st %g1, [ %g2 + 0x24 ] rtems_termios_ttyHead->back = NULL; 2004974: 10 bf ff d5 b 20048c8 2004978: c0 20 60 04 clr [ %g1 + 4 ] } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 200497c: 92 10 20 00 clr %o1 2004980: 40 00 04 57 call 2005adc 2004984: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 2004988: 80 a2 20 00 cmp %o0, 0 200498c: 12 80 00 14 bne 20049dc 2004990: 01 00 00 00 nop rtems_fatal_error_occurred (sc); } drainOutput (tty); 2004994: 7f ff fd 80 call 2003f94 2004998: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 200499c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 20049a0: 80 a0 60 02 cmp %g1, 2 20049a4: 32 bf ff b7 bne,a 2004880 20049a8: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 20049ac: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED 20049b0: 40 00 03 0a call 20055d8 <== NOT EXECUTED 20049b4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 20049b8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20049bc: 12 80 00 08 bne 20049dc <== NOT EXECUTED 20049c0: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 20049c4: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 20049c8: 40 00 03 04 call 20055d8 <== NOT EXECUTED 20049cc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 20049d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20049d4: 22 bf ff ab be,a 2004880 <== NOT EXECUTED 20049d8: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 20049dc: 40 00 05 ef call 2006198 <== NOT EXECUTED 20049e0: 01 00 00 00 nop <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 20049e4: 03 00 80 71 sethi %hi(0x201c400), %g1 20049e8: 10 bf ff b8 b 20048c8 20049ec: c0 20 60 24 clr [ %g1 + 0x24 ] ! 201c424 02003304 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2003304: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003308: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 200330c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003310: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 2003314: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2003318: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200331c: 02 80 00 10 be 200335c <== NOT EXECUTED 2003320: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 2003324: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003328: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 200332c: 02 80 00 04 be 200333c <== NOT EXECUTED 2003330: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 2003334: 7f ff ff 74 call 2003104 <== NOT EXECUTED 2003338: 81 e8 00 00 restore <== NOT EXECUTED } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 200333c: c2 00 62 18 ld [ %g1 + 0x218 ], %g1 <== NOT EXECUTED 2003340: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003344: 02 80 00 04 be 2003354 <== NOT EXECUTED 2003348: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 200334c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003350: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 2003354: 81 c7 e0 08 ret <== NOT EXECUTED 2003358: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 200335c: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2003360: 40 00 08 9e call 20055d8 <== NOT EXECUTED 2003364: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2003368: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200336c: 02 bf ff fa be 2003354 <== NOT EXECUTED 2003370: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2003374: 40 00 0b 89 call 2006198 <== NOT EXECUTED 2003378: 01 00 00 00 nop 200337c: 01 00 00 00 nop 02003380 : * 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) { 2003380: 9d e3 bf a0 save %sp, -96, %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) { 2003384: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003388: 23 00 80 70 sethi %hi(0x201c000), %l1 <== NOT EXECUTED 200338c: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2003390: a2 14 61 64 or %l1, 0x164, %l1 <== NOT EXECUTED 2003394: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 2003398: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED 200339c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20033a0: 02 80 00 22 be 2003428 <== NOT EXECUTED 20033a4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED while (len--) { 20033a8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 20033ac: 22 80 00 0f be,a 20033e8 <== NOT EXECUTED 20033b0: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 20033b4: 10 80 00 05 b 20033c8 <== NOT EXECUTED 20033b8: a4 10 20 00 clr %l2 <== NOT EXECUTED 20033bc: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20033c0: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20033c4: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 20033c8: d0 4e 40 12 ldsb [ %i1 + %l2 ], %o0 <== NOT EXECUTED 20033cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20033d0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20033d4: a4 04 a0 01 inc %l2 <== 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--) { 20033d8: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED 20033dc: 32 bf ff f8 bne,a 20033bc <== NOT EXECUTED 20033e0: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 20033e4: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 20033e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20033ec: 12 80 00 0d bne 2003420 <== NOT EXECUTED 20033f0: 01 00 00 00 nop <== NOT EXECUTED 20033f4: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 20033f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20033fc: 02 80 00 09 be 2003420 <== NOT EXECUTED 2003400: 01 00 00 00 nop <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003404: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 2003408: 9f c0 40 00 call %g1 <== NOT EXECUTED 200340c: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2003410: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2003414: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED 2003418: 81 c7 e0 08 ret <== NOT EXECUTED 200341c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 2003420: 81 c7 e0 08 ret <== NOT EXECUTED 2003424: 91 e8 20 00 restore %g0, 0, %o0 <== 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); 2003428: a2 10 00 1a mov %i2, %l1 <== 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, 200342c: ae 06 20 4a add %i0, 0x4a, %l7 <== 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); 2003430: ac 06 20 30 add %i0, 0x30, %l6 <== NOT EXECUTED 2003434: a8 10 20 00 clr %l4 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2003438: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200343c: 02 80 00 1c be 20034ac <== NOT EXECUTED 2003440: b0 10 20 00 clr %i0 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2003444: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003448: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 200344c: 02 80 00 0b be 2003478 <== NOT EXECUTED 2003450: e4 0e 40 00 ldub [ %i1 ], %l2 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 2003454: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED 2003458: 83 2c a0 18 sll %l2, 0x18, %g1 <== NOT EXECUTED 200345c: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 2003460: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003464: 02 80 00 63 be 20035f0 <== NOT EXECUTED 2003468: c4 0c 20 49 ldub [ %l0 + 0x49 ], %g2 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 200346c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003470: 02 80 00 68 be 2003610 <== NOT EXECUTED 2003474: 01 00 00 00 nop <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 2003478: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED 200347c: 02 80 00 22 be 2003504 <== NOT EXECUTED 2003480: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 2003484: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003488: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 200348c: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 2003490: 02 80 00 0e be 20034c8 <== NOT EXECUTED 2003494: 01 00 00 00 nop <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003498: b2 06 60 01 inc %i1 <== NOT EXECUTED 200349c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 20034a0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 20034a4: 12 bf ff e8 bne 2003444 <== NOT EXECUTED 20034a8: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20034ac: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20034b0: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20034b4: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20034b8: 40 00 09 d0 call 2005bf8 <== NOT EXECUTED 20034bc: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED return dropped; 20034c0: 81 c7 e0 08 ret <== NOT EXECUTED 20034c4: 81 e8 00 00 restore <== NOT EXECUTED } if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); 20034c8: 7f ff fa 2a call 2001d70 <== NOT EXECUTED 20034cc: 01 00 00 00 nop <== NOT EXECUTED 20034d0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 20034d4: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20034d8: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== 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; 20034dc: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 20034e0: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20034e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20034e8: 12 80 00 57 bne 2003644 <== NOT EXECUTED 20034ec: 01 00 00 00 nop <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 20034f0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20034f4: 7f ff fa 23 call 2001d80 <== NOT EXECUTED 20034f8: b2 06 60 01 inc %i1 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 20034fc: 10 bf ff e9 b 20034a0 <== NOT EXECUTED 2003500: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 2003504: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 2003508: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 200350c: 40 00 56 e7 call 20190a8 <.urem> <== NOT EXECUTED 2003510: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 2003514: 7f ff fa 17 call 2001d70 <== NOT EXECUTED 2003518: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED 200351c: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2003520: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003524: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 2003528: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 200352c: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2003530: 40 00 56 de call 20190a8 <.urem> <== NOT EXECUTED 2003534: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 2003538: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED 200353c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003540: 08 80 00 13 bleu 200358c <== NOT EXECUTED 2003544: 01 00 00 00 nop <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 2003548: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 200354c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2003550: 12 80 00 0f bne 200358c <== NOT EXECUTED 2003554: 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; 2003558: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200355c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 2003560: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 2003564: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003568: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED 200356c: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 2003570: 02 80 00 3d be 2003664 <== NOT EXECUTED 2003574: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 2003578: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200357c: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 2003580: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 2003584: 02 80 00 49 be 20036a8 <== NOT EXECUTED 2003588: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 200358c: 7f ff f9 fd call 2001d80 <== NOT EXECUTED 2003590: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 2003594: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003598: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED 200359c: 22 80 00 22 be,a 2003624 <== NOT EXECUTED 20035a0: b0 06 20 01 inc %i0 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 20035a4: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 20035a8: e4 28 40 13 stb %l2, [ %g1 + %l3 ] <== 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 )) { 20035ac: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 20035b0: e6 24 20 60 st %l3, [ %l0 + 0x60 ] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 20035b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20035b8: 32 bf ff b9 bne,a 200349c <== NOT EXECUTED 20035bc: b2 06 60 01 inc %i1 <== NOT EXECUTED 20035c0: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 20035c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20035c8: 22 bf ff b5 be,a 200349c <== NOT EXECUTED 20035cc: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 20035d0: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 20035d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20035d8: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 20035dc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 20035e0: b2 06 60 01 inc %i1 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); tty->tty_rcvwakeup = 1; 20035e4: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 20035e8: 10 bf ff ae b 20034a0 <== NOT EXECUTED 20035ec: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { 20035f0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20035f4: 02 80 00 0f be 2003630 <== NOT EXECUTED 20035f8: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 20035fc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2003600: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2003604: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED 2003608: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED 200360c: 30 bf ff 9e b,a 2003484 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 2003610: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2003614: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 2003618: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED 200361c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED 2003620: 30 bf ff 99 b,a 2003484 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003624: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003628: 10 bf ff 9e b 20034a0 <== NOT EXECUTED 200362c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 2003630: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2003634: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 2003638: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED 200363c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED 2003640: 30 bf ff 91 b,a 2003484 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 2003644: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 2003648: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 200364c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003650: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2003654: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 2003658: 9f c0 40 00 call %g1 <== NOT EXECUTED 200365c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2003660: 30 bf ff a4 b,a 20034f0 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 2003664: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003668: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 200366c: 12 80 00 06 bne 2003684 <== NOT EXECUTED 2003670: 01 00 00 00 nop <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 2003674: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 2003678: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200367c: 12 bf ff c4 bne 200358c <== NOT EXECUTED 2003680: 01 00 00 00 nop <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 2003684: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003688: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 200368c: d0 04 20 10 ld [ %l0 + 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; 2003690: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003694: 92 10 00 17 mov %l7, %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; 2003698: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 200369c: 9f c0 40 00 call %g1 <== NOT EXECUTED 20036a0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20036a4: 30 bf ff ba b,a 200358c <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 20036a8: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 20036ac: c2 04 20 ac ld [ %l0 + 0xac ], %g1 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 20036b0: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 20036b4: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 20036b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20036bc: 02 bf ff b4 be 200358c <== NOT EXECUTED 20036c0: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 20036c4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20036c8: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 20036cc: 30 bf ff b0 b,a 200358c <== NOT EXECUTED 0200307c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 200307c: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2003080: 19 00 80 71 sethi %hi(0x201c400), %o4 2003084: c2 03 20 1c ld [ %o4 + 0x1c ], %g1 ! 201c41c 2003088: 80 a0 60 00 cmp %g1, 0 200308c: 02 80 00 04 be 200309c 2003090: 98 13 20 1c or %o4, 0x1c, %o4 2003094: 81 c7 e0 08 ret 2003098: 81 e8 00 00 restore sc = rtems_semaphore_create ( 200309c: 11 15 14 9b sethi %hi(0x54526c00), %o0 20030a0: 92 10 20 01 mov 1, %o1 20030a4: 90 12 21 69 or %o0, 0x169, %o0 20030a8: 94 10 20 54 mov 0x54, %o2 20030ac: 40 00 09 eb call 2005858 20030b0: 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) 20030b4: 80 a2 20 00 cmp %o0, 0 20030b8: 02 bf ff f7 be 2003094 20030bc: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 20030c0: 40 00 0c 36 call 2006198 <== NOT EXECUTED 20030c4: 01 00 00 00 nop 20030c8: 01 00 00 00 nop 020043f4 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 20043f4: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 20043f8: c2 06 00 00 ld [ %i0 ], %g1 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 20043fc: c0 26 20 0c clr [ %i0 + 0xc ] rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004400: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 2004404: e4 06 20 08 ld [ %i0 + 8 ], %l2 rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004408: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 200440c: 92 10 20 00 clr %o1 2004410: 40 00 05 b3 call 2005adc 2004414: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 2004418: a2 92 20 00 orcc %o0, 0, %l1 200441c: 32 80 00 16 bne,a 2004474 2004420: e2 26 20 0c st %l1, [ %i0 + 0xc ] <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 2004424: c2 06 20 04 ld [ %i0 + 4 ], %g1 2004428: 80 a0 60 04 cmp %g1, 4 200442c: 22 80 00 0c be,a 200445c 2004430: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 2004434: 18 80 00 12 bgu 200447c 2004438: 05 10 01 19 sethi %hi(0x40046400), %g2 200443c: 80 a0 60 02 cmp %g1, 2 2004440: 22 80 00 26 be,a 20044d8 2004444: d2 06 20 08 ld [ %i0 + 8 ], %o1 2004448: 08 80 00 81 bleu 200464c 200444c: 80 a0 60 01 cmp %g1, 1 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 2004450: 7f ff fe d1 call 2003f94 2004454: 90 10 00 10 mov %l0, %o0 break; 2004458: 30 80 00 04 b,a 2004468 case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 200445c: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED 2004460: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED 2004464: c2 24 20 e0 st %g1, [ %l0 + 0xe0 ] <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 2004468: 40 00 05 e4 call 2005bf8 200446c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 args->ioctl_return = sc; 2004470: e2 26 20 0c st %l1, [ %i0 + 0xc ] return sc; } 2004474: 81 c7 e0 08 ret 2004478: 91 e8 00 11 restore %g0, %l1, %o0 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 200447c: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED 2004480: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004484: 02 80 00 66 be 200461c <== NOT EXECUTED 2004488: 01 00 00 00 nop <== NOT EXECUTED 200448c: 18 80 00 77 bgu 2004668 <== NOT EXECUTED 2004490: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED 2004494: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2004498: 22 80 00 98 be,a 20046f8 <== NOT EXECUTED 200449c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 20044a0: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED 20044a4: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 20044a8: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 20044ac: 82 10 61 64 or %g1, 0x164, %g1 <== NOT EXECUTED 20044b0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 20044b4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20044b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20044bc: 02 bf ff eb be 2004468 <== NOT EXECUTED 20044c0: a2 10 20 0a mov 0xa, %l1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 20044c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20044c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20044cc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20044d0: 10 bf ff e6 b 2004468 <== NOT EXECUTED 20044d4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 20044d8: a4 04 20 30 add %l0, 0x30, %l2 20044dc: 94 10 20 24 mov 0x24, %o2 20044e0: 40 00 2f 59 call 2010244 20044e4: 90 10 00 12 mov %l2, %o0 /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 20044e8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 20044ec: 80 88 62 00 btst 0x200, %g1 20044f0: 02 80 00 19 be 2004554 20044f4: 01 00 00 00 nop 20044f8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 20044fc: 80 88 64 00 btst 0x400, %g1 2004500: 12 80 00 15 bne 2004554 2004504: 01 00 00 00 nop !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 2004508: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200450c: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 2004510: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 2004514: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004518: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 200451c: 02 80 00 0e be 2004554 <== NOT EXECUTED 2004520: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 2004524: 7f ff f6 13 call 2001d70 <== NOT EXECUTED 2004528: 01 00 00 00 nop <== NOT EXECUTED 200452c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2004530: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004534: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== 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; 2004538: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 200453c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004540: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004544: 12 80 00 a7 bne 20047e0 <== NOT EXECUTED 2004548: 01 00 00 00 nop <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 200454c: 7f ff f6 0d call 2001d80 <== NOT EXECUTED 2004550: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 2004554: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004558: 80 88 64 00 btst 0x400, %g1 200455c: 02 80 00 0c be 200458c 2004560: 03 00 00 04 sethi %hi(0x1000), %g1 2004564: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 2004568: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 200456c: 12 80 00 08 bne 200458c <== NOT EXECUTED 2004570: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 2004574: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004578: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 200457c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 2004580: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004584: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED 2004588: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 200458c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004590: 80 88 61 00 btst 0x100, %g1 2004594: 12 80 00 5d bne 2004708 2004598: c4 04 20 38 ld [ %l0 + 0x38 ], %g2 /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { 200459c: 80 a0 a0 00 cmp %g2, 0 20045a0: 06 80 00 84 bl 20047b0 20045a4: 01 00 00 00 nop tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 20045a8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 20045ac: 05 00 00 04 sethi %hi(0x1000), %g2 20045b0: 80 88 40 02 btst %g1, %g2 20045b4: 02 80 00 06 be 20045cc 20045b8: 80 88 64 00 btst 0x400, %g1 tty->flow_ctrl |= FL_MDXOF; 20045bc: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED 20045c0: 84 10 a4 00 or %g2, 0x400, %g2 <== NOT EXECUTED 20045c4: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 20045c8: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 20045cc: 22 80 00 06 be,a 20045e4 20045d0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 20045d4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 20045d8: 82 10 62 00 or %g1, 0x200, %g1 20045dc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] 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) { 20045e0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 20045e4: 80 88 60 02 btst 2, %g1 20045e8: 02 80 00 5e be 2004760 20045ec: 01 00 00 00 nop else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 20045f0: c0 24 20 6c clr [ %l0 + 0x6c ] tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 20045f4: c0 24 20 70 clr [ %l0 + 0x70 ] tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 20045f8: c0 24 20 74 clr [ %l0 + 0x74 ] else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 20045fc: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 2004600: 80 a0 60 00 cmp %g1, 0 2004604: 02 bf ff 99 be 2004468 2004608: 01 00 00 00 nop (*tty->device.setAttributes)(tty->minor, &tty->termios); 200460c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 2004610: 9f c0 40 00 call %g1 2004614: 92 10 00 12 mov %l2, %o1 2004618: 30 bf ff 94 b,a 2004468 *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 200461c: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED 2004620: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 2004624: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED 2004628: 0c 80 00 5f bneg 20047a4 <== NOT EXECUTED 200462c: 01 00 00 00 nop <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 2004630: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED 2004634: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2004638: c6 06 20 08 ld [ %i0 + 8 ], %g3 <== NOT EXECUTED 200463c: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED 2004640: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 2004644: 10 bf ff 89 b 2004468 <== NOT EXECUTED 2004648: c2 20 c0 00 st %g1, [ %g3 ] <== 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) { 200464c: 32 bf ff 96 bne,a 20044a4 2004650: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 2004654: d0 06 20 08 ld [ %i0 + 8 ], %o0 2004658: 92 04 20 30 add %l0, 0x30, %o1 200465c: 40 00 2e fa call 2010244 2004660: 94 10 20 24 mov 0x24, %o2 break; 2004664: 30 bf ff 81 b,a 2004468 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 2004668: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED 200466c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004670: 02 80 00 1e be 20046e8 <== NOT EXECUTED 2004674: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED 2004678: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <== NOT EXECUTED 200467c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004680: 32 bf ff 89 bne,a 20044a4 <== NOT EXECUTED 2004684: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 2004688: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 200468c: 25 00 80 70 sethi %hi(0x201c000), %l2 <== NOT EXECUTED 2004690: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004694: a4 14 a1 64 or %l2, 0x164, %l2 <== NOT EXECUTED 2004698: 82 04 80 01 add %l2, %g1, %g1 <== NOT EXECUTED 200469c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 20046a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20046a4: 22 80 00 06 be,a 20046bc <== NOT EXECUTED 20046a8: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 20046ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 20046b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20046b4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 20046b8: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 20046bc: c0 24 20 d0 clr [ %l0 + 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); 20046c0: c4 00 40 00 ld [ %g1 ], %g2 <== 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) { 20046c4: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED 20046c8: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED 20046cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20046d0: 02 bf ff 66 be 2004468 <== NOT EXECUTED 20046d4: c4 24 20 cc st %g2, [ %l0 + 0xcc ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 20046d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20046dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20046e0: 10 bf ff 62 b 2004468 <== NOT EXECUTED 20046e4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 20046e8: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 20046ec: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED break; 20046f0: 10 bf ff 5e b 2004468 <== NOT EXECUTED 20046f4: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 20046f8: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED 20046fc: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 2004700: 10 bf ff 5a b 2004468 <== NOT EXECUTED 2004704: c2 24 20 d8 st %g1, [ %l0 + 0xd8 ] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 2004708: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200470c: 06 80 00 29 bl 20047b0 <== NOT EXECUTED 2004710: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 2004714: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004718: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 200471c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 2004720: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004724: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2004728: 02 80 00 09 be 200474c <== NOT EXECUTED 200472c: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 2004730: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 2004734: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004738: 02 80 00 05 be 200474c <== NOT EXECUTED 200473c: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 2004740: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004744: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2004748: c4 04 20 38 ld [ %l0 + 0x38 ], %g2 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 200474c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004750: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 2004754: c2 24 20 b8 st %g1, [ %l0 + 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) { 2004758: 10 bf ff 92 b 20045a0 <== NOT EXECUTED 200475c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; 2004760: 40 00 03 12 call 20053a8 <== NOT EXECUTED 2004764: e6 0c 20 46 ldub [ %l0 + 0x46 ], %l3 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 2004768: 40 00 51 6a call 2018d10 <.umul> <== NOT EXECUTED 200476c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2004770: 40 00 51 a2 call 2018df8 <.udiv> <== NOT EXECUTED 2004774: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 2004778: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 200477c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004780: 02 80 00 11 be 20047c4 <== NOT EXECUTED 2004784: d0 24 20 54 st %o0, [ %l0 + 0x54 ] <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004788: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 200478c: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004790: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004794: 12 bf ff 99 bne 20045f8 <== NOT EXECUTED 2004798: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 200479c: 10 bf ff 98 b 20045fc <== NOT EXECUTED 20047a0: d0 24 20 74 st %o0, [ %l0 + 0x74 ] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 20047a4: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 20047a8: 10 bf ff a2 b 2004630 <== NOT EXECUTED 20047ac: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; 20047b0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20047b4: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 20047b8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 20047bc: 10 bf ff 7c b 20045ac <== NOT EXECUTED 20047c0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 20047c4: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 20047c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20047cc: 32 bf ff 8a bne,a 20045f4 <== NOT EXECUTED 20047d0: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 20047d4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20047d8: 10 bf ff 89 b 20045fc <== NOT EXECUTED 20047dc: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 20047e0: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 20047e4: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 20047e8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20047ec: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 20047f0: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 20047f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20047f8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20047fc: 30 bf ff 54 b,a 200454c <== NOT EXECUTED 02004978 : #include int rtems_termios_number_to_baud( int32_t baud ) { 2004978: 82 10 00 08 mov %o0, %g1 int termios_baud; switch (baud) { 200497c: 80 a2 24 b0 cmp %o0, 0x4b0 2004980: 02 80 00 32 be 2004a48 2004984: 90 10 20 09 mov 9, %o0 2004988: 80 a0 64 b0 cmp %g1, 0x4b0 200498c: 04 80 00 1e ble 2004a04 2004990: 80 a0 60 86 cmp %g1, 0x86 2004994: 05 00 00 12 sethi %hi(0x4800), %g2 2004998: 84 10 a3 00 or %g2, 0x300, %g2 ! 4b00 200499c: 80 a0 40 02 cmp %g1, %g2 20049a0: 02 80 00 2a be 2004a48 20049a4: 90 10 20 0e mov 0xe, %o0 20049a8: 80 a0 40 02 cmp %g1, %g2 20049ac: 04 80 00 29 ble 2004a50 20049b0: 80 a0 69 60 cmp %g1, 0x960 20049b4: 07 00 00 70 sethi %hi(0x1c000), %g3 case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; 20049b8: 05 00 00 04 sethi %hi(0x1000), %g2 int32_t baud ) { int termios_baud; switch (baud) { 20049bc: 86 10 e2 00 or %g3, 0x200, %g3 20049c0: 80 a0 40 03 cmp %g1, %g3 20049c4: 02 80 00 21 be 2004a48 20049c8: 90 10 a0 02 or %g2, 2, %o0 20049cc: 80 a0 40 03 cmp %g1, %g3 20049d0: 04 80 00 46 ble 2004ae8 20049d4: 07 00 00 25 sethi %hi(0x9400), %g3 20049d8: 07 00 00 e1 sethi %hi(0x38400), %g3 20049dc: 80 a0 40 03 cmp %g1, %g3 20049e0: 02 80 00 1a be 2004a48 20049e4: 90 10 a0 03 or %g2, 3, %o0 case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; 20049e8: 90 10 a0 04 or %g2, 4, %o0 int32_t baud ) { int termios_baud; switch (baud) { 20049ec: 05 00 01 c2 sethi %hi(0x70800), %g2 20049f0: 80 a0 40 02 cmp %g1, %g2 20049f4: 02 80 00 4b be 2004b20 20049f8: 01 00 00 00 nop case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 20049fc: 81 c3 e0 08 retl 2004a00: 90 10 3f ff mov -1, %o0 ! ffffffff int32_t baud ) { int termios_baud; switch (baud) { 2004a04: 02 80 00 11 be 2004a48 2004a08: 90 10 20 04 mov 4, %o0 2004a0c: 80 a0 60 86 cmp %g1, 0x86 2004a10: 04 80 00 21 ble 2004a94 2004a14: 80 a0 60 32 cmp %g1, 0x32 2004a18: 80 a0 60 c8 cmp %g1, 0xc8 2004a1c: 02 80 00 0b be 2004a48 2004a20: 90 10 20 06 mov 6, %o0 2004a24: 80 a0 60 c8 cmp %g1, 0xc8 2004a28: 04 80 00 28 ble 2004ac8 2004a2c: 80 a0 60 96 cmp %g1, 0x96 2004a30: 80 a0 61 2c cmp %g1, 0x12c 2004a34: 02 80 00 05 be 2004a48 2004a38: 90 10 20 07 mov 7, %o0 2004a3c: 80 a0 62 58 cmp %g1, 0x258 2004a40: 12 bf ff ef bne 20049fc 2004a44: 90 10 20 08 mov 8, %o0 2004a48: 81 c3 e0 08 retl 2004a4c: 01 00 00 00 nop 2004a50: 02 bf ff fe be 2004a48 2004a54: 90 10 20 0b mov 0xb, %o0 ! b 2004a58: 80 a0 69 60 cmp %g1, 0x960 2004a5c: 04 80 00 2f ble 2004b18 2004a60: 80 a0 67 08 cmp %g1, 0x708 2004a64: 05 00 00 04 sethi %hi(0x1000), %g2 2004a68: 84 10 a2 c0 or %g2, 0x2c0, %g2 ! 12c0 2004a6c: 80 a0 40 02 cmp %g1, %g2 2004a70: 02 bf ff f6 be 2004a48 2004a74: 90 10 20 0c mov 0xc, %o0 2004a78: 05 00 00 09 sethi %hi(0x2400), %g2 2004a7c: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 2004a80: 80 a0 40 02 cmp %g1, %g2 2004a84: 12 bf ff de bne 20049fc 2004a88: 90 10 20 0d mov 0xd, %o0 2004a8c: 81 c3 e0 08 retl 2004a90: 01 00 00 00 nop 2004a94: 02 bf ff ed be 2004a48 2004a98: 90 10 20 01 mov 1, %o0 ! 1 2004a9c: 80 a0 60 32 cmp %g1, 0x32 2004aa0: 04 80 00 0e ble 2004ad8 2004aa4: 80 a0 60 00 cmp %g1, 0 2004aa8: 80 a0 60 4b cmp %g1, 0x4b 2004aac: 02 bf ff e7 be 2004a48 2004ab0: 90 10 20 02 mov 2, %o0 2004ab4: 80 a0 60 6e cmp %g1, 0x6e 2004ab8: 12 bf ff d1 bne 20049fc 2004abc: 90 10 20 03 mov 3, %o0 2004ac0: 81 c3 e0 08 retl 2004ac4: 01 00 00 00 nop 2004ac8: 12 bf ff cd bne 20049fc 2004acc: 90 10 20 05 mov 5, %o0 ! 5 2004ad0: 81 c3 e0 08 retl 2004ad4: 01 00 00 00 nop 2004ad8: 12 bf ff c9 bne 20049fc 2004adc: 90 10 20 00 clr %o0 ! 0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 2004ae0: 81 c3 e0 08 retl 2004ae4: 01 00 00 00 nop int32_t baud ) { int termios_baud; switch (baud) { 2004ae8: 86 10 e2 00 or %g3, 0x200, %g3 2004aec: 80 a0 40 03 cmp %g1, %g3 2004af0: 02 bf ff d6 be 2004a48 2004af4: 90 10 20 0f mov 0xf, %o0 case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; 2004af8: 90 10 a0 01 or %g2, 1, %o0 int32_t baud ) { int termios_baud; switch (baud) { 2004afc: 05 00 00 38 sethi %hi(0xe000), %g2 2004b00: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 2004b04: 80 a0 40 02 cmp %g1, %g2 2004b08: 32 bf ff d0 bne,a 2004a48 2004b0c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 2004b10: 81 c3 e0 08 retl 2004b14: 01 00 00 00 nop 2004b18: 12 bf ff b9 bne 20049fc 2004b1c: 90 10 20 0a mov 0xa, %o0 ! a 2004b20: 81 c3 e0 08 retl 2004b24: 01 00 00 00 nop 020049f0 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 20049f0: 9d e3 bf a0 save %sp, -96, %sp struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 20049f4: 23 00 80 71 sethi %hi(0x201c400), %l1 20049f8: d0 04 60 1c ld [ %l1 + 0x1c ], %o0 ! 201c41c 20049fc: 92 10 20 00 clr %o1 2004a00: 40 00 04 37 call 2005adc 2004a04: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2004a08: a0 92 20 00 orcc %o0, 0, %l0 2004a0c: 32 80 00 29 bne,a 2004ab0 2004a10: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 2004a14: 29 00 80 71 sethi %hi(0x201c400), %l4 2004a18: e4 05 20 24 ld [ %l4 + 0x24 ], %l2 ! 201c424 2004a1c: 80 a4 a0 00 cmp %l2, 0 2004a20: 32 80 00 08 bne,a 2004a40 2004a24: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004a28: 10 80 00 33 b 2004af4 2004a2c: 90 10 20 01 mov 1, %o0 */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 2004a30: 80 a4 a0 00 cmp %l2, 0 2004a34: 02 80 00 30 be 2004af4 2004a38: 90 10 20 01 mov 1, %o0 if ((tty->major == major) && (tty->minor == minor)) 2004a3c: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 <== NOT EXECUTED 2004a40: 80 a0 40 18 cmp %g1, %i0 2004a44: 32 bf ff fb bne,a 2004a30 2004a48: e4 04 80 00 ld [ %l2 ], %l2 2004a4c: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1 2004a50: 80 a0 40 19 cmp %g1, %i1 2004a54: 32 bf ff f7 bne,a 2004a30 2004a58: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { 2004a5c: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 2004a60: c6 06 80 00 ld [ %i2 ], %g3 if (!tty->refcount++) { 2004a64: 84 00 60 01 add %g1, 1, %g2 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 2004a68: e4 20 e0 38 st %l2, [ %g3 + 0x38 ] if (!tty->refcount++) { 2004a6c: 80 a0 60 00 cmp %g1, 0 2004a70: 12 80 00 0d bne 2004aa4 2004a74: c4 24 a0 08 st %g2, [ %l2 + 8 ] if (tty->device.firstOpen) 2004a78: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1 2004a7c: 80 a0 60 00 cmp %g1, 0 2004a80: 02 80 00 05 be 2004a94 2004a84: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 2004a88: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2004a8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004a90: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004a94: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1 2004a98: 80 a0 60 02 cmp %g1, 2 2004a9c: 22 80 00 07 be,a 2004ab8 2004aa0: d0 04 a0 c4 ld [ %l2 + 0xc4 ], %o0 <== NOT EXECUTED (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 2004aa4: 40 00 04 55 call 2005bf8 2004aa8: d0 04 60 1c ld [ %l1 + 0x1c ], %o0 return RTEMS_SUCCESSFUL; } 2004aac: b0 10 00 10 mov %l0, %i0 2004ab0: 81 c7 e0 08 ret 2004ab4: 81 e8 00 00 restore (*tty->device.firstOpen)(major, minor, arg); /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_start(tty->rxTaskId, 2004ab8: 13 00 80 13 sethi %hi(0x2004c00), %o1 <== NOT EXECUTED 2004abc: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2004ac0: 40 00 05 22 call 2005f48 <== NOT EXECUTED 2004ac4: 92 12 62 e0 or %o1, 0x2e0, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004ac8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004acc: 12 80 00 bf bne 2004dc8 <== NOT EXECUTED 2004ad0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 2004ad4: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED 2004ad8: 13 00 80 13 sethi %hi(0x2004c00), %o1 <== NOT EXECUTED 2004adc: 40 00 05 1b call 2005f48 <== NOT EXECUTED 2004ae0: 92 12 62 48 or %o1, 0x248, %o1 ! 2004e48 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004ae4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004ae8: 02 bf ff ef be 2004aa4 <== NOT EXECUTED 2004aec: 01 00 00 00 nop <== NOT EXECUTED 2004af0: 30 80 00 b6 b,a 2004dc8 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004af4: 40 00 18 8e call 200ad2c 2004af8: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 2004afc: a6 92 20 00 orcc %o0, 0, %l3 2004b00: 02 80 00 99 be 2004d64 2004b04: a4 10 00 13 mov %l3, %l2 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 2004b08: 03 00 80 6e sethi %hi(0x201b800), %g1 2004b0c: c2 00 63 a8 ld [ %g1 + 0x3a8 ], %g1 ! 201bba8 2004b10: c2 24 e0 64 st %g1, [ %l3 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 2004b14: d0 04 e0 64 ld [ %l3 + 0x64 ], %o0 2004b18: 40 00 1a 4a call 200b440 2004b1c: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 2004b20: 80 a2 20 00 cmp %o0, 0 2004b24: 02 80 00 8e be 2004d5c 2004b28: d0 24 e0 58 st %o0, [ %l3 + 0x58 ] return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 2004b2c: 03 00 80 6e sethi %hi(0x201b800), %g1 2004b30: c2 00 63 ac ld [ %g1 + 0x3ac ], %g1 ! 201bbac 2004b34: c2 24 e0 88 st %g1, [ %l3 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 2004b38: d0 04 e0 88 ld [ %l3 + 0x88 ], %o0 2004b3c: 40 00 1a 41 call 200b440 2004b40: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 2004b44: 80 a2 20 00 cmp %o0, 0 2004b48: 02 80 00 8c be 2004d78 2004b4c: d0 24 e0 7c st %o0, [ %l3 + 0x7c ] return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 2004b50: 03 00 80 6e sethi %hi(0x201b800), %g1 2004b54: 40 00 1a 3b call 200b440 2004b58: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 201bba4 if (tty->cbuf == NULL) { 2004b5c: 80 a2 20 00 cmp %o0, 0 2004b60: 02 80 00 9c be 2004dd0 2004b64: d0 24 e0 1c st %o0, [ %l3 + 0x1c ] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004b68: c2 05 20 24 ld [ %l4 + 0x24 ], %g1 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 2004b6c: c0 24 e0 d4 clr [ %l3 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 2004b70: c0 24 e0 d8 clr [ %l3 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 2004b74: c0 24 e0 dc clr [ %l3 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 2004b78: c0 24 e0 e0 clr [ %l3 + 0xe0 ] tty->tty_rcvwakeup = 0; 2004b7c: c0 24 e0 e4 clr [ %l3 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004b80: c2 24 c0 00 st %g1, [ %l3 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 2004b84: 80 a0 60 00 cmp %g1, 0 2004b88: 02 80 00 03 be 2004b94 2004b8c: c0 24 e0 04 clr [ %l3 + 4 ] rtems_termios_ttyHead->back = tty; 2004b90: e6 20 60 04 st %l3, [ %g1 + 4 ] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 2004b94: 03 00 80 71 sethi %hi(0x201c400), %g1 2004b98: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201c420 2004b9c: 80 a0 a0 00 cmp %g2, 0 2004ba0: 02 80 00 a8 be 2004e40 2004ba4: e6 25 20 24 st %l3, [ %l4 + 0x24 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004ba8: 29 00 80 6e sethi %hi(0x201b800), %l4 2004bac: d0 4d 23 b0 ldsb [ %l4 + 0x3b0 ], %o0 ! 201bbb0 2004bb0: 03 15 14 9a sethi %hi(0x54526800), %g1 2004bb4: 82 10 61 00 or %g1, 0x100, %g1 ! 54526900 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 2004bb8: f2 24 e0 10 st %i1, [ %l3 + 0x10 ] tty->major = major; 2004bbc: f0 24 e0 0c st %i0, [ %l3 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004bc0: 90 12 00 01 or %o0, %g1, %o0 2004bc4: 92 10 20 01 mov 1, %o1 2004bc8: 94 10 20 54 mov 0x54, %o2 2004bcc: 96 10 20 00 clr %o3 2004bd0: 40 00 03 22 call 2005858 2004bd4: 98 04 e0 14 add %l3, 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) 2004bd8: 80 a2 20 00 cmp %o0, 0 2004bdc: 12 80 00 7b bne 2004dc8 2004be0: 03 15 14 9b sethi %hi(0x54526c00), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 2004be4: d0 4d 23 b0 ldsb [ %l4 + 0x3b0 ], %o0 2004be8: 82 10 63 00 or %g1, 0x300, %g1 2004bec: 92 10 20 01 mov 1, %o1 2004bf0: 90 12 00 01 or %o0, %g1, %o0 2004bf4: 94 10 20 54 mov 0x54, %o2 2004bf8: 96 10 20 00 clr %o3 2004bfc: 40 00 03 17 call 2005858 2004c00: 98 04 e0 18 add %l3, 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) 2004c04: 80 a2 20 00 cmp %o0, 0 2004c08: 12 80 00 70 bne 2004dc8 2004c0c: 03 15 14 9e sethi %hi(0x54527800), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 2004c10: d0 4d 23 b0 ldsb [ %l4 + 0x3b0 ], %o0 2004c14: 92 10 20 00 clr %o1 2004c18: 90 12 00 01 or %o0, %g1, %o0 2004c1c: 94 10 20 20 mov 0x20, %o2 2004c20: 96 10 20 00 clr %o3 2004c24: 40 00 03 0d call 2005858 2004c28: 98 04 e0 8c add %l3, 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) 2004c2c: 80 a2 20 00 cmp %o0, 0 2004c30: 12 80 00 66 bne 2004dc8 2004c34: 92 10 00 1b mov %i3, %o1 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 2004c38: c0 24 e0 94 clr [ %l3 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 2004c3c: 90 04 e0 98 add %l3, 0x98, %o0 2004c40: 40 00 2d 81 call 2010244 2004c44: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004c48: c2 04 e0 b4 ld [ %l3 + 0xb4 ], %g1 2004c4c: 80 a0 60 02 cmp %g1, 2 2004c50: 02 80 00 65 be 2004de4 2004c54: d0 4d 23 b0 ldsb [ %l4 + 0x3b0 ], %o0 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 2004c58: c2 04 e0 a0 ld [ %l3 + 0xa0 ], %g1 2004c5c: 80 a0 60 00 cmp %g1, 0 2004c60: 02 80 00 4f be 2004d9c 2004c64: d0 4d 23 b0 ldsb [ %l4 + 0x3b0 ], %o0 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 2004c68: c2 04 e0 b4 ld [ %l3 + 0xb4 ], %g1 2004c6c: 80 a0 60 02 cmp %g1, 2 2004c70: 02 80 00 4c be 2004da0 2004c74: 03 15 14 9c sethi %hi(0x54527000), %g1 tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; 2004c78: c0 24 e0 b8 clr [ %l3 + 0xb8 ] /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 2004c7c: c6 04 e0 64 ld [ %l3 + 0x64 ], %g3 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 2004c80: c2 0d 23 b0 ldub [ %l4 + 0x3b0 ], %g1 /* 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; 2004c84: 87 30 e0 01 srl %g3, 1, %g3 2004c88: c6 24 e0 bc st %g3, [ %l3 + 0xbc ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 2004c8c: 07 00 00 09 sethi %hi(0x2400), %g3 2004c90: 86 10 e1 02 or %g3, 0x102, %g3 ! 2502 2004c94: c6 24 e0 30 st %g3, [ %l3 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004c98: 07 00 00 06 sethi %hi(0x1800), %g3 2004c9c: 86 10 e0 05 or %g3, 5, %g3 ! 1805 2004ca0: c6 24 e0 34 st %g3, [ %l3 + 0x34 ] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 2004ca4: 86 10 28 bd mov 0x8bd, %g3 2004ca8: c6 24 e0 38 st %g3, [ %l3 + 0x38 ] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 2004cac: 07 00 00 20 sethi %hi(0x8000), %g3 2004cb0: 86 10 e2 3b or %g3, 0x23b, %g3 ! 823b 2004cb4: c6 24 e0 3c st %g3, [ %l3 + 0x3c ] tty->termios.c_cc[VINTR] = '\003'; 2004cb8: 86 10 20 03 mov 3, %g3 2004cbc: c6 2c e0 41 stb %g3, [ %l3 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 2004cc0: 86 10 20 1c mov 0x1c, %g3 2004cc4: c6 2c e0 42 stb %g3, [ %l3 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 2004cc8: 86 10 20 7f mov 0x7f, %g3 2004ccc: c6 2c e0 43 stb %g3, [ %l3 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 2004cd0: 86 10 20 15 mov 0x15, %g3 2004cd4: c6 2c e0 44 stb %g3, [ %l3 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 2004cd8: 86 10 20 04 mov 4, %g3 2004cdc: c6 2c e0 45 stb %g3, [ %l3 + 0x45 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 2004ce0: 86 10 20 11 mov 0x11, %g3 2004ce4: c6 2c e0 49 stb %g3, [ %l3 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 2004ce8: 86 10 20 13 mov 0x13, %g3 2004cec: c6 2c e0 4a stb %g3, [ %l3 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 2004cf0: 86 10 20 1a mov 0x1a, %g3 2004cf4: c6 2c e0 4b stb %g3, [ %l3 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 2004cf8: 86 10 20 12 mov 0x12, %g3 2004cfc: c6 2c e0 4d stb %g3, [ %l3 + 0x4d ] tty->termios.c_cc[VDISCARD] = '\017'; 2004d00: 86 10 20 0f mov 0xf, %g3 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; 2004d04: c4 04 e0 64 ld [ %l3 + 0x64 ], %g2 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; 2004d08: c6 2c e0 4e stb %g3, [ %l3 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 2004d0c: 86 10 20 17 mov 0x17, %g3 2004d10: c6 2c e0 4f stb %g3, [ %l3 + 0x4f ] tty->termios.c_cc[VLNEXT] = '\026'; 2004d14: 86 10 20 16 mov 0x16, %g3 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'; 2004d18: c0 2c e0 4c clrb [ %l3 + 0x4c ] tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; 2004d1c: c6 2c e0 50 stb %g3, [ %l3 + 0x50 ] tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; 2004d20: c0 2c e0 51 clrb [ %l3 + 0x51 ] 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; 2004d24: 87 28 a0 01 sll %g2, 1, %g3 2004d28: 84 00 c0 02 add %g3, %g2, %g2 2004d2c: 85 30 a0 02 srl %g2, 2, %g2 2004d30: c4 24 e0 c0 st %g2, [ %l3 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 2004d34: 84 00 60 01 add %g1, 1, %g2 2004d38: 83 28 60 18 sll %g1, 0x18, %g1 2004d3c: 83 38 60 18 sra %g1, 0x18, %g1 2004d40: 80 a0 60 7a cmp %g1, 0x7a 2004d44: 12 bf ff 46 bne 2004a5c 2004d48: c4 2d 23 b0 stb %g2, [ %l4 + 0x3b0 ] c = 'a'; 2004d4c: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 2004d50: 03 00 80 6e sethi %hi(0x201b800), %g1 <== NOT EXECUTED 2004d54: 10 bf ff 42 b 2004a5c <== NOT EXECUTED 2004d58: c4 28 63 b0 stb %g2, [ %g1 + 0x3b0 ] ! 201bbb0 <== NOT EXECUTED * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); 2004d5c: 40 00 18 39 call 200ae40 <== NOT EXECUTED 2004d60: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2004d64: d0 04 60 1c ld [ %l1 + 0x1c ], %o0 <== NOT EXECUTED 2004d68: 40 00 03 a4 call 2005bf8 <== NOT EXECUTED 2004d6c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED return RTEMS_NO_MEMORY; 2004d70: 81 c7 e0 08 ret <== NOT EXECUTED 2004d74: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); 2004d78: d0 04 e0 58 ld [ %l3 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 2004d7c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); free((void *)(tty->rawInBuf.theBuf)); 2004d80: 40 00 18 30 call 200ae40 <== NOT EXECUTED 2004d84: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED free(tty); 2004d88: 40 00 18 2e call 200ae40 <== NOT EXECUTED 2004d8c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2004d90: 40 00 03 9a call 2005bf8 <== NOT EXECUTED 2004d94: d0 04 60 1c ld [ %l1 + 0x1c ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; 2004d98: 30 bf ff 46 b,a 2004ab0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 2004d9c: 03 15 14 9c sethi %hi(0x54527000), %g1 <== NOT EXECUTED 2004da0: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 <== NOT EXECUTED 2004da4: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004da8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2004dac: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 2004db0: 96 10 20 00 clr %o3 <== NOT EXECUTED 2004db4: 40 00 02 a9 call 2005858 <== NOT EXECUTED 2004db8: 98 04 e0 68 add %l3, 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) 2004dbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004dc0: 02 bf ff ae be 2004c78 <== NOT EXECUTED 2004dc4: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 2004dc8: 40 00 04 f4 call 2006198 <== NOT EXECUTED 2004dcc: 01 00 00 00 nop <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 2004dd0: d0 04 e0 7c ld [ %l3 + 0x7c ], %o0 <== NOT EXECUTED 2004dd4: 40 00 18 1b call 200ae40 <== NOT EXECUTED 2004dd8: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 2004ddc: 10 bf ff e9 b 2004d80 <== NOT EXECUTED 2004de0: d0 04 e0 58 ld [ %l3 + 0x58 ], %o0 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 2004de4: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED 2004de8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 2004dec: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2004df0: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004df4: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004df8: 98 10 20 00 clr %o4 <== NOT EXECUTED 2004dfc: 40 00 03 ab call 2005ca8 <== NOT EXECUTED 2004e00: 9a 04 e0 c8 add %l3, 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) 2004e04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004e08: 12 bf ff f0 bne 2004dc8 <== NOT EXECUTED 2004e0c: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 2004e10: d0 4d 23 b0 ldsb [ %l4 + 0x3b0 ], %o0 <== NOT EXECUTED 2004e14: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 2004e18: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2004e1c: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004e20: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004e24: 98 10 20 00 clr %o4 <== NOT EXECUTED 2004e28: 40 00 03 a0 call 2005ca8 <== NOT EXECUTED 2004e2c: 9a 04 e0 c4 add %l3, 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) 2004e30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004e34: 22 bf ff 8a be,a 2004c5c <== NOT EXECUTED 2004e38: c2 04 e0 a0 ld [ %l3 + 0xa0 ], %g1 <== NOT EXECUTED 2004e3c: 30 bf ff e3 b,a 2004dc8 <== NOT EXECUTED tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; 2004e40: 10 bf ff 5a b 2004ba8 2004e44: e6 20 60 20 st %l3, [ %g1 + 0x20 ] 020036d0 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20036d0: 9d e3 bf a0 save %sp, -96, %sp const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 20036d4: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1 20036d8: 80 a0 60 00 cmp %g1, 0 20036dc: 02 80 00 42 be 20037e4 20036e0: a8 10 00 18 mov %i0, %l4 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 20036e4: e6 06 a0 80 ld [ %i2 + 0x80 ], %l3 <== NOT EXECUTED while (len) { 20036e8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20036ec: 02 80 00 43 be 20037f8 <== NOT EXECUTED 20036f0: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 20036f4: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 20036f8: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED 20036fc: 40 00 56 6b call 20190a8 <.urem> <== NOT EXECUTED 2003700: 90 04 e0 01 add %l3, 1, %o0 <== NOT EXECUTED rtems_interrupt_disable (level); 2003704: 7f ff f9 9b call 2001d70 <== NOT EXECUTED 2003708: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED 200370c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 2003710: e2 06 a0 84 ld [ %i2 + 0x84 ], %l1 <== NOT EXECUTED 2003714: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED 2003718: 12 80 00 13 bne 2003764 <== NOT EXECUTED 200371c: 01 00 00 00 nop <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2003720: e4 26 a0 94 st %l2, [ %i2 + 0x94 ] <== NOT EXECUTED rtems_interrupt_enable (level); 2003724: 7f ff f9 97 call 2001d80 <== NOT EXECUTED 2003728: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 200372c: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED 2003730: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003734: 40 00 08 ea call 2005adc <== NOT EXECUTED 2003738: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 200373c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003740: 12 80 00 30 bne 2003800 <== NOT EXECUTED 2003744: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2003748: 7f ff f9 8a call 2001d70 <== NOT EXECUTED 200374c: 01 00 00 00 nop <== NOT EXECUTED 2003750: a0 10 00 08 mov %o0, %l0 <== 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) { 2003754: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED 2003758: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 200375c: 22 bf ff f2 be,a 2003724 <== NOT EXECUTED 2003760: 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++; 2003764: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 <== NOT EXECUTED 2003768: c6 0d 00 00 ldub [ %l4 ], %g3 <== NOT EXECUTED 200376c: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 <== NOT EXECUTED 2003770: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2003774: 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; 2003778: e6 26 a0 80 st %l3, [ %i2 + 0x80 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 200377c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003780: 12 80 00 0a bne 20037a8 <== NOT EXECUTED 2003784: 01 00 00 00 nop <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2003788: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 200378c: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 2003790: 02 80 00 0c be 20037c0 <== NOT EXECUTED 2003794: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; 2003798: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 200379c: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 20037a0: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 20037a4: ea 26 a0 94 st %l5, [ %i2 + 0x94 ] <== NOT EXECUTED } rtems_interrupt_enable (level); 20037a8: 7f ff f9 76 call 2001d80 <== NOT EXECUTED 20037ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 20037b0: b2 86 7f ff addcc %i1, -1, %i1 <== NOT EXECUTED 20037b4: 02 80 00 11 be 20037f8 <== NOT EXECUTED 20037b8: a8 05 20 01 inc %l4 <== NOT EXECUTED 20037bc: 30 bf ff cf b,a 20036f8 <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 20037c0: c4 06 a0 84 ld [ %i2 + 0x84 ], %g2 <== NOT EXECUTED tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, 20037c4: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 <== NOT EXECUTED 20037c8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED 20037cc: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 20037d0: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 20037d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20037d8: 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; 20037dc: 10 bf ff f3 b 20037a8 <== NOT EXECUTED 20037e0: ea 26 a0 94 st %l5, [ %i2 + 0x94 ] <== NOT EXECUTED unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); 20037e4: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 20037e8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 20037ec: 92 10 00 18 mov %i0, %o1 20037f0: 9f c0 40 00 call %g1 20037f4: 94 10 00 19 mov %i1, %o2 return; 20037f8: 81 c7 e0 08 ret 20037fc: 81 e8 00 00 restore rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 2003800: 40 00 0a 66 call 2006198 <== NOT EXECUTED 2003804: 01 00 00 00 nop 2003808: 01 00 00 00 nop 02004028 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2004028: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 200402c: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 2004030: e6 06 20 14 ld [ %i0 + 0x14 ], %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; 2004034: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 2004038: e8 06 20 10 ld [ %i0 + 0x10 ], %l4 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 200403c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2004040: 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); 2004044: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004048: 40 00 06 a5 call 2005adc <== NOT EXECUTED 200404c: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2004050: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2004054: 12 80 00 10 bne 2004094 <== NOT EXECUTED 2004058: 05 00 80 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 200405c: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 2004060: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004064: 84 10 a1 64 or %g2, 0x164, %g2 <== NOT EXECUTED 2004068: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED 200406c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 2004070: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004074: 02 80 00 0a be 200409c <== NOT EXECUTED 2004078: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 200407c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004080: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004084: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2004088: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 200408c: 40 00 06 db call 2005bf8 <== NOT EXECUTED 2004090: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED return sc; 2004094: 81 c7 e0 08 ret <== NOT EXECUTED 2004098: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->cindex == tty->ccount) { 200409c: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 20040a0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 20040a4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20040a8: 22 80 00 20 be,a 2004128 <== NOT EXECUTED 20040ac: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 20040b0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 20040b4: 22 80 00 16 be,a 200410c <== NOT EXECUTED 20040b8: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED 20040bc: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 20040c0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 20040c4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20040c8: 26 80 00 09 bl,a 20040ec <== NOT EXECUTED 20040cc: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 20040d0: 10 80 00 0f b 200410c <== NOT EXECUTED 20040d4: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 20040d8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 20040dc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20040e0: 24 80 00 0b ble,a 200410c <== NOT EXECUTED 20040e4: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 20040e8: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 20040ec: a6 84 ff ff addcc %l3, -1, %l3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 20040f0: c4 08 80 01 ldub [ %g2 + %g1 ], %g2 <== NOT EXECUTED 20040f4: 82 00 60 01 inc %g1 <== NOT EXECUTED 20040f8: c4 2d 00 00 stb %g2, [ %l4 ] <== NOT EXECUTED 20040fc: c2 24 20 24 st %g1, [ %l0 + 0x24 ] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2004100: 12 bf ff f6 bne 20040d8 <== NOT EXECUTED 2004104: a8 05 20 01 inc %l4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2004108: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 200410c: 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; 2004110: a6 20 40 13 sub %g1, %l3, %l3 <== NOT EXECUTED 2004114: e6 25 a0 1c st %l3, [ %l6 + 0x1c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2004118: 40 00 06 b8 call 2005bf8 <== NOT EXECUTED 200411c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 2004120: 81 c7 e0 08 ret <== NOT EXECUTED 2004124: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2004128: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== 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; 200412c: c4 24 20 2c st %g2, [ %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; 2004130: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2004134: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004138: 02 80 00 06 be 2004150 <== NOT EXECUTED 200413c: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2004140: c4 04 20 b4 ld [ %l0 + 0xb4 ], %g2 <== NOT EXECUTED 2004144: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2004148: 22 80 00 67 be,a 20042e4 <== NOT EXECUTED 200414c: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== 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; 2004150: e2 04 20 74 ld [ %l0 + 0x74 ], %l1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2004154: 25 00 80 6e sethi %hi(0x201b800), %l2 <== 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, 2004158: ae 04 20 49 add %l0, 0x49, %l7 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 200415c: a4 14 a3 a4 or %l2, 0x3a4, %l2 <== 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, 2004160: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2004164: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2004168: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 200416c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004170: 02 80 00 3d be 2004264 <== NOT EXECUTED 2004174: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED 2004178: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 200417c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004180: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2004184: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004188: 16 80 00 37 bge 2004264 <== NOT EXECUTED 200418c: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2004190: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 2004194: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2004198: 40 00 53 c4 call 20190a8 <.urem> <== NOT EXECUTED 200419c: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 20041a0: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 20041a4: e2 08 40 08 ldub [ %g1 + %o0 ], %l1 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 20041a8: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 20041ac: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 20041b0: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 20041b4: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 20041b8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 20041bc: 40 00 53 bb call 20190a8 <.urem> <== NOT EXECUTED 20041c0: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED 20041c4: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 20041c8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 20041cc: 3a 80 00 18 bcc,a 200422c <== NOT EXECUTED 20041d0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 20041d4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041d8: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 20041dc: 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)) 20041e0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041e4: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED 20041e8: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED 20041ec: 22 80 00 30 be,a 20042ac <== NOT EXECUTED 20041f0: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 20041f4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041f8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20041fc: 22 80 00 0c be,a 200422c <== NOT EXECUTED 2004200: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 2004204: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2004208: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1 <== 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; 200420c: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED 2004210: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2004214: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004218: 22 80 00 05 be,a 200422c <== NOT EXECUTED 200421c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 2004220: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004224: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2004228: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 200422c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2004230: 02 80 00 17 be 200428c <== NOT EXECUTED 2004234: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 2004238: 7f ff ff 0f call 2003e74 <== NOT EXECUTED 200423c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2004240: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004244: 32 80 00 02 bne,a 200424c <== NOT EXECUTED 2004248: aa 10 20 00 clr %l5 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 200424c: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2004250: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2004254: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004258: 12 bf ff c8 bne 2004178 <== NOT EXECUTED 200425c: e2 04 20 70 ld [ %l0 + 0x70 ], %l1 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2004260: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED 2004264: 02 bf ff 94 be 20040b4 <== NOT EXECUTED 2004268: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 200426c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2004270: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED 2004274: 40 00 06 1a call 2005adc <== NOT EXECUTED 2004278: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 200427c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004280: 02 bf ff b9 be 2004164 <== NOT EXECUTED 2004284: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2004288: 30 bf ff 8b b,a 20040b4 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 200428c: 7f ff fe fa call 2003e74 <== NOT EXECUTED 2004290: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2004294: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004298: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 200429c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20042a0: 36 bf ff eb bge,a 200424c <== NOT EXECUTED 20042a4: aa 10 20 00 clr %l5 <== NOT EXECUTED 20042a8: 30 bf ff e9 b,a 200424c <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 20042ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20042b0: 22 80 00 07 be,a 20042cc <== NOT EXECUTED 20042b4: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 20042b8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 20042bc: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20042c0: 02 bf ff cd be 20041f4 <== NOT EXECUTED 20042c4: 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, 20042c8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20042cc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 20042d0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 20042d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20042d8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 20042dc: 10 bf ff d4 b 200422c <== NOT EXECUTED 20042e0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 20042e4: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 20042e8: 02 80 00 0e be 2004320 <== NOT EXECUTED 20042ec: 01 00 00 00 nop <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 20042f0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20042f4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 20042f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20042fc: 06 80 00 3a bl 20043e4 <== NOT EXECUTED 2004300: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 2004304: 7f ff fe dc call 2003e74 <== NOT EXECUTED 2004308: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 200430c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004310: 12 bf ff 69 bne 20040b4 <== NOT EXECUTED 2004314: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2004318: 10 bf ff f6 b 20042f0 <== NOT EXECUTED 200431c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 2004320: 40 00 04 2a call 20053c8 <== NOT EXECUTED 2004324: 01 00 00 00 nop <== NOT EXECUTED 2004328: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 200432c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004330: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004334: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2004338: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200433c: 06 80 00 10 bl 200437c <== NOT EXECUTED 2004340: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 2004344: 7f ff fe cc call 2003e74 <== NOT EXECUTED 2004348: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 200434c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004350: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004354: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004358: 16 bf ff 56 bge 20040b0 <== NOT EXECUTED 200435c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2004360: 22 bf ff f4 be,a 2004330 <== NOT EXECUTED 2004364: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004368: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 200436c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004370: 22 bf ff f0 be,a 2004330 <== NOT EXECUTED 2004374: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004378: 30 bf ff ea b,a 2004320 <== NOT EXECUTED rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { if (tty->termios.c_cc[VMIN]) { 200437c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004380: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004384: 02 80 00 0d be 20043b8 <== NOT EXECUTED 2004388: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 200438c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004390: 02 80 00 06 be 20043a8 <== NOT EXECUTED 2004394: 01 00 00 00 nop <== NOT EXECUTED 2004398: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 200439c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043a0: 12 80 00 09 bne 20043c4 <== NOT EXECUTED 20043a4: 01 00 00 00 nop <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 20043a8: 40 00 07 05 call 2005fbc <== NOT EXECUTED 20043ac: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); 20043b0: 10 bf ff e0 b 2004330 <== NOT EXECUTED 20043b4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 20043b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043bc: 02 bf ff 3e be 20040b4 <== NOT EXECUTED 20043c0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 20043c4: 40 00 04 01 call 20053c8 <== NOT EXECUTED 20043c8: 01 00 00 00 nop <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 20043cc: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED 20043d0: 90 22 00 11 sub %o0, %l1, %o0 <== NOT EXECUTED 20043d4: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 20043d8: 08 bf ff f4 bleu 20043a8 <== NOT EXECUTED 20043dc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 20043e0: 30 bf ff 35 b,a 20040b4 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 20043e4: 40 00 06 f6 call 2005fbc <== NOT EXECUTED 20043e8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 20043ec: 10 bf ff c1 b 20042f0 <== NOT EXECUTED 20043f0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 02003104 : * 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) { 2003104: 9d e3 bf a0 save %sp, -96, %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)) 2003108: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 200310c: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED 2003110: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED 2003114: 02 80 00 44 be 2003224 <== NOT EXECUTED 2003118: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 200311c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2003120: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2003124: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2003128: 22 80 00 50 be,a 2003268 <== NOT EXECUTED 200312c: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2003130: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED 2003134: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2003138: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 200313c: 22 80 00 30 be,a 20031fc <== NOT EXECUTED 2003140: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 2003144: 7f ff fb 0b call 2001d70 <== NOT EXECUTED 2003148: 01 00 00 00 nop <== NOT EXECUTED len = tty->t_dqlen; 200314c: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 <== NOT EXECUTED tty->t_dqlen = 0; 2003150: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003154: 7f ff fb 0b call 2001d80 <== NOT EXECUTED 2003158: 01 00 00 00 nop <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 200315c: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED 2003160: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED 2003164: 40 00 57 d1 call 20190a8 <.urem> <== NOT EXECUTED 2003168: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 200316c: 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; 2003170: d0 24 20 84 st %o0, [ %l0 + 0x84 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 2003174: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2003178: 02 80 00 55 be 20032cc <== NOT EXECUTED 200317c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 2003180: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2003184: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 2003188: 22 80 00 48 be,a 20032a8 <== NOT EXECUTED 200318c: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 <== NOT EXECUTED if ( tty->tty_snd.sw_pfn != NULL) { (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 2003190: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003194: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED 2003198: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED 200319c: 02 80 00 4f be 20032d8 <== NOT EXECUTED 20031a0: 01 00 00 00 nop <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 20031a4: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 20031a8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 20031ac: 18 80 00 1b bgu 2003218 <== NOT EXECUTED 20031b0: 01 00 00 00 nop <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 20031b4: f0 04 20 80 ld [ %l0 + 0x80 ], %i0 <== NOT EXECUTED 20031b8: b0 26 00 11 sub %i0, %l1, %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)) { 20031bc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031c0: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED 20031c4: 02 80 00 04 be 20031d4 <== NOT EXECUTED 20031c8: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 20031cc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20031d0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 20031d4: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 20031d8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20031dc: d0 04 20 10 ld [ %l0 + 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*/ 20031e0: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 20031e4: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED 20031e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20031ec: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20031f0: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED } return nToSend; } 20031f4: 81 c7 e0 08 ret <== NOT EXECUTED 20031f8: 81 e8 00 00 restore <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 20031fc: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2003200: 12 bf ff fd bne 20031f4 <== NOT EXECUTED 2003204: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2003208: 40 00 0a 7c call 2005bf8 <== NOT EXECUTED 200320c: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2003210: 81 c7 e0 08 ret <== NOT EXECUTED 2003214: 81 e8 00 00 restore <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 2003218: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 <== NOT EXECUTED 200321c: 10 bf ff e8 b 20031bc <== NOT EXECUTED 2003220: b0 26 00 11 sub %i0, %l1, %i0 <== NOT EXECUTED /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 2003224: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2003228: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 200322c: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 2003230: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003234: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2003238: 7f ff fa ce call 2001d70 <== NOT EXECUTED 200323c: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2003240: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2003244: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== 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--; 2003248: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 200324c: 82 10 60 02 or %g1, 2, %g1 <== 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--; 2003250: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2003254: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003258: 7f ff fa ca call 2001d80 <== NOT EXECUTED 200325c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2003260: 81 c7 e0 08 ret <== NOT EXECUTED 2003264: 81 e8 00 00 restore <== 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, 2003268: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 200326c: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED 2003270: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003274: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2003278: 7f ff fa be call 2001d70 <== NOT EXECUTED 200327c: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2003280: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2003284: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2003288: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 200328c: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2003290: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2003294: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003298: 7f ff fa ba call 2001d80 <== NOT EXECUTED 200329c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 20032a0: 81 c7 e0 08 ret <== NOT EXECUTED 20032a4: 81 e8 00 00 restore <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 20032a8: c0 24 20 94 clr [ %l0 + 0x94 ] <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 20032ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032b0: 02 bf ff d0 be 20031f0 <== NOT EXECUTED 20032b4: b0 10 20 00 clr %i0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 20032b8: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED 20032bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20032c0: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20032c4: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED 20032c8: 30 bf ff f6 b,a 20032a0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 20032cc: 40 00 0a 4b call 2005bf8 <== NOT EXECUTED 20032d0: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED 20032d4: 30 bf ff ab b,a 2003180 <== NOT EXECUTED /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 20032d8: 7f ff fa a6 call 2001d70 <== NOT EXECUTED 20032dc: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 20032e0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 20032e4: 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; 20032e8: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 20032ec: c4 24 20 94 st %g2, [ %l0 + 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; 20032f0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 20032f4: 7f ff fa a3 call 2001d80 <== NOT EXECUTED 20032f8: b0 10 20 00 clr %i0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20032fc: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED 2003300: 30 bf ff e8 b,a 20032a0 <== NOT EXECUTED 02004ee0 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 2004ee0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2004ee4: a0 07 bf f8 add %fp, -8, %l0 <== NOT EXECUTED 2004ee8: a2 07 bf ff add %fp, -1, %l1 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004eec: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004ef0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004ef4: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004ef8: 40 00 01 57 call 2005454 <== NOT EXECUTED 2004efc: 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) { 2004f00: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2004f04: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004f08: 32 80 00 16 bne,a 2004f60 <== NOT EXECUTED 2004f0c: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 2004f10: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED 2004f14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004f18: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 2004f1c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2004f20: 02 bf ff f3 be 2004eec <== NOT EXECUTED 2004f24: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 2004f28: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 2004f2c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2004f30: 7f ff f9 14 call 2003380 <== NOT EXECUTED 2004f34: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004f38: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004f3c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004f40: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004f44: 40 00 01 44 call 2005454 <== NOT EXECUTED 2004f48: 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) { 2004f4c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2004f50: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004f54: 22 bf ff f0 be,a 2004f14 <== NOT EXECUTED 2004f58: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 2004f5c: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004f60: 40 00 03 9d call 2005dd4 <== NOT EXECUTED 2004f64: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004f68: 10 bf ff e2 b 2004ef0 <== NOT EXECUTED 2004f6c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 020030ec : 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); 20030ec: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 20030f0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20030f4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20030f8: 40 00 09 38 call 20055d8 <== NOT EXECUTED 20030fc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2003100: 01 00 00 00 nop 02004e48 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 2004e48: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 2004e4c: 23 00 80 70 sethi %hi(0x201c000), %l1 <== NOT EXECUTED 2004e50: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED 2004e54: a2 14 61 64 or %l1, 0x164, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004e58: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004e5c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004e60: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004e64: 40 00 01 7c call 2005454 <== NOT EXECUTED 2004e68: 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) { 2004e6c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2004e70: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004e74: 12 80 00 16 bne 2004ecc <== NOT EXECUTED 2004e78: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004e7c: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2004e80: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004e84: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 2004e88: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2004e8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004e90: 02 80 00 04 be 2004ea0 <== NOT EXECUTED 2004e94: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2004e98: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004e9c: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 2004ea0: 7f ff f8 99 call 2003104 <== NOT EXECUTED 2004ea4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004ea8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004eac: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004eb0: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004eb4: 40 00 01 68 call 2005454 <== NOT EXECUTED 2004eb8: 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) { 2004ebc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2004ec0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004ec4: 02 bf ff ee be 2004e7c <== NOT EXECUTED 2004ec8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 2004ecc: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004ed0: 40 00 03 c1 call 2005dd4 <== NOT EXECUTED 2004ed4: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004ed8: 10 bf ff e1 b 2004e5c <== NOT EXECUTED 2004edc: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 02003ec0 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003ec0: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003ec4: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003ec8: 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; 2003ecc: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003ed0: 94 10 20 00 clr %o2 2003ed4: 40 00 07 02 call 2005adc 2003ed8: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 if (sc != RTEMS_SUCCESSFUL) 2003edc: a2 92 20 00 orcc %o0, 0, %l1 2003ee0: 12 80 00 0f bne 2003f1c 2003ee4: 03 00 80 70 sethi %hi(0x201c000), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2003ee8: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2003eec: 85 28 a0 05 sll %g2, 5, %g2 2003ef0: 82 10 61 64 or %g1, 0x164, %g1 2003ef4: 82 00 40 02 add %g1, %g2, %g1 2003ef8: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2003efc: 80 a0 60 00 cmp %g1, 0 2003f00: 02 80 00 09 be 2003f24 2003f04: 92 10 00 18 mov %i0, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2003f08: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003f0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003f10: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003f14: 40 00 07 39 call 2005bf8 <== NOT EXECUTED 2003f18: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 2003f1c: 81 c7 e0 08 ret <== NOT EXECUTED 2003f20: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 2003f24: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 2003f28: 80 88 60 01 btst 1, %g1 2003f2c: 22 80 00 16 be,a 2003f84 2003f30: d0 1e 20 10 ldd [ %i0 + 0x10 ], %o0 <== NOT EXECUTED uint32_t count = args->count; 2003f34: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 char *buffer = args->buffer; 2003f38: e8 06 20 10 ld [ %i0 + 0x10 ], %l4 while (count--) 2003f3c: 80 a4 e0 00 cmp %l3, 0 2003f40: a4 10 20 00 clr %l2 2003f44: 02 80 00 0a be 2003f6c 2003f48: 82 10 20 00 clr %g1 oproc (*buffer++, tty); 2003f4c: d0 0d 00 12 ldub [ %l4 + %l2 ], %o0 2003f50: 7f ff fe 2f call 200380c 2003f54: 92 10 00 10 mov %l0, %o1 2003f58: a4 04 a0 01 inc %l2 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2003f5c: 80 a4 80 13 cmp %l2, %l3 2003f60: 32 bf ff fc bne,a 2003f50 2003f64: d0 0d 00 12 ldub [ %l4 + %l2 ], %o0 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2003f68: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2003f6c: c2 26 20 1c st %g1, [ %i0 + 0x1c ] } rtems_semaphore_release (tty->osem); 2003f70: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2003f74: 40 00 07 21 call 2005bf8 2003f78: b0 10 00 11 mov %l1, %i0 return sc; } 2003f7c: 81 c7 e0 08 ret 2003f80: 81 e8 00 00 restore while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2003f84: 7f ff fd d3 call 20036d0 <== NOT EXECUTED 2003f88: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 2003f8c: 10 bf ff f8 b 2003f6c <== NOT EXECUTED 2003f90: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== NOT EXECUTED 020077e8 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 20077e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 20077ec: 29 08 00 00 sethi %hi(0x20000000), %l4 <== NOT EXECUTED 20077f0: a8 8e 00 14 andcc %i0, %l4, %l4 <== NOT EXECUTED 20077f4: 02 80 00 0f be 2007830 <== NOT EXECUTED 20077f8: 05 00 80 a0 sethi %hi(0x2028000), %g2 <== NOT EXECUTED { if (rtems_panic_in_progress++) 20077fc: c6 00 a0 50 ld [ %g2 + 0x50 ], %g3 ! 2028050 <== NOT EXECUTED 2007800: 82 00 e0 01 add %g3, 1, %g1 <== NOT EXECUTED 2007804: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2007808: 02 80 00 07 be 2007824 <== NOT EXECUTED 200780c: c2 20 a0 50 st %g1, [ %g2 + 0x50 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2007810: 03 00 80 a0 sethi %hi(0x2028000), %g1 <== NOT EXECUTED 2007814: c6 00 62 30 ld [ %g1 + 0x230 ], %g3 ! 2028230 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 2007818: 86 00 e0 01 inc %g3 <== NOT EXECUTED 200781c: c6 20 62 30 st %g3, [ %g1 + 0x230 ] <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 2007820: c2 00 a0 50 ld [ %g2 + 0x50 ], %g1 <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 2007824: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2007828: 14 80 00 3c bg 2007918 <== NOT EXECUTED 200782c: a4 10 20 00 clr %l2 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 2007830: 21 00 80 9d sethi %hi(0x2027400), %l0 <== NOT EXECUTED 2007834: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 ! 20277d8 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 2007838: 27 1c 00 00 sethi %hi(0x70000000), %l3 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 200783c: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2007840: 40 00 3e 30 call 2017100 <== NOT EXECUTED 2007844: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007848: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 200784c: 80 8e 00 01 btst %i0, %g1 <== NOT EXECUTED 2007850: 12 80 00 45 bne 2007964 <== NOT EXECUTED 2007854: a6 2e 00 13 andn %i0, %l3, %l3 <== 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); 2007858: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 <== NOT EXECUTED 200785c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007860: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007864: 40 00 55 a1 call 201cee8 <== NOT EXECUTED 2007868: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 200786c: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2007870: 12 80 00 31 bne 2007934 <== NOT EXECUTED 2007874: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 2007878: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200787c: 02 80 00 12 be 20078c4 <== NOT EXECUTED 2007880: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 2007884: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007888: 04 80 00 09 ble 20078ac <== NOT EXECUTED 200788c: 13 00 80 96 sethi %hi(0x2025800), %o1 <== NOT EXECUTED 2007890: 40 00 42 43 call 201819c <== NOT EXECUTED 2007894: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007898: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 200789c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20078a0: 12 80 00 35 bne 2007974 <== NOT EXECUTED 20078a4: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 20078a8: 13 00 80 96 sethi %hi(0x2025800), %o1 <== NOT EXECUTED 20078ac: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20078b0: 92 12 61 88 or %o1, 0x188, %o1 <== NOT EXECUTED 20078b4: 40 00 3e e7 call 2017450 <== NOT EXECUTED 20078b8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 20078bc: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 20078c0: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 <== NOT EXECUTED 20078c4: 13 00 80 95 sethi %hi(0x2025400), %o1 <== NOT EXECUTED 20078c8: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20078cc: 40 00 3e e1 call 2017450 <== NOT EXECUTED 20078d0: 92 12 63 d0 or %o1, 0x3d0, %o1 <== NOT EXECUTED (void) fflush(stderr); 20078d4: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %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"); 20078d8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED (void) fflush(stderr); 20078dc: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20078e0: 40 00 3e 08 call 2017100 <== NOT EXECUTED 20078e4: a4 04 c0 12 add %l3, %l2, %l2 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 20078e8: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 20078ec: 80 8e 00 01 btst %i0, %g1 <== NOT EXECUTED 20078f0: 02 80 00 0a be 2007918 <== NOT EXECUTED 20078f4: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 20078f8: 22 80 00 0a be,a 2007920 <== NOT EXECUTED 20078fc: 13 00 80 96 sethi %hi(0x2025800), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 2007900: 13 00 80 96 sethi %hi(0x2025800), %o1 <== NOT EXECUTED 2007904: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007908: 40 00 00 32 call 20079d0 <== NOT EXECUTED 200790c: 92 12 61 a0 or %o1, 0x1a0, %o1 <== NOT EXECUTED _exit(local_errno); 2007910: 40 00 03 5e call 2008688 <_exit> <== NOT EXECUTED 2007914: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 2007918: 81 c7 e0 08 ret <== NOT EXECUTED 200791c: 91 e8 00 12 restore %g0, %l2, %o0 <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 2007920: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007924: 40 00 00 2b call 20079d0 <== NOT EXECUTED 2007928: 92 12 61 b8 or %o1, 0x1b8, %o1 <== NOT EXECUTED abort(); 200792c: 40 00 3c de call 2016ca4 <== NOT EXECUTED 2007930: 01 00 00 00 nop <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007934: 03 00 80 9d sethi %hi(0x2027400), %g1 <== NOT EXECUTED 2007938: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 ! 20277d8 <_impure_ptr> <== NOT EXECUTED 200793c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007940: 7f ff ff a3 call 20077cc <== NOT EXECUTED 2007944: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007948: 13 00 80 96 sethi %hi(0x2025800), %o1 <== NOT EXECUTED 200794c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007950: 92 12 61 68 or %o1, 0x168, %o1 <== NOT EXECUTED 2007954: 40 00 3e bf call 2017450 <== NOT EXECUTED 2007958: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 200795c: 10 bf ff c7 b 2007878 <== NOT EXECUTED 2007960: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; 2007964: 40 00 3c de call 2016cdc <__errno> <== NOT EXECUTED 2007968: 01 00 00 00 nop <== NOT EXECUTED 200796c: 10 bf ff bb b 2007858 <== NOT EXECUTED 2007970: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 2007974: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007978: 40 00 42 09 call 201819c <== NOT EXECUTED 200797c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007980: 13 00 80 96 sethi %hi(0x2025800), %o1 <== NOT EXECUTED 2007984: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007988: 92 12 61 78 or %o1, 0x178, %o1 <== NOT EXECUTED 200798c: 40 00 3e b1 call 2017450 <== NOT EXECUTED 2007990: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) 2007994: 10 bf ff cb b 20078c0 <== NOT EXECUTED 2007998: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED 02029094 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2029094: 9d e3 bf a0 save %sp, -96, %sp 2029098: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 202909c: 2b 00 81 a8 sethi %hi(0x206a000), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 20290a0: 29 00 81 a8 sethi %hi(0x206a000), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 20290a4: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 20290a8: aa 15 61 20 or %l5, 0x120, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 20290ac: a8 15 21 10 or %l4, 0x110, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 20290b0: a4 10 20 00 clr %l2 20290b4: a2 10 20 00 clr %l1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 20290b8: c2 06 20 04 ld [ %i0 + 4 ], %g1 20290bc: 82 00 7f ff add %g1, -1, %g1 20290c0: 80 a0 60 00 cmp %g1, 0 20290c4: 06 80 00 24 bl 2029154 20290c8: c2 26 20 04 st %g1, [ %i0 + 4 ] 20290cc: c2 06 00 00 ld [ %i0 ], %g1 20290d0: e0 08 40 00 ldub [ %g1 ], %l0 20290d4: 84 00 60 01 add %g1, 1, %g2 if (c == ':') 20290d8: 80 a4 20 3a cmp %l0, 0x3a 20290dc: 02 80 00 25 be 2029170 20290e0: c4 26 00 00 st %g2, [ %i0 ] break; if (sign == 0) { 20290e4: 80 a4 a0 00 cmp %l2, 0 20290e8: 32 80 00 06 bne,a 2029100 20290ec: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 20290f0: 80 a4 20 2d cmp %l0, 0x2d 20290f4: 02 80 00 30 be 20291b4 20290f8: a4 10 20 01 mov 1, %l2 limit++; continue; } sign = 1; } if (!isdigit(c)) 20290fc: c2 05 00 00 ld [ %l4 ], %g1 2029100: 82 00 40 10 add %g1, %l0, %g1 2029104: c2 08 60 01 ldub [ %g1 + 1 ], %g1 2029108: 80 88 60 04 btst 4, %g1 202910c: 02 80 00 28 be 20291ac 2029110: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 2029114: 40 00 cd d4 call 205c864 <.udiv> 2029118: 92 10 20 0a mov 0xa, %o1 202911c: 80 a4 40 08 cmp %l1, %o0 2029120: 18 80 00 23 bgu 20291ac 2029124: 01 00 00 00 nop 2029128: 02 80 00 1b be 2029194 202912c: a0 04 3f d0 add %l0, -48, %l0 || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 2029130: 83 2c 60 03 sll %l1, 3, %g1 2029134: a3 2c 60 01 sll %l1, 1, %l1 2029138: a2 04 40 01 add %l1, %g1, %l1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 202913c: c2 06 20 04 ld [ %i0 + 4 ], %g1 return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 2029140: a2 04 00 11 add %l0, %l1, %l1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2029144: 82 00 7f ff add %g1, -1, %g1 2029148: 80 a0 60 00 cmp %g1, 0 202914c: 16 bf ff e0 bge 20290cc 2029150: c2 26 20 04 st %g1, [ %i0 + 4 ] 2029154: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 2029158: 40 00 82 6b call 2049b04 <__srget_r> <== NOT EXECUTED 202915c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2029160: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED if (c == ':') 2029164: 80 a4 20 3a cmp %l0, 0x3a <== NOT EXECUTED 2029168: 12 bf ff e0 bne 20290e8 <== NOT EXECUTED 202916c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 2029170: 80 a4 a0 00 cmp %l2, 0 2029174: 02 80 00 0e be 20291ac 2029178: 90 10 00 12 mov %l2, %o0 return 0; *val = i * sign; 202917c: 92 10 00 11 mov %l1, %o1 2029180: 40 00 cd 7f call 205c77c <.umul> 2029184: b0 10 20 01 mov 1, %i0 2029188: d0 26 40 00 st %o0, [ %i1 ] return 1; 202918c: 81 c7 e0 08 ret 2029190: 81 e8 00 00 restore sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 2029194: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2029198: 40 00 ce 5f call 205cb14 <.urem> <== NOT EXECUTED 202919c: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 20291a0: 80 a4 00 08 cmp %l0, %o0 <== NOT EXECUTED 20291a4: 08 bf ff e4 bleu 2029134 <== NOT EXECUTED 20291a8: 83 2c 60 03 sll %l1, 3, %g1 <== NOT EXECUTED } if (sign == 0) return 0; *val = i * sign; return 1; } 20291ac: 81 c7 e0 08 ret <== NOT EXECUTED 20291b0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 20291b4: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 20291b8: 10 bf ff c0 b 20290b8 <== NOT EXECUTED 20291bc: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED 020291c0 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 20291c0: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 20291c4: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 20291c8: 21 00 81 a8 sethi %hi(0x206a000), %l0 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 20291cc: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 20291d0: 10 80 00 19 b 2029234 20291d4: a0 14 21 20 or %l0, 0x120, %l0 20291d8: c2 06 00 00 ld [ %i0 ], %g1 20291dc: d0 08 40 00 ldub [ %g1 ], %o0 20291e0: 84 00 60 01 add %g1, 1, %g2 if (c == ':') { 20291e4: 80 a2 20 3a cmp %o0, 0x3a 20291e8: 02 80 00 1e be 2029260 20291ec: c4 26 00 00 st %g2, [ %i0 ] if (nlFlag) return 0; break; } if (c == '\n') { 20291f0: 80 a2 20 0a cmp %o0, 0xa 20291f4: 02 80 00 28 be 2029294 20291f8: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) return 0; break; } if (c == EOF) 20291fc: 02 80 00 29 be 20292a0 2029200: 01 00 00 00 nop return 0; if (*nleft < 2) 2029204: c2 06 c0 00 ld [ %i3 ], %g1 2029208: 80 a0 60 01 cmp %g1, 1 202920c: 08 80 00 25 bleu 20292a0 2029210: 01 00 00 00 nop return 0; **bufp = c; 2029214: c2 06 80 00 ld [ %i2 ], %g1 2029218: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 202921c: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 2029220: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2029224: 84 00 a0 01 inc %g2 --(*nleft); 2029228: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 202922c: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 2029230: c2 26 c0 00 st %g1, [ %i3 ] { int c; *name = *bufp; for (;;) { c = getc(fp); 2029234: c2 06 20 04 ld [ %i0 + 4 ], %g1 2029238: 82 00 7f ff add %g1, -1, %g1 202923c: 80 a0 60 00 cmp %g1, 0 2029240: 16 bf ff e6 bge 20291d8 2029244: c2 26 20 04 st %g1, [ %i0 + 4 ] 2029248: d0 04 00 00 ld [ %l0 ], %o0 202924c: 40 00 82 2e call 2049b04 <__srget_r> 2029250: 92 10 00 18 mov %i0, %o1 if (c == ':') { 2029254: 80 a2 20 3a cmp %o0, 0x3a 2029258: 12 bf ff e7 bne 20291f4 202925c: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 2029260: 80 a7 20 00 cmp %i4, 0 2029264: 12 80 00 0f bne 20292a0 2029268: 01 00 00 00 nop return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 202926c: c2 06 80 00 ld [ %i2 ], %g1 2029270: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 2029274: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 2029278: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 202927c: 84 00 a0 01 inc %g2 --(*nleft); 2029280: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2029284: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 2029288: c2 26 c0 00 st %g1, [ %i3 ] return 1; 202928c: 81 c7 e0 08 ret 2029290: 91 e8 20 01 restore %g0, 1, %o0 if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 2029294: 80 a7 20 00 cmp %i4, 0 2029298: 32 bf ff f6 bne,a 2029270 202929c: c2 06 80 00 ld [ %i2 ], %g1 } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; } 20292a0: 81 c7 e0 08 ret <== NOT EXECUTED 20292a4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020292a8 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 20292a8: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 20292ac: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 20292b0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20292b4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 20292b8: a2 07 a0 4c add %fp, 0x4c, %l1 20292bc: a0 07 a0 50 add %fp, 0x50, %l0 20292c0: 90 10 00 18 mov %i0, %o0 20292c4: 92 10 00 19 mov %i1, %o1 20292c8: 94 10 00 11 mov %l1, %o2 20292cc: 7f ff ff bd call 20291c0 20292d0: 96 10 00 10 mov %l0, %o3 20292d4: 80 a2 20 00 cmp %o0, 0 20292d8: 12 80 00 04 bne 20292e8 20292dc: 90 10 00 18 mov %i0, %o0 grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; } 20292e0: 81 c7 e0 08 ret <== NOT EXECUTED 20292e4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 20292e8: 92 06 60 04 add %i1, 4, %o1 20292ec: 94 10 00 11 mov %l1, %o2 20292f0: 96 10 00 10 mov %l0, %o3 20292f4: 7f ff ff b3 call 20291c0 20292f8: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 20292fc: 80 a2 20 00 cmp %o0, 0 2029300: 02 bf ff f8 be 20292e0 2029304: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 2029308: 7f ff ff 63 call 2029094 202930c: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2029310: 80 a2 20 00 cmp %o0, 0 2029314: 02 bf ff f3 be 20292e0 2029318: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 202931c: 94 10 00 11 mov %l1, %o2 2029320: 96 10 00 10 mov %l0, %o3 2029324: 92 07 bf f8 add %fp, -8, %o1 2029328: 7f ff ff a6 call 20291c0 202932c: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2029330: 80 a2 20 00 cmp %o0, 0 2029334: 02 bf ff eb be 20292e0 2029338: da 07 bf f8 ld [ %fp + -8 ], %o5 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 202933c: c2 07 bf fc ld [ %fp + -4 ], %g1 /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2029340: 84 10 00 0d mov %o5, %g2 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; 2029344: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2029348: c6 0b 40 00 ldub [ %o5 ], %g3 202934c: 88 10 20 01 mov 1, %g4 2029350: 83 28 e0 18 sll %g3, 0x18, %g1 2029354: 80 a0 60 00 cmp %g1, 0 2029358: 02 80 00 0e be 2029390 202935c: 86 10 20 17 mov 0x17, %g3 2029360: 84 00 a0 01 inc %g2 2029364: c6 08 80 00 ldub [ %g2 ], %g3 if(*cp == ',') 2029368: 83 38 60 18 sra %g1, 0x18, %g1 memcount++; 202936c: 82 18 60 2c xor %g1, 0x2c, %g1 2029370: 80 a0 00 01 cmp %g0, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2029374: 83 28 e0 18 sll %g3, 0x18, %g1 if(*cp == ',') memcount++; 2029378: 88 61 3f ff subx %g4, -1, %g4 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 202937c: 80 a0 60 00 cmp %g1, 0 2029380: 32 bf ff f9 bne,a 2029364 2029384: 84 00 a0 01 inc %g2 2029388: 87 29 20 02 sll %g4, 2, %g3 202938c: 86 00 e0 13 add %g3, 0x13, %g3 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 2029390: c2 07 a0 50 ld [ %fp + 0x50 ], %g1 2029394: 80 a0 40 03 cmp %g1, %g3 2029398: 0a bf ff d2 bcs 20292e0 202939c: c4 07 a0 4c ld [ %fp + 0x4c ], %g2 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20293a0: 86 10 20 01 mov 1, %g3 /* * 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); 20293a4: 84 00 a0 0f add %g2, 0xf, %g2 20293a8: 84 08 bf f0 and %g2, -16, %g2 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 20293ac: da 20 80 00 st %o5, [ %g2 ] for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20293b0: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * 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); 20293b4: c4 26 60 0c st %g2, [ %i1 + 0xc ] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20293b8: c4 08 40 00 ldub [ %g1 ], %g2 20293bc: 88 10 20 04 mov 4, %g4 20293c0: 85 28 a0 18 sll %g2, 0x18, %g2 20293c4: 80 a0 a0 00 cmp %g2, 0 20293c8: 12 80 00 09 bne 20293ec 20293cc: 82 00 60 01 inc %g1 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 20293d0: 10 80 00 13 b 202941c <== NOT EXECUTED 20293d4: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20293d8: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 20293dc: 85 28 a0 18 sll %g2, 0x18, %g2 20293e0: 80 a0 a0 00 cmp %g2, 0 20293e4: 02 80 00 0c be 2029414 20293e8: 82 00 60 01 inc %g1 if(*cp == ',') { 20293ec: 85 38 a0 18 sra %g2, 0x18, %g2 20293f0: 80 a0 a0 2c cmp %g2, 0x2c 20293f4: 32 bf ff fa bne,a 20293dc 20293f8: c4 08 40 00 ldub [ %g1 ], %g2 *cp = '\0'; 20293fc: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 2029400: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 2029404: 85 28 e0 02 sll %g3, 2, %g2 <== NOT EXECUTED 2029408: 86 00 e0 01 inc %g3 <== NOT EXECUTED 202940c: 10 bf ff f3 b 20293d8 <== NOT EXECUTED 2029410: c2 21 00 02 st %g1, [ %g4 + %g2 ] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2029414: 89 28 e0 02 sll %g3, 2, %g4 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 2029418: c2 06 60 0c ld [ %i1 + 0xc ], %g1 202941c: c0 20 40 04 clr [ %g1 + %g4 ] return 1; 2029420: 81 c7 e0 08 ret 2029424: 91 e8 20 01 restore %g0, 1, %o0 02029474 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2029474: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029478: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 202947c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2029480: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029484: a2 07 a0 4c add %fp, 0x4c, %l1 2029488: a0 07 a0 50 add %fp, 0x50, %l0 202948c: 90 10 00 18 mov %i0, %o0 2029490: 92 10 00 19 mov %i1, %o1 2029494: 94 10 00 11 mov %l1, %o2 2029498: 7f ff ff 4a call 20291c0 202949c: 96 10 00 10 mov %l0, %o3 20294a0: 80 a2 20 00 cmp %o0, 0 20294a4: 12 80 00 04 bne 20294b4 20294a8: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; } 20294ac: 81 c7 e0 08 ret <== NOT EXECUTED 20294b0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 20294b4: 92 06 60 04 add %i1, 4, %o1 20294b8: 94 10 00 11 mov %l1, %o2 20294bc: 96 10 00 10 mov %l0, %o3 20294c0: 7f ff ff 40 call 20291c0 20294c4: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20294c8: 80 a2 20 00 cmp %o0, 0 20294cc: 02 bf ff f8 be 20294ac 20294d0: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 20294d4: 7f ff fe f0 call 2029094 20294d8: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20294dc: 80 a2 20 00 cmp %o0, 0 20294e0: 02 bf ff f3 be 20294ac 20294e4: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 20294e8: 7f ff fe eb call 2029094 20294ec: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20294f0: 80 a2 20 00 cmp %o0, 0 20294f4: 02 bf ff ee be 20294ac 20294f8: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 20294fc: 92 06 60 0c add %i1, 0xc, %o1 2029500: 94 10 00 11 mov %l1, %o2 2029504: 96 10 00 10 mov %l0, %o3 2029508: 7f ff ff 2e call 20291c0 202950c: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029510: 80 a2 20 00 cmp %o0, 0 2029514: 02 bf ff e6 be 20294ac 2029518: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) 202951c: 92 06 60 10 add %i1, 0x10, %o1 2029520: 94 10 00 11 mov %l1, %o2 2029524: 96 10 00 10 mov %l0, %o3 2029528: 7f ff ff 26 call 20291c0 202952c: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029530: 80 a2 20 00 cmp %o0, 0 2029534: 02 bf ff de be 20294ac 2029538: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) 202953c: 92 06 60 14 add %i1, 0x14, %o1 2029540: 94 10 00 11 mov %l1, %o2 2029544: 96 10 00 10 mov %l0, %o3 2029548: 7f ff ff 1e call 20291c0 202954c: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029550: 80 a2 20 00 cmp %o0, 0 2029554: 02 bf ff d6 be 20294ac 2029558: 90 10 00 18 mov %i0, %o0 || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) 202955c: 94 10 00 11 mov %l1, %o2 2029560: 96 10 00 10 mov %l0, %o3 2029564: 92 06 60 18 add %i1, 0x18, %o1 2029568: 7f ff ff 16 call 20291c0 202956c: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029570: 80 a2 20 00 cmp %o0, 0 2029574: 02 bf ff ce be 20294ac 2029578: c2 07 bf fc ld [ %fp + -4 ], %g1 || !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; 202957c: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 2029580: c2 07 bf f8 ld [ %fp + -8 ], %g1 2029584: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 2029588: 81 c7 e0 08 ret 202958c: 91 e8 20 01 restore %g0, 1, %o0 02008d74 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 2008d74: 9d e3 bf 98 save %sp, -104, %sp * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 2008d78: 90 10 00 19 mov %i1, %o0 2008d7c: 40 00 18 e5 call 200f110 <_POSIX_Absolute_timeout_to_ticks> 2008d80: 92 07 bf fc add %fp, -4, %o1 if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 2008d84: 80 a2 20 03 cmp %o0, 3 2008d88: 02 80 00 07 be 2008da4 2008d8c: d4 07 bf fc ld [ %fp + -4 ], %o2 do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 2008d90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2008d94: 40 00 1b cd call 200fcc8 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED 2008d98: 92 10 20 00 clr %o1 <== NOT EXECUTED break; } } return lock_status; } 2008d9c: 81 c7 e0 08 ret <== NOT EXECUTED 2008da0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 2008da4: 90 10 00 18 mov %i0, %o0 2008da8: 40 00 1b c8 call 200fcc8 <_POSIX_Semaphore_Wait_support> 2008dac: 92 10 20 01 mov 1, %o1 break; } } return lock_status; } 2008db0: 81 c7 e0 08 ret 2008db4: 91 e8 00 08 restore %g0, %o0, %o0 02029020 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 2029020: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 2029024: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 2029028: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 202902c: 81 c3 e0 08 retl <== NOT EXECUTED 2029030: 90 10 20 00 clr %o0 <== NOT EXECUTED 020296c8 : return NULL; return &grent; } void setgrent(void) { 20296c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 20296cc: 7f ff ff c4 call 20295dc <== NOT EXECUTED 20296d0: 21 00 81 b5 sethi %hi(0x206d400), %l0 <== NOT EXECUTED if (group_fp != NULL) 20296d4: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 ! 206d464 <== NOT EXECUTED 20296d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20296dc: 22 80 00 05 be,a 20296f0 <== NOT EXECUTED 20296e0: 11 00 81 7b sethi %hi(0x205ec00), %o0 <== NOT EXECUTED fclose(group_fp); 20296e4: 40 00 6b 90 call 2044524 <== NOT EXECUTED 20296e8: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 20296ec: 11 00 81 7b sethi %hi(0x205ec00), %o0 <== NOT EXECUTED 20296f0: 13 00 81 a3 sethi %hi(0x2068c00), %o1 <== NOT EXECUTED 20296f4: 90 12 22 28 or %o0, 0x228, %o0 <== NOT EXECUTED 20296f8: 40 00 6d da call 2044e60 <== NOT EXECUTED 20296fc: 92 12 63 e8 or %o1, 0x3e8, %o1 <== NOT EXECUTED 2029700: d0 24 20 64 st %o0, [ %l0 + 0x64 ] <== NOT EXECUTED } 2029704: 81 c7 e0 08 ret <== NOT EXECUTED 2029708: 81 e8 00 00 restore <== NOT EXECUTED 020298c8 : return NULL; return &pwent; } void setpwent(void) { 20298c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 20298cc: 7f ff ff 44 call 20295dc <== NOT EXECUTED 20298d0: 21 00 81 b4 sethi %hi(0x206d000), %l0 <== NOT EXECUTED if (passwd_fp != NULL) 20298d4: d0 04 23 7c ld [ %l0 + 0x37c ], %o0 ! 206d37c <== NOT EXECUTED 20298d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20298dc: 22 80 00 05 be,a 20298f0 <== NOT EXECUTED 20298e0: 11 00 81 7b sethi %hi(0x205ec00), %o0 <== NOT EXECUTED fclose(passwd_fp); 20298e4: 40 00 6b 10 call 2044524 <== NOT EXECUTED 20298e8: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 20298ec: 11 00 81 7b sethi %hi(0x205ec00), %o0 <== NOT EXECUTED 20298f0: 13 00 81 a3 sethi %hi(0x2068c00), %o1 <== NOT EXECUTED 20298f4: 90 12 21 70 or %o0, 0x170, %o0 <== NOT EXECUTED 20298f8: 40 00 6d 5a call 2044e60 <== NOT EXECUTED 20298fc: 92 12 63 e8 or %o1, 0x3e8, %o1 <== NOT EXECUTED 2029900: d0 24 23 7c st %o0, [ %l0 + 0x37c ] <== NOT EXECUTED } 2029904: 81 c7 e0 08 ret <== NOT EXECUTED 2029908: 81 e8 00 00 restore <== NOT EXECUTED 020062d4 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 20062d4: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED 20062d8: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 <== NOT EXECUTED 20062dc: d0 30 60 30 sth %o0, [ %g1 + 0x30 ] <== NOT EXECUTED return 0; } 20062e0: 81 c3 e0 08 retl <== NOT EXECUTED 20062e4: 90 10 20 00 clr %o0 <== NOT EXECUTED 020084c8 : #include int sigsuspend( const sigset_t *sigmask ) { 20084c8: 9d e3 bf 98 save %sp, -104, %sp int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 20084cc: 90 10 20 01 mov 1, %o0 20084d0: 92 10 00 18 mov %i0, %o1 20084d4: a0 07 bf fc add %fp, -4, %l0 20084d8: 7f ff ff f1 call 200849c 20084dc: 94 10 00 10 mov %l0, %o2 (void) sigfillset( &all_signals ); 20084e0: a2 07 bf f8 add %fp, -8, %l1 20084e4: 7f ff ff b7 call 20083c0 20084e8: 90 10 00 11 mov %l1, %o0 status = sigtimedwait( &all_signals, NULL, NULL ); 20084ec: 90 10 00 11 mov %l1, %o0 20084f0: 92 10 20 00 clr %o1 20084f4: 40 00 00 2b call 20085a0 20084f8: 94 10 20 00 clr %o2 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 20084fc: 92 10 00 10 mov %l0, %o1 status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); (void) sigfillset( &all_signals ); status = sigtimedwait( &all_signals, NULL, NULL ); 2008500: a2 10 00 08 mov %o0, %l1 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 2008504: 94 10 20 00 clr %o2 2008508: 7f ff ff e5 call 200849c 200850c: 90 10 20 00 clr %o0 /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) 2008510: 80 a4 7f ff cmp %l1, -1 2008514: 12 80 00 05 bne 2008528 2008518: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINTR ); return status; } 200851c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2008520: 81 c7 e0 08 ret <== NOT EXECUTED 2008524: 81 e8 00 00 restore <== NOT EXECUTED /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) rtems_set_errno_and_return_minus_one( EINTR ); 2008528: 40 00 29 1e call 20129a0 <__errno> 200852c: b0 10 3f ff mov -1, %i0 2008530: 82 10 20 04 mov 4, %g1 2008534: c2 22 00 00 st %g1, [ %o0 ] 2008538: 81 c7 e0 08 ret 200853c: 81 e8 00 00 restore 02003e74 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2003e74: 9d e3 bf a0 save %sp, -96, %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)) { 2003e78: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003e7c: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 2003e80: 32 80 00 05 bne,a 2003e94 <== NOT EXECUTED 2003e84: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); i = iproc (c, tty); rtems_semaphore_release (tty->osem); } else { i = iproc (c, tty); 2003e88: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 2003e8c: 7f ff ff 7a call 2003c74 <== NOT EXECUTED 2003e90: 81 e8 00 00 restore <== NOT EXECUTED /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003e94: 94 10 20 00 clr %o2 <== NOT EXECUTED 2003e98: 40 00 07 11 call 2005adc <== NOT EXECUTED 2003e9c: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 2003ea0: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 2003ea4: 7f ff ff 74 call 2003c74 <== NOT EXECUTED 2003ea8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003eac: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003eb0: 40 00 07 52 call 2005bf8 <== NOT EXECUTED 2003eb4: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2003eb8: 81 c7 e0 08 ret <== NOT EXECUTED 2003ebc: 81 e8 00 00 restore <== NOT EXECUTED 02007afc : int _STAT_NAME( const char *path, struct stat *buf ) { 2007afc: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2007b00: 80 a6 60 00 cmp %i1, 0 2007b04: 02 80 00 34 be 2007bd4 2007b08: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 2007b0c: 40 01 0d 6d call 204b0c0 2007b10: 90 10 00 18 mov %i0, %o0 2007b14: a0 07 bf ec add %fp, -20, %l0 2007b18: 92 10 00 08 mov %o0, %o1 2007b1c: 94 10 20 00 clr %o2 2007b20: 90 10 00 18 mov %i0, %o0 2007b24: 96 10 00 10 mov %l0, %o3 2007b28: 98 10 20 01 mov 1, %o4 2007b2c: 7f ff f9 5d call 20060a0 2007b30: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2007b34: 80 a2 20 00 cmp %o0, 0 2007b38: 12 80 00 25 bne 2007bcc 2007b3c: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 2007b40: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2007b44: 80 a0 a0 00 cmp %g2, 0 2007b48: 02 80 00 29 be 2007bec 2007b4c: 92 10 00 19 mov %i1, %o1 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 2007b50: c0 26 40 00 clr [ %i1 ] 2007b54: c0 26 60 04 clr [ %i1 + 4 ] 2007b58: c0 26 60 08 clr [ %i1 + 8 ] 2007b5c: c0 26 60 0c clr [ %i1 + 0xc ] 2007b60: c0 26 60 10 clr [ %i1 + 0x10 ] 2007b64: c0 26 60 14 clr [ %i1 + 0x14 ] 2007b68: c0 26 60 18 clr [ %i1 + 0x18 ] 2007b6c: c0 26 60 1c clr [ %i1 + 0x1c ] 2007b70: c0 26 60 20 clr [ %i1 + 0x20 ] 2007b74: c0 26 60 24 clr [ %i1 + 0x24 ] 2007b78: c0 26 60 28 clr [ %i1 + 0x28 ] 2007b7c: c0 26 60 2c clr [ %i1 + 0x2c ] 2007b80: c0 26 60 30 clr [ %i1 + 0x30 ] 2007b84: c0 26 60 34 clr [ %i1 + 0x34 ] 2007b88: c0 26 60 38 clr [ %i1 + 0x38 ] 2007b8c: c0 26 60 3c clr [ %i1 + 0x3c ] 2007b90: c0 26 60 40 clr [ %i1 + 0x40 ] 2007b94: c0 26 60 44 clr [ %i1 + 0x44 ] status = (*loc.handlers->fstat_h)( &loc, buf ); 2007b98: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2007b9c: 9f c0 40 00 call %g1 2007ba0: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2007ba4: c2 07 bf f8 ld [ %fp + -8 ], %g1 2007ba8: 80 a0 60 00 cmp %g1, 0 2007bac: 02 80 00 08 be 2007bcc 2007bb0: b0 10 00 08 mov %o0, %i0 2007bb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007bb8: 80 a0 60 00 cmp %g1, 0 2007bbc: 02 80 00 1a be 2007c24 2007bc0: 01 00 00 00 nop 2007bc4: 9f c0 40 00 call %g1 2007bc8: 90 10 00 10 mov %l0, %o0 return status; } 2007bcc: 81 c7 e0 08 ret 2007bd0: 81 e8 00 00 restore /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 2007bd4: 40 00 f1 fc call 20443c4 <__errno> 2007bd8: b0 10 3f ff mov -1, %i0 2007bdc: 82 10 20 0e mov 0xe, %g1 2007be0: c2 22 00 00 st %g1, [ %o0 ] 2007be4: 81 c7 e0 08 ret 2007be8: 81 e8 00 00 restore 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 2007bec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2007bf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007bf4: 02 80 00 08 be 2007c14 <== NOT EXECUTED 2007bf8: 01 00 00 00 nop <== NOT EXECUTED 2007bfc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007c00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007c04: 02 80 00 04 be 2007c14 <== NOT EXECUTED 2007c08: 01 00 00 00 nop <== NOT EXECUTED 2007c0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007c10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007c14: 40 00 f1 ec call 20443c4 <__errno> <== NOT EXECUTED 2007c18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007c1c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2007c20: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2007c24: 81 c7 e0 08 ret <== NOT EXECUTED 2007c28: 81 e8 00 00 restore <== NOT EXECUTED 0202a780 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 202a780: 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, strlen( path ), 0x0, &loc, true ) ) 202a784: 40 00 82 4f call 204b0c0 <== NOT EXECUTED 202a788: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202a78c: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 202a790: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 202a794: 94 10 20 00 clr %o2 <== NOT EXECUTED 202a798: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202a79c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 202a7a0: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 202a7a4: 7f ff 6e 3f call 20060a0 <== NOT EXECUTED 202a7a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a7ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202a7b0: 12 80 00 23 bne 202a83c <== NOT EXECUTED 202a7b4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; 202a7b8: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 202a7bc: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 202a7c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a7c4: 02 80 00 20 be 202a844 <== NOT EXECUTED 202a7c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 202a7cc: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 202a7d0: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 202a7d4: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 202a7d8: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 202a7dc: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 202a7e0: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 202a7e4: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 202a7e8: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 202a7ec: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 202a7f0: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 202a7f4: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 202a7f8: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 202a7fc: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 202a800: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 202a804: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 202a808: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 202a80c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a810: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 202a814: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202a818: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a81c: 02 80 00 08 be 202a83c <== NOT EXECUTED 202a820: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 202a824: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a828: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a82c: 02 80 00 0a be 202a854 <== NOT EXECUTED 202a830: 01 00 00 00 nop <== NOT EXECUTED 202a834: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a838: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 202a83c: 81 c7 e0 08 ret <== NOT EXECUTED 202a840: 81 e8 00 00 restore <== NOT EXECUTED mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a844: 40 00 66 e0 call 20443c4 <__errno> <== NOT EXECUTED 202a848: 01 00 00 00 nop <== NOT EXECUTED 202a84c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 202a850: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a854: 81 c7 e0 08 ret <== NOT EXECUTED 202a858: 81 e8 00 00 restore <== NOT EXECUTED 0202a85c : int symlink( const char *actualpath, const char *sympath ) { 202a85c: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 202a860: c2 4e 40 00 ldsb [ %i1 ], %g1 202a864: 80 a0 60 5c cmp %g1, 0x5c 202a868: 02 80 00 07 be 202a884 202a86c: a2 10 00 18 mov %i0, %l1 202a870: 80 a0 60 2f cmp %g1, 0x2f 202a874: 02 80 00 04 be 202a884 202a878: 80 a0 60 00 cmp %g1, 0 202a87c: 12 80 00 2f bne 202a938 202a880: 03 00 81 a6 sethi %hi(0x2069800), %g1 202a884: 03 00 81 a6 sethi %hi(0x2069800), %g1 202a888: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 202a88c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 202a890: c4 27 bf e8 st %g2, [ %fp + -24 ] 202a894: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 202a898: c4 27 bf ec st %g2, [ %fp + -20 ] 202a89c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 202a8a0: c4 27 bf f0 st %g2, [ %fp + -16 ] 202a8a4: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 202a8a8: c4 27 bf f4 st %g2, [ %fp + -12 ] 202a8ac: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 202a8b0: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !loc.ops->evalformake_h ) { 202a8b4: c2 07 bf f4 ld [ %fp + -12 ], %g1 202a8b8: c2 00 60 04 ld [ %g1 + 4 ], %g1 202a8bc: 80 a0 60 00 cmp %g1, 0 202a8c0: 02 80 00 2e be 202a978 202a8c4: 90 10 20 01 mov 1, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 202a8c8: 90 06 40 08 add %i1, %o0, %o0 202a8cc: a0 07 bf e8 add %fp, -24, %l0 202a8d0: 94 07 bf fc add %fp, -4, %o2 202a8d4: 92 10 00 10 mov %l0, %o1 202a8d8: 9f c0 40 00 call %g1 202a8dc: b0 10 3f ff mov -1, %i0 if ( result != 0 ) 202a8e0: 80 a2 20 00 cmp %o0, 0 202a8e4: 12 80 00 13 bne 202a930 202a8e8: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 202a8ec: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 202a8f0: 80 a0 60 00 cmp %g1, 0 202a8f4: 02 80 00 27 be 202a990 202a8f8: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 202a8fc: 92 10 00 11 mov %l1, %o1 202a900: 9f c0 40 00 call %g1 202a904: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 202a908: c2 07 bf f4 ld [ %fp + -12 ], %g1 202a90c: 80 a0 60 00 cmp %g1, 0 202a910: 02 80 00 08 be 202a930 202a914: b0 10 00 08 mov %o0, %i0 202a918: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a91c: 80 a0 60 00 cmp %g1, 0 202a920: 02 80 00 1a be 202a988 202a924: 01 00 00 00 nop 202a928: 9f c0 40 00 call %g1 202a92c: 90 10 00 10 mov %l0, %o0 return result; } 202a930: 81 c7 e0 08 ret 202a934: 81 e8 00 00 restore rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 202a938: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 202a93c: c4 00 60 04 ld [ %g1 + 4 ], %g2 202a940: c4 27 bf e8 st %g2, [ %fp + -24 ] 202a944: c4 00 60 08 ld [ %g1 + 8 ], %g2 202a948: c4 27 bf ec st %g2, [ %fp + -20 ] 202a94c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 202a950: c4 27 bf f0 st %g2, [ %fp + -16 ] 202a954: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 202a958: c4 27 bf f4 st %g2, [ %fp + -12 ] 202a95c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 202a960: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !loc.ops->evalformake_h ) { 202a964: c2 07 bf f4 ld [ %fp + -12 ], %g1 202a968: c2 00 60 04 ld [ %g1 + 4 ], %g1 202a96c: 80 a0 60 00 cmp %g1, 0 202a970: 12 bf ff d6 bne 202a8c8 202a974: 90 10 20 00 clr %o0 if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a978: 40 00 66 93 call 20443c4 <__errno> <== NOT EXECUTED 202a97c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a980: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202a984: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a988: 81 c7 e0 08 ret <== NOT EXECUTED 202a98c: 81 e8 00 00 restore <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); 202a990: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202a994: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a998: 02 bf ff f8 be 202a978 <== NOT EXECUTED 202a99c: 01 00 00 00 nop <== NOT EXECUTED 202a9a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a9a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202a9a8: 30 bf ff f4 b,a 202a978 <== NOT EXECUTED 020147bc : int tcsetattr( int fd, int opt, struct termios *tp ) { 20147bc: 9d e3 bf a0 save %sp, -96, %sp switch (opt) { 20147c0: 80 a6 60 00 cmp %i1, 0 20147c4: 02 80 00 10 be 2014804 20147c8: 80 a6 60 01 cmp %i1, 1 20147cc: 02 80 00 08 be 20147ec <== NOT EXECUTED 20147d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 20147d4: 40 00 16 32 call 201a09c <__errno> <== NOT EXECUTED 20147d8: 01 00 00 00 nop <== NOT EXECUTED 20147dc: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20147e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 20147e4: 81 c7 e0 08 ret <== NOT EXECUTED 20147e8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 20147ec: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20147f0: 40 00 0f 75 call 20185c4 <== NOT EXECUTED 20147f4: 94 10 20 00 clr %o2 <== NOT EXECUTED 20147f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20147fc: 06 bf ff fa bl 20147e4 <== NOT EXECUTED 2014800: 01 00 00 00 nop <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 2014804: 40 00 0f 70 call 20185c4 2014808: 93 e8 20 02 restore %g0, 2, %o1 201480c: 01 00 00 00 nop 0200ef40 : #include int unlink( const char *path ) { 200ef40: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 200ef44: 7f ff cc 6d call 20020f8 200ef48: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200ef4c: a0 92 20 00 orcc %o0, 0, %l0 200ef50: 32 80 00 91 bne,a 200f194 200ef54: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 200ef58: c2 4e 00 00 ldsb [ %i0 ], %g1 200ef5c: 80 a0 60 5c cmp %g1, 0x5c 200ef60: 02 80 00 13 be 200efac 200ef64: 80 a0 60 2f cmp %g1, 0x2f 200ef68: 02 80 00 11 be 200efac 200ef6c: 80 a0 60 00 cmp %g1, 0 200ef70: 02 80 00 10 be 200efb0 <== NOT EXECUTED 200ef74: 03 00 80 6e sethi %hi(0x201b800), %g1 <== NOT EXECUTED 200ef78: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 201bbb4 <== NOT EXECUTED 200ef7c: a2 10 20 00 clr %l1 <== NOT EXECUTED 200ef80: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 200ef84: c4 27 bf ec st %g2, [ %fp + -20 ] <== NOT EXECUTED 200ef88: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 200ef8c: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED 200ef90: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 200ef94: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED 200ef98: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 200ef9c: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED 200efa0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 200efa4: 10 80 00 0f b 200efe0 <== NOT EXECUTED 200efa8: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED 200efac: 03 00 80 6e sethi %hi(0x201b800), %g1 200efb0: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 201bbb4 200efb4: a2 10 20 00 clr %l1 200efb8: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 200efbc: c4 27 bf ec st %g2, [ %fp + -20 ] 200efc0: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 200efc4: c4 27 bf f0 st %g2, [ %fp + -16 ] 200efc8: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 200efcc: c4 27 bf f4 st %g2, [ %fp + -12 ] 200efd0: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 200efd4: c4 27 bf f8 st %g2, [ %fp + -8 ] 200efd8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200efdc: c2 27 bf fc st %g1, [ %fp + -4 ] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200efe0: c2 07 bf ec ld [ %fp + -20 ], %g1 name = path + parentpathlen; 200efe4: b0 06 00 10 add %i0, %l0, %i0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200efe8: c2 27 bf d8 st %g1, [ %fp + -40 ] 200efec: c2 07 bf f0 ld [ %fp + -16 ], %g1 name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200eff0: 90 10 00 18 mov %i0, %o0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200eff4: c2 27 bf dc st %g1, [ %fp + -36 ] 200eff8: c2 07 bf f4 ld [ %fp + -12 ], %g1 name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 200effc: a0 07 bf d8 add %fp, -40, %l0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f000: c2 27 bf e0 st %g1, [ %fp + -32 ] 200f004: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f008: c2 27 bf e4 st %g1, [ %fp + -28 ] 200f00c: c2 07 bf fc ld [ %fp + -4 ], %g1 name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200f010: 40 00 06 09 call 2010834 200f014: c2 27 bf e8 st %g1, [ %fp + -24 ] 200f018: 92 10 00 08 mov %o0, %o1 200f01c: 7f ff cc 18 call 200207c 200f020: 90 10 00 18 mov %i0, %o0 200f024: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 200f028: 40 00 06 03 call 2010834 200f02c: 90 10 00 18 mov %i0, %o0 200f030: 94 10 20 00 clr %o2 200f034: 92 10 00 08 mov %o0, %o1 200f038: 96 10 00 10 mov %l0, %o3 200f03c: 90 10 00 18 mov %i0, %o0 200f040: 7f ff cc 4e call 2002178 200f044: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 200f048: 80 a2 20 00 cmp %o0, 0 200f04c: 12 80 00 2a bne 200f0f4 200f050: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 200f054: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200f058: 80 a0 60 00 cmp %g1, 0 200f05c: 22 80 00 37 be,a 200f138 200f060: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 200f064: 9f c0 40 00 call %g1 200f068: 90 10 00 10 mov %l0, %o0 200f06c: 80 a2 20 01 cmp %o0, 1 200f070: 02 80 00 53 be 200f1bc 200f074: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 200f078: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200f07c: 80 a0 60 00 cmp %g1, 0 200f080: 02 80 00 2d be 200f134 200f084: a4 07 bf ec add %fp, -20, %l2 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 200f088: 92 10 00 10 mov %l0, %o1 200f08c: 9f c0 40 00 call %g1 200f090: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 200f094: c2 07 bf e4 ld [ %fp + -28 ], %g1 200f098: 80 a0 60 00 cmp %g1, 0 200f09c: 02 80 00 08 be 200f0bc 200f0a0: b0 10 00 08 mov %o0, %i0 200f0a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f0a8: 80 a0 60 00 cmp %g1, 0 200f0ac: 02 80 00 05 be 200f0c0 200f0b0: 80 8c 60 ff btst 0xff, %l1 200f0b4: 9f c0 40 00 call %g1 200f0b8: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200f0bc: 80 8c 60 ff btst 0xff, %l1 200f0c0: 02 80 00 0b be 200f0ec 200f0c4: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200f0c8: 80 a0 60 00 cmp %g1, 0 200f0cc: 02 80 00 56 be 200f224 200f0d0: 01 00 00 00 nop 200f0d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f0d8: 80 a0 60 00 cmp %g1, 0 200f0dc: 02 80 00 52 be 200f224 200f0e0: 01 00 00 00 nop 200f0e4: 9f c0 40 00 call %g1 200f0e8: 90 10 00 12 mov %l2, %o0 200f0ec: 81 c7 e0 08 ret 200f0f0: 81 e8 00 00 restore name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 200f0f4: 80 8c 60 ff btst 0xff, %l1 200f0f8: 12 80 00 04 bne 200f108 200f0fc: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 200f100: 81 c7 e0 08 ret <== NOT EXECUTED 200f104: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 200f108: 80 a0 60 00 cmp %g1, 0 200f10c: 02 bf ff f8 be 200f0ec 200f110: b0 10 3f ff mov -1, %i0 200f114: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f118: 80 a0 60 00 cmp %g1, 0 200f11c: 02 bf ff f4 be 200f0ec 200f120: 90 07 bf ec add %fp, -20, %o0 200f124: 9f c0 40 00 call %g1 200f128: 01 00 00 00 nop 200f12c: 81 c7 e0 08 ret 200f130: 81 e8 00 00 restore rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 200f134: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200f138: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f13c: 02 80 00 05 be 200f150 <== NOT EXECUTED 200f140: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200f144: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f148: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 200f14c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200f150: 02 80 00 0b be 200f17c <== NOT EXECUTED 200f154: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 200f158: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f15c: 02 80 00 08 be 200f17c <== NOT EXECUTED 200f160: 01 00 00 00 nop <== NOT EXECUTED 200f164: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200f168: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f16c: 02 80 00 04 be 200f17c <== NOT EXECUTED 200f170: 01 00 00 00 nop <== NOT EXECUTED 200f174: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f178: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200f17c: 40 00 01 f7 call 200f958 <__errno> <== NOT EXECUTED 200f180: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200f184: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200f188: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200f18c: 81 c7 e0 08 ret <== NOT EXECUTED 200f190: 81 e8 00 00 restore <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 200f194: 92 10 00 10 mov %l0, %o1 200f198: 94 10 20 02 mov 2, %o2 200f19c: 96 07 bf ec add %fp, -20, %o3 200f1a0: 7f ff cc 37 call 200227c 200f1a4: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 200f1a8: 80 a2 20 00 cmp %o0, 0 200f1ac: 12 bf ff d5 bne 200f100 200f1b0: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f1b4: 10 bf ff 8c b 200efe4 200f1b8: c2 07 bf ec ld [ %fp + -20 ], %g1 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 200f1bc: c2 07 bf e4 ld [ %fp + -28 ], %g1 200f1c0: 80 a0 60 00 cmp %g1, 0 200f1c4: 02 80 00 09 be 200f1e8 200f1c8: 80 8c 60 ff btst 0xff, %l1 200f1cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f1d0: 80 a0 60 00 cmp %g1, 0 200f1d4: 02 80 00 05 be 200f1e8 200f1d8: 80 8c 60 ff btst 0xff, %l1 200f1dc: 9f c0 40 00 call %g1 200f1e0: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200f1e4: 80 8c 60 ff btst 0xff, %l1 200f1e8: 02 80 00 0b be 200f214 200f1ec: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200f1f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f1f4: 02 80 00 08 be 200f214 <== NOT EXECUTED 200f1f8: 01 00 00 00 nop <== NOT EXECUTED 200f1fc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200f200: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f204: 02 80 00 04 be 200f214 <== NOT EXECUTED 200f208: 01 00 00 00 nop <== NOT EXECUTED 200f20c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f210: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 200f214: 40 00 01 d1 call 200f958 <__errno> 200f218: b0 10 3f ff mov -1, %i0 200f21c: 82 10 20 15 mov 0x15, %g1 200f220: c2 22 00 00 st %g1, [ %o0 ] 200f224: 81 c7 e0 08 ret 200f228: 81 e8 00 00 restore 02009eb4 : */ int unmount( const char *path ) { 2009eb4: 9d e3 bf 88 save %sp, -120, %sp * The root node of the mounted filesytem. * The node for the directory that the fileystem is mounted on. * The mount entry that is being refered to. */ if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) 2009eb8: 40 01 04 82 call 204b0c0 2009ebc: 90 10 00 18 mov %i0, %o0 2009ec0: a0 07 bf ec add %fp, -20, %l0 2009ec4: 92 10 00 08 mov %o0, %o1 2009ec8: 94 10 20 00 clr %o2 2009ecc: 90 10 00 18 mov %i0, %o0 2009ed0: 96 10 00 10 mov %l0, %o3 2009ed4: 7f ff f0 73 call 20060a0 2009ed8: 98 10 20 01 mov 1, %o4 2009edc: 80 a2 20 00 cmp %o0, 0 2009ee0: 12 80 00 3e bne 2009fd8 2009ee4: e2 07 bf fc ld [ %fp + -4 ], %l1 return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 2009ee8: c2 07 bf ec ld [ %fp + -20 ], %g1 2009eec: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 2009ef0: 80 a0 80 01 cmp %g2, %g1 2009ef4: 12 80 00 41 bne 2009ff8 2009ef8: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 2009efc: 80 a0 60 00 cmp %g1, 0 2009f00: 22 80 00 09 be,a 2009f24 2009f04: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009f08: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2009f0c: 80 a0 60 00 cmp %g1, 0 2009f10: 22 80 00 05 be,a 2009f24 2009f14: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009f18: 9f c0 40 00 call %g1 2009f1c: 90 10 00 10 mov %l0, %o0 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; 2009f20: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009f24: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009f28: 80 a0 60 00 cmp %g1, 0 2009f2c: 02 80 00 61 be 200a0b0 2009f30: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 2009f34: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 2009f38: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 2009f3c: 80 a0 60 00 cmp %g1, 0 2009f40: 02 80 00 5c be 200a0b0 2009f44: 03 00 81 a6 sethi %hi(0x2069800), %g1 * 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 ) 2009f48: c2 00 60 f4 ld [ %g1 + 0xf4 ], %g1 ! 20698f4 2009f4c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2009f50: 80 a0 40 11 cmp %g1, %l1 2009f54: 02 80 00 23 be 2009fe0 2009f58: 07 00 81 b5 sethi %hi(0x206d400), %g3 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2009f5c: c2 00 e3 98 ld [ %g3 + 0x398 ], %g1 ! 206d798 2009f60: 86 10 e3 98 or %g3, 0x398, %g3 2009f64: 86 00 e0 04 add %g3, 4, %g3 2009f68: 80 a0 40 03 cmp %g1, %g3 2009f6c: 02 80 00 0f be 2009fa8 2009f70: 01 00 00 00 nop !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) { 2009f74: c8 04 60 2c ld [ %l1 + 0x2c ], %g4 2009f78: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2009f7c: 80 a0 80 04 cmp %g2, %g4 2009f80: 32 80 00 07 bne,a 2009f9c 2009f84: c2 00 40 00 ld [ %g1 ], %g1 2009f88: 30 80 00 16 b,a 2009fe0 <== NOT EXECUTED 2009f8c: 80 a1 00 02 cmp %g4, %g2 2009f90: 02 80 00 14 be 2009fe0 2009f94: 01 00 00 00 nop * 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 ) { 2009f98: c2 00 40 00 ld [ %g1 ], %g1 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 2009f9c: 80 a0 40 03 cmp %g1, %g3 2009fa0: 32 bf ff fb bne,a 2009f8c 2009fa4: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 * 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 ) 2009fa8: 7f ff f1 3e call 20064a0 2009fac: 90 10 00 11 mov %l1, %o0 2009fb0: 80 a2 20 01 cmp %o0, 1 2009fb4: 02 80 00 0b be 2009fe0 2009fb8: 01 00 00 00 nop * 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 ) 2009fbc: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009fc0: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009fc4: 9f c0 40 00 call %g1 2009fc8: 90 10 00 11 mov %l1, %o0 2009fcc: 80 a2 20 00 cmp %o0, 0 2009fd0: 22 80 00 19 be,a 200a034 2009fd4: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 2009fd8: 81 c7 e0 08 ret 2009fdc: 91 e8 3f ff restore %g0, -1, %o0 * descriptors that are currently active and reference nodes in the * file system that we are trying to unmount */ if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 ) rtems_set_errno_and_return_minus_one( EBUSY ); 2009fe0: 40 00 e8 f9 call 20443c4 <__errno> 2009fe4: b0 10 3f ff mov -1, %i0 2009fe8: 82 10 20 10 mov 0x10, %g1 2009fec: c2 22 00 00 st %g1, [ %o0 ] 2009ff0: 81 c7 e0 08 ret 2009ff4: 81 e8 00 00 restore /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ rtems_filesystem_freenode( &loc ); 2009ff8: 80 a0 60 00 cmp %g1, 0 2009ffc: 02 80 00 08 be 200a01c 200a000: 01 00 00 00 nop 200a004: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200a008: 80 a0 60 00 cmp %g1, 0 200a00c: 02 80 00 04 be 200a01c 200a010: 01 00 00 00 nop 200a014: 9f c0 40 00 call %g1 200a018: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 200a01c: 40 00 e8 ea call 20443c4 <__errno> 200a020: b0 10 3f ff mov -1, %i0 200a024: 82 10 20 0d mov 0xd, %g1 200a028: c2 22 00 00 st %g1, [ %o0 ] 200a02c: 81 c7 e0 08 ret 200a030: 81 e8 00 00 restore * 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){ 200a034: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 200a038: 9f c0 40 00 call %g1 200a03c: 90 10 00 11 mov %l1, %o0 200a040: 80 a2 20 00 cmp %o0, 0 200a044: 32 80 00 13 bne,a 200a090 200a048: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 200a04c: 40 00 06 40 call 200b94c <_Chain_Extract> 200a050: 90 10 00 11 mov %l1, %o0 /* * 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 ); 200a054: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 200a058: 80 a0 60 00 cmp %g1, 0 200a05c: 02 80 00 09 be 200a080 200a060: 90 10 00 11 mov %l1, %o0 200a064: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200a068: 80 a0 60 00 cmp %g1, 0 200a06c: 02 80 00 05 be 200a080 200a070: 01 00 00 00 nop 200a074: 9f c0 40 00 call %g1 200a078: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 200a07c: 90 10 00 11 mov %l1, %o0 200a080: 7f ff f0 43 call 200618c 200a084: b0 10 20 00 clr %i0 return 0; 200a088: 81 c7 e0 08 ret 200a08c: 81 e8 00 00 restore * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 200a090: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 200a094: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a098: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200a09c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200a0a0: 02 bf ff ce be 2009fd8 <== NOT EXECUTED 200a0a4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 200a0a8: 40 00 05 2e call 200b560 <== NOT EXECUTED 200a0ac: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a0b0: 40 00 e8 c5 call 20443c4 <__errno> <== NOT EXECUTED 200a0b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a0b8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200a0bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a0c0: 81 c7 e0 08 ret <== NOT EXECUTED 200a0c4: 81 e8 00 00 restore <== NOT EXECUTED 0202aa48 : int utime( const char *path, const struct utimbuf *times ) { 202aa48: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) 202aa4c: 40 00 81 9d call 204b0c0 202aa50: 90 10 00 18 mov %i0, %o0 202aa54: a0 07 bf ec add %fp, -20, %l0 202aa58: 92 10 00 08 mov %o0, %o1 202aa5c: 94 10 20 00 clr %o2 202aa60: 90 10 00 18 mov %i0, %o0 202aa64: 96 10 00 10 mov %l0, %o3 202aa68: 98 10 20 01 mov 1, %o4 202aa6c: 7f ff 6d 8d call 20060a0 202aa70: b0 10 3f ff mov -1, %i0 202aa74: 80 a2 20 00 cmp %o0, 0 202aa78: 12 80 00 14 bne 202aac8 202aa7c: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 202aa80: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 202aa84: 80 a0 60 00 cmp %g1, 0 202aa88: 22 80 00 12 be,a 202aad0 202aa8c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 202aa90: d4 06 60 04 ld [ %i1 + 4 ], %o2 202aa94: d2 06 40 00 ld [ %i1 ], %o1 202aa98: 9f c0 40 00 call %g1 202aa9c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 202aaa0: c2 07 bf f8 ld [ %fp + -8 ], %g1 202aaa4: 80 a0 60 00 cmp %g1, 0 202aaa8: 02 80 00 08 be 202aac8 202aaac: b0 10 00 08 mov %o0, %i0 202aab0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202aab4: 80 a0 60 00 cmp %g1, 0 202aab8: 02 80 00 0f be 202aaf4 202aabc: 01 00 00 00 nop 202aac0: 9f c0 40 00 call %g1 202aac4: 90 10 00 10 mov %l0, %o0 return result; } 202aac8: 81 c7 e0 08 ret 202aacc: 81 e8 00 00 restore if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); 202aad0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202aad4: 02 80 00 04 be 202aae4 <== NOT EXECUTED 202aad8: 01 00 00 00 nop <== NOT EXECUTED 202aadc: 9f c0 40 00 call %g1 <== NOT EXECUTED 202aae0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202aae4: 40 00 66 38 call 20443c4 <__errno> <== NOT EXECUTED 202aae8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202aaec: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202aaf0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202aaf4: 81 c7 e0 08 ret <== NOT EXECUTED 202aaf8: 81 e8 00 00 restore <== NOT EXECUTED 02004f70 : */ void vprintk( const char *fmt, va_list ap ) { 2004f70: 9d e3 bf 88 save %sp, -120, %sp for (; *fmt != '\0'; fmt++) { 2004f74: c2 0e 00 00 ldub [ %i0 ], %g1 2004f78: 83 28 60 18 sll %g1, 0x18, %g1 2004f7c: 80 a0 60 00 cmp %g1, 0 2004f80: 02 80 00 53 be 20050cc 2004f84: 29 00 80 6e sethi %hi(0x201b800), %l4 2004f88: 3b 00 80 6b sethi %hi(0x201ac00), %i5 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 2004f8c: 37 00 80 6a sethi %hi(0x201a800), %i3 bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt); 2004f90: a8 15 23 9c or %l4, 0x39c, %l4 2004f94: ba 17 60 18 or %i5, 0x18, %i5 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 2004f98: b6 16 e3 48 or %i3, 0x348, %i3 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 2004f9c: ac 07 bf e8 add %fp, -24, %l6 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 2004fa0: 91 38 60 18 sra %g1, 0x18, %o0 2004fa4: 80 a2 20 25 cmp %o0, 0x25 2004fa8: 32 80 00 41 bne,a 20050ac 2004fac: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(*fmt); continue; } fmt++; 2004fb0: b0 06 20 01 inc %i0 if (*fmt == '0' ) { 2004fb4: c2 0e 00 00 ldub [ %i0 ], %g1 2004fb8: 85 28 60 18 sll %g1, 0x18, %g2 2004fbc: 87 38 a0 18 sra %g2, 0x18, %g3 2004fc0: 80 a0 e0 30 cmp %g3, 0x30 2004fc4: 02 80 00 8d be 20051f8 2004fc8: b8 10 20 20 mov 0x20, %i4 lead = '0'; fmt++; } if (*fmt == '-' ) { 2004fcc: 87 38 a0 18 sra %g2, 0x18, %g3 2004fd0: 80 a0 e0 2d cmp %g3, 0x2d 2004fd4: 02 80 00 84 be 20051e4 2004fd8: aa 10 20 00 clr %l5 minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2004fdc: 82 00 7f d0 add %g1, -48, %g1 2004fe0: 82 08 60 ff and %g1, 0xff, %g1 2004fe4: 80 a0 60 09 cmp %g1, 9 2004fe8: 18 80 00 0f bgu 2005024 2004fec: a0 10 20 00 clr %l0 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; 2004ff0: b0 06 20 01 inc %i0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2004ff4: c2 0e 00 00 ldub [ %i0 ], %g1 width *= 10; width += ((unsigned) *fmt - '0'); 2004ff8: 87 38 a0 18 sra %g2, 0x18, %g3 2004ffc: 89 2c 20 03 sll %l0, 3, %g4 2005000: 85 28 60 18 sll %g1, 0x18, %g2 2005004: a1 2c 20 01 sll %l0, 1, %l0 2005008: a0 04 00 04 add %l0, %g4, %l0 200500c: a0 04 00 03 add %l0, %g3, %l0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2005010: 86 00 7f d0 add %g1, -48, %g3 2005014: 86 08 e0 ff and %g3, 0xff, %g3 2005018: 80 a0 e0 09 cmp %g3, 9 200501c: 08 bf ff f5 bleu 2004ff0 2005020: a0 04 3f d0 add %l0, -48, %l0 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 2005024: 83 38 a0 18 sra %g2, 0x18, %g1 2005028: 80 a0 60 6c cmp %g1, 0x6c 200502c: 02 80 00 78 be 200520c 2005030: 80 a0 60 63 cmp %g1, 0x63 lflag = true; c = *++fmt; } if ( c == 'c' ) { 2005034: 22 80 00 7e be,a 200522c 2005038: d0 06 40 00 ld [ %i1 ], %o0 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); BSP_output_char(chr); continue; } if ( c == 's' ) { 200503c: 80 a0 60 73 cmp %g1, 0x73 2005040: 02 80 00 86 be 2005258 2005044: 80 a0 60 4f cmp %g1, 0x4f continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { 2005048: 02 80 00 64 be 20051d8 200504c: 80 a0 60 6f cmp %g1, 0x6f 2005050: 02 80 00 62 be 20051d8 2005054: 80 a0 60 49 cmp %g1, 0x49 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 2005058: 02 80 00 1f be 20050d4 200505c: 80 a0 60 69 cmp %g1, 0x69 2005060: 02 80 00 1d be 20050d4 2005064: 80 a0 60 44 cmp %g1, 0x44 2005068: 02 80 00 1b be 20050d4 200506c: 80 a0 60 64 cmp %g1, 0x64 2005070: 02 80 00 19 be 20050d4 2005074: 80 a0 60 55 cmp %g1, 0x55 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 2005078: 02 80 00 c7 be 2005394 200507c: 80 a0 60 75 cmp %g1, 0x75 2005080: 02 80 00 c5 be 2005394 2005084: 91 38 a0 18 sra %g2, 0x18, %o0 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 2005088: 80 a2 20 58 cmp %o0, 0x58 200508c: 02 80 00 bf be 2005388 2005090: 80 a2 20 78 cmp %o0, 0x78 2005094: 02 80 00 bd be 2005388 2005098: 80 a2 20 70 cmp %o0, 0x70 base = 16; sign = false; } else if ( c == 'p' ) { 200509c: 82 10 20 00 clr %g1 20050a0: 02 80 00 0f be 20050dc 20050a4: aa 10 20 10 mov 0x10, %l5 base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 20050a8: c2 05 00 00 ld [ %l4 ], %g1 20050ac: 9f c0 40 00 call %g1 20050b0: 01 00 00 00 nop void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 20050b4: b0 06 20 01 inc %i0 20050b8: c2 0e 00 00 ldub [ %i0 ], %g1 20050bc: 83 28 60 18 sll %g1, 0x18, %g1 20050c0: 80 a0 60 00 cmp %g1, 0 20050c4: 12 bf ff b8 bne 2004fa4 20050c8: 91 38 60 18 sra %g1, 0x18, %o0 20050cc: 81 c7 e0 08 ret 20050d0: 81 e8 00 00 restore base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 20050d4: 82 10 20 01 mov 1, %g1 20050d8: aa 10 20 0a mov 0xa, %l5 } printNum( 20050dc: e6 06 40 00 ld [ %i1 ], %l3 unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 20050e0: 80 88 60 ff btst 0xff, %g1 BSP_output_char(c); continue; } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), 20050e4: b2 06 60 04 add %i1, 4, %i1 unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 20050e8: 02 80 00 05 be 20050fc 20050ec: b8 0f 20 30 and %i4, 0x30, %i4 20050f0: 80 a4 e0 00 cmp %l3, 0 20050f4: 26 80 00 9f bl,a 2005370 20050f8: c2 05 00 00 ld [ %l4 ], %g1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 20050fc: 90 10 00 13 mov %l3, %o0 2005100: 92 10 00 15 mov %l5, %o1 2005104: 40 00 4f 3d call 2018df8 <.udiv> 2005108: ae 10 20 01 mov 1, %l7 200510c: a2 92 20 00 orcc %o0, 0, %l1 2005110: 02 80 00 12 be 2005158 2005114: a4 10 20 00 clr %l2 2005118: 10 80 00 03 b 2005124 200511c: ae 10 00 15 mov %l5, %l7 2005120: a2 10 00 08 mov %o0, %l1 toPrint[count++] = (char) (unsigned_num - (n * base)); 2005124: 92 10 00 11 mov %l1, %o1 2005128: 40 00 4e fa call 2018d10 <.umul> 200512c: 90 10 00 17 mov %l7, %o0 2005130: 90 24 c0 08 sub %l3, %o0, %o0 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 2005134: 92 10 00 15 mov %l5, %o1 toPrint[count++] = (char) (unsigned_num - (n * base)); 2005138: d0 2d 80 12 stb %o0, [ %l6 + %l2 ] } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 200513c: 90 10 00 11 mov %l1, %o0 2005140: 40 00 4f 2e call 2018df8 <.udiv> 2005144: a4 04 a0 01 inc %l2 2005148: 80 a2 20 00 cmp %o0, 0 200514c: 12 bf ff f5 bne 2005120 2005150: a6 10 00 11 mov %l1, %l3 2005154: ae 04 a0 01 add %l2, 1, %l7 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 2005158: a4 07 80 12 add %fp, %l2, %l2 for (n=maxwidth ; n > count; n-- ) 200515c: 80 a4 00 17 cmp %l0, %l7 2005160: 08 80 00 09 bleu 2005184 2005164: e6 2c bf e8 stb %l3, [ %l2 + -24 ] BSP_output_char(lead); 2005168: c2 05 00 00 ld [ %l4 ], %g1 200516c: 9f c0 40 00 call %g1 2005170: 90 10 00 1c mov %i4, %o0 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) 2005174: a0 04 3f ff add %l0, -1, %l0 2005178: 80 a4 00 17 cmp %l0, %l7 200517c: 38 bf ff fc bgu,a 200516c 2005180: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(lead); for (n = 0; n < count; n++) { 2005184: 80 a5 e0 00 cmp %l7, 0 2005188: 02 bf ff cb be 20050b4 200518c: a2 05 ff ff add %l7, -1, %l1 2005190: a0 10 20 00 clr %l0 2005194: a2 05 80 11 add %l6, %l1, %l1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 2005198: c4 4c 40 00 ldsb [ %l1 ], %g2 200519c: c2 05 00 00 ld [ %l4 ], %g1 20051a0: d0 4f 40 02 ldsb [ %i5 + %g2 ], %o0 20051a4: 9f c0 40 00 call %g1 20051a8: a0 04 20 01 inc %l0 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 20051ac: 80 a4 00 17 cmp %l0, %l7 20051b0: 0a bf ff fa bcs 2005198 20051b4: a2 04 7f ff add %l1, -1, %l1 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 20051b8: b0 06 20 01 inc %i0 20051bc: c2 0e 00 00 ldub [ %i0 ], %g1 20051c0: 83 28 60 18 sll %g1, 0x18, %g1 20051c4: 80 a0 60 00 cmp %g1, 0 20051c8: 12 bf ff 77 bne 2004fa4 20051cc: 91 38 60 18 sra %g1, 0x18, %o0 20051d0: 81 c7 e0 08 ret <== NOT EXECUTED 20051d4: 81 e8 00 00 restore <== NOT EXECUTED base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 20051d8: 82 10 20 00 clr %g1 20051dc: 10 bf ff c0 b 20050dc 20051e0: aa 10 20 08 mov 8, %l5 lead = '0'; fmt++; } if (*fmt == '-' ) { minus = true; fmt++; 20051e4: b0 06 20 01 inc %i0 20051e8: c2 0e 00 00 ldub [ %i0 ], %g1 20051ec: aa 10 20 01 mov 1, %l5 20051f0: 10 bf ff 7b b 2004fdc 20051f4: 85 28 60 18 sll %g1, 0x18, %g2 continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 20051f8: b0 06 20 01 inc %i0 20051fc: c2 0e 00 00 ldub [ %i0 ], %g1 2005200: b8 10 20 30 mov 0x30, %i4 2005204: 10 bf ff 72 b 2004fcc 2005208: 85 28 60 18 sll %g1, 0x18, %g2 fmt++; } if ((c = *fmt) == 'l') { lflag = true; c = *++fmt; 200520c: b0 06 20 01 inc %i0 2005210: c2 0e 00 00 ldub [ %i0 ], %g1 2005214: 85 28 60 18 sll %g1, 0x18, %g2 } if ( c == 'c' ) { 2005218: 83 38 a0 18 sra %g2, 0x18, %g1 200521c: 80 a0 60 63 cmp %g1, 0x63 2005220: 12 bf ff 88 bne 2005040 2005224: 80 a0 60 73 cmp %g1, 0x73 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); 2005228: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED BSP_output_char(chr); 200522c: c2 05 00 00 ld [ %l4 ], %g1 2005230: 91 2a 20 18 sll %o0, 0x18, %o0 2005234: 9f c0 40 00 call %g1 2005238: 91 3a 20 18 sra %o0, 0x18, %o0 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 200523c: b0 06 20 01 inc %i0 2005240: c2 0e 00 00 ldub [ %i0 ], %g1 2005244: 83 28 60 18 sll %g1, 0x18, %g1 2005248: 80 a0 60 00 cmp %g1, 0 200524c: 12 bf ff 55 bne 2004fa0 2005250: b2 06 60 04 add %i1, 4, %i1 2005254: 30 bf ff df b,a 20051d0 <== NOT EXECUTED } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); 2005258: e4 06 40 00 ld [ %i1 ], %l2 if ( str == NULL ) { 200525c: 80 a4 a0 00 cmp %l2, 0 2005260: 02 80 00 50 be 20053a0 2005264: b2 06 60 04 add %i1, 4, %i1 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 2005268: c2 4c 80 00 ldsb [ %l2 ], %g1 200526c: 80 a0 60 00 cmp %g1, 0 2005270: 02 80 00 07 be 200528c 2005274: a2 10 20 00 clr %l1 2005278: a2 04 60 01 inc %l1 200527c: c2 4c 80 11 ldsb [ %l2 + %l1 ], %g1 2005280: 80 a0 60 00 cmp %g1, 0 2005284: 32 bf ff fe bne,a 200527c 2005288: a2 04 60 01 inc %l1 ; /* leading spaces */ if ( !minus ) 200528c: aa 8d 60 ff andcc %l5, 0xff, %l5 2005290: 12 80 00 0e bne 20052c8 2005294: 80 a4 20 00 cmp %l0, 0 for ( i=len ; i 20052a0: 80 a4 20 00 cmp %l0, 0 20052a4: a6 10 00 11 mov %l1, %l3 BSP_output_char(' '); 20052a8: c2 05 00 00 ld [ %l4 ], %g1 20052ac: 9f c0 40 00 call %g1 20052b0: 90 10 20 20 mov 0x20, %o0 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 20052c0: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(' '); /* no width option */ if (width == 0) { 20052c4: 80 a4 20 00 cmp %l0, 0 20052c8: 32 80 00 07 bne,a 20052e4 20052cc: d0 4c 80 00 ldsb [ %l2 ], %o0 width = len; } /* output the string */ for ( i=0 ; i 20052d8: 80 a5 60 00 cmp %l5, 0 20052dc: a0 10 00 11 mov %l1, %l0 20052e0: d0 4c 80 00 ldsb [ %l2 ], %o0 20052e4: 80 a2 20 00 cmp %o0, 0 20052e8: 02 80 00 0f be 2005324 20052ec: 80 a5 60 00 cmp %l5, 0 BSP_output_char(*str); 20052f0: c2 05 00 00 ld [ %l4 ], %g1 20052f4: 9f c0 40 00 call %g1 20052f8: a4 04 a0 01 inc %l2 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 2005300: d0 4c 80 00 ldsb [ %l2 ], %o0 BSP_output_char(*str); 2005304: c2 05 00 00 ld [ %l4 ], %g1 2005308: 9f c0 40 00 call %g1 200530c: 01 00 00 00 nop if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 200531c: a4 04 a0 01 inc %l2 BSP_output_char(*str); /* trailing spaces */ if ( minus ) 2005320: 80 a5 60 00 cmp %l5, 0 2005324: 22 bf ff 65 be,a 20050b8 2005328: b0 06 20 01 inc %i0 for ( i=len ; i 2005334: b0 06 20 01 inc %i0 BSP_output_char(' '); 2005338: c2 05 00 00 ld [ %l4 ], %g1 200533c: 9f c0 40 00 call %g1 2005340: 90 10 20 20 mov 0x20, %o0 for ( i=0 ; i 2005350: c2 05 00 00 ld [ %l4 ], %g1 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 2005354: b0 06 20 01 inc %i0 2005358: c2 0e 00 00 ldub [ %i0 ], %g1 200535c: 83 28 60 18 sll %g1, 0x18, %g1 2005360: 80 a0 60 00 cmp %g1, 0 2005364: 32 bf ff 10 bne,a 2004fa4 2005368: 91 38 60 18 sra %g1, 0x18, %o0 200536c: 30 bf ff 99 b,a 20051d0 <== NOT EXECUTED unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); 2005370: 9f c0 40 00 call %g1 2005374: 90 10 20 2d mov 0x2d, %o0 unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; 2005378: 80 a0 00 10 cmp %g0, %l0 unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; 200537c: a6 20 00 13 neg %l3 if (maxwidth) maxwidth--; 2005380: 10 bf ff 5f b 20050fc 2005384: a0 64 20 00 subx %l0, 0, %l0 } else if ( c == 'i' || c == 'I' || c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 2005388: 82 10 20 00 clr %g1 200538c: 10 bf ff 54 b 20050dc 2005390: aa 10 20 10 mov 0x10, %l5 if ( c == 'o' || c == 'O' ) { base = 8; sign = false; } else if ( c == 'i' || c == 'I' || c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 2005394: 82 10 20 00 clr %g1 2005398: 10 bf ff 51 b 20050dc 200539c: aa 10 20 0a mov 0xa, %l5 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 20053a0: 10 bf ff b2 b 2005268 20053a4: a4 10 00 1b mov %i3, %l2 0201a0d8 : ssize_t write( int fd, const void *buffer, size_t count ) { 201a0d8: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201a0dc: 03 00 80 6e sethi %hi(0x201b800), %g1 201a0e0: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201baa4 201a0e4: 80 a6 00 01 cmp %i0, %g1 201a0e8: 1a 80 00 23 bcc 201a174 201a0ec: 03 00 80 70 sethi %hi(0x201c000), %g1 iop = rtems_libio_iop( fd ); 201a0f0: e0 00 63 d0 ld [ %g1 + 0x3d0 ], %l0 ! 201c3d0 201a0f4: 83 2e 20 06 sll %i0, 6, %g1 201a0f8: b1 2e 20 03 sll %i0, 3, %i0 201a0fc: b0 06 00 01 add %i0, %g1, %i0 201a100: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 201a104: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 201a108: 80 88 61 00 btst 0x100, %g1 201a10c: 02 80 00 1a be 201a174 201a110: 80 a6 60 00 cmp %i1, 0 rtems_libio_check_buffer( buffer ); 201a114: 02 80 00 1e be 201a18c 201a118: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 201a11c: 02 80 00 14 be 201a16c 201a120: b0 10 20 00 clr %i0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 201a124: 80 88 60 04 btst 4, %g1 201a128: 02 80 00 19 be 201a18c 201a12c: 01 00 00 00 nop /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 201a130: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201a134: c2 00 60 0c ld [ %g1 + 0xc ], %g1 201a138: 80 a0 60 00 cmp %g1, 0 201a13c: 02 80 00 1a be 201a1a4 201a140: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 201a144: 94 10 00 1a mov %i2, %o2 201a148: 9f c0 40 00 call %g1 201a14c: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 201a150: b0 92 20 00 orcc %o0, 0, %i0 201a154: 04 80 00 06 ble 201a16c 201a158: 85 3e 20 1f sra %i0, 0x1f, %g2 iop->offset += rc; 201a15c: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 201a160: 86 83 40 18 addcc %o5, %i0, %g3 201a164: 84 43 00 02 addx %o4, %g2, %g2 201a168: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 201a16c: 81 c7 e0 08 ret 201a170: 81 e8 00 00 restore ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 201a174: 7f ff d5 f9 call 200f958 <__errno> <== NOT EXECUTED 201a178: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a17c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 201a180: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a184: 81 c7 e0 08 ret <== NOT EXECUTED 201a188: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 201a18c: 7f ff d5 f3 call 200f958 <__errno> <== NOT EXECUTED 201a190: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a194: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201a198: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a19c: 81 c7 e0 08 ret <== NOT EXECUTED 201a1a0: 81 e8 00 00 restore <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 201a1a4: 7f ff d5 ed call 200f958 <__errno> <== NOT EXECUTED 201a1a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a1ac: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201a1b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a1b4: 81 c7 e0 08 ret <== NOT EXECUTED 201a1b8: 81 e8 00 00 restore <== NOT EXECUTED 02006fc0 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 2006fc0: 9d e3 bf a0 save %sp, -96, %sp int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 2006fc4: 03 00 80 82 sethi %hi(0x2020800), %g1 2006fc8: c2 00 60 e4 ld [ %g1 + 0xe4 ], %g1 ! 20208e4 2006fcc: 80 a6 00 01 cmp %i0, %g1 2006fd0: 1a 80 00 58 bcc 2007130 2006fd4: 03 00 80 86 sethi %hi(0x2021800), %g1 iop = rtems_libio_iop( fd ); 2006fd8: e6 00 61 e4 ld [ %g1 + 0x1e4 ], %l3 ! 20219e4 2006fdc: 83 2e 20 06 sll %i0, 6, %g1 2006fe0: b1 2e 20 03 sll %i0, 3, %i0 2006fe4: b0 06 00 01 add %i0, %g1, %i0 2006fe8: a6 04 c0 18 add %l3, %i0, %l3 rtems_libio_check_is_open( iop ); 2006fec: c2 04 e0 18 ld [ %l3 + 0x18 ], %g1 2006ff0: 80 88 61 00 btst 0x100, %g1 2006ff4: 02 80 00 4f be 2007130 2006ff8: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2006ffc: 02 80 00 1d be 2007070 2007000: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 2007004: 02 80 00 1b be 2007070 2007008: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 200700c: 04 80 00 19 ble 2007070 2007010: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2007014: 14 80 00 17 bg 2007070 2007018: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 200701c: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 2007020: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2007024: 80 a0 60 00 cmp %g1, 0 2007028: 02 80 00 48 be 2007148 200702c: 17 00 00 1f sethi %hi(0x7c00), %o3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007030: 82 10 00 19 mov %i1, %g1 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 2007034: 96 12 e3 ff or %o3, 0x3ff, %o3 if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007038: 9a 10 20 01 mov 1, %o5 200703c: 86 10 20 00 clr %g3 2007040: 88 10 20 00 clr %g4 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) 2007044: c4 00 40 00 ld [ %g1 ], %g2 2007048: 80 a0 a0 00 cmp %g2, 0 200704c: 02 80 00 09 be 2007070 2007050: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 2007054: c4 00 60 04 ld [ %g1 + 4 ], %g2 2007058: 80 a0 00 02 cmp %g0, %g2 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 200705c: 84 01 00 02 add %g4, %g2, %g2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 2007060: 98 40 3f ff addx %g0, -1, %o4 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 2007064: 80 a0 80 0b cmp %g2, %o3 2007068: 04 80 00 08 ble 2007088 200706c: 9a 0b 40 0c and %o5, %o4, %o5 rtems_set_errno_and_return_minus_one( EINVAL ); 2007070: 40 00 2c bf call 201236c <__errno> 2007074: b0 10 3f ff mov -1, %i0 2007078: 82 10 20 16 mov 0x16, %g1 200707c: c2 22 00 00 st %g1, [ %o0 ] 2007080: 81 c7 e0 08 ret 2007084: 81 e8 00 00 restore all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 2007088: 80 a1 00 02 cmp %g4, %g2 200708c: 14 bf ff f9 bg 2007070 2007090: 86 00 e0 01 inc %g3 * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { 2007094: 80 a6 80 03 cmp %i2, %g3 2007098: 04 80 00 04 ble 20070a8 200709c: 82 00 60 08 add %g1, 8, %g1 20070a0: 10 bf ff e9 b 2007044 20070a4: 88 10 00 02 mov %g2, %g4 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 20070a8: 80 8b 60 ff btst 0xff, %o5 <== NOT EXECUTED 20070ac: a4 10 20 00 clr %l2 <== NOT EXECUTED 20070b0: 12 bf ff f4 bne 2007080 <== NOT EXECUTED 20070b4: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 20070b8: d4 06 60 04 ld [ %i1 + 4 ], %o2 <== NOT EXECUTED 20070bc: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 20070c0: 12 80 00 07 bne 20070dc <== NOT EXECUTED 20070c4: a4 04 a0 01 inc %l2 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 20070c8: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED 20070cc: 14 bf ff fb bg 20070b8 <== NOT EXECUTED 20070d0: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 20070d4: 81 c7 e0 08 ret <== NOT EXECUTED 20070d8: 81 e8 00 00 restore <== NOT EXECUTED for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 20070dc: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 <== NOT EXECUTED 20070e0: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 20070e4: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED 20070e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20070ec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED if ( bytes < 0 ) 20070f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20070f4: 06 80 00 1b bl 2007160 <== NOT EXECUTED 20070f8: 01 00 00 00 nop <== NOT EXECUTED return -1; if ( bytes > 0 ) { 20070fc: 02 80 00 07 be 2007118 <== NOT EXECUTED 2007100: a1 3a 20 1f sra %o0, 0x1f, %l0 <== NOT EXECUTED iop->offset += bytes; 2007104: c4 1c e0 10 ldd [ %l3 + 0x10 ], %g2 <== NOT EXECUTED 2007108: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 200710c: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 2007110: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 2007114: c4 3c e0 10 std %g2, [ %l3 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 2007118: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED 200711c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2007120: 02 bf ff eb be 20070cc <== NOT EXECUTED 2007124: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED break; } return total; } 2007128: 81 c7 e0 08 ret <== NOT EXECUTED 200712c: 81 e8 00 00 restore <== NOT EXECUTED ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 2007130: 40 00 2c 8f call 201236c <__errno> 2007134: b0 10 3f ff mov -1, %i0 2007138: 82 10 20 09 mov 9, %g1 200713c: c2 22 00 00 st %g1, [ %o0 ] 2007140: 81 c7 e0 08 ret 2007144: 81 e8 00 00 restore if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007148: 40 00 2c 89 call 201236c <__errno> <== NOT EXECUTED 200714c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007150: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2007154: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2007158: 81 c7 e0 08 ret <== NOT EXECUTED 200715c: 81 e8 00 00 restore <== NOT EXECUTED if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 2007160: 81 c7 e0 08 ret <== NOT EXECUTED 2007164: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED