0200f7c0 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 200f7c0: 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(); 200f7c4: 40 00 05 27 call 2010c60 200f7c8: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200f7cc: 91 2a 20 10 sll %o0, 0x10, %o0 200f7d0: 91 32 20 10 srl %o0, 0x10, %o0 200f7d4: 80 a2 20 00 cmp %o0, 0 200f7d8: 32 80 00 0b bne,a 200f804 200f7dc: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 200f7e0: f2 34 20 3c sth %i1, [ %l0 + 0x3c ] jnode->st_gid = group; 200f7e4: f4 34 20 3e sth %i2, [ %l0 + 0x3e ] IMFS_update_ctime( jnode ); 200f7e8: 90 07 bf f8 add %fp, -8, %o0 200f7ec: 7f ff d1 f8 call 2003fcc 200f7f0: 92 10 20 00 clr %o1 200f7f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f7f8: c2 24 20 48 st %g1, [ %l0 + 0x48 ] return 0; } 200f7fc: 81 c7 e0 08 ret 200f800: 91 e8 20 00 restore %g0, 0, %o0 */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200f804: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200f808: 22 bf ff f7 be,a 200f7e4 <== NOT EXECUTED 200f80c: f2 34 20 3c sth %i1, [ %l0 + 0x3c ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200f810: 40 00 18 2b call 20158bc <__errno> <== NOT EXECUTED 200f814: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200f818: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200f81c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200f820: 81 c7 e0 08 ret <== NOT EXECUTED 200f824: 81 e8 00 00 restore <== NOT EXECUTED 0200e300 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200e300: 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 ) 200e304: 80 a6 20 00 cmp %i0, 0 200e308: 12 80 00 04 bne 200e318 200e30c: a0 10 20 00 clr %l0 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200e310: 81 c7 e0 08 ret <== NOT EXECUTED 200e314: 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 ); 200e318: 03 00 80 70 sethi %hi(0x201c000), %g1 200e31c: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 201c330 200e320: 92 10 00 1a mov %i2, %o1 200e324: d4 00 60 2c ld [ %g1 + 0x2c ], %o2 200e328: 90 10 00 19 mov %i1, %o0 200e32c: 7f ff ff ca call 200e254 200e330: 94 2e c0 0a andn %i3, %o2, %o2 if ( !node ) 200e334: a0 92 20 00 orcc %o0, 0, %l0 200e338: 02 bf ff f6 be 200e310 200e33c: 80 a6 60 07 cmp %i1, 7 return NULL; /* * Set the type specific information */ switch (type) { 200e340: 28 80 00 0a bleu,a 200e368 200e344: b3 2e 60 02 sll %i1, 2, %i1 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 200e348: 11 00 80 6e sethi %hi(0x201b800), %o0 <== NOT EXECUTED 200e34c: 15 00 80 6e sethi %hi(0x201b800), %o2 <== NOT EXECUTED 200e350: 17 00 80 6e sethi %hi(0x201b800), %o3 <== NOT EXECUTED 200e354: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED 200e358: 94 12 a0 a8 or %o2, 0xa8, %o2 <== NOT EXECUTED 200e35c: 96 12 e0 a0 or %o3, 0xa0, %o3 <== NOT EXECUTED 200e360: 7f ff f3 c7 call 200b27c <__assert_func> <== NOT EXECUTED 200e364: 92 10 20 5c mov 0x5c, %o1 <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 200e368: 03 00 80 38 sethi %hi(0x200e000), %g1 200e36c: 82 10 62 34 or %g1, 0x234, %g1 ! 200e234 200e370: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200e374: 81 c0 40 00 jmp %g1 200e378: 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; 200e37c: c2 07 00 00 ld [ %i4 ], %g1 200e380: 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; 200e384: 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; 200e388: d0 06 00 00 ld [ %i0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200e38c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200e390: d0 24 20 08 st %o0, [ %l0 + 8 ] node->st_ino = ++fs_info->ino_count; 200e394: c2 00 a0 04 ld [ %g2 + 4 ], %g1 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 200e398: 90 02 20 50 add %o0, 0x50, %o0 200e39c: 82 00 60 01 inc %g1 200e3a0: c2 20 a0 04 st %g1, [ %g2 + 4 ] 200e3a4: c2 24 20 38 st %g1, [ %l0 + 0x38 ] 200e3a8: 92 10 00 10 mov %l0, %o1 200e3ac: 7f ff e1 b4 call 2006a7c <_Chain_Append> 200e3b0: b0 10 00 10 mov %l0, %i0 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200e3b4: 81 c7 e0 08 ret 200e3b8: 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; 200e3bc: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 200e3c0: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200e3c4: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200e3c8: c0 24 20 50 clr [ %l0 + 0x50 ] 200e3cc: c0 24 20 54 clr [ %l0 + 0x54 ] node->info.file.indirect = 0; 200e3d0: c0 24 20 58 clr [ %l0 + 0x58 ] node->info.file.doubly_indirect = 0; 200e3d4: c0 24 20 5c clr [ %l0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200e3d8: 10 bf ff eb b 200e384 200e3dc: c0 24 20 60 clr [ %l0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200e3e0: 10 bf ff e9 b 200e384 200e3e4: 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; 200e3e8: 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; 200e3ec: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200e3f0: c4 24 20 54 st %g2, [ %l0 + 0x54 ] break; 200e3f4: 10 bf ff e4 b 200e384 200e3f8: 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); 200e3fc: 82 04 20 54 add %l0, 0x54, %g1 the_chain->permanent_null = NULL; 200e400: 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); 200e404: c2 24 20 50 st %g1, [ %l0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200e408: 82 04 20 50 add %l0, 0x50, %g1 200e40c: 10 bf ff de b 200e384 200e410: c2 24 20 58 st %g1, [ %l0 + 0x58 ] 02004218 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2004218: 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 ); 200421c: 80 a6 20 00 cmp %i0, 0 2004220: 02 80 00 2b be 20042cc 2004224: 80 a6 60 00 cmp %i1, 0 assert( level >= 0 ); 2004228: 06 80 00 38 bl 2004308 200422c: 11 00 80 92 sethi %hi(0x2024800), %o0 assert( the_directory->type == IMFS_DIRECTORY ); 2004230: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 2004234: 80 a0 60 01 cmp %g1, 1 2004238: 12 80 00 2d bne 20042ec 200423c: a8 06 20 54 add %i0, 0x54, %l4 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2004240: e6 06 20 50 ld [ %i0 + 0x50 ], %l3 2004244: 80 a4 c0 14 cmp %l3, %l4 2004248: 02 80 00 1b be 20042b4 200424c: 25 00 80 9a sethi %hi(0x2026800), %l2 2004250: 23 00 80 92 sethi %hi(0x2024800), %l1 2004254: a4 14 a2 78 or %l2, 0x278, %l2 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2004258: a2 14 63 d8 or %l1, 0x3d8, %l1 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 200425c: 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; 2004260: a0 10 20 00 clr %l0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2004264: c2 04 80 00 ld [ %l2 ], %g1 2004268: 90 10 00 11 mov %l1, %o0 200426c: d6 00 60 08 ld [ %g1 + 8 ], %o3 2004270: 92 10 20 01 mov 1, %o1 2004274: 40 00 46 c9 call 2015d98 2004278: 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++ ) 200427c: a0 04 20 01 inc %l0 2004280: 80 a6 40 10 cmp %i1, %l0 2004284: 36 bf ff f9 bge,a 2004268 2004288: c2 04 80 00 ld [ %l2 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 200428c: 7f ff ff 7d call 2004080 2004290: 90 10 00 13 mov %l3, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 2004294: c2 04 e0 4c ld [ %l3 + 0x4c ], %g1 2004298: 80 a0 60 01 cmp %g1, 1 200429c: 22 80 00 08 be,a 20042bc 20042a0: 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 ) { 20042a4: 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; 20042a8: 80 a4 c0 14 cmp %l3, %l4 20042ac: 12 bf ff ee bne 2004264 20042b0: a0 10 20 00 clr %l0 20042b4: 81 c7 e0 08 ret 20042b8: 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 ); 20042bc: 7f ff ff d7 call 2004218 20042c0: 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 ) { 20042c4: 10 bf ff f9 b 20042a8 20042c8: 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 ); 20042cc: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED 20042d0: 15 00 80 93 sethi %hi(0x2024c00), %o2 <== NOT EXECUTED 20042d4: 17 00 80 92 sethi %hi(0x2024800), %o3 <== NOT EXECUTED 20042d8: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED 20042dc: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED 20042e0: 96 12 e3 90 or %o3, 0x390, %o3 <== NOT EXECUTED 20042e4: 40 00 01 fd call 2004ad8 <__assert_func> <== NOT EXECUTED 20042e8: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 20042ec: 15 00 80 93 sethi %hi(0x2024c00), %o2 <== NOT EXECUTED 20042f0: 17 00 80 92 sethi %hi(0x2024800), %o3 <== NOT EXECUTED 20042f4: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED 20042f8: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED 20042fc: 96 12 e3 b0 or %o3, 0x3b0, %o3 <== NOT EXECUTED 2004300: 40 00 01 f6 call 2004ad8 <__assert_func> <== NOT EXECUTED 2004304: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 2004308: 15 00 80 93 sethi %hi(0x2024c00), %o2 <== NOT EXECUTED 200430c: 17 00 80 92 sethi %hi(0x2024800), %o3 <== NOT EXECUTED 2004310: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED 2004314: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED 2004318: 96 12 e3 a0 or %o3, 0x3a0, %o3 <== NOT EXECUTED 200431c: 40 00 01 ef call 2004ad8 <__assert_func> <== NOT EXECUTED 2004320: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED 0200a3bc : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200a3bc: 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; 200a3c0: 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 ) 200a3c4: 2b 00 80 70 sethi %hi(0x201c000), %l5 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200a3c8: 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 ) 200a3cc: aa 15 63 30 or %l5, 0x330, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 200a3d0: a4 10 20 00 clr %l2 200a3d4: a6 07 bf d8 add %fp, -40, %l3 200a3d8: 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 ); 200a3dc: 90 04 40 12 add %l1, %l2, %o0 200a3e0: 92 10 00 19 mov %i1, %o1 200a3e4: 94 10 00 13 mov %l3, %o2 200a3e8: 40 00 02 7b call 200add4 200a3ec: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200a3f0: 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 ); 200a3f4: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200a3f8: 80 a0 60 00 cmp %g1, 0 200a3fc: 02 80 00 59 be 200a560 200a400: 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; 200a404: 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 ) 200a408: 80 a2 20 00 cmp %o0, 0 200a40c: 12 80 00 11 bne 200a450 200a410: 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 ) { 200a414: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200a418: 80 a0 a0 01 cmp %g2, 1 200a41c: 22 80 00 60 be,a 200a59c 200a420: c8 00 60 5c ld [ %g1 + 0x5c ], %g4 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200a424: 7f ff ff 4e call 200a15c 200a428: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200a42c: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200a430: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 200a434: 7f ff ff 6d call 200a1e8 200a438: 90 10 00 1b mov %i3, %o0 200a43c: 80 a2 20 00 cmp %o0, 0 200a440: 02 80 00 74 be 200a610 200a444: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200a448: 81 c7 e0 08 ret 200a44c: 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 ) 200a450: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 200a454: 80 a0 a0 01 cmp %g2, 1 200a458: 02 80 00 3b be 200a544 200a45c: 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 ) { 200a460: 80 a5 a0 03 cmp %l6, 3 200a464: 02 80 00 0b be 200a490 200a468: a0 10 00 01 mov %g1, %l0 200a46c: 80 a5 a0 04 cmp %l6, 4 200a470: 02 80 00 2f be 200a52c 200a474: 80 a5 a0 02 cmp %l6, 2 200a478: 02 80 00 1a be 200a4e0 200a47c: 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) ) { 200a480: 12 bf ff d8 bne 200a3e0 200a484: 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 ) { 200a488: 10 bf ff e4 b 200a418 <== NOT EXECUTED 200a48c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 200a490: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200a494: 80 a0 60 03 cmp %g1, 3 200a498: 02 80 00 38 be 200a578 200a49c: 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 ) { 200a4a0: 02 80 00 62 be 200a628 200a4a4: 90 10 00 1b mov %i3, %o0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200a4a8: 80 a0 60 01 cmp %g1, 1 200a4ac: 12 80 00 53 bne 200a5f8 200a4b0: 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 ) { 200a4b4: c8 04 20 5c ld [ %l0 + 0x5c ], %g4 200a4b8: 80 a1 20 00 cmp %g4, 0 200a4bc: 12 80 00 3b bne 200a5a8 200a4c0: 90 10 00 10 mov %l0, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 200a4c4: 40 00 02 13 call 200ad10 200a4c8: 92 10 00 13 mov %l3, %o1 if ( !node ) 200a4cc: a0 92 20 00 orcc %o0, 0, %l0 200a4d0: 02 80 00 24 be 200a560 200a4d4: 01 00 00 00 nop /* * Set the node access to the point we have found. */ pathloc->node_access = node; break; 200a4d8: 10 bf ff c1 b 200a3dc 200a4dc: 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 ) 200a4e0: c4 05 40 00 ld [ %l5 ], %g2 200a4e4: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 200a4e8: 80 a0 80 01 cmp %g2, %g1 200a4ec: 02 bf ff bd be 200a3e0 200a4f0: 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) { 200a4f4: c8 06 e0 10 ld [ %i3 + 0x10 ], %g4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 200a4f8: c4 01 20 1c ld [ %g4 + 0x1c ], %g2 200a4fc: 80 a0 80 01 cmp %g2, %g1 200a500: 22 80 00 58 be,a 200a660 200a504: c4 01 20 14 ld [ %g4 + 0x14 ], %g2 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 200a508: e0 00 60 08 ld [ %g1 + 8 ], %l0 200a50c: 80 a4 20 00 cmp %l0, 0 200a510: 32 bf ff b4 bne,a 200a3e0 200a514: e0 26 c0 00 st %l0, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200a518: 40 00 16 45 call 200fe2c <__errno> 200a51c: b0 10 3f ff mov -1, %i0 200a520: ec 22 00 00 st %l6, [ %o0 ] 200a524: 81 c7 e0 08 ret 200a528: 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 ); 200a52c: 40 00 16 40 call 200fe2c <__errno> 200a530: b0 10 3f ff mov -1, %i0 200a534: 82 10 20 5b mov 0x5b, %g1 200a538: c2 22 00 00 st %g1, [ %o0 ] 200a53c: 81 c7 e0 08 ret 200a540: 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 ) ) 200a544: 7f ff ff 29 call 200a1e8 200a548: 92 10 20 01 mov 1, %o1 200a54c: 80 a2 20 00 cmp %o0, 0 200a550: 02 80 00 3e be 200a648 200a554: 01 00 00 00 nop 200a558: 10 bf ff c2 b 200a460 200a55c: 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 ); 200a560: 40 00 16 33 call 200fe2c <__errno> 200a564: b0 10 3f ff mov -1, %i0 200a568: 82 10 20 02 mov 2, %g1 200a56c: c2 22 00 00 st %g1, [ %o0 ] 200a570: 81 c7 e0 08 ret 200a574: 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 ); 200a578: 90 10 00 1b mov %i3, %o0 200a57c: 7f ff ff 33 call 200a248 200a580: 92 10 20 00 clr %o1 node = pathloc->node_access; 200a584: e0 06 c0 00 ld [ %i3 ], %l0 if ( !node ) 200a588: 80 a4 20 00 cmp %l0, 0 200a58c: 02 80 00 1b be 200a5f8 200a590: 01 00 00 00 nop } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 200a594: 10 bf ff c5 b 200a4a8 200a598: c2 04 20 4c ld [ %l0 + 0x4c ], %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 ) { 200a59c: 80 a1 20 00 cmp %g4, 0 200a5a0: 02 bf ff a1 be 200a424 200a5a4: 01 00 00 00 nop newloc = node->info.directory.mt_fs->mt_fs_root; 200a5a8: c4 01 20 28 ld [ %g4 + 0x28 ], %g2 *pathloc = newloc; 200a5ac: 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; 200a5b0: d8 01 20 24 ld [ %g4 + 0x24 ], %o4 200a5b4: da 01 20 20 ld [ %g4 + 0x20 ], %o5 *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a5b8: c2 00 80 00 ld [ %g2 ], %g1 200a5bc: 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; 200a5c0: c8 01 20 1c ld [ %g4 + 0x1c ], %g4 *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a5c4: 92 06 40 03 add %i1, %g3, %o1 200a5c8: 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; 200a5cc: d6 26 e0 10 st %o3, [ %i3 + 0x10 ] 200a5d0: d8 26 e0 08 st %o4, [ %i3 + 8 ] 200a5d4: da 26 e0 04 st %o5, [ %i3 + 4 ] 200a5d8: c8 26 c0 00 st %g4, [ %i3 ] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a5dc: 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; 200a5e0: c4 26 e0 0c st %g2, [ %i3 + 0xc ] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 200a5e4: 94 10 00 1a mov %i2, %o2 200a5e8: 9f c0 40 00 call %g1 200a5ec: 96 10 00 1b mov %i3, %o3 200a5f0: 81 c7 e0 08 ret 200a5f4: 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 ); 200a5f8: 40 00 16 0d call 200fe2c <__errno> 200a5fc: b0 10 3f ff mov -1, %i0 200a600: 82 10 20 14 mov 0x14, %g1 200a604: c2 22 00 00 st %g1, [ %o0 ] 200a608: 81 c7 e0 08 ret 200a60c: 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 ); 200a610: 40 00 16 07 call 200fe2c <__errno> 200a614: b0 10 3f ff mov -1, %i0 200a618: 82 10 20 0d mov 0xd, %g1 200a61c: c2 22 00 00 st %g1, [ %o0 ] return result; } 200a620: 81 c7 e0 08 ret 200a624: 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 ); 200a628: 7f ff ff 23 call 200a2b4 200a62c: 92 10 20 00 clr %o1 node = pathloc->node_access; 200a630: e0 06 c0 00 ld [ %i3 ], %l0 if ( result == -1 ) 200a634: 80 a2 3f ff cmp %o0, -1 200a638: 02 bf ff 84 be 200a448 200a63c: 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; 200a640: 10 bf ff 9a b 200a4a8 200a644: c2 04 20 4c ld [ %l0 + 0x4c ], %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 ); 200a648: 40 00 15 f9 call 200fe2c <__errno> 200a64c: b0 10 3f ff mov -1, %i0 200a650: 82 10 20 0d mov 0xd, %g1 200a654: c2 22 00 00 st %g1, [ %o0 ] 200a658: 81 c7 e0 08 ret 200a65c: 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; 200a660: 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; 200a664: d8 01 20 10 ld [ %g4 + 0x10 ], %o4 200a668: da 01 20 0c ld [ %g4 + 0xc ], %o5 *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 200a66c: c2 00 80 00 ld [ %g2 ], %g1 200a670: 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; 200a674: 10 bf ff d4 b 200a5c4 200a678: c8 01 20 08 ld [ %g4 + 8 ], %g4 0200a754 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200a754: 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; 200a758: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 200a75c: 90 10 00 18 mov %i0, %o0 200a760: 40 00 19 6b call 2010d0c 200a764: 2d 00 80 70 sethi %hi(0x201c000), %l6 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 200a768: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 200a76c: a6 10 20 00 clr %l3 200a770: a8 07 bf d8 add %fp, -40, %l4 200a774: aa 07 bf fc add %fp, -4, %l5 200a778: 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 ) 200a77c: ac 15 a3 30 or %l6, 0x330, %l6 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 200a780: 92 10 00 12 mov %l2, %o1 200a784: 90 04 40 13 add %l1, %l3, %o0 200a788: 94 10 00 14 mov %l4, %o2 200a78c: 40 00 01 92 call 200add4 200a790: 96 10 00 15 mov %l5, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 200a794: c2 06 40 00 ld [ %i1 ], %g1 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 200a798: 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 ); 200a79c: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 200a7a0: 80 a0 60 00 cmp %g1, 0 200a7a4: 02 80 00 67 be 200a940 200a7a8: a4 24 80 1d sub %l2, %i5, %l2 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 200a7ac: 80 a2 20 00 cmp %o0, 0 200a7b0: 32 80 00 08 bne,a 200a7d0 200a7b4: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 200a7b8: 40 00 15 9d call 200fe2c <__errno> 200a7bc: b0 10 3f ff mov -1, %i0 200a7c0: 82 10 20 11 mov 0x11, %g1 200a7c4: c2 22 00 00 st %g1, [ %o0 ] 200a7c8: 81 c7 e0 08 ret 200a7cc: 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 ) 200a7d0: 80 a0 a0 01 cmp %g2, 1 200a7d4: 02 80 00 61 be 200a958 200a7d8: 90 10 00 19 mov %i1, %o0 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 200a7dc: 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 ) { 200a7e0: 80 a5 e0 02 cmp %l7, 2 200a7e4: 02 80 00 30 be 200a8a4 200a7e8: a0 10 00 01 mov %g1, %l0 200a7ec: 80 a5 e0 02 cmp %l7, 2 200a7f0: 08 80 00 0d bleu 200a824 200a7f4: 80 a5 e0 00 cmp %l7, 0 200a7f8: 80 a5 e0 03 cmp %l7, 3 200a7fc: 02 80 00 12 be 200a844 200a800: 80 a5 e0 04 cmp %l7, 4 200a804: 12 bf ff e0 bne 200a784 200a808: 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 ); 200a80c: 40 00 15 88 call 200fe2c <__errno> 200a810: b0 10 3f ff mov -1, %i0 200a814: 82 10 20 5b mov 0x5b, %g1 200a818: c2 22 00 00 st %g1, [ %o0 ] 200a81c: 81 c7 e0 08 ret 200a820: 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 ) { 200a824: 12 bf ff d8 bne 200a784 200a828: 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 ); 200a82c: 40 00 15 80 call 200fe2c <__errno> <== NOT EXECUTED 200a830: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a834: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED 200a838: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a83c: 81 c7 e0 08 ret <== NOT EXECUTED 200a840: 81 e8 00 00 restore <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 200a844: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200a848: 80 a0 60 03 cmp %g1, 3 200a84c: 02 80 00 7c be 200aa3c 200a850: 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 ) { 200a854: 02 80 00 7b be 200aa40 200a858: 90 10 00 19 mov %i1, %o0 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 200a85c: 80 a4 20 00 cmp %l0, 0 200a860: 02 80 00 5e be 200a9d8 200a864: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 200a868: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200a86c: 80 a0 60 01 cmp %g1, 1 200a870: 12 80 00 5a bne 200a9d8 200a874: 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 ) { 200a878: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 200a87c: 80 a0 e0 00 cmp %g3, 0 200a880: 12 80 00 5c bne 200a9f0 200a884: 90 10 00 10 mov %l0, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 200a888: 40 00 01 22 call 200ad10 200a88c: 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 ) 200a890: a0 92 20 00 orcc %o0, 0, %l0 200a894: 02 80 00 17 be 200a8f0 200a898: c2 07 bf fc ld [ %fp + -4 ], %g1 done = true; else pathloc->node_access = node; 200a89c: 10 bf ff b9 b 200a780 200a8a0: 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 ) 200a8a4: c4 05 80 00 ld [ %l6 ], %g2 200a8a8: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 200a8ac: 80 a0 80 01 cmp %g2, %g1 200a8b0: 02 bf ff b5 be 200a784 200a8b4: 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){ 200a8b8: c6 06 60 10 ld [ %i1 + 0x10 ], %g3 200a8bc: c4 00 e0 1c ld [ %g3 + 0x1c ], %g2 200a8c0: 80 a0 80 01 cmp %g2, %g1 200a8c4: 22 80 00 6c be,a 200aa74 200a8c8: c4 00 e0 14 ld [ %g3 + 0x14 ], %g2 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 200a8cc: e0 00 60 08 ld [ %g1 + 8 ], %l0 200a8d0: 80 a4 20 00 cmp %l0, 0 200a8d4: 32 bf ff ac bne,a 200a784 200a8d8: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200a8dc: 40 00 15 54 call 200fe2c <__errno> 200a8e0: b0 10 3f ff mov -1, %i0 200a8e4: ee 22 00 00 st %l7, [ %o0 ] 200a8e8: 81 c7 e0 08 ret 200a8ec: 81 e8 00 00 restore case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 200a8f0: 82 24 c0 01 sub %l3, %g1, %g1 200a8f4: 82 04 40 01 add %l1, %g1, %g1 200a8f8: 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++) { 200a8fc: c2 4c 40 13 ldsb [ %l1 + %l3 ], %g1 200a900: 80 a0 60 00 cmp %g1, 0 200a904: 02 80 00 20 be 200a984 200a908: 80 a0 60 2f cmp %g1, 0x2f if ( !IMFS_is_separator( path[ i ] ) ) 200a90c: 12 80 00 1a bne 200a974 200a910: 80 a0 60 5c cmp %g1, 0x5c rtems_set_errno_and_return_minus_one( ENOENT ); 200a914: 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++) { 200a918: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 200a91c: 80 a0 60 00 cmp %g1, 0 200a920: 02 80 00 19 be 200a984 200a924: a2 04 60 01 inc %l1 if ( !IMFS_is_separator( path[ i ] ) ) 200a928: 80 a0 60 5c cmp %g1, 0x5c 200a92c: 22 bf ff fc be,a 200a91c 200a930: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 200a934: 80 a0 60 2f cmp %g1, 0x2f 200a938: 22 bf ff f9 be,a 200a91c 200a93c: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 rtems_set_errno_and_return_minus_one( ENOENT ); 200a940: 40 00 15 3b call 200fe2c <__errno> 200a944: b0 10 3f ff mov -1, %i0 200a948: 82 10 20 02 mov 2, %g1 200a94c: c2 22 00 00 st %g1, [ %o0 ] 200a950: 81 c7 e0 08 ret 200a954: 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 ) ) 200a958: 7f ff fe 24 call 200a1e8 200a95c: 92 10 20 01 mov 1, %o1 200a960: 80 a2 20 00 cmp %o0, 0 200a964: 02 80 00 3e be 200aa5c 200a968: 01 00 00 00 nop 200a96c: 10 bf ff 9c b 200a7dc 200a970: c2 06 40 00 ld [ %i1 ], %g1 * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) 200a974: 12 bf ff f3 bne 200a940 200a978: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOENT ); 200a97c: 10 bf ff e7 b 200a918 200a980: a2 04 40 13 add %l1, %l3, %l1 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 200a984: 7f ff fd f6 call 200a15c 200a988: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 200a98c: c2 06 40 00 ld [ %i1 ], %g1 200a990: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 200a994: 80 a0 60 01 cmp %g1, 1 200a998: 12 80 00 10 bne 200a9d8 200a99c: 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 ) ) 200a9a0: 90 10 00 19 mov %i1, %o0 200a9a4: 7f ff fe 11 call 200a1e8 200a9a8: 92 10 20 03 mov 3, %o1 200a9ac: 80 a2 20 00 cmp %o0, 0 200a9b0: 02 80 00 04 be 200a9c0 200a9b4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200a9b8: 81 c7 e0 08 ret 200a9bc: 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 ); 200a9c0: 40 00 15 1b call 200fe2c <__errno> 200a9c4: b0 10 3f ff mov -1, %i0 200a9c8: 82 10 20 0d mov 0xd, %g1 200a9cc: c2 22 00 00 st %g1, [ %o0 ] return result; } 200a9d0: 81 c7 e0 08 ret 200a9d4: 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 ); 200a9d8: 40 00 15 15 call 200fe2c <__errno> 200a9dc: b0 10 3f ff mov -1, %i0 200a9e0: 82 10 20 14 mov 0x14, %g1 200a9e4: c2 22 00 00 st %g1, [ %o0 ] 200a9e8: 81 c7 e0 08 ret 200a9ec: 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; 200a9f0: c4 00 e0 28 ld [ %g3 + 0x28 ], %g2 *pathloc = newloc; 200a9f4: 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; 200a9f8: da 00 e0 24 ld [ %g3 + 0x24 ], %o5 200a9fc: c8 00 e0 20 ld [ %g3 + 0x20 ], %g4 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200aa00: 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; 200aa04: c6 00 e0 1c ld [ %g3 + 0x1c ], %g3 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200aa08: 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; 200aa0c: d8 26 60 10 st %o4, [ %i1 + 0x10 ] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200aa10: 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; 200aa14: da 26 60 08 st %o5, [ %i1 + 8 ] 200aa18: c8 26 60 04 st %g4, [ %i1 + 4 ] 200aa1c: c6 26 40 00 st %g3, [ %i1 ] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200aa20: 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; 200aa24: c4 26 60 0c st %g2, [ %i1 + 0xc ] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200aa28: 92 10 00 19 mov %i1, %o1 200aa2c: 9f c0 40 00 call %g1 200aa30: 94 10 00 1a mov %i2, %o2 200aa34: 81 c7 e0 08 ret 200aa38: 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 ); 200aa3c: 90 10 00 19 mov %i1, %o0 200aa40: 7f ff ff 0f call 200a67c 200aa44: 92 10 20 00 clr %o1 if ( result == -1 ) 200aa48: 80 a2 3f ff cmp %o0, -1 200aa4c: 02 bf ff 5f be 200a7c8 200aa50: b0 10 00 08 mov %o0, %i0 200aa54: 10 bf ff 82 b 200a85c 200aa58: 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 ); 200aa5c: 40 00 14 f4 call 200fe2c <__errno> 200aa60: b0 10 3f ff mov -1, %i0 200aa64: 82 10 20 0d mov 0xd, %g1 200aa68: c2 22 00 00 st %g1, [ %o0 ] 200aa6c: 81 c7 e0 08 ret 200aa70: 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; 200aa74: 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; 200aa78: da 00 e0 10 ld [ %g3 + 0x10 ], %o5 200aa7c: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 200aa80: 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; 200aa84: 10 bf ff e1 b 200aa08 200aa88: c6 00 e0 08 ld [ %g3 + 8 ], %g3 0200a248 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200a248: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 200a24c: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 200a250: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200a254: 80 a0 a0 03 cmp %g2, 3 200a258: 12 80 00 14 bne 200a2a8 200a25c: 90 10 00 18 mov %i0, %o0 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 200a260: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 IMFS_Set_handlers( node ); 200a264: 7f ff ff be call 200a15c 200a268: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200a26c: 90 10 00 18 mov %i0, %o0 200a270: 92 10 00 19 mov %i1, %o1 200a274: 7f ff ff dd call 200a1e8 200a278: b0 10 20 00 clr %i0 200a27c: 80 a2 20 00 cmp %o0, 0 200a280: 02 80 00 04 be 200a290 200a284: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200a288: 81 c7 e0 08 ret 200a28c: 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 ); 200a290: 40 00 16 e7 call 200fe2c <__errno> <== NOT EXECUTED 200a294: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a298: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200a29c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 200a2a0: 81 c7 e0 08 ret <== NOT EXECUTED 200a2a4: 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); 200a2a8: 7f ff f1 06 call 20066c0 <== NOT EXECUTED 200a2ac: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 0200a67c : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200a67c: 9d e3 bf a0 save %sp, -96, %sp 200a680: 21 00 80 70 sethi %hi(0x201c000), %l0 200a684: a2 10 00 18 mov %i0, %l1 200a688: c2 04 23 30 ld [ %l0 + 0x330 ], %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 ) ) ); 200a68c: 10 80 00 07 b 200a6a8 200a690: a6 14 23 30 or %l0, 0x330, %l3 */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 200a694: 02 80 00 21 be 200a718 200a698: 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 ) ) ); 200a69c: 80 a0 a0 01 cmp %g2, 1 200a6a0: 18 80 00 1b bgu 200a70c 200a6a4: 90 10 20 00 clr %o0 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 200a6a8: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 200a6ac: e4 04 40 00 ld [ %l1 ], %l2 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 200a6b0: 84 00 a0 01 inc %g2 200a6b4: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 200a6b8: 85 28 a0 10 sll %g2, 0x10, %g2 200a6bc: 85 30 a0 10 srl %g2, 0x10, %g2 200a6c0: 80 a0 a0 05 cmp %g2, 5 200a6c4: 18 80 00 1d bgu 200a738 200a6c8: 01 00 00 00 nop /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 200a6cc: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200a6d0: 80 a0 a0 03 cmp %g2, 3 200a6d4: 12 bf ff f0 bne 200a694 200a6d8: 80 a0 a0 04 cmp %g2, 4 result = IMFS_evaluate_hard_link( node, flags ); 200a6dc: 90 10 00 11 mov %l1, %o0 200a6e0: 7f ff fe da call 200a248 200a6e4: 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 ) ) ); 200a6e8: 80 a2 20 00 cmp %o0, 0 200a6ec: 12 80 00 08 bne 200a70c 200a6f0: c2 04 23 30 ld [ %l0 + 0x330 ], %g1 200a6f4: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200a6f8: 84 00 bf fd add %g2, -3, %g2 200a6fc: 80 a0 a0 01 cmp %g2, 1 200a700: 08 bf ff ea bleu 200a6a8 200a704: c2 04 c0 00 ld [ %l3 ], %g1 200a708: 90 10 20 00 clr %o0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 200a70c: c0 30 60 30 clrh [ %g1 + 0x30 ] return result; } 200a710: 81 c7 e0 08 ret 200a714: 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 ); 200a718: 90 10 00 11 mov %l1, %o0 200a71c: 7f ff fe e6 call 200a2b4 200a720: 92 10 00 19 mov %i1, %o1 } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 200a724: 80 a2 20 00 cmp %o0, 0 200a728: 22 bf ff f4 be,a 200a6f8 200a72c: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2 200a730: 10 bf ff f7 b 200a70c 200a734: c2 04 23 30 ld [ %l0 + 0x330 ], %g1 */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 200a738: 40 00 15 bd call 200fe2c <__errno> 200a73c: c0 30 60 30 clrh [ %g1 + 0x30 ] 200a740: 82 10 20 5c mov 0x5c, %g1 200a744: c2 22 00 00 st %g1, [ %o0 ] 200a748: 90 10 3f ff mov -1, %o0 */ rtems_filesystem_link_counts = 0; return result; } 200a74c: 81 c7 e0 08 ret 200a750: 91 e8 00 08 restore %g0, %o0, %o0 0200a1e8 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 200a1e8: 9d e3 bf a0 save %sp, -96, %sp } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 200a1ec: 40 00 04 f1 call 200b5b0 200a1f0: e0 06 00 00 ld [ %i0 ], %l0 st_gid = getegid(); 200a1f4: 40 00 04 eb call 200b5a0 200a1f8: 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 ) 200a1fc: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 200a200: a3 2c 60 10 sll %l1, 0x10, %l1 200a204: a3 34 60 10 srl %l1, 0x10, %l1 200a208: 80 a4 40 01 cmp %l1, %g1 200a20c: 02 80 00 09 be 200a230 200a210: 83 2e 60 06 sll %i1, 6, %g1 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 200a214: c2 14 20 3e lduh [ %l0 + 0x3e ], %g1 200a218: 91 2a 20 10 sll %o0, 0x10, %o0 200a21c: 91 32 20 10 srl %o0, 0x10, %o0 200a220: 80 a2 00 01 cmp %o0, %g1 200a224: 02 80 00 03 be 200a230 200a228: 83 2e 60 03 sll %i1, 3, %g1 200a22c: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 200a230: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 200a234: 82 28 40 02 andn %g1, %g2, %g1 return 1; return 0; } 200a238: 80 a0 00 01 cmp %g0, %g1 200a23c: b0 60 3f ff subx %g0, -1, %i0 200a240: 81 c7 e0 08 ret 200a244: 81 e8 00 00 restore 0200a2b4 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200a2b4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 200a2b8: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 200a2bc: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200a2c0: 80 a0 a0 04 cmp %g2, 4 200a2c4: 12 80 00 3b bne 200a3b0 200a2c8: 01 00 00 00 nop rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 200a2cc: c4 00 60 08 ld [ %g1 + 8 ], %g2 200a2d0: 80 a0 a0 00 cmp %g2, 0 200a2d4: 02 80 00 35 be 200a3a8 200a2d8: 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; 200a2dc: c4 26 00 00 st %g2, [ %i0 ] rtems_filesystem_get_sym_start_loc( 200a2e0: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 200a2e4: c6 48 80 00 ldsb [ %g2 ], %g3 200a2e8: 80 a0 e0 5c cmp %g3, 0x5c 200a2ec: 12 80 00 23 bne 200a378 200a2f0: 80 a0 e0 2f cmp %g3, 0x2f 200a2f4: 05 00 80 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED 200a2f8: c4 00 a3 30 ld [ %g2 + 0x330 ], %g2 ! 201c330 200a2fc: a0 10 20 01 mov 1, %l0 200a300: c6 00 a0 18 ld [ %g2 + 0x18 ], %g3 200a304: c6 26 00 00 st %g3, [ %i0 ] 200a308: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 200a30c: c6 26 20 04 st %g3, [ %i0 + 4 ] 200a310: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 200a314: c6 26 20 08 st %g3, [ %i0 + 8 ] 200a318: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 200a31c: c6 26 20 0c st %g3, [ %i0 + 0xc ] 200a320: c4 00 a0 28 ld [ %g2 + 0x28 ], %g2 200a324: c4 26 20 10 st %g2, [ %i0 + 0x10 ] 200a328: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 * 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] ), 200a32c: a0 00 80 10 add %g2, %l0, %l0 200a330: 40 00 1a 77 call 2010d0c 200a334: 90 10 00 10 mov %l0, %o0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 200a338: 94 10 00 19 mov %i1, %o2 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 200a33c: 92 10 00 08 mov %o0, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 200a340: 96 10 00 18 mov %i0, %o3 200a344: 40 00 00 1e call 200a3bc 200a348: 90 10 00 10 mov %l0, %o0 200a34c: a0 10 00 08 mov %o0, %l0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 200a350: 7f ff ff 83 call 200a15c 200a354: 90 10 00 18 mov %i0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200a358: 90 10 00 18 mov %i0, %o0 200a35c: 7f ff ff a3 call 200a1e8 200a360: 92 10 00 19 mov %i1, %o1 200a364: 80 a2 20 00 cmp %o0, 0 200a368: 02 80 00 0b be 200a394 200a36c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); return result; } 200a370: 81 c7 e0 08 ret 200a374: 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( 200a378: 22 bf ff e0 be,a 200a2f8 200a37c: 05 00 80 70 sethi %hi(0x201c000), %g2 200a380: 80 a0 e0 00 cmp %g3, 0 200a384: 12 bf ff ea bne 200a32c 200a388: a0 10 20 00 clr %l0 200a38c: 10 bf ff db b 200a2f8 <== NOT EXECUTED 200a390: 05 00 80 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200a394: 40 00 16 a6 call 200fe2c <__errno> <== NOT EXECUTED 200a398: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED 200a39c: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200a3a0: 10 bf ff f4 b 200a370 <== NOT EXECUTED 200a3a4: 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 ); 200a3a8: 7f ff f0 c6 call 20066c0 <== NOT EXECUTED 200a3ac: 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); 200a3b0: 7f ff f0 c4 call 20066c0 <== NOT EXECUTED 200a3b4: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 0200e414 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200e414: 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(); 200e418: 7f ff f4 66 call 200b5b0 200e41c: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200e420: 91 2a 20 10 sll %o0, 0x10, %o0 200e424: 91 32 20 10 srl %o0, 0x10, %o0 200e428: 80 a2 20 00 cmp %o0, 0 200e42c: 32 80 00 0e bne,a 200e464 200e430: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 200e434: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 IMFS_update_ctime( jnode ); 200e438: 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); 200e43c: 82 08 70 00 and %g1, -4096, %g1 IMFS_update_ctime( jnode ); 200e440: 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); 200e444: b2 0e 6f ff and %i1, 0xfff, %i1 200e448: b2 16 40 01 or %i1, %g1, %i1 IMFS_update_ctime( jnode ); 200e44c: 7f ff f4 5d call 200b5c0 200e450: f2 24 20 30 st %i1, [ %l0 + 0x30 ] 200e454: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e458: c2 24 20 48 st %g1, [ %l0 + 0x48 ] return 0; } 200e45c: 81 c7 e0 08 ret 200e460: 91 e8 20 00 restore %g0, 0, %o0 * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200e464: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200e468: 22 bf ff f4 be,a 200e438 <== NOT EXECUTED 200e46c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200e470: 40 00 06 6f call 200fe2c <__errno> <== NOT EXECUTED 200e474: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e478: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200e47c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e480: 81 c7 e0 08 ret <== NOT EXECUTED 200e484: 81 e8 00 00 restore <== NOT EXECUTED 0200ac4c : } int IMFS_fifo_close( rtems_libio_t *iop ) { 200ac4c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200ac50: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 200ac54: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 200ac58: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 200ac5c: 40 00 0c 0e call 200dc94 <== NOT EXECUTED 200ac60: 90 04 60 50 add %l1, 0x50, %o0 <== NOT EXECUTED if (! err) { 200ac64: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200ac68: 02 80 00 06 be 200ac80 <== NOT EXECUTED 200ac6c: 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); 200ac70: 06 80 00 14 bl 200acc0 <== NOT EXECUTED 200ac74: 01 00 00 00 nop <== NOT EXECUTED } 200ac78: 81 c7 e0 08 ret <== NOT EXECUTED 200ac7c: 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; 200ac80: 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) 200ac84: 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; 200ac88: 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) 200ac8c: 40 00 02 86 call 200b6a4 <== NOT EXECUTED 200ac90: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED 200ac94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ac98: 12 80 00 08 bne 200acb8 <== NOT EXECUTED 200ac9c: 01 00 00 00 nop <== NOT EXECUTED 200aca0: c2 14 60 34 lduh [ %l1 + 0x34 ], %g1 <== NOT EXECUTED 200aca4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200aca8: 12 80 00 04 bne 200acb8 <== NOT EXECUTED 200acac: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 200acb0: 40 00 01 ca call 200b3d8 <== NOT EXECUTED 200acb4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200acb8: 81 c7 e0 08 ret <== NOT EXECUTED 200acbc: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200acc0: 40 00 14 5b call 200fe2c <__errno> <== NOT EXECUTED 200acc4: b0 20 00 18 neg %i0 <== NOT EXECUTED 200acc8: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200accc: 81 c7 e0 08 ret <== NOT EXECUTED 200acd0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200aae8 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200aae8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 200aaec: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED 200aaf0: 82 10 62 7e or %g1, 0x27e, %g1 ! 8004667e <== NOT EXECUTED 200aaf4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200aaf8: 02 80 00 0c be 200ab28 <== NOT EXECUTED 200aafc: 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); 200ab00: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200ab04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200ab08: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200ab0c: 40 00 0b 53 call 200d858 <== NOT EXECUTED 200ab10: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200ab14: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200ab18: 06 80 00 13 bl 200ab64 <== NOT EXECUTED 200ab1c: b2 20 00 18 neg %i0, %i1 <== NOT EXECUTED } 200ab20: 81 c7 e0 08 ret <== NOT EXECUTED 200ab24: 81 e8 00 00 restore <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 200ab28: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200ab2c: 02 80 00 0e be 200ab64 <== NOT EXECUTED 200ab30: b2 10 20 0e mov 0xe, %i1 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 200ab34: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 200ab38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ab3c: 02 80 00 06 be 200ab54 <== NOT EXECUTED 200ab40: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 200ab44: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 200ab48: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200ab4c: 81 c7 e0 08 ret <== NOT EXECUTED 200ab50: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200ab54: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 200ab58: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 200ab5c: 81 c7 e0 08 ret <== NOT EXECUTED 200ab60: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 200ab64: 40 00 14 b2 call 200fe2c <__errno> <== NOT EXECUTED 200ab68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200ab6c: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED } 200ab70: 81 c7 e0 08 ret <== NOT EXECUTED 200ab74: 81 e8 00 00 restore <== NOT EXECUTED 0200aa8c : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 200aa8c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200aa90: 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 ) { 200aa94: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 200aa98: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200aa9c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 200aaa0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200aaa4: 40 00 0b 4f call 200d7e0 <== NOT EXECUTED 200aaa8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 200aaac: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 200aab0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200aab4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200aab8: 06 80 00 05 bl 200aacc <== NOT EXECUTED 200aabc: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED } 200aac0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 200aac4: 81 c7 e0 08 ret <== NOT EXECUTED 200aac8: 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); 200aacc: 40 00 14 d8 call 200fe2c <__errno> <== NOT EXECUTED 200aad0: a0 20 00 10 neg %l0 <== NOT EXECUTED 200aad4: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 200aad8: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 200aadc: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 200aae0: 10 bf ff f8 b 200aac0 <== NOT EXECUTED 200aae4: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED 0200acd4 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200acd4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200acd8: d0 06 20 3c ld [ %i0 + 0x3c ], %o0 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200acdc: 92 10 00 18 mov %i0, %o1 IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 200ace0: 40 00 0c 3e call 200ddd8 200ace4: 90 02 20 50 add %o0, 0x50, %o0 IMFS_FIFO_RETURN(err); 200ace8: b0 92 20 00 orcc %o0, 0, %i0 200acec: 06 80 00 04 bl 200acfc 200acf0: 01 00 00 00 nop } 200acf4: 81 c7 e0 08 ret <== NOT EXECUTED 200acf8: 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); 200acfc: 40 00 14 4c call 200fe2c <__errno> 200ad00: b0 20 00 18 neg %i0 200ad04: f0 22 00 00 st %i0, [ %o0 ] } 200ad08: 81 c7 e0 08 ret 200ad0c: 91 e8 3f ff restore %g0, -1, %o0 0200abe4 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200abe4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200abe8: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200abec: 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); 200abf0: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200abf4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200abf8: 40 00 0b 31 call 200d8bc <== NOT EXECUTED 200abfc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 200ac00: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200ac04: 04 80 00 08 ble 200ac24 <== NOT EXECUTED 200ac08: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 200ac0c: 40 00 02 6d call 200b5c0 <== NOT EXECUTED 200ac10: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ac14: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200ac18: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 200ac1c: 81 c7 e0 08 ret <== NOT EXECUTED 200ac20: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 200ac24: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200ac28: 12 80 00 04 bne 200ac38 <== NOT EXECUTED 200ac2c: 01 00 00 00 nop <== NOT EXECUTED } 200ac30: 81 c7 e0 08 ret <== NOT EXECUTED 200ac34: 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); 200ac38: 40 00 14 7d call 200fe2c <__errno> <== NOT EXECUTED 200ac3c: b0 20 00 18 neg %i0 <== NOT EXECUTED 200ac40: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200ac44: 81 c7 e0 08 ret <== NOT EXECUTED 200ac48: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200ab78 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200ab78: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 200ab7c: 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 ) { 200ab80: 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); 200ab84: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 200ab88: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200ab8c: 40 00 0b bb call 200da78 <== NOT EXECUTED 200ab90: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 200ab94: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 200ab98: 04 80 00 09 ble 200abbc <== NOT EXECUTED 200ab9c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 200aba0: 40 00 02 88 call 200b5c0 <== NOT EXECUTED 200aba4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200aba8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200abac: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED 200abb0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 200abb4: 81 c7 e0 08 ret <== NOT EXECUTED 200abb8: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 200abbc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200abc0: 12 80 00 04 bne 200abd0 <== NOT EXECUTED 200abc4: 01 00 00 00 nop <== NOT EXECUTED } 200abc8: 81 c7 e0 08 ret <== NOT EXECUTED 200abcc: 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); 200abd0: 40 00 14 97 call 200fe2c <__errno> <== NOT EXECUTED 200abd4: b0 20 00 18 neg %i0 <== NOT EXECUTED 200abd8: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED } 200abdc: 81 c7 e0 08 ret <== NOT EXECUTED 200abe0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200ad10 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 200ad10: 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 ); 200ad14: 80 a6 20 00 cmp %i0, 0 200ad18: 02 80 00 26 be 200adb0 200ad1c: 80 a6 60 00 cmp %i1, 0 if ( !name ) 200ad20: 02 80 00 11 be 200ad64 200ad24: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 200ad28: 13 00 80 6d sethi %hi(0x201b400), %o1 200ad2c: 40 00 17 a7 call 2010bc8 200ad30: 92 12 60 48 or %o1, 0x48, %o1 ! 201b448 200ad34: 80 a2 20 00 cmp %o0, 0 200ad38: 02 80 00 09 be 200ad5c 200ad3c: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 200ad40: 13 00 80 6d sethi %hi(0x201b400), %o1 200ad44: 40 00 17 a1 call 2010bc8 200ad48: 92 12 60 50 or %o1, 0x50, %o1 ! 201b450 200ad4c: 80 a2 20 00 cmp %o0, 0 200ad50: 32 80 00 07 bne,a 200ad6c 200ad54: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 return directory->Parent; 200ad58: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 200ad5c: 81 c7 e0 08 ret <== NOT EXECUTED 200ad60: 81 e8 00 00 restore <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 200ad64: 81 c7 e0 08 ret 200ad68: 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; 200ad6c: 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; 200ad70: 80 a4 00 18 cmp %l0, %i0 200ad74: 12 80 00 07 bne 200ad90 200ad78: 90 10 00 19 mov %i1, %o0 200ad7c: 81 c7 e0 08 ret 200ad80: 91 e8 20 00 restore %g0, 0, %o0 200ad84: 80 a4 00 18 cmp %l0, %i0 200ad88: 02 bf ff f7 be 200ad64 200ad8c: 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 ) ) 200ad90: 40 00 17 8e call 2010bc8 200ad94: 92 04 20 0c add %l0, 0xc, %o1 200ad98: 80 a2 20 00 cmp %o0, 0 200ad9c: 32 bf ff fa bne,a 200ad84 200ada0: e0 04 00 00 ld [ %l0 ], %l0 200ada4: b0 10 00 10 mov %l0, %i0 200ada8: 81 c7 e0 08 ret 200adac: 81 e8 00 00 restore /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 200adb0: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200adb4: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED 200adb8: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED 200adbc: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 200adc0: 94 12 a0 58 or %o2, 0x58, %o2 <== NOT EXECUTED 200adc4: 96 12 e0 38 or %o3, 0x38, %o3 <== NOT EXECUTED 200adc8: 40 00 01 2d call 200b27c <__assert_func> <== NOT EXECUTED 200adcc: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED 020105e4 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 20105e4: 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; 20105e8: c8 06 20 20 ld [ %i0 + 0x20 ], %g4 20105ec: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 20105f0: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 20105f4: 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; 20105f8: e4 06 20 1c ld [ %i0 + 0x1c ], %l2 loc = temp_mt_entry->mt_fs_root; 20105fc: c8 27 bf f0 st %g4, [ %fp + -16 ] 2010600: c6 27 bf f4 st %g3, [ %fp + -12 ] 2010604: c4 27 bf f8 st %g2, [ %fp + -8 ] 2010608: 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; 201060c: c0 26 20 1c clr [ %i0 + 0x1c ] 2010610: a0 07 bf ec add %fp, -20, %l0 do { next = jnode->Parent; loc.node_access = (void *)jnode; 2010614: e4 27 bf ec st %l2, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 2010618: e2 04 a0 08 ld [ %l2 + 8 ], %l1 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 201061c: 7f ff fd 03 call 200fa28 2010620: 90 10 00 10 mov %l0, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 2010624: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 2010628: 80 a0 60 01 cmp %g1, 1 201062c: 12 80 00 17 bne 2010688 2010630: 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; 2010634: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1 2010638: 80 a0 40 02 cmp %g1, %g2 201063c: 22 80 00 14 be,a 201068c 2010640: 90 10 20 00 clr %o0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 2010644: 80 a4 a0 00 cmp %l2, 0 2010648: 02 80 00 0e be 2010680 201064c: 01 00 00 00 nop if ( jnode->type == IMFS_DIRECTORY ) { 2010650: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1 2010654: 80 a0 60 01 cmp %g1, 1 2010658: 32 bf ff f0 bne,a 2010618 201065c: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED 2010660: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1 2010664: 84 04 a0 54 add %l2, 0x54, %g2 2010668: 80 a0 40 02 cmp %g1, %g2 201066c: 22 bf ff eb be,a 2010618 2010670: e4 27 bf ec st %l2, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 2010674: a4 90 60 00 orcc %g1, 0, %l2 2010678: 32 bf ff e8 bne,a 2010618 201067c: e4 27 bf ec st %l2, [ %fp + -20 ] return 0; } 2010680: 81 c7 e0 08 ret 2010684: 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 ); 2010688: 90 10 20 00 clr %o0 201068c: 7f ff cc 54 call 20037dc 2010690: 92 10 00 10 mov %l0, %o1 if (result != 0) 2010694: 80 a2 20 00 cmp %o0, 0 2010698: 02 bf ff eb be 2010644 201069c: 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); 20106a0: 81 c7 e0 08 ret <== NOT EXECUTED 20106a4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200aef4 : 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 ) { 200aef4: 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, 200aef8: 03 00 80 70 sethi %hi(0x201c000), %g1 200aefc: c2 00 61 78 ld [ %g1 + 0x178 ], %g1 ! 201c178 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 200af00: 80 a0 60 10 cmp %g1, 0x10 200af04: 02 80 00 0a be 200af2c 200af08: 86 10 20 00 clr %g3 200af0c: 84 10 20 20 mov 0x20, %g2 200af10: 80 a0 40 02 cmp %g1, %g2 200af14: 02 80 00 06 be 200af2c 200af18: 86 00 e0 01 inc %g3 200af1c: 80 a0 e0 05 cmp %g3, 5 200af20: 12 bf ff fc bne 200af10 200af24: 85 28 a0 01 sll %g2, 1, %g2 200af28: 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) 200af2c: 05 00 80 72 sethi %hi(0x201c800), %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(); 200af30: 40 00 0c e4 call 200e2c0 200af34: c2 20 a1 ec st %g1, [ %g2 + 0x1ec ] ! 201c9ec 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; 200af38: 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(); 200af3c: 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; 200af40: 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; 200af44: 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; 200af48: 13 00 80 6e sethi %hi(0x201b800), %o1 200af4c: 90 06 20 38 add %i0, 0x38, %o0 200af50: 40 00 15 f3 call 201071c 200af54: 92 12 60 14 or %o1, 0x14, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 200af58: 90 10 20 01 mov 1, %o0 200af5c: 40 00 00 da call 200b2c4 200af60: 92 10 20 10 mov 0x10, %o1 if ( !fs_info ) { 200af64: 80 a2 20 00 cmp %o0, 0 200af68: 02 80 00 11 be 200afac 200af6c: 05 00 80 72 sethi %hi(0x201c800), %g2 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; 200af70: c8 06 20 1c ld [ %i0 + 0x1c ], %g4 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 200af74: c2 00 a1 f0 ld [ %g2 + 0x1f0 ], %g1 fs_info->ino_count = 1; 200af78: 86 10 20 01 mov 1, %g3 200af7c: c6 22 20 04 st %g3, [ %o0 + 4 ] 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; 200af80: c6 21 20 38 st %g3, [ %g4 + 0x38 ] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 200af84: 86 00 60 01 add %g1, 1, %g3 200af88: c6 20 a1 f0 st %g3, [ %g2 + 0x1f0 ] 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; 200af8c: d0 26 20 34 st %o0, [ %i0 + 0x34 ] */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 200af90: f6 22 20 0c st %i3, [ %o0 + 0xc ] * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 200af94: f4 22 20 08 st %i2, [ %o0 + 8 ] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 200af98: c2 22 00 00 st %g1, [ %o0 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 200af9c: 40 00 0a 13 call 200d7e8 200afa0: b0 10 20 00 clr %i0 return 0; } 200afa4: 81 c7 e0 08 ret 200afa8: 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); 200afac: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 <== NOT EXECUTED 200afb0: 40 00 01 0a call 200b3d8 <== NOT EXECUTED 200afb4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 200afb8: 40 00 13 9d call 200fe2c <__errno> <== NOT EXECUTED 200afbc: 01 00 00 00 nop <== NOT EXECUTED 200afc0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200afc4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200afc8: 81 c7 e0 08 ret <== NOT EXECUTED 200afcc: 81 e8 00 00 restore <== NOT EXECUTED 0200344c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 200344c: 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; 2003450: c2 06 00 00 ld [ %i0 ], %g1 2003454: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2003458: c2 10 60 34 lduh [ %g1 + 0x34 ], %g1 200345c: 80 a0 60 07 cmp %g1, 7 2003460: 18 80 00 1f bgu 20034dc 2003464: 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 ); 2003468: 40 00 4c b4 call 2016738 200346c: 90 10 00 1a mov %i2, %o0 2003470: a0 07 bf b0 add %fp, -80, %l0 2003474: 92 10 00 08 mov %o0, %o1 2003478: 96 07 bf fc add %fp, -4, %o3 200347c: 94 10 00 10 mov %l0, %o2 2003480: 40 00 34 bb call 201076c 2003484: 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( 2003488: 90 10 00 19 mov %i1, %o0 200348c: 94 10 00 10 mov %l0, %o2 2003490: 92 10 20 03 mov 3, %o1 2003494: 17 00 00 28 sethi %hi(0xa000), %o3 2003498: 98 07 bf d8 add %fp, -40, %o4 200349c: 40 00 31 16 call 200f8f4 20034a0: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 20034a4: 80 a2 20 00 cmp %o0, 0 20034a8: 02 80 00 13 be 20034f4 20034ac: 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 ); 20034b0: 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++; 20034b4: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 20034b8: 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++; 20034bc: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 20034c0: 40 00 02 c3 call 2003fcc 20034c4: c4 30 60 34 sth %g2, [ %g1 + 0x34 ] 20034c8: c4 07 bf f4 ld [ %fp + -12 ], %g2 20034cc: c2 07 bf d8 ld [ %fp + -40 ], %g1 20034d0: c4 20 60 48 st %g2, [ %g1 + 0x48 ] return 0; } 20034d4: 81 c7 e0 08 ret 20034d8: 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 ); 20034dc: 40 00 48 f8 call 20158bc <__errno> 20034e0: b0 10 3f ff mov -1, %i0 20034e4: 82 10 20 1f mov 0x1f, %g1 20034e8: c2 22 00 00 st %g1, [ %o0 ] 20034ec: 81 c7 e0 08 ret 20034f0: 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 ); 20034f4: 40 00 48 f2 call 20158bc <__errno> <== NOT EXECUTED 20034f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20034fc: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2003500: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003504: 81 c7 e0 08 ret <== NOT EXECUTED 2003508: 81 e8 00 00 restore <== NOT EXECUTED 02013750 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 2013750: 9d e3 bf a0 save %sp, -96, %sp block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 2013754: 80 a6 20 00 cmp %i0, 0 2013758: 02 80 00 18 be 20137b8 201375c: 11 00 80 86 sethi %hi(0x2021800), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013760: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 2013764: 80 a0 60 05 cmp %g1, 5 2013768: 12 80 00 1b bne 20137d4 201376c: 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 ); 2013770: 92 10 00 19 mov %i1, %o1 2013774: 7f ff fe 64 call 2013104 2013778: 94 10 20 01 mov 1, %o2 if ( *block_entry_ptr ) 201377c: 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 ); 2013780: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 2013784: 80 a0 60 00 cmp %g1, 0 2013788: 02 80 00 04 be 2013798 201378c: b0 10 20 00 clr %i0 if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } 2013790: 81 c7 e0 08 ret 2013794: 81 e8 00 00 restore #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 2013798: 7f ff fe 4e call 20130d0 201379c: b0 10 20 01 mov 1, %i0 if ( !memory ) 20137a0: 80 a2 20 00 cmp %o0, 0 20137a4: 02 bf ff fb be 2013790 20137a8: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 20137ac: d0 24 00 00 st %o0, [ %l0 ] return 0; } 20137b0: 81 c7 e0 08 ret 20137b4: 91 e8 20 00 restore %g0, 0, %o0 ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 20137b8: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 20137bc: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 20137c0: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 20137c4: 94 12 a2 60 or %o2, 0x260, %o2 <== NOT EXECUTED 20137c8: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 20137cc: 7f ff f4 98 call 2010a2c <__assert_func> <== NOT EXECUTED 20137d0: 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 ); 20137d4: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 20137d8: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 20137dc: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 20137e0: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 20137e4: 94 12 a2 60 or %o2, 0x260, %o2 <== NOT EXECUTED 20137e8: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 20137ec: 7f ff f4 90 call 2010a2c <__assert_func> <== NOT EXECUTED 20137f0: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 020137f8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 20137f8: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20137fc: 80 a6 20 00 cmp %i0, 0 2013800: 02 80 00 5b be 201396c 2013804: 11 00 80 86 sethi %hi(0x2021800), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013808: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 201380c: 80 a0 60 05 cmp %g1, 5 2013810: 12 80 00 50 bne 2013950 2013814: 03 00 80 8a sethi %hi(0x2022800), %g1 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 2013818: e2 00 62 e4 ld [ %g1 + 0x2e4 ], %l1 ! 2022ae4 201381c: a1 34 60 02 srl %l1, 2, %l0 2013820: 92 10 00 10 mov %l0, %o1 2013824: 40 00 2c c4 call 201eb34 <.umul> 2013828: 90 04 20 01 add %l0, 1, %o0 201382c: 92 10 00 10 mov %l0, %o1 2013830: 40 00 2c c1 call 201eb34 <.umul> 2013834: 90 02 20 01 inc %o0 2013838: 92 10 00 11 mov %l1, %o1 201383c: 40 00 2c be call 201eb34 <.umul> 2013840: 90 02 3f ff add %o0, -1, %o0 2013844: 82 10 20 00 clr %g1 2013848: 80 a0 40 19 cmp %g1, %i1 201384c: 04 80 00 37 ble 2013928 2013850: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 2013854: e4 1e 20 50 ldd [ %i0 + 0x50 ], %l2 <== NOT EXECUTED 2013858: 80 a6 40 12 cmp %i1, %l2 201385c: 04 80 00 29 ble 2013900 2013860: a9 3c 60 1f sra %l1, 0x1f, %l4 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013864: 96 10 00 11 mov %l1, %o3 2013868: 94 10 00 14 mov %l4, %o2 201386c: 90 10 00 19 mov %i1, %o0 2013870: 40 00 2e 76 call 201f248 <__divdi3> 2013874: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013878: 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; 201387c: a0 10 00 09 mov %o1, %l0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013880: 94 10 00 14 mov %l4, %o2 2013884: 92 10 00 13 mov %l3, %o1 2013888: 40 00 2e 70 call 201f248 <__divdi3> 201388c: 96 10 00 11 mov %l1, %o3 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2013890: 80 a4 00 09 cmp %l0, %o1 2013894: 0a 80 00 21 bcs 2013918 2013898: a4 10 00 09 mov %o1, %l2 201389c: 10 80 00 05 b 20138b0 20138a0: a2 10 00 09 mov %o1, %l1 20138a4: 80 a4 00 11 cmp %l0, %l1 20138a8: 2a 80 00 1d bcs,a 201391c 20138ac: f4 26 20 54 st %i2, [ %i0 + 0x54 ] if ( IMFS_memfile_addblock( the_jnode, block ) ) { 20138b0: 90 10 00 18 mov %i0, %o0 20138b4: 7f ff ff a7 call 2013750 20138b8: 92 10 00 11 mov %l1, %o1 20138bc: 80 a2 20 00 cmp %o0, 0 20138c0: 22 bf ff f9 be,a 20138a4 20138c4: a2 04 60 01 inc %l1 for ( ; block>=old_blocks ; block-- ) { 20138c8: 10 80 00 06 b 20138e0 <== NOT EXECUTED 20138cc: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 20138d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20138d4: 7f ff fe dc call 2013444 <== NOT EXECUTED 20138d8: 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-- ) { 20138dc: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED 20138e0: 08 bf ff fc bleu 20138d0 <== NOT EXECUTED 20138e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 20138e8: 40 00 07 f5 call 20158bc <__errno> <== NOT EXECUTED 20138ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20138f0: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 20138f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20138f8: 81 c7 e0 08 ret <== NOT EXECUTED 20138fc: 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 ) 2013900: 12 80 00 04 bne 2013910 2013904: 80 a6 80 13 cmp %i2, %l3 2013908: 18 bf ff d7 bgu 2013864 201390c: a9 3c 60 1f sra %l1, 0x1f, %l4 2013910: 81 c7 e0 08 ret 2013914: 91 e8 20 00 restore %g0, 0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 2013918: f4 26 20 54 st %i2, [ %i0 + 0x54 ] <== NOT EXECUTED 201391c: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 2013920: 81 c7 e0 08 ret 2013924: 91 e8 20 00 restore %g0, 0, %o0 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 ) 2013928: 12 80 00 04 bne 2013938 201392c: 80 a2 00 1a cmp %o0, %i2 2013930: 38 bf ff ca bgu,a 2013858 2013934: e4 1e 20 50 ldd [ %i0 + 0x50 ], %l2 rtems_set_errno_and_return_minus_one( EINVAL ); 2013938: 40 00 07 e1 call 20158bc <__errno> <== NOT EXECUTED 201393c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2013940: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2013944: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013948: 81 c7 e0 08 ret <== NOT EXECUTED 201394c: 81 e8 00 00 restore <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013950: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013954: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013958: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 201395c: 94 12 a2 78 or %o2, 0x278, %o2 <== NOT EXECUTED 2013960: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 2013964: 7f ff f4 32 call 2010a2c <__assert_func> <== NOT EXECUTED 2013968: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 201396c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013970: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013974: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013978: 94 12 a2 78 or %o2, 0x278, %o2 <== NOT EXECUTED 201397c: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 2013980: 7f ff f4 2b call 2010a2c <__assert_func> <== NOT EXECUTED 2013984: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED 02013104 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2013104: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2013108: 80 a6 20 00 cmp %i0, 0 201310c: 02 80 00 91 be 2013350 2013110: 11 00 80 86 sethi %hi(0x2021800), %o0 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013114: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 2013118: 80 a0 60 05 cmp %g1, 5 201311c: 12 80 00 94 bne 201336c 2013120: 03 00 80 8a sethi %hi(0x2022800), %g1 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2013124: e0 00 62 e4 ld [ %g1 + 0x2e4 ], %l0 ! 2022ae4 2013128: a1 34 20 02 srl %l0, 2, %l0 201312c: 82 04 3f ff add %l0, -1, %g1 2013130: 80 a6 40 01 cmp %i1, %g1 2013134: 08 80 00 20 bleu 20131b4 2013138: 80 a6 a0 00 cmp %i2, 0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 201313c: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED 2013140: 40 00 2e 7d call 201eb34 <.umul> <== NOT EXECUTED 2013144: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2013148: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 201314c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2013150: 18 80 00 21 bgu 20131d4 <== NOT EXECUTED 2013154: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 2013158: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 201315c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2013160: 40 00 2f 5b call 201eecc <.urem> <== NOT EXECUTED 2013164: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2013168: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 201316c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2013170: 40 00 2e ab call 201ec1c <.udiv> <== NOT EXECUTED 2013174: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2013178: 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; 201317c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2013180: 02 80 00 42 be 2013288 <== NOT EXECUTED 2013184: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 2013188: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201318c: 02 80 00 5e be 2013304 <== NOT EXECUTED 2013190: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 2013194: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 2013198: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 201319c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20131a0: 02 80 00 52 be 20132e8 <== NOT EXECUTED 20131a4: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED if ( !p1 ) return 0; p[ doubly ] = (block_p) p1; } return (block_p *)&p1[ singly ]; 20131a8: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 20131ac: 81 c7 e0 08 ret <== NOT EXECUTED 20131b0: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 20131b4: 02 80 00 40 be 20132b4 20131b8: d0 06 20 58 ld [ %i0 + 0x58 ], %o0 if ( !p ) { 20131bc: 80 a2 20 00 cmp %o0, 0 20131c0: 02 80 00 43 be 20132cc 20131c4: 01 00 00 00 nop p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 20131c8: b3 2e 60 02 sll %i1, 2, %i1 20131cc: 81 c7 e0 08 ret 20131d0: 91 ea 00 19 restore %o0, %i1, %o0 #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 20131d4: 90 02 20 01 inc %o0 <== NOT EXECUTED 20131d8: 40 00 2e 57 call 201eb34 <.umul> <== NOT EXECUTED 20131dc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20131e0: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 20131e4: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 20131e8: 18 80 00 31 bgu 20132ac <== NOT EXECUTED 20131ec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 20131f0: a2 26 40 11 sub %i1, %l1, %l1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20131f4: 40 00 2f 36 call 201eecc <.urem> <== NOT EXECUTED 20131f8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20131fc: 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; 2013200: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2013204: 40 00 2e 86 call 201ec1c <.udiv> <== NOT EXECUTED 2013208: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 201320c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2013210: 40 00 2e 83 call 201ec1c <.udiv> <== NOT EXECUTED 2013214: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2013218: 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; 201321c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2013220: 40 00 2f 2b call 201eecc <.urem> <== NOT EXECUTED 2013224: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2013228: 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; 201322c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2013230: 02 80 00 3c be 2013320 <== NOT EXECUTED 2013234: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 2013238: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201323c: 02 80 00 53 be 2013388 <== NOT EXECUTED 2013240: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 2013244: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2013248: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 201324c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2013250: 02 80 00 55 be 20133a4 <== NOT EXECUTED 2013254: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 2013258: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 201325c: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 2013260: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2013264: 12 bf ff d9 bne 20131c8 <== NOT EXECUTED 2013268: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 201326c: 7f ff ff 99 call 20130d0 <== NOT EXECUTED 2013270: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2013274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2013278: 22 80 00 13 be,a 20132c4 <== NOT EXECUTED 201327c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 2013280: 10 bf ff d2 b 20131c8 <== NOT EXECUTED 2013284: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 2013288: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201328c: 02 80 00 0e be 20132c4 <== NOT EXECUTED 2013290: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2013294: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 2013298: 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 ]; 201329c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 20132a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20132a4: 12 80 00 08 bne 20132c4 <== NOT EXECUTED 20132a8: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 20132ac: 81 c7 e0 08 ret <== NOT EXECUTED 20132b0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 20132b4: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 20132b8: 80 a2 20 00 cmp %o0, 0 20132bc: 02 bf ff fc be 20132ac 20132c0: b0 02 00 19 add %o0, %i1, %i0 /* * This means the requested block number is out of range. */ return 0; } 20132c4: 81 c7 e0 08 ret 20132c8: 81 e8 00 00 restore p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 20132cc: 7f ff ff 81 call 20130d0 20132d0: 01 00 00 00 nop if ( !p ) 20132d4: 80 a2 20 00 cmp %o0, 0 20132d8: 22 bf ff fb be,a 20132c4 20132dc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 20132e0: 10 bf ff ba b 20131c8 20132e4: d0 26 20 58 st %o0, [ %i0 + 0x58 ] info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 20132e8: 7f ff ff 7a call 20130d0 <== NOT EXECUTED 20132ec: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 20132f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20132f4: 22 bf ff f4 be,a 20132c4 <== NOT EXECUTED 20132f8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 20132fc: 10 bf ff ab b 20131a8 <== NOT EXECUTED 2013300: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 2013304: 7f ff ff 73 call 20130d0 <== NOT EXECUTED 2013308: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 201330c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2013310: 22 bf ff ed be,a 20132c4 <== NOT EXECUTED 2013314: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 2013318: 10 bf ff 9f b 2013194 <== NOT EXECUTED 201331c: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 2013320: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2013324: 02 bf ff e8 be 20132c4 <== NOT EXECUTED 2013328: 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 ]; 201332c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2013330: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 2013334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2013338: 02 bf ff e3 be 20132c4 <== NOT EXECUTED 201333c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 2013340: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 2013344: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED 2013348: 81 c7 e0 08 ret <== NOT EXECUTED 201334c: 91 ee 00 19 restore %i0, %i1, %o0 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2013350: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013354: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013358: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 201335c: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 2013360: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 2013364: 7f ff f5 b2 call 2010a2c <__assert_func> <== NOT EXECUTED 2013368: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 201336c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013370: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013374: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013378: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 201337c: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 2013380: 7f ff f5 ab call 2010a2c <__assert_func> <== NOT EXECUTED 2013384: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 2013388: 7f ff ff 52 call 20130d0 <== NOT EXECUTED 201338c: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2013390: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2013394: 22 bf ff cc be,a 20132c4 <== NOT EXECUTED 2013398: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 201339c: 10 bf ff aa b 2013244 <== NOT EXECUTED 20133a0: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 20133a4: 7f ff ff 4b call 20130d0 <== NOT EXECUTED 20133a8: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 20133ac: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 20133b0: 22 bf ff c5 be,a 20132c4 <== NOT EXECUTED 20133b4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 20133b8: 10 bf ff a8 b 2013258 <== NOT EXECUTED 20133bc: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED 02013e58 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2013e58: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2013e5c: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2013e60: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 2013e64: 02 80 00 b5 be 2014138 2013e68: 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 || 2013e6c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 2013e70: 84 00 7f fb add %g1, -5, %g2 2013e74: 80 a0 a0 01 cmp %g2, 1 2013e78: 18 80 00 a8 bgu 2014118 2013e7c: 80 a6 e0 00 cmp %i3, 0 /* * Error checks on arguments */ assert( dest ); 2013e80: 02 80 00 96 be 20140d8 2013e84: 80 a7 20 00 cmp %i4, 0 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 2013e88: 02 80 00 86 be 20140a0 2013e8c: 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) { 2013e90: 02 80 00 5f be 201400c 2013e94: 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 ) 2013e98: 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; 2013e9c: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 2013ea0: 80 a0 c0 02 cmp %g3, %g2 2013ea4: c8 04 20 54 ld [ %l0 + 0x54 ], %g4 2013ea8: 04 80 00 52 ble 2013ff0 2013eac: 9a 07 00 1a add %i4, %i2, %o5 my_length = the_jnode->info.file.size - start; 2013eb0: b8 21 00 01 sub %g4, %g1, %i4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2013eb4: 29 00 80 8a sethi %hi(0x2022800), %l4 <== NOT EXECUTED 2013eb8: e2 05 22 e4 ld [ %l4 + 0x2e4 ], %l1 ! 2022ae4 <== NOT EXECUTED 2013ebc: 90 10 00 12 mov %l2, %o0 2013ec0: ab 3c 60 1f sra %l1, 0x1f, %l5 2013ec4: 96 10 00 11 mov %l1, %o3 2013ec8: 94 10 00 15 mov %l5, %o2 2013ecc: 40 00 2d c6 call 201f5e4 <__moddi3> 2013ed0: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013ed4: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2013ed8: ac 10 00 09 mov %o1, %l6 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013edc: 94 10 00 15 mov %l5, %o2 2013ee0: 92 10 00 13 mov %l3, %o1 2013ee4: 40 00 2c d9 call 201f248 <__divdi3> 2013ee8: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2013eec: 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; 2013ef0: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 2013ef4: aa 10 00 1b mov %i3, %l5 2013ef8: 02 80 00 14 be 2013f48 2013efc: 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 ); 2013f00: 90 10 00 10 mov %l0, %o0 2013f04: 7f ff fc 80 call 2013104 2013f08: 94 10 20 00 clr %o2 assert( block_ptr ); 2013f0c: 80 a2 20 00 cmp %o0, 0 2013f10: 02 80 00 92 be 2014158 2013f14: 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; 2013f18: 80 a7 00 11 cmp %i4, %l1 2013f1c: 18 80 00 4f bgu 2014058 2013f20: 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 ); 2013f24: d2 02 00 00 ld [ %o0 ], %o1 2013f28: 94 10 00 18 mov %i0, %o2 2013f2c: 90 10 00 1b mov %i3, %o0 2013f30: 40 00 08 9f call 20161ac 2013f34: 92 02 40 16 add %o1, %l6, %o1 dest += to_copy; block++; my_length -= to_copy; 2013f38: e2 05 22 e4 ld [ %l4 + 0x2e4 ], %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; 2013f3c: aa 06 c0 18 add %i3, %i0, %l5 block++; 2013f40: a4 04 a0 01 inc %l2 my_length -= to_copy; 2013f44: 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 ) { 2013f48: 80 a7 00 11 cmp %i4, %l1 2013f4c: 0a 80 00 15 bcs 2013fa0 2013f50: 80 a7 20 00 cmp %i4, 0 2013f54: a8 15 22 e4 or %l4, 0x2e4, %l4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013f58: 90 10 00 10 mov %l0, %o0 2013f5c: 92 10 00 12 mov %l2, %o1 2013f60: 7f ff fc 69 call 2013104 2013f64: 94 10 20 00 clr %o2 assert( block_ptr ); 2013f68: 80 a2 20 00 cmp %o0, 0 2013f6c: 02 80 00 53 be 20140b8 2013f70: 94 10 00 11 mov %l1, %o2 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 2013f74: d2 02 00 00 ld [ %o0 ], %o1 2013f78: 40 00 08 8d call 20161ac 2013f7c: 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 ) { 2013f80: 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; 2013f84: 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; 2013f88: 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 ) { 2013f8c: 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++; 2013f90: 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 ) { 2013f94: 08 bf ff f1 bleu 2013f58 2013f98: 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 ) { 2013f9c: 80 a7 20 00 cmp %i4, 0 2013fa0: 02 80 00 0e be 2013fd8 2013fa4: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013fa8: 92 10 00 12 mov %l2, %o1 2013fac: 90 10 00 10 mov %l0, %o0 2013fb0: 7f ff fc 55 call 2013104 2013fb4: 94 10 20 00 clr %o2 assert( block_ptr ); 2013fb8: 80 a2 20 00 cmp %o0, 0 2013fbc: 02 80 00 4f be 20140f8 2013fc0: b0 06 00 1c add %i0, %i4, %i0 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 2013fc4: d2 02 00 00 ld [ %o0 ], %o1 2013fc8: 90 10 00 15 mov %l5, %o0 2013fcc: 40 00 08 78 call 20161ac 2013fd0: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 2013fd4: 90 07 bf f8 add %fp, -8, %o0 2013fd8: 7f ff bf fd call 2003fcc 2013fdc: 92 10 20 00 clr %o1 2013fe0: c2 07 bf f8 ld [ %fp + -8 ], %g1 2013fe4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 2013fe8: 81 c7 e0 08 ret 2013fec: 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 ) 2013ff0: 12 bf ff b2 bne 2013eb8 2013ff4: 29 00 80 8a sethi %hi(0x2022800), %l4 2013ff8: 80 a3 40 04 cmp %o5, %g4 2013ffc: 08 bf ff b0 bleu 2013ebc 2014000: e2 05 22 e4 ld [ %l4 + 0x2e4 ], %l1 my_length = the_jnode->info.file.size - start; 2014004: 10 bf ff ae b 2013ebc 2014008: 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)) 201400c: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 2014010: 82 10 20 00 clr %g1 <== NOT EXECUTED 2014014: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 2014018: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 201401c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2014020: 04 80 00 10 ble 2014060 <== NOT EXECUTED 2014024: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 2014028: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 201402c: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 2014030: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2014034: 40 00 08 5e call 20161ac <== NOT EXECUTED 2014038: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 201403c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2014040: 7f ff bf e3 call 2003fcc <== NOT EXECUTED 2014044: 92 10 20 00 clr %o1 <== NOT EXECUTED 2014048: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 201404c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED return my_length; 2014050: 81 c7 e0 08 ret <== NOT EXECUTED 2014054: 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; 2014058: 10 bf ff b3 b 2013f24 201405c: 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)) 2014060: 12 80 00 04 bne 2014070 <== NOT EXECUTED 2014064: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 2014068: 38 bf ff f1 bgu,a 201402c <== NOT EXECUTED 201406c: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 2014070: 92 02 40 13 add %o1, %l3, %o1 <== 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)) 2014074: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 2014078: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 201407c: 40 00 08 4c call 20161ac <== NOT EXECUTED 2014080: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 2014084: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2014088: 7f ff bf d1 call 2003fcc <== NOT EXECUTED 201408c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2014090: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2014094: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED return my_length; 2014098: 81 c7 e0 08 ret <== NOT EXECUTED 201409c: 81 e8 00 00 restore <== 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 ); 20140a0: 40 00 06 07 call 20158bc <__errno> <== NOT EXECUTED 20140a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20140a8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20140ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20140b0: 81 c7 e0 08 ret <== NOT EXECUTED 20140b4: 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 ); 20140b8: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 20140bc: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 20140c0: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 20140c4: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 20140c8: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 20140cc: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 20140d0: 7f ff f2 57 call 2010a2c <__assert_func> <== NOT EXECUTED 20140d4: 92 10 22 a7 mov 0x2a7, %o1 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 20140d8: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 20140dc: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 20140e0: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 20140e4: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 20140e8: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 20140ec: 96 12 e1 b0 or %o3, 0x1b0, %o3 <== NOT EXECUTED 20140f0: 7f ff f2 4f call 2010a2c <__assert_func> <== NOT EXECUTED 20140f4: 92 10 22 5a mov 0x25a, %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 ); 20140f8: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 20140fc: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2014100: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2014104: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2014108: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 201410c: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 2014110: 7f ff f2 47 call 2010a2c <__assert_func> <== NOT EXECUTED 2014114: 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 || 2014118: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 201411c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2014120: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2014124: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2014128: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 201412c: 96 12 e1 60 or %o3, 0x160, %o3 <== NOT EXECUTED 2014130: 7f ff f2 3f call 2010a2c <__assert_func> <== NOT EXECUTED 2014134: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2014138: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 201413c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2014140: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2014144: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2014148: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 201414c: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 2014150: 7f ff f2 37 call 2010a2c <__assert_func> <== NOT EXECUTED 2014154: 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 ); 2014158: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 201415c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2014160: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2014164: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2014168: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 201416c: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 2014170: 7f ff f2 2f call 2010a2c <__assert_func> <== NOT EXECUTED 2014174: 92 10 22 96 mov 0x296, %o1 <== NOT EXECUTED 020134a0 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 20134a0: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20134a4: 80 a6 20 00 cmp %i0, 0 20134a8: 02 80 00 62 be 2013630 20134ac: 11 00 80 86 sethi %hi(0x2021800), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 20134b0: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 20134b4: 80 a0 60 05 cmp %g1, 5 20134b8: 12 80 00 65 bne 201364c 20134bc: 23 00 80 8a sethi %hi(0x2022800), %l1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 20134c0: 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; 20134c4: e6 04 62 e4 ld [ %l1 + 0x2e4 ], %l3 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 20134c8: 80 a0 60 00 cmp %g1, 0 20134cc: 02 80 00 05 be 20134e0 20134d0: a7 34 e0 02 srl %l3, 2, %l3 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 20134d4: 90 06 20 58 add %i0, 0x58, %o0 20134d8: 7f ff ff ba call 20133c0 20134dc: 92 10 00 13 mov %l3, %o1 } if ( info->doubly_indirect ) { 20134e0: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 20134e4: 80 a0 60 00 cmp %g1, 0 20134e8: 02 80 00 1b be 2013554 20134ec: c4 04 62 e4 ld [ %l1 + 0x2e4 ], %g2 for ( i=0 ; i <== NOT EXECUTED 20134fc: 90 10 20 00 clr %o0 <== NOT EXECUTED 2013500: 25 00 80 8a sethi %hi(0x2022800), %l2 <== NOT EXECUTED 2013504: a4 14 a2 e4 or %l2, 0x2e4, %l2 ! 2022ae4 <== NOT EXECUTED 2013508: 10 80 00 03 b 2013514 <== NOT EXECUTED 201350c: a0 10 20 00 clr %l0 <== NOT EXECUTED 2013510: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 2013514: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 2013518: c4 00 40 08 ld [ %g1 + %o0 ], %g2 <== NOT EXECUTED 201351c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2013520: 02 80 00 04 be 2013530 <== NOT EXECUTED 2013524: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 2013528: 7f ff ff a6 call 20133c0 <== NOT EXECUTED 201352c: 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 2013544: 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 ); 2013548: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 201354c: 7f ff ff 9d call 20133c0 <== NOT EXECUTED 2013550: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED } if ( info->triply_indirect ) { 2013554: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 2013558: 80 a2 20 00 cmp %o0, 0 201355c: 02 80 00 33 be 2013628 2013560: c2 04 62 e4 ld [ %l1 + 0x2e4 ], %g1 for ( i=0 ; i <== NOT EXECUTED 2013570: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 2013574: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2013578: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 201357c: 22 80 00 29 be,a 2013620 <== NOT EXECUTED 2013580: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2013584: 25 00 80 8a sethi %hi(0x2022800), %l2 <== NOT EXECUTED 2013588: aa 10 20 00 clr %l5 <== NOT EXECUTED 201358c: a4 14 a2 e4 or %l2, 0x2e4, %l2 <== NOT EXECUTED 2013590: a8 10 20 00 clr %l4 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 201359c: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED 20135a0: 90 10 20 00 clr %o0 <== NOT EXECUTED 20135a4: a0 10 20 00 clr %l0 <== NOT EXECUTED if ( p[j] ) { 20135a8: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED 20135ac: c2 04 40 08 ld [ %l1 + %o0 ], %g1 <== NOT EXECUTED 20135b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20135b4: 02 80 00 04 be 20135c4 <== NOT EXECUTED 20135b8: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 20135bc: 7f ff ff 81 call 20133c0 <== NOT EXECUTED 20135c0: 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 20135d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20135dc: 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( 20135e0: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED 20135e4: 7f ff ff 77 call 20133c0 <== NOT EXECUTED 20135e8: 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 2013600: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 2013604: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2013608: ab 2d 20 02 sll %l4, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 201360c: e2 02 00 15 ld [ %o0 + %l5 ], %l1 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2013610: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2013614: 12 bf ff e1 bne 2013598 <== NOT EXECUTED 2013618: 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( 201361c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2013620: 7f ff ff 68 call 20133c0 <== NOT EXECUTED 2013624: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2013628: 81 c7 e0 08 ret 201362c: 91 e8 20 00 restore %g0, 0, %o0 /* * Perform internal consistency checks */ assert( the_jnode ); 2013630: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013634: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013638: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 201363c: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 2013640: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 2013644: 7f ff f4 fa call 2010a2c <__assert_func> <== NOT EXECUTED 2013648: 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 ); 201364c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013650: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013654: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013658: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 201365c: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 2013660: 7f ff f4 f3 call 2010a2c <__assert_func> <== NOT EXECUTED 2013664: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 02013444 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 2013444: 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 ); 2013448: 94 10 20 00 clr %o2 <== NOT EXECUTED 201344c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2013450: 7f ff ff 2d call 2013104 <== NOT EXECUTED 2013454: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 2013458: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201345c: 02 80 00 08 be 201347c <== NOT EXECUTED 2013460: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 2013464: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED *block_ptr = 0; 2013468: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED memfile_free_block( ptr ); 201346c: 7f ff ff 10 call 20130ac <== NOT EXECUTED 2013470: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED } return 1; } 2013474: 81 c7 e0 08 ret <== NOT EXECUTED 2013478: 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 ); 201347c: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2013480: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013484: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013488: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 201348c: 94 12 a2 40 or %o2, 0x240, %o2 <== NOT EXECUTED 2013490: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 2013494: 7f ff f5 66 call 2010a2c <__assert_func> <== NOT EXECUTED 2013498: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED 02013ab4 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 2013ab4: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2013ab8: a0 96 20 00 orcc %i0, 0, %l0 2013abc: 02 80 00 8e be 2013cf4 2013ac0: 11 00 80 86 sethi %hi(0x2021800), %o0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013ac4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 2013ac8: 80 a0 60 05 cmp %g1, 5 2013acc: 12 80 00 83 bne 2013cd8 2013ad0: 80 a6 e0 00 cmp %i3, 0 /* * Error check arguments */ assert( source ); 2013ad4: 02 80 00 9f be 2013d50 2013ad8: 80 a7 20 00 cmp %i4, 0 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 2013adc: 02 80 00 71 be 2013ca0 2013ae0: 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 ) { 2013ae4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2013ae8: 80 a0 60 00 cmp %g1, 0 2013aec: 06 80 00 57 bl 2013c48 2013af0: 94 07 00 1a add %i4, %i2, %o2 2013af4: 80 a0 60 00 cmp %g1, 0 2013af8: 22 80 00 51 be,a 2013c3c 2013afc: 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; 2013b00: 25 00 80 8a sethi %hi(0x2022800), %l2 <== NOT EXECUTED 2013b04: e2 04 a2 e4 ld [ %l2 + 0x2e4 ], %l1 ! 2022ae4 2013b08: 90 10 00 19 mov %i1, %o0 2013b0c: a7 3c 60 1f sra %l1, 0x1f, %l3 2013b10: 96 10 00 11 mov %l1, %o3 2013b14: 94 10 00 13 mov %l3, %o2 2013b18: 40 00 2e b3 call 201f5e4 <__moddi3> 2013b1c: 92 10 00 1a mov %i2, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013b20: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2013b24: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2013b28: 90 10 00 19 mov %i1, %o0 2013b2c: 92 10 00 1a mov %i2, %o1 2013b30: 40 00 2d c6 call 201f248 <__divdi3> 2013b34: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2013b38: b0 10 20 00 clr %i0 2013b3c: 80 a5 20 00 cmp %l4, 0 2013b40: 12 80 00 2d bne 2013bf4 2013b44: a6 10 00 09 mov %o1, %l3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2013b48: 80 a7 00 11 cmp %i4, %l1 2013b4c: 0a 80 00 15 bcs 2013ba0 2013b50: 80 a7 20 00 cmp %i4, 0 2013b54: a4 14 a2 e4 or %l2, 0x2e4, %l2 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013b58: 90 10 00 10 mov %l0, %o0 2013b5c: 92 10 00 13 mov %l3, %o1 2013b60: 7f ff fd 69 call 2013104 2013b64: 94 10 20 00 clr %o2 assert( block_ptr ); 2013b68: 80 a2 20 00 cmp %o0, 0 2013b6c: 02 80 00 53 be 2013cb8 2013b70: 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 ); 2013b74: d0 02 00 00 ld [ %o0 ], %o0 2013b78: 40 00 09 8d call 20161ac 2013b7c: 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 ) { 2013b80: 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; 2013b84: 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; 2013b88: 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 ) { 2013b8c: 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++; 2013b90: 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 ) { 2013b94: 08 bf ff f1 bleu 2013b58 2013b98: b0 06 00 11 add %i0, %l1, %i0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 2013b9c: 80 a7 20 00 cmp %i4, 0 2013ba0: 02 80 00 0e be 2013bd8 2013ba4: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013ba8: 92 10 00 13 mov %l3, %o1 2013bac: 90 10 00 10 mov %l0, %o0 2013bb0: 7f ff fd 55 call 2013104 2013bb4: 94 10 20 00 clr %o2 assert( block_ptr ); 2013bb8: 80 a2 20 00 cmp %o0, 0 2013bbc: 02 80 00 5d be 2013d30 2013bc0: 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 ); 2013bc4: d0 02 00 00 ld [ %o0 ], %o0 2013bc8: 92 10 00 1b mov %i3, %o1 2013bcc: 40 00 09 78 call 20161ac 2013bd0: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 2013bd4: 90 07 bf f8 add %fp, -8, %o0 2013bd8: 7f ff c0 fd call 2003fcc 2013bdc: 92 10 20 00 clr %o1 2013be0: c2 07 bf f8 ld [ %fp + -8 ], %g1 2013be4: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 2013be8: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return copied; } 2013bec: 81 c7 e0 08 ret 2013bf0: 81 e8 00 00 restore block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2013bf4: 90 10 00 10 mov %l0, %o0 2013bf8: 7f ff fd 43 call 2013104 2013bfc: 94 10 20 00 clr %o2 assert( block_ptr ); 2013c00: 80 a2 20 00 cmp %o0, 0 2013c04: 02 80 00 43 be 2013d10 2013c08: 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; 2013c0c: 80 a6 00 1c cmp %i0, %i4 2013c10: 18 80 00 1a bgu 2013c78 2013c14: d0 02 00 00 ld [ %o0 ], %o0 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 ); 2013c18: 92 10 00 1b mov %i3, %o1 2013c1c: 90 02 00 14 add %o0, %l4, %o0 2013c20: 94 10 00 18 mov %i0, %o2 2013c24: 40 00 09 62 call 20161ac 2013c28: b6 06 c0 18 add %i3, %i0, %i3 src += to_copy; block++; 2013c2c: a6 04 e0 01 inc %l3 my_length -= to_copy; copied += to_copy; 2013c30: e2 04 a2 e4 ld [ %l2 + 0x2e4 ], %l1 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; block++; my_length -= to_copy; 2013c34: 10 bf ff c5 b 2013b48 2013c38: b8 27 00 18 sub %i4, %i0, %i4 * 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 ) { 2013c3c: 80 a0 40 0a cmp %g1, %o2 2013c40: 1a bf ff b1 bcc 2013b04 2013c44: 25 00 80 8a sethi %hi(0x2022800), %l2 status = IMFS_memfile_extend( the_jnode, last_byte ); 2013c48: 90 10 00 10 mov %l0, %o0 2013c4c: 7f ff fe eb call 20137f8 2013c50: 92 10 20 00 clr %o1 if ( status ) 2013c54: 80 a2 20 00 cmp %o0, 0 2013c58: 02 bf ff ab be 2013b04 2013c5c: 25 00 80 8a sethi %hi(0x2022800), %l2 rtems_set_errno_and_return_minus_one( ENOSPC ); 2013c60: 40 00 07 17 call 20158bc <__errno> <== NOT EXECUTED 2013c64: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2013c68: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2013c6c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013c70: 81 c7 e0 08 ret <== NOT EXECUTED 2013c74: 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; 2013c78: 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 ); 2013c7c: 92 10 00 1b mov %i3, %o1 2013c80: 90 02 00 14 add %o0, %l4, %o0 2013c84: 94 10 00 18 mov %i0, %o2 2013c88: 40 00 09 49 call 20161ac 2013c8c: b6 06 c0 18 add %i3, %i0, %i3 src += to_copy; block++; 2013c90: a6 04 e0 01 inc %l3 my_length -= to_copy; copied += to_copy; 2013c94: e2 04 a2 e4 ld [ %l2 + 0x2e4 ], %l1 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; block++; my_length -= to_copy; 2013c98: 10 bf ff ac b 2013b48 2013c9c: b8 27 00 18 sub %i4, %i0, %i4 * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 2013ca0: 40 00 07 07 call 20158bc <__errno> <== NOT EXECUTED 2013ca4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2013ca8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2013cac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013cb0: 81 c7 e0 08 ret <== NOT EXECUTED 2013cb4: 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 ); 2013cb8: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2013cbc: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013cc0: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013cc4: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013cc8: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 2013ccc: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 2013cd0: 7f ff f3 57 call 2010a2c <__assert_func> <== NOT EXECUTED 2013cd4: 92 10 23 30 mov 0x330, %o1 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2013cd8: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013cdc: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013ce0: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013ce4: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 2013ce8: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 2013cec: 7f ff f3 50 call 2010a2c <__assert_func> <== NOT EXECUTED 2013cf0: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2013cf4: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013cf8: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013cfc: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013d00: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 2013d04: 96 12 e1 00 or %o3, 0x100, %o3 <== NOT EXECUTED 2013d08: 7f ff f3 49 call 2010a2c <__assert_func> <== NOT EXECUTED 2013d0c: 92 10 22 e3 mov 0x2e3, %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 ); 2013d10: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2013d14: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013d18: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013d1c: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013d20: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 2013d24: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 2013d28: 7f ff f3 41 call 2010a2c <__assert_func> <== NOT EXECUTED 2013d2c: 92 10 23 1c mov 0x31c, %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 ); 2013d30: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2013d34: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013d38: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013d3c: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013d40: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 2013d44: 96 12 e1 48 or %o3, 0x148, %o3 <== NOT EXECUTED 2013d48: 7f ff f3 39 call 2010a2c <__assert_func> <== NOT EXECUTED 2013d4c: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 2013d50: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013d54: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2013d58: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013d5c: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 2013d60: 96 12 e1 58 or %o3, 0x158, %o3 <== NOT EXECUTED 2013d64: 7f ff f3 32 call 2010a2c <__assert_func> <== NOT EXECUTED 2013d68: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED 0200afd0 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200afd0: 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 ); 200afd4: 40 00 17 4e call 2010d0c 200afd8: 90 10 00 18 mov %i0, %o0 200afdc: a0 07 bf b8 add %fp, -72, %l0 200afe0: 92 10 00 08 mov %o0, %o1 200afe4: 96 07 bf fc add %fp, -4, %o3 200afe8: 90 10 00 18 mov %i0, %o0 200afec: 7f ff ff 7a call 200add4 200aff0: 94 10 00 10 mov %l0, %o2 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 200aff4: 03 00 00 3c sethi %hi(0xf000), %g1 200aff8: 05 00 00 10 sethi %hi(0x4000), %g2 200affc: 82 0e 40 01 and %i1, %g1, %g1 200b000: 80 a0 40 02 cmp %g1, %g2 200b004: 02 80 00 23 be 200b090 200b008: 05 00 00 20 sethi %hi(0x8000), %g2 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 200b00c: 80 a0 40 02 cmp %g1, %g2 200b010: 02 80 00 08 be 200b030 200b014: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 200b018: 05 00 00 08 sethi %hi(0x2000), %g2 200b01c: 80 a0 40 02 cmp %g1, %g2 200b020: 12 80 00 0f bne 200b05c 200b024: 05 00 00 18 sethi %hi(0x6000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 200b028: f4 3f bf e0 std %i2, [ %fp + -32 ] 200b02c: 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( 200b030: 90 10 00 1c mov %i4, %o0 200b034: 94 10 00 10 mov %l0, %o2 200b038: 96 10 00 19 mov %i1, %o3 200b03c: 98 07 bf e0 add %fp, -32, %o4 200b040: 40 00 0c b0 call 200e300 200b044: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200b048: 80 a2 20 00 cmp %o0, 0 200b04c: 02 80 00 1b be 200b0b8 200b050: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 200b054: 81 c7 e0 08 ret 200b058: 81 e8 00 00 restore */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 200b05c: 80 a0 40 02 cmp %g1, %g2 200b060: 22 bf ff f3 be,a 200b02c 200b064: f4 3f bf e0 std %i2, [ %fp + -32 ] type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 200b068: 05 00 00 04 sethi %hi(0x1000), %g2 200b06c: 80 a0 40 02 cmp %g1, %g2 200b070: 02 bf ff f0 be 200b030 200b074: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 200b078: 40 00 13 6d call 200fe2c <__errno> <== NOT EXECUTED 200b07c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b080: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200b084: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b088: 81 c7 e0 08 ret <== NOT EXECUTED 200b08c: 81 e8 00 00 restore <== NOT EXECUTED 200b090: 92 10 20 01 mov 1, %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( 200b094: 90 10 00 1c mov %i4, %o0 200b098: 94 10 00 10 mov %l0, %o2 200b09c: 96 10 00 19 mov %i1, %o3 200b0a0: 98 07 bf e0 add %fp, -32, %o4 200b0a4: 40 00 0c 97 call 200e300 200b0a8: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200b0ac: 80 a2 20 00 cmp %o0, 0 200b0b0: 12 80 00 06 bne 200b0c8 200b0b4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 200b0b8: 40 00 13 5d call 200fe2c <__errno> <== NOT EXECUTED 200b0bc: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200b0c0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200b0c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 200b0c8: 81 c7 e0 08 ret 200b0cc: 81 e8 00 00 restore 0200360c : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 200360c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003610: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2003614: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 2003618: 80 a0 a0 01 cmp %g2, 1 200361c: 12 80 00 05 bne 2003630 2003620: 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; 2003624: f0 20 60 5c st %i0, [ %g1 + 0x5c ] return 0; } 2003628: 81 c7 e0 08 ret 200362c: 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 ); 2003630: 40 00 48 a3 call 20158bc <__errno> <== NOT EXECUTED 2003634: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003638: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 200363c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003640: 81 c7 e0 08 ret <== NOT EXECUTED 2003644: 81 e8 00 00 restore <== NOT EXECUTED 02004080 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 2004080: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 2004084: 80 a6 20 00 cmp %i0, 0 2004088: 02 80 00 5b be 20041f4 200408c: 21 00 80 9a sethi %hi(0x2026800), %l0 fprintf(stdout, "%s", the_jnode->name ); 2004090: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 ! 2026a78 <_impure_ptr> 2004094: 90 06 20 0c add %i0, 0xc, %o0 2004098: 40 00 44 21 call 201511c 200409c: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 20040a0: d4 06 20 4c ld [ %i0 + 0x4c ], %o2 20040a4: 80 a2 a0 07 cmp %o2, 7 20040a8: 08 80 00 0f bleu 20040e4 20040ac: 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 ); 20040b0: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 <== NOT EXECUTED 20040b4: 13 00 80 92 sethi %hi(0x2024800), %o1 <== NOT EXECUTED 20040b8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 20040bc: 40 00 43 ba call 2014fa4 <== NOT EXECUTED 20040c0: 92 12 63 78 or %o1, 0x378, %o1 <== NOT EXECUTED assert(0); 20040c4: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); assert(0); 20040c8: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED 20040cc: 15 00 80 93 sethi %hi(0x2024c00), %o2 <== NOT EXECUTED 20040d0: 17 00 80 92 sethi %hi(0x2024800), %o3 <== NOT EXECUTED 20040d4: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED 20040d8: 94 12 a0 b8 or %o2, 0xb8, %o2 <== NOT EXECUTED 20040dc: 40 00 02 7f call 2004ad8 <__assert_func> <== NOT EXECUTED 20040e0: 96 12 e3 58 or %o3, 0x358, %o3 <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { 20040e4: 05 00 80 10 sethi %hi(0x2004000), %g2 20040e8: 84 10 a0 24 or %g2, 0x24, %g2 ! 2004024 20040ec: c2 00 80 01 ld [ %g2 + %g1 ], %g1 20040f0: 81 c0 40 00 jmp %g1 20040f4: 01 00 00 00 nop fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 20040f8: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 <== NOT EXECUTED 20040fc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004100: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2004104: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 2004108: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED 200410c: 40 00 47 23 call 2015d98 <== NOT EXECUTED 2004110: 90 12 23 60 or %o0, 0x360, %o0 ! 2024b60 <== NOT EXECUTED assert(0); 2004114: 10 bf ff ed b 20040c8 <== NOT EXECUTED 2004118: 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)", 200411c: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 <== NOT EXECUTED 2004120: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 2004124: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 2004128: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 200412c: 13 00 80 92 sethi %hi(0x2024800), %o1 <== NOT EXECUTED 2004130: 40 00 43 9d call 2014fa4 <== NOT EXECUTED 2004134: 92 12 63 20 or %o1, 0x320, %o1 ! 2024b20 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 2004138: 31 00 80 92 sethi %hi(0x2024800), %i0 <== NOT EXECUTED 200413c: 40 00 4b 21 call 2016dc0 <== NOT EXECUTED 2004140: 91 ee 23 88 restore %i0, 0x388, %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 ")", 2004144: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 2004148: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 200414c: d0 00 60 08 ld [ %g1 + 8 ], %o0 2004150: 13 00 80 92 sethi %hi(0x2024800), %o1 2004154: 40 00 43 94 call 2014fa4 2004158: 92 12 63 30 or %o1, 0x330, %o1 ! 2024b30 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 200415c: 31 00 80 92 sethi %hi(0x2024800), %i0 2004160: 40 00 4b 18 call 2016dc0 2004164: 91 ee 23 88 restore %i0, 0x388, %o0 fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 2004168: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 <== NOT EXECUTED 200416c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004170: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2004174: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED 2004178: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED 200417c: 40 00 47 07 call 2015d98 <== NOT EXECUTED 2004180: 90 12 23 40 or %o0, 0x340, %o0 ! 2024b40 <== NOT EXECUTED assert(0); 2004184: 10 bf ff d1 b 20040c8 <== NOT EXECUTED 2004188: 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" ); 200418c: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 <== NOT EXECUTED 2004190: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004194: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED 2004198: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED 200419c: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED 20041a0: 40 00 46 fe call 2015d98 <== NOT EXECUTED 20041a4: 90 12 23 40 or %o0, 0x340, %o0 ! 2024b40 <== NOT EXECUTED assert(0); 20041a8: 10 bf ff c8 b 20040c8 <== NOT EXECUTED 20041ac: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 20041b0: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 20041b4: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 20041b8: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 20041bc: d0 00 60 08 ld [ %g1 + 8 ], %o0 20041c0: 13 00 80 92 sethi %hi(0x2024800), %o1 20041c4: 40 00 43 78 call 2014fa4 20041c8: 92 12 63 08 or %o1, 0x308, %o1 ! 2024b08 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 20041cc: 31 00 80 92 sethi %hi(0x2024800), %i0 20041d0: 40 00 4a fc call 2016dc0 20041d4: 91 ee 23 88 restore %i0, 0x388, %o0 assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 20041d8: c2 04 22 78 ld [ %l0 + 0x278 ], %g1 20041dc: 90 10 20 2f mov 0x2f, %o0 20041e0: d2 00 60 08 ld [ %g1 + 8 ], %o1 20041e4: 40 00 43 8a call 201500c 20041e8: 31 00 80 92 sethi %hi(0x2024800), %i0 default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 20041ec: 40 00 4a f5 call 2016dc0 20041f0: 91 ee 23 88 restore %i0, 0x388, %o0 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 20041f4: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED 20041f8: 15 00 80 93 sethi %hi(0x2024c00), %o2 <== NOT EXECUTED 20041fc: 17 00 80 92 sethi %hi(0x2024800), %o3 <== NOT EXECUTED 2004200: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED 2004204: 94 12 a0 b8 or %o2, 0xb8, %o2 <== NOT EXECUTED 2004208: 96 12 e2 f8 or %o3, 0x2f8, %o3 <== NOT EXECUTED 200420c: 40 00 02 33 call 2004ad8 <__assert_func> <== NOT EXECUTED 2004210: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED 02003654 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 2003654: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 2003658: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 200365c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 2003660: 80 a0 a0 04 cmp %g2, 4 2003664: 12 80 00 19 bne 20036c8 2003668: 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++ ) 200366c: 02 80 00 15 be 20036c0 2003670: 86 10 20 00 clr %g3 2003674: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003678: 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 ); 200367c: b0 10 20 00 clr %i0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2003680: 80 a1 20 00 cmp %g4, 0 2003684: 12 80 00 08 bne 20036a4 2003688: c4 08 80 00 ldub [ %g2 ], %g2 200368c: 30 80 00 13 b,a 20036d8 <== NOT EXECUTED 2003690: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003694: c8 48 80 18 ldsb [ %g2 + %i0 ], %g4 2003698: 80 a1 20 00 cmp %g4, 0 200369c: 02 80 00 07 be 20036b8 20036a0: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; 20036a4: 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++ ) 20036a8: b0 06 20 01 inc %i0 20036ac: 80 a6 80 18 cmp %i2, %i0 20036b0: 18 bf ff f8 bgu 2003690 20036b4: 86 10 00 18 mov %i0, %g3 buf[i] = node->info.sym_link.name[i]; return i; } 20036b8: 81 c7 e0 08 ret 20036bc: 81 e8 00 00 restore 20036c0: 81 c7 e0 08 ret <== NOT EXECUTED 20036c4: 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 ); 20036c8: 40 00 48 7d call 20158bc <__errno> <== NOT EXECUTED 20036cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20036d0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20036d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20036d8: 81 c7 e0 08 ret <== NOT EXECUTED 20036dc: 81 e8 00 00 restore <== NOT EXECUTED 020036e0 : 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 */ ) { 20036e0: 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; 20036e4: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 20036e8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 20036ec: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 20036f0: 40 00 4c 47 call 201680c <== NOT EXECUTED 20036f4: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 20036f8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 20036fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003700: 22 80 00 05 be,a 2003714 <== NOT EXECUTED 2003704: 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 ); 2003708: 40 00 14 a8 call 20089a8 <_Chain_Extract> <== NOT EXECUTED 200370c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 2003710: 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 ); 2003714: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003718: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 200371c: 40 00 14 97 call 2008978 <_Chain_Append> <== NOT EXECUTED 2003720: 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 ); 2003724: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2003728: 40 00 02 29 call 2003fcc <== NOT EXECUTED 200372c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003730: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2003734: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED return 0; } 2003738: 81 c7 e0 08 ret <== NOT EXECUTED 200373c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200b0dc : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200b0dc: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200b0e0: 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 ) { 200b0e4: c2 04 20 08 ld [ %l0 + 8 ], %g1 200b0e8: 80 a0 60 00 cmp %g1, 0 200b0ec: 22 80 00 06 be,a 200b104 200b0f0: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 200b0f4: 40 00 06 1a call 200c95c <_Chain_Extract> 200b0f8: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200b0fc: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200b100: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 200b104: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200b108: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200b10c: 90 07 bf f8 add %fp, -8, %o0 200b110: 40 00 01 2c call 200b5c0 200b114: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 200b118: 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) ) { 200b11c: 90 10 00 10 mov %l0, %o0 200b120: 40 00 01 61 call 200b6a4 200b124: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 200b128: 80 a2 20 00 cmp %o0, 0 200b12c: 12 80 00 12 bne 200b174 200b130: 01 00 00 00 nop 200b134: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 200b138: 80 a0 60 00 cmp %g1, 0 200b13c: 12 80 00 0e bne 200b174 200b140: 03 00 80 70 sethi %hi(0x201c000), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200b144: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 201c330 200b148: c4 06 40 00 ld [ %i1 ], %g2 200b14c: c6 00 60 04 ld [ %g1 + 4 ], %g3 200b150: 80 a0 c0 02 cmp %g3, %g2 200b154: 22 80 00 02 be,a 200b15c 200b158: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200b15c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 200b160: 80 a0 60 04 cmp %g1, 4 200b164: 22 80 00 06 be,a 200b17c 200b168: 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 ); 200b16c: 40 00 00 9b call 200b3d8 200b170: 90 10 00 10 mov %l0, %o0 } return 0; } 200b174: 81 c7 e0 08 ret 200b178: 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 ) 200b17c: 80 a2 20 00 cmp %o0, 0 200b180: 02 bf ff fb be 200b16c 200b184: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200b188: 40 00 00 94 call 200b3d8 200b18c: 01 00 00 00 nop 200b190: 30 bf ff f7 b,a 200b16c 0200b1b4 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200b1b4: 9d e3 bf a0 save %sp, -96, %sp IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 200b1b8: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200b1bc: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 200b1c0: 80 a0 a0 07 cmp %g2, 7 200b1c4: 08 80 00 08 bleu 200b1e4 200b1c8: 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 ); 200b1cc: 40 00 13 18 call 200fe2c <__errno> <== NOT EXECUTED 200b1d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b1d4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200b1d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b1dc: 81 c7 e0 08 ret <== NOT EXECUTED 200b1e0: 81 e8 00 00 restore <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 200b1e4: 07 00 80 2c sethi %hi(0x200b000), %g3 200b1e8: 86 10 e1 94 or %g3, 0x194, %g3 ! 200b194 200b1ec: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200b1f0: 81 c0 80 00 jmp %g2 200b1f4: 01 00 00 00 nop case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200b1f8: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 200b1fc: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 200b200: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 buf->st_nlink = the_jnode->st_nlink; 200b204: c8 10 60 34 lduh [ %g1 + 0x34 ], %g4 */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 200b208: c6 26 60 0c st %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200b20c: c6 00 60 38 ld [ %g1 + 0x38 ], %g3 * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 200b210: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200b214: c6 26 60 08 st %g3, [ %i1 + 8 ] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 200b218: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 200b21c: c8 36 60 10 sth %g4, [ %i1 + 0x10 ] 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; 200b220: c6 26 60 28 st %g3, [ %i1 + 0x28 ] rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 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; 200b224: c8 10 60 3c lduh [ %g1 + 0x3c ], %g4 buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200b228: c6 00 60 44 ld [ %g1 + 0x44 ], %g3 * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 200b22c: c4 00 a0 34 ld [ %g2 + 0x34 ], %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; 200b230: c8 36 60 12 sth %g4, [ %i1 + 0x12 ] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200b234: c6 26 60 30 st %g3, [ %i1 + 0x30 ] * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 200b238: c4 00 80 00 ld [ %g2 ], %g2 buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200b23c: c6 00 60 48 ld [ %g1 + 0x48 ], %g3 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; 200b240: c2 10 60 3e lduh [ %g1 + 0x3e ], %g1 buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200b244: c6 26 60 38 st %g3, [ %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; 200b248: c2 36 60 14 sth %g1, [ %i1 + 0x14 ] /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = 200b24c: c4 26 60 04 st %g2, [ %i1 + 4 ] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200b250: 03 00 00 3f sethi %hi(0xfc00), %g1 200b254: 82 10 63 fe or %g1, 0x3fe, %g1 ! fffe 200b258: c2 26 40 00 st %g1, [ %i1 ] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 200b25c: 81 c7 e0 08 ret 200b260: 91 e8 20 00 restore %g0, 0, %o0 200b264: 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; 200b268: 10 bf ff e6 b 200b200 200b26c: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200b270: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200b274: 10 bf ff e3 b 200b200 200b278: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] 02003740 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 2003740: 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 ); 2003744: 40 00 4b fd call 2016738 2003748: 90 10 00 1a mov %i2, %o0 200374c: 96 07 bf fc add %fp, -4, %o3 2003750: 92 10 00 08 mov %o0, %o1 2003754: a0 07 bf b8 add %fp, -72, %l0 2003758: 90 10 00 1a mov %i2, %o0 200375c: 40 00 34 04 call 201076c 2003760: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2003764: 40 00 4b e0 call 20166e4 2003768: 90 10 00 19 mov %i1, %o0 if (info.sym_link.name == NULL) { 200376c: 80 a2 20 00 cmp %o0, 0 2003770: 02 80 00 15 be 20037c4 2003774: 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( 2003778: 90 10 00 18 mov %i0, %o0 200377c: 94 10 00 10 mov %l0, %o2 2003780: 92 10 20 04 mov 4, %o1 2003784: 17 00 00 28 sethi %hi(0xa000), %o3 2003788: 98 07 bf e0 add %fp, -32, %o4 200378c: 96 12 e1 ff or %o3, 0x1ff, %o3 2003790: 40 00 30 59 call 200f8f4 2003794: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2003798: 80 a2 20 00 cmp %o0, 0 200379c: 12 80 00 08 bne 20037bc 20037a0: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 20037a4: 40 00 01 df call 2003f20 <== NOT EXECUTED 20037a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 20037ac: 40 00 48 44 call 20158bc <__errno> <== NOT EXECUTED 20037b0: 01 00 00 00 nop <== NOT EXECUTED 20037b4: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 20037b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 20037bc: 81 c7 e0 08 ret 20037c0: 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); 20037c4: 40 00 48 3e call 20158bc <__errno> <== NOT EXECUTED 20037c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20037cc: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20037d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20037d4: 81 c7 e0 08 ret <== NOT EXECUTED 20037d8: 81 e8 00 00 restore <== NOT EXECUTED 020037dc : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 20037dc: 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; 20037e0: 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 ) { 20037e4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 20037e8: 80 a0 60 03 cmp %g1, 3 20037ec: 02 80 00 09 be 2003810 20037f0: a2 10 00 18 mov %i0, %l1 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 20037f4: c2 06 60 08 ld [ %i1 + 8 ], %g1 20037f8: 90 10 00 11 mov %l1, %o0 20037fc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2003800: 9f c0 40 00 call %g1 2003804: 92 10 00 19 mov %i1, %o1 return result; } 2003808: 81 c7 e0 08 ret 200380c: 91 e8 00 08 restore %g0, %o0, %o0 * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 2003810: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003814: 80 a0 60 00 cmp %g1, 0 2003818: 02 80 00 25 be 20038ac 200381c: a4 07 bf e4 add %fp, -28, %l2 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 2003820: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 2003824: da 06 60 04 ld [ %i1 + 4 ], %o5 2003828: c8 06 60 08 ld [ %i1 + 8 ], %g4 200382c: c6 06 60 0c ld [ %i1 + 0xc ], %g3 2003830: c4 27 bf f4 st %g2, [ %fp + -12 ] the_link.node_access = node->info.hard_link.link_node; 2003834: 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; 2003838: da 27 bf e8 st %o5, [ %fp + -24 ] 200383c: c8 27 bf ec st %g4, [ %fp + -20 ] 2003840: c6 27 bf f0 st %g3, [ %fp + -16 ] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 2003844: 40 00 30 79 call 200fa28 2003848: 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) 200384c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003850: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2 2003854: 80 a0 a0 01 cmp %g2, 1 2003858: 02 80 00 0a be 2003880 200385c: 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 ); 2003860: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2003864: c6 30 60 34 sth %g3, [ %g1 + 0x34 ] IMFS_update_ctime( node->info.hard_link.link_node ); 2003868: 40 00 01 d9 call 2003fcc 200386c: 92 10 20 00 clr %o1 2003870: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003874: c4 07 bf f8 ld [ %fp + -8 ], %g2 2003878: 10 bf ff df b 20037f4 200387c: c4 20 60 48 st %g2, [ %g1 + 0x48 ] * 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 ); 2003880: c2 07 bf ec ld [ %fp + -20 ], %g1 2003884: 90 10 00 18 mov %i0, %o0 2003888: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200388c: 92 10 00 12 mov %l2, %o1 2003890: 9f c0 40 00 call %g1 2003894: b0 10 3f ff mov -1, %i0 if ( result != 0 ) 2003898: 80 a2 20 00 cmp %o0, 0 200389c: 22 bf ff d7 be,a 20037f8 20038a0: c2 06 60 08 ld [ %i1 + 8 ], %g1 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 20038a4: 81 c7 e0 08 ret 20038a8: 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 ); 20038ac: 40 00 48 04 call 20158bc <__errno> <== NOT EXECUTED 20038b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20038b4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20038b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20038bc: 81 c7 e0 08 ret <== NOT EXECUTED 20038c0: 81 e8 00 00 restore <== NOT EXECUTED 020038c4 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 20038c4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 20038c8: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 20038cc: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 20038d0: 80 a0 a0 01 cmp %g2, 1 20038d4: 12 80 00 09 bne 20038f8 20038d8: 01 00 00 00 nop /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 20038dc: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 20038e0: 80 a0 a0 00 cmp %g2, 0 20038e4: 02 80 00 0b be 2003910 20038e8: 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; 20038ec: c0 20 60 5c clr [ %g1 + 0x5c ] return 0; } 20038f0: 81 c7 e0 08 ret 20038f4: 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 ); 20038f8: 40 00 47 f1 call 20158bc <__errno> <== NOT EXECUTED 20038fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003900: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2003904: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003908: 81 c7 e0 08 ret <== NOT EXECUTED 200390c: 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 */ 2003910: 40 00 47 eb call 20158bc <__errno> <== NOT EXECUTED 2003914: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003918: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200391c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003920: 81 c7 e0 08 ret <== NOT EXECUTED 2003924: 81 e8 00 00 restore <== NOT EXECUTED 02002938 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 2002938: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 200293c: 03 00 80 72 sethi %hi(0x201c800), %g1 2002940: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 ! 201c898 2002944: 80 a0 60 00 cmp %g1, 0 2002948: 02 80 00 05 be 200295c 200294c: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 2002950: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 2002954: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002958: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 200295c: 40 00 24 04 call 200b96c 2002960: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 2002964: 03 00 80 72 sethi %hi(0x201c800), %g1 2002968: c2 00 60 9c ld [ %g1 + 0x9c ], %g1 ! 201c89c 200296c: 80 a0 60 00 cmp %g1, 0 2002970: 02 80 00 08 be 2002990 2002974: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 2002978: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 200297c: 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)( 2002980: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002984: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 2002988: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200298c: 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 ( 2002990: 23 00 80 72 sethi %hi(0x201c800), %l1 2002994: c2 0c 60 95 ldub [ %l1 + 0x95 ], %g1 ! 201c895 2002998: 80 a0 60 00 cmp %g1, 0 200299c: 12 80 00 10 bne 20029dc 20029a0: 21 00 80 70 sethi %hi(0x201c000), %l0 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 20029a4: 03 00 80 70 sethi %hi(0x201c000), %g1 20029a8: c2 08 62 50 ldub [ %g1 + 0x250 ], %g1 ! 201c250 20029ac: 80 a0 60 00 cmp %g1, 0 20029b0: 12 80 00 13 bne 20029fc 20029b4: 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 ); 20029b8: 21 00 80 70 sethi %hi(0x201c000), %l0 20029bc: d0 04 21 80 ld [ %l0 + 0x180 ], %o0 ! 201c180 20029c0: 92 10 00 18 mov %i0, %o1 20029c4: 94 10 00 19 mov %i1, %o2 20029c8: 40 00 11 76 call 2006fa0 <_Heap_Initialize> 20029cc: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 20029d0: 80 a2 20 00 cmp %o0, 0 20029d4: 02 80 00 13 be 2002a20 20029d8: 01 00 00 00 nop rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 20029dc: d0 04 21 80 ld [ %l0 + 0x180 ], %o0 20029e0: 21 00 80 72 sethi %hi(0x201c800), %l0 20029e4: 40 00 14 bc call 2007cd4 <_Protected_heap_Get_size> 20029e8: e2 04 23 80 ld [ %l0 + 0x380 ], %l1 ! 201cb80 20029ec: 90 02 00 11 add %o0, %l1, %o0 20029f0: d0 24 23 80 st %o0, [ %l0 + 0x380 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 20029f4: 81 c7 e0 08 ret 20029f8: 81 e8 00 00 restore if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 20029fc: 92 10 20 00 clr %o1 2002a00: 40 00 37 86 call 2010818 2002a04: 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 ) { 2002a08: c2 0c 60 95 ldub [ %l1 + 0x95 ], %g1 2002a0c: 80 a0 60 00 cmp %g1, 0 2002a10: 22 bf ff eb be,a 20029bc 2002a14: 21 00 80 70 sethi %hi(0x201c000), %l0 if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 2002a18: 10 bf ff f2 b 20029e0 <== NOT EXECUTED 2002a1c: d0 04 21 80 ld [ %l0 + 0x180 ], %o0 ! 201c180 <== NOT EXECUTED heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 2002a20: 40 00 0f 28 call 20066c0 <== NOT EXECUTED 2002a24: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED 02003598 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2003598: 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 ) 200359c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20035a0: 02 80 00 3b be 200368c <== NOT EXECUTED 20035a4: 27 00 81 af sethi %hi(0x206bc00), %l3 <== NOT EXECUTED return; if ( !print_handler ) 20035a8: e8 04 e0 38 ld [ %l3 + 0x38 ], %l4 ! 206bc38 <== NOT EXECUTED 20035ac: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED 20035b0: 02 80 00 37 be 200368c <== NOT EXECUTED 20035b4: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 20035b8: 02 80 00 3e be 20036b0 <== NOT EXECUTED 20035bc: 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); 20035c0: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 20035c4: 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); 20035c8: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 20035cc: 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 ); 20035d0: 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); 20035d4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 20035d8: 7f ff ff d8 call 2003538 <== NOT EXECUTED 20035dc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( high_water_mark ) 20035e0: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 20035e4: 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 ) 20035e8: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 20035ec: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 20035f0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20035f4: 02 80 00 44 be 2003704 <== NOT EXECUTED 20035f8: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED (*print_handler)( 20035fc: ee 06 20 08 ld [ %i0 + 8 ], %l7 <== NOT EXECUTED 2003600: 2b 00 81 af sethi %hi(0x206bc00), %l5 <== NOT EXECUTED 2003604: fa 05 60 34 ld [ %l5 + 0x34 ], %i5 ! 206bc34 <== NOT EXECUTED 2003608: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 200360c: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2003610: 40 00 19 12 call 2009a58 <== NOT EXECUTED 2003614: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED 2003618: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 200361c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2003620: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED 2003624: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED 2003628: 9f c5 00 00 call %l4 <== NOT EXECUTED 200362c: 92 12 63 e0 or %o1, 0x3e0, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2003630: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 2003634: c2 04 e0 38 ld [ %l3 + 0x38 ], %g1 <== NOT EXECUTED 2003638: d4 04 a0 04 ld [ %l2 + 4 ], %o2 <== NOT EXECUTED 200363c: d0 05 60 34 ld [ %l5 + 0x34 ], %o0 <== NOT EXECUTED 2003640: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2003644: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED 2003648: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 200364c: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED 2003650: 13 00 81 7f sethi %hi(0x205fc00), %o1 <== NOT EXECUTED 2003654: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003658: 92 12 60 00 mov %o1, %o1 ! 205fc00 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 200365c: 03 00 81 af sethi %hi(0x206bc00), %g1 <== NOT EXECUTED 2003660: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 ! 206bc30 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2003664: 03 00 81 af sethi %hi(0x206bc00), %g1 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2003668: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200366c: 02 80 00 0a be 2003694 <== NOT EXECUTED 2003670: 05 00 81 af sethi %hi(0x206bc00), %g2 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 2003674: c2 00 60 38 ld [ %g1 + 0x38 ], %g1 <== NOT EXECUTED 2003678: d0 00 a0 34 ld [ %g2 + 0x34 ], %o0 <== NOT EXECUTED 200367c: 13 00 81 7f sethi %hi(0x205fc00), %o1 <== NOT EXECUTED 2003680: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2003684: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003688: 92 12 60 30 or %o1, 0x30, %o1 <== NOT EXECUTED 200368c: 81 c7 e0 08 ret <== NOT EXECUTED 2003690: 81 e8 00 00 restore <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 2003694: c2 00 60 38 ld [ %g1 + 0x38 ], %g1 <== NOT EXECUTED 2003698: d0 00 a0 34 ld [ %g2 + 0x34 ], %o0 <== NOT EXECUTED 200369c: 13 00 81 7f sethi %hi(0x205fc00), %o1 <== NOT EXECUTED 20036a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20036a4: 92 12 60 20 or %o1, 0x20, %o1 ! 205fc20 <== NOT EXECUTED 20036a8: 81 c7 e0 08 ret <== NOT EXECUTED 20036ac: 81 e8 00 00 restore <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 20036b0: 25 00 81 ba sethi %hi(0x206e800), %l2 <== NOT EXECUTED 20036b4: a4 14 a0 3c or %l2, 0x3c, %l2 ! 206e83c <== NOT EXECUTED 20036b8: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED 20036bc: ac 10 20 00 clr %l6 <== NOT EXECUTED 20036c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20036c4: 02 bf ff f2 be 200368c <== NOT EXECUTED 20036c8: 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); 20036cc: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 20036d0: 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); 20036d4: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 20036d8: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 20036dc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 20036e0: 7f ff ff 96 call 2003538 <== NOT EXECUTED 20036e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED if ( high_water_mark ) 20036e8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 20036ec: 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 ) 20036f0: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 20036f4: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 20036f8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 20036fc: 12 bf ff c0 bne 20035fc <== NOT EXECUTED 2003700: 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 ); 2003704: 2b 00 81 af sethi %hi(0x206bc00), %l5 <== NOT EXECUTED 2003708: d0 05 60 34 ld [ %l5 + 0x34 ], %o0 ! 206bc34 <== NOT EXECUTED 200370c: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED 2003710: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2003714: 9f c5 00 00 call %l4 <== NOT EXECUTED 2003718: 92 12 63 f0 or %o1, 0x3f0, %o1 <== NOT EXECUTED } (*print_handler)( 200371c: 10 bf ff c6 b 2003634 <== NOT EXECUTED 2003720: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED 02003538 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2003538: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 200353c: 86 0a 7f fc and %o1, -4, %g3 <== NOT EXECUTED 2003540: 86 00 40 03 add %g1, %g3, %g3 <== NOT EXECUTED 2003544: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003548: 1a 80 00 10 bcc 2003588 <== NOT EXECUTED 200354c: 05 29 69 69 sethi %hi(0xa5a5a400), %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 2003550: c8 02 20 10 ld [ %o0 + 0x10 ], %g4 <== NOT EXECUTED 2003554: 84 10 a1 a5 or %g2, 0x1a5, %g2 <== NOT EXECUTED 2003558: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED 200355c: 22 80 00 08 be,a 200357c <== NOT EXECUTED 2003560: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED return (void *) base; 2003564: 81 c3 e0 08 retl <== NOT EXECUTED 2003568: 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) 200356c: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 2003570: 12 80 00 08 bne 2003590 <== NOT EXECUTED 2003574: 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++) 2003578: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED 200357c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003580: 38 bf ff fb bgu,a 200356c <== NOT EXECUTED 2003584: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 2003588: 81 c3 e0 08 retl <== NOT EXECUTED 200358c: 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; 2003590: 81 c3 e0 08 retl <== NOT EXECUTED 02003798 : * * 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) { 2003798: 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"); 200379c: 11 00 81 7f sethi %hi(0x205fc00), %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); 20037a0: e0 06 20 c8 ld [ %i0 + 0xc8 ], %l0 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 20037a4: 40 00 0c 3c call 2006894 <== NOT EXECUTED 20037a8: 90 12 20 a0 or %o0, 0xa0, %o0 <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 20037ac: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20037b0: 11 00 81 7f sethi %hi(0x205fc00), %o0 <== NOT EXECUTED 20037b4: 40 00 0c 38 call 2006894 <== NOT EXECUTED 20037b8: 90 12 20 b0 or %o0, 0xb0, %o0 ! 205fcb0 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 20037bc: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 20037c0: 11 00 81 7f sethi %hi(0x205fc00), %o0 <== NOT EXECUTED 20037c4: 40 00 0c 34 call 2006894 <== NOT EXECUTED 20037c8: 90 12 20 d0 or %o0, 0xd0, %o0 ! 205fcd0 <== NOT EXECUTED printk( 20037cc: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 20037d0: 11 00 81 7f sethi %hi(0x205fc00), %o0 <== NOT EXECUTED 20037d4: 40 00 0c 30 call 2006894 <== NOT EXECUTED 20037d8: 90 12 20 e8 or %o0, 0xe8, %o0 ! 205fce8 <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 20037dc: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 20037e0: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED 20037e4: 40 00 18 9d call 2009a58 <== NOT EXECUTED 20037e8: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED 20037ec: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 20037f0: 11 00 81 7f sethi %hi(0x205fc00), %o0 <== NOT EXECUTED 20037f4: 40 00 0c 28 call 2006894 <== NOT EXECUTED 20037f8: 90 12 21 00 or %o0, 0x100, %o0 ! 205fd00 <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 20037fc: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1 <== NOT EXECUTED 2003800: d4 06 20 c8 ld [ %i0 + 0xc8 ], %o2 <== NOT EXECUTED 2003804: 11 00 81 7f sethi %hi(0x205fc00), %o0 <== NOT EXECUTED 2003808: 96 02 80 09 add %o2, %o1, %o3 <== NOT EXECUTED 200380c: 40 00 0c 22 call 2006894 <== NOT EXECUTED 2003810: 90 12 21 18 or %o0, 0x118, %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) { 2003814: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 2003818: 02 80 00 04 be 2003828 <== NOT EXECUTED 200381c: 96 04 20 18 add %l0, 0x18, %o3 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 2003820: 40 00 1a ca call 200a348 <== NOT EXECUTED 2003824: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 2003828: 11 00 81 7f sethi %hi(0x205fc00), %o0 <== NOT EXECUTED 200382c: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 2003830: 90 12 21 50 or %o0, 0x150, %o0 <== NOT EXECUTED 2003834: 40 00 0c 18 call 2006894 <== NOT EXECUTED 2003838: 94 04 20 08 add %l0, 8, %o2 <== NOT EXECUTED 200383c: 30 bf ff f9 b,a 2003820 <== NOT EXECUTED 0200cc7c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200cc7c: 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; 200cc80: a8 06 60 04 add %i1, 4, %l4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 200cc84: 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 ) { 200cc88: 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; 200cc8c: e4 06 20 08 ld [ %i0 + 8 ], %l2 200cc90: 18 80 00 72 bgu 200ce58 <_Heap_Allocate_aligned_with_boundary+0x1dc> 200cc94: fa 06 20 10 ld [ %i0 + 0x10 ], %i5 /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 200cc98: 80 a6 e0 00 cmp %i3, 0 200cc9c: 12 80 00 6d bne 200ce50 <_Heap_Allocate_aligned_with_boundary+0x1d4> 200cca0: 80 a6 40 1b cmp %i1, %i3 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200cca4: 80 a4 00 12 cmp %l0, %l2 200cca8: 02 80 00 6f be 200ce64 <_Heap_Allocate_aligned_with_boundary+0x1e8> 200ccac: 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; 200ccb0: 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; 200ccb4: 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; 200ccb8: 82 20 40 19 sub %g1, %i1, %g1 200ccbc: 10 80 00 09 b 200cce0 <_Heap_Allocate_aligned_with_boundary+0x64> 200ccc0: c2 27 bf fc st %g1, [ %fp + -4 ] boundary ); } } if ( alloc_begin != 0 ) { 200ccc4: 80 a6 20 00 cmp %i0, 0 200ccc8: 32 80 00 54 bne,a 200ce18 <_Heap_Allocate_aligned_with_boundary+0x19c> 200cccc: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 break; } block = block->next; 200ccd0: e4 04 a0 08 ld [ %l2 + 8 ], %l2 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200ccd4: 80 a4 00 12 cmp %l0, %l2 200ccd8: 22 80 00 57 be,a 200ce34 <_Heap_Allocate_aligned_with_boundary+0x1b8> 200ccdc: 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 ) { 200cce0: e6 04 a0 04 ld [ %l2 + 4 ], %l3 200cce4: 80 a5 00 13 cmp %l4, %l3 200cce8: 1a bf ff fa bcc 200ccd0 <_Heap_Allocate_aligned_with_boundary+0x54> 200ccec: a2 04 60 01 inc %l1 if ( alignment == 0 ) { 200ccf0: 80 a6 a0 00 cmp %i2, 0 200ccf4: 02 bf ff f4 be 200ccc4 <_Heap_Allocate_aligned_with_boundary+0x48> 200ccf8: 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; 200ccfc: 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; 200cd00: 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; 200cd04: a6 0c ff fe and %l3, -2, %l3 200cd08: 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; 200cd0c: 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; 200cd10: 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); 200cd14: 90 10 00 18 mov %i0, %o0 200cd18: a6 00 40 13 add %g1, %l3, %l3 200cd1c: 40 00 32 24 call 20195ac <.urem> 200cd20: 92 10 00 1a mov %i2, %o1 200cd24: 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 ) { 200cd28: 80 a4 c0 18 cmp %l3, %i0 200cd2c: 1a 80 00 06 bcc 200cd44 <_Heap_Allocate_aligned_with_boundary+0xc8> 200cd30: ac 04 a0 08 add %l2, 8, %l6 200cd34: 90 10 00 13 mov %l3, %o0 200cd38: 40 00 32 1d call 20195ac <.urem> 200cd3c: 92 10 00 1a mov %i2, %o1 200cd40: b0 24 c0 08 sub %l3, %o0, %i0 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 200cd44: 80 a6 e0 00 cmp %i3, 0 200cd48: 02 80 00 24 be 200cdd8 <_Heap_Allocate_aligned_with_boundary+0x15c> 200cd4c: 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; 200cd50: a6 06 00 19 add %i0, %i1, %l3 200cd54: 92 10 00 1b mov %i3, %o1 200cd58: 40 00 32 15 call 20195ac <.urem> 200cd5c: 90 10 00 13 mov %l3, %o0 200cd60: 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 ) { 200cd64: 80 a4 c0 08 cmp %l3, %o0 200cd68: 08 80 00 1b bleu 200cdd4 <_Heap_Allocate_aligned_with_boundary+0x158> 200cd6c: 80 a6 00 08 cmp %i0, %o0 200cd70: 1a 80 00 1a bcc 200cdd8 <_Heap_Allocate_aligned_with_boundary+0x15c> 200cd74: 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; 200cd78: 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 ) { 200cd7c: 80 a5 40 08 cmp %l5, %o0 200cd80: 28 80 00 09 bleu,a 200cda4 <_Heap_Allocate_aligned_with_boundary+0x128> 200cd84: b0 22 00 19 sub %o0, %i1, %i0 if ( alloc_begin != 0 ) { break; } block = block->next; 200cd88: 10 bf ff d3 b 200ccd4 <_Heap_Allocate_aligned_with_boundary+0x58> 200cd8c: 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 ) { 200cd90: 1a 80 00 11 bcc 200cdd4 <_Heap_Allocate_aligned_with_boundary+0x158> 200cd94: 80 a5 40 08 cmp %l5, %o0 if ( boundary_line < boundary_floor ) { 200cd98: 38 bf ff cf bgu,a 200ccd4 <_Heap_Allocate_aligned_with_boundary+0x58> 200cd9c: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 200cda0: b0 22 00 19 sub %o0, %i1, %i0 200cda4: 92 10 00 1a mov %i2, %o1 200cda8: 40 00 32 01 call 20195ac <.urem> 200cdac: 90 10 00 18 mov %i0, %o0 200cdb0: 92 10 00 1b mov %i3, %o1 200cdb4: b0 26 00 08 sub %i0, %o0, %i0 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 200cdb8: a6 06 00 19 add %i0, %i1, %l3 200cdbc: 40 00 31 fc call 20195ac <.urem> 200cdc0: 90 10 00 13 mov %l3, %o0 200cdc4: 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 ) { 200cdc8: 80 a4 c0 08 cmp %l3, %o0 200cdcc: 18 bf ff f1 bgu 200cd90 <_Heap_Allocate_aligned_with_boundary+0x114> 200cdd0: 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 ) { 200cdd4: 80 a5 80 18 cmp %l6, %i0 200cdd8: 18 bf ff be bgu 200ccd0 <_Heap_Allocate_aligned_with_boundary+0x54> 200cddc: 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; 200cde0: 90 10 00 18 mov %i0, %o0 200cde4: a6 20 40 12 sub %g1, %l2, %l3 200cde8: 92 10 00 1d mov %i5, %o1 200cdec: 40 00 31 f0 call 20195ac <.urem> 200cdf0: a6 04 c0 18 add %l3, %i0, %l3 if ( free_size >= min_block_size || free_size == 0 ) { 200cdf4: 90 a4 c0 08 subcc %l3, %o0, %o0 200cdf8: 02 bf ff b4 be 200ccc8 <_Heap_Allocate_aligned_with_boundary+0x4c> 200cdfc: 80 a6 20 00 cmp %i0, 0 200ce00: 80 a5 c0 08 cmp %l7, %o0 200ce04: 18 bf ff b3 bgu 200ccd0 <_Heap_Allocate_aligned_with_boundary+0x54> 200ce08: 80 a6 20 00 cmp %i0, 0 boundary ); } } if ( alloc_begin != 0 ) { 200ce0c: 22 bf ff b2 be,a 200ccd4 <_Heap_Allocate_aligned_with_boundary+0x58> 200ce10: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200ce14: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200ce18: 92 10 00 12 mov %l2, %o1 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200ce1c: 82 00 40 11 add %g1, %l1, %g1 block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200ce20: 96 10 00 19 mov %i1, %o3 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 200ce24: c2 24 20 4c st %g1, [ %l0 + 0x4c ] block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 200ce28: 90 10 00 10 mov %l0, %o0 200ce2c: 7f ff e8 fa call 2007214 <_Heap_Block_allocate> 200ce30: 94 10 00 18 mov %i0, %o2 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 200ce34: c2 04 20 44 ld [ %l0 + 0x44 ], %g1 200ce38: 80 a0 40 11 cmp %g1, %l1 200ce3c: 1a 80 00 08 bcc 200ce5c <_Heap_Allocate_aligned_with_boundary+0x1e0> 200ce40: 01 00 00 00 nop ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 200ce44: e2 24 20 44 st %l1, [ %l0 + 0x44 ] 200ce48: 81 c7 e0 08 ret 200ce4c: 81 e8 00 00 restore /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 200ce50: 08 80 00 07 bleu 200ce6c <_Heap_Allocate_aligned_with_boundary+0x1f0> 200ce54: 80 a6 a0 00 cmp %i2, 0 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 200ce58: b0 10 20 00 clr %i0 } return (void *) alloc_begin; } 200ce5c: 81 c7 e0 08 ret 200ce60: 81 e8 00 00 restore if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 200ce64: 10 bf ff f4 b 200ce34 <_Heap_Allocate_aligned_with_boundary+0x1b8> 200ce68: b0 10 20 00 clr %i0 if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 200ce6c: 22 bf ff 8e be,a 200cca4 <_Heap_Allocate_aligned_with_boundary+0x28> 200ce70: b4 10 00 1d mov %i5, %i2 alignment = page_size; } } while ( block != free_list_tail ) { 200ce74: 10 bf ff 8d b 200cca8 <_Heap_Allocate_aligned_with_boundary+0x2c> 200ce78: 80 a4 00 12 cmp %l0, %l2 0200818c <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 200818c: 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; 2008190: 25 00 80 21 sethi %hi(0x2008400), %l2 2008194: 80 8e a0 ff btst 0xff, %i2 2008198: a4 14 a3 8c or %l2, 0x38c, %l2 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 200819c: ea 06 20 10 ld [ %i0 + 0x10 ], %l5 uintptr_t const min_block_size = heap->min_block_size; 20081a0: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 Heap_Block *const last_block = heap->last_block; 20081a4: 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; 20081a8: 12 80 00 04 bne 20081b8 <_Heap_Walk+0x2c> 20081ac: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 20081b0: 25 00 80 20 sethi %hi(0x2008000), %l2 20081b4: a4 14 a1 84 or %l2, 0x184, %l2 ! 2008184 <_Heap_Walk_print_nothing> if ( !_System_state_Is_up( _System_state_Get() ) ) { 20081b8: 03 00 80 7d sethi %hi(0x201f400), %g1 20081bc: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 201f6e0 <_System_state_Current> 20081c0: 80 a0 60 03 cmp %g1, 3 20081c4: 22 80 00 04 be,a 20081d4 <_Heap_Walk+0x48> 20081c8: da 06 20 18 ld [ %i0 + 0x18 ], %o5 block = next_block; } return true; } 20081cc: 81 c7 e0 08 ret 20081d0: 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)( 20081d4: c6 06 20 1c ld [ %i0 + 0x1c ], %g3 20081d8: c4 06 20 08 ld [ %i0 + 8 ], %g2 20081dc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 20081e0: 90 10 00 19 mov %i1, %o0 20081e4: c6 23 a0 5c st %g3, [ %sp + 0x5c ] 20081e8: c4 23 a0 68 st %g2, [ %sp + 0x68 ] 20081ec: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 20081f0: e0 23 a0 60 st %l0, [ %sp + 0x60 ] 20081f4: e8 23 a0 64 st %l4, [ %sp + 0x64 ] 20081f8: 92 10 20 00 clr %o1 20081fc: 15 00 80 71 sethi %hi(0x201c400), %o2 2008200: 96 10 00 15 mov %l5, %o3 2008204: 94 12 a2 40 or %o2, 0x240, %o2 2008208: 9f c4 80 00 call %l2 200820c: 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 ) { 2008210: 80 a5 60 00 cmp %l5, 0 2008214: 02 80 00 36 be 20082ec <_Heap_Walk+0x160> 2008218: 80 8d 60 07 btst 7, %l5 (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 200821c: 12 80 00 3c bne 200830c <_Heap_Walk+0x180> 2008220: 90 10 00 13 mov %l3, %o0 ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 2008224: 7f ff e6 28 call 2001ac4 <.urem> 2008228: 92 10 00 15 mov %l5, %o1 200822c: 80 a2 20 00 cmp %o0, 0 2008230: 12 80 00 40 bne 2008330 <_Heap_Walk+0x1a4> 2008234: 90 04 20 08 add %l0, 8, %o0 ); return false; } if ( 2008238: 7f ff e6 23 call 2001ac4 <.urem> 200823c: 92 10 00 15 mov %l5, %o1 2008240: 80 a2 20 00 cmp %o0, 0 2008244: 32 80 00 44 bne,a 2008354 <_Heap_Walk+0x1c8> 2008248: 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; 200824c: ec 04 20 04 ld [ %l0 + 4 ], %l6 ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 2008250: ae 8d a0 01 andcc %l6, 1, %l7 2008254: 22 80 00 48 be,a 2008374 <_Heap_Walk+0x1e8> 2008258: 90 10 00 19 mov %i1, %o0 ); return false; } if ( first_block->prev_size != page_size ) { 200825c: d6 04 00 00 ld [ %l0 ], %o3 2008260: 80 a5 40 0b cmp %l5, %o3 2008264: 32 80 00 1a bne,a 20082cc <_Heap_Walk+0x140> 2008268: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_free( last_block ) ) { 200826c: c2 05 20 04 ld [ %l4 + 4 ], %g1 2008270: 82 08 7f fe and %g1, -2, %g1 2008274: 82 05 00 01 add %l4, %g1, %g1 2008278: c2 00 60 04 ld [ %g1 + 4 ], %g1 200827c: 80 88 60 01 btst 1, %g1 2008280: 22 80 01 23 be,a 200870c <_Heap_Walk+0x580> 2008284: 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; 2008288: 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 ) { 200828c: 80 a6 00 11 cmp %i0, %l1 2008290: 02 80 00 6f be 200844c <_Heap_Walk+0x2c0> 2008294: 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; 2008298: 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 200829c: 80 a7 00 11 cmp %i4, %l1 20082a0: 28 80 00 3c bleu,a 2008390 <_Heap_Walk+0x204> 20082a4: f6 06 20 24 ld [ %i0 + 0x24 ], %i3 if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 20082a8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20082ac: 96 10 00 11 mov %l1, %o3 20082b0: 92 10 20 01 mov 1, %o1 20082b4: 15 00 80 71 sethi %hi(0x201c400), %o2 20082b8: b0 10 20 00 clr %i0 20082bc: 9f c4 80 00 call %l2 20082c0: 94 12 a3 e8 or %o2, 0x3e8, %o2 20082c4: 81 c7 e0 08 ret 20082c8: 81 e8 00 00 restore return false; } if ( first_block->prev_size != page_size ) { (*printer)( 20082cc: 98 10 00 15 mov %l5, %o4 20082d0: 92 10 20 01 mov 1, %o1 20082d4: 15 00 80 71 sethi %hi(0x201c400), %o2 20082d8: b0 10 20 00 clr %i0 20082dc: 9f c4 80 00 call %l2 20082e0: 94 12 a3 a0 or %o2, 0x3a0, %o2 20082e4: 81 c7 e0 08 ret 20082e8: 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" ); 20082ec: 90 10 00 19 mov %i1, %o0 20082f0: 92 10 20 01 mov 1, %o1 20082f4: 15 00 80 71 sethi %hi(0x201c400), %o2 20082f8: b0 10 20 00 clr %i0 20082fc: 9f c4 80 00 call %l2 2008300: 94 12 a2 d8 or %o2, 0x2d8, %o2 2008304: 81 c7 e0 08 ret 2008308: 81 e8 00 00 restore return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 200830c: 90 10 00 19 mov %i1, %o0 2008310: 96 10 00 15 mov %l5, %o3 2008314: 92 10 20 01 mov 1, %o1 2008318: 15 00 80 71 sethi %hi(0x201c400), %o2 200831c: b0 10 20 00 clr %i0 2008320: 9f c4 80 00 call %l2 2008324: 94 12 a2 f0 or %o2, 0x2f0, %o2 2008328: 81 c7 e0 08 ret 200832c: 81 e8 00 00 restore return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 2008330: 90 10 00 19 mov %i1, %o0 2008334: 96 10 00 13 mov %l3, %o3 2008338: 92 10 20 01 mov 1, %o1 200833c: 15 00 80 71 sethi %hi(0x201c400), %o2 2008340: b0 10 20 00 clr %i0 2008344: 9f c4 80 00 call %l2 2008348: 94 12 a3 10 or %o2, 0x310, %o2 200834c: 81 c7 e0 08 ret 2008350: 81 e8 00 00 restore } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 2008354: 96 10 00 10 mov %l0, %o3 2008358: 92 10 20 01 mov 1, %o1 200835c: 15 00 80 71 sethi %hi(0x201c400), %o2 2008360: b0 10 20 00 clr %i0 2008364: 9f c4 80 00 call %l2 2008368: 94 12 a3 38 or %o2, 0x338, %o2 200836c: 81 c7 e0 08 ret 2008370: 81 e8 00 00 restore return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 2008374: 92 10 20 01 mov 1, %o1 2008378: 15 00 80 71 sethi %hi(0x201c400), %o2 200837c: b0 10 20 00 clr %i0 2008380: 9f c4 80 00 call %l2 2008384: 94 12 a3 70 or %o2, 0x370, %o2 2008388: 81 c7 e0 08 ret 200838c: 81 e8 00 00 restore 2008390: 80 a6 c0 11 cmp %i3, %l1 2008394: 0a bf ff c6 bcs 20082ac <_Heap_Walk+0x120> 2008398: 90 10 00 19 mov %i1, %o0 ); return false; } if ( 200839c: 90 04 60 08 add %l1, 8, %o0 20083a0: 7f ff e5 c9 call 2001ac4 <.urem> 20083a4: 92 10 00 1a mov %i2, %o1 20083a8: 80 a2 20 00 cmp %o0, 0 20083ac: 12 80 00 df bne 2008728 <_Heap_Walk+0x59c> 20083b0: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_used( free_block ) ) { 20083b4: c2 04 60 04 ld [ %l1 + 4 ], %g1 20083b8: 82 08 7f fe and %g1, -2, %g1 20083bc: 82 04 40 01 add %l1, %g1, %g1 20083c0: c2 00 60 04 ld [ %g1 + 4 ], %g1 20083c4: 80 88 60 01 btst 1, %g1 20083c8: 12 80 00 ea bne 2008770 <_Heap_Walk+0x5e4> 20083cc: 96 10 00 11 mov %l1, %o3 ); return false; } if ( free_block->prev != prev_block ) { 20083d0: d8 04 60 0c ld [ %l1 + 0xc ], %o4 20083d4: 80 a6 00 0c cmp %i0, %o4 20083d8: 02 80 00 19 be 200843c <_Heap_Walk+0x2b0> 20083dc: ba 10 00 11 mov %l1, %i5 20083e0: 30 80 00 dc b,a 2008750 <_Heap_Walk+0x5c4> <== NOT EXECUTED 20083e4: 0a bf ff b2 bcs 20082ac <_Heap_Walk+0x120> 20083e8: 90 10 00 19 mov %i1, %o0 20083ec: 80 a6 c0 11 cmp %i3, %l1 20083f0: 0a bf ff b0 bcs 20082b0 <_Heap_Walk+0x124> 20083f4: 96 10 00 11 mov %l1, %o3 ); return false; } if ( 20083f8: 90 04 60 08 add %l1, 8, %o0 20083fc: 7f ff e5 b2 call 2001ac4 <.urem> 2008400: 92 10 00 1a mov %i2, %o1 2008404: 80 a2 20 00 cmp %o0, 0 2008408: 32 80 00 c8 bne,a 2008728 <_Heap_Walk+0x59c> 200840c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( _Heap_Is_used( free_block ) ) { 2008410: c2 04 60 04 ld [ %l1 + 4 ], %g1 2008414: 82 08 7f fe and %g1, -2, %g1 2008418: 82 00 40 11 add %g1, %l1, %g1 200841c: c2 00 60 04 ld [ %g1 + 4 ], %g1 2008420: 80 88 60 01 btst 1, %g1 2008424: 32 80 00 d2 bne,a 200876c <_Heap_Walk+0x5e0> 2008428: 90 10 00 19 mov %i1, %o0 ); return false; } if ( free_block->prev != prev_block ) { 200842c: d8 04 60 0c ld [ %l1 + 0xc ], %o4 2008430: 80 a3 00 1d cmp %o4, %i5 2008434: 12 80 00 c5 bne 2008748 <_Heap_Walk+0x5bc> 2008438: ba 10 00 11 mov %l1, %i5 return false; } prev_block = free_block; free_block = free_block->next; 200843c: 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 ) { 2008440: 80 a6 00 11 cmp %i0, %l1 2008444: 12 bf ff e8 bne 20083e4 <_Heap_Walk+0x258> 2008448: 80 a4 40 1c cmp %l1, %i4 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 200844c: 80 a5 00 10 cmp %l4, %l0 2008450: 02 bf ff 5f be 20081cc <_Heap_Walk+0x40> 2008454: 37 00 80 72 sethi %hi(0x201c800), %i3 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008458: 35 00 80 72 sethi %hi(0x201c800), %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 200845c: 39 00 80 72 sethi %hi(0x201c800), %i4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 2008460: 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)( 2008464: b6 16 e0 90 or %i3, 0x90, %i3 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 2008468: b4 16 a0 a8 or %i2, 0xa8, %i2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 200846c: b8 17 21 a8 or %i4, 0x1a8, %i4 2008470: 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; 2008474: 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 ) { 2008478: 80 a5 e0 00 cmp %l7, 0 200847c: 02 80 00 16 be 20084d4 <_Heap_Walk+0x348> 2008480: a2 05 80 10 add %l6, %l0, %l1 (*printer)( 2008484: 90 10 00 19 mov %i1, %o0 2008488: 92 10 20 00 clr %o1 200848c: 94 10 00 1b mov %i3, %o2 2008490: 96 10 00 10 mov %l0, %o3 2008494: 9f c4 80 00 call %l2 2008498: 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 200849c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 20084a0: 80 a0 40 11 cmp %g1, %l1 20084a4: 28 80 00 18 bleu,a 2008504 <_Heap_Walk+0x378> 20084a8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 20084ac: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20084b0: 96 10 00 10 mov %l0, %o3 20084b4: 98 10 00 11 mov %l1, %o4 20084b8: 92 10 20 01 mov 1, %o1 20084bc: 15 00 80 72 sethi %hi(0x201c800), %o2 20084c0: b0 10 20 00 clr %i0 20084c4: 9f c4 80 00 call %l2 20084c8: 94 12 a0 d0 or %o2, 0xd0, %o2 "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; 20084cc: 81 c7 e0 08 ret 20084d0: 81 e8 00 00 restore "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 20084d4: da 04 00 00 ld [ %l0 ], %o5 20084d8: 90 10 00 19 mov %i1, %o0 20084dc: 92 10 20 00 clr %o1 20084e0: 94 10 00 1a mov %i2, %o2 20084e4: 96 10 00 10 mov %l0, %o3 20084e8: 9f c4 80 00 call %l2 20084ec: 98 10 00 16 mov %l6, %o4 20084f0: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 20084f4: 80 a0 40 11 cmp %g1, %l1 20084f8: 18 bf ff ee bgu 20084b0 <_Heap_Walk+0x324> 20084fc: 90 10 00 19 mov %i1, %o0 2008500: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 2008504: 80 a0 40 11 cmp %g1, %l1 2008508: 0a bf ff ea bcs 20084b0 <_Heap_Walk+0x324> 200850c: 90 10 00 19 mov %i1, %o0 ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 2008510: 90 10 00 16 mov %l6, %o0 2008514: 7f ff e5 6c call 2001ac4 <.urem> 2008518: 92 10 00 1d mov %i5, %o1 200851c: 80 a2 20 00 cmp %o0, 0 2008520: 12 80 00 5d bne 2008694 <_Heap_Walk+0x508> 2008524: 80 a4 c0 16 cmp %l3, %l6 ); return false; } if ( block_size < min_block_size ) { 2008528: 18 80 00 65 bgu 20086bc <_Heap_Walk+0x530> 200852c: 80 a4 00 11 cmp %l0, %l1 ); return false; } if ( next_block_begin <= block_begin ) { 2008530: 3a 80 00 6e bcc,a 20086e8 <_Heap_Walk+0x55c> 2008534: 90 10 00 19 mov %i1, %o0 ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 2008538: c2 04 60 04 ld [ %l1 + 4 ], %g1 200853c: 80 88 60 01 btst 1, %g1 2008540: 12 80 00 40 bne 2008640 <_Heap_Walk+0x4b4> 2008544: 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; 2008548: 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)( 200854c: 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; 2008550: 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; 2008554: 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; 2008558: 1b 00 80 72 sethi %hi(0x201c800), %o5 200855c: 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; 2008560: 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); 2008564: 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; 2008568: 02 80 00 07 be 2008584 <_Heap_Walk+0x3f8> 200856c: 9a 13 61 98 or %o5, 0x198, %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)" : ""), 2008570: 1b 00 80 72 sethi %hi(0x201c800), %o5 2008574: 80 a3 00 18 cmp %o4, %i0 2008578: 02 80 00 03 be 2008584 <_Heap_Walk+0x3f8> 200857c: 9a 13 61 b0 or %o5, 0x1b0, %o5 2008580: 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)( 2008584: c2 04 20 08 ld [ %l0 + 8 ], %g1 2008588: 05 00 80 72 sethi %hi(0x201c800), %g2 200858c: 80 a0 c0 01 cmp %g3, %g1 2008590: 02 80 00 07 be 20085ac <_Heap_Walk+0x420> 2008594: 84 10 a1 c0 or %g2, 0x1c0, %g2 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 2008598: 05 00 80 72 sethi %hi(0x201c800), %g2 200859c: 80 a0 40 18 cmp %g1, %i0 20085a0: 02 80 00 03 be 20085ac <_Heap_Walk+0x420> 20085a4: 84 10 a1 d0 or %g2, 0x1d0, %g2 20085a8: 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)( 20085ac: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 20085b0: c4 23 a0 60 st %g2, [ %sp + 0x60 ] 20085b4: 90 10 00 19 mov %i1, %o0 20085b8: 92 10 20 00 clr %o1 20085bc: 15 00 80 72 sethi %hi(0x201c800), %o2 20085c0: 96 10 00 10 mov %l0, %o3 20085c4: 9f c4 80 00 call %l2 20085c8: 94 12 a1 e0 or %o2, 0x1e0, %o2 block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 20085cc: da 05 c0 00 ld [ %l7 ], %o5 20085d0: 80 a5 80 0d cmp %l6, %o5 20085d4: 02 80 00 0c be 2008604 <_Heap_Walk+0x478> 20085d8: 90 10 00 19 mov %i1, %o0 (*printer)( 20085dc: ee 23 a0 5c st %l7, [ %sp + 0x5c ] 20085e0: 96 10 00 10 mov %l0, %o3 20085e4: 98 10 00 16 mov %l6, %o4 20085e8: 92 10 20 01 mov 1, %o1 20085ec: 15 00 80 72 sethi %hi(0x201c800), %o2 20085f0: b0 10 20 00 clr %i0 20085f4: 9f c4 80 00 call %l2 20085f8: 94 12 a2 10 or %o2, 0x210, %o2 20085fc: 81 c7 e0 08 ret 2008600: 81 e8 00 00 restore ); return false; } if ( !prev_used ) { 2008604: 80 8d 20 01 btst 1, %l4 2008608: 02 80 00 1c be 2008678 <_Heap_Walk+0x4ec> 200860c: 96 10 00 10 mov %l0, %o3 2008610: 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 ) { 2008614: 80 a0 40 18 cmp %g1, %i0 2008618: 12 80 00 07 bne 2008634 <_Heap_Walk+0x4a8> 200861c: 80 a0 40 10 cmp %g1, %l0 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008620: 10 80 00 0f b 200865c <_Heap_Walk+0x4d0> <== NOT EXECUTED 2008624: 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 ) { 2008628: 80 a0 40 18 cmp %g1, %i0 200862c: 02 80 00 0a be 2008654 <_Heap_Walk+0x4c8> 2008630: 80 a0 40 10 cmp %g1, %l0 if ( free_block == block ) { 2008634: 32 bf ff fd bne,a 2008628 <_Heap_Walk+0x49c> 2008638: c2 00 60 08 ld [ %g1 + 8 ], %g1 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 200863c: 80 a5 40 11 cmp %l5, %l1 2008640: 02 bf fe e3 be 20081cc <_Heap_Walk+0x40> 2008644: 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 ) { 2008648: ec 04 60 04 ld [ %l1 + 4 ], %l6 200864c: 10 bf ff 8a b 2008474 <_Heap_Walk+0x2e8> 2008650: ae 0d a0 01 and %l6, 1, %l7 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 2008654: 90 10 00 19 mov %i1, %o0 2008658: 96 10 00 10 mov %l0, %o3 200865c: 92 10 20 01 mov 1, %o1 2008660: 15 00 80 72 sethi %hi(0x201c800), %o2 2008664: b0 10 20 00 clr %i0 2008668: 9f c4 80 00 call %l2 200866c: 94 12 a2 80 or %o2, 0x280, %o2 2008670: 81 c7 e0 08 ret 2008674: 81 e8 00 00 restore return false; } if ( !prev_used ) { (*printer)( 2008678: 92 10 20 01 mov 1, %o1 200867c: 15 00 80 72 sethi %hi(0x201c800), %o2 2008680: b0 10 20 00 clr %i0 2008684: 9f c4 80 00 call %l2 2008688: 94 12 a2 50 or %o2, 0x250, %o2 200868c: 81 c7 e0 08 ret 2008690: 81 e8 00 00 restore return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 2008694: 90 10 00 19 mov %i1, %o0 2008698: 96 10 00 10 mov %l0, %o3 200869c: 98 10 00 16 mov %l6, %o4 20086a0: 92 10 20 01 mov 1, %o1 20086a4: 15 00 80 72 sethi %hi(0x201c800), %o2 20086a8: b0 10 20 00 clr %i0 20086ac: 9f c4 80 00 call %l2 20086b0: 94 12 a1 00 or %o2, 0x100, %o2 "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; 20086b4: 81 c7 e0 08 ret 20086b8: 81 e8 00 00 restore } if ( block_size < min_block_size ) { (*printer)( 20086bc: 90 10 00 19 mov %i1, %o0 20086c0: 96 10 00 10 mov %l0, %o3 20086c4: 98 10 00 16 mov %l6, %o4 20086c8: 9a 10 00 13 mov %l3, %o5 20086cc: 92 10 20 01 mov 1, %o1 20086d0: 15 00 80 72 sethi %hi(0x201c800), %o2 20086d4: b0 10 20 00 clr %i0 20086d8: 9f c4 80 00 call %l2 20086dc: 94 12 a1 30 or %o2, 0x130, %o2 block, block_size, min_block_size ); return false; 20086e0: 81 c7 e0 08 ret 20086e4: 81 e8 00 00 restore } if ( next_block_begin <= block_begin ) { (*printer)( 20086e8: 96 10 00 10 mov %l0, %o3 20086ec: 98 10 00 11 mov %l1, %o4 20086f0: 92 10 20 01 mov 1, %o1 20086f4: 15 00 80 72 sethi %hi(0x201c800), %o2 20086f8: b0 10 20 00 clr %i0 20086fc: 9f c4 80 00 call %l2 2008700: 94 12 a1 60 or %o2, 0x160, %o2 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 2008704: 81 c7 e0 08 ret 2008708: 81 e8 00 00 restore return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 200870c: 92 10 20 01 mov 1, %o1 2008710: 15 00 80 71 sethi %hi(0x201c400), %o2 2008714: b0 10 20 00 clr %i0 2008718: 9f c4 80 00 call %l2 200871c: 94 12 a3 d0 or %o2, 0x3d0, %o2 2008720: 81 c7 e0 08 ret 2008724: 81 e8 00 00 restore } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 2008728: 96 10 00 11 mov %l1, %o3 200872c: 92 10 20 01 mov 1, %o1 2008730: 15 00 80 72 sethi %hi(0x201c800), %o2 2008734: b0 10 20 00 clr %i0 2008738: 9f c4 80 00 call %l2 200873c: 94 12 a0 08 or %o2, 8, %o2 2008740: 81 c7 e0 08 ret 2008744: 81 e8 00 00 restore return false; } if ( free_block->prev != prev_block ) { (*printer)( 2008748: 90 10 00 19 mov %i1, %o0 200874c: 96 10 00 11 mov %l1, %o3 2008750: 92 10 20 01 mov 1, %o1 2008754: 15 00 80 72 sethi %hi(0x201c800), %o2 2008758: b0 10 20 00 clr %i0 200875c: 9f c4 80 00 call %l2 2008760: 94 12 a0 58 or %o2, 0x58, %o2 2008764: 81 c7 e0 08 ret 2008768: 81 e8 00 00 restore return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 200876c: 96 10 00 11 mov %l1, %o3 2008770: 92 10 20 01 mov 1, %o1 2008774: 15 00 80 72 sethi %hi(0x201c800), %o2 2008778: b0 10 20 00 clr %i0 200877c: 9f c4 80 00 call %l2 2008780: 94 12 a0 38 or %o2, 0x38, %o2 2008784: 81 c7 e0 08 ret 2008788: 81 e8 00 00 restore 020074d4 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 20074d4: 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 ) 20074d8: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 20074dc: 80 a5 20 00 cmp %l4, 0 20074e0: 02 80 00 ab be 200778c <_Objects_Extend_information+0x2b8> 20074e4: e6 16 20 0a lduh [ %i0 + 0xa ], %l3 block_count = 0; else { block_count = information->maximum / information->allocation_size; 20074e8: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 20074ec: e4 16 20 14 lduh [ %i0 + 0x14 ], %l2 20074f0: ab 2d 60 10 sll %l5, 0x10, %l5 20074f4: 92 10 00 12 mov %l2, %o1 20074f8: 40 00 47 81 call 20192fc <.udiv> 20074fc: 91 35 60 10 srl %l5, 0x10, %o0 2007500: 91 2a 20 10 sll %o0, 0x10, %o0 2007504: b9 32 20 10 srl %o0, 0x10, %i4 for ( ; block < block_count; block++ ) { 2007508: 80 a7 20 00 cmp %i4, 0 200750c: 02 80 00 a7 be 20077a8 <_Objects_Extend_information+0x2d4> 2007510: 90 10 00 12 mov %l2, %o0 if ( information->object_blocks[ block ] == NULL ) 2007514: c2 05 00 00 ld [ %l4 ], %g1 2007518: 80 a0 60 00 cmp %g1, 0 200751c: 02 80 00 a4 be 20077ac <_Objects_Extend_information+0x2d8> 2007520: a2 10 00 13 mov %l3, %l1 2007524: 10 80 00 06 b 200753c <_Objects_Extend_information+0x68> 2007528: a0 10 20 00 clr %l0 200752c: c2 05 00 01 ld [ %l4 + %g1 ], %g1 2007530: 80 a0 60 00 cmp %g1, 0 2007534: 22 80 00 08 be,a 2007554 <_Objects_Extend_information+0x80> 2007538: 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++ ) { 200753c: a0 04 20 01 inc %l0 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 2007540: 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++ ) { 2007544: 80 a7 00 10 cmp %i4, %l0 2007548: 18 bf ff f9 bgu 200752c <_Objects_Extend_information+0x58> 200754c: 83 2c 20 02 sll %l0, 2, %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007550: 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 ) { 2007554: 03 00 00 3f sethi %hi(0xfc00), %g1 else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 2007558: 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 ) { 200755c: 82 10 63 ff or %g1, 0x3ff, %g1 2007560: 80 a5 40 01 cmp %l5, %g1 2007564: 18 80 00 96 bgu 20077bc <_Objects_Extend_information+0x2e8> 2007568: 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; 200756c: 40 00 47 2a call 2019214 <.umul> 2007570: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 if ( information->auto_extend ) { 2007574: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1 2007578: 80 a0 60 00 cmp %g1, 0 200757c: 12 80 00 6d bne 2007730 <_Objects_Extend_information+0x25c> 2007580: 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 ); 2007584: 40 00 09 06 call 200999c <_Workspace_Allocate_or_fatal_error> 2007588: 01 00 00 00 nop 200758c: 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 ) { 2007590: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007594: 80 a4 40 01 cmp %l1, %g1 2007598: 2a 80 00 43 bcs,a 20076a4 <_Objects_Extend_information+0x1d0> 200759c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 */ /* * Up the block count and maximum */ block_count++; 20075a0: 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 ); 20075a4: 91 2d 20 01 sll %l4, 1, %o0 20075a8: 90 02 00 14 add %o0, %l4, %o0 20075ac: 90 05 40 08 add %l5, %o0, %o0 20075b0: 90 02 00 13 add %o0, %l3, %o0 20075b4: 40 00 09 09 call 20099d8 <_Workspace_Allocate> 20075b8: 91 2a 20 02 sll %o0, 2, %o0 if ( !object_blocks ) { 20075bc: ac 92 20 00 orcc %o0, 0, %l6 20075c0: 02 80 00 7d be 20077b4 <_Objects_Extend_information+0x2e0> 20075c4: 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 ) { 20075c8: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 20075cc: 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); 20075d0: ae 05 80 14 add %l6, %l4, %l7 20075d4: 0a 80 00 5e bcs 200774c <_Objects_Extend_information+0x278> 20075d8: 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++ ) { 20075dc: 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, 20075e0: 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++ ) { 20075e4: 02 80 00 08 be 2007604 <_Objects_Extend_information+0x130> 20075e8: bb 2f 20 02 sll %i4, 2, %i5 local_table[ index ] = NULL; 20075ec: 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++ ) { 20075f0: 82 00 60 01 inc %g1 20075f4: 80 a4 c0 01 cmp %l3, %g1 20075f8: 18 bf ff fd bgu 20075ec <_Objects_Extend_information+0x118> 20075fc: c0 20 80 14 clr [ %g2 + %l4 ] 2007600: 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 ); 2007604: 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; 2007608: c0 25 c0 1d clr [ %l7 + %i5 ] for ( index=index_base ; index < ( information->allocation_size + index_base ); 200760c: 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 ; 2007610: 80 a4 40 03 cmp %l1, %g3 2007614: 1a 80 00 0a bcc 200763c <_Objects_Extend_information+0x168> 2007618: c0 25 80 1d clr [ %l6 + %i5 ] 200761c: 85 2c 60 02 sll %l1, 2, %g2 2007620: 82 10 00 11 mov %l1, %g1 2007624: 84 05 00 02 add %l4, %g2, %g2 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 2007628: 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++ ) { 200762c: 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 ; 2007630: 80 a0 40 03 cmp %g1, %g3 2007634: 0a bf ff fd bcs 2007628 <_Objects_Extend_information+0x154> 2007638: 84 00 a0 04 add %g2, 4, %g2 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 200763c: 7f ff eb 1c call 20022ac 2007640: 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( 2007644: c6 06 00 00 ld [ %i0 ], %g3 2007648: 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; 200764c: ea 36 20 10 sth %l5, [ %i0 + 0x10 ] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 2007650: e6 06 20 34 ld [ %i0 + 0x34 ], %l3 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 2007654: ee 26 20 30 st %l7, [ %i0 + 0x30 ] information->local_table = local_table; 2007658: e8 26 20 1c st %l4, [ %i0 + 0x1c ] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 200765c: 87 28 e0 18 sll %g3, 0x18, %g3 2007660: 85 28 a0 1b sll %g2, 0x1b, %g2 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 2007664: 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( 2007668: ab 2d 60 10 sll %l5, 0x10, %l5 200766c: 03 00 00 40 sethi %hi(0x10000), %g1 2007670: ab 35 60 10 srl %l5, 0x10, %l5 2007674: 82 10 c0 01 or %g3, %g1, %g1 2007678: 82 10 40 02 or %g1, %g2, %g1 200767c: 82 10 40 15 or %g1, %l5, %g1 2007680: c2 26 20 0c st %g1, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 2007684: 7f ff eb 0e call 20022bc 2007688: 01 00 00 00 nop if ( old_tables ) 200768c: 80 a4 e0 00 cmp %l3, 0 2007690: 22 80 00 05 be,a 20076a4 <_Objects_Extend_information+0x1d0> 2007694: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 _Workspace_Free( old_tables ); 2007698: 40 00 08 d9 call 20099fc <_Workspace_Free> 200769c: 90 10 00 13 mov %l3, %o0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 20076a0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 20076a4: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2 20076a8: d6 06 20 18 ld [ %i0 + 0x18 ], %o3 20076ac: 92 10 00 12 mov %l2, %o1 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 20076b0: a1 2c 20 02 sll %l0, 2, %l0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20076b4: 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; 20076b8: 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( 20076bc: 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( 20076c0: a4 07 bf f4 add %fp, -12, %l2 20076c4: 40 00 14 c3 call 200c9d0 <_Chain_Initialize> 20076c8: 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 ) { 20076cc: 30 80 00 0c b,a 20076fc <_Objects_Extend_information+0x228> the_object->id = _Objects_Build_id( 20076d0: c4 16 20 04 lduh [ %i0 + 4 ], %g2 20076d4: 83 28 60 18 sll %g1, 0x18, %g1 20076d8: 85 28 a0 1b sll %g2, 0x1b, %g2 20076dc: 82 10 40 14 or %g1, %l4, %g1 20076e0: 82 10 40 02 or %g1, %g2, %g1 20076e4: 82 10 40 11 or %g1, %l1, %g1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20076e8: 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( 20076ec: c2 22 20 08 st %g1, [ %o0 + 8 ] index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 20076f0: a2 04 60 01 inc %l1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 20076f4: 7f ff fc e2 call 2006a7c <_Chain_Append> 20076f8: 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 ) { 20076fc: 40 00 14 a2 call 200c984 <_Chain_Get> 2007700: 90 10 00 12 mov %l2, %o0 2007704: 80 a2 20 00 cmp %o0, 0 2007708: 32 bf ff f2 bne,a 20076d0 <_Objects_Extend_information+0x1fc> 200770c: c2 06 00 00 ld [ %i0 ], %g1 index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = 2007710: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2007714: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4 2007718: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 information->inactive = 200771c: 82 01 00 01 add %g4, %g1, %g1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 2007720: c8 20 80 10 st %g4, [ %g2 + %l0 ] information->inactive = 2007724: c2 36 20 2c sth %g1, [ %i0 + 0x2c ] 2007728: 81 c7 e0 08 ret 200772c: 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 ); 2007730: 40 00 08 aa call 20099d8 <_Workspace_Allocate> 2007734: 01 00 00 00 nop if ( !new_object_block ) 2007738: a4 92 20 00 orcc %o0, 0, %l2 200773c: 32 bf ff 96 bne,a 2007594 <_Objects_Extend_information+0xc0> 2007740: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 2007744: 81 c7 e0 08 ret 2007748: 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, 200774c: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 information->object_blocks, block_count * sizeof(void*) ); 2007750: 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, 2007754: 40 00 23 f2 call 201071c 2007758: 94 10 00 1d mov %i5, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 200775c: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 2007760: 94 10 00 1d mov %i5, %o2 2007764: 40 00 23 ee call 201071c 2007768: 90 10 00 17 mov %l7, %o0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 200776c: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2 2007770: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 2007774: 94 04 c0 0a add %l3, %o2, %o2 2007778: 90 10 00 14 mov %l4, %o0 200777c: 40 00 23 e8 call 201071c 2007780: 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 ); 2007784: 10 bf ff a1 b 2007608 <_Objects_Extend_information+0x134> 2007788: 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 ) 200778c: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5 2007790: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0 2007794: ab 2d 60 10 sll %l5, 0x10, %l5 2007798: a2 10 00 13 mov %l3, %l1 200779c: a0 10 20 00 clr %l0 20077a0: 10 bf ff 6c b 2007550 <_Objects_Extend_information+0x7c> 20077a4: 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 ) 20077a8: a2 10 00 13 mov %l3, %l1 <== NOT EXECUTED 20077ac: 10 bf ff 69 b 2007550 <_Objects_Extend_information+0x7c> <== NOT EXECUTED 20077b0: 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 ); 20077b4: 40 00 08 92 call 20099fc <_Workspace_Free> 20077b8: 90 10 00 12 mov %l2, %o0 return; 20077bc: 81 c7 e0 08 ret 20077c0: 81 e8 00 00 restore 02007be0 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 2007be0: 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 ); 2007be4: e0 16 20 0a lduh [ %i0 + 0xa ], %l0 block_count = (information->maximum - index_base) / 2007be8: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1 2007bec: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 2007bf0: 92 10 00 11 mov %l1, %o1 2007bf4: 40 00 45 c2 call 20192fc <.udiv> 2007bf8: 90 22 00 10 sub %o0, %l0, %o0 information->allocation_size; for ( block = 0; block < block_count; block++ ) { 2007bfc: 80 a2 20 00 cmp %o0, 0 2007c00: 02 80 00 12 be 2007c48 <_Objects_Shrink_information+0x68> 2007c04: a4 10 20 04 mov 4, %l2 if ( information->inactive_per_block[ block ] == 2007c08: c6 06 20 30 ld [ %i0 + 0x30 ], %g3 2007c0c: c4 00 c0 00 ld [ %g3 ], %g2 2007c10: 80 a4 40 02 cmp %l1, %g2 2007c14: 12 80 00 09 bne 2007c38 <_Objects_Shrink_information+0x58> 2007c18: 82 10 20 00 clr %g1 2007c1c: 10 80 00 0d b 2007c50 <_Objects_Shrink_information+0x70> <== NOT EXECUTED 2007c20: a4 10 20 00 clr %l2 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 2007c24: 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 ] == 2007c28: 80 a4 40 02 cmp %l1, %g2 2007c2c: 02 80 00 09 be 2007c50 <_Objects_Shrink_information+0x70> 2007c30: 84 04 a0 04 add %l2, 4, %g2 2007c34: 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++ ) { 2007c38: 82 00 60 01 inc %g1 2007c3c: 80 a2 00 01 cmp %o0, %g1 2007c40: 38 bf ff f9 bgu,a 2007c24 <_Objects_Shrink_information+0x44> 2007c44: c4 00 c0 12 ld [ %g3 + %l2 ], %g2 2007c48: 81 c7 e0 08 ret 2007c4c: 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; 2007c50: 10 80 00 06 b 2007c68 <_Objects_Shrink_information+0x88> 2007c54: 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 ); 2007c58: 80 a4 60 00 cmp %l1, 0 2007c5c: 22 80 00 12 be,a 2007ca4 <_Objects_Shrink_information+0xc4> 2007c60: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 2007c64: 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 ); 2007c68: 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) && 2007c6c: 80 a0 40 10 cmp %g1, %l0 2007c70: 0a bf ff fa bcs 2007c58 <_Objects_Shrink_information+0x78> 2007c74: e2 02 00 00 ld [ %o0 ], %l1 (index < (index_base + information->allocation_size))) { 2007c78: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 2007c7c: 84 04 00 02 add %l0, %g2, %g2 2007c80: 80 a0 40 02 cmp %g1, %g2 2007c84: 1a bf ff f6 bcc 2007c5c <_Objects_Shrink_information+0x7c> 2007c88: 80 a4 60 00 cmp %l1, 0 _Chain_Extract( &extract_me->Node ); 2007c8c: 40 00 13 34 call 200c95c <_Chain_Extract> 2007c90: 01 00 00 00 nop } } while ( the_object ); 2007c94: 80 a4 60 00 cmp %l1, 0 2007c98: 12 bf ff f4 bne 2007c68 <_Objects_Shrink_information+0x88> 2007c9c: 90 10 00 11 mov %l1, %o0 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 2007ca0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED 2007ca4: 40 00 07 56 call 20099fc <_Workspace_Free> 2007ca8: d0 00 40 12 ld [ %g1 + %l2 ], %o0 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2007cac: 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; 2007cb0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 information->inactive_per_block[ block ] = 0; 2007cb4: c8 06 20 30 ld [ %i0 + 0x30 ], %g4 information->inactive -= information->allocation_size; 2007cb8: 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; 2007cbc: c0 21 00 12 clr [ %g4 + %l2 ] information->inactive -= information->allocation_size; 2007cc0: 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; 2007cc4: c0 20 40 12 clr [ %g1 + %l2 ] information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 2007cc8: c4 36 20 2c sth %g2, [ %i0 + 0x2c ] return; 2007ccc: 81 c7 e0 08 ret 2007cd0: 81 e8 00 00 restore 0200c2c4 <_POSIX_Threads_Sporadic_budget_callout>: ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200c2c4: 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); 200c2c8: c6 00 a0 88 ld [ %g2 + 0x88 ], %g3 200c2cc: 05 00 80 70 sethi %hi(0x201c000), %g2 200c2d0: d2 08 a2 24 ldub [ %g2 + 0x224 ], %o1 ! 201c224 */ #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 ) { 200c2d4: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 200c2d8: 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 */ 200c2dc: 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; 200c2e0: 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 ) { 200c2e4: 80 a0 a0 00 cmp %g2, 0 200c2e8: 12 80 00 06 bne 200c300 <_POSIX_Threads_Sporadic_budget_callout+0x3c> 200c2ec: 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 ) { 200c2f0: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 200c2f4: 80 a0 40 09 cmp %g1, %o1 200c2f8: 0a 80 00 04 bcs 200c308 <_POSIX_Threads_Sporadic_budget_callout+0x44> 200c2fc: 94 10 20 01 mov 1, %o2 200c300: 81 c3 e0 08 retl <== NOT EXECUTED 200c304: 01 00 00 00 nop <== NOT EXECUTED _Thread_Change_priority( the_thread, new_priority, true ); 200c308: 82 13 c0 00 mov %o7, %g1 200c30c: 7f ff ee 8b call 2007d38 <_Thread_Change_priority> 200c310: 9e 10 40 00 mov %g1, %o7 02006254 <_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) { 2006254: 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; 2006258: c4 06 60 68 ld [ %i1 + 0x68 ], %g2 /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 200625c: 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; 2006260: 84 00 a0 01 inc %g2 /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 2006264: 80 a0 60 00 cmp %g1, 0 2006268: 12 80 00 0e bne 20062a0 <_POSIX_Timer_TSR+0x4c> 200626c: c4 26 60 68 st %g2, [ %i1 + 0x68 ] ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 2006270: c2 06 60 58 ld [ %i1 + 0x58 ], %g1 2006274: 80 a0 60 00 cmp %g1, 0 2006278: 32 80 00 0b bne,a 20062a4 <_POSIX_Timer_TSR+0x50> 200627c: 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; 2006280: 82 10 20 04 mov 4, %g1 <== NOT EXECUTED 2006284: 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 ) ) { 2006288: d0 06 60 38 ld [ %i1 + 0x38 ], %o0 200628c: 40 00 1a a2 call 200cd14 2006290: 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; 2006294: c0 26 60 68 clr [ %i1 + 0x68 ] 2006298: 81 c7 e0 08 ret 200629c: 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( 20062a0: d2 06 60 64 ld [ %i1 + 0x64 ], %o1 20062a4: d4 06 60 08 ld [ %i1 + 8 ], %o2 20062a8: 90 06 60 10 add %i1, 0x10, %o0 20062ac: 17 00 80 18 sethi %hi(0x2006000), %o3 20062b0: 98 10 00 19 mov %i1, %o4 20062b4: 40 00 1b c6 call 200d1cc <_POSIX_Timer_Insert_helper> 20062b8: 96 12 e2 54 or %o3, 0x254, %o3 ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 20062bc: 80 8a 20 ff btst 0xff, %o0 20062c0: 02 bf ff f6 be 2006298 <_POSIX_Timer_TSR+0x44> 20062c4: 01 00 00 00 nop return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 20062c8: 40 00 05 da call 2007a30 <_TOD_Get> 20062cc: 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; 20062d0: 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 ) || 20062d4: 10 bf ff ed b 2006288 <_POSIX_Timer_TSR+0x34> 20062d8: c2 2e 60 3c stb %g1, [ %i1 + 0x3c ] 0200fa4c <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) { 200fa4c: 9d e3 bf a0 save %sp, -96, %sp clear_signal = true; mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); 200fa50: 7f ff ca 17 call 20022ac 200fa54: 01 00 00 00 nop if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 200fa58: 85 2e 20 04 sll %i0, 4, %g2 200fa5c: 83 2e 20 02 sll %i0, 2, %g1 200fa60: 82 20 80 01 sub %g2, %g1, %g1 200fa64: 05 00 80 74 sethi %hi(0x201d000), %g2 200fa68: 84 10 a2 d4 or %g2, 0x2d4, %g2 ! 201d2d4 <_POSIX_signals_Vectors> 200fa6c: c4 00 80 01 ld [ %g2 + %g1 ], %g2 200fa70: 80 a0 a0 02 cmp %g2, 2 200fa74: 02 80 00 11 be 200fab8 <_POSIX_signals_Clear_process_signals+0x6c> 200fa78: 05 00 80 75 sethi %hi(0x201d400), %g2 if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 200fa7c: 05 00 80 75 sethi %hi(0x201d400), %g2 200fa80: c6 00 a0 c8 ld [ %g2 + 0xc8 ], %g3 ! 201d4c8 <_POSIX_signals_Pending> 200fa84: b0 06 3f ff add %i0, -1, %i0 200fa88: 82 10 20 01 mov 1, %g1 200fa8c: 83 28 40 18 sll %g1, %i0, %g1 200fa90: 82 28 c0 01 andn %g3, %g1, %g1 if ( !_POSIX_signals_Pending ) 200fa94: 80 a0 60 00 cmp %g1, 0 200fa98: 12 80 00 06 bne 200fab0 <_POSIX_signals_Clear_process_signals+0x64> 200fa9c: c2 20 a0 c8 st %g1, [ %g2 + 0xc8 ] _Thread_Do_post_task_switch_extension--; 200faa0: 03 00 80 73 sethi %hi(0x201cc00), %g1 200faa4: c4 00 61 e4 ld [ %g1 + 0x1e4 ], %g2 ! 201cde4 <_Thread_Do_post_task_switch_extension> 200faa8: 84 00 bf ff add %g2, -1, %g2 200faac: c4 20 61 e4 st %g2, [ %g1 + 0x1e4 ] } _ISR_Enable( level ); 200fab0: 7f ff ca 03 call 20022bc 200fab4: 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 ] ) ) 200fab8: 84 10 a0 cc or %g2, 0xcc, %g2 200fabc: c6 00 40 02 ld [ %g1 + %g2 ], %g3 200fac0: 82 00 40 02 add %g1, %g2, %g1 200fac4: 82 00 60 04 add %g1, 4, %g1 200fac8: 80 a0 c0 01 cmp %g3, %g1 200facc: 02 bf ff ed be 200fa80 <_POSIX_signals_Clear_process_signals+0x34> 200fad0: 05 00 80 75 sethi %hi(0x201d400), %g2 if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); 200fad4: 7f ff c9 fa call 20022bc <== NOT EXECUTED 200fad8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200fb20 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 200fb20: 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 ) ) { 200fb24: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 200fb28: 05 04 00 20 sethi %hi(0x10008000), %g2 200fb2c: 88 06 7f ff add %i1, -1, %g4 200fb30: 9a 08 40 02 and %g1, %g2, %o5 200fb34: 86 10 20 01 mov 1, %g3 200fb38: 80 a3 40 02 cmp %o5, %g2 200fb3c: 89 28 c0 04 sll %g3, %g4, %g4 200fb40: 02 80 00 25 be 200fbd4 <_POSIX_signals_Unblock_thread+0xb4> 200fb44: c4 06 21 6c ld [ %i0 + 0x16c ], %g2 } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { 200fb48: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 200fb4c: 80 a9 00 02 andncc %g4, %g2, %g0 200fb50: 02 80 00 1f be 200fbcc <_POSIX_signals_Unblock_thread+0xac> 200fb54: 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 ) { 200fb58: 80 88 40 02 btst %g1, %g2 200fb5c: 02 80 00 11 be 200fba0 <_POSIX_signals_Unblock_thread+0x80> 200fb60: c6 2e 20 74 stb %g3, [ %i0 + 0x74 ] the_thread->Wait.return_code = EINTR; 200fb64: 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) ){ 200fb68: 80 88 60 08 btst 8, %g1 200fb6c: 02 80 00 18 be 200fbcc <_POSIX_signals_Unblock_thread+0xac> 200fb70: c4 26 20 34 st %g2, [ %i0 + 0x34 ] if ( _Watchdog_Is_active( &the_thread->Timer ) ) 200fb74: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 200fb78: 80 a0 60 02 cmp %g1, 2 200fb7c: 02 80 00 36 be 200fc54 <_POSIX_signals_Unblock_thread+0x134> 200fb80: 01 00 00 00 nop RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 200fb84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200fb88: 13 04 00 ff sethi %hi(0x1003fc00), %o1 200fb8c: b0 10 20 00 clr %i0 200fb90: 7f ff e0 ee call 2007f48 <_Thread_Clear_state> 200fb94: 92 12 63 f8 or %o1, 0x3f8, %o1 200fb98: 81 c7 e0 08 ret 200fb9c: 81 e8 00 00 restore (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { 200fba0: 80 a0 60 00 cmp %g1, 0 200fba4: 12 80 00 0a bne 200fbcc <_POSIX_signals_Unblock_thread+0xac> 200fba8: 03 00 80 73 sethi %hi(0x201cc00), %g1 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 200fbac: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 201cddc <_ISR_Nest_level> 200fbb0: 80 a0 60 00 cmp %g1, 0 200fbb4: 02 80 00 06 be 200fbcc <_POSIX_signals_Unblock_thread+0xac> 200fbb8: 03 00 80 73 sethi %hi(0x201cc00), %g1 200fbbc: c2 00 62 00 ld [ %g1 + 0x200 ], %g1 ! 201ce00 <_Thread_Executing> 200fbc0: 80 a6 00 01 cmp %i0, %g1 200fbc4: 02 80 00 21 be 200fc48 <_POSIX_signals_Unblock_thread+0x128> 200fbc8: 03 00 80 73 sethi %hi(0x201cc00), %g1 _ISR_Signals_to_thread_executing = true; } } return false; } 200fbcc: 81 c7 e0 08 ret 200fbd0: 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) ) { 200fbd4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 200fbd8: 80 89 00 01 btst %g4, %g1 200fbdc: 22 80 00 12 be,a 200fc24 <_POSIX_signals_Unblock_thread+0x104> 200fbe0: c2 00 a0 cc ld [ %g2 + 0xcc ], %g1 the_thread->Wait.return_code = EINTR; 200fbe4: 82 10 20 04 mov 4, %g1 200fbe8: c2 26 20 34 st %g1, [ %i0 + 0x34 ] the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { 200fbec: 80 a6 a0 00 cmp %i2, 0 200fbf0: 02 80 00 11 be 200fc34 <_POSIX_signals_Unblock_thread+0x114> 200fbf4: 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; 200fbf8: c4 06 80 00 ld [ %i2 ], %g2 200fbfc: c4 20 40 00 st %g2, [ %g1 ] 200fc00: c4 06 a0 04 ld [ %i2 + 4 ], %g2 200fc04: c4 20 60 04 st %g2, [ %g1 + 4 ] 200fc08: c4 06 a0 08 ld [ %i2 + 8 ], %g2 200fc0c: c4 20 60 08 st %g2, [ %g1 + 8 ] } _Thread_queue_Extract_with_proxy( the_thread ); 200fc10: 90 10 00 18 mov %i0, %o0 200fc14: 7f ff e4 04 call 2008c24 <_Thread_queue_Extract_with_proxy> 200fc18: b0 10 20 01 mov 1, %i0 return true; 200fc1c: 81 c7 e0 08 ret 200fc20: 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) ) { 200fc24: 80 a9 00 01 andncc %g4, %g1, %g0 200fc28: 12 bf ff f0 bne 200fbe8 <_POSIX_signals_Unblock_thread+0xc8> 200fc2c: 82 10 20 04 mov 4, %g1 200fc30: 30 bf ff e7 b,a 200fbcc <_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; 200fc34: 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; 200fc38: f2 20 40 00 st %i1, [ %g1 ] the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; 200fc3c: 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; 200fc40: 10 bf ff f4 b 200fc10 <_POSIX_signals_Unblock_thread+0xf0> 200fc44: 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; 200fc48: c6 28 62 98 stb %g3, [ %g1 + 0x298 ] 200fc4c: 81 c7 e0 08 ret 200fc50: 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 ); 200fc54: 7f ff e6 f2 call 200981c <_Watchdog_Remove> 200fc58: 90 06 20 48 add %i0, 0x48, %o0 200fc5c: 10 bf ff cb b 200fb88 <_POSIX_signals_Unblock_thread+0x68> 200fc60: 90 10 00 18 mov %i0, %o0 02007d38 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 2007d38: 9d e3 bf a0 save %sp, -96, %sp */ /* * Save original state */ original_state = the_thread->current_state; 2007d3c: 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 ); 2007d40: 40 00 04 90 call 2008f80 <_Thread_Set_transient> 2007d44: 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 ) 2007d48: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 2007d4c: 80 a0 40 19 cmp %g1, %i1 2007d50: 02 80 00 05 be 2007d64 <_Thread_Change_priority+0x2c> 2007d54: a0 10 00 18 mov %i0, %l0 _Thread_Set_priority( the_thread, new_priority ); 2007d58: 92 10 00 19 mov %i1, %o1 2007d5c: 40 00 04 0d call 2008d90 <_Thread_Set_priority> 2007d60: 90 10 00 18 mov %i0, %o0 _ISR_Disable( level ); 2007d64: 7f ff e9 52 call 20022ac 2007d68: 01 00 00 00 nop 2007d6c: 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; 2007d70: e4 04 20 10 ld [ %l0 + 0x10 ], %l2 if ( state != STATES_TRANSIENT ) { 2007d74: 80 a4 a0 04 cmp %l2, 4 2007d78: 02 80 00 18 be 2007dd8 <_Thread_Change_priority+0xa0> 2007d7c: 80 8c 60 04 btst 4, %l1 /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 2007d80: 02 80 00 0b be 2007dac <_Thread_Change_priority+0x74> 2007d84: 82 0c bf fb and %l2, -5, %g1 the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 2007d88: 7f ff e9 4d call 20022bc <== NOT EXECUTED 2007d8c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( _States_Is_waiting_on_thread_queue( state ) ) { 2007d90: 03 00 00 ef sethi %hi(0x3bc00), %g1 <== NOT EXECUTED 2007d94: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <== NOT EXECUTED 2007d98: 80 8c 80 01 btst %l2, %g1 <== NOT EXECUTED 2007d9c: 32 80 00 0d bne,a 2007dd0 <_Thread_Change_priority+0x98> <== NOT EXECUTED 2007da0: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 <== NOT EXECUTED 2007da4: 81 c7 e0 08 ret 2007da8: 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 ); 2007dac: c2 24 20 10 st %g1, [ %l0 + 0x10 ] _ISR_Enable( level ); 2007db0: 7f ff e9 43 call 20022bc 2007db4: 90 10 00 18 mov %i0, %o0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 2007db8: 03 00 00 ef sethi %hi(0x3bc00), %g1 2007dbc: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2007dc0: 80 8c 80 01 btst %l2, %g1 2007dc4: 02 bf ff f8 be 2007da4 <_Thread_Change_priority+0x6c> 2007dc8: 01 00 00 00 nop _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 2007dcc: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 2007dd0: 40 00 03 c0 call 2008cd0 <_Thread_queue_Requeue> 2007dd4: 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 ) ) { 2007dd8: 12 80 00 14 bne 2007e28 <_Thread_Change_priority+0xf0> 2007ddc: 23 00 80 73 sethi %hi(0x201cc00), %l1 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 2007de0: c2 04 20 90 ld [ %l0 + 0x90 ], %g1 2007de4: c4 14 20 96 lduh [ %l0 + 0x96 ], %g2 2007de8: 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 ); 2007dec: c0 24 20 10 clr [ %l0 + 0x10 ] 2007df0: 84 10 c0 02 or %g3, %g2, %g2 2007df4: c4 30 40 00 sth %g2, [ %g1 ] _Priority_Major_bit_map |= the_priority_map->ready_major; 2007df8: c4 14 61 f4 lduh [ %l1 + 0x1f4 ], %g2 2007dfc: c2 14 20 94 lduh [ %l0 + 0x94 ], %g1 _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 2007e00: 80 8e a0 ff btst 0xff, %i2 2007e04: 82 10 80 01 or %g2, %g1, %g1 2007e08: c2 34 61 f4 sth %g1, [ %l1 + 0x1f4 ] 2007e0c: 02 80 00 48 be 2007f2c <_Thread_Change_priority+0x1f4> 2007e10: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 2007e14: c4 00 40 00 ld [ %g1 ], %g2 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2007e18: c2 24 20 04 st %g1, [ %l0 + 4 ] before_node = after_node->next; after_node->next = the_node; 2007e1c: e0 20 40 00 st %l0, [ %g1 ] the_node->next = before_node; before_node->previous = the_node; 2007e20: 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; 2007e24: 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 ); 2007e28: 7f ff e9 25 call 20022bc 2007e2c: 90 10 00 18 mov %i0, %o0 2007e30: 7f ff e9 1f call 20022ac 2007e34: 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 ); 2007e38: c2 14 61 f4 lduh [ %l1 + 0x1f4 ], %g1 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; 2007e3c: 05 00 80 73 sethi %hi(0x201cc00), %g2 2007e40: 83 28 60 10 sll %g1, 0x10, %g1 2007e44: da 00 a0 94 ld [ %g2 + 0x94 ], %o5 2007e48: 85 30 60 10 srl %g1, 0x10, %g2 2007e4c: 80 a0 a0 ff cmp %g2, 0xff 2007e50: 08 80 00 27 bleu 2007eec <_Thread_Change_priority+0x1b4> 2007e54: 07 00 80 6c sethi %hi(0x201b000), %g3 2007e58: 83 30 60 18 srl %g1, 0x18, %g1 2007e5c: 86 10 e1 f0 or %g3, 0x1f0, %g3 2007e60: c4 08 c0 01 ldub [ %g3 + %g1 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2007e64: 09 00 80 73 sethi %hi(0x201cc00), %g4 2007e68: 85 28 a0 10 sll %g2, 0x10, %g2 2007e6c: 88 11 22 70 or %g4, 0x270, %g4 2007e70: 83 30 a0 0f srl %g2, 0xf, %g1 2007e74: c2 11 00 01 lduh [ %g4 + %g1 ], %g1 2007e78: 83 28 60 10 sll %g1, 0x10, %g1 2007e7c: 89 30 60 10 srl %g1, 0x10, %g4 2007e80: 80 a1 20 ff cmp %g4, 0xff 2007e84: 18 80 00 28 bgu 2007f24 <_Thread_Change_priority+0x1ec> 2007e88: 83 30 60 18 srl %g1, 0x18, %g1 2007e8c: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1 2007e90: 82 00 60 08 add %g1, 8, %g1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 2007e94: 85 30 a0 0c srl %g2, 0xc, %g2 2007e98: 83 28 60 10 sll %g1, 0x10, %g1 2007e9c: 83 30 60 10 srl %g1, 0x10, %g1 2007ea0: 82 00 40 02 add %g1, %g2, %g1 2007ea4: 85 28 60 04 sll %g1, 4, %g2 2007ea8: 83 28 60 02 sll %g1, 2, %g1 2007eac: 82 20 80 01 sub %g2, %g1, %g1 2007eb0: 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 ); 2007eb4: 05 00 80 73 sethi %hi(0x201cc00), %g2 2007eb8: c4 00 a2 00 ld [ %g2 + 0x200 ], %g2 ! 201ce00 <_Thread_Executing> * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 2007ebc: 07 00 80 73 sethi %hi(0x201cc00), %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() && 2007ec0: 80 a0 40 02 cmp %g1, %g2 2007ec4: 02 80 00 08 be 2007ee4 <_Thread_Change_priority+0x1ac> 2007ec8: c2 20 e1 d0 st %g1, [ %g3 + 0x1d0 ] _Thread_Executing->is_preemptible ) 2007ecc: c2 08 a0 75 ldub [ %g2 + 0x75 ], %g1 2007ed0: 80 a0 60 00 cmp %g1, 0 2007ed4: 02 80 00 04 be 2007ee4 <_Thread_Change_priority+0x1ac> 2007ed8: 84 10 20 01 mov 1, %g2 _Context_Switch_necessary = true; 2007edc: 03 00 80 73 sethi %hi(0x201cc00), %g1 2007ee0: c4 28 62 10 stb %g2, [ %g1 + 0x210 ] ! 201ce10 <_Context_Switch_necessary> _ISR_Enable( level ); 2007ee4: 7f ff e8 f6 call 20022bc 2007ee8: 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 ); 2007eec: 86 10 e1 f0 or %g3, 0x1f0, %g3 2007ef0: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2007ef4: 09 00 80 73 sethi %hi(0x201cc00), %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 ); 2007ef8: 84 00 a0 08 add %g2, 8, %g2 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 2007efc: 88 11 22 70 or %g4, 0x270, %g4 2007f00: 85 28 a0 10 sll %g2, 0x10, %g2 2007f04: 83 30 a0 0f srl %g2, 0xf, %g1 2007f08: c2 11 00 01 lduh [ %g4 + %g1 ], %g1 2007f0c: 83 28 60 10 sll %g1, 0x10, %g1 2007f10: 89 30 60 10 srl %g1, 0x10, %g4 2007f14: 80 a1 20 ff cmp %g4, 0xff 2007f18: 28 bf ff de bleu,a 2007e90 <_Thread_Change_priority+0x158> 2007f1c: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1 2007f20: 83 30 60 18 srl %g1, 0x18, %g1 2007f24: 10 bf ff dc b 2007e94 <_Thread_Change_priority+0x15c> 2007f28: c2 08 c0 01 ldub [ %g3 + %g1 ], %g1 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2007f2c: 84 00 60 04 add %g1, 4, %g2 2007f30: c4 24 00 00 st %g2, [ %l0 ] old_last_node = the_chain->last; 2007f34: c4 00 60 08 ld [ %g1 + 8 ], %g2 the_chain->last = the_node; 2007f38: e0 20 60 08 st %l0, [ %g1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2007f3c: 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; 2007f40: 10 bf ff ba b 2007e28 <_Thread_Change_priority+0xf0> 2007f44: e0 20 80 00 st %l0, [ %g2 ] 02008494 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 2008494: 9d e3 bf a0 save %sp, -96, %sp 2008498: c2 07 a0 6c ld [ %fp + 0x6c ], %g1 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 200849c: c0 26 61 68 clr [ %i1 + 0x168 ] 20084a0: c0 26 61 6c clr [ %i1 + 0x16c ] 20084a4: c0 26 61 70 clr [ %i1 + 0x170 ] extensions_area = NULL; the_thread->libc_reent = NULL; 20084a8: c0 26 61 64 clr [ %i1 + 0x164 ] Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 20084ac: e0 00 40 00 ld [ %g1 ], %l0 if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { 20084b0: 80 a6 a0 00 cmp %i2, 0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 20084b4: e2 07 a0 60 ld [ %fp + 0x60 ], %l1 if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { 20084b8: 02 80 00 82 be 20086c0 <_Thread_Initialize+0x22c> 20084bc: e4 0f a0 5f ldub [ %fp + 0x5f ], %l2 stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = true; } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = false; 20084c0: c0 2e 60 c0 clrb [ %i1 + 0xc0 ] 20084c4: 90 10 00 1b mov %i3, %o0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 20084c8: f4 26 60 c8 st %i2, [ %i1 + 0xc8 ] the_stack->size = size; 20084cc: d0 26 60 c4 st %o0, [ %i1 + 0xc4 ] /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 20084d0: 80 8f 20 ff btst 0xff, %i4 20084d4: 82 10 20 00 clr %g1 20084d8: 12 80 00 56 bne 2008630 <_Thread_Initialize+0x19c> 20084dc: b4 10 20 00 clr %i2 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 20084e0: 39 00 80 73 sethi %hi(0x201cc00), %i4 20084e4: c4 07 21 e0 ld [ %i4 + 0x1e0 ], %g2 ! 201cde0 <_Thread_Maximum_extensions> if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 20084e8: c2 26 60 cc st %g1, [ %i1 + 0xcc ] fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; 20084ec: c2 26 61 60 st %g1, [ %i1 + 0x160 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 20084f0: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 20084f4: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 20084f8: c0 26 60 68 clr [ %i1 + 0x68 ] #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 20084fc: 80 a0 a0 00 cmp %g2, 0 2008500: 12 80 00 5c bne 2008670 <_Thread_Initialize+0x1dc> 2008504: c0 26 60 6c clr [ %i1 + 0x6c ] (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 2008508: c0 26 61 74 clr [ %i1 + 0x174 ] 200850c: b6 10 20 00 clr %i3 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2008510: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 2008514: e4 2e 60 ac stb %l2, [ %i1 + 0xac ] the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 2008518: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ] switch ( budget_algorithm ) { 200851c: 80 a4 60 02 cmp %l1, 2 2008520: 12 80 00 05 bne 2008534 <_Thread_Initialize+0xa0> 2008524: e2 26 60 b0 st %l1, [ %i1 + 0xb0 ] case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 2008528: 03 00 80 73 sethi %hi(0x201cc00), %g1 200852c: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 ! 201cc98 <_Thread_Ticks_per_timeslice> 2008530: c2 26 60 78 st %g1, [ %i1 + 0x78 ] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 2008534: c2 07 a0 68 ld [ %fp + 0x68 ], %g1 #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008538: 92 10 00 1d mov %i5, %o1 case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 200853c: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->current_state = STATES_DORMANT; 2008540: 82 10 20 01 mov 1, %g1 #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008544: 90 10 00 19 mov %i1, %o0 #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 2008548: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; 200854c: c0 26 60 44 clr [ %i1 + 0x44 ] the_thread->resource_count = 0; 2008550: c0 26 60 1c clr [ %i1 + 0x1c ] #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; 2008554: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 2008558: 40 00 02 0e call 2008d90 <_Thread_Set_priority> 200855c: fa 26 60 bc st %i5, [ %i1 + 0xbc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008560: c2 16 60 0a lduh [ %i1 + 0xa ], %g1 2008564: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 2008568: 83 28 60 02 sll %g1, 2, %g1 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 200856c: e0 26 60 0c st %l0, [ %i1 + 0xc ] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 2008570: f2 20 80 01 st %i1, [ %g2 + %g1 ] /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 2008574: c0 26 60 84 clr [ %i1 + 0x84 ] 2008578: c0 26 60 88 clr [ %i1 + 0x88 ] * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); 200857c: 90 10 00 19 mov %i1, %o0 2008580: 40 00 03 e5 call 2009514 <_User_extensions_Thread_create> 2008584: b0 10 20 01 mov 1, %i0 if ( extension_status ) 2008588: 80 8a 20 ff btst 0xff, %o0 200858c: 12 80 00 27 bne 2008628 <_Thread_Initialize+0x194> 2008590: 01 00 00 00 nop return true; failed: if ( the_thread->libc_reent ) 2008594: d0 06 61 64 ld [ %i1 + 0x164 ], %o0 2008598: 80 a2 20 00 cmp %o0, 0 200859c: 22 80 00 05 be,a 20085b0 <_Thread_Initialize+0x11c> 20085a0: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 _Workspace_Free( the_thread->libc_reent ); 20085a4: 40 00 05 16 call 20099fc <_Workspace_Free> 20085a8: 01 00 00 00 nop for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20085ac: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 20085b0: 80 a2 20 00 cmp %o0, 0 20085b4: 22 80 00 05 be,a 20085c8 <_Thread_Initialize+0x134> 20085b8: d0 06 61 6c ld [ %i1 + 0x16c ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 20085bc: 40 00 05 10 call 20099fc <_Workspace_Free> 20085c0: 01 00 00 00 nop failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20085c4: d0 06 61 6c ld [ %i1 + 0x16c ], %o0 20085c8: 80 a2 20 00 cmp %o0, 0 20085cc: 22 80 00 05 be,a 20085e0 <_Thread_Initialize+0x14c> 20085d0: d0 06 61 70 ld [ %i1 + 0x170 ], %o0 _Workspace_Free( the_thread->API_Extensions[i] ); 20085d4: 40 00 05 0a call 20099fc <_Workspace_Free> 20085d8: 01 00 00 00 nop failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 20085dc: d0 06 61 70 ld [ %i1 + 0x170 ], %o0 20085e0: 80 a2 20 00 cmp %o0, 0 20085e4: 02 80 00 05 be 20085f8 <_Thread_Initialize+0x164> 20085e8: 80 a6 e0 00 cmp %i3, 0 _Workspace_Free( the_thread->API_Extensions[i] ); 20085ec: 40 00 05 04 call 20099fc <_Workspace_Free> <== NOT EXECUTED 20085f0: 01 00 00 00 nop <== NOT EXECUTED if ( extensions_area ) 20085f4: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED 20085f8: 02 80 00 05 be 200860c <_Thread_Initialize+0x178> 20085fc: 80 a6 a0 00 cmp %i2, 0 (void) _Workspace_Free( extensions_area ); 2008600: 40 00 04 ff call 20099fc <_Workspace_Free> 2008604: 90 10 00 1b mov %i3, %o0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 2008608: 80 a6 a0 00 cmp %i2, 0 200860c: 02 80 00 05 be 2008620 <_Thread_Initialize+0x18c> 2008610: 90 10 00 19 mov %i1, %o0 (void) _Workspace_Free( fp_area ); 2008614: 40 00 04 fa call 20099fc <_Workspace_Free> 2008618: 90 10 00 1a mov %i2, %o0 #endif _Thread_Stack_Free( the_thread ); 200861c: 90 10 00 19 mov %i1, %o0 2008620: 40 00 02 97 call 200907c <_Thread_Stack_Free> 2008624: b0 10 20 00 clr %i0 return false; } 2008628: 81 c7 e0 08 ret 200862c: 81 e8 00 00 restore /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 2008630: 40 00 04 ea call 20099d8 <_Workspace_Allocate> 2008634: 90 10 20 88 mov 0x88, %o0 if ( !fp_area ) 2008638: b6 10 20 00 clr %i3 200863c: b4 92 20 00 orcc %o0, 0, %i2 2008640: 02 bf ff d5 be 2008594 <_Thread_Initialize+0x100> 2008644: 82 10 00 1a mov %i2, %g1 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008648: 39 00 80 73 sethi %hi(0x201cc00), %i4 200864c: c4 07 21 e0 ld [ %i4 + 0x1e0 ], %g2 ! 201cde0 <_Thread_Maximum_extensions> if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; 2008650: c2 26 60 cc st %g1, [ %i1 + 0xcc ] fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; 2008654: c2 26 61 60 st %g1, [ %i1 + 0x160 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 2008658: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 200865c: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 2008660: c0 26 60 68 clr [ %i1 + 0x68 ] #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 2008664: 80 a0 a0 00 cmp %g2, 0 2008668: 02 bf ff a8 be 2008508 <_Thread_Initialize+0x74> 200866c: c0 26 60 6c clr [ %i1 + 0x6c ] extensions_area = _Workspace_Allocate( 2008670: 84 00 a0 01 inc %g2 2008674: 40 00 04 d9 call 20099d8 <_Workspace_Allocate> 2008678: 91 28 a0 02 sll %g2, 2, %o0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 200867c: b6 92 20 00 orcc %o0, 0, %i3 2008680: 02 bf ff c5 be 2008594 <_Thread_Initialize+0x100> 2008684: c8 07 21 e0 ld [ %i4 + 0x1e0 ], %g4 goto failed; } the_thread->extensions = (void **) extensions_area; 2008688: f6 26 61 74 st %i3, [ %i1 + 0x174 ] 200868c: 86 10 00 1b mov %i3, %g3 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 2008690: 84 10 20 00 clr %g2 2008694: 10 80 00 03 b 20086a0 <_Thread_Initialize+0x20c> 2008698: 82 10 20 00 clr %g1 200869c: c6 06 61 74 ld [ %i1 + 0x174 ], %g3 the_thread->extensions[i] = NULL; 20086a0: 85 28 a0 02 sll %g2, 2, %g2 20086a4: c0 20 c0 02 clr [ %g3 + %g2 ] * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 20086a8: 82 00 60 01 inc %g1 20086ac: 80 a1 00 01 cmp %g4, %g1 20086b0: 1a bf ff fb bcc 200869c <_Thread_Initialize+0x208> 20086b4: 84 10 00 01 mov %g1, %g2 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 20086b8: 10 bf ff 97 b 2008514 <_Thread_Initialize+0x80> 20086bc: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 20086c0: 90 10 00 19 mov %i1, %o0 20086c4: 40 00 02 53 call 2009010 <_Thread_Stack_Allocate> 20086c8: 92 10 00 1b mov %i3, %o1 if ( !actual_stack_size || actual_stack_size < stack_size ) 20086cc: 80 a6 c0 08 cmp %i3, %o0 20086d0: 18 80 00 07 bgu 20086ec <_Thread_Initialize+0x258> 20086d4: 80 a2 20 00 cmp %o0, 0 20086d8: 02 80 00 05 be 20086ec <_Thread_Initialize+0x258> 20086dc: 82 10 20 01 mov 1, %g1 return false; /* stack allocation failed */ stack = the_thread->Start.stack; 20086e0: f4 06 60 d0 ld [ %i1 + 0xd0 ], %i2 the_thread->Start.core_allocated_stack = true; 20086e4: 10 bf ff 79 b 20084c8 <_Thread_Initialize+0x34> 20086e8: c2 2e 60 c0 stb %g1, [ %i1 + 0xc0 ] stack = the_thread->Start.stack; #else if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) 20086ec: 81 c7 e0 08 ret 20086f0: 91 e8 20 00 restore %g0, 0, %o0 02009208 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 2009208: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 200920c: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009210: e0 00 62 00 ld [ %g1 + 0x200 ], %l0 ! 201ce00 <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 2009214: 7f ff e4 26 call 20022ac 2009218: e2 04 20 8c ld [ %l0 + 0x8c ], %l1 200921c: b0 10 00 08 mov %o0, %i0 if ( !_Chain_Has_only_one_node( ready ) ) { 2009220: c4 04 40 00 ld [ %l1 ], %g2 2009224: c2 04 60 08 ld [ %l1 + 8 ], %g1 2009228: 80 a0 80 01 cmp %g2, %g1 200922c: 02 80 00 19 be 2009290 <_Thread_Yield_processor+0x88> 2009230: 86 04 60 04 add %l1, 4, %g3 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 2009234: c2 04 00 00 ld [ %l0 ], %g1 previous = the_node->previous; 2009238: c4 04 20 04 ld [ %l0 + 4 ], %g2 next->previous = previous; previous->next = next; 200923c: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 2009240: c6 24 00 00 st %g3, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 2009244: 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; 2009248: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 200924c: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 2009250: 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; 2009254: e0 20 40 00 st %l0, [ %g1 ] _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 2009258: 7f ff e4 19 call 20022bc 200925c: 01 00 00 00 nop 2009260: 7f ff e4 13 call 20022ac 2009264: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 2009268: 03 00 80 73 sethi %hi(0x201cc00), %g1 200926c: c4 00 61 d0 ld [ %g1 + 0x1d0 ], %g2 ! 201cdd0 <_Thread_Heir> 2009270: 80 a4 00 02 cmp %l0, %g2 2009274: 22 80 00 0e be,a 20092ac <_Thread_Yield_processor+0xa4> 2009278: 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; 200927c: 84 10 20 01 mov 1, %g2 2009280: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009284: c4 28 62 10 stb %g2, [ %g1 + 0x210 ] ! 201ce10 <_Context_Switch_necessary> _ISR_Enable( level ); 2009288: 7f ff e4 0d call 20022bc 200928c: 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 ) ) 2009290: 03 00 80 73 sethi %hi(0x201cc00), %g1 2009294: c2 00 61 d0 ld [ %g1 + 0x1d0 ], %g1 ! 201cdd0 <_Thread_Heir> 2009298: 80 a4 00 01 cmp %l0, %g1 200929c: 32 bf ff f9 bne,a 2009280 <_Thread_Yield_processor+0x78> 20092a0: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED _Context_Switch_necessary = true; _ISR_Enable( level ); 20092a4: 7f ff e4 06 call 20022bc 20092a8: 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; 20092ac: 10 bf ff f4 b 200927c <_Thread_Yield_processor+0x74> 20092b0: c4 20 61 d0 st %g2, [ %g1 + 0x1d0 ] 02008a14 <_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 ) { 2008a14: 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; 2008a18: 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); 2008a1c: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2008a20: 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); 2008a24: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2008a28: 82 06 60 38 add %i1, 0x38, %g1 2008a2c: c2 26 60 40 st %g1, [ %i1 + 0x40 ] 2008a30: 2d 00 80 70 sethi %hi(0x201c000), %l6 header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 2008a34: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008a38: 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 ]; 2008a3c: ab 28 60 04 sll %g1, 4, %l5 2008a40: ac 15 a2 24 or %l6, 0x224, %l6 2008a44: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 2008a48: 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 ]; 2008a4c: aa 25 40 01 sub %l5, %g1, %l5 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2008a50: 12 80 00 24 bne 2008ae0 <_Thread_queue_Enqueue_priority+0xcc> 2008a54: 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; 2008a58: ac 05 60 04 add %l5, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2008a5c: 7f ff e6 14 call 20022ac 2008a60: 01 00 00 00 nop 2008a64: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 2008a68: c2 05 40 00 ld [ %l5 ], %g1 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2008a6c: 80 a0 40 16 cmp %g1, %l6 2008a70: 02 80 00 3a be 2008b58 <_Thread_queue_Enqueue_priority+0x144> 2008a74: a2 10 00 01 mov %g1, %l1 search_priority = search_thread->current_priority; 2008a78: e6 00 60 14 ld [ %g1 + 0x14 ], %l3 if ( priority <= search_priority ) 2008a7c: 80 a4 00 13 cmp %l0, %l3 2008a80: 18 80 00 0b bgu 2008aac <_Thread_queue_Enqueue_priority+0x98> 2008a84: 01 00 00 00 nop } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2008a88: 10 80 00 36 b 2008b60 <_Thread_queue_Enqueue_priority+0x14c> 2008a8c: 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 ) ) { 2008a90: 80 a4 40 16 cmp %l1, %l6 2008a94: 02 80 00 32 be 2008b5c <_Thread_queue_Enqueue_priority+0x148> 2008a98: 82 10 00 11 mov %l1, %g1 search_priority = search_thread->current_priority; 2008a9c: e6 04 60 14 ld [ %l1 + 0x14 ], %l3 if ( priority <= search_priority ) 2008aa0: 80 a4 00 13 cmp %l0, %l3 2008aa4: 28 80 00 2f bleu,a 2008b60 <_Thread_queue_Enqueue_priority+0x14c> 2008aa8: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 2008aac: 7f ff e6 04 call 20022bc 2008ab0: 90 10 00 12 mov %l2, %o0 2008ab4: 7f ff e5 fe call 20022ac 2008ab8: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008abc: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008ac0: 80 8d 00 01 btst %l4, %g1 2008ac4: 32 bf ff f3 bne,a 2008a90 <_Thread_queue_Enqueue_priority+0x7c> 2008ac8: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 2008acc: 7f ff e5 fc call 20022bc <== NOT EXECUTED 2008ad0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 2008ad4: 30 bf ff e2 b,a 2008a5c <_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 ); 2008ad8: 7f ff e5 f9 call 20022bc 2008adc: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 2008ae0: 7f ff e5 f3 call 20022ac 2008ae4: 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; 2008ae8: a6 04 e0 01 inc %l3 _ISR_Disable( level ); 2008aec: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; 2008af0: c2 05 60 08 ld [ %l5 + 8 ], %g1 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 2008af4: 80 a0 40 15 cmp %g1, %l5 2008af8: 02 80 00 20 be 2008b78 <_Thread_queue_Enqueue_priority+0x164> 2008afc: a2 10 00 01 mov %g1, %l1 search_priority = search_thread->current_priority; 2008b00: e6 00 60 14 ld [ %g1 + 0x14 ], %l3 if ( priority >= search_priority ) 2008b04: 80 a4 00 13 cmp %l0, %l3 2008b08: 0a 80 00 0b bcs 2008b34 <_Thread_queue_Enqueue_priority+0x120> 2008b0c: 01 00 00 00 nop } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2008b10: 10 80 00 1b b 2008b7c <_Thread_queue_Enqueue_priority+0x168> 2008b14: 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 ) ) { 2008b18: 80 a4 40 15 cmp %l1, %l5 2008b1c: 02 80 00 17 be 2008b78 <_Thread_queue_Enqueue_priority+0x164> 2008b20: 82 10 00 11 mov %l1, %g1 search_priority = search_thread->current_priority; 2008b24: e6 04 60 14 ld [ %l1 + 0x14 ], %l3 if ( priority >= search_priority ) 2008b28: 80 a4 00 13 cmp %l0, %l3 2008b2c: 3a 80 00 14 bcc,a 2008b7c <_Thread_queue_Enqueue_priority+0x168> 2008b30: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 2008b34: 7f ff e5 e2 call 20022bc 2008b38: 90 10 00 12 mov %l2, %o0 2008b3c: 7f ff e5 dc call 20022ac 2008b40: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2008b44: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2008b48: 80 8d 00 01 btst %l4, %g1 2008b4c: 32 bf ff f3 bne,a 2008b18 <_Thread_queue_Enqueue_priority+0x104> 2008b50: e2 04 60 04 ld [ %l1 + 4 ], %l1 2008b54: 30 bf ff e1 b,a 2008ad8 <_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 ) ) { 2008b58: a6 10 3f ff mov -1, %l3 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2008b5c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 2008b60: 80 a0 a0 01 cmp %g2, 1 2008b64: 02 80 00 17 be 2008bc0 <_Thread_queue_Enqueue_priority+0x1ac> 2008b68: 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; 2008b6c: e4 26 80 00 st %l2, [ %i2 ] return the_thread_queue->sync_state; } 2008b70: 81 c7 e0 08 ret 2008b74: 91 e8 00 02 restore %g0, %g2, %o0 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2008b78: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 2008b7c: 80 a0 a0 01 cmp %g2, 1 2008b80: 32 bf ff fc bne,a 2008b70 <_Thread_queue_Enqueue_priority+0x15c> 2008b84: 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 ) 2008b88: 80 a4 00 13 cmp %l0, %l3 2008b8c: 02 80 00 1a be 2008bf4 <_Thread_queue_Enqueue_priority+0x1e0> 2008b90: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2008b94: c4 00 40 00 ld [ %g1 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 2008b98: 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; 2008b9c: 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; 2008ba0: 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; 2008ba4: f2 20 40 00 st %i1, [ %g1 ] next_node->previous = the_node; 2008ba8: f2 20 a0 04 st %i1, [ %g2 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008bac: b0 10 20 01 mov 1, %i0 2008bb0: 7f ff e5 c3 call 20022bc 2008bb4: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2008bb8: 81 c7 e0 08 ret 2008bbc: 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 ) 2008bc0: 02 80 00 0d be 2008bf4 <_Thread_queue_Enqueue_priority+0x1e0> 2008bc4: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 2008bc8: c4 00 60 04 ld [ %g1 + 4 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2008bcc: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = previous_node; 2008bd0: 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; 2008bd4: 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; 2008bd8: f2 20 80 00 st %i1, [ %g2 ] search_node->previous = the_node; 2008bdc: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008be0: b0 10 20 01 mov 1, %i0 2008be4: 7f ff e5 b6 call 20022bc 2008be8: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2008bec: 81 c7 e0 08 ret 2008bf0: 81 e8 00 00 restore 2008bf4: 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; 2008bf8: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2008bfc: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2008c00: 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; 2008c04: 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; 2008c08: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2008c0c: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2008c10: b0 10 20 01 mov 1, %i0 2008c14: 7f ff e5 aa call 20022bc 2008c18: 90 10 00 12 mov %l2, %o0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2008c1c: 81 c7 e0 08 ret 2008c20: 81 e8 00 00 restore 02008cd0 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 2008cd0: 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 ) 2008cd4: 80 a6 20 00 cmp %i0, 0 2008cd8: 02 80 00 13 be 2008d24 <_Thread_queue_Requeue+0x54> 2008cdc: 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 ) { 2008ce0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 2008ce4: 80 a4 60 01 cmp %l1, 1 2008ce8: 02 80 00 04 be 2008cf8 <_Thread_queue_Requeue+0x28> 2008cec: 01 00 00 00 nop 2008cf0: 81 c7 e0 08 ret <== NOT EXECUTED 2008cf4: 81 e8 00 00 restore <== NOT EXECUTED Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 2008cf8: 7f ff e5 6d call 20022ac 2008cfc: 01 00 00 00 nop 2008d00: a0 10 00 08 mov %o0, %l0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 2008d04: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 2008d08: 03 00 00 ef sethi %hi(0x3bc00), %g1 2008d0c: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 2008d10: 80 88 80 01 btst %g2, %g1 2008d14: 12 80 00 06 bne 2008d2c <_Thread_queue_Requeue+0x5c> 2008d18: 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 ); 2008d1c: 7f ff e5 68 call 20022bc 2008d20: 90 10 00 10 mov %l0, %o0 2008d24: 81 c7 e0 08 ret 2008d28: 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 ); 2008d2c: 92 10 00 19 mov %i1, %o1 2008d30: e2 26 20 30 st %l1, [ %i0 + 0x30 ] 2008d34: 40 00 11 47 call 200d250 <_Thread_queue_Extract_priority_helper> 2008d38: 94 10 20 01 mov 1, %o2 (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 2008d3c: 90 10 00 18 mov %i0, %o0 2008d40: 92 10 00 19 mov %i1, %o1 2008d44: 7f ff ff 34 call 2008a14 <_Thread_queue_Enqueue_priority> 2008d48: 94 07 bf fc add %fp, -4, %o2 2008d4c: 30 bf ff f4 b,a 2008d1c <_Thread_queue_Requeue+0x4c> 020166ec <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 20166ec: 9d e3 bf 88 save %sp, -120, %sp 20166f0: 2d 00 80 f9 sethi %hi(0x203e400), %l6 20166f4: ba 07 bf f4 add %fp, -12, %i5 20166f8: a8 07 bf f8 add %fp, -8, %l4 20166fc: a4 07 bf e8 add %fp, -24, %l2 2016700: ae 07 bf ec add %fp, -20, %l7 2016704: 2b 00 80 f9 sethi %hi(0x203e400), %l5 2016708: 39 00 80 f9 sethi %hi(0x203e400), %i4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 201670c: c0 27 bf f8 clr [ %fp + -8 ] 2016710: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 2016714: 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); 2016718: e8 27 bf f4 st %l4, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 201671c: 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); 2016720: ee 27 bf e8 st %l7, [ %fp + -24 ] 2016724: ac 15 a2 c4 or %l6, 0x2c4, %l6 2016728: aa 15 62 04 or %l5, 0x204, %l5 201672c: b8 17 21 70 or %i4, 0x170, %i4 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2016730: 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 ); 2016734: 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 ); 2016738: 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 ); 201673c: 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; 2016740: 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; 2016744: 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; 2016748: c2 05 80 00 ld [ %l6 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 201674c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2016750: 90 10 00 11 mov %l1, %o0 2016754: 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; 2016758: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 201675c: 40 00 12 8c call 201b18c <_Watchdog_Adjust_to_chain> 2016760: 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; 2016764: 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(); 2016768: 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 ) { 201676c: 80 a4 00 09 cmp %l0, %o1 2016770: 38 80 00 2f bgu,a 201682c <_Timer_server_Body+0x140> 2016774: 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 ) { 2016778: 80 a4 00 09 cmp %l0, %o1 201677c: 0a 80 00 30 bcs 201683c <_Timer_server_Body+0x150> 2016780: 94 22 40 10 sub %o1, %l0, %o2 */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 2016784: 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 ); 2016788: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 201678c: 40 00 02 b5 call 2017260 <_Chain_Get> 2016790: 01 00 00 00 nop if ( timer == NULL ) { 2016794: 80 a2 20 00 cmp %o0, 0 2016798: 02 80 00 10 be 20167d8 <_Timer_server_Body+0xec> 201679c: 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 ) { 20167a0: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 20167a4: 80 a0 60 01 cmp %g1, 1 20167a8: 02 80 00 29 be 201684c <_Timer_server_Body+0x160> 20167ac: 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 ) { 20167b0: 12 bf ff f6 bne 2016788 <_Timer_server_Body+0x9c> 20167b4: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 20167b8: 40 00 12 ab call 201b264 <_Watchdog_Insert> 20167bc: 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 ); 20167c0: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 20167c4: 40 00 02 a7 call 2017260 <_Chain_Get> 20167c8: 01 00 00 00 nop if ( timer == NULL ) { 20167cc: 80 a2 20 00 cmp %o0, 0 20167d0: 32 bf ff f5 bne,a 20167a4 <_Timer_server_Body+0xb8> 20167d4: 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 ); 20167d8: 7f ff e3 aa call 200f680 20167dc: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 20167e0: c2 07 bf f4 ld [ %fp + -12 ], %g1 20167e4: 80 a5 00 01 cmp %l4, %g1 20167e8: 02 80 00 1d be 201685c <_Timer_server_Body+0x170> 20167ec: 01 00 00 00 nop ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 20167f0: 7f ff e3 a8 call 200f690 <== NOT EXECUTED 20167f4: 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; 20167f8: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 20167fc: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2016800: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2016804: 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; 2016808: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 201680c: 40 00 12 60 call 201b18c <_Watchdog_Adjust_to_chain> <== NOT EXECUTED 2016810: 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; 2016814: 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(); 2016818: 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 ) { 201681c: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED 2016820: 08 bf ff d7 bleu 201677c <_Timer_server_Body+0x90> <== NOT EXECUTED 2016824: 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 ); 2016828: 92 24 00 09 sub %l0, %o1, %o1 <== NOT EXECUTED 201682c: 90 10 00 13 mov %l3, %o0 2016830: 40 00 12 57 call 201b18c <_Watchdog_Adjust_to_chain> 2016834: 94 10 00 12 mov %l2, %o2 2016838: 30 bf ff d3 b,a 2016784 <_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 ); 201683c: 90 10 00 13 mov %l3, %o0 2016840: 40 00 12 23 call 201b0cc <_Watchdog_Adjust> 2016844: 92 10 20 01 mov 1, %o1 2016848: 30 bf ff cf b,a 2016784 <_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 ); 201684c: 92 02 20 10 add %o0, 0x10, %o1 2016850: 40 00 12 85 call 201b264 <_Watchdog_Insert> 2016854: 90 10 00 11 mov %l1, %o0 2016858: 30 bf ff cc b,a 2016788 <_Timer_server_Body+0x9c> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 201685c: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 2016860: 7f ff e3 8c call 200f690 2016864: 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 ) ) { 2016868: c2 07 bf e8 ld [ %fp + -24 ], %g1 201686c: 80 a5 c0 01 cmp %l7, %g1 2016870: 12 80 00 0c bne 20168a0 <_Timer_server_Body+0x1b4> 2016874: 01 00 00 00 nop 2016878: 30 80 00 13 b,a 20168c4 <_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; 201687c: 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; 2016880: c2 27 bf e8 st %g1, [ %fp + -24 ] new_first->previous = _Chain_Head(the_chain); 2016884: e4 20 60 04 st %l2, [ %g1 + 4 ] _ISR_Enable( level ); 2016888: 7f ff e3 82 call 200f690 201688c: 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 ); 2016890: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 2016894: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 2016898: 9f c0 40 00 call %g1 201689c: 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 ); 20168a0: 7f ff e3 78 call 200f680 20168a4: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 20168a8: 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)) 20168ac: 80 a5 c0 10 cmp %l7, %l0 20168b0: 32 bf ff f3 bne,a 201687c <_Timer_server_Body+0x190> 20168b4: 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 ); 20168b8: 7f ff e3 76 call 200f690 20168bc: 01 00 00 00 nop 20168c0: 30 bf ff a1 b,a 2016744 <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 20168c4: c0 2e 20 7c clrb [ %i0 + 0x7c ] 20168c8: c2 07 00 00 ld [ %i4 ], %g1 20168cc: 82 00 60 01 inc %g1 20168d0: c2 27 00 00 st %g1, [ %i4 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 20168d4: d0 06 00 00 ld [ %i0 ], %o0 20168d8: 40 00 0f 45 call 201a5ec <_Thread_Set_state> 20168dc: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 20168e0: 7f ff ff 59 call 2016644 <_Timer_server_Reset_interval_system_watchdog> 20168e4: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 20168e8: 7f ff ff 6c call 2016698 <_Timer_server_Reset_tod_system_watchdog> 20168ec: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 20168f0: 40 00 0c 3d call 20199e4 <_Thread_Enable_dispatch> 20168f4: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 20168f8: 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; 20168fc: 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 ); 2016900: 40 00 12 c6 call 201b418 <_Watchdog_Remove> 2016904: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2016908: 40 00 12 c4 call 201b418 <_Watchdog_Remove> 201690c: 90 10 00 1a mov %i2, %o0 2016910: 30 bf ff 8d b,a 2016744 <_Timer_server_Body+0x58> 0200b910 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 200b910: 9d e3 bf a0 save %sp, -96, %sp ISR_Level level; _ISR_Disable( level ); 200b914: 7f ff de 47 call 2003230 200b918: 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)); 200b91c: 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; 200b920: 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 ) ) { 200b924: 80 a0 40 11 cmp %g1, %l1 200b928: 02 80 00 1f be 200b9a4 <_Watchdog_Adjust+0x94> 200b92c: 80 a6 60 00 cmp %i1, 0 switch ( direction ) { 200b930: 12 80 00 1f bne 200b9ac <_Watchdog_Adjust+0x9c> 200b934: 80 a6 60 01 cmp %i1, 1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 200b938: 80 a6 a0 00 cmp %i2, 0 200b93c: 02 80 00 1a be 200b9a4 <_Watchdog_Adjust+0x94> 200b940: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200b944: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200b948: 80 a6 80 19 cmp %i2, %i1 200b94c: 1a 80 00 0b bcc 200b978 <_Watchdog_Adjust+0x68> 200b950: a4 10 20 01 mov 1, %l2 _Watchdog_First( header )->delta_interval -= units; 200b954: 10 80 00 1d b 200b9c8 <_Watchdog_Adjust+0xb8> <== NOT EXECUTED 200b958: 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 ) { 200b95c: b4 a6 80 19 subcc %i2, %i1, %i2 200b960: 02 80 00 11 be 200b9a4 <_Watchdog_Adjust+0x94> 200b964: 01 00 00 00 nop if ( units < _Watchdog_First( header )->delta_interval ) { 200b968: f2 00 60 10 ld [ %g1 + 0x10 ], %i1 200b96c: 80 a6 40 1a cmp %i1, %i2 200b970: 38 80 00 16 bgu,a 200b9c8 <_Watchdog_Adjust+0xb8> 200b974: 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; 200b978: e4 20 60 10 st %l2, [ %g1 + 0x10 ] _ISR_Enable( level ); 200b97c: 7f ff de 31 call 2003240 200b980: 01 00 00 00 nop _Watchdog_Tickle( header ); 200b984: 40 00 00 b6 call 200bc5c <_Watchdog_Tickle> 200b988: 90 10 00 10 mov %l0, %o0 _ISR_Disable( level ); 200b98c: 7f ff de 29 call 2003230 200b990: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 200b994: c4 04 00 00 ld [ %l0 ], %g2 if ( _Chain_Is_empty( header ) ) 200b998: 80 a4 40 02 cmp %l1, %g2 200b99c: 12 bf ff f0 bne 200b95c <_Watchdog_Adjust+0x4c> 200b9a0: 82 10 00 02 mov %g2, %g1 } break; } } _ISR_Enable( level ); 200b9a4: 7f ff de 27 call 2003240 200b9a8: 91 e8 00 08 restore %g0, %o0, %o0 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 200b9ac: 12 bf ff fe bne 200b9a4 <_Watchdog_Adjust+0x94> 200b9b0: 01 00 00 00 nop case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 200b9b4: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200b9b8: b4 00 80 1a add %g2, %i2, %i2 200b9bc: f4 20 60 10 st %i2, [ %g1 + 0x10 ] } break; } } _ISR_Enable( level ); 200b9c0: 7f ff de 20 call 2003240 200b9c4: 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; 200b9c8: 10 bf ff f7 b 200b9a4 <_Watchdog_Adjust+0x94> 200b9cc: f4 20 60 10 st %i2, [ %g1 + 0x10 ] 0201a454 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 201a454: 9d e3 bf a0 save %sp, -96, %sp 201a458: 40 00 07 3d call 201c14c <_fini> 201a45c: 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(); 201a460: 7f ff ff e2 call 201a3e8 201a464: 01 00 00 00 nop rtems_shutdown_executive(status); 201a468: 40 00 00 50 call 201a5a8 201a46c: 90 10 00 18 mov %i0, %o0 201a470: 30 80 00 00 b,a 201a470 <_exit+0x1c> <== NOT EXECUTED 0203e210 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 203e210: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 203e214: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 203e218: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 203e21c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 203e220: 7f ff ff 69 call 203dfc4 <== NOT EXECUTED 203e224: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0200e5a8 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 200e5a8: 81 c3 e0 08 retl <== NOT EXECUTED 200e5ac: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 0200b624 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 200b624: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200b628: 7f ff ff e6 call 200b5c0 <== NOT EXECUTED 200b62c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 02029d70 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 2029d70: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2029d74: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2029d78: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029d7c: 7f ff ff 51 call 2029ac0 <== NOT EXECUTED 2029d80: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0202a048 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 202a048: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 202a04c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 202a050: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202a054: 7f ff ff b1 call 2029f18 <== NOT EXECUTED 202a058: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0201a574 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 201a574: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 201a578: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 201a57c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 201a580: 40 00 00 17 call 201a5dc <== NOT EXECUTED 201a584: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0205e614 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 205e614: 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 ); 205e618: 7f fe 9b 16 call 2005270 <== NOT EXECUTED 205e61c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 205e620: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 205e624: 32 80 01 1f bne,a 205eaa0 <_rename_r+0x48c> <== NOT EXECUTED 205e628: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 205e62c: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 205e630: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 205e634: 12 80 00 7b bne 205e820 <_rename_r+0x20c> <== NOT EXECUTED 205e638: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 205e63c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 205e640: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 205e644: a2 10 20 00 clr %l1 <== NOT EXECUTED 205e648: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 205e64c: c4 27 bf d4 st %g2, [ %fp + -44 ] <== NOT EXECUTED 205e650: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED 205e654: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 205e658: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 205e65c: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 205e660: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED 205e664: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 205e668: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 205e66c: 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; 205e670: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; 205e674: 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; 205e678: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED 205e67c: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; 205e680: 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; 205e684: c2 27 bf ec st %g1, [ %fp + -20 ] <== NOT EXECUTED 205e688: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 205e68c: 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; 205e690: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED 205e694: 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 ), 205e698: 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; 205e69c: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED 205e6a0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 205e6a4: 7f ff b3 cd call 204b5d8 <== NOT EXECUTED 205e6a8: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED 205e6ac: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 205e6b0: 7f fe 9a cf call 20051ec <== NOT EXECUTED 205e6b4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e6b8: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 205e6bc: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 205e6c0: 7f ff b3 c6 call 204b5d8 <== NOT EXECUTED 205e6c4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e6c8: 94 10 20 00 clr %o2 <== NOT EXECUTED 205e6cc: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 205e6d0: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 205e6d4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e6d8: 7f fe 9b 03 call 20052e4 <== NOT EXECUTED 205e6dc: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 205e6e0: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED 205e6e4: 12 80 00 9a bne 205e94c <_rename_r+0x338> <== NOT EXECUTED 205e6e8: 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 ); 205e6ec: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED 205e6f0: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 205e6f4: 12 80 00 5d bne 205e868 <_rename_r+0x254> <== NOT EXECUTED 205e6f8: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 205e6fc: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 205e700: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 205e704: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 205e708: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 205e70c: c4 27 bf c0 st %g2, [ %fp + -64 ] <== NOT EXECUTED 205e710: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED 205e714: c4 27 bf c4 st %g2, [ %fp + -60 ] <== NOT EXECUTED 205e718: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED 205e71c: c4 27 bf c8 st %g2, [ %fp + -56 ] <== NOT EXECUTED 205e720: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED 205e724: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED 205e728: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 205e72c: c2 27 bf d0 st %g1, [ %fp + -48 ] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 205e730: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e734: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 205e738: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e73c: 02 80 00 bc be 205ea2c <_rename_r+0x418> <== NOT EXECUTED 205e740: 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 ); 205e744: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 205e748: b4 07 bf c0 add %fp, -64, %i2 <== NOT EXECUTED 205e74c: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e750: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED if ( result != 0 ) { 205e754: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED 205e758: 12 80 00 8d bne 205e98c <_rename_r+0x378> <== NOT EXECUTED 205e75c: 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 ) { 205e760: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED 205e764: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 205e768: 12 80 00 52 bne 205e8b0 <_rename_r+0x29c> <== NOT EXECUTED 205e76c: 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 ) { 205e770: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 205e774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e778: 02 80 00 a7 be 205ea14 <_rename_r+0x400> <== NOT EXECUTED 205e77c: 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 ); 205e780: b2 07 bf d4 add %fp, -44, %i1 <== NOT EXECUTED 205e784: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 205e788: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 205e78c: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e790: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 205e794: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e798: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e79c: 02 80 00 08 be 205e7bc <_rename_r+0x1a8> <== NOT EXECUTED 205e7a0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 205e7a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e7a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e7ac: 02 80 00 05 be 205e7c0 <_rename_r+0x1ac> <== NOT EXECUTED 205e7b0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e7b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e7b8: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e7bc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e7c0: 02 80 00 0d be 205e7f4 <_rename_r+0x1e0> <== NOT EXECUTED 205e7c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e7c8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e7cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e7d0: 22 80 00 09 be,a 205e7f4 <_rename_r+0x1e0> <== NOT EXECUTED 205e7d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e7d8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e7dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e7e0: 22 80 00 05 be,a 205e7f4 <_rename_r+0x1e0> <== NOT EXECUTED 205e7e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e7e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e7ec: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e7f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e7f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e7f8: 02 80 00 b3 be 205eac4 <_rename_r+0x4b0> <== NOT EXECUTED 205e7fc: 01 00 00 00 nop <== NOT EXECUTED 205e800: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e804: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e808: 02 80 00 af be 205eac4 <_rename_r+0x4b0> <== NOT EXECUTED 205e80c: 01 00 00 00 nop <== NOT EXECUTED 205e810: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e814: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 205e818: 81 c7 e0 08 ret <== NOT EXECUTED 205e81c: 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 ); 205e820: 22 bf ff 88 be,a 205e640 <_rename_r+0x2c> <== NOT EXECUTED 205e824: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 205e828: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e82c: 02 bf ff 85 be 205e640 <_rename_r+0x2c> <== NOT EXECUTED 205e830: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 205e834: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 205e838: a2 10 20 00 clr %l1 <== NOT EXECUTED 205e83c: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 205e840: c4 27 bf d4 st %g2, [ %fp + -44 ] <== NOT EXECUTED 205e844: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 205e848: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 205e84c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 205e850: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 205e854: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 205e858: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 205e85c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 205e860: 10 bf ff 84 b 205e670 <_rename_r+0x5c> <== NOT EXECUTED 205e864: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 205e868: 22 bf ff a6 be,a 205e700 <_rename_r+0xec> <== NOT EXECUTED 205e86c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 205e870: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e874: 02 bf ff a3 be 205e700 <_rename_r+0xec> <== NOT EXECUTED 205e878: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 205e87c: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 205e880: 90 10 20 00 clr %o0 <== NOT EXECUTED 205e884: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 205e888: c4 27 bf c0 st %g2, [ %fp + -64 ] <== NOT EXECUTED 205e88c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 205e890: c4 27 bf c4 st %g2, [ %fp + -60 ] <== NOT EXECUTED 205e894: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 205e898: c4 27 bf c8 st %g2, [ %fp + -56 ] <== NOT EXECUTED 205e89c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 205e8a0: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED 205e8a4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 205e8a8: 10 bf ff a2 b 205e730 <_rename_r+0x11c> <== NOT EXECUTED 205e8ac: c2 27 bf d0 st %g1, [ %fp + -48 ] <== 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 ); 205e8b0: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e8b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e8b8: 02 80 00 09 be 205e8dc <_rename_r+0x2c8> <== NOT EXECUTED 205e8bc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e8c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e8c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e8c8: 02 80 00 05 be 205e8dc <_rename_r+0x2c8> <== NOT EXECUTED 205e8cc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e8d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e8d4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e8d8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e8dc: 02 80 00 0d be 205e910 <_rename_r+0x2fc> <== NOT EXECUTED 205e8e0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e8e4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e8e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e8ec: 22 80 00 09 be,a 205e910 <_rename_r+0x2fc> <== NOT EXECUTED 205e8f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e8f4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e8f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e8fc: 22 80 00 05 be,a 205e910 <_rename_r+0x2fc> <== NOT EXECUTED 205e900: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e904: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e908: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e90c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e910: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e914: 02 80 00 08 be 205e934 <_rename_r+0x320> <== NOT EXECUTED 205e918: 01 00 00 00 nop <== NOT EXECUTED 205e91c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e920: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e924: 02 80 00 04 be 205e934 <_rename_r+0x320> <== NOT EXECUTED 205e928: 01 00 00 00 nop <== NOT EXECUTED 205e92c: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e930: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 205e934: 7f ff 97 e3 call 20448c0 <__errno> <== NOT EXECUTED 205e938: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205e93c: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED 205e940: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205e944: 81 c7 e0 08 ret <== NOT EXECUTED 205e948: 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 ) 205e94c: 02 80 00 0b be 205e978 <_rename_r+0x364> <== NOT EXECUTED 205e950: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e954: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e958: 02 80 00 08 be 205e978 <_rename_r+0x364> <== NOT EXECUTED 205e95c: 01 00 00 00 nop <== NOT EXECUTED 205e960: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e964: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e968: 02 80 00 04 be 205e978 <_rename_r+0x364> <== NOT EXECUTED 205e96c: 01 00 00 00 nop <== NOT EXECUTED 205e970: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e974: 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 ); 205e978: 7f ff 97 d2 call 20448c0 <__errno> <== NOT EXECUTED 205e97c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205e980: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED 205e984: 81 c7 e0 08 ret <== NOT EXECUTED 205e988: 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 ); 205e98c: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205e990: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e994: 02 80 00 09 be 205e9b8 <_rename_r+0x3a4> <== NOT EXECUTED 205e998: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e99c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e9a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e9a4: 02 80 00 05 be 205e9b8 <_rename_r+0x3a4> <== NOT EXECUTED 205e9a8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e9ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e9b0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205e9b4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205e9b8: 02 80 00 0d be 205e9ec <_rename_r+0x3d8> <== NOT EXECUTED 205e9bc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205e9c0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205e9c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e9c8: 22 80 00 09 be,a 205e9ec <_rename_r+0x3d8> <== NOT EXECUTED 205e9cc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e9d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e9d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e9d8: 22 80 00 05 be,a 205e9ec <_rename_r+0x3d8> <== NOT EXECUTED 205e9dc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e9e0: 9f c0 40 00 call %g1 <== NOT EXECUTED 205e9e4: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205e9e8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205e9ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205e9f0: 02 bf ff e2 be 205e978 <_rename_r+0x364> <== NOT EXECUTED 205e9f4: 01 00 00 00 nop <== NOT EXECUTED 205e9f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205e9fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205ea00: 02 bf ff de be 205e978 <_rename_r+0x364> <== NOT EXECUTED 205ea04: 01 00 00 00 nop <== NOT EXECUTED 205ea08: 9f c0 40 00 call %g1 <== NOT EXECUTED 205ea0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 205ea10: 30 bf ff da b,a 205e978 <_rename_r+0x364> <== 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 ); 205ea14: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 205ea18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205ea1c: 02 80 00 05 be 205ea30 <_rename_r+0x41c> <== NOT EXECUTED 205ea20: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205ea24: 9f c0 40 00 call %g1 <== NOT EXECUTED 205ea28: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205ea2c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205ea30: 02 80 00 0d be 205ea64 <_rename_r+0x450> <== NOT EXECUTED 205ea34: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205ea38: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205ea3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205ea40: 22 80 00 09 be,a 205ea64 <_rename_r+0x450> <== NOT EXECUTED 205ea44: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205ea48: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205ea4c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205ea50: 22 80 00 05 be,a 205ea64 <_rename_r+0x450> <== NOT EXECUTED 205ea54: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205ea58: 9f c0 40 00 call %g1 <== NOT EXECUTED 205ea5c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205ea60: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205ea64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205ea68: 02 80 00 08 be 205ea88 <_rename_r+0x474> <== NOT EXECUTED 205ea6c: 01 00 00 00 nop <== NOT EXECUTED 205ea70: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205ea74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205ea78: 02 80 00 04 be 205ea88 <_rename_r+0x474> <== NOT EXECUTED 205ea7c: 01 00 00 00 nop <== NOT EXECUTED 205ea80: 9f c0 40 00 call %g1 <== NOT EXECUTED 205ea84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 205ea88: 7f ff 97 8e call 20448c0 <__errno> <== NOT EXECUTED 205ea8c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205ea90: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 205ea94: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205ea98: 81 c7 e0 08 ret <== NOT EXECUTED 205ea9c: 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, 205eaa0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 205eaa4: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 205eaa8: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 205eaac: 98 10 20 00 clr %o4 <== NOT EXECUTED 205eab0: 7f fe 9a 4e call 20053e8 <== NOT EXECUTED 205eab4: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 205eab8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 205eabc: 02 bf fe ed be 205e670 <_rename_r+0x5c> <== NOT EXECUTED 205eac0: 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; } 205eac4: 81 c7 e0 08 ret <== NOT EXECUTED 205eac8: 81 e8 00 00 restore <== NOT EXECUTED 02006c58 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2006c58: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2006c5c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2006c60: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2006c64: 7f ff ff b1 call 2006b28 <== NOT EXECUTED 2006c68: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0200f700 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200f700: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200f704: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200f708: 7f ff ff 42 call 200f410 <== NOT EXECUTED 200f70c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 02028588 : #include int chdir( const char *pathname ) { 2028588: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if ( !pathname ) 202858c: 80 a6 20 00 cmp %i0, 0 2028590: 02 80 00 31 be 2028654 2028594: 01 00 00 00 nop /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 2028598: 40 00 8c 10 call 204b5d8 202859c: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 20285a0: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 20285a4: 92 10 00 08 mov %o0, %o1 rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 20285a8: 94 10 20 01 mov 1, %o2 20285ac: 90 10 00 18 mov %i0, %o0 20285b0: 96 10 00 10 mov %l0, %o3 20285b4: 98 10 20 01 mov 1, %o4 20285b8: 7f ff 73 8c call 20053e8 20285bc: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 20285c0: 80 a2 20 00 cmp %o0, 0 20285c4: 12 80 00 28 bne 2028664 20285c8: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 20285cc: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20285d0: 80 a0 60 00 cmp %g1, 0 20285d4: 22 80 00 35 be,a 20286a8 20285d8: 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 ) { 20285dc: 9f c0 40 00 call %g1 20285e0: 90 10 00 10 mov %l0, %o0 20285e4: 80 a2 20 01 cmp %o0, 1 20285e8: 12 80 00 21 bne 202866c 20285ec: 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 ); 20285f0: 21 00 81 aa sethi %hi(0x206a800), %l0 20285f4: d0 04 21 c0 ld [ %l0 + 0x1c0 ], %o0 ! 206a9c0 20285f8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 20285fc: 80 a0 60 00 cmp %g1, 0 2028600: 22 80 00 0a be,a 2028628 2028604: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2028608: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202860c: 80 a0 60 00 cmp %g1, 0 2028610: 22 80 00 06 be,a 2028628 2028614: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2028618: 9f c0 40 00 call %g1 202861c: 90 02 20 04 add %o0, 4, %o0 2028620: d0 04 21 c0 ld [ %l0 + 0x1c0 ], %o0 rtems_filesystem_current = loc; 2028624: c2 07 bf ec ld [ %fp + -20 ], %g1 2028628: c2 22 20 04 st %g1, [ %o0 + 4 ] 202862c: c2 07 bf f0 ld [ %fp + -16 ], %g1 2028630: c2 22 20 08 st %g1, [ %o0 + 8 ] 2028634: c2 07 bf f4 ld [ %fp + -12 ], %g1 2028638: c2 22 20 0c st %g1, [ %o0 + 0xc ] 202863c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028640: c2 22 20 10 st %g1, [ %o0 + 0x10 ] 2028644: c2 07 bf fc ld [ %fp + -4 ], %g1 2028648: c2 22 20 14 st %g1, [ %o0 + 0x14 ] return 0; } 202864c: 81 c7 e0 08 ret 2028650: 91 e8 20 00 restore %g0, 0, %o0 { rtems_filesystem_location_info_t loc; int result; if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 2028654: 40 00 70 9b call 20448c0 <__errno> 2028658: b0 10 3f ff mov -1, %i0 202865c: 82 10 20 0e mov 0xe, %g1 2028660: c2 22 00 00 st %g1, [ %o0 ] 2028664: 81 c7 e0 08 ret 2028668: 81 e8 00 00 restore 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 ); 202866c: 80 a0 60 00 cmp %g1, 0 2028670: 02 80 00 08 be 2028690 2028674: 01 00 00 00 nop 2028678: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202867c: 80 a0 60 00 cmp %g1, 0 2028680: 02 80 00 04 be 2028690 2028684: 01 00 00 00 nop 2028688: 9f c0 40 00 call %g1 202868c: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2028690: 40 00 70 8c call 20448c0 <__errno> 2028694: b0 10 3f ff mov -1, %i0 2028698: 82 10 20 14 mov 0x14, %g1 202869c: c2 22 00 00 st %g1, [ %o0 ] 20286a0: 81 c7 e0 08 ret 20286a4: 81 e8 00 00 restore /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 20286a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20286ac: 02 80 00 04 be 20286bc <== NOT EXECUTED 20286b0: 01 00 00 00 nop <== NOT EXECUTED 20286b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20286b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20286bc: 40 00 70 81 call 20448c0 <__errno> <== NOT EXECUTED 20286c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20286c4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20286c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20286cc: 81 c7 e0 08 ret <== NOT EXECUTED 20286d0: 81 e8 00 00 restore <== NOT EXECUTED 02005024 : int chmod( const char *path, mode_t mode ) { 2005024: 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 ); 2005028: 40 01 19 6c call 204b5d8 200502c: 90 10 00 18 mov %i0, %o0 2005030: a0 07 bf ec add %fp, -20, %l0 2005034: 92 10 00 08 mov %o0, %o1 2005038: 94 10 20 00 clr %o2 200503c: 90 10 00 18 mov %i0, %o0 2005040: 96 10 00 10 mov %l0, %o3 2005044: 98 10 20 01 mov 1, %o4 2005048: 40 00 00 e8 call 20053e8 200504c: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 2005050: 80 a2 20 00 cmp %o0, 0 2005054: 12 80 00 15 bne 20050a8 2005058: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 200505c: 80 a0 60 00 cmp %g1, 0 2005060: 22 80 00 24 be,a 20050f0 2005064: 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 ){ 2005068: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200506c: 80 a0 60 00 cmp %g1, 0 2005070: 02 80 00 10 be 20050b0 2005074: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 2005078: 9f c0 40 00 call %g1 200507c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2005080: c2 07 bf f8 ld [ %fp + -8 ], %g1 2005084: 80 a0 60 00 cmp %g1, 0 2005088: 02 80 00 08 be 20050a8 200508c: b0 10 00 08 mov %o0, %i0 2005090: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2005094: 80 a0 60 00 cmp %g1, 0 2005098: 02 80 00 23 be 2005124 200509c: 01 00 00 00 nop 20050a0: 9f c0 40 00 call %g1 20050a4: 90 10 00 10 mov %l0, %o0 return result; } 20050a8: 81 c7 e0 08 ret 20050ac: 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 ); 20050b0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20050b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20050b8: 02 80 00 08 be 20050d8 <== NOT EXECUTED 20050bc: 01 00 00 00 nop <== NOT EXECUTED 20050c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20050c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20050c8: 02 80 00 04 be 20050d8 <== NOT EXECUTED 20050cc: 01 00 00 00 nop <== NOT EXECUTED 20050d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20050d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20050d8: 40 00 fd fa call 20448c0 <__errno> <== NOT EXECUTED 20050dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20050e0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20050e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20050e8: 81 c7 e0 08 ret <== NOT EXECUTED 20050ec: 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 ); 20050f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20050f4: 02 80 00 08 be 2005114 <== NOT EXECUTED 20050f8: 01 00 00 00 nop <== NOT EXECUTED 20050fc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005100: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005104: 02 80 00 04 be 2005114 <== NOT EXECUTED 2005108: 01 00 00 00 nop <== NOT EXECUTED 200510c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005110: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2005114: 40 00 fd eb call 20448c0 <__errno> <== NOT EXECUTED 2005118: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200511c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2005120: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005124: 81 c7 e0 08 ret <== NOT EXECUTED 2005128: 81 e8 00 00 restore <== NOT EXECUTED 020286d4 : int chown( const char *path, uid_t owner, gid_t group ) { 20286d4: 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 ) ) 20286d8: 40 00 8b c0 call 204b5d8 20286dc: 90 10 00 18 mov %i0, %o0 20286e0: a0 07 bf ec add %fp, -20, %l0 20286e4: 92 10 00 08 mov %o0, %o1 20286e8: 94 10 20 00 clr %o2 20286ec: 90 10 00 18 mov %i0, %o0 20286f0: 96 10 00 10 mov %l0, %o3 20286f4: 98 10 20 01 mov 1, %o4 20286f8: 7f ff 73 3c call 20053e8 20286fc: b0 10 3f ff mov -1, %i0 2028700: 80 a2 20 00 cmp %o0, 0 2028704: 12 80 00 15 bne 2028758 2028708: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 202870c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 2028710: 80 a0 60 00 cmp %g1, 0 2028714: 02 80 00 13 be 2028760 2028718: 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 ); 202871c: 95 2e a0 10 sll %i2, 0x10, %o2 2028720: 93 32 60 10 srl %o1, 0x10, %o1 2028724: 95 32 a0 10 srl %o2, 0x10, %o2 2028728: 9f c0 40 00 call %g1 202872c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2028730: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028734: 80 a0 60 00 cmp %g1, 0 2028738: 02 80 00 08 be 2028758 202873c: b0 10 00 08 mov %o0, %i0 2028740: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2028744: 80 a0 60 00 cmp %g1, 0 2028748: 02 80 00 10 be 2028788 202874c: 01 00 00 00 nop 2028750: 9f c0 40 00 call %g1 2028754: 90 10 00 10 mov %l0, %o0 return result; } 2028758: 81 c7 e0 08 ret 202875c: 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 ); 2028760: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2028764: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028768: 02 80 00 04 be 2028778 <== NOT EXECUTED 202876c: 01 00 00 00 nop <== NOT EXECUTED 2028770: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028774: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028778: 40 00 70 52 call 20448c0 <__errno> <== NOT EXECUTED 202877c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028780: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028784: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028788: 81 c7 e0 08 ret <== NOT EXECUTED 202878c: 81 e8 00 00 restore <== NOT EXECUTED 02028790 : #include int chroot( const char *pathname ) { 2028790: 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) { 2028794: 21 00 81 aa sethi %hi(0x206a800), %l0 2028798: e2 04 21 c0 ld [ %l0 + 0x1c0 ], %l1 ! 206a9c0 202879c: 03 00 81 ba sethi %hi(0x206e800), %g1 20287a0: 82 10 60 a8 or %g1, 0xa8, %g1 ! 206e8a8 20287a4: 80 a4 40 01 cmp %l1, %g1 20287a8: 02 80 00 28 be 2028848 20287ac: 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); 20287b0: 7f ff ff 76 call 2028588 20287b4: 90 10 00 18 mov %i0, %o0 if (result) { 20287b8: 80 a2 20 00 cmp %o0, 0 20287bc: 12 80 00 2f bne 2028878 20287c0: 11 00 81 91 sethi %hi(0x2064400), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 20287c4: 92 10 20 01 mov 1, %o1 20287c8: 90 12 23 68 or %o0, 0x368, %o0 20287cc: 94 10 20 00 clr %o2 20287d0: 96 07 bf ec add %fp, -20, %o3 20287d4: 7f ff 73 05 call 20053e8 20287d8: 98 10 20 00 clr %o4 20287dc: 80 a2 20 00 cmp %o0, 0 20287e0: 12 80 00 26 bne 2028878 20287e4: d0 04 21 c0 ld [ %l0 + 0x1c0 ], %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); 20287e8: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 20287ec: 80 a0 60 00 cmp %g1, 0 20287f0: 22 80 00 0b be,a 202881c 20287f4: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 20287f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20287fc: 80 a0 60 00 cmp %g1, 0 2028800: 22 80 00 07 be,a 202881c 2028804: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED 2028808: 9f c0 40 00 call %g1 202880c: 90 02 20 18 add %o0, 0x18, %o0 2028810: 03 00 81 aa sethi %hi(0x206a800), %g1 2028814: d0 00 61 c0 ld [ %g1 + 0x1c0 ], %o0 ! 206a9c0 rtems_filesystem_root = loc; 2028818: c2 07 bf ec ld [ %fp + -20 ], %g1 202881c: c2 22 20 18 st %g1, [ %o0 + 0x18 ] 2028820: c2 07 bf f0 ld [ %fp + -16 ], %g1 2028824: c2 22 20 1c st %g1, [ %o0 + 0x1c ] 2028828: c2 07 bf f4 ld [ %fp + -12 ], %g1 202882c: c2 22 20 20 st %g1, [ %o0 + 0x20 ] 2028830: c2 07 bf f8 ld [ %fp + -8 ], %g1 2028834: c2 22 20 24 st %g1, [ %o0 + 0x24 ] 2028838: c2 07 bf fc ld [ %fp + -4 ], %g1 202883c: c2 22 20 28 st %g1, [ %o0 + 0x28 ] return 0; } 2028840: 81 c7 e0 08 ret 2028844: 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*/ 2028848: 40 00 06 d3 call 202a394 202884c: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 2028850: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 2028854: 80 a0 40 11 cmp %g1, %l1 2028858: 12 bf ff d6 bne 20287b0 202885c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028860: 40 00 70 18 call 20448c0 <__errno> <== NOT EXECUTED 2028864: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2028868: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202886c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028870: 81 c7 e0 08 ret <== NOT EXECUTED 2028874: 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 ); 2028878: 40 00 70 12 call 20448c0 <__errno> <== NOT EXECUTED 202887c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028880: 40 00 70 10 call 20448c0 <__errno> <== NOT EXECUTED 2028884: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2028888: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202888c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2028890: 81 c7 e0 08 ret <== NOT EXECUTED 2028894: 81 e8 00 00 restore <== NOT EXECUTED 0200a118 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 200a118: 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; 200a11c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 200a120: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200a124: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200a128: d2 00 60 0c ld [ %g1 + 0xc ], %o1 200a12c: 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; 200a130: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 200a134: 94 07 bf f4 add %fp, -12, %o2 200a138: 40 00 05 c1 call 200b83c 200a13c: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 200a140: 80 a2 20 00 cmp %o0, 0 200a144: 12 80 00 04 bne 200a154 200a148: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 200a14c: 81 c7 e0 08 ret 200a150: 81 e8 00 00 restore np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 200a154: 40 00 00 3f call 200a250 <== NOT EXECUTED 200a158: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 200a15c: 81 c7 e0 08 ret <== NOT EXECUTED 200a160: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200a170 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 200a170: 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; 200a174: e0 06 c0 00 ld [ %i3 ], %l0 if (!device_name_table) 200a178: 80 a4 20 00 cmp %l0, 0 200a17c: 02 80 00 2f be 200a238 200a180: 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++) { 200a184: e6 00 62 08 ld [ %g1 + 0x208 ], %l3 ! 2010a08 } /* 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 ); 200a188: a2 10 20 00 clr %l1 for (i = 0; i < rtems_device_table_size; i++) { 200a18c: 80 a4 e0 00 cmp %l3, 0 200a190: 02 80 00 18 be 200a1f0 200a194: 82 10 20 00 clr %g1 if (!device_name_table[i].device_name) 200a198: 85 28 60 04 sll %g1, 4, %g2 200a19c: a9 28 60 02 sll %g1, 2, %l4 200a1a0: a8 05 00 02 add %l4, %g2, %l4 200a1a4: 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++) { 200a1a8: a2 04 60 01 inc %l1 if (!device_name_table[i].device_name) 200a1ac: 80 a4 a0 00 cmp %l2, 0 200a1b0: 02 80 00 0d be 200a1e4 200a1b4: a8 04 00 14 add %l0, %l4, %l4 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 200a1b8: 90 10 00 18 mov %i0, %o0 200a1bc: 92 10 00 12 mov %l2, %o1 200a1c0: 40 00 0e bd call 200dcb4 200a1c4: 94 10 00 19 mov %i1, %o2 200a1c8: 80 a2 20 00 cmp %o0, 0 200a1cc: 12 80 00 07 bne 200a1e8 200a1d0: 80 a4 c0 11 cmp %l3, %l1 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 200a1d4: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 200a1d8: 80 a0 60 00 cmp %g1, 0 200a1dc: 02 80 00 0b be 200a208 200a1e0: 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++) { 200a1e4: 80 a4 c0 11 cmp %l3, %l1 200a1e8: 18 bf ff ec bgu 200a198 200a1ec: 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 ); 200a1f0: 40 00 0b 10 call 200ce30 <__errno> 200a1f4: b0 10 3f ff mov -1, %i0 200a1f8: 82 10 20 02 mov 2, %g1 200a1fc: c2 22 00 00 st %g1, [ %o0 ] } 200a200: 81 c7 e0 08 ret 200a204: 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; 200a208: c2 00 60 2c ld [ %g1 + 0x2c ], %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]; 200a20c: e8 26 c0 00 st %l4, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 200a210: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200a214: 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; 200a218: 03 00 80 42 sethi %hi(0x2010800), %g1 200a21c: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 2010be0 200a220: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 200a224: 03 00 80 42 sethi %hi(0x2010800), %g1 200a228: 82 10 63 98 or %g1, 0x398, %g1 ! 2010b98 200a22c: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 200a230: 81 c7 e0 08 ret 200a234: 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 ); 200a238: 40 00 0a fe call 200ce30 <__errno> <== NOT EXECUTED 200a23c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a240: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200a244: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a248: 81 c7 e0 08 ret <== NOT EXECUTED 200a24c: 81 e8 00 00 restore <== NOT EXECUTED 020020f0 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 20020f0: 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( 20020f4: 23 00 80 42 sethi %hi(0x2010800), %l1 20020f8: c2 04 62 08 ld [ %l1 + 0x208 ], %g1 ! 2010a08 20020fc: 85 28 60 04 sll %g1, 4, %g2 2002100: 83 28 60 02 sll %g1, 2, %g1 2002104: 40 00 1e 35 call 20099d8 <_Workspace_Allocate> 2002108: 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) 200210c: a0 92 20 00 orcc %o0, 0, %l0 2002110: 02 80 00 10 be 2002150 2002114: c2 04 62 08 ld [ %l1 + 0x208 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 2002118: 92 10 20 00 clr %o1 200211c: 85 28 60 04 sll %g1, 4, %g2 2002120: 83 28 60 02 sll %g1, 2, %g1 2002124: 40 00 2d a4 call 200d7b4 2002128: 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; 200212c: 03 00 80 42 sethi %hi(0x2010800), %g1 2002130: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 2010be0 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; 2002134: 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; 2002138: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 200213c: 03 00 80 42 sethi %hi(0x2010800), %g1 2002140: 82 10 63 98 or %g1, 0x398, %g1 ! 2010b98 2002144: 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; } 2002148: 81 c7 e0 08 ret 200214c: 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 ); 2002150: 40 00 2b 38 call 200ce30 <__errno> <== NOT EXECUTED 2002154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002158: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200215c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002160: 81 c7 e0 08 ret <== NOT EXECUTED 2002164: 81 e8 00 00 restore <== NOT EXECUTED 02002314 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2002314: 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; 2002318: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 200231c: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 2002320: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2002324: 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; 2002328: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 200232c: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 2002330: 40 00 11 32 call 20067f8 2002334: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2002338: 80 a2 20 00 cmp %o0, 0 200233c: 12 80 00 05 bne 2002350 2002340: 01 00 00 00 nop return rtems_deviceio_errno(status); return args.ioctl_return; 2002344: f0 07 bf fc ld [ %fp + -4 ], %i0 } 2002348: 81 c7 e0 08 ret 200234c: 81 e8 00 00 restore np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2002350: 40 00 1f c0 call 200a250 <== NOT EXECUTED 2002354: 01 00 00 00 nop <== NOT EXECUTED 2002358: 81 c7 e0 08 ret <== NOT EXECUTED 200235c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02002168 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2002168: 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') && 200216c: c2 4e 00 00 ldsb [ %i0 ], %g1 2002170: 80 a0 60 64 cmp %g1, 0x64 2002174: 02 80 00 43 be 2002280 2002178: a0 10 00 18 mov %i0, %l0 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 200217c: 03 00 00 3c sethi %hi(0xf000), %g1 2002180: 05 00 00 08 sethi %hi(0x2000), %g2 2002184: 82 0e 40 01 and %i1, %g1, %g1 2002188: 80 a0 40 02 cmp %g1, %g2 200218c: 12 80 00 4b bne 20022b8 2002190: 05 00 00 18 sethi %hi(0x6000), %g2 rtems_set_errno_and_return_minus_one( EINVAL ); else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 2002194: e4 07 00 00 ld [ %i4 ], %l2 if (!device_name_table) 2002198: 80 a4 a0 00 cmp %l2, 0 200219c: 02 80 00 56 be 20022f4 20021a0: 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++){ 20021a4: e6 00 62 08 ld [ %g1 + 0x208 ], %l3 ! 2010a08 20021a8: 80 a4 e0 00 cmp %l3, 0 20021ac: 02 80 00 4c be 20022dc 20021b0: 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 ); 20021b4: a8 10 3f ff mov -1, %l4 20021b8: 10 80 00 0a b 20021e0 20021bc: 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) 20021c0: 40 00 2e 37 call 200da9c 20021c4: 01 00 00 00 nop 20021c8: 80 a2 20 00 cmp %o0, 0 20021cc: 02 80 00 27 be 2002268 20021d0: 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++){ 20021d4: 80 a4 40 13 cmp %l1, %l3 20021d8: 1a 80 00 0e bcc 2002210 20021dc: 82 10 00 11 mov %l1, %g1 if (device_name_table[i].device_name == NULL) 20021e0: 85 28 60 04 sll %g1, 4, %g2 20021e4: 83 28 60 02 sll %g1, 2, %g1 20021e8: 82 00 40 02 add %g1, %g2, %g1 20021ec: d2 04 80 01 ld [ %l2 + %g1 ], %o1 20021f0: 80 a2 60 00 cmp %o1, 0 20021f4: 12 bf ff f3 bne 20021c0 20021f8: 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 ); 20021fc: 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++){ 2002200: a2 04 60 01 inc %l1 2002204: 80 a4 40 13 cmp %l1, %l3 2002208: 0a bf ff f6 bcs 20021e0 200220c: 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) 2002210: 80 a5 3f ff cmp %l4, -1 2002214: 02 80 00 32 be 20022dc 2002218: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); 200221c: 7f ff ff ad call 20020d0 2002220: 01 00 00 00 nop 2002224: a2 10 00 08 mov %o0, %l1 device_name_table[slot].device_name = (char *)path; 2002228: 83 2d 20 04 sll %l4, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 200222c: 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; 2002230: a9 2d 20 02 sll %l4, 2, %l4 2002234: a8 05 00 01 add %l4, %g1, %l4 2002238: e0 24 80 14 st %l0, [ %l2 + %l4 ] device_name_table[slot].device_name_length = strlen(path); 200223c: 40 00 2e 69 call 200dbe0 2002240: 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; 2002244: f2 24 a0 10 st %i1, [ %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); 2002248: d0 24 a0 04 st %o0, [ %l2 + 4 ] device_name_table[slot].major = major; 200224c: f4 24 a0 08 st %i2, [ %l2 + 8 ] device_name_table[slot].minor = minor; 2002250: f6 24 a0 0c st %i3, [ %l2 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 2002254: b0 10 20 00 clr %i0 2002258: 7f ff ff a2 call 20020e0 200225c: 90 10 00 11 mov %l1, %o0 return 0; } 2002260: 81 c7 e0 08 ret 2002264: 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 ); 2002268: 40 00 2a f2 call 200ce30 <__errno> <== NOT EXECUTED 200226c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002270: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED 2002274: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002278: 81 c7 e0 08 ret <== NOT EXECUTED 200227c: 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') && 2002280: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 2002284: 80 a0 60 65 cmp %g1, 0x65 2002288: 12 bf ff be bne 2002180 200228c: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 2002290: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 2002294: 80 a0 60 76 cmp %g1, 0x76 2002298: 12 bf ff ba bne 2002180 200229c: 03 00 00 3c sethi %hi(0xf000), %g1 20022a0: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 20022a4: 80 a0 60 00 cmp %g1, 0 20022a8: 12 bf ff b5 bne 200217c 20022ac: b0 10 20 00 clr %i0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 20022b0: 81 c7 e0 08 ret 20022b4: 81 e8 00 00 restore if ((path[0] == 'd') && (path[1] == 'e') && (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 20022b8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20022bc: 22 bf ff b7 be,a 2002198 <== NOT EXECUTED 20022c0: e4 07 00 00 ld [ %i4 ], %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 20022c4: 40 00 2a db call 200ce30 <__errno> <== NOT EXECUTED 20022c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20022cc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20022d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20022d4: 81 c7 e0 08 ret <== NOT EXECUTED 20022d8: 81 e8 00 00 restore <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); 20022dc: 40 00 2a d5 call 200ce30 <__errno> <== NOT EXECUTED 20022e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20022e4: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 20022e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20022ec: 81 c7 e0 08 ret <== NOT EXECUTED 20022f0: 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 ); 20022f4: 40 00 2a cf call 200ce30 <__errno> <== NOT EXECUTED 20022f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20022fc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002300: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002304: 81 c7 e0 08 ret <== NOT EXECUTED 2002308: 81 e8 00 00 restore <== NOT EXECUTED 02002360 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2002360: 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; 2002364: 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; 2002368: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 200236c: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 2002370: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 2002374: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2002378: 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; 200237c: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 2002380: 94 07 bf f4 add %fp, -12, %o2 2002384: 40 00 11 7a call 200696c 2002388: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 200238c: 80 a2 20 00 cmp %o0, 0 2002390: 12 80 00 04 bne 20023a0 2002394: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 2002398: 81 c7 e0 08 ret 200239c: 81 e8 00 00 restore np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 20023a0: 40 00 1f ac call 200a250 <== NOT EXECUTED 20023a4: 01 00 00 00 nop <== NOT EXECUTED return 0; } 20023a8: 81 c7 e0 08 ret <== NOT EXECUTED 20023ac: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020023b0 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 20023b0: 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; 20023b4: 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; 20023b8: 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; 20023bc: 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; 20023c0: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 20023c4: 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; 20023c8: 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( 20023cc: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 20023d0: 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; 20023d4: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 20023d8: 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; 20023dc: 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( 20023e0: 40 00 11 7b call 20069cc <== NOT EXECUTED 20023e4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 20023e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20023ec: 12 80 00 05 bne 2002400 <== NOT EXECUTED 20023f0: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 20023f4: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED } 20023f8: 81 c7 e0 08 ret <== NOT EXECUTED 20023fc: 81 e8 00 00 restore <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 2002400: 40 00 1f 94 call 200a250 <== NOT EXECUTED 2002404: 01 00 00 00 nop <== NOT EXECUTED 2002408: 81 c7 e0 08 ret <== NOT EXECUTED 200240c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02002410 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2002410: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 2002414: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 2002418: 80 a0 60 00 cmp %g1, 0 200241c: 02 80 00 0a be 2002444 2002420: 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 ); 2002424: c4 00 60 0c ld [ %g1 + 0xc ], %g2 buf->st_mode = the_dev->mode; 2002428: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200242c: c2 00 60 08 ld [ %g1 + 8 ], %g1 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 ); 2002430: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; 2002434: c6 26 60 0c st %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 ); 2002438: c2 26 60 18 st %g1, [ %i1 + 0x18 ] buf->st_mode = the_dev->mode; return 0; } 200243c: 81 c7 e0 08 ret 2002440: 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 ); 2002444: 40 00 2a 7b call 200ce30 <__errno> <== NOT EXECUTED 2002448: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200244c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002450: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002454: 81 c7 e0 08 ret <== NOT EXECUTED 2002458: 81 e8 00 00 restore <== NOT EXECUTED 0200245c : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200245c: 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; 2002460: 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; 2002464: 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; 2002468: 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; 200246c: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 2002470: 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; 2002474: 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( 2002478: d2 00 60 0c ld [ %g1 + 0xc ], %o1 200247c: 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; 2002480: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 2002484: 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; 2002488: 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( 200248c: 40 00 11 68 call 2006a2c 2002490: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2002494: 80 a2 20 00 cmp %o0, 0 2002498: 12 80 00 05 bne 20024ac 200249c: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 20024a0: f0 07 bf fc ld [ %fp + -4 ], %i0 } 20024a4: 81 c7 e0 08 ret 20024a8: 81 e8 00 00 restore np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 20024ac: 40 00 1f 69 call 200a250 <== NOT EXECUTED 20024b0: 01 00 00 00 nop <== NOT EXECUTED 20024b4: 81 c7 e0 08 ret <== NOT EXECUTED 20024b8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d74c : */ int device_close( rtems_libio_t *iop ) { 200d74c: 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; 200d750: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200d754: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200d758: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200d75c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200d760: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d764: 94 07 bf f4 add %fp, -12, %o2 200d768: 40 00 05 6f call 200ed24 200d76c: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200d770: 80 a2 20 00 cmp %o0, 0 200d774: 12 80 00 04 bne 200d784 200d778: 01 00 00 00 nop return rtems_deviceio_errno(status); } return 0; } 200d77c: 81 c7 e0 08 ret 200d780: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 200d784: 40 00 07 04 call 200f394 <== NOT EXECUTED 200d788: 01 00 00 00 nop <== NOT EXECUTED } return 0; } 200d78c: 81 c7 e0 08 ret <== NOT EXECUTED 200d790: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d64c : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200d64c: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200d650: 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; 200d654: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200d658: 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; 200d65c: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200d660: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d664: 40 00 05 c8 call 200ed84 200d668: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d66c: 80 a2 20 00 cmp %o0, 0 200d670: 12 80 00 05 bne 200d684 200d674: 01 00 00 00 nop return rtems_deviceio_errno(status); return args.ioctl_return; 200d678: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200d67c: 81 c7 e0 08 ret 200d680: 81 e8 00 00 restore the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d684: 40 00 07 44 call 200f394 <== NOT EXECUTED 200d688: 01 00 00 00 nop <== NOT EXECUTED 200d68c: 81 c7 e0 08 ret <== NOT EXECUTED 200d690: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d794 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200d794: 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; 200d798: 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; 200d79c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200d7a0: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200d7a4: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200d7a8: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200d7ac: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d7b0: 94 07 bf f4 add %fp, -12, %o2 200d7b4: 40 00 05 8c call 200ede4 200d7b8: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d7bc: 80 a2 20 00 cmp %o0, 0 200d7c0: 12 80 00 04 bne 200d7d0 200d7c4: 01 00 00 00 nop return rtems_deviceio_errno(status); return 0; } 200d7c8: 81 c7 e0 08 ret 200d7cc: 81 e8 00 00 restore the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d7d0: 40 00 06 f1 call 200f394 <== NOT EXECUTED 200d7d4: 01 00 00 00 nop <== NOT EXECUTED return 0; } 200d7d8: 81 c7 e0 08 ret <== NOT EXECUTED 200d7dc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d6f0 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200d6f0: 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; 200d6f4: 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; 200d6f8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 200d6fc: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 200d700: 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; 200d704: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200d708: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 200d70c: 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; 200d710: 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; 200d714: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 200d718: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200d71c: 40 00 05 ca call 200ee44 <== NOT EXECUTED 200d720: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d724: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d728: 12 80 00 05 bne 200d73c <== NOT EXECUTED 200d72c: 01 00 00 00 nop <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200d730: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED } 200d734: 81 c7 e0 08 ret <== NOT EXECUTED 200d738: 81 e8 00 00 restore <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d73c: 40 00 07 16 call 200f394 <== NOT EXECUTED 200d740: 01 00 00 00 nop <== NOT EXECUTED 200d744: 81 c7 e0 08 ret <== NOT EXECUTED 200d748: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200d694 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200d694: 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; 200d698: 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; 200d69c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200d6a0: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200d6a4: 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; 200d6a8: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200d6ac: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200d6b0: 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; 200d6b4: 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; 200d6b8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200d6bc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200d6c0: 40 00 05 f9 call 200eea4 200d6c4: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200d6c8: 80 a2 20 00 cmp %o0, 0 200d6cc: 12 80 00 05 bne 200d6e0 200d6d0: 01 00 00 00 nop return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 200d6d4: f0 07 bf fc ld [ %fp + -4 ], %i0 } 200d6d8: 81 c7 e0 08 ret 200d6dc: 81 e8 00 00 restore the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 200d6e0: 40 00 07 2d call 200f394 <== NOT EXECUTED 200d6e4: 01 00 00 00 nop <== NOT EXECUTED 200d6e8: 81 c7 e0 08 ret <== NOT EXECUTED 200d6ec: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02004474 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2004474: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2004478: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 200447c: 80 a0 60 00 cmp %g1, 0 2004480: 12 80 00 04 bne 2004490 2004484: 01 00 00 00 nop 2004488: 81 c7 e0 08 ret 200448c: 81 e8 00 00 restore rtems_interrupt_disable (level); 2004490: 7f ff f7 87 call 20022ac 2004494: 01 00 00 00 nop while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2004498: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 200449c: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 20044a0: 80 a0 80 01 cmp %g2, %g1 20044a4: 02 80 00 14 be 20044f4 20044a8: 01 00 00 00 nop tty->rawOutBufState = rob_wait; 20044ac: a0 10 20 02 mov 2, %l0 ! 2 20044b0: e0 26 20 94 st %l0, [ %i0 + 0x94 ] rtems_interrupt_enable (level); 20044b4: 7f ff f7 82 call 20022bc 20044b8: 01 00 00 00 nop sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 20044bc: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 20044c0: 92 10 20 00 clr %o1 20044c4: 40 00 06 d0 call 2006004 20044c8: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 20044cc: 80 a2 20 00 cmp %o0, 0 20044d0: 12 80 00 0b bne 20044fc 20044d4: 01 00 00 00 nop rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 20044d8: 7f ff f7 75 call 20022ac 20044dc: 01 00 00 00 nop 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) { 20044e0: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 20044e4: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 20044e8: 80 a0 80 01 cmp %g2, %g1 20044ec: 32 bf ff f2 bne,a 20044b4 20044f0: 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); 20044f4: 7f ff f7 72 call 20022bc 20044f8: 91 e8 00 08 restore %g0, %o0, %o0 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); 20044fc: 40 00 08 71 call 20066c0 <== NOT EXECUTED 020035c0 : int dup2( int fildes, int fildes2 ) { 20035c0: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 20035c4: a0 07 bf b8 add %fp, -72, %l0 20035c8: 90 10 00 18 mov %i0, %o0 20035cc: 40 00 02 28 call 2003e6c 20035d0: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 20035d4: 80 a2 3f ff cmp %o0, -1 20035d8: 12 80 00 04 bne 20035e8 20035dc: 92 10 00 10 mov %l0, %o1 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); } 20035e0: 81 c7 e0 08 ret 20035e4: 91 e8 3f ff restore %g0, -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 20035e8: 40 00 02 21 call 2003e6c 20035ec: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 20035f0: 80 a2 3f ff cmp %o0, -1 20035f4: 02 bf ff fb be 20035e0 20035f8: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 20035fc: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 2003600: 40 00 00 cf call 200393c <== NOT EXECUTED 2003604: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003608: 81 c7 e0 08 ret <== NOT EXECUTED 200360c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02003ea0 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2003ea0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2003ea4: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003ea8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003eac: 02 80 00 09 be 2003ed0 <== NOT EXECUTED 2003eb0: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 2003eb4: 05 00 80 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED 2003eb8: c4 00 a3 d0 ld [ %g2 + 0x3d0 ], %g2 ! 201c3d0 <__ctype_ptr__><== NOT EXECUTED 2003ebc: 82 00 80 08 add %g2, %o0, %g1 <== NOT EXECUTED 2003ec0: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED 2003ec4: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003ec8: 12 80 00 06 bne 2003ee0 <== NOT EXECUTED 2003ecc: 80 a2 20 09 cmp %o0, 9 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 2003ed0: 7f ff ff 87 call 2003cec <== NOT EXECUTED 2003ed4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003ed8: 81 c7 e0 08 ret <== NOT EXECUTED 2003edc: 81 e8 00 00 restore <== 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')) { 2003ee0: 02 bf ff fc be 2003ed0 <== NOT EXECUTED 2003ee4: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 2003ee8: 02 bf ff fa be 2003ed0 <== NOT EXECUTED 2003eec: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 2003ef0: 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] = '^'; 2003ef4: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 2003ef8: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 2003efc: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2003f00: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2003f04: 7f ff ff 2b call 2003bb0 <== NOT EXECUTED 2003f08: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 2003f0c: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 2003f10: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 2003f14: 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')) { 2003f18: 81 c7 e0 08 ret <== NOT EXECUTED 2003f1c: 81 e8 00 00 restore <== NOT EXECUTED 02028f90 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 2028f90: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED 2028f94: d0 00 61 3c ld [ %g1 + 0x13c ], %o0 ! 206e53c <== NOT EXECUTED 2028f98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028f9c: 02 80 00 05 be 2028fb0 <== NOT EXECUTED 2028fa0: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 2028fa4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2028fa8: 40 00 6e 9e call 2044a20 <== NOT EXECUTED 2028fac: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2028fb0: 81 c3 e0 08 retl <== NOT EXECUTED 02028fb8 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 2028fb8: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED 2028fbc: d0 00 60 54 ld [ %g1 + 0x54 ], %o0 ! 206e454 <== NOT EXECUTED 2028fc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2028fc4: 02 80 00 05 be 2028fd8 <== NOT EXECUTED 2028fc8: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2028fcc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2028fd0: 40 00 6e 94 call 2044a20 <== NOT EXECUTED 2028fd4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2028fd8: 81 c3 e0 08 retl <== NOT EXECUTED 02003f20 : * 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) { 2003f20: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 2003f24: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2003f28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f2c: 02 80 00 36 be 2004004 <== NOT EXECUTED 2003f30: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 2003f34: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003f38: 12 80 00 35 bne 200400c <== NOT EXECUTED 2003f3c: 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)) { 2003f40: 27 00 80 70 sethi %hi(0x201c000), %l3 <== NOT EXECUTED 2003f44: 29 00 80 6c sethi %hi(0x201b000), %l4 <== NOT EXECUTED 2003f48: 25 00 80 6c sethi %hi(0x201b000), %l2 <== NOT EXECUTED 2003f4c: a6 14 e3 d0 or %l3, 0x3d0, %l3 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2003f50: a8 15 21 98 or %l4, 0x198, %l4 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003f54: 10 80 00 0c b 2003f84 <== NOT EXECUTED 2003f58: a4 14 a1 90 or %l2, 0x190, %l2 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003f5c: 12 80 00 6a bne 2004104 <== NOT EXECUTED 2003f60: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003f64: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003f68: 02 80 00 63 be 20040f4 <== NOT EXECUTED 2003f6c: 01 00 00 00 nop <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2003f70: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003f74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f78: 02 80 00 5f be 20040f4 <== NOT EXECUTED 2003f7c: 01 00 00 00 nop <== NOT EXECUTED 2003f80: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 2003f84: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED 2003f88: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003f8c: c2 24 20 20 st %g1, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2003f90: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003f94: 02 bf ff f4 be 2003f64 <== NOT EXECUTED 2003f98: e2 09 00 01 ldub [ %g4 + %g1 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2003f9c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003fa0: 12 80 00 05 bne 2003fb4 <== NOT EXECUTED 2003fa4: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 2003fa8: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED 2003fac: 22 80 00 54 be,a 20040fc <== NOT EXECUTED 2003fb0: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 2003fb4: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 2003fb8: 02 80 00 24 be 2004048 <== NOT EXECUTED 2003fbc: 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)) { 2003fc0: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED 2003fc4: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 2003fc8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003fcc: 12 bf ff e4 bne 2003f5c <== NOT EXECUTED 2003fd0: 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); 2003fd4: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 2003fd8: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003fdc: 90 12 21 98 or %o0, 0x198, %o0 <== NOT EXECUTED 2003fe0: 7f ff fe f4 call 2003bb0 <== NOT EXECUTED 2003fe4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2003fe8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003fec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ff0: 02 bf ff de be 2003f68 <== NOT EXECUTED 2003ff4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 2003ff8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } } } if (!lineFlag) 2003ffc: 12 bf ff dd bne 2003f70 <== NOT EXECUTED 2004000: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED 2004004: 81 c7 e0 08 ret <== NOT EXECUTED 2004008: 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)) { 200400c: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2004010: 02 80 00 38 be 20040f0 <== NOT EXECUTED 2004014: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 2004018: 12 bf ff cb bne 2003f44 <== NOT EXECUTED 200401c: 27 00 80 70 sethi %hi(0x201c000), %l3 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 2004020: 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; 2004024: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 2004028: 7f ff ff 9e call 2003ea0 <== NOT EXECUTED 200402c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 2004030: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 2004034: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004038: 02 bf ff f3 be 2004004 <== NOT EXECUTED 200403c: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED echo ('\n', tty); 2004040: 7f ff ff 98 call 2003ea0 <== NOT EXECUTED 2004044: 91 e8 20 0a restore %g0, 0xa, %o0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2004048: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200404c: 02 80 00 17 be 20040a8 <== NOT EXECUTED 2004050: 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) 2004054: 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)) { 2004058: d8 04 c0 00 ld [ %l3 ], %o4 <== NOT EXECUTED 200405c: 10 80 00 07 b 2004078 <== NOT EXECUTED 2004060: 84 10 20 00 clr %g2 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2004064: 32 80 00 02 bne,a 200406c <== NOT EXECUTED 2004068: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 200406c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004070: 22 80 00 0f be,a 20040ac <== NOT EXECUTED 2004074: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED c = tty->cbuf[i++]; 2004078: c6 09 00 02 ldub [ %g4 + %g2 ], %g3 <== NOT EXECUTED 200407c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (c == '\t') { 2004080: 80 a0 e0 09 cmp %g3, 9 <== NOT EXECUTED 2004084: 02 80 00 18 be 20040e4 <== NOT EXECUTED 2004088: 9a 03 00 03 add %o4, %g3, %o5 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 200408c: c6 0b 60 01 ldub [ %o5 + 1 ], %g3 <== NOT EXECUTED 2004090: 80 88 e0 20 btst 0x20, %g3 <== NOT EXECUTED 2004094: 12 bf ff f4 bne 2004064 <== NOT EXECUTED 2004098: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 200409c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20040a0: 12 bf ff f6 bne 2004078 <== NOT EXECUTED 20040a4: a2 04 60 01 inc %l1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 20040a8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20040ac: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 20040b0: 16 bf ff ae bge 2003f68 <== NOT EXECUTED 20040b4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 20040b8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20040bc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 20040c0: 7f ff fe bc call 2003bb0 <== NOT EXECUTED 20040c4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED tty->column--; 20040c8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20040cc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 20040d0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 20040d4: 06 bf ff f9 bl 20040b8 <== NOT EXECUTED 20040d8: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 20040dc: 10 bf ff a3 b 2003f68 <== NOT EXECUTED 20040e0: 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; 20040e4: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED 20040e8: 10 bf ff e1 b 200406c <== NOT EXECUTED 20040ec: a2 04 60 01 inc %l1 <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 20040f0: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 20040f4: 81 c7 e0 08 ret <== NOT EXECUTED 20040f8: 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); 20040fc: 7f ff ff 69 call 2003ea0 <== NOT EXECUTED 2004100: 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); 2004104: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2004108: 7f ff fe aa call 2003bb0 <== NOT EXECUTED 200410c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 2004110: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2004114: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004118: 22 80 00 05 be,a 200412c <== NOT EXECUTED 200411c: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED tty->column--; 2004120: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2004124: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 2004128: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED 200412c: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 2004130: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004134: 02 bf ff a9 be 2003fd8 <== NOT EXECUTED 2004138: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED 200413c: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED 2004140: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED 2004144: 12 bf ff a6 bne 2003fdc <== NOT EXECUTED 2004148: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 200414c: 10 bf ff 87 b 2003f68 <== NOT EXECUTED 2004150: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 0203ddbc : #include int fchdir( int fd ) { 203ddbc: 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 ); 203ddc0: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED 203ddc4: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 206a624 <== NOT EXECUTED 203ddc8: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 203ddcc: 1a 80 00 55 bcc 203df20 <== NOT EXECUTED 203ddd0: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 203ddd4: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 206e844 <== NOT EXECUTED 203ddd8: 85 2e 20 06 sll %i0, 6, %g2 <== NOT EXECUTED 203dddc: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 203dde0: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED 203dde4: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 203dde8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 203ddec: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 203ddf0: 02 80 00 4c be 203df20 <== NOT EXECUTED 203ddf4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 203ddf8: 02 80 00 5d be 203df6c <== NOT EXECUTED 203ddfc: 01 00 00 00 nop <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 203de00: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED 203de04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203de08: 02 80 00 5f be 203df84 <== NOT EXECUTED 203de0c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 203de10: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 203de14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203de18: 02 80 00 5b be 203df84 <== NOT EXECUTED 203de1c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 203de20: 9f c0 40 00 call %g1 <== NOT EXECUTED 203de24: 90 06 20 1c add %i0, 0x1c, %o0 <== NOT EXECUTED 203de28: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 203de2c: 12 80 00 37 bne 203df08 <== NOT EXECUTED 203de30: 21 00 81 aa sethi %hi(0x206a800), %l0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203de34: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203de38: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203de3c: 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)) { 203de40: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203de44: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED 203de48: 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)) { 203de4c: 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; 203de50: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED 203de54: 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)) { 203de58: 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; 203de5c: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED 203de60: 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)) { 203de64: 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; 203de68: c4 27 bf e4 st %g2, [ %fp + -28 ] <== NOT EXECUTED 203de6c: 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)) { 203de70: 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; 203de74: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 203de78: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED 203de7c: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 203de80: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 <== NOT EXECUTED 203de84: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 203de88: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 <== NOT EXECUTED 203de8c: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 203de90: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 <== NOT EXECUTED 203de94: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 203de98: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203de9c: 7f ff 1d 53 call 20053e8 <== NOT EXECUTED 203dea0: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED 203dea4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203dea8: 12 80 00 24 bne 203df38 <== NOT EXECUTED 203deac: 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 ); 203deb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203deb4: 02 80 00 09 be 203ded8 <== NOT EXECUTED 203deb8: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 203debc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 203dec0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203dec4: 22 80 00 06 be,a 203dedc <== NOT EXECUTED 203dec8: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 <== NOT EXECUTED 203decc: 9f c0 40 00 call %g1 <== NOT EXECUTED 203ded0: 90 07 bf d8 add %fp, -40, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 203ded4: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED 203ded8: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 <== NOT EXECUTED 203dedc: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 203dee0: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED 203dee4: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 203dee8: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED 203deec: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 203def0: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED 203def4: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 203def8: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED 203defc: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED return 0; } 203df00: 81 c7 e0 08 ret <== NOT EXECUTED 203df04: 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 ); 203df08: 40 00 1a 6e call 20448c0 <__errno> <== NOT EXECUTED 203df0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203df10: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 203df14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203df18: 81 c7 e0 08 ret <== NOT EXECUTED 203df1c: 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); 203df20: 40 00 1a 68 call 20448c0 <__errno> <== NOT EXECUTED 203df24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203df28: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 203df2c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203df30: 81 c7 e0 08 ret <== NOT EXECUTED 203df34: 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; 203df38: c4 07 bf d8 ld [ %fp + -40 ], %g2 <== NOT EXECUTED 203df3c: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 <== NOT EXECUTED 203df40: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED 203df44: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED 203df48: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED 203df4c: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED 203df50: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED 203df54: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED 203df58: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED 203df5c: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED 203df60: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED return -1; 203df64: 81 c7 e0 08 ret <== NOT EXECUTED 203df68: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 203df6c: 40 00 1a 55 call 20448c0 <__errno> <== NOT EXECUTED 203df70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203df74: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 203df78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203df7c: 81 c7 e0 08 ret <== NOT EXECUTED 203df80: 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 ); 203df84: 40 00 1a 4f call 20448c0 <__errno> <== NOT EXECUTED 203df88: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203df8c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 203df90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203df94: 81 c7 e0 08 ret <== NOT EXECUTED 203df98: 81 e8 00 00 restore <== NOT EXECUTED 02028acc : int fchmod( int fd, mode_t mode ) { 2028acc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028ad0: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED 2028ad4: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 206a624 <== NOT EXECUTED 2028ad8: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028adc: 1a 80 00 18 bcc 2028b3c <== NOT EXECUTED 2028ae0: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2028ae4: d0 00 60 44 ld [ %g1 + 0x44 ], %o0 ! 206e844 <== NOT EXECUTED 2028ae8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028aec: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2028af0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028af4: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028af8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028afc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2028b00: 02 80 00 0f be 2028b3c <== NOT EXECUTED 2028b04: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028b08: 02 80 00 13 be 2028b54 <== NOT EXECUTED 2028b0c: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 2028b10: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 2028b14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028b18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028b1c: 02 80 00 14 be 2028b6c <== NOT EXECUTED 2028b20: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2028b24: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED 2028b28: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2028b2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028b30: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 2028b34: 81 c7 e0 08 ret <== NOT EXECUTED 2028b38: 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); 2028b3c: 40 00 6f 61 call 20448c0 <__errno> <== NOT EXECUTED 2028b40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028b44: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2028b48: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028b4c: 81 c7 e0 08 ret <== NOT EXECUTED 2028b50: 81 e8 00 00 restore <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028b54: 40 00 6f 5b call 20448c0 <__errno> <== NOT EXECUTED 2028b58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028b5c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2028b60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028b64: 81 c7 e0 08 ret <== NOT EXECUTED 2028b68: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028b6c: 40 00 6f 55 call 20448c0 <__errno> <== NOT EXECUTED 2028b70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028b74: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028b78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028b7c: 81 c7 e0 08 ret <== NOT EXECUTED 2028b80: 81 e8 00 00 restore <== NOT EXECUTED 02028b84 : int fchown( int fd, uid_t owner, gid_t group ) { 2028b84: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028b88: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED 2028b8c: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 206a624 <== NOT EXECUTED 2028b90: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2028b94: 1a 80 00 19 bcc 2028bf8 <== NOT EXECUTED 2028b98: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2028b9c: d0 00 60 44 ld [ %g1 + 0x44 ], %o0 ! 206e844 <== NOT EXECUTED 2028ba0: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2028ba4: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2028ba8: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2028bac: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2028bb0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2028bb4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2028bb8: 02 80 00 10 be 2028bf8 <== NOT EXECUTED 2028bbc: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028bc0: 02 80 00 14 be 2028c10 <== NOT EXECUTED 2028bc4: 01 00 00 00 nop <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 2028bc8: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 2028bcc: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2028bd0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2028bd4: 02 80 00 15 be 2028c28 <== NOT EXECUTED 2028bd8: 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 ); 2028bdc: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 2028be0: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2028be4: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED 2028be8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2028bec: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED } 2028bf0: 81 c7 e0 08 ret <== NOT EXECUTED 2028bf4: 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); 2028bf8: 40 00 6f 32 call 20448c0 <__errno> <== NOT EXECUTED 2028bfc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028c00: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2028c04: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028c08: 81 c7 e0 08 ret <== NOT EXECUTED 2028c0c: 81 e8 00 00 restore <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028c10: 40 00 6f 2c call 20448c0 <__errno> <== NOT EXECUTED 2028c14: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028c18: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2028c1c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028c20: 81 c7 e0 08 ret <== NOT EXECUTED 2028c24: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2028c28: 40 00 6f 26 call 20448c0 <__errno> <== NOT EXECUTED 2028c2c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028c30: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2028c34: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028c38: 81 c7 e0 08 ret <== NOT EXECUTED 2028c3c: 81 e8 00 00 restore <== NOT EXECUTED 0203dfc4 : int fcntl( int fd, int cmd, ... ) { 203dfc4: 9d e3 bf 90 save %sp, -112, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203dfc8: 03 00 81 a9 sethi %hi(0x206a400), %g1 203dfcc: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 206a624 ... ) { int ret; va_list ap; va_start( ap, cmd ); 203dfd0: 84 07 a0 4c add %fp, 0x4c, %g2 203dfd4: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 203dfd8: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 203dfdc: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 203dfe0: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203dfe4: 80 a6 00 01 cmp %i0, %g1 203dfe8: 1a 80 00 7a bcc 203e1d0 203dfec: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 203dff0: 21 00 81 ba sethi %hi(0x206e800), %l0 203dff4: c6 04 20 44 ld [ %l0 + 0x44 ], %g3 ! 206e844 203dff8: 89 2e 20 06 sll %i0, 6, %g4 203dffc: 93 2e 20 03 sll %i0, 3, %o1 203e000: 92 02 40 04 add %o1, %g4, %o1 203e004: 92 00 c0 09 add %g3, %o1, %o1 rtems_libio_check_is_open(iop); 203e008: d0 02 60 18 ld [ %o1 + 0x18 ], %o0 203e00c: 80 8a 21 00 btst 0x100, %o0 203e010: 02 80 00 70 be 203e1d0 203e014: 80 a6 60 09 cmp %i1, 9 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 203e018: 08 80 00 08 bleu 203e038 203e01c: 89 2e 60 02 sll %i1, 2, %g4 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 203e020: 40 00 1a 28 call 20448c0 <__errno> 203e024: b0 10 3f ff mov -1, %i0 203e028: 82 10 20 16 mov 0x16, %g1 203e02c: c2 22 00 00 st %g1, [ %o0 ] 203e030: 81 c7 e0 08 ret 203e034: 81 e8 00 00 restore /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 203e038: 1b 00 80 f7 sethi %hi(0x203dc00), %o5 203e03c: 9a 13 63 9c or %o5, 0x39c, %o5 ! 203df9c 203e040: c8 03 40 04 ld [ %o5 + %g4 ], %g4 203e044: 81 c1 00 00 jmp %g4 203e048: 01 00 00 00 nop errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 203e04c: 40 00 1a 1d call 20448c0 <__errno> 203e050: b0 10 3f ff mov -1, %i0 ! ffffffff 203e054: 82 10 20 86 mov 0x86, %g1 203e058: c2 22 00 00 st %g1, [ %o0 ] 203e05c: 81 c7 e0 08 ret 203e060: 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 ) ); 203e064: d0 00 80 00 ld [ %g2 ], %o0 203e068: 7f ff 1e 5a call 20059d0 203e06c: 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); 203e070: d2 07 bf f4 ld [ %fp + -12 ], %o1 203e074: 90 0a 22 01 and %o0, 0x201, %o0 203e078: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 203e07c: b0 10 20 00 clr %i0 203e080: 82 08 7d fe and %g1, -514, %g1 203e084: 82 12 00 01 or %o0, %g1, %g1 203e088: 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) { 203e08c: c2 02 60 40 ld [ %o1 + 0x40 ], %g1 203e090: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 203e094: 80 a0 60 00 cmp %g1, 0 203e098: 02 80 00 52 be 203e1e0 203e09c: 01 00 00 00 nop int err = (*iop->handlers->fcntl_h)( cmd, iop ); 203e0a0: 9f c0 40 00 call %g1 203e0a4: 90 10 00 19 mov %i1, %o0 if (err) { 203e0a8: b2 92 20 00 orcc %o0, 0, %i1 203e0ac: 12 80 00 04 bne 203e0bc 203e0b0: 01 00 00 00 nop va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 203e0b4: 81 c7 e0 08 ret 203e0b8: 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; 203e0bc: 40 00 1a 01 call 20448c0 <__errno> <== NOT EXECUTED 203e0c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203e0c4: 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; } 203e0c8: 81 c7 e0 08 ret <== NOT EXECUTED 203e0cc: 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 ); 203e0d0: 7f ff 1d 90 call 2005710 203e0d4: d2 27 bf f4 st %o1, [ %fp + -12 ] 203e0d8: d2 07 bf f4 ld [ %fp + -12 ], %o1 203e0dc: 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) { 203e0e0: 80 a6 20 00 cmp %i0, 0 203e0e4: 36 bf ff eb bge,a 203e090 203e0e8: 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; } 203e0ec: 81 c7 e0 08 ret <== NOT EXECUTED 203e0f0: 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 ) ) 203e0f4: c2 00 80 00 ld [ %g2 ], %g1 203e0f8: 80 a0 60 00 cmp %g1, 0 203e0fc: 22 80 00 2c be,a 203e1ac 203e100: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 203e104: 90 12 28 00 or %o0, 0x800, %o0 203e108: b0 10 20 00 clr %i0 203e10c: 10 bf ff e0 b 203e08c 203e110: 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); 203e114: b1 32 20 0b srl %o0, 0xb, %i0 203e118: 10 bf ff dd b 203e08c 203e11c: 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 ); 203e120: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 203e124: 80 a0 a0 00 cmp %g2, 0 203e128: 02 80 00 30 be 203e1e8 203e12c: 80 a0 40 02 cmp %g1, %g2 diop = rtems_libio_iop( fd2 ); 203e130: b0 10 20 00 clr %i0 <== NOT EXECUTED 203e134: 18 80 00 21 bgu 203e1b8 <== NOT EXECUTED 203e138: 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; 203e13c: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 ret = -1; break; } } diop->handlers = iop->handlers; 203e140: da 02 60 40 ld [ %o1 + 0x40 ], %o5 diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203e144: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 203e148: c4 02 60 20 ld [ %o1 + 0x20 ], %g2 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 203e14c: c8 02 60 3c ld [ %o1 + 0x3c ], %g4 diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203e150: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 203e154: c4 02 60 24 ld [ %o1 + 0x24 ], %g2 ret = (int) (diop - rtems_libio_iops); 203e158: 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; 203e15c: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 203e160: c4 02 60 28 ld [ %o1 + 0x28 ], %g2 ret = (int) (diop - rtems_libio_iops); 203e164: 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; 203e168: c4 20 60 28 st %g2, [ %g1 + 0x28 ] 203e16c: c4 02 60 2c ld [ %o1 + 0x2c ], %g2 ret = -1; break; } } diop->handlers = iop->handlers; 203e170: da 20 60 40 st %o5, [ %g1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 203e174: c4 20 60 2c st %g2, [ %g1 + 0x2c ] ret = (int) (diop - rtems_libio_iops); 203e178: 85 28 e0 06 sll %g3, 6, %g2 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 203e17c: c8 20 60 3c st %g4, [ %g1 + 0x3c ] diop->flags = iop->flags; 203e180: d0 20 60 18 st %o0, [ %g1 + 0x18 ] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 203e184: 83 28 e0 03 sll %g3, 3, %g1 203e188: 82 20 80 01 sub %g2, %g1, %g1 203e18c: 85 28 60 06 sll %g1, 6, %g2 203e190: 82 00 40 02 add %g1, %g2, %g1 203e194: 82 00 40 03 add %g1, %g3, %g1 203e198: b1 28 60 0f sll %g1, 0xf, %i0 203e19c: b0 26 00 01 sub %i0, %g1, %i0 203e1a0: b1 2e 20 03 sll %i0, 3, %i0 203e1a4: 10 bf ff cf b 203e0e0 203e1a8: 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; 203e1ac: b0 10 20 00 clr %i0 <== NOT EXECUTED 203e1b0: 10 bf ff b7 b 203e08c <== NOT EXECUTED 203e1b4: 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 ); 203e1b8: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 203e1bc: 85 28 a0 03 sll %g2, 3, %g2 <== NOT EXECUTED 203e1c0: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 203e1c4: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED 203e1c8: 10 bf ff dd b 203e13c <== NOT EXECUTED 203e1cc: 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); 203e1d0: 40 00 19 bc call 20448c0 <__errno> <== NOT EXECUTED 203e1d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203e1d8: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 203e1dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 203e1e0: 81 c7 e0 08 ret <== NOT EXECUTED 203e1e4: 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(); 203e1e8: 7f ff 1d b9 call 20058cc 203e1ec: d2 27 bf f4 st %o1, [ %fp + -12 ] if ( diop == 0 ) { 203e1f0: b0 10 3f ff mov -1, %i0 203e1f4: 82 92 20 00 orcc %o0, 0, %g1 203e1f8: 02 bf ff 8e be 203e030 203e1fc: d2 07 bf f4 ld [ %fp + -12 ], %o1 203e200: c6 04 20 44 ld [ %l0 + 0x44 ], %g3 203e204: d0 02 60 18 ld [ %o1 + 0x18 ], %o0 203e208: 10 bf ff cd b 203e13c 203e20c: b0 10 00 01 mov %g1, %i0 0200ddd8 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200ddd8: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200dddc: 21 00 80 72 sethi %hi(0x201c800), %l0 200dde0: d0 04 21 f4 ld [ %l0 + 0x1f4 ], %o0 ! 201c9f4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200dde4: a2 10 00 18 mov %i0, %l1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200dde8: 92 10 20 00 clr %o1 200ddec: 94 10 20 00 clr %o2 200ddf0: 7f ff e0 85 call 2006004 200ddf4: b0 10 3f fc mov -4, %i0 200ddf8: 80 a2 20 00 cmp %o0, 0 200ddfc: 12 80 00 fd bne 200e1f0 200de00: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200de04: e4 04 40 00 ld [ %l1 ], %l2 <== NOT EXECUTED if (pipe == NULL) { 200de08: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 200de0c: 02 80 00 4a be 200df34 <== NOT EXECUTED 200de10: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200de14: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED 200de18: 92 10 20 00 clr %o1 <== NOT EXECUTED 200de1c: 7f ff e0 7a call 2006004 <== NOT EXECUTED 200de20: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200de24: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200de28: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200de2c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200de30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200de34: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200de38: 02 80 00 d1 be 200e17c <== NOT EXECUTED 200de3c: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200de40: 7f ff e0 b8 call 2006120 <== NOT EXECUTED 200de44: d0 04 21 f4 ld [ %l0 + 0x1f4 ], %o0 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 200de48: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200de4c: 12 80 00 e9 bne 200e1f0 <== NOT EXECUTED 200de50: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200de54: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 200de58: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200de5c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200de60: 02 80 00 8a be 200e088 <== NOT EXECUTED 200de64: e0 04 40 00 ld [ %l1 ], %l0 <== NOT EXECUTED 200de68: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200de6c: 02 80 00 af be 200e128 <== NOT EXECUTED 200de70: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200de74: 22 80 00 07 be,a 200de90 <== NOT EXECUTED 200de78: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 200de7c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200de80: 7f ff e0 a8 call 2006120 <== NOT EXECUTED 200de84: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 200de88: 81 c7 e0 08 ret <== NOT EXECUTED 200de8c: 81 e8 00 00 restore <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200de90: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200de94: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200de98: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200de9c: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED 200dea0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200dea4: 02 80 00 d5 be 200e1f8 <== NOT EXECUTED 200dea8: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 200deac: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200deb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200deb4: 32 bf ff f3 bne,a 200de80 <== NOT EXECUTED 200deb8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200debc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200dec0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200dec4: 32 bf ff ef bne,a 200de80 <== NOT EXECUTED 200dec8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200decc: 10 80 00 0c b 200defc <== NOT EXECUTED 200ded0: 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)) 200ded4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ded8: 7f ff e0 4b call 2006004 <== NOT EXECUTED 200dedc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200dee0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dee4: 12 80 00 0f bne 200df20 <== NOT EXECUTED 200dee8: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200deec: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 200def0: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 200def4: 32 bf ff e3 bne,a 200de80 <== NOT EXECUTED 200def8: 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); 200defc: 7f ff e0 89 call 2006120 <== NOT EXECUTED 200df00: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200df04: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200df08: 40 00 03 04 call 200eb18 <== NOT EXECUTED 200df0c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200df10: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200df14: 22 bf ff f0 be,a 200ded4 <== NOT EXECUTED 200df18: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 200df1c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200df20: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200df24: 7f ff ff 5c call 200dc94 <== NOT EXECUTED 200df28: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200df2c: 81 c7 e0 08 ret <== NOT EXECUTED 200df30: 81 e8 00 00 restore <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 200df34: 7f ff f6 a9 call 200b9d8 <== NOT EXECUTED 200df38: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 200df3c: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED 200df40: 02 bf ff c0 be 200de40 <== NOT EXECUTED 200df44: a4 10 00 13 mov %l3, %l2 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 200df48: 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)); 200df4c: c0 24 c0 00 clr [ %l3 ] <== NOT EXECUTED 200df50: c0 24 e0 08 clr [ %l3 + 8 ] <== NOT EXECUTED 200df54: c0 24 e0 0c clr [ %l3 + 0xc ] <== NOT EXECUTED 200df58: c0 24 e0 10 clr [ %l3 + 0x10 ] <== NOT EXECUTED 200df5c: c0 24 e0 14 clr [ %l3 + 0x14 ] <== NOT EXECUTED 200df60: c0 24 e0 18 clr [ %l3 + 0x18 ] <== NOT EXECUTED 200df64: c0 24 e0 1c clr [ %l3 + 0x1c ] <== NOT EXECUTED 200df68: c0 24 e0 20 clr [ %l3 + 0x20 ] <== NOT EXECUTED 200df6c: c0 24 e0 24 clr [ %l3 + 0x24 ] <== NOT EXECUTED 200df70: c0 24 e0 28 clr [ %l3 + 0x28 ] <== NOT EXECUTED 200df74: c0 24 e0 2c clr [ %l3 + 0x2c ] <== NOT EXECUTED 200df78: c0 24 e0 30 clr [ %l3 + 0x30 ] <== NOT EXECUTED pipe->Size = PIPE_BUF; 200df7c: c2 24 e0 04 st %g1, [ %l3 + 4 ] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200df80: 7f ff f6 96 call 200b9d8 <== NOT EXECUTED 200df84: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED if (! pipe->Buffer) 200df88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200df8c: 02 80 00 8a be 200e1b4 <== NOT EXECUTED 200df90: d0 24 c0 00 st %o0, [ %l3 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 200df94: 29 00 80 70 sethi %hi(0x201c000), %l4 <== NOT EXECUTED 200df98: d0 4d 23 bc ldsb [ %l4 + 0x3bc ], %o0 ! 201c3bc <== NOT EXECUTED 200df9c: 2b 14 12 5c sethi %hi(0x50497000), %l5 <== NOT EXECUTED 200dfa0: 82 15 62 00 or %l5, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200dfa4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200dfa8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200dfac: 94 10 20 00 clr %o2 <== NOT EXECUTED 200dfb0: 40 00 02 71 call 200e974 <== NOT EXECUTED 200dfb4: 96 04 e0 2c add %l3, 0x2c, %o3 <== NOT EXECUTED 200dfb8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dfbc: 32 80 00 7c bne,a 200e1ac <== NOT EXECUTED 200dfc0: 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( 200dfc4: d0 4d 23 bc ldsb [ %l4 + 0x3bc ], %o0 <== NOT EXECUTED 200dfc8: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200dfcc: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200dfd0: 92 10 20 00 clr %o1 <== NOT EXECUTED 200dfd4: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200dfd8: 94 10 20 00 clr %o2 <== NOT EXECUTED 200dfdc: 40 00 02 66 call 200e974 <== NOT EXECUTED 200dfe0: 96 04 e0 30 add %l3, 0x30, %o3 <== NOT EXECUTED 200dfe4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dfe8: 12 80 00 6e bne 200e1a0 <== NOT EXECUTED 200dfec: 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( 200dff0: d0 4d 23 bc ldsb [ %l4 + 0x3bc ], %o0 <== NOT EXECUTED 200dff4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200dff8: 90 12 00 15 or %o0, %l5, %o0 <== NOT EXECUTED 200dffc: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200e000: 96 10 20 00 clr %o3 <== NOT EXECUTED 200e004: 7f ff df 5f call 2005d80 <== NOT EXECUTED 200e008: 98 04 e0 28 add %l3, 0x28, %o4 <== NOT EXECUTED 200e00c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e010: 12 80 00 62 bne 200e198 <== NOT EXECUTED 200e014: 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 *) 200e018: d2 04 e0 2c ld [ %l3 + 0x2c ], %o1 <== NOT EXECUTED 200e01c: 2b 00 80 75 sethi %hi(0x201d400), %l5 <== NOT EXECUTED 200e020: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED 200e024: 7f ff e6 50 call 2007964 <_Objects_Get> <== NOT EXECUTED 200e028: 90 15 62 c0 or %l5, 0x2c0, %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 200e02c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200e030: 27 04 00 00 sethi %hi(0x10000000), %l3 <== NOT EXECUTED 200e034: 82 10 40 13 or %g1, %l3, %g1 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200e038: 7f ff e8 de call 20083b0 <_Thread_Enable_dispatch> <== NOT EXECUTED 200e03c: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED 200e040: d2 04 a0 30 ld [ %l2 + 0x30 ], %o1 <== NOT EXECUTED 200e044: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED 200e048: 7f ff e6 47 call 2007964 <_Objects_Get> <== NOT EXECUTED 200e04c: 90 15 62 c0 or %l5, 0x2c0, %o0 <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 200e050: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200e054: a6 10 40 13 or %g1, %l3, %l3 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200e058: 7f ff e8 d6 call 20083b0 <_Thread_Enable_dispatch> <== NOT EXECUTED 200e05c: e6 22 20 4c st %l3, [ %o0 + 0x4c ] <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200e060: c2 0d 23 bc ldub [ %l4 + 0x3bc ], %g1 <== NOT EXECUTED 200e064: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200e068: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200e06c: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200e070: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200e074: 12 bf ff 68 bne 200de14 <== NOT EXECUTED 200e078: c4 2d 23 bc stb %g2, [ %l4 + 0x3bc ] <== NOT EXECUTED c = 'a'; 200e07c: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200e080: 10 bf ff 65 b 200de14 <== NOT EXECUTED 200e084: c2 2d 23 bc stb %g1, [ %l4 + 0x3bc ] <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200e088: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200e08c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e090: 32 80 00 06 bne,a 200e0a8 <== NOT EXECUTED 200e094: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 200e098: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200e09c: 12 bf ff a1 bne 200df20 <== NOT EXECUTED 200e0a0: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200e0a4: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200e0a8: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200e0ac: 88 00 a0 01 add %g2, 1, %g4 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200e0b0: 86 00 e0 01 inc %g3 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200e0b4: c8 24 20 14 st %g4, [ %l0 + 0x14 ] <== NOT EXECUTED 200e0b8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200e0bc: 02 80 00 59 be 200e220 <== NOT EXECUTED 200e0c0: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 200e0c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e0c8: 32 bf ff 6e bne,a 200de80 <== NOT EXECUTED 200e0cc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED prevCounter = pipe->readerCounter; 200e0d0: 10 80 00 0c b 200e100 <== NOT EXECUTED 200e0d4: 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)) 200e0d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200e0dc: 7f ff df ca call 2006004 <== NOT EXECUTED 200e0e0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200e0e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e0e8: 12 bf ff 8e bne 200df20 <== NOT EXECUTED 200e0ec: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200e0f0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 200e0f4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED 200e0f8: 32 bf ff 62 bne,a 200de80 <== NOT EXECUTED 200e0fc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 200e100: 7f ff e0 08 call 2006120 <== NOT EXECUTED 200e104: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200e108: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200e10c: 40 00 02 83 call 200eb18 <== NOT EXECUTED 200e110: 92 10 20 00 clr %o1 <== NOT EXECUTED 200e114: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e118: 22 bf ff f0 be,a 200e0d8 <== NOT EXECUTED 200e11c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 200e120: 10 bf ff 80 b 200df20 <== NOT EXECUTED 200e124: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200e128: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200e12c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200e130: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200e134: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200e138: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED 200e13c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e140: 02 80 00 33 be 200e20c <== NOT EXECUTED 200e144: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200e148: 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 ++; 200e14c: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200e150: 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 ++; 200e154: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200e158: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== NOT EXECUTED 200e15c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e160: 12 bf ff 47 bne 200de7c <== NOT EXECUTED 200e164: c4 24 20 24 st %g2, [ %l0 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200e168: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200e16c: 40 00 02 54 call 200eabc <== NOT EXECUTED 200e170: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200e174: 10 bf ff 43 b 200de80 <== NOT EXECUTED 200e178: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 200e17c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200e180: 12 80 00 10 bne 200e1c0 <== NOT EXECUTED 200e184: d0 04 21 f4 ld [ %l0 + 0x1f4 ], %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200e188: 7f ff df e6 call 2006120 <== NOT EXECUTED 200e18c: e4 24 40 00 st %l2, [ %l1 ] <== NOT EXECUTED err = pipe_new(pipep); if (err) return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200e190: 10 bf ff 32 b 200de58 <== NOT EXECUTED 200e194: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED if (c ++ == 'z') c = 'a'; return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200e198: 40 00 02 2f call 200ea54 <== NOT EXECUTED 200e19c: d0 04 e0 30 ld [ %l3 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200e1a0: 40 00 02 2d call 200ea54 <== NOT EXECUTED 200e1a4: d0 04 e0 2c ld [ %l3 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200e1a8: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED 200e1ac: 7f ff f4 8b call 200b3d8 <== NOT EXECUTED 200e1b0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 200e1b4: 7f ff f4 89 call 200b3d8 <== NOT EXECUTED 200e1b8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 200e1bc: 30 bf ff 21 b,a 200de40 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 200e1c0: 40 00 02 25 call 200ea54 <== NOT EXECUTED 200e1c4: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200e1c8: 40 00 02 23 call 200ea54 <== NOT EXECUTED 200e1cc: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200e1d0: 7f ff df 60 call 2005f50 <== NOT EXECUTED 200e1d4: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200e1d8: 7f ff f4 80 call 200b3d8 <== NOT EXECUTED 200e1dc: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED free(pipe); 200e1e0: 7f ff f4 7e call 200b3d8 <== NOT EXECUTED 200e1e4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200e1e8: 7f ff df ce call 2006120 <== NOT EXECUTED 200e1ec: d0 04 21 f4 ld [ %l0 + 0x1f4 ], %o0 <== NOT EXECUTED 200e1f0: 81 c7 e0 08 ret 200e1f4: 81 e8 00 00 restore switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 200e1f8: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200e1fc: 40 00 02 30 call 200eabc <== NOT EXECUTED 200e200: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200e204: 10 bf ff 2b b 200deb0 <== NOT EXECUTED 200e208: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 200e20c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200e210: 40 00 02 2b call 200eabc <== NOT EXECUTED 200e214: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200e218: 10 bf ff cd b 200e14c <== NOT EXECUTED 200e21c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 200e220: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200e224: 40 00 02 26 call 200eabc <== NOT EXECUTED 200e228: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED 200e22c: 10 bf ff a6 b 200e0c4 <== NOT EXECUTED 200e230: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 0202ae68 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 202ae68: 05 00 81 ba sethi %hi(0x206e800), %g2 <== NOT EXECUTED 202ae6c: c2 00 a0 90 ld [ %g2 + 0x90 ], %g1 ! 206e890 <== NOT EXECUTED 202ae70: 84 10 a0 90 or %g2, 0x90, %g2 <== NOT EXECUTED 202ae74: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED 202ae78: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202ae7c: 02 80 00 10 be 202aebc <== NOT EXECUTED 202ae80: 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 ) { 202ae84: c8 02 60 10 ld [ %o1 + 0x10 ], %g4 <== NOT EXECUTED 202ae88: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED 202ae8c: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 202ae90: 32 80 00 08 bne,a 202aeb0 <== NOT EXECUTED 202ae94: 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; 202ae98: 81 c3 e0 08 retl <== NOT EXECUTED 202ae9c: 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 ) { 202aea0: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED 202aea4: 02 80 00 08 be 202aec4 <== NOT EXECUTED 202aea8: 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 ) { 202aeac: 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; 202aeb0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 202aeb4: 32 bf ff fb bne,a 202aea0 <== NOT EXECUTED 202aeb8: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED return true; } } return false; } 202aebc: 81 c3 e0 08 retl <== NOT EXECUTED 202aec0: 90 10 20 00 clr %o0 <== NOT EXECUTED 202aec4: 81 c3 e0 08 retl <== NOT EXECUTED 02003c84 : long fpathconf( int fd, int name ) { 2003c84: 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); 2003c88: 03 00 80 81 sethi %hi(0x2020400), %g1 2003c8c: c2 00 60 64 ld [ %g1 + 0x64 ], %g1 ! 2020464 2003c90: 80 a6 00 01 cmp %i0, %g1 2003c94: 1a 80 00 3f bcc 2003d90 2003c98: 03 00 80 83 sethi %hi(0x2020c00), %g1 iop = rtems_libio_iop(fd); 2003c9c: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 2020e68 2003ca0: 85 2e 20 06 sll %i0, 6, %g2 2003ca4: b1 2e 20 03 sll %i0, 3, %i0 2003ca8: b0 06 00 02 add %i0, %g2, %i0 2003cac: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 2003cb0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2003cb4: 80 88 61 00 btst 0x100, %g1 2003cb8: 02 80 00 36 be 2003d90 2003cbc: 80 88 60 02 btst 2, %g1 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 2003cc0: 02 80 00 3a be 2003da8 2003cc4: 80 a6 60 0b cmp %i1, 0xb * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003cc8: 08 80 00 08 bleu 2003ce8 2003ccc: 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 ); 2003cd0: 40 00 3b d7 call 2012c2c <__errno> 2003cd4: b0 10 3f ff mov -1, %i0 2003cd8: 82 10 20 16 mov 0x16, %g1 2003cdc: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 2003ce0: 81 c7 e0 08 ret 2003ce4: 81 e8 00 00 restore * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003ce8: b3 2e 60 02 sll %i1, 2, %i1 2003cec: 05 00 80 0f sethi %hi(0x2003c00), %g2 2003cf0: 84 10 a0 54 or %g2, 0x54, %g2 ! 2003c54 2003cf4: c4 00 80 19 ld [ %g2 + %i1 ], %g2 2003cf8: 81 c0 80 00 jmp %g2 2003cfc: 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; 2003d00: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 2003d04: 81 c7 e0 08 ret 2003d08: 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; 2003d0c: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 2003d10: 81 c7 e0 08 ret 2003d14: 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; 2003d18: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 2003d1c: 81 c7 e0 08 ret 2003d20: 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; 2003d24: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 2003d28: 81 c7 e0 08 ret 2003d2c: 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; 2003d30: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 2003d34: 81 c7 e0 08 ret 2003d38: 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; 2003d3c: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 2003d40: 81 c7 e0 08 ret 2003d44: 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; 2003d48: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 2003d4c: 81 c7 e0 08 ret 2003d50: 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; 2003d54: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 2003d58: 81 c7 e0 08 ret 2003d5c: 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; 2003d60: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 2003d64: 81 c7 e0 08 ret 2003d68: 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; 2003d6c: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 2003d70: 81 c7 e0 08 ret 2003d74: 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; 2003d78: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 2003d7c: 81 c7 e0 08 ret 2003d80: 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; 2003d84: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 2003d88: 81 c7 e0 08 ret 2003d8c: 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); 2003d90: 40 00 3b a7 call 2012c2c <__errno> 2003d94: b0 10 3f ff mov -1, %i0 2003d98: 82 10 20 09 mov 9, %g1 2003d9c: c2 22 00 00 st %g1, [ %o0 ] 2003da0: 81 c7 e0 08 ret 2003da4: 81 e8 00 00 restore rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 2003da8: 40 00 3b a1 call 2012c2c <__errno> <== NOT EXECUTED 2003dac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003db0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003db4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003db8: 81 c7 e0 08 ret <== NOT EXECUTED 2003dbc: 81 e8 00 00 restore <== NOT EXECUTED 0200b3d8 : void free( void *ptr ) { MSBUMP(free_calls, 1); 200b3d8: 9d e3 bf a0 save %sp, -96, %sp 200b3dc: 03 00 80 72 sethi %hi(0x201c800), %g1 200b3e0: 82 10 63 80 or %g1, 0x380, %g1 ! 201cb80 200b3e4: c4 00 60 0c ld [ %g1 + 0xc ], %g2 200b3e8: b2 10 00 18 mov %i0, %i1 200b3ec: 84 00 a0 01 inc %g2 if ( !ptr ) 200b3f0: 80 a6 20 00 cmp %i0, 0 200b3f4: 02 80 00 15 be 200b448 200b3f8: 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()) && 200b3fc: 03 00 80 73 sethi %hi(0x201cc00), %g1 200b400: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 201cee0 <_System_state_Current> 200b404: 80 a0 60 03 cmp %g1, 3 200b408: 02 80 00 17 be 200b464 200b40c: 03 00 80 72 sethi %hi(0x201c800), %g1 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200b410: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 ! 201c898 200b414: 80 a0 60 00 cmp %g1, 0 200b418: 02 80 00 06 be 200b430 200b41c: 21 00 80 70 sethi %hi(0x201c000), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 200b420: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 200b424: 9f c0 40 00 call %g1 <== NOT EXECUTED 200b428: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 200b42c: 21 00 80 70 sethi %hi(0x201c000), %l0 <== NOT EXECUTED 200b430: d0 04 21 80 ld [ %l0 + 0x180 ], %o0 ! 201c180 200b434: 40 00 07 1a call 200d09c <_Protected_heap_Free> 200b438: 92 10 00 19 mov %i1, %o1 200b43c: 80 8a 20 ff btst 0xff, %o0 200b440: 02 80 00 04 be 200b450 200b444: c2 04 21 80 ld [ %l0 + 0x180 ], %g1 200b448: 81 c7 e0 08 ret 200b44c: 81 e8 00 00 restore printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 200b450: 31 00 80 6d sethi %hi(0x201b400), %i0 <== NOT EXECUTED 200b454: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 200b458: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 200b45c: 7f ff e0 34 call 200352c <== NOT EXECUTED 200b460: 91 ee 21 38 restore %i0, 0x138, %o0 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 200b464: 40 00 01 37 call 200b940 200b468: 01 00 00 00 nop 200b46c: 80 8a 20 ff btst 0xff, %o0 200b470: 12 bf ff e8 bne 200b410 200b474: 03 00 80 72 sethi %hi(0x201c800), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 200b478: 40 00 01 44 call 200b988 <== NOT EXECUTED 200b47c: 81 e8 00 00 restore <== NOT EXECUTED 0202a260 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 202a260: 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 202a264: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 202a268: 82 10 60 a8 or %g1, 0xa8, %g1 ! 206e8a8 <== NOT EXECUTED 202a26c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202a270: 02 80 00 18 be 202a2d0 <== NOT EXECUTED 202a274: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 202a278: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202a27c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a280: 22 80 00 09 be,a 202a2a4 <== NOT EXECUTED 202a284: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a288: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a28c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a290: 22 80 00 05 be,a 202a2a4 <== NOT EXECUTED 202a294: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a298: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a29c: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 202a2a0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 202a2a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a2a8: 02 80 00 08 be 202a2c8 <== NOT EXECUTED 202a2ac: 01 00 00 00 nop <== NOT EXECUTED 202a2b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a2b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a2b8: 02 80 00 04 be 202a2c8 <== NOT EXECUTED 202a2bc: 01 00 00 00 nop <== NOT EXECUTED 202a2c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a2c4: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 202a2c8: 7f ff 6c 84 call 20054d8 <== NOT EXECUTED 202a2cc: 81 e8 00 00 restore <== NOT EXECUTED 202a2d0: 81 c7 e0 08 ret <== NOT EXECUTED 202a2d4: 81 e8 00 00 restore <== NOT EXECUTED 0201a10c : int fstat( int fd, struct stat *sbuf ) { 201a10c: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 201a110: 80 a6 60 00 cmp %i1, 0 201a114: 02 80 00 3b be 201a200 201a118: 03 00 80 70 sethi %hi(0x201c000), %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 201a11c: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201c174 201a120: 80 a6 00 01 cmp %i0, %g1 201a124: 1a 80 00 2b bcc 201a1d0 201a128: 03 00 80 72 sethi %hi(0x201c800), %g1 201a12c: d0 00 63 70 ld [ %g1 + 0x370 ], %o0 ! 201cb70 201a130: 83 2e 20 06 sll %i0, 6, %g1 201a134: b1 2e 20 03 sll %i0, 3, %i0 201a138: b0 06 00 01 add %i0, %g1, %i0 201a13c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 201a140: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 201a144: 80 88 61 00 btst 0x100, %g1 201a148: 02 80 00 22 be 201a1d0 201a14c: 01 00 00 00 nop if ( !iop->handlers ) 201a150: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 201a154: 80 a0 60 00 cmp %g1, 0 201a158: 02 80 00 1e be 201a1d0 201a15c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 201a160: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201a164: 80 a0 60 00 cmp %g1, 0 201a168: 02 80 00 20 be 201a1e8 201a16c: 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) ); 201a170: c0 26 40 00 clr [ %i1 ] 201a174: c0 26 60 04 clr [ %i1 + 4 ] 201a178: c0 26 60 08 clr [ %i1 + 8 ] 201a17c: c0 26 60 0c clr [ %i1 + 0xc ] 201a180: c0 26 60 10 clr [ %i1 + 0x10 ] 201a184: c0 26 60 14 clr [ %i1 + 0x14 ] 201a188: c0 26 60 18 clr [ %i1 + 0x18 ] 201a18c: c0 26 60 1c clr [ %i1 + 0x1c ] 201a190: c0 26 60 20 clr [ %i1 + 0x20 ] 201a194: c0 26 60 24 clr [ %i1 + 0x24 ] 201a198: c0 26 60 28 clr [ %i1 + 0x28 ] 201a19c: c0 26 60 2c clr [ %i1 + 0x2c ] 201a1a0: c0 26 60 30 clr [ %i1 + 0x30 ] 201a1a4: c0 26 60 34 clr [ %i1 + 0x34 ] 201a1a8: c0 26 60 38 clr [ %i1 + 0x38 ] 201a1ac: c0 26 60 3c clr [ %i1 + 0x3c ] 201a1b0: c0 26 60 40 clr [ %i1 + 0x40 ] 201a1b4: c0 26 60 44 clr [ %i1 + 0x44 ] return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 201a1b8: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 201a1bc: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 201a1c0: 9f c0 40 00 call %g1 201a1c4: 90 02 20 1c add %o0, 0x1c, %o0 } 201a1c8: 81 c7 e0 08 ret 201a1cc: 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 ); 201a1d0: 7f ff d7 17 call 200fe2c <__errno> 201a1d4: b0 10 3f ff mov -1, %i0 201a1d8: 82 10 20 09 mov 9, %g1 201a1dc: c2 22 00 00 st %g1, [ %o0 ] 201a1e0: 81 c7 e0 08 ret 201a1e4: 81 e8 00 00 restore if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 201a1e8: 7f ff d7 11 call 200fe2c <__errno> <== NOT EXECUTED 201a1ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a1f0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201a1f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a1f8: 81 c7 e0 08 ret <== NOT EXECUTED 201a1fc: 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 ); 201a200: 7f ff d7 0b call 200fe2c <__errno> 201a204: b0 10 3f ff mov -1, %i0 201a208: 82 10 20 0e mov 0xe, %g1 201a20c: c2 22 00 00 st %g1, [ %o0 ] 201a210: 81 c7 e0 08 ret 201a214: 81 e8 00 00 restore 02028d64 : #include int fsync( int fd ) { 2028d64: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2028d68: 03 00 81 a9 sethi %hi(0x206a400), %g1 2028d6c: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 206a624 2028d70: 80 a6 00 01 cmp %i0, %g1 2028d74: 1a 80 00 19 bcc 2028dd8 2028d78: 03 00 81 ba sethi %hi(0x206e800), %g1 iop = rtems_libio_iop( fd ); 2028d7c: d0 00 60 44 ld [ %g1 + 0x44 ], %o0 ! 206e844 2028d80: 83 2e 20 06 sll %i0, 6, %g1 2028d84: b1 2e 20 03 sll %i0, 3, %i0 2028d88: b0 06 00 01 add %i0, %g1, %i0 2028d8c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2028d90: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2028d94: 80 88 61 00 btst 0x100, %g1 2028d98: 02 80 00 10 be 2028dd8 2028d9c: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2028da0: 02 80 00 14 be 2028df0 2028da4: 01 00 00 00 nop /* * Now process the fsync(). */ if ( !iop->handlers ) 2028da8: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2028dac: 80 a0 60 00 cmp %g1, 0 2028db0: 02 80 00 0a be 2028dd8 2028db4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 2028db8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2028dbc: 80 a0 60 00 cmp %g1, 0 2028dc0: 02 80 00 12 be 2028e08 2028dc4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 2028dc8: 9f c0 40 00 call %g1 2028dcc: 01 00 00 00 nop } 2028dd0: 81 c7 e0 08 ret 2028dd4: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 2028dd8: 40 00 6e ba call 20448c0 <__errno> <== NOT EXECUTED 2028ddc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2028de0: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2028de4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2028de8: 81 c7 e0 08 ret <== NOT EXECUTED 2028dec: 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 ); 2028df0: 40 00 6e b4 call 20448c0 <__errno> 2028df4: b0 10 3f ff mov -1, %i0 2028df8: 82 10 20 16 mov 0x16, %g1 2028dfc: c2 22 00 00 st %g1, [ %o0 ] 2028e00: 81 c7 e0 08 ret 2028e04: 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 ); 2028e08: 40 00 6e ae call 20448c0 <__errno> 2028e0c: b0 10 3f ff mov -1, %i0 2028e10: 82 10 20 86 mov 0x86, %g1 2028e14: c2 22 00 00 st %g1, [ %o0 ] 2028e18: 81 c7 e0 08 ret 2028e1c: 81 e8 00 00 restore 0200b484 : int ftruncate( int fd, off_t length ) { 200b484: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200b488: 03 00 80 70 sethi %hi(0x201c000), %g1 200b48c: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201c174 200b490: 80 a6 00 01 cmp %i0, %g1 200b494: 1a 80 00 2b bcc 200b540 200b498: 03 00 80 72 sethi %hi(0x201c800), %g1 iop = rtems_libio_iop( fd ); 200b49c: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 ! 201cb70 200b4a0: 85 2e 20 06 sll %i0, 6, %g2 200b4a4: b1 2e 20 03 sll %i0, 3, %i0 200b4a8: b0 06 00 02 add %i0, %g2, %i0 200b4ac: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200b4b0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200b4b4: 80 88 61 00 btst 0x100, %g1 200b4b8: 02 80 00 22 be 200b540 200b4bc: 01 00 00 00 nop /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200b4c0: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 200b4c4: c2 27 bf ec st %g1, [ %fp + -20 ] 200b4c8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 200b4cc: c2 27 bf f0 st %g1, [ %fp + -16 ] 200b4d0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 200b4d4: c2 27 bf f4 st %g1, [ %fp + -12 ] 200b4d8: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 200b4dc: c2 27 bf f8 st %g1, [ %fp + -8 ] 200b4e0: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 if ( !loc.ops->node_type_h ) 200b4e4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200b4e8: 80 a0 60 00 cmp %g1, 0 200b4ec: 02 80 00 21 be 200b570 200b4f0: 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 ) 200b4f4: 9f c0 40 00 call %g1 200b4f8: 90 07 bf ec add %fp, -20, %o0 200b4fc: 80 a2 20 01 cmp %o0, 1 200b500: 02 80 00 22 be 200b588 200b504: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200b508: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200b50c: 80 88 60 04 btst 4, %g1 200b510: 02 80 00 12 be 200b558 200b514: 01 00 00 00 nop if ( !iop->handlers->ftruncate_h ) 200b518: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200b51c: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200b520: 80 a0 60 00 cmp %g1, 0 200b524: 02 80 00 13 be 200b570 200b528: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 200b52c: 92 10 00 19 mov %i1, %o1 200b530: 9f c0 40 00 call %g1 200b534: 94 10 00 1a mov %i2, %o2 } 200b538: 81 c7 e0 08 ret 200b53c: 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); 200b540: 40 00 12 3b call 200fe2c <__errno> <== NOT EXECUTED 200b544: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b548: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 200b54c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b550: 81 c7 e0 08 ret <== NOT EXECUTED 200b554: 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 ); 200b558: 40 00 12 35 call 200fe2c <__errno> <== NOT EXECUTED 200b55c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b560: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200b564: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b568: 81 c7 e0 08 ret <== NOT EXECUTED 200b56c: 81 e8 00 00 restore <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200b570: 40 00 12 2f call 200fe2c <__errno> <== NOT EXECUTED 200b574: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b578: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200b57c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200b580: 81 c7 e0 08 ret <== NOT EXECUTED 200b584: 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 ); 200b588: 40 00 12 29 call 200fe2c <__errno> 200b58c: b0 10 3f ff mov -1, %i0 200b590: 82 10 20 15 mov 0x15, %g1 200b594: c2 22 00 00 st %g1, [ %o0 ] 200b598: 81 c7 e0 08 ret 200b59c: 81 e8 00 00 restore 0205e504 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 205e504: 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 ); 205e508: 03 00 81 a9 sethi %hi(0x206a400), %g1 205e50c: c2 00 62 24 ld [ %g1 + 0x224 ], %g1 ! 206a624 205e510: 80 a6 00 01 cmp %i0, %g1 205e514: 1a 80 00 08 bcc 205e534 205e518: a0 10 20 00 clr %l0 205e51c: 03 00 81 ba sethi %hi(0x206e800), %g1 205e520: e0 00 60 44 ld [ %g1 + 0x44 ], %l0 ! 206e844 205e524: 83 2e 20 06 sll %i0, 6, %g1 205e528: b1 2e 20 03 sll %i0, 3, %i0 205e52c: b0 06 00 01 add %i0, %g1, %i0 205e530: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 205e534: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 205e538: c2 27 bf ec st %g1, [ %fp + -20 ] 205e53c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 205e540: c2 27 bf f0 st %g1, [ %fp + -16 ] 205e544: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 205e548: c2 27 bf f4 st %g1, [ %fp + -12 ] 205e54c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 205e550: c2 27 bf f8 st %g1, [ %fp + -8 ] 205e554: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 if ( !loc.ops->node_type_h ) 205e558: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 205e55c: 80 a0 60 00 cmp %g1, 0 205e560: 02 80 00 17 be 205e5bc 205e564: 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 ) 205e568: 9f c0 40 00 call %g1 205e56c: 90 07 bf ec add %fp, -20, %o0 205e570: 80 a2 20 01 cmp %o0, 1 205e574: 12 80 00 0c bne 205e5a4 205e578: 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 ) 205e57c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 205e580: c2 00 60 08 ld [ %g1 + 8 ], %g1 205e584: 80 a0 60 00 cmp %g1, 0 205e588: 02 80 00 0d be 205e5bc 205e58c: 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 ); 205e590: 92 10 00 19 mov %i1, %o1 205e594: 9f c0 40 00 call %g1 205e598: 94 10 00 1a mov %i2, %o2 } 205e59c: 81 c7 e0 08 ret 205e5a0: 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 ); 205e5a4: 7f ff 98 c7 call 20448c0 <__errno> 205e5a8: b0 10 3f ff mov -1, %i0 205e5ac: 82 10 20 14 mov 0x14, %g1 205e5b0: c2 22 00 00 st %g1, [ %o0 ] 205e5b4: 81 c7 e0 08 ret 205e5b8: 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 ); 205e5bc: 7f ff 98 c1 call 20448c0 <__errno> <== NOT EXECUTED 205e5c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205e5c4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 205e5c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205e5cc: 81 c7 e0 08 ret <== NOT EXECUTED 205e5d0: 81 e8 00 00 restore <== NOT EXECUTED 02028f5c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 2028f5c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2028f60: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED return _POSIX_types_Gid; } 2028f64: 81 c3 e0 08 retl <== NOT EXECUTED 2028f68: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED 02029658 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2029658: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 202965c: 7f ff ff b3 call 2029528 2029660: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 2029664: 11 00 81 93 sethi %hi(0x2064c00), %o0 2029668: 13 00 81 93 sethi %hi(0x2064c00), %o1 202966c: 90 12 20 f0 or %o0, 0xf0, %o0 2029670: 40 00 6f 3c call 2045360 2029674: 92 12 60 78 or %o1, 0x78, %o1 2029678: a0 92 20 00 orcc %o0, 0, %l0 202967c: 12 80 00 0b bne 20296a8 2029680: 92 10 00 1a mov %i2, %o1 2029684: 30 80 00 27 b,a 2029720 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 2029688: 40 00 85 d3 call 204add4 202968c: 92 10 00 18 mov %i0, %o1 2029690: 80 a0 00 08 cmp %g0, %o0 2029694: 82 60 3f ff subx %g0, -1, %g1 } else { match = (grp->gr_gid == gid); } if (match) { 2029698: 80 a0 60 00 cmp %g1, 0 202969c: 12 80 00 14 bne 20296ec 20296a0: 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)) { 20296a4: 92 10 00 1a mov %i2, %o1 20296a8: 94 10 00 1b mov %i3, %o2 20296ac: 96 10 00 1c mov %i4, %o3 20296b0: 7f ff fe d1 call 20291f4 20296b4: 90 10 00 10 mov %l0, %o0 20296b8: 80 a2 20 00 cmp %o0, 0 20296bc: 02 80 00 11 be 2029700 20296c0: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; fclose(fp); return -1; } if (name) { 20296c4: 32 bf ff f1 bne,a 2029688 20296c8: d0 06 80 00 ld [ %i2 ], %o0 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 20296cc: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 20296d0: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 20296d4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 20296d8: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 20296dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20296e0: 02 bf ff f2 be 20296a8 <== NOT EXECUTED 20296e4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 20296e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20296ec: 40 00 6c cd call 2044a20 20296f0: b0 10 20 00 clr %i0 *result = grp; 20296f4: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20296f8: 81 c7 e0 08 ret 20296fc: 81 e8 00 00 restore errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 2029700: 40 00 6c 70 call 20448c0 <__errno> <== NOT EXECUTED 2029704: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029708: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202970c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2029710: 40 00 6c c4 call 2044a20 <== NOT EXECUTED 2029714: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2029718: 81 c7 e0 08 ret <== NOT EXECUTED 202971c: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 2029720: 40 00 6c 68 call 20448c0 <__errno> <== NOT EXECUTED 2029724: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029728: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202972c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 2029730: 81 c7 e0 08 ret <== NOT EXECUTED 2029734: 81 e8 00 00 restore <== NOT EXECUTED 02029374 : return NULL; return p; } struct group *getgrent(void) { 2029374: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 2029378: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED 202937c: d0 00 61 3c ld [ %g1 + 0x13c ], %o0 ! 206e53c <== NOT EXECUTED 2029380: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029384: 32 80 00 04 bne,a 2029394 <== NOT EXECUTED 2029388: 31 00 81 b9 sethi %hi(0x206e400), %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) return NULL; return &grent; } 202938c: 81 c7 e0 08 ret <== NOT EXECUTED 2029390: 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)) 2029394: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED 2029398: 92 16 22 08 or %i0, 0x208, %o1 <== NOT EXECUTED 202939c: 94 12 a1 40 or %o2, 0x140, %o2 <== NOT EXECUTED 20293a0: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 20293a4: 7f ff ff 94 call 20291f4 <== NOT EXECUTED 20293a8: b0 16 22 08 or %i0, 0x208, %i0 <== NOT EXECUTED 20293ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20293b0: 02 bf ff f7 be 202938c <== NOT EXECUTED 20293b4: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &grent; } 20293b8: 81 c7 e0 08 ret <== NOT EXECUTED 20293bc: 81 e8 00 00 restore <== NOT EXECUTED 0202976c : } struct group *getgrgid( gid_t gid ) { 202976c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 2029770: 13 00 81 b9 sethi %hi(0x206e400), %o1 <== NOT EXECUTED 2029774: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2029778: 92 12 62 08 or %o1, 0x208, %o1 <== NOT EXECUTED 202977c: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2029780: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED 2029784: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2029788: 94 12 a1 40 or %o2, 0x140, %o2 <== NOT EXECUTED 202978c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2029790: 7f ff ff ea call 2029738 <== NOT EXECUTED 2029794: b0 10 20 00 clr %i0 <== NOT EXECUTED 2029798: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202979c: 22 80 00 02 be,a 20297a4 <== NOT EXECUTED 20297a0: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 20297a4: 81 c7 e0 08 ret <== NOT EXECUTED 20297a8: 81 e8 00 00 restore <== NOT EXECUTED 02029738 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2029738: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 202973c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2029740: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2029744: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2029748: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 202974c: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2029750: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2029754: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2029758: 90 10 20 00 clr %o0 <== NOT EXECUTED 202975c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029760: 7f ff ff be call 2029658 <== NOT EXECUTED 2029764: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 02029858 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2029858: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 202985c: 7f ff ff 33 call 2029528 2029860: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 2029864: 11 00 81 93 sethi %hi(0x2064c00), %o0 2029868: 13 00 81 93 sethi %hi(0x2064c00), %o1 202986c: 90 12 20 68 or %o0, 0x68, %o0 2029870: 40 00 6e bc call 2045360 2029874: 92 12 60 78 or %o1, 0x78, %o1 2029878: a0 92 20 00 orcc %o0, 0, %l0 202987c: 12 80 00 0b bne 20298a8 2029880: 92 10 00 1a mov %i2, %o1 2029884: 30 80 00 27 b,a 2029920 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 2029888: 40 00 85 53 call 204add4 202988c: 92 10 00 18 mov %i0, %o1 2029890: 80 a0 00 08 cmp %g0, %o0 2029894: 82 60 3f ff subx %g0, -1, %g1 } else { match = (pwd->pw_uid == uid); } if (match) { 2029898: 80 a0 60 00 cmp %g1, 0 202989c: 12 80 00 14 bne 20298ec 20298a0: 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)) { 20298a4: 92 10 00 1a mov %i2, %o1 20298a8: 94 10 00 1b mov %i3, %o2 20298ac: 96 10 00 1c mov %i4, %o3 20298b0: 7f ff fe c4 call 20293c0 20298b4: 90 10 00 10 mov %l0, %o0 20298b8: 80 a2 20 00 cmp %o0, 0 20298bc: 02 80 00 11 be 2029900 20298c0: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; fclose(fp); return -1; } if (name) { 20298c4: 32 bf ff f1 bne,a 2029888 20298c8: d0 06 80 00 ld [ %i2 ], %o0 match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 20298cc: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED 20298d0: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 20298d4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 20298d8: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED } if (match) { 20298dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20298e0: 02 bf ff f2 be 20298a8 <== NOT EXECUTED 20298e4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED fclose(fp); 20298e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20298ec: 40 00 6c 4d call 2044a20 20298f0: b0 10 20 00 clr %i0 *result = pwd; 20298f4: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20298f8: 81 c7 e0 08 ret 20298fc: 81 e8 00 00 restore errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 2029900: 40 00 6b f0 call 20448c0 <__errno> <== NOT EXECUTED 2029904: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029908: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202990c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2029910: 40 00 6c 44 call 2044a20 <== NOT EXECUTED 2029914: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2029918: 81 c7 e0 08 ret <== NOT EXECUTED 202991c: 81 e8 00 00 restore <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 2029920: 40 00 6b e8 call 20448c0 <__errno> <== NOT EXECUTED 2029924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029928: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202992c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 2029930: 81 c7 e0 08 ret <== NOT EXECUTED 2029934: 81 e8 00 00 restore <== NOT EXECUTED 020294dc : return NULL; return p; } struct passwd *getpwent(void) { 20294dc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 20294e0: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED 20294e4: d0 00 60 54 ld [ %g1 + 0x54 ], %o0 ! 206e454 <== NOT EXECUTED 20294e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20294ec: 32 80 00 04 bne,a 20294fc <== NOT EXECUTED 20294f0: 31 00 81 b9 sethi %hi(0x206e400), %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) return NULL; return &pwent; } 20294f4: 81 c7 e0 08 ret <== NOT EXECUTED 20294f8: 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)) 20294fc: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED 2029500: 92 16 21 20 or %i0, 0x120, %o1 <== NOT EXECUTED 2029504: 94 12 a0 58 or %o2, 0x58, %o2 <== NOT EXECUTED 2029508: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202950c: 7f ff ff ad call 20293c0 <== NOT EXECUTED 2029510: b0 16 21 20 or %i0, 0x120, %i0 <== NOT EXECUTED 2029514: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029518: 02 bf ff f7 be 20294f4 <== NOT EXECUTED 202951c: 01 00 00 00 nop <== NOT EXECUTED return NULL; return &pwent; } 2029520: 81 c7 e0 08 ret <== NOT EXECUTED 2029524: 81 e8 00 00 restore <== NOT EXECUTED 0202996c : } struct passwd *getpwuid( uid_t uid ) { 202996c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 2029970: 13 00 81 b9 sethi %hi(0x206e400), %o1 <== NOT EXECUTED 2029974: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2029978: 92 12 61 20 or %o1, 0x120, %o1 <== NOT EXECUTED 202997c: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2029980: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED 2029984: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2029988: 94 12 a0 58 or %o2, 0x58, %o2 <== NOT EXECUTED 202998c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2029990: 7f ff ff ea call 2029938 <== NOT EXECUTED 2029994: b0 10 20 00 clr %i0 <== NOT EXECUTED 2029998: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202999c: 22 80 00 02 be,a 20299a4 <== NOT EXECUTED 20299a0: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 20299a4: 81 c7 e0 08 ret <== NOT EXECUTED 20299a8: 81 e8 00 00 restore <== NOT EXECUTED 02029938 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2029938: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 202993c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2029940: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2029944: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2029948: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 202994c: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2029950: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2029954: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2029958: 90 10 20 00 clr %o0 <== NOT EXECUTED 202995c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2029960: 7f ff ff be call 2029858 <== NOT EXECUTED 2029964: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0200b5c0 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 200b5c0: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 200b5c4: 80 a6 20 00 cmp %i0, 0 200b5c8: 02 80 00 11 be 200b60c 200b5cc: 01 00 00 00 nop { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 200b5d0: 7f ff db 37 call 20022ac 200b5d4: 01 00 00 00 nop 200b5d8: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 200b5dc: 40 00 05 6a call 200cb84 <_TOD_Get> 200b5e0: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 200b5e4: 7f ff db 36 call 20022bc 200b5e8: 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; 200b5ec: 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; 200b5f0: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 200b5f4: 92 10 23 e8 mov 0x3e8, %o1 200b5f8: 40 00 37 43 call 2019304 <.div> 200b5fc: c2 26 00 00 st %g1, [ %i0 ] 200b600: 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; } 200b604: 81 c7 e0 08 ret 200b608: 91 e8 20 00 restore %g0, 0, %o0 void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 200b60c: 40 00 12 08 call 200fe2c <__errno> <== NOT EXECUTED 200b610: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200b614: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200b618: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 200b61c: 81 c7 e0 08 ret <== NOT EXECUTED 200b620: 81 e8 00 00 restore <== NOT EXECUTED 02005610 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 2005610: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2005614: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED return _POSIX_types_Uid; } 2005618: 81 c3 e0 08 retl <== NOT EXECUTED 200561c: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 0201467c : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 201467c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2014680: e0 06 40 00 ld [ %i1 ], %l0 2014684: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 2014688: 82 04 20 54 add %l0, 0x54, %g1 201468c: 80 a0 80 01 cmp %g2, %g1 2014690: 12 80 00 30 bne 2014750 2014694: 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 ) 2014698: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 201469c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20146a0: 80 a4 00 01 cmp %l0, %g1 20146a4: 02 80 00 31 be 2014768 20146a8: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 20146ac: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 20146b0: 80 a0 60 00 cmp %g1, 0 20146b4: 12 80 00 2d bne 2014768 20146b8: 01 00 00 00 nop /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 20146bc: c2 04 20 08 ld [ %l0 + 8 ], %g1 20146c0: 80 a0 60 00 cmp %g1, 0 20146c4: 22 80 00 06 be,a 20146dc 20146c8: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 20146cc: 7f ff d0 b7 call 20089a8 <_Chain_Extract> 20146d0: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 20146d4: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20146d8: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 20146dc: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20146e0: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 20146e4: 90 07 bf f8 add %fp, -8, %o0 20146e8: 7f ff be 39 call 2003fcc 20146ec: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 20146f0: 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) ) { 20146f4: 90 10 00 10 mov %l0, %o0 20146f8: 7f ff f1 78 call 2010cd8 20146fc: c2 24 20 48 st %g1, [ %l0 + 0x48 ] 2014700: 80 a2 20 00 cmp %o0, 0 2014704: 12 80 00 11 bne 2014748 2014708: 01 00 00 00 nop 201470c: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 2014710: 80 a0 60 00 cmp %g1, 0 2014714: 12 80 00 0d bne 2014748 2014718: 03 00 80 89 sethi %hi(0x2022400), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 201471c: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 ! 20224e8 2014720: c4 06 40 00 ld [ %i1 ], %g2 2014724: c6 00 60 04 ld [ %g1 + 4 ], %g3 2014728: 80 a0 c0 02 cmp %g3, %g2 201472c: 22 80 00 02 be,a 2014734 2014730: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 2014734: 90 10 00 10 mov %l0, %o0 2014738: 7f ff bd fa call 2003f20 201473c: b0 10 20 00 clr %i0 2014740: 81 c7 e0 08 ret 2014744: 81 e8 00 00 restore } return 0; } 2014748: 81 c7 e0 08 ret 201474c: 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 ); 2014750: 40 00 04 5b call 20158bc <__errno> 2014754: b0 10 3f ff mov -1, %i0 2014758: 82 10 20 5a mov 0x5a, %g1 201475c: c2 22 00 00 st %g1, [ %o0 ] 2014760: 81 c7 e0 08 ret 2014764: 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 ); 2014768: 40 00 04 55 call 20158bc <__errno> 201476c: b0 10 3f ff mov -1, %i0 2014770: 82 10 20 10 mov 0x10, %g1 2014774: c2 22 00 00 st %g1, [ %o0 ] 2014778: 81 c7 e0 08 ret 201477c: 81 e8 00 00 restore 02029528 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 2029528: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 202952c: 03 00 81 b9 sethi %hi(0x206e400), %g1 2029530: c4 48 60 50 ldsb [ %g1 + 0x50 ], %g2 ! 206e450 2029534: 80 a0 a0 00 cmp %g2, 0 2029538: 02 80 00 04 be 2029548 202953c: 84 10 20 01 mov 1, %g2 2029540: 81 c7 e0 08 ret 2029544: 81 e8 00 00 restore return; etc_passwd_initted = 1; mkdir("/etc", 0777); 2029548: 92 10 21 ff mov 0x1ff, %o1 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 202954c: c4 28 60 50 stb %g2, [ %g1 + 0x50 ] mkdir("/etc", 0777); 2029550: 11 00 81 93 sethi %hi(0x2064c00), %o0 2029554: 7f ff 72 10 call 2005d94 2029558: 90 12 20 60 or %o0, 0x60, %o0 ! 2064c60 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 202955c: 31 00 81 93 sethi %hi(0x2064c00), %i0 2029560: 21 00 81 93 sethi %hi(0x2064c00), %l0 2029564: 90 16 20 68 or %i0, 0x68, %o0 2029568: 40 00 6f 7e call 2045360 202956c: 92 14 20 78 or %l0, 0x78, %o1 2029570: 80 a2 20 00 cmp %o0, 0 2029574: 22 80 00 0d be,a 20295a8 2029578: 90 16 20 68 or %i0, 0x68, %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); 202957c: 40 00 6d 29 call 2044a20 2029580: 01 00 00 00 nop } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 2029584: 92 14 20 78 or %l0, 0x78, %o1 2029588: 21 00 81 93 sethi %hi(0x2064c00), %l0 202958c: 40 00 6f 75 call 2045360 2029590: 90 14 20 f0 or %l0, 0xf0, %o0 ! 2064cf0 2029594: 80 a2 20 00 cmp %o0, 0 2029598: 22 80 00 11 be,a 20295dc 202959c: 90 14 20 f0 or %l0, 0xf0, %o0 fclose(fp); 20295a0: 40 00 6d 20 call 2044a20 <== NOT EXECUTED 20295a4: 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) { 20295a8: 13 00 81 93 sethi %hi(0x2064c00), %o1 20295ac: 40 00 6f 6d call 2045360 20295b0: 92 12 60 80 or %o1, 0x80, %o1 ! 2064c80 20295b4: b0 92 20 00 orcc %o0, 0, %i0 20295b8: 02 bf ff f3 be 2029584 20295bc: 92 10 20 01 mov 1, %o1 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 20295c0: 94 10 20 66 mov 0x66, %o2 20295c4: 96 10 00 18 mov %i0, %o3 20295c8: 11 00 81 93 sethi %hi(0x2064c00), %o0 20295cc: 40 00 74 45 call 20466e0 20295d0: 90 12 20 88 or %o0, 0x88, %o0 ! 2064c88 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 20295d4: 10 bf ff ea b 202957c 20295d8: 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) { 20295dc: 13 00 81 93 sethi %hi(0x2064c00), %o1 20295e0: 40 00 6f 60 call 2045360 20295e4: 92 12 60 80 or %o1, 0x80, %o1 ! 2064c80 20295e8: b0 92 20 00 orcc %o0, 0, %i0 20295ec: 02 bf ff d5 be 2029540 20295f0: 11 00 81 93 sethi %hi(0x2064c00), %o0 fprintf( fp, "root:x:0:root\n" 20295f4: 92 10 20 01 mov 1, %o1 20295f8: 94 10 20 2a mov 0x2a, %o2 20295fc: 96 10 00 18 mov %i0, %o3 2029600: 40 00 74 38 call 20466e0 2029604: 90 12 21 00 or %o0, 0x100, %o0 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 2029608: 40 00 6d 06 call 2044a20 202960c: 81 e8 00 00 restore 02006878 : int ioctl( int fd, ioctl_command_t command, ... ) { 2006878: 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 ); 200687c: 03 00 80 89 sethi %hi(0x2022400), %g1 2006880: c2 00 63 c4 ld [ %g1 + 0x3c4 ], %g1 ! 20227c4 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 2006884: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2006888: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 200688c: 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 ); 2006890: 80 a6 00 01 cmp %i0, %g1 2006894: 1a 80 00 18 bcc 20068f4 2006898: f4 27 a0 4c st %i2, [ %fp + 0x4c ] iop = rtems_libio_iop( fd ); 200689c: 03 00 80 8c sethi %hi(0x2023000), %g1 20068a0: d0 00 62 9c ld [ %g1 + 0x29c ], %o0 ! 202329c 20068a4: 83 2e 20 06 sll %i0, 6, %g1 20068a8: b1 2e 20 03 sll %i0, 3, %i0 20068ac: b0 06 00 01 add %i0, %g1, %i0 20068b0: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 20068b4: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 20068b8: 80 88 61 00 btst 0x100, %g1 20068bc: 02 80 00 0e be 20068f4 20068c0: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 20068c4: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 20068c8: 80 a0 60 00 cmp %g1, 0 20068cc: 02 80 00 0a be 20068f4 20068d0: c4 27 bf fc st %g2, [ %fp + -4 ] rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 20068d4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20068d8: 80 a0 60 00 cmp %g1, 0 20068dc: 02 80 00 0c be 200690c 20068e0: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 20068e4: 9f c0 40 00 call %g1 20068e8: 94 10 00 1a mov %i2, %o2 return rc; } 20068ec: 81 c7 e0 08 ret 20068f0: 91 e8 00 08 restore %g0, %o0, %o0 /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 20068f4: 40 00 3d 00 call 2015cf4 <__errno> 20068f8: b0 10 3f ff mov -1, %i0 20068fc: 82 10 20 09 mov 9, %g1 2006900: c2 22 00 00 st %g1, [ %o0 ] 2006904: 81 c7 e0 08 ret 2006908: 81 e8 00 00 restore if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 200690c: 40 00 3c fa call 2015cf4 <__errno> <== NOT EXECUTED 2006910: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2006914: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006918: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200691c: 81 c7 e0 08 ret <== NOT EXECUTED 2006920: 81 e8 00 00 restore <== NOT EXECUTED 02004154 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2004154: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2004158: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 200415c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2004160: 02 80 00 03 be 200416c <== NOT EXECUTED 2004164: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2004168: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 200416c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2004170: 02 80 00 0c be 20041a0 <== NOT EXECUTED 2004174: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 2004178: 05 00 80 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED 200417c: c4 00 a3 d0 ld [ %g2 + 0x3d0 ], %g2 ! 201c3d0 <__ctype_ptr__><== NOT EXECUTED 2004180: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 2004184: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 2004188: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 200418c: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 2004190: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2004194: 22 80 00 02 be,a 200419c <== NOT EXECUTED 2004198: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 200419c: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 20041a0: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 20041a4: 02 80 00 16 be 20041fc <== NOT EXECUTED 20041a8: 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)) { 20041ac: 02 80 00 41 be 20042b0 <== NOT EXECUTED 20041b0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 20041b4: 32 80 00 1a bne,a 200421c <== NOT EXECUTED 20041b8: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 20041bc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 20041c0: 05 00 80 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED 20041c4: c4 00 a3 20 ld [ %g2 + 0x320 ], %g2 ! 201c320 <== NOT EXECUTED 20041c8: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED 20041cc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20041d0: 16 80 00 09 bge 20041f4 <== NOT EXECUTED 20041d4: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 20041d8: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 20041dc: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 20041e0: 12 80 00 39 bne 20042c4 <== NOT EXECUTED 20041e4: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 20041e8: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 20041ec: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 20041f0: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 20041f4: 81 c7 e0 08 ret <== NOT EXECUTED 20041f8: 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) 20041fc: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 2004200: 02 80 00 04 be 2004210 <== NOT EXECUTED 2004204: 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; } 2004208: 81 c7 e0 08 ret <== NOT EXECUTED 200420c: 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) 2004210: 32 80 00 02 bne,a 2004218 <== NOT EXECUTED 2004214: 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)) { 2004218: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 200421c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2004220: 22 bf ff e8 be,a 20041c0 <== NOT EXECUTED 2004224: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2004228: c4 0e 60 43 ldub [ %i1 + 0x43 ], %g2 <== NOT EXECUTED 200422c: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2004230: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004234: 22 80 00 43 be,a 2004340 <== NOT EXECUTED 2004238: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 200423c: c4 0e 60 44 ldub [ %i1 + 0x44 ], %g2 <== NOT EXECUTED 2004240: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004244: 22 80 00 2e be,a 20042fc <== NOT EXECUTED 2004248: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 200424c: c4 0e 60 45 ldub [ %i1 + 0x45 ], %g2 <== NOT EXECUTED 2004250: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004254: 02 bf ff e8 be 20041f4 <== NOT EXECUTED 2004258: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 200425c: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED 2004260: 02 80 00 2c be 2004310 <== NOT EXECUTED 2004264: 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]) 2004268: c4 0e 60 4c ldub [ %i1 + 0x4c ], %g2 <== NOT EXECUTED 200426c: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004270: 02 80 00 07 be 200428c <== NOT EXECUTED 2004274: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 2004278: c4 0e 60 51 ldub [ %i1 + 0x51 ], %g2 <== NOT EXECUTED 200427c: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED 2004280: 32 bf ff d0 bne,a 20041c0 <== NOT EXECUTED 2004284: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2004288: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 200428c: 12 80 00 18 bne 20042ec <== NOT EXECUTED 2004290: 01 00 00 00 nop <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2004294: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004298: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 200429c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 20042a0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 20042a4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 20042a8: 81 c7 e0 08 ret <== NOT EXECUTED 20042ac: 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)) { 20042b0: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 20042b4: 32 bf ff d9 bne,a 2004218 <== NOT EXECUTED 20042b8: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 20042bc: 10 bf ff d8 b 200421c <== NOT EXECUTED 20042c0: 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); 20042c4: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 20042c8: 7f ff fe f6 call 2003ea0 <== NOT EXECUTED 20042cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20042d0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 20042d4: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 20042d8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 20042dc: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 20042e0: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 20042e4: 81 c7 e0 08 ret <== NOT EXECUTED 20042e8: 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); 20042ec: 7f ff fe ed call 2003ea0 <== NOT EXECUTED 20042f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 20042f4: 10 bf ff e9 b 2004298 <== NOT EXECUTED 20042f8: 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); 20042fc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2004300: 7f ff ff 08 call 2003f20 <== NOT EXECUTED 2004304: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 2004308: 81 c7 e0 08 ret <== NOT EXECUTED 200430c: 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)) 2004310: 22 80 00 05 be,a 2004324 <== NOT EXECUTED 2004314: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2004318: 7f ff fe e2 call 2003ea0 <== NOT EXECUTED 200431c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2004320: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2004324: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2004328: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 200432c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 2004330: 82 00 60 01 inc %g1 <== NOT EXECUTED 2004334: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2004338: 81 c7 e0 08 ret <== NOT EXECUTED 200433c: 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); 2004340: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004344: 7f ff fe f7 call 2003f20 <== NOT EXECUTED 2004348: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; 200434c: 81 c7 e0 08 ret <== NOT EXECUTED 2004350: 81 e8 00 00 restore <== NOT EXECUTED 0200f714 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 200f714: 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() ) 200f718: 7f ff fb a2 call 200e5a0 200f71c: 01 00 00 00 nop 200f720: 80 a2 00 18 cmp %o0, %i0 200f724: 12 80 00 b6 bne 200f9fc 200f728: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) 200f72c: 02 80 00 ba be 200fa14 200f730: 82 06 7f ff add %i1, -1, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 200f734: 80 a0 60 1f cmp %g1, 0x1f 200f738: 18 80 00 b7 bgu 200fa14 200f73c: 23 00 80 74 sethi %hi(0x201d000), %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 ) 200f740: a5 2e 60 02 sll %i1, 2, %l2 200f744: a2 14 62 d4 or %l1, 0x2d4, %l1 200f748: a7 2e 60 04 sll %i1, 4, %l3 200f74c: 84 24 c0 12 sub %l3, %l2, %g2 200f750: 84 04 40 02 add %l1, %g2, %g2 200f754: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200f758: 80 a0 a0 01 cmp %g2, 1 200f75c: 02 80 00 45 be 200f870 200f760: 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 ) ) 200f764: 80 a6 60 04 cmp %i1, 4 200f768: 02 80 00 44 be 200f878 200f76c: 80 a6 60 08 cmp %i1, 8 200f770: 02 80 00 42 be 200f878 200f774: 80 a6 60 0b cmp %i1, 0xb 200f778: 02 80 00 40 be 200f878 200f77c: a0 10 20 01 mov 1, %l0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 200f780: f2 27 bf f4 st %i1, [ %fp + -12 ] siginfo->si_code = SI_USER; 200f784: e0 27 bf f8 st %l0, [ %fp + -8 ] if ( !value ) { 200f788: 80 a6 a0 00 cmp %i2, 0 200f78c: 02 80 00 41 be 200f890 200f790: a1 2c 00 01 sll %l0, %g1, %l0 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; 200f794: c2 06 80 00 ld [ %i2 ], %g1 200f798: c2 27 bf fc st %g1, [ %fp + -4 ] 200f79c: 03 00 80 73 sethi %hi(0x201cc00), %g1 200f7a0: c4 00 61 40 ld [ %g1 + 0x140 ], %g2 ! 201cd40 <_Thread_Dispatch_disable_level> 200f7a4: 84 00 a0 01 inc %g2 200f7a8: c4 20 61 40 st %g2, [ %g1 + 0x140 ] /* * 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; 200f7ac: 03 00 80 73 sethi %hi(0x201cc00), %g1 200f7b0: c2 00 62 00 ld [ %g1 + 0x200 ], %g1 ! 201ce00 <_Thread_Executing> api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200f7b4: c4 00 61 6c ld [ %g1 + 0x16c ], %g2 200f7b8: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 200f7bc: 80 ac 00 02 andncc %l0, %g2, %g0 200f7c0: 12 80 00 1a bne 200f828 200f7c4: 09 00 80 75 sethi %hi(0x201d400), %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 ; 200f7c8: c4 01 20 60 ld [ %g4 + 0x60 ], %g2 ! 201d460 <_POSIX_signals_Wait_queue> 200f7cc: 88 11 20 60 or %g4, 0x60, %g4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200f7d0: 88 01 20 04 add %g4, 4, %g4 200f7d4: 80 a0 80 04 cmp %g2, %g4 200f7d8: 02 80 00 30 be 200f898 200f7dc: 82 10 00 02 mov %g2, %g1 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200f7e0: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 200f7e4: 80 8c 00 03 btst %l0, %g3 200f7e8: 02 80 00 0c be 200f818 200f7ec: 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; 200f7f0: 10 80 00 0f b 200f82c 200f7f4: 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 ; 200f7f8: 80 a0 80 04 cmp %g2, %g4 200f7fc: 22 80 00 28 be,a 200f89c 200f800: 03 00 80 70 sethi %hi(0x201c000), %g1 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200f804: 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 ]; 200f808: 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) 200f80c: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 200f810: 12 80 00 06 bne 200f828 <== NOT EXECUTED 200f814: 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) 200f818: c6 00 e0 cc ld [ %g3 + 0xcc ], %g3 200f81c: 80 ac 00 03 andncc %l0, %g3, %g0 200f820: 22 bf ff f6 be,a 200f7f8 200f824: 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; 200f828: 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 ) ) { 200f82c: 90 10 00 01 mov %g1, %o0 200f830: 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; 200f834: 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 ) ) { 200f838: 40 00 00 ba call 200fb20 <_POSIX_signals_Unblock_thread> 200f83c: 94 07 bf f4 add %fp, -12, %o2 200f840: 80 8a 20 ff btst 0xff, %o0 200f844: 12 80 00 5a bne 200f9ac 200f848: 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 ); 200f84c: 40 00 00 a5 call 200fae0 <_POSIX_signals_Set_process_signals> 200f850: 90 10 00 10 mov %l0, %o0 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 200f854: a4 24 c0 12 sub %l3, %l2, %l2 200f858: c2 04 40 12 ld [ %l1 + %l2 ], %g1 200f85c: 80 a0 60 02 cmp %g1, 2 200f860: 02 80 00 57 be 200f9bc 200f864: 11 00 80 75 sethi %hi(0x201d400), %o0 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 200f868: 7f ff e2 d2 call 20083b0 <_Thread_Enable_dispatch> 200f86c: b0 10 20 00 clr %i0 return 0; } 200f870: 81 c7 e0 08 ret 200f874: 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 ); 200f878: 40 00 01 38 call 200fd58 200f87c: 01 00 00 00 nop 200f880: 40 00 00 f9 call 200fc64 200f884: 92 10 00 19 mov %i1, %o1 200f888: 81 c7 e0 08 ret 200f88c: 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; 200f890: 10 bf ff c3 b 200f79c 200f894: c0 27 bf fc clr [ %fp + -4 ] * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 200f898: 03 00 80 70 sethi %hi(0x201c000), %g1 200f89c: da 08 62 24 ldub [ %g1 + 0x224 ], %o5 ! 201c224 200f8a0: 13 00 80 73 sethi %hi(0x201cc00), %o1 200f8a4: 9a 03 60 01 inc %o5 200f8a8: 92 12 60 a8 or %o1, 0xa8, %o1 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 200f8ac: 82 10 20 00 clr %g1 200f8b0: 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) ) { 200f8b4: 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 ] ) 200f8b8: c4 02 40 00 ld [ %o1 ], %g2 200f8bc: 80 a0 a0 00 cmp %g2, 0 200f8c0: 22 80 00 2d be,a 200f974 200f8c4: 92 02 60 04 add %o1, 4, %o1 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 200f8c8: c4 00 a0 04 ld [ %g2 + 4 ], %g2 */ if ( !the_info ) continue; #endif maximum = the_info->maximum; 200f8cc: d8 10 a0 10 lduh [ %g2 + 0x10 ], %o4 object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200f8d0: 80 a3 20 00 cmp %o4, 0 200f8d4: 02 80 00 27 be 200f970 200f8d8: d6 00 a0 1c ld [ %g2 + 0x1c ], %o3 200f8dc: 84 10 20 01 mov 1, %g2 the_thread = (Thread_Control *) object_table[ index ]; 200f8e0: 87 28 a0 02 sll %g2, 2, %g3 200f8e4: c6 02 c0 03 ld [ %o3 + %g3 ], %g3 if ( !the_thread ) 200f8e8: 80 a0 e0 00 cmp %g3, 0 200f8ec: 02 80 00 1e be 200f964 200f8f0: 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 ) 200f8f4: c8 00 e0 14 ld [ %g3 + 0x14 ], %g4 200f8f8: 80 a1 00 0d cmp %g4, %o5 200f8fc: 18 80 00 1b bgu 200f968 200f900: 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 ]; 200f904: d4 00 e1 6c ld [ %g3 + 0x16c ], %o2 200f908: d4 02 a0 cc ld [ %o2 + 0xcc ], %o2 200f90c: 80 ac 00 0a andncc %l0, %o2, %g0 200f910: 02 80 00 16 be 200f968 200f914: 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 ) { 200f918: 80 a1 00 0d cmp %g4, %o5 200f91c: 2a 80 00 11 bcs,a 200f960 200f920: 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 ) ) { 200f924: d4 00 60 10 ld [ %g1 + 0x10 ], %o2 200f928: 80 a2 a0 00 cmp %o2, 0 200f92c: 02 80 00 0f be 200f968 200f930: 80 a3 00 02 cmp %o4, %g2 /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 200f934: de 00 e0 10 ld [ %g3 + 0x10 ], %o7 200f938: 80 a3 e0 00 cmp %o7, 0 200f93c: 22 80 00 09 be,a 200f960 200f940: 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) ) { 200f944: 80 8a 80 1a btst %o2, %i2 200f948: 12 80 00 08 bne 200f968 200f94c: 80 a3 00 02 cmp %o4, %g2 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 200f950: 80 8b c0 1a btst %o7, %i2 200f954: 02 80 00 05 be 200f968 200f958: 80 a3 00 02 cmp %o4, %g2 200f95c: 9a 10 00 04 mov %g4, %o5 200f960: 82 10 00 03 mov %g3, %g1 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200f964: 80 a3 00 02 cmp %o4, %g2 200f968: 1a bf ff df bcc 200f8e4 200f96c: 87 28 a0 02 sll %g2, 2, %g3 200f970: 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++) { 200f974: 80 a2 40 08 cmp %o1, %o0 200f978: 32 bf ff d1 bne,a 200f8bc 200f97c: c4 02 40 00 ld [ %o1 ], %g2 } } } } if ( interested ) { 200f980: 80 a0 60 00 cmp %g1, 0 200f984: 02 bf ff b2 be 200f84c 200f988: 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 ) ) { 200f98c: 90 10 00 01 mov %g1, %o0 200f990: 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; 200f994: 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 ) ) { 200f998: 40 00 00 62 call 200fb20 <_POSIX_signals_Unblock_thread> 200f99c: 94 07 bf f4 add %fp, -12, %o2 200f9a0: 80 8a 20 ff btst 0xff, %o0 200f9a4: 02 bf ff aa be 200f84c 200f9a8: 01 00 00 00 nop _Thread_Enable_dispatch(); 200f9ac: 7f ff e2 81 call 20083b0 <_Thread_Enable_dispatch> 200f9b0: b0 10 20 00 clr %i0 ! 0 return 0; 200f9b4: 81 c7 e0 08 ret 200f9b8: 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 *) 200f9bc: 7f ff f3 f2 call 200c984 <_Chain_Get> 200f9c0: 90 12 20 54 or %o0, 0x54, %o0 _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 200f9c4: 80 a2 20 00 cmp %o0, 0 200f9c8: 02 80 00 19 be 200fa2c 200f9cc: 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 ); 200f9d0: 92 10 00 08 mov %o0, %o1 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; 200f9d4: c2 22 20 08 st %g1, [ %o0 + 8 ] 200f9d8: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f9dc: c2 22 20 0c st %g1, [ %o0 + 0xc ] 200f9e0: c2 07 bf fc ld [ %fp + -4 ], %g1 200f9e4: c2 22 20 10 st %g1, [ %o0 + 0x10 ] _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 200f9e8: 11 00 80 75 sethi %hi(0x201d400), %o0 200f9ec: 90 12 20 cc or %o0, 0xcc, %o0 ! 201d4cc <_POSIX_signals_Siginfo> 200f9f0: 7f ff dc 23 call 2006a7c <_Chain_Append> 200f9f4: 90 02 00 12 add %o0, %l2, %o0 200f9f8: 30 bf ff 9c b,a 200f868 /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); 200f9fc: 40 00 01 0c call 200fe2c <__errno> 200fa00: b0 10 3f ff mov -1, %i0 200fa04: 82 10 20 03 mov 3, %g1 200fa08: c2 22 00 00 st %g1, [ %o0 ] 200fa0c: 81 c7 e0 08 ret 200fa10: 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 ); 200fa14: 40 00 01 06 call 200fe2c <__errno> 200fa18: b0 10 3f ff mov -1, %i0 200fa1c: 82 10 20 16 mov 0x16, %g1 200fa20: c2 22 00 00 st %g1, [ %o0 ] 200fa24: 81 c7 e0 08 ret 200fa28: 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(); 200fa2c: 7f ff e2 61 call 20083b0 <_Thread_Enable_dispatch> 200fa30: b0 10 3f ff mov -1, %i0 rtems_set_errno_and_return_minus_one( EAGAIN ); 200fa34: 40 00 00 fe call 200fe2c <__errno> 200fa38: 01 00 00 00 nop 200fa3c: 82 10 20 0b mov 0xb, %g1 ! b 200fa40: c2 22 00 00 st %g1, [ %o0 ] 200fa44: 81 c7 e0 08 ret 200fa48: 81 e8 00 00 restore 0201a3e8 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 201a3e8: 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())) 201a3ec: 03 00 80 73 sethi %hi(0x201cc00), %g1 201a3f0: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 201cee0 <_System_state_Current> 201a3f4: 80 a0 60 03 cmp %g1, 3 201a3f8: 02 80 00 04 be 201a408 201a3fc: 03 00 80 6f sethi %hi(0x201bc00), %g1 201a400: 81 c7 e0 08 ret <== NOT EXECUTED 201a404: 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) { 201a408: 21 00 80 70 sethi %hi(0x201c000), %l0 201a40c: e2 00 60 90 ld [ %g1 + 0x90 ], %l1 201a410: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 201a414: 80 a0 40 11 cmp %g1, %l1 201a418: 02 80 00 05 be 201a42c 201a41c: 01 00 00 00 nop _wrapup_reent(_global_impure_ptr); 201a420: 40 00 01 80 call 201aa20 <_wrapup_reent> 201a424: 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; 201a428: e2 24 23 d8 st %l1, [ %l0 + 0x3d8 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 201a42c: 7f ff d6 d8 call 200ff8c 201a430: d0 04 60 04 ld [ %l1 + 4 ], %o0 fclose (stdout); 201a434: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 201a438: 7f ff d6 d5 call 200ff8c 201a43c: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 201a440: c2 04 23 d8 ld [ %l0 + 0x3d8 ], %g1 201a444: f0 00 60 0c ld [ %g1 + 0xc ], %i0 201a448: 7f ff d6 d1 call 200ff8c 201a44c: 81 e8 00 00 restore 02029ac0 : int link( const char *existing, const char *new ) { 2029ac0: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 2029ac4: 40 00 86 c5 call 204b5d8 2029ac8: 90 10 00 18 mov %i0, %o0 2029acc: a0 07 bf e8 add %fp, -24, %l0 2029ad0: 92 10 00 08 mov %o0, %o1 2029ad4: 94 10 20 00 clr %o2 2029ad8: 90 10 00 18 mov %i0, %o0 2029adc: 96 10 00 10 mov %l0, %o3 2029ae0: 98 10 20 01 mov 1, %o4 2029ae4: 7f ff 6e 41 call 20053e8 2029ae8: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 2029aec: 80 a2 20 00 cmp %o0, 0 2029af0: 12 80 00 89 bne 2029d14 2029af4: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 2029af8: c2 4e 40 00 ldsb [ %i1 ], %g1 2029afc: 80 a0 60 5c cmp %g1, 0x5c 2029b00: 12 80 00 3c bne 2029bf0 2029b04: 80 a0 60 2f cmp %g1, 0x2f 2029b08: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2029b0c: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 2029b10: 90 10 20 01 mov 1, %o0 2029b14: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2029b18: c4 27 bf d4 st %g2, [ %fp + -44 ] 2029b1c: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 2029b20: c4 27 bf d8 st %g2, [ %fp + -40 ] 2029b24: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 2029b28: c4 27 bf dc st %g2, [ %fp + -36 ] 2029b2c: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 2029b30: c4 27 bf e0 st %g2, [ %fp + -32 ] 2029b34: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2029b38: c2 27 bf e4 st %g1, [ %fp + -28 ] if ( !parent_loc.ops->evalformake_h ) { 2029b3c: c2 07 bf e0 ld [ %fp + -32 ], %g1 2029b40: c2 00 60 04 ld [ %g1 + 4 ], %g1 2029b44: 80 a0 60 00 cmp %g1, 0 2029b48: 02 80 00 65 be 2029cdc 2029b4c: 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 ); 2029b50: 94 07 bf fc add %fp, -4, %o2 2029b54: b2 07 bf d4 add %fp, -44, %i1 2029b58: 9f c0 40 00 call %g1 2029b5c: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 2029b60: a2 92 20 00 orcc %o0, 0, %l1 2029b64: 12 80 00 4f bne 2029ca0 2029b68: 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 ) { 2029b6c: c4 07 bf e4 ld [ %fp + -28 ], %g2 2029b70: 80 a0 80 01 cmp %g2, %g1 2029b74: 12 80 00 31 bne 2029c38 2029b78: 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 ) { 2029b7c: c2 00 a0 08 ld [ %g2 + 8 ], %g1 2029b80: 80 a0 60 00 cmp %g1, 0 2029b84: 02 80 00 66 be 2029d1c 2029b88: 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 ); 2029b8c: 90 10 00 10 mov %l0, %o0 2029b90: 9f c0 40 00 call %g1 2029b94: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &existing_loc ); 2029b98: c2 07 bf f4 ld [ %fp + -12 ], %g1 2029b9c: 80 a0 60 00 cmp %g1, 0 2029ba0: 02 80 00 08 be 2029bc0 2029ba4: b0 10 00 08 mov %o0, %i0 2029ba8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029bac: 80 a0 60 00 cmp %g1, 0 2029bb0: 22 80 00 05 be,a 2029bc4 2029bb4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2029bb8: 9f c0 40 00 call %g1 2029bbc: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029bc0: c2 07 bf e0 ld [ %fp + -32 ], %g1 2029bc4: 80 a0 60 00 cmp %g1, 0 2029bc8: 02 80 00 53 be 2029d14 2029bcc: 01 00 00 00 nop 2029bd0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029bd4: 80 a0 60 00 cmp %g1, 0 2029bd8: 02 80 00 4f be 2029d14 2029bdc: 01 00 00 00 nop 2029be0: 9f c0 40 00 call %g1 2029be4: 90 10 00 19 mov %i1, %o0 return result; } 2029be8: 81 c7 e0 08 ret 2029bec: 81 e8 00 00 restore /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 2029bf0: 22 bf ff c7 be,a 2029b0c 2029bf4: 03 00 81 aa sethi %hi(0x206a800), %g1 2029bf8: 80 a0 60 00 cmp %g1, 0 2029bfc: 02 bf ff c4 be 2029b0c 2029c00: 03 00 81 aa sethi %hi(0x206a800), %g1 2029c04: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 2029c08: 90 10 20 00 clr %o0 2029c0c: c4 00 60 04 ld [ %g1 + 4 ], %g2 2029c10: c4 27 bf d4 st %g2, [ %fp + -44 ] 2029c14: c4 00 60 08 ld [ %g1 + 8 ], %g2 2029c18: c4 27 bf d8 st %g2, [ %fp + -40 ] 2029c1c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 2029c20: c4 27 bf dc st %g2, [ %fp + -36 ] 2029c24: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 2029c28: c4 27 bf e0 st %g2, [ %fp + -32 ] 2029c2c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2029c30: 10 bf ff c3 b 2029b3c 2029c34: 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 ); 2029c38: c2 07 bf f4 ld [ %fp + -12 ], %g1 2029c3c: 80 a0 60 00 cmp %g1, 0 2029c40: 22 80 00 09 be,a 2029c64 2029c44: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2029c48: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029c4c: 80 a0 60 00 cmp %g1, 0 2029c50: 22 80 00 05 be,a 2029c64 2029c54: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2029c58: 9f c0 40 00 call %g1 2029c5c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &parent_loc ); 2029c60: c2 07 bf e0 ld [ %fp + -32 ], %g1 2029c64: 80 a0 60 00 cmp %g1, 0 2029c68: 02 80 00 08 be 2029c88 2029c6c: 01 00 00 00 nop 2029c70: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029c74: 80 a0 60 00 cmp %g1, 0 2029c78: 02 80 00 04 be 2029c88 2029c7c: 01 00 00 00 nop 2029c80: 9f c0 40 00 call %g1 2029c84: 90 10 00 19 mov %i1, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 2029c88: 40 00 6b 0e call 20448c0 <__errno> 2029c8c: b0 10 3f ff mov -1, %i0 2029c90: 82 10 20 12 mov 0x12, %g1 2029c94: c2 22 00 00 st %g1, [ %o0 ] 2029c98: 81 c7 e0 08 ret 2029c9c: 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 ); 2029ca0: c2 07 bf f4 ld [ %fp + -12 ], %g1 2029ca4: 80 a0 60 00 cmp %g1, 0 2029ca8: 02 80 00 08 be 2029cc8 2029cac: 01 00 00 00 nop 2029cb0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2029cb4: 80 a0 60 00 cmp %g1, 0 2029cb8: 02 80 00 04 be 2029cc8 2029cbc: 01 00 00 00 nop 2029cc0: 9f c0 40 00 call %g1 2029cc4: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( result ); 2029cc8: 40 00 6a fe call 20448c0 <__errno> 2029ccc: b0 10 3f ff mov -1, %i0 2029cd0: e2 22 00 00 st %l1, [ %o0 ] 2029cd4: 81 c7 e0 08 ret 2029cd8: 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 ); 2029cdc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2029ce0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029ce4: 02 80 00 08 be 2029d04 <== NOT EXECUTED 2029ce8: 01 00 00 00 nop <== NOT EXECUTED 2029cec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029cf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029cf4: 02 80 00 04 be 2029d04 <== NOT EXECUTED 2029cf8: 01 00 00 00 nop <== NOT EXECUTED 2029cfc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029d00: 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 ); 2029d04: 40 00 6a ef call 20448c0 <__errno> <== NOT EXECUTED 2029d08: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029d0c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2029d10: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2029d14: 81 c7 e0 08 ret 2029d18: 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 ); 2029d1c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2029d20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029d24: 02 80 00 0a be 2029d4c <== NOT EXECUTED 2029d28: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029d2c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029d30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029d34: 02 80 00 06 be 2029d4c <== NOT EXECUTED 2029d38: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029d3c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029d40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2029d44: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2029d48: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029d4c: 02 bf ff ee be 2029d04 <== NOT EXECUTED 2029d50: 01 00 00 00 nop <== NOT EXECUTED 2029d54: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2029d58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029d5c: 02 bf ff ea be 2029d04 <== NOT EXECUTED 2029d60: 01 00 00 00 nop <== NOT EXECUTED 2029d64: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029d68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2029d6c: 30 bf ff e6 b,a 2029d04 <== NOT EXECUTED 0201a244 : off_t lseek( int fd, off_t offset, int whence ) { 201a244: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201a248: 03 00 80 70 sethi %hi(0x201c000), %g1 201a24c: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201c174 off_t lseek( int fd, off_t offset, int whence ) { 201a250: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 201a254: 80 a6 00 01 cmp %i0, %g1 201a258: 1a 80 00 46 bcc 201a370 201a25c: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 201a260: 03 00 80 72 sethi %hi(0x201c800), %g1 201a264: e0 00 63 70 ld [ %g1 + 0x370 ], %l0 ! 201cb70 201a268: 83 2e 20 06 sll %i0, 6, %g1 201a26c: b1 2e 20 03 sll %i0, 3, %i0 201a270: b0 06 00 01 add %i0, %g1, %i0 201a274: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 201a278: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 201a27c: 80 88 61 00 btst 0x100, %g1 201a280: 02 80 00 3c be 201a370 201a284: 01 00 00 00 nop /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 201a288: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201a28c: c8 00 60 14 ld [ %g1 + 0x14 ], %g4 201a290: 80 a1 20 00 cmp %g4, 0 201a294: 02 80 00 3f be 201a390 201a298: 80 a6 e0 01 cmp %i3, 1 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 201a29c: 02 80 00 31 be 201a360 201a2a0: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 201a2a4: 80 a6 e0 02 cmp %i3, 2 201a2a8: 02 80 00 11 be 201a2ec 201a2ac: 80 a6 e0 00 cmp %i3, 0 201a2b0: 12 80 00 22 bne 201a338 201a2b4: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; 201a2b8: 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 ); 201a2bc: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 201a2c0: 92 10 00 02 mov %g2, %o1 201a2c4: 94 10 00 03 mov %g3, %o2 201a2c8: 96 10 00 1b mov %i3, %o3 201a2cc: 9f c0 40 00 call %g1 201a2d0: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 201a2d4: 80 a2 3f ff cmp %o0, -1 201a2d8: 02 80 00 13 be 201a324 201a2dc: 80 a2 7f ff cmp %o1, -1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201a2e0: b2 10 00 09 mov %o1, %i1 201a2e4: 81 c7 e0 08 ret 201a2e8: 91 e8 00 08 restore %g0, %o0, %o0 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 201a2ec: 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 ); 201a2f0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 201a2f4: 9a 86 80 0d addcc %i2, %o5, %o5 201a2f8: 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 ); 201a2fc: 92 10 00 02 mov %g2, %o1 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 201a300: 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 ); 201a304: 94 10 00 03 mov %g3, %o2 201a308: 96 10 00 1b mov %i3, %o3 201a30c: 9f c0 40 00 call %g1 201a310: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 201a314: 80 a2 3f ff cmp %o0, -1 201a318: 12 bf ff f3 bne 201a2e4 201a31c: b2 10 00 09 mov %o1, %i1 201a320: 80 a2 7f ff cmp %o1, -1 201a324: 12 bf ff f0 bne 201a2e4 201a328: b2 10 00 09 mov %o1, %i1 iop->offset = old_offset; 201a32c: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201a330: 81 c7 e0 08 ret 201a334: 91 e8 00 08 restore %g0, %o0, %o0 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 201a338: 7f ff d6 bd call 200fe2c <__errno> 201a33c: 01 00 00 00 nop 201a340: 82 10 20 16 mov 0x16, %g1 ! 16 201a344: c2 22 00 00 st %g1, [ %o0 ] 201a348: 11 3f ff ff sethi %hi(0xfffffc00), %o0 201a34c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 201a350: 92 10 00 08 mov %o0, %o1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 201a354: b0 10 00 08 mov %o0, %i0 201a358: 81 c7 e0 08 ret 201a35c: 93 e8 00 09 restore %g0, %o1, %o1 case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 201a360: 9a 86 80 13 addcc %i2, %l3, %o5 201a364: 98 46 40 12 addx %i1, %l2, %o4 break; 201a368: 10 bf ff d5 b 201a2bc 201a36c: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 201a370: 7f ff d6 af call 200fe2c <__errno> <== NOT EXECUTED 201a374: 01 00 00 00 nop <== NOT EXECUTED 201a378: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED 201a37c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a380: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED 201a384: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <== NOT EXECUTED 201a388: 10 bf ff d6 b 201a2e0 <== NOT EXECUTED 201a38c: 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 ); 201a390: 7f ff d6 a7 call 200fe2c <__errno> <== NOT EXECUTED 201a394: 01 00 00 00 nop <== NOT EXECUTED 201a398: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201a39c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a3a0: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED 201a3a4: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <== NOT EXECUTED 201a3a8: 10 bf ff ce b 201a2e0 <== NOT EXECUTED 201a3ac: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 02029f18 : int _STAT_NAME( const char *path, struct stat *buf ) { 2029f18: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2029f1c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2029f20: 02 80 00 34 be 2029ff0 <== NOT EXECUTED 2029f24: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 2029f28: 40 00 85 ac call 204b5d8 <== NOT EXECUTED 2029f2c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029f30: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2029f34: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2029f38: 94 10 20 00 clr %o2 <== NOT EXECUTED 2029f3c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2029f40: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2029f44: 98 10 20 00 clr %o4 <== NOT EXECUTED 2029f48: 7f ff 6d 28 call 20053e8 <== NOT EXECUTED 2029f4c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2029f50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029f54: 12 80 00 25 bne 2029fe8 <== NOT EXECUTED 2029f58: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 2029f5c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED 2029f60: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2029f64: 02 80 00 29 be 202a008 <== NOT EXECUTED 2029f68: 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) ); 2029f6c: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 2029f70: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 2029f74: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 2029f78: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 2029f7c: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 2029f80: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 2029f84: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 2029f88: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 2029f8c: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 2029f90: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 2029f94: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 2029f98: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 2029f9c: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 2029fa0: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED 2029fa4: c0 26 60 38 clr [ %i1 + 0x38 ] <== NOT EXECUTED 2029fa8: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED 2029fac: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED 2029fb0: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 2029fb4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2029fb8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029fbc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2029fc0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2029fc4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029fc8: 02 80 00 08 be 2029fe8 <== NOT EXECUTED 2029fcc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2029fd0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2029fd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2029fd8: 02 80 00 1a be 202a040 <== NOT EXECUTED 2029fdc: 01 00 00 00 nop <== NOT EXECUTED 2029fe0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2029fe4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2029fe8: 81 c7 e0 08 ret <== NOT EXECUTED 2029fec: 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 ); 2029ff0: 40 00 6a 34 call 20448c0 <__errno> <== NOT EXECUTED 2029ff4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2029ff8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2029ffc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a000: 81 c7 e0 08 ret <== NOT EXECUTED 202a004: 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 ); 202a008: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202a00c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a010: 02 80 00 08 be 202a030 <== NOT EXECUTED 202a014: 01 00 00 00 nop <== NOT EXECUTED 202a018: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a01c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a020: 02 80 00 04 be 202a030 <== NOT EXECUTED 202a024: 01 00 00 00 nop <== NOT EXECUTED 202a028: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a02c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a030: 40 00 6a 24 call 20448c0 <__errno> <== NOT EXECUTED 202a034: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a038: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202a03c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a040: 81 c7 e0 08 ret <== NOT EXECUTED 202a044: 81 e8 00 00 restore <== NOT EXECUTED 0200b9d8 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200b9d8: 9d e3 bf a0 save %sp, -96, %sp 200b9dc: 03 00 80 72 sethi %hi(0x201c800), %g1 200b9e0: 82 10 63 80 or %g1, 0x380, %g1 ! 201cb80 200b9e4: c4 00 60 04 ld [ %g1 + 4 ], %g2 200b9e8: a0 10 00 18 mov %i0, %l0 200b9ec: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200b9f0: 7f ff ff ed call 200b9a4 200b9f4: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 200b9f8: 80 a6 20 00 cmp %i0, 0 200b9fc: 02 80 00 25 be 200ba90 200ba00: 03 00 80 73 sethi %hi(0x201cc00), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200ba04: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 201cee0 <_System_state_Current> 200ba08: 80 a0 60 03 cmp %g1, 3 200ba0c: 02 80 00 1c be 200ba7c 200ba10: 03 00 80 70 sethi %hi(0x201c000), %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 ); 200ba14: d0 00 61 80 ld [ %g1 + 0x180 ], %o0 ! 201c180 200ba18: 92 10 00 10 mov %l0, %o1 200ba1c: 94 10 20 00 clr %o2 200ba20: 40 00 05 91 call 200d064 <_Protected_heap_Allocate_aligned_with_boundary> 200ba24: 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 ) { 200ba28: b0 92 20 00 orcc %o0, 0, %i0 200ba2c: 02 80 00 1b be 200ba98 200ba30: 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 ) 200ba34: 03 00 80 72 sethi %hi(0x201c800), %g1 200ba38: c2 00 60 a0 ld [ %g1 + 0xa0 ], %g1 ! 201c8a0 200ba3c: 80 a0 60 00 cmp %g1, 0 200ba40: 02 80 00 05 be 200ba54 200ba44: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 200ba48: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 200ba4c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ba50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200ba54: 03 00 80 72 sethi %hi(0x201c800), %g1 200ba58: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 ! 201c898 200ba5c: 80 a0 60 00 cmp %g1, 0 200ba60: 02 80 00 05 be 200ba74 200ba64: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 200ba68: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200ba6c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200ba70: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200ba74: 81 c7 e0 08 ret 200ba78: 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()) && 200ba7c: 7f ff ff b1 call 200b940 200ba80: 01 00 00 00 nop 200ba84: 80 8a 20 ff btst 0xff, %o0 200ba88: 12 bf ff e3 bne 200ba14 200ba8c: 03 00 80 70 sethi %hi(0x201c000), %g1 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 200ba90: 81 c7 e0 08 ret <== NOT EXECUTED 200ba94: 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) 200ba98: 03 00 80 72 sethi %hi(0x201c800), %g1 200ba9c: c2 00 60 9c ld [ %g1 + 0x9c ], %g1 ! 201c89c 200baa0: 80 a0 60 00 cmp %g1, 0 200baa4: 02 80 00 08 be 200bac4 200baa8: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200baac: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200bab0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200bab4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 200bab8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200babc: 12 bf ff df bne 200ba38 <== NOT EXECUTED 200bac0: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED errno = ENOMEM; 200bac4: 40 00 10 da call 200fe2c <__errno> 200bac8: 01 00 00 00 nop 200bacc: 82 10 20 0c mov 0xc, %g1 ! c 200bad0: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 200bad4: 81 c7 e0 08 ret 200bad8: 81 e8 00 00 restore 0200b988 : 200b988: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 200b98c: 11 00 80 74 sethi %hi(0x201d000), %o0 <== NOT EXECUTED 200b990: 90 12 22 c8 or %o0, 0x2c8, %o0 ! 201d2c8 <== NOT EXECUTED 200b994: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200b998: 7f ff ec 39 call 2006a7c <_Chain_Append> <== NOT EXECUTED 200b99c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 0200b9a4 : void malloc_deferred_frees_process(void) { 200b9a4: 9d e3 bf a0 save %sp, -96, %sp 200b9a8: 21 00 80 74 sethi %hi(0x201d000), %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) 200b9ac: 10 80 00 04 b 200b9bc 200b9b0: a0 14 22 c8 or %l0, 0x2c8, %l0 ! 201d2c8 free(to_be_freed); 200b9b4: 7f ff fe 89 call 200b3d8 <== NOT EXECUTED 200b9b8: 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 ); 200b9bc: 40 00 03 f2 call 200c984 <_Chain_Get> 200b9c0: 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) 200b9c4: 80 a2 20 00 cmp %o0, 0 200b9c8: 12 bf ff fb bne 200b9b4 200b9cc: 01 00 00 00 nop free(to_be_freed); } 200b9d0: 81 c7 e0 08 ret 200b9d4: 81 e8 00 00 restore 0201366c : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 201366c: 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) ) { 2013670: 7f ff f5 9a call 2010cd8 2013674: 90 10 00 18 mov %i0, %o0 2013678: 80 a2 20 00 cmp %o0, 0 201367c: 12 80 00 13 bne 20136c8 2013680: 01 00 00 00 nop 2013684: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1 2013688: 80 a0 60 00 cmp %g1, 0 201368c: 12 80 00 0f bne 20136c8 2013690: 03 00 80 89 sethi %hi(0x2022400), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 2013694: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 ! 20224e8 2013698: c4 00 60 04 ld [ %g1 + 4 ], %g2 201369c: 80 a0 80 18 cmp %g2, %i0 20136a0: 22 80 00 02 be,a 20136a8 20136a4: 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) 20136a8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 20136ac: 80 a0 60 06 cmp %g1, 6 20136b0: 02 80 00 04 be 20136c0 20136b4: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 20136b8: 7f ff ff 7a call 20134a0 20136bc: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 20136c0: 7f ff c2 18 call 2003f20 20136c4: 90 10 00 18 mov %i0, %o0 } return 0; } 20136c8: 81 c7 e0 08 ret 20136cc: 91 e8 20 00 restore %g0, 0, %o0 020133c0 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 20133c0: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 20133c4: 80 a6 20 00 cmp %i0, 0 20133c8: 02 80 00 16 be 2013420 20133cc: 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 20133d4: d0 06 00 00 ld [ %i0 ], %o0 20133d8: a0 10 00 08 mov %o0, %l0 20133dc: a2 10 20 00 clr %l1 if ( b[i] ) { 20133e0: d0 04 00 00 ld [ %l0 ], %o0 20133e4: 80 a2 20 00 cmp %o0, 0 20133e8: 02 80 00 05 be 20133fc 20133ec: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 20133f0: 7f ff ff 2f call 20130ac 20133f4: 01 00 00 00 nop b[i] = 0; 20133f8: 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 2013404: a0 04 20 04 add %l0, 4, %l0 2013408: 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 ); 201340c: 7f ff ff 28 call 20130ac 2013410: 01 00 00 00 nop *block_table = 0; 2013414: c0 26 00 00 clr [ %i0 ] } 2013418: 81 c7 e0 08 ret 201341c: 81 e8 00 00 restore /* * Perform internal consistency checks */ assert( block_table ); 2013420: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2013424: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2013428: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 201342c: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED 2013430: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 2013434: 96 12 e1 38 or %o3, 0x138, %o3 <== NOT EXECUTED 2013438: 7f ff f5 7d call 2010a2c <__assert_func> <== NOT EXECUTED 201343c: 92 10 21 b3 mov 0x1b3, %o1 <== NOT EXECUTED 0201398c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 201398c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2013990: 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 ) 2013994: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2013998: 80 a0 40 19 cmp %g1, %i1 201399c: 06 80 00 13 bl 20139e8 20139a0: 90 10 00 10 mov %l0, %o0 20139a4: 22 80 00 0d be,a 20139d8 20139a8: 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; 20139ac: f2 24 20 50 st %i1, [ %l0 + 0x50 ] <== NOT EXECUTED 20139b0: f4 24 20 54 st %i2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 20139b4: f4 26 20 0c st %i2, [ %i0 + 0xc ] 20139b8: f2 26 20 08 st %i1, [ %i0 + 8 ] IMFS_update_atime( the_jnode ); 20139bc: 90 07 bf f8 add %fp, -8, %o0 20139c0: 7f ff c1 83 call 2003fcc 20139c4: 92 10 20 00 clr %o1 20139c8: c2 07 bf f8 ld [ %fp + -8 ], %g1 20139cc: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return 0; } 20139d0: 81 c7 e0 08 ret 20139d4: 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 ) 20139d8: 80 a0 40 1a cmp %g1, %i2 20139dc: 3a bf ff f5 bcc,a 20139b0 20139e0: f2 24 20 50 st %i1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 20139e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20139e8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20139ec: 7f ff ff 83 call 20137f8 <== NOT EXECUTED 20139f0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 20139f4: 81 c7 e0 08 ret <== NOT EXECUTED 20139f8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020139fc : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 20139fc: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2013a00: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 2013a04: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 2013a08: 80 a0 60 06 cmp %g1, 6 2013a0c: 02 80 00 0f be 2013a48 2013a10: 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 )) 2013a14: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 2013a18: 92 10 00 02 mov %g2, %o1 2013a1c: 7f ff ff 77 call 20137f8 2013a20: 94 10 00 03 mov %g3, %o2 2013a24: 80 a2 20 00 cmp %o0, 0 2013a28: 12 80 00 1b bne 2013a94 2013a2c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 2013a30: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 2013a34: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 2013a38: d8 3e 20 08 std %o4, [ %i0 + 8 ] } return iop->offset; } 2013a3c: b2 10 00 03 mov %g3, %i1 2013a40: 81 c7 e0 08 ret 2013a44: 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) 2013a48: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 <== NOT EXECUTED 2013a4c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2013a50: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2013a54: 14 80 00 0c bg 2013a84 <== NOT EXECUTED 2013a58: c8 06 20 14 ld [ %i0 + 0x14 ], %g4 <== NOT EXECUTED 2013a5c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2013a60: 02 80 00 07 be 2013a7c <== NOT EXECUTED 2013a64: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 2013a68: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED 2013a6c: 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; } 2013a70: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED 2013a74: 81 c7 e0 08 ret <== NOT EXECUTED 2013a78: 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) 2013a7c: 28 bf ff fc bleu,a 2013a6c <== NOT EXECUTED 2013a80: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 2013a84: 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; } 2013a88: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 2013a8c: 81 c7 e0 08 ret <== NOT EXECUTED 2013a90: 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 ); 2013a94: 40 00 07 8a call 20158bc <__errno> <== NOT EXECUTED 2013a98: 01 00 00 00 nop <== NOT EXECUTED 2013a9c: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2013aa0: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 2013aa4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2013aa8: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 2013aac: 10 bf ff e4 b 2013a3c <== NOT EXECUTED 2013ab0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED 02013da8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2013da8: 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)) 2013dac: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2013db0: 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)) 2013db4: 80 88 62 04 btst 0x204, %g1 2013db8: 02 80 00 06 be 2013dd0 2013dbc: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 && (the_jnode->type == IMFS_LINEAR_FILE)) { 2013dc0: c4 04 60 4c ld [ %l1 + 0x4c ], %g2 2013dc4: 80 a0 a0 06 cmp %g2, 6 2013dc8: 22 80 00 0c be,a 2013df8 2013dcc: 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) 2013dd0: 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) 2013dd4: 80 88 62 00 btst 0x200, %g1 2013dd8: 22 80 00 05 be,a 2013dec 2013ddc: c4 3c 20 08 std %g2, [ %l0 + 8 ] iop->offset = the_jnode->info.file.size; 2013de0: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] 2013de4: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2 iop->size = the_jnode->info.file.size; 2013de8: c4 3c 20 08 std %g2, [ %l0 + 8 ] 2013dec: b0 10 20 00 clr %i0 return 0; } 2013df0: 81 c7 e0 08 ret 2013df4: 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; 2013df8: d6 04 60 58 ld [ %l1 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 2013dfc: 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; 2013e00: 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; 2013e04: c0 24 60 50 clr [ %l1 + 0x50 ] <== NOT EXECUTED 2013e08: 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; 2013e0c: 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; 2013e10: 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) 2013e14: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 2013e18: 12 80 00 06 bne 2013e30 <== NOT EXECUTED 2013e1c: c2 24 60 4c st %g1, [ %l1 + 0x4c ] <== NOT EXECUTED 2013e20: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED 2013e24: 84 10 20 00 clr %g2 <== NOT EXECUTED 2013e28: 10 bf ff eb b 2013dd4 <== NOT EXECUTED 2013e2c: 86 10 20 00 clr %g3 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 2013e30: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2013e34: 92 10 20 00 clr %o1 <== NOT EXECUTED 2013e38: 94 10 20 00 clr %o2 <== NOT EXECUTED 2013e3c: 7f ff ff 1e call 2013ab4 <== NOT EXECUTED 2013e40: 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) 2013e44: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2013e48: 02 bf ff ea be 2013df0 <== NOT EXECUTED 2013e4c: 01 00 00 00 nop <== NOT EXECUTED 2013e50: 10 bf ff e0 b 2013dd0 <== NOT EXECUTED 2013e54: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 020136d0 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 20136d0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 20136d4: 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 ) { 20136d8: c2 04 20 08 ld [ %l0 + 8 ], %g1 20136dc: 80 a0 60 00 cmp %g1, 0 20136e0: 22 80 00 06 be,a 20136f8 20136e4: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED 20136e8: 7f ff d4 b0 call 20089a8 <_Chain_Extract> 20136ec: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 20136f0: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20136f4: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 IMFS_update_ctime( the_jnode ); 20136f8: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20136fc: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2013700: 90 07 bf f8 add %fp, -8, %o0 2013704: 7f ff c2 32 call 2003fcc 2013708: c2 34 20 34 sth %g1, [ %l0 + 0x34 ] 201370c: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 2013710: 90 10 00 10 mov %l0, %o0 2013714: 7f ff ff d6 call 201366c 2013718: c2 24 20 48 st %g1, [ %l0 + 0x48 ] } 201371c: 81 c7 e0 08 ret 2013720: 91 e8 00 08 restore %g0, %o0, %o0 02002a4c : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 2002a4c: 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) ) ) 2002a50: 03 00 00 3c sethi %hi(0xf000), %g1 2002a54: 80 8e 40 01 btst %i1, %g1 2002a58: 02 80 00 50 be 2002b98 2002a5c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 2002a60: c2 4e 00 00 ldsb [ %i0 ], %g1 2002a64: 80 a0 60 5c cmp %g1, 0x5c 2002a68: 12 80 00 31 bne 2002b2c 2002a6c: 80 a0 60 2f cmp %g1, 0x2f 2002a70: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 2002a74: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 201c330 2002a78: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2002a7c: c4 27 bf e8 st %g2, [ %fp + -24 ] 2002a80: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 2002a84: c4 27 bf ec st %g2, [ %fp + -20 ] 2002a88: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 2002a8c: c4 27 bf f0 st %g2, [ %fp + -16 ] 2002a90: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 2002a94: c4 27 bf f4 st %g2, [ %fp + -12 ] 2002a98: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2002a9c: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !temp_loc.ops->evalformake_h ) { 2002aa0: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002aa4: c2 00 60 04 ld [ %g1 + 4 ], %g1 2002aa8: 80 a0 60 00 cmp %g1, 0 2002aac: 02 80 00 35 be 2002b80 2002ab0: 90 10 20 01 mov 1, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2002ab4: 90 06 00 08 add %i0, %o0, %o0 2002ab8: a0 07 bf e8 add %fp, -24, %l0 2002abc: 94 07 bf fc add %fp, -4, %o2 2002ac0: 92 10 00 10 mov %l0, %o1 2002ac4: 9f c0 40 00 call %g1 2002ac8: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 2002acc: 80 a2 20 00 cmp %o0, 0 2002ad0: 12 80 00 15 bne 2002b24 2002ad4: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 2002ad8: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 2002adc: 80 a0 60 00 cmp %g1, 0 2002ae0: 02 80 00 34 be 2002bb0 2002ae4: 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 ); 2002ae8: 92 10 00 19 mov %i1, %o1 2002aec: 94 10 00 1a mov %i2, %o2 2002af0: 96 10 00 1b mov %i3, %o3 2002af4: 9f c0 40 00 call %g1 2002af8: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 2002afc: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002b00: 80 a0 60 00 cmp %g1, 0 2002b04: 02 80 00 08 be 2002b24 2002b08: b0 10 00 08 mov %o0, %i0 2002b0c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002b10: 80 a0 60 00 cmp %g1, 0 2002b14: 02 80 00 25 be 2002ba8 2002b18: 01 00 00 00 nop 2002b1c: 9f c0 40 00 call %g1 2002b20: 90 10 00 10 mov %l0, %o0 return result; } 2002b24: 81 c7 e0 08 ret 2002b28: 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 ); 2002b2c: 22 bf ff d2 be,a 2002a74 2002b30: 03 00 80 70 sethi %hi(0x201c000), %g1 2002b34: 80 a0 60 00 cmp %g1, 0 2002b38: 02 bf ff cf be 2002a74 2002b3c: 03 00 80 70 sethi %hi(0x201c000), %g1 2002b40: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 201c330 2002b44: c4 00 60 04 ld [ %g1 + 4 ], %g2 2002b48: c4 27 bf e8 st %g2, [ %fp + -24 ] 2002b4c: c4 00 60 08 ld [ %g1 + 8 ], %g2 2002b50: c4 27 bf ec st %g2, [ %fp + -20 ] 2002b54: c4 00 60 0c ld [ %g1 + 0xc ], %g2 2002b58: c4 27 bf f0 st %g2, [ %fp + -16 ] 2002b5c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 2002b60: c4 27 bf f4 st %g2, [ %fp + -12 ] 2002b64: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2002b68: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !temp_loc.ops->evalformake_h ) { 2002b6c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002b70: c2 00 60 04 ld [ %g1 + 4 ], %g1 2002b74: 80 a0 60 00 cmp %g1, 0 2002b78: 12 bf ff cf bne 2002ab4 2002b7c: 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 ); 2002b80: 40 00 34 ab call 200fe2c <__errno> <== NOT EXECUTED 2002b84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002b88: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002b8c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002b90: 81 c7 e0 08 ret <== NOT EXECUTED 2002b94: 81 e8 00 00 restore <== NOT EXECUTED int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); 2002b98: 40 00 34 a5 call 200fe2c <__errno> <== NOT EXECUTED 2002b9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002ba0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2002ba4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002ba8: 81 c7 e0 08 ret 2002bac: 81 e8 00 00 restore ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 2002bb0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002bb4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002bb8: 02 bf ff f2 be 2002b80 <== NOT EXECUTED 2002bbc: 01 00 00 00 nop <== NOT EXECUTED 2002bc0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002bc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002bc8: 30 bf ff ee b,a 2002b80 <== NOT EXECUTED 02002bec : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 2002bec: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 2002bf0: 80 a6 60 00 cmp %i1, 0 2002bf4: 02 80 00 94 be 2002e44 2002bf8: a0 10 00 18 mov %i0, %l0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 2002bfc: 80 a6 a0 01 cmp %i2, 1 2002c00: 18 80 00 91 bgu 2002e44 2002c04: 01 00 00 00 nop errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 2002c08: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 2002c0c: 80 a0 60 00 cmp %g1, 0 2002c10: 02 80 00 98 be 2002e70 2002c14: 80 a6 e0 00 cmp %i3, 0 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 2002c18: 02 80 00 05 be 2002c2c 2002c1c: 90 10 20 6c mov 0x6c, %o0 size += strlen( device ) + 1; 2002c20: 40 00 38 3b call 2010d0c <== NOT EXECUTED 2002c24: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 2002c28: 90 02 20 6d add %o0, 0x6d, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 2002c2c: 40 00 23 6b call 200b9d8 2002c30: 01 00 00 00 nop if ( !temp_mt_entry ) { 2002c34: a2 92 20 00 orcc %o0, 0, %l1 2002c38: 02 80 00 97 be 2002e94 2002c3c: 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; 2002c40: f4 24 60 30 st %i2, [ %l1 + 0x30 ] if ( device ) { 2002c44: 80 a6 e0 00 cmp %i3, 0 2002c48: 02 80 00 7d be 2002e3c 2002c4c: e2 24 60 2c st %l1, [ %l1 + 0x2c ] temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 2002c50: 90 04 60 6c add %l1, 0x6c, %o0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 2002c54: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2002c58: 40 00 38 0a call 2010c80 <== NOT EXECUTED 2002c5c: 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 ) { 2002c60: 80 a7 20 00 cmp %i4, 0 2002c64: 22 80 00 6e be,a 2002e1c 2002c68: c0 24 60 1c clr [ %l1 + 0x1c ] if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 2002c6c: 40 00 38 28 call 2010d0c 2002c70: 90 10 00 1c mov %i4, %o0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 2002c74: a4 07 bf ec add %fp, -20, %l2 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 2002c78: 92 10 00 08 mov %o0, %o1 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 2002c7c: 94 10 20 07 mov 7, %o2 2002c80: 90 10 00 1c mov %i4, %o0 2002c84: 96 10 00 12 mov %l2, %o3 2002c88: 7f ff fe b9 call 200276c 2002c8c: 98 10 20 01 mov 1, %o4 2002c90: 80 a2 3f ff cmp %o0, -1 2002c94: 02 80 00 7b be 2002e80 2002c98: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 2002c9c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2002ca0: 80 a0 60 00 cmp %g1, 0 2002ca4: 02 80 00 46 be 2002dbc 2002ca8: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2002cac: 9f c0 40 00 call %g1 2002cb0: 90 10 00 12 mov %l2, %o0 2002cb4: 80 a2 20 01 cmp %o0, 1 2002cb8: 12 80 00 69 bne 2002e5c 2002cbc: 09 00 80 72 sethi %hi(0x201c800), %g4 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 2002cc0: c2 01 23 b0 ld [ %g4 + 0x3b0 ], %g1 ! 201cbb0 2002cc4: 88 11 23 b0 or %g4, 0x3b0, %g4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2002cc8: 88 01 20 04 add %g4, 4, %g4 2002ccc: 80 a0 40 04 cmp %g1, %g4 2002cd0: 02 80 00 0e be 2002d08 2002cd4: 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 ) 2002cd8: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 2002cdc: 80 a0 80 03 cmp %g2, %g3 2002ce0: 32 80 00 07 bne,a 2002cfc 2002ce4: c2 00 40 00 ld [ %g1 ], %g1 2002ce8: 30 80 00 48 b,a 2002e08 <== NOT EXECUTED 2002cec: 80 a0 80 03 cmp %g2, %g3 2002cf0: 02 80 00 46 be 2002e08 2002cf4: 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 ) { 2002cf8: c2 00 40 00 ld [ %g1 ], %g1 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 2002cfc: 80 a0 40 04 cmp %g1, %g4 2002d00: 32 bf ff fb bne,a 2002cec 2002d04: 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; 2002d08: c6 24 60 08 st %g3, [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = loc.handlers; 2002d0c: c6 07 bf f4 ld [ %fp + -12 ], %g3 temp_mt_entry->mt_point_node.ops = loc.ops; 2002d10: 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; 2002d14: 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; 2002d18: 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 ){ 2002d1c: 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; 2002d20: 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 ){ 2002d24: 80 a0 60 00 cmp %g1, 0 2002d28: 02 80 00 25 be 2002dbc 2002d2c: c4 24 60 14 st %g2, [ %l1 + 0x14 ] errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 2002d30: 90 10 00 11 mov %l1, %o0 2002d34: 9f c0 40 00 call %g1 2002d38: a6 10 00 12 mov %l2, %l3 2002d3c: 80 a2 20 00 cmp %o0, 0 2002d40: 12 80 00 24 bne 2002dd0 2002d44: 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 ) ) { 2002d48: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 2002d4c: 9f c0 40 00 call %g1 2002d50: 90 10 00 11 mov %l1, %o0 2002d54: 80 a2 20 00 cmp %o0, 0 2002d58: 12 80 00 0b bne 2002d84 2002d5c: 11 00 80 72 sethi %hi(0x201c800), %o0 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 2002d60: 92 10 00 11 mov %l1, %o1 2002d64: 40 00 0f 46 call 2006a7c <_Chain_Append> 2002d68: 90 12 23 b0 or %o0, 0x3b0, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 2002d6c: 80 a4 20 00 cmp %l0, 0 2002d70: 02 80 00 03 be 2002d7c 2002d74: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 2002d78: e2 24 00 00 st %l1, [ %l0 ] 2002d7c: 81 c7 e0 08 ret 2002d80: 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 ) { 2002d84: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2002d88: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 2002d8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002d90: 02 80 00 04 be 2002da0 <== NOT EXECUTED 2002d94: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 2002d98: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002d9c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 2002da0: 40 00 21 8e call 200b3d8 <== NOT EXECUTED 2002da4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED if ( loc_to_free ) 2002da8: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2002dac: 32 80 00 0c bne,a 2002ddc <== NOT EXECUTED 2002db0: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); return -1; } 2002db4: 81 c7 e0 08 ret <== NOT EXECUTED 2002db8: 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; 2002dbc: 40 00 34 1c call 200fe2c <__errno> <== NOT EXECUTED 2002dc0: 01 00 00 00 nop <== NOT EXECUTED 2002dc4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2002dc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 2002dcc: 90 10 00 11 mov %l1, %o0 2002dd0: 40 00 21 82 call 200b3d8 2002dd4: a6 10 00 12 mov %l2, %l3 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 2002dd8: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 2002ddc: 80 a0 60 00 cmp %g1, 0 2002de0: 02 bf ff e7 be 2002d7c 2002de4: b0 10 3f ff mov -1, %i0 2002de8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002dec: 80 a0 60 00 cmp %g1, 0 2002df0: 02 bf ff e3 be 2002d7c 2002df4: 90 10 00 13 mov %l3, %o0 2002df8: 9f c0 40 00 call %g1 2002dfc: 01 00 00 00 nop 2002e00: 81 c7 e0 08 ret 2002e04: 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; 2002e08: 40 00 34 09 call 200fe2c <__errno> 2002e0c: 01 00 00 00 nop 2002e10: 82 10 20 10 mov 0x10, %g1 ! 10 goto cleanup_and_bail; 2002e14: 10 bf ff ee b 2002dcc 2002e18: 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; 2002e1c: c0 24 60 24 clr [ %l1 + 0x24 ] temp_mt_entry->mt_fs_root.ops = NULL; 2002e20: c0 24 60 28 clr [ %l1 + 0x28 ] temp_mt_entry->mt_point_node.node_access = NULL; 2002e24: c0 24 60 08 clr [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 2002e28: c0 24 60 10 clr [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = NULL; 2002e2c: c0 24 60 14 clr [ %l1 + 0x14 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 2002e30: c0 24 60 18 clr [ %l1 + 0x18 ] 2002e34: 10 bf ff c5 b 2002d48 2002e38: 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; 2002e3c: 10 bf ff 89 b 2002c60 2002e40: 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; 2002e44: 40 00 33 fa call 200fe2c <__errno> 2002e48: b0 10 3f ff mov -1, %i0 2002e4c: 82 10 20 16 mov 0x16, %g1 2002e50: c2 22 00 00 st %g1, [ %o0 ] return -1; 2002e54: 81 c7 e0 08 ret 2002e58: 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; 2002e5c: 40 00 33 f4 call 200fe2c <__errno> 2002e60: 01 00 00 00 nop 2002e64: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 2002e68: 10 bf ff d9 b 2002dcc 2002e6c: c2 22 00 00 st %g1, [ %o0 ] return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 2002e70: 40 00 33 ef call 200fe2c <__errno> <== NOT EXECUTED 2002e74: a6 10 20 00 clr %l3 <== NOT EXECUTED 2002e78: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002e7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 2002e80: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2002e84: 40 00 21 55 call 200b3d8 <== NOT EXECUTED 2002e88: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002e8c: 81 c7 e0 08 ret <== NOT EXECUTED 2002e90: 81 e8 00 00 restore <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 2002e94: 40 00 33 e6 call 200fe2c <__errno> <== NOT EXECUTED 2002e98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002e9c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2002ea0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 2002ea4: 81 c7 e0 08 ret <== NOT EXECUTED 2002ea8: 81 e8 00 00 restore <== NOT EXECUTED 02002f1c : */ int newlib_free_buffers( FILE *fp ) { 2002f1c: 9d e3 bf a0 save %sp, -96, %sp switch ( fileno(fp) ) { 2002f20: 40 00 34 dd call 2010294 2002f24: 90 10 00 18 mov %i0, %o0 2002f28: 80 a2 20 02 cmp %o0, 2 2002f2c: 28 80 00 06 bleu,a 2002f44 2002f30: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 2002f34: 40 00 34 16 call 200ff8c <== NOT EXECUTED 2002f38: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2002f3c: 81 c7 e0 08 ret 2002f40: 91 e8 20 00 restore %g0, 0, %o0 { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 2002f44: 80 88 60 80 btst 0x80, %g1 2002f48: 02 bf ff fd be 2002f3c 2002f4c: 01 00 00 00 nop free( fp->_bf._base ); 2002f50: 40 00 21 22 call 200b3d8 <== NOT EXECUTED 2002f54: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 2002f58: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002f5c: 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; 2002f60: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002f64: 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; 2002f68: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED break; default: fclose(fp); } return 0; } 2002f6c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f70: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02003074 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 2003074: 9d e3 bf a0 save %sp, -96, %sp rtems_device_driver status; if ( !initialized ) { 2003078: 03 00 80 86 sethi %hi(0x2021800), %g1 200307c: c4 48 62 5c ldsb [ %g1 + 0x25c ], %g2 ! 2021a5c 2003080: 80 a0 a0 00 cmp %g2, 0 2003084: 02 80 00 04 be 2003094 2003088: 84 10 20 01 mov 1, %g2 NULL_major = major; } return RTEMS_SUCCESSFUL; } 200308c: 81 c7 e0 08 ret 2003090: 91 e8 20 00 restore %g0, 0, %o0 rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( 2003094: 11 00 80 7d sethi %hi(0x201f400), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 2003098: c4 28 62 5c stb %g2, [ %g1 + 0x25c ] status = rtems_io_register_name( 200309c: 90 12 21 d0 or %o0, 0x1d0, %o0 20030a0: 92 10 00 18 mov %i0, %o1 20030a4: 40 00 00 51 call 20031e8 20030a8: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 20030ac: 80 a2 20 00 cmp %o0, 0 20030b0: 12 80 00 05 bne 20030c4 20030b4: 03 00 80 87 sethi %hi(0x2021c00), %g1 rtems_fatal_error_occurred(status); NULL_major = major; 20030b8: f0 20 61 0c st %i0, [ %g1 + 0x10c ] ! 2021d0c } return RTEMS_SUCCESSFUL; } 20030bc: 81 c7 e0 08 ret 20030c0: 91 e8 20 00 restore %g0, 0, %o0 major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 20030c4: 40 00 11 a5 call 2007758 <== NOT EXECUTED 02003050 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 2003050: 80 a2 a0 00 cmp %o2, 0 2003054: 02 80 00 04 be 2003064 2003058: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 200305c: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED 2003060: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 2003064: 81 c3 e0 08 retl 2003068: 90 10 20 00 clr %o0 020031bc : int open( const char *pathname, int flags, ... ) { 20031bc: 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); 20031c0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20031c4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20031c8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20031cc: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 20031d0: a2 06 60 01 add %i1, 1, %l1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 20031d4: 80 8c 60 02 btst 2, %l1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 20031d8: a2 0c 60 01 and %l1, 1, %l1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 20031dc: 02 80 00 03 be 20031e8 20031e0: a3 2c 60 02 sll %l1, 2, %l1 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 20031e4: a2 14 60 02 or %l1, 2, %l1 va_start(ap, flags); mode = va_arg( ap, int ); 20031e8: 82 07 a0 50 add %fp, 0x50, %g1 20031ec: e4 07 a0 4c ld [ %fp + 0x4c ], %l2 20031f0: 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(); 20031f4: 40 00 21 85 call 200b808 20031f8: a6 10 20 17 mov 0x17, %l3 if ( iop == 0 ) { 20031fc: a0 92 20 00 orcc %o0, 0, %l0 2003200: 02 80 00 6c be 20033b0 2003204: 01 00 00 00 nop /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 2003208: 40 00 36 c1 call 2010d0c 200320c: 90 10 00 18 mov %i0, %o0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2003210: 94 10 00 11 mov %l1, %o2 pathname, strlen( pathname ), eval_flags, &loc, true ); 2003214: 92 10 00 08 mov %o0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2003218: a2 07 bf e8 add %fp, -24, %l1 200321c: 90 10 00 18 mov %i0, %o0 2003220: 96 10 00 11 mov %l1, %o3 2003224: 7f ff fd 52 call 200276c 2003228: 98 10 20 01 mov 1, %o4 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 200322c: 80 a2 3f ff cmp %o0, -1 2003230: 02 80 00 65 be 20033c4 2003234: 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)) { 2003238: a8 10 00 11 mov %l1, %l4 200323c: 80 a0 6a 00 cmp %g1, 0xa00 2003240: 02 80 00 4a be 2003368 2003244: 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; 2003248: c2 07 bf f0 ld [ %fp + -16 ], %g1 iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 200324c: 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; 2003250: c2 24 20 40 st %g1, [ %l0 + 0x40 ] iop->file_info = loc.node_access; 2003254: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->flags |= rtems_libio_fcntl_flags( flags ); 2003258: 90 10 00 19 mov %i1, %o0 200325c: 40 00 21 ac call 200b90c 2003260: c2 24 20 3c st %g1, [ %l0 + 0x3c ] iop->pathinfo = loc; 2003264: c4 07 bf e8 ld [ %fp + -24 ], %g2 if ( !iop->handlers || !iop->handlers->open_h ) { 2003268: 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; 200326c: c4 24 20 1c st %g2, [ %l0 + 0x1c ] 2003270: 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 ); 2003274: 90 12 00 13 or %o0, %l3, %o0 iop->pathinfo = loc; 2003278: c4 24 20 20 st %g2, [ %l0 + 0x20 ] 200327c: 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 ); 2003280: d0 24 20 18 st %o0, [ %l0 + 0x18 ] iop->pathinfo = loc; 2003284: c4 24 20 24 st %g2, [ %l0 + 0x24 ] 2003288: c4 07 bf f4 ld [ %fp + -12 ], %g2 if ( !iop->handlers || !iop->handlers->open_h ) { 200328c: 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; 2003290: c4 24 20 28 st %g2, [ %l0 + 0x28 ] 2003294: c4 07 bf f8 ld [ %fp + -8 ], %g2 if ( !iop->handlers || !iop->handlers->open_h ) { 2003298: 02 80 00 32 be 2003360 200329c: c4 24 20 2c st %g2, [ %l0 + 0x2c ] 20032a0: c2 00 40 00 ld [ %g1 ], %g1 20032a4: 80 a0 60 00 cmp %g1, 0 20032a8: 02 80 00 2e be 2003360 20032ac: 92 10 00 18 mov %i0, %o1 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 20032b0: 96 10 00 12 mov %l2, %o3 20032b4: 90 10 00 10 mov %l0, %o0 20032b8: 9f c0 40 00 call %g1 20032bc: 94 10 00 19 mov %i1, %o2 if ( rc ) { 20032c0: 80 a2 20 00 cmp %o0, 0 20032c4: 12 80 00 12 bne 200330c 20032c8: 80 8e 64 00 btst 0x400, %i1 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 20032cc: 12 80 00 48 bne 20033ec 20032d0: 23 00 80 72 sethi %hi(0x201c800), %l1 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 20032d4: c2 04 63 70 ld [ %l1 + 0x370 ], %g1 ! 201cb70 20032d8: a0 24 00 01 sub %l0, %g1, %l0 20032dc: a1 3c 20 03 sra %l0, 3, %l0 20032e0: 85 2c 20 06 sll %l0, 6, %g2 20032e4: 83 2c 20 03 sll %l0, 3, %g1 20032e8: 82 20 80 01 sub %g2, %g1, %g1 20032ec: 85 28 60 06 sll %g1, 6, %g2 20032f0: 82 00 40 02 add %g1, %g2, %g1 20032f4: 82 00 40 10 add %g1, %l0, %g1 20032f8: b1 28 60 0f sll %g1, 0xf, %i0 20032fc: b0 26 00 01 sub %i0, %g1, %i0 2003300: b1 2e 20 03 sll %i0, 3, %i0 } 2003304: 81 c7 e0 08 ret 2003308: 91 ee 00 10 restore %i0, %l0, %o0 goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 200330c: a8 10 00 11 mov %l1, %l4 2003310: 40 00 32 c7 call 200fe2c <__errno> 2003314: 01 00 00 00 nop 2003318: e6 02 00 00 ld [ %o0 ], %l3 */ done: va_end(ap); if ( rc ) { 200331c: 80 a4 e0 00 cmp %l3, 0 2003320: 12 80 00 12 bne 2003368 2003324: 23 00 80 72 sethi %hi(0x201c800), %l1 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2003328: c2 04 63 70 ld [ %l1 + 0x370 ], %g1 ! 201cb70 <== NOT EXECUTED 200332c: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED 2003330: a1 3c 20 03 sra %l0, 3, %l0 <== NOT EXECUTED 2003334: 85 2c 20 06 sll %l0, 6, %g2 <== NOT EXECUTED 2003338: 83 2c 20 03 sll %l0, 3, %g1 <== NOT EXECUTED 200333c: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED 2003340: 85 28 60 06 sll %g1, 6, %g2 <== NOT EXECUTED 2003344: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2003348: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED 200334c: b1 28 60 0f sll %g1, 0xf, %i0 <== NOT EXECUTED 2003350: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED 2003354: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED } 2003358: 81 c7 e0 08 ret <== NOT EXECUTED 200335c: 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; 2003360: a8 10 00 11 mov %l1, %l4 <== NOT EXECUTED 2003364: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 2003368: 80 a4 20 00 cmp %l0, 0 200336c: 02 80 00 05 be 2003380 2003370: 80 a5 20 00 cmp %l4, 0 rtems_libio_free( iop ); 2003374: 40 00 21 0e call 200b7ac 2003378: 90 10 00 10 mov %l0, %o0 if ( loc_to_free ) 200337c: 80 a5 20 00 cmp %l4, 0 2003380: 02 80 00 0c be 20033b0 2003384: 01 00 00 00 nop rtems_filesystem_freenode( loc_to_free ); 2003388: c2 05 20 0c ld [ %l4 + 0xc ], %g1 200338c: 80 a0 60 00 cmp %g1, 0 2003390: 02 80 00 08 be 20033b0 2003394: 01 00 00 00 nop 2003398: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200339c: 80 a0 60 00 cmp %g1, 0 20033a0: 02 80 00 04 be 20033b0 20033a4: 01 00 00 00 nop 20033a8: 9f c0 40 00 call %g1 20033ac: 90 10 00 14 mov %l4, %o0 rtems_set_errno_and_return_minus_one( rc ); 20033b0: 40 00 32 9f call 200fe2c <__errno> 20033b4: b0 10 3f ff mov -1, %i0 20033b8: e6 22 00 00 st %l3, [ %o0 ] 20033bc: 81 c7 e0 08 ret 20033c0: 81 e8 00 00 restore status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 20033c4: 40 00 32 9a call 200fe2c <__errno> 20033c8: 01 00 00 00 nop 20033cc: c2 02 00 00 ld [ %o0 ], %g1 20033d0: 80 a0 60 02 cmp %g1, 2 20033d4: 02 80 00 31 be 2003498 20033d8: 80 8e 62 00 btst 0x200, %i1 rc = errno; 20033dc: 40 00 32 94 call 200fe2c <__errno> 20033e0: a8 10 20 00 clr %l4 goto done; 20033e4: 10 bf ff ce b 200331c 20033e8: e6 02 00 00 ld [ %o0 ], %l3 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 20033ec: c2 04 63 70 ld [ %l1 + 0x370 ], %g1 20033f0: 92 10 20 00 clr %o1 20033f4: 82 24 00 01 sub %l0, %g1, %g1 20033f8: 83 38 60 03 sra %g1, 3, %g1 20033fc: 87 28 60 06 sll %g1, 6, %g3 2003400: 85 28 60 03 sll %g1, 3, %g2 2003404: 84 20 c0 02 sub %g3, %g2, %g2 2003408: 87 28 a0 06 sll %g2, 6, %g3 200340c: 84 00 80 03 add %g2, %g3, %g2 2003410: 84 00 80 01 add %g2, %g1, %g2 2003414: 91 28 a0 0f sll %g2, 0xf, %o0 2003418: 84 22 00 02 sub %o0, %g2, %g2 200341c: 94 10 20 00 clr %o2 2003420: 91 28 a0 03 sll %g2, 3, %o0 2003424: 40 00 20 18 call 200b484 2003428: 90 02 00 01 add %o0, %g1, %o0 if ( rc ) { 200342c: a6 92 20 00 orcc %o0, 0, %l3 2003430: 02 bf ff aa be 20032d8 2003434: c2 04 63 70 ld [ %l1 + 0x370 ], %g1 if(errno) rc = errno; 2003438: 40 00 32 7d call 200fe2c <__errno> <== NOT EXECUTED 200343c: 01 00 00 00 nop <== NOT EXECUTED 2003440: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2003444: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003448: 12 80 00 2e bne 2003500 <== NOT EXECUTED 200344c: 01 00 00 00 nop <== NOT EXECUTED close( iop - rtems_libio_iops ); 2003450: c2 04 63 70 ld [ %l1 + 0x370 ], %g1 <== NOT EXECUTED 2003454: a8 10 20 00 clr %l4 <== NOT EXECUTED 2003458: 82 24 00 01 sub %l0, %g1, %g1 <== NOT EXECUTED 200345c: 83 38 60 03 sra %g1, 3, %g1 <== NOT EXECUTED 2003460: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED 2003464: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED 2003468: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 200346c: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED 2003470: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED 2003474: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 2003478: 87 28 a0 0f sll %g2, 0xf, %g3 <== NOT EXECUTED 200347c: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 2003480: a0 10 20 00 clr %l0 <== NOT EXECUTED 2003484: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED 2003488: 40 00 1f a4 call 200b318 <== NOT EXECUTED 200348c: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 2003490: 10 bf ff a4 b 2003320 <== NOT EXECUTED 2003494: 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) ) { 2003498: a8 10 20 00 clr %l4 200349c: 02 bf ff b3 be 2003368 20034a0: 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 ); 20034a4: 13 00 00 20 sethi %hi(0x8000), %o1 20034a8: 90 10 00 18 mov %i0, %o0 20034ac: 92 14 80 09 or %l2, %o1, %o1 20034b0: 94 10 20 00 clr %o2 20034b4: 7f ff fd 66 call 2002a4c 20034b8: 96 10 20 00 clr %o3 if ( rc ) { 20034bc: 80 a2 20 00 cmp %o0, 0 20034c0: 12 bf ff 94 bne 2003310 20034c4: 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 ); 20034c8: 40 00 36 11 call 2010d0c 20034cc: 90 10 00 18 mov %i0, %o0 20034d0: 94 10 20 00 clr %o2 20034d4: 92 10 00 08 mov %o0, %o1 20034d8: 96 10 00 11 mov %l1, %o3 20034dc: 90 10 00 18 mov %i0, %o0 20034e0: 98 10 20 01 mov 1, %o4 20034e4: 7f ff fc a2 call 200276c 20034e8: a8 10 20 00 clr %l4 if ( status != 0 ) { /* The file did not exist */ 20034ec: 80 a2 20 00 cmp %o0, 0 20034f0: 12 bf ff 9e bne 2003368 20034f4: 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; 20034f8: 10 bf ff 55 b 200324c 20034fc: 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; 2003500: 40 00 32 4b call 200fe2c <__errno> <== NOT EXECUTED 2003504: 01 00 00 00 nop <== NOT EXECUTED 2003508: 10 bf ff d2 b 2003450 <== NOT EXECUTED 200350c: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED 02003148 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 2003148: 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) { 200314c: 21 00 80 6c sethi %hi(0x201b000), %l0 2003150: 92 10 20 00 clr %o1 2003154: 90 14 21 68 or %l0, 0x168, %o0 2003158: 40 00 00 19 call 20031bc 200315c: 94 10 20 00 clr %o2 2003160: 80 a2 3f ff cmp %o0, -1 2003164: 02 80 00 0e be 200319c 2003168: 90 14 21 68 or %l0, 0x168, %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) 200316c: 92 10 20 01 mov 1, %o1 2003170: 40 00 00 13 call 20031bc 2003174: 94 10 20 00 clr %o2 2003178: 80 a2 3f ff cmp %o0, -1 200317c: 02 80 00 0c be 20031ac 2003180: 92 10 20 01 mov 1, %o1 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2003184: 90 14 21 68 or %l0, 0x168, %o0 2003188: 40 00 00 0d call 20031bc 200318c: 94 10 20 00 clr %o2 2003190: 80 a2 3f ff cmp %o0, -1 2003194: 02 80 00 04 be 20031a4 2003198: 11 15 55 11 sethi %hi(0x55544400), %o0 200319c: 81 c7 e0 08 ret 20031a0: 81 e8 00 00 restore rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 20031a4: 40 00 0d 47 call 20066c0 <== NOT EXECUTED 20031a8: 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 */ 20031ac: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED 20031b0: 40 00 0d 44 call 20066c0 <== NOT EXECUTED 20031b4: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <== NOT EXECUTED 02003cec : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 2003cec: 9d e3 bf a0 save %sp, -96, %sp int i; if (tty->termios.c_oflag & OPOST) { 2003cf0: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 2003cf4: 80 88 60 01 btst 1, %g1 2003cf8: 02 80 00 19 be 2003d5c 2003cfc: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 2003d00: b0 0e 20 ff and %i0, 0xff, %i0 2003d04: 80 a6 20 09 cmp %i0, 9 2003d08: 22 80 00 42 be,a 2003e10 2003d0c: c6 06 60 28 ld [ %i1 + 0x28 ], %g3 2003d10: 08 80 00 19 bleu 2003d74 2003d14: 80 a6 20 08 cmp %i0, 8 2003d18: 80 a6 20 0a cmp %i0, 0xa 2003d1c: 02 80 00 22 be 2003da4 2003d20: 80 a6 20 0d cmp %i0, 0xd 2003d24: 02 80 00 2d be 2003dd8 2003d28: 80 88 60 10 btst 0x10, %g1 if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 2003d2c: 80 88 60 02 btst 2, %g1 2003d30: 12 80 00 46 bne 2003e48 2003d34: 03 00 80 70 sethi %hi(0x201c000), %g1 2003d38: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 201c3d0 <__ctype_ptr__> c = toupper(c); if (!iscntrl(c)) 2003d3c: b0 00 40 18 add %g1, %i0, %i0 2003d40: c2 0e 20 01 ldub [ %i0 + 1 ], %g1 2003d44: 80 88 60 20 btst 0x20, %g1 2003d48: 12 80 00 06 bne 2003d60 2003d4c: 94 10 00 19 mov %i1, %o2 tty->column++; 2003d50: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 2003d54: 82 00 60 01 inc %g1 2003d58: c2 26 60 28 st %g1, [ %i1 + 0x28 ] break; } } rtems_termios_puts (&c, 1, tty); 2003d5c: 94 10 00 19 mov %i1, %o2 2003d60: 90 07 a0 44 add %fp, 0x44, %o0 2003d64: 7f ff ff 93 call 2003bb0 2003d68: 92 10 20 01 mov 1, %o1 2003d6c: 81 c7 e0 08 ret 2003d70: 81 e8 00 00 restore oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 2003d74: 12 bf ff ef bne 2003d30 <== NOT EXECUTED 2003d78: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 2003d7c: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 2003d80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d84: 04 bf ff f6 ble 2003d5c <== NOT EXECUTED 2003d88: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003d8c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += i; break; case '\b': if (tty->column > 0) tty->column--; 2003d90: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003d94: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED 2003d98: 7f ff ff 86 call 2003bb0 <== NOT EXECUTED 2003d9c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003da0: 30 80 00 3e b,a 2003e98 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 2003da4: 80 88 60 20 btst 0x20, %g1 2003da8: 32 80 00 02 bne,a 2003db0 2003dac: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 2003db0: 80 88 60 04 btst 4, %g1 2003db4: 02 bf ff eb be 2003d60 2003db8: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 2003dbc: 11 00 80 6c sethi %hi(0x201b000), %o0 2003dc0: 92 10 20 01 mov 1, %o1 2003dc4: 90 12 21 78 or %o0, 0x178, %o0 2003dc8: 7f ff ff 7a call 2003bb0 2003dcc: 94 10 00 19 mov %i1, %o2 tty->column = 0; 2003dd0: 10 bf ff e3 b 2003d5c 2003dd4: c0 26 60 28 clr [ %i1 + 0x28 ] } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 2003dd8: 02 80 00 06 be 2003df0 <== NOT EXECUTED 2003ddc: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003de0: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED 2003de4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003de8: 02 bf ff e1 be 2003d6c <== NOT EXECUTED 2003dec: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 2003df0: 22 bf ff db be,a 2003d5c <== NOT EXECUTED 2003df4: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 2003df8: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 2003dfc: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003e00: 02 bf ff d7 be 2003d5c <== NOT EXECUTED 2003e04: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; break; 2003e08: 10 bf ff d5 b 2003d5c <== NOT EXECUTED 2003e0c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2003e10: 05 00 00 06 sethi %hi(0x1800), %g2 2003e14: 82 08 40 02 and %g1, %g2, %g1 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2003e18: 92 10 20 08 mov 8, %o1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2003e1c: 80 a0 40 02 cmp %g1, %g2 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2003e20: 82 08 e0 07 and %g3, 7, %g1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2003e24: 02 80 00 17 be 2003e80 2003e28: 92 22 40 01 sub %o1, %g1, %o1 tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 2003e2c: 86 02 40 03 add %o1, %g3, %g3 <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003e30: 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; 2003e34: c6 26 60 28 st %g3, [ %i1 + 0x28 ] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 2003e38: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED 2003e3c: 7f ff ff 5d call 2003bb0 <== NOT EXECUTED 2003e40: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003e44: 30 80 00 15 b,a 2003e98 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 2003e48: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 <== NOT EXECUTED 2003e4c: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED 2003e50: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED 2003e54: c6 0e 20 01 ldub [ %i0 + 1 ], %g3 <== NOT EXECUTED 2003e58: 86 08 e0 03 and %g3, 3, %g3 <== NOT EXECUTED 2003e5c: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED 2003e60: 22 80 00 05 be,a 2003e74 <== NOT EXECUTED 2003e64: 84 00 bf e0 add %g2, -32, %g2 <== NOT EXECUTED 2003e68: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED 2003e6c: 10 bf ff b4 b 2003d3c <== NOT EXECUTED 2003e70: b0 08 a0 ff and %g2, 0xff, %i0 <== NOT EXECUTED 2003e74: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED 2003e78: 10 bf ff b1 b 2003d3c <== NOT EXECUTED 2003e7c: 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; 2003e80: 86 02 40 03 add %o1, %g3, %g3 rtems_termios_puts ( " ", i, tty); 2003e84: 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; 2003e88: c6 26 60 28 st %g3, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 2003e8c: 11 00 80 6c sethi %hi(0x201b000), %o0 2003e90: 7f ff ff 48 call 2003bb0 2003e94: 90 12 21 80 or %o0, 0x180, %o0 ! 201b180 return; 2003e98: 81 c7 e0 08 ret 2003e9c: 81 e8 00 00 restore 0200f1e4 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 200f1e4: 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) 200f1e8: 23 00 80 6e sethi %hi(0x201b800), %l1 200f1ec: a0 07 bf dc add %fp, -36, %l0 200f1f0: 92 10 20 03 mov 3, %o1 200f1f4: 90 14 60 d0 or %l1, 0xd0, %o0 200f1f8: 94 10 20 07 mov 7, %o2 200f1fc: 96 10 00 10 mov %l0, %o3 200f200: 7f ff cd 5b call 200276c 200f204: 98 10 20 01 mov 1, %o4 200f208: 80 a2 20 00 cmp %o0, 0 200f20c: 12 80 00 43 bne 200f318 200f210: 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); 200f214: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f218: 22 80 00 09 be,a 200f23c <== NOT EXECUTED 200f21c: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200f220: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201c81c <== NOT EXECUTED 200f224: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f228: 22 80 00 05 be,a 200f23c <== NOT EXECUTED 200f22c: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200f230: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f234: 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 ++); 200f238: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200f23c: c4 10 61 fa lduh [ %g1 + 0x1fa ], %g2 ! 201c9fa else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200f240: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200f244: 95 28 a0 10 sll %g2, 0x10, %o2 200f248: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200f24c: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200f250: c4 30 61 fa sth %g2, [ %g1 + 0x1fa ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200f254: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 200f258: 03 00 00 19 sethi %hi(0x6400), %g1 200f25c: 84 10 a1 70 or %g2, 0x170, %g2 200f260: 82 10 62 6f or %g1, 0x26f, %g1 200f264: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200f268: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200f26c: c4 3f bf f0 std %g2, [ %fp + -16 ] 200f270: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200f274: 90 07 bf fa add %fp, -6, %o0 200f278: 13 00 80 6e sethi %hi(0x201b800), %o1 200f27c: 40 00 05 d8 call 20109dc 200f280: 92 12 60 d8 or %o1, 0xd8, %o1 ! 201b8d8 <__FUNCTION__.5942+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 200f284: 90 10 00 10 mov %l0, %o0 200f288: 40 00 00 5a call 200f3f0 200f28c: 92 10 21 80 mov 0x180, %o1 200f290: 80 a2 20 00 cmp %o0, 0 200f294: 12 80 00 1d bne 200f308 200f298: 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); 200f29c: 7f ff cf c8 call 20031bc 200f2a0: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 200f2a4: 80 a2 20 00 cmp %o0, 0 200f2a8: 06 80 00 2f bl 200f364 200f2ac: 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]); 200f2b0: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200f2b4: c4 00 61 74 ld [ %g1 + 0x174 ], %g2 ! 201c174 <== NOT EXECUTED 200f2b8: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 200f2bc: 0a 80 00 23 bcs 200f348 <== NOT EXECUTED 200f2c0: 82 10 20 00 clr %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200f2c4: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200f2c8: 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; 200f2cc: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200f2d0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200f2d4: 7f ff cf ba call 20031bc <== NOT EXECUTED 200f2d8: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 200f2dc: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 200f2e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200f2e4: 06 80 00 26 bl 200f37c <== NOT EXECUTED 200f2e8: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 200f2ec: 40 00 00 49 call 200f410 <== NOT EXECUTED 200f2f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 200f2f4: 40 00 02 ce call 200fe2c <__errno> 200f2f8: b0 10 3f ff mov -1, %i0 200f2fc: e2 22 00 00 st %l1, [ %o0 ] } 200f300: 81 c7 e0 08 ret 200f304: 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){ 200f308: 40 00 02 c9 call 200fe2c <__errno> <== NOT EXECUTED 200f30c: 01 00 00 00 nop <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 200f310: 81 c7 e0 08 ret <== NOT EXECUTED 200f314: 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) 200f318: 40 00 02 c5 call 200fe2c <__errno> 200f31c: 01 00 00 00 nop 200f320: c2 02 00 00 ld [ %o0 ], %g1 200f324: 80 a0 60 02 cmp %g1, 2 200f328: 12 bf ff fa bne 200f310 200f32c: 90 14 60 d0 or %l1, 0xd0, %o0 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 200f330: 7f ff cd bf call 2002a2c 200f334: 92 10 23 ff mov 0x3ff, %o1 200f338: 80 a2 20 00 cmp %o0, 0 200f33c: 02 bf ff c0 be 200f23c 200f340: 03 00 80 72 sethi %hi(0x201c800), %g1 200f344: 30 bf ff f3 b,a 200f310 <== 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]); 200f348: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200f34c: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 ! 201cb70 <== NOT EXECUTED 200f350: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 200f354: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 200f358: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 200f35c: 10 bf ff da b 200f2c4 <== NOT EXECUTED 200f360: 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; 200f364: 40 00 02 b2 call 200fe2c <__errno> 200f368: 01 00 00 00 nop 200f36c: 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); 200f370: 40 00 00 28 call 200f410 200f374: 90 10 00 10 mov %l0, %o0 200f378: 30 bf ff df b,a 200f2f4 iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; 200f37c: 40 00 02 ac call 200fe2c <__errno> <== NOT EXECUTED 200f380: 01 00 00 00 nop <== NOT EXECUTED 200f384: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 200f388: 7f ff ef e4 call 200b318 <== NOT EXECUTED 200f38c: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED 200f390: 30 bf ff d7 b,a 200f2ec <== NOT EXECUTED 0200d858 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200d858: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 200d85c: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200d860: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 200d864: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 200d868: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200d86c: 12 80 00 12 bne 200d8b4 <== NOT EXECUTED 200d870: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 200d874: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200d878: 02 80 00 0f be 200d8b4 <== NOT EXECUTED 200d87c: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 200d880: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200d884: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d888: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d88c: 7f ff e1 de call 2006004 <== NOT EXECUTED 200d890: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200d894: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d898: 12 80 00 07 bne 200d8b4 <== NOT EXECUTED 200d89c: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200d8a0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d8a4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200d8a8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d8ac: 7f ff e2 1d call 2006120 <== NOT EXECUTED 200d8b0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 200d8b4: 81 c7 e0 08 ret <== NOT EXECUTED 200d8b8: 81 e8 00 00 restore <== NOT EXECUTED 0200d7e0 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 200d7e0: 81 c3 e0 08 retl <== NOT EXECUTED 200d7e4: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 0200d8bc : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200d8bc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200d8c0: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200d8c4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200d8c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d8cc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d8d0: 7f ff e1 cd call 2006004 <== NOT EXECUTED 200d8d4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200d8d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d8dc: 12 80 00 2f bne 200d998 <== NOT EXECUTED 200d8e0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 200d8e4: a4 10 20 00 clr %l2 <== NOT EXECUTED 200d8e8: b0 10 20 00 clr %i0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 200d8ec: 02 80 00 26 be 200d984 <== NOT EXECUTED 200d8f0: 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); 200d8f4: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 200d8f8: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200d8fc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200d900: 12 80 00 2a bne 200d9a8 <== NOT EXECUTED 200d904: 82 26 80 12 sub %i2, %l2, %g1 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 200d908: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200d90c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d910: 22 80 00 1d be,a 200d984 <== NOT EXECUTED 200d914: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 200d918: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200d91c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200d920: 32 80 00 19 bne,a 200d984 <== NOT EXECUTED 200d924: 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 ++; 200d928: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d92c: 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 ++; 200d930: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200d934: 7f ff e1 fb call 2006120 <== NOT EXECUTED 200d938: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200d93c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200d940: 40 00 04 76 call 200eb18 <== NOT EXECUTED 200d944: 92 10 20 00 clr %o1 <== NOT EXECUTED 200d948: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d94c: 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)) 200d950: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d954: 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)) 200d958: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200d95c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200d960: 7f ff e1 a9 call 2006004 <== NOT EXECUTED 200d964: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200d968: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d96c: 12 80 00 32 bne 200da34 <== NOT EXECUTED 200d970: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 200d974: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200d978: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200d97c: 02 bf ff df be 200d8f8 <== NOT EXECUTED 200d980: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 200d984: 7f ff e1 e7 call 2006120 <== NOT EXECUTED 200d988: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 200d98c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200d990: 04 80 00 04 ble 200d9a0 <== NOT EXECUTED 200d994: 01 00 00 00 nop <== NOT EXECUTED return read; return ret; } 200d998: 81 c7 e0 08 ret <== NOT EXECUTED 200d99c: 81 e8 00 00 restore <== NOT EXECUTED 200d9a0: 81 c7 e0 08 ret <== NOT EXECUTED 200d9a4: 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); 200d9a8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 200d9ac: 38 80 00 02 bgu,a 200d9b4 <== NOT EXECUTED 200d9b0: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 200d9b4: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200d9b8: e8 04 20 04 ld [ %l0 + 4 ], %l4 <== NOT EXECUTED 200d9bc: a8 25 00 01 sub %l4, %g1, %l4 <== NOT EXECUTED if (chunk > chunk1) { 200d9c0: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED 200d9c4: 14 80 00 1e bg 200da3c <== NOT EXECUTED 200d9c8: 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); 200d9cc: 90 06 40 12 add %i1, %l2, %o0 <== NOT EXECUTED 200d9d0: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200d9d4: 40 00 0b 52 call 201071c <== NOT EXECUTED 200d9d8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED pipe->Start += chunk; 200d9dc: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200d9e0: 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; 200d9e4: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200d9e8: 40 00 2e f1 call 20195ac <.urem> <== NOT EXECUTED 200d9ec: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200d9f0: 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; 200d9f4: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200d9f8: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 200d9fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200da00: 12 80 00 03 bne 200da0c <== NOT EXECUTED 200da04: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 200da08: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 200da0c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200da10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200da14: 32 80 00 15 bne,a 200da68 <== NOT EXECUTED 200da18: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; 200da1c: 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) { 200da20: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200da24: 0a bf ff b5 bcs 200d8f8 <== NOT EXECUTED 200da28: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED 200da2c: 10 bf ff d6 b 200d984 <== NOT EXECUTED 200da30: 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)) { 200da34: 10 bf ff d6 b 200d98c <== NOT EXECUTED 200da38: 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); 200da3c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED 200da40: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200da44: 40 00 0b 36 call 201071c <== NOT EXECUTED 200da48: 90 06 40 12 add %i1, %l2, %o0 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 200da4c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 200da50: 90 04 80 14 add %l2, %l4, %o0 <== NOT EXECUTED 200da54: 94 24 40 14 sub %l1, %l4, %o2 <== NOT EXECUTED 200da58: 40 00 0b 31 call 201071c <== NOT EXECUTED 200da5c: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; 200da60: 10 bf ff e0 b 200d9e0 <== NOT EXECUTED 200da64: 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); 200da68: 40 00 04 15 call 200eabc <== NOT EXECUTED 200da6c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 200da70: 10 bf ff ec b 200da20 <== NOT EXECUTED 200da74: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 0200dc94 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 200dc94: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 200dc98: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 200dc9c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200dca0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200dca4: 7f ff e0 d8 call 2006004 <== NOT EXECUTED 200dca8: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 200dcac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dcb0: 12 80 00 47 bne 200ddcc <== NOT EXECUTED 200dcb4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 200dcb8: e4 06 60 18 ld [ %i1 + 0x18 ], %l2 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 200dcbc: 80 8c a0 02 btst 2, %l2 <== NOT EXECUTED 200dcc0: 02 80 00 05 be 200dcd4 <== NOT EXECUTED 200dcc4: a4 0c a0 06 and %l2, 6, %l2 <== NOT EXECUTED pipe->Readers --; 200dcc8: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200dccc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200dcd0: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 200dcd4: 80 8c a0 04 btst 4, %l2 <== NOT EXECUTED 200dcd8: 32 80 00 1d bne,a 200dd4c <== NOT EXECUTED 200dcdc: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 200dce0: 23 00 80 72 sethi %hi(0x201c800), %l1 <== NOT EXECUTED 200dce4: d0 04 61 f4 ld [ %l1 + 0x1f4 ], %o0 ! 201c9f4 <== NOT EXECUTED 200dce8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200dcec: 7f ff e0 c6 call 2006004 <== NOT EXECUTED 200dcf0: 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) 200dcf4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dcf8: 12 80 00 35 bne 200ddcc <== NOT EXECUTED 200dcfc: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 200dd00: 7f ff e1 08 call 2006120 <== NOT EXECUTED 200dd04: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 200dd08: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200dd0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200dd10: 12 80 00 12 bne 200dd58 <== NOT EXECUTED 200dd14: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200dd18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200dd1c: 02 80 00 1c be 200dd8c <== NOT EXECUTED 200dd20: 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) 200dd24: 02 80 00 06 be 200dd3c <== NOT EXECUTED 200dd28: d0 04 61 f4 ld [ %l1 + 0x1f4 ], %o0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 200dd2c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200dd30: 40 00 03 63 call 200eabc <== NOT EXECUTED 200dd34: 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); 200dd38: d0 04 61 f4 ld [ %l1 + 0x1f4 ], %o0 <== NOT EXECUTED 200dd3c: 7f ff e0 f9 call 2006120 <== NOT EXECUTED 200dd40: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200dd44: 81 c7 e0 08 ret <== NOT EXECUTED 200dd48: 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 --; 200dd4c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200dd50: 10 bf ff e4 b 200dce0 <== NOT EXECUTED 200dd54: 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) 200dd58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200dd5c: 12 bf ff f7 bne 200dd38 <== NOT EXECUTED 200dd60: 80 a4 a0 02 cmp %l2, 2 <== NOT EXECUTED 200dd64: 02 bf ff f6 be 200dd3c <== NOT EXECUTED 200dd68: d0 04 61 f4 ld [ %l1 + 0x1f4 ], %o0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200dd6c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200dd70: 40 00 03 53 call 200eabc <== NOT EXECUTED 200dd74: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 200dd78: d0 04 61 f4 ld [ %l1 + 0x1f4 ], %o0 <== NOT EXECUTED 200dd7c: 7f ff e0 e9 call 2006120 <== NOT EXECUTED 200dd80: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200dd84: 81 c7 e0 08 ret <== NOT EXECUTED 200dd88: 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); 200dd8c: 40 00 03 32 call 200ea54 <== NOT EXECUTED 200dd90: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200dd94: 40 00 03 30 call 200ea54 <== NOT EXECUTED 200dd98: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200dd9c: 7f ff e0 6d call 2005f50 <== NOT EXECUTED 200dda0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200dda4: 7f ff f5 8d call 200b3d8 <== NOT EXECUTED 200dda8: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED free(pipe); 200ddac: 7f ff f5 8b call 200b3d8 <== NOT EXECUTED 200ddb0: 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); 200ddb4: d0 04 61 f4 ld [ %l1 + 0x1f4 ], %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; 200ddb8: 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); 200ddbc: 7f ff e0 d9 call 2006120 <== NOT EXECUTED 200ddc0: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200ddc4: 81 c7 e0 08 ret <== NOT EXECUTED 200ddc8: 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); 200ddcc: 7f ff e2 3d call 20066c0 <== NOT EXECUTED 0200da78 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 200da78: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 200da7c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 200da80: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200da84: 12 80 00 04 bne 200da94 <== NOT EXECUTED 200da88: b0 10 20 00 clr %i0 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 200da8c: 81 c7 e0 08 ret <== NOT EXECUTED 200da90: 81 e8 00 00 restore <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 200da94: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200da98: 92 10 20 00 clr %o1 <== NOT EXECUTED 200da9c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200daa0: 7f ff e1 59 call 2006004 <== NOT EXECUTED 200daa4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200daa8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200daac: 12 bf ff f8 bne 200da8c <== NOT EXECUTED 200dab0: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 200dab4: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200dab8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200dabc: 02 80 00 56 be 200dc14 <== NOT EXECUTED 200dac0: 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; 200dac4: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED 200dac8: 80 a6 80 15 cmp %i2, %l5 <== NOT EXECUTED 200dacc: 18 80 00 03 bgu 200dad8 <== NOT EXECUTED 200dad0: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED 200dad4: a4 10 00 1a mov %i2, %l2 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 200dad8: a6 10 20 00 clr %l3 <== NOT EXECUTED 200dadc: 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); 200dae0: 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) { 200dae4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200dae8: a2 25 40 01 sub %l5, %g1, %l1 <== NOT EXECUTED 200daec: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200daf0: 1a 80 00 28 bcc 200db90 <== NOT EXECUTED 200daf4: 84 26 80 13 sub %i2, %l3, %g2 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 200daf8: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200dafc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200db00: 32 80 00 46 bne,a 200dc18 <== NOT EXECUTED 200db04: 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 ++; 200db08: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200db0c: 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 ++; 200db10: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200db14: 7f ff e1 83 call 2006120 <== NOT EXECUTED 200db18: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200db1c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200db20: 40 00 03 fe call 200eb18 <== NOT EXECUTED 200db24: 92 10 20 00 clr %o1 <== NOT EXECUTED 200db28: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200db2c: 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)) 200db30: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200db34: 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)) 200db38: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200db3c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200db40: 7f ff e1 31 call 2006004 <== NOT EXECUTED 200db44: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200db48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200db4c: 12 80 00 43 bne 200dc58 <== NOT EXECUTED 200db50: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 200db54: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200db58: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200db5c: 12 80 00 2f bne 200dc18 <== NOT EXECUTED 200db60: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 200db64: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200db68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200db6c: 02 80 00 2b be 200dc18 <== NOT EXECUTED 200db70: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED 200db74: 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) { 200db78: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200db7c: a2 25 40 01 sub %l5, %g1, %l1 <== NOT EXECUTED 200db80: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200db84: 2a bf ff de bcs,a 200dafc <== NOT EXECUTED 200db88: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 200db8c: 84 26 80 13 sub %i2, %l3, %g2 <== NOT EXECUTED 200db90: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 200db94: 38 80 00 02 bgu,a 200db9c <== NOT EXECUTED 200db98: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 200db9c: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 200dba0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED 200dba4: 40 00 2e 82 call 20195ac <.urem> <== NOT EXECUTED 200dba8: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200dbac: a4 25 40 08 sub %l5, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200dbb0: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200dbb4: 04 80 00 2b ble 200dc60 <== NOT EXECUTED 200dbb8: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 200dbbc: 92 06 40 13 add %i1, %l3, %o1 <== NOT EXECUTED 200dbc0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 200dbc4: 40 00 0a d6 call 201071c <== NOT EXECUTED 200dbc8: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 200dbcc: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 200dbd0: 92 04 80 13 add %l2, %l3, %o1 <== NOT EXECUTED 200dbd4: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200dbd8: 40 00 0a d1 call 201071c <== NOT EXECUTED 200dbdc: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 200dbe0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200dbe4: 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; 200dbe8: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200dbec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200dbf0: 12 80 00 22 bne 200dc78 <== NOT EXECUTED 200dbf4: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 200dbf8: 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) { 200dbfc: 80 a6 80 18 cmp %i2, %i0 <== NOT EXECUTED 200dc00: 08 80 00 23 bleu 200dc8c <== NOT EXECUTED 200dc04: a6 10 00 18 mov %i0, %l3 <== NOT EXECUTED 200dc08: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED 200dc0c: 10 bf ff b6 b 200dae4 <== NOT EXECUTED 200dc10: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED 200dc14: 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); 200dc18: 7f ff e1 42 call 2006120 <== NOT EXECUTED 200dc1c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 200dc20: 80 a4 7f e0 cmp %l1, -32 <== NOT EXECUTED 200dc24: 02 80 00 07 be 200dc40 <== NOT EXECUTED 200dc28: 01 00 00 00 nop <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) 200dc2c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200dc30: 14 bf ff 97 bg 200da8c <== NOT EXECUTED 200dc34: 01 00 00 00 nop <== NOT EXECUTED return written; return ret; } 200dc38: 81 c7 e0 08 ret <== NOT EXECUTED 200dc3c: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); 200dc40: 40 00 02 58 call 200e5a0 <== NOT EXECUTED 200dc44: 01 00 00 00 nop <== NOT EXECUTED 200dc48: 40 00 02 ac call 200e6f8 <== NOT EXECUTED 200dc4c: 92 10 20 0d mov 0xd, %o1 ! d <== NOT EXECUTED #endif if (written > 0) 200dc50: 10 bf ff f8 b 200dc30 <== NOT EXECUTED 200dc54: 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)) { 200dc58: 10 bf ff f5 b 200dc2c <== NOT EXECUTED 200dc5c: 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); 200dc60: 92 06 40 13 add %i1, %l3, %o1 <== NOT EXECUTED 200dc64: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200dc68: 40 00 0a ad call 201071c <== NOT EXECUTED 200dc6c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED pipe->Length += chunk; 200dc70: 10 bf ff dd b 200dbe4 <== NOT EXECUTED 200dc74: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 200dc78: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200dc7c: 40 00 03 90 call 200eabc <== NOT EXECUTED 200dc80: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 200dc84: 10 bf ff de b 200dbfc <== NOT EXECUTED 200dc88: 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) { 200dc8c: 10 bf ff e3 b 200dc18 <== NOT EXECUTED 200dc90: a2 10 20 00 clr %l1 <== NOT EXECUTED 02006944 : int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { 2006944: 9d e3 bf 98 save %sp, -104, %sp if ( !once_control || !init_routine ) 2006948: 80 a6 60 00 cmp %i1, 0 200694c: 02 80 00 0b be 2006978 2006950: a0 10 00 18 mov %i0, %l0 2006954: 80 a6 20 00 cmp %i0, 0 2006958: 02 80 00 08 be 2006978 200695c: 01 00 00 00 nop return EINVAL; if ( !once_control->init_executed ) { 2006960: c2 06 20 04 ld [ %i0 + 4 ], %g1 2006964: 80 a0 60 00 cmp %g1, 0 2006968: 02 80 00 06 be 2006980 200696c: b0 10 20 00 clr %i0 (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); } return 0; } 2006970: 81 c7 e0 08 ret 2006974: 81 e8 00 00 restore int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { if ( !once_control || !init_routine ) 2006978: 81 c7 e0 08 ret 200697c: 91 e8 20 16 restore %g0, 0x16, %o0 return EINVAL; if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 2006980: a2 07 bf fc add %fp, -4, %l1 2006984: 90 10 21 00 mov 0x100, %o0 2006988: 92 10 21 00 mov 0x100, %o1 200698c: 40 00 03 09 call 20075b0 2006990: 94 10 00 11 mov %l1, %o2 if ( !once_control->init_executed ) { 2006994: c2 04 20 04 ld [ %l0 + 4 ], %g1 2006998: 80 a0 60 00 cmp %g1, 0 200699c: 02 80 00 09 be 20069c0 20069a0: 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); 20069a4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED 20069a8: 94 10 00 11 mov %l1, %o2 20069ac: 92 10 21 00 mov 0x100, %o1 20069b0: 40 00 03 00 call 20075b0 20069b4: b0 10 20 00 clr %i0 } return 0; } 20069b8: 81 c7 e0 08 ret 20069bc: 81 e8 00 00 restore 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; 20069c0: c2 24 20 04 st %g1, [ %l0 + 4 ] (*init_routine)(); 20069c4: 9f c6 40 00 call %i1 20069c8: c2 24 00 00 st %g1, [ %l0 ] } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 20069cc: 10 bf ff f7 b 20069a8 20069d0: d0 07 bf fc ld [ %fp + -4 ], %o0 02006554 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 2006554: 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() ) 2006558: 03 00 80 7a sethi %hi(0x201e800), %g1 200655c: c2 00 63 cc ld [ %g1 + 0x3cc ], %g1 ! 201ebcc <_ISR_Nest_level> 2006560: 80 a0 60 00 cmp %g1, 0 2006564: 12 80 00 15 bne 20065b8 2006568: 03 00 80 7a sethi %hi(0x201e800), %g1 return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 200656c: 21 00 80 7a sethi %hi(0x201e800), %l0 2006570: c6 00 63 30 ld [ %g1 + 0x330 ], %g3 2006574: c4 04 23 f0 ld [ %l0 + 0x3f0 ], %g2 2006578: 86 00 e0 01 inc %g3 200657c: c6 20 63 30 st %g3, [ %g1 + 0x330 ] 2006580: c2 00 a1 6c ld [ %g2 + 0x16c ], %g1 _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 2006584: c4 00 60 d4 ld [ %g1 + 0xd4 ], %g2 2006588: 80 a0 a0 00 cmp %g2, 0 200658c: 12 80 00 0d bne 20065c0 2006590: 01 00 00 00 nop thread_support->cancelation_requested ) 2006594: c2 00 60 dc ld [ %g1 + 0xdc ], %g1 2006598: 80 a0 60 00 cmp %g1, 0 200659c: 02 80 00 09 be 20065c0 20065a0: 01 00 00 00 nop cancel = true; _Thread_Enable_dispatch(); 20065a4: 40 00 0a 56 call 2008efc <_Thread_Enable_dispatch> 20065a8: b2 10 3f ff mov -1, %i1 ! ffffffff if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); 20065ac: f0 04 23 f0 ld [ %l0 + 0x3f0 ], %i0 20065b0: 40 00 1a 99 call 200d014 <_POSIX_Thread_Exit> 20065b4: 81 e8 00 00 restore 20065b8: 81 c7 e0 08 ret <== NOT EXECUTED 20065bc: 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(); 20065c0: 40 00 0a 4f call 2008efc <_Thread_Enable_dispatch> 20065c4: 81 e8 00 00 restore 0201a474 : ssize_t read( int fd, void *buffer, size_t count ) { 201a474: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201a478: 03 00 80 70 sethi %hi(0x201c000), %g1 201a47c: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201c174 201a480: 80 a6 00 01 cmp %i0, %g1 201a484: 1a 80 00 23 bcc 201a510 201a488: 03 00 80 72 sethi %hi(0x201c800), %g1 iop = rtems_libio_iop( fd ); 201a48c: e0 00 63 70 ld [ %g1 + 0x370 ], %l0 ! 201cb70 201a490: 83 2e 20 06 sll %i0, 6, %g1 201a494: b1 2e 20 03 sll %i0, 3, %i0 201a498: b0 06 00 01 add %i0, %g1, %i0 201a49c: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 201a4a0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 201a4a4: 80 88 61 00 btst 0x100, %g1 201a4a8: 02 80 00 1a be 201a510 201a4ac: 80 a6 60 00 cmp %i1, 0 rtems_libio_check_buffer( buffer ); 201a4b0: 02 80 00 1e be 201a528 201a4b4: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 201a4b8: 02 80 00 14 be 201a508 201a4bc: b0 10 20 00 clr %i0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 201a4c0: 80 88 60 02 btst 2, %g1 201a4c4: 02 80 00 19 be 201a528 201a4c8: 01 00 00 00 nop /* * Now process the read(). */ if ( !iop->handlers->read_h ) 201a4cc: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201a4d0: c2 00 60 08 ld [ %g1 + 8 ], %g1 201a4d4: 80 a0 60 00 cmp %g1, 0 201a4d8: 02 80 00 1a be 201a540 201a4dc: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 201a4e0: 94 10 00 1a mov %i2, %o2 201a4e4: 9f c0 40 00 call %g1 201a4e8: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 201a4ec: b0 92 20 00 orcc %o0, 0, %i0 201a4f0: 04 80 00 06 ble 201a508 201a4f4: 85 3e 20 1f sra %i0, 0x1f, %g2 iop->offset += rc; 201a4f8: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 201a4fc: 86 83 40 18 addcc %o5, %i0, %g3 201a500: 84 43 00 02 addx %o4, %g2, %g2 201a504: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 201a508: 81 c7 e0 08 ret 201a50c: 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 ); 201a510: 7f ff d6 47 call 200fe2c <__errno> 201a514: b0 10 3f ff mov -1, %i0 201a518: 82 10 20 09 mov 9, %g1 201a51c: c2 22 00 00 st %g1, [ %o0 ] 201a520: 81 c7 e0 08 ret 201a524: 81 e8 00 00 restore rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 201a528: 7f ff d6 41 call 200fe2c <__errno> <== NOT EXECUTED 201a52c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a530: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201a534: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a538: 81 c7 e0 08 ret <== NOT EXECUTED 201a53c: 81 e8 00 00 restore <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 201a540: 7f ff d6 3b call 200fe2c <__errno> <== NOT EXECUTED 201a544: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a548: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201a54c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a550: 81 c7 e0 08 ret <== NOT EXECUTED 201a554: 81 e8 00 00 restore <== NOT EXECUTED 0202a4f8 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 202a4f8: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 202a4fc: 80 a6 60 00 cmp %i1, 0 202a500: 02 80 00 2b be 202a5ac 202a504: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 202a508: 40 00 84 34 call 204b5d8 202a50c: 90 10 00 18 mov %i0, %o0 202a510: a0 07 bf ec add %fp, -20, %l0 202a514: 92 10 00 08 mov %o0, %o1 202a518: 94 10 20 00 clr %o2 202a51c: 90 10 00 18 mov %i0, %o0 202a520: 96 10 00 10 mov %l0, %o3 202a524: 98 10 20 00 clr %o4 202a528: 7f ff 6b b0 call 20053e8 202a52c: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 202a530: 80 a2 20 00 cmp %o0, 0 202a534: 12 80 00 1c bne 202a5a4 202a538: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 202a53c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 202a540: 80 a0 60 00 cmp %g1, 0 202a544: 22 80 00 31 be,a 202a608 202a548: 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 ){ 202a54c: 9f c0 40 00 call %g1 202a550: 90 10 00 10 mov %l0, %o0 202a554: 80 a2 20 04 cmp %o0, 4 202a558: 12 80 00 1b bne 202a5c4 202a55c: 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 ){ 202a560: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 202a564: 80 a0 60 00 cmp %g1, 0 202a568: 02 80 00 27 be 202a604 202a56c: 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 ); 202a570: 94 10 00 1a mov %i2, %o2 202a574: 9f c0 40 00 call %g1 202a578: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 202a57c: c2 07 bf f8 ld [ %fp + -8 ], %g1 202a580: 80 a0 60 00 cmp %g1, 0 202a584: 02 80 00 08 be 202a5a4 202a588: b0 10 00 08 mov %o0, %i0 202a58c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a590: 80 a0 60 00 cmp %g1, 0 202a594: 02 80 00 26 be 202a62c 202a598: 01 00 00 00 nop 202a59c: 9f c0 40 00 call %g1 202a5a0: 90 10 00 10 mov %l0, %o0 return result; } 202a5a4: 81 c7 e0 08 ret 202a5a8: 81 e8 00 00 restore { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 202a5ac: 40 00 68 c5 call 20448c0 <__errno> <== NOT EXECUTED 202a5b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a5b4: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 202a5b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a5bc: 81 c7 e0 08 ret <== NOT EXECUTED 202a5c0: 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 ); 202a5c4: c2 07 bf f8 ld [ %fp + -8 ], %g1 202a5c8: 80 a0 60 00 cmp %g1, 0 202a5cc: 02 80 00 08 be 202a5ec 202a5d0: 01 00 00 00 nop 202a5d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a5d8: 80 a0 60 00 cmp %g1, 0 202a5dc: 02 80 00 04 be 202a5ec 202a5e0: 01 00 00 00 nop 202a5e4: 9f c0 40 00 call %g1 202a5e8: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 202a5ec: 40 00 68 b5 call 20448c0 <__errno> 202a5f0: b0 10 3f ff mov -1, %i0 202a5f4: 82 10 20 16 mov 0x16, %g1 202a5f8: c2 22 00 00 st %g1, [ %o0 ] 202a5fc: 81 c7 e0 08 ret 202a600: 81 e8 00 00 restore } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 202a604: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202a608: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a60c: 02 80 00 04 be 202a61c <== NOT EXECUTED 202a610: 01 00 00 00 nop <== NOT EXECUTED 202a614: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a618: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a61c: 40 00 68 a9 call 20448c0 <__errno> <== NOT EXECUTED 202a620: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a624: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202a628: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a62c: 81 c7 e0 08 ret <== NOT EXECUTED 202a630: 81 e8 00 00 restore <== NOT EXECUTED 02004cf0 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 2004cf0: 9d e3 bf a0 save %sp, -96, %sp int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 2004cf4: 03 00 80 83 sethi %hi(0x2020c00), %g1 2004cf8: c2 00 63 e4 ld [ %g1 + 0x3e4 ], %g1 ! 2020fe4 2004cfc: 80 a6 00 01 cmp %i0, %g1 2004d00: 1a 80 00 52 bcc 2004e48 2004d04: 03 00 80 88 sethi %hi(0x2022000), %g1 iop = rtems_libio_iop( fd ); 2004d08: e4 00 61 b4 ld [ %g1 + 0x1b4 ], %l2 ! 20221b4 2004d0c: 83 2e 20 06 sll %i0, 6, %g1 2004d10: b1 2e 20 03 sll %i0, 3, %i0 2004d14: b0 06 00 01 add %i0, %g1, %i0 2004d18: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 2004d1c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 2004d20: 80 88 61 00 btst 0x100, %g1 2004d24: 02 80 00 49 be 2004e48 2004d28: 80 88 60 02 btst 2, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2004d2c: 02 80 00 26 be 2004dc4 2004d30: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 2004d34: 02 80 00 24 be 2004dc4 2004d38: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 2004d3c: 04 80 00 22 ble 2004dc4 2004d40: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2004d44: 14 80 00 20 bg 2004dc4 2004d48: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 2004d4c: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2004d50: c2 00 60 08 ld [ %g1 + 8 ], %g1 2004d54: 80 a0 60 00 cmp %g1, 0 2004d58: 02 80 00 42 be 2004e60 2004d5c: 96 10 20 01 mov 1, %o3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2004d60: 84 10 00 19 mov %i1, %g2 2004d64: 86 10 20 00 clr %g3 2004d68: 10 80 00 03 b 2004d74 2004d6c: 88 10 20 00 clr %g4 * 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++ ) { 2004d70: 88 10 00 0c mov %o4, %g4 ssize_t old; if ( !iov[v].iov_base ) 2004d74: da 00 80 00 ld [ %g2 ], %o5 2004d78: 80 a3 60 00 cmp %o5, 0 2004d7c: 02 80 00 12 be 2004dc4 2004d80: 86 00 e0 01 inc %g3 if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 2004d84: da 00 a0 04 ld [ %g2 + 4 ], %o5 2004d88: 98 01 00 0d add %g4, %o5, %o4 if ( total < old ) 2004d8c: 80 a3 00 04 cmp %o4, %g4 2004d90: 06 80 00 0d bl 2004dc4 2004d94: 84 00 a0 08 add %g2, 8, %g2 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 2004d98: 80 a0 00 0d cmp %g0, %o5 2004d9c: 88 40 3f ff addx %g0, -1, %g4 * 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++ ) { 2004da0: 80 a6 80 03 cmp %i2, %g3 2004da4: 14 bf ff f3 bg 2004d70 2004da8: 96 0a c0 04 and %o3, %g4, %o3 /* * A readv with all zeros logically has no effect. Even though * OpenGroup didn't address this case as they did with writev(), * we will handle it the same way for symmetry. */ if ( all_zeros == true ) { 2004dac: 80 8a e0 ff btst 0xff, %o3 2004db0: a6 10 20 00 clr %l3 2004db4: 02 80 00 0c be 2004de4 2004db8: b0 10 20 00 clr %i0 if (bytes != iov[ v ].iov_len) break; } return total; } 2004dbc: 81 c7 e0 08 ret 2004dc0: 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 ); 2004dc4: 40 00 36 a6 call 201285c <__errno> 2004dc8: b0 10 3f ff mov -1, %i0 2004dcc: 82 10 20 16 mov 0x16, %g1 2004dd0: c2 22 00 00 st %g1, [ %o0 ] 2004dd4: 81 c7 e0 08 ret 2004dd8: 81 e8 00 00 restore } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 2004ddc: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2004de0: c2 00 60 08 ld [ %g1 + 8 ], %g1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 2004de4: d2 06 40 00 ld [ %i1 ], %o1 2004de8: d4 06 60 04 ld [ %i1 + 4 ], %o2 2004dec: 9f c0 40 00 call %g1 2004df0: 90 10 00 12 mov %l2, %o0 if ( bytes < 0 ) 2004df4: 80 a2 20 00 cmp %o0, 0 2004df8: 06 80 00 12 bl 2004e40 2004dfc: 01 00 00 00 nop return -1; if ( bytes > 0 ) { 2004e00: 02 80 00 07 be 2004e1c 2004e04: a1 3a 20 1f sra %o0, 0x1f, %l0 iop->offset += bytes; 2004e08: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 2004e0c: 86 80 c0 08 addcc %g3, %o0, %g3 total += bytes; 2004e10: b0 06 00 08 add %i0, %o0, %i0 if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 2004e14: 84 40 80 10 addx %g2, %l0, %g2 2004e18: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] total += bytes; } if (bytes != iov[ v ].iov_len) 2004e1c: c2 06 60 04 ld [ %i1 + 4 ], %g1 2004e20: 80 a2 00 01 cmp %o0, %g1 2004e24: 12 bf ff e6 bne 2004dbc 2004e28: a6 04 e0 01 inc %l3 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 2004e2c: 80 a6 80 13 cmp %i2, %l3 2004e30: 14 bf ff eb bg 2004ddc 2004e34: b2 06 60 08 add %i1, 8, %i1 if (bytes != iov[ v ].iov_len) break; } return total; } 2004e38: 81 c7 e0 08 ret 2004e3c: 81 e8 00 00 restore 2004e40: 81 c7 e0 08 ret <== NOT EXECUTED 2004e44: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 2004e48: 40 00 36 85 call 201285c <__errno> <== NOT EXECUTED 2004e4c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004e50: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 2004e54: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2004e58: 81 c7 e0 08 ret <== NOT EXECUTED 2004e5c: 81 e8 00 00 restore <== 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 ); 2004e60: 40 00 36 7f call 201285c <__errno> <== NOT EXECUTED 2004e64: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2004e68: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2004e6c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2004e70: 81 c7 e0 08 ret <== NOT EXECUTED 2004e74: 81 e8 00 00 restore <== NOT EXECUTED 0201a5dc : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 201a5dc: 9d e3 bf 98 save %sp, -104, %sp 201a5e0: 21 00 80 72 sethi %hi(0x201c800), %l0 201a5e4: a0 14 23 80 or %l0, 0x380, %l0 ! 201cb80 201a5e8: 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())) { 201a5ec: 03 00 80 73 sethi %hi(0x201cc00), %g1 201a5f0: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 201cee0 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 201a5f4: 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())) { 201a5f8: 80 a0 60 03 cmp %g1, 3 201a5fc: 02 80 00 36 be 201a6d4 201a600: c4 24 20 10 st %g2, [ %l0 + 0x10 ] } /* * Continue with realloc(). */ if ( !ptr ) 201a604: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 201a608: 02 80 00 3e be 201a700 201a60c: 80 a6 60 00 cmp %i1, 0 return malloc( size ); if ( !size ) { 201a610: 02 80 00 11 be 201a654 201a614: 23 00 80 70 sethi %hi(0x201c000), %l1 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 201a618: d0 04 61 80 ld [ %l1 + 0x180 ], %o0 ! 201c180 201a61c: 92 10 00 18 mov %i0, %o1 201a620: 40 00 00 75 call 201a7f4 <_Protected_heap_Get_block_size> 201a624: 94 07 bf fc add %fp, -4, %o2 201a628: 80 8a 20 ff btst 0xff, %o0 201a62c: 02 80 00 0f be 201a668 201a630: d0 04 61 80 ld [ %l1 + 0x180 ], %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 ) ) { 201a634: 92 10 00 18 mov %i0, %o1 201a638: 40 00 00 7c call 201a828 <_Protected_heap_Resize_block> 201a63c: 94 10 00 19 mov %i1, %o2 201a640: 80 8a 20 ff btst 0xff, %o0 201a644: 02 80 00 0f be 201a680 201a648: 01 00 00 00 nop memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 201a64c: 81 c7 e0 08 ret 201a650: 81 e8 00 00 restore */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 201a654: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201a658: 7f ff c3 60 call 200b3d8 <== NOT EXECUTED 201a65c: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 201a660: 81 c7 e0 08 ret <== NOT EXECUTED 201a664: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 201a668: 7f ff d5 f1 call 200fe2c <__errno> 201a66c: b0 10 20 00 clr %i0 201a670: 82 10 20 16 mov 0x16, %g1 201a674: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 201a678: 81 c7 e0 08 ret 201a67c: 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 ); 201a680: 7f ff c4 d6 call 200b9d8 201a684: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 201a688: 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 ); 201a68c: a2 10 00 08 mov %o0, %l1 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 201a690: 82 00 7f ff add %g1, -1, %g1 if ( !new_area ) { 201a694: 80 a2 20 00 cmp %o0, 0 201a698: 02 80 00 18 be 201a6f8 201a69c: c2 24 20 04 st %g1, [ %l0 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 201a6a0: c2 07 bf fc ld [ %fp + -4 ], %g1 201a6a4: 80 a6 40 01 cmp %i1, %g1 201a6a8: 08 80 00 03 bleu 201a6b4 201a6ac: 94 10 00 19 mov %i1, %o2 201a6b0: 94 10 00 01 mov %g1, %o2 201a6b4: 92 10 00 18 mov %i0, %o1 201a6b8: 7f ff d8 19 call 201071c 201a6bc: 90 10 00 11 mov %l1, %o0 free( ptr ); 201a6c0: 90 10 00 18 mov %i0, %o0 201a6c4: 7f ff c3 45 call 200b3d8 201a6c8: b0 10 00 11 mov %l1, %i0 return new_area; 201a6cc: 81 c7 e0 08 ret 201a6d0: 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) 201a6d4: 03 00 80 73 sethi %hi(0x201cc00), %g1 201a6d8: c2 00 61 40 ld [ %g1 + 0x140 ], %g1 ! 201cd40 <_Thread_Dispatch_disable_level> 201a6dc: 80 a0 60 00 cmp %g1, 0 201a6e0: 12 80 00 06 bne 201a6f8 201a6e4: 03 00 80 73 sethi %hi(0x201cc00), %g1 return (void *) 0; if (_ISR_Nest_level > 0) 201a6e8: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 201cddc <_ISR_Nest_level> 201a6ec: 80 a0 60 00 cmp %g1, 0 201a6f0: 02 bf ff c6 be 201a608 201a6f4: 80 a6 20 00 cmp %i0, 0 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 201a6f8: 81 c7 e0 08 ret 201a6fc: 91 e8 20 00 restore %g0, 0, %o0 /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 201a700: 7f ff c4 b6 call 200b9d8 201a704: 90 10 00 19 mov %i1, %o0 201a708: 81 c7 e0 08 ret 201a70c: 91 e8 00 08 restore %g0, %o0, %o0 0202a634 : #include int rmdir( const char *pathname ) { 202a634: 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 ); 202a638: 7f ff 6b 0e call 2005270 202a63c: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 202a640: a0 92 20 00 orcc %o0, 0, %l0 202a644: 32 80 00 96 bne,a 202a89c 202a648: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 202a64c: c2 4e 00 00 ldsb [ %i0 ], %g1 202a650: 80 a0 60 5c cmp %g1, 0x5c 202a654: 12 80 00 59 bne 202a7b8 202a658: 80 a0 60 2f cmp %g1, 0x2f 202a65c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 202a660: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 202a664: a2 10 20 00 clr %l1 202a668: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 202a66c: c4 27 bf ec st %g2, [ %fp + -20 ] 202a670: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 202a674: c4 27 bf f0 st %g2, [ %fp + -16 ] 202a678: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 202a67c: c4 27 bf f4 st %g2, [ %fp + -12 ] 202a680: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 202a684: c4 27 bf f8 st %g2, [ %fp + -8 ] 202a688: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 202a68c: c2 27 bf fc st %g1, [ %fp + -4 ] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 202a690: c2 07 bf ec ld [ %fp + -20 ], %g1 name = pathname + parentpathlen; 202a694: b0 06 00 10 add %i0, %l0, %i0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 202a698: c2 27 bf d8 st %g1, [ %fp + -40 ] 202a69c: c2 07 bf f0 ld [ %fp + -16 ], %g1 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 202a6a0: 90 10 00 18 mov %i0, %o0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 202a6a4: c2 27 bf dc st %g1, [ %fp + -36 ] 202a6a8: 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 ), 202a6ac: a0 07 bf d8 add %fp, -40, %l0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 202a6b0: c2 27 bf e0 st %g1, [ %fp + -32 ] 202a6b4: c2 07 bf f8 ld [ %fp + -8 ], %g1 202a6b8: c2 27 bf e4 st %g1, [ %fp + -28 ] 202a6bc: c2 07 bf fc ld [ %fp + -4 ], %g1 name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 202a6c0: 40 00 83 c6 call 204b5d8 202a6c4: c2 27 bf e8 st %g1, [ %fp + -24 ] 202a6c8: 92 10 00 08 mov %o0, %o1 202a6cc: 7f ff 6a c8 call 20051ec 202a6d0: 90 10 00 18 mov %i0, %o0 202a6d4: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 202a6d8: 40 00 83 c0 call 204b5d8 202a6dc: 90 10 00 18 mov %i0, %o0 202a6e0: 94 10 20 00 clr %o2 202a6e4: 92 10 00 08 mov %o0, %o1 202a6e8: 96 10 00 10 mov %l0, %o3 202a6ec: 90 10 00 18 mov %i0, %o0 202a6f0: 7f ff 6a fd call 20052e4 202a6f4: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 202a6f8: 80 a2 20 00 cmp %o0, 0 202a6fc: 12 80 00 2a bne 202a7a4 202a700: c4 07 bf e4 ld [ %fp + -28 ], %g2 /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 202a704: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 202a708: 80 a0 60 00 cmp %g1, 0 202a70c: 22 80 00 8a be,a 202a934 202a710: 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 ){ 202a714: 9f c0 40 00 call %g1 202a718: 90 10 00 10 mov %l0, %o0 202a71c: 80 a2 20 01 cmp %o0, 1 202a720: 12 80 00 38 bne 202a800 202a724: c2 07 bf e0 ld [ %fp + -32 ], %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 202a728: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 202a72c: 80 a0 60 00 cmp %g1, 0 202a730: 02 80 00 65 be 202a8c4 202a734: 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 ); 202a738: 92 10 00 10 mov %l0, %o1 202a73c: 9f c0 40 00 call %g1 202a740: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 202a744: c2 07 bf e4 ld [ %fp + -28 ], %g1 202a748: 80 a0 60 00 cmp %g1, 0 202a74c: 02 80 00 08 be 202a76c 202a750: b0 10 00 08 mov %o0, %i0 202a754: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a758: 80 a0 60 00 cmp %g1, 0 202a75c: 02 80 00 05 be 202a770 202a760: 80 8c 60 ff btst 0xff, %l1 202a764: 9f c0 40 00 call %g1 202a768: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 202a76c: 80 8c 60 ff btst 0xff, %l1 202a770: 02 80 00 0b be 202a79c 202a774: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 202a778: 80 a0 60 00 cmp %g1, 0 202a77c: 02 80 00 6c be 202a92c 202a780: 01 00 00 00 nop 202a784: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a788: 80 a0 60 00 cmp %g1, 0 202a78c: 02 80 00 68 be 202a92c 202a790: 01 00 00 00 nop 202a794: 9f c0 40 00 call %g1 202a798: 90 10 00 12 mov %l2, %o0 202a79c: 81 c7 e0 08 ret 202a7a0: 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 ) 202a7a4: 80 8c 60 ff btst 0xff, %l1 202a7a8: 12 80 00 32 bne 202a870 202a7ac: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 202a7b0: 81 c7 e0 08 ret 202a7b4: 91 e8 3f ff restore %g0, -1, %o0 */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 202a7b8: 22 bf ff aa be,a 202a660 202a7bc: 03 00 81 aa sethi %hi(0x206a800), %g1 202a7c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a7c4: 02 bf ff a7 be 202a660 <== NOT EXECUTED 202a7c8: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 202a7cc: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 202a7d0: a2 10 20 00 clr %l1 <== NOT EXECUTED 202a7d4: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED 202a7d8: c4 27 bf ec st %g2, [ %fp + -20 ] <== NOT EXECUTED 202a7dc: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 202a7e0: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED 202a7e4: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED 202a7e8: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED 202a7ec: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED 202a7f0: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED 202a7f4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 202a7f8: 10 bf ff a6 b 202a690 <== NOT EXECUTED 202a7fc: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); 202a800: c2 07 bf e4 ld [ %fp + -28 ], %g1 202a804: 80 a0 60 00 cmp %g1, 0 202a808: 02 80 00 09 be 202a82c 202a80c: 80 8c 60 ff btst 0xff, %l1 202a810: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a814: 80 a0 60 00 cmp %g1, 0 202a818: 02 80 00 05 be 202a82c 202a81c: 80 8c 60 ff btst 0xff, %l1 202a820: 9f c0 40 00 call %g1 202a824: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 202a828: 80 8c 60 ff btst 0xff, %l1 202a82c: 02 80 00 0b be 202a858 202a830: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 202a834: 80 a0 60 00 cmp %g1, 0 202a838: 02 80 00 08 be 202a858 202a83c: 01 00 00 00 nop 202a840: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202a844: 80 a0 60 00 cmp %g1, 0 202a848: 02 80 00 04 be 202a858 202a84c: 01 00 00 00 nop 202a850: 9f c0 40 00 call %g1 202a854: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 202a858: 40 00 68 1a call 20448c0 <__errno> 202a85c: b0 10 3f ff mov -1, %i0 202a860: 82 10 20 14 mov 0x14, %g1 202a864: c2 22 00 00 st %g1, [ %o0 ] 202a868: 81 c7 e0 08 ret 202a86c: 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 ); 202a870: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a874: 02 bf ff ca be 202a79c <== NOT EXECUTED 202a878: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a87c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a880: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a884: 02 bf ff c6 be 202a79c <== NOT EXECUTED 202a888: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 202a88c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a890: 01 00 00 00 nop <== NOT EXECUTED 202a894: 81 c7 e0 08 ret <== NOT EXECUTED 202a898: 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, 202a89c: 92 10 00 10 mov %l0, %o1 202a8a0: 94 10 20 02 mov 2, %o2 202a8a4: 96 07 bf ec add %fp, -20, %o3 202a8a8: 7f ff 6a d0 call 20053e8 202a8ac: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 202a8b0: 80 a2 20 00 cmp %o0, 0 202a8b4: 12 bf ff bf bne 202a7b0 202a8b8: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 202a8bc: 10 bf ff 76 b 202a694 202a8c0: 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 ); 202a8c4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 202a8c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a8cc: 02 80 00 09 be 202a8f0 <== NOT EXECUTED 202a8d0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 202a8d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a8d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a8dc: 02 80 00 05 be 202a8f0 <== NOT EXECUTED 202a8e0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 202a8e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a8e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 202a8ec: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 202a8f0: 02 80 00 0b be 202a91c <== NOT EXECUTED 202a8f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 202a8f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a8fc: 02 80 00 08 be 202a91c <== NOT EXECUTED 202a900: 01 00 00 00 nop <== NOT EXECUTED 202a904: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202a908: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a90c: 02 80 00 04 be 202a91c <== NOT EXECUTED 202a910: 01 00 00 00 nop <== NOT EXECUTED 202a914: 9f c0 40 00 call %g1 <== NOT EXECUTED 202a918: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a91c: 40 00 67 e9 call 20448c0 <__errno> <== NOT EXECUTED 202a920: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202a924: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202a928: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202a92c: 81 c7 e0 08 ret <== NOT EXECUTED 202a930: 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 ); 202a934: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202a938: 12 bf ff eb bne 202a8e4 <== NOT EXECUTED 202a93c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 202a940: 30 bf ff ec b,a 202a8f0 <== NOT EXECUTED 020162f4 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 20162f4: 11 00 80 a0 sethi %hi(0x2028000), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 20162f8: 81 c3 e0 08 retl <== NOT EXECUTED 20162fc: 90 12 20 08 or %o0, 8, %o0 ! 2028008 <== NOT EXECUTED 020125a4 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 20125a4: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 20125a8: 90 10 00 18 mov %i0, %o0 20125ac: 40 00 00 0b call 20125d8 20125b0: 92 10 00 19 mov %i1, %o1 if (nap) 20125b4: 80 a2 20 00 cmp %o0, 0 20125b8: 02 80 00 05 be 20125cc 20125bc: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 20125c0: f0 02 00 00 ld [ %o0 ], %i0 20125c4: 81 c7 e0 08 ret 20125c8: 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); 20125cc: 40 00 0f 4a call 20162f4 <== NOT EXECUTED 20125d0: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 0200fd7c : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200fd7c: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200fd80: d0 06 00 00 ld [ %i0 ], %o0 200fd84: 80 a2 20 00 cmp %o0, 0 200fd88: 02 80 00 1d be 200fdfc 200fd8c: 13 00 80 6e sethi %hi(0x201b800), %o1 200fd90: 40 00 03 8e call 2010bc8 200fd94: 92 12 61 f8 or %o1, 0x1f8, %o1 ! 201b9f8 200fd98: 80 a2 20 00 cmp %o0, 0 200fd9c: 02 80 00 11 be 200fde0 200fda0: 84 10 20 00 clr %g2 default_ap = ap++; for ( ; ap->name; ap++) if (ap->local_value == local_value) 200fda4: c2 06 20 04 ld [ %i0 + 4 ], %g1 200fda8: 80 a0 40 19 cmp %g1, %i1 200fdac: 32 80 00 07 bne,a 200fdc8 200fdb0: b0 06 20 0c add %i0, 0xc, %i0 200fdb4: 30 80 00 14 b,a 200fe04 200fdb8: 80 a0 40 19 cmp %g1, %i1 200fdbc: 02 80 00 12 be 200fe04 200fdc0: 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++) 200fdc4: b0 06 20 0c add %i0, 0xc, %i0 200fdc8: c2 06 00 00 ld [ %i0 ], %g1 200fdcc: 80 a0 60 00 cmp %g1, 0 200fdd0: 32 bf ff fa bne,a 200fdb8 200fdd4: c2 06 20 04 ld [ %i0 + 4 ], %g1 if (ap->local_value == local_value) return ap; return default_ap; } 200fdd8: 81 c7 e0 08 ret 200fddc: 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++) 200fde0: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED 200fde4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200fde8: 02 80 00 07 be 200fe04 <== NOT EXECUTED 200fdec: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED 200fdf0: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED 200fdf4: 10 bf ff ec b 200fda4 <== NOT EXECUTED 200fdf8: 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)) 200fdfc: 81 c7 e0 08 ret <== NOT EXECUTED 200fe00: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200fe04: 81 c7 e0 08 ret 200fe08: 81 e8 00 00 restore 0200e510 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 200e510: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 200e514: d0 06 00 00 ld [ %i0 ], %o0 200e518: 80 a2 20 00 cmp %o0, 0 200e51c: 02 80 00 1d be 200e590 200e520: 13 00 80 6e sethi %hi(0x201b800), %o1 200e524: 40 00 09 a9 call 2010bc8 200e528: 92 12 60 c0 or %o1, 0xc0, %o1 ! 201b8c0 <__FUNCTION__.5942+0x18> 200e52c: 80 a2 20 00 cmp %o0, 0 200e530: 02 80 00 11 be 200e574 200e534: 84 10 20 00 clr %g2 default_ap = ap++; for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 200e538: c2 06 20 08 ld [ %i0 + 8 ], %g1 200e53c: 80 a0 40 19 cmp %g1, %i1 200e540: 32 80 00 07 bne,a 200e55c 200e544: b0 06 20 0c add %i0, 0xc, %i0 200e548: 30 80 00 14 b,a 200e598 200e54c: 80 a0 40 19 cmp %g1, %i1 200e550: 02 80 00 12 be 200e598 200e554: 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++) 200e558: b0 06 20 0c add %i0, 0xc, %i0 200e55c: c2 06 00 00 ld [ %i0 ], %g1 200e560: 80 a0 60 00 cmp %g1, 0 200e564: 32 bf ff fa bne,a 200e54c 200e568: c2 06 20 08 ld [ %i0 + 8 ], %g1 if (ap->remote_value == remote_value) return ap; return default_ap; } 200e56c: 81 c7 e0 08 ret 200e570: 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++) 200e574: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED 200e578: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200e57c: 02 80 00 07 be 200e598 <== NOT EXECUTED 200e580: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED 200e584: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED 200e588: 10 bf ff ec b 200e538 <== NOT EXECUTED 200e58c: 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)) 200e590: 81 c7 e0 08 ret <== NOT EXECUTED 200e594: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200e598: 81 c7 e0 08 ret 200e59c: 81 e8 00 00 restore 0200f3c8 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200f3c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200f3cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200f3d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200f3d4: 40 00 02 6a call 200fd7c <== NOT EXECUTED 200f3d8: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200f3dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200f3e0: 32 80 00 02 bne,a 200f3e8 <== NOT EXECUTED 200f3e4: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200f3e8: 81 c7 e0 08 ret <== NOT EXECUTED 200f3ec: 81 e8 00 00 restore <== NOT EXECUTED 02003250 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 2003250: 9d e3 bf 60 save %sp, -160, %sp Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 2003254: 80 a6 60 00 cmp %i1, 0 2003258: 02 80 00 72 be 2003420 200325c: 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 ); 2003260: 40 00 15 ef call 2008a1c <_TOD_Get_uptime> 2003264: 90 07 bf f0 add %fp, -16, %o0 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 2003268: 92 07 bf f0 add %fp, -16, %o1 200326c: a8 07 bf e8 add %fp, -24, %l4 2003270: 11 00 80 ae sethi %hi(0x202b800), %o0 2003274: 94 10 00 14 mov %l4, %o2 2003278: 40 00 20 c3 call 200b584 <_Timespec_Subtract> 200327c: 90 12 20 98 or %o0, 0x98, %o0 } } } #endif (*print)( 2003280: 90 10 00 18 mov %i0, %o0 2003284: 13 00 80 82 sethi %hi(0x2020800), %o1 2003288: 37 00 80 ac sethi %hi(0x202b000), %i3 200328c: 92 12 60 e8 or %o1, 0xe8, %o1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2003290: 3b 00 80 82 sethi %hi(0x2020800), %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 ) { 2003294: 2f 00 80 ac sethi %hi(0x202b000), %l7 } } } #endif (*print)( 2003298: 9f c6 40 00 call %i1 200329c: 2d 00 80 82 sethi %hi(0x2020800), %l6 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 20032a0: a4 07 bf c8 add %fp, -56, %l2 } } } #endif (*print)( 20032a4: b6 16 e2 34 or %i3, 0x234, %i3 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 20032a8: ba 17 62 60 or %i5, 0x260, %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 ) { 20032ac: ae 15 e3 90 or %l7, 0x390, %l7 /* * Print the information */ (*print)( context, 20032b0: ac 15 a2 78 or %l6, 0x278, %l6 20032b4: 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 ); 20032b8: aa 07 bf fc add %fp, -4, %l5 20032bc: 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( 20032c0: 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 ] ) 20032c4: c2 06 c0 00 ld [ %i3 ], %g1 20032c8: 80 a0 60 00 cmp %g1, 0 20032cc: 22 80 00 47 be,a 20033e8 20032d0: b6 06 e0 04 add %i3, 4, %i3 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 20032d4: e2 00 60 04 ld [ %g1 + 4 ], %l1 if ( information ) { 20032d8: 80 a4 60 00 cmp %l1, 0 20032dc: 22 80 00 43 be,a 20033e8 20032e0: b6 06 e0 04 add %i3, 4, %i3 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { 20032e4: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 20032e8: 86 90 60 00 orcc %g1, 0, %g3 20032ec: 02 80 00 3e be 20033e4 20032f0: a0 10 20 01 mov 1, %l0 the_thread = (Thread_Control *)information->local_table[ i ]; 20032f4: 10 80 00 17 b 2003350 20032f8: 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 ); 20032fc: 96 10 00 1c mov %i4, %o3 2003300: 90 10 00 13 mov %l3, %o0 2003304: 40 00 20 0e call 200b33c <_Timespec_Divide> 2003308: 92 10 00 14 mov %l4, %o1 /* * Print the information */ (*print)( context, 200330c: d0 07 bf e4 ld [ %fp + -28 ], %o0 2003310: 40 00 6d 1f call 201e78c <.udiv> 2003314: 92 10 23 e8 mov 0x3e8, %o1 2003318: d4 07 bf e0 ld [ %fp + -32 ], %o2 200331c: d8 07 bf fc ld [ %fp + -4 ], %o4 2003320: da 07 bf f8 ld [ %fp + -8 ], %o5 2003324: 96 10 00 08 mov %o0, %o3 2003328: 92 10 00 16 mov %l6, %o1 200332c: 9f c6 40 00 call %i1 2003330: 90 10 00 18 mov %i0, %o0 2003334: 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++ ) { 2003338: 83 28 e0 10 sll %g3, 0x10, %g1 200333c: 83 30 60 10 srl %g1, 0x10, %g1 2003340: 80 a0 40 10 cmp %g1, %l0 2003344: 2a 80 00 29 bcs,a 20033e8 2003348: b6 06 e0 04 add %i3, 4, %i3 the_thread = (Thread_Control *)information->local_table[ i ]; 200334c: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 2003350: 83 2c 20 02 sll %l0, 2, %g1 2003354: c2 00 80 01 ld [ %g2 + %g1 ], %g1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2003358: 94 10 00 12 mov %l2, %o2 200335c: 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 ) 2003360: 80 a0 60 00 cmp %g1, 0 2003364: 02 bf ff f5 be 2003338 2003368: a0 04 20 01 inc %l0 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 200336c: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003370: 40 00 10 7e call 2007568 2003374: c2 27 bf c4 st %g1, [ %fp + -60 ] (*print)( 2003378: c2 07 bf c4 ld [ %fp + -60 ], %g1 200337c: 90 10 00 18 mov %i0, %o0 2003380: d4 00 60 08 ld [ %g1 + 8 ], %o2 2003384: 92 10 00 1d mov %i5, %o1 2003388: 9f c6 40 00 call %i1 200338c: 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; 2003390: c2 07 bf c4 ld [ %fp + -60 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2003394: 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; 2003398: c6 00 60 84 ld [ %g1 + 0x84 ], %g3 200339c: c6 27 bf e0 st %g3, [ %fp + -32 ] 20033a0: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 20033a4: c6 27 bf e4 st %g3, [ %fp + -28 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 20033a8: c4 00 a0 08 ld [ %g2 + 8 ], %g2 20033ac: c2 00 60 08 ld [ %g1 + 8 ], %g1 20033b0: 80 a0 80 01 cmp %g2, %g1 20033b4: 32 bf ff d2 bne,a 20032fc 20033b8: 94 10 00 15 mov %l5, %o2 Timestamp_Control used; _Timestamp_Subtract( 20033bc: 92 07 bf f0 add %fp, -16, %o1 20033c0: 94 10 00 1a mov %i2, %o2 20033c4: 11 00 80 ac sethi %hi(0x202b000), %o0 20033c8: 40 00 20 6f call 200b584 <_Timespec_Subtract> 20033cc: 90 12 23 98 or %o0, 0x398, %o0 ! 202b398 <_Thread_Time_of_last_context_switch> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 20033d0: 90 10 00 13 mov %l3, %o0 20033d4: 40 00 1f c1 call 200b2d8 <_Timespec_Add_to> 20033d8: 92 10 00 1a mov %i2, %o1 }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 20033dc: 10 bf ff c8 b 20032fc 20033e0: 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++ ) { 20033e4: b6 06 e0 04 add %i3, 4, %i3 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 20033e8: 03 00 80 ac sethi %hi(0x202b000), %g1 20033ec: 82 10 62 44 or %g1, 0x244, %g1 ! 202b244 <_Objects_Information_table+0x14> 20033f0: 80 a6 c0 01 cmp %i3, %g1 20033f4: 32 bf ff b5 bne,a 20032c8 20033f8: c2 06 c0 00 ld [ %i3 ], %g1 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 20033fc: d0 07 bf ec ld [ %fp + -20 ], %o0 2003400: 40 00 6c e3 call 201e78c <.udiv> 2003404: 92 10 23 e8 mov 0x3e8, %o1 2003408: d4 07 bf e8 ld [ %fp + -24 ], %o2 200340c: 96 10 00 08 mov %o0, %o3 2003410: 13 00 80 82 sethi %hi(0x2020800), %o1 2003414: 90 10 00 18 mov %i0, %o0 2003418: 9f c6 40 00 call %i1 200341c: 92 12 62 90 or %o1, 0x290, %o1 2003420: 81 c7 e0 08 ret 2003424: 81 e8 00 00 restore 0200f394 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 200f394: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 200f398: 11 00 80 6e sethi %hi(0x201b800), %o0 <== NOT EXECUTED 200f39c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200f3a0: 40 00 00 0a call 200f3c8 <== NOT EXECUTED 200f3a4: 90 12 21 70 or %o0, 0x170, %o0 <== NOT EXECUTED 200f3a8: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 200f3ac: 02 80 00 05 be 200f3c0 <== NOT EXECUTED 200f3b0: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200f3b4: 40 00 02 9e call 200fe2c <__errno> <== NOT EXECUTED 200f3b8: 01 00 00 00 nop <== NOT EXECUTED 200f3bc: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200f3c0: 81 c7 e0 08 ret <== NOT EXECUTED 200f3c4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 02007ed4 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 2007ed4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 2007ed8: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 2007edc: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007ee0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007ee4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2007ee8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 2007eec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2007ef0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007ef4: 7f ff ff 7e call 2007cec <== NOT EXECUTED 2007ef8: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 2007efc: 81 c7 e0 08 ret <== NOT EXECUTED 2007f00: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0200276c : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 200276c: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 2002770: 80 a6 20 00 cmp %i0, 0 2002774: 02 80 00 34 be 2002844 2002778: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 200277c: 22 80 00 2c be,a 200282c 2002780: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2002784: c2 4e 00 00 ldsb [ %i0 ], %g1 2002788: 80 a0 60 5c cmp %g1, 0x5c 200278c: 22 80 00 18 be,a 20027ec 2002790: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 2002794: 80 a0 60 2f cmp %g1, 0x2f 2002798: 22 80 00 15 be,a 20027ec 200279c: 03 00 80 70 sethi %hi(0x201c000), %g1 20027a0: 80 a0 60 00 cmp %g1, 0 20027a4: 02 80 00 12 be 20027ec 20027a8: 03 00 80 70 sethi %hi(0x201c000), %g1 20027ac: c4 00 63 30 ld [ %g1 + 0x330 ], %g2 ! 201c330 20027b0: 86 10 20 00 clr %g3 20027b4: c8 00 a0 04 ld [ %g2 + 4 ], %g4 20027b8: 82 10 20 00 clr %g1 20027bc: c8 26 c0 00 st %g4, [ %i3 ] 20027c0: c8 00 a0 08 ld [ %g2 + 8 ], %g4 20027c4: c8 26 e0 04 st %g4, [ %i3 + 4 ] 20027c8: 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], 20027cc: b2 26 40 01 sub %i1, %g1, %i1 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 20027d0: c8 26 e0 08 st %g4, [ %i3 + 8 ] 20027d4: c8 00 a0 10 ld [ %g2 + 0x10 ], %g4 20027d8: c8 26 e0 0c st %g4, [ %i3 + 0xc ] 20027dc: c4 00 a0 14 ld [ %g2 + 0x14 ], %g2 20027e0: 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], 20027e4: 7f ff ff a1 call 2002668 20027e8: 91 ee 00 03 restore %i0, %g3, %o0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 20027ec: c4 00 63 30 ld [ %g1 + 0x330 ], %g2 20027f0: 86 10 20 01 mov 1, %g3 20027f4: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 20027f8: 82 10 20 01 mov 1, %g1 20027fc: c8 26 c0 00 st %g4, [ %i3 ] 2002800: c8 00 a0 1c ld [ %g2 + 0x1c ], %g4 2002804: c8 26 e0 04 st %g4, [ %i3 + 4 ] 2002808: 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], 200280c: b2 26 40 01 sub %i1, %g1, %i1 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2002810: c8 26 e0 08 st %g4, [ %i3 + 8 ] 2002814: c8 00 a0 24 ld [ %g2 + 0x24 ], %g4 2002818: c8 26 e0 0c st %g4, [ %i3 + 0xc ] 200281c: c4 00 a0 28 ld [ %g2 + 0x28 ], %g2 2002820: 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], 2002824: 7f ff ff 91 call 2002668 2002828: 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 */ 200282c: 40 00 35 80 call 200fe2c <__errno> <== NOT EXECUTED 2002830: 01 00 00 00 nop <== NOT EXECUTED 2002834: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2002838: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 200283c: 81 c7 e0 08 ret <== NOT EXECUTED 2002840: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 2002844: 40 00 35 7a call 200fe2c <__errno> <== NOT EXECUTED 2002848: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200284c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002850: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002854: 81 c7 e0 08 ret <== NOT EXECUTED 2002858: 81 e8 00 00 restore <== NOT EXECUTED 02002668 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002668: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 200266c: 80 a6 20 00 cmp %i0, 0 2002670: 02 80 00 33 be 200273c 2002674: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 2002678: 02 80 00 37 be 2002754 200267c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 2002680: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 2002684: c2 00 40 00 ld [ %g1 ], %g1 2002688: 80 a0 60 00 cmp %g1, 0 200268c: 02 80 00 26 be 2002724 2002690: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 2002694: 92 10 00 19 mov %i1, %o1 2002698: 94 10 00 1a mov %i2, %o2 200269c: 9f c0 40 00 call %g1 20026a0: 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 ) { 20026a4: b0 92 20 00 orcc %o0, 0, %i0 20026a8: 12 80 00 0f bne 20026e4 20026ac: 80 a7 20 00 cmp %i4, 0 20026b0: 02 80 00 2d be 2002764 20026b4: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 20026b8: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 20026bc: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20026c0: 80 a0 60 00 cmp %g1, 0 20026c4: 22 80 00 13 be,a 2002710 20026c8: 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 ); 20026cc: 9f c0 40 00 call %g1 20026d0: 90 10 00 1b mov %i3, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 20026d4: 90 02 3f fd add %o0, -3, %o0 20026d8: 80 a2 20 01 cmp %o0, 1 20026dc: 28 80 00 04 bleu,a 20026ec 20026e0: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 20026e4: 81 c7 e0 08 ret 20026e8: 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 ){ 20026ec: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 20026f0: 80 a0 60 00 cmp %g1, 0 20026f4: 02 80 00 06 be 200270c 20026f8: 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 ); 20026fc: 9f c0 40 00 call %g1 2002700: 92 10 00 1a mov %i2, %o1 } } return result; } 2002704: 81 c7 e0 08 ret 2002708: 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 ); 200270c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002710: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002714: 02 80 00 04 be 2002724 <== NOT EXECUTED 2002718: 01 00 00 00 nop <== NOT EXECUTED 200271c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002720: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002724: 40 00 35 c2 call 200fe2c <__errno> <== NOT EXECUTED 2002728: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200272c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002730: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002734: 81 c7 e0 08 ret <== NOT EXECUTED 2002738: 81 e8 00 00 restore <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 200273c: 40 00 35 bc call 200fe2c <__errno> <== NOT EXECUTED 2002740: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002744: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2002748: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200274c: 81 c7 e0 08 ret <== NOT EXECUTED 2002750: 81 e8 00 00 restore <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002754: 40 00 35 b6 call 200fe2c <__errno> <== NOT EXECUTED 2002758: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200275c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED 2002760: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002764: 81 c7 e0 08 ret 2002768: 81 e8 00 00 restore 02002414 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 2002414: 9d e3 bf 88 save %sp, -120, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 2002418: 21 00 80 70 sethi %hi(0x201c000), %l0 200241c: c2 04 23 30 ld [ %l0 + 0x330 ], %g1 ! 201c330 2002420: 84 10 20 12 mov 0x12, %g2 init_fs_mount_table(); 2002424: 40 00 01 ea call 2002bcc 2002428: c4 20 60 2c st %g2, [ %g1 + 0x2c ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 200242c: 03 00 80 6b sethi %hi(0x201ac00), %g1 2002430: c2 00 61 70 ld [ %g1 + 0x170 ], %g1 ! 201ad70 2002434: 80 a0 60 00 cmp %g1, 0 2002438: 02 80 00 45 be 200254c 200243c: 03 00 80 70 sethi %hi(0x201c000), %g1 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 2002440: c2 00 61 7c ld [ %g1 + 0x17c ], %g1 ! 201c17c status = mount( 2002444: 90 07 bf fc add %fp, -4, %o0 2002448: d8 00 60 0c ld [ %g1 + 0xc ], %o4 200244c: d2 00 40 00 ld [ %g1 ], %o1 2002450: d4 00 60 04 ld [ %g1 + 4 ], %o2 2002454: 40 00 01 e6 call 2002bec 2002458: d6 00 60 08 ld [ %g1 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 200245c: 80 a2 3f ff cmp %o0, -1 2002460: 02 80 00 40 be 2002560 2002464: c4 07 bf fc ld [ %fp + -4 ], %g2 rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 2002468: c2 04 23 30 ld [ %l0 + 0x330 ], %g1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200246c: 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; 2002470: c0 30 60 30 clrh [ %g1 + 0x30 ] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2002474: c6 20 60 18 st %g3, [ %g1 + 0x18 ] 2002478: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 200247c: 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; 2002480: c6 20 60 1c st %g3, [ %g1 + 0x1c ] 2002484: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2002488: 23 00 80 6c sethi %hi(0x201b000), %l1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 200248c: c6 20 60 20 st %g3, [ %g1 + 0x20 ] 2002490: c6 00 a0 28 ld [ %g2 + 0x28 ], %g3 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2002494: 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; 2002498: c6 20 60 24 st %g3, [ %g1 + 0x24 ] 200249c: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024a0: 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; 20024a4: c4 20 60 28 st %g2, [ %g1 + 0x28 ] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024a8: 96 10 00 12 mov %l2, %o3 20024ac: 98 10 20 00 clr %o4 20024b0: 40 00 00 af call 200276c 20024b4: 90 14 61 50 or %l1, 0x150, %o0 rtems_filesystem_root = loc; 20024b8: c2 04 23 30 ld [ %l0 + 0x330 ], %g1 20024bc: c4 07 bf e8 ld [ %fp + -24 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024c0: 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; 20024c4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] 20024c8: c4 07 bf ec ld [ %fp + -20 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024cc: 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; 20024d0: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 20024d4: c4 07 bf f0 ld [ %fp + -16 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024d8: 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; 20024dc: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 20024e0: c4 07 bf f4 ld [ %fp + -12 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024e4: 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; 20024e8: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 20024ec: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 20024f0: 90 14 61 50 or %l1, 0x150, %o0 20024f4: 40 00 00 9e call 200276c 20024f8: c4 20 60 28 st %g2, [ %g1 + 0x28 ] rtems_filesystem_current = loc; 20024fc: c4 07 bf e8 ld [ %fp + -24 ], %g2 2002500: c2 04 23 30 ld [ %l0 + 0x330 ], %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); 2002504: 11 00 80 6c sethi %hi(0x201b000), %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; 2002508: c4 20 60 04 st %g2, [ %g1 + 4 ] 200250c: 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); 2002510: 90 12 21 58 or %o0, 0x158, %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; 2002514: c4 20 60 08 st %g2, [ %g1 + 8 ] 2002518: 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); 200251c: 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; 2002520: c4 20 60 0c st %g2, [ %g1 + 0xc ] 2002524: c4 07 bf f4 ld [ %fp + -12 ], %g2 2002528: c4 20 60 10 st %g2, [ %g1 + 0x10 ] 200252c: 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); 2002530: 40 00 01 3f call 2002a2c 2002534: c4 20 60 14 st %g2, [ %g1 + 0x14 ] if ( status != 0 ) 2002538: 80 a2 20 00 cmp %o0, 0 200253c: 12 80 00 07 bne 2002558 2002540: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 2002544: 81 c7 e0 08 ret 2002548: 81 e8 00 00 restore /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 200254c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2002550: 40 00 10 5c call 20066c0 <== NOT EXECUTED 2002554: 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 ); 2002558: 40 00 10 5a call 20066c0 <== NOT EXECUTED 200255c: 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 ); 2002560: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2002564: 40 00 10 57 call 20066c0 <== NOT EXECUTED 2002568: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED 0202ae50 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 202ae50: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202ae54: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 202ae58: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 202ae5c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 202ae60: 81 c3 e0 08 retl <== NOT EXECUTED 202ae64: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02002570 : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 2002570: 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 ) ) 2002574: 80 a2 60 00 cmp %o1, 0 2002578: 02 80 00 1c be 20025e8 200257c: c4 0a 00 00 ldub [ %o0 ], %g2 2002580: 85 28 a0 18 sll %g2, 0x18, %g2 2002584: 85 38 a0 18 sra %g2, 0x18, %g2 2002588: 80 a0 a0 00 cmp %g2, 0 200258c: 02 80 00 17 be 20025e8 2002590: 80 a0 a0 5c cmp %g2, 0x5c 2002594: 12 80 00 13 bne 20025e0 2002598: 80 a0 a0 2f cmp %g2, 0x2f 200259c: 90 10 20 00 clr %o0 <== NOT EXECUTED { pathname++; pathnamelen--; stripped++; 20025a0: 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 ) ) 20025a4: 80 a2 40 08 cmp %o1, %o0 20025a8: 02 80 00 0c be 20025d8 20025ac: c4 08 40 08 ldub [ %g1 + %o0 ], %g2 20025b0: 85 28 a0 18 sll %g2, 0x18, %g2 20025b4: 85 38 a0 18 sra %g2, 0x18, %g2 20025b8: 80 a0 a0 00 cmp %g2, 0 20025bc: 02 80 00 07 be 20025d8 20025c0: 80 a0 a0 5c cmp %g2, 0x5c 20025c4: 22 bf ff f8 be,a 20025a4 20025c8: 90 02 20 01 inc %o0 <== NOT EXECUTED 20025cc: 80 a0 a0 2f cmp %g2, 0x2f 20025d0: 22 bf ff f5 be,a 20025a4 20025d4: 90 02 20 01 inc %o0 <== NOT EXECUTED 20025d8: 81 c3 e0 08 retl 20025dc: 01 00 00 00 nop 20025e0: 22 bf ff f0 be,a 20025a0 20025e4: 90 10 20 00 clr %o0 ! 0 20025e8: 90 10 20 00 clr %o0 pathname++; pathnamelen--; stripped++; } return stripped; } 20025ec: 81 c3 e0 08 retl 020022cc : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 20022cc: 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 ); 20022d0: 40 00 3a 8f call 2010d0c <== NOT EXECUTED 20022d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20022d8: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 20022dc: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 20022e0: 94 10 20 00 clr %o2 <== NOT EXECUTED 20022e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20022e8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 20022ec: 40 00 01 20 call 200276c <== NOT EXECUTED 20022f0: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 20022f4: 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 ); 20022f8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 20022fc: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2002300: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002304: 02 80 00 13 be 2002350 <== NOT EXECUTED 2002308: 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 ); 200230c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002310: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2002314: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED 2002318: 02 80 00 1a be 2002380 <== NOT EXECUTED 200231c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2002320: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2002324: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002328: 02 80 00 2b be 20023d4 <== NOT EXECUTED 200232c: 01 00 00 00 nop <== NOT EXECUTED 2002330: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2002334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002338: 02 80 00 27 be 20023d4 <== NOT EXECUTED 200233c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2002340: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002344: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED 2002348: 81 c7 e0 08 ret <== NOT EXECUTED 200234c: 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 ); 2002350: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002354: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002358: 02 80 00 04 be 2002368 <== NOT EXECUTED 200235c: 01 00 00 00 nop <== NOT EXECUTED 2002360: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002364: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002368: 40 00 36 b1 call 200fe2c <__errno> <== NOT EXECUTED 200236c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002370: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002374: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002378: 81 c7 e0 08 ret <== NOT EXECUTED 200237c: 81 e8 00 00 restore <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2002380: 12 bf ff e9 bne 2002324 <== NOT EXECUTED 2002384: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 2002388: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 200238c: 40 00 3a 60 call 2010d0c <== NOT EXECUTED 2002390: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2002394: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 2002398: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 200239c: 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; 20023a0: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 20023a4: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20023a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20023ac: 02 80 00 0c be 20023dc <== NOT EXECUTED 20023b0: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED 20023b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20023b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20023bc: 02 80 00 08 be 20023dc <== NOT EXECUTED 20023c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20023c4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20023c8: b0 10 20 00 clr %i0 <== NOT EXECUTED 20023cc: 81 c7 e0 08 ret <== NOT EXECUTED 20023d0: 81 e8 00 00 restore <== NOT EXECUTED 20023d4: 81 c7 e0 08 ret <== NOT EXECUTED 20023d8: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 20023dc: 81 c7 e0 08 ret <== NOT EXECUTED 20023e0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020084ec : 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 ) { 20084ec: 9d e3 bf a0 save %sp, -96, %sp rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 20084f0: 03 00 80 8c sethi %hi(0x2023000), %g1 20084f4: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 ! 202307c <_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; 20084f8: 09 00 80 8e sethi %hi(0x2023800), %g4 if ( rtems_interrupt_is_in_progress() ) 20084fc: 80 a0 60 00 cmp %g1, 0 2008500: 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 ) { 2008504: 82 10 00 19 mov %i1, %g1 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 2008508: 12 80 00 49 bne 200862c 200850c: c6 01 21 8c ld [ %g4 + 0x18c ], %g3 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 2008510: 80 a6 a0 00 cmp %i2, 0 2008514: 02 80 00 4b be 2008640 2008518: 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 ) 200851c: 02 80 00 49 be 2008640 2008520: 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; 2008524: c4 06 40 00 ld [ %i1 ], %g2 2008528: 80 a0 a0 00 cmp %g2, 0 200852c: 22 80 00 42 be,a 2008634 2008530: 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 ) 2008534: 80 a0 c0 18 cmp %g3, %i0 2008538: 08 80 00 3d bleu 200862c 200853c: 84 10 20 0a mov 0xa, %g2 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2008540: 05 00 80 8b sethi %hi(0x2022c00), %g2 2008544: c6 00 a3 e0 ld [ %g2 + 0x3e0 ], %g3 ! 2022fe0 <_Thread_Dispatch_disable_level> 2008548: 86 00 e0 01 inc %g3 200854c: c6 20 a3 e0 st %g3, [ %g2 + 0x3e0 ] return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 2008550: 80 a6 20 00 cmp %i0, 0 2008554: 12 80 00 2b bne 2008600 2008558: 05 00 80 8e sethi %hi(0x2023800), %g2 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 200855c: da 01 21 8c ld [ %g4 + 0x18c ], %o5 rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 2008560: 80 a3 60 00 cmp %o5, 0 2008564: 02 80 00 3a be 200864c 2008568: d8 00 a1 90 ld [ %g2 + 0x190 ], %o4 200856c: 10 80 00 05 b 2008580 2008570: 86 10 00 0c mov %o4, %g3 2008574: 80 a3 40 18 cmp %o5, %i0 2008578: 08 80 00 0b bleu 20085a4 200857c: 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; 2008580: c8 00 c0 00 ld [ %g3 ], %g4 2008584: 80 a1 20 00 cmp %g4, 0 2008588: 32 bf ff fb bne,a 2008574 200858c: b0 06 20 01 inc %i0 2008590: c8 00 e0 04 ld [ %g3 + 4 ], %g4 2008594: 80 a1 20 00 cmp %g4, 0 2008598: 32 bf ff f7 bne,a 2008574 200859c: b0 06 20 01 inc %i0 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) 20085a0: 80 a3 40 18 cmp %o5, %i0 20085a4: 02 80 00 2b be 2008650 20085a8: f0 26 80 00 st %i0, [ %i2 ] 20085ac: 85 2e 20 03 sll %i0, 3, %g2 20085b0: 87 2e 20 05 sll %i0, 5, %g3 20085b4: 84 20 c0 02 sub %g3, %g2, %g2 20085b8: 84 03 00 02 add %o4, %g2, %g2 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 20085bc: c6 00 40 00 ld [ %g1 ], %g3 _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 20085c0: b2 10 20 00 clr %i1 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 20085c4: c6 20 80 00 st %g3, [ %g2 ] 20085c8: c6 00 60 04 ld [ %g1 + 4 ], %g3 _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 20085cc: b4 10 20 00 clr %i2 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 20085d0: c6 20 a0 04 st %g3, [ %g2 + 4 ] 20085d4: c6 00 60 08 ld [ %g1 + 8 ], %g3 20085d8: c6 20 a0 08 st %g3, [ %g2 + 8 ] 20085dc: c6 00 60 0c ld [ %g1 + 0xc ], %g3 20085e0: c6 20 a0 0c st %g3, [ %g2 + 0xc ] 20085e4: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 20085e8: c6 20 a0 10 st %g3, [ %g2 + 0x10 ] 20085ec: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 _Thread_Enable_dispatch(); 20085f0: 40 00 07 53 call 200a33c <_Thread_Enable_dispatch> 20085f4: c2 20 a0 14 st %g1, [ %g2 + 0x14 ] return rtems_io_initialize( major, 0, NULL ); 20085f8: 40 00 27 1b call 2012264 20085fc: 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; 2008600: c6 00 a1 90 ld [ %g2 + 0x190 ], %g3 2008604: 89 2e 20 05 sll %i0, 5, %g4 2008608: 85 2e 20 03 sll %i0, 3, %g2 200860c: 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; 2008610: c8 00 c0 02 ld [ %g3 + %g2 ], %g4 2008614: 80 a1 20 00 cmp %g4, 0 2008618: 02 80 00 12 be 2008660 200861c: 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(); 2008620: 40 00 07 47 call 200a33c <_Thread_Enable_dispatch> 2008624: 01 00 00 00 nop 2008628: 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 ); } 200862c: 81 c7 e0 08 ret 2008630: 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; 2008634: 80 a0 a0 00 cmp %g2, 0 2008638: 12 bf ff c0 bne 2008538 200863c: 80 a0 c0 18 cmp %g3, %i0 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 2008640: 84 10 20 09 mov 9, %g2 } 2008644: 81 c7 e0 08 ret 2008648: 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; 200864c: 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(); 2008650: 40 00 07 3b call 200a33c <_Thread_Enable_dispatch> 2008654: 01 00 00 00 nop return sc; 2008658: 10 bf ff f5 b 200862c 200865c: 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; 2008660: c6 00 a0 04 ld [ %g2 + 4 ], %g3 2008664: 80 a0 e0 00 cmp %g3, 0 2008668: 12 bf ff ee bne 2008620 200866c: 01 00 00 00 nop if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 2008670: 10 bf ff d3 b 20085bc 2008674: f0 26 80 00 st %i0, [ %i2 ] 0200b808 : * 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 ) { 200b808: 9d e3 bf 98 save %sp, -104, %sp rtems_status_code rtems_libio_set_private_env(void); rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ; static inline void rtems_libio_lock( void ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 200b80c: 21 00 80 72 sethi %hi(0x201c800), %l0 200b810: d0 04 23 78 ld [ %l0 + 0x378 ], %o0 ! 201cb78 200b814: 92 10 20 00 clr %o1 200b818: 7f ff e9 fb call 2006004 200b81c: 94 10 20 00 clr %o2 rtems_status_code rc; rtems_id sema; rtems_libio_lock(); if (rtems_libio_iop_freelist) { 200b820: 23 00 80 72 sethi %hi(0x201c800), %l1 200b824: c2 04 63 74 ld [ %l1 + 0x374 ], %g1 ! 201cb74 200b828: 80 a0 60 00 cmp %g1, 0 200b82c: 12 80 00 07 bne 200b848 200b830: 05 00 80 72 sethi %hi(0x201c800), %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; 200b834: b0 10 20 00 clr %i0 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); 200b838: 7f ff ea 3a call 2006120 200b83c: d0 04 23 78 ld [ %l0 + 0x378 ], %o0 iop = 0; done: rtems_libio_unlock(); return iop; } 200b840: 81 c7 e0 08 ret 200b844: 81 e8 00 00 restore rtems_id sema; rtems_libio_lock(); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create( 200b848: c4 00 a3 70 ld [ %g2 + 0x370 ], %g2 200b84c: 92 10 20 01 mov 1, %o1 200b850: 82 20 40 02 sub %g1, %g2, %g1 200b854: 83 38 60 03 sra %g1, 3, %g1 200b858: 87 28 60 06 sll %g1, 6, %g3 200b85c: 85 28 60 03 sll %g1, 3, %g2 200b860: 84 20 c0 02 sub %g3, %g2, %g2 200b864: 87 28 a0 06 sll %g2, 6, %g3 200b868: 84 00 80 03 add %g2, %g3, %g2 200b86c: 84 00 80 01 add %g2, %g1, %g2 200b870: 87 28 a0 0f sll %g2, 0xf, %g3 200b874: 84 20 c0 02 sub %g3, %g2, %g2 200b878: 07 13 10 92 sethi %hi(0x4c424800), %g3 200b87c: 85 28 a0 03 sll %g2, 3, %g2 200b880: 86 10 e1 00 or %g3, 0x100, %g3 200b884: 82 00 80 01 add %g2, %g1, %g1 200b888: 94 10 20 54 mov 0x54, %o2 200b88c: 96 10 20 00 clr %o3 200b890: 90 10 40 03 or %g1, %g3, %o0 200b894: 7f ff e9 3b call 2005d80 200b898: 98 07 bf fc add %fp, -4, %o4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 0, &sema ); if (rc != RTEMS_SUCCESSFUL) 200b89c: 80 a2 20 00 cmp %o0, 0 200b8a0: 32 bf ff e6 bne,a 200b838 200b8a4: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 200b8a8: f0 04 63 74 ld [ %l1 + 0x374 ], %i0 next = iop->data1; 200b8ac: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200b8b0: c0 26 20 30 clr [ %i0 + 0x30 ] 200b8b4: c0 26 20 1c clr [ %i0 + 0x1c ] 200b8b8: c0 26 20 34 clr [ %i0 + 0x34 ] 200b8bc: c0 26 00 00 clr [ %i0 ] 200b8c0: c0 26 20 04 clr [ %i0 + 4 ] 200b8c4: c0 26 20 08 clr [ %i0 + 8 ] 200b8c8: c0 26 20 0c clr [ %i0 + 0xc ] 200b8cc: c0 26 20 10 clr [ %i0 + 0x10 ] 200b8d0: c0 26 20 14 clr [ %i0 + 0x14 ] 200b8d4: c0 26 20 20 clr [ %i0 + 0x20 ] 200b8d8: c0 26 20 24 clr [ %i0 + 0x24 ] 200b8dc: c0 26 20 28 clr [ %i0 + 0x28 ] 200b8e0: c0 26 20 2c clr [ %i0 + 0x2c ] 200b8e4: c0 26 20 40 clr [ %i0 + 0x40 ] 200b8e8: c0 26 20 44 clr [ %i0 + 0x44 ] 200b8ec: c0 26 20 38 clr [ %i0 + 0x38 ] 200b8f0: c0 26 20 3c clr [ %i0 + 0x3c ] iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; rtems_libio_iop_freelist = next; 200b8f4: c2 24 63 74 st %g1, [ %l1 + 0x374 ] 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; 200b8f8: 82 10 21 00 mov 0x100, %g1 200b8fc: c2 26 20 18 st %g1, [ %i0 + 0x18 ] iop->sem = sema; 200b900: c2 07 bf fc ld [ %fp + -4 ], %g1 rtems_libio_iop_freelist = next; goto done; 200b904: 10 bf ff cd b 200b838 200b908: c2 26 20 30 st %g1, [ %i0 + 0x30 ] 0200285c : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 200285c: 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) 2002860: 21 00 80 70 sethi %hi(0x201c000), %l0 2002864: d0 04 21 74 ld [ %l0 + 0x174 ], %o0 ! 201c174 2002868: 80 a2 20 00 cmp %o0, 0 200286c: 22 80 00 1c be,a 20028dc 2002870: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 2002874: 40 00 22 94 call 200b2c4 2002878: 92 10 20 48 mov 0x48, %o1 200287c: 03 00 80 72 sethi %hi(0x201c800), %g1 2002880: d0 20 63 70 st %o0, [ %g1 + 0x370 ] ! 201cb70 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 2002884: 80 a2 20 00 cmp %o0, 0 2002888: 02 80 00 29 be 200292c 200288c: 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++) 2002890: c6 04 21 74 ld [ %l0 + 0x174 ], %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; 2002894: 05 00 80 72 sethi %hi(0x201c800), %g2 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002898: 80 a0 e0 01 cmp %g3, 1 200289c: 08 80 00 0e bleu 20028d4 20028a0: d0 20 a3 74 st %o0, [ %g2 + 0x374 ] 20028a4: 82 02 20 48 add %o0, 0x48, %g1 20028a8: 84 10 20 01 mov 1, %g2 iop->data1 = iop + 1; 20028ac: c2 20 7f f0 st %g1, [ %g1 + -16 ] 20028b0: 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++) 20028b4: 80 a0 80 03 cmp %g2, %g3 20028b8: 12 bf ff fd bne 20028ac 20028bc: 82 00 60 48 add %g1, 0x48, %g1 20028c0: 84 00 bf ff add %g2, -1, %g2 20028c4: 83 28 a0 06 sll %g2, 6, %g1 20028c8: 85 28 a0 03 sll %g2, 3, %g2 20028cc: 82 00 80 01 add %g2, %g1, %g1 20028d0: 82 02 00 01 add %o0, %g1, %g1 iop->data1 = iop + 1; iop->data1 = NULL; 20028d4: c0 20 60 38 clr [ %g1 + 0x38 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 20028d8: 11 13 10 92 sethi %hi(0x4c424800), %o0 20028dc: 92 10 20 01 mov 1, %o1 20028e0: 90 12 21 4f or %o0, 0x14f, %o0 20028e4: 94 10 20 54 mov 0x54, %o2 20028e8: 96 10 20 00 clr %o3 20028ec: 19 00 80 72 sethi %hi(0x201c800), %o4 20028f0: 40 00 0d 24 call 2005d80 20028f4: 98 13 23 78 or %o4, 0x378, %o4 ! 201cb78 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 20028f8: 80 a2 20 00 cmp %o0, 0 20028fc: 12 80 00 0a bne 2002924 2002900: 03 00 80 70 sethi %hi(0x201c000), %g1 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 2002904: c2 00 61 70 ld [ %g1 + 0x170 ], %g1 ! 201c170 2002908: 80 a0 60 00 cmp %g1, 0 200290c: 02 80 00 04 be 200291c 2002910: 01 00 00 00 nop (* rtems_fs_init_helper)(); 2002914: 9f c0 40 00 call %g1 2002918: 01 00 00 00 nop 200291c: 81 c7 e0 08 ret 2002920: 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 ); 2002924: 40 00 0f 67 call 20066c0 <== NOT EXECUTED 2002928: 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); 200292c: 40 00 0f 65 call 20066c0 <== NOT EXECUTED 2002930: 90 10 20 1a mov 0x1a, %o0 ! 1a <== NOT EXECUTED 0202a394 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 202a394: 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); 202a398: 90 10 20 00 clr %o0 202a39c: 92 10 20 00 clr %o1 202a3a0: 40 00 08 5e call 202c518 202a3a4: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 202a3a8: b0 92 20 00 orcc %o0, 0, %i0 202a3ac: 12 80 00 51 bne 202a4f0 202a3b0: 21 00 81 aa sethi %hi(0x206a800), %l0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 202a3b4: e6 04 21 c0 ld [ %l0 + 0x1c0 ], %l3 ! 206a9c0 202a3b8: 23 00 81 ba sethi %hi(0x206e800), %l1 202a3bc: a2 14 60 a8 or %l1, 0xa8, %l1 ! 206e8a8 202a3c0: 80 a4 c0 11 cmp %l3, %l1 202a3c4: 02 80 00 3a be 202a4ac 202a3c8: a4 14 21 c0 or %l0, 0x1c0, %l2 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 202a3cc: 92 10 00 11 mov %l1, %o1 202a3d0: 94 10 20 48 mov 0x48, %o2 202a3d4: 40 00 76 13 call 2047c20 202a3d8: 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; 202a3dc: 03 00 81 ba sethi %hi(0x206e800), %g1 202a3e0: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 ! 206e890 } 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*/ 202a3e4: c6 07 bf fc ld [ %fp + -4 ], %g3 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a3e8: 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*/ 202a3ec: c6 24 c0 00 st %g3, [ %l3 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 202a3f0: c4 24 e0 18 st %g2, [ %l3 + 0x18 ] 202a3f4: 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); 202a3f8: 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; 202a3fc: c4 24 e0 1c st %g2, [ %l3 + 0x1c ] 202a400: 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); 202a404: 25 00 81 93 sethi %hi(0x2064c00), %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; 202a408: c4 24 e0 20 st %g2, [ %l3 + 0x20 ] 202a40c: 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); 202a410: 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; 202a414: c4 24 e0 24 st %g2, [ %l3 + 0x24 ] 202a418: 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); 202a41c: 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; 202a420: 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); 202a424: 96 10 00 11 mov %l1, %o3 202a428: 98 10 20 00 clr %o4 202a42c: 7f ff 6b ef call 20053e8 202a430: 90 14 a1 f0 or %l2, 0x1f0, %o0 rtems_filesystem_root = loc; 202a434: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 202a438: c4 07 bf e8 ld [ %fp + -24 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a43c: 90 14 a1 f0 or %l2, 0x1f0, %o0 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 202a440: c4 20 60 18 st %g2, [ %g1 + 0x18 ] 202a444: c4 07 bf ec ld [ %fp + -20 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a448: 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; 202a44c: c4 20 60 1c st %g2, [ %g1 + 0x1c ] 202a450: c4 07 bf f0 ld [ %fp + -16 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a454: 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; 202a458: c4 20 60 20 st %g2, [ %g1 + 0x20 ] 202a45c: c4 07 bf f4 ld [ %fp + -12 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a460: 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; 202a464: c4 20 60 24 st %g2, [ %g1 + 0x24 ] 202a468: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 202a46c: 98 10 20 00 clr %o4 202a470: 7f ff 6b de call 20053e8 202a474: c4 20 60 28 st %g2, [ %g1 + 0x28 ] rtems_filesystem_current = loc; 202a478: c4 07 bf e8 ld [ %fp + -24 ], %g2 202a47c: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 202a480: c4 20 60 04 st %g2, [ %g1 + 4 ] 202a484: c4 07 bf ec ld [ %fp + -20 ], %g2 202a488: c4 20 60 08 st %g2, [ %g1 + 8 ] 202a48c: c4 07 bf f0 ld [ %fp + -16 ], %g2 202a490: c4 20 60 0c st %g2, [ %g1 + 0xc ] 202a494: c4 07 bf f4 ld [ %fp + -12 ], %g2 202a498: c4 20 60 10 st %g2, [ %g1 + 0x10 ] 202a49c: c4 07 bf f8 ld [ %fp + -8 ], %g2 202a4a0: c4 20 60 14 st %g2, [ %g1 + 0x14 ] return RTEMS_SUCCESSFUL; } 202a4a4: 81 c7 e0 08 ret 202a4a8: 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)); 202a4ac: 90 10 20 48 mov 0x48, %o0 202a4b0: 7f ff 6d c0 call 2005bb0 202a4b4: b0 10 20 1a mov 0x1a, %i0 if (!tmp) 202a4b8: a6 92 20 00 orcc %o0, 0, %l3 202a4bc: 02 80 00 0d be 202a4f0 202a4c0: 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); 202a4c4: 90 10 20 00 clr %o0 202a4c8: 15 00 80 a8 sethi %hi(0x202a000), %o2 202a4cc: 40 00 09 29 call 202c970 202a4d0: 94 12 a2 60 or %o2, 0x260, %o2 ! 202a260 if (sc != RTEMS_SUCCESSFUL) { 202a4d4: b0 92 20 00 orcc %o0, 0, %i0 202a4d8: 12 80 00 04 bne 202a4e8 202a4dc: 01 00 00 00 nop * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 202a4e0: 10 bf ff bb b 202a3cc 202a4e4: e6 24 21 c0 st %l3, [ %l0 + 0x1c0 ] 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); 202a4e8: 7f ff 6b fc call 20054d8 <== NOT EXECUTED 202a4ec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED return sc; 202a4f0: 81 c7 e0 08 ret <== NOT EXECUTED 202a4f4: 81 e8 00 00 restore <== NOT EXECUTED 0202a2d8 : * 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) { 202a2d8: 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); 202a2dc: 90 10 20 00 clr %o0 <== NOT EXECUTED 202a2e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 202a2e4: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 202a2e8: 40 00 08 8c call 202c518 <== NOT EXECUTED 202a2ec: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 202a2f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202a2f4: 12 80 00 14 bne 202a344 <== NOT EXECUTED 202a2f8: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 202a2fc: 21 00 81 aa sethi %hi(0x206a800), %l0 <== NOT EXECUTED 202a300: e6 04 21 c0 ld [ %l0 + 0x1c0 ], %l3 ! 206a9c0 <== NOT EXECUTED 202a304: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED 202a308: c6 04 c0 00 ld [ %l3 ], %g3 <== NOT EXECUTED 202a30c: 82 14 21 c0 or %l0, 0x1c0, %g1 <== NOT EXECUTED 202a310: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 202a314: 02 80 00 0e be 202a34c <== NOT EXECUTED 202a318: 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, 202a31c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 202a320: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 202a324: 40 00 09 f1 call 202cae8 <== NOT EXECUTED 202a328: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 202a32c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202a330: 02 80 00 10 be 202a370 <== NOT EXECUTED 202a334: 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; 202a338: 05 00 81 ba sethi %hi(0x206e800), %g2 <== NOT EXECUTED 202a33c: 84 10 a0 a8 or %g2, 0xa8, %g2 ! 206e8a8 <== NOT EXECUTED 202a340: c4 24 21 c0 st %g2, [ %l0 + 0x1c0 ] <== NOT EXECUTED return sc; } 202a344: 81 c7 e0 08 ret <== NOT EXECUTED 202a348: 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); 202a34c: 40 00 09 b9 call 202ca30 <== NOT EXECUTED 202a350: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 202a354: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202a358: 12 bf ff fb bne 202a344 <== NOT EXECUTED 202a35c: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 202a360: 7f ff ff c0 call 202a260 <== NOT EXECUTED 202a364: 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, 202a368: 10 bf ff ee b 202a320 <== NOT EXECUTED 202a36c: 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); 202a370: 15 00 80 a8 sethi %hi(0x202a000), %o2 <== NOT EXECUTED 202a374: 40 00 09 7f call 202c970 <== NOT EXECUTED 202a378: 94 12 a2 60 or %o2, 0x260, %o2 ! 202a260 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 202a37c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202a380: 12 bf ff ef bne 202a33c <== NOT EXECUTED 202a384: 05 00 81 ba sethi %hi(0x206e800), %g2 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 202a388: 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; 202a38c: 10 bf ff ee b 202a344 <== NOT EXECUTED 202a390: c4 24 21 c0 st %g2, [ %l0 + 0x1c0 ] <== NOT EXECUTED 02005cb4 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 2005cb4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 2005cb8: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED 2005cbc: d0 00 62 30 ld [ %g1 + 0x230 ], %o0 ! 206a630 <== NOT EXECUTED 2005cc0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2005cc4: 40 00 17 bf call 200bbc0 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2005cc8: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2005ccc: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2005cd0: 02 80 00 08 be 2005cf0 <== NOT EXECUTED 2005cd4: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 2005cd8: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 2005cdc: 82 10 60 60 or %g1, 0x60, %g1 <== NOT EXECUTED 2005ce0: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 2005ce4: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 2005ce8: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 2005cec: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 2005cf0: 81 c7 e0 08 ret <== NOT EXECUTED 2005cf4: 81 e8 00 00 restore <== NOT EXECUTED 02005cf8 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 2005cf8: 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 ) 2005cfc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2005d00: 02 80 00 14 be 2005d50 <== NOT EXECUTED 2005d04: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 2005d08: d0 00 62 30 ld [ %g1 + 0x230 ], %o0 ! 206a630 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 2005d0c: 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); 2005d10: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2005d14: 40 00 17 ab call 200bbc0 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2005d18: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 2005d1c: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 2005d20: d8 07 bf fc ld [ %fp + -4 ], %o4 <== NOT EXECUTED 2005d24: 82 10 60 60 or %g1, 0x60, %g1 <== NOT EXECUTED 2005d28: c4 18 60 20 ldd [ %g1 + 0x20 ], %g2 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 2005d2c: da 00 60 2c ld [ %g1 + 0x2c ], %o5 <== NOT EXECUTED if (current_depth > s->max_depth) 2005d30: 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); 2005d34: 86 80 c0 0c addcc %g3, %o4, %g3 <== NOT EXECUTED 2005d38: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 2005d3c: c4 38 60 20 std %g2, [ %g1 + 0x20 ] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 2005d40: 84 20 c0 0d sub %g3, %o5, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 2005d44: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED 2005d48: 38 80 00 02 bgu,a 2005d50 <== NOT EXECUTED 2005d4c: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 2005d50: 81 c7 e0 08 ret <== NOT EXECUTED 2005d54: 81 e8 00 00 restore <== NOT EXECUTED 02005d58 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 2005d58: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED 2005d5c: c0 20 60 60 clr [ %g1 + 0x60 ] ! 206e860 <== NOT EXECUTED 2005d60: c0 20 60 64 clr [ %g1 + 0x64 ] <== NOT EXECUTED 2005d64: 82 10 60 60 or %g1, 0x60, %g1 <== NOT EXECUTED 2005d68: c0 20 60 28 clr [ %g1 + 0x28 ] <== NOT EXECUTED 2005d6c: c0 20 60 2c clr [ %g1 + 0x2c ] <== NOT EXECUTED 2005d70: c0 20 60 08 clr [ %g1 + 8 ] <== NOT EXECUTED 2005d74: c0 20 60 0c clr [ %g1 + 0xc ] <== NOT EXECUTED 2005d78: c0 20 60 10 clr [ %g1 + 0x10 ] <== NOT EXECUTED 2005d7c: c0 20 60 14 clr [ %g1 + 0x14 ] <== NOT EXECUTED 2005d80: c0 20 60 18 clr [ %g1 + 0x18 ] <== NOT EXECUTED 2005d84: c0 20 60 1c clr [ %g1 + 0x1c ] <== NOT EXECUTED 2005d88: c0 20 60 20 clr [ %g1 + 0x20 ] <== NOT EXECUTED } 2005d8c: 81 c3 e0 08 retl <== NOT EXECUTED 2005d90: c0 20 60 24 clr [ %g1 + 0x24 ] <== NOT EXECUTED 02010f74 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 2010f74: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 2010f78: a0 96 20 00 orcc %i0, 0, %l0 2010f7c: 02 80 00 20 be 2010ffc 2010f80: 03 00 80 8c sethi %hi(0x2023000), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 2010f84: c2 00 61 80 ld [ %g1 + 0x180 ], %g1 ! 2023180 <_System_state_Current> 2010f88: 80 a0 60 03 cmp %g1, 3 2010f8c: 02 80 00 17 be 2010fe8 2010f90: c0 24 00 00 clr [ %l0 ] /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 2010f94: 7f ff cc 81 call 2004198 2010f98: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 2010f9c: 03 00 80 88 sethi %hi(0x2022000), %g1 2010fa0: d0 00 63 50 ld [ %g1 + 0x350 ], %o0 ! 2022350 2010fa4: 94 10 00 19 mov %i1, %o2 2010fa8: 92 10 00 1a mov %i2, %o1 2010fac: 7f ff e2 f5 call 2009b80 <_Protected_heap_Allocate_aligned_with_boundary> 2010fb0: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 2010fb4: b2 92 20 00 orcc %o0, 0, %i1 2010fb8: 02 80 00 12 be 2011000 2010fbc: 03 00 80 8a sethi %hi(0x2022800), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 2010fc0: c2 00 62 88 ld [ %g1 + 0x288 ], %g1 ! 2022a88 2010fc4: 80 a0 60 00 cmp %g1, 0 2010fc8: 22 80 00 06 be,a 2010fe0 2010fcc: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 2010fd0: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2010fd4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2010fd8: 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; 2010fdc: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 2010fe0: 81 c7 e0 08 ret 2010fe4: 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()) && 2010fe8: 7f ff cc 53 call 2004134 2010fec: 01 00 00 00 nop 2010ff0: 80 8a 20 ff btst 0xff, %o0 2010ff4: 12 bf ff e8 bne 2010f94 2010ff8: 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; 2010ffc: b0 10 20 16 mov 0x16, %i0 ! 16 } 2011000: 81 c7 e0 08 ret 2011004: 81 e8 00 00 restore 02007ea0 : void rtems_panic( const char *printf_format, ... ) { 2007ea0: 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); 2007ea4: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 2007ea8: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 2007eac: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 2007eb0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007eb4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007eb8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2007ebc: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007ec0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2007ec4: 7f ff ff 8a call 2007cec <== NOT EXECUTED 2007ec8: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 2007ecc: 81 c7 e0 08 ret <== NOT EXECUTED 2007ed0: 81 e8 00 00 restore <== NOT EXECUTED 0200d7e8 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 200d7e8: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 200d7ec: 03 00 80 72 sethi %hi(0x201c800), %g1 200d7f0: c2 08 60 94 ldub [ %g1 + 0x94 ], %g1 ! 201c894 200d7f4: 80 a0 60 00 cmp %g1, 0 200d7f8: 02 80 00 13 be 200d844 200d7fc: 19 00 80 72 sethi %hi(0x201c800), %o4 return; if (rtems_pipe_semaphore) 200d800: c2 03 21 f4 ld [ %o4 + 0x1f4 ], %g1 ! 201c9f4 <== NOT EXECUTED 200d804: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d808: 12 80 00 0f bne 200d844 <== NOT EXECUTED 200d80c: 98 13 21 f4 or %o4, 0x1f4, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 200d810: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 200d814: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200d818: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 200d81c: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 200d820: 7f ff e1 58 call 2005d80 <== NOT EXECUTED 200d824: 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) 200d828: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d82c: 12 80 00 08 bne 200d84c <== NOT EXECUTED 200d830: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 200d834: 7f ff e0 2f call 20058f0 <== NOT EXECUTED 200d838: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 200d83c: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 200d840: d0 30 61 fa sth %o0, [ %g1 + 0x1fa ] ! 201c9fa <== NOT EXECUTED 200d844: 81 c7 e0 08 ret 200d848: 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); 200d84c: 7f ff e3 9d call 20066c0 <== NOT EXECUTED 02003840 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2003840: 9d e3 bf a0 save %sp, -96, %sp Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2003844: 21 00 81 ba sethi %hi(0x206e800), %l0 2003848: c2 04 22 e0 ld [ %l0 + 0x2e0 ], %g1 ! 206eae0 <_Thread_Executing> ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 200384c: d0 00 60 c8 ld [ %g1 + 0xc8 ], %o0 2003850: 80 a7 80 08 cmp %fp, %o0 2003854: 0a 80 00 06 bcs 200386c 2003858: a2 10 20 00 clr %l1 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 200385c: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 2003860: 82 02 00 01 add %o0, %g1, %g1 2003864: 80 a0 40 1e cmp %g1, %fp 2003868: 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 ) { 200386c: 03 00 81 af sethi %hi(0x206bc00), %g1 2003870: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 ! 206bc30 2003874: 80 a0 a0 00 cmp %g2, 0 2003878: 02 80 00 09 be 200389c 200387c: 82 10 20 01 mov 1, %g1 pattern_ok = (!memcmp( 2003880: 90 02 20 08 add %o0, 8, %o0 2003884: 13 00 81 ba sethi %hi(0x206e800), %o1 2003888: 94 10 20 10 mov 0x10, %o2 200388c: 40 01 10 b4 call 2047b5c 2003890: 92 12 60 2c or %o1, 0x2c, %o1 2003894: 80 a0 00 08 cmp %g0, %o0 2003898: 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 ) 200389c: 80 8c 60 ff btst 0xff, %l1 20038a0: 02 80 00 05 be 20038b4 20038a4: 92 08 60 ff and %g1, 0xff, %o1 20038a8: 92 88 60 ff andcc %g1, 0xff, %o1 20038ac: 12 80 00 05 bne 20038c0 20038b0: 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 ); 20038b4: d0 04 22 e0 ld [ %l0 + 0x2e0 ], %o0 <== NOT EXECUTED 20038b8: 7f ff ff b8 call 2003798 <== NOT EXECUTED 20038bc: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 20038c0: 81 c7 e0 08 ret 20038c4: 81 e8 00 00 restore 0200377c : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 200377c: 13 00 80 1a sethi %hi(0x2006800), %o1 <== NOT EXECUTED 2003780: 90 10 20 00 clr %o0 <== NOT EXECUTED 2003784: 92 12 60 c4 or %o1, 0xc4, %o1 <== NOT EXECUTED 2003788: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200378c: 7f ff ff e6 call 2003724 <== NOT EXECUTED 2003790: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 02003724 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2003724: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED print_context = context; 2003728: 23 00 81 af sethi %hi(0x206bc00), %l1 <== NOT EXECUTED print_handler = print; 200372c: 21 00 81 af sethi %hi(0x206bc00), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 2003730: f0 24 60 34 st %i0, [ %l1 + 0x34 ] <== NOT EXECUTED print_handler = print; 2003734: f2 24 20 38 st %i1, [ %l0 + 0x38 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 2003738: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200373c: 13 00 81 7f sethi %hi(0x205fc00), %o1 <== NOT EXECUTED 2003740: 9f c6 40 00 call %i1 <== NOT EXECUTED 2003744: 92 12 60 38 or %o1, 0x38, %o1 ! 205fc38 <== NOT EXECUTED (*print)( context, 2003748: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200374c: 13 00 81 7f sethi %hi(0x205fc00), %o1 <== NOT EXECUTED 2003750: 9f c6 40 00 call %i1 <== NOT EXECUTED 2003754: 92 12 60 50 or %o1, 0x50, %o1 ! 205fc50 <== 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 ); 2003758: 11 00 80 0d sethi %hi(0x2003400), %o0 <== NOT EXECUTED 200375c: 40 00 1e 8c call 200b18c <== NOT EXECUTED 2003760: 90 12 21 98 or %o0, 0x198, %o0 ! 2003598 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 2003764: 7f ff ff 8d call 2003598 <== NOT EXECUTED 2003768: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 200376c: c0 24 60 34 clr [ %l1 + 0x34 ] <== NOT EXECUTED print_handler = NULL; 2003770: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED } 2003774: 81 c7 e0 08 ret <== NOT EXECUTED 2003778: 81 e8 00 00 restore <== NOT EXECUTED 020038c8 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 20038c8: 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; 20038cc: c2 06 20 c8 ld [ %i0 + 0xc8 ], %g1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 20038d0: 80 a7 80 01 cmp %fp, %g1 20038d4: 0a 80 00 07 bcs 20038f0 20038d8: 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; 20038dc: c4 06 20 c4 ld [ %i0 + 0xc4 ], %g2 20038e0: 82 00 40 02 add %g1, %g2, %g1 20038e4: 80 a7 80 01 cmp %fp, %g1 20038e8: 28 80 00 0b bleu,a 2003914 20038ec: 13 00 81 ba sethi %hi(0x206e800), %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, 20038f0: 13 00 81 ba sethi %hi(0x206e800), %o1 <== NOT EXECUTED 20038f4: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 20038f8: 40 01 10 99 call 2047b5c <== NOT EXECUTED 20038fc: 92 12 60 2c or %o1, 0x2c, %o1 <== NOT EXECUTED 2003900: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 2003904: 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 ); 2003908: b2 0e 60 01 and %i1, 1, %i1 <== NOT EXECUTED 200390c: 7f ff ff a3 call 2003798 <== NOT EXECUTED 2003910: 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, 2003914: 94 10 20 10 mov 0x10, %o2 2003918: 92 12 60 2c or %o1, 0x2c, %o1 200391c: 40 01 10 90 call 2047b5c 2003920: b2 10 20 00 clr %i1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 2003924: 80 a2 20 00 cmp %o0, 0 2003928: 12 bf ff f9 bne 200390c 200392c: b2 0e 60 01 and %i1, 1, %i1 2003930: 81 c7 e0 08 ret 2003934: 81 e8 00 00 restore 0200ccf0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200ccf0: 9d e3 bf 90 save %sp, -112, %sp 200ccf4: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200ccf8: 80 a6 60 00 cmp %i1, 0 200ccfc: 02 80 00 18 be 200cd5c 200cd00: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200cd04: 40 00 0c e0 call 2010084 <__errno> 200cd08: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200cd0c: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200cd10: c0 22 00 00 clr [ %o0 ] *n = 0; 200cd14: c0 26 40 00 clr [ %i1 ] 200cd18: c0 26 60 04 clr [ %i1 + 4 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200cd1c: 40 00 18 5e call 2012e94 200cd20: 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 ) 200cd24: 80 a6 a0 00 cmp %i2, 0 200cd28: 02 80 00 03 be 200cd34 200cd2c: c2 07 bf fc ld [ %fp + -4 ], %g1 *endptr = end; 200cd30: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200cd34: 80 a0 40 10 cmp %g1, %l0 200cd38: 02 80 00 09 be 200cd5c 200cd3c: 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)) 200cd40: 03 00 80 7d sethi %hi(0x201f400), %g1 200cd44: d1 18 60 30 ldd [ %g1 + 0x30 ], %f8 ! 201f430 <_CPU_Trap_slot_template+0x14> 200cd48: 81 a8 0a c8 fcmped %f0, %f8 200cd4c: 01 00 00 00 nop 200cd50: 0d 80 00 05 fbg 200cd64 200cd54: b0 10 20 00 clr %i0 ! 0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200cd58: c1 3e 40 00 std %f0, [ %i1 ] #endif return RTEMS_SUCCESSFUL; } 200cd5c: 81 c7 e0 08 ret 200cd60: 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)) 200cd64: c1 27 bf f4 st %f0, [ %fp + -12 ] 200cd68: 40 00 0c c7 call 2010084 <__errno> 200cd6c: c3 27 bf f0 st %f1, [ %fp + -16 ] 200cd70: c2 02 00 00 ld [ %o0 ], %g1 200cd74: b0 10 20 0a mov 0xa, %i0 200cd78: 80 a0 60 22 cmp %g1, 0x22 200cd7c: c1 07 bf f4 ld [ %fp + -12 ], %f0 200cd80: 02 bf ff f7 be 200cd5c 200cd84: c3 07 bf f0 ld [ %fp + -16 ], %f1 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200cd88: c1 3e 40 00 std %f0, [ %i1 ] <== NOT EXECUTED 200cd8c: 81 c7 e0 08 ret <== NOT EXECUTED 200cd90: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200cd94 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200cd94: 9d e3 bf 90 save %sp, -112, %sp 200cd98: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200cd9c: 80 a6 60 00 cmp %i1, 0 200cda0: 02 80 00 17 be 200cdfc 200cda4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200cda8: 40 00 0c b7 call 2010084 <__errno> 200cdac: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200cdb0: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200cdb4: c0 22 00 00 clr [ %o0 ] *n = 0; 200cdb8: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 200cdbc: 40 00 18 21 call 2012e40 200cdc0: 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 ) 200cdc4: 80 a6 a0 00 cmp %i2, 0 200cdc8: 02 80 00 03 be 200cdd4 200cdcc: c2 07 bf fc ld [ %fp + -4 ], %g1 *endptr = end; 200cdd0: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200cdd4: 80 a0 40 10 cmp %g1, %l0 200cdd8: 02 80 00 09 be 200cdfc 200cddc: 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)) 200cde0: 03 00 80 7d sethi %hi(0x201f400), %g1 200cde4: d1 00 60 38 ld [ %g1 + 0x38 ], %f8 ! 201f438 <_CPU_Trap_slot_template+0x1c> 200cde8: 81 a8 0a a8 fcmpes %f0, %f8 200cdec: 01 00 00 00 nop 200cdf0: 0d 80 00 05 fbg 200ce04 200cdf4: b0 10 20 00 clr %i0 ! 0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200cdf8: c1 26 40 00 st %f0, [ %i1 ] #endif return RTEMS_SUCCESSFUL; } 200cdfc: 81 c7 e0 08 ret 200ce00: 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)) 200ce04: 40 00 0c a0 call 2010084 <__errno> 200ce08: c1 27 bf f4 st %f0, [ %fp + -12 ] 200ce0c: c2 02 00 00 ld [ %o0 ], %g1 200ce10: b0 10 20 0a mov 0xa, %i0 200ce14: 80 a0 60 22 cmp %g1, 0x22 200ce18: 02 bf ff f9 be 200cdfc 200ce1c: c1 07 bf f4 ld [ %fp + -12 ], %f0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200ce20: c1 26 40 00 st %f0, [ %i1 ] <== NOT EXECUTED 200ce24: 81 c7 e0 08 ret <== NOT EXECUTED 200ce28: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0201e104 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201e104: 9d e3 bf 98 save %sp, -104, %sp 201e108: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201e10c: 80 a6 60 00 cmp %i1, 0 201e110: 02 80 00 18 be 201e170 201e114: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201e118: 40 00 99 ea call 20448c0 <__errno> 201e11c: 01 00 00 00 nop 201e120: c0 22 00 00 clr [ %o0 ] *n = 0; 201e124: 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 ); 201e128: 94 10 00 1b mov %i3, %o2 201e12c: 90 10 00 10 mov %l0, %o0 201e130: 40 00 b9 a7 call 204c7cc 201e134: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201e138: 80 a6 a0 00 cmp %i2, 0 201e13c: 02 80 00 18 be 201e19c 201e140: a2 10 00 08 mov %o0, %l1 *endptr = end; 201e144: c2 07 bf fc ld [ %fp + -4 ], %g1 201e148: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201e14c: 80 a0 40 10 cmp %g1, %l0 201e150: 02 80 00 08 be 201e170 201e154: 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)) 201e158: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 201e15c: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 201e160: 80 a4 40 01 cmp %l1, %g1 201e164: 02 80 00 05 be 201e178 201e168: b0 10 20 00 clr %i0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 201e16c: e2 26 40 00 st %l1, [ %i1 ] #endif return RTEMS_SUCCESSFUL; } 201e170: 81 c7 e0 08 ret 201e174: 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)) 201e178: 40 00 99 d2 call 20448c0 <__errno> 201e17c: b0 10 20 0a mov 0xa, %i0 201e180: c2 02 00 00 ld [ %o0 ], %g1 201e184: 80 a0 60 22 cmp %g1, 0x22 201e188: 02 bf ff fa be 201e170 201e18c: 01 00 00 00 nop #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 201e190: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201e194: 81 c7 e0 08 ret <== NOT EXECUTED 201e198: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201e19c: 10 bf ff ec b 201e14c 201e1a0: c2 07 bf fc ld [ %fp + -4 ], %g1 0200cf98 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200cf98: 9d e3 bf 98 save %sp, -104, %sp 200cf9c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200cfa0: 80 a6 60 00 cmp %i1, 0 200cfa4: 02 80 00 24 be 200d034 200cfa8: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200cfac: 40 00 0c 36 call 2010084 <__errno> 200cfb0: 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 ); 200cfb4: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200cfb8: c0 22 00 00 clr [ %o0 ] *n = 0; 200cfbc: 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 ); 200cfc0: 90 10 00 10 mov %l0, %o0 200cfc4: 40 00 18 3f call 20130c0 200cfc8: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200cfcc: 80 a6 a0 00 cmp %i2, 0 200cfd0: 02 80 00 1b be 200d03c 200cfd4: a2 10 00 08 mov %o0, %l1 *endptr = end; 200cfd8: c2 07 bf fc ld [ %fp + -4 ], %g1 200cfdc: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200cfe0: 80 a0 40 10 cmp %g1, %l0 200cfe4: 02 80 00 14 be 200d034 200cfe8: 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)) 200cfec: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200cff0: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200cff4: 80 a4 40 01 cmp %l1, %g1 200cff8: 02 80 00 08 be 200d018 200cffc: 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)) 200d000: 80 a4 40 01 cmp %l1, %g1 200d004: 02 80 00 05 be 200d018 200d008: 01 00 00 00 nop #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200d00c: e2 26 40 00 st %l1, [ %i1 ] #endif return RTEMS_SUCCESSFUL; 200d010: 81 c7 e0 08 ret 200d014: 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)) 200d018: 40 00 0c 1b call 2010084 <__errno> 200d01c: 01 00 00 00 nop 200d020: c2 02 00 00 ld [ %o0 ], %g1 200d024: 80 a0 60 22 cmp %g1, 0x22 200d028: 32 bf ff fa bne,a 200d010 200d02c: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; 200d030: b0 10 20 0a mov 0xa, %i0 } 200d034: 81 c7 e0 08 ret 200d038: 81 e8 00 00 restore 200d03c: 10 bf ff e9 b 200cfe0 200d040: c2 07 bf fc ld [ %fp + -4 ], %g1 0200cecc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200cecc: 9d e3 bf 90 save %sp, -112, %sp 200ced0: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200ced4: 80 a6 60 00 cmp %i1, 0 200ced8: 02 80 00 29 be 200cf7c 200cedc: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200cee0: 40 00 0c 69 call 2010084 <__errno> 200cee4: 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 ); 200cee8: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200ceec: c0 22 00 00 clr [ %o0 ] *n = 0; 200cef0: c0 26 40 00 clr [ %i1 ] 200cef4: 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 ); 200cef8: 90 10 00 10 mov %l0, %o0 200cefc: 40 00 18 7b call 20130e8 200cf00: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200cf04: 80 a6 a0 00 cmp %i2, 0 200cf08: 02 80 00 22 be 200cf90 200cf0c: a2 10 00 08 mov %o0, %l1 *endptr = end; 200cf10: c2 07 bf fc ld [ %fp + -4 ], %g1 200cf14: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200cf18: 80 a0 40 10 cmp %g1, %l0 200cf1c: 02 80 00 18 be 200cf7c 200cf20: 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)) 200cf24: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200cf28: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200cf2c: 80 a4 40 01 cmp %l1, %g1 200cf30: 02 80 00 15 be 200cf84 200cf34: 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)) 200cf38: 03 20 00 00 sethi %hi(0x80000000), %g1 200cf3c: 80 a4 40 01 cmp %l1, %g1 200cf40: 02 80 00 06 be 200cf58 200cf44: 80 a2 60 00 cmp %o1, 0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200cf48: d2 26 60 04 st %o1, [ %i1 + 4 ] 200cf4c: e2 26 40 00 st %l1, [ %i1 ] #endif return RTEMS_SUCCESSFUL; 200cf50: 81 c7 e0 08 ret 200cf54: 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)) 200cf58: 32 bf ff fd bne,a 200cf4c 200cf5c: d2 26 60 04 st %o1, [ %i1 + 4 ] <== NOT EXECUTED 200cf60: 40 00 0c 49 call 2010084 <__errno> 200cf64: d2 27 bf f4 st %o1, [ %fp + -12 ] 200cf68: c2 02 00 00 ld [ %o0 ], %g1 200cf6c: 80 a0 60 22 cmp %g1, 0x22 200cf70: 12 bf ff f6 bne 200cf48 200cf74: d2 07 bf f4 ld [ %fp + -12 ], %o1 #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; 200cf78: b0 10 20 0a mov 0xa, %i0 } 200cf7c: 81 c7 e0 08 ret 200cf80: 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)) 200cf84: 12 bf ff ee bne 200cf3c 200cf88: 03 20 00 00 sethi %hi(0x80000000), %g1 200cf8c: 30 bf ff f5 b,a 200cf60 200cf90: 10 bf ff e2 b 200cf18 200cf94: c2 07 bf fc ld [ %fp + -4 ], %g1 0201e1a4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201e1a4: 9d e3 bf 98 save %sp, -104, %sp 201e1a8: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201e1ac: 80 a6 60 00 cmp %i1, 0 201e1b0: 02 80 00 16 be 201e208 201e1b4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201e1b8: 40 00 99 c2 call 20448c0 <__errno> 201e1bc: 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 ); 201e1c0: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201e1c4: c0 22 00 00 clr [ %o0 ] *n = 0; 201e1c8: 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 ); 201e1cc: 90 10 00 10 mov %l0, %o0 201e1d0: 40 00 ba b7 call 204ccac 201e1d4: 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 ) 201e1d8: 80 a6 a0 00 cmp %i2, 0 201e1dc: 02 80 00 16 be 201e234 201e1e0: a2 10 00 08 mov %o0, %l1 *endptr = end; 201e1e4: c2 07 bf fc ld [ %fp + -4 ], %g1 201e1e8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201e1ec: 80 a0 40 10 cmp %g1, %l0 201e1f0: 02 80 00 06 be 201e208 201e1f4: 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)) 201e1f8: 80 a4 7f ff cmp %l1, -1 201e1fc: 02 80 00 05 be 201e210 201e200: b0 10 20 00 clr %i0 if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; 201e204: e2 26 40 00 st %l1, [ %i1 ] #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; } 201e208: 81 c7 e0 08 ret 201e20c: 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)) 201e210: 40 00 99 ac call 20448c0 <__errno> <== NOT EXECUTED 201e214: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 201e218: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201e21c: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 201e220: 02 bf ff fa be 201e208 <== NOT EXECUTED 201e224: 01 00 00 00 nop <== NOT EXECUTED if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; 201e228: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201e22c: 81 c7 e0 08 ret <== NOT EXECUTED 201e230: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201e234: 10 bf ff ee b 201e1ec 201e238: c2 07 bf fc ld [ %fp + -4 ], %g1 0200d13c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200d13c: 9d e3 bf 98 save %sp, -104, %sp 200d140: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200d144: 80 a6 60 00 cmp %i1, 0 200d148: 02 80 00 16 be 200d1a0 200d14c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200d150: 40 00 0b cd call 2010084 <__errno> 200d154: 01 00 00 00 nop 200d158: c0 22 00 00 clr [ %o0 ] *n = 0; 200d15c: 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 ); 200d160: 94 10 00 1b mov %i3, %o2 200d164: 90 10 00 10 mov %l0, %o0 200d168: 40 00 19 0e call 20135a0 200d16c: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200d170: 80 a6 a0 00 cmp %i2, 0 200d174: 02 80 00 16 be 200d1cc 200d178: a2 10 00 08 mov %o0, %l1 *endptr = end; 200d17c: c2 07 bf fc ld [ %fp + -4 ], %g1 200d180: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200d184: 80 a0 40 10 cmp %g1, %l0 200d188: 02 80 00 06 be 200d1a0 200d18c: 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)) 200d190: 80 a4 7f ff cmp %l1, -1 200d194: 02 80 00 05 be 200d1a8 200d198: b0 10 20 00 clr %i0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200d19c: e2 26 40 00 st %l1, [ %i1 ] #endif return RTEMS_SUCCESSFUL; } 200d1a0: 81 c7 e0 08 ret 200d1a4: 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)) 200d1a8: 40 00 0b b7 call 2010084 <__errno> 200d1ac: b0 10 20 0a mov 0xa, %i0 200d1b0: c2 02 00 00 ld [ %o0 ], %g1 200d1b4: 80 a0 60 22 cmp %g1, 0x22 200d1b8: 02 bf ff fa be 200d1a0 200d1bc: 01 00 00 00 nop #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200d1c0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 200d1c4: 81 c7 e0 08 ret <== NOT EXECUTED 200d1c8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200d1cc: 10 bf ff ee b 200d184 200d1d0: c2 07 bf fc ld [ %fp + -4 ], %g1 0201e29c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201e29c: 9d e3 bf 98 save %sp, -104, %sp 201e2a0: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201e2a4: 80 a6 60 00 cmp %i1, 0 201e2a8: 02 80 00 16 be 201e300 201e2ac: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201e2b0: 40 00 99 84 call 20448c0 <__errno> 201e2b4: 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 ); 201e2b8: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201e2bc: c0 22 00 00 clr [ %o0 ] *n = 0; 201e2c0: 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 ); 201e2c4: 90 10 00 10 mov %l0, %o0 201e2c8: 40 00 ba 79 call 204ccac 201e2cc: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201e2d0: 80 a6 a0 00 cmp %i2, 0 201e2d4: 02 80 00 16 be 201e32c 201e2d8: a2 10 00 08 mov %o0, %l1 *endptr = end; 201e2dc: c2 07 bf fc ld [ %fp + -4 ], %g1 201e2e0: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201e2e4: 80 a0 40 10 cmp %g1, %l0 201e2e8: 02 80 00 06 be 201e300 201e2ec: 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)) 201e2f0: 80 a4 7f ff cmp %l1, -1 201e2f4: 02 80 00 05 be 201e308 201e2f8: b0 10 20 00 clr %i0 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 201e2fc: e2 26 40 00 st %l1, [ %i1 ] #endif return RTEMS_SUCCESSFUL; } 201e300: 81 c7 e0 08 ret 201e304: 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)) 201e308: 40 00 99 6e call 20448c0 <__errno> 201e30c: b0 10 20 0a mov 0xa, %i0 201e310: c2 02 00 00 ld [ %o0 ], %g1 201e314: 80 a0 60 22 cmp %g1, 0x22 201e318: 02 bf ff fa be 201e300 201e31c: 01 00 00 00 nop #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 201e320: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201e324: 81 c7 e0 08 ret <== NOT EXECUTED 201e328: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 201e32c: 10 bf ff ee b 201e2e4 201e330: c2 07 bf fc ld [ %fp + -4 ], %g1 0200d1d4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200d1d4: 9d e3 bf 90 save %sp, -112, %sp 200d1d8: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200d1dc: 80 a6 60 00 cmp %i1, 0 200d1e0: 02 80 00 23 be 200d26c 200d1e4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200d1e8: 40 00 0b a7 call 2010084 <__errno> 200d1ec: 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 ); 200d1f0: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200d1f4: c0 22 00 00 clr [ %o0 ] *n = 0; 200d1f8: c0 26 40 00 clr [ %i1 ] 200d1fc: 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 ); 200d200: 90 10 00 10 mov %l0, %o0 200d204: 40 00 18 f1 call 20135c8 200d208: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200d20c: 80 a6 a0 00 cmp %i2, 0 200d210: 02 80 00 19 be 200d274 200d214: a2 10 00 08 mov %o0, %l1 *endptr = end; 200d218: c2 07 bf fc ld [ %fp + -4 ], %g1 200d21c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200d220: 80 a0 40 10 cmp %g1, %l0 200d224: 02 80 00 12 be 200d26c 200d228: 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)) 200d22c: 80 a4 7f ff cmp %l1, -1 200d230: 02 80 00 06 be 200d248 200d234: 80 a2 7f ff cmp %o1, -1 #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; 200d238: d2 26 60 04 st %o1, [ %i1 + 4 ] 200d23c: e2 26 40 00 st %l1, [ %i1 ] #endif return RTEMS_SUCCESSFUL; } 200d240: 81 c7 e0 08 ret 200d244: 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)) 200d248: 32 bf ff fd bne,a 200d23c 200d24c: d2 26 60 04 st %o1, [ %i1 + 4 ] <== NOT EXECUTED 200d250: 40 00 0b 8d call 2010084 <__errno> 200d254: d2 27 bf f4 st %o1, [ %fp + -12 ] 200d258: c2 02 00 00 ld [ %o0 ], %g1 200d25c: b0 10 20 0a mov 0xa, %i0 200d260: 80 a0 60 22 cmp %g1, 0x22 200d264: 12 bf ff f5 bne 200d238 200d268: d2 07 bf f4 ld [ %fp + -12 ], %o1 *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; } 200d26c: 81 c7 e0 08 ret 200d270: 81 e8 00 00 restore 200d274: 10 bf ff eb b 200d220 200d278: c2 07 bf fc ld [ %fp + -4 ], %g1 02004b3c : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 2004b3c: 82 10 00 08 mov %o0, %g1 int baud_index; switch (termios_baud) { 2004b40: 80 a2 20 09 cmp %o0, 9 2004b44: 02 80 00 2d be 2004bf8 2004b48: 90 10 20 09 mov 9, %o0 2004b4c: 80 a0 60 09 cmp %g1, 9 2004b50: 04 80 00 1a ble 2004bb8 2004b54: 80 a0 60 04 cmp %g1, 4 2004b58: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 2004b5c: 02 80 00 27 be 2004bf8 <== NOT EXECUTED 2004b60: 90 10 20 0e mov 0xe, %o0 <== NOT EXECUTED 2004b64: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 2004b68: 04 80 00 26 ble 2004c00 <== NOT EXECUTED 2004b6c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 2004b70: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED 2004b74: 86 10 a0 02 or %g2, 2, %g3 ! 1002 <== NOT EXECUTED 2004b78: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004b7c: 02 80 00 1f be 2004bf8 <== NOT EXECUTED 2004b80: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED 2004b84: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004b88: 04 80 00 38 ble 2004c68 <== NOT EXECUTED 2004b8c: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED 2004b90: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED 2004b94: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004b98: 02 80 00 18 be 2004bf8 <== NOT EXECUTED 2004b9c: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED 2004ba0: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 2004ba4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004ba8: 02 80 00 14 be 2004bf8 <== NOT EXECUTED 2004bac: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 2004bb0: 81 c3 e0 08 retl 2004bb4: 90 10 3f ff mov -1, %o0 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 2004bb8: 02 80 00 10 be 2004bf8 2004bbc: 90 10 20 04 mov 4, %o0 2004bc0: 80 a0 60 04 cmp %g1, 4 2004bc4: 14 80 00 1c bg 2004c34 2004bc8: 80 a0 60 06 cmp %g1, 6 2004bcc: 80 a0 60 01 cmp %g1, 1 2004bd0: 02 80 00 0a be 2004bf8 2004bd4: 90 10 20 01 mov 1, %o0 2004bd8: 80 a0 60 01 cmp %g1, 1 2004bdc: 04 80 00 2b ble 2004c88 2004be0: 80 a0 60 02 cmp %g1, 2 2004be4: 02 80 00 05 be 2004bf8 <== NOT EXECUTED 2004be8: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2004bec: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2004bf0: 12 bf ff f0 bne 2004bb0 <== NOT EXECUTED 2004bf4: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED 2004bf8: 81 c3 e0 08 retl <== NOT EXECUTED 2004bfc: 01 00 00 00 nop <== NOT EXECUTED 2004c00: 02 bf ff fe be 2004bf8 <== NOT EXECUTED 2004c04: 90 10 20 0b mov 0xb, %o0 ! b <== NOT EXECUTED 2004c08: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 2004c0c: 06 bf ff fb bl 2004bf8 <== NOT EXECUTED 2004c10: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 2004c14: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED 2004c18: 02 bf ff f8 be 2004bf8 <== NOT EXECUTED 2004c1c: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED 2004c20: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 2004c24: 12 bf ff e3 bne 2004bb0 <== NOT EXECUTED 2004c28: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED 2004c2c: 81 c3 e0 08 retl <== NOT EXECUTED 2004c30: 01 00 00 00 nop <== NOT EXECUTED 2004c34: 02 bf ff f1 be 2004bf8 <== NOT EXECUTED 2004c38: 90 10 20 06 mov 6, %o0 ! 6 <== NOT EXECUTED 2004c3c: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2004c40: 06 bf ff ee bl 2004bf8 <== NOT EXECUTED 2004c44: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED 2004c48: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED 2004c4c: 02 bf ff eb be 2004bf8 <== NOT EXECUTED 2004c50: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED 2004c54: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED 2004c58: 12 bf ff d6 bne 2004bb0 <== NOT EXECUTED 2004c5c: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED 2004c60: 81 c3 e0 08 retl <== NOT EXECUTED 2004c64: 01 00 00 00 nop <== NOT EXECUTED 2004c68: 02 bf ff e4 be 2004bf8 <== NOT EXECUTED 2004c6c: 90 10 20 0f mov 0xf, %o0 ! f <== NOT EXECUTED 2004c70: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED 2004c74: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004c78: 12 bf ff ce bne 2004bb0 <== NOT EXECUTED 2004c7c: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED 2004c80: 81 c3 e0 08 retl <== NOT EXECUTED 2004c84: 01 00 00 00 nop <== NOT EXECUTED 2004c88: 80 a0 60 00 cmp %g1, 0 2004c8c: 12 bf ff c9 bne 2004bb0 2004c90: 90 10 20 00 clr %o0 case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 2004c94: 81 c3 e0 08 retl <== NOT EXECUTED 020035ac : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 20035ac: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 20035b0: d0 20 63 20 st %o0, [ %g1 + 0x320 ] ! 201c320 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 20035b4: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 20035b8: 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; 20035bc: d2 20 63 24 st %o1, [ %g1 + 0x324 ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 20035c0: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 20035c4: 81 c3 e0 08 retl <== NOT EXECUTED 20035c8: d4 20 63 28 st %o2, [ %g1 + 0x328 ] ! 201c328 <== NOT EXECUTED 02004ce0 : } } rtems_status_code rtems_termios_close (void *arg) { 2004ce0: 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); 2004ce4: 23 00 80 72 sethi %hi(0x201c800), %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; 2004ce8: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004cec: d0 04 63 bc ld [ %l1 + 0x3bc ], %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; 2004cf0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004cf4: 92 10 20 00 clr %o1 2004cf8: 40 00 04 c3 call 2006004 2004cfc: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2004d00: 80 a2 20 00 cmp %o0, 0 2004d04: 12 80 00 6e bne 2004ebc 2004d08: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 2004d0c: c2 04 20 08 ld [ %l0 + 8 ], %g1 2004d10: 82 00 7f ff add %g1, -1, %g1 2004d14: 80 a0 60 00 cmp %g1, 0 2004d18: 12 80 00 3a bne 2004e00 2004d1c: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 2004d20: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2004d24: 03 00 80 72 sethi %hi(0x201c800), %g1 2004d28: 85 28 a0 05 sll %g2, 5, %g2 2004d2c: 82 10 60 e4 or %g1, 0xe4, %g1 2004d30: 82 00 40 02 add %g1, %g2, %g1 2004d34: c2 00 60 04 ld [ %g1 + 4 ], %g1 2004d38: 80 a0 60 00 cmp %g1, 0 2004d3c: 22 80 00 48 be,a 2004e5c 2004d40: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004d44: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004d48: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 2004d4c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 2004d50: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2004d54: 22 80 00 4f be,a 2004e90 <== NOT EXECUTED 2004d58: 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) 2004d5c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED 2004d60: 80 a0 60 00 cmp %g1, 0 2004d64: 22 80 00 07 be,a 2004d80 2004d68: c2 04 00 00 ld [ %l0 ], %g1 (*tty->device.lastClose)(tty->major, tty->minor, arg); 2004d6c: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 2004d70: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 2004d74: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004d78: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 2004d7c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 2004d80: 80 a0 60 00 cmp %g1, 0 2004d84: 22 80 00 27 be,a 2004e20 2004d88: c2 04 20 04 ld [ %l0 + 4 ], %g1 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 2004d8c: c4 04 20 04 ld [ %l0 + 4 ], %g2 2004d90: c4 20 60 04 st %g2, [ %g1 + 4 ] } if (tty->back == NULL) { 2004d94: c4 04 20 04 ld [ %l0 + 4 ], %g2 2004d98: 80 a0 a0 00 cmp %g2, 0 2004d9c: 22 80 00 2b be,a 2004e48 2004da0: 05 00 80 72 sethi %hi(0x201c800), %g2 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 2004da4: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 2004da8: 40 00 04 6a call 2005f50 2004dac: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 2004db0: 40 00 04 68 call 2005f50 2004db4: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 2004db8: 40 00 04 66 call 2005f50 2004dbc: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 2004dc0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 2004dc4: 80 a0 60 00 cmp %g1, 0 2004dc8: 02 80 00 13 be 2004e14 2004dcc: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 2004dd0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004dd4: 80 a0 60 02 cmp %g1, 2 2004dd8: 02 80 00 0f be 2004e14 2004ddc: 01 00 00 00 nop rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 2004de0: 40 00 19 7e call 200b3d8 2004de4: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 2004de8: 40 00 19 7c call 200b3d8 2004dec: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 2004df0: 40 00 19 7a call 200b3d8 2004df4: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 2004df8: 40 00 19 78 call 200b3d8 2004dfc: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 2004e00: d0 04 63 bc ld [ %l1 + 0x3bc ], %o0 2004e04: 40 00 04 c7 call 2006120 2004e08: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 2004e0c: 81 c7 e0 08 ret 2004e10: 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); 2004e14: 40 00 04 4f call 2005f50 2004e18: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 2004e1c: 30 bf ff f1 b,a 2004de0 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; 2004e20: 05 00 80 72 sethi %hi(0x201c800), %g2 if ( rtems_termios_ttyTail != NULL ) { 2004e24: 80 a0 60 00 cmp %g1, 0 2004e28: 02 80 00 27 be 2004ec4 2004e2c: c2 20 a3 c0 st %g1, [ %g2 + 0x3c0 ] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 2004e30: 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; 2004e34: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 2004e38: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2004e3c: 12 bf ff da bne 2004da4 <== NOT EXECUTED 2004e40: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; 2004e44: 05 00 80 72 sethi %hi(0x201c800), %g2 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { 2004e48: 80 a0 60 00 cmp %g1, 0 2004e4c: 02 bf ff d7 be 2004da8 2004e50: c2 20 a3 c4 st %g1, [ %g2 + 0x3c4 ] rtems_termios_ttyHead->back = NULL; 2004e54: 10 bf ff d5 b 2004da8 2004e58: c0 20 60 04 clr [ %g1 + 4 ] } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004e5c: 92 10 20 00 clr %o1 2004e60: 40 00 04 69 call 2006004 2004e64: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 2004e68: 80 a2 20 00 cmp %o0, 0 2004e6c: 12 80 00 14 bne 2004ebc 2004e70: 01 00 00 00 nop rtems_fatal_error_occurred (sc); } drainOutput (tty); 2004e74: 7f ff fd 80 call 2004474 2004e78: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 2004e7c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004e80: 80 a0 60 02 cmp %g1, 2 2004e84: 32 bf ff b7 bne,a 2004d60 2004e88: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 2004e8c: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED 2004e90: 40 00 03 1c call 2005b00 <== NOT EXECUTED 2004e94: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004e98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004e9c: 12 80 00 08 bne 2004ebc <== NOT EXECUTED 2004ea0: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 2004ea4: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 2004ea8: 40 00 03 16 call 2005b00 <== NOT EXECUTED 2004eac: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004eb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004eb4: 22 bf ff ab be,a 2004d60 <== NOT EXECUTED 2004eb8: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004ebc: 40 00 06 01 call 20066c0 <== NOT EXECUTED 2004ec0: 01 00 00 00 nop <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 2004ec4: 03 00 80 72 sethi %hi(0x201c800), %g1 2004ec8: 10 bf ff b8 b 2004da8 2004ecc: c0 20 63 c4 clr [ %g1 + 0x3c4 ] ! 201cbc4 020037e4 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 20037e4: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 20037e8: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 20037ec: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 20037f0: 84 00 80 19 add %g2, %i1, %g2 20037f4: c4 26 20 90 st %g2, [ %i0 + 0x90 ] if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 20037f8: 80 a0 60 02 cmp %g1, 2 20037fc: 02 80 00 10 be 200383c 2003800: 90 10 00 18 mov %i0, %o0 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 ) { 2003804: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 2003808: 80 a0 60 05 cmp %g1, 5 200380c: 02 80 00 04 be 200381c 2003810: 03 00 80 72 sethi %hi(0x201c800), %g1 rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 2003814: 7f ff ff 74 call 20035e4 2003818: 81 e8 00 00 restore } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 200381c: c2 00 61 98 ld [ %g1 + 0x198 ], %g1 <== NOT EXECUTED 2003820: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003824: 02 80 00 04 be 2003834 <== NOT EXECUTED 2003828: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 200382c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003830: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 2003834: 81 c7 e0 08 ret <== NOT EXECUTED 2003838: 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, 200383c: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2003840: 40 00 08 b0 call 2005b00 <== NOT EXECUTED 2003844: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2003848: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200384c: 02 bf ff fa be 2003834 <== NOT EXECUTED 2003850: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2003854: 40 00 0b 9b call 20066c0 <== NOT EXECUTED 02003860 : * 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) { 2003860: 9d e3 bf a0 save %sp, -96, %sp 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) { 2003864: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 2003868: 23 00 80 72 sethi %hi(0x201c800), %l1 200386c: 83 28 60 05 sll %g1, 5, %g1 2003870: a2 14 60 e4 or %l1, 0xe4, %l1 2003874: 82 00 60 10 add %g1, 0x10, %g1 2003878: c2 04 40 01 ld [ %l1 + %g1 ], %g1 200387c: 80 a0 60 00 cmp %g1, 0 2003880: 02 80 00 22 be 2003908 2003884: a0 10 00 18 mov %i0, %l0 while (len--) { 2003888: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200388c: 22 80 00 0f be,a 20038c8 <== NOT EXECUTED 2003890: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 2003894: 10 80 00 05 b 20038a8 <== NOT EXECUTED 2003898: a4 10 20 00 clr %l2 <== NOT EXECUTED 200389c: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20038a0: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20038a4: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 20038a8: d0 4e 40 12 ldsb [ %i1 + %l2 ], %o0 <== NOT EXECUTED 20038ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 20038b0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20038b4: 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--) { 20038b8: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED 20038bc: 32 bf ff f8 bne,a 200389c <== NOT EXECUTED 20038c0: 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 )) { 20038c4: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 20038c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038cc: 12 80 00 0d bne 2003900 <== NOT EXECUTED 20038d0: 01 00 00 00 nop <== NOT EXECUTED 20038d4: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 20038d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038dc: 02 80 00 09 be 2003900 <== NOT EXECUTED 20038e0: 01 00 00 00 nop <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 20038e4: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 20038e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20038ec: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 20038f0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 20038f4: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED 20038f8: 81 c7 e0 08 ret <== NOT EXECUTED 20038fc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 2003900: 81 c7 e0 08 ret <== NOT EXECUTED 2003904: 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); 2003908: a2 10 00 1a mov %i2, %l1 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, 200390c: ae 06 20 4a add %i0, 0x4a, %l7 /* * 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); 2003910: ac 06 20 30 add %i0, 0x30, %l6 2003914: a8 10 20 00 clr %l4 tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2003918: 80 a4 60 00 cmp %l1, 0 200391c: 02 80 00 1c be 200398c 2003920: b0 10 20 00 clr %i0 c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2003924: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003928: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 200392c: 02 80 00 0b be 2003958 <== NOT EXECUTED 2003930: 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]) { 2003934: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED 2003938: 83 2c a0 18 sll %l2, 0x18, %g1 <== NOT EXECUTED 200393c: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 2003940: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003944: 02 80 00 63 be 2003ad0 <== NOT EXECUTED 2003948: 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]) { 200394c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003950: 02 80 00 68 be 2003af0 <== NOT EXECUTED 2003954: 01 00 00 00 nop <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 2003958: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED 200395c: 02 80 00 22 be 20039e4 <== NOT EXECUTED 2003960: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 2003964: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003968: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 200396c: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 2003970: 02 80 00 0e be 20039a8 <== NOT EXECUTED 2003974: 01 00 00 00 nop <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003978: b2 06 60 01 inc %i1 <== NOT EXECUTED 200397c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2003980: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2003984: 12 bf ff e8 bne 2003924 <== NOT EXECUTED 2003988: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 200398c: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 rtems_semaphore_release (tty->rawInBuf.Semaphore); 2003990: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 2003994: 82 00 40 18 add %g1, %i0, %g1 rtems_semaphore_release (tty->rawInBuf.Semaphore); 2003998: 40 00 09 e2 call 2006120 200399c: c2 24 20 78 st %g1, [ %l0 + 0x78 ] return dropped; 20039a0: 81 c7 e0 08 ret 20039a4: 81 e8 00 00 restore } 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); 20039a8: 7f ff fa 41 call 20022ac <== NOT EXECUTED 20039ac: 01 00 00 00 nop <== NOT EXECUTED 20039b0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 20039b4: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20039b8: 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; 20039bc: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 20039c0: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20039c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20039c8: 12 80 00 57 bne 2003b24 <== NOT EXECUTED 20039cc: 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); 20039d0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20039d4: 7f ff fa 3a call 20022bc <== NOT EXECUTED 20039d8: b2 06 60 01 inc %i1 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 20039dc: 10 bf ff e9 b 2003980 <== NOT EXECUTED 20039e0: 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; 20039e4: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 20039e8: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 20039ec: 40 00 56 f0 call 20195ac <.urem> <== NOT EXECUTED 20039f0: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 20039f4: 7f ff fa 2e call 20022ac <== NOT EXECUTED 20039f8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED 20039fc: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2003a00: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003a04: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 2003a08: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003a0c: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2003a10: 40 00 56 e7 call 20195ac <.urem> <== NOT EXECUTED 2003a14: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 2003a18: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED 2003a1c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003a20: 08 80 00 13 bleu 2003a6c <== NOT EXECUTED 2003a24: 01 00 00 00 nop <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 2003a28: 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) 2003a2c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2003a30: 12 80 00 0f bne 2003a6c <== NOT EXECUTED 2003a34: 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; 2003a38: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003a3c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 2003a40: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 2003a44: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003a48: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED 2003a4c: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 2003a50: 02 80 00 3d be 2003b44 <== NOT EXECUTED 2003a54: 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)) 2003a58: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003a5c: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 2003a60: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 2003a64: 02 80 00 49 be 2003b88 <== NOT EXECUTED 2003a68: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2003a6c: 7f ff fa 14 call 20022bc <== NOT EXECUTED 2003a70: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 2003a74: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003a78: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED 2003a7c: 22 80 00 22 be,a 2003b04 <== NOT EXECUTED 2003a80: b0 06 20 01 inc %i0 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 2003a84: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 2003a88: 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 )) { 2003a8c: 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; 2003a90: 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 )) { 2003a94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003a98: 32 bf ff b9 bne,a 200397c <== NOT EXECUTED 2003a9c: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003aa0: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 2003aa4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003aa8: 22 bf ff b5 be,a 200397c <== NOT EXECUTED 2003aac: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003ab0: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 2003ab4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003ab8: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2003abc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003ac0: 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; 2003ac4: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003ac8: 10 bf ff ae b 2003980 <== NOT EXECUTED 2003acc: 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]) { 2003ad0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003ad4: 02 80 00 0f be 2003b10 <== NOT EXECUTED 2003ad8: 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; 2003adc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2003ae0: 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; 2003ae4: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED 2003ae8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED 2003aec: 30 bf ff 9e b,a 2003964 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 2003af0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2003af4: 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; 2003af8: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED 2003afc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED 2003b00: 30 bf ff 99 b,a 2003964 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003b04: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003b08: 10 bf ff 9e b 2003980 <== NOT EXECUTED 2003b0c: 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; 2003b10: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 2003b14: 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; 2003b18: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED 2003b1c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED 2003b20: 30 bf ff 91 b,a 2003964 <== 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); 2003b24: 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, 2003b28: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 2003b2c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003b30: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2003b34: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 2003b38: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003b3c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2003b40: 30 bf ff a4 b,a 20039d0 <== 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) || 2003b44: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003b48: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003b4c: 12 80 00 06 bne 2003b64 <== NOT EXECUTED 2003b50: 01 00 00 00 nop <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 2003b54: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 2003b58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003b5c: 12 bf ff c4 bne 2003a6c <== NOT EXECUTED 2003b60: 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; 2003b64: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003b68: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003b6c: 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; 2003b70: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003b74: 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; 2003b78: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003b7c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003b80: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2003b84: 30 bf ff ba b,a 2003a6c <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2003b88: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003b8c: 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; 2003b90: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 2003b94: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003b98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003b9c: 02 bf ff b4 be 2003a6c <== NOT EXECUTED 2003ba0: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 2003ba4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003ba8: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2003bac: 30 bf ff b0 b,a 2003a6c <== NOT EXECUTED 0200355c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 200355c: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2003560: 19 00 80 72 sethi %hi(0x201c800), %o4 2003564: c2 03 23 bc ld [ %o4 + 0x3bc ], %g1 ! 201cbbc 2003568: 80 a0 60 00 cmp %g1, 0 200356c: 02 80 00 04 be 200357c 2003570: 98 13 23 bc or %o4, 0x3bc, %o4 2003574: 81 c7 e0 08 ret 2003578: 81 e8 00 00 restore sc = rtems_semaphore_create ( 200357c: 11 15 14 9b sethi %hi(0x54526c00), %o0 2003580: 92 10 20 01 mov 1, %o1 2003584: 90 12 21 69 or %o0, 0x169, %o0 2003588: 94 10 20 54 mov 0x54, %o2 200358c: 40 00 09 fd call 2005d80 2003590: 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) 2003594: 80 a2 20 00 cmp %o0, 0 2003598: 02 bf ff f7 be 2003574 200359c: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 20035a0: 40 00 0c 48 call 20066c0 <== NOT EXECUTED 020048d4 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 20048d4: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 20048d8: c2 06 00 00 ld [ %i0 ], %g1 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 20048dc: 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; 20048e0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 20048e4: 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); 20048e8: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 20048ec: 92 10 20 00 clr %o1 20048f0: 40 00 05 c5 call 2006004 20048f4: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 20048f8: a2 92 20 00 orcc %o0, 0, %l1 20048fc: 32 80 00 16 bne,a 2004954 2004900: e2 26 20 0c st %l1, [ %i0 + 0xc ] <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 2004904: c2 06 20 04 ld [ %i0 + 4 ], %g1 2004908: 80 a0 60 04 cmp %g1, 4 200490c: 22 80 00 0c be,a 200493c 2004910: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 2004914: 18 80 00 12 bgu 200495c 2004918: 05 10 01 19 sethi %hi(0x40046400), %g2 200491c: 80 a0 60 02 cmp %g1, 2 2004920: 22 80 00 26 be,a 20049b8 2004924: d2 06 20 08 ld [ %i0 + 8 ], %o1 2004928: 08 80 00 81 bleu 2004b2c 200492c: 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); 2004930: 7f ff fe d1 call 2004474 2004934: 90 10 00 10 mov %l0, %o0 break; 2004938: 30 80 00 04 b,a 2004948 case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 200493c: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED 2004940: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED 2004944: 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); 2004948: 40 00 05 f6 call 2006120 200494c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 args->ioctl_return = sc; 2004950: e2 26 20 0c st %l1, [ %i0 + 0xc ] return sc; } 2004954: 81 c7 e0 08 ret 2004958: 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) { 200495c: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED 2004960: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004964: 02 80 00 66 be 2004afc <== NOT EXECUTED 2004968: 01 00 00 00 nop <== NOT EXECUTED 200496c: 18 80 00 77 bgu 2004b48 <== NOT EXECUTED 2004970: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED 2004974: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2004978: 22 80 00 98 be,a 2004bd8 <== NOT EXECUTED 200497c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 2004980: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED 2004984: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED 2004988: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 200498c: 82 10 60 e4 or %g1, 0xe4, %g1 <== NOT EXECUTED 2004990: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2004994: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2004998: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200499c: 02 bf ff eb be 2004948 <== NOT EXECUTED 20049a0: a2 10 20 0a mov 0xa, %l1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 20049a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20049a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20049ac: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20049b0: 10 bf ff e6 b 2004948 <== NOT EXECUTED 20049b4: 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; 20049b8: a4 04 20 30 add %l0, 0x30, %l2 20049bc: 94 10 20 24 mov 0x24, %o2 20049c0: 40 00 2f 57 call 201071c 20049c4: 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) && 20049c8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 20049cc: 80 88 62 00 btst 0x200, %g1 20049d0: 02 80 00 19 be 2004a34 20049d4: 01 00 00 00 nop 20049d8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 20049dc: 80 88 64 00 btst 0x400, %g1 20049e0: 12 80 00 15 bne 2004a34 20049e4: 01 00 00 00 nop !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 20049e8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20049ec: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 20049f0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 20049f4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20049f8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20049fc: 02 80 00 0e be 2004a34 <== NOT EXECUTED 2004a00: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 2004a04: 7f ff f6 2a call 20022ac <== NOT EXECUTED 2004a08: 01 00 00 00 nop <== NOT EXECUTED 2004a0c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2004a10: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004a14: 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; 2004a18: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 2004a1c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2004a20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004a24: 12 80 00 a7 bne 2004cc0 <== NOT EXECUTED 2004a28: 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); 2004a2c: 7f ff f6 24 call 20022bc <== NOT EXECUTED 2004a30: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 2004a34: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004a38: 80 88 64 00 btst 0x400, %g1 2004a3c: 02 80 00 0c be 2004a6c 2004a40: 03 00 00 04 sethi %hi(0x1000), %g1 2004a44: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 2004a48: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 2004a4c: 12 80 00 08 bne 2004a6c <== NOT EXECUTED 2004a50: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 2004a54: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004a58: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 2004a5c: 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); 2004a60: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004a64: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED 2004a68: 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) && 2004a6c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004a70: 80 88 61 00 btst 0x100, %g1 2004a74: 12 80 00 5d bne 2004be8 2004a78: 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) { 2004a7c: 80 a0 a0 00 cmp %g2, 0 2004a80: 06 80 00 84 bl 2004c90 2004a84: 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) { 2004a88: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2004a8c: 05 00 00 04 sethi %hi(0x1000), %g2 2004a90: 80 88 40 02 btst %g1, %g2 2004a94: 02 80 00 06 be 2004aac 2004a98: 80 88 64 00 btst 0x400, %g1 tty->flow_ctrl |= FL_MDXOF; 2004a9c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED 2004aa0: 84 10 a4 00 or %g2, 0x400, %g2 <== NOT EXECUTED 2004aa4: 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) { 2004aa8: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED 2004aac: 22 80 00 06 be,a 2004ac4 2004ab0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 2004ab4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004ab8: 82 10 62 00 or %g1, 0x200, %g1 2004abc: 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) { 2004ac0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 2004ac4: 80 88 60 02 btst 2, %g1 2004ac8: 02 80 00 5e be 2004c40 2004acc: 01 00 00 00 nop else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 2004ad0: c0 24 20 6c clr [ %l0 + 0x6c ] tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 2004ad4: c0 24 20 70 clr [ %l0 + 0x70 ] tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 2004ad8: c0 24 20 74 clr [ %l0 + 0x74 ] else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 2004adc: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 2004ae0: 80 a0 60 00 cmp %g1, 0 2004ae4: 02 bf ff 99 be 2004948 2004ae8: 01 00 00 00 nop (*tty->device.setAttributes)(tty->minor, &tty->termios); 2004aec: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 2004af0: 9f c0 40 00 call %g1 2004af4: 92 10 00 12 mov %l2, %o1 2004af8: 30 bf ff 94 b,a 2004948 *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 2004afc: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED 2004b00: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 2004b04: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED 2004b08: 0c 80 00 5f bneg 2004c84 <== NOT EXECUTED 2004b0c: 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; 2004b10: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED 2004b14: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2004b18: c6 06 20 08 ld [ %i0 + 8 ], %g3 <== NOT EXECUTED 2004b1c: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED 2004b20: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 2004b24: 10 bf ff 89 b 2004948 <== NOT EXECUTED 2004b28: 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) { 2004b2c: 32 bf ff 96 bne,a 2004984 2004b30: 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; 2004b34: d0 06 20 08 ld [ %i0 + 8 ], %o0 2004b38: 92 04 20 30 add %l0, 0x30, %o1 2004b3c: 40 00 2e f8 call 201071c 2004b40: 94 10 20 24 mov 0x24, %o2 break; 2004b44: 30 bf ff 81 b,a 2004948 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 2004b48: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED 2004b4c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004b50: 02 80 00 1e be 2004bc8 <== NOT EXECUTED 2004b54: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED 2004b58: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <== NOT EXECUTED 2004b5c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004b60: 32 bf ff 89 bne,a 2004984 <== NOT EXECUTED 2004b64: 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) { 2004b68: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 2004b6c: 25 00 80 72 sethi %hi(0x201c800), %l2 <== NOT EXECUTED 2004b70: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004b74: a4 14 a0 e4 or %l2, 0xe4, %l2 <== NOT EXECUTED 2004b78: 82 04 80 01 add %l2, %g1, %g1 <== NOT EXECUTED 2004b7c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2004b80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004b84: 22 80 00 06 be,a 2004b9c <== NOT EXECUTED 2004b88: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 2004b8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004b90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004b94: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 2004b98: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 2004b9c: 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); 2004ba0: 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) { 2004ba4: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED 2004ba8: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED 2004bac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004bb0: 02 bf ff 66 be 2004948 <== NOT EXECUTED 2004bb4: c4 24 20 cc st %g2, [ %l0 + 0xcc ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 2004bb8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004bbc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004bc0: 10 bf ff 62 b 2004948 <== NOT EXECUTED 2004bc4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 2004bc8: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED 2004bcc: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED break; 2004bd0: 10 bf ff 5e b 2004948 <== NOT EXECUTED 2004bd4: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 2004bd8: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED 2004bdc: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 2004be0: 10 bf ff 5a b 2004948 <== NOT EXECUTED 2004be4: 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) && 2004be8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2004bec: 06 80 00 29 bl 2004c90 <== NOT EXECUTED 2004bf0: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 2004bf4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004bf8: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 2004bfc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 2004c00: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004c04: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2004c08: 02 80 00 09 be 2004c2c <== NOT EXECUTED 2004c0c: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 2004c10: 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) && 2004c14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004c18: 02 80 00 05 be 2004c2c <== NOT EXECUTED 2004c1c: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 2004c20: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004c24: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2004c28: c4 04 20 38 ld [ %l0 + 0x38 ], %g2 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 2004c2c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004c30: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 2004c34: 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) { 2004c38: 10 bf ff 92 b 2004a80 <== NOT EXECUTED 2004c3c: 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; 2004c40: 40 00 03 24 call 20058d0 <== NOT EXECUTED 2004c44: 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] * 2004c48: 40 00 51 73 call 2019214 <.umul> <== NOT EXECUTED 2004c4c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2004c50: 40 00 51 ab call 20192fc <.udiv> <== NOT EXECUTED 2004c54: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 2004c58: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 2004c5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004c60: 02 80 00 11 be 2004ca4 <== NOT EXECUTED 2004c64: d0 24 20 54 st %o0, [ %l0 + 0x54 ] <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004c68: 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; 2004c6c: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004c70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004c74: 12 bf ff 99 bne 2004ad8 <== NOT EXECUTED 2004c78: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 2004c7c: 10 bf ff 98 b 2004adc <== NOT EXECUTED 2004c80: 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; 2004c84: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 2004c88: 10 bf ff a2 b 2004b10 <== NOT EXECUTED 2004c8c: 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; 2004c90: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004c94: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 2004c98: 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) { 2004c9c: 10 bf ff 7c b 2004a8c <== NOT EXECUTED 2004ca0: 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]) { 2004ca4: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004ca8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004cac: 32 bf ff 8a bne,a 2004ad4 <== NOT EXECUTED 2004cb0: 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; 2004cb4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2004cb8: 10 bf ff 89 b 2004adc <== NOT EXECUTED 2004cbc: 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); 2004cc0: 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, 2004cc4: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 2004cc8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2004ccc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2004cd0: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 2004cd4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004cd8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2004cdc: 30 bf ff 54 b,a 2004a2c <== NOT EXECUTED 0200badc : #include int rtems_termios_number_to_baud( int32_t baud ) { 200badc: 82 10 00 08 mov %o0, %g1 int termios_baud; switch (baud) { 200bae0: 80 a2 24 b0 cmp %o0, 0x4b0 200bae4: 02 80 00 32 be 200bbac 200bae8: 90 10 20 09 mov 9, %o0 200baec: 80 a0 64 b0 cmp %g1, 0x4b0 200baf0: 04 80 00 1e ble 200bb68 200baf4: 80 a0 60 86 cmp %g1, 0x86 200baf8: 05 00 00 12 sethi %hi(0x4800), %g2 200bafc: 84 10 a3 00 or %g2, 0x300, %g2 ! 4b00 200bb00: 80 a0 40 02 cmp %g1, %g2 200bb04: 02 80 00 2a be 200bbac 200bb08: 90 10 20 0e mov 0xe, %o0 200bb0c: 80 a0 40 02 cmp %g1, %g2 200bb10: 04 80 00 29 ble 200bbb4 200bb14: 80 a0 69 60 cmp %g1, 0x960 200bb18: 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; 200bb1c: 05 00 00 04 sethi %hi(0x1000), %g2 int32_t baud ) { int termios_baud; switch (baud) { 200bb20: 86 10 e2 00 or %g3, 0x200, %g3 200bb24: 80 a0 40 03 cmp %g1, %g3 200bb28: 02 80 00 21 be 200bbac 200bb2c: 90 10 a0 02 or %g2, 2, %o0 200bb30: 80 a0 40 03 cmp %g1, %g3 200bb34: 04 80 00 46 ble 200bc4c 200bb38: 07 00 00 25 sethi %hi(0x9400), %g3 200bb3c: 07 00 00 e1 sethi %hi(0x38400), %g3 200bb40: 80 a0 40 03 cmp %g1, %g3 200bb44: 02 80 00 1a be 200bbac 200bb48: 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; 200bb4c: 90 10 a0 04 or %g2, 4, %o0 int32_t baud ) { int termios_baud; switch (baud) { 200bb50: 05 00 01 c2 sethi %hi(0x70800), %g2 200bb54: 80 a0 40 02 cmp %g1, %g2 200bb58: 02 80 00 4b be 200bc84 200bb5c: 01 00 00 00 nop case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 200bb60: 81 c3 e0 08 retl 200bb64: 90 10 3f ff mov -1, %o0 ! ffffffff int32_t baud ) { int termios_baud; switch (baud) { 200bb68: 02 80 00 11 be 200bbac 200bb6c: 90 10 20 04 mov 4, %o0 200bb70: 80 a0 60 86 cmp %g1, 0x86 200bb74: 04 80 00 21 ble 200bbf8 200bb78: 80 a0 60 32 cmp %g1, 0x32 200bb7c: 80 a0 60 c8 cmp %g1, 0xc8 200bb80: 02 80 00 0b be 200bbac 200bb84: 90 10 20 06 mov 6, %o0 200bb88: 80 a0 60 c8 cmp %g1, 0xc8 200bb8c: 04 80 00 28 ble 200bc2c 200bb90: 80 a0 60 96 cmp %g1, 0x96 200bb94: 80 a0 61 2c cmp %g1, 0x12c 200bb98: 02 80 00 05 be 200bbac 200bb9c: 90 10 20 07 mov 7, %o0 200bba0: 80 a0 62 58 cmp %g1, 0x258 200bba4: 12 bf ff ef bne 200bb60 200bba8: 90 10 20 08 mov 8, %o0 200bbac: 81 c3 e0 08 retl 200bbb0: 01 00 00 00 nop 200bbb4: 02 bf ff fe be 200bbac 200bbb8: 90 10 20 0b mov 0xb, %o0 ! b 200bbbc: 80 a0 69 60 cmp %g1, 0x960 200bbc0: 04 80 00 2f ble 200bc7c 200bbc4: 80 a0 67 08 cmp %g1, 0x708 200bbc8: 05 00 00 04 sethi %hi(0x1000), %g2 200bbcc: 84 10 a2 c0 or %g2, 0x2c0, %g2 ! 12c0 200bbd0: 80 a0 40 02 cmp %g1, %g2 200bbd4: 02 bf ff f6 be 200bbac 200bbd8: 90 10 20 0c mov 0xc, %o0 200bbdc: 05 00 00 09 sethi %hi(0x2400), %g2 200bbe0: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 200bbe4: 80 a0 40 02 cmp %g1, %g2 200bbe8: 12 bf ff de bne 200bb60 200bbec: 90 10 20 0d mov 0xd, %o0 200bbf0: 81 c3 e0 08 retl 200bbf4: 01 00 00 00 nop 200bbf8: 02 bf ff ed be 200bbac 200bbfc: 90 10 20 01 mov 1, %o0 ! 1 200bc00: 80 a0 60 32 cmp %g1, 0x32 200bc04: 04 80 00 0e ble 200bc3c 200bc08: 80 a0 60 00 cmp %g1, 0 200bc0c: 80 a0 60 4b cmp %g1, 0x4b 200bc10: 02 bf ff e7 be 200bbac 200bc14: 90 10 20 02 mov 2, %o0 200bc18: 80 a0 60 6e cmp %g1, 0x6e 200bc1c: 12 bf ff d1 bne 200bb60 200bc20: 90 10 20 03 mov 3, %o0 200bc24: 81 c3 e0 08 retl 200bc28: 01 00 00 00 nop 200bc2c: 12 bf ff cd bne 200bb60 200bc30: 90 10 20 05 mov 5, %o0 ! 5 200bc34: 81 c3 e0 08 retl 200bc38: 01 00 00 00 nop 200bc3c: 12 bf ff c9 bne 200bb60 200bc40: 90 10 20 00 clr %o0 ! 0 case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 200bc44: 81 c3 e0 08 retl 200bc48: 01 00 00 00 nop int32_t baud ) { int termios_baud; switch (baud) { 200bc4c: 86 10 e2 00 or %g3, 0x200, %g3 200bc50: 80 a0 40 03 cmp %g1, %g3 200bc54: 02 bf ff d6 be 200bbac 200bc58: 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; 200bc5c: 90 10 a0 01 or %g2, 1, %o0 int32_t baud ) { int termios_baud; switch (baud) { 200bc60: 05 00 00 38 sethi %hi(0xe000), %g2 200bc64: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 200bc68: 80 a0 40 02 cmp %g1, %g2 200bc6c: 32 bf ff d0 bne,a 200bbac 200bc70: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 200bc74: 81 c3 e0 08 retl 200bc78: 01 00 00 00 nop 200bc7c: 12 bf ff b9 bne 200bb60 200bc80: 90 10 20 0a mov 0xa, %o0 ! a 200bc84: 81 c3 e0 08 retl 02004ed0 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 2004ed0: 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, 2004ed4: 23 00 80 72 sethi %hi(0x201c800), %l1 2004ed8: d0 04 63 bc ld [ %l1 + 0x3bc ], %o0 ! 201cbbc 2004edc: 92 10 20 00 clr %o1 2004ee0: 40 00 04 49 call 2006004 2004ee4: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2004ee8: a0 92 20 00 orcc %o0, 0, %l0 2004eec: 32 80 00 29 bne,a 2004f90 2004ef0: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 2004ef4: 29 00 80 72 sethi %hi(0x201c800), %l4 2004ef8: e4 05 23 c4 ld [ %l4 + 0x3c4 ], %l2 ! 201cbc4 2004efc: 80 a4 a0 00 cmp %l2, 0 2004f00: 32 80 00 08 bne,a 2004f20 2004f04: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004f08: 10 80 00 33 b 2004fd4 2004f0c: 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) { 2004f10: 80 a4 a0 00 cmp %l2, 0 2004f14: 02 80 00 30 be 2004fd4 2004f18: 90 10 20 01 mov 1, %o0 if ((tty->major == major) && (tty->minor == minor)) 2004f1c: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 <== NOT EXECUTED 2004f20: 80 a0 40 18 cmp %g1, %i0 2004f24: 32 bf ff fb bne,a 2004f10 2004f28: e4 04 80 00 ld [ %l2 ], %l2 2004f2c: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1 2004f30: 80 a0 40 19 cmp %g1, %i1 2004f34: 32 bf ff f7 bne,a 2004f10 2004f38: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { 2004f3c: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 2004f40: c6 06 80 00 ld [ %i2 ], %g3 if (!tty->refcount++) { 2004f44: 84 00 60 01 add %g1, 1, %g2 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 2004f48: e4 20 e0 38 st %l2, [ %g3 + 0x38 ] if (!tty->refcount++) { 2004f4c: 80 a0 60 00 cmp %g1, 0 2004f50: 12 80 00 0d bne 2004f84 2004f54: c4 24 a0 08 st %g2, [ %l2 + 8 ] if (tty->device.firstOpen) 2004f58: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1 2004f5c: 80 a0 60 00 cmp %g1, 0 2004f60: 02 80 00 05 be 2004f74 2004f64: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 2004f68: 92 10 00 19 mov %i1, %o1 2004f6c: 9f c0 40 00 call %g1 2004f70: 94 10 00 1a mov %i2, %o2 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004f74: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1 2004f78: 80 a0 60 02 cmp %g1, 2 2004f7c: 22 80 00 07 be,a 2004f98 2004f80: 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); 2004f84: 40 00 04 67 call 2006120 2004f88: d0 04 63 bc ld [ %l1 + 0x3bc ], %o0 return RTEMS_SUCCESSFUL; } 2004f8c: b0 10 00 10 mov %l0, %i0 2004f90: 81 c7 e0 08 ret 2004f94: 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, 2004f98: 13 00 80 14 sethi %hi(0x2005000), %o1 <== NOT EXECUTED 2004f9c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2004fa0: 40 00 05 34 call 2006470 <== NOT EXECUTED 2004fa4: 92 12 63 c0 or %o1, 0x3c0, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004fa8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004fac: 12 80 00 bf bne 20052a8 <== NOT EXECUTED 2004fb0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 2004fb4: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED 2004fb8: 13 00 80 14 sethi %hi(0x2005000), %o1 <== NOT EXECUTED 2004fbc: 40 00 05 2d call 2006470 <== NOT EXECUTED 2004fc0: 92 12 63 28 or %o1, 0x328, %o1 ! 2005328 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004fc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004fc8: 02 bf ff ef be 2004f84 <== NOT EXECUTED 2004fcc: 01 00 00 00 nop <== NOT EXECUTED 2004fd0: 30 80 00 b6 b,a 20052a8 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004fd4: 40 00 18 bc call 200b2c4 2004fd8: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 2004fdc: a6 92 20 00 orcc %o0, 0, %l3 2004fe0: 02 80 00 99 be 2005244 2004fe4: a4 10 00 13 mov %l3, %l2 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 2004fe8: 03 00 80 70 sethi %hi(0x201c000), %g1 2004fec: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 201c324 2004ff0: c2 24 e0 64 st %g1, [ %l3 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 2004ff4: d0 04 e0 64 ld [ %l3 + 0x64 ], %o0 2004ff8: 40 00 1a 78 call 200b9d8 2004ffc: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 2005000: 80 a2 20 00 cmp %o0, 0 2005004: 02 80 00 8e be 200523c 2005008: d0 24 e0 58 st %o0, [ %l3 + 0x58 ] return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 200500c: 03 00 80 70 sethi %hi(0x201c000), %g1 2005010: c2 00 63 28 ld [ %g1 + 0x328 ], %g1 ! 201c328 2005014: c2 24 e0 88 st %g1, [ %l3 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 2005018: d0 04 e0 88 ld [ %l3 + 0x88 ], %o0 200501c: 40 00 1a 6f call 200b9d8 2005020: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 2005024: 80 a2 20 00 cmp %o0, 0 2005028: 02 80 00 8c be 2005258 200502c: d0 24 e0 7c st %o0, [ %l3 + 0x7c ] return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 2005030: 03 00 80 70 sethi %hi(0x201c000), %g1 2005034: 40 00 1a 69 call 200b9d8 2005038: d0 00 63 20 ld [ %g1 + 0x320 ], %o0 ! 201c320 if (tty->cbuf == NULL) { 200503c: 80 a2 20 00 cmp %o0, 0 2005040: 02 80 00 9c be 20052b0 2005044: d0 24 e0 1c st %o0, [ %l3 + 0x1c ] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 2005048: c2 05 23 c4 ld [ %l4 + 0x3c4 ], %g1 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 200504c: c0 24 e0 d4 clr [ %l3 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 2005050: c0 24 e0 d8 clr [ %l3 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 2005054: c0 24 e0 dc clr [ %l3 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 2005058: c0 24 e0 e0 clr [ %l3 + 0xe0 ] tty->tty_rcvwakeup = 0; 200505c: c0 24 e0 e4 clr [ %l3 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 2005060: c2 24 c0 00 st %g1, [ %l3 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 2005064: 80 a0 60 00 cmp %g1, 0 2005068: 02 80 00 03 be 2005074 200506c: c0 24 e0 04 clr [ %l3 + 4 ] rtems_termios_ttyHead->back = tty; 2005070: e6 20 60 04 st %l3, [ %g1 + 4 ] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 2005074: 03 00 80 72 sethi %hi(0x201c800), %g1 2005078: c4 00 63 c0 ld [ %g1 + 0x3c0 ], %g2 ! 201cbc0 200507c: 80 a0 a0 00 cmp %g2, 0 2005080: 02 80 00 a8 be 2005320 2005084: e6 25 23 c4 st %l3, [ %l4 + 0x3c4 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2005088: 29 00 80 70 sethi %hi(0x201c000), %l4 200508c: d0 4d 23 2c ldsb [ %l4 + 0x32c ], %o0 ! 201c32c 2005090: 03 15 14 9a sethi %hi(0x54526800), %g1 2005094: 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; 2005098: f2 24 e0 10 st %i1, [ %l3 + 0x10 ] tty->major = major; 200509c: f0 24 e0 0c st %i0, [ %l3 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 20050a0: 90 12 00 01 or %o0, %g1, %o0 20050a4: 92 10 20 01 mov 1, %o1 20050a8: 94 10 20 54 mov 0x54, %o2 20050ac: 96 10 20 00 clr %o3 20050b0: 40 00 03 34 call 2005d80 20050b4: 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) 20050b8: 80 a2 20 00 cmp %o0, 0 20050bc: 12 80 00 7b bne 20052a8 20050c0: 03 15 14 9b sethi %hi(0x54526c00), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 20050c4: d0 4d 23 2c ldsb [ %l4 + 0x32c ], %o0 20050c8: 82 10 63 00 or %g1, 0x300, %g1 20050cc: 92 10 20 01 mov 1, %o1 20050d0: 90 12 00 01 or %o0, %g1, %o0 20050d4: 94 10 20 54 mov 0x54, %o2 20050d8: 96 10 20 00 clr %o3 20050dc: 40 00 03 29 call 2005d80 20050e0: 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) 20050e4: 80 a2 20 00 cmp %o0, 0 20050e8: 12 80 00 70 bne 20052a8 20050ec: 03 15 14 9e sethi %hi(0x54527800), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 20050f0: d0 4d 23 2c ldsb [ %l4 + 0x32c ], %o0 20050f4: 92 10 20 00 clr %o1 20050f8: 90 12 00 01 or %o0, %g1, %o0 20050fc: 94 10 20 20 mov 0x20, %o2 2005100: 96 10 20 00 clr %o3 2005104: 40 00 03 1f call 2005d80 2005108: 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) 200510c: 80 a2 20 00 cmp %o0, 0 2005110: 12 80 00 66 bne 20052a8 2005114: 92 10 00 1b mov %i3, %o1 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 2005118: c0 24 e0 94 clr [ %l3 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 200511c: 90 04 e0 98 add %l3, 0x98, %o0 2005120: 40 00 2d 7f call 201071c 2005124: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2005128: c2 04 e0 b4 ld [ %l3 + 0xb4 ], %g1 200512c: 80 a0 60 02 cmp %g1, 2 2005130: 02 80 00 65 be 20052c4 2005134: d0 4d 23 2c ldsb [ %l4 + 0x32c ], %o0 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 2005138: c2 04 e0 a0 ld [ %l3 + 0xa0 ], %g1 200513c: 80 a0 60 00 cmp %g1, 0 2005140: 02 80 00 4f be 200527c 2005144: d0 4d 23 2c ldsb [ %l4 + 0x32c ], %o0 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 2005148: c2 04 e0 b4 ld [ %l3 + 0xb4 ], %g1 200514c: 80 a0 60 02 cmp %g1, 2 2005150: 02 80 00 4c be 2005280 2005154: 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; 2005158: c0 24 e0 b8 clr [ %l3 + 0xb8 ] /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 200515c: c6 04 e0 64 ld [ %l3 + 0x64 ], %g3 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 2005160: c2 0d 23 2c ldub [ %l4 + 0x32c ], %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; 2005164: 87 30 e0 01 srl %g3, 1, %g3 2005168: c6 24 e0 bc st %g3, [ %l3 + 0xbc ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 200516c: 07 00 00 09 sethi %hi(0x2400), %g3 2005170: 86 10 e1 02 or %g3, 0x102, %g3 ! 2502 2005174: c6 24 e0 30 st %g3, [ %l3 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2005178: 07 00 00 06 sethi %hi(0x1800), %g3 200517c: 86 10 e0 05 or %g3, 5, %g3 ! 1805 2005180: c6 24 e0 34 st %g3, [ %l3 + 0x34 ] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 2005184: 86 10 28 bd mov 0x8bd, %g3 2005188: c6 24 e0 38 st %g3, [ %l3 + 0x38 ] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 200518c: 07 00 00 20 sethi %hi(0x8000), %g3 2005190: 86 10 e2 3b or %g3, 0x23b, %g3 ! 823b 2005194: c6 24 e0 3c st %g3, [ %l3 + 0x3c ] tty->termios.c_cc[VINTR] = '\003'; 2005198: 86 10 20 03 mov 3, %g3 200519c: c6 2c e0 41 stb %g3, [ %l3 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 20051a0: 86 10 20 1c mov 0x1c, %g3 20051a4: c6 2c e0 42 stb %g3, [ %l3 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 20051a8: 86 10 20 7f mov 0x7f, %g3 20051ac: c6 2c e0 43 stb %g3, [ %l3 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 20051b0: 86 10 20 15 mov 0x15, %g3 20051b4: c6 2c e0 44 stb %g3, [ %l3 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 20051b8: 86 10 20 04 mov 4, %g3 20051bc: 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'; 20051c0: 86 10 20 11 mov 0x11, %g3 20051c4: c6 2c e0 49 stb %g3, [ %l3 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 20051c8: 86 10 20 13 mov 0x13, %g3 20051cc: c6 2c e0 4a stb %g3, [ %l3 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 20051d0: 86 10 20 1a mov 0x1a, %g3 20051d4: c6 2c e0 4b stb %g3, [ %l3 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 20051d8: 86 10 20 12 mov 0x12, %g3 20051dc: c6 2c e0 4d stb %g3, [ %l3 + 0x4d ] tty->termios.c_cc[VDISCARD] = '\017'; 20051e0: 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; 20051e4: 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'; 20051e8: c6 2c e0 4e stb %g3, [ %l3 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 20051ec: 86 10 20 17 mov 0x17, %g3 20051f0: c6 2c e0 4f stb %g3, [ %l3 + 0x4f ] tty->termios.c_cc[VLNEXT] = '\026'; 20051f4: 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'; 20051f8: 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'; 20051fc: 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'; 2005200: 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; 2005204: 87 28 a0 01 sll %g2, 1, %g3 2005208: 84 00 c0 02 add %g3, %g2, %g2 200520c: 85 30 a0 02 srl %g2, 2, %g2 2005210: c4 24 e0 c0 st %g2, [ %l3 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 2005214: 84 00 60 01 add %g1, 1, %g2 2005218: 83 28 60 18 sll %g1, 0x18, %g1 200521c: 83 38 60 18 sra %g1, 0x18, %g1 2005220: 80 a0 60 7a cmp %g1, 0x7a 2005224: 12 bf ff 46 bne 2004f3c 2005228: c4 2d 23 2c stb %g2, [ %l4 + 0x32c ] c = 'a'; 200522c: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 2005230: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 2005234: 10 bf ff 42 b 2004f3c <== NOT EXECUTED 2005238: c4 28 63 2c stb %g2, [ %g1 + 0x32c ] ! 201c32c <== 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); 200523c: 40 00 18 67 call 200b3d8 <== NOT EXECUTED 2005240: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2005244: d0 04 63 bc ld [ %l1 + 0x3bc ], %o0 <== NOT EXECUTED 2005248: 40 00 03 b6 call 2006120 <== NOT EXECUTED 200524c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED return RTEMS_NO_MEMORY; 2005250: 81 c7 e0 08 ret <== NOT EXECUTED 2005254: 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)); 2005258: d0 04 e0 58 ld [ %l3 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 200525c: 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)); 2005260: 40 00 18 5e call 200b3d8 <== NOT EXECUTED 2005264: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED free(tty); 2005268: 40 00 18 5c call 200b3d8 <== NOT EXECUTED 200526c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 2005270: 40 00 03 ac call 2006120 <== NOT EXECUTED 2005274: d0 04 63 bc ld [ %l1 + 0x3bc ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; 2005278: 30 bf ff 46 b,a 2004f90 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 200527c: 03 15 14 9c sethi %hi(0x54527000), %g1 2005280: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 2005284: 92 10 20 00 clr %o1 2005288: 90 12 00 01 or %o0, %g1, %o0 200528c: 94 10 20 24 mov 0x24, %o2 2005290: 96 10 20 00 clr %o3 2005294: 40 00 02 bb call 2005d80 2005298: 98 04 e0 68 add %l3, 0x68, %o4 rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 200529c: 80 a2 20 00 cmp %o0, 0 20052a0: 02 bf ff ae be 2005158 20052a4: 01 00 00 00 nop sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 20052a8: 40 00 05 06 call 20066c0 <== NOT EXECUTED 20052ac: 01 00 00 00 nop <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 20052b0: d0 04 e0 7c ld [ %l3 + 0x7c ], %o0 <== NOT EXECUTED 20052b4: 40 00 18 49 call 200b3d8 <== NOT EXECUTED 20052b8: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 20052bc: 10 bf ff e9 b 2005260 <== NOT EXECUTED 20052c0: 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 ( 20052c4: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED 20052c8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 20052cc: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 20052d0: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 20052d4: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 20052d8: 98 10 20 00 clr %o4 <== NOT EXECUTED 20052dc: 40 00 03 bd call 20061d0 <== NOT EXECUTED 20052e0: 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) 20052e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20052e8: 12 bf ff f0 bne 20052a8 <== NOT EXECUTED 20052ec: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 20052f0: d0 4d 23 2c ldsb [ %l4 + 0x32c ], %o0 <== NOT EXECUTED 20052f4: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 20052f8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 20052fc: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2005300: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2005304: 98 10 20 00 clr %o4 <== NOT EXECUTED 2005308: 40 00 03 b2 call 20061d0 <== NOT EXECUTED 200530c: 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) 2005310: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2005314: 22 bf ff 8a be,a 200513c <== NOT EXECUTED 2005318: c2 04 e0 a0 ld [ %l3 + 0xa0 ], %g1 <== NOT EXECUTED 200531c: 30 bf ff e3 b,a 20052a8 <== 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; 2005320: 10 bf ff 5a b 2005088 2005324: e6 20 63 c0 st %l3, [ %g1 + 0x3c0 ] 02003bb0 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 2003bb0: 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) { 2003bb4: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1 2003bb8: 80 a0 60 00 cmp %g1, 0 2003bbc: 02 80 00 42 be 2003cc4 2003bc0: a8 10 00 18 mov %i0, %l4 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 2003bc4: e6 06 a0 80 ld [ %i2 + 0x80 ], %l3 while (len) { 2003bc8: 80 a6 60 00 cmp %i1, 0 2003bcc: 02 80 00 43 be 2003cd8 2003bd0: a4 10 20 02 mov 2, %l2 } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 2003bd4: aa 10 20 01 mov 1, %l5 * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 2003bd8: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 2003bdc: 40 00 56 74 call 20195ac <.urem> 2003be0: 90 04 e0 01 add %l3, 1, %o0 rtems_interrupt_disable (level); 2003be4: 7f ff f9 b2 call 20022ac 2003be8: a6 10 00 08 mov %o0, %l3 2003bec: a0 10 00 08 mov %o0, %l0 while (newHead == tty->rawOutBuf.Tail) { 2003bf0: e2 06 a0 84 ld [ %i2 + 0x84 ], %l1 2003bf4: 80 a4 40 13 cmp %l1, %l3 2003bf8: 12 80 00 13 bne 2003c44 2003bfc: 01 00 00 00 nop tty->rawOutBufState = rob_wait; 2003c00: e4 26 a0 94 st %l2, [ %i2 + 0x94 ] rtems_interrupt_enable (level); 2003c04: 7f ff f9 ae call 20022bc 2003c08: 90 10 00 10 mov %l0, %o0 sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003c0c: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 2003c10: 92 10 20 00 clr %o1 2003c14: 40 00 08 fc call 2006004 2003c18: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003c1c: 80 a2 20 00 cmp %o0, 0 2003c20: 12 80 00 30 bne 2003ce0 2003c24: 01 00 00 00 nop rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2003c28: 7f ff f9 a1 call 20022ac 2003c2c: 01 00 00 00 nop 2003c30: a0 10 00 08 mov %o0, %l0 * 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) { 2003c34: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 2003c38: 80 a0 40 11 cmp %g1, %l1 2003c3c: 22 bf ff f2 be,a 2003c04 2003c40: 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++; 2003c44: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 2003c48: c6 0d 00 00 ldub [ %l4 ], %g3 2003c4c: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 2003c50: c6 28 80 01 stb %g3, [ %g2 + %g1 ] tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2003c54: c2 06 a0 94 ld [ %i2 + 0x94 ], %g1 if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; 2003c58: e6 26 a0 80 st %l3, [ %i2 + 0x80 ] if (tty->rawOutBufState == rob_idle) { 2003c5c: 80 a0 60 00 cmp %g1, 0 2003c60: 12 80 00 0a bne 2003c88 2003c64: 01 00 00 00 nop /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2003c68: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 2003c6c: 80 88 60 10 btst 0x10, %g1 2003c70: 02 80 00 0c be 2003ca0 2003c74: 01 00 00 00 nop (*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; 2003c78: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 2003c7c: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 2003c80: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 2003c84: ea 26 a0 94 st %l5, [ %i2 + 0x94 ] <== NOT EXECUTED } rtems_interrupt_enable (level); 2003c88: 7f ff f9 8d call 20022bc 2003c8c: 90 10 00 10 mov %l0, %o0 if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 2003c90: b2 86 7f ff addcc %i1, -1, %i1 2003c94: 02 80 00 11 be 2003cd8 2003c98: a8 05 20 01 inc %l4 2003c9c: 30 bf ff cf b,a 2003bd8 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); 2003ca0: c4 06 a0 84 ld [ %i2 + 0x84 ], %g2 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, 2003ca4: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 2003ca8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 2003cac: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 2003cb0: 92 02 40 02 add %o1, %g2, %o1 2003cb4: 9f c0 40 00 call %g1 2003cb8: 94 10 20 01 mov 1, %o2 } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 2003cbc: 10 bf ff f3 b 2003c88 2003cc0: ea 26 a0 94 st %l5, [ %i2 + 0x94 ] 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); 2003cc4: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 2003cc8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED 2003ccc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2003cd0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003cd4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED return; 2003cd8: 81 c7 e0 08 ret 2003cdc: 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); 2003ce0: 40 00 0a 78 call 20066c0 <== NOT EXECUTED 02004508 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2004508: 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; 200450c: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 2004510: 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; 2004514: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 2004518: 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); 200451c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2004520: 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); 2004524: 92 10 20 00 clr %o1 <== NOT EXECUTED 2004528: 40 00 06 b7 call 2006004 <== NOT EXECUTED 200452c: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2004530: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2004534: 12 80 00 10 bne 2004574 <== NOT EXECUTED 2004538: 05 00 80 72 sethi %hi(0x201c800), %g2 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 200453c: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 2004540: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004544: 84 10 a0 e4 or %g2, 0xe4, %g2 <== NOT EXECUTED 2004548: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED 200454c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 2004550: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004554: 02 80 00 0a be 200457c <== NOT EXECUTED 2004558: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 200455c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004560: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004564: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2004568: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 200456c: 40 00 06 ed call 2006120 <== NOT EXECUTED 2004570: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED return sc; 2004574: 81 c7 e0 08 ret <== NOT EXECUTED 2004578: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->cindex == tty->ccount) { 200457c: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2004580: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2004584: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004588: 22 80 00 20 be,a 2004608 <== NOT EXECUTED 200458c: 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)) { 2004590: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2004594: 22 80 00 16 be,a 20045ec <== NOT EXECUTED 2004598: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED 200459c: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 20045a0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 20045a4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20045a8: 26 80 00 09 bl,a 20045cc <== NOT EXECUTED 20045ac: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 20045b0: 10 80 00 0f b 20045ec <== NOT EXECUTED 20045b4: 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)) { 20045b8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 20045bc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20045c0: 24 80 00 0b ble,a 20045ec <== NOT EXECUTED 20045c4: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 20045c8: 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)) { 20045cc: a6 84 ff ff addcc %l3, -1, %l3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 20045d0: c4 08 80 01 ldub [ %g2 + %g1 ], %g2 <== NOT EXECUTED 20045d4: 82 00 60 01 inc %g1 <== NOT EXECUTED 20045d8: c4 2d 00 00 stb %g2, [ %l4 ] <== NOT EXECUTED 20045dc: 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)) { 20045e0: 12 bf ff f6 bne 20045b8 <== NOT EXECUTED 20045e4: a8 05 20 01 inc %l4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 20045e8: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 20045ec: 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; 20045f0: a6 20 40 13 sub %g1, %l3, %l3 <== NOT EXECUTED 20045f4: e6 25 a0 1c st %l3, [ %l6 + 0x1c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 20045f8: 40 00 06 ca call 2006120 <== NOT EXECUTED 20045fc: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 2004600: 81 c7 e0 08 ret <== NOT EXECUTED 2004604: 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) 2004608: 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; 200460c: 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; 2004610: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2004614: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004618: 02 80 00 06 be 2004630 <== NOT EXECUTED 200461c: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2004620: c4 04 20 b4 ld [ %l0 + 0xb4 ], %g2 <== NOT EXECUTED 2004624: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2004628: 22 80 00 67 be,a 20047c4 <== NOT EXECUTED 200462c: 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; 2004630: 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) && 2004634: 25 00 80 70 sethi %hi(0x201c000), %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, 2004638: 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) && 200463c: a4 14 a3 20 or %l2, 0x320, %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, 2004640: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2004644: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2004648: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 200464c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004650: 02 80 00 3d be 2004744 <== NOT EXECUTED 2004654: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED 2004658: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 200465c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004660: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2004664: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004668: 16 80 00 37 bge 2004744 <== NOT EXECUTED 200466c: 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; 2004670: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 2004674: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2004678: 40 00 53 cd call 20195ac <.urem> <== NOT EXECUTED 200467c: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2004680: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 2004684: e2 08 40 08 ldub [ %g1 + %o0 ], %l1 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2004688: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 200468c: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2004690: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 2004694: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2004698: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 200469c: 40 00 53 c4 call 20195ac <.urem> <== NOT EXECUTED 20046a0: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED 20046a4: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 20046a8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 20046ac: 3a 80 00 18 bcc,a 200470c <== NOT EXECUTED 20046b0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 20046b4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20046b8: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 20046bc: 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)) 20046c0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20046c4: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED 20046c8: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED 20046cc: 22 80 00 30 be,a 200478c <== NOT EXECUTED 20046d0: 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) { 20046d4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20046d8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20046dc: 22 80 00 0c be,a 200470c <== NOT EXECUTED 20046e0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 20046e4: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 20046e8: 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; 20046ec: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED 20046f0: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 20046f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20046f8: 22 80 00 05 be,a 200470c <== NOT EXECUTED 20046fc: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 2004700: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004704: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2004708: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 200470c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2004710: 02 80 00 17 be 200476c <== NOT EXECUTED 2004714: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 2004718: 7f ff ff 0f call 2004354 <== NOT EXECUTED 200471c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2004720: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004724: 32 80 00 02 bne,a 200472c <== NOT EXECUTED 2004728: aa 10 20 00 clr %l5 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 200472c: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2004730: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2004734: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004738: 12 bf ff c8 bne 2004658 <== NOT EXECUTED 200473c: e2 04 20 70 ld [ %l0 + 0x70 ], %l1 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2004740: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED 2004744: 02 bf ff 94 be 2004594 <== NOT EXECUTED 2004748: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 200474c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2004750: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED 2004754: 40 00 06 2c call 2006004 <== NOT EXECUTED 2004758: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 200475c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004760: 02 bf ff b9 be 2004644 <== NOT EXECUTED 2004764: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2004768: 30 bf ff 8b b,a 2004594 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 200476c: 7f ff fe fa call 2004354 <== NOT EXECUTED 2004770: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2004774: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004778: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 200477c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004780: 36 bf ff eb bge,a 200472c <== NOT EXECUTED 2004784: aa 10 20 00 clr %l5 <== NOT EXECUTED 2004788: 30 bf ff e9 b,a 200472c <== 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)) 200478c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004790: 22 80 00 07 be,a 20047ac <== NOT EXECUTED 2004794: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 2004798: 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)) 200479c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20047a0: 02 bf ff cd be 20046d4 <== NOT EXECUTED 20047a4: 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, 20047a8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20047ac: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 20047b0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED 20047b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20047b8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 20047bc: 10 bf ff d4 b 200470c <== NOT EXECUTED 20047c0: 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) { 20047c4: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 20047c8: 02 80 00 0e be 2004800 <== NOT EXECUTED 20047cc: 01 00 00 00 nop <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 20047d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20047d4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 20047d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20047dc: 06 80 00 3a bl 20048c4 <== NOT EXECUTED 20047e0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 20047e4: 7f ff fe dc call 2004354 <== NOT EXECUTED 20047e8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20047ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20047f0: 12 bf ff 69 bne 2004594 <== NOT EXECUTED 20047f4: 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) { 20047f8: 10 bf ff f6 b 20047d0 <== NOT EXECUTED 20047fc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 2004800: 40 00 04 3c call 20058f0 <== NOT EXECUTED 2004804: 01 00 00 00 nop <== NOT EXECUTED 2004808: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 200480c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004810: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004814: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2004818: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200481c: 06 80 00 10 bl 200485c <== NOT EXECUTED 2004820: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 2004824: 7f ff fe cc call 2004354 <== NOT EXECUTED 2004828: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 200482c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004830: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004834: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2004838: 16 bf ff 56 bge 2004590 <== NOT EXECUTED 200483c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2004840: 22 bf ff f4 be,a 2004810 <== NOT EXECUTED 2004844: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004848: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 200484c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004850: 22 bf ff f0 be,a 2004810 <== NOT EXECUTED 2004854: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2004858: 30 bf ff ea b,a 2004800 <== 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]) { 200485c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2004860: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004864: 02 80 00 0d be 2004898 <== NOT EXECUTED 2004868: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 200486c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004870: 02 80 00 06 be 2004888 <== NOT EXECUTED 2004874: 01 00 00 00 nop <== NOT EXECUTED 2004878: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 200487c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004880: 12 80 00 09 bne 20048a4 <== NOT EXECUTED 2004884: 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); 2004888: 40 00 07 17 call 20064e4 <== NOT EXECUTED 200488c: 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); 2004890: 10 bf ff e0 b 2004810 <== NOT EXECUTED 2004894: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 2004898: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200489c: 02 bf ff 3e be 2004594 <== NOT EXECUTED 20048a0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 20048a4: 40 00 04 13 call 20058f0 <== NOT EXECUTED 20048a8: 01 00 00 00 nop <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 20048ac: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED 20048b0: 90 22 00 11 sub %o0, %l1, %o0 <== NOT EXECUTED 20048b4: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 20048b8: 08 bf ff f4 bleu 2004888 <== NOT EXECUTED 20048bc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 20048c0: 30 bf ff 35 b,a 2004594 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 20048c4: 40 00 07 08 call 20064e4 <== NOT EXECUTED 20048c8: 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) { 20048cc: 10 bf ff c1 b 20047d0 <== NOT EXECUTED 20048d0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 020035e4 : * 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) { 20035e4: 9d e3 bf a0 save %sp, -96, %sp int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 20035e8: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 20035ec: 82 08 64 03 and %g1, 0x403, %g1 20035f0: 80 a0 64 01 cmp %g1, 0x401 20035f4: 02 80 00 44 be 2003704 20035f8: a0 10 00 18 mov %i0, %l0 tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 20035fc: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 2003600: 82 08 60 03 and %g1, 3, %g1 2003604: 80 a0 60 02 cmp %g1, 2 2003608: 22 80 00 50 be,a 2003748 200360c: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2003610: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 2003614: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 2003618: 80 a0 80 01 cmp %g2, %g1 200361c: 22 80 00 30 be,a 20036dc 2003620: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 2003624: 7f ff fb 22 call 20022ac 2003628: 01 00 00 00 nop len = tty->t_dqlen; 200362c: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 tty->t_dqlen = 0; 2003630: c0 26 20 90 clr [ %i0 + 0x90 ] rtems_interrupt_enable(level); 2003634: 7f ff fb 22 call 20022bc 2003638: 01 00 00 00 nop newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 200363c: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 2003640: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 2003644: 40 00 57 da call 20195ac <.urem> 2003648: 90 04 40 08 add %l1, %o0, %o0 tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 200364c: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 2003650: d0 24 20 84 st %o0, [ %l0 + 0x84 ] if (tty->rawOutBufState == rob_wait) { 2003654: 80 a0 60 02 cmp %g1, 2 2003658: 02 80 00 55 be 20037ac 200365c: a2 10 00 08 mov %o0, %l1 /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 2003660: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 2003664: 80 a0 40 11 cmp %g1, %l1 2003668: 22 80 00 48 be,a 2003788 200366c: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 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)) 2003670: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2003674: 82 08 62 10 and %g1, 0x210, %g1 2003678: 80 a0 62 10 cmp %g1, 0x210 200367c: 02 80 00 4f be 20037b8 2003680: 01 00 00 00 nop } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 2003684: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 2003688: 80 a4 40 01 cmp %l1, %g1 200368c: 18 80 00 1b bgu 20036f8 2003690: 01 00 00 00 nop nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 2003694: f0 04 20 80 ld [ %l0 + 0x80 ], %i0 2003698: b0 26 00 11 sub %i0, %l1, %i0 /* 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)) { 200369c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 20036a0: 80 88 66 00 btst 0x600, %g1 20036a4: 02 80 00 04 be 20036b4 20036a8: 94 10 00 18 mov %i0, %o2 20036ac: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20036b0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 20036b4: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 20036b8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 20036bc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 /* 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*/ 20036c0: 84 10 20 01 mov 1, %g2 (*tty->device.write)(tty->minor, 20036c4: 92 02 40 11 add %o1, %l1, %o1 20036c8: 9f c0 40 00 call %g1 20036cc: c4 24 20 94 st %g2, [ %l0 + 0x94 ] &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 20036d0: e2 24 20 84 st %l1, [ %l0 + 0x84 ] } return nToSend; } 20036d4: 81 c7 e0 08 ret 20036d8: 81 e8 00 00 restore else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 20036dc: 80 a0 60 02 cmp %g1, 2 20036e0: 12 bf ff fd bne 20036d4 20036e4: b0 10 20 00 clr %i0 /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 20036e8: 40 00 0a 8e call 2006120 <== NOT EXECUTED 20036ec: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 20036f0: 81 c7 e0 08 ret <== NOT EXECUTED 20036f4: 81 e8 00 00 restore <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 20036f8: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 20036fc: 10 bf ff e8 b 200369c 2003700: b0 26 00 11 sub %i0, %l1, %i0 /* 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, 2003704: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2003708: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 200370c: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 2003710: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003714: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2003718: 7f ff fa e5 call 20022ac <== NOT EXECUTED 200371c: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2003720: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2003724: 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--; 2003728: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 200372c: 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--; 2003730: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2003734: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003738: 7f ff fa e1 call 20022bc <== NOT EXECUTED 200373c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2003740: 81 c7 e0 08 ret <== NOT EXECUTED 2003744: 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, 2003748: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 200374c: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED 2003750: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003754: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2003758: 7f ff fa d5 call 20022ac <== NOT EXECUTED 200375c: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2003760: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2003764: 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--; 2003768: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 200376c: 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--; 2003770: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2003774: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2003778: 7f ff fa d1 call 20022bc <== NOT EXECUTED 200377c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2003780: 81 c7 e0 08 ret <== NOT EXECUTED 2003784: 81 e8 00 00 restore <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2003788: c0 24 20 94 clr [ %l0 + 0x94 ] nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 200378c: 80 a0 60 00 cmp %g1, 0 2003790: 02 bf ff d0 be 20036d0 2003794: b0 10 20 00 clr %i0 (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 2003798: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED 200379c: 9f c0 40 00 call %g1 <== NOT EXECUTED 20037a0: 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*/ 20037a4: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED 20037a8: 30 bf ff f6 b,a 2003780 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 20037ac: 40 00 0a 5d call 2006120 20037b0: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 20037b4: 30 bf ff ab b,a 2003660 /* 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); 20037b8: 7f ff fa bd call 20022ac <== NOT EXECUTED 20037bc: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 20037c0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 20037c4: 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; 20037c8: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 20037cc: 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; 20037d0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 20037d4: 7f ff fa ba call 20022bc <== NOT EXECUTED 20037d8: 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*/ 20037dc: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED 20037e0: 30 bf ff e8 b,a 2003780 <== NOT EXECUTED 020053c0 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 20053c0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 20053c4: a0 07 bf f8 add %fp, -8, %l0 <== NOT EXECUTED 20053c8: 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 | 20053cc: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 20053d0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20053d4: 94 10 20 00 clr %o2 <== NOT EXECUTED 20053d8: 40 00 01 69 call 200597c <== NOT EXECUTED 20053dc: 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) { 20053e0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20053e4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20053e8: 32 80 00 16 bne,a 2005440 <== NOT EXECUTED 20053ec: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 20053f0: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED 20053f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20053f8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 20053fc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2005400: 02 bf ff f3 be 20053cc <== NOT EXECUTED 2005404: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 2005408: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 200540c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 2005410: 7f ff f9 14 call 2003860 <== NOT EXECUTED 2005414: 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 | 2005418: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 200541c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2005420: 94 10 20 00 clr %o2 <== NOT EXECUTED 2005424: 40 00 01 56 call 200597c <== NOT EXECUTED 2005428: 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) { 200542c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2005430: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2005434: 22 bf ff f0 be,a 20053f4 <== NOT EXECUTED 2005438: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 200543c: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2005440: 40 00 03 af call 20062fc <== NOT EXECUTED 2005444: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2005448: 10 bf ff e2 b 20053d0 <== NOT EXECUTED 200544c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 020035cc : 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); 20035cc: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 20035d0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20035d4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20035d8: 40 00 09 4a call 2005b00 <== NOT EXECUTED 20035dc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 02005328 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 2005328: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 200532c: 23 00 80 72 sethi %hi(0x201c800), %l1 <== NOT EXECUTED 2005330: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED 2005334: a2 14 60 e4 or %l1, 0xe4, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2005338: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 200533c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2005340: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2005344: 40 00 01 8e call 200597c <== NOT EXECUTED 2005348: 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) { 200534c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2005350: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2005354: 12 80 00 16 bne 20053ac <== NOT EXECUTED 2005358: 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) { 200535c: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2005360: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2005364: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 2005368: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 200536c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005370: 02 80 00 04 be 2005380 <== NOT EXECUTED 2005374: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2005378: 9f c0 40 00 call %g1 <== NOT EXECUTED 200537c: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 2005380: 7f ff f8 99 call 20035e4 <== NOT EXECUTED 2005384: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2005388: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 200538c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2005390: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2005394: 40 00 01 7a call 200597c <== NOT EXECUTED 2005398: 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) { 200539c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 20053a0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 20053a4: 02 bf ff ee be 200535c <== NOT EXECUTED 20053a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 20053ac: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 20053b0: 40 00 03 d3 call 20062fc <== NOT EXECUTED 20053b4: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 20053b8: 10 bf ff e1 b 200533c <== NOT EXECUTED 20053bc: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 020043a0 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 20043a0: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 20043a4: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 20043a8: 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; 20043ac: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 20043b0: 94 10 20 00 clr %o2 20043b4: 40 00 07 14 call 2006004 20043b8: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 if (sc != RTEMS_SUCCESSFUL) 20043bc: a2 92 20 00 orcc %o0, 0, %l1 20043c0: 12 80 00 0f bne 20043fc 20043c4: 03 00 80 72 sethi %hi(0x201c800), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 20043c8: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 20043cc: 85 28 a0 05 sll %g2, 5, %g2 20043d0: 82 10 60 e4 or %g1, 0xe4, %g1 20043d4: 82 00 40 02 add %g1, %g2, %g1 20043d8: c2 00 60 0c ld [ %g1 + 0xc ], %g1 20043dc: 80 a0 60 00 cmp %g1, 0 20043e0: 02 80 00 09 be 2004404 20043e4: 92 10 00 18 mov %i0, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 20043e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20043ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20043f0: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 20043f4: 40 00 07 4b call 2006120 <== NOT EXECUTED 20043f8: 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; } 20043fc: 81 c7 e0 08 ret <== NOT EXECUTED 2004400: 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) { 2004404: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 2004408: 80 88 60 01 btst 1, %g1 200440c: 22 80 00 16 be,a 2004464 2004410: d0 1e 20 10 ldd [ %i0 + 0x10 ], %o0 <== NOT EXECUTED uint32_t count = args->count; 2004414: e6 06 20 14 ld [ %i0 + 0x14 ], %l3 char *buffer = args->buffer; 2004418: e8 06 20 10 ld [ %i0 + 0x10 ], %l4 while (count--) 200441c: 80 a4 e0 00 cmp %l3, 0 2004420: a4 10 20 00 clr %l2 2004424: 02 80 00 0a be 200444c 2004428: 82 10 20 00 clr %g1 oproc (*buffer++, tty); 200442c: d0 0d 00 12 ldub [ %l4 + %l2 ], %o0 2004430: 7f ff fe 2f call 2003cec 2004434: 92 10 00 10 mov %l0, %o1 2004438: 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--) 200443c: 80 a4 80 13 cmp %l2, %l3 2004440: 32 bf ff fc bne,a 2004430 2004444: 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; 2004448: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 200444c: c2 26 20 1c st %g1, [ %i0 + 0x1c ] } rtems_semaphore_release (tty->osem); 2004450: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2004454: 40 00 07 33 call 2006120 2004458: b0 10 00 11 mov %l1, %i0 return sc; } 200445c: 81 c7 e0 08 ret 2004460: 81 e8 00 00 restore while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2004464: 7f ff fd d3 call 2003bb0 <== NOT EXECUTED 2004468: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 200446c: 10 bf ff f8 b 200444c <== NOT EXECUTED 2004470: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== NOT EXECUTED 02007cec : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 2007cec: 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) 2007cf0: 29 08 00 00 sethi %hi(0x20000000), %l4 <== NOT EXECUTED 2007cf4: a8 8e 00 14 andcc %i0, %l4, %l4 <== NOT EXECUTED 2007cf8: 02 80 00 0f be 2007d34 <== NOT EXECUTED 2007cfc: 05 00 80 a2 sethi %hi(0x2028800), %g2 <== NOT EXECUTED { if (rtems_panic_in_progress++) 2007d00: c6 00 a0 e0 ld [ %g2 + 0xe0 ], %g3 ! 20288e0 <== NOT EXECUTED 2007d04: 82 00 e0 01 add %g3, 1, %g1 <== NOT EXECUTED 2007d08: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2007d0c: 02 80 00 07 be 2007d28 <== NOT EXECUTED 2007d10: c2 20 a0 e0 st %g1, [ %g2 + 0xe0 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 2007d14: 03 00 80 a2 sethi %hi(0x2028800), %g1 <== NOT EXECUTED 2007d18: c6 00 62 c0 ld [ %g1 + 0x2c0 ], %g3 ! 2028ac0 <_Thread_Dispatch_disable_level><== NOT EXECUTED 2007d1c: 86 00 e0 01 inc %g3 <== NOT EXECUTED 2007d20: c6 20 62 c0 st %g3, [ %g1 + 0x2c0 ] <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 2007d24: c2 00 a0 e0 ld [ %g2 + 0xe0 ], %g1 <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 2007d28: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2007d2c: 14 80 00 3c bg 2007e1c <== NOT EXECUTED 2007d30: a4 10 20 00 clr %l2 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 2007d34: 21 00 80 a0 sethi %hi(0x2028000), %l0 <== NOT EXECUTED 2007d38: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 ! 2028048 <_impure_ptr><== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 2007d3c: 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 */ 2007d40: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2007d44: 40 00 3e 31 call 2017608 <== NOT EXECUTED 2007d48: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007d4c: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 2007d50: 80 8e 00 01 btst %i0, %g1 <== NOT EXECUTED 2007d54: 12 80 00 45 bne 2007e68 <== NOT EXECUTED 2007d58: 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); 2007d5c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2007d60: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007d64: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007d68: 40 00 55 ab call 201d414 <== NOT EXECUTED 2007d6c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 2007d70: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2007d74: 12 80 00 31 bne 2007e38 <== NOT EXECUTED 2007d78: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 2007d7c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007d80: 02 80 00 12 be 2007dc8 <== NOT EXECUTED 2007d84: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 2007d88: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007d8c: 04 80 00 09 ble 2007db0 <== NOT EXECUTED 2007d90: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED 2007d94: 40 00 42 44 call 20186a4 <== NOT EXECUTED 2007d98: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007d9c: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 2007da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007da4: 12 80 00 35 bne 2007e78 <== NOT EXECUTED 2007da8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 2007dac: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED 2007db0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007db4: 92 12 63 48 or %o1, 0x348, %o1 <== NOT EXECUTED 2007db8: 40 00 3e e8 call 2017958 <== NOT EXECUTED 2007dbc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2007dc0: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 2007dc4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2007dc8: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED 2007dcc: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007dd0: 40 00 3e e2 call 2017958 <== NOT EXECUTED 2007dd4: 92 12 63 60 or %o1, 0x360, %o1 <== NOT EXECUTED (void) fflush(stderr); 2007dd8: c2 04 20 48 ld [ %l0 + 0x48 ], %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"); 2007ddc: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED (void) fflush(stderr); 2007de0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007de4: 40 00 3e 09 call 2017608 <== NOT EXECUTED 2007de8: a4 04 c0 12 add %l3, %l2, %l2 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 2007dec: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 2007df0: 80 8e 00 01 btst %i0, %g1 <== NOT EXECUTED 2007df4: 02 80 00 0a be 2007e1c <== NOT EXECUTED 2007df8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 2007dfc: 22 80 00 0a be,a 2007e24 <== NOT EXECUTED 2007e00: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 2007e04: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED 2007e08: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007e0c: 40 00 00 32 call 2007ed4 <== NOT EXECUTED 2007e10: 92 12 63 68 or %o1, 0x368, %o1 <== NOT EXECUTED _exit(local_errno); 2007e14: 40 00 03 5b call 2008b80 <_exit> <== NOT EXECUTED 2007e18: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 2007e1c: 81 c7 e0 08 ret <== NOT EXECUTED 2007e20: 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"); 2007e24: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007e28: 40 00 00 2b call 2007ed4 <== NOT EXECUTED 2007e2c: 92 12 63 80 or %o1, 0x380, %o1 <== NOT EXECUTED abort(); 2007e30: 40 00 3c de call 20171a8 <== NOT EXECUTED 2007e34: 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)); 2007e38: 03 00 80 a0 sethi %hi(0x2028000), %g1 <== NOT EXECUTED 2007e3c: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 ! 2028048 <_impure_ptr><== NOT EXECUTED 2007e40: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007e44: 7f ff ff a3 call 2007cd0 <== NOT EXECUTED 2007e48: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007e4c: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED 2007e50: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007e54: 92 12 63 28 or %o1, 0x328, %o1 <== NOT EXECUTED 2007e58: 40 00 3e c0 call 2017958 <== NOT EXECUTED 2007e5c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007e60: 10 bf ff c7 b 2007d7c <== NOT EXECUTED 2007e64: 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; 2007e68: 40 00 3c de call 20171e0 <__errno> <== NOT EXECUTED 2007e6c: 01 00 00 00 nop <== NOT EXECUTED 2007e70: 10 bf ff bb b 2007d5c <== NOT EXECUTED 2007e74: 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)); 2007e78: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007e7c: 40 00 42 0a call 20186a4 <== NOT EXECUTED 2007e80: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007e84: 13 00 80 97 sethi %hi(0x2025c00), %o1 <== NOT EXECUTED 2007e88: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007e8c: 92 12 63 38 or %o1, 0x338, %o1 <== NOT EXECUTED 2007e90: 40 00 3e b2 call 2017958 <== NOT EXECUTED 2007e94: 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)) 2007e98: 10 bf ff cb b 2007dc4 <== NOT EXECUTED 2007e9c: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED 02028fe0 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2028fe0: 9d e3 bf a0 save %sp, -96, %sp 2028fe4: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2028fe8: 2b 00 81 ac sethi %hi(0x206b000), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2028fec: 29 00 81 ac sethi %hi(0x206b000), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2028ff0: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2028ff4: aa 15 61 f0 or %l5, 0x1f0, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2028ff8: a8 15 21 e0 or %l4, 0x1e0, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2028ffc: a4 10 20 00 clr %l2 2029000: a2 10 20 00 clr %l1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2029004: c2 06 20 04 ld [ %i0 + 4 ], %g1 2029008: 82 00 7f ff add %g1, -1, %g1 202900c: 80 a0 60 00 cmp %g1, 0 2029010: 06 80 00 24 bl 20290a0 2029014: c2 26 20 04 st %g1, [ %i0 + 4 ] 2029018: c2 06 00 00 ld [ %i0 ], %g1 202901c: e0 08 40 00 ldub [ %g1 ], %l0 2029020: 84 00 60 01 add %g1, 1, %g2 if (c == ':') 2029024: 80 a4 20 3a cmp %l0, 0x3a 2029028: 02 80 00 25 be 20290bc 202902c: c4 26 00 00 st %g2, [ %i0 ] break; if (sign == 0) { 2029030: 80 a4 a0 00 cmp %l2, 0 2029034: 32 80 00 06 bne,a 202904c 2029038: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 202903c: 80 a4 20 2d cmp %l0, 0x2d 2029040: 02 80 00 30 be 2029100 2029044: a4 10 20 01 mov 1, %l2 limit++; continue; } sign = 1; } if (!isdigit(c)) 2029048: c2 05 00 00 ld [ %l4 ], %g1 202904c: 82 00 40 10 add %g1, %l0, %g1 2029050: c2 08 60 01 ldub [ %g1 + 1 ], %g1 2029054: 80 88 60 04 btst 4, %g1 2029058: 02 80 00 28 be 20290f8 202905c: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 2029060: 40 00 cf 60 call 205cde0 <.udiv> 2029064: 92 10 20 0a mov 0xa, %o1 2029068: 80 a4 40 08 cmp %l1, %o0 202906c: 18 80 00 23 bgu 20290f8 2029070: 01 00 00 00 nop 2029074: 02 80 00 1b be 20290e0 2029078: a0 04 3f d0 add %l0, -48, %l0 || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 202907c: 83 2c 60 03 sll %l1, 3, %g1 2029080: a3 2c 60 01 sll %l1, 1, %l1 2029084: a2 04 40 01 add %l1, %g1, %l1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2029088: 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; 202908c: a2 04 00 11 add %l0, %l1, %l1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2029090: 82 00 7f ff add %g1, -1, %g1 2029094: 80 a0 60 00 cmp %g1, 0 2029098: 16 bf ff e0 bge 2029018 202909c: c2 26 20 04 st %g1, [ %i0 + 4 ] 20290a0: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 20290a4: 40 00 83 dc call 204a014 <__srget_r> <== NOT EXECUTED 20290a8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20290ac: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED if (c == ':') 20290b0: 80 a4 20 3a cmp %l0, 0x3a <== NOT EXECUTED 20290b4: 12 bf ff e0 bne 2029034 <== NOT EXECUTED 20290b8: 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) 20290bc: 80 a4 a0 00 cmp %l2, 0 20290c0: 02 80 00 0e be 20290f8 20290c4: 90 10 00 12 mov %l2, %o0 return 0; *val = i * sign; 20290c8: 92 10 00 11 mov %l1, %o1 20290cc: 40 00 cf 0b call 205ccf8 <.umul> 20290d0: b0 10 20 01 mov 1, %i0 20290d4: d0 26 40 00 st %o0, [ %i1 ] return 1; 20290d8: 81 c7 e0 08 ret 20290dc: 81 e8 00 00 restore sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 20290e0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20290e4: 40 00 cf eb call 205d090 <.urem> <== NOT EXECUTED 20290e8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 20290ec: 80 a4 00 08 cmp %l0, %o0 <== NOT EXECUTED 20290f0: 08 bf ff e4 bleu 2029080 <== NOT EXECUTED 20290f4: 83 2c 60 03 sll %l1, 3, %g1 <== NOT EXECUTED } if (sign == 0) return 0; *val = i * sign; return 1; } 20290f8: 81 c7 e0 08 ret <== NOT EXECUTED 20290fc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 2029100: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 2029104: 10 bf ff c0 b 2029004 <== NOT EXECUTED 2029108: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED 0202910c : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 202910c: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 2029110: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 2029114: 21 00 81 ac sethi %hi(0x206b000), %l0 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 2029118: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 202911c: 10 80 00 19 b 2029180 2029120: a0 14 21 f0 or %l0, 0x1f0, %l0 2029124: c2 06 00 00 ld [ %i0 ], %g1 2029128: d0 08 40 00 ldub [ %g1 ], %o0 202912c: 84 00 60 01 add %g1, 1, %g2 if (c == ':') { 2029130: 80 a2 20 3a cmp %o0, 0x3a 2029134: 02 80 00 1e be 20291ac 2029138: c4 26 00 00 st %g2, [ %i0 ] if (nlFlag) return 0; break; } if (c == '\n') { 202913c: 80 a2 20 0a cmp %o0, 0xa 2029140: 02 80 00 28 be 20291e0 2029144: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) return 0; break; } if (c == EOF) 2029148: 02 80 00 29 be 20291ec 202914c: 01 00 00 00 nop return 0; if (*nleft < 2) 2029150: c2 06 c0 00 ld [ %i3 ], %g1 2029154: 80 a0 60 01 cmp %g1, 1 2029158: 08 80 00 25 bleu 20291ec 202915c: 01 00 00 00 nop return 0; **bufp = c; 2029160: c2 06 80 00 ld [ %i2 ], %g1 2029164: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 2029168: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 202916c: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2029170: 84 00 a0 01 inc %g2 --(*nleft); 2029174: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2029178: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 202917c: c2 26 c0 00 st %g1, [ %i3 ] { int c; *name = *bufp; for (;;) { c = getc(fp); 2029180: c2 06 20 04 ld [ %i0 + 4 ], %g1 2029184: 82 00 7f ff add %g1, -1, %g1 2029188: 80 a0 60 00 cmp %g1, 0 202918c: 16 bf ff e6 bge 2029124 2029190: c2 26 20 04 st %g1, [ %i0 + 4 ] 2029194: d0 04 00 00 ld [ %l0 ], %o0 2029198: 40 00 83 9f call 204a014 <__srget_r> 202919c: 92 10 00 18 mov %i0, %o1 if (c == ':') { 20291a0: 80 a2 20 3a cmp %o0, 0x3a 20291a4: 12 bf ff e7 bne 2029140 20291a8: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 20291ac: 80 a7 20 00 cmp %i4, 0 20291b0: 12 80 00 0f bne 20291ec 20291b4: 01 00 00 00 nop return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 20291b8: c2 06 80 00 ld [ %i2 ], %g1 20291bc: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 20291c0: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 20291c4: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 20291c8: 84 00 a0 01 inc %g2 --(*nleft); 20291cc: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 20291d0: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 20291d4: c2 26 c0 00 st %g1, [ %i3 ] return 1; 20291d8: 81 c7 e0 08 ret 20291dc: 91 e8 20 01 restore %g0, 1, %o0 if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 20291e0: 80 a7 20 00 cmp %i4, 0 20291e4: 32 bf ff f6 bne,a 20291bc 20291e8: c2 06 80 00 ld [ %i2 ], %g1 } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; } 20291ec: 81 c7 e0 08 ret <== NOT EXECUTED 20291f0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020291f4 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 20291f4: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 20291f8: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 20291fc: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2029200: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2029204: a2 07 a0 4c add %fp, 0x4c, %l1 2029208: a0 07 a0 50 add %fp, 0x50, %l0 202920c: 90 10 00 18 mov %i0, %o0 2029210: 92 10 00 19 mov %i1, %o1 2029214: 94 10 00 11 mov %l1, %o2 2029218: 7f ff ff bd call 202910c 202921c: 96 10 00 10 mov %l0, %o3 2029220: 80 a2 20 00 cmp %o0, 0 2029224: 12 80 00 04 bne 2029234 2029228: 90 10 00 18 mov %i0, %o0 grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; } 202922c: 81 c7 e0 08 ret <== NOT EXECUTED 2029230: 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) 2029234: 92 06 60 04 add %i1, 4, %o1 2029238: 94 10 00 11 mov %l1, %o2 202923c: 96 10 00 10 mov %l0, %o3 2029240: 7f ff ff b3 call 202910c 2029244: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2029248: 80 a2 20 00 cmp %o0, 0 202924c: 02 bf ff f8 be 202922c 2029250: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 2029254: 7f ff ff 63 call 2028fe0 2029258: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 202925c: 80 a2 20 00 cmp %o0, 0 2029260: 02 bf ff f3 be 202922c 2029264: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 2029268: 94 10 00 11 mov %l1, %o2 202926c: 96 10 00 10 mov %l0, %o3 2029270: 92 07 bf f8 add %fp, -8, %o1 2029274: 7f ff ff a6 call 202910c 2029278: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 202927c: 80 a2 20 00 cmp %o0, 0 2029280: 02 bf ff eb be 202922c 2029284: 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; 2029288: c2 07 bf fc ld [ %fp + -4 ], %g1 /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 202928c: 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; 2029290: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2029294: c6 0b 40 00 ldub [ %o5 ], %g3 2029298: 88 10 20 01 mov 1, %g4 202929c: 83 28 e0 18 sll %g3, 0x18, %g1 20292a0: 80 a0 60 00 cmp %g1, 0 20292a4: 02 80 00 0e be 20292dc 20292a8: 86 10 20 17 mov 0x17, %g3 20292ac: 84 00 a0 01 inc %g2 20292b0: c6 08 80 00 ldub [ %g2 ], %g3 if(*cp == ',') 20292b4: 83 38 60 18 sra %g1, 0x18, %g1 memcount++; 20292b8: 82 18 60 2c xor %g1, 0x2c, %g1 20292bc: 80 a0 00 01 cmp %g0, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20292c0: 83 28 e0 18 sll %g3, 0x18, %g1 if(*cp == ',') memcount++; 20292c4: 88 61 3f ff subx %g4, -1, %g4 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20292c8: 80 a0 60 00 cmp %g1, 0 20292cc: 32 bf ff f9 bne,a 20292b0 20292d0: 84 00 a0 01 inc %g2 20292d4: 87 29 20 02 sll %g4, 2, %g3 20292d8: 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)) 20292dc: c2 07 a0 50 ld [ %fp + 0x50 ], %g1 20292e0: 80 a0 40 03 cmp %g1, %g3 20292e4: 0a bf ff d2 bcs 202922c 20292e8: 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++) { 20292ec: 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); 20292f0: 84 00 a0 0f add %g2, 0xf, %g2 20292f4: 84 08 bf f0 and %g2, -16, %g2 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 20292f8: da 20 80 00 st %o5, [ %g2 ] for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20292fc: 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); 2029300: 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++) { 2029304: c4 08 40 00 ldub [ %g1 ], %g2 2029308: 88 10 20 04 mov 4, %g4 202930c: 85 28 a0 18 sll %g2, 0x18, %g2 2029310: 80 a0 a0 00 cmp %g2, 0 2029314: 12 80 00 09 bne 2029338 2029318: 82 00 60 01 inc %g1 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 202931c: 10 80 00 13 b 2029368 <== NOT EXECUTED 2029320: 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++) { 2029324: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED 2029328: 85 28 a0 18 sll %g2, 0x18, %g2 202932c: 80 a0 a0 00 cmp %g2, 0 2029330: 02 80 00 0c be 2029360 2029334: 82 00 60 01 inc %g1 if(*cp == ',') { 2029338: 85 38 a0 18 sra %g2, 0x18, %g2 202933c: 80 a0 a0 2c cmp %g2, 0x2c 2029340: 32 bf ff fa bne,a 2029328 2029344: c4 08 40 00 ldub [ %g1 ], %g2 *cp = '\0'; 2029348: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 202934c: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 2029350: 85 28 e0 02 sll %g3, 2, %g2 <== NOT EXECUTED 2029354: 86 00 e0 01 inc %g3 <== NOT EXECUTED 2029358: 10 bf ff f3 b 2029324 <== NOT EXECUTED 202935c: 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++) { 2029360: 89 28 e0 02 sll %g3, 2, %g4 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 2029364: c2 06 60 0c ld [ %i1 + 0xc ], %g1 2029368: c0 20 40 04 clr [ %g1 + %g4 ] return 1; 202936c: 81 c7 e0 08 ret 2029370: 91 e8 20 01 restore %g0, 1, %o0 020293c0 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 20293c0: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20293c4: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 20293c8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20293cc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20293d0: a2 07 a0 4c add %fp, 0x4c, %l1 20293d4: a0 07 a0 50 add %fp, 0x50, %l0 20293d8: 90 10 00 18 mov %i0, %o0 20293dc: 92 10 00 19 mov %i1, %o1 20293e0: 94 10 00 11 mov %l1, %o2 20293e4: 7f ff ff 4a call 202910c 20293e8: 96 10 00 10 mov %l0, %o3 20293ec: 80 a2 20 00 cmp %o0, 0 20293f0: 12 80 00 04 bne 2029400 20293f4: 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; } 20293f8: 81 c7 e0 08 ret <== NOT EXECUTED 20293fc: 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) 2029400: 92 06 60 04 add %i1, 4, %o1 2029404: 94 10 00 11 mov %l1, %o2 2029408: 96 10 00 10 mov %l0, %o3 202940c: 7f ff ff 40 call 202910c 2029410: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029414: 80 a2 20 00 cmp %o0, 0 2029418: 02 bf ff f8 be 20293f8 202941c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 2029420: 7f ff fe f0 call 2028fe0 2029424: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2029428: 80 a2 20 00 cmp %o0, 0 202942c: 02 bf ff f3 be 20293f8 2029430: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 2029434: 7f ff fe eb call 2028fe0 2029438: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 202943c: 80 a2 20 00 cmp %o0, 0 2029440: 02 bf ff ee be 20293f8 2029444: 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) 2029448: 92 06 60 0c add %i1, 0xc, %o1 202944c: 94 10 00 11 mov %l1, %o2 2029450: 96 10 00 10 mov %l0, %o3 2029454: 7f ff ff 2e call 202910c 2029458: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 202945c: 80 a2 20 00 cmp %o0, 0 2029460: 02 bf ff e6 be 20293f8 2029464: 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) 2029468: 92 06 60 10 add %i1, 0x10, %o1 202946c: 94 10 00 11 mov %l1, %o2 2029470: 96 10 00 10 mov %l0, %o3 2029474: 7f ff ff 26 call 202910c 2029478: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 202947c: 80 a2 20 00 cmp %o0, 0 2029480: 02 bf ff de be 20293f8 2029484: 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) 2029488: 92 06 60 14 add %i1, 0x14, %o1 202948c: 94 10 00 11 mov %l1, %o2 2029490: 96 10 00 10 mov %l0, %o3 2029494: 7f ff ff 1e call 202910c 2029498: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 202949c: 80 a2 20 00 cmp %o0, 0 20294a0: 02 bf ff d6 be 20293f8 20294a4: 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)) 20294a8: 94 10 00 11 mov %l1, %o2 20294ac: 96 10 00 10 mov %l0, %o3 20294b0: 92 06 60 18 add %i1, 0x18, %o1 20294b4: 7f ff ff 16 call 202910c 20294b8: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 20294bc: 80 a2 20 00 cmp %o0, 0 20294c0: 02 bf ff ce be 20293f8 20294c4: 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; 20294c8: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 20294cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 20294d0: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 20294d4: 81 c7 e0 08 ret 20294d8: 91 e8 20 01 restore %g0, 1, %o0 02009370 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 2009370: 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 ); 2009374: 90 10 00 19 mov %i1, %o0 2009378: 40 00 19 6c call 200f928 <_POSIX_Absolute_timeout_to_ticks> 200937c: 92 07 bf fc add %fp, -4, %o1 if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 2009380: 80 a2 20 03 cmp %o0, 3 2009384: 02 80 00 07 be 20093a0 2009388: d4 07 bf fc ld [ %fp + -4 ], %o2 do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 200938c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2009390: 40 00 1c 54 call 20104e0 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED 2009394: 92 10 20 00 clr %o1 <== NOT EXECUTED break; } } return lock_status; } 2009398: 81 c7 e0 08 ret <== NOT EXECUTED 200939c: 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 ); 20093a0: 90 10 00 18 mov %i0, %o0 20093a4: 40 00 1c 4f call 20104e0 <_POSIX_Semaphore_Wait_support> 20093a8: 92 10 20 01 mov 1, %o1 break; } } return lock_status; } 20093ac: 81 c7 e0 08 ret 20093b0: 91 e8 00 08 restore %g0, %o0, %o0 02028f6c : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 2028f6c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2028f70: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 2028f74: d0 30 60 34 sth %o0, [ %g1 + 0x34 ] <== NOT EXECUTED return 0; } 2028f78: 81 c3 e0 08 retl <== NOT EXECUTED 2028f7c: 90 10 20 00 clr %o0 <== NOT EXECUTED 02029614 : return NULL; return &grent; } void setgrent(void) { 2029614: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 2029618: 7f ff ff c4 call 2029528 <== NOT EXECUTED 202961c: 21 00 81 b9 sethi %hi(0x206e400), %l0 <== NOT EXECUTED if (group_fp != NULL) 2029620: d0 04 21 3c ld [ %l0 + 0x13c ], %o0 ! 206e53c <== NOT EXECUTED 2029624: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029628: 22 80 00 05 be,a 202963c <== NOT EXECUTED 202962c: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED fclose(group_fp); 2029630: 40 00 6c fc call 2044a20 <== NOT EXECUTED 2029634: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 2029638: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED 202963c: 13 00 81 93 sethi %hi(0x2064c00), %o1 <== NOT EXECUTED 2029640: 90 12 20 f0 or %o0, 0xf0, %o0 <== NOT EXECUTED 2029644: 40 00 6f 47 call 2045360 <== NOT EXECUTED 2029648: 92 12 60 78 or %o1, 0x78, %o1 <== NOT EXECUTED 202964c: d0 24 21 3c st %o0, [ %l0 + 0x13c ] <== NOT EXECUTED } 2029650: 81 c7 e0 08 ret <== NOT EXECUTED 2029654: 81 e8 00 00 restore <== NOT EXECUTED 02029814 : return NULL; return &pwent; } void setpwent(void) { 2029814: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 2029818: 7f ff ff 44 call 2029528 <== NOT EXECUTED 202981c: 21 00 81 b9 sethi %hi(0x206e400), %l0 <== NOT EXECUTED if (passwd_fp != NULL) 2029820: d0 04 20 54 ld [ %l0 + 0x54 ], %o0 ! 206e454 <== NOT EXECUTED 2029824: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2029828: 22 80 00 05 be,a 202983c <== NOT EXECUTED 202982c: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED fclose(passwd_fp); 2029830: 40 00 6c 7c call 2044a20 <== NOT EXECUTED 2029834: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 2029838: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED 202983c: 13 00 81 93 sethi %hi(0x2064c00), %o1 <== NOT EXECUTED 2029840: 90 12 20 68 or %o0, 0x68, %o0 <== NOT EXECUTED 2029844: 40 00 6e c7 call 2045360 <== NOT EXECUTED 2029848: 92 12 60 78 or %o1, 0x78, %o1 <== NOT EXECUTED 202984c: d0 24 20 54 st %o0, [ %l0 + 0x54 ] <== NOT EXECUTED } 2029850: 81 c7 e0 08 ret <== NOT EXECUTED 2029854: 81 e8 00 00 restore <== NOT EXECUTED 02005620 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 2005620: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED 2005624: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 <== NOT EXECUTED 2005628: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 200562c: 81 c3 e0 08 retl <== NOT EXECUTED 2005630: 90 10 20 00 clr %o0 <== NOT EXECUTED 02008c00 : #include int sigsuspend( const sigset_t *sigmask ) { 2008c00: 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 ); 2008c04: 90 10 20 01 mov 1, %o0 2008c08: 92 10 00 18 mov %i0, %o1 2008c0c: a0 07 bf fc add %fp, -4, %l0 2008c10: 7f ff ff f1 call 2008bd4 2008c14: 94 10 00 10 mov %l0, %o2 (void) sigfillset( &all_signals ); 2008c18: a2 07 bf f8 add %fp, -8, %l1 2008c1c: 7f ff ff b7 call 2008af8 2008c20: 90 10 00 11 mov %l1, %o0 status = sigtimedwait( &all_signals, NULL, NULL ); 2008c24: 90 10 00 11 mov %l1, %o0 2008c28: 92 10 20 00 clr %o1 2008c2c: 40 00 00 2b call 2008cd8 2008c30: 94 10 20 00 clr %o2 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 2008c34: 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 ); 2008c38: a2 10 00 08 mov %o0, %l1 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 2008c3c: 94 10 20 00 clr %o2 2008c40: 7f ff ff e5 call 2008bd4 2008c44: 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 ) 2008c48: 80 a4 7f ff cmp %l1, -1 2008c4c: 12 80 00 05 bne 2008c60 2008c50: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINTR ); return status; } 2008c54: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2008c58: 81 c7 e0 08 ret <== NOT EXECUTED 2008c5c: 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 ); 2008c60: 40 00 28 b4 call 2012f30 <__errno> 2008c64: b0 10 3f ff mov -1, %i0 2008c68: 82 10 20 04 mov 4, %g1 2008c6c: c2 22 00 00 st %g1, [ %o0 ] 2008c70: 81 c7 e0 08 ret 2008c74: 81 e8 00 00 restore 02004354 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2004354: 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)) { 2004358: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 200435c: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 2004360: 32 80 00 05 bne,a 2004374 <== NOT EXECUTED 2004364: 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); 2004368: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 200436c: 7f ff ff 7a call 2004154 <== NOT EXECUTED 2004370: 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); 2004374: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004378: 40 00 07 23 call 2006004 <== NOT EXECUTED 200437c: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 2004380: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED 2004384: 7f ff ff 74 call 2004154 <== NOT EXECUTED 2004388: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200438c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2004390: 40 00 07 64 call 2006120 <== NOT EXECUTED 2004394: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2004398: 81 c7 e0 08 ret <== NOT EXECUTED 200439c: 81 e8 00 00 restore <== NOT EXECUTED 02006b28 : int _STAT_NAME( const char *path, struct stat *buf ) { 2006b28: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2006b2c: 80 a6 60 00 cmp %i1, 0 2006b30: 02 80 00 34 be 2006c00 2006b34: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 2006b38: 40 01 12 a8 call 204b5d8 2006b3c: 90 10 00 18 mov %i0, %o0 2006b40: a0 07 bf ec add %fp, -20, %l0 2006b44: 92 10 00 08 mov %o0, %o1 2006b48: 94 10 20 00 clr %o2 2006b4c: 90 10 00 18 mov %i0, %o0 2006b50: 96 10 00 10 mov %l0, %o3 2006b54: 98 10 20 01 mov 1, %o4 2006b58: 7f ff fa 24 call 20053e8 2006b5c: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2006b60: 80 a2 20 00 cmp %o0, 0 2006b64: 12 80 00 25 bne 2006bf8 2006b68: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 2006b6c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 2006b70: 80 a0 a0 00 cmp %g2, 0 2006b74: 02 80 00 29 be 2006c18 2006b78: 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) ); 2006b7c: c0 26 40 00 clr [ %i1 ] 2006b80: c0 26 60 04 clr [ %i1 + 4 ] 2006b84: c0 26 60 08 clr [ %i1 + 8 ] 2006b88: c0 26 60 0c clr [ %i1 + 0xc ] 2006b8c: c0 26 60 10 clr [ %i1 + 0x10 ] 2006b90: c0 26 60 14 clr [ %i1 + 0x14 ] 2006b94: c0 26 60 18 clr [ %i1 + 0x18 ] 2006b98: c0 26 60 1c clr [ %i1 + 0x1c ] 2006b9c: c0 26 60 20 clr [ %i1 + 0x20 ] 2006ba0: c0 26 60 24 clr [ %i1 + 0x24 ] 2006ba4: c0 26 60 28 clr [ %i1 + 0x28 ] 2006ba8: c0 26 60 2c clr [ %i1 + 0x2c ] 2006bac: c0 26 60 30 clr [ %i1 + 0x30 ] 2006bb0: c0 26 60 34 clr [ %i1 + 0x34 ] 2006bb4: c0 26 60 38 clr [ %i1 + 0x38 ] 2006bb8: c0 26 60 3c clr [ %i1 + 0x3c ] 2006bbc: c0 26 60 40 clr [ %i1 + 0x40 ] 2006bc0: c0 26 60 44 clr [ %i1 + 0x44 ] status = (*loc.handlers->fstat_h)( &loc, buf ); 2006bc4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2006bc8: 9f c0 40 00 call %g1 2006bcc: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2006bd0: c2 07 bf f8 ld [ %fp + -8 ], %g1 2006bd4: 80 a0 60 00 cmp %g1, 0 2006bd8: 02 80 00 08 be 2006bf8 2006bdc: b0 10 00 08 mov %o0, %i0 2006be0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2006be4: 80 a0 60 00 cmp %g1, 0 2006be8: 02 80 00 1a be 2006c50 2006bec: 01 00 00 00 nop 2006bf0: 9f c0 40 00 call %g1 2006bf4: 90 10 00 10 mov %l0, %o0 return status; } 2006bf8: 81 c7 e0 08 ret 2006bfc: 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 ); 2006c00: 40 00 f7 30 call 20448c0 <__errno> 2006c04: b0 10 3f ff mov -1, %i0 2006c08: 82 10 20 0e mov 0xe, %g1 2006c0c: c2 22 00 00 st %g1, [ %o0 ] 2006c10: 81 c7 e0 08 ret 2006c14: 81 e8 00 00 restore 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 2006c18: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2006c1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006c20: 02 80 00 08 be 2006c40 <== NOT EXECUTED 2006c24: 01 00 00 00 nop <== NOT EXECUTED 2006c28: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2006c2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2006c30: 02 80 00 04 be 2006c40 <== NOT EXECUTED 2006c34: 01 00 00 00 nop <== NOT EXECUTED 2006c38: 9f c0 40 00 call %g1 <== NOT EXECUTED 2006c3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006c40: 40 00 f7 20 call 20448c0 <__errno> <== NOT EXECUTED 2006c44: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2006c48: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006c4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2006c50: 81 c7 e0 08 ret <== NOT EXECUTED 2006c54: 81 e8 00 00 restore <== NOT EXECUTED 0202a9d8 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 202a9d8: 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 ) ) 202a9dc: 40 00 82 ff call 204b5d8 <== NOT EXECUTED 202a9e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202a9e4: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 202a9e8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 202a9ec: 94 10 20 00 clr %o2 <== NOT EXECUTED 202a9f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 202a9f4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 202a9f8: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 202a9fc: 7f ff 6a 7b call 20053e8 <== NOT EXECUTED 202aa00: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202aa04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202aa08: 12 80 00 23 bne 202aa94 <== NOT EXECUTED 202aa0c: 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; 202aa10: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 202aa14: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 202aa18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202aa1c: 02 80 00 20 be 202aa9c <== NOT EXECUTED 202aa20: 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)); 202aa24: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED 202aa28: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED 202aa2c: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED 202aa30: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED 202aa34: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED 202aa38: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED 202aa3c: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED 202aa40: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED 202aa44: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED 202aa48: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED 202aa4c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED 202aa50: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED 202aa54: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED 202aa58: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 202aa5c: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 202aa60: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 202aa64: 9f c0 40 00 call %g1 <== NOT EXECUTED 202aa68: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 202aa6c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 202aa70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202aa74: 02 80 00 08 be 202aa94 <== NOT EXECUTED 202aa78: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 202aa7c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202aa80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202aa84: 02 80 00 0a be 202aaac <== NOT EXECUTED 202aa88: 01 00 00 00 nop <== NOT EXECUTED 202aa8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 202aa90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 202aa94: 81 c7 e0 08 ret <== NOT EXECUTED 202aa98: 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 ); 202aa9c: 40 00 67 89 call 20448c0 <__errno> <== NOT EXECUTED 202aaa0: 01 00 00 00 nop <== NOT EXECUTED 202aaa4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 202aaa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202aaac: 81 c7 e0 08 ret <== NOT EXECUTED 202aab0: 81 e8 00 00 restore <== NOT EXECUTED 0202aab4 : int symlink( const char *actualpath, const char *sympath ) { 202aab4: 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 ); 202aab8: c2 4e 40 00 ldsb [ %i1 ], %g1 202aabc: 80 a0 60 5c cmp %g1, 0x5c 202aac0: 02 80 00 05 be 202aad4 202aac4: a2 10 00 18 mov %i0, %l1 202aac8: 80 a0 60 2f cmp %g1, 0x2f 202aacc: 12 80 00 2f bne 202ab88 202aad0: 80 a0 60 00 cmp %g1, 0 202aad4: 03 00 81 aa sethi %hi(0x206a800), %g1 202aad8: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 202aadc: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 202aae0: c4 27 bf e8 st %g2, [ %fp + -24 ] 202aae4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 202aae8: c4 27 bf ec st %g2, [ %fp + -20 ] 202aaec: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 202aaf0: c4 27 bf f0 st %g2, [ %fp + -16 ] 202aaf4: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 202aaf8: c4 27 bf f4 st %g2, [ %fp + -12 ] 202aafc: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 202ab00: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !loc.ops->evalformake_h ) { 202ab04: c2 07 bf f4 ld [ %fp + -12 ], %g1 202ab08: c2 00 60 04 ld [ %g1 + 4 ], %g1 202ab0c: 80 a0 60 00 cmp %g1, 0 202ab10: 02 80 00 30 be 202abd0 202ab14: 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 ); 202ab18: 90 06 40 08 add %i1, %o0, %o0 202ab1c: a0 07 bf e8 add %fp, -24, %l0 202ab20: 94 07 bf fc add %fp, -4, %o2 202ab24: 92 10 00 10 mov %l0, %o1 202ab28: 9f c0 40 00 call %g1 202ab2c: b0 10 3f ff mov -1, %i0 if ( result != 0 ) 202ab30: 80 a2 20 00 cmp %o0, 0 202ab34: 12 80 00 13 bne 202ab80 202ab38: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 202ab3c: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 202ab40: 80 a0 60 00 cmp %g1, 0 202ab44: 02 80 00 29 be 202abe8 202ab48: 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); 202ab4c: 92 10 00 11 mov %l1, %o1 202ab50: 9f c0 40 00 call %g1 202ab54: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 202ab58: c2 07 bf f4 ld [ %fp + -12 ], %g1 202ab5c: 80 a0 60 00 cmp %g1, 0 202ab60: 02 80 00 08 be 202ab80 202ab64: b0 10 00 08 mov %o0, %i0 202ab68: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202ab6c: 80 a0 60 00 cmp %g1, 0 202ab70: 02 80 00 1c be 202abe0 202ab74: 01 00 00 00 nop 202ab78: 9f c0 40 00 call %g1 202ab7c: 90 10 00 10 mov %l0, %o0 return result; } 202ab80: 81 c7 e0 08 ret 202ab84: 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 ); 202ab88: 02 bf ff d4 be 202aad8 202ab8c: 03 00 81 aa sethi %hi(0x206a800), %g1 202ab90: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 202ab94: c4 00 60 04 ld [ %g1 + 4 ], %g2 202ab98: c4 27 bf e8 st %g2, [ %fp + -24 ] 202ab9c: c4 00 60 08 ld [ %g1 + 8 ], %g2 202aba0: c4 27 bf ec st %g2, [ %fp + -20 ] 202aba4: c4 00 60 0c ld [ %g1 + 0xc ], %g2 202aba8: c4 27 bf f0 st %g2, [ %fp + -16 ] 202abac: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 202abb0: c4 27 bf f4 st %g2, [ %fp + -12 ] 202abb4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 202abb8: c2 27 bf f8 st %g1, [ %fp + -8 ] if ( !loc.ops->evalformake_h ) { 202abbc: c2 07 bf f4 ld [ %fp + -12 ], %g1 202abc0: c2 00 60 04 ld [ %g1 + 4 ], %g1 202abc4: 80 a0 60 00 cmp %g1, 0 202abc8: 12 bf ff d4 bne 202ab18 202abcc: 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 ); 202abd0: 40 00 67 3c call 20448c0 <__errno> <== NOT EXECUTED 202abd4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202abd8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202abdc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202abe0: 81 c7 e0 08 ret <== NOT EXECUTED 202abe4: 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 ); 202abe8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202abec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202abf0: 02 bf ff f8 be 202abd0 <== NOT EXECUTED 202abf4: 01 00 00 00 nop <== NOT EXECUTED 202abf8: 9f c0 40 00 call %g1 <== NOT EXECUTED 202abfc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 202ac00: 30 bf ff f4 b,a 202abd0 <== NOT EXECUTED 02014d60 : int tcsetattr( int fd, int opt, struct termios *tp ) { 2014d60: 9d e3 bf a0 save %sp, -96, %sp switch (opt) { 2014d64: 80 a6 60 00 cmp %i1, 0 2014d68: 02 80 00 10 be 2014da8 2014d6c: 80 a6 60 01 cmp %i1, 1 2014d70: 02 80 00 08 be 2014d90 <== NOT EXECUTED 2014d74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 2014d78: 40 00 16 0f call 201a5b4 <__errno> <== NOT EXECUTED 2014d7c: 01 00 00 00 nop <== NOT EXECUTED 2014d80: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2014d84: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 2014d88: 81 c7 e0 08 ret <== NOT EXECUTED 2014d8c: 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) 2014d90: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2014d94: 40 00 0f 83 call 2018ba0 <== NOT EXECUTED 2014d98: 94 10 20 00 clr %o2 <== NOT EXECUTED 2014d9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2014da0: 06 bf ff fa bl 2014d88 <== NOT EXECUTED 2014da4: 01 00 00 00 nop <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 2014da8: 40 00 0f 7e call 2018ba0 2014dac: 93 e8 20 02 restore %g0, 2, %o1 0200f410 : #include int unlink( const char *path ) { 200f410: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 200f414: 7f ff cc 78 call 20025f4 200f418: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200f41c: a0 92 20 00 orcc %o0, 0, %l0 200f420: 32 80 00 92 bne,a 200f668 200f424: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 200f428: c2 4e 00 00 ldsb [ %i0 ], %g1 200f42c: 80 a0 60 5c cmp %g1, 0x5c 200f430: 12 80 00 59 bne 200f594 200f434: 80 a0 60 2f cmp %g1, 0x2f 200f438: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED 200f43c: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 201c330 200f440: a2 10 20 00 clr %l1 200f444: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 200f448: c4 27 bf ec st %g2, [ %fp + -20 ] 200f44c: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 200f450: c4 27 bf f0 st %g2, [ %fp + -16 ] 200f454: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 200f458: c4 27 bf f4 st %g2, [ %fp + -12 ] 200f45c: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 200f460: c4 27 bf f8 st %g2, [ %fp + -8 ] 200f464: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200f468: c2 27 bf fc st %g1, [ %fp + -4 ] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f46c: c2 07 bf ec ld [ %fp + -20 ], %g1 name = path + parentpathlen; 200f470: b0 06 00 10 add %i0, %l0, %i0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f474: c2 27 bf d8 st %g1, [ %fp + -40 ] 200f478: c2 07 bf f0 ld [ %fp + -16 ], %g1 name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200f47c: 90 10 00 18 mov %i0, %o0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f480: c2 27 bf dc st %g1, [ %fp + -36 ] 200f484: 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 ), 200f488: a0 07 bf d8 add %fp, -40, %l0 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f48c: c2 27 bf e0 st %g1, [ %fp + -32 ] 200f490: c2 07 bf f8 ld [ %fp + -8 ], %g1 200f494: c2 27 bf e4 st %g1, [ %fp + -28 ] 200f498: c2 07 bf fc ld [ %fp + -4 ], %g1 name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200f49c: 40 00 06 1c call 2010d0c 200f4a0: c2 27 bf e8 st %g1, [ %fp + -24 ] 200f4a4: 92 10 00 08 mov %o0, %o1 200f4a8: 7f ff cc 32 call 2002570 200f4ac: 90 10 00 18 mov %i0, %o0 200f4b0: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 200f4b4: 40 00 06 16 call 2010d0c 200f4b8: 90 10 00 18 mov %i0, %o0 200f4bc: 94 10 20 00 clr %o2 200f4c0: 92 10 00 08 mov %o0, %o1 200f4c4: 96 10 00 10 mov %l0, %o3 200f4c8: 90 10 00 18 mov %i0, %o0 200f4cc: 7f ff cc 67 call 2002668 200f4d0: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 200f4d4: 80 a2 20 00 cmp %o0, 0 200f4d8: 12 80 00 2a bne 200f580 200f4dc: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 200f4e0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200f4e4: 80 a0 60 00 cmp %g1, 0 200f4e8: 22 80 00 49 be,a 200f60c 200f4ec: 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 ) { 200f4f0: 9f c0 40 00 call %g1 200f4f4: 90 10 00 10 mov %l0, %o0 200f4f8: 80 a2 20 01 cmp %o0, 1 200f4fc: 02 80 00 65 be 200f690 200f500: 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 ) { 200f504: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200f508: 80 a0 60 00 cmp %g1, 0 200f50c: 02 80 00 3f be 200f608 200f510: 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 ); 200f514: 92 10 00 10 mov %l0, %o1 200f518: 9f c0 40 00 call %g1 200f51c: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 200f520: c2 07 bf e4 ld [ %fp + -28 ], %g1 200f524: 80 a0 60 00 cmp %g1, 0 200f528: 02 80 00 08 be 200f548 200f52c: b0 10 00 08 mov %o0, %i0 200f530: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f534: 80 a0 60 00 cmp %g1, 0 200f538: 02 80 00 05 be 200f54c 200f53c: 80 8c 60 ff btst 0xff, %l1 200f540: 9f c0 40 00 call %g1 200f544: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200f548: 80 8c 60 ff btst 0xff, %l1 200f54c: 02 80 00 0b be 200f578 200f550: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200f554: 80 a0 60 00 cmp %g1, 0 200f558: 02 80 00 68 be 200f6f8 200f55c: 01 00 00 00 nop 200f560: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f564: 80 a0 60 00 cmp %g1, 0 200f568: 02 80 00 64 be 200f6f8 200f56c: 01 00 00 00 nop 200f570: 9f c0 40 00 call %g1 200f574: 90 10 00 12 mov %l2, %o0 200f578: 81 c7 e0 08 ret 200f57c: 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 ) 200f580: 80 8c 60 ff btst 0xff, %l1 200f584: 12 80 00 16 bne 200f5dc 200f588: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return result; } 200f58c: 81 c7 e0 08 ret <== NOT EXECUTED 200f590: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); 200f594: 22 bf ff aa be,a 200f43c 200f598: 03 00 80 70 sethi %hi(0x201c000), %g1 200f59c: 80 a0 60 00 cmp %g1, 0 200f5a0: 02 bf ff a7 be 200f43c 200f5a4: 03 00 80 70 sethi %hi(0x201c000), %g1 200f5a8: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 201c330 200f5ac: a2 10 20 00 clr %l1 200f5b0: c4 00 60 04 ld [ %g1 + 4 ], %g2 200f5b4: c4 27 bf ec st %g2, [ %fp + -20 ] 200f5b8: c4 00 60 08 ld [ %g1 + 8 ], %g2 200f5bc: c4 27 bf f0 st %g2, [ %fp + -16 ] 200f5c0: c4 00 60 0c ld [ %g1 + 0xc ], %g2 200f5c4: c4 27 bf f4 st %g2, [ %fp + -12 ] 200f5c8: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 200f5cc: c4 27 bf f8 st %g2, [ %fp + -8 ] 200f5d0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 200f5d4: 10 bf ff a6 b 200f46c 200f5d8: c2 27 bf fc st %g1, [ %fp + -4 ] result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 200f5dc: 80 a0 60 00 cmp %g1, 0 200f5e0: 02 bf ff e6 be 200f578 200f5e4: b0 10 3f ff mov -1, %i0 200f5e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f5ec: 80 a0 60 00 cmp %g1, 0 200f5f0: 02 bf ff e2 be 200f578 200f5f4: 90 07 bf ec add %fp, -20, %o0 200f5f8: 9f c0 40 00 call %g1 200f5fc: 01 00 00 00 nop 200f600: 81 c7 e0 08 ret 200f604: 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 ); 200f608: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200f60c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f610: 02 80 00 05 be 200f624 <== NOT EXECUTED 200f614: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200f618: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f61c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 200f620: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200f624: 02 80 00 0b be 200f650 <== NOT EXECUTED 200f628: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 200f62c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f630: 02 80 00 08 be 200f650 <== NOT EXECUTED 200f634: 01 00 00 00 nop <== NOT EXECUTED 200f638: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200f63c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f640: 02 80 00 04 be 200f650 <== NOT EXECUTED 200f644: 01 00 00 00 nop <== NOT EXECUTED 200f648: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f64c: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200f650: 40 00 01 f7 call 200fe2c <__errno> <== NOT EXECUTED 200f654: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200f658: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200f65c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200f660: 81 c7 e0 08 ret <== NOT EXECUTED 200f664: 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, 200f668: 92 10 00 10 mov %l0, %o1 200f66c: 94 10 20 02 mov 2, %o2 200f670: 96 07 bf ec add %fp, -20, %o3 200f674: 7f ff cc 3e call 200276c 200f678: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 200f67c: 80 a2 20 00 cmp %o0, 0 200f680: 12 bf ff c3 bne 200f58c 200f684: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200f688: 10 bf ff 7a b 200f470 200f68c: 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 ); 200f690: c2 07 bf e4 ld [ %fp + -28 ], %g1 200f694: 80 a0 60 00 cmp %g1, 0 200f698: 02 80 00 09 be 200f6bc 200f69c: 80 8c 60 ff btst 0xff, %l1 200f6a0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200f6a4: 80 a0 60 00 cmp %g1, 0 200f6a8: 02 80 00 05 be 200f6bc 200f6ac: 80 8c 60 ff btst 0xff, %l1 200f6b0: 9f c0 40 00 call %g1 200f6b4: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200f6b8: 80 8c 60 ff btst 0xff, %l1 200f6bc: 02 80 00 0b be 200f6e8 200f6c0: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200f6c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f6c8: 02 80 00 08 be 200f6e8 <== NOT EXECUTED 200f6cc: 01 00 00 00 nop <== NOT EXECUTED 200f6d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200f6d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200f6d8: 02 80 00 04 be 200f6e8 <== NOT EXECUTED 200f6dc: 01 00 00 00 nop <== NOT EXECUTED 200f6e0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f6e4: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 200f6e8: 40 00 01 d1 call 200fe2c <__errno> 200f6ec: b0 10 3f ff mov -1, %i0 200f6f0: 82 10 20 15 mov 0x15, %g1 200f6f4: c2 22 00 00 st %g1, [ %o0 ] 200f6f8: 81 c7 e0 08 ret 200f6fc: 81 e8 00 00 restore 0202aecc : */ int unmount( const char *path ) { 202aecc: 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 ) ) 202aed0: 40 00 81 c2 call 204b5d8 202aed4: 90 10 00 18 mov %i0, %o0 202aed8: a0 07 bf ec add %fp, -20, %l0 202aedc: 92 10 00 08 mov %o0, %o1 202aee0: 94 10 20 00 clr %o2 202aee4: 90 10 00 18 mov %i0, %o0 202aee8: 96 10 00 10 mov %l0, %o3 202aeec: 7f ff 69 3f call 20053e8 202aef0: 98 10 20 01 mov 1, %o4 202aef4: 80 a2 20 00 cmp %o0, 0 202aef8: 12 80 00 3e bne 202aff0 202aefc: 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; 202af00: c2 07 bf ec ld [ %fp + -20 ], %g1 202af04: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 202af08: 80 a0 80 01 cmp %g2, %g1 202af0c: 12 80 00 41 bne 202b010 202af10: 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 ); 202af14: 80 a0 60 00 cmp %g1, 0 202af18: 22 80 00 09 be,a 202af3c 202af1c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 202af20: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202af24: 80 a0 60 00 cmp %g1, 0 202af28: 22 80 00 05 be,a 202af3c 202af2c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 202af30: 9f c0 40 00 call %g1 202af34: 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; 202af38: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 202af3c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 202af40: 80 a0 60 00 cmp %g1, 0 202af44: 02 80 00 61 be 202b0c8 202af48: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 202af4c: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 202af50: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 202af54: 80 a0 60 00 cmp %g1, 0 202af58: 02 80 00 5c be 202b0c8 202af5c: 03 00 81 aa sethi %hi(0x206a800), %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 ) 202af60: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 206a9c0 202af64: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 202af68: 80 a0 40 11 cmp %g1, %l1 202af6c: 02 80 00 23 be 202aff8 202af70: 07 00 81 ba sethi %hi(0x206e800), %g3 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 202af74: c2 00 e0 90 ld [ %g3 + 0x90 ], %g1 ! 206e890 202af78: 86 10 e0 90 or %g3, 0x90, %g3 202af7c: 86 00 e0 04 add %g3, 4, %g3 202af80: 80 a0 40 03 cmp %g1, %g3 202af84: 02 80 00 0f be 202afc0 202af88: 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 ) { 202af8c: c8 04 60 2c ld [ %l1 + 0x2c ], %g4 202af90: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 202af94: 80 a0 80 04 cmp %g2, %g4 202af98: 32 80 00 07 bne,a 202afb4 202af9c: c2 00 40 00 ld [ %g1 ], %g1 202afa0: 30 80 00 16 b,a 202aff8 <== NOT EXECUTED 202afa4: 80 a1 00 02 cmp %g4, %g2 202afa8: 02 80 00 14 be 202aff8 202afac: 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 ) { 202afb0: 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; 202afb4: 80 a0 40 03 cmp %g1, %g3 202afb8: 32 bf ff fb bne,a 202afa4 202afbc: 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 ) 202afc0: 7f ff 6a 0b call 20057ec 202afc4: 90 10 00 11 mov %l1, %o0 202afc8: 80 a2 20 01 cmp %o0, 1 202afcc: 02 80 00 0b be 202aff8 202afd0: 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 ) 202afd4: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 202afd8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 202afdc: 9f c0 40 00 call %g1 202afe0: 90 10 00 11 mov %l1, %o0 202afe4: 80 a2 20 00 cmp %o0, 0 202afe8: 22 80 00 19 be,a 202b04c 202afec: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 202aff0: 81 c7 e0 08 ret 202aff4: 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 ); 202aff8: 40 00 66 32 call 20448c0 <__errno> 202affc: b0 10 3f ff mov -1, %i0 202b000: 82 10 20 10 mov 0x10, %g1 202b004: c2 22 00 00 st %g1, [ %o0 ] 202b008: 81 c7 e0 08 ret 202b00c: 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 ); 202b010: 80 a0 60 00 cmp %g1, 0 202b014: 02 80 00 08 be 202b034 202b018: 01 00 00 00 nop 202b01c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202b020: 80 a0 60 00 cmp %g1, 0 202b024: 02 80 00 04 be 202b034 202b028: 01 00 00 00 nop 202b02c: 9f c0 40 00 call %g1 202b030: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 202b034: 40 00 66 23 call 20448c0 <__errno> 202b038: b0 10 3f ff mov -1, %i0 202b03c: 82 10 20 0d mov 0xd, %g1 202b040: c2 22 00 00 st %g1, [ %o0 ] 202b044: 81 c7 e0 08 ret 202b048: 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){ 202b04c: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 202b050: 9f c0 40 00 call %g1 202b054: 90 10 00 11 mov %l1, %o0 202b058: 80 a2 20 00 cmp %o0, 0 202b05c: 32 80 00 13 bne,a 202b0a8 202b060: 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 ); 202b064: 7f ff 7d b4 call 200a734 <_Chain_Extract> 202b068: 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 ); 202b06c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 202b070: 80 a0 60 00 cmp %g1, 0 202b074: 02 80 00 09 be 202b098 202b078: 90 10 00 11 mov %l1, %o0 202b07c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202b080: 80 a0 60 00 cmp %g1, 0 202b084: 02 80 00 05 be 202b098 202b088: 01 00 00 00 nop 202b08c: 9f c0 40 00 call %g1 202b090: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 202b094: 90 10 00 11 mov %l1, %o0 202b098: 7f ff 69 10 call 20054d8 202b09c: b0 10 20 00 clr %i0 return 0; 202b0a0: 81 c7 e0 08 ret 202b0a4: 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 ) 202b0a8: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 202b0ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 202b0b0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 202b0b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202b0b8: 02 bf ff ce be 202aff0 <== NOT EXECUTED 202b0bc: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 202b0c0: 7f ff 7c a2 call 200a348 <== NOT EXECUTED 202b0c4: 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 ); 202b0c8: 40 00 65 fe call 20448c0 <__errno> <== NOT EXECUTED 202b0cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202b0d0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202b0d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202b0d8: 81 c7 e0 08 ret <== NOT EXECUTED 202b0dc: 81 e8 00 00 restore <== NOT EXECUTED 0202b0e0 : int utime( const char *path, const struct utimbuf *times ) { 202b0e0: 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 ) ) 202b0e4: 40 00 81 3d call 204b5d8 202b0e8: 90 10 00 18 mov %i0, %o0 202b0ec: a0 07 bf ec add %fp, -20, %l0 202b0f0: 92 10 00 08 mov %o0, %o1 202b0f4: 94 10 20 00 clr %o2 202b0f8: 90 10 00 18 mov %i0, %o0 202b0fc: 96 10 00 10 mov %l0, %o3 202b100: 98 10 20 01 mov 1, %o4 202b104: 7f ff 68 b9 call 20053e8 202b108: b0 10 3f ff mov -1, %i0 202b10c: 80 a2 20 00 cmp %o0, 0 202b110: 12 80 00 14 bne 202b160 202b114: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 202b118: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 202b11c: 80 a0 60 00 cmp %g1, 0 202b120: 22 80 00 12 be,a 202b168 202b124: 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 ); 202b128: d4 06 60 04 ld [ %i1 + 4 ], %o2 202b12c: d2 06 40 00 ld [ %i1 ], %o1 202b130: 9f c0 40 00 call %g1 202b134: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 202b138: c2 07 bf f8 ld [ %fp + -8 ], %g1 202b13c: 80 a0 60 00 cmp %g1, 0 202b140: 02 80 00 08 be 202b160 202b144: b0 10 00 08 mov %o0, %i0 202b148: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202b14c: 80 a0 60 00 cmp %g1, 0 202b150: 02 80 00 0f be 202b18c 202b154: 01 00 00 00 nop 202b158: 9f c0 40 00 call %g1 202b15c: 90 10 00 10 mov %l0, %o0 return result; } 202b160: 81 c7 e0 08 ret 202b164: 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 ); 202b168: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202b16c: 02 80 00 04 be 202b17c <== NOT EXECUTED 202b170: 01 00 00 00 nop <== NOT EXECUTED 202b174: 9f c0 40 00 call %g1 <== NOT EXECUTED 202b178: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202b17c: 40 00 65 d1 call 20448c0 <__errno> <== NOT EXECUTED 202b180: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202b184: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202b188: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202b18c: 81 c7 e0 08 ret <== NOT EXECUTED 202b190: 81 e8 00 00 restore <== NOT EXECUTED 0200548c : */ void vprintk( const char *fmt, va_list ap ) { 200548c: 9d e3 bf 88 save %sp, -120, %sp for (; *fmt != '\0'; fmt++) { 2005490: c2 0e 00 00 ldub [ %i0 ], %g1 2005494: 83 28 60 18 sll %g1, 0x18, %g1 2005498: 80 a0 60 00 cmp %g1, 0 200549c: 02 80 00 7d be 2005690 20054a0: 29 00 80 72 sethi %hi(0x201c800), %l4 20054a4: 3b 00 80 6c sethi %hi(0x201b000), %i5 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 20054a8: 37 00 80 6c sethi %hi(0x201b000), %i3 bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt); 20054ac: a8 15 20 54 or %l4, 0x54, %l4 20054b0: ba 17 61 a8 or %i5, 0x1a8, %i5 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 20054b4: b6 16 e1 a0 or %i3, 0x1a0, %i3 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 20054b8: ac 07 bf e8 add %fp, -24, %l6 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 20054bc: 91 38 60 18 sra %g1, 0x18, %o0 20054c0: 80 a2 20 25 cmp %o0, 0x25 20054c4: 32 80 00 8d bne,a 20056f8 20054c8: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(*fmt); continue; } fmt++; 20054cc: b0 06 20 01 inc %i0 if (*fmt == '0' ) { 20054d0: c2 0e 00 00 ldub [ %i0 ], %g1 20054d4: 85 28 60 18 sll %g1, 0x18, %g2 20054d8: 87 38 a0 18 sra %g2, 0x18, %g3 20054dc: 80 a0 e0 30 cmp %g3, 0x30 20054e0: 02 80 00 a9 be 2005784 20054e4: b8 10 20 20 mov 0x20, %i4 lead = '0'; fmt++; } if (*fmt == '-' ) { 20054e8: 87 38 a0 18 sra %g2, 0x18, %g3 20054ec: 80 a0 e0 2d cmp %g3, 0x2d 20054f0: 02 80 00 a0 be 2005770 20054f4: aa 10 20 00 clr %l5 minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 20054f8: 82 00 7f d0 add %g1, -48, %g1 20054fc: 82 08 60 ff and %g1, 0xff, %g1 2005500: 80 a0 60 09 cmp %g1, 9 2005504: 18 80 00 0f bgu 2005540 2005508: a0 10 20 00 clr %l0 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; 200550c: b0 06 20 01 inc %i0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 2005510: c2 0e 00 00 ldub [ %i0 ], %g1 width *= 10; width += ((unsigned) *fmt - '0'); 2005514: 87 38 a0 18 sra %g2, 0x18, %g3 2005518: 89 2c 20 03 sll %l0, 3, %g4 200551c: 85 28 60 18 sll %g1, 0x18, %g2 2005520: a1 2c 20 01 sll %l0, 1, %l0 2005524: a0 04 00 04 add %l0, %g4, %l0 2005528: a0 04 00 03 add %l0, %g3, %l0 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 200552c: 86 00 7f d0 add %g1, -48, %g3 2005530: 86 08 e0 ff and %g3, 0xff, %g3 2005534: 80 a0 e0 09 cmp %g3, 9 2005538: 08 bf ff f5 bleu 200550c 200553c: a0 04 3f d0 add %l0, -48, %l0 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 2005540: 83 38 a0 18 sra %g2, 0x18, %g1 2005544: 80 a0 60 6c cmp %g1, 0x6c 2005548: 02 80 00 77 be 2005724 200554c: 80 a0 60 63 cmp %g1, 0x63 lflag = true; c = *++fmt; } if ( c == 'c' ) { 2005550: 22 80 00 7d be,a 2005744 2005554: 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' ) { 2005558: 80 a0 60 73 cmp %g1, 0x73 200555c: 02 80 00 8f be 2005798 2005560: 80 a0 60 4f cmp %g1, 0x4f continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { 2005564: 22 80 00 6e be,a 200571c 2005568: 82 10 20 00 clr %g1 200556c: 80 a0 60 6f cmp %g1, 0x6f 2005570: 22 80 00 6b be,a 200571c 2005574: 82 10 20 00 clr %g1 <== NOT EXECUTED base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 2005578: 80 a0 60 49 cmp %g1, 0x49 200557c: 22 80 00 06 be,a 2005594 2005580: 82 10 20 01 mov 1, %g1 2005584: 80 a0 60 69 cmp %g1, 0x69 2005588: 12 80 00 44 bne 2005698 200558c: 80 a0 60 44 cmp %g1, 0x44 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 2005590: 82 10 20 01 mov 1, %g1 2005594: aa 10 20 0a mov 0xa, %l5 } printNum( 2005598: e6 06 40 00 ld [ %i1 ], %l3 unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 200559c: 80 88 60 ff btst 0xff, %g1 BSP_output_char(c); continue; } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), 20055a0: b2 06 60 04 add %i1, 4, %i1 unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 20055a4: 02 80 00 05 be 20055b8 20055a8: b8 0f 20 30 and %i4, 0x30, %i4 20055ac: 80 a4 e0 00 cmp %l3, 0 20055b0: 26 80 00 c0 bl,a 20058b0 20055b4: c2 05 00 00 ld [ %l4 ], %g1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 20055b8: 90 10 00 13 mov %l3, %o0 20055bc: 92 10 00 15 mov %l5, %o1 20055c0: 40 00 4f 4f call 20192fc <.udiv> 20055c4: ae 10 20 01 mov 1, %l7 20055c8: a2 92 20 00 orcc %o0, 0, %l1 20055cc: 02 80 00 12 be 2005614 20055d0: a4 10 20 00 clr %l2 20055d4: 10 80 00 03 b 20055e0 20055d8: ae 10 00 15 mov %l5, %l7 20055dc: a2 10 00 08 mov %o0, %l1 toPrint[count++] = (char) (unsigned_num - (n * base)); 20055e0: 92 10 00 11 mov %l1, %o1 20055e4: 40 00 4f 0c call 2019214 <.umul> 20055e8: 90 10 00 17 mov %l7, %o0 20055ec: 90 24 c0 08 sub %l3, %o0, %o0 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 20055f0: 92 10 00 15 mov %l5, %o1 toPrint[count++] = (char) (unsigned_num - (n * base)); 20055f4: d0 2d 80 12 stb %o0, [ %l6 + %l2 ] } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 20055f8: 90 10 00 11 mov %l1, %o0 20055fc: 40 00 4f 40 call 20192fc <.udiv> 2005600: a4 04 a0 01 inc %l2 2005604: 80 a2 20 00 cmp %o0, 0 2005608: 12 bf ff f5 bne 20055dc 200560c: a6 10 00 11 mov %l1, %l3 2005610: ae 04 a0 01 add %l2, 1, %l7 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 2005614: a4 07 80 12 add %fp, %l2, %l2 for (n=maxwidth ; n > count; n-- ) 2005618: 80 a4 00 17 cmp %l0, %l7 200561c: 08 80 00 09 bleu 2005640 2005620: e6 2c bf e8 stb %l3, [ %l2 + -24 ] BSP_output_char(lead); 2005624: c2 05 00 00 ld [ %l4 ], %g1 2005628: 9f c0 40 00 call %g1 200562c: 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-- ) 2005630: a0 04 3f ff add %l0, -1, %l0 2005634: 80 a4 00 17 cmp %l0, %l7 2005638: 38 bf ff fc bgu,a 2005628 200563c: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(lead); for (n = 0; n < count; n++) { 2005640: 80 a5 e0 00 cmp %l7, 0 2005644: 22 80 00 0e be,a 200567c 2005648: b0 06 20 01 inc %i0 <== NOT EXECUTED 200564c: a2 05 ff ff add %l7, -1, %l1 2005650: a0 10 20 00 clr %l0 2005654: a2 05 80 11 add %l6, %l1, %l1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 2005658: c4 4c 40 00 ldsb [ %l1 ], %g2 200565c: c2 05 00 00 ld [ %l4 ], %g1 2005660: d0 4f 40 02 ldsb [ %i5 + %g2 ], %o0 2005664: 9f c0 40 00 call %g1 2005668: 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++) { 200566c: 80 a4 00 17 cmp %l0, %l7 2005670: 0a bf ff fa bcs 2005658 2005674: a2 04 7f ff add %l1, -1, %l1 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 2005678: b0 06 20 01 inc %i0 200567c: c2 0e 00 00 ldub [ %i0 ], %g1 2005680: 83 28 60 18 sll %g1, 0x18, %g1 2005684: 80 a0 60 00 cmp %g1, 0 2005688: 12 bf ff 8e bne 20054c0 200568c: 91 38 60 18 sra %g1, 0x18, %o0 2005690: 81 c7 e0 08 ret <== NOT EXECUTED 2005694: 81 e8 00 00 restore <== NOT EXECUTED } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 2005698: 22 bf ff bf be,a 2005594 200569c: 82 10 20 01 mov 1, %g1 20056a0: 80 a0 60 64 cmp %g1, 0x64 20056a4: 22 bf ff bc be,a 2005594 20056a8: 82 10 20 01 mov 1, %g1 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 20056ac: 80 a0 60 55 cmp %g1, 0x55 20056b0: 12 80 00 05 bne 20056c4 20056b4: 80 a0 60 75 cmp %g1, 0x75 20056b8: 82 10 20 00 clr %g1 20056bc: 10 bf ff b7 b 2005598 20056c0: aa 10 20 0a mov 0xa, %l5 20056c4: 02 bf ff fe be 20056bc 20056c8: 82 10 20 00 clr %g1 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 20056cc: 91 38 a0 18 sra %g2, 0x18, %o0 20056d0: 80 a2 20 58 cmp %o0, 0x58 20056d4: 02 bf ff b1 be 2005598 20056d8: aa 10 20 10 mov 0x10, %l5 20056dc: 80 a2 20 78 cmp %o0, 0x78 20056e0: 02 bf ff ae be 2005598 20056e4: 01 00 00 00 nop base = 16; sign = false; } else if ( c == 'p' ) { 20056e8: 80 a2 20 70 cmp %o0, 0x70 20056ec: 02 bf ff ab be 2005598 20056f0: 01 00 00 00 nop base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 20056f4: c2 05 00 00 ld [ %l4 ], %g1 20056f8: 9f c0 40 00 call %g1 20056fc: b0 06 20 01 inc %i0 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 2005700: c2 0e 00 00 ldub [ %i0 ], %g1 2005704: 83 28 60 18 sll %g1, 0x18, %g1 2005708: 80 a0 60 00 cmp %g1, 0 200570c: 12 bf ff 6d bne 20054c0 2005710: 91 38 60 18 sra %g1, 0x18, %o0 2005714: 81 c7 e0 08 ret 2005718: 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; 200571c: 10 bf ff 9f b 2005598 2005720: aa 10 20 08 mov 8, %l5 fmt++; } if ((c = *fmt) == 'l') { lflag = true; c = *++fmt; 2005724: b0 06 20 01 inc %i0 2005728: c2 0e 00 00 ldub [ %i0 ], %g1 200572c: 85 28 60 18 sll %g1, 0x18, %g2 } if ( c == 'c' ) { 2005730: 83 38 a0 18 sra %g2, 0x18, %g1 2005734: 80 a0 60 63 cmp %g1, 0x63 2005738: 12 bf ff 89 bne 200555c 200573c: 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); 2005740: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED BSP_output_char(chr); 2005744: c2 05 00 00 ld [ %l4 ], %g1 2005748: 91 2a 20 18 sll %o0, 0x18, %o0 200574c: 9f c0 40 00 call %g1 2005750: 91 3a 20 18 sra %o0, 0x18, %o0 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 2005754: b0 06 20 01 inc %i0 2005758: c2 0e 00 00 ldub [ %i0 ], %g1 200575c: 83 28 60 18 sll %g1, 0x18, %g1 2005760: 80 a0 60 00 cmp %g1, 0 2005764: 12 bf ff 56 bne 20054bc 2005768: b2 06 60 04 add %i1, 4, %i1 200576c: 30 bf ff ea b,a 2005714 <== NOT EXECUTED lead = '0'; fmt++; } if (*fmt == '-' ) { minus = true; fmt++; 2005770: b0 06 20 01 inc %i0 2005774: c2 0e 00 00 ldub [ %i0 ], %g1 2005778: aa 10 20 01 mov 1, %l5 200577c: 10 bf ff 5f b 20054f8 2005780: 85 28 60 18 sll %g1, 0x18, %g2 continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 2005784: b0 06 20 01 inc %i0 2005788: c2 0e 00 00 ldub [ %i0 ], %g1 200578c: b8 10 20 30 mov 0x30, %i4 2005790: 10 bf ff 56 b 20054e8 2005794: 85 28 60 18 sll %g1, 0x18, %g2 } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); 2005798: e4 06 40 00 ld [ %i1 ], %l2 if ( str == NULL ) { 200579c: 80 a4 a0 00 cmp %l2, 0 20057a0: 02 80 00 4a be 20058c8 20057a4: b2 06 60 04 add %i1, 4, %i1 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 20057a8: c2 4c 80 00 ldsb [ %l2 ], %g1 20057ac: 80 a0 60 00 cmp %g1, 0 20057b0: 02 80 00 07 be 20057cc 20057b4: a2 10 20 00 clr %l1 20057b8: a2 04 60 01 inc %l1 20057bc: c2 4c 80 11 ldsb [ %l2 + %l1 ], %g1 20057c0: 80 a0 60 00 cmp %g1, 0 20057c4: 32 bf ff fe bne,a 20057bc 20057c8: a2 04 60 01 inc %l1 ; /* leading spaces */ if ( !minus ) 20057cc: aa 8d 60 ff andcc %l5, 0xff, %l5 20057d0: 12 80 00 0e bne 2005808 20057d4: 80 a4 20 00 cmp %l0, 0 for ( i=len ; i 20057e0: 80 a4 20 00 cmp %l0, 0 20057e4: a6 10 00 11 mov %l1, %l3 BSP_output_char(' '); 20057e8: c2 05 00 00 ld [ %l4 ], %g1 20057ec: 9f c0 40 00 call %g1 20057f0: 90 10 20 20 mov 0x20, %o0 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 2005800: c2 05 00 00 ld [ %l4 ], %g1 BSP_output_char(' '); /* no width option */ if (width == 0) { 2005804: 80 a4 20 00 cmp %l0, 0 2005808: 32 80 00 07 bne,a 2005824 200580c: d0 4c 80 00 ldsb [ %l2 ], %o0 width = len; } /* output the string */ for ( i=0 ; i 2005818: 80 a5 60 00 cmp %l5, 0 200581c: a0 10 00 11 mov %l1, %l0 2005820: d0 4c 80 00 ldsb [ %l2 ], %o0 2005824: 80 a2 20 00 cmp %o0, 0 2005828: 02 80 00 0f be 2005864 200582c: 80 a5 60 00 cmp %l5, 0 BSP_output_char(*str); 2005830: c2 05 00 00 ld [ %l4 ], %g1 2005834: 9f c0 40 00 call %g1 2005838: a4 04 a0 01 inc %l2 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 2005840: d0 4c 80 00 ldsb [ %l2 ], %o0 BSP_output_char(*str); 2005844: c2 05 00 00 ld [ %l4 ], %g1 2005848: 9f c0 40 00 call %g1 200584c: 01 00 00 00 nop if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 200585c: a4 04 a0 01 inc %l2 BSP_output_char(*str); /* trailing spaces */ if ( minus ) 2005860: 80 a5 60 00 cmp %l5, 0 2005864: 22 bf ff 86 be,a 200567c 2005868: b0 06 20 01 inc %i0 for ( i=len ; i 2005874: b0 06 20 01 inc %i0 BSP_output_char(' '); 2005878: c2 05 00 00 ld [ %l4 ], %g1 200587c: 9f c0 40 00 call %g1 2005880: 90 10 20 20 mov 0x20, %o0 for ( i=0 ; i 2005890: c2 05 00 00 ld [ %l4 ], %g1 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 2005894: b0 06 20 01 inc %i0 2005898: c2 0e 00 00 ldub [ %i0 ], %g1 200589c: 83 28 60 18 sll %g1, 0x18, %g1 20058a0: 80 a0 60 00 cmp %g1, 0 20058a4: 32 bf ff 07 bne,a 20054c0 20058a8: 91 38 60 18 sra %g1, 0x18, %o0 20058ac: 30 bf ff 9a b,a 2005714 <== NOT EXECUTED unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); 20058b0: 9f c0 40 00 call %g1 20058b4: 90 10 20 2d mov 0x2d, %o0 unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; 20058b8: 80 a0 00 10 cmp %g0, %l0 unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; 20058bc: a6 20 00 13 neg %l3 if (maxwidth) maxwidth--; 20058c0: 10 bf ff 3e b 20055b8 20058c4: a0 64 20 00 subx %l0, 0, %l0 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 20058c8: 10 bf ff b8 b 20057a8 20058cc: a4 10 00 1b mov %i3, %l2 0201a710 : ssize_t write( int fd, const void *buffer, size_t count ) { 201a710: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 201a714: 03 00 80 70 sethi %hi(0x201c000), %g1 201a718: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201c174 201a71c: 80 a6 00 01 cmp %i0, %g1 201a720: 1a 80 00 23 bcc 201a7ac 201a724: 03 00 80 72 sethi %hi(0x201c800), %g1 iop = rtems_libio_iop( fd ); 201a728: e0 00 63 70 ld [ %g1 + 0x370 ], %l0 ! 201cb70 201a72c: 83 2e 20 06 sll %i0, 6, %g1 201a730: b1 2e 20 03 sll %i0, 3, %i0 201a734: b0 06 00 01 add %i0, %g1, %i0 201a738: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 201a73c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 201a740: 80 88 61 00 btst 0x100, %g1 201a744: 02 80 00 1a be 201a7ac 201a748: 80 a6 60 00 cmp %i1, 0 rtems_libio_check_buffer( buffer ); 201a74c: 02 80 00 1e be 201a7c4 201a750: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 201a754: 02 80 00 14 be 201a7a4 201a758: b0 10 20 00 clr %i0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 201a75c: 80 88 60 04 btst 4, %g1 201a760: 02 80 00 19 be 201a7c4 201a764: 01 00 00 00 nop /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 201a768: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201a76c: c2 00 60 0c ld [ %g1 + 0xc ], %g1 201a770: 80 a0 60 00 cmp %g1, 0 201a774: 02 80 00 1a be 201a7dc 201a778: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 201a77c: 94 10 00 1a mov %i2, %o2 201a780: 9f c0 40 00 call %g1 201a784: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 201a788: b0 92 20 00 orcc %o0, 0, %i0 201a78c: 04 80 00 06 ble 201a7a4 201a790: 85 3e 20 1f sra %i0, 0x1f, %g2 iop->offset += rc; 201a794: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 201a798: 86 83 40 18 addcc %o5, %i0, %g3 201a79c: 84 43 00 02 addx %o4, %g2, %g2 201a7a0: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 201a7a4: 81 c7 e0 08 ret 201a7a8: 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 ); 201a7ac: 7f ff d5 a0 call 200fe2c <__errno> <== NOT EXECUTED 201a7b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a7b4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED 201a7b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a7bc: 81 c7 e0 08 ret <== NOT EXECUTED 201a7c0: 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 ); 201a7c4: 7f ff d5 9a call 200fe2c <__errno> <== NOT EXECUTED 201a7c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a7cc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201a7d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a7d4: 81 c7 e0 08 ret <== NOT EXECUTED 201a7d8: 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 ); 201a7dc: 7f ff d5 94 call 200fe2c <__errno> <== NOT EXECUTED 201a7e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 201a7e4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 201a7e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201a7ec: 81 c7 e0 08 ret <== NOT EXECUTED 201a7f0: 81 e8 00 00 restore <== NOT EXECUTED 020074f0 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 20074f0: 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 ); 20074f4: 03 00 80 83 sethi %hi(0x2020c00), %g1 20074f8: c2 00 63 e4 ld [ %g1 + 0x3e4 ], %g1 ! 2020fe4 20074fc: 80 a6 00 01 cmp %i0, %g1 2007500: 1a 80 00 56 bcc 2007658 2007504: 03 00 80 88 sethi %hi(0x2022000), %g1 iop = rtems_libio_iop( fd ); 2007508: e6 00 61 b4 ld [ %g1 + 0x1b4 ], %l3 ! 20221b4 200750c: 83 2e 20 06 sll %i0, 6, %g1 2007510: b1 2e 20 03 sll %i0, 3, %i0 2007514: b0 06 00 01 add %i0, %g1, %i0 2007518: a6 04 c0 18 add %l3, %i0, %l3 rtems_libio_check_is_open( iop ); 200751c: c2 04 e0 18 ld [ %l3 + 0x18 ], %g1 2007520: 80 88 61 00 btst 0x100, %g1 2007524: 02 80 00 4d be 2007658 2007528: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200752c: 02 80 00 30 be 20075ec 2007530: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 2007534: 02 80 00 2e be 20075ec 2007538: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 200753c: 04 80 00 2c ble 20075ec 2007540: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2007544: 14 80 00 2a bg 20075ec 2007548: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 200754c: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 2007550: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2007554: 80 a0 60 00 cmp %g1, 0 2007558: 02 80 00 46 be 2007670 200755c: 17 00 00 1f sethi %hi(0x7c00), %o3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2007560: 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 ) 2007564: 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 ); 2007568: 9a 10 20 01 mov 1, %o5 200756c: 86 10 20 00 clr %g3 2007570: 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 ) 2007574: c4 00 40 00 ld [ %g1 ], %g2 2007578: 80 a0 a0 00 cmp %g2, 0 200757c: 02 80 00 1c be 20075ec 2007580: 86 00 e0 01 inc %g3 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 ) 2007584: c4 00 60 04 ld [ %g1 + 4 ], %g2 * 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++ ) { 2007588: 82 00 60 08 add %g1, 8, %g1 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 ) 200758c: 80 a0 00 02 cmp %g0, %g2 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 2007590: 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 ) 2007594: 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 ) 2007598: 80 a0 80 0b cmp %g2, %o3 200759c: 14 80 00 14 bg 20075ec 20075a0: 9a 0b 40 0c and %o5, %o4, %o5 20075a4: 80 a1 00 02 cmp %g4, %g2 20075a8: 14 80 00 11 bg 20075ec 20075ac: 80 a6 80 03 cmp %i2, %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++ ) { 20075b0: 34 bf ff f1 bg,a 2007574 20075b4: 88 10 00 02 mov %g2, %g4 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 20075b8: 80 8b 60 ff btst 0xff, %o5 20075bc: a4 10 20 00 clr %l2 20075c0: 12 80 00 09 bne 20075e4 20075c4: b0 10 20 00 clr %i0 /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 20075c8: d4 06 60 04 ld [ %i1 + 4 ], %o2 20075cc: 80 a2 a0 00 cmp %o2, 0 20075d0: 12 80 00 0d bne 2007604 20075d4: a4 04 a0 01 inc %l2 } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 20075d8: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED 20075dc: 14 bf ff fb bg 20075c8 20075e0: b2 06 60 08 add %i1, 8, %i1 if (bytes != iov[ v ].iov_len) break; } return total; } 20075e4: 81 c7 e0 08 ret 20075e8: 81 e8 00 00 restore /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); 20075ec: 40 00 2c 9c call 201285c <__errno> 20075f0: b0 10 3f ff mov -1, %i0 20075f4: 82 10 20 16 mov 0x16, %g1 20075f8: c2 22 00 00 st %g1, [ %o0 ] 20075fc: 81 c7 e0 08 ret 2007600: 81 e8 00 00 restore 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 ); 2007604: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1 2007608: d2 06 40 00 ld [ %i1 ], %o1 200760c: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2007610: 9f c0 40 00 call %g1 2007614: 90 10 00 13 mov %l3, %o0 if ( bytes < 0 ) 2007618: 80 a2 20 00 cmp %o0, 0 200761c: 06 80 00 1b bl 2007688 2007620: 01 00 00 00 nop return -1; if ( bytes > 0 ) { 2007624: 02 80 00 07 be 2007640 2007628: a1 3a 20 1f sra %o0, 0x1f, %l0 iop->offset += bytes; 200762c: c4 1c e0 10 ldd [ %l3 + 0x10 ], %g2 2007630: 86 80 c0 08 addcc %g3, %o0, %g3 total += bytes; 2007634: b0 06 00 08 add %i0, %o0, %i0 if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 2007638: 84 40 80 10 addx %g2, %l0, %g2 200763c: c4 3c e0 10 std %g2, [ %l3 + 0x10 ] total += bytes; } if (bytes != iov[ v ].iov_len) 2007640: c2 06 60 04 ld [ %i1 + 4 ], %g1 2007644: 80 a2 00 01 cmp %o0, %g1 2007648: 02 bf ff e5 be 20075dc 200764c: 80 a6 80 12 cmp %i2, %l2 break; } return total; } 2007650: 81 c7 e0 08 ret <== NOT EXECUTED 2007654: 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 ); 2007658: 40 00 2c 81 call 201285c <__errno> 200765c: b0 10 3f ff mov -1, %i0 2007660: 82 10 20 09 mov 9, %g1 2007664: c2 22 00 00 st %g1, [ %o0 ] 2007668: 81 c7 e0 08 ret 200766c: 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 ); 2007670: 40 00 2c 7b call 201285c <__errno> <== NOT EXECUTED 2007674: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2007678: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200767c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2007680: 81 c7 e0 08 ret <== NOT EXECUTED 2007684: 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 ) 2007688: 81 c7 e0 08 ret <== NOT EXECUTED 200768c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED