0200e5d4 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 200e5d4: 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(); 200e5d8: 40 00 04 a2 call 200f860 200e5dc: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200e5e0: 91 2a 20 10 sll %o0, 0x10, %o0 200e5e4: 91 32 20 10 srl %o0, 0x10, %o0 200e5e8: 80 a2 20 00 cmp %o0, 0 200e5ec: 22 80 00 0c be,a 200e61c 200e5f0: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] 200e5f4: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 200e5f8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200e5fc: 22 80 00 08 be,a 200e61c <== NOT EXECUTED 200e600: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200e604: 40 00 16 b6 call 20140dc <__errno> <== NOT EXECUTED 200e608: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e60c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200e610: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e614: 81 c7 e0 08 ret <== NOT EXECUTED 200e618: 81 e8 00 00 restore <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; 200e61c: f4 34 20 3a sth %i2, [ %l0 + 0x3a ] IMFS_update_ctime( jnode ); 200e620: 90 07 bf f8 add %fp, -8, %o0 200e624: 7f ff d4 97 call 2003880 200e628: 92 10 20 00 clr %o1 200e62c: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e630: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 200e634: 81 c7 e0 08 ret 200e638: 91 e8 20 00 restore %g0, 0, %o0 0200d03c : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200d03c: 9d e3 bf a0 save %sp, -96, %sp 200d040: a0 10 00 18 mov %i0, %l0 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 200d044: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200d048: 92 10 00 1a mov %i2, %o1 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 200d04c: 02 80 00 40 be 200d14c 200d050: b0 10 20 00 clr %i0 return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 200d054: 03 00 80 6a sethi %hi(0x201a800), %g1 200d058: c2 00 63 c4 ld [ %g1 + 0x3c4 ], %g1 ! 201abc4 200d05c: 90 10 00 19 mov %i1, %o0 200d060: d4 10 60 2c lduh [ %g1 + 0x2c ], %o2 200d064: b6 2e c0 0a andn %i3, %o2, %i3 200d068: 95 2e e0 10 sll %i3, 0x10, %o2 200d06c: 7f ff ff c8 call 200cf8c 200d070: 95 32 a0 10 srl %o2, 0x10, %o2 if ( !node ) 200d074: b0 92 20 00 orcc %o0, 0, %i0 200d078: 02 80 00 35 be 200d14c 200d07c: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 200d080: 80 a6 60 06 cmp %i1, 6 200d084: 38 80 00 20 bgu,a 200d104 200d088: 11 00 80 68 sethi %hi(0x201a000), %o0 <== NOT EXECUTED 200d08c: b3 2e 60 02 sll %i1, 2, %i1 200d090: 03 00 80 33 sethi %hi(0x200cc00), %g1 200d094: 82 10 63 70 or %g1, 0x370, %g1 ! 200cf70 200d098: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200d09c: 81 c0 40 00 jmp %g1 200d0a0: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200d0a4: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 200d0a8: c0 26 20 54 clr [ %i0 + 0x54 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200d0ac: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200d0b0: 82 06 20 50 add %i0, 0x50, %g1 200d0b4: 10 80 00 1b b 200d120 200d0b8: c2 26 20 58 st %g1, [ %i0 + 0x58 ] 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; 200d0bc: 10 80 00 05 b 200d0d0 200d0c0: c2 07 00 00 ld [ %i4 ], %g1 break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 200d0c4: 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; 200d0c8: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200d0cc: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 200d0d0: 10 80 00 14 b 200d120 200d0d4: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200d0d8: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 200d0dc: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200d0e0: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200d0e4: c0 26 20 50 clr [ %i0 + 0x50 ] 200d0e8: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 200d0ec: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 200d0f0: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200d0f4: 10 80 00 0b b 200d120 200d0f8: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200d0fc: 10 80 00 09 b 200d120 200d100: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 200d104: 15 00 80 68 sethi %hi(0x201a000), %o2 <== NOT EXECUTED 200d108: 17 00 80 68 sethi %hi(0x201a000), %o3 <== NOT EXECUTED 200d10c: 90 12 22 80 or %o0, 0x280, %o0 <== NOT EXECUTED 200d110: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 200d114: 96 12 e2 d0 or %o3, 0x2d0, %o3 <== NOT EXECUTED 200d118: 7f ff d3 54 call 2001e68 <__assert_func> <== NOT EXECUTED 200d11c: 92 10 20 5c mov 0x5c, %o1 <== NOT EXECUTED /* * 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; 200d120: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 200d124: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200d128: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200d12c: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 200d130: c2 00 80 00 ld [ %g2 ], %g1 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 200d134: 90 02 20 50 add %o0, 0x50, %o0 200d138: 82 00 60 01 inc %g1 200d13c: c2 20 80 00 st %g1, [ %g2 ] 200d140: c2 26 20 34 st %g1, [ %i0 + 0x34 ] 200d144: 7f ff e3 a7 call 2005fe0 <_Chain_Append> 200d148: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200d14c: 81 c7 e0 08 ret 200d150: 81 e8 00 00 restore 02003b38 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2003b38: 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 ); 2003b3c: 80 a6 20 00 cmp %i0, 0 2003b40: 12 80 00 0a bne 2003b68 2003b44: 80 a6 60 00 cmp %i1, 0 2003b48: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003b4c: 15 00 80 8c sethi %hi(0x2023000), %o2 <== NOT EXECUTED 2003b50: 17 00 80 8b sethi %hi(0x2022c00), %o3 <== NOT EXECUTED 2003b54: 90 12 22 f8 or %o0, 0x2f8, %o0 <== NOT EXECUTED 2003b58: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2003b5c: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2003b60: 10 80 00 0b b 2003b8c <== NOT EXECUTED 2003b64: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); 2003b68: 36 80 00 0b bge,a 2003b94 2003b6c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2003b70: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003b74: 15 00 80 8c sethi %hi(0x2023000), %o2 <== NOT EXECUTED 2003b78: 17 00 80 8b sethi %hi(0x2022c00), %o3 <== NOT EXECUTED 2003b7c: 90 12 22 f8 or %o0, 0x2f8, %o0 <== NOT EXECUTED 2003b80: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2003b84: 96 12 e3 e8 or %o3, 0x3e8, %o3 <== NOT EXECUTED 2003b88: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED 2003b8c: 40 00 01 e8 call 200432c <__assert_func> <== NOT EXECUTED 2003b90: 01 00 00 00 nop <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 2003b94: 80 a0 60 01 cmp %g1, 1 2003b98: 02 80 00 0a be 2003bc0 2003b9c: 29 00 80 93 sethi %hi(0x2024c00), %l4 2003ba0: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003ba4: 15 00 80 8c sethi %hi(0x2023000), %o2 <== NOT EXECUTED 2003ba8: 17 00 80 8b sethi %hi(0x2022c00), %o3 <== NOT EXECUTED 2003bac: 90 12 22 f8 or %o0, 0x2f8, %o0 <== NOT EXECUTED 2003bb0: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2003bb4: 96 12 e3 f8 or %o3, 0x3f8, %o3 <== NOT EXECUTED 2003bb8: 10 bf ff f5 b 2003b8c <== NOT EXECUTED 2003bbc: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2003bc0: 27 00 80 8c sethi %hi(0x2023000), %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2003bc4: aa 06 20 54 add %i0, 0x54, %l5 2003bc8: a8 15 20 48 or %l4, 0x48, %l4 2003bcc: a6 14 e0 20 or %l3, 0x20, %l3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2003bd0: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 2003bd4: 10 80 00 14 b 2003c24 2003bd8: a4 06 60 01 add %i1, 1, %l2 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2003bdc: c2 05 00 00 ld [ %l4 ], %g1 2003be0: 90 10 00 13 mov %l3, %o0 2003be4: d2 00 60 08 ld [ %g1 + 8 ], %o1 2003be8: 40 00 3f 15 call 201383c 2003bec: a2 04 60 01 inc %l1 !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++ ) 2003bf0: 80 a4 40 19 cmp %l1, %i1 2003bf4: 24 bf ff fb ble,a 2003be0 2003bf8: c2 05 00 00 ld [ %l4 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 2003bfc: 7f ff ff 71 call 20039c0 2003c00: 90 10 00 10 mov %l0, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 2003c04: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003c08: 80 a0 60 01 cmp %g1, 1 2003c0c: 32 80 00 06 bne,a 2003c24 2003c10: e0 04 00 00 ld [ %l0 ], %l0 IMFS_dump_directory( the_jnode, level + 1 ); 2003c14: 90 10 00 10 mov %l0, %o0 2003c18: 7f ff ff c8 call 2003b38 2003c1c: 92 10 00 12 mov %l2, %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 ) { 2003c20: e0 04 00 00 ld [ %l0 ], %l0 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2003c24: 80 a4 00 15 cmp %l0, %l5 2003c28: 12 bf ff ed bne 2003bdc 2003c2c: a2 10 20 00 clr %l1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 2003c30: 81 c7 e0 08 ret 2003c34: 81 e8 00 00 restore 02009588 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009588: 9d e3 bf 60 save %sp, -160, %sp case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 200958c: 2b 00 80 6a sethi %hi(0x201a800), %l5 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009590: a0 10 00 18 mov %i0, %l0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009594: aa 15 63 c4 or %l5, 0x3c4, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009598: e2 06 c0 00 ld [ %i3 ], %l1 200959c: ac 10 20 01 mov 1, %l6 20095a0: a4 10 20 00 clr %l2 * 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 ); 20095a4: a6 07 bf c0 add %fp, -64, %l3 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 20095a8: 10 80 00 6a b 2009750 20095ac: a8 07 bf fc add %fp, -4, %l4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 20095b0: 90 04 00 12 add %l0, %l2, %o0 20095b4: 92 10 00 19 mov %i1, %o1 20095b8: 94 10 00 13 mov %l3, %o2 20095bc: 40 00 02 3e call 2009eb4 20095c0: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 20095c4: 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 ); 20095c8: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 20095cc: 80 a0 60 00 cmp %g1, 0 20095d0: 02 80 00 56 be 2009728 20095d4: f0 07 bf fc ld [ %fp + -4 ], %i0 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 20095d8: 80 a2 20 00 cmp %o0, 0 20095dc: 22 80 00 10 be,a 200961c 20095e0: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 20095e4: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 20095e8: 80 a0 60 01 cmp %g1, 1 20095ec: 32 80 00 0c bne,a 200961c 20095f0: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 20095f4: 90 10 00 1b mov %i3, %o0 20095f8: 7f ff ff 7e call 20093f0 20095fc: 92 10 20 01 mov 1, %o1 2009600: 80 a2 20 00 cmp %o0, 0 2009604: 32 80 00 06 bne,a 200961c 2009608: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 200960c: 40 00 14 fa call 200e9f4 <__errno> 2009610: b0 10 3f ff mov -1, %i0 2009614: 10 80 00 4c b 2009744 2009618: 82 10 20 0d mov 0xd, %g1 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 200961c: b2 26 40 18 sub %i1, %i0, %i1 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 2009620: 80 a5 a0 03 cmp %l6, 3 2009624: 02 80 00 1b be 2009690 2009628: e2 06 c0 00 ld [ %i3 ], %l1 200962c: 80 a5 a0 04 cmp %l6, 4 2009630: 02 80 00 42 be 2009738 2009634: 80 a5 a0 02 cmp %l6, 2 2009638: 12 80 00 47 bne 2009754 200963c: 80 a5 a0 04 cmp %l6, 4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 2009640: c2 05 40 00 ld [ %l5 ], %g1 2009644: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2009648: 80 a4 40 01 cmp %l1, %g1 200964c: 02 bf ff da be 20095b4 2009650: 90 04 00 12 add %l0, %l2, %o0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 2009654: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 2009658: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 200965c: 80 a4 40 01 cmp %l1, %g1 2009660: 32 80 00 04 bne,a 2009670 2009664: e2 04 60 08 ld [ %l1 + 8 ], %l1 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 2009668: 10 80 00 47 b 2009784 200966c: 92 02 60 08 add %o1, 8, %o1 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 2009670: 80 a4 60 00 cmp %l1, 0 2009674: 32 bf ff cf bne,a 20095b0 2009678: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 200967c: 40 00 14 de call 200e9f4 <__errno> 2009680: b0 10 3f ff mov -1, %i0 2009684: ec 22 00 00 st %l6, [ %o0 ] 2009688: 81 c7 e0 08 ret 200968c: 81 e8 00 00 restore case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 2009690: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2009694: 80 a0 60 03 cmp %g1, 3 2009698: 12 80 00 0a bne 20096c0 200969c: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 20096a0: 90 10 00 1b mov %i3, %o0 20096a4: 7f ff ff 6b call 2009450 20096a8: 92 10 20 00 clr %o1 node = pathloc->node_access; 20096ac: e2 06 c0 00 ld [ %i3 ], %l1 if ( !node ) 20096b0: 80 a4 60 00 cmp %l1, 0 20096b4: 32 80 00 0d bne,a 20096e8 20096b8: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 20096bc: 30 80 00 0e b,a 20096f4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 20096c0: 32 80 00 0a bne,a 20096e8 20096c4: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 20096c8: 90 10 00 1b mov %i3, %o0 20096cc: 7f ff ff 79 call 20094b0 20096d0: 92 10 20 00 clr %o1 node = pathloc->node_access; 20096d4: e2 06 c0 00 ld [ %i3 ], %l1 if ( result == -1 ) 20096d8: 80 a2 3f ff cmp %o0, -1 20096dc: 02 bf ff eb be 2009688 20096e0: b0 10 00 08 mov %o0, %i0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 20096e4: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 20096e8: 80 a0 60 01 cmp %g1, 1 20096ec: 22 80 00 06 be,a 2009704 20096f0: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 20096f4: 40 00 14 c0 call 200e9f4 <__errno> 20096f8: b0 10 3f ff mov -1, %i0 20096fc: 10 80 00 12 b 2009744 2009700: 82 10 20 14 mov 0x14, %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 ) { 2009704: 80 a2 60 00 cmp %o1, 0 2009708: 12 80 00 1f bne 2009784 200970c: 92 02 60 1c add %o1, 0x1c, %o1 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009710: 90 10 00 11 mov %l1, %o0 2009714: 40 00 01 bd call 2009e08 2009718: 92 10 00 13 mov %l3, %o1 if ( !node ) 200971c: a2 92 20 00 orcc %o0, 0, %l1 2009720: 32 bf ff a4 bne,a 20095b0 2009724: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 2009728: 40 00 14 b3 call 200e9f4 <__errno> 200972c: b0 10 3f ff mov -1, %i0 2009730: 10 80 00 05 b 2009744 2009734: 82 10 20 02 mov 2, %g1 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 2009738: 40 00 14 af call 200e9f4 <__errno> 200973c: b0 10 3f ff mov -1, %i0 2009740: 82 10 20 5b mov 0x5b, %g1 2009744: c2 22 00 00 st %g1, [ %o0 ] 2009748: 81 c7 e0 08 ret 200974c: 81 e8 00 00 restore /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 2009750: 80 a5 a0 04 cmp %l6, 4 2009754: 02 80 00 04 be 2009764 2009758: 80 a5 a0 00 cmp %l6, 0 200975c: 12 bf ff 96 bne 20095b4 2009760: 90 04 00 12 add %l0, %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 ) { 2009764: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2009768: 80 a0 60 01 cmp %g1, 1 200976c: 12 80 00 19 bne 20097d0 2009770: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 2009774: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 2009778: 80 a2 60 00 cmp %o1, 0 200977c: 02 80 00 15 be 20097d0 2009780: 92 02 60 1c add %o1, 0x1c, %o1 newloc = node->info.directory.mt_fs->mt_fs_root; 2009784: a2 07 bf e8 add %fp, -24, %l1 2009788: 94 10 20 14 mov 0x14, %o2 200978c: 40 00 16 d5 call 200f2e0 2009790: 90 10 00 11 mov %l1, %o0 *pathloc = newloc; 2009794: 92 10 00 11 mov %l1, %o1 2009798: 94 10 20 14 mov 0x14, %o2 200979c: 40 00 16 d1 call 200f2e0 20097a0: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 20097a4: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 20097a8: d0 07 bf fc ld [ %fp + -4 ], %o0 20097ac: c2 00 40 00 ld [ %g1 ], %g1 20097b0: 92 06 40 08 add %i1, %o0, %o1 20097b4: 94 10 00 1a mov %i2, %o2 20097b8: 90 24 80 08 sub %l2, %o0, %o0 20097bc: 96 10 00 1b mov %i3, %o3 20097c0: 9f c0 40 00 call %g1 20097c4: 90 04 00 08 add %l0, %o0, %o0 20097c8: 81 c7 e0 08 ret 20097cc: 91 e8 00 08 restore %g0, %o0, %o0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 20097d0: 7f ff fe ec call 2009380 20097d4: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 20097d8: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 20097dc: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 20097e0: 7f ff ff 04 call 20093f0 20097e4: 90 10 00 1b mov %i3, %o0 20097e8: 80 a2 20 00 cmp %o0, 0 20097ec: 12 80 00 06 bne 2009804 20097f0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 20097f4: 40 00 14 80 call 200e9f4 <__errno> 20097f8: b0 10 3f ff mov -1, %i0 ! ffffffff 20097fc: 82 10 20 0d mov 0xd, %g1 2009800: c2 22 00 00 st %g1, [ %o0 ] return result; } 2009804: 81 c7 e0 08 ret 2009808: 81 e8 00 00 restore 020098c8 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 20098c8: 9d e3 bf 60 save %sp, -160, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 20098cc: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 20098d0: 90 10 00 18 mov %i0, %o0 20098d4: 40 00 17 ff call 200f8d0 20098d8: 2b 00 80 6a sethi %hi(0x201a800), %l5 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 20098dc: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 20098e0: a4 10 20 00 clr %l2 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 20098e4: a8 07 bf c0 add %fp, -64, %l4 20098e8: ac 07 bf fc add %fp, -4, %l6 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 20098ec: a6 10 00 08 mov %o0, %l3 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 20098f0: aa 15 63 c4 or %l5, 0x3c4, %l5 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 20098f4: 92 10 00 13 mov %l3, %o1 20098f8: 90 04 40 12 add %l1, %l2, %o0 20098fc: 94 10 00 14 mov %l4, %o2 2009900: 40 00 01 6d call 2009eb4 2009904: 96 10 00 16 mov %l6, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 2009908: c2 06 40 00 ld [ %i1 ], %g1 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 200990c: f0 07 bf fc ld [ %fp + -4 ], %i0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 2009910: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 2009914: 80 a0 60 00 cmp %g1, 0 2009918: 02 80 00 82 be 2009b20 200991c: a6 24 c0 18 sub %l3, %i0, %l3 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009920: 80 a2 20 00 cmp %o0, 0 2009924: 22 80 00 10 be,a 2009964 2009928: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 200992c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2009930: 80 a0 60 01 cmp %g1, 1 2009934: 32 80 00 0c bne,a 2009964 2009938: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 200993c: 90 10 00 19 mov %i1, %o0 2009940: 7f ff fe ac call 20093f0 2009944: 92 10 20 01 mov 1, %o1 2009948: 80 a2 20 00 cmp %o0, 0 200994c: 32 80 00 06 bne,a 2009964 2009950: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 2009954: 40 00 14 28 call 200e9f4 <__errno> 2009958: b0 10 3f ff mov -1, %i0 200995c: 10 80 00 83 b 2009b68 2009960: 82 10 20 0d mov 0xd, %g1 node = pathloc->node_access; switch( type ) { 2009964: 80 a5 e0 02 cmp %l7, 2 2009968: 02 80 00 0f be 20099a4 200996c: e0 06 40 00 ld [ %i1 ], %l0 2009970: 80 a5 e0 02 cmp %l7, 2 2009974: 18 80 00 07 bgu 2009990 2009978: 80 a5 e0 03 cmp %l7, 3 200997c: 80 a5 e0 00 cmp %l7, 0 2009980: 02 80 00 56 be 2009ad8 2009984: 92 10 00 13 mov %l3, %o1 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 2009988: 10 bf ff dd b 20098fc 200998c: 90 04 40 12 add %l1, %l2, %o0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 2009990: 02 80 00 19 be 20099f4 2009994: 80 a5 e0 04 cmp %l7, 4 2009998: 12 bf ff d8 bne 20098f8 200999c: 92 10 00 13 mov %l3, %o1 20099a0: 30 80 00 52 b,a 2009ae8 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 20099a4: c2 05 40 00 ld [ %l5 ], %g1 20099a8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 20099ac: 80 a4 00 01 cmp %l0, %g1 20099b0: 02 bf ff d2 be 20098f8 20099b4: 92 10 00 13 mov %l3, %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 20099b8: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 20099bc: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 20099c0: 80 a4 00 01 cmp %l0, %g1 20099c4: 32 80 00 04 bne,a 20099d4 20099c8: e0 04 20 08 ld [ %l0 + 8 ], %l0 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 20099cc: 10 80 00 2a b 2009a74 20099d0: 92 02 60 08 add %o1, 8, %o1 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 20099d4: 80 a4 20 00 cmp %l0, 0 20099d8: 32 bf ff c7 bne,a 20098f4 20099dc: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 20099e0: 40 00 14 05 call 200e9f4 <__errno> 20099e4: b0 10 3f ff mov -1, %i0 20099e8: ee 22 00 00 st %l7, [ %o0 ] 20099ec: 81 c7 e0 08 ret 20099f0: 81 e8 00 00 restore pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 20099f4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20099f8: 80 a0 60 03 cmp %g1, 3 20099fc: 12 80 00 0a bne 2009a24 2009a00: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); 2009a04: 90 10 00 19 mov %i1, %o0 2009a08: 7f ff ff 81 call 200980c 2009a0c: 92 10 20 00 clr %o1 if ( result == -1 ) 2009a10: 80 a2 3f ff cmp %o0, -1 2009a14: 12 80 00 0c bne 2009a44 2009a18: b0 10 00 08 mov %o0, %i0 2009a1c: 81 c7 e0 08 ret <== NOT EXECUTED 2009a20: 81 e8 00 00 restore <== NOT EXECUTED return -1; } else if ( node->type == IMFS_SYM_LINK ) { 2009a24: 32 80 00 09 bne,a 2009a48 2009a28: d0 06 40 00 ld [ %i1 ], %o0 result = IMFS_evaluate_link( pathloc, 0 ); 2009a2c: 90 10 00 19 mov %i1, %o0 2009a30: 7f ff ff 77 call 200980c 2009a34: 92 10 20 00 clr %o1 if ( result == -1 ) 2009a38: 80 a2 3f ff cmp %o0, -1 2009a3c: 02 bf ff ec be 20099ec 2009a40: b0 10 00 08 mov %o0, %i0 return -1; } node = pathloc->node_access; 2009a44: d0 06 40 00 ld [ %i1 ], %o0 if ( !node ) 2009a48: 80 a2 20 00 cmp %o0, 0 2009a4c: 02 80 00 44 be 2009b5c 2009a50: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 2009a54: c2 02 20 48 ld [ %o0 + 0x48 ], %g1 2009a58: 80 a0 60 01 cmp %g1, 1 2009a5c: 12 80 00 40 bne 2009b5c 2009a60: 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 ) { 2009a64: d2 02 20 5c ld [ %o0 + 0x5c ], %o1 2009a68: 80 a2 60 00 cmp %o1, 0 2009a6c: 02 80 00 14 be 2009abc 2009a70: 92 02 60 1c add %o1, 0x1c, %o1 newloc = node->info.directory.mt_fs->mt_fs_root; 2009a74: a0 07 bf e8 add %fp, -24, %l0 2009a78: 94 10 20 14 mov 0x14, %o2 2009a7c: 40 00 16 19 call 200f2e0 2009a80: 90 10 00 10 mov %l0, %o0 *pathloc = newloc; 2009a84: 92 10 00 10 mov %l0, %o1 2009a88: 94 10 20 14 mov 0x14, %o2 2009a8c: 40 00 16 15 call 200f2e0 2009a90: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 2009a94: c2 06 60 0c ld [ %i1 + 0xc ], %g1 2009a98: c4 07 bf fc ld [ %fp + -4 ], %g2 2009a9c: c2 00 60 04 ld [ %g1 + 4 ], %g1 2009aa0: a4 24 80 02 sub %l2, %g2, %l2 2009aa4: 92 10 00 19 mov %i1, %o1 2009aa8: 90 04 40 12 add %l1, %l2, %o0 2009aac: 9f c0 40 00 call %g1 2009ab0: 94 10 00 1a mov %i2, %o2 2009ab4: 81 c7 e0 08 ret 2009ab8: 91 e8 00 08 restore %g0, %o0, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 2009abc: 40 00 00 d3 call 2009e08 2009ac0: 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 ) 2009ac4: a0 92 20 00 orcc %o0, 0, %l0 2009ac8: 02 80 00 0c be 2009af8 2009acc: c4 07 bf fc ld [ %fp + -4 ], %g2 done = true; else pathloc->node_access = node; 2009ad0: 10 bf ff 89 b 20098f4 2009ad4: e0 26 40 00 st %l0, [ %i1 ] break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 2009ad8: 40 00 13 c7 call 200e9f4 <__errno> 2009adc: b0 10 3f ff mov -1, %i0 2009ae0: 10 80 00 22 b 2009b68 2009ae4: 82 10 20 11 mov 0x11, %g1 break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 2009ae8: 40 00 13 c3 call 200e9f4 <__errno> 2009aec: b0 10 3f ff mov -1, %i0 2009af0: 10 80 00 1e b 2009b68 2009af4: 82 10 20 5b mov 0x5b, %g1 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 2009af8: 82 04 40 12 add %l1, %l2, %g1 2009afc: a4 24 80 02 sub %l2, %g2, %l2 2009b00: a2 04 40 12 add %l1, %l2, %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++) { 2009b04: 10 80 00 0b b 2009b30 2009b08: e2 26 80 00 st %l1, [ %i2 ] if ( !IMFS_is_separator( path[ i ] ) ) 2009b0c: 80 a0 a0 5c cmp %g2, 0x5c 2009b10: 02 80 00 08 be 2009b30 2009b14: 80 a0 a0 2f cmp %g2, 0x2f 2009b18: 22 80 00 07 be,a 2009b34 2009b1c: c4 48 40 00 ldsb [ %g1 ], %g2 rtems_set_errno_and_return_minus_one( ENOENT ); 2009b20: 40 00 13 b5 call 200e9f4 <__errno> 2009b24: b0 10 3f ff mov -1, %i0 2009b28: 10 80 00 10 b 2009b68 2009b2c: 82 10 20 02 mov 2, %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++) { 2009b30: c4 48 40 00 ldsb [ %g1 ], %g2 2009b34: 80 a0 a0 00 cmp %g2, 0 2009b38: 12 bf ff f5 bne 2009b0c 2009b3c: 82 00 60 01 inc %g1 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 2009b40: 7f ff fe 10 call 2009380 2009b44: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 2009b48: c2 06 40 00 ld [ %i1 ], %g1 2009b4c: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 2009b50: 80 a0 60 01 cmp %g1, 1 2009b54: 02 80 00 08 be 2009b74 2009b58: b0 10 00 08 mov %o0, %i0 if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 2009b5c: 40 00 13 a6 call 200e9f4 <__errno> 2009b60: b0 10 3f ff mov -1, %i0 2009b64: 82 10 20 14 mov 0x14, %g1 2009b68: c2 22 00 00 st %g1, [ %o0 ] 2009b6c: 81 c7 e0 08 ret 2009b70: 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 ) ) 2009b74: 90 10 00 19 mov %i1, %o0 2009b78: 7f ff fe 1e call 20093f0 2009b7c: 92 10 20 03 mov 3, %o1 2009b80: 80 a2 20 00 cmp %o0, 0 2009b84: 12 80 00 06 bne 2009b9c 2009b88: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 2009b8c: 40 00 13 9a call 200e9f4 <__errno> 2009b90: b0 10 3f ff mov -1, %i0 ! ffffffff 2009b94: 82 10 20 0d mov 0xd, %g1 2009b98: c2 22 00 00 st %g1, [ %o0 ] return result; } 2009b9c: 81 c7 e0 08 ret 2009ba0: 81 e8 00 00 restore 02009450 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009450: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 2009454: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 2009458: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200945c: 80 a0 a0 03 cmp %g2, 3 2009460: 22 80 00 04 be,a 2009470 2009464: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 rtems_fatal_error_occurred (0xABCD0000); 2009468: 7f ff f2 03 call 2005c74 <== NOT EXECUTED 200946c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; IMFS_Set_handlers( node ); 2009470: 90 10 00 18 mov %i0, %o0 2009474: 7f ff ff c3 call 2009380 2009478: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 200947c: 90 10 00 18 mov %i0, %o0 2009480: 92 10 00 19 mov %i1, %o1 2009484: 7f ff ff db call 20093f0 2009488: b0 10 20 00 clr %i0 200948c: 80 a2 20 00 cmp %o0, 0 2009490: 12 80 00 06 bne 20094a8 2009494: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 2009498: 40 00 15 57 call 200e9f4 <__errno> <== NOT EXECUTED 200949c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20094a0: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 20094a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 20094a8: 81 c7 e0 08 ret 20094ac: 81 e8 00 00 restore 020093f0 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 20093f0: 9d e3 bf a0 save %sp, -96, %sp } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 20093f4: 40 00 04 64 call 200a584 20093f8: e0 06 00 00 ld [ %i0 ], %l0 st_gid = getegid(); 20093fc: 40 00 04 5e call 200a574 2009400: 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 ) 2009404: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 2009408: a3 2c 60 10 sll %l1, 0x10, %l1 200940c: a3 34 60 10 srl %l1, 0x10, %l1 2009410: 80 a4 40 01 cmp %l1, %g1 2009414: 02 80 00 09 be 2009438 2009418: 83 2e 60 06 sll %i1, 6, %g1 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 200941c: c2 14 20 3a lduh [ %l0 + 0x3a ], %g1 2009420: 91 2a 20 10 sll %o0, 0x10, %o0 2009424: 91 32 20 10 srl %o0, 0x10, %o0 2009428: 80 a2 00 01 cmp %o0, %g1 200942c: 02 80 00 03 be 2009438 2009430: 83 2e 60 03 sll %i1, 3, %g1 2009434: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED flags_to_test <<= 3; 2009438: c4 14 20 2e lduh [ %l0 + 0x2e ], %g2 200943c: 82 28 40 02 andn %g1, %g2, %g1 */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 2009440: 80 a0 00 01 cmp %g0, %g1 2009444: b0 60 3f ff subx %g0, -1, %i0 2009448: 81 c7 e0 08 ret 200944c: 81 e8 00 00 restore 020094b0 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 20094b0: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 20094b4: e2 06 00 00 ld [ %i0 ], %l1 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 20094b8: a0 10 00 18 mov %i0, %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 20094bc: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 20094c0: 80 a0 60 04 cmp %g1, 4 20094c4: 12 80 00 07 bne 20094e0 20094c8: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 20094cc: c2 04 60 08 ld [ %l1 + 8 ], %g1 20094d0: 80 a0 60 00 cmp %g1, 0 20094d4: 32 80 00 05 bne,a 20094e8 20094d8: c2 26 00 00 st %g1, [ %i0 ] rtems_fatal_error_occurred( 0xBAD00000 ); 20094dc: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 20094e0: 7f ff f1 e5 call 2005c74 <== NOT EXECUTED 20094e4: 01 00 00 00 nop <== NOT EXECUTED * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 20094e8: c2 04 60 50 ld [ %l1 + 0x50 ], %g1 20094ec: c2 48 40 00 ldsb [ %g1 ], %g1 20094f0: 80 a0 60 5c cmp %g1, 0x5c 20094f4: 02 80 00 06 be 200950c 20094f8: 80 a0 60 2f cmp %g1, 0x2f 20094fc: 02 80 00 04 be 200950c 2009500: 80 a0 60 00 cmp %g1, 0 2009504: 12 80 00 09 bne 2009528 2009508: 82 10 20 00 clr %g1 200950c: 03 00 80 6a sethi %hi(0x201a800), %g1 2009510: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 ! 201abc4 2009514: 90 10 00 10 mov %l0, %o0 2009518: 92 02 60 18 add %o1, 0x18, %o1 200951c: 40 00 17 71 call 200f2e0 2009520: 94 10 20 14 mov 0x14, %o2 2009524: 82 10 20 01 mov 1, %g1 * 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] ), 2009528: e2 04 60 50 ld [ %l1 + 0x50 ], %l1 200952c: a2 04 40 01 add %l1, %g1, %l1 2009530: 40 00 18 e8 call 200f8d0 2009534: 90 10 00 11 mov %l1, %o0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 2009538: 94 10 00 19 mov %i1, %o2 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 200953c: 92 10 00 08 mov %o0, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 2009540: 96 10 00 10 mov %l0, %o3 2009544: 40 00 00 11 call 2009588 2009548: 90 10 00 11 mov %l1, %o0 200954c: b0 10 00 08 mov %o0, %i0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 2009550: 7f ff ff 8c call 2009380 2009554: 90 10 00 10 mov %l0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 2009558: 90 10 00 10 mov %l0, %o0 200955c: 7f ff ff a5 call 20093f0 2009560: 92 10 00 19 mov %i1, %o1 2009564: 80 a2 20 00 cmp %o0, 0 2009568: 12 80 00 06 bne 2009580 200956c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 2009570: 40 00 15 21 call 200e9f4 <__errno> <== NOT EXECUTED 2009574: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2009578: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200957c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 2009580: 81 c7 e0 08 ret 2009584: 81 e8 00 00 restore 0200d154 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200d154: 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(); 200d158: 7f ff f5 0b call 200a584 200d15c: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200d160: 91 2a 20 10 sll %o0, 0x10, %o0 200d164: 91 32 20 10 srl %o0, 0x10, %o0 200d168: 80 a2 20 00 cmp %o0, 0 200d16c: 22 80 00 0c be,a 200d19c 200d170: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 200d174: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 200d178: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200d17c: 22 80 00 08 be,a 200d19c <== NOT EXECUTED 200d180: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200d184: 40 00 06 1c call 200e9f4 <__errno> <== NOT EXECUTED 200d188: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200d18c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200d190: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200d194: 81 c7 e0 08 ret <== NOT EXECUTED 200d198: 81 e8 00 00 restore <== NOT EXECUTED */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); 200d19c: 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); 200d1a0: 82 08 70 00 and %g1, -4096, %g1 IMFS_update_ctime( jnode ); 200d1a4: 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); 200d1a8: b2 0e 6f ff and %i1, 0xfff, %i1 200d1ac: b2 16 40 01 or %i1, %g1, %i1 IMFS_update_ctime( jnode ); 200d1b0: 7f ff f4 f9 call 200a594 200d1b4: f2 34 20 2e sth %i1, [ %l0 + 0x2e ] 200d1b8: c2 07 bf f8 ld [ %fp + -8 ], %g1 200d1bc: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 200d1c0: 81 c7 e0 08 ret 200d1c4: 91 e8 20 00 restore %g0, 0, %o0 02009d4c : } int IMFS_fifo_close( rtems_libio_t *iop ) { 2009d4c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 2009d50: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 2009d54: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 2009d58: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 2009d5c: 40 00 0b 46 call 200ca74 <== NOT EXECUTED 2009d60: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED if (! err) { 2009d64: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009d68: 12 80 00 12 bne 2009db0 <== NOT EXECUTED 2009d6c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 2009d70: c2 04 60 18 ld [ %l1 + 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) 2009d74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 2009d78: 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) 2009d7c: 40 00 02 3e call 200a674 <== NOT EXECUTED 2009d80: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED 2009d84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009d88: 12 80 00 10 bne 2009dc8 <== NOT EXECUTED 2009d8c: 01 00 00 00 nop <== NOT EXECUTED 2009d90: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 2009d94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009d98: 12 80 00 0c bne 2009dc8 <== NOT EXECUTED 2009d9c: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 2009da0: 40 00 01 90 call 200a3e0 <== NOT EXECUTED 2009da4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2009da8: 81 c7 e0 08 ret <== NOT EXECUTED 2009dac: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 2009db0: 16 80 00 06 bge 2009dc8 <== NOT EXECUTED 2009db4: 01 00 00 00 nop <== NOT EXECUTED 2009db8: 40 00 13 0f call 200e9f4 <__errno> <== NOT EXECUTED 2009dbc: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009dc0: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009dc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009dc8: 81 c7 e0 08 ret <== NOT EXECUTED 2009dcc: 81 e8 00 00 restore <== NOT EXECUTED 02009bfc : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2009bfc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 2009c00: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2009c04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED int err; if (command == FIONBIO) { 2009c08: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2009c0c: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED int err; if (command == FIONBIO) { 2009c10: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2009c14: 12 80 00 0f bne 2009c50 <== NOT EXECUTED 2009c18: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (buffer == NULL) 2009c1c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2009c20: 02 80 00 12 be 2009c68 <== NOT EXECUTED 2009c24: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 2009c28: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 2009c2c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2009c30: 02 80 00 04 be 2009c40 <== NOT EXECUTED 2009c34: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 2009c38: 10 80 00 03 b 2009c44 <== NOT EXECUTED 2009c3c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 2009c40: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2009c44: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 2009c48: 81 c7 e0 08 ret <== NOT EXECUTED 2009c4c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 2009c50: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 2009c54: 40 00 0a 85 call 200c668 <== NOT EXECUTED 2009c58: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 2009c5c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009c60: 16 80 00 06 bge 2009c78 <== NOT EXECUTED 2009c64: 01 00 00 00 nop <== NOT EXECUTED 2009c68: 40 00 13 63 call 200e9f4 <__errno> <== NOT EXECUTED 2009c6c: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009c70: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009c74: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009c78: 81 c7 e0 08 ret <== NOT EXECUTED 2009c7c: 81 e8 00 00 restore <== NOT EXECUTED 02009ba4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 2009ba4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 2009ba8: 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 ) { 2009bac: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 2009bb0: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 2009bb4: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2009bb8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009bbc: 40 00 0a 8e call 200c5f4 <== NOT EXECUTED 2009bc0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 2009bc4: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 2009bc8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 2009bcc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2009bd0: 16 80 00 08 bge 2009bf0 <== NOT EXECUTED 2009bd4: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 2009bd8: 40 00 13 87 call 200e9f4 <__errno> <== NOT EXECUTED 2009bdc: a0 20 00 10 neg %l0 <== NOT EXECUTED 2009be0: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 2009be4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 2009be8: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 2009bec: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED } 2009bf0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 2009bf4: 81 c7 e0 08 ret <== NOT EXECUTED 2009bf8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED 02009ce8 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2009ce8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 2009cec: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2009cf0: 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); 2009cf4: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2009cf8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009cfc: 40 00 0a 74 call 200c6cc <== NOT EXECUTED 2009d00: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 2009d04: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009d08: 04 80 00 08 ble 2009d28 <== NOT EXECUTED 2009d0c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 2009d10: 40 00 02 21 call 200a594 <== NOT EXECUTED 2009d14: 92 10 20 00 clr %o1 <== NOT EXECUTED 2009d18: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2009d1c: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED 2009d20: 81 c7 e0 08 ret <== NOT EXECUTED 2009d24: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 2009d28: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2009d2c: 02 80 00 06 be 2009d44 <== NOT EXECUTED 2009d30: 01 00 00 00 nop <== NOT EXECUTED 2009d34: 40 00 13 30 call 200e9f4 <__errno> <== NOT EXECUTED 2009d38: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009d3c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009d40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009d44: 81 c7 e0 08 ret <== NOT EXECUTED 2009d48: 81 e8 00 00 restore <== NOT EXECUTED 02009c80 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2009c80: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 2009c84: 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 ) { 2009c88: 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); 2009c8c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2009c90: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009c94: 40 00 0a f5 call 200c868 <== NOT EXECUTED 2009c98: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 2009c9c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009ca0: 04 80 00 09 ble 2009cc4 <== NOT EXECUTED 2009ca4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 2009ca8: 40 00 02 3b call 200a594 <== NOT EXECUTED 2009cac: 92 10 20 00 clr %o1 <== NOT EXECUTED 2009cb0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2009cb4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 2009cb8: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 2009cbc: 81 c7 e0 08 ret <== NOT EXECUTED 2009cc0: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 2009cc4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2009cc8: 02 80 00 06 be 2009ce0 <== NOT EXECUTED 2009ccc: 01 00 00 00 nop <== NOT EXECUTED 2009cd0: 40 00 13 49 call 200e9f4 <__errno> <== NOT EXECUTED 2009cd4: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009cd8: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009cdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009ce0: 81 c7 e0 08 ret <== NOT EXECUTED 2009ce4: 81 e8 00 00 restore <== NOT EXECUTED 02009e08 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 2009e08: 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 ); 2009e0c: 80 a6 20 00 cmp %i0, 0 2009e10: 12 80 00 0a bne 2009e38 2009e14: 80 a6 60 00 cmp %i1, 0 2009e18: 11 00 80 67 sethi %hi(0x2019c00), %o0 <== NOT EXECUTED 2009e1c: 15 00 80 67 sethi %hi(0x2019c00), %o2 <== NOT EXECUTED 2009e20: 17 00 80 67 sethi %hi(0x2019c00), %o3 <== NOT EXECUTED 2009e24: 90 12 22 68 or %o0, 0x268, %o0 <== NOT EXECUTED 2009e28: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED 2009e2c: 96 12 e2 b8 or %o3, 0x2b8, %o3 <== NOT EXECUTED 2009e30: 7f ff e0 0e call 2001e68 <__assert_func> <== NOT EXECUTED 2009e34: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 2009e38: 02 80 00 1c be 2009ea8 2009e3c: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 2009e40: 13 00 80 67 sethi %hi(0x2019c00), %o1 2009e44: 40 00 16 52 call 200f78c 2009e48: 92 12 62 c8 or %o1, 0x2c8, %o1 ! 2019ec8 2009e4c: 80 a2 20 00 cmp %o0, 0 2009e50: 02 80 00 09 be 2009e74 2009e54: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 2009e58: 13 00 80 67 sethi %hi(0x2019c00), %o1 2009e5c: 40 00 16 4c call 200f78c 2009e60: 92 12 62 d0 or %o1, 0x2d0, %o1 ! 2019ed0 2009e64: 80 a2 20 00 cmp %o0, 0 2009e68: 12 80 00 05 bne 2009e7c 2009e6c: a0 06 20 54 add %i0, 0x54, %l0 return directory->Parent; 2009e70: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 2009e74: 81 c7 e0 08 ret <== NOT EXECUTED 2009e78: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 2009e7c: 10 80 00 08 b 2009e9c 2009e80: f0 06 20 50 ld [ %i0 + 0x50 ], %i0 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) 2009e84: 40 00 16 42 call 200f78c 2009e88: 92 06 20 0c add %i0, 0xc, %o1 2009e8c: 80 a2 20 00 cmp %o0, 0 2009e90: 02 80 00 07 be 2009eac 2009e94: 01 00 00 00 nop the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 2009e98: f0 06 00 00 ld [ %i0 ], %i0 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 2009e9c: 80 a6 00 10 cmp %i0, %l0 2009ea0: 12 bf ff f9 bne 2009e84 2009ea4: 90 10 00 19 mov %i1, %o0 2009ea8: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 2009eac: 81 c7 e0 08 ret 2009eb0: 81 e8 00 00 restore 0200f2cc : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 200f2cc: 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; 200f2d0: 94 10 20 14 mov 0x14, %o2 200f2d4: 90 07 bf ec add %fp, -20, %o0 /* * 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; 200f2d8: e0 06 20 1c ld [ %i0 + 0x1c ], %l0 temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200f2dc: a2 10 00 08 mov %o0, %l1 * 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; 200f2e0: 40 00 15 ba call 20149c8 200f2e4: 92 06 20 1c add %i0, 0x1c, %o1 /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 200f2e8: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 200f2ec: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 200f2f0: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200f2f4: 7f ff fd 52 call 200e83c 200f2f8: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 200f2fc: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 200f300: 80 a0 a0 01 cmp %g2, 1 200f304: 12 80 00 06 bne 200f31c 200f308: 82 04 20 54 add %l0, 0x54, %g1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200f30c: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200f310: 80 a0 80 01 cmp %g2, %g1 200f314: 12 80 00 09 bne 200f338 200f318: 80 a4 20 00 cmp %l0, 0 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 200f31c: 90 10 20 00 clr %o0 200f320: 7f ff cf 96 call 2003178 200f324: 92 10 00 11 mov %l1, %o1 if (result != 0) 200f328: 80 a2 20 00 cmp %o0, 0 200f32c: 12 80 00 13 bne 200f378 200f330: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 200f334: 80 a4 20 00 cmp %l0, 0 200f338: 22 80 00 11 be,a 200f37c 200f33c: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 200f340: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200f344: 80 a0 60 01 cmp %g1, 1 200f348: 32 bf ff ea bne,a 200f2f0 200f34c: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 200f350: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200f354: 84 04 20 54 add %l0, 0x54, %g2 200f358: 80 a0 40 02 cmp %g1, %g2 200f35c: 22 bf ff e5 be,a 200f2f0 200f360: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200f364: a0 90 60 00 orcc %g1, 0, %l0 200f368: 32 bf ff e2 bne,a 200f2f0 200f36c: e0 27 bf ec st %l0, [ %fp + -20 ] 200f370: 81 c7 e0 08 ret <== NOT EXECUTED 200f374: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200f378: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 200f37c: 81 c7 e0 08 ret 200f380: 81 e8 00 00 restore 02009fa8 : 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 ) { 2009fa8: 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, 2009fac: 03 00 80 6a sethi %hi(0x201a800), %g1 2009fb0: c2 00 62 b8 ld [ %g1 + 0x2b8 ], %g1 ! 201aab8 2009fb4: 86 10 20 00 clr %g3 2009fb8: 84 10 20 10 mov 0x10, %g2 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 2009fbc: 80 a0 80 01 cmp %g2, %g1 2009fc0: 02 80 00 06 be 2009fd8 2009fc4: 86 00 e0 01 inc %g3 2009fc8: 80 a0 e0 06 cmp %g3, 6 2009fcc: 12 bf ff fc bne 2009fbc 2009fd0: 85 28 a0 01 sll %g2, 1, %g2 2009fd4: 84 10 20 80 mov 0x80, %g2 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 2009fd8: 03 00 80 6c sethi %hi(0x201b000), %g1 /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); 2009fdc: 40 00 0c 08 call 200cffc 2009fe0: c4 20 62 7c st %g2, [ %g1 + 0x27c ] ! 201b27c 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; 2009fe4: 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(); 2009fe8: 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; 2009fec: 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; 2009ff0: 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; 2009ff4: 13 00 80 68 sethi %hi(0x201a000), %o1 2009ff8: 90 06 20 38 add %i0, 0x38, %o0 2009ffc: 40 00 14 b9 call 200f2e0 200a000: 92 12 62 4c or %o1, 0x24c, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 200a004: 90 10 20 01 mov 1, %o0 200a008: 40 00 00 b0 call 200a2c8 200a00c: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ) { 200a010: 82 92 20 00 orcc %o0, 0, %g1 200a014: 12 80 00 0a bne 200a03c 200a018: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 free(temp_mt_entry->mt_fs_root.node_access); 200a01c: 40 00 00 f1 call 200a3e0 <== NOT EXECUTED 200a020: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 200a024: 40 00 12 74 call 200e9f4 <__errno> <== NOT EXECUTED 200a028: 01 00 00 00 nop <== NOT EXECUTED 200a02c: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200a030: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a034: 81 c7 e0 08 ret <== NOT EXECUTED 200a038: 81 e8 00 00 restore <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 200a03c: 84 10 20 01 mov 1, %g2 200a040: c4 20 40 00 st %g2, [ %g1 ] 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; 200a044: c2 26 20 34 st %g1, [ %i0 + 0x34 ] * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 200a048: f6 20 60 08 st %i3, [ %g1 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 200a04c: c4 22 20 34 st %g2, [ %o0 + 0x34 ] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 200a050: f4 20 60 04 st %i2, [ %g1 + 4 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 200a054: 40 00 09 6a call 200c5fc 200a058: b0 10 20 00 clr %i0 return 0; } 200a05c: 81 c7 e0 08 ret 200a060: 81 e8 00 00 restore 02002e4c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 2002e4c: 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; 2002e50: c2 06 00 00 ld [ %i0 ], %g1 2002e54: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2002e58: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 2002e5c: 80 a0 60 07 cmp %g1, 7 2002e60: 08 80 00 06 bleu 2002e78 2002e64: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); 2002e68: 40 00 44 9d call 20140dc <__errno> 2002e6c: 01 00 00 00 nop 2002e70: 10 80 00 17 b 2002ecc 2002e74: 82 10 20 1f mov 0x1f, %g1 ! 1f /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 2002e78: 40 00 48 37 call 2014f54 2002e7c: 90 10 00 1a mov %i2, %o0 2002e80: a0 07 bf b0 add %fp, -80, %l0 2002e84: 92 10 00 08 mov %o0, %o1 2002e88: 96 07 bf fc add %fp, -4, %o3 2002e8c: 94 10 00 10 mov %l0, %o2 2002e90: 40 00 31 68 call 200f430 2002e94: 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( 2002e98: 90 10 00 19 mov %i1, %o0 2002e9c: 94 10 00 10 mov %l0, %o2 2002ea0: 92 10 20 03 mov 3, %o1 2002ea4: 17 00 00 28 sethi %hi(0xa000), %o3 2002ea8: 98 07 bf d8 add %fp, -40, %o4 2002eac: 40 00 2e 17 call 200e708 2002eb0: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2002eb4: 80 a2 20 00 cmp %o0, 0 2002eb8: 12 80 00 08 bne 2002ed8 2002ebc: c2 07 bf d8 ld [ %fp + -40 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2002ec0: 40 00 44 87 call 20140dc <__errno> <== NOT EXECUTED 2002ec4: 01 00 00 00 nop <== NOT EXECUTED 2002ec8: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002ecc: c2 22 00 00 st %g1, [ %o0 ] 2002ed0: 81 c7 e0 08 ret 2002ed4: 91 e8 3f ff restore %g0, -1, %o0 /* * 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 ); 2002ed8: 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++; 2002edc: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002ee0: 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++; 2002ee4: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002ee8: 40 00 02 66 call 2003880 2002eec: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] 2002ef0: c4 07 bf f4 ld [ %fp + -12 ], %g2 2002ef4: c2 07 bf d8 ld [ %fp + -40 ], %g1 2002ef8: c4 20 60 44 st %g2, [ %g1 + 0x44 ] return 0; } 2002efc: 81 c7 e0 08 ret 2002f00: 91 e8 20 00 restore %g0, 0, %o0 02012104 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 2012104: 9d e3 bf a0 save %sp, -96, %sp 2012108: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 201210c: 80 a6 20 00 cmp %i0, 0 2012110: 12 80 00 0a bne 2012138 2012114: 92 10 00 19 mov %i1, %o1 2012118: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 201211c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012120: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012124: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012128: 94 12 a0 f0 or %o2, 0xf0, %o2 <== NOT EXECUTED 201212c: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 2012130: 10 80 00 0c b 2012160 <== NOT EXECUTED 2012134: 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 ); 2012138: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 201213c: 80 a0 60 05 cmp %g1, 5 2012140: 02 80 00 0a be 2012168 2012144: 15 00 80 80 sethi %hi(0x2020000), %o2 2012148: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 201214c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012150: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012154: 94 12 a0 f0 or %o2, 0xf0, %o2 <== NOT EXECUTED 2012158: 96 12 e3 70 or %o3, 0x370, %o3 <== NOT EXECUTED 201215c: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 2012160: 7f ff c4 a8 call 2003400 <__assert_func> <== NOT EXECUTED 2012164: 01 00 00 00 nop <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); 2012168: 7f ff fe 6c call 2011b18 201216c: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 2012170: 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 ); 2012174: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 2012178: 80 a0 60 00 cmp %g1, 0 201217c: 12 80 00 09 bne 20121a0 2012180: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 2012184: 7f ff fe 58 call 2011ae4 2012188: b0 10 20 01 mov 1, %i0 if ( !memory ) 201218c: 80 a2 20 00 cmp %o0, 0 2012190: 02 80 00 04 be 20121a0 2012194: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 2012198: d0 24 00 00 st %o0, [ %l0 ] 201219c: b0 10 20 00 clr %i0 return 0; } 20121a0: 81 c7 e0 08 ret 20121a4: 81 e8 00 00 restore 020121a8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 20121a8: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20121ac: 80 a6 20 00 cmp %i0, 0 20121b0: 32 80 00 0a bne,a 20121d8 20121b4: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 20121b8: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20121bc: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20121c0: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20121c4: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 20121c8: 94 12 a1 08 or %o2, 0x108, %o2 <== NOT EXECUTED 20121cc: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 20121d0: 10 80 00 0c b 2012200 <== NOT EXECUTED 20121d4: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 20121d8: 80 a0 60 05 cmp %g1, 5 20121dc: 02 80 00 0b be 2012208 20121e0: 03 00 80 83 sethi %hi(0x2020c00), %g1 20121e4: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20121e8: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20121ec: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20121f0: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 20121f4: 94 12 a1 08 or %o2, 0x108, %o2 <== NOT EXECUTED 20121f8: 96 12 e3 70 or %o3, 0x370, %o3 <== NOT EXECUTED 20121fc: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 2012200: 7f ff c4 80 call 2003400 <__assert_func> <== NOT EXECUTED 2012204: 01 00 00 00 nop <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 2012208: e0 00 63 d4 ld [ %g1 + 0x3d4 ], %l0 201220c: a3 34 20 02 srl %l0, 2, %l1 2012210: 92 10 00 11 mov %l1, %o1 2012214: 40 00 2c 44 call 201d324 <.umul> 2012218: 90 04 60 01 add %l1, 1, %o0 201221c: 92 10 00 11 mov %l1, %o1 2012220: 40 00 2c 41 call 201d324 <.umul> 2012224: 90 02 20 01 inc %o0 2012228: 92 10 00 10 mov %l0, %o1 201222c: 40 00 2c 3e call 201d324 <.umul> 2012230: 90 02 3f ff add %o0, -1, %o0 2012234: 82 10 20 00 clr %g1 2012238: 80 a0 40 19 cmp %g1, %i1 201223c: 34 80 00 0b bg,a 2012268 2012240: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 2012244: 80 a0 40 19 cmp %g1, %i1 2012248: 12 80 00 04 bne 2012258 201224c: 80 a2 00 1a cmp %o0, %i2 2012250: 38 80 00 06 bgu,a 2012268 2012254: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 2012258: 40 00 07 a1 call 20140dc <__errno> <== NOT EXECUTED 201225c: 01 00 00 00 nop <== NOT EXECUTED 2012260: 10 80 00 2b b 201230c <== NOT EXECUTED 2012264: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 2012268: 80 a6 40 11 cmp %i1, %l1 201226c: 14 80 00 09 bg 2012290 2012270: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 2012274: 80 a6 40 11 cmp %i1, %l1 2012278: 12 80 00 04 bne 2012288 201227c: 80 a6 80 13 cmp %i2, %l3 2012280: 18 80 00 05 bgu 2012294 2012284: a5 3c 20 1f sra %l0, 0x1f, %l2 2012288: 81 c7 e0 08 ret 201228c: 91 e8 20 00 restore %g0, 0, %o0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012290: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 2012294: 96 10 00 10 mov %l0, %o3 2012298: 94 10 00 12 mov %l2, %o2 201229c: 90 10 00 19 mov %i1, %o0 20122a0: 40 00 2d e6 call 201da38 <__divdi3> 20122a4: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 20122a8: 90 10 00 11 mov %l1, %o0 20122ac: 96 10 00 10 mov %l0, %o3 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 20122b0: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 20122b4: 94 10 00 12 mov %l2, %o2 20122b8: 40 00 2d e0 call 201da38 <__divdi3> 20122bc: 92 10 00 13 mov %l3, %o1 20122c0: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 20122c4: 10 80 00 15 b 2012318 20122c8: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 20122cc: 7f ff ff 8e call 2012104 20122d0: 92 10 00 10 mov %l0, %o1 20122d4: 80 a2 20 00 cmp %o0, 0 20122d8: 22 80 00 10 be,a 2012318 20122dc: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 20122e0: 10 80 00 06 b 20122f8 <== NOT EXECUTED 20122e4: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 20122e8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20122ec: 7f ff fe d7 call 2011e48 <== NOT EXECUTED 20122f0: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { for ( ; block>=old_blocks ; block-- ) { 20122f4: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 20122f8: 1a bf ff fc bcc 20122e8 <== NOT EXECUTED 20122fc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 2012300: 40 00 07 77 call 20140dc <__errno> <== NOT EXECUTED 2012304: 01 00 00 00 nop <== NOT EXECUTED 2012308: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 201230c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2012310: 81 c7 e0 08 ret <== NOT EXECUTED 2012314: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2012318: 80 a4 00 14 cmp %l0, %l4 201231c: 08 bf ff ec bleu 20122cc 2012320: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 2012324: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 2012328: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 201232c: 81 c7 e0 08 ret 2012330: 91 e8 20 00 restore %g0, 0, %o0 02011b18 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2011b18: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011b1c: 80 a6 20 00 cmp %i0, 0 2011b20: 32 80 00 0a bne,a 2011b48 2011b24: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011b28: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011b2c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011b30: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011b34: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2011b38: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED 2011b3c: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 2011b40: 10 80 00 0c b 2011b70 <== NOT EXECUTED 2011b44: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2011b48: 80 a0 60 05 cmp %g1, 5 2011b4c: 02 80 00 0b be 2011b78 2011b50: 03 00 80 83 sethi %hi(0x2020c00), %g1 2011b54: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011b58: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011b5c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011b60: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2011b64: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED 2011b68: 96 12 e3 70 or %o3, 0x370, %o3 <== NOT EXECUTED 2011b6c: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 2011b70: 7f ff c6 24 call 2003400 <__assert_func> <== NOT EXECUTED 2011b74: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2011b78: e0 00 63 d4 ld [ %g1 + 0x3d4 ], %l0 2011b7c: a1 34 20 02 srl %l0, 2, %l0 2011b80: 82 04 3f ff add %l0, -1, %g1 2011b84: 80 a6 40 01 cmp %i1, %g1 2011b88: 18 80 00 16 bgu 2011be0 2011b8c: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 2011b90: 80 a6 a0 00 cmp %i2, 0 2011b94: 02 80 00 0f be 2011bd0 2011b98: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 2011b9c: 80 a0 60 00 cmp %g1, 0 2011ba0: 32 80 00 09 bne,a 2011bc4 2011ba4: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 2011ba8: 7f ff ff cf call 2011ae4 2011bac: 01 00 00 00 nop if ( !p ) 2011bb0: 80 a2 20 00 cmp %o0, 0 2011bb4: 22 80 00 86 be,a 2011dcc 2011bb8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 2011bbc: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 2011bc0: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 2011bc4: b3 2e 60 02 sll %i1, 2, %i1 2011bc8: 81 c7 e0 08 ret 2011bcc: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 2011bd0: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 2011bd4: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 2011bd8: 10 80 00 32 b 2011ca0 2011bdc: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 2011be0: 40 00 2d d1 call 201d324 <.umul> <== NOT EXECUTED 2011be4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011be8: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 2011bec: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2011bf0: 18 80 00 30 bgu 2011cb0 <== NOT EXECUTED 2011bf4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 2011bf8: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011bfc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011c00: 40 00 2e af call 201d6bc <.urem> <== NOT EXECUTED 2011c04: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011c08: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011c0c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011c10: 40 00 2d ff call 201d40c <.udiv> <== NOT EXECUTED 2011c14: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2011c18: 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; 2011c1c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2011c20: 02 80 00 18 be 2011c80 <== NOT EXECUTED 2011c24: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 2011c28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011c2c: 12 80 00 08 bne 2011c4c <== NOT EXECUTED 2011c30: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 2011c34: 7f ff ff ac call 2011ae4 <== NOT EXECUTED 2011c38: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2011c3c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011c40: 22 80 00 63 be,a 2011dcc <== NOT EXECUTED 2011c44: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 2011c48: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 2011c4c: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 2011c50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011c54: 12 80 00 08 bne 2011c74 <== NOT EXECUTED 2011c58: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 2011c5c: 7f ff ff a2 call 2011ae4 <== NOT EXECUTED 2011c60: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2011c64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011c68: 22 80 00 59 be,a 2011dcc <== NOT EXECUTED 2011c6c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 2011c70: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 2011c74: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2011c78: 81 c7 e0 08 ret <== NOT EXECUTED 2011c7c: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 2011c80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011c84: 02 80 00 52 be 2011dcc <== NOT EXECUTED 2011c88: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2011c8c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 2011c90: 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 ]; 2011c94: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2011c98: 80 a0 60 00 cmp %g1, 0 <== 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 ]; 2011c9c: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2011ca0: 12 80 00 4b bne 2011dcc 2011ca4: 01 00 00 00 nop p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 2011ca8: 81 c7 e0 08 ret <== NOT EXECUTED 2011cac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 2011cb0: 90 02 20 01 inc %o0 <== NOT EXECUTED 2011cb4: 40 00 2d 9c call 201d324 <.umul> <== NOT EXECUTED 2011cb8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011cbc: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 2011cc0: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 2011cc4: 18 80 00 41 bgu 2011dc8 <== NOT EXECUTED 2011cc8: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011ccc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011cd0: 40 00 2e 7b call 201d6bc <.urem> <== NOT EXECUTED 2011cd4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011cd8: 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; 2011cdc: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011ce0: 40 00 2d cb call 201d40c <.udiv> <== NOT EXECUTED 2011ce4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 2011ce8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011cec: 40 00 2d c8 call 201d40c <.udiv> <== NOT EXECUTED 2011cf0: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2011cf4: 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; 2011cf8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2011cfc: 40 00 2e 70 call 201d6bc <.urem> <== NOT EXECUTED 2011d00: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2011d04: 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; 2011d08: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2011d0c: 02 80 00 23 be 2011d98 <== NOT EXECUTED 2011d10: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 2011d14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011d18: 12 80 00 08 bne 2011d38 <== NOT EXECUTED 2011d1c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 2011d20: 7f ff ff 71 call 2011ae4 <== NOT EXECUTED 2011d24: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2011d28: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011d2c: 22 80 00 28 be,a 2011dcc <== NOT EXECUTED 2011d30: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 2011d34: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 2011d38: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 2011d3c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2011d40: 12 80 00 08 bne 2011d60 <== NOT EXECUTED 2011d44: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 2011d48: 7f ff ff 67 call 2011ae4 <== NOT EXECUTED 2011d4c: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2011d50: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2011d54: 02 80 00 1e be 2011dcc <== NOT EXECUTED 2011d58: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 2011d5c: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 2011d60: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 2011d64: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 2011d68: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011d6c: 12 80 00 08 bne 2011d8c <== NOT EXECUTED 2011d70: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 2011d74: 7f ff ff 5c call 2011ae4 <== NOT EXECUTED 2011d78: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2011d7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011d80: 22 80 00 13 be,a 2011dcc <== NOT EXECUTED 2011d84: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 2011d88: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 2011d8c: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 2011d90: 81 c7 e0 08 ret <== NOT EXECUTED 2011d94: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 2011d98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011d9c: 02 80 00 0c be 2011dcc <== NOT EXECUTED 2011da0: 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 ]; 2011da4: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2011da8: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 2011dac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011db0: 02 80 00 07 be 2011dcc <== NOT EXECUTED 2011db4: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 2011db8: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 2011dbc: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 2011dc0: 81 c7 e0 08 ret <== NOT EXECUTED 2011dc4: 91 ee 00 12 restore %i0, %l2, %o0 <== NOT EXECUTED 2011dc8: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 2011dcc: 81 c7 e0 08 ret 2011dd0: 81 e8 00 00 restore 020127b4 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 20127b4: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20127b8: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 20127bc: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 20127c0: 12 80 00 0a bne 20127e8 20127c4: a6 10 00 1a mov %i2, %l3 20127c8: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20127cc: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20127d0: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20127d4: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 20127d8: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 20127dc: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 20127e0: 10 80 00 0e b 2012818 <== NOT EXECUTED 20127e4: 92 10 22 4c mov 0x24c, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 20127e8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20127ec: 84 00 7f fb add %g1, -5, %g2 20127f0: 80 a0 a0 01 cmp %g2, 1 20127f4: 08 80 00 0b bleu 2012820 20127f8: 80 a6 e0 00 cmp %i3, 0 20127fc: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012800: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012804: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012808: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 201280c: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 2012810: 96 12 e3 f0 or %o3, 0x3f0, %o3 <== NOT EXECUTED 2012814: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 2012818: 7f ff c2 fa call 2003400 <__assert_func> <== NOT EXECUTED 201281c: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 2012820: 32 80 00 0a bne,a 2012848 2012824: 80 a7 20 00 cmp %i4, 0 2012828: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 201282c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012830: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2012834: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012838: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 201283c: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 2012840: 10 bf ff f6 b 2012818 <== NOT EXECUTED 2012844: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 2012848: 12 80 00 08 bne 2012868 201284c: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 2012850: 40 00 06 23 call 20140dc <__errno> <== NOT EXECUTED 2012854: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2012858: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 201285c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2012860: 81 c7 e0 08 ret <== NOT EXECUTED 2012864: 81 e8 00 00 restore <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 2012868: 32 80 00 1d bne,a 20128dc 201286c: c6 04 20 50 ld [ %l0 + 0x50 ], %g3 unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 2012870: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 2012874: 82 10 20 00 clr %g1 <== NOT EXECUTED 2012878: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 201287c: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 2012880: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2012884: 14 80 00 0a bg 20128ac <== NOT EXECUTED 2012888: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 201288c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2012890: 12 80 00 08 bne 20128b0 <== NOT EXECUTED 2012894: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED 2012898: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 201289c: 38 80 00 05 bgu,a 20128b0 <== NOT EXECUTED 20128a0: 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); 20128a4: 10 80 00 04 b 20128b4 <== NOT EXECUTED 20128a8: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) my_length = the_jnode->info.linearfile.size - start; 20128ac: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 20128b0: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 20128b4: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 20128b8: 40 00 08 44 call 20149c8 <== NOT EXECUTED 20128bc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 20128c0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20128c4: 7f ff c3 ef call 2003880 <== NOT EXECUTED 20128c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20128cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20128d0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 20128d4: 81 c7 e0 08 ret <== NOT EXECUTED 20128d8: 81 e8 00 00 restore <== NOT EXECUTED * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) 20128dc: 88 10 20 00 clr %g4 /* * 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; 20128e0: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 20128e4: 80 a1 00 03 cmp %g4, %g3 20128e8: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 20128ec: 14 80 00 08 bg 201290c 20128f0: 9a 07 00 1a add %i4, %i2, %o5 20128f4: 80 a1 00 03 cmp %g4, %g3 20128f8: 32 80 00 07 bne,a 2012914 20128fc: 03 00 80 83 sethi %hi(0x2020c00), %g1 <== NOT EXECUTED 2012900: 80 a3 40 02 cmp %o5, %g2 2012904: 28 80 00 04 bleu,a 2012914 2012908: 03 00 80 83 sethi %hi(0x2020c00), %g1 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 201290c: b8 20 80 01 sub %g2, %g1, %i4 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2012910: 03 00 80 83 sethi %hi(0x2020c00), %g1 2012914: e2 00 63 d4 ld [ %g1 + 0x3d4 ], %l1 ! 2020fd4 2012918: 90 10 00 12 mov %l2, %o0 201291c: ab 3c 60 1f sra %l1, 0x1f, %l5 2012920: 96 10 00 11 mov %l1, %o3 2012924: 94 10 00 15 mov %l5, %o2 2012928: 40 00 2d 2b call 201ddd4 <__moddi3> 201292c: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012930: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2012934: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012938: 94 10 00 15 mov %l5, %o2 201293c: 92 10 00 13 mov %l3, %o1 2012940: 40 00 2c 3e call 201da38 <__divdi3> 2012944: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2012948: 80 a5 20 00 cmp %l4, 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; 201294c: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 2012950: aa 10 00 1b mov %i3, %l5 2012954: 02 80 00 1c be 20129c4 2012958: 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 ); 201295c: 90 10 00 10 mov %l0, %o0 2012960: 7f ff fc 6e call 2011b18 2012964: 94 10 20 00 clr %o2 assert( block_ptr ); 2012968: 80 a2 20 00 cmp %o0, 0 201296c: 32 80 00 0a bne,a 2012994 2012970: a2 24 40 14 sub %l1, %l4, %l1 2012974: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012978: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 201297c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012980: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012984: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 2012988: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 201298c: 10 bf ff a3 b 2012818 <== NOT EXECUTED 2012990: 92 10 22 96 mov 0x296, %o1 <== NOT EXECUTED */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; 2012994: 80 a7 00 11 cmp %i4, %l1 2012998: 08 80 00 03 bleu 20129a4 201299c: 94 10 00 1c mov %i4, %o2 20129a0: 94 10 00 11 mov %l1, %o2 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 ); 20129a4: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 20129a8: aa 06 c0 0a add %i3, %o2, %l5 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 ); 20129ac: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 20129b0: a4 04 a0 01 inc %l2 my_length -= to_copy; 20129b4: b8 27 00 0a sub %i4, %o2, %i4 20129b8: b0 10 00 0a mov %o2, %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 ); 20129bc: 40 00 08 03 call 20149c8 20129c0: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 20129c4: 03 00 80 83 sethi %hi(0x2020c00), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 20129c8: a8 10 63 d4 or %g1, 0x3d4, %l4 ! 2020fd4 20129cc: 10 80 00 17 b 2012a28 20129d0: e2 00 63 d4 ld [ %g1 + 0x3d4 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 20129d4: 92 10 00 12 mov %l2, %o1 20129d8: 7f ff fc 50 call 2011b18 20129dc: 94 10 20 00 clr %o2 assert( block_ptr ); 20129e0: 80 a2 20 00 cmp %o0, 0 20129e4: 32 80 00 0a bne,a 2012a0c 20129e8: d2 02 00 00 ld [ %o0 ], %o1 20129ec: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20129f0: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20129f4: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20129f8: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 20129fc: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 2012a00: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 2012a04: 10 bf ff 85 b 2012818 <== NOT EXECUTED 2012a08: 92 10 22 a7 mov 0x2a7, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; 2012a0c: a4 04 a0 01 inc %l2 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 2012a10: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 2012a14: b8 27 00 11 sub %i4, %l1, %i4 copied += to_copy; 2012a18: b0 06 00 11 add %i0, %l1, %i0 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; 2012a1c: aa 05 40 11 add %l5, %l1, %l5 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 2012a20: 40 00 07 ea call 20149c8 2012a24: 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 ) { 2012a28: c2 05 00 00 ld [ %l4 ], %g1 2012a2c: 80 a7 00 01 cmp %i4, %g1 2012a30: 1a bf ff e9 bcc 20129d4 2012a34: 90 10 00 10 mov %l0, %o0 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 2012a38: 80 a7 20 00 cmp %i4, 0 2012a3c: 02 80 00 16 be 2012a94 2012a40: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2012a44: 92 10 00 12 mov %l2, %o1 2012a48: 90 10 00 10 mov %l0, %o0 2012a4c: 7f ff fc 33 call 2011b18 2012a50: 94 10 20 00 clr %o2 assert( block_ptr ); 2012a54: 80 a2 20 00 cmp %o0, 0 2012a58: 32 80 00 0a bne,a 2012a80 2012a5c: d2 02 00 00 ld [ %o0 ], %o1 2012a60: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012a64: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012a68: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012a6c: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012a70: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 2012a74: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 2012a78: 10 bf ff 68 b 2012818 <== NOT EXECUTED 2012a7c: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 2012a80: b0 07 00 18 add %i4, %i0, %i0 if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 2012a84: 90 10 00 15 mov %l5, %o0 2012a88: 40 00 07 d0 call 20149c8 2012a8c: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 2012a90: 90 07 bf f8 add %fp, -8, %o0 2012a94: 7f ff c3 7b call 2003880 2012a98: 92 10 20 00 clr %o1 2012a9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2012aa0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return copied; } 2012aa4: 81 c7 e0 08 ret 2012aa8: 81 e8 00 00 restore 02011e9c : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 2011e9c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011ea0: 80 a6 20 00 cmp %i0, 0 2011ea4: 32 80 00 0a bne,a 2011ecc 2011ea8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011eac: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011eb0: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011eb4: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011eb8: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2011ebc: 94 12 a0 98 or %o2, 0x98, %o2 <== NOT EXECUTED 2011ec0: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 2011ec4: 10 80 00 0c b 2011ef4 <== NOT EXECUTED 2011ec8: 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 ); 2011ecc: 80 a0 60 05 cmp %g1, 5 2011ed0: 02 80 00 0b be 2011efc 2011ed4: 03 00 80 83 sethi %hi(0x2020c00), %g1 2011ed8: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011edc: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011ee0: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011ee4: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2011ee8: 94 12 a0 98 or %o2, 0x98, %o2 <== NOT EXECUTED 2011eec: 96 12 e3 70 or %o3, 0x370, %o3 <== NOT EXECUTED 2011ef0: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 2011ef4: 7f ff c5 43 call 2003400 <__assert_func> <== NOT EXECUTED 2011ef8: 01 00 00 00 nop <== NOT EXECUTED /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; 2011efc: e0 00 63 d4 ld [ %g1 + 0x3d4 ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011f00: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 2011f04: 80 a0 60 00 cmp %g1, 0 2011f08: 02 80 00 05 be 2011f1c 2011f0c: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 2011f10: 90 06 20 58 add %i0, 0x58, %o0 2011f14: 7f ff ff b0 call 2011dd4 2011f18: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011f1c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 2011f20: 80 a0 60 00 cmp %g1, 0 2011f24: 22 80 00 17 be,a 2011f80 2011f28: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; iinfo.file; 2011f30: a2 10 20 00 clr %l1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2011f38: a4 14 a3 d4 or %l2, 0x3d4, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 2011f3c: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 2011f40: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 2011f44: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2011f48: 02 80 00 04 be 2011f58 <== NOT EXECUTED 2011f4c: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 2011f50: 7f ff ff a1 call 2011dd4 <== NOT EXECUTED 2011f54: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2011f6c: d0 06 20 5c ld [ %i0 + 0x5c ], %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 ); 2011f70: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 2011f74: 7f ff ff 98 call 2011dd4 <== NOT EXECUTED 2011f78: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011f7c: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 2011f80: 80 a0 60 00 cmp %g1, 0 2011f84: 02 80 00 25 be 2012018 2011f88: 29 00 80 83 sethi %hi(0x2020c00), %l4 2011f8c: a2 10 20 00 clr %l1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2011f94: a8 15 23 d4 or %l4, 0x3d4, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011f98: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 2011f9c: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2011fa0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2011fa4: 02 80 00 1b be 2012010 <== NOT EXECUTED 2011fa8: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2011fac: 10 80 00 09 b 2011fd0 <== NOT EXECUTED 2011fb0: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 2011fbc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 2011fc0: 7f ff ff 85 call 2011dd4 <== NOT EXECUTED 2011fc4: 92 10 00 10 mov %l0, %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 2011fe0: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 2011fe4: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2011ff4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED 2012008: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 201200c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2012010: 7f ff ff 71 call 2011dd4 <== NOT EXECUTED 2012014: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2012018: 81 c7 e0 08 ret 201201c: 91 e8 20 00 restore %g0, 0, %o0 02011e48 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 2011e48: 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 ); 2011e4c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011e50: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2011e54: 7f ff ff 31 call 2011b18 <== NOT EXECUTED 2011e58: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 2011e5c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011e60: 32 80 00 0a bne,a 2011e88 <== NOT EXECUTED 2011e64: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 2011e68: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011e6c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011e70: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011e74: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2011e78: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2011e7c: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 2011e80: 7f ff c5 60 call 2003400 <__assert_func> <== NOT EXECUTED 2011e84: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 2011e88: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; memfile_free_block( ptr ); 2011e8c: 7f ff ff 0d call 2011ac0 <== NOT EXECUTED 2011e90: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 2011e94: 81 c7 e0 08 ret <== NOT EXECUTED 2011e98: 81 e8 00 00 restore <== NOT EXECUTED 02012450 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 2012450: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2012454: a0 96 20 00 orcc %i0, 0, %l0 2012458: 32 80 00 0a bne,a 2012480 201245c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2012460: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012464: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012468: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 201246c: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012470: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 2012474: 96 12 e3 60 or %o3, 0x360, %o3 <== NOT EXECUTED 2012478: 10 80 00 8c b 20126a8 <== NOT EXECUTED 201247c: 92 10 22 e3 mov 0x2e3, %o1 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 2012480: 80 a0 60 05 cmp %g1, 5 2012484: 02 80 00 0a be 20124ac 2012488: 80 a6 e0 00 cmp %i3, 0 201248c: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012490: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012494: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012498: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 201249c: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 20124a0: 96 12 e3 70 or %o3, 0x370, %o3 <== NOT EXECUTED 20124a4: 10 80 00 81 b 20126a8 <== NOT EXECUTED 20124a8: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 20124ac: 12 80 00 0a bne 20124d4 20124b0: 80 a7 20 00 cmp %i4, 0 20124b4: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20124b8: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20124bc: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20124c0: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 20124c4: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 20124c8: 96 12 e3 b8 or %o3, 0x3b8, %o3 <== NOT EXECUTED 20124cc: 10 80 00 77 b 20126a8 <== NOT EXECUTED 20124d0: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 20124d4: 32 80 00 06 bne,a 20124ec 20124d8: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 20124dc: 40 00 07 00 call 20140dc <__errno> <== NOT EXECUTED 20124e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20124e4: 10 80 00 15 b 2012538 <== NOT EXECUTED 20124e8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 20124ec: 80 a0 60 00 cmp %g1, 0 20124f0: 06 80 00 09 bl 2012514 20124f4: 94 07 00 1a add %i4, %i2, %o2 20124f8: 80 a0 60 00 cmp %g1, 0 20124fc: 12 80 00 12 bne 2012544 2012500: 03 00 80 83 sethi %hi(0x2020c00), %g1 2012504: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 2012508: 80 a0 40 0a cmp %g1, %o2 201250c: 1a 80 00 0e bcc 2012544 2012510: 03 00 80 83 sethi %hi(0x2020c00), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 2012514: 90 10 00 10 mov %l0, %o0 2012518: 7f ff ff 24 call 20121a8 201251c: 92 10 20 00 clr %o1 if ( status ) 2012520: 80 a2 20 00 cmp %o0, 0 2012524: 02 80 00 08 be 2012544 2012528: 03 00 80 83 sethi %hi(0x2020c00), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 201252c: 40 00 06 ec call 20140dc <__errno> <== NOT EXECUTED 2012530: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2012534: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2012538: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201253c: 81 c7 e0 08 ret <== NOT EXECUTED 2012540: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2012544: e2 00 63 d4 ld [ %g1 + 0x3d4 ], %l1 2012548: 92 10 00 1a mov %i2, %o1 201254c: a7 3c 60 1f sra %l1, 0x1f, %l3 2012550: 96 10 00 11 mov %l1, %o3 2012554: 94 10 00 13 mov %l3, %o2 2012558: 40 00 2e 1f call 201ddd4 <__moddi3> 201255c: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012560: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2012564: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012568: 90 10 00 19 mov %i1, %o0 201256c: 92 10 00 1a mov %i2, %o1 2012570: 40 00 2d 32 call 201da38 <__divdi3> 2012574: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2012578: b4 10 00 1b mov %i3, %i2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 201257c: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 2012580: 80 a4 a0 00 cmp %l2, 0 2012584: 02 80 00 1b be 20125f0 2012588: 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 ); 201258c: 90 10 00 10 mov %l0, %o0 2012590: 7f ff fd 62 call 2011b18 2012594: 94 10 20 00 clr %o2 assert( block_ptr ); 2012598: 80 a2 20 00 cmp %o0, 0 201259c: 32 80 00 0a bne,a 20125c4 20125a0: 94 24 40 12 sub %l1, %l2, %o2 20125a4: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20125a8: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20125ac: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20125b0: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 20125b4: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 20125b8: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 20125bc: 10 80 00 3b b 20126a8 <== NOT EXECUTED 20125c0: 92 10 23 1c mov 0x31c, %o1 <== NOT EXECUTED */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; 20125c4: 80 a2 80 1c cmp %o2, %i4 20125c8: 38 80 00 02 bgu,a 20125d0 20125cc: 94 10 00 1c mov %i4, %o2 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 ); 20125d0: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 20125d4: b4 06 c0 0a add %i3, %o2, %i2 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 ); 20125d8: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 20125dc: a6 04 e0 01 inc %l3 my_length -= to_copy; 20125e0: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 20125e4: b0 10 00 0a mov %o2, %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 ); 20125e8: 40 00 08 f8 call 20149c8 20125ec: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 20125f0: 03 00 80 83 sethi %hi(0x2020c00), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 20125f4: a4 10 63 d4 or %g1, 0x3d4, %l2 ! 2020fd4 20125f8: 10 80 00 17 b 2012654 20125fc: e2 00 63 d4 ld [ %g1 + 0x3d4 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2012600: 92 10 00 13 mov %l3, %o1 2012604: 7f ff fd 45 call 2011b18 2012608: 94 10 20 00 clr %o2 assert( block_ptr ); 201260c: 80 a2 20 00 cmp %o0, 0 2012610: 32 80 00 0a bne,a 2012638 2012614: d0 02 00 00 ld [ %o0 ], %o0 2012618: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 201261c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012620: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012624: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2012628: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 201262c: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 2012630: 10 80 00 1e b 20126a8 <== NOT EXECUTED 2012634: 92 10 23 30 mov 0x330, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 2012638: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 201263c: a6 04 e0 01 inc %l3 my_length -= to_copy; 2012640: b8 27 00 11 sub %i4, %l1, %i4 * * This routine writes the specified data buffer into the in memory * file pointed to by the_jnode. The file is extended as needed. */ MEMFILE_STATIC ssize_t IMFS_memfile_write( 2012644: b0 06 00 11 add %i0, %l1, %i0 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; 2012648: b4 06 80 11 add %i2, %l1, %i2 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 ); 201264c: 40 00 08 df call 20149c8 2012650: 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 ) { 2012654: c2 04 80 00 ld [ %l2 ], %g1 2012658: 80 a7 00 01 cmp %i4, %g1 201265c: 1a bf ff e9 bcc 2012600 2012660: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 2012664: 80 a7 20 00 cmp %i4, 0 2012668: 02 80 00 17 be 20126c4 201266c: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2012670: 92 10 00 13 mov %l3, %o1 2012674: 90 10 00 10 mov %l0, %o0 2012678: 7f ff fd 28 call 2011b18 201267c: 94 10 20 00 clr %o2 assert( block_ptr ); 2012680: 80 a2 20 00 cmp %o0, 0 2012684: 32 80 00 0b bne,a 20126b0 2012688: d0 02 00 00 ld [ %o0 ], %o0 201268c: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012690: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012694: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012698: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 201269c: 94 12 a0 68 or %o2, 0x68, %o2 <== NOT EXECUTED 20126a0: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 20126a4: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 20126a8: 7f ff c3 56 call 2003400 <__assert_func> <== NOT EXECUTED 20126ac: 01 00 00 00 nop <== NOT EXECUTED #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; 20126b0: 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 ); 20126b4: 92 10 00 1a mov %i2, %o1 20126b8: 40 00 08 c4 call 20149c8 20126bc: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 20126c0: 90 07 bf f8 add %fp, -8, %o0 20126c4: 7f ff c4 6f call 2003880 20126c8: 92 10 20 00 clr %o1 20126cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 20126d0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 20126d4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 20126d8: 81 c7 e0 08 ret 20126dc: 81 e8 00 00 restore 0200a064 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 200a064: 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 ); 200a068: 40 00 16 1a call 200f8d0 200a06c: 90 10 00 18 mov %i0, %o0 200a070: 96 07 bf fc add %fp, -4, %o3 200a074: 92 10 00 08 mov %o0, %o1 200a078: 94 07 bf b8 add %fp, -72, %o2 200a07c: 7f ff ff 8e call 2009eb4 200a080: 90 10 00 18 mov %i0, %o0 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 200a084: 97 2e 60 10 sll %i1, 0x10, %o3 200a088: 03 00 00 3c sethi %hi(0xf000), %g1 200a08c: 97 32 e0 10 srl %o3, 0x10, %o3 200a090: 05 00 00 10 sethi %hi(0x4000), %g2 200a094: 82 0a c0 01 and %o3, %g1, %g1 200a098: 80 a0 40 02 cmp %g1, %g2 200a09c: 02 80 00 19 be 200a100 200a0a0: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 200a0a4: 05 00 00 20 sethi %hi(0x8000), %g2 200a0a8: 80 a0 40 02 cmp %g1, %g2 200a0ac: 02 80 00 16 be 200a104 200a0b0: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 200a0b4: 05 00 00 08 sethi %hi(0x2000), %g2 200a0b8: 80 a0 40 02 cmp %g1, %g2 200a0bc: 02 80 00 05 be 200a0d0 200a0c0: 05 00 00 18 sethi %hi(0x6000), %g2 200a0c4: 80 a0 40 02 cmp %g1, %g2 200a0c8: 12 80 00 05 bne 200a0dc 200a0cc: 05 00 00 04 sethi %hi(0x1000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 200a0d0: f4 3f bf e0 std %i2, [ %fp + -32 ] 200a0d4: 10 80 00 0c b 200a104 200a0d8: 92 10 20 02 mov 2, %o1 } else if (S_ISFIFO(mode)) 200a0dc: 80 a0 40 02 cmp %g1, %g2 200a0e0: 02 80 00 09 be 200a104 200a0e4: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 200a0e8: 40 00 12 43 call 200e9f4 <__errno> <== NOT EXECUTED 200a0ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a0f0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 200a0f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a0f8: 81 c7 e0 08 ret <== NOT EXECUTED 200a0fc: 81 e8 00 00 restore <== NOT EXECUTED 200a100: 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( 200a104: 94 07 bf b8 add %fp, -72, %o2 200a108: 98 07 bf e0 add %fp, -32, %o4 200a10c: 40 00 0b cc call 200d03c 200a110: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 200a114: 80 a2 20 00 cmp %o0, 0 200a118: 12 80 00 06 bne 200a130 200a11c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 200a120: 40 00 12 35 call 200e9f4 <__errno> <== NOT EXECUTED 200a124: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200a128: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 200a12c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 200a130: 81 c7 e0 08 ret 200a134: 81 e8 00 00 restore 02002fd8 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2002fd8: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2002fdc: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2002fe0: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2002fe4: 80 a0 a0 01 cmp %g2, 1 2002fe8: 22 80 00 08 be,a 2003008 2002fec: f0 20 60 5c st %i0, [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( ENOTDIR ); 2002ff0: 40 00 44 3b call 20140dc <__errno> <== NOT EXECUTED 2002ff4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002ff8: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2002ffc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003000: 81 c7 e0 08 ret <== NOT EXECUTED 2003004: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 2003008: 81 c7 e0 08 ret 200300c: 91 e8 20 00 restore %g0, 0, %o0 020039c0 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 20039c0: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 20039c4: 80 a6 20 00 cmp %i0, 0 20039c8: 12 80 00 0a bne 20039f0 20039cc: 21 00 80 93 sethi %hi(0x2024c00), %l0 20039d0: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 20039d4: 15 00 80 8c sethi %hi(0x2023000), %o2 <== NOT EXECUTED 20039d8: 17 00 80 8b sethi %hi(0x2022c00), %o3 <== NOT EXECUTED 20039dc: 90 12 22 f8 or %o0, 0x2f8, %o0 <== NOT EXECUTED 20039e0: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 20039e4: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED 20039e8: 10 80 00 3b b 2003ad4 <== NOT EXECUTED 20039ec: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); 20039f0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20039f4: 90 06 20 0c add %i0, 0xc, %o0 20039f8: 40 00 3f 91 call 201383c 20039fc: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 2003a00: d4 06 20 48 ld [ %i0 + 0x48 ], %o2 2003a04: 82 02 bf ff add %o2, -1, %g1 2003a08: 80 a0 60 06 cmp %g1, 6 2003a0c: 38 80 00 42 bgu,a 2003b14 2003a10: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2003a14: 83 28 60 02 sll %g1, 2, %g1 2003a18: 05 00 80 0e sethi %hi(0x2003800), %g2 2003a1c: 84 10 a1 68 or %g2, 0x168, %g2 ! 2003968 2003a20: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2003a24: 81 c0 40 00 jmp %g1 2003a28: 01 00 00 00 nop case IMFS_DIRECTORY: fprintf(stdout, "/" ); 2003a2c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003a30: 90 10 20 2f mov 0x2f, %o0 2003a34: 40 00 3f 3e call 201372c 2003a38: d2 00 60 08 ld [ %g1 + 8 ], %o1 break; 2003a3c: 10 80 00 3c b 2003b2c 2003a40: 31 00 80 8b sethi %hi(0x2022c00), %i0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2003a44: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003a48: 13 00 80 8b sethi %hi(0x2022c00), %o1 2003a4c: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 2003a50: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003a54: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 2003a58: 10 80 00 08 b 2003a78 2003a5c: 92 12 63 58 or %o1, 0x358, %o1 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2003a60: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2003a64: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 2003a68: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2003a6c: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 2003a70: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 2003a74: 92 12 63 70 or %o1, 0x370, %o1 ! 2022f70 <== NOT EXECUTED 2003a78: 40 00 3f 13 call 20136c4 2003a7c: 31 00 80 8b sethi %hi(0x2022c00), %i0 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 2003a80: 30 80 00 2b b,a 2003b2c the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 2003a84: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003a88: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 2003a8c: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003a90: 13 00 80 8b sethi %hi(0x2022c00), %o1 2003a94: 40 00 3f 0c call 20136c4 2003a98: 92 12 63 80 or %o1, 0x380, %o1 ! 2022f80 (uint32_t)the_jnode->info.file.size ); #endif break; 2003a9c: 10 80 00 24 b 2003b2c 2003aa0: 31 00 80 8b sethi %hi(0x2022c00), %i0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 2003aa4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2003aa8: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003aac: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2003ab0: 40 00 3f 63 call 201383c <== NOT EXECUTED 2003ab4: 90 12 23 90 or %o0, 0x390, %o0 <== NOT EXECUTED assert(0); 2003ab8: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED 2003abc: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003ac0: 15 00 80 8c sethi %hi(0x2023000), %o2 <== NOT EXECUTED 2003ac4: 17 00 80 8b sethi %hi(0x2022c00), %o3 <== NOT EXECUTED 2003ac8: 90 12 22 f8 or %o0, 0x2f8, %o0 <== NOT EXECUTED 2003acc: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 2003ad0: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 2003ad4: 40 00 02 16 call 200432c <__assert_func> <== NOT EXECUTED 2003ad8: 01 00 00 00 nop <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 2003adc: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2003ae0: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003ae4: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2003ae8: 40 00 3f 55 call 201383c <== NOT EXECUTED 2003aec: 90 12 23 90 or %o0, 0x390, %o0 <== NOT EXECUTED assert(0); 2003af0: 10 bf ff f3 b 2003abc <== NOT EXECUTED 2003af4: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 2003af8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED 2003afc: 11 00 80 8b sethi %hi(0x2022c00), %o0 <== NOT EXECUTED 2003b00: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2003b04: 40 00 3f 4e call 201383c <== NOT EXECUTED 2003b08: 90 12 23 b0 or %o0, 0x3b0, %o0 <== NOT EXECUTED assert(0); 2003b0c: 10 bf ff ec b 2003abc <== NOT EXECUTED 2003b10: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 2003b14: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 2003b18: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2003b1c: 40 00 3e ea call 20136c4 <== NOT EXECUTED 2003b20: 92 12 63 c8 or %o1, 0x3c8, %o1 <== NOT EXECUTED assert(0); 2003b24: 10 bf ff e6 b 2003abc <== NOT EXECUTED 2003b28: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED break; } puts(""); 2003b2c: 40 00 46 35 call 2015400 2003b30: 91 ee 22 a8 restore %i0, 0x2a8, %o0 2003b34: 01 00 00 00 nop 0200301c : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 200301c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 2003020: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 2003024: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2003028: 80 a0 a0 04 cmp %g2, 4 200302c: 02 80 00 0a be 2003054 2003030: b0 10 20 00 clr %i0 rtems_set_errno_and_return_minus_one( EINVAL ); 2003034: 40 00 44 2a call 20140dc <__errno> <== NOT EXECUTED 2003038: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200303c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003040: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003044: 81 c7 e0 08 ret <== NOT EXECUTED 2003048: 81 e8 00 00 restore <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 200304c: c4 2e 40 18 stb %g2, [ %i1 + %i0 ] 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++ ) 2003050: b0 06 20 01 inc %i0 2003054: 80 a6 00 1a cmp %i0, %i2 2003058: 1a 80 00 07 bcc 2003074 200305c: 01 00 00 00 nop 2003060: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003064: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3 2003068: 80 a0 e0 00 cmp %g3, 0 200306c: 12 bf ff f8 bne 200304c 2003070: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; return i; } 2003074: 81 c7 e0 08 ret 2003078: 81 e8 00 00 restore 0200307c : 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 */ ) { 200307c: 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; 2003080: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 2003084: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2003088: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 200308c: 40 00 47 e7 call 2015028 <== NOT EXECUTED 2003090: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 2003094: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 2003098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200309c: 22 80 00 05 be,a 20030b0 <== NOT EXECUTED 20030a0: 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 ); 20030a4: 40 00 13 4e call 2007ddc <_Chain_Extract> <== NOT EXECUTED 20030a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 20030ac: 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 ); 20030b0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20030b4: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 20030b8: 40 00 13 3d call 2007dac <_Chain_Append> <== NOT EXECUTED 20030bc: 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 ); 20030c0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20030c4: 40 00 01 ef call 2003880 <== NOT EXECUTED 20030c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20030cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20030d0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 20030d4: 81 c7 e0 08 ret <== NOT EXECUTED 20030d8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 0200a144 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 200a144: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 200a148: 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 ) { 200a14c: c2 04 20 08 ld [ %l0 + 8 ], %g1 200a150: 80 a0 60 00 cmp %g1, 0 200a154: 22 80 00 06 be,a 200a16c 200a158: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 200a15c: 40 00 05 95 call 200b7b0 <_Chain_Extract> 200a160: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200a164: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200a168: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 200a16c: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200a170: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200a174: 90 07 bf f8 add %fp, -8, %o0 200a178: 40 00 01 07 call 200a594 200a17c: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 200a180: 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) ) { 200a184: 90 10 00 10 mov %l0, %o0 200a188: 40 00 01 3b call 200a674 200a18c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 200a190: 80 a2 20 00 cmp %o0, 0 200a194: 12 80 00 18 bne 200a1f4 200a198: 01 00 00 00 nop 200a19c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 200a1a0: 80 a0 60 00 cmp %g1, 0 200a1a4: 12 80 00 14 bne 200a1f4 200a1a8: 03 00 80 6a sethi %hi(0x201a800), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200a1ac: c2 00 63 c4 ld [ %g1 + 0x3c4 ], %g1 ! 201abc4 200a1b0: c4 06 40 00 ld [ %i1 ], %g2 200a1b4: c6 00 60 04 ld [ %g1 + 4 ], %g3 200a1b8: 80 a0 c0 02 cmp %g3, %g2 200a1bc: 22 80 00 02 be,a 200a1c4 200a1c0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200a1c4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200a1c8: 80 a0 60 04 cmp %g1, 4 200a1cc: 12 80 00 08 bne 200a1ec 200a1d0: 01 00 00 00 nop if ( the_jnode->info.sym_link.name ) 200a1d4: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 200a1d8: 80 a2 20 00 cmp %o0, 0 200a1dc: 02 80 00 04 be 200a1ec 200a1e0: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200a1e4: 40 00 00 7f call 200a3e0 200a1e8: 01 00 00 00 nop } free( the_jnode ); 200a1ec: 40 00 00 7d call 200a3e0 200a1f0: 90 10 00 10 mov %l0, %o0 } return 0; } 200a1f4: 81 c7 e0 08 ret 200a1f8: 91 e8 20 00 restore %g0, 0, %o0 0200a214 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200a214: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 200a218: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200a21c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200a220: 84 00 bf fe add %g2, -2, %g2 200a224: 80 a0 a0 05 cmp %g2, 5 200a228: 18 80 00 10 bgu 200a268 200a22c: 85 28 a0 02 sll %g2, 2, %g2 200a230: 07 00 80 28 sethi %hi(0x200a000), %g3 200a234: 86 10 e1 fc or %g3, 0x1fc, %g3 ! 200a1fc 200a238: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200a23c: 81 c0 80 00 jmp %g2 200a240: 01 00 00 00 nop rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200a244: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; 200a248: 10 80 00 0e b 200a280 200a24c: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200a250: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200a254: 10 80 00 0b b 200a280 200a258: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200a25c: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED break; 200a260: 10 80 00 08 b 200a280 <== NOT EXECUTED 200a264: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a268: 40 00 11 e3 call 200e9f4 <__errno> <== NOT EXECUTED 200a26c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a270: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200a274: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a278: 81 c7 e0 08 ret <== NOT EXECUTED 200a27c: 81 e8 00 00 restore <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; 200a280: c6 10 60 2e lduh [ %g1 + 0x2e ], %g3 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200a284: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 200a288: c6 36 60 0c sth %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200a28c: c4 26 60 08 st %g2, [ %i1 + 8 ] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 200a290: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 200a294: c4 00 60 3c ld [ %g1 + 0x3c ], %g2 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 200a298: c6 36 60 0e sth %g3, [ %i1 + 0xe ] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 200a29c: c4 26 60 28 st %g2, [ %i1 + 0x28 ] } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 200a2a0: c6 10 60 38 lduh [ %g1 + 0x38 ], %g3 buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200a2a4: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 200a2a8: c6 36 60 10 sth %g3, [ %i1 + 0x10 ] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 200a2ac: c4 26 60 30 st %g2, [ %i1 + 0x30 ] buf->st_ctime = the_jnode->stat_ctime; 200a2b0: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 200a2b4: c2 10 60 3a lduh [ %g1 + 0x3a ], %g1 buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 200a2b8: c4 26 60 38 st %g2, [ %i1 + 0x38 ] buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 200a2bc: c2 36 60 12 sth %g1, [ %i1 + 0x12 ] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } 200a2c0: 81 c7 e0 08 ret 200a2c4: 91 e8 20 00 restore %g0, 0, %o0 020030dc : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 20030dc: 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 ); 20030e0: 40 00 47 9d call 2014f54 20030e4: 90 10 00 1a mov %i2, %o0 20030e8: 96 07 bf fc add %fp, -4, %o3 20030ec: 92 10 00 08 mov %o0, %o1 20030f0: a0 07 bf b8 add %fp, -72, %l0 20030f4: 90 10 00 1a mov %i2, %o0 20030f8: 40 00 30 ce call 200f430 20030fc: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2003100: 40 00 47 80 call 2014f00 2003104: 90 10 00 19 mov %i1, %o0 2003108: d0 27 bf e0 st %o0, [ %fp + -32 ] if (info.sym_link.name == NULL) { 200310c: 80 a2 20 00 cmp %o0, 0 2003110: 12 80 00 08 bne 2003130 2003114: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one(ENOMEM); 2003118: 40 00 43 f1 call 20140dc <__errno> <== NOT EXECUTED 200311c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003120: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2003124: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003128: 81 c7 e0 08 ret 200312c: 81 e8 00 00 restore * 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( 2003130: 94 10 00 10 mov %l0, %o2 2003134: 92 10 20 04 mov 4, %o1 2003138: 17 00 00 28 sethi %hi(0xa000), %o3 200313c: 98 07 bf e0 add %fp, -32, %o4 2003140: 96 12 e1 ff or %o3, 0x1ff, %o3 2003144: 40 00 2d 71 call 200e708 2003148: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 200314c: 80 a2 20 00 cmp %o0, 0 2003150: 12 bf ff f6 bne 2003128 2003154: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 2003158: 40 00 01 a0 call 20037d8 <== NOT EXECUTED 200315c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2003160: 40 00 43 df call 20140dc <__errno> <== NOT EXECUTED 2003164: 01 00 00 00 nop <== NOT EXECUTED 2003168: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200316c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2003170: 81 c7 e0 08 ret <== NOT EXECUTED 2003174: 81 e8 00 00 restore <== NOT EXECUTED 02003178 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 2003178: 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; 200317c: 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 ) { 2003180: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003184: 80 a0 60 03 cmp %g1, 3 2003188: 12 80 00 29 bne 200322c 200318c: a4 10 00 18 mov %i0, %l2 if ( !node->info.hard_link.link_node ) 2003190: e6 04 20 50 ld [ %l0 + 0x50 ], %l3 2003194: 80 a4 e0 00 cmp %l3, 0 2003198: 12 80 00 08 bne 20031b8 200319c: a2 07 bf e4 add %fp, -28, %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 20031a0: 40 00 43 cf call 20140dc <__errno> <== NOT EXECUTED 20031a4: 01 00 00 00 nop <== NOT EXECUTED 20031a8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20031ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20031b0: 10 80 00 24 b 2003240 <== NOT EXECUTED 20031b4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 20031b8: 92 10 00 19 mov %i1, %o1 20031bc: 94 10 20 14 mov 0x14, %o2 20031c0: 40 00 46 02 call 20149c8 20031c4: 90 10 00 11 mov %l1, %o0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 20031c8: 90 10 00 11 mov %l1, %o0 20031cc: 40 00 2d 9c call 200e83c 20031d0: e6 27 bf e4 st %l3, [ %fp + -28 ] /* * 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) 20031d4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20031d8: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 20031dc: 80 a0 e0 01 cmp %g3, 1 20031e0: 12 80 00 0c bne 2003210 20031e4: 84 00 ff ff add %g3, -1, %g2 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 20031e8: c2 07 bf ec ld [ %fp + -20 ], %g1 20031ec: 92 10 00 11 mov %l1, %o1 20031f0: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20031f4: 9f c0 40 00 call %g1 20031f8: 90 10 00 18 mov %i0, %o0 if ( result != 0 ) 20031fc: 80 a2 20 00 cmp %o0, 0 2003200: 02 80 00 0b be 200322c 2003204: 90 10 3f ff mov -1, %o0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 2003208: 81 c7 e0 08 ret 200320c: 91 e8 00 08 restore %g0, %o0, %o0 return -1; } else { node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); 2003210: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2003214: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] IMFS_update_ctime( node->info.hard_link.link_node ); 2003218: 40 00 01 9a call 2003880 200321c: 92 10 20 00 clr %o1 2003220: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003224: c4 07 bf f8 ld [ %fp + -8 ], %g2 2003228: c4 20 60 44 st %g2, [ %g1 + 0x44 ] /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 200322c: c2 06 60 08 ld [ %i1 + 8 ], %g1 2003230: 90 10 00 12 mov %l2, %o0 2003234: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2003238: 9f c0 40 00 call %g1 200323c: 92 10 00 19 mov %i1, %o1 return result; } 2003240: b0 10 00 08 mov %o0, %i0 2003244: 81 c7 e0 08 ret 2003248: 81 e8 00 00 restore 0200324c : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 200324c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003250: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2003254: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2003258: 80 a0 a0 01 cmp %g2, 1 200325c: 22 80 00 06 be,a 2003274 2003260: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2003264: 40 00 43 9e call 20140dc <__errno> <== NOT EXECUTED 2003268: 01 00 00 00 nop <== NOT EXECUTED 200326c: 10 80 00 08 b 200328c <== NOT EXECUTED 2003270: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 2003274: 80 a0 a0 00 cmp %g2, 0 2003278: 32 80 00 08 bne,a 2003298 200327c: c0 20 60 5c clr [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 2003280: 40 00 43 97 call 20140dc <__errno> <== NOT EXECUTED 2003284: 01 00 00 00 nop <== NOT EXECUTED 2003288: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 200328c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003290: 81 c7 e0 08 ret <== NOT EXECUTED 2003294: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 2003298: 81 c7 e0 08 ret 200329c: 91 e8 20 00 restore %g0, 0, %o0 020022a4 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 20022a4: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 20022a8: 03 00 80 6c sethi %hi(0x201b000), %g1 20022ac: c2 00 61 28 ld [ %g1 + 0x128 ], %g1 ! 201b128 20022b0: 80 a0 60 00 cmp %g1, 0 20022b4: 02 80 00 05 be 20022c8 20022b8: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 20022bc: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20022c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20022c4: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 20022c8: 40 00 21 8d call 200a8fc 20022cc: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 20022d0: 03 00 80 6c sethi %hi(0x201b000), %g1 20022d4: c2 00 61 2c ld [ %g1 + 0x12c ], %g1 ! 201b12c 20022d8: 80 a0 60 00 cmp %g1, 0 20022dc: 02 80 00 08 be 20022fc 20022e0: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 20022e4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 20022e8: 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)( 20022ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20022f0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 20022f4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20022f8: 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 ( 20022fc: 03 00 80 6c sethi %hi(0x201b000), %g1 2002300: c2 08 61 25 ldub [ %g1 + 0x125 ], %g1 ! 201b125 2002304: 80 a0 60 00 cmp %g1, 0 2002308: 12 80 00 0c bne 2002338 200230c: 03 00 80 6c sethi %hi(0x201b000), %g1 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 2002310: 03 00 80 6a sethi %hi(0x201a800), %g1 2002314: c2 08 63 90 ldub [ %g1 + 0x390 ], %g1 ! 201ab90 2002318: 80 a0 60 00 cmp %g1, 0 200231c: 02 80 00 07 be 2002338 2002320: 03 00 80 6c sethi %hi(0x201b000), %g1 ) { memset( heap_begin, 0, heap_size ); 2002324: 90 10 00 18 mov %i0, %o0 2002328: 92 10 20 00 clr %o1 200232c: 40 00 34 2c call 200f3dc 2002330: 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 ) { 2002334: 03 00 80 6c sethi %hi(0x201b000), %g1 2002338: c2 08 61 25 ldub [ %g1 + 0x125 ], %g1 ! 201b125 200233c: 80 a0 60 00 cmp %g1, 0 2002340: 12 80 00 0c bne 2002370 2002344: 03 00 80 6a sethi %hi(0x201a800), %g1 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 2002348: d0 00 62 c0 ld [ %g1 + 0x2c0 ], %o0 ! 201aac0 200234c: 92 10 00 18 mov %i0, %o1 2002350: 94 10 00 19 mov %i1, %o2 2002354: 40 00 10 57 call 20064b0 <_Heap_Initialize> 2002358: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 200235c: 80 a2 20 00 cmp %o0, 0 2002360: 12 80 00 05 bne 2002374 2002364: 33 00 80 6c sethi %hi(0x201b000), %i1 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 2002368: 40 00 0e 43 call 2005c74 <== NOT EXECUTED 200236c: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 2002370: 33 00 80 6c sethi %hi(0x201b000), %i1 2002374: 03 00 80 6a sethi %hi(0x201a800), %g1 2002378: f0 06 63 f0 ld [ %i1 + 0x3f0 ], %i0 200237c: 40 00 13 66 call 2007114 <_Protected_heap_Get_size> 2002380: d0 00 62 c0 ld [ %g1 + 0x2c0 ], %o0 2002384: 90 02 00 18 add %o0, %i0, %o0 2002388: d0 26 63 f0 st %o0, [ %i1 + 0x3f0 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 200238c: 81 c7 e0 08 ret 2002390: 81 e8 00 00 restore 02003ee8 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2003ee8: 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 ) 2003eec: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2003ef0: 02 80 00 49 be 2004014 <== NOT EXECUTED 2003ef4: 03 00 81 94 sethi %hi(0x2065000), %g1 <== NOT EXECUTED return; if ( !print_handler ) 2003ef8: e4 00 61 08 ld [ %g1 + 0x108 ], %l2 ! 2065108 <== NOT EXECUTED 2003efc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2003f00: 02 80 00 45 be 2004014 <== NOT EXECUTED 2003f04: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2003f08: 32 80 00 0a bne,a 2003f30 <== NOT EXECUTED 2003f0c: e8 06 21 50 ld [ %i0 + 0x150 ], %l4 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 2003f10: 23 00 81 9f sethi %hi(0x2067c00), %l1 <== NOT EXECUTED 2003f14: a2 14 60 e8 or %l1, 0xe8, %l1 ! 2067ce8 <== NOT EXECUTED 2003f18: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED 2003f1c: a8 10 20 00 clr %l4 <== NOT EXECUTED 2003f20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f24: 12 80 00 04 bne 2003f34 <== NOT EXECUTED 2003f28: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003f2c: 30 80 00 41 b,a 2004030 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 2003f30: a2 06 20 c4 add %i0, 0xc4, %l1 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 2003f34: ea 04 60 04 ld [ %l1 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2003f38: e6 04 40 00 ld [ %l1 ], %l3 <== 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); 2003f3c: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2003f40: a6 04 ff f0 add %l3, -16, %l3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 2003f44: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2003f48: 7f ff ff d8 call 2003ea8 <== NOT EXECUTED 2003f4c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED if ( high_water_mark ) 2003f50: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 2003f54: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2003f58: a0 05 40 13 add %l5, %l3, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 2003f5c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); 2003f60: a0 24 00 08 sub %l0, %o0, %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 ) 2003f64: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { 2003f68: 02 80 00 10 be 2003fa8 <== NOT EXECUTED 2003f6c: 03 00 81 94 sethi %hi(0x2065000), %g1 <== NOT EXECUTED (*print_handler)( 2003f70: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED 2003f74: ec 00 61 04 ld [ %g1 + 0x104 ], %l6 <== NOT EXECUTED 2003f78: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2003f7c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2003f80: 40 00 18 7a call 200a168 <== NOT EXECUTED 2003f84: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2003f88: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED 2003f8c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2003f90: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 2003f94: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED 2003f98: 9f c4 80 00 call %l2 <== NOT EXECUTED 2003f9c: 92 12 60 20 or %o1, 0x20, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2003fa0: 10 80 00 08 b 2003fc0 <== NOT EXECUTED 2003fa4: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED "0x%08" PRIx32 " %4s", the_thread->Object.id, rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); 2003fa8: d0 00 61 04 ld [ %g1 + 0x104 ], %o0 <== NOT EXECUTED 2003fac: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 2003fb0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2003fb4: 9f c4 80 00 call %l2 <== NOT EXECUTED 2003fb8: 92 12 60 30 or %o1, 0x30, %o1 <== NOT EXECUTED } (*print_handler)( 2003fbc: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED 2003fc0: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED 2003fc4: 25 00 81 94 sethi %hi(0x2065000), %l2 <== NOT EXECUTED 2003fc8: 23 00 81 94 sethi %hi(0x2065000), %l1 <== NOT EXECUTED 2003fcc: c2 04 a1 08 ld [ %l2 + 0x108 ], %g1 <== NOT EXECUTED 2003fd0: d0 04 61 04 ld [ %l1 + 0x104 ], %o0 <== NOT EXECUTED 2003fd4: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2003fd8: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED 2003fdc: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2003fe0: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED 2003fe4: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 2003fe8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003fec: 92 12 60 40 or %o1, 0x40, %o1 ! 2059c40 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2003ff0: 03 00 81 94 sethi %hi(0x2065000), %g1 <== NOT EXECUTED 2003ff4: c2 00 61 00 ld [ %g1 + 0x100 ], %g1 ! 2065100 <== NOT EXECUTED 2003ff8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ffc: 12 80 00 08 bne 200401c <== NOT EXECUTED 2004000: c2 04 a1 08 ld [ %l2 + 0x108 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 2004004: d0 04 61 04 ld [ %l1 + 0x104 ], %o0 <== NOT EXECUTED 2004008: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 200400c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004010: 92 12 60 60 or %o1, 0x60, %o1 ! 2059c60 <== NOT EXECUTED 2004014: 81 c7 e0 08 ret <== NOT EXECUTED 2004018: 81 e8 00 00 restore <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 200401c: d0 04 61 04 ld [ %l1 + 0x104 ], %o0 <== NOT EXECUTED 2004020: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 2004024: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2004028: 9f c0 40 00 call %g1 <== NOT EXECUTED 200402c: 92 12 60 70 or %o1, 0x70, %o1 <== NOT EXECUTED 2004030: 81 c7 e0 08 ret <== NOT EXECUTED 2004034: 81 e8 00 00 restore <== NOT EXECUTED 02003ea8 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2003ea8: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2003eac: 84 0a 7f fc and %o1, -4, %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 2003eb0: 03 29 69 69 sethi %hi(0xa5a5a400), %g1 <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 2003eb4: 84 02 00 02 add %o0, %g2, %g2 <== NOT EXECUTED 2003eb8: 10 80 00 06 b 2003ed0 <== NOT EXECUTED 2003ebc: 82 10 61 a5 or %g1, 0x1a5, %g1 <== NOT EXECUTED if (*base != U32_PATTERN) 2003ec0: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003ec4: 12 80 00 07 bne 2003ee0 <== NOT EXECUTED 2003ec8: 01 00 00 00 nop <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 2003ecc: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2003ed0: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 2003ed4: 2a bf ff fb bcs,a 2003ec0 <== NOT EXECUTED 2003ed8: c6 02 00 00 ld [ %o0 ], %g3 <== NOT EXECUTED 2003edc: 90 10 20 00 clr %o0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 2003ee0: 81 c3 e0 08 retl <== NOT EXECUTED 2003ee4: 01 00 00 00 nop 020040ac : * * 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) { 20040ac: 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"); 20040b0: 11 00 81 67 sethi %hi(0x2059c00), %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); 20040b4: e0 06 20 c8 ld [ %i0 + 0xc8 ], %l0 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 20040b8: 40 00 0b 4f call 2006df4 <== NOT EXECUTED 20040bc: 90 12 20 e0 or %o0, 0xe0, %o0 <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 20040c0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20040c4: 11 00 81 67 sethi %hi(0x2059c00), %o0 <== NOT EXECUTED 20040c8: 40 00 0b 4b call 2006df4 <== NOT EXECUTED 20040cc: 90 12 20 f0 or %o0, 0xf0, %o0 ! 2059cf0 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 20040d0: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 20040d4: 11 00 81 67 sethi %hi(0x2059c00), %o0 <== NOT EXECUTED 20040d8: 40 00 0b 47 call 2006df4 <== NOT EXECUTED 20040dc: 90 12 21 10 or %o0, 0x110, %o0 ! 2059d10 <== NOT EXECUTED printk( 20040e0: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 20040e4: 11 00 81 67 sethi %hi(0x2059c00), %o0 <== NOT EXECUTED 20040e8: 40 00 0b 43 call 2006df4 <== NOT EXECUTED 20040ec: 90 12 21 28 or %o0, 0x128, %o0 ! 2059d28 <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 20040f0: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 20040f4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED 20040f8: 40 00 18 1c call 200a168 <== NOT EXECUTED 20040fc: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED 2004100: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2004104: 11 00 81 67 sethi %hi(0x2059c00), %o0 <== NOT EXECUTED 2004108: 40 00 0b 3b call 2006df4 <== NOT EXECUTED 200410c: 90 12 21 40 or %o0, 0x140, %o0 ! 2059d40 <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 2004110: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1 <== NOT EXECUTED 2004114: d4 06 20 c8 ld [ %i0 + 0xc8 ], %o2 <== NOT EXECUTED 2004118: 11 00 81 67 sethi %hi(0x2059c00), %o0 <== NOT EXECUTED 200411c: 96 02 80 09 add %o2, %o1, %o3 <== NOT EXECUTED 2004120: 40 00 0b 35 call 2006df4 <== NOT EXECUTED 2004124: 90 12 21 58 or %o0, 0x158, %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) { 2004128: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 200412c: 12 80 00 07 bne 2004148 <== NOT EXECUTED 2004130: 11 00 81 67 sethi %hi(0x2059c00), %o0 <== NOT EXECUTED printk( 2004134: 96 04 20 18 add %l0, 0x18, %o3 <== NOT EXECUTED 2004138: 90 12 21 90 or %o0, 0x190, %o0 <== NOT EXECUTED 200413c: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 2004140: 40 00 0b 2d call 2006df4 <== NOT EXECUTED 2004144: 94 04 20 08 add %l0, 8, %o2 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 2004148: 40 00 1a 3f call 200aa44 <== NOT EXECUTED 200414c: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED 2004150: 01 00 00 00 nop 0200b018 <_POSIX_Threads_Sporadic_budget_callout>: ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200b018: 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); 200b01c: c6 00 a0 88 ld [ %g2 + 0x88 ], %g3 200b020: 05 00 80 6a sethi %hi(0x201a800), %g2 200b024: d2 08 a3 64 ldub [ %g2 + 0x364 ], %o1 ! 201ab64 */ #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 ) { 200b028: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 200b02c: 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 */ 200b030: 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; 200b034: 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 ) { 200b038: 80 a0 a0 00 cmp %g2, 0 200b03c: 12 80 00 09 bne 200b060 <_POSIX_Threads_Sporadic_budget_callout+0x48> 200b040: 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 ) { 200b044: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 200b048: 80 a0 40 09 cmp %g1, %o1 200b04c: 1a 80 00 05 bcc 200b060 <_POSIX_Threads_Sporadic_budget_callout+0x48> 200b050: 94 10 20 01 mov 1, %o2 _Thread_Change_priority( the_thread, new_priority, true ); 200b054: 82 13 c0 00 mov %o7, %g1 200b058: 7f ff f0 46 call 2007170 <_Thread_Change_priority> 200b05c: 9e 10 40 00 mov %g1, %o7 200b060: 81 c3 e0 08 retl <== NOT EXECUTED 200b064: 01 00 00 00 nop 02007da4 <_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 ) { 2007da4: 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; 2007da8: 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); 2007dac: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2007db0: 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); 2007db4: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2007db8: 82 06 60 38 add %i1, 0x38, %g1 2007dbc: c2 26 60 40 st %g1, [ %i1 + 0x40 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 2007dc0: 2d 00 80 6a sethi %hi(0x201a800), %l6 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 2007dc4: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2007dc8: 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 ]; 2007dcc: a7 28 60 04 sll %g1, 4, %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; 2007dd0: ac 15 a3 64 or %l6, 0x364, %l6 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 2007dd4: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 2007dd8: ea 06 20 38 ld [ %i0 + 0x38 ], %l5 _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 ]; 2007ddc: a6 24 c0 01 sub %l3, %g1, %l3 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2007de0: 12 80 00 28 bne 2007e80 <_Thread_queue_Enqueue_priority+0xdc> 2007de4: a6 06 00 13 add %i0, %l3, %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2007de8: ac 04 e0 04 add %l3, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2007dec: 7f ff e7 c4 call 2001cfc 2007df0: 01 00 00 00 nop 2007df4: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 2007df8: a8 10 3f ff mov -1, %l4 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2007dfc: 10 80 00 10 b 2007e3c <_Thread_queue_Enqueue_priority+0x98> 2007e00: e2 04 c0 00 ld [ %l3 ], %l1 search_priority = search_thread->current_priority; if ( priority <= search_priority ) 2007e04: 80 a4 00 14 cmp %l0, %l4 2007e08: 28 80 00 11 bleu,a 2007e4c <_Thread_queue_Enqueue_priority+0xa8> 2007e0c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 2007e10: 7f ff e7 bf call 2001d0c 2007e14: 90 10 00 12 mov %l2, %o0 2007e18: 7f ff e7 b9 call 2001cfc 2007e1c: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2007e20: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2007e24: 80 8d 40 01 btst %l5, %g1 2007e28: 32 80 00 05 bne,a 2007e3c <_Thread_queue_Enqueue_priority+0x98> 2007e2c: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 2007e30: 7f ff e7 b7 call 2001d0c <== NOT EXECUTED 2007e34: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 2007e38: 30 bf ff ed b,a 2007dec <_Thread_queue_Enqueue_priority+0x48> <== NOT EXECUTED restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2007e3c: 80 a4 40 16 cmp %l1, %l6 2007e40: 32 bf ff f1 bne,a 2007e04 <_Thread_queue_Enqueue_priority+0x60> 2007e44: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2007e48: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2007e4c: 80 a0 60 01 cmp %g1, 1 2007e50: 12 80 00 3c bne 2007f40 <_Thread_queue_Enqueue_priority+0x19c> 2007e54: 90 10 00 12 mov %l2, %o0 THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 2007e58: 80 a4 00 14 cmp %l0, %l4 2007e5c: 02 80 00 2e be 2007f14 <_Thread_queue_Enqueue_priority+0x170> 2007e60: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 2007e64: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2007e68: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2007e6c: 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; 2007e70: 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; 2007e74: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2007e78: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007e7c: 30 80 00 2d b,a 2007f30 <_Thread_queue_Enqueue_priority+0x18c> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 2007e80: 7f ff e7 9f call 2001cfc 2007e84: e8 0d 80 00 ldub [ %l6 ], %l4 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 2007e88: a8 05 20 01 inc %l4 _ISR_Disable( level ); 2007e8c: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 2007e90: 10 80 00 10 b 2007ed0 <_Thread_queue_Enqueue_priority+0x12c> 2007e94: e2 04 e0 08 ld [ %l3 + 8 ], %l1 search_priority = search_thread->current_priority; if ( priority >= search_priority ) 2007e98: 80 a4 00 14 cmp %l0, %l4 2007e9c: 3a 80 00 11 bcc,a 2007ee0 <_Thread_queue_Enqueue_priority+0x13c> 2007ea0: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 2007ea4: 7f ff e7 9a call 2001d0c 2007ea8: 90 10 00 12 mov %l2, %o0 2007eac: 7f ff e7 94 call 2001cfc 2007eb0: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2007eb4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2007eb8: 80 8d 40 01 btst %l5, %g1 2007ebc: 32 80 00 05 bne,a 2007ed0 <_Thread_queue_Enqueue_priority+0x12c> 2007ec0: e2 04 60 04 ld [ %l1 + 4 ], %l1 _ISR_Enable( level ); 2007ec4: 7f ff e7 92 call 2001d0c 2007ec8: 90 10 00 12 mov %l2, %o0 goto restart_reverse_search; 2007ecc: 30 bf ff ed b,a 2007e80 <_Thread_queue_Enqueue_priority+0xdc> 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 ) ) { 2007ed0: 80 a4 40 13 cmp %l1, %l3 2007ed4: 32 bf ff f1 bne,a 2007e98 <_Thread_queue_Enqueue_priority+0xf4> 2007ed8: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2007edc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2007ee0: 80 a0 60 01 cmp %g1, 1 2007ee4: 12 80 00 17 bne 2007f40 <_Thread_queue_Enqueue_priority+0x19c> 2007ee8: 90 10 00 12 mov %l2, %o0 THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 2007eec: 80 a4 00 14 cmp %l0, %l4 2007ef0: 02 80 00 09 be 2007f14 <_Thread_queue_Enqueue_priority+0x170> 2007ef4: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2007ef8: c2 04 40 00 ld [ %l1 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 2007efc: e2 26 60 04 st %l1, [ %i1 + 4 ] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 2007f00: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 2007f04: 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; 2007f08: f2 24 40 00 st %i1, [ %l1 ] next_node->previous = the_node; 2007f0c: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007f10: 30 80 00 08 b,a 2007f30 <_Thread_queue_Enqueue_priority+0x18c> 2007f14: a2 04 60 3c add %l1, 0x3c, %l1 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; 2007f18: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2007f1c: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2007f20: 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; 2007f24: 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; 2007f28: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2007f2c: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007f30: 7f ff e7 77 call 2001d0c 2007f34: b0 10 20 01 mov 1, %i0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2007f38: 81 c7 e0 08 ret 2007f3c: 81 e8 00 00 restore * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; 2007f40: f0 06 20 30 ld [ %i0 + 0x30 ], %i0 * 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; 2007f44: d0 26 80 00 st %o0, [ %i2 ] return the_thread_queue->sync_state; } 2007f48: 81 c7 e0 08 ret 2007f4c: 81 e8 00 00 restore 02014bcc <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 2014bcc: 9d e3 bf 88 save %sp, -120, %sp static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2014bd0: 35 00 80 ec sethi %hi(0x203b000), %i2 2014bd4: b2 07 bf f4 add %fp, -12, %i1 2014bd8: ac 07 bf f8 add %fp, -8, %l6 2014bdc: a2 07 bf e8 add %fp, -24, %l1 2014be0: a6 07 bf ec add %fp, -20, %l3 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2014be4: 37 00 80 ec sethi %hi(0x203b000), %i3 2014be8: 2b 00 80 ec sethi %hi(0x203b000), %l5 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2014bec: c0 27 bf f8 clr [ %fp + -8 ] 2014bf0: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 2014bf4: f2 27 bf fc st %i1, [ %fp + -4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2014bf8: ec 27 bf f4 st %l6, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2014bfc: e2 27 bf f0 st %l1, [ %fp + -16 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2014c00: e6 27 bf e8 st %l3, [ %fp + -24 ] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2014c04: b4 16 a1 94 or %i2, 0x194, %i2 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2014c08: b6 16 e0 d4 or %i3, 0xd4, %i3 2014c0c: aa 15 60 40 or %l5, 0x40, %l5 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c10: a8 06 20 30 add %i0, 0x30, %l4 /* * 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 ); 2014c14: a4 06 20 68 add %i0, 0x68, %l2 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2014c18: b8 06 20 08 add %i0, 8, %i4 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2014c1c: ba 06 20 40 add %i0, 0x40, %i5 _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; 2014c20: ae 10 20 01 mov 1, %l7 { /* * 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; 2014c24: f2 26 20 78 st %i1, [ %i0 + 0x78 ] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2014c28: c2 06 80 00 ld [ %i2 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 2014c2c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c30: 94 10 00 11 mov %l1, %o2 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2014c34: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c38: 92 20 40 09 sub %g1, %o1, %o1 2014c3c: 40 00 11 9b call 20192a8 <_Watchdog_Adjust_to_chain> 2014c40: 90 10 00 14 mov %l4, %o0 Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 2014c44: d4 06 20 74 ld [ %i0 + 0x74 ], %o2 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2014c48: e0 06 c0 00 ld [ %i3 ], %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 ) { 2014c4c: 80 a4 00 0a cmp %l0, %o2 2014c50: 08 80 00 06 bleu 2014c68 <_Timer_server_Body+0x9c> 2014c54: 92 24 00 0a sub %l0, %o2, %o1 /* * 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 ); 2014c58: 90 10 00 12 mov %l2, %o0 2014c5c: 40 00 11 93 call 20192a8 <_Watchdog_Adjust_to_chain> 2014c60: 94 10 00 11 mov %l1, %o2 2014c64: 30 80 00 06 b,a 2014c7c <_Timer_server_Body+0xb0> } else if ( snapshot < last_snapshot ) { 2014c68: 1a 80 00 05 bcc 2014c7c <_Timer_server_Body+0xb0> 2014c6c: 94 22 80 10 sub %o2, %l0, %o2 /* * 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 ); 2014c70: 90 10 00 12 mov %l2, %o0 2014c74: 40 00 11 66 call 201920c <_Watchdog_Adjust> 2014c78: 92 10 20 01 mov 1, %o1 } watchdogs->last_snapshot = snapshot; 2014c7c: 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 ); 2014c80: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 2014c84: 40 00 02 7e call 201567c <_Chain_Get> 2014c88: 01 00 00 00 nop if ( timer == NULL ) { 2014c8c: 80 a2 20 00 cmp %o0, 0 2014c90: 02 80 00 0f be 2014ccc <_Timer_server_Body+0x100> 2014c94: 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 ) { 2014c98: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2014c9c: 80 a0 60 01 cmp %g1, 1 2014ca0: 12 80 00 05 bne 2014cb4 <_Timer_server_Body+0xe8> 2014ca4: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 2014ca8: 92 02 20 10 add %o0, 0x10, %o1 2014cac: 10 80 00 05 b 2014cc0 <_Timer_server_Body+0xf4> 2014cb0: 90 10 00 14 mov %l4, %o0 } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 2014cb4: 12 bf ff f3 bne 2014c80 <_Timer_server_Body+0xb4> 2014cb8: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 2014cbc: 90 10 00 12 mov %l2, %o0 2014cc0: 40 00 11 af call 201937c <_Watchdog_Insert> 2014cc4: 01 00 00 00 nop 2014cc8: 30 bf ff ee b,a 2014c80 <_Timer_server_Body+0xb4> * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 2014ccc: 7f ff e5 00 call 200e0cc 2014cd0: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 2014cd4: c2 07 bf f4 ld [ %fp + -12 ], %g1 2014cd8: 80 a0 40 16 cmp %g1, %l6 2014cdc: 12 80 00 0a bne 2014d04 <_Timer_server_Body+0x138> 2014ce0: 01 00 00 00 nop ts->insert_chain = NULL; 2014ce4: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 2014ce8: 7f ff e4 fd call 200e0dc 2014cec: 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 ) ) { 2014cf0: c2 07 bf e8 ld [ %fp + -24 ], %g1 2014cf4: 80 a0 40 13 cmp %g1, %l3 2014cf8: 12 80 00 06 bne 2014d10 <_Timer_server_Body+0x144> 2014cfc: 01 00 00 00 nop 2014d00: 30 80 00 1a b,a 2014d68 <_Timer_server_Body+0x19c> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 2014d04: 7f ff e4 f6 call 200e0dc <== NOT EXECUTED 2014d08: 01 00 00 00 nop <== NOT EXECUTED 2014d0c: 30 bf ff c7 b,a 2014c28 <_Timer_server_Body+0x5c> <== NOT EXECUTED /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 2014d10: 7f ff e4 ef call 200e0cc 2014d14: 01 00 00 00 nop 2014d18: 84 10 00 08 mov %o0, %g2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2014d1c: 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)) 2014d20: 80 a4 00 13 cmp %l0, %l3 2014d24: 02 80 00 0e be 2014d5c <_Timer_server_Body+0x190> 2014d28: 80 a4 20 00 cmp %l0, 0 { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 2014d2c: c2 04 00 00 ld [ %l0 ], %g1 the_chain->first = new_first; 2014d30: c2 27 bf e8 st %g1, [ %fp + -24 ] watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 2014d34: 02 80 00 0a be 2014d5c <_Timer_server_Body+0x190> 2014d38: e2 20 60 04 st %l1, [ %g1 + 4 ] watchdog->state = WATCHDOG_INACTIVE; 2014d3c: c0 24 20 08 clr [ %l0 + 8 ] _ISR_Enable( level ); 2014d40: 7f ff e4 e7 call 200e0dc 2014d44: 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 ); 2014d48: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 2014d4c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 2014d50: 9f c0 40 00 call %g1 2014d54: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 } 2014d58: 30 bf ff ee b,a 2014d10 <_Timer_server_Body+0x144> watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 2014d5c: 7f ff e4 e0 call 200e0dc 2014d60: 90 10 00 02 mov %g2, %o0 2014d64: 30 bf ff b0 b,a 2014c24 <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 2014d68: c0 2e 20 7c clrb [ %i0 + 0x7c ] 2014d6c: c2 05 40 00 ld [ %l5 ], %g1 2014d70: 82 00 60 01 inc %g1 2014d74: c2 25 40 00 st %g1, [ %l5 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 2014d78: d0 06 00 00 ld [ %i0 ], %o0 2014d7c: 40 00 0e 82 call 2018784 <_Thread_Set_state> 2014d80: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 2014d84: 7f ff ff 68 call 2014b24 <_Timer_server_Reset_interval_system_watchdog> 2014d88: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 2014d8c: 7f ff ff 7b call 2014b78 <_Timer_server_Reset_tod_system_watchdog> 2014d90: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 2014d94: 40 00 0b ae call 2017c4c <_Thread_Enable_dispatch> 2014d98: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2014d9c: 90 10 00 1c mov %i4, %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; 2014da0: ee 2e 20 7c stb %l7, [ %i0 + 0x7c ] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2014da4: 40 00 11 d3 call 20194f0 <_Watchdog_Remove> 2014da8: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2014dac: 40 00 11 d1 call 20194f0 <_Watchdog_Remove> 2014db0: 90 10 00 1d mov %i5, %o0 2014db4: 30 bf ff 9c b,a 2014c24 <_Timer_server_Body+0x58> 02018e1c <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 2018e1c: 9d e3 bf a0 save %sp, -96, %sp 2018e20: 40 00 07 19 call 201aa84 <_fini> 2018e24: 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(); 2018e28: 7f ff ff e1 call 2018dac 2018e2c: 01 00 00 00 nop rtems_shutdown_executive(status); 2018e30: 40 00 00 4c call 2018f60 2018e34: 90 10 00 18 mov %i0, %o0 2018e38: 30 80 00 00 b,a 2018e38 <_exit+0x1c> <== NOT EXECUTED 02038940 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 2038940: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2038944: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2038948: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 203894c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2038950: 7f ff ff 7f call 203874c <== NOT EXECUTED 2038954: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2038958: 01 00 00 00 nop 0200d2a8 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 200d2a8: 81 c3 e0 08 retl <== NOT EXECUTED 200d2ac: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 0200a5f8 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 200a5f8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a5fc: 7f ff ff e6 call 200a594 <== NOT EXECUTED 200a600: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200a604: 01 00 00 00 nop 020265f4 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 20265f4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20265f8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20265fc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026600: 7f ff ff 62 call 2026388 <== NOT EXECUTED 2026604: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026608: 01 00 00 00 nop 0202683c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 202683c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2026840: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2026844: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026848: 7f ff ff c0 call 2026748 <== NOT EXECUTED 202684c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026850: 01 00 00 00 nop 02018f2c <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 2018f2c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2018f30: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2018f34: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2018f38: 40 00 00 17 call 2018f94 <== NOT EXECUTED 2018f3c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2018f40: 01 00 00 00 nop 020584e0 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 20584e0: 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 ); 20584e4: 7f fe b5 3e call 20059dc <== NOT EXECUTED 20584e8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 20584ec: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 20584f0: 32 80 00 17 bne,a 205854c <_rename_r+0x6c> <== NOT EXECUTED 20584f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 20584f8: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 20584fc: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2058500: 02 80 00 06 be 2058518 <_rename_r+0x38> <== NOT EXECUTED 2058504: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2058508: 02 80 00 04 be 2058518 <_rename_r+0x38> <== NOT EXECUTED 205850c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058510: 12 80 00 07 bne 205852c <_rename_r+0x4c> <== NOT EXECUTED 2058514: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2058518: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 205851c: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 ! 2063e94 <== NOT EXECUTED 2058520: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2058524: 10 80 00 05 b 2058538 <_rename_r+0x58> <== NOT EXECUTED 2058528: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 205852c: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 <== NOT EXECUTED 2058530: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2058534: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 2058538: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 205853c: 7f ff a5 ba call 2041c24 <== NOT EXECUTED 2058540: a2 10 20 00 clr %l1 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2058544: 10 80 00 0c b 2058574 <_rename_r+0x94> <== NOT EXECUTED 2058548: 94 10 20 14 mov 0x14, %o2 <== 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, 205854c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2058550: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 2058554: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 2058558: 98 10 20 00 clr %o4 <== NOT EXECUTED 205855c: 7f fe b5 6e call 2005b14 <== NOT EXECUTED 2058560: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 2058564: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2058568: 12 80 00 2b bne 2058614 <_rename_r+0x134> <== NOT EXECUTED 205856c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 2058570: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2058574: a6 07 bf e8 add %fp, -24, %l3 <== NOT EXECUTED 2058578: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED 205857c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2058580: 7f ff a5 a9 call 2041c24 <== NOT EXECUTED 2058584: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED name = old + old_parent_pathlen; 2058588: b2 06 40 10 add %i1, %l0, %i1 <== NOT EXECUTED 205858c: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 2058590: 7f ff b4 11 call 20455d4 <== NOT EXECUTED 2058594: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2058598: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 205859c: 7f fe b4 fe call 2005994 <== NOT EXECUTED 20585a0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20585a4: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 20585a8: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 20585ac: 7f ff b4 0a call 20455d4 <== NOT EXECUTED 20585b0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20585b4: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 20585b8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 20585bc: 94 10 20 00 clr %o2 <== NOT EXECUTED 20585c0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20585c4: 7f fe b5 18 call 2005a24 <== NOT EXECUTED 20585c8: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 20585cc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 20585d0: 22 80 00 13 be,a 205861c <_rename_r+0x13c> <== NOT EXECUTED 20585d4: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED if ( free_old_parentloc ) 20585d8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20585dc: 02 80 00 0b be 2058608 <_rename_r+0x128> <== NOT EXECUTED 20585e0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 20585e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20585e8: 02 80 00 08 be 2058608 <_rename_r+0x128> <== NOT EXECUTED 20585ec: 01 00 00 00 nop <== NOT EXECUTED 20585f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20585f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20585f8: 02 80 00 04 be 2058608 <_rename_r+0x128> <== NOT EXECUTED 20585fc: 01 00 00 00 nop <== NOT EXECUTED 2058600: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058604: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2058608: 7f ff 98 b4 call 203e8d8 <__errno> <== NOT EXECUTED 205860c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2058610: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 2058614: 81 c7 e0 08 ret <== NOT EXECUTED 2058618: 81 e8 00 00 restore <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 205861c: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2058620: 02 80 00 06 be 2058638 <_rename_r+0x158> <== NOT EXECUTED 2058624: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2058628: 02 80 00 04 be 2058638 <_rename_r+0x158> <== NOT EXECUTED 205862c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058630: 12 80 00 0a bne 2058658 <_rename_r+0x178> <== NOT EXECUTED 2058634: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2058638: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 205863c: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 ! 2063e94 <== NOT EXECUTED 2058640: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 2058644: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 2058648: 7f ff a5 77 call 2041c24 <== NOT EXECUTED 205864c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2058650: 10 80 00 08 b 2058670 <_rename_r+0x190> <== NOT EXECUTED 2058654: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 2058658: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 <== NOT EXECUTED 205865c: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 2058660: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 2058664: 7f ff a5 70 call 2041c24 <== NOT EXECUTED 2058668: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 205866c: 90 10 20 00 clr %o0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 2058670: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 2058674: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 2058678: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205867c: 02 80 00 61 be 2058800 <_rename_r+0x320> <== NOT EXECUTED 2058680: 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 ); 2058684: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 2058688: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 205868c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058690: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if ( result != 0 ) { 2058694: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 2058698: 02 80 00 28 be 2058738 <_rename_r+0x258> <== NOT EXECUTED 205869c: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 20586a0: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 20586a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586a8: 02 80 00 09 be 20586cc <_rename_r+0x1ec> <== NOT EXECUTED 20586ac: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20586b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20586b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586b8: 02 80 00 05 be 20586cc <_rename_r+0x1ec> <== NOT EXECUTED 20586bc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20586c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20586c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 20586c8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20586cc: 02 80 00 0d be 2058700 <_rename_r+0x220> <== NOT EXECUTED 20586d0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 20586d4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20586d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586dc: 22 80 00 09 be,a 2058700 <_rename_r+0x220> <== NOT EXECUTED 20586e0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20586e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20586e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586ec: 22 80 00 05 be,a 2058700 <_rename_r+0x220> <== NOT EXECUTED 20586f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20586f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20586f8: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 20586fc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058700: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058704: 02 80 00 08 be 2058724 <_rename_r+0x244> <== NOT EXECUTED 2058708: 01 00 00 00 nop <== NOT EXECUTED 205870c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058710: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058714: 02 80 00 04 be 2058724 <_rename_r+0x244> <== NOT EXECUTED 2058718: 01 00 00 00 nop <== NOT EXECUTED 205871c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058720: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2058724: 7f ff 98 6d call 203e8d8 <__errno> <== NOT EXECUTED 2058728: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205872c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED 2058730: 81 c7 e0 08 ret <== NOT EXECUTED 2058734: 81 e8 00 00 restore <== NOT EXECUTED /* * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { 2058738: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED 205873c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2058740: 02 80 00 26 be 20587d8 <_rename_r+0x2f8> <== NOT EXECUTED 2058744: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 2058748: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 205874c: 02 80 00 09 be 2058770 <_rename_r+0x290> <== NOT EXECUTED 2058750: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058754: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2058758: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205875c: 02 80 00 05 be 2058770 <_rename_r+0x290> <== NOT EXECUTED 2058760: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058764: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058768: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205876c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058770: 02 80 00 0d be 20587a4 <_rename_r+0x2c4> <== NOT EXECUTED 2058774: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 2058778: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205877c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058780: 22 80 00 09 be,a 20587a4 <_rename_r+0x2c4> <== NOT EXECUTED 2058784: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058788: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205878c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058790: 22 80 00 05 be,a 20587a4 <_rename_r+0x2c4> <== NOT EXECUTED 2058794: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058798: 9f c0 40 00 call %g1 <== NOT EXECUTED 205879c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 20587a0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20587a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587a8: 02 80 00 08 be 20587c8 <_rename_r+0x2e8> <== NOT EXECUTED 20587ac: 01 00 00 00 nop <== NOT EXECUTED 20587b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20587b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587b8: 02 80 00 04 be 20587c8 <_rename_r+0x2e8> <== NOT EXECUTED 20587bc: 01 00 00 00 nop <== NOT EXECUTED 20587c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20587c4: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 20587c8: 7f ff 98 44 call 203e8d8 <__errno> <== NOT EXECUTED 20587cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20587d0: 10 80 00 26 b 2058868 <_rename_r+0x388> <== NOT EXECUTED 20587d4: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 20587d8: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 20587dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587e0: 12 80 00 25 bne 2058874 <_rename_r+0x394> <== NOT EXECUTED 20587e4: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 20587e8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 20587ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587f0: 02 80 00 05 be 2058804 <_rename_r+0x324> <== NOT EXECUTED 20587f4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20587f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20587fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 2058800: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058804: 02 80 00 0d be 2058838 <_rename_r+0x358> <== NOT EXECUTED 2058808: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205880c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2058810: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058814: 22 80 00 09 be,a 2058838 <_rename_r+0x358> <== NOT EXECUTED 2058818: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205881c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058820: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058824: 22 80 00 05 be,a 2058838 <_rename_r+0x358> <== NOT EXECUTED 2058828: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205882c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058830: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 2058834: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058838: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205883c: 02 80 00 08 be 205885c <_rename_r+0x37c> <== NOT EXECUTED 2058840: 01 00 00 00 nop <== NOT EXECUTED 2058844: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058848: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205884c: 02 80 00 04 be 205885c <_rename_r+0x37c> <== NOT EXECUTED 2058850: 01 00 00 00 nop <== NOT EXECUTED 2058854: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058858: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 205885c: 7f ff 98 1f call 203e8d8 <__errno> <== NOT EXECUTED 2058860: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2058864: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2058868: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 205886c: 81 c7 e0 08 ret <== NOT EXECUTED 2058870: 81 e8 00 00 restore <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 2058874: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2058878: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 205887c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058880: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 2058884: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 2058888: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205888c: 02 80 00 08 be 20588ac <_rename_r+0x3cc> <== NOT EXECUTED 2058890: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2058894: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058898: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205889c: 02 80 00 05 be 20588b0 <_rename_r+0x3d0> <== NOT EXECUTED 20588a0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20588a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20588a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 20588ac: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20588b0: 02 80 00 0d be 20588e4 <_rename_r+0x404> <== NOT EXECUTED 20588b4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 20588b8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20588bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20588c0: 22 80 00 09 be,a 20588e4 <_rename_r+0x404> <== NOT EXECUTED 20588c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20588c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20588cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20588d0: 22 80 00 05 be,a 20588e4 <_rename_r+0x404> <== NOT EXECUTED 20588d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20588d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20588dc: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 20588e0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20588e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20588e8: 02 80 00 08 be 2058908 <_rename_r+0x428> <== NOT EXECUTED 20588ec: 01 00 00 00 nop <== NOT EXECUTED 20588f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20588f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20588f8: 02 80 00 04 be 2058908 <_rename_r+0x428> <== NOT EXECUTED 20588fc: 01 00 00 00 nop <== NOT EXECUTED 2058900: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058904: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED return result; } 2058908: 81 c7 e0 08 ret <== NOT EXECUTED 205890c: 81 e8 00 00 restore <== NOT EXECUTED 02007428 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2007428: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200742c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2007430: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2007434: 7f ff ff c0 call 2007334 <== NOT EXECUTED 2007438: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200743c: 01 00 00 00 nop 0200e36c <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200e36c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200e370: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200e374: 7f ff ff 58 call 200e0d4 <== NOT EXECUTED 200e378: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200e37c: 01 00 00 00 nop 02024fd0 : #include int chdir( const char *pathname ) { 2024fd0: 9d e3 bf 88 save %sp, -120, %sp /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 2024fd4: 40 00 81 80 call 20455d4 2024fd8: 90 10 00 18 mov %i0, %o0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2024fdc: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 2024fe0: 92 10 00 08 mov %o0, %o1 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2024fe4: 94 10 20 01 mov 1, %o2 2024fe8: 90 10 00 18 mov %i0, %o0 2024fec: 96 10 00 10 mov %l0, %o3 2024ff0: 98 10 20 01 mov 1, %o4 2024ff4: 7f ff 82 c8 call 2005b14 2024ff8: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 2024ffc: 80 a2 20 00 cmp %o0, 0 2025000: 12 80 00 37 bne 20250dc 2025004: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 2025008: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 202500c: 80 a0 60 00 cmp %g1, 0 2025010: 12 80 00 0c bne 2025040 2025014: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 2025018: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202501c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025020: 02 80 00 04 be 2025030 <== NOT EXECUTED 2025024: 01 00 00 00 nop <== NOT EXECUTED 2025028: 9f c0 40 00 call %g1 <== NOT EXECUTED 202502c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025030: 40 00 66 2a call 203e8d8 <__errno> <== NOT EXECUTED 2025034: 01 00 00 00 nop <== NOT EXECUTED 2025038: 10 80 00 14 b 2025088 <== NOT EXECUTED 202503c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2025040: 9f c0 40 00 call %g1 2025044: 90 10 00 10 mov %l0, %o0 2025048: 80 a2 20 01 cmp %o0, 1 202504c: 02 80 00 12 be 2025094 2025050: 03 00 81 8f sethi %hi(0x2063c00), %g1 rtems_filesystem_freenode( &loc ); 2025054: c2 07 bf f8 ld [ %fp + -8 ], %g1 2025058: 80 a0 60 00 cmp %g1, 0 202505c: 02 80 00 08 be 202507c 2025060: 01 00 00 00 nop 2025064: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2025068: 80 a0 60 00 cmp %g1, 0 202506c: 02 80 00 04 be 202507c 2025070: 01 00 00 00 nop 2025074: 9f c0 40 00 call %g1 2025078: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 202507c: 40 00 66 17 call 203e8d8 <__errno> 2025080: 01 00 00 00 nop 2025084: 82 10 20 14 mov 0x14, %g1 ! 14 2025088: c2 22 00 00 st %g1, [ %o0 ] 202508c: 81 c7 e0 08 ret 2025090: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 2025094: d0 00 62 94 ld [ %g1 + 0x294 ], %o0 2025098: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 202509c: 80 a0 60 00 cmp %g1, 0 20250a0: 22 80 00 09 be,a 20250c4 20250a4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20250a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 2063c1c 20250ac: 80 a0 60 00 cmp %g1, 0 20250b0: 22 80 00 05 be,a 20250c4 20250b4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20250b8: 9f c0 40 00 call %g1 20250bc: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 20250c0: 03 00 81 8f sethi %hi(0x2063c00), %g1 20250c4: d0 00 62 94 ld [ %g1 + 0x294 ], %o0 ! 2063e94 20250c8: 92 07 bf ec add %fp, -20, %o1 20250cc: 90 02 20 04 add %o0, 4, %o0 20250d0: 94 10 20 14 mov 0x14, %o2 20250d4: 40 00 72 d4 call 2041c24 20250d8: b0 10 20 00 clr %i0 return 0; } 20250dc: 81 c7 e0 08 ret 20250e0: 81 e8 00 00 restore 020057d4 : int chmod( const char *path, mode_t mode ) { 20057d4: 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 ); 20057d8: 40 00 ff 7f call 20455d4 20057dc: 90 10 00 18 mov %i0, %o0 20057e0: a0 07 bf ec add %fp, -20, %l0 20057e4: 92 10 00 08 mov %o0, %o1 20057e8: 94 10 20 00 clr %o2 20057ec: 90 10 00 18 mov %i0, %o0 20057f0: 96 10 00 10 mov %l0, %o3 20057f4: 98 10 20 01 mov 1, %o4 20057f8: 40 00 00 c7 call 2005b14 20057fc: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 2005800: 80 a2 20 00 cmp %o0, 0 2005804: 12 80 00 24 bne 2005894 2005808: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 200580c: 80 a0 60 00 cmp %g1, 0 2005810: 32 80 00 10 bne,a 2005850 2005814: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 rtems_filesystem_freenode( &loc ); 2005818: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200581c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005820: 02 80 00 08 be 2005840 <== NOT EXECUTED 2005824: 01 00 00 00 nop <== NOT EXECUTED 2005828: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200582c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005830: 02 80 00 04 be 2005840 <== NOT EXECUTED 2005834: 01 00 00 00 nop <== NOT EXECUTED 2005838: 9f c0 40 00 call %g1 <== NOT EXECUTED 200583c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2005840: 40 00 e4 26 call 203e8d8 <__errno> <== NOT EXECUTED 2005844: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005848: 10 80 00 12 b 2005890 <== NOT EXECUTED 200584c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 2005850: 80 a0 60 00 cmp %g1, 0 2005854: 12 80 00 12 bne 200589c 2005858: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 200585c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2005860: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005864: 02 80 00 08 be 2005884 <== NOT EXECUTED 2005868: 01 00 00 00 nop <== NOT EXECUTED 200586c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005870: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005874: 02 80 00 04 be 2005884 <== NOT EXECUTED 2005878: 01 00 00 00 nop <== NOT EXECUTED 200587c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005880: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005884: 40 00 e4 15 call 203e8d8 <__errno> <== NOT EXECUTED 2005888: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200588c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2005890: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005894: 81 c7 e0 08 ret 2005898: 81 e8 00 00 restore } result = (*loc.handlers->fchmod_h)( &loc, mode ); 200589c: 90 10 00 10 mov %l0, %o0 20058a0: 9f c0 40 00 call %g1 20058a4: 93 32 60 10 srl %o1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 20058a8: c2 07 bf f8 ld [ %fp + -8 ], %g1 20058ac: 80 a0 60 00 cmp %g1, 0 20058b0: 02 bf ff f9 be 2005894 20058b4: b0 10 00 08 mov %o0, %i0 20058b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20058bc: 80 a0 60 00 cmp %g1, 0 20058c0: 02 80 00 04 be 20058d0 20058c4: 01 00 00 00 nop 20058c8: 9f c0 40 00 call %g1 20058cc: 90 10 00 10 mov %l0, %o0 return result; } 20058d0: 81 c7 e0 08 ret 20058d4: 81 e8 00 00 restore 020250e4 : int chown( const char *path, uid_t owner, gid_t group ) { 20250e4: 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 ) ) 20250e8: 40 00 81 3b call 20455d4 20250ec: 90 10 00 18 mov %i0, %o0 20250f0: a0 07 bf ec add %fp, -20, %l0 20250f4: 92 10 00 08 mov %o0, %o1 20250f8: 94 10 20 00 clr %o2 20250fc: 90 10 00 18 mov %i0, %o0 2025100: 96 10 00 10 mov %l0, %o3 2025104: 98 10 20 01 mov 1, %o4 2025108: 7f ff 82 83 call 2005b14 202510c: b0 10 3f ff mov -1, %i0 2025110: 80 a2 20 00 cmp %o0, 0 2025114: 12 80 00 10 bne 2025154 2025118: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 202511c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 2025120: 80 a0 60 00 cmp %g1, 0 2025124: 12 80 00 0e bne 202515c 2025128: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 202512c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2025130: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025134: 02 80 00 04 be 2025144 <== NOT EXECUTED 2025138: 01 00 00 00 nop <== NOT EXECUTED 202513c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025140: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025144: 40 00 65 e5 call 203e8d8 <__errno> <== NOT EXECUTED 2025148: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202514c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2025150: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025154: 81 c7 e0 08 ret 2025158: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 202515c: 95 2e a0 10 sll %i2, 0x10, %o2 2025160: 93 32 60 10 srl %o1, 0x10, %o1 2025164: 95 32 a0 10 srl %o2, 0x10, %o2 2025168: 9f c0 40 00 call %g1 202516c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2025170: c2 07 bf f8 ld [ %fp + -8 ], %g1 2025174: 80 a0 60 00 cmp %g1, 0 2025178: 02 bf ff f7 be 2025154 202517c: b0 10 00 08 mov %o0, %i0 2025180: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2025184: 80 a0 60 00 cmp %g1, 0 2025188: 02 80 00 04 be 2025198 202518c: 01 00 00 00 nop 2025190: 9f c0 40 00 call %g1 2025194: 90 10 00 10 mov %l0, %o0 return result; } 2025198: 81 c7 e0 08 ret 202519c: 81 e8 00 00 restore 020251a0 : #include int chroot( const char *pathname ) { 20251a0: 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) { 20251a4: 23 00 81 8f sethi %hi(0x2063c00), %l1 20251a8: e0 04 62 94 ld [ %l1 + 0x294 ], %l0 ! 2063e94 20251ac: 03 00 81 9f sethi %hi(0x2067c00), %g1 20251b0: 82 10 61 50 or %g1, 0x150, %g1 ! 2067d50 20251b4: 80 a4 00 01 cmp %l0, %g1 20251b8: 12 80 00 0e bne 20251f0 20251bc: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 20251c0: 40 00 06 75 call 2026b94 20251c4: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 20251c8: c2 04 62 94 ld [ %l1 + 0x294 ], %g1 20251cc: 80 a0 40 10 cmp %g1, %l0 20251d0: 12 80 00 08 bne 20251f0 20251d4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 20251d8: 40 00 65 c0 call 203e8d8 <__errno> <== NOT EXECUTED 20251dc: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20251e0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20251e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20251e8: 81 c7 e0 08 ret <== NOT EXECUTED 20251ec: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 20251f0: 7f ff ff 78 call 2024fd0 20251f4: 90 10 00 18 mov %i0, %o0 if (result) { 20251f8: 80 a2 20 00 cmp %o0, 0 20251fc: 12 80 00 0b bne 2025228 2025200: 11 00 81 6c sethi %hi(0x205b000), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2025204: 92 10 20 01 mov 1, %o1 2025208: 90 12 21 30 or %o0, 0x130, %o0 202520c: 94 10 20 00 clr %o2 2025210: 96 07 bf ec add %fp, -20, %o3 2025214: 7f ff 82 40 call 2005b14 2025218: 98 10 20 00 clr %o4 202521c: 80 a2 20 00 cmp %o0, 0 2025220: 02 80 00 0a be 2025248 2025224: 03 00 81 8f sethi %hi(0x2063c00), %g1 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 2025228: 40 00 65 ac call 203e8d8 <__errno> <== NOT EXECUTED 202522c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025230: 40 00 65 aa call 203e8d8 <__errno> <== NOT EXECUTED 2025234: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2025238: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202523c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2025240: 81 c7 e0 08 ret <== NOT EXECUTED 2025244: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 2025248: d0 00 62 94 ld [ %g1 + 0x294 ], %o0 202524c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 2025250: 80 a0 60 00 cmp %g1, 0 2025254: 22 80 00 09 be,a 2025278 2025258: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 202525c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 2063c1c 2025260: 80 a0 60 00 cmp %g1, 0 2025264: 22 80 00 05 be,a 2025278 2025268: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 202526c: 9f c0 40 00 call %g1 2025270: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 2025274: 03 00 81 8f sethi %hi(0x2063c00), %g1 2025278: d0 00 62 94 ld [ %g1 + 0x294 ], %o0 ! 2063e94 202527c: 92 07 bf ec add %fp, -20, %o1 2025280: 94 10 20 14 mov 0x14, %o2 2025284: 90 02 20 18 add %o0, 0x18, %o0 2025288: 40 00 72 67 call 2041c24 202528c: b0 10 20 00 clr %i0 return 0; } 2025290: 81 c7 e0 08 ret 2025294: 81 e8 00 00 restore 020092f4 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 20092f4: 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; 20092f8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 20092fc: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 2009300: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 2009304: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2009308: 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; 200930c: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 2009310: 94 07 bf f4 add %fp, -12, %o2 2009314: 40 00 05 52 call 200a85c 2009318: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 200931c: 80 a2 20 00 cmp %o0, 0 2009320: 02 80 00 05 be 2009334 2009324: 01 00 00 00 nop return rtems_deviceio_errno(status); 2009328: 40 00 00 3c call 2009418 <== NOT EXECUTED 200932c: 01 00 00 00 nop <== NOT EXECUTED 2009330: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 2009334: 81 c7 e0 08 ret 2009338: 81 e8 00 00 restore 02009348 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 2009348: 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; 200934c: e0 06 c0 00 ld [ %i3 ], %l0 if (!device_name_table) 2009350: 80 a4 20 00 cmp %l0, 0 2009354: 02 80 00 05 be 2009368 2009358: 27 00 80 3f sethi %hi(0x200fc00), %l3 200935c: a2 10 20 00 clr %l1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 2009360: 10 80 00 24 b 20093f0 2009364: a6 14 e1 c8 or %l3, 0x1c8, %l3 } /* 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 ); 2009368: 40 00 0b f0 call 200c328 <__errno> <== NOT EXECUTED 200936c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009370: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2009374: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009378: 81 c7 e0 08 ret <== NOT EXECUTED 200937c: 81 e8 00 00 restore <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 2009380: e4 04 00 00 ld [ %l0 ], %l2 2009384: 80 a4 a0 00 cmp %l2, 0 2009388: 02 80 00 19 be 20093ec 200938c: a2 04 60 01 inc %l1 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 2009390: 92 10 00 12 mov %l2, %o1 2009394: 40 00 0f 85 call 200d1a8 2009398: 94 10 00 19 mov %i1, %o2 200939c: 80 a2 20 00 cmp %o0, 0 20093a0: 32 80 00 14 bne,a 20093f0 20093a4: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 20093a8: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 20093ac: 80 a0 60 00 cmp %g1, 0 20093b0: 32 80 00 10 bne,a 20093f0 20093b4: a0 04 20 14 add %l0, 0x14, %l0 /* 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; 20093b8: 03 00 80 3f sethi %hi(0x200fc00), %g1 20093bc: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 200ff40 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 20093c0: e0 26 c0 00 st %l0, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 20093c4: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 20093c8: 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; 20093cc: 03 00 80 3f sethi %hi(0x200fc00), %g1 20093d0: 82 10 62 f4 or %g1, 0x2f4, %g1 ! 200fef4 20093d4: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 20093d8: 03 00 80 3f sethi %hi(0x200fc00), %g1 20093dc: 82 10 62 ac or %g1, 0x2ac, %g1 ! 200feac 20093e0: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 20093e4: 81 c7 e0 08 ret 20093e8: 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 ); for (i = 0; i < rtems_device_table_size; i++) { 20093ec: a0 04 20 14 add %l0, 0x14, %l0 20093f0: c2 04 c0 00 ld [ %l3 ], %g1 20093f4: 80 a4 40 01 cmp %l1, %g1 20093f8: 0a bf ff e2 bcs 2009380 20093fc: 90 10 00 18 mov %i0, %o0 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 2009400: 40 00 0b ca call 200c328 <__errno> 2009404: b0 10 3f ff mov -1, %i0 2009408: 82 10 20 02 mov 2, %g1 200940c: c2 22 00 00 st %g1, [ %o0 ] } 2009410: 81 c7 e0 08 ret 2009414: 81 e8 00 00 restore 02001b40 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 2001b40: 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( 2001b44: 23 00 80 3f sethi %hi(0x200fc00), %l1 2001b48: c2 04 61 c8 ld [ %l1 + 0x1c8 ], %g1 ! 200fdc8 2001b4c: 85 28 60 04 sll %g1, 4, %g2 2001b50: 83 28 60 02 sll %g1, 2, %g1 2001b54: 40 00 1c 25 call 2008be8 <_Workspace_Allocate> 2001b58: 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) 2001b5c: a0 92 20 00 orcc %o0, 0, %l0 2001b60: 12 80 00 08 bne 2001b80 2001b64: c2 04 61 c8 ld [ %l1 + 0x1c8 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2001b68: 40 00 29 f0 call 200c328 <__errno> <== NOT EXECUTED 2001b6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001b70: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2001b74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001b78: 81 c7 e0 08 ret <== NOT EXECUTED 2001b7c: 81 e8 00 00 restore <== NOT EXECUTED memset( 2001b80: 92 10 20 00 clr %o1 2001b84: 85 28 60 04 sll %g1, 4, %g2 2001b88: 83 28 60 02 sll %g1, 2, %g1 2001b8c: 40 00 2c 47 call 200cca8 2001b90: 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; 2001b94: 03 00 80 3f sethi %hi(0x200fc00), %g1 2001b98: 82 10 62 f4 or %g1, 0x2f4, %g1 ! 200fef4 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; 2001b9c: 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; 2001ba0: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 2001ba4: 03 00 80 3f sethi %hi(0x200fc00), %g1 2001ba8: 82 10 62 ac or %g1, 0x2ac, %g1 ! 200feac 2001bac: 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; } 2001bb0: 81 c7 e0 08 ret 2001bb4: 91 e8 20 00 restore %g0, 0, %o0 02001d30 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2001d30: 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; 2001d34: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 2001d38: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 2001d3c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001d40: 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; 2001d44: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 2001d48: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 2001d4c: 40 00 10 0b call 2005d78 2001d50: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2001d54: 80 a2 20 00 cmp %o0, 0 2001d58: 22 80 00 06 be,a 2001d70 2001d5c: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 2001d60: 40 00 1d ae call 2009418 <== NOT EXECUTED 2001d64: 01 00 00 00 nop <== NOT EXECUTED 2001d68: 81 c7 e0 08 ret <== NOT EXECUTED 2001d6c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 2001d70: b0 10 00 08 mov %o0, %i0 2001d74: 81 c7 e0 08 ret 2001d78: 81 e8 00 00 restore 02001bb8 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001bb8: 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') && 2001bbc: c2 4e 00 00 ldsb [ %i0 ], %g1 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001bc0: a0 10 00 18 mov %i0, %l0 * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 2001bc4: 80 a0 60 64 cmp %g1, 0x64 2001bc8: 12 80 00 0e bne 2001c00 2001bcc: aa 10 00 19 mov %i1, %l5 2001bd0: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 2001bd4: 80 a0 60 65 cmp %g1, 0x65 2001bd8: 12 80 00 0b bne 2001c04 2001bdc: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 2001be0: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 2001be4: 80 a0 60 76 cmp %g1, 0x76 2001be8: 12 80 00 07 bne 2001c04 2001bec: 03 00 00 3c sethi %hi(0xf000), %g1 2001bf0: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 2001bf4: 80 a0 60 00 cmp %g1, 0 2001bf8: 02 80 00 4a be 2001d20 2001bfc: b0 10 20 00 clr %i0 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 2001c00: 03 00 00 3c sethi %hi(0xf000), %g1 2001c04: b2 0e 40 01 and %i1, %g1, %i1 2001c08: 03 00 00 08 sethi %hi(0x2000), %g1 2001c0c: 80 a6 40 01 cmp %i1, %g1 2001c10: 02 80 00 09 be 2001c34 2001c14: 03 00 00 18 sethi %hi(0x6000), %g1 2001c18: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2001c1c: 22 80 00 07 be,a 2001c38 <== NOT EXECUTED 2001c20: e2 07 00 00 ld [ %i4 ], %l1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2001c24: 40 00 29 c1 call 200c328 <__errno> <== NOT EXECUTED 2001c28: 01 00 00 00 nop <== NOT EXECUTED 2001c2c: 10 80 00 29 b 2001cd0 <== NOT EXECUTED 2001c30: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 2001c34: e2 07 00 00 ld [ %i4 ], %l1 if (!device_name_table) 2001c38: 80 a4 60 00 cmp %l1, 0 2001c3c: 02 80 00 08 be 2001c5c 2001c40: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001c44: 33 00 80 3f sethi %hi(0x200fc00), %i1 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; if (!device_name_table) 2001c48: a8 10 00 11 mov %l1, %l4 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001c4c: b2 16 61 c8 or %i1, 0x1c8, %i1 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; if (!device_name_table) 2001c50: a4 10 3f ff mov -1, %l2 2001c54: 10 80 00 15 b 2001ca8 2001c58: a6 10 20 00 clr %l3 rtems_set_errno_and_return_minus_one( EFAULT ); 2001c5c: 40 00 29 b3 call 200c328 <__errno> <== NOT EXECUTED 2001c60: 01 00 00 00 nop <== NOT EXECUTED 2001c64: 10 80 00 1b b 2001cd0 <== NOT EXECUTED 2001c68: 82 10 20 0e mov 0xe, %g1 ! e <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) 2001c6c: d2 05 00 00 ld [ %l4 ], %o1 2001c70: 80 a2 60 00 cmp %o1, 0 2001c74: 02 80 00 0b be 2001ca0 2001c78: a8 05 20 14 add %l4, 0x14, %l4 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 2001c7c: 40 00 2c c5 call 200cf90 2001c80: 01 00 00 00 nop 2001c84: 80 a2 20 00 cmp %o0, 0 2001c88: 32 80 00 08 bne,a 2001ca8 2001c8c: a6 04 e0 01 inc %l3 rtems_set_errno_and_return_minus_one( EEXIST ); 2001c90: 40 00 29 a6 call 200c328 <__errno> <== NOT EXECUTED 2001c94: 01 00 00 00 nop <== NOT EXECUTED 2001c98: 10 80 00 0e b 2001cd0 <== NOT EXECUTED 2001c9c: 82 10 20 11 mov 0x11, %g1 ! 11 <== NOT EXECUTED 2001ca0: a4 10 00 13 mov %l3, %l2 /* 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++){ 2001ca4: a6 04 e0 01 inc %l3 2001ca8: c2 06 40 00 ld [ %i1 ], %g1 2001cac: 80 a4 c0 01 cmp %l3, %g1 2001cb0: 0a bf ff ef bcs 2001c6c 2001cb4: 90 10 00 10 mov %l0, %o0 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 2001cb8: 80 a4 bf ff cmp %l2, -1 2001cbc: 12 80 00 08 bne 2001cdc 2001cc0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 2001cc4: 40 00 29 99 call 200c328 <__errno> <== NOT EXECUTED 2001cc8: 01 00 00 00 nop <== NOT EXECUTED 2001ccc: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2001cd0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001cd4: 81 c7 e0 08 ret <== NOT EXECUTED 2001cd8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED _ISR_Disable(level); 2001cdc: 7f ff ff 70 call 2001a9c 2001ce0: 01 00 00 00 nop 2001ce4: a6 10 00 08 mov %o0, %l3 device_name_table[slot].device_name = (char *)path; 2001ce8: 83 2c a0 04 sll %l2, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 2001cec: 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; 2001cf0: a5 2c a0 02 sll %l2, 2, %l2 2001cf4: a4 04 80 01 add %l2, %g1, %l2 2001cf8: e0 24 40 12 st %l0, [ %l1 + %l2 ] device_name_table[slot].device_name_length = strlen(path); 2001cfc: 40 00 2c f6 call 200d0d4 2001d00: a2 04 40 12 add %l1, %l2, %l1 device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 2001d04: ea 34 60 10 sth %l5, [ %l1 + 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); 2001d08: d0 24 60 04 st %o0, [ %l1 + 4 ] device_name_table[slot].major = major; 2001d0c: f4 24 60 08 st %i2, [ %l1 + 8 ] device_name_table[slot].minor = minor; 2001d10: f6 24 60 0c st %i3, [ %l1 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 2001d14: b0 10 20 00 clr %i0 2001d18: 7f ff ff 65 call 2001aac 2001d1c: 90 10 00 13 mov %l3, %o0 return 0; } 2001d20: 81 c7 e0 08 ret 2001d24: 81 e8 00 00 restore 02001d7c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2001d7c: 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; 2001d80: 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; 2001d84: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 2001d88: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 2001d8c: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 2001d90: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001d94: 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; 2001d98: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 2001d9c: 94 07 bf f4 add %fp, -12, %o2 2001da0: 40 00 10 41 call 2005ea4 2001da4: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 2001da8: 80 a2 20 00 cmp %o0, 0 2001dac: 02 80 00 05 be 2001dc0 2001db0: 01 00 00 00 nop return rtems_deviceio_errno(status); 2001db4: 40 00 1d 99 call 2009418 <== NOT EXECUTED 2001db8: 01 00 00 00 nop <== NOT EXECUTED 2001dbc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 2001dc0: 81 c7 e0 08 ret 2001dc4: 81 e8 00 00 restore 02001dc8 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2001dc8: 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; 2001dcc: 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; 2001dd0: 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; 2001dd4: 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; 2001dd8: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 2001ddc: 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; 2001de0: 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( 2001de4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 2001de8: 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; 2001dec: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 2001df0: 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; 2001df4: 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( 2001df8: 40 00 10 41 call 2005efc <== NOT EXECUTED 2001dfc: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 2001e00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2001e04: 22 80 00 06 be,a 2001e1c <== NOT EXECUTED 2001e08: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 2001e0c: 40 00 1d 83 call 2009418 <== NOT EXECUTED 2001e10: 01 00 00 00 nop <== NOT EXECUTED 2001e14: 81 c7 e0 08 ret <== NOT EXECUTED 2001e18: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 2001e1c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2001e20: 81 c7 e0 08 ret <== NOT EXECUTED 2001e24: 81 e8 00 00 restore <== NOT EXECUTED 02001e28 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2001e28: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 2001e2c: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 2001e30: 80 a0 60 00 cmp %g1, 0 2001e34: 32 80 00 08 bne,a 2001e54 2001e38: c6 10 60 10 lduh [ %g1 + 0x10 ], %g3 rtems_set_errno_and_return_minus_one( EFAULT ); 2001e3c: 40 00 29 3b call 200c328 <__errno> <== NOT EXECUTED 2001e40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001e44: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2001e48: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001e4c: 81 c7 e0 08 ret <== NOT EXECUTED 2001e50: 81 e8 00 00 restore <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 2001e54: c4 00 60 0c ld [ %g1 + 0xc ], %g2 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 2001e58: c2 00 60 08 ld [ %g1 + 8 ], %g1 buf->st_mode = the_dev->mode; 2001e5c: c6 36 60 0c sth %g3, [ %i1 + 0xc ] the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 2001e60: c2 26 60 18 st %g1, [ %i1 + 0x18 ] 2001e64: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; return 0; } 2001e68: 81 c7 e0 08 ret 2001e6c: 91 e8 20 00 restore %g0, 0, %o0 02001e70 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2001e70: 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; 2001e74: 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; 2001e78: 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; 2001e7c: 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; 2001e80: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 2001e84: 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; 2001e88: 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( 2001e8c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001e90: 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; 2001e94: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 2001e98: 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; 2001e9c: 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( 2001ea0: 40 00 10 2d call 2005f54 2001ea4: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2001ea8: 80 a2 20 00 cmp %o0, 0 2001eac: 22 80 00 06 be,a 2001ec4 2001eb0: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 2001eb4: 40 00 1d 59 call 2009418 <== NOT EXECUTED 2001eb8: 01 00 00 00 nop <== NOT EXECUTED 2001ebc: 81 c7 e0 08 ret <== NOT EXECUTED 2001ec0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 2001ec4: b0 10 00 08 mov %o0, %i0 2001ec8: 81 c7 e0 08 ret 2001ecc: 81 e8 00 00 restore 0200c568 : */ int device_close( rtems_libio_t *iop ) { 200c568: 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; 200c56c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200c570: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200c574: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200c578: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200c57c: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c580: 94 07 bf f4 add %fp, -12, %o2 200c584: 40 00 05 28 call 200da24 200c588: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200c58c: 80 a2 20 00 cmp %o0, 0 200c590: 02 80 00 05 be 200c5a4 200c594: 01 00 00 00 nop return rtems_deviceio_errno(status); 200c598: 40 00 06 ae call 200e050 <== NOT EXECUTED 200c59c: 01 00 00 00 nop <== NOT EXECUTED 200c5a0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 200c5a4: 81 c7 e0 08 ret 200c5a8: 81 e8 00 00 restore 0200c468 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200c468: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200c46c: 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; 200c470: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200c474: 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; 200c478: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200c47c: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c480: 40 00 05 7f call 200da7c 200c484: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c488: 80 a2 20 00 cmp %o0, 0 200c48c: 22 80 00 06 be,a 200c4a4 200c490: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200c494: 40 00 06 ef call 200e050 <== NOT EXECUTED 200c498: 01 00 00 00 nop <== NOT EXECUTED 200c49c: 81 c7 e0 08 ret <== NOT EXECUTED 200c4a0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 200c4a4: b0 10 00 08 mov %o0, %i0 200c4a8: 81 c7 e0 08 ret 200c4ac: 81 e8 00 00 restore 0200c5ac : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200c5ac: 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; 200c5b0: 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; 200c5b4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200c5b8: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200c5bc: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200c5c0: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200c5c4: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c5c8: 94 07 bf f4 add %fp, -12, %o2 200c5cc: 40 00 05 42 call 200dad4 200c5d0: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c5d4: 80 a2 20 00 cmp %o0, 0 200c5d8: 02 80 00 05 be 200c5ec 200c5dc: 01 00 00 00 nop return rtems_deviceio_errno(status); 200c5e0: 40 00 06 9c call 200e050 <== NOT EXECUTED 200c5e4: 01 00 00 00 nop <== NOT EXECUTED 200c5e8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 200c5ec: 81 c7 e0 08 ret 200c5f0: 81 e8 00 00 restore 0200c50c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200c50c: 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; 200c510: 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; 200c514: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 200c518: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 200c51c: 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; 200c520: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200c524: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 200c528: 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; 200c52c: 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; 200c530: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 200c534: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200c538: 40 00 05 7d call 200db2c <== NOT EXECUTED 200c53c: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c540: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c544: 22 80 00 06 be,a 200c55c <== NOT EXECUTED 200c548: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200c54c: 40 00 06 c1 call 200e050 <== NOT EXECUTED 200c550: 01 00 00 00 nop <== NOT EXECUTED 200c554: 81 c7 e0 08 ret <== NOT EXECUTED 200c558: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200c55c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200c560: 81 c7 e0 08 ret <== NOT EXECUTED 200c564: 81 e8 00 00 restore <== NOT EXECUTED 0200c4b0 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200c4b0: 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; 200c4b4: 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; 200c4b8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200c4bc: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200c4c0: 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; 200c4c4: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200c4c8: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200c4cc: 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; 200c4d0: 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; 200c4d4: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200c4d8: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c4dc: 40 00 05 aa call 200db84 200c4e0: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c4e4: 80 a2 20 00 cmp %o0, 0 200c4e8: 22 80 00 06 be,a 200c500 200c4ec: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200c4f0: 40 00 06 d8 call 200e050 <== NOT EXECUTED 200c4f4: 01 00 00 00 nop <== NOT EXECUTED 200c4f8: 81 c7 e0 08 ret <== NOT EXECUTED 200c4fc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200c500: b0 10 00 08 mov %o0, %i0 200c504: 81 c7 e0 08 ret 200c508: 81 e8 00 00 restore 02003c3c : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2003c3c: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2003c40: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 2003c44: 80 a0 60 00 cmp %g1, 0 2003c48: 02 80 00 1a be 2003cb0 2003c4c: a0 10 00 18 mov %i0, %l0 rtems_interrupt_disable (level); 2003c50: 7f ff f8 2b call 2001cfc <== NOT EXECUTED 2003c54: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2003c58: 10 80 00 0f b 2003c94 <== NOT EXECUTED 2003c5c: a2 10 20 02 mov 2, %l1 ! 2 <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 2003c60: 7f ff f8 2b call 2001d0c <== NOT EXECUTED 2003c64: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003c68: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2003c6c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003c70: 40 00 06 58 call 20055d0 <== NOT EXECUTED 2003c74: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003c78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003c7c: 02 80 00 04 be 2003c8c <== NOT EXECUTED 2003c80: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2003c84: 40 00 07 fc call 2005c74 <== NOT EXECUTED 2003c88: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 2003c8c: 7f ff f8 1c call 2001cfc <== NOT EXECUTED 2003c90: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2003c94: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED 2003c98: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2003c9c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003ca0: 32 bf ff f0 bne,a 2003c60 <== NOT EXECUTED 2003ca4: e2 24 20 94 st %l1, [ %l0 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 2003ca8: 7f ff f8 19 call 2001d0c <== NOT EXECUTED 2003cac: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 2003cb0: 81 c7 e0 08 ret 2003cb4: 81 e8 00 00 restore 02002f38 : int dup2( int fildes, int fildes2 ) { 2002f38: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 2002f3c: a0 07 bf b8 add %fp, -72, %l0 2002f40: 90 10 00 18 mov %i0, %o0 2002f44: 40 00 01 dc call 20036b4 2002f48: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 2002f4c: 80 a2 3f ff cmp %o0, -1 2002f50: 02 80 00 0e be 2002f88 2002f54: 90 10 3f ff mov -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 2002f58: 92 10 00 10 mov %l0, %o1 2002f5c: 40 00 01 d6 call 20036b4 2002f60: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 2002f64: 80 a2 3f ff cmp %o0, -1 2002f68: 02 80 00 07 be 2002f84 2002f6c: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 2002f70: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 2002f74: 40 00 00 a1 call 20031f8 <== NOT EXECUTED 2002f78: 92 10 20 00 clr %o1 <== NOT EXECUTED 2002f7c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f80: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 2002f84: 90 10 3f ff mov -1, %o0 } 2002f88: b0 10 00 08 mov %o0, %i0 2002f8c: 81 c7 e0 08 ret 2002f90: 81 e8 00 00 restore 02003688 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2003688: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 200368c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003690: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003694: 02 80 00 1c be 2003704 <== NOT EXECUTED 2003698: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200369c: 03 00 80 6b sethi %hi(0x201ac00), %g1 <== NOT EXECUTED 20036a0: c4 00 60 64 ld [ %g1 + 0x64 ], %g2 ! 201ac64 <__ctype_ptr__> <== NOT EXECUTED 20036a4: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED 20036a8: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 20036ac: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 20036b0: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 20036b4: 22 80 00 15 be,a 2003708 <== NOT EXECUTED 20036b8: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 20036bc: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED 20036c0: 02 80 00 11 be 2003704 <== NOT EXECUTED 20036c4: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 20036c8: 02 80 00 10 be 2003708 <== NOT EXECUTED 20036cc: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; 20036d0: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED echobuf[1] = c ^ 0x40; 20036d4: 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] = '^'; 20036d8: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 20036dc: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 20036e0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20036e4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20036e8: 7f ff ff 39 call 20033cc <== NOT EXECUTED 20036ec: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 20036f0: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 20036f4: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 20036f8: 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')) { 20036fc: 81 c7 e0 08 ret <== NOT EXECUTED 2003700: 81 e8 00 00 restore <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 2003704: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 2003708: 7f ff ff 7d call 20034fc <== NOT EXECUTED 200370c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003710: 81 c7 e0 08 ret <== NOT EXECUTED 2003714: 81 e8 00 00 restore <== NOT EXECUTED 020258e8 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 20258e8: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 20258ec: d0 00 62 04 ld [ %g1 + 0x204 ], %o0 ! 2067a04 <== NOT EXECUTED 20258f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20258f4: 02 80 00 05 be 2025908 <== NOT EXECUTED 20258f8: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 20258fc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025900: 40 00 64 4e call 203ea38 <== NOT EXECUTED 2025904: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2025908: 81 c3 e0 08 retl <== NOT EXECUTED 202590c: 01 00 00 00 nop 02025910 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 2025910: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025914: d0 00 61 1c ld [ %g1 + 0x11c ], %o0 ! 206791c <== NOT EXECUTED 2025918: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 202591c: 02 80 00 05 be 2025930 <== NOT EXECUTED 2025920: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2025924: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025928: 40 00 64 44 call 203ea38 <== NOT EXECUTED 202592c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2025930: 81 c3 e0 08 retl <== NOT EXECUTED 2025934: 01 00 00 00 nop 02003718 : * 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) { 2003718: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 200371c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2003720: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003724: 02 80 00 0a be 200374c <== NOT EXECUTED 2003728: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 200372c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003730: 02 80 00 7a be 2003918 <== NOT EXECUTED 2003734: 25 00 80 6b sethi %hi(0x201ac00), %l2 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 2003738: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200373c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003740: 32 80 00 05 bne,a 2003754 <== NOT EXECUTED 2003744: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED tty->ccount = 0; 2003748: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 200374c: 81 c7 e0 08 ret <== NOT EXECUTED 2003750: 81 e8 00 00 restore <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { 2003754: 12 80 00 71 bne 2003918 <== NOT EXECUTED 2003758: 25 00 80 6b sethi %hi(0x201ac00), %l2 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 200375c: 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; 2003760: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 2003764: 7f ff ff c9 call 2003688 <== NOT EXECUTED 2003768: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 200376c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); 2003770: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) 2003774: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003778: 02 bf ff f5 be 200374c <== NOT EXECUTED 200377c: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 2003780: 30 80 00 0f b,a 20037bc <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 2003784: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2003788: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 200378c: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2003790: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003794: 02 80 00 5c be 2003904 <== NOT EXECUTED 2003798: e2 08 80 03 ldub [ %g2 + %g3 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 200379c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20037a0: 32 80 00 09 bne,a 20037c4 <== NOT EXECUTED 20037a4: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 20037a8: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 20037ac: 32 80 00 06 bne,a 20037c4 <== NOT EXECUTED 20037b0: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 20037b4: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED 20037b8: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED 20037bc: 7f ff ff b3 call 2003688 <== NOT EXECUTED 20037c0: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == '\t') { 20037c4: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 20037c8: 32 80 00 2a bne,a 2003870 <== NOT EXECUTED 20037cc: c4 04 80 00 ld [ %l2 ], %g2 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 20037d0: 82 08 62 00 and %g1, 0x200, %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; 20037d4: e2 04 20 2c ld [ %l0 + 0x2c ], %l1 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 20037d8: da 04 80 00 ld [ %l2 ], %o5 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 20037dc: 10 80 00 13 b 2003828 <== NOT EXECUTED 20037e0: 84 10 20 00 clr %g2 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { 20037e4: c8 09 00 02 ldub [ %g4 + %g2 ], %g4 <== NOT EXECUTED 20037e8: 80 a1 20 09 cmp %g4, 9 <== NOT EXECUTED 20037ec: 12 80 00 04 bne 20037fc <== NOT EXECUTED 20037f0: 98 03 40 04 add %o5, %g4, %o4 <== NOT EXECUTED col = (col | 7) + 1; 20037f4: 10 80 00 0b b 2003820 <== NOT EXECUTED 20037f8: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED } else if (iscntrl (c)) { 20037fc: c8 0b 20 01 ldub [ %o4 + 1 ], %g4 <== NOT EXECUTED 2003800: 80 89 20 20 btst 0x20, %g4 <== NOT EXECUTED 2003804: 22 80 00 08 be,a 2003824 <== NOT EXECUTED 2003808: a2 04 60 01 inc %l1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 200380c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003810: 32 80 00 05 bne,a 2003824 <== NOT EXECUTED 2003814: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2003818: 10 80 00 04 b 2003828 <== NOT EXECUTED 200381c: 84 00 a0 01 inc %g2 <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 2003820: a2 04 60 01 inc %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2003824: 84 00 a0 01 inc %g2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003828: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 200382c: 32 bf ff ee bne,a 20037e4 <== NOT EXECUTED 2003830: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003834: 10 80 00 08 b 2003854 <== NOT EXECUTED 2003838: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 200383c: 7f ff fe e4 call 20033cc <== NOT EXECUTED 2003840: 01 00 00 00 nop <== NOT EXECUTED tty->column--; 2003844: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003848: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200384c: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003850: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2003854: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 2003858: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 200385c: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 2003860: 14 bf ff f7 bg 200383c <== NOT EXECUTED 2003864: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003868: 10 80 00 28 b 2003908 <== NOT EXECUTED 200386c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003870: a2 04 60 01 inc %l1 <== NOT EXECUTED 2003874: c4 08 80 11 ldub [ %g2 + %l1 ], %g2 <== NOT EXECUTED 2003878: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 200387c: 22 80 00 10 be,a 20038bc <== NOT EXECUTED 2003880: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 2003884: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003888: 22 80 00 0d be,a 20038bc <== NOT EXECUTED 200388c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2003890: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2003894: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003898: 7f ff fe cd call 20033cc <== NOT EXECUTED 200389c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20038a0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20038a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038a8: 22 80 00 05 be,a 20038bc <== NOT EXECUTED 20038ac: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED tty->column--; 20038b0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20038b4: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 20038b8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 20038bc: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 20038c0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20038c4: 02 80 00 07 be 20038e0 <== NOT EXECUTED 20038c8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20038cc: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 20038d0: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20038d4: 02 80 00 0d be 2003908 <== NOT EXECUTED 20038d8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 20038dc: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20038e0: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20038e4: 7f ff fe ba call 20033cc <== NOT EXECUTED 20038e8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20038ec: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20038f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038f4: 02 80 00 05 be 2003908 <== NOT EXECUTED 20038f8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 20038fc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003900: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } } } if (!lineFlag) 2003904: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003908: 32 80 00 0a bne,a 2003930 <== NOT EXECUTED 200390c: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2003910: 81 c7 e0 08 ret <== NOT EXECUTED 2003914: 81 e8 00 00 restore <== 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); 2003918: 27 00 80 67 sethi %hi(0x2019c00), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 200391c: 29 00 80 67 sethi %hi(0x2019c00), %l4 <== NOT EXECUTED 2003920: a4 14 a0 64 or %l2, 0x64, %l2 <== 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); 2003924: a6 14 e0 10 or %l3, 0x10, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003928: a8 15 20 08 or %l4, 8, %l4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 200392c: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2003930: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2003934: 32 bf ff 94 bne,a 2003784 <== NOT EXECUTED 2003938: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 200393c: 81 c7 e0 08 ret <== NOT EXECUTED 2003940: 81 e8 00 00 restore <== NOT EXECUTED 020385b0 : #include int fchdir( int fd ) { 20385b0: 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 ); 20385b4: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 20385b8: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 2063ba4 <== NOT EXECUTED 20385bc: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20385c0: 1a 80 00 0c bcc 20385f0 <== NOT EXECUTED 20385c4: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20385c8: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 20385cc: e4 00 60 f0 ld [ %g1 + 0xf0 ], %l2 ! 2067cf0 <== NOT EXECUTED 20385d0: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20385d4: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20385d8: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 20385dc: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20385e0: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 20385e4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20385e8: 12 80 00 06 bne 2038600 <== NOT EXECUTED 20385ec: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 20385f0: 40 00 18 ba call 203e8d8 <__errno> <== NOT EXECUTED 20385f4: 01 00 00 00 nop <== NOT EXECUTED 20385f8: 10 80 00 1b b 2038664 <== NOT EXECUTED 20385fc: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2038600: 32 80 00 06 bne,a 2038618 <== NOT EXECUTED 2038604: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 2038608: 40 00 18 b4 call 203e8d8 <__errno> <== NOT EXECUTED 203860c: 01 00 00 00 nop <== NOT EXECUTED 2038610: 10 80 00 15 b 2038664 <== NOT EXECUTED 2038614: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 2038618: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203861c: 02 80 00 06 be 2038634 <== NOT EXECUTED 2038620: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 2038624: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 2038628: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 203862c: 32 80 00 06 bne,a 2038644 <== NOT EXECUTED 2038630: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2038634: 40 00 18 a9 call 203e8d8 <__errno> <== NOT EXECUTED 2038638: 01 00 00 00 nop <== NOT EXECUTED 203863c: 10 80 00 0a b 2038664 <== NOT EXECUTED 2038640: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 2038644: 9f c0 40 00 call %g1 <== NOT EXECUTED 2038648: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 203864c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2038650: 02 80 00 07 be 203866c <== NOT EXECUTED 2038654: 23 00 81 8f sethi %hi(0x2063c00), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 2038658: 40 00 18 a0 call 203e8d8 <__errno> <== NOT EXECUTED 203865c: 01 00 00 00 nop <== NOT EXECUTED 2038660: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 2038664: 10 80 00 1c b 20386d4 <== NOT EXECUTED 2038668: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 203866c: e6 04 62 94 ld [ %l1 + 0x294 ], %l3 <== NOT EXECUTED 2038670: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2038674: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 2038678: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 203867c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2038680: 40 00 25 69 call 2041c24 <== NOT EXECUTED 2038684: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 2038688: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 203868c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2038690: 40 00 25 65 call 2041c24 <== NOT EXECUTED 2038694: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2038698: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 203869c: 11 00 81 6c sethi %hi(0x205b000), %o0 <== NOT EXECUTED 20386a0: 94 10 20 00 clr %o2 <== NOT EXECUTED 20386a4: 90 12 21 30 or %o0, 0x130, %o0 <== NOT EXECUTED 20386a8: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 20386ac: 7f ff 35 1a call 2005b14 <== NOT EXECUTED 20386b0: 98 10 20 00 clr %o4 <== NOT EXECUTED 20386b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20386b8: 02 80 00 09 be 20386dc <== NOT EXECUTED 20386bc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 20386c0: d0 04 62 94 ld [ %l1 + 0x294 ], %o0 <== NOT EXECUTED 20386c4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20386c8: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 20386cc: 40 00 25 56 call 2041c24 <== NOT EXECUTED 20386d0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 20386d4: 81 c7 e0 08 ret <== NOT EXECUTED 20386d8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 20386dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20386e0: 22 80 00 09 be,a 2038704 <== NOT EXECUTED 20386e4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20386e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 2063c1c <== NOT EXECUTED 20386ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20386f0: 22 80 00 05 be,a 2038704 <== NOT EXECUTED 20386f4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20386f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20386fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 2038700: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2038704: d0 00 62 94 ld [ %g1 + 0x294 ], %o0 ! 2063e94 <== NOT EXECUTED 2038708: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 203870c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2038710: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2038714: 40 00 25 44 call 2041c24 <== NOT EXECUTED 2038718: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 203871c: 81 c7 e0 08 ret <== NOT EXECUTED 2038720: 81 e8 00 00 restore <== NOT EXECUTED 020254d0 : int fchmod( int fd, mode_t mode ) { 20254d0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20254d4: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 20254d8: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 2063ba4 <== NOT EXECUTED 20254dc: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20254e0: 1a 80 00 0c bcc 2025510 <== NOT EXECUTED 20254e4: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20254e8: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 20254ec: d0 00 60 f0 ld [ %g1 + 0xf0 ], %o0 ! 2067cf0 <== NOT EXECUTED 20254f0: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20254f4: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20254f8: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 20254fc: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2025500: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2025504: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2025508: 12 80 00 06 bne 2025520 <== NOT EXECUTED 202550c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2025510: 40 00 64 f2 call 203e8d8 <__errno> <== NOT EXECUTED 2025514: 01 00 00 00 nop <== NOT EXECUTED 2025518: 10 80 00 0f b 2025554 <== NOT EXECUTED 202551c: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2025520: 32 80 00 06 bne,a 2025538 <== NOT EXECUTED 2025524: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 2025528: 40 00 64 ec call 203e8d8 <__errno> <== NOT EXECUTED 202552c: 01 00 00 00 nop <== NOT EXECUTED 2025530: 10 80 00 09 b 2025554 <== NOT EXECUTED 2025534: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 2025538: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202553c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025540: 32 80 00 08 bne,a 2025560 <== NOT EXECUTED 2025544: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025548: 40 00 64 e4 call 203e8d8 <__errno> <== NOT EXECUTED 202554c: 01 00 00 00 nop <== NOT EXECUTED 2025550: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2025554: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025558: 10 80 00 07 b 2025574 <== NOT EXECUTED 202555c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2025560: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED 2025564: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2025568: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 202556c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025570: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 2025574: 81 c7 e0 08 ret <== NOT EXECUTED 2025578: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0202557c : int fchown( int fd, uid_t owner, gid_t group ) { 202557c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2025580: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 2025584: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 2063ba4 <== NOT EXECUTED 2025588: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202558c: 1a 80 00 0c bcc 20255bc <== NOT EXECUTED 2025590: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2025594: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 2025598: d0 00 60 f0 ld [ %g1 + 0xf0 ], %o0 ! 2067cf0 <== NOT EXECUTED 202559c: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20255a0: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20255a4: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 20255a8: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20255ac: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 20255b0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20255b4: 12 80 00 06 bne 20255cc <== NOT EXECUTED 20255b8: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 20255bc: 40 00 64 c7 call 203e8d8 <__errno> <== NOT EXECUTED 20255c0: 01 00 00 00 nop <== NOT EXECUTED 20255c4: 10 80 00 0f b 2025600 <== NOT EXECUTED 20255c8: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20255cc: 32 80 00 06 bne,a 20255e4 <== NOT EXECUTED 20255d0: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 20255d4: 40 00 64 c1 call 203e8d8 <__errno> <== NOT EXECUTED 20255d8: 01 00 00 00 nop <== NOT EXECUTED 20255dc: 10 80 00 09 b 2025600 <== NOT EXECUTED 20255e0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 20255e4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20255e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20255ec: 12 80 00 08 bne 202560c <== NOT EXECUTED 20255f0: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20255f4: 40 00 64 b9 call 203e8d8 <__errno> <== NOT EXECUTED 20255f8: 01 00 00 00 nop <== NOT EXECUTED 20255fc: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2025600: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025604: 10 80 00 07 b 2025620 <== NOT EXECUTED 2025608: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 202560c: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 2025610: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 2025614: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2025618: 9f c0 40 00 call %g1 <== NOT EXECUTED 202561c: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 2025620: 81 c7 e0 08 ret <== NOT EXECUTED 2025624: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0203874c : int fcntl( int fd, int cmd, ... ) { 203874c: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2038750: 03 00 81 8e sethi %hi(0x2063800), %g1 2038754: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 2063ba4 ... ) { int ret; va_list ap; va_start( ap, cmd ); 2038758: 84 07 a0 4c add %fp, 0x4c, %g2 203875c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2038760: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2038764: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2038768: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 203876c: 80 a6 00 01 cmp %i0, %g1 2038770: 1a 80 00 0c bcc 20387a0 2038774: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 2038778: 07 00 81 9f sethi %hi(0x2067c00), %g3 203877c: c6 00 e0 f0 ld [ %g3 + 0xf0 ], %g3 ! 2067cf0 2038780: 89 2e 20 06 sll %i0, 6, %g4 2038784: a1 2e 20 03 sll %i0, 3, %l0 2038788: a0 04 00 04 add %l0, %g4, %l0 203878c: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 2038790: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2038794: 80 8a 21 00 btst 0x100, %o0 2038798: 12 80 00 06 bne 20387b0 203879c: 80 a6 60 09 cmp %i1, 9 20387a0: 40 00 18 4e call 203e8d8 <__errno> <== NOT EXECUTED 20387a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20387a8: 10 80 00 51 b 20388ec <== NOT EXECUTED 20387ac: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 20387b0: 18 80 00 4c bgu 20388e0 20387b4: 89 2e 60 02 sll %i1, 2, %g4 20387b8: 1b 00 80 e1 sethi %hi(0x2038400), %o5 20387bc: 9a 13 63 24 or %o5, 0x324, %o5 ! 2038724 20387c0: c8 03 40 04 ld [ %o5 + %g4 ], %g4 20387c4: 81 c1 00 00 jmp %g4 20387c8: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 20387cc: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 20387d0: 80 a0 a0 00 cmp %g2, 0 20387d4: 02 80 00 09 be 20387f8 20387d8: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 20387dc: 1a 80 00 0c bcc 203880c <== NOT EXECUTED 20387e0: a2 10 20 00 clr %l1 <== NOT EXECUTED 20387e4: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 20387e8: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 20387ec: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 20387f0: 10 80 00 07 b 203880c <== NOT EXECUTED 20387f4: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 20387f8: 7f ff 35 e1 call 2005f7c 20387fc: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 2038800: a2 92 20 00 orcc %o0, 0, %l1 2038804: 02 80 00 4d be 2038938 2038808: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 203880c: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 2038810: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 2038814: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 2038818: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 203881c: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 2038820: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2038824: 90 04 60 1c add %l1, 0x1c, %o0 2038828: 92 04 20 1c add %l0, 0x1c, %o1 203882c: 40 00 24 fe call 2041c24 2038830: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 2038834: 03 00 81 9f sethi %hi(0x2067c00), %g1 2038838: f0 00 60 f0 ld [ %g1 + 0xf0 ], %i0 ! 2067cf0 203883c: a2 24 40 18 sub %l1, %i0, %l1 2038840: a3 3c 60 03 sra %l1, 3, %l1 2038844: 85 2c 60 06 sll %l1, 6, %g2 2038848: 83 2c 60 03 sll %l1, 3, %g1 203884c: 82 20 80 01 sub %g2, %g1, %g1 2038850: 85 28 60 06 sll %g1, 6, %g2 2038854: 82 00 40 02 add %g1, %g2, %g1 2038858: 82 00 40 11 add %g1, %l1, %g1 203885c: b1 28 60 0f sll %g1, 0xf, %i0 2038860: b0 26 00 01 sub %i0, %g1, %i0 2038864: b1 2e 20 03 sll %i0, 3, %i0 2038868: 10 80 00 24 b 20388f8 203886c: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 2038870: b1 32 20 0b srl %o0, 0xb, %i0 2038874: 10 80 00 24 b 2038904 2038878: b0 0e 20 01 and %i0, 1, %i0 * 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 ) ) 203887c: c2 00 80 00 ld [ %g2 ], %g1 2038880: 80 a0 60 00 cmp %g1, 0 2038884: 22 80 00 03 be,a 2038890 2038888: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 203888c: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 2038890: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 2038894: 10 80 00 1c b 2038904 2038898: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 203889c: 7f ff 35 4d call 2005dd0 20388a0: 01 00 00 00 nop 20388a4: 10 80 00 15 b 20388f8 20388a8: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 20388ac: d0 00 80 00 ld [ %g2 ], %o0 20388b0: 7f ff 35 e7 call 200604c 20388b4: b0 10 20 00 clr %i0 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 20388b8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 20388bc: 90 0a 22 01 and %o0, 0x201, %o0 20388c0: 82 08 7d fe and %g1, -514, %g1 20388c4: 82 12 00 01 or %o0, %g1, %g1 20388c8: 10 80 00 0f b 2038904 20388cc: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 20388d0: 40 00 18 02 call 203e8d8 <__errno> 20388d4: b0 10 3f ff mov -1, %i0 20388d8: 10 80 00 05 b 20388ec 20388dc: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 20388e0: 40 00 17 fe call 203e8d8 <__errno> 20388e4: b0 10 3f ff mov -1, %i0 20388e8: 82 10 20 16 mov 0x16, %g1 20388ec: c2 22 00 00 st %g1, [ %o0 ] 20388f0: 81 c7 e0 08 ret 20388f4: 81 e8 00 00 restore /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 20388f8: 80 a6 20 00 cmp %i0, 0 20388fc: 06 80 00 0f bl 2038938 2038900: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 2038904: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2038908: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 203890c: 80 a0 60 00 cmp %g1, 0 2038910: 02 bf ff f8 be 20388f0 2038914: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 2038918: 9f c0 40 00 call %g1 203891c: 90 10 00 19 mov %i1, %o0 if (err) { 2038920: a0 92 20 00 orcc %o0, 0, %l0 2038924: 02 80 00 05 be 2038938 2038928: 01 00 00 00 nop errno = err; 203892c: 40 00 17 eb call 203e8d8 <__errno> <== NOT EXECUTED 2038930: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2038934: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 2038938: 81 c7 e0 08 ret 203893c: 81 e8 00 00 restore 0200cb84 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200cb84: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200cb88: 03 00 80 6c sethi %hi(0x201b000), %g1 200cb8c: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 201b280 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200cb90: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200cb94: 92 10 20 00 clr %o1 200cb98: 94 10 20 00 clr %o2 200cb9c: 7f ff e2 8d call 20055d0 200cba0: b0 10 3f fc mov -4, %i0 200cba4: 80 a2 20 00 cmp %o0, 0 200cba8: 12 80 00 f0 bne 200cf68 200cbac: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200cbb0: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 200cbb4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200cbb8: 32 80 00 5b bne,a 200cd24 <== NOT EXECUTED 200cbbc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 200cbc0: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED 200cbc4: 7f ff f7 69 call 200a968 <== NOT EXECUTED 200cbc8: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 200cbcc: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 200cbd0: 02 80 00 66 be 200cd68 <== NOT EXECUTED 200cbd4: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 200cbd8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cbdc: 40 00 0a 00 call 200f3dc <== NOT EXECUTED 200cbe0: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 200cbe4: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200cbe8: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 200cbec: 7f ff f7 5f call 200a968 <== NOT EXECUTED 200cbf0: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 200cbf4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cbf8: 02 80 00 46 be 200cd10 <== NOT EXECUTED 200cbfc: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 200cc00: 27 00 80 6b sethi %hi(0x201ac00), %l3 <== NOT EXECUTED 200cc04: d0 4c e0 50 ldsb [ %l3 + 0x50 ], %o0 ! 201ac50 <== NOT EXECUTED 200cc08: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 200cc0c: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200cc10: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cc14: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200cc18: 94 10 20 00 clr %o2 <== NOT EXECUTED 200cc1c: 40 00 02 b1 call 200d6e0 <== NOT EXECUTED 200cc20: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED 200cc24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cc28: 32 80 00 38 bne,a 200cd08 <== NOT EXECUTED 200cc2c: d0 04 80 00 ld [ %l2 ], %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( 200cc30: d0 4c e0 50 ldsb [ %l3 + 0x50 ], %o0 <== NOT EXECUTED 200cc34: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200cc38: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200cc3c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cc40: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200cc44: 94 10 20 00 clr %o2 <== NOT EXECUTED 200cc48: 40 00 02 a6 call 200d6e0 <== NOT EXECUTED 200cc4c: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED 200cc50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cc54: 12 80 00 2a bne 200ccfc <== NOT EXECUTED 200cc58: a8 15 23 00 or %l4, 0x300, %l4 <== 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( 200cc5c: d0 4c e0 50 ldsb [ %l3 + 0x50 ], %o0 <== NOT EXECUTED 200cc60: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200cc64: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 200cc68: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200cc6c: 96 10 20 00 clr %o3 <== NOT EXECUTED 200cc70: 7f ff e1 b6 call 2005348 <== NOT EXECUTED 200cc74: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED 200cc78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cc7c: 12 80 00 1e bne 200ccf4 <== NOT EXECUTED 200cc80: 29 00 80 6f sethi %hi(0x201bc00), %l4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 200cc84: d2 04 a0 2c ld [ %l2 + 0x2c ], %o1 <== NOT EXECUTED 200cc88: b0 07 bf f8 add %fp, -8, %i0 <== NOT EXECUTED 200cc8c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200cc90: 7f ff e8 5a call 2006df8 <_Objects_Get> <== NOT EXECUTED 200cc94: 90 15 23 30 or %l4, 0x330, %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 200cc98: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200cc9c: 25 04 00 00 sethi %hi(0x10000000), %l2 <== NOT EXECUTED 200cca0: 82 10 40 12 or %g1, %l2, %g1 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200cca4: 7f ff ea be call 200779c <_Thread_Enable_dispatch> <== NOT EXECUTED 200cca8: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED 200ccac: d2 04 60 30 ld [ %l1 + 0x30 ], %o1 <== NOT EXECUTED 200ccb0: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200ccb4: 7f ff e8 51 call 2006df8 <_Objects_Get> <== NOT EXECUTED 200ccb8: 90 15 23 30 or %l4, 0x330, %o0 <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 200ccbc: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200ccc0: a4 10 40 12 or %g1, %l2, %l2 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200ccc4: 7f ff ea b6 call 200779c <_Thread_Enable_dispatch> <== NOT EXECUTED 200ccc8: e4 22 20 4c st %l2, [ %o0 + 0x4c ] <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200cccc: c2 0c e0 50 ldub [ %l3 + 0x50 ], %g1 <== NOT EXECUTED 200ccd0: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200ccd4: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200ccd8: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200ccdc: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200cce0: 12 80 00 10 bne 200cd20 <== NOT EXECUTED 200cce4: c4 2c e0 50 stb %g2, [ %l3 + 0x50 ] <== NOT EXECUTED c = 'a'; 200cce8: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200ccec: 10 80 00 0d b 200cd20 <== NOT EXECUTED 200ccf0: c2 2c e0 50 stb %g1, [ %l3 + 0x50 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200ccf4: 40 00 02 a9 call 200d798 <== NOT EXECUTED 200ccf8: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200ccfc: 40 00 02 a7 call 200d798 <== NOT EXECUTED 200cd00: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200cd04: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED 200cd08: 7f ff f5 b6 call 200a3e0 <== NOT EXECUTED 200cd0c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 200cd10: 7f ff f5 b4 call 200a3e0 <== NOT EXECUTED 200cd14: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200cd18: 10 80 00 15 b 200cd6c <== NOT EXECUTED 200cd1c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200cd20: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200cd24: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cd28: 7f ff e2 2a call 20055d0 <== NOT EXECUTED 200cd2c: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200cd30: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200cd34: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200cd38: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200cd3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200cd40: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200cd44: 12 80 00 09 bne 200cd68 <== NOT EXECUTED 200cd48: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 200cd4c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200cd50: 22 80 00 06 be,a 200cd68 <== NOT EXECUTED 200cd54: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 200cd58: 7f ff ff 3b call 200ca44 <== NOT EXECUTED 200cd5c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200cd60: 10 80 00 03 b 200cd6c <== NOT EXECUTED 200cd64: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cd68: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cd6c: 7f ff e2 60 call 20056ec <== NOT EXECUTED 200cd70: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 201b280 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 200cd74: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200cd78: 12 80 00 7c bne 200cf68 <== NOT EXECUTED 200cd7c: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200cd80: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 200cd84: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200cd88: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200cd8c: 02 80 00 2e be 200ce44 <== NOT EXECUTED 200cd90: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 200cd94: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200cd98: 02 80 00 56 be 200cef0 <== NOT EXECUTED 200cd9c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200cda0: 12 80 00 6a bne 200cf48 <== NOT EXECUTED 200cda4: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200cda8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200cdac: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cdb0: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200cdb4: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cdb8: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200cdbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cdc0: 12 80 00 05 bne 200cdd4 <== NOT EXECUTED 200cdc4: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200cdc8: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200cdcc: 40 00 02 8d call 200d800 <== NOT EXECUTED 200cdd0: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200cdd4: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200cdd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cddc: 12 80 00 5b bne 200cf48 <== NOT EXECUTED 200cde0: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200cde4: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200cde8: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200cdec: 12 80 00 57 bne 200cf48 <== NOT EXECUTED 200cdf0: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200cdf4: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200cdf8: 7f ff e2 3d call 20056ec <== NOT EXECUTED 200cdfc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200ce00: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200ce04: 40 00 02 96 call 200d85c <== NOT EXECUTED 200ce08: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ce0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ce10: 12 80 00 52 bne 200cf58 <== NOT EXECUTED 200ce14: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200ce18: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200ce1c: 7f ff e1 ed call 20055d0 <== NOT EXECUTED 200ce20: 94 10 20 00 clr %o2 <== NOT EXECUTED 200ce24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ce28: 32 80 00 4d bne,a 200cf5c <== NOT EXECUTED 200ce2c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200ce30: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 200ce34: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200ce38: 02 bf ff f0 be 200cdf8 <== NOT EXECUTED 200ce3c: 01 00 00 00 nop <== NOT EXECUTED 200ce40: 30 80 00 42 b,a 200cf48 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200ce44: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200ce48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ce4c: 32 80 00 07 bne,a 200ce68 <== NOT EXECUTED 200ce50: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200ce54: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200ce58: 22 80 00 04 be,a 200ce68 <== NOT EXECUTED 200ce5c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200ce60: 10 80 00 3f b 200cf5c <== NOT EXECUTED 200ce64: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200ce68: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200ce6c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200ce70: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200ce74: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200ce78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ce7c: 12 80 00 05 bne 200ce90 <== NOT EXECUTED 200ce80: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200ce84: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200ce88: 40 00 02 5e call 200d800 <== NOT EXECUTED 200ce8c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0) { 200ce90: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200ce94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ce98: 12 80 00 2c bne 200cf48 <== NOT EXECUTED 200ce9c: 01 00 00 00 nop <== NOT EXECUTED prevCounter = pipe->readerCounter; 200cea0: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 200cea4: 7f ff e2 12 call 20056ec <== NOT EXECUTED 200cea8: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200ceac: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200ceb0: 40 00 02 6b call 200d85c <== NOT EXECUTED 200ceb4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ceb8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cebc: 12 80 00 27 bne 200cf58 <== NOT EXECUTED 200cec0: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200cec4: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200cec8: 7f ff e1 c2 call 20055d0 <== NOT EXECUTED 200cecc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200ced0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ced4: 32 80 00 22 bne,a 200cf5c <== NOT EXECUTED 200ced8: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200cedc: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 200cee0: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200cee4: 02 bf ff f0 be 200cea4 <== NOT EXECUTED 200cee8: 01 00 00 00 nop <== NOT EXECUTED 200ceec: 30 80 00 17 b,a 200cf48 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200cef0: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200cef4: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cef8: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200cefc: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cf00: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200cf04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cf08: 12 80 00 05 bne 200cf1c <== NOT EXECUTED 200cf0c: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200cf10: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200cf14: 40 00 02 3b call 200d800 <== NOT EXECUTED 200cf18: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200cf1c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 200cf20: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200cf24: 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 ++; 200cf28: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200cf2c: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200cf30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cf34: 12 80 00 05 bne 200cf48 <== NOT EXECUTED 200cf38: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200cf3c: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200cf40: 40 00 02 30 call 200d800 <== NOT EXECUTED 200cf44: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200cf48: 7f ff e1 e9 call 20056ec <== NOT EXECUTED 200cf4c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 200cf50: 81 c7 e0 08 ret <== NOT EXECUTED 200cf54: 81 e8 00 00 restore <== NOT EXECUTED 200cf58: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200cf5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200cf60: 7f ff fe c5 call 200ca74 <== NOT EXECUTED 200cf64: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200cf68: 81 c7 e0 08 ret 200cf6c: 81 e8 00 00 restore 020094b4 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20094b4: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 20094b8: 05 00 81 9f sethi %hi(0x2067c00), %g2 <== NOT EXECUTED 20094bc: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 <== NOT EXECUTED 20094c0: 10 80 00 08 b 20094e0 <== NOT EXECUTED 20094c4: 84 10 a1 3c or %g2, 0x13c, %g2 <== 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 ) { 20094c8: c6 02 60 10 ld [ %o1 + 0x10 ], %g3 <== NOT EXECUTED 20094cc: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 20094d0: 32 80 00 04 bne,a 20094e0 <== NOT EXECUTED 20094d4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20094d8: 81 c3 e0 08 retl <== NOT EXECUTED 20094dc: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 20094e0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20094e4: 32 bf ff f9 bne,a 20094c8 <== NOT EXECUTED 20094e8: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED return true; } } return false; } 20094ec: 81 c3 e0 08 retl <== NOT EXECUTED 20094f0: 90 10 20 00 clr %o0 <== NOT EXECUTED 020034d8 : long fpathconf( int fd, int name ) { 20034d8: 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); 20034dc: 03 00 80 7a sethi %hi(0x201e800), %g1 20034e0: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 201eb24 20034e4: 80 a6 00 01 cmp %i0, %g1 20034e8: 1a 80 00 0b bcc 2003514 20034ec: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop(fd); 20034f0: 03 00 80 7d sethi %hi(0x201f400), %g1 20034f4: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 ! 201f458 20034f8: b1 2e 20 03 sll %i0, 3, %i0 20034fc: b0 06 00 02 add %i0, %g2, %i0 2003500: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 2003504: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2003508: 80 88 61 00 btst 0x100, %g1 200350c: 12 80 00 06 bne 2003524 2003510: 80 88 60 02 btst 2, %g1 2003514: 40 00 37 eb call 20114c0 <__errno> 2003518: 01 00 00 00 nop 200351c: 10 80 00 07 b 2003538 2003520: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 2003524: 12 80 00 08 bne 2003544 2003528: 80 a6 60 0b cmp %i1, 0xb 200352c: 40 00 37 e5 call 20114c0 <__errno> <== NOT EXECUTED 2003530: 01 00 00 00 nop <== NOT EXECUTED 2003534: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2003538: c2 22 00 00 st %g1, [ %o0 ] 200353c: 81 c7 e0 08 ret 2003540: 91 e8 3f ff restore %g0, -1, %o0 * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003544: 18 80 00 2c bgu 20035f4 2003548: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 200354c: b3 2e 60 02 sll %i1, 2, %i1 2003550: 05 00 80 0d sethi %hi(0x2003400), %g2 2003554: 84 10 a0 a8 or %g2, 0xa8, %g2 ! 20034a8 2003558: c4 00 80 19 ld [ %g2 + %i1 ], %g2 200355c: 81 c0 80 00 jmp %g2 2003560: 01 00 00 00 nop case _PC_LINK_MAX: return_value = the_limits->link_max; 2003564: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 2003568: 81 c7 e0 08 ret 200356c: 81 e8 00 00 restore case _PC_MAX_CANON: return_value = the_limits->max_canon; 2003570: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 2003574: 81 c7 e0 08 ret 2003578: 81 e8 00 00 restore case _PC_MAX_INPUT: return_value = the_limits->max_input; 200357c: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 2003580: 81 c7 e0 08 ret 2003584: 81 e8 00 00 restore case _PC_NAME_MAX: return_value = the_limits->name_max; 2003588: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 200358c: 81 c7 e0 08 ret 2003590: 81 e8 00 00 restore case _PC_PATH_MAX: return_value = the_limits->path_max; 2003594: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 2003598: 81 c7 e0 08 ret 200359c: 81 e8 00 00 restore case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 20035a0: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 20035a4: 81 c7 e0 08 ret 20035a8: 81 e8 00 00 restore case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 20035ac: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 20035b0: 81 c7 e0 08 ret 20035b4: 81 e8 00 00 restore case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 20035b8: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 20035bc: 81 c7 e0 08 ret 20035c0: 81 e8 00 00 restore case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 20035c4: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 20035c8: 81 c7 e0 08 ret 20035cc: 81 e8 00 00 restore case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 20035d0: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 20035d4: 81 c7 e0 08 ret 20035d8: 81 e8 00 00 restore case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 20035dc: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 20035e0: 81 c7 e0 08 ret 20035e4: 81 e8 00 00 restore case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 20035e8: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 20035ec: 81 c7 e0 08 ret 20035f0: 81 e8 00 00 restore default: rtems_set_errno_and_return_minus_one( EINVAL ); 20035f4: 40 00 37 b3 call 20114c0 <__errno> 20035f8: b0 10 3f ff mov -1, %i0 20035fc: 82 10 20 16 mov 0x16, %g1 2003600: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 2003604: 81 c7 e0 08 ret 2003608: 81 e8 00 00 restore 0200a3e0 : void free( void *ptr ) { MSBUMP(free_calls, 1); 200a3e0: 9d e3 bf a0 save %sp, -96, %sp 200a3e4: 03 00 80 6c sethi %hi(0x201b000), %g1 200a3e8: 82 10 63 f0 or %g1, 0x3f0, %g1 ! 201b3f0 200a3ec: c4 00 60 0c ld [ %g1 + 0xc ], %g2 200a3f0: b2 10 00 18 mov %i0, %i1 200a3f4: 84 00 a0 01 inc %g2 if ( !ptr ) 200a3f8: 80 a6 20 00 cmp %i0, 0 200a3fc: 02 80 00 21 be 200a480 200a400: 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()) && 200a404: 03 00 80 6d sethi %hi(0x201b400), %g1 200a408: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201b750 <_System_state_Current> 200a40c: 80 a0 60 03 cmp %g1, 3 200a410: 12 80 00 09 bne 200a434 200a414: 03 00 80 6c sethi %hi(0x201b000), %g1 200a418: 40 00 01 2e call 200a8d0 200a41c: 01 00 00 00 nop 200a420: 80 8a 20 ff btst 0xff, %o0 200a424: 12 80 00 04 bne 200a434 200a428: 03 00 80 6c sethi %hi(0x201b000), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 200a42c: 40 00 01 3b call 200a918 <== NOT EXECUTED 200a430: 81 e8 00 00 restore <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200a434: c2 00 61 28 ld [ %g1 + 0x128 ], %g1 200a438: 80 a0 60 00 cmp %g1, 0 200a43c: 02 80 00 06 be 200a454 200a440: 21 00 80 6a sethi %hi(0x201a800), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 200a444: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 200a448: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a44c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 200a450: 21 00 80 6a sethi %hi(0x201a800), %l0 <== NOT EXECUTED 200a454: d0 04 22 c0 ld [ %l0 + 0x2c0 ], %o0 ! 201aac0 200a458: 40 00 06 8d call 200be8c <_Protected_heap_Free> 200a45c: 92 10 00 19 mov %i1, %o1 200a460: 80 8a 20 ff btst 0xff, %o0 200a464: 12 80 00 07 bne 200a480 200a468: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 200a46c: 31 00 80 67 sethi %hi(0x2019c00), %i0 <== NOT EXECUTED 200a470: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 200a474: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 200a478: 7f ff e2 48 call 2002d98 <== NOT EXECUTED 200a47c: 91 ee 23 70 restore %i0, 0x370, %o0 <== NOT EXECUTED 200a480: 81 c7 e0 08 ret 200a484: 81 e8 00 00 restore 02026a60 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 2026a60: 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 2026a64: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 2026a68: 82 10 61 50 or %g1, 0x150, %g1 ! 2067d50 <== NOT EXECUTED 2026a6c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2026a70: 02 80 00 18 be 2026ad0 <== NOT EXECUTED 2026a74: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 2026a78: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2026a7c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026a80: 22 80 00 09 be,a 2026aa4 <== NOT EXECUTED 2026a84: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026a88: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026a8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026a90: 22 80 00 05 be,a 2026aa4 <== NOT EXECUTED 2026a94: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026a98: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026a9c: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 2026aa0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026aa4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026aa8: 02 80 00 08 be 2026ac8 <== NOT EXECUTED 2026aac: 01 00 00 00 nop <== NOT EXECUTED 2026ab0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026ab4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026ab8: 02 80 00 04 be 2026ac8 <== NOT EXECUTED 2026abc: 01 00 00 00 nop <== NOT EXECUTED 2026ac0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026ac4: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 2026ac8: 7f ff 7c 3c call 2005bb8 <== NOT EXECUTED 2026acc: 81 e8 00 00 restore <== NOT EXECUTED 2026ad0: 81 c7 e0 08 ret <== NOT EXECUTED 2026ad4: 81 e8 00 00 restore <== NOT EXECUTED 02018b70 : int fstat( int fd, struct stat *sbuf ) { 2018b70: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 2018b74: 80 a6 60 00 cmp %i1, 0 2018b78: 32 80 00 06 bne,a 2018b90 2018b7c: 03 00 80 6a sethi %hi(0x201a800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 2018b80: 7f ff d7 9d call 200e9f4 <__errno> 2018b84: 01 00 00 00 nop 2018b88: 10 80 00 12 b 2018bd0 2018b8c: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 2018b90: c2 00 62 b4 ld [ %g1 + 0x2b4 ], %g1 2018b94: 80 a6 00 01 cmp %i0, %g1 2018b98: 1a 80 00 0b bcc 2018bc4 2018b9c: 03 00 80 6c sethi %hi(0x201b000), %g1 2018ba0: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201b3e0 2018ba4: 85 2e 20 06 sll %i0, 6, %g2 2018ba8: b1 2e 20 03 sll %i0, 3, %i0 2018bac: b0 06 00 02 add %i0, %g2, %i0 2018bb0: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 2018bb4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2018bb8: 80 88 61 00 btst 0x100, %g1 2018bbc: 32 80 00 08 bne,a 2018bdc 2018bc0: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 2018bc4: 7f ff d7 8c call 200e9f4 <__errno> 2018bc8: 01 00 00 00 nop 2018bcc: 82 10 20 09 mov 9, %g1 ! 9 2018bd0: c2 22 00 00 st %g1, [ %o0 ] 2018bd4: 10 80 00 15 b 2018c28 2018bd8: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 2018bdc: 80 a0 60 00 cmp %g1, 0 2018be0: 02 bf ff f9 be 2018bc4 2018be4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2018be8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2018bec: 80 a0 60 00 cmp %g1, 0 2018bf0: 12 80 00 06 bne 2018c08 2018bf4: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2018bf8: 7f ff d7 7f call 200e9f4 <__errno> <== NOT EXECUTED 2018bfc: 01 00 00 00 nop <== NOT EXECUTED 2018c00: 10 bf ff f4 b 2018bd0 <== NOT EXECUTED 2018c04: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 2018c08: 94 10 20 48 mov 0x48, %o2 2018c0c: 7f ff d9 f4 call 200f3dc 2018c10: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 2018c14: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 2018c18: 90 06 20 1c add %i0, 0x1c, %o0 2018c1c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2018c20: 9f c0 40 00 call %g1 2018c24: 92 10 00 19 mov %i1, %o1 } 2018c28: 81 c7 e0 08 ret 2018c2c: 91 e8 00 08 restore %g0, %o0, %o0 02025700 : #include int fsync( int fd ) { 2025700: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2025704: 03 00 81 8e sethi %hi(0x2063800), %g1 2025708: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 2063ba4 202570c: 80 a6 00 01 cmp %i0, %g1 2025710: 1a 80 00 15 bcc 2025764 2025714: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 2025718: 03 00 81 9f sethi %hi(0x2067c00), %g1 202571c: d0 00 60 f0 ld [ %g1 + 0xf0 ], %o0 ! 2067cf0 2025720: 83 2e 20 06 sll %i0, 6, %g1 2025724: b1 2e 20 03 sll %i0, 3, %i0 2025728: b0 06 00 01 add %i0, %g1, %i0 202572c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2025730: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2025734: 80 88 61 00 btst 0x100, %g1 2025738: 02 80 00 0b be 2025764 202573c: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2025740: 32 80 00 06 bne,a 2025758 2025744: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2025748: 40 00 64 64 call 203e8d8 <__errno> 202574c: 01 00 00 00 nop 2025750: 10 80 00 0f b 202578c 2025754: 82 10 20 16 mov 0x16, %g1 ! 16 /* * Now process the fsync(). */ if ( !iop->handlers ) 2025758: 80 a0 60 00 cmp %g1, 0 202575c: 32 80 00 06 bne,a 2025774 2025760: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 2025764: 40 00 64 5d call 203e8d8 <__errno> <== NOT EXECUTED 2025768: 01 00 00 00 nop <== NOT EXECUTED 202576c: 10 80 00 08 b 202578c <== NOT EXECUTED 2025770: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 2025774: 80 a0 60 00 cmp %g1, 0 2025778: 12 80 00 08 bne 2025798 202577c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025780: 40 00 64 56 call 203e8d8 <__errno> 2025784: 01 00 00 00 nop 2025788: 82 10 20 86 mov 0x86, %g1 ! 86 202578c: c2 22 00 00 st %g1, [ %o0 ] 2025790: 10 80 00 04 b 20257a0 2025794: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 2025798: 9f c0 40 00 call %g1 202579c: 01 00 00 00 nop } 20257a0: 81 c7 e0 08 ret 20257a4: 91 e8 00 08 restore %g0, %o0, %o0 0200a488 : int ftruncate( int fd, off_t length ) { 200a488: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200a48c: 03 00 80 6a sethi %hi(0x201a800), %g1 200a490: c2 00 62 b4 ld [ %g1 + 0x2b4 ], %g1 ! 201aab4 200a494: 80 a6 00 01 cmp %i0, %g1 200a498: 1a 80 00 0b bcc 200a4c4 200a49c: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop( fd ); 200a4a0: 03 00 80 6c sethi %hi(0x201b000), %g1 200a4a4: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201b3e0 200a4a8: b1 2e 20 03 sll %i0, 3, %i0 200a4ac: b0 06 00 02 add %i0, %g2, %i0 200a4b0: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200a4b4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200a4b8: 80 88 61 00 btst 0x100, %g1 200a4bc: 12 80 00 06 bne 200a4d4 200a4c0: a0 07 bf ec add %fp, -20, %l0 200a4c4: 40 00 11 4c call 200e9f4 <__errno> <== NOT EXECUTED 200a4c8: 01 00 00 00 nop <== NOT EXECUTED 200a4cc: 10 80 00 22 b 200a554 <== NOT EXECUTED 200a4d0: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200a4d4: 92 06 20 1c add %i0, 0x1c, %o1 200a4d8: 90 10 00 10 mov %l0, %o0 200a4dc: 40 00 13 81 call 200f2e0 200a4e0: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 200a4e4: c2 07 bf f8 ld [ %fp + -8 ], %g1 200a4e8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200a4ec: 80 a0 60 00 cmp %g1, 0 200a4f0: 02 80 00 16 be 200a548 200a4f4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200a4f8: 9f c0 40 00 call %g1 200a4fc: 90 10 00 10 mov %l0, %o0 200a500: 80 a2 20 01 cmp %o0, 1 200a504: 32 80 00 06 bne,a 200a51c 200a508: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_set_errno_and_return_minus_one( EISDIR ); 200a50c: 40 00 11 3a call 200e9f4 <__errno> 200a510: 01 00 00 00 nop 200a514: 10 80 00 10 b 200a554 200a518: 82 10 20 15 mov 0x15, %g1 ! 15 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200a51c: 80 88 60 04 btst 4, %g1 200a520: 32 80 00 06 bne,a 200a538 200a524: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200a528: 40 00 11 33 call 200e9f4 <__errno> <== NOT EXECUTED 200a52c: 01 00 00 00 nop <== NOT EXECUTED 200a530: 10 80 00 09 b 200a554 <== NOT EXECUTED 200a534: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 200a538: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200a53c: 80 a0 60 00 cmp %g1, 0 200a540: 32 80 00 08 bne,a 200a560 200a544: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a548: 40 00 11 2b call 200e9f4 <__errno> <== NOT EXECUTED 200a54c: 01 00 00 00 nop <== NOT EXECUTED 200a550: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200a554: c2 22 00 00 st %g1, [ %o0 ] 200a558: 10 80 00 05 b 200a56c 200a55c: 90 10 3f ff mov -1, %o0 return (*iop->handlers->ftruncate_h)( iop, length ); 200a560: 92 10 00 19 mov %i1, %o1 200a564: 9f c0 40 00 call %g1 200a568: 94 10 00 1a mov %i2, %o2 } 200a56c: 81 c7 e0 08 ret 200a570: 91 e8 00 08 restore %g0, %o0, %o0 020583e8 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 20583e8: 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 ); 20583ec: 03 00 81 8e sethi %hi(0x2063800), %g1 20583f0: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 2063ba4 20583f4: 80 a6 00 01 cmp %i0, %g1 20583f8: 1a 80 00 08 bcc 2058418 20583fc: a0 10 20 00 clr %l0 2058400: 03 00 81 9f sethi %hi(0x2067c00), %g1 2058404: e0 00 60 f0 ld [ %g1 + 0xf0 ], %l0 ! 2067cf0 2058408: 83 2e 20 06 sll %i0, 6, %g1 205840c: b1 2e 20 03 sll %i0, 3, %i0 2058410: b0 06 00 01 add %i0, %g1, %i0 2058414: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 2058418: a2 07 bf ec add %fp, -20, %l1 205841c: 92 04 20 1c add %l0, 0x1c, %o1 2058420: 90 10 00 11 mov %l1, %o0 2058424: 7f ff a6 00 call 2041c24 2058428: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 205842c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2058430: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2058434: 80 a0 60 00 cmp %g1, 0 2058438: 02 80 00 11 be 205847c 205843c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 2058440: 9f c0 40 00 call %g1 2058444: 90 10 00 11 mov %l1, %o0 2058448: 80 a2 20 01 cmp %o0, 1 205844c: 22 80 00 08 be,a 205846c 2058450: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2058454: 7f ff 99 21 call 203e8d8 <__errno> 2058458: 01 00 00 00 nop 205845c: 82 10 20 14 mov 0x14, %g1 ! 14 2058460: c2 22 00 00 st %g1, [ %o0 ] 2058464: 10 80 00 0d b 2058498 2058468: 90 10 3f ff mov -1, %o0 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 205846c: c2 00 60 08 ld [ %g1 + 8 ], %g1 2058470: 80 a0 60 00 cmp %g1, 0 2058474: 32 80 00 06 bne,a 205848c 2058478: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 205847c: 7f ff 99 17 call 203e8d8 <__errno> <== NOT EXECUTED 2058480: 01 00 00 00 nop <== NOT EXECUTED 2058484: 10 bf ff f7 b 2058460 <== NOT EXECUTED 2058488: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 205848c: 92 10 00 19 mov %i1, %o1 2058490: 9f c0 40 00 call %g1 2058494: 94 10 00 1a mov %i2, %o2 } 2058498: 81 c7 e0 08 ret 205849c: 91 e8 00 08 restore %g0, %o0, %o0 020258b4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 20258b4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20258b8: c2 00 62 94 ld [ %g1 + 0x294 ], %g1 ! 2063e94 <== NOT EXECUTED return _POSIX_types_Gid; } 20258bc: 81 c3 e0 08 retl <== NOT EXECUTED 20258c0: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 02025f40 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2025f40: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2025f44: 7f ff ff b6 call 2025e1c 2025f48: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 2025f4c: 11 00 81 64 sethi %hi(0x2059000), %o0 2025f50: 13 00 81 8d sethi %hi(0x2063400), %o1 2025f54: 90 12 23 18 or %o0, 0x318, %o0 2025f58: 40 00 65 07 call 203f374 2025f5c: 92 12 61 90 or %o1, 0x190, %o1 2025f60: a0 92 20 00 orcc %o0, 0, %l0 2025f64: 12 80 00 08 bne 2025f84 2025f68: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2025f6c: 40 00 62 5b call 203e8d8 <__errno> <== NOT EXECUTED 2025f70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025f74: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025f78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025f7c: 81 c7 e0 08 ret <== NOT EXECUTED 2025f80: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2025f84: 94 10 00 1b mov %i3, %o2 2025f88: 96 10 00 1c mov %i4, %o3 2025f8c: 7f ff fe ea call 2025b34 2025f90: 90 10 00 10 mov %l0, %o0 2025f94: 80 a2 20 00 cmp %o0, 0 2025f98: 12 80 00 0a bne 2025fc0 2025f9c: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2025fa0: 40 00 62 4e call 203e8d8 <__errno> <== NOT EXECUTED 2025fa4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025fa8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025fac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2025fb0: 40 00 62 a2 call 203ea38 <== NOT EXECUTED 2025fb4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2025fb8: 81 c7 e0 08 ret <== NOT EXECUTED 2025fbc: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 2025fc0: 22 80 00 07 be,a 2025fdc 2025fc4: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 2025fc8: d0 06 80 00 ld [ %i2 ], %o0 2025fcc: 40 00 7b 81 call 2044dd0 2025fd0: 92 10 00 18 mov %i0, %o1 2025fd4: 10 80 00 04 b 2025fe4 2025fd8: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 2025fdc: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2025fe0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2025fe4: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2025fe8: 80 a0 60 00 cmp %g1, 0 2025fec: 02 bf ff e6 be 2025f84 2025ff0: 92 10 00 1a mov %i2, %o1 fclose(fp); 2025ff4: 90 10 00 10 mov %l0, %o0 2025ff8: 40 00 62 90 call 203ea38 2025ffc: b0 10 20 00 clr %i0 *result = grp; 2026000: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2026004: 81 c7 e0 08 ret 2026008: 81 e8 00 00 restore 02025c70 : return NULL; return p; } struct group *getgrent(void) { 2025c70: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 2025c74: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025c78: d0 00 62 04 ld [ %g1 + 0x204 ], %o0 ! 2067a04 <== NOT EXECUTED 2025c7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025c80: 22 80 00 0c be,a 2025cb0 <== NOT EXECUTED 2025c84: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 2025c88: 31 00 81 9e sethi %hi(0x2067800), %i0 <== NOT EXECUTED 2025c8c: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 2025c90: 92 16 22 d0 or %i0, 0x2d0, %o1 <== NOT EXECUTED 2025c94: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 2025c98: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025c9c: 7f ff ff a6 call 2025b34 <== NOT EXECUTED 2025ca0: b0 16 22 d0 or %i0, 0x2d0, %i0 <== NOT EXECUTED 2025ca4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ca8: 22 80 00 02 be,a 2025cb0 <== NOT EXECUTED 2025cac: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 2025cb0: 81 c7 e0 08 ret <== NOT EXECUTED 2025cb4: 81 e8 00 00 restore <== NOT EXECUTED 02026040 : } struct group *getgrgid( gid_t gid ) { 2026040: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 2026044: 13 00 81 9e sethi %hi(0x2067800), %o1 <== NOT EXECUTED 2026048: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 202604c: 92 12 62 d0 or %o1, 0x2d0, %o1 <== NOT EXECUTED 2026050: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2026054: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 2026058: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 202605c: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 2026060: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2026064: 7f ff ff ea call 202600c <== NOT EXECUTED 2026068: b0 10 20 00 clr %i0 <== NOT EXECUTED 202606c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026070: 22 80 00 02 be,a 2026078 <== NOT EXECUTED 2026074: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2026078: 81 c7 e0 08 ret <== NOT EXECUTED 202607c: 81 e8 00 00 restore <== NOT EXECUTED 0202600c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 202600c: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2026010: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2026014: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2026018: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 202601c: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2026020: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2026024: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2026028: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 202602c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026030: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026034: 7f ff ff c3 call 2025f40 <== NOT EXECUTED 2026038: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202603c: 01 00 00 00 nop 02026134 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2026134: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2026138: 7f ff ff 39 call 2025e1c 202613c: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 2026140: 11 00 81 64 sethi %hi(0x2059000), %o0 2026144: 13 00 81 8d sethi %hi(0x2063400), %o1 2026148: 90 12 22 60 or %o0, 0x260, %o0 202614c: 40 00 64 8a call 203f374 2026150: 92 12 61 90 or %o1, 0x190, %o1 2026154: a0 92 20 00 orcc %o0, 0, %l0 2026158: 12 80 00 08 bne 2026178 202615c: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2026160: 40 00 61 de call 203e8d8 <__errno> <== NOT EXECUTED 2026164: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026168: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 202616c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026170: 81 c7 e0 08 ret <== NOT EXECUTED 2026174: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 2026178: 94 10 00 1b mov %i3, %o2 202617c: 96 10 00 1c mov %i4, %o3 2026180: 7f ff fe ce call 2025cb8 2026184: 90 10 00 10 mov %l0, %o0 2026188: 80 a2 20 00 cmp %o0, 0 202618c: 12 80 00 0a bne 20261b4 2026190: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2026194: 40 00 61 d1 call 203e8d8 <__errno> <== NOT EXECUTED 2026198: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202619c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20261a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 20261a4: 40 00 62 25 call 203ea38 <== NOT EXECUTED 20261a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 20261ac: 81 c7 e0 08 ret <== NOT EXECUTED 20261b0: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 20261b4: 22 80 00 07 be,a 20261d0 20261b8: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 20261bc: d0 06 80 00 ld [ %i2 ], %o0 20261c0: 40 00 7b 04 call 2044dd0 20261c4: 92 10 00 18 mov %i0, %o1 20261c8: 10 80 00 04 b 20261d8 20261cc: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 20261d0: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 20261d4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 20261d8: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 20261dc: 80 a0 60 00 cmp %g1, 0 20261e0: 02 bf ff e6 be 2026178 20261e4: 92 10 00 1a mov %i2, %o1 fclose(fp); 20261e8: 90 10 00 10 mov %l0, %o0 20261ec: 40 00 62 13 call 203ea38 20261f0: b0 10 20 00 clr %i0 *result = pwd; 20261f4: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20261f8: 81 c7 e0 08 ret 20261fc: 81 e8 00 00 restore 02025dd4 : return NULL; return p; } struct passwd *getpwent(void) { 2025dd4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2025dd8: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025ddc: d0 00 61 1c ld [ %g1 + 0x11c ], %o0 ! 206791c <== NOT EXECUTED 2025de0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025de4: 22 80 00 0c be,a 2025e14 <== NOT EXECUTED 2025de8: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 2025dec: 31 00 81 9e sethi %hi(0x2067800), %i0 <== NOT EXECUTED 2025df0: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 2025df4: 92 16 21 e8 or %i0, 0x1e8, %o1 <== NOT EXECUTED 2025df8: 94 12 a1 20 or %o2, 0x120, %o2 <== NOT EXECUTED 2025dfc: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025e00: 7f ff ff ae call 2025cb8 <== NOT EXECUTED 2025e04: b0 16 21 e8 or %i0, 0x1e8, %i0 <== NOT EXECUTED 2025e08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025e0c: 22 80 00 02 be,a 2025e14 <== NOT EXECUTED 2025e10: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 2025e14: 81 c7 e0 08 ret <== NOT EXECUTED 2025e18: 81 e8 00 00 restore <== NOT EXECUTED 02026234 : } struct passwd *getpwuid( uid_t uid ) { 2026234: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 2026238: 13 00 81 9e sethi %hi(0x2067800), %o1 <== NOT EXECUTED 202623c: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2026240: 92 12 61 e8 or %o1, 0x1e8, %o1 <== NOT EXECUTED 2026244: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2026248: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 202624c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2026250: 94 12 a1 20 or %o2, 0x120, %o2 <== NOT EXECUTED 2026254: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2026258: 7f ff ff ea call 2026200 <== NOT EXECUTED 202625c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2026260: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026264: 22 80 00 02 be,a 202626c <== NOT EXECUTED 2026268: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 202626c: 81 c7 e0 08 ret <== NOT EXECUTED 2026270: 81 e8 00 00 restore <== NOT EXECUTED 02026200 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2026200: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2026204: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2026208: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 202620c: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2026210: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2026214: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2026218: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 202621c: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2026220: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026224: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026228: 7f ff ff c3 call 2026134 <== NOT EXECUTED 202622c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026230: 01 00 00 00 nop 0200a594 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 200a594: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 200a598: 80 a6 20 00 cmp %i0, 0 200a59c: 12 80 00 08 bne 200a5bc 200a5a0: 01 00 00 00 nop errno = EFAULT; 200a5a4: 40 00 11 14 call 200e9f4 <__errno> <== NOT EXECUTED 200a5a8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200a5ac: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200a5b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 200a5b4: 81 c7 e0 08 ret <== NOT EXECUTED 200a5b8: 81 e8 00 00 restore <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 200a5bc: 7f ff dd d0 call 2001cfc 200a5c0: 01 00 00 00 nop 200a5c4: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 200a5c8: 40 00 04 ef call 200b984 <_TOD_Get> 200a5cc: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 200a5d0: 7f ff dd cf call 2001d0c 200a5d4: 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; 200a5d8: 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; 200a5dc: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 200a5e0: 92 10 23 e8 mov 0x3e8, %o1 200a5e4: 40 00 36 2e call 2017e9c <.div> 200a5e8: c2 26 00 00 st %g1, [ %i0 ] 200a5ec: 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; } 200a5f0: 81 c7 e0 08 ret 200a5f4: 91 e8 20 00 restore %g0, 0, %o0 02005cec : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 2005cec: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2005cf0: c2 00 62 94 ld [ %g1 + 0x294 ], %g1 ! 2063e94 <== NOT EXECUTED return _POSIX_types_Uid; } 2005cf4: 81 c3 e0 08 retl <== NOT EXECUTED 2005cf8: d0 10 60 30 lduh [ %g1 + 0x30 ], %o0 <== NOT EXECUTED 02012f80 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2012f80: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2012f84: e0 06 40 00 ld [ %i1 ], %l0 2012f88: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 2012f8c: 82 04 20 54 add %l0, 0x54, %g1 2012f90: 80 a0 80 01 cmp %g2, %g1 2012f94: 22 80 00 06 be,a 2012fac 2012f98: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 /* * 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 ); 2012f9c: 40 00 04 50 call 20140dc <__errno> 2012fa0: 01 00 00 00 nop 2012fa4: 10 80 00 0d b 2012fd8 2012fa8: 82 10 20 5a mov 0x5a, %g1 ! 5a /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 2012fac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2012fb0: 80 a0 40 10 cmp %g1, %l0 2012fb4: 02 80 00 06 be 2012fcc 2012fb8: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 2012fbc: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 2012fc0: 80 a0 60 00 cmp %g1, 0 2012fc4: 22 80 00 08 be,a 2012fe4 2012fc8: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 2012fcc: 40 00 04 44 call 20140dc <__errno> 2012fd0: 01 00 00 00 nop 2012fd4: 82 10 20 10 mov 0x10, %g1 ! 10 2012fd8: c2 22 00 00 st %g1, [ %o0 ] 2012fdc: 81 c7 e0 08 ret 2012fe0: 91 e8 3f ff restore %g0, -1, %o0 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2012fe4: 80 a0 60 00 cmp %g1, 0 2012fe8: 22 80 00 06 be,a 2013000 2012fec: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 2012ff0: 7f ff d3 7b call 2007ddc <_Chain_Extract> 2012ff4: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2012ff8: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2012ffc: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 2013000: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2013004: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2013008: 90 07 bf f8 add %fp, -8, %o0 201300c: 7f ff c2 1d call 2003880 2013010: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 2013014: 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) ) { 2013018: 90 10 00 10 mov %l0, %o0 201301c: 7f ff f2 2e call 200f8d4 2013020: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 2013024: 80 a2 20 00 cmp %o0, 0 2013028: 12 80 00 11 bne 201306c 201302c: 01 00 00 00 nop 2013030: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 2013034: 80 a0 60 00 cmp %g1, 0 2013038: 12 80 00 0d bne 201306c 201303c: 03 00 80 82 sethi %hi(0x2020800), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 2013040: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 20209dc 2013044: c4 06 40 00 ld [ %i1 ], %g2 2013048: c6 00 60 04 ld [ %g1 + 4 ], %g3 201304c: 80 a0 c0 02 cmp %g3, %g2 2013050: 22 80 00 02 be,a 2013058 2013054: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 2013058: 90 10 00 10 mov %l0, %o0 201305c: 7f ff c1 df call 20037d8 2013060: b0 10 20 00 clr %i0 2013064: 81 c7 e0 08 ret 2013068: 81 e8 00 00 restore } return 0; } 201306c: 81 c7 e0 08 ret 2013070: 91 e8 20 00 restore %g0, 0, %o0 02005f0c : int ioctl( int fd, ioctl_command_t command, ... ) { 2005f0c: 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 ); 2005f10: 03 00 80 83 sethi %hi(0x2020c00), %g1 2005f14: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 2020d04 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 2005f18: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2005f1c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2005f20: fa 27 a0 58 st %i5, [ %fp + 0x58 ] 2005f24: f4 27 a0 4c st %i2, [ %fp + 0x4c ] va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 2005f28: 80 a6 00 01 cmp %i0, %g1 2005f2c: 1a 80 00 11 bcc 2005f70 2005f30: 92 10 00 19 mov %i1, %o1 iop = rtems_libio_iop( fd ); 2005f34: 03 00 80 85 sethi %hi(0x2021400), %g1 2005f38: d0 00 63 0c ld [ %g1 + 0x30c ], %o0 ! 202170c 2005f3c: 83 2e 20 06 sll %i0, 6, %g1 2005f40: b1 2e 20 03 sll %i0, 3, %i0 2005f44: b0 06 00 01 add %i0, %g1, %i0 2005f48: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2005f4c: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2005f50: 80 88 61 00 btst 0x100, %g1 2005f54: 02 80 00 07 be 2005f70 2005f58: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 2005f5c: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 2005f60: c4 27 bf fc st %g2, [ %fp + -4 ] /* * Now process the ioctl(). */ if ( !iop->handlers ) 2005f64: 80 a0 60 00 cmp %g1, 0 2005f68: 12 80 00 06 bne 2005f80 2005f6c: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( EBADF ); 2005f70: 40 00 39 51 call 20144b4 <__errno> 2005f74: 01 00 00 00 nop 2005f78: 10 80 00 09 b 2005f9c 2005f7c: 82 10 20 09 mov 9, %g1 ! 9 if ( !iop->handlers->ioctl_h ) 2005f80: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2005f84: 80 a0 60 00 cmp %g1, 0 2005f88: 12 80 00 08 bne 2005fa8 2005f8c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005f90: 40 00 39 49 call 20144b4 <__errno> <== NOT EXECUTED 2005f94: 01 00 00 00 nop <== NOT EXECUTED 2005f98: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2005f9c: c2 22 00 00 st %g1, [ %o0 ] 2005fa0: 10 80 00 04 b 2005fb0 2005fa4: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 2005fa8: 9f c0 40 00 call %g1 2005fac: 01 00 00 00 nop return rc; } 2005fb0: 81 c7 e0 08 ret 2005fb4: 91 e8 00 08 restore %g0, %o0, %o0 02003944 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2003944: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2003948: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 200394c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003950: 02 80 00 03 be 200395c <== NOT EXECUTED 2003954: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2003958: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 200395c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003960: 02 80 00 0c be 2003990 <== NOT EXECUTED 2003964: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 2003968: 05 00 80 6b sethi %hi(0x201ac00), %g2 <== NOT EXECUTED 200396c: c4 00 a0 64 ld [ %g2 + 0x64 ], %g2 ! 201ac64 <__ctype_ptr__> <== NOT EXECUTED 2003970: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 2003974: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 2003978: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 200397c: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 2003980: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2003984: 22 80 00 02 be,a 200398c <== NOT EXECUTED 2003988: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 200398c: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 2003990: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 2003994: 12 80 00 09 bne 20039b8 <== NOT EXECUTED 2003998: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 200399c: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 20039a0: 12 80 00 5d bne 2003b14 <== NOT EXECUTED 20039a4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 20039a8: 32 80 00 0d bne,a 20039dc <== NOT EXECUTED 20039ac: 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)) { 20039b0: 10 80 00 0c b 20039e0 <== NOT EXECUTED 20039b4: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== 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)) { 20039b8: 12 80 00 07 bne 20039d4 <== NOT EXECUTED 20039bc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20039c0: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 20039c4: 32 80 00 06 bne,a 20039dc <== NOT EXECUTED 20039c8: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 20039cc: 10 80 00 05 b 20039e0 <== NOT EXECUTED 20039d0: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 20039d4: 02 80 00 3c be 2003ac4 <== NOT EXECUTED 20039d8: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 20039dc: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 20039e0: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 20039e4: 02 80 00 38 be 2003ac4 <== NOT EXECUTED 20039e8: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 20039ec: c6 0e 60 43 ldub [ %i1 + 0x43 ], %g3 <== NOT EXECUTED 20039f0: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED erase (tty, 0); 20039f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { 20039f8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20039fc: 02 80 00 08 be 2003a1c <== NOT EXECUTED 2003a00: 92 10 20 00 clr %o1 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2003a04: c6 0e 60 44 ldub [ %i1 + 0x44 ], %g3 <== NOT EXECUTED 2003a08: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a0c: 32 80 00 07 bne,a 2003a28 <== NOT EXECUTED 2003a10: c6 0e 60 45 ldub [ %i1 + 0x45 ], %g3 <== NOT EXECUTED erase (tty, 1); 2003a14: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003a18: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003a1c: 7f ff ff 3f call 2003718 <== NOT EXECUTED 2003a20: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003a24: 30 80 00 3d b,a 2003b18 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2003a28: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a2c: 02 80 00 3b be 2003b18 <== NOT EXECUTED 2003a30: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 2003a34: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 2003a38: 32 80 00 0f bne,a 2003a74 <== NOT EXECUTED 2003a3c: c6 0e 60 4c ldub [ %i1 + 0x4c ], %g3 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 2003a40: 80 88 a0 48 btst 0x48, %g2 <== NOT EXECUTED 2003a44: 22 80 00 06 be,a 2003a5c <== NOT EXECUTED 2003a48: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003a4c: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 2003a50: 7f ff ff 0e call 2003688 <== NOT EXECUTED 2003a54: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003a58: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003a5c: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2003a60: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 2003a64: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 2003a68: 82 00 60 01 inc %g1 <== NOT EXECUTED 2003a6c: 10 80 00 14 b 2003abc <== NOT EXECUTED 2003a70: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 2003a74: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a78: 02 80 00 07 be 2003a94 <== NOT EXECUTED 2003a7c: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 2003a80: c6 0e 60 51 ldub [ %i1 + 0x51 ], %g3 <== NOT EXECUTED 2003a84: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a88: 12 80 00 0f bne 2003ac4 <== NOT EXECUTED 2003a8c: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003a90: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003a94: 22 80 00 06 be,a 2003aac <== NOT EXECUTED 2003a98: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003a9c: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003aa0: 7f ff fe fa call 2003688 <== NOT EXECUTED 2003aa4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003aa8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003aac: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003ab0: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2003ab4: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003ab8: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2003abc: 81 c7 e0 08 ret <== NOT EXECUTED 2003ac0: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2003ac4: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 2003ac8: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 <== NOT EXECUTED 2003acc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003ad0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003ad4: 16 80 00 11 bge 2003b18 <== NOT EXECUTED 2003ad8: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003adc: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003ae0: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003ae4: 22 80 00 06 be,a 2003afc <== NOT EXECUTED 2003ae8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003aec: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003af0: 7f ff fe e6 call 2003688 <== NOT EXECUTED 2003af4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003af8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003afc: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003b00: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2003b04: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003b08: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2003b0c: 81 c7 e0 08 ret <== NOT EXECUTED 2003b10: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 2003b14: b0 10 20 00 clr %i0 <== NOT EXECUTED } return 0; } 2003b18: 81 c7 e0 08 ret <== NOT EXECUTED 2003b1c: 81 e8 00 00 restore <== NOT EXECUTED 0200e380 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 200e380: 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() ) 200e384: 7f ff fb c7 call 200d2a0 200e388: 01 00 00 00 nop 200e38c: 80 a6 00 08 cmp %i0, %o0 200e390: 02 80 00 06 be 200e3a8 200e394: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( ESRCH ); 200e398: 40 00 01 97 call 200e9f4 <__errno> 200e39c: 01 00 00 00 nop 200e3a0: 10 80 00 07 b 200e3bc 200e3a4: 82 10 20 03 mov 3, %g1 ! 3 /* * Validate the signal passed. */ if ( !sig ) 200e3a8: 12 80 00 08 bne 200e3c8 200e3ac: 82 06 7f ff add %i1, -1, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 200e3b0: 40 00 01 91 call 200e9f4 <__errno> 200e3b4: 01 00 00 00 nop 200e3b8: 82 10 20 16 mov 0x16, %g1 ! 16 200e3bc: c2 22 00 00 st %g1, [ %o0 ] 200e3c0: 10 80 00 a5 b 200e654 200e3c4: 90 10 3f ff mov -1, %o0 if ( !is_valid_signo(sig) ) 200e3c8: 80 a0 60 1f cmp %g1, 0x1f 200e3cc: 18 bf ff f9 bgu 200e3b0 200e3d0: 85 2e 60 02 sll %i1, 2, %g2 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 ) 200e3d4: 87 2e 60 04 sll %i1, 4, %g3 200e3d8: 86 20 c0 02 sub %g3, %g2, %g3 200e3dc: 05 00 80 6e sethi %hi(0x201b800), %g2 200e3e0: 84 10 a3 44 or %g2, 0x344, %g2 ! 201bb44 <_POSIX_signals_Vectors> 200e3e4: 84 00 80 03 add %g2, %g3, %g2 200e3e8: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200e3ec: 80 a0 a0 01 cmp %g2, 1 200e3f0: 02 80 00 99 be 200e654 200e3f4: 90 10 20 00 clr %o0 /* * 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 ) ) 200e3f8: 80 a6 60 04 cmp %i1, 4 200e3fc: 02 80 00 06 be 200e414 200e400: 80 a6 60 08 cmp %i1, 8 200e404: 02 80 00 04 be 200e414 200e408: 80 a6 60 0b cmp %i1, 0xb 200e40c: 12 80 00 08 bne 200e42c 200e410: a0 10 20 01 mov 1, %l0 return pthread_kill( pthread_self(), sig ); 200e414: 40 00 01 4f call 200e950 200e418: 01 00 00 00 nop 200e41c: 40 00 01 11 call 200e860 200e420: 92 10 00 19 mov %i1, %o1 200e424: 81 c7 e0 08 ret 200e428: 91 e8 00 08 restore %g0, %o0, %o0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 200e42c: f2 27 bf f4 st %i1, [ %fp + -12 ] siginfo->si_code = SI_USER; 200e430: e0 27 bf f8 st %l0, [ %fp + -8 ] if ( !value ) { 200e434: 80 a6 a0 00 cmp %i2, 0 200e438: 12 80 00 04 bne 200e448 200e43c: a1 2c 00 01 sll %l0, %g1, %l0 siginfo->si_value.sival_int = 0; 200e440: 10 80 00 04 b 200e450 200e444: c0 27 bf fc clr [ %fp + -4 ] } else { siginfo->si_value = *value; 200e448: c2 06 80 00 ld [ %i2 ], %g1 200e44c: c2 27 bf fc st %g1, [ %fp + -4 ] 200e450: 03 00 80 6d sethi %hi(0x201b400), %g1 200e454: c4 00 61 b0 ld [ %g1 + 0x1b0 ], %g2 ! 201b5b0 <_Thread_Dispatch_disable_level> 200e458: 84 00 a0 01 inc %g2 200e45c: c4 20 61 b0 st %g2, [ %g1 + 0x1b0 ] /* * 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; 200e460: 03 00 80 6d sethi %hi(0x201b400), %g1 200e464: c2 00 62 70 ld [ %g1 + 0x270 ], %g1 ! 201b670 <_Thread_Executing> api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200e468: c4 00 61 6c ld [ %g1 + 0x16c ], %g2 200e46c: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 200e470: 80 ac 00 02 andncc %l0, %g2, %g0 200e474: 12 80 00 4e bne 200e5ac 200e478: 07 00 80 6f sethi %hi(0x201bc00), %g3 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 200e47c: 03 00 80 6f sethi %hi(0x201bc00), %g1 200e480: c4 00 60 d0 ld [ %g1 + 0xd0 ], %g2 ! 201bcd0 <_POSIX_signals_Wait_queue> 200e484: 10 80 00 0b b 200e4b0 200e488: 86 10 e0 d4 or %g3, 0xd4, %g3 !_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 ]; 200e48c: c8 00 a1 6c ld [ %g2 + 0x16c ], %g4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 200e490: 80 8c 00 01 btst %l0, %g1 200e494: 12 80 00 46 bne 200e5ac 200e498: 82 10 00 02 mov %g2, %g1 /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 200e49c: c8 01 20 cc ld [ %g4 + 0xcc ], %g4 200e4a0: 80 ac 00 04 andncc %l0, %g4, %g0 200e4a4: 32 80 00 43 bne,a 200e5b0 200e4a8: 84 10 20 01 mov 1, %g2 the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 200e4ac: c4 00 80 00 ld [ %g2 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 200e4b0: 80 a0 80 03 cmp %g2, %g3 200e4b4: 32 bf ff f6 bne,a 200e48c 200e4b8: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 200e4bc: 03 00 80 6a sethi %hi(0x201a800), %g1 200e4c0: c8 08 63 64 ldub [ %g1 + 0x364 ], %g4 ! 201ab64 200e4c4: 05 00 80 6d sethi %hi(0x201b400), %g2 200e4c8: 88 01 20 01 inc %g4 200e4cc: 84 10 a1 18 or %g2, 0x118, %g2 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 200e4d0: 82 10 20 00 clr %g1 200e4d4: 90 00 a0 0c add %g2, 0xc, %o0 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 200e4d8: 17 04 00 00 sethi %hi(0x10000000), %o3 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 ] ) 200e4dc: c6 00 80 00 ld [ %g2 ], %g3 200e4e0: 80 a0 e0 00 cmp %g3, 0 200e4e4: 22 80 00 2c be,a 200e594 200e4e8: 84 00 a0 04 add %g2, 4, %g2 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 200e4ec: c6 00 e0 04 ld [ %g3 + 4 ], %g3 if ( !the_info ) continue; #endif maximum = the_info->maximum; object_table = the_info->local_table; 200e4f0: 9a 10 20 01 mov 1, %o5 200e4f4: f4 00 e0 1c ld [ %g3 + 0x1c ], %i2 for ( index = 1 ; index <= maximum ; index++ ) { 200e4f8: 10 80 00 23 b 200e584 200e4fc: de 10 e0 10 lduh [ %g3 + 0x10 ], %o7 the_thread = (Thread_Control *) object_table[ index ]; 200e500: c6 06 80 03 ld [ %i2 + %g3 ], %g3 if ( !the_thread ) 200e504: 80 a0 e0 00 cmp %g3, 0 200e508: 02 80 00 1d be 200e57c 200e50c: 98 10 00 04 mov %g4, %o4 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 200e510: d8 00 e0 14 ld [ %g3 + 0x14 ], %o4 200e514: 80 a3 00 04 cmp %o4, %g4 200e518: 38 80 00 19 bgu,a 200e57c 200e51c: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200e520: d4 00 e1 6c ld [ %g3 + 0x16c ], %o2 200e524: d4 02 a0 cc ld [ %o2 + 0xcc ], %o2 200e528: 80 ac 00 0a andncc %l0, %o2, %g0 200e52c: 22 80 00 14 be,a 200e57c 200e530: 98 10 00 04 mov %g4, %o4 * * 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 ) { 200e534: 80 a3 00 04 cmp %o4, %g4 200e538: 2a 80 00 11 bcs,a 200e57c 200e53c: 82 10 00 03 mov %g3, %g1 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 200e540: d2 00 60 10 ld [ %g1 + 0x10 ], %o1 200e544: 80 a2 60 00 cmp %o1, 0 200e548: 22 80 00 0d be,a 200e57c 200e54c: 98 10 00 04 mov %g4, %o4 <== NOT EXECUTED /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 200e550: d4 00 e0 10 ld [ %g3 + 0x10 ], %o2 200e554: 80 a2 a0 00 cmp %o2, 0 200e558: 22 80 00 09 be,a 200e57c 200e55c: 82 10 00 03 mov %g3, %g1 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 200e560: 80 8a 40 0b btst %o1, %o3 200e564: 32 80 00 06 bne,a 200e57c 200e568: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 200e56c: 80 8a 80 0b btst %o2, %o3 200e570: 32 80 00 03 bne,a 200e57c 200e574: 82 10 00 03 mov %g3, %g1 200e578: 98 10 00 04 mov %g4, %o4 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200e57c: 9a 03 60 01 inc %o5 200e580: 88 10 00 0c mov %o4, %g4 200e584: 80 a3 40 0f cmp %o5, %o7 200e588: 28 bf ff de bleu,a 200e500 200e58c: 87 2b 60 02 sll %o5, 2, %g3 200e590: 84 00 a0 04 add %g2, 4, %g2 * + 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++) { 200e594: 80 a0 80 08 cmp %g2, %o0 200e598: 32 bf ff d2 bne,a 200e4e0 200e59c: c6 00 80 00 ld [ %g2 ], %g3 } } } } if ( interested ) { 200e5a0: 80 a0 60 00 cmp %g1, 0 200e5a4: 02 80 00 0b be 200e5d0 200e5a8: 01 00 00 00 nop * 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; 200e5ac: 84 10 20 01 mov 1, %g2 ! 1 /* * 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 ) ) { 200e5b0: 90 10 00 01 mov %g1, %o0 * 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; 200e5b4: 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 ) ) { 200e5b8: 92 10 00 19 mov %i1, %o1 200e5bc: 40 00 00 5d call 200e730 <_POSIX_signals_Unblock_thread> 200e5c0: 94 07 bf f4 add %fp, -12, %o2 200e5c4: 80 8a 20 ff btst 0xff, %o0 200e5c8: 12 80 00 20 bne 200e648 200e5cc: 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 ); 200e5d0: 40 00 00 47 call 200e6ec <_POSIX_signals_Set_process_signals> 200e5d4: 90 10 00 10 mov %l0, %o0 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 200e5d8: 83 2e 60 04 sll %i1, 4, %g1 200e5dc: b3 2e 60 02 sll %i1, 2, %i1 200e5e0: b2 20 40 19 sub %g1, %i1, %i1 200e5e4: 03 00 80 6e sethi %hi(0x201b800), %g1 200e5e8: 82 10 63 44 or %g1, 0x344, %g1 ! 201bb44 <_POSIX_signals_Vectors> 200e5ec: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200e5f0: 80 a0 60 02 cmp %g1, 2 200e5f4: 12 80 00 15 bne 200e648 200e5f8: 11 00 80 6f sethi %hi(0x201bc00), %o0 psiginfo = (POSIX_signals_Siginfo_node *) 200e5fc: 7f ff f4 77 call 200b7d8 <_Chain_Get> 200e600: 90 12 20 c4 or %o0, 0xc4, %o0 ! 201bcc4 <_POSIX_signals_Inactive_siginfo> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 200e604: a0 92 20 00 orcc %o0, 0, %l0 200e608: 12 80 00 08 bne 200e628 200e60c: 92 07 bf f4 add %fp, -12, %o1 _Thread_Enable_dispatch(); 200e610: 7f ff e4 63 call 200779c <_Thread_Enable_dispatch> 200e614: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EAGAIN ); 200e618: 40 00 00 f7 call 200e9f4 <__errno> 200e61c: 01 00 00 00 nop 200e620: 10 bf ff 67 b 200e3bc 200e624: 82 10 20 0b mov 0xb, %g1 ! b } psiginfo->Info = *siginfo; 200e628: 90 04 20 08 add %l0, 8, %o0 200e62c: 40 00 03 2d call 200f2e0 200e630: 94 10 20 0c mov 0xc, %o2 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 200e634: 11 00 80 6f sethi %hi(0x201bc00), %o0 200e638: 92 10 00 10 mov %l0, %o1 200e63c: 90 12 21 14 or %o0, 0x114, %o0 200e640: 7f ff de 68 call 2005fe0 <_Chain_Append> 200e644: 90 02 00 19 add %o0, %i1, %o0 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 200e648: 7f ff e4 55 call 200779c <_Thread_Enable_dispatch> 200e64c: 01 00 00 00 nop 200e650: 90 10 20 00 clr %o0 ! 0 return 0; } 200e654: b0 10 00 08 mov %o0, %i0 200e658: 81 c7 e0 08 ret 200e65c: 81 e8 00 00 restore 02018dac : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 2018dac: 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())) 2018db0: 03 00 80 6d sethi %hi(0x201b400), %g1 2018db4: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201b750 <_System_state_Current> 2018db8: 80 a0 60 03 cmp %g1, 3 2018dbc: 12 80 00 16 bne 2018e14 2018dc0: 03 00 80 69 sethi %hi(0x201a400), %g1 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 2018dc4: 23 00 80 6b sethi %hi(0x201ac00), %l1 2018dc8: e0 00 62 a8 ld [ %g1 + 0x2a8 ], %l0 2018dcc: c2 04 60 68 ld [ %l1 + 0x68 ], %g1 2018dd0: 80 a0 40 10 cmp %g1, %l0 2018dd4: 22 80 00 06 be,a 2018dec 2018dd8: 21 00 80 6b sethi %hi(0x201ac00), %l0 _wrapup_reent(_global_impure_ptr); 2018ddc: 40 00 01 83 call 20193e8 <_wrapup_reent> 2018de0: 90 10 00 10 mov %l0, %o0 /* Don't reclaim this one, just in case we do printfs * on the way out to ROM. */ _reclaim_reent(&libc_global_reent); #endif _REENT = _global_impure_ptr; 2018de4: e0 24 60 68 st %l0, [ %l1 + 0x68 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 2018de8: 21 00 80 6b sethi %hi(0x201ac00), %l0 2018dec: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 ! 201ac68 <_impure_ptr> 2018df0: 7f ff d7 59 call 200eb54 2018df4: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 2018df8: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 2018dfc: 7f ff d7 56 call 200eb54 2018e00: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 2018e04: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 2018e08: f0 00 60 0c ld [ %g1 + 0xc ], %i0 2018e0c: 7f ff d7 52 call 200eb54 2018e10: 81 e8 00 00 restore 2018e14: 81 c7 e0 08 ret <== NOT EXECUTED 2018e18: 81 e8 00 00 restore <== NOT EXECUTED 02026388 : int link( const char *existing, const char *new ) { 2026388: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 202638c: 40 00 7c 92 call 20455d4 2026390: 90 10 00 18 mov %i0, %o0 2026394: 94 10 20 00 clr %o2 2026398: 92 10 00 08 mov %o0, %o1 202639c: 96 07 bf e8 add %fp, -24, %o3 20263a0: 90 10 00 18 mov %i0, %o0 20263a4: 98 10 20 01 mov 1, %o4 20263a8: 7f ff 7d db call 2005b14 20263ac: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 20263b0: 80 a2 20 00 cmp %o0, 0 20263b4: 12 80 00 8e bne 20265ec 20263b8: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 20263bc: c2 4e 40 00 ldsb [ %i1 ], %g1 20263c0: 80 a0 60 5c cmp %g1, 0x5c 20263c4: 02 80 00 06 be 20263dc 20263c8: 80 a0 60 2f cmp %g1, 0x2f 20263cc: 02 80 00 04 be 20263dc 20263d0: 80 a0 60 00 cmp %g1, 0 20263d4: 12 80 00 0a bne 20263fc 20263d8: 03 00 81 8f sethi %hi(0x2063c00), %g1 20263dc: 03 00 81 8f sethi %hi(0x2063c00), %g1 20263e0: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 ! 2063e94 20263e4: 90 07 bf d4 add %fp, -44, %o0 20263e8: 92 02 60 18 add %o1, 0x18, %o1 20263ec: 40 00 6e 0e call 2041c24 20263f0: 94 10 20 14 mov 0x14, %o2 20263f4: 10 80 00 08 b 2026414 20263f8: 90 10 20 01 mov 1, %o0 20263fc: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 2026400: 90 07 bf d4 add %fp, -44, %o0 2026404: 92 02 60 04 add %o1, 4, %o1 2026408: 40 00 6e 07 call 2041c24 202640c: 94 10 20 14 mov 0x14, %o2 2026410: 90 10 20 00 clr %o0 if ( !parent_loc.ops->evalformake_h ) { 2026414: c2 07 bf e0 ld [ %fp + -32 ], %g1 2026418: c2 00 60 04 ld [ %g1 + 4 ], %g1 202641c: 80 a0 60 00 cmp %g1, 0 2026420: 32 80 00 0b bne,a 202644c 2026424: 90 06 40 08 add %i1, %o0, %o0 rtems_filesystem_freenode( &existing_loc ); 2026428: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 202642c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026430: 02 80 00 51 be 2026574 <== NOT EXECUTED 2026434: 01 00 00 00 nop <== NOT EXECUTED 2026438: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202643c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026440: 12 80 00 4b bne 202656c <== NOT EXECUTED 2026444: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 2026448: 30 80 00 4b b,a 2026574 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 202644c: 94 07 bf fc add %fp, -4, %o2 2026450: b2 07 bf d4 add %fp, -44, %i1 2026454: 9f c0 40 00 call %g1 2026458: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 202645c: a0 92 20 00 orcc %o0, 0, %l0 2026460: 02 80 00 11 be 20264a4 2026464: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2026468: c2 07 bf f4 ld [ %fp + -12 ], %g1 202646c: 80 a0 60 00 cmp %g1, 0 2026470: 02 80 00 08 be 2026490 2026474: 01 00 00 00 nop 2026478: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202647c: 80 a0 60 00 cmp %g1, 0 2026480: 02 80 00 04 be 2026490 2026484: 01 00 00 00 nop 2026488: 9f c0 40 00 call %g1 202648c: 90 07 bf e8 add %fp, -24, %o0 rtems_set_errno_and_return_minus_one( result ); 2026490: 40 00 61 12 call 203e8d8 <__errno> 2026494: b0 10 3f ff mov -1, %i0 2026498: e0 22 00 00 st %l0, [ %o0 ] 202649c: 81 c7 e0 08 ret 20264a0: 81 e8 00 00 restore /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 20264a4: c4 07 bf e4 ld [ %fp + -28 ], %g2 20264a8: 80 a0 80 01 cmp %g2, %g1 20264ac: 02 80 00 1a be 2026514 20264b0: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &existing_loc ); 20264b4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20264b8: 80 a0 60 00 cmp %g1, 0 20264bc: 22 80 00 09 be,a 20264e0 20264c0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20264c4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20264c8: 80 a0 60 00 cmp %g1, 0 20264cc: 22 80 00 05 be,a 20264e0 20264d0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20264d4: 9f c0 40 00 call %g1 20264d8: 90 07 bf e8 add %fp, -24, %o0 rtems_filesystem_freenode( &parent_loc ); 20264dc: c2 07 bf e0 ld [ %fp + -32 ], %g1 20264e0: 80 a0 60 00 cmp %g1, 0 20264e4: 02 80 00 08 be 2026504 20264e8: 01 00 00 00 nop 20264ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20264f0: 80 a0 60 00 cmp %g1, 0 20264f4: 02 80 00 04 be 2026504 20264f8: 01 00 00 00 nop 20264fc: 9f c0 40 00 call %g1 2026500: 90 07 bf d4 add %fp, -44, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 2026504: 40 00 60 f5 call 203e8d8 <__errno> 2026508: b0 10 3f ff mov -1, %i0 202650c: 10 80 00 1d b 2026580 2026510: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 2026514: c2 00 60 08 ld [ %g1 + 8 ], %g1 2026518: 80 a0 60 00 cmp %g1, 0 202651c: 12 80 00 1c bne 202658c 2026520: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &existing_loc ); 2026524: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2026528: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202652c: 22 80 00 09 be,a 2026550 <== NOT EXECUTED 2026530: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026534: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026538: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202653c: 22 80 00 05 be,a 2026550 <== NOT EXECUTED 2026540: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026544: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026548: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 202654c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026550: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026554: 02 80 00 08 be 2026574 <== NOT EXECUTED 2026558: 01 00 00 00 nop <== NOT EXECUTED 202655c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026560: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026564: 02 80 00 04 be 2026574 <== NOT EXECUTED 2026568: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 202656c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026570: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026574: 40 00 60 d9 call 203e8d8 <__errno> <== NOT EXECUTED 2026578: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 202657c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026580: c2 22 00 00 st %g1, [ %o0 ] 2026584: 81 c7 e0 08 ret 2026588: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 202658c: 92 10 00 19 mov %i1, %o1 2026590: b2 07 bf e8 add %fp, -24, %i1 2026594: 9f c0 40 00 call %g1 2026598: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &existing_loc ); 202659c: c2 07 bf f4 ld [ %fp + -12 ], %g1 20265a0: 80 a0 60 00 cmp %g1, 0 20265a4: 02 80 00 08 be 20265c4 20265a8: b0 10 00 08 mov %o0, %i0 20265ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20265b0: 80 a0 60 00 cmp %g1, 0 20265b4: 22 80 00 05 be,a 20265c8 20265b8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20265bc: 9f c0 40 00 call %g1 20265c0: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &parent_loc ); 20265c4: c2 07 bf e0 ld [ %fp + -32 ], %g1 20265c8: 80 a0 60 00 cmp %g1, 0 20265cc: 02 80 00 08 be 20265ec 20265d0: 01 00 00 00 nop 20265d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20265d8: 80 a0 60 00 cmp %g1, 0 20265dc: 02 80 00 04 be 20265ec 20265e0: 01 00 00 00 nop 20265e4: 9f c0 40 00 call %g1 20265e8: 90 07 bf d4 add %fp, -44, %o0 return result; } 20265ec: 81 c7 e0 08 ret 20265f0: 81 e8 00 00 restore 02018c5c : off_t lseek( int fd, off_t offset, int whence ) { 2018c5c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2018c60: 03 00 80 6a sethi %hi(0x201a800), %g1 2018c64: c2 00 62 b4 ld [ %g1 + 0x2b4 ], %g1 ! 201aab4 off_t lseek( int fd, off_t offset, int whence ) { 2018c68: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2018c6c: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 2018c70: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2018c74: 1a 80 00 0c bcc 2018ca4 2018c78: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 2018c7c: 03 00 80 6c sethi %hi(0x201b000), %g1 2018c80: e0 00 63 e0 ld [ %g1 + 0x3e0 ], %l0 ! 201b3e0 2018c84: 83 2e 20 06 sll %i0, 6, %g1 2018c88: b1 2e 20 03 sll %i0, 3, %i0 2018c8c: b0 06 00 01 add %i0, %g1, %i0 2018c90: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 2018c94: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2018c98: 80 88 61 00 btst 0x100, %g1 2018c9c: 32 80 00 06 bne,a 2018cb4 2018ca0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2018ca4: 7f ff d7 54 call 200e9f4 <__errno> <== NOT EXECUTED 2018ca8: 01 00 00 00 nop <== NOT EXECUTED 2018cac: 10 80 00 1e b 2018d24 <== NOT EXECUTED 2018cb0: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 2018cb4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2018cb8: 80 a0 60 00 cmp %g1, 0 2018cbc: 12 80 00 06 bne 2018cd4 2018cc0: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2018cc4: 7f ff d7 4c call 200e9f4 <__errno> <== NOT EXECUTED 2018cc8: 01 00 00 00 nop <== NOT EXECUTED 2018ccc: 10 80 00 16 b 2018d24 <== NOT EXECUTED 2018cd0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 2018cd4: 02 80 00 09 be 2018cf8 2018cd8: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 2018cdc: 80 a6 e0 02 cmp %i3, 2 2018ce0: 02 80 00 09 be 2018d04 2018ce4: 80 a6 e0 00 cmp %i3, 0 2018ce8: 12 80 00 0c bne 2018d18 2018cec: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 2018cf0: 10 80 00 12 b 2018d38 2018cf4: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 2018cf8: 9a 86 80 13 addcc %i2, %l3, %o5 2018cfc: 10 80 00 05 b 2018d10 2018d00: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 2018d04: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 2018d08: 9a 86 80 0d addcc %i2, %o5, %o5 2018d0c: 98 46 40 0c addx %i1, %o4, %o4 break; 2018d10: 10 80 00 0a b 2018d38 2018d14: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 2018d18: 7f ff d7 37 call 200e9f4 <__errno> 2018d1c: 01 00 00 00 nop 2018d20: 82 10 20 16 mov 0x16, %g1 ! 16 2018d24: c2 22 00 00 st %g1, [ %o0 ] 2018d28: 11 3f ff ff sethi %hi(0xfffffc00), %o0 2018d2c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 2018d30: 10 80 00 0e b 2018d68 2018d34: 92 10 00 08 mov %o0, %o1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 2018d38: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2018d3c: 92 10 00 02 mov %g2, %o1 2018d40: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2018d44: 94 10 00 03 mov %g3, %o2 2018d48: 9f c0 40 00 call %g1 2018d4c: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 2018d50: 80 a2 3f ff cmp %o0, -1 2018d54: 12 80 00 06 bne 2018d6c 2018d58: b2 10 00 09 mov %o1, %i1 2018d5c: 80 a2 7f ff cmp %o1, -1 2018d60: 22 80 00 03 be,a 2018d6c 2018d64: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 2018d68: b2 10 00 09 mov %o1, %i1 2018d6c: 81 c7 e0 08 ret 2018d70: 91 e8 00 08 restore %g0, %o0, %o0 02026748 : int _STAT_NAME( const char *path, struct stat *buf ) { 2026748: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 202674c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2026750: 12 80 00 06 bne 2026768 <== NOT EXECUTED 2026754: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 2026758: 40 00 60 60 call 203e8d8 <__errno> <== NOT EXECUTED 202675c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026760: 10 80 00 20 b 20267e0 <== NOT EXECUTED 2026764: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 2026768: 40 00 7b 9b call 20455d4 <== NOT EXECUTED 202676c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026770: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2026774: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2026778: 94 10 20 00 clr %o2 <== NOT EXECUTED 202677c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026780: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2026784: 98 10 20 00 clr %o4 <== NOT EXECUTED 2026788: 7f ff 7c e3 call 2005b14 <== NOT EXECUTED 202678c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2026790: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026794: 12 80 00 14 bne 20267e4 <== NOT EXECUTED 2026798: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 202679c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20267a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20267a4: 12 80 00 12 bne 20267ec <== NOT EXECUTED 20267a8: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20267ac: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20267b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20267b4: 02 80 00 08 be 20267d4 <== NOT EXECUTED 20267b8: 01 00 00 00 nop <== NOT EXECUTED 20267bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20267c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20267c4: 02 80 00 04 be 20267d4 <== NOT EXECUTED 20267c8: 01 00 00 00 nop <== NOT EXECUTED 20267cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20267d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20267d4: 40 00 60 41 call 203e8d8 <__errno> <== NOT EXECUTED 20267d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20267dc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20267e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20267e4: 81 c7 e0 08 ret <== NOT EXECUTED 20267e8: 81 e8 00 00 restore <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 20267ec: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 20267f0: 40 00 6d a0 call 2041e70 <== NOT EXECUTED 20267f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 20267f8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20267fc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2026800: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2026804: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026808: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 202680c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026810: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026814: 02 bf ff f4 be 20267e4 <== NOT EXECUTED 2026818: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 202681c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026820: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026824: 02 80 00 04 be 2026834 <== NOT EXECUTED 2026828: 01 00 00 00 nop <== NOT EXECUTED 202682c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026830: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2026834: 81 c7 e0 08 ret <== NOT EXECUTED 2026838: 81 e8 00 00 restore <== NOT EXECUTED 0200a968 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200a968: 9d e3 bf a0 save %sp, -96, %sp 200a96c: 03 00 80 6c sethi %hi(0x201b000), %g1 200a970: 82 10 63 f0 or %g1, 0x3f0, %g1 ! 201b3f0 200a974: c4 00 60 04 ld [ %g1 + 4 ], %g2 200a978: a0 10 00 18 mov %i0, %l0 200a97c: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200a980: 7f ff ff ed call 200a934 200a984: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 200a988: 80 a6 20 00 cmp %i0, 0 200a98c: 02 80 00 36 be 200aa64 200a990: 03 00 80 6d sethi %hi(0x201b400), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200a994: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201b750 <_System_state_Current> 200a998: 80 a0 60 03 cmp %g1, 3 200a99c: 12 80 00 07 bne 200a9b8 200a9a0: 03 00 80 6a sethi %hi(0x201a800), %g1 200a9a4: 7f ff ff cb call 200a8d0 200a9a8: 01 00 00 00 nop 200a9ac: 80 8a 20 ff btst 0xff, %o0 200a9b0: 02 80 00 2d be 200aa64 200a9b4: 03 00 80 6a sethi %hi(0x201a800), %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 ); 200a9b8: d0 00 62 c0 ld [ %g1 + 0x2c0 ], %o0 ! 201aac0 200a9bc: 92 10 00 10 mov %l0, %o1 200a9c0: 94 10 20 00 clr %o2 200a9c4: 40 00 05 24 call 200be54 <_Protected_heap_Allocate_aligned_with_boundary> 200a9c8: 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 ) { 200a9cc: b0 92 20 00 orcc %o0, 0, %i0 200a9d0: 12 80 00 13 bne 200aa1c 200a9d4: a2 10 00 18 mov %i0, %l1 if (rtems_malloc_sbrk_helpers) 200a9d8: 03 00 80 6c sethi %hi(0x201b000), %g1 200a9dc: c2 00 61 2c ld [ %g1 + 0x12c ], %g1 ! 201b12c 200a9e0: 80 a0 60 00 cmp %g1, 0 200a9e4: 02 80 00 08 be 200aa04 200a9e8: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200a9ec: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200a9f0: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a9f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 200a9f8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200a9fc: 12 80 00 09 bne 200aa20 <== NOT EXECUTED 200aa00: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED errno = ENOMEM; 200aa04: 40 00 0f fc call 200e9f4 <__errno> 200aa08: 01 00 00 00 nop 200aa0c: 82 10 20 0c mov 0xc, %g1 ! c 200aa10: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 200aa14: 81 c7 e0 08 ret 200aa18: 81 e8 00 00 restore } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 200aa1c: 03 00 80 6c sethi %hi(0x201b000), %g1 200aa20: c2 00 61 30 ld [ %g1 + 0x130 ], %g1 ! 201b130 200aa24: 80 a0 60 00 cmp %g1, 0 200aa28: 02 80 00 05 be 200aa3c 200aa2c: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 200aa30: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 200aa34: 9f c0 40 00 call %g1 <== NOT EXECUTED 200aa38: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200aa3c: 03 00 80 6c sethi %hi(0x201b000), %g1 200aa40: c2 00 61 28 ld [ %g1 + 0x128 ], %g1 ! 201b128 200aa44: 80 a0 60 00 cmp %g1, 0 200aa48: 02 bf ff f3 be 200aa14 200aa4c: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 200aa50: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200aa54: 9f c0 40 00 call %g1 <== NOT EXECUTED 200aa58: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200aa5c: 81 c7 e0 08 ret <== NOT EXECUTED 200aa60: 81 e8 00 00 restore <== NOT EXECUTED 200aa64: b0 10 20 00 clr %i0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 200aa68: 81 c7 e0 08 ret <== NOT EXECUTED 200aa6c: 81 e8 00 00 restore <== NOT EXECUTED 0200a918 : 200a918: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 200a91c: 11 00 80 6e sethi %hi(0x201b800), %o0 <== NOT EXECUTED 200a920: 90 12 23 38 or %o0, 0x338, %o0 ! 201bb38 <== NOT EXECUTED 200a924: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a928: 7f ff ed ae call 2005fe0 <_Chain_Append> <== NOT EXECUTED 200a92c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200a930: 01 00 00 00 nop 0200a934 : void malloc_deferred_frees_process(void) { 200a934: 9d e3 bf a0 save %sp, -96, %sp */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 200a938: 21 00 80 6e sethi %hi(0x201b800), %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) 200a93c: 10 80 00 04 b 200a94c 200a940: a0 14 23 38 or %l0, 0x338, %l0 ! 201bb38 free(to_be_freed); 200a944: 7f ff fe a7 call 200a3e0 <== NOT EXECUTED 200a948: 01 00 00 00 nop <== NOT EXECUTED 200a94c: 40 00 03 a3 call 200b7d8 <_Chain_Get> 200a950: 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) 200a954: 80 a2 20 00 cmp %o0, 0 200a958: 12 bf ff fb bne 200a944 200a95c: 01 00 00 00 nop free(to_be_freed); } 200a960: 81 c7 e0 08 ret 200a964: 81 e8 00 00 restore 02012020 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 2012020: 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) ) { 2012024: 7f ff f6 2c call 200f8d4 2012028: 90 10 00 18 mov %i0, %o0 201202c: 80 a2 20 00 cmp %o0, 0 2012030: 12 80 00 13 bne 201207c 2012034: 01 00 00 00 nop 2012038: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 201203c: 80 a0 60 00 cmp %g1, 0 2012040: 12 80 00 0f bne 201207c 2012044: 03 00 80 82 sethi %hi(0x2020800), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 2012048: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 20209dc 201204c: c4 00 60 04 ld [ %g1 + 4 ], %g2 2012050: 80 a0 80 18 cmp %g2, %i0 2012054: 22 80 00 02 be,a 201205c 2012058: 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) 201205c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2012060: 80 a0 60 06 cmp %g1, 6 2012064: 02 80 00 04 be 2012074 2012068: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 201206c: 7f ff ff 8c call 2011e9c 2012070: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 2012074: 7f ff c5 d9 call 20037d8 2012078: 90 10 00 18 mov %i0, %o0 } return 0; } 201207c: 81 c7 e0 08 ret 2012080: 91 e8 20 00 restore %g0, 0, %o0 02011dd4 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 2011dd4: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 2011dd8: 80 a6 20 00 cmp %i0, 0 2011ddc: 32 80 00 0a bne,a 2011e04 2011de0: e0 06 00 00 ld [ %i0 ], %l0 2011de4: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011de8: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011dec: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011df0: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2011df4: 94 12 a0 b0 or %o2, 0xb0, %o2 <== NOT EXECUTED 2011df8: 96 12 e3 98 or %o3, 0x398, %o3 <== NOT EXECUTED 2011dfc: 7f ff c5 81 call 2003400 <__assert_func> <== NOT EXECUTED 2011e00: 92 10 21 b3 mov 0x1b3, %o1 <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 2011e08: a2 10 20 00 clr %l1 if ( b[i] ) { 2011e0c: 80 a2 20 00 cmp %o0, 0 2011e10: 02 80 00 05 be 2011e24 2011e14: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 2011e18: 7f ff ff 2a call 2011ac0 2011e1c: 01 00 00 00 nop b[i] = 0; 2011e20: 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 2011e30: d0 04 00 00 ld [ %l0 ], %o0 /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 2011e34: 7f ff ff 23 call 2011ac0 2011e38: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 2011e3c: c0 26 00 00 clr [ %i0 ] } 2011e40: 81 c7 e0 08 ret 2011e44: 81 e8 00 00 restore 02012334 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 2012334: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2012338: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 201233c: 92 10 00 19 mov %i1, %o1 * 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 ) 2012340: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2012344: 80 a0 40 19 cmp %g1, %i1 2012348: 06 80 00 09 bl 201236c 201234c: 94 10 00 1a mov %i2, %o2 2012350: 80 a0 40 19 cmp %g1, %i1 2012354: 32 80 00 0a bne,a 201237c 2012358: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 201235c: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 2012360: 80 a0 40 1a cmp %g1, %i2 2012364: 3a 80 00 06 bcc,a 201237c 2012368: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 201236c: 7f ff ff 8f call 20121a8 <== NOT EXECUTED 2012370: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2012374: 81 c7 e0 08 ret <== NOT EXECUTED 2012378: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED * The in-memory files do not currently reclaim memory until the file is * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length; 201237c: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 2012380: d2 26 20 08 st %o1, [ %i0 + 8 ] 2012384: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 2012388: 90 07 bf f8 add %fp, -8, %o0 201238c: 7f ff c5 3d call 2003880 2012390: 92 10 20 00 clr %o1 2012394: c2 07 bf f8 ld [ %fp + -8 ], %g1 2012398: 90 10 20 00 clr %o0 201239c: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return 0; } 20123a0: b0 10 00 08 mov %o0, %i0 20123a4: 81 c7 e0 08 ret 20123a8: 81 e8 00 00 restore 020123ac : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 20123ac: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 20123b0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 20123b4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20123b8: 80 a0 60 06 cmp %g1, 6 20123bc: 32 80 00 11 bne,a 2012400 20123c0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 20123c4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 20123c8: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 20123cc: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20123d0: 14 80 00 09 bg 20123f4 <== NOT EXECUTED 20123d4: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 20123d8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20123dc: 32 80 00 1a bne,a 2012444 <== NOT EXECUTED 20123e0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 20123e4: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 20123e8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 20123ec: 28 80 00 16 bleu,a 2012444 <== NOT EXECUTED 20123f0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 20123f4: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 20123f8: 10 80 00 12 b 2012440 <== NOT EXECUTED 20123fc: c4 26 20 14 st %g2, [ %i0 + 0x14 ] <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 2012400: 90 10 00 10 mov %l0, %o0 2012404: 92 10 00 02 mov %g2, %o1 2012408: 7f ff ff 68 call 20121a8 201240c: 94 10 00 03 mov %g3, %o2 2012410: 80 a2 20 00 cmp %o0, 0 2012414: 22 80 00 0a be,a 201243c 2012418: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 201241c: 40 00 07 30 call 20140dc <__errno> <== NOT EXECUTED 2012420: 01 00 00 00 nop <== NOT EXECUTED 2012424: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2012428: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 201242c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2012430: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 2012434: 10 80 00 04 b 2012444 <== NOT EXECUTED 2012438: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 201243c: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 2012440: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 2012444: b2 10 00 03 mov %g3, %i1 2012448: 81 c7 e0 08 ret 201244c: 91 e8 00 02 restore %g0, %g2, %o0 02012718 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2012718: 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)) 201271c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2012720: a2 10 00 18 mov %i0, %l1 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 2012724: 80 88 62 04 btst 0x204, %g1 2012728: 02 80 00 19 be 201278c 201272c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 2012730: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2012734: 80 a0 60 06 cmp %g1, 6 2012738: 32 80 00 16 bne,a 2012790 201273c: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 2012740: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 2012744: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 2012748: 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; 201274c: c0 24 20 5c clr [ %l0 + 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; 2012750: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 2012754: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; 2012758: c0 24 20 60 clr [ %l0 + 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; 201275c: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 2012760: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 2012764: 02 80 00 0a be 201278c <== NOT EXECUTED 2012768: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 201276c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2012770: 92 10 20 00 clr %o1 <== NOT EXECUTED 2012774: 94 10 20 00 clr %o2 <== NOT EXECUTED 2012778: 7f ff ff 36 call 2012450 <== NOT EXECUTED 201277c: 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) 2012780: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2012784: 02 80 00 0a be 20127ac <== NOT EXECUTED 2012788: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 201278c: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 2012790: 80 88 62 00 btst 0x200, %g1 2012794: 02 80 00 04 be 20127a4 2012798: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 201279c: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 20127a0: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 20127a4: b0 10 20 00 clr %i0 20127a8: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 20127ac: 81 c7 e0 08 ret 20127b0: 81 e8 00 00 restore 02012084 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2012084: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2012088: 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 ) { 201208c: c2 04 20 08 ld [ %l0 + 8 ], %g1 2012090: 80 a0 60 00 cmp %g1, 0 2012094: 22 80 00 06 be,a 20120ac 2012098: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 201209c: 7f ff d7 50 call 2007ddc <_Chain_Extract> 20120a0: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 20120a4: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20120a8: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 20120ac: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20120b0: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 20120b4: 90 07 bf f8 add %fp, -8, %o0 20120b8: 7f ff c5 f2 call 2003880 20120bc: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 20120c0: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 20120c4: 90 10 00 10 mov %l0, %o0 20120c8: 7f ff ff d6 call 2012020 20120cc: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } 20120d0: 81 c7 e0 08 ret 20120d4: 91 e8 00 08 restore %g0, %o0, %o0 02009340 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 2009340: 13 00 80 67 sethi %hi(0x2019c00), %o1 2009344: 15 00 80 67 sethi %hi(0x2019c00), %o2 2009348: 92 12 61 e4 or %o1, 0x1e4, %o1 200934c: 94 12 a3 a8 or %o2, 0x3a8, %o2 2009350: 96 10 00 0a mov %o2, %o3 2009354: 82 13 c0 00 mov %o7, %g1 2009358: 40 00 03 14 call 2009fa8 200935c: 9e 10 40 00 mov %g1, %o7 2009360: 01 00 00 00 nop <== NOT EXECUTED 020023bc : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 20023bc: 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) ) ) 20023c0: 03 00 00 3c sethi %hi(0xf000), %g1 20023c4: b3 2e 60 10 sll %i1, 0x10, %i1 20023c8: b3 36 60 10 srl %i1, 0x10, %i1 20023cc: 80 8e 40 01 btst %i1, %g1 20023d0: 32 80 00 06 bne,a 20023e8 20023d4: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 20023d8: 40 00 31 87 call 200e9f4 <__errno> <== NOT EXECUTED 20023dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20023e0: 10 80 00 31 b 20024a4 <== NOT EXECUTED 20023e4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 20023e8: 80 a0 60 5c cmp %g1, 0x5c 20023ec: 02 80 00 06 be 2002404 20023f0: 80 a0 60 2f cmp %g1, 0x2f 20023f4: 02 80 00 04 be 2002404 20023f8: 80 a0 60 00 cmp %g1, 0 20023fc: 12 80 00 0a bne 2002424 2002400: 03 00 80 6a sethi %hi(0x201a800), %g1 2002404: 03 00 80 6a sethi %hi(0x201a800), %g1 2002408: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 ! 201abc4 200240c: 90 07 bf e8 add %fp, -24, %o0 2002410: 92 02 60 18 add %o1, 0x18, %o1 2002414: 40 00 33 b3 call 200f2e0 2002418: 94 10 20 14 mov 0x14, %o2 200241c: 10 80 00 08 b 200243c 2002420: 90 10 20 01 mov 1, %o0 2002424: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 2002428: 90 07 bf e8 add %fp, -24, %o0 200242c: 92 02 60 04 add %o1, 4, %o1 2002430: 40 00 33 ac call 200f2e0 2002434: 94 10 20 14 mov 0x14, %o2 2002438: 90 10 20 00 clr %o0 if ( !temp_loc.ops->evalformake_h ) { 200243c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002440: c2 00 60 04 ld [ %g1 + 4 ], %g1 2002444: 80 a0 60 00 cmp %g1, 0 2002448: 02 80 00 14 be 2002498 200244c: 90 06 00 08 add %i0, %o0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2002450: a0 07 bf e8 add %fp, -24, %l0 2002454: 94 07 bf fc add %fp, -4, %o2 2002458: 92 10 00 10 mov %l0, %o1 200245c: 9f c0 40 00 call %g1 2002460: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 2002464: 80 a2 20 00 cmp %o0, 0 2002468: 12 80 00 10 bne 20024a8 200246c: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 2002470: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 2002474: 80 a0 60 00 cmp %g1, 0 2002478: 12 80 00 0e bne 20024b0 200247c: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &temp_loc ); 2002480: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002484: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002488: 02 80 00 04 be 2002498 <== NOT EXECUTED 200248c: 01 00 00 00 nop <== NOT EXECUTED 2002490: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002494: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002498: 40 00 31 57 call 200e9f4 <__errno> <== NOT EXECUTED 200249c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20024a0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20024a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20024a8: 81 c7 e0 08 ret 20024ac: 81 e8 00 00 restore } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 20024b0: 92 10 00 19 mov %i1, %o1 20024b4: 94 10 00 1a mov %i2, %o2 20024b8: 96 10 00 1b mov %i3, %o3 20024bc: 9f c0 40 00 call %g1 20024c0: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 20024c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20024c8: 80 a0 60 00 cmp %g1, 0 20024cc: 02 bf ff f7 be 20024a8 20024d0: b0 10 00 08 mov %o0, %i0 20024d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20024d8: 80 a0 60 00 cmp %g1, 0 20024dc: 02 80 00 04 be 20024ec 20024e0: 01 00 00 00 nop 20024e4: 9f c0 40 00 call %g1 20024e8: 90 10 00 10 mov %l0, %o0 return result; } 20024ec: 81 c7 e0 08 ret 20024f0: 81 e8 00 00 restore 02002514 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 2002514: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 2002518: 80 a6 60 00 cmp %i1, 0 200251c: 02 80 00 05 be 2002530 2002520: a0 10 00 18 mov %i0, %l0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 2002524: 80 a6 a0 01 cmp %i2, 1 2002528: 28 80 00 06 bleu,a 2002540 200252c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 2002530: 40 00 31 31 call 200e9f4 <__errno> 2002534: 01 00 00 00 nop 2002538: 10 80 00 14 b 2002588 200253c: 82 10 20 16 mov 0x16, %g1 ! 16 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 2002540: a4 10 20 00 clr %l2 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 2002544: 80 a0 60 00 cmp %g1, 0 2002548: 02 80 00 4c be 2002678 200254c: a6 10 20 00 clr %l3 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 2002550: 80 a6 e0 00 cmp %i3, 0 2002554: 02 80 00 05 be 2002568 2002558: 90 10 20 6c mov 0x6c, %o0 size += strlen( device ) + 1; 200255c: 40 00 34 dd call 200f8d0 <== NOT EXECUTED 2002560: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 2002564: 90 02 20 6d add %o0, 0x6d, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 2002568: 40 00 21 00 call 200a968 200256c: 01 00 00 00 nop if ( !temp_mt_entry ) { 2002570: a2 92 20 00 orcc %o0, 0, %l1 2002574: 12 80 00 07 bne 2002590 2002578: a6 10 00 11 mov %l1, %l3 errno = ENOMEM; 200257c: 40 00 31 1e call 200e9f4 <__errno> <== NOT EXECUTED 2002580: 01 00 00 00 nop <== NOT EXECUTED 2002584: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002588: 10 80 00 75 b 200275c 200258c: c2 22 00 00 st %g1, [ %o0 ] return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 2002590: f4 24 60 30 st %i2, [ %l1 + 0x30 ] if ( device ) { 2002594: 80 a6 e0 00 cmp %i3, 0 2002598: 02 80 00 08 be 20025b8 200259c: e2 24 60 2c st %l1, [ %l1 + 0x2c ] temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 20025a0: 90 04 60 6c add %l1, 0x6c, %o0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 20025a4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 20025a8: 40 00 34 a7 call 200f844 <== NOT EXECUTED 20025ac: 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 ) { 20025b0: 10 80 00 04 b 20025c0 <== NOT EXECUTED 20025b4: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); } else temp_mt_entry->dev = 0; 20025b8: c0 24 60 68 clr [ %l1 + 0x68 ] /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 20025bc: 80 a7 20 00 cmp %i4, 0 20025c0: 22 80 00 39 be,a 20026a4 20025c4: c0 24 60 1c clr [ %l1 + 0x1c ] if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 20025c8: 40 00 34 c2 call 200f8d0 20025cc: 90 10 00 1c mov %i4, %o0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 20025d0: a4 07 bf ec add %fp, -20, %l2 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 20025d4: 92 10 00 08 mov %o0, %o1 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 20025d8: 94 10 20 07 mov 7, %o2 20025dc: 90 10 00 1c mov %i4, %o0 20025e0: 96 10 00 12 mov %l2, %o3 20025e4: 7f ff fe d7 call 2002140 20025e8: 98 10 20 01 mov 1, %o4 20025ec: 80 a2 3f ff cmp %o0, -1 20025f0: 02 80 00 4b be 200271c 20025f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 20025f8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20025fc: 80 a0 60 00 cmp %g1, 0 2002600: 02 80 00 1e be 2002678 2002604: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2002608: 9f c0 40 00 call %g1 200260c: 90 10 00 12 mov %l2, %o0 2002610: 80 a2 20 01 cmp %o0, 1 2002614: 02 80 00 07 be 2002630 2002618: 03 00 80 6d sethi %hi(0x201b400), %g1 errno = ENOTDIR; 200261c: 40 00 30 f6 call 200e9f4 <__errno> 2002620: 01 00 00 00 nop 2002624: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 2002628: 10 80 00 3e b 2002720 200262c: c2 22 00 00 st %g1, [ %o0 ] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2002630: 05 00 80 6d sethi %hi(0x201b400), %g2 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 2002634: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 2002638: 84 10 a0 24 or %g2, 0x24, %g2 !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 ) 200263c: 10 80 00 06 b 2002654 2002640: c6 07 bf ec ld [ %fp + -20 ], %g3 2002644: 80 a1 00 03 cmp %g4, %g3 2002648: 02 80 00 08 be 2002668 200264c: 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 ) { 2002650: c2 00 40 00 ld [ %g1 ], %g1 2002654: 80 a0 40 02 cmp %g1, %g2 2002658: 32 bf ff fb bne,a 2002644 200265c: c8 00 60 1c ld [ %g1 + 0x1c ], %g4 * 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; 2002660: 10 80 00 42 b 2002768 2002664: c6 24 60 08 st %g3, [ %l1 + 8 ] /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 2002668: 40 00 30 e3 call 200e9f4 <__errno> 200266c: a4 07 bf ec add %fp, -20, %l2 2002670: 10 bf ff ee b 2002628 2002674: 82 10 20 10 mov 0x10, %g1 * 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; 2002678: 40 00 30 df call 200e9f4 <__errno> <== NOT EXECUTED 200267c: 01 00 00 00 nop <== NOT EXECUTED 2002680: 10 bf ff ea b 2002628 <== NOT EXECUTED 2002684: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 2002688: 90 10 00 11 mov %l1, %o0 200268c: 9f c0 40 00 call %g1 2002690: a4 07 bf ec add %fp, -20, %l2 2002694: 80 a2 20 00 cmp %o0, 0 2002698: 22 80 00 0b be,a 20026c4 200269c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 20026a0: 30 80 00 20 b,a 2002720 <== NOT EXECUTED * mt_point_node.node_access will be set to null to indicate that this * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL; temp_mt_entry->mt_fs_root.handlers = NULL; 20026a4: c0 24 60 24 clr [ %l1 + 0x24 ] temp_mt_entry->mt_fs_root.ops = NULL; 20026a8: c0 24 60 28 clr [ %l1 + 0x28 ] temp_mt_entry->mt_point_node.node_access = NULL; 20026ac: c0 24 60 08 clr [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 20026b0: c0 24 60 10 clr [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = NULL; 20026b4: c0 24 60 14 clr [ %l1 + 0x14 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 20026b8: c0 24 60 18 clr [ %l1 + 0x18 ] 20026bc: a4 10 20 00 clr %l2 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 20026c0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 20026c4: 9f c0 40 00 call %g1 20026c8: 90 10 00 11 mov %l1, %o0 20026cc: 80 a2 20 00 cmp %o0, 0 20026d0: 02 80 00 0a be 20026f8 20026d4: 11 00 80 6d sethi %hi(0x201b400), %o0 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 20026d8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20026dc: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 20026e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20026e4: 02 80 00 0f be 2002720 <== NOT EXECUTED 20026e8: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 20026ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20026f0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20026f4: 30 80 00 0b b,a 2002720 <== 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 ); 20026f8: 92 10 00 11 mov %l1, %o1 20026fc: 40 00 0e 39 call 2005fe0 <_Chain_Append> 2002700: 90 12 20 20 or %o0, 0x20, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 2002704: 80 a4 20 00 cmp %l0, 0 2002708: 02 80 00 03 be 2002714 200270c: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 2002710: e2 24 00 00 st %l1, [ %l0 ] 2002714: 81 c7 e0 08 ret 2002718: 81 e8 00 00 restore 200271c: a4 10 20 00 clr %l2 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 2002720: 40 00 1f 30 call 200a3e0 2002724: 90 10 00 13 mov %l3, %o0 if ( loc_to_free ) 2002728: 80 a4 a0 00 cmp %l2, 0 200272c: 02 bf ff fa be 2002714 2002730: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( loc_to_free ); 2002734: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 2002738: 80 a0 60 00 cmp %g1, 0 200273c: 02 80 00 09 be 2002760 2002740: 01 00 00 00 nop 2002744: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002748: 80 a0 60 00 cmp %g1, 0 200274c: 02 80 00 05 be 2002760 2002750: 01 00 00 00 nop 2002754: 9f c0 40 00 call %g1 2002758: 90 10 00 12 mov %l2, %o0 200275c: b0 10 3f ff mov -1, %i0 return -1; } 2002760: 81 c7 e0 08 ret 2002764: 81 e8 00 00 restore * 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; 2002768: c6 07 bf f4 ld [ %fp + -12 ], %g3 temp_mt_entry->mt_point_node.ops = loc.ops; 200276c: 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; 2002770: 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; 2002774: 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 ){ 2002778: 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; 200277c: 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 ){ 2002780: 80 a0 60 00 cmp %g1, 0 2002784: 12 bf ff c1 bne 2002688 2002788: c4 24 60 14 st %g2, [ %l1 + 0x14 ] errno = ENOTSUP; 200278c: 10 bf ff bb b 2002678 <== NOT EXECUTED 2002790: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED 02002800 : */ int newlib_free_buffers( FILE *fp ) { 2002800: 9d e3 bf a0 save %sp, -96, %sp switch ( fileno(fp) ) { 2002804: 40 00 31 95 call 200ee58 2002808: 90 10 00 18 mov %i0, %o0 200280c: 80 a2 20 02 cmp %o0, 2 2002810: 18 80 00 0e bgu 2002848 2002814: 01 00 00 00 nop case 0: case 1: case 2: if (fp->_flags & __SMBF) { 2002818: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 200281c: 80 88 60 80 btst 0x80, %g1 2002820: 02 80 00 0c be 2002850 2002824: 01 00 00 00 nop free( fp->_bf._base ); 2002828: 40 00 1e ee call 200a3e0 <== NOT EXECUTED 200282c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 2002830: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002834: 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; 2002838: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 200283c: 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; 2002840: 10 80 00 04 b 2002850 <== NOT EXECUTED 2002844: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 2002848: 40 00 30 c3 call 200eb54 <== NOT EXECUTED 200284c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2002850: 81 c7 e0 08 ret 2002854: 91 e8 20 00 restore %g0, 0, %o0 020028c0 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 20028c0: 9d e3 bf a0 save %sp, -96, %sp rtems_device_driver status; if ( !initialized ) { 20028c4: 03 00 80 7f sethi %hi(0x201fc00), %g1 20028c8: c4 48 63 ac ldsb [ %g1 + 0x3ac ], %g2 ! 201ffac 20028cc: 80 a0 a0 00 cmp %g2, 0 20028d0: 12 80 00 0e bne 2002908 20028d4: 84 10 20 01 mov 1, %g2 initialized = 1; status = rtems_io_register_name( 20028d8: 11 00 80 77 sethi %hi(0x201dc00), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 20028dc: c4 28 63 ac stb %g2, [ %g1 + 0x3ac ] status = rtems_io_register_name( 20028e0: 90 12 21 78 or %o0, 0x178, %o0 20028e4: 92 10 00 18 mov %i0, %o1 20028e8: 40 00 00 51 call 2002a2c 20028ec: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 20028f0: 80 a2 20 00 cmp %o0, 0 20028f4: 02 80 00 04 be 2002904 20028f8: 03 00 80 80 sethi %hi(0x2020000), %g1 rtems_fatal_error_occurred(status); 20028fc: 40 00 10 82 call 2006b04 <== NOT EXECUTED 2002900: 01 00 00 00 nop <== NOT EXECUTED NULL_major = major; 2002904: f0 20 62 3c st %i0, [ %g1 + 0x23c ] } return RTEMS_SUCCESSFUL; } 2002908: 81 c7 e0 08 ret 200290c: 91 e8 20 00 restore %g0, 0, %o0 0200289c : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 200289c: 80 a2 a0 00 cmp %o2, 0 20028a0: 02 80 00 04 be 20028b0 20028a4: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 20028a8: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED 20028ac: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 20028b0: 81 c3 e0 08 retl 20028b4: 90 10 20 00 clr %o0 02002a78 : int open( const char *pathname, int flags, ... ) { 2002a78: 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); 2002a7c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2002a80: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2002a84: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2002a88: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 2002a8c: a2 06 60 01 add %i1, 1, %l1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 2002a90: 80 8c 60 02 btst 2, %l1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 2002a94: a2 0c 60 01 and %l1, 1, %l1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 2002a98: 02 80 00 03 be 2002aa4 2002a9c: a3 2c 60 02 sll %l1, 2, %l1 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 2002aa0: a2 14 60 02 or %l1, 2, %l1 va_start(ap, flags); mode = va_arg( ap, int ); 2002aa4: 82 07 a0 50 add %fp, 0x50, %g1 2002aa8: e4 07 a0 4c ld [ %fp + 0x4c ], %l2 2002aac: 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(); 2002ab0: 40 00 1f 47 call 200a7cc 2002ab4: a6 10 20 17 mov 0x17, %l3 if ( iop == 0 ) { 2002ab8: a0 92 20 00 orcc %o0, 0, %l0 2002abc: 02 80 00 9a be 2002d24 2002ac0: 01 00 00 00 nop /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 2002ac4: 40 00 33 83 call 200f8d0 2002ac8: 90 10 00 18 mov %i0, %o0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2002acc: 94 10 00 11 mov %l1, %o2 pathname, strlen( pathname ), eval_flags, &loc, true ); 2002ad0: 92 10 00 08 mov %o0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2002ad4: a2 07 bf e8 add %fp, -24, %l1 2002ad8: 90 10 00 18 mov %i0, %o0 2002adc: 96 10 00 11 mov %l1, %o3 2002ae0: 7f ff fd 98 call 2002140 2002ae4: 98 10 20 01 mov 1, %o4 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 2002ae8: 80 a2 3f ff cmp %o0, -1 2002aec: 12 80 00 24 bne 2002b7c 2002af0: 82 0e 6a 00 and %i1, 0xa00, %g1 if ( errno != ENOENT ) { 2002af4: 40 00 2f c0 call 200e9f4 <__errno> 2002af8: a8 10 20 00 clr %l4 2002afc: c2 02 00 00 ld [ %o0 ], %g1 2002b00: 80 a0 60 02 cmp %g1, 2 2002b04: 12 80 00 40 bne 2002c04 2002b08: 80 8e 62 00 btst 0x200, %i1 rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 2002b0c: a8 10 20 00 clr %l4 2002b10: 02 80 00 73 be 2002cdc 2002b14: 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 ); 2002b18: 13 3f ff e0 sethi %hi(0xffff8000), %o1 2002b1c: 90 10 00 18 mov %i0, %o0 2002b20: 92 14 80 09 or %l2, %o1, %o1 2002b24: 94 10 20 00 clr %o2 2002b28: 93 2a 60 10 sll %o1, 0x10, %o1 2002b2c: 96 10 20 00 clr %o3 2002b30: 7f ff fe 23 call 20023bc 2002b34: 93 32 60 10 srl %o1, 0x10, %o1 if ( rc ) { 2002b38: 80 a2 20 00 cmp %o0, 0 2002b3c: 12 80 00 32 bne 2002c04 2002b40: 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 ); 2002b44: 40 00 33 63 call 200f8d0 2002b48: 90 10 00 18 mov %i0, %o0 2002b4c: 96 10 00 11 mov %l1, %o3 2002b50: 92 10 00 08 mov %o0, %o1 2002b54: 94 10 20 00 clr %o2 2002b58: 90 10 00 18 mov %i0, %o0 2002b5c: 98 10 20 01 mov 1, %o4 2002b60: 7f ff fd 78 call 2002140 2002b64: a8 10 20 00 clr %l4 if ( status != 0 ) { /* The file did not exist */ 2002b68: 80 a2 20 00 cmp %o0, 0 2002b6c: 12 80 00 5c bne 2002cdc 2002b70: 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; 2002b74: 10 80 00 07 b 2002b90 2002b78: c2 07 bf f0 ld [ %fp + -16 ], %g1 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 2002b7c: a8 10 00 11 mov %l1, %l4 2002b80: 80 a0 6a 00 cmp %g1, 0xa00 2002b84: 02 80 00 56 be 2002cdc 2002b88: 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; 2002b8c: c2 07 bf f0 ld [ %fp + -16 ], %g1 iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002b90: e2 04 20 18 ld [ %l0 + 0x18 ], %l1 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002b94: c2 24 20 40 st %g1, [ %l0 + 0x40 ] iop->file_info = loc.node_access; 2002b98: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->flags |= rtems_libio_fcntl_flags( flags ); 2002b9c: 90 10 00 19 mov %i1, %o0 2002ba0: 40 00 1f 3f call 200a89c 2002ba4: c2 24 20 3c st %g1, [ %l0 + 0x3c ] 2002ba8: 90 12 00 11 or %o0, %l1, %o0 iop->pathinfo = loc; 2002bac: 94 10 20 14 mov 0x14, %o2 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002bb0: d0 24 20 18 st %o0, [ %l0 + 0x18 ] iop->pathinfo = loc; 2002bb4: a2 07 bf e8 add %fp, -24, %l1 2002bb8: 90 04 20 1c add %l0, 0x1c, %o0 2002bbc: 40 00 31 c9 call 200f2e0 2002bc0: 92 10 00 11 mov %l1, %o1 if ( !iop->handlers || !iop->handlers->open_h ) { 2002bc4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2002bc8: 80 a0 60 00 cmp %g1, 0 2002bcc: 22 80 00 6a be,a 2002d74 2002bd0: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED 2002bd4: c2 00 40 00 ld [ %g1 ], %g1 2002bd8: 80 a0 60 00 cmp %g1, 0 2002bdc: 02 80 00 65 be 2002d70 2002be0: 92 10 00 18 mov %i0, %o1 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 2002be4: 96 10 00 12 mov %l2, %o3 2002be8: 90 10 00 10 mov %l0, %o0 2002bec: 9f c0 40 00 call %g1 2002bf0: 94 10 00 19 mov %i1, %o2 if ( rc ) { 2002bf4: 80 a2 20 00 cmp %o0, 0 2002bf8: 02 80 00 07 be 2002c14 2002bfc: 80 8e 64 00 btst 0x400, %i1 rc = errno; 2002c00: a8 10 00 11 mov %l1, %l4 2002c04: 40 00 2f 7c call 200e9f4 <__errno> 2002c08: 01 00 00 00 nop goto done; 2002c0c: 10 80 00 31 b 2002cd0 2002c10: e6 02 00 00 ld [ %o0 ], %l3 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 2002c14: 02 80 00 49 be 2002d38 2002c18: 03 00 80 6c sethi %hi(0x201b000), %g1 rc = ftruncate( iop - rtems_libio_iops, 0 ); 2002c1c: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201b3e0 2002c20: 92 10 20 00 clr %o1 2002c24: 82 24 00 01 sub %l0, %g1, %g1 2002c28: 83 38 60 03 sra %g1, 3, %g1 2002c2c: 87 28 60 06 sll %g1, 6, %g3 2002c30: 85 28 60 03 sll %g1, 3, %g2 2002c34: 84 20 c0 02 sub %g3, %g2, %g2 2002c38: 87 28 a0 06 sll %g2, 6, %g3 2002c3c: 84 00 80 03 add %g2, %g3, %g2 2002c40: 84 00 80 01 add %g2, %g1, %g2 2002c44: 91 28 a0 0f sll %g2, 0xf, %o0 2002c48: 84 22 00 02 sub %o0, %g2, %g2 2002c4c: 94 10 20 00 clr %o2 2002c50: 91 28 a0 03 sll %g2, 3, %o0 2002c54: 40 00 1e 0d call 200a488 2002c58: 90 02 00 01 add %o0, %g1, %o0 if ( rc ) { 2002c5c: a6 92 20 00 orcc %o0, 0, %l3 2002c60: 02 80 00 36 be 2002d38 2002c64: 03 00 80 6c sethi %hi(0x201b000), %g1 if(errno) rc = errno; 2002c68: 40 00 2f 63 call 200e9f4 <__errno> <== NOT EXECUTED 2002c6c: 01 00 00 00 nop <== NOT EXECUTED 2002c70: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002c74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002c78: 02 80 00 06 be 2002c90 <== NOT EXECUTED 2002c7c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 2002c80: 40 00 2f 5d call 200e9f4 <__errno> <== NOT EXECUTED 2002c84: 01 00 00 00 nop <== NOT EXECUTED 2002c88: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED close( iop - rtems_libio_iops ); 2002c8c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 2002c90: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201b3e0 <== NOT EXECUTED 2002c94: a8 10 20 00 clr %l4 <== NOT EXECUTED 2002c98: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED 2002c9c: 83 3c 20 03 sra %l0, 3, %g1 <== NOT EXECUTED 2002ca0: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED 2002ca4: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED 2002ca8: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 2002cac: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED 2002cb0: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED 2002cb4: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 2002cb8: 91 28 a0 0f sll %g2, 0xf, %o0 <== NOT EXECUTED 2002cbc: 84 22 00 02 sub %o0, %g2, %g2 <== NOT EXECUTED 2002cc0: a0 10 20 00 clr %l0 <== NOT EXECUTED 2002cc4: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED 2002cc8: 40 00 1d 97 call 200a324 <== NOT EXECUTED 2002ccc: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 2002cd0: 80 a4 e0 00 cmp %l3, 0 2002cd4: 02 80 00 19 be 2002d38 2002cd8: 03 00 80 6c sethi %hi(0x201b000), %g1 if ( iop ) 2002cdc: 80 a4 20 00 cmp %l0, 0 2002ce0: 02 80 00 05 be 2002cf4 2002ce4: 80 a5 20 00 cmp %l4, 0 rtems_libio_free( iop ); 2002ce8: 40 00 1e a1 call 200a76c 2002cec: 90 10 00 10 mov %l0, %o0 if ( loc_to_free ) 2002cf0: 80 a5 20 00 cmp %l4, 0 2002cf4: 02 80 00 0c be 2002d24 2002cf8: 01 00 00 00 nop rtems_filesystem_freenode( loc_to_free ); 2002cfc: c2 05 20 0c ld [ %l4 + 0xc ], %g1 2002d00: 80 a0 60 00 cmp %g1, 0 2002d04: 02 80 00 08 be 2002d24 2002d08: 01 00 00 00 nop 2002d0c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002d10: 80 a0 60 00 cmp %g1, 0 2002d14: 02 80 00 04 be 2002d24 2002d18: 01 00 00 00 nop 2002d1c: 9f c0 40 00 call %g1 2002d20: 90 10 00 14 mov %l4, %o0 rtems_set_errno_and_return_minus_one( rc ); 2002d24: 40 00 2f 34 call 200e9f4 <__errno> 2002d28: b0 10 3f ff mov -1, %i0 2002d2c: e6 22 00 00 st %l3, [ %o0 ] 2002d30: 81 c7 e0 08 ret 2002d34: 81 e8 00 00 restore } return iop - rtems_libio_iops; 2002d38: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 2002d3c: a0 24 00 01 sub %l0, %g1, %l0 2002d40: a1 3c 20 03 sra %l0, 3, %l0 2002d44: 85 2c 20 06 sll %l0, 6, %g2 2002d48: 83 2c 20 03 sll %l0, 3, %g1 2002d4c: 82 20 80 01 sub %g2, %g1, %g1 2002d50: 85 28 60 06 sll %g1, 6, %g2 2002d54: 82 00 40 02 add %g1, %g2, %g1 2002d58: 82 00 40 10 add %g1, %l0, %g1 2002d5c: b1 28 60 0f sll %g1, 0xf, %i0 2002d60: b0 26 00 01 sub %i0, %g1, %i0 2002d64: b1 2e 20 03 sll %i0, 3, %i0 } 2002d68: 81 c7 e0 08 ret 2002d6c: 91 ee 00 10 restore %i0, %l0, %o0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2002d70: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED 2002d74: 10 bf ff da b 2002cdc <== NOT EXECUTED 2002d78: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED 02002a04 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 2002a04: 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) { 2002a08: 21 00 80 66 sethi %hi(0x2019800), %l0 2002a0c: 92 10 20 00 clr %o1 2002a10: 90 14 20 58 or %l0, 0x58, %o0 2002a14: 40 00 00 19 call 2002a78 2002a18: 94 10 20 00 clr %o2 2002a1c: 80 a2 3f ff cmp %o0, -1 2002a20: 02 80 00 14 be 2002a70 2002a24: 90 14 20 58 or %l0, 0x58, %o0 /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002a28: 92 10 20 01 mov 1, %o1 2002a2c: 40 00 00 13 call 2002a78 2002a30: 94 10 20 00 clr %o2 2002a34: 80 a2 3f ff cmp %o0, -1 2002a38: 32 80 00 05 bne,a 2002a4c 2002a3c: 90 14 20 58 or %l0, 0x58, %o0 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 2002a40: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED 2002a44: 10 80 00 09 b 2002a68 <== NOT EXECUTED 2002a48: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002a4c: 92 10 20 01 mov 1, %o1 2002a50: 40 00 00 0a call 2002a78 2002a54: 94 10 20 00 clr %o2 2002a58: 80 a2 3f ff cmp %o0, -1 2002a5c: 12 80 00 05 bne 2002a70 2002a60: 11 15 55 11 sethi %hi(0x55544400), %o0 rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 2002a64: 90 12 20 32 or %o0, 0x32, %o0 ! 55544432 <== NOT EXECUTED 2002a68: 40 00 0c 83 call 2005c74 <== NOT EXECUTED 2002a6c: 01 00 00 00 nop <== NOT EXECUTED 2002a70: 81 c7 e0 08 ret 2002a74: 81 e8 00 00 restore 020034fc : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 20034fc: 9d e3 bf a0 save %sp, -96, %sp int i; if (tty->termios.c_oflag & OPOST) { 2003500: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 2003504: 80 88 60 01 btst 1, %g1 2003508: 02 80 00 5a be 2003670 200350c: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 2003510: 84 0e 20 ff and %i0, 0xff, %g2 2003514: 80 a0 a0 09 cmp %g2, 9 2003518: 22 80 00 2b be,a 20035c4 200351c: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 2003520: 18 80 00 07 bgu 200353c 2003524: 80 a0 a0 0a cmp %g2, 0xa 2003528: 80 a0 a0 08 cmp %g2, 8 <== NOT EXECUTED 200352c: 12 80 00 3a bne 2003614 <== NOT EXECUTED 2003530: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 2003534: 10 80 00 33 b 2003600 <== NOT EXECUTED 2003538: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 200353c: 02 80 00 06 be 2003554 2003540: 80 a0 a0 0d cmp %g2, 0xd 2003544: 32 80 00 34 bne,a 2003614 2003548: 80 88 60 02 btst 2, %g1 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 200354c: 10 80 00 10 b 200358c <== NOT EXECUTED 2003550: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 2003554: 80 88 60 20 btst 0x20, %g1 2003558: 32 80 00 02 bne,a 2003560 200355c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 2003560: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 2003564: 80 88 60 04 btst 4, %g1 2003568: 02 80 00 43 be 2003674 200356c: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 2003570: 11 00 80 66 sethi %hi(0x2019800), %o0 2003574: 92 10 20 01 mov 1, %o1 2003578: 90 12 23 f0 or %o0, 0x3f0, %o0 200357c: 7f ff ff 94 call 20033cc 2003580: 94 10 00 19 mov %i1, %o2 c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 2003584: 10 80 00 3b b 2003670 2003588: c0 26 60 28 clr [ %i1 + 0x28 ] tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 200358c: 02 80 00 06 be 20035a4 <== NOT EXECUTED 2003590: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003594: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED 2003598: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200359c: 02 80 00 17 be 20035f8 <== NOT EXECUTED 20035a0: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 20035a4: 22 80 00 33 be,a 2003670 <== NOT EXECUTED 20035a8: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 20035ac: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 20035b0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20035b4: 02 80 00 2f be 2003670 <== NOT EXECUTED 20035b8: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; break; 20035bc: 10 80 00 2d b 2003670 <== NOT EXECUTED 20035c0: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20035c4: 07 00 00 06 sethi %hi(0x1800), %g3 20035c8: 82 08 40 03 and %g1, %g3, %g1 20035cc: 80 a0 40 03 cmp %g1, %g3 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 20035d0: 82 08 a0 07 and %g2, 7, %g1 20035d4: 92 10 20 08 mov 8, %o1 20035d8: 92 22 40 01 sub %o1, %g1, %o1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20035dc: 12 80 00 24 bne 200366c 20035e0: 82 02 40 02 add %o1, %g2, %g1 tty->column += i; 20035e4: c2 26 60 28 st %g1, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 20035e8: 94 10 00 19 mov %i1, %o2 20035ec: 11 00 80 66 sethi %hi(0x2019800), %o0 20035f0: 7f ff ff 77 call 20033cc 20035f4: 90 12 23 f8 or %o0, 0x3f8, %o0 ! 2019bf8 return; 20035f8: 81 c7 e0 08 ret 20035fc: 81 e8 00 00 restore } tty->column += i; break; case '\b': if (tty->column > 0) 2003600: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003604: 04 80 00 1b ble 2003670 <== NOT EXECUTED 2003608: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); if (!iscntrl(c)) tty->column++; 200360c: 10 80 00 19 b 2003670 <== NOT EXECUTED 2003610: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 2003614: 02 80 00 0d be 2003648 2003618: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 c = toupper(c); 200361c: 03 00 80 6b sethi %hi(0x201ac00), %g1 <== NOT EXECUTED 2003620: c2 00 60 64 ld [ %g1 + 0x64 ], %g1 ! 201ac64 <__ctype_ptr__> <== NOT EXECUTED 2003624: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 2003628: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 200362c: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED 2003630: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2003634: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2003638: 22 80 00 02 be,a 2003640 <== NOT EXECUTED 200363c: b0 06 3f e0 add %i0, -32, %i0 <== NOT EXECUTED 2003640: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] <== NOT EXECUTED if (!iscntrl(c)) 2003644: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 <== NOT EXECUTED 2003648: 05 00 80 6b sethi %hi(0x201ac00), %g2 200364c: c4 00 a0 64 ld [ %g2 + 0x64 ], %g2 ! 201ac64 <__ctype_ptr__> 2003650: 82 00 80 01 add %g2, %g1, %g1 2003654: c2 08 60 01 ldub [ %g1 + 1 ], %g1 2003658: 80 88 60 20 btst 0x20, %g1 200365c: 12 80 00 06 bne 2003674 2003660: 94 10 00 19 mov %i1, %o2 tty->column++; 2003664: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 2003668: 82 00 60 01 inc %g1 200366c: c2 26 60 28 st %g1, [ %i1 + 0x28 ] break; } } rtems_termios_puts (&c, 1, tty); 2003670: 94 10 00 19 mov %i1, %o2 2003674: 90 07 a0 44 add %fp, 0x44, %o0 2003678: 7f ff ff 55 call 20033cc 200367c: 92 10 20 01 mov 1, %o1 2003680: 81 c7 e0 08 ret 2003684: 81 e8 00 00 restore 0200dea4 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 200dea4: 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) 200dea8: 23 00 80 68 sethi %hi(0x201a000), %l1 200deac: a0 07 bf dc add %fp, -36, %l0 200deb0: 92 10 20 03 mov 3, %o1 200deb4: 90 14 63 00 or %l1, 0x300, %o0 200deb8: 94 10 20 07 mov 7, %o2 200debc: 96 10 00 10 mov %l0, %o3 200dec0: 7f ff d0 a0 call 2002140 200dec4: 98 10 20 01 mov 1, %o4 200dec8: 80 a2 20 00 cmp %o0, 0 200decc: 02 80 00 10 be 200df0c 200ded0: c2 07 bf e8 ld [ %fp + -24 ], %g1 != 0) { if (errno != ENOENT) 200ded4: 40 00 02 c8 call 200e9f4 <__errno> 200ded8: 01 00 00 00 nop 200dedc: c2 02 00 00 ld [ %o0 ], %g1 200dee0: 80 a0 60 02 cmp %g1, 2 200dee4: 32 80 00 59 bne,a 200e048 200dee8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 200deec: 90 14 63 00 or %l1, 0x300, %o0 200def0: 7f ff d1 29 call 2002394 200def4: 92 10 23 ff mov 0x3ff, %o1 200def8: 80 a2 20 00 cmp %o0, 0 200defc: 02 80 00 0e be 200df34 200df00: 03 00 80 6c sethi %hi(0x201b000), %g1 } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 200df04: 81 c7 e0 08 ret <== NOT EXECUTED 200df08: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 200df0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200df10: 22 80 00 09 be,a 200df34 <== NOT EXECUTED 200df14: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200df18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201b01c <== NOT EXECUTED 200df1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200df20: 22 80 00 05 be,a 200df34 <== NOT EXECUTED 200df24: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200df28: 9f c0 40 00 call %g1 <== NOT EXECUTED 200df2c: 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 ++); 200df30: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200df34: c4 10 62 86 lduh [ %g1 + 0x286 ], %g2 ! 201b286 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df38: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df3c: 95 28 a0 10 sll %g2, 0x10, %o2 200df40: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df44: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df48: c4 30 62 86 sth %g2, [ %g1 + 0x286 ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df4c: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 200df50: 03 00 00 19 sethi %hi(0x6400), %g1 200df54: 84 10 a1 70 or %g2, 0x170, %g2 200df58: 82 10 62 6f or %g1, 0x26f, %g1 200df5c: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df60: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df64: c4 3f bf f0 std %g2, [ %fp + -16 ] 200df68: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df6c: 90 07 bf fa add %fp, -6, %o0 200df70: 13 00 80 68 sethi %hi(0x201a000), %o1 200df74: 40 00 05 8b call 200f5a0 200df78: 92 12 63 08 or %o1, 0x308, %o1 ! 201a308 <__FUNCTION__.5923+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 200df7c: 90 10 00 10 mov %l0, %o0 200df80: 40 00 00 4b call 200e0ac 200df84: 92 10 21 80 mov 0x180, %o1 200df88: 80 a2 20 00 cmp %o0, 0 200df8c: 02 80 00 05 be 200dfa0 200df90: 90 10 00 10 mov %l0, %o0 if (errno != EEXIST){ 200df94: 40 00 02 98 call 200e9f4 <__errno> <== NOT EXECUTED 200df98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200df9c: 30 80 00 2b b,a 200e048 <== NOT EXECUTED 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); 200dfa0: 7f ff d2 b6 call 2002a78 200dfa4: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 200dfa8: 80 a2 20 00 cmp %o0, 0 200dfac: 16 80 00 07 bge 200dfc8 200dfb0: d0 26 00 00 st %o0, [ %i0 ] err = errno; 200dfb4: 40 00 02 90 call 200e9f4 <__errno> 200dfb8: 01 00 00 00 nop 200dfbc: 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); 200dfc0: 10 80 00 1d b 200e034 200dfc4: 90 10 00 10 mov %l0, %o0 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 200dfc8: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 200dfcc: c4 00 62 b4 ld [ %g1 + 0x2b4 ], %g2 ! 201aab4 <== NOT EXECUTED 200dfd0: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 200dfd4: 1a 80 00 08 bcc 200dff4 <== NOT EXECUTED 200dfd8: 82 10 20 00 clr %g1 <== NOT EXECUTED 200dfdc: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200dfe0: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201b3e0 <== NOT EXECUTED 200dfe4: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 200dfe8: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 200dfec: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 200dff0: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200dff4: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200dff8: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200dffc: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200e000: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200e004: 7f ff d2 9d call 2002a78 <== NOT EXECUTED 200e008: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 200e00c: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 200e010: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e014: 16 80 00 07 bge 200e030 <== NOT EXECUTED 200e018: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; 200e01c: 40 00 02 76 call 200e9f4 <__errno> <== NOT EXECUTED 200e020: 01 00 00 00 nop <== NOT EXECUTED 200e024: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 200e028: 7f ff f0 bf call 200a324 <== NOT EXECUTED 200e02c: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED } unlink(fifopath); 200e030: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 200e034: 40 00 00 28 call 200e0d4 200e038: b0 10 3f ff mov -1, %i0 } rtems_set_errno_and_return_minus_one(err); 200e03c: 40 00 02 6e call 200e9f4 <__errno> 200e040: 01 00 00 00 nop 200e044: e2 22 00 00 st %l1, [ %o0 ] } 200e048: 81 c7 e0 08 ret 200e04c: 81 e8 00 00 restore 0200ca44 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 200ca44: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 200ca48: 40 00 03 54 call 200d798 <== NOT EXECUTED 200ca4c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200ca50: 40 00 03 52 call 200d798 <== NOT EXECUTED 200ca54: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200ca58: 7f ff e2 b0 call 2005518 <== NOT EXECUTED 200ca5c: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200ca60: 7f ff f6 60 call 200a3e0 <== NOT EXECUTED 200ca64: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED free(pipe); 200ca68: 7f ff f6 5e call 200a3e0 <== NOT EXECUTED 200ca6c: 81 e8 00 00 restore <== NOT EXECUTED 200ca70: 01 00 00 00 nop 0200c668 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200c668: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 200c66c: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200c670: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 200c674: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 200c678: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200c67c: 12 80 00 12 bne 200c6c4 <== NOT EXECUTED 200c680: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 200c684: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200c688: 02 80 00 0f be 200c6c4 <== NOT EXECUTED 200c68c: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 200c690: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200c694: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c698: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c69c: 7f ff e3 cd call 20055d0 <== NOT EXECUTED 200c6a0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200c6a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c6a8: 12 80 00 07 bne 200c6c4 <== NOT EXECUTED 200c6ac: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200c6b0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c6b4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200c6b8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c6bc: 7f ff e4 0c call 20056ec <== NOT EXECUTED 200c6c0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 200c6c4: 81 c7 e0 08 ret <== NOT EXECUTED 200c6c8: 81 e8 00 00 restore <== NOT EXECUTED 0200c5f4 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 200c5f4: 81 c3 e0 08 retl <== NOT EXECUTED 200c5f8: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 0200c6cc : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200c6cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200c6d0: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200c6d4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200c6d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c6dc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c6e0: 7f ff e3 bc call 20055d0 <== NOT EXECUTED 200c6e4: b0 10 20 00 clr %i0 <== NOT EXECUTED 200c6e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c6ec: 02 80 00 54 be 200c83c <== NOT EXECUTED 200c6f0: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 200c6f4: 81 c7 e0 08 ret <== NOT EXECUTED 200c6f8: 91 e8 3f fc restore %g0, -4, %o0 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) 200c6fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c700: 02 80 00 53 be 200c84c <== NOT EXECUTED 200c704: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 200c708: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200c70c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200c710: 22 80 00 04 be,a 200c720 <== NOT EXECUTED 200c714: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200c718: 10 80 00 4d b 200c84c <== NOT EXECUTED 200c71c: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); 200c720: 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 ++; 200c724: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c728: 7f ff e3 f1 call 20056ec <== NOT EXECUTED 200c72c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200c730: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200c734: 40 00 04 4a call 200d85c <== NOT EXECUTED 200c738: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c73c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c740: 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)) 200c744: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c748: 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)) 200c74c: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c750: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c754: 7f ff e3 9f call 20055d0 <== NOT EXECUTED 200c758: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200c75c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c760: 22 80 00 04 be,a 200c770 <== NOT EXECUTED 200c764: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200c768: 10 80 00 3b b 200c854 <== NOT EXECUTED 200c76c: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 200c770: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 200c774: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200c778: 12 80 00 35 bne 200c84c <== NOT EXECUTED 200c77c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 200c780: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200c784: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200c788: 22 bf ff dd be,a 200c6fc <== NOT EXECUTED 200c78c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 200c790: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED 200c794: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 200c798: 38 80 00 02 bgu,a 200c7a0 <== NOT EXECUTED 200c79c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 200c7a0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200c7a4: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200c7a8: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 200c7ac: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200c7b0: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200c7b4: 04 80 00 0a ble 200c7dc <== NOT EXECUTED 200c7b8: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 200c7bc: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200c7c0: 40 00 0a c8 call 200f2e0 <== NOT EXECUTED 200c7c4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 200c7c8: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED 200c7cc: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 200c7d0: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200c7d4: 10 80 00 04 b 200c7e4 <== NOT EXECUTED 200c7d8: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 200c7dc: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200c7e0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200c7e4: 40 00 0a bf call 200f2e0 <== NOT EXECUTED 200c7e8: 01 00 00 00 nop <== NOT EXECUTED pipe->Start += chunk; 200c7ec: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200c7f0: 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; 200c7f4: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200c7f8: 40 00 2e 53 call 2018144 <.urem> <== NOT EXECUTED 200c7fc: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200c800: 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; 200c804: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200c808: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 200c80c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c810: 12 80 00 03 bne 200c81c <== NOT EXECUTED 200c814: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 200c818: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 200c81c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200c820: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c824: 22 80 00 06 be,a 200c83c <== NOT EXECUTED 200c828: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200c82c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200c830: 40 00 03 f4 call 200d800 <== NOT EXECUTED 200c834: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 200c838: 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) { 200c83c: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200c840: 2a bf ff d1 bcs,a 200c784 <== NOT EXECUTED 200c844: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200c848: a2 10 20 00 clr %l1 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 200c84c: 7f ff e3 a8 call 20056ec <== NOT EXECUTED 200c850: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 200c854: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200c858: 24 80 00 02 ble,a 200c860 <== NOT EXECUTED 200c85c: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return read; return ret; } 200c860: 81 c7 e0 08 ret <== NOT EXECUTED 200c864: 81 e8 00 00 restore <== NOT EXECUTED 0200ca74 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 200ca74: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 200ca78: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 200ca7c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ca80: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200ca84: 7f ff e2 d3 call 20055d0 <== NOT EXECUTED 200ca88: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 200ca8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ca90: 12 80 00 17 bne 200caec <== NOT EXECUTED 200ca94: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 200ca98: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 200ca9c: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED 200caa0: 02 80 00 05 be 200cab4 <== NOT EXECUTED 200caa4: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED pipe->Readers --; 200caa8: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200caac: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200cab0: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 200cab4: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED 200cab8: 02 80 00 06 be 200cad0 <== NOT EXECUTED 200cabc: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED pipe->Writers --; 200cac0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200cac4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200cac8: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 200cacc: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cad0: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 201b280 <== NOT EXECUTED 200cad4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cad8: 7f ff e2 be call 20055d0 <== NOT EXECUTED 200cadc: 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) 200cae0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cae4: 02 80 00 04 be 200caf4 <== NOT EXECUTED 200cae8: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); 200caec: 7f ff e4 62 call 2005c74 <== NOT EXECUTED 200caf0: 01 00 00 00 nop <== NOT EXECUTED PIPE_UNLOCK(pipe); 200caf4: 7f ff e2 fe call 20056ec <== NOT EXECUTED 200caf8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 200cafc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200cb00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cb04: 12 80 00 0a bne 200cb2c <== NOT EXECUTED 200cb08: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 200cb0c: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 200cb10: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200cb14: 12 80 00 06 bne 200cb2c <== NOT EXECUTED 200cb18: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); 200cb1c: 7f ff ff ca call 200ca44 <== NOT EXECUTED 200cb20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 200cb24: 10 80 00 12 b 200cb6c <== NOT EXECUTED 200cb28: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 200cb2c: 02 80 00 06 be 200cb44 <== NOT EXECUTED 200cb30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cb34: 12 80 00 05 bne 200cb48 <== NOT EXECUTED 200cb38: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 200cb3c: 10 80 00 0a b 200cb64 <== NOT EXECUTED 200cb40: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 200cb44: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED 200cb48: 02 80 00 0a be 200cb70 <== NOT EXECUTED 200cb4c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cb50: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200cb54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cb58: 12 80 00 06 bne 200cb70 <== NOT EXECUTED 200cb5c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200cb60: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200cb64: 40 00 03 27 call 200d800 <== NOT EXECUTED 200cb68: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 200cb6c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cb70: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 201b280 <== NOT EXECUTED 200cb74: 7f ff e2 de call 20056ec <== NOT EXECUTED 200cb78: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200cb7c: 81 c7 e0 08 ret <== NOT EXECUTED 200cb80: 81 e8 00 00 restore <== NOT EXECUTED 0200c868 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 200c868: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 200c86c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 200c870: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200c874: 02 80 00 72 be 200ca3c <== NOT EXECUTED 200c878: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 200c87c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200c880: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c884: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c888: 7f ff e3 52 call 20055d0 <== NOT EXECUTED 200c88c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200c890: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c894: 12 80 00 6a bne 200ca3c <== NOT EXECUTED 200c898: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 200c89c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200c8a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c8a4: 02 80 00 5a be 200ca0c <== NOT EXECUTED 200c8a8: b0 10 20 00 clr %i0 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 200c8ac: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 200c8b0: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 200c8b4: 08 80 00 04 bleu 200c8c4 <== NOT EXECUTED 200c8b8: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED 200c8bc: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED 200c8c0: 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); 200c8c4: 10 80 00 4e b 200c9fc <== NOT EXECUTED 200c8c8: 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) { if (LIBIO_NODELAY(iop)) { 200c8cc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200c8d0: 22 80 00 04 be,a 200c8e0 <== NOT EXECUTED 200c8d4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200c8d8: 10 80 00 4d b 200ca0c <== NOT EXECUTED 200c8dc: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); 200c8e0: 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 ++; 200c8e4: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c8e8: 7f ff e3 81 call 20056ec <== NOT EXECUTED 200c8ec: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200c8f0: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200c8f4: 40 00 03 da call 200d85c <== NOT EXECUTED 200c8f8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c8fc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c900: 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)) 200c904: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c908: 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)) 200c90c: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c910: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c914: 7f ff e3 2f call 20055d0 <== NOT EXECUTED 200c918: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200c91c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c920: 22 80 00 04 be,a 200c930 <== NOT EXECUTED 200c924: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200c928: 10 80 00 42 b 200ca30 <== NOT EXECUTED 200c92c: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) 200c930: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 200c934: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200c938: 12 80 00 35 bne 200ca0c <== NOT EXECUTED 200c93c: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 200c940: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200c944: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c948: 32 80 00 04 bne,a 200c958 <== NOT EXECUTED 200c94c: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200c950: 10 80 00 2f b 200ca0c <== NOT EXECUTED 200c954: a2 10 3f e0 mov -32, %l1 <== 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) { 200c958: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200c95c: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED 200c960: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED 200c964: 2a bf ff da bcs,a 200c8cc <== NOT EXECUTED 200c968: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 200c96c: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED 200c970: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 200c974: 38 80 00 02 bgu,a 200c97c <== NOT EXECUTED 200c978: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 200c97c: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 200c980: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 200c984: 40 00 2d f0 call 2018144 <.urem> <== NOT EXECUTED 200c988: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200c98c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 200c990: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200c994: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200c998: 04 80 00 0a ble 200c9c0 <== NOT EXECUTED 200c99c: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 200c9a0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 200c9a4: 40 00 0a 4f call 200f2e0 <== NOT EXECUTED 200c9a8: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 200c9ac: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED 200c9b0: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 200c9b4: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200c9b8: 10 80 00 04 b 200c9c8 <== NOT EXECUTED 200c9bc: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 200c9c0: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200c9c4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200c9c8: 40 00 0a 46 call 200f2e0 <== NOT EXECUTED 200c9cc: 01 00 00 00 nop <== NOT EXECUTED pipe->Length += chunk; 200c9d0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200c9d4: 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; 200c9d8: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200c9dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c9e0: 02 80 00 05 be 200c9f4 <== NOT EXECUTED 200c9e4: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200c9e8: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200c9ec: 40 00 03 85 call 200d800 <== NOT EXECUTED 200c9f0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 200c9f4: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 200c9f8: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 200c9fc: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200ca00: 2a bf ff d6 bcs,a 200c958 <== NOT EXECUTED 200ca04: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200ca08: a2 10 20 00 clr %l1 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 200ca0c: 7f ff e3 38 call 20056ec <== NOT EXECUTED 200ca10: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 200ca14: 80 a4 7f e0 cmp %l1, -32 <== NOT EXECUTED 200ca18: 12 80 00 07 bne 200ca34 <== NOT EXECUTED 200ca1c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED kill(getpid(), SIGPIPE); 200ca20: 40 00 02 20 call 200d2a0 <== NOT EXECUTED 200ca24: 01 00 00 00 nop <== NOT EXECUTED 200ca28: 40 00 02 9a call 200d490 <== NOT EXECUTED 200ca2c: 92 10 20 0d mov 0xd, %o1 ! d <== NOT EXECUTED #endif if (written > 0) 200ca30: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200ca34: 24 80 00 02 ble,a 200ca3c <== NOT EXECUTED 200ca38: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return written; return ret; } 200ca3c: 81 c7 e0 08 ret <== NOT EXECUTED 200ca40: 81 e8 00 00 restore <== NOT EXECUTED 02018e3c : ssize_t read( int fd, void *buffer, size_t count ) { 2018e3c: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2018e40: 03 00 80 6a sethi %hi(0x201a800), %g1 2018e44: c2 00 62 b4 ld [ %g1 + 0x2b4 ], %g1 ! 201aab4 ssize_t read( int fd, void *buffer, size_t count ) { 2018e48: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2018e4c: 80 a6 00 01 cmp %i0, %g1 2018e50: 1a 80 00 0c bcc 2018e80 2018e54: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 2018e58: 03 00 80 6c sethi %hi(0x201b000), %g1 2018e5c: e0 00 63 e0 ld [ %g1 + 0x3e0 ], %l0 ! 201b3e0 2018e60: 83 2e 20 06 sll %i0, 6, %g1 2018e64: b1 2e 20 03 sll %i0, 3, %i0 2018e68: b0 06 00 01 add %i0, %g1, %i0 2018e6c: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 2018e70: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2018e74: 80 88 61 00 btst 0x100, %g1 2018e78: 12 80 00 06 bne 2018e90 2018e7c: 80 a6 60 00 cmp %i1, 0 2018e80: 7f ff d6 dd call 200e9f4 <__errno> 2018e84: 01 00 00 00 nop 2018e88: 10 80 00 14 b 2018ed8 2018e8c: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_buffer( buffer ); 2018e90: 02 80 00 07 be 2018eac 2018e94: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2018e98: 02 80 00 1c be 2018f08 2018e9c: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2018ea0: 80 88 60 02 btst 2, %g1 2018ea4: 32 80 00 06 bne,a 2018ebc 2018ea8: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2018eac: 7f ff d6 d2 call 200e9f4 <__errno> <== NOT EXECUTED 2018eb0: 01 00 00 00 nop <== NOT EXECUTED 2018eb4: 10 80 00 09 b 2018ed8 <== NOT EXECUTED 2018eb8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 2018ebc: c2 00 60 08 ld [ %g1 + 8 ], %g1 2018ec0: 80 a0 60 00 cmp %g1, 0 2018ec4: 12 80 00 08 bne 2018ee4 2018ec8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2018ecc: 7f ff d6 ca call 200e9f4 <__errno> <== NOT EXECUTED 2018ed0: 01 00 00 00 nop <== NOT EXECUTED 2018ed4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2018ed8: c2 22 00 00 st %g1, [ %o0 ] 2018edc: 10 80 00 0b b 2018f08 2018ee0: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->read_h)( iop, buffer, count ); 2018ee4: 9f c0 40 00 call %g1 2018ee8: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2018eec: 80 a2 20 00 cmp %o0, 0 2018ef0: 04 80 00 06 ble 2018f08 2018ef4: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 2018ef8: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2018efc: 86 83 40 08 addcc %o5, %o0, %g3 2018f00: 84 43 00 02 addx %o4, %g2, %g2 2018f04: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 2018f08: 81 c7 e0 08 ret 2018f0c: 91 e8 00 08 restore %g0, %o0, %o0 02026cbc : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 2026cbc: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 2026cc0: 80 a6 60 00 cmp %i1, 0 2026cc4: 12 80 00 06 bne 2026cdc 2026cc8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 2026ccc: 40 00 5f 03 call 203e8d8 <__errno> <== NOT EXECUTED 2026cd0: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026cd4: 10 80 00 32 b 2026d9c <== NOT EXECUTED 2026cd8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 2026cdc: 40 00 7a 3e call 20455d4 2026ce0: 90 10 00 18 mov %i0, %o0 2026ce4: a0 07 bf ec add %fp, -20, %l0 2026ce8: 92 10 00 08 mov %o0, %o1 2026cec: 94 10 20 00 clr %o2 2026cf0: 90 10 00 18 mov %i0, %o0 2026cf4: 96 10 00 10 mov %l0, %o3 2026cf8: 98 10 20 00 clr %o4 2026cfc: 7f ff 7b 86 call 2005b14 2026d00: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 2026d04: 80 a2 20 00 cmp %o0, 0 2026d08: 12 80 00 26 bne 2026da0 2026d0c: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 2026d10: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2026d14: 80 a0 60 00 cmp %g1, 0 2026d18: 22 80 00 19 be,a 2026d7c 2026d1c: 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 ){ 2026d20: 9f c0 40 00 call %g1 2026d24: 90 10 00 10 mov %l0, %o0 2026d28: 80 a2 20 04 cmp %o0, 4 2026d2c: 02 80 00 0f be 2026d68 2026d30: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_freenode( &loc ); 2026d34: 80 a0 a0 00 cmp %g2, 0 2026d38: 02 80 00 08 be 2026d58 2026d3c: 01 00 00 00 nop 2026d40: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 2026d44: 80 a0 60 00 cmp %g1, 0 2026d48: 02 80 00 04 be 2026d58 2026d4c: 01 00 00 00 nop 2026d50: 9f c0 40 00 call %g1 2026d54: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 2026d58: 40 00 5e e0 call 203e8d8 <__errno> 2026d5c: b0 10 3f ff mov -1, %i0 2026d60: 10 80 00 0f b 2026d9c 2026d64: 82 10 20 16 mov 0x16, %g1 } if ( !loc.ops->readlink_h ){ 2026d68: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 2026d6c: 80 a0 60 00 cmp %g1, 0 2026d70: 12 80 00 0e bne 2026da8 2026d74: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); 2026d78: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026d7c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026d80: 02 80 00 04 be 2026d90 <== NOT EXECUTED 2026d84: 01 00 00 00 nop <== NOT EXECUTED 2026d88: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026d8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026d90: 40 00 5e d2 call 203e8d8 <__errno> <== NOT EXECUTED 2026d94: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026d98: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026d9c: c2 22 00 00 st %g1, [ %o0 ] 2026da0: 81 c7 e0 08 ret 2026da4: 81 e8 00 00 restore } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 2026da8: 94 10 00 1a mov %i2, %o2 2026dac: 9f c0 40 00 call %g1 2026db0: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2026db4: c2 07 bf f8 ld [ %fp + -8 ], %g1 2026db8: 80 a0 60 00 cmp %g1, 0 2026dbc: 02 bf ff f9 be 2026da0 2026dc0: b0 10 00 08 mov %o0, %i0 2026dc4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026dc8: 80 a0 60 00 cmp %g1, 0 2026dcc: 02 80 00 04 be 2026ddc 2026dd0: 01 00 00 00 nop 2026dd4: 9f c0 40 00 call %g1 2026dd8: 90 10 00 10 mov %l0, %o0 return result; } 2026ddc: 81 c7 e0 08 ret 2026de0: 81 e8 00 00 restore 020043b0 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 20043b0: 9d e3 bf a0 save %sp, -96, %sp int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 20043b4: 03 00 80 7d sethi %hi(0x201f400), %g1 20043b8: c2 00 62 64 ld [ %g1 + 0x264 ], %g1 ! 201f664 20043bc: 80 a6 00 01 cmp %i0, %g1 20043c0: 1a 80 00 0c bcc 20043f0 20043c4: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 20043c8: 03 00 80 81 sethi %hi(0x2020400), %g1 20043cc: e4 00 63 64 ld [ %g1 + 0x364 ], %l2 ! 2020764 20043d0: 83 2e 20 06 sll %i0, 6, %g1 20043d4: b1 2e 20 03 sll %i0, 3, %i0 20043d8: b0 06 00 01 add %i0, %g1, %i0 20043dc: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 20043e0: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 20043e4: 80 88 61 00 btst 0x100, %g1 20043e8: 12 80 00 06 bne 2004400 20043ec: 80 88 60 02 btst 2, %g1 20043f0: 40 00 33 55 call 2011144 <__errno> <== NOT EXECUTED 20043f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20043f8: 10 80 00 24 b 2004488 <== NOT EXECUTED 20043fc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2004400: 02 80 00 1f be 200447c 2004404: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 2004408: 02 80 00 1d be 200447c 200440c: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 2004410: 04 80 00 1b ble 200447c 2004414: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2004418: 14 80 00 19 bg 200447c 200441c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 2004420: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2004424: c2 00 60 08 ld [ %g1 + 8 ], %g1 2004428: 80 a0 60 00 cmp %g1, 0 200442c: 12 80 00 06 bne 2004444 2004430: 86 10 20 00 clr %g3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2004434: 40 00 33 44 call 2011144 <__errno> <== NOT EXECUTED 2004438: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200443c: 10 80 00 13 b 2004488 <== NOT EXECUTED 2004440: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2004444: 82 10 00 19 mov %i1, %g1 2004448: 84 10 20 00 clr %g2 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) 200444c: c8 00 40 00 ld [ %g1 ], %g4 2004450: 80 a1 20 00 cmp %g4, 0 2004454: 02 80 00 0a be 200447c 2004458: 86 00 e0 01 inc %g3 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 200445c: c8 00 60 04 ld [ %g1 + 4 ], %g4 2004460: 80 a1 20 00 cmp %g4, 0 2004464: 02 80 00 06 be 200447c 2004468: 82 00 60 08 add %g1, 8, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 200446c: 88 00 80 04 add %g2, %g4, %g4 if ( total < old ) 2004470: 80 a1 00 02 cmp %g4, %g2 2004474: 16 80 00 08 bge 2004494 2004478: 80 a0 c0 1a cmp %g3, %i2 rtems_set_errno_and_return_minus_one( EINVAL ); 200447c: 40 00 33 32 call 2011144 <__errno> 2004480: b0 10 3f ff mov -1, %i0 2004484: 82 10 20 16 mov 0x16, %g1 2004488: c2 22 00 00 st %g1, [ %o0 ] 200448c: 81 c7 e0 08 ret 2004490: 81 e8 00 00 restore * 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++ ) { 2004494: 06 bf ff ee bl 200444c 2004498: 84 10 00 04 mov %g4, %g2 200449c: a6 10 20 00 clr %l3 20044a0: b0 10 20 00 clr %i0 /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 20044a4: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 20044a8: d2 06 40 00 ld [ %i1 ], %o1 20044ac: c2 00 60 08 ld [ %g1 + 8 ], %g1 20044b0: d4 06 60 04 ld [ %i1 + 4 ], %o2 20044b4: 9f c0 40 00 call %g1 20044b8: 90 10 00 12 mov %l2, %o0 if ( bytes < 0 ) 20044bc: 80 a2 20 00 cmp %o0, 0 20044c0: 16 80 00 04 bge 20044d0 20044c4: 01 00 00 00 nop 20044c8: 81 c7 e0 08 ret <== NOT EXECUTED 20044cc: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 20044d0: 02 80 00 07 be 20044ec 20044d4: a1 3a 20 1f sra %o0, 0x1f, %l0 iop->offset += bytes; 20044d8: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 20044dc: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 20044e0: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 20044e4: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 20044e8: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 20044ec: c2 06 60 04 ld [ %i1 + 4 ], %g1 20044f0: 80 a2 00 01 cmp %o0, %g1 20044f4: 12 bf ff e6 bne 200448c 20044f8: a6 04 e0 01 inc %l3 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 20044fc: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 2004500: 06 bf ff e9 bl 20044a4 <== NOT EXECUTED 2004504: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 2004508: 81 c7 e0 08 ret <== NOT EXECUTED 200450c: 81 e8 00 00 restore <== NOT EXECUTED 02018f94 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2018f94: 9d e3 bf 98 save %sp, -104, %sp 2018f98: 03 00 80 6c sethi %hi(0x201b000), %g1 2018f9c: 82 10 63 f0 or %g1, 0x3f0, %g1 ! 201b3f0 2018fa0: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2018fa4: 05 00 80 6d sethi %hi(0x201b400), %g2 2018fa8: c4 00 a3 50 ld [ %g2 + 0x350 ], %g2 ! 201b750 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2018fac: 86 00 e0 01 inc %g3 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 2018fb0: 80 a0 a0 03 cmp %g2, 3 2018fb4: 12 80 00 0c bne 2018fe4 2018fb8: c6 20 60 10 st %g3, [ %g1 + 0x10 ] if (_Thread_Dispatch_disable_level > 0) 2018fbc: 03 00 80 6d sethi %hi(0x201b400), %g1 2018fc0: c2 00 61 b0 ld [ %g1 + 0x1b0 ], %g1 ! 201b5b0 <_Thread_Dispatch_disable_level> 2018fc4: 80 a0 60 00 cmp %g1, 0 2018fc8: 32 80 00 13 bne,a 2019014 2018fcc: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; if (_ISR_Nest_level > 0) 2018fd0: 03 00 80 6d sethi %hi(0x201b400), %g1 2018fd4: c2 00 62 4c ld [ %g1 + 0x24c ], %g1 ! 201b64c <_ISR_Nest_level> 2018fd8: 80 a0 60 00 cmp %g1, 0 2018fdc: 32 80 00 0e bne,a 2019014 2018fe0: b0 10 20 00 clr %i0 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 2018fe4: 80 a6 20 00 cmp %i0, 0 2018fe8: 12 80 00 06 bne 2019000 2018fec: 80 a6 60 00 cmp %i1, 0 return malloc( size ); 2018ff0: 7f ff c6 5e call 200a968 2018ff4: 90 10 00 19 mov %i1, %o0 2018ff8: 81 c7 e0 08 ret 2018ffc: 91 e8 00 08 restore %g0, %o0, %o0 if ( !size ) { 2019000: 12 80 00 07 bne 201901c 2019004: 21 00 80 6a sethi %hi(0x201a800), %l0 free( ptr ); 2019008: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201900c: 7f ff c4 f5 call 200a3e0 <== NOT EXECUTED 2019010: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 2019014: 81 c7 e0 08 ret <== NOT EXECUTED 2019018: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 201901c: d0 04 22 c0 ld [ %l0 + 0x2c0 ], %o0 2019020: 92 10 00 18 mov %i0, %o1 2019024: 40 00 00 60 call 20191a4 <_Protected_heap_Get_block_size> 2019028: 94 07 bf fc add %fp, -4, %o2 201902c: 80 8a 20 ff btst 0xff, %o0 2019030: 12 80 00 08 bne 2019050 2019034: d0 04 22 c0 ld [ %l0 + 0x2c0 ], %o0 errno = EINVAL; 2019038: 7f ff d6 6f call 200e9f4 <__errno> 201903c: b0 10 20 00 clr %i0 2019040: 82 10 20 16 mov 0x16, %g1 2019044: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 2019048: 81 c7 e0 08 ret 201904c: 81 e8 00 00 restore #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS) if (rtems_malloc_boundary_helpers) resize += (*rtems_malloc_boundary_helpers->overhead)(); #endif if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) { 2019050: 92 10 00 18 mov %i0, %o1 2019054: 40 00 00 61 call 20191d8 <_Protected_heap_Resize_block> 2019058: 94 10 00 19 mov %i1, %o2 201905c: 80 8a 20 ff btst 0xff, %o0 2019060: 12 80 00 1a bne 20190c8 2019064: 01 00 00 00 nop * There used to be a free on this error case but it is wrong to * free the memory per OpenGroup Single UNIX Specification V2 * and the C Standard. */ new_area = malloc( size ); 2019068: 7f ff c6 40 call 200a968 201906c: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2019070: 03 00 80 6c sethi %hi(0x201b000), %g1 2019074: 82 10 63 f0 or %g1, 0x3f0, %g1 ! 201b3f0 2019078: c4 00 60 04 ld [ %g1 + 4 ], %g2 * 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 ); 201907c: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2019080: 84 00 bf ff add %g2, -1, %g2 if ( !new_area ) { 2019084: 80 a2 20 00 cmp %o0, 0 2019088: 02 80 00 0f be 20190c4 201908c: c4 20 60 04 st %g2, [ %g1 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 2019090: c2 07 bf fc ld [ %fp + -4 ], %g1 2019094: 80 a6 40 01 cmp %i1, %g1 2019098: 08 80 00 03 bleu 20190a4 201909c: 94 10 00 19 mov %i1, %o2 20190a0: 94 10 00 01 mov %g1, %o2 20190a4: 92 10 00 18 mov %i0, %o1 20190a8: 7f ff d8 8e call 200f2e0 20190ac: 90 10 00 10 mov %l0, %o0 free( ptr ); 20190b0: 90 10 00 18 mov %i0, %o0 20190b4: 7f ff c4 cb call 200a3e0 20190b8: b0 10 00 10 mov %l0, %i0 return new_area; 20190bc: 81 c7 e0 08 ret 20190c0: 81 e8 00 00 restore 20190c4: b0 10 20 00 clr %i0 } 20190c8: 81 c7 e0 08 ret 20190cc: 81 e8 00 00 restore 02007080 : #include int rmdir( const char *pathname ) { 2007080: 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 ); 2007084: 7f ff fa 56 call 20059dc 2007088: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200708c: a6 92 20 00 orcc %o0, 0, %l3 2007090: 32 80 00 17 bne,a 20070ec 2007094: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 2007098: c2 4e 00 00 ldsb [ %i0 ], %g1 200709c: 80 a0 60 5c cmp %g1, 0x5c 20070a0: 02 80 00 06 be 20070b8 20070a4: 80 a0 60 2f cmp %g1, 0x2f 20070a8: 02 80 00 04 be 20070b8 20070ac: 80 a0 60 00 cmp %g1, 0 20070b0: 12 80 00 07 bne 20070cc <== NOT EXECUTED 20070b4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20070b8: 03 00 81 8f sethi %hi(0x2063c00), %g1 20070bc: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 ! 2063e94 20070c0: 90 07 bf ec add %fp, -20, %o0 20070c4: 10 80 00 05 b 20070d8 20070c8: 92 02 60 18 add %o1, 0x18, %o1 20070cc: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 <== NOT EXECUTED 20070d0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 20070d4: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 20070d8: 94 10 20 14 mov 0x14, %o2 20070dc: 40 00 ea d2 call 2041c24 20070e0: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 20070e4: 10 80 00 0b b 2007110 20070e8: 94 10 20 14 mov 0x14, %o2 parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 20070ec: 92 10 00 13 mov %l3, %o1 20070f0: 94 10 20 02 mov 2, %o2 20070f4: 96 07 bf ec add %fp, -20, %o3 20070f8: 7f ff fa 87 call 2005b14 20070fc: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 2007100: 80 a2 20 00 cmp %o0, 0 2007104: 12 80 00 89 bne 2007328 2007108: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200710c: 94 10 20 14 mov 0x14, %o2 2007110: a0 07 bf d8 add %fp, -40, %l0 2007114: a4 07 bf ec add %fp, -20, %l2 2007118: 90 10 00 10 mov %l0, %o0 200711c: 40 00 ea c2 call 2041c24 2007120: 92 10 00 12 mov %l2, %o1 name = pathname + parentpathlen; 2007124: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 2007128: 40 00 f9 2b call 20455d4 200712c: 90 10 00 18 mov %i0, %o0 2007130: 92 10 00 08 mov %o0, %o1 2007134: 7f ff fa 18 call 2005994 2007138: 90 10 00 18 mov %i0, %o0 200713c: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 2007140: 40 00 f9 25 call 20455d4 2007144: 90 10 00 18 mov %i0, %o0 2007148: 94 10 20 00 clr %o2 200714c: 92 10 00 08 mov %o0, %o1 2007150: 96 10 00 10 mov %l0, %o3 2007154: 90 10 00 18 mov %i0, %o0 2007158: 7f ff fa 33 call 2005a24 200715c: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 2007160: 80 a2 20 00 cmp %o0, 0 2007164: 02 80 00 11 be 20071a8 2007168: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 200716c: 80 8c 60 ff btst 0xff, %l1 2007170: 02 80 00 0c be 20071a0 2007174: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 2007178: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200717c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007180: 02 80 00 6b be 200732c <== NOT EXECUTED 2007184: 01 00 00 00 nop <== NOT EXECUTED 2007188: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200718c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007190: 02 80 00 04 be 20071a0 <== NOT EXECUTED 2007194: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2007198: 9f c0 40 00 call %g1 <== NOT EXECUTED 200719c: 01 00 00 00 nop <== NOT EXECUTED 20071a0: 81 c7 e0 08 ret 20071a4: 81 e8 00 00 restore /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 20071a8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20071ac: 80 a0 60 00 cmp %g1, 0 20071b0: 12 80 00 04 bne 20071c0 20071b4: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 20071b8: 10 80 00 2b b 2007264 <== NOT EXECUTED 20071bc: 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 ){ 20071c0: 9f c0 40 00 call %g1 20071c4: 90 10 00 10 mov %l0, %o0 20071c8: 80 a2 20 01 cmp %o0, 1 20071cc: 02 80 00 1d be 2007240 20071d0: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &loc ); 20071d4: c2 07 bf e4 ld [ %fp + -28 ], %g1 20071d8: 80 a0 60 00 cmp %g1, 0 20071dc: 02 80 00 09 be 2007200 20071e0: 80 8c 60 ff btst 0xff, %l1 20071e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20071e8: 80 a0 60 00 cmp %g1, 0 20071ec: 02 80 00 05 be 2007200 20071f0: 80 8c 60 ff btst 0xff, %l1 20071f4: 9f c0 40 00 call %g1 20071f8: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 20071fc: 80 8c 60 ff btst 0xff, %l1 2007200: 02 80 00 0c be 2007230 2007204: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 2007208: c2 07 bf f8 ld [ %fp + -8 ], %g1 200720c: 80 a0 60 00 cmp %g1, 0 2007210: 02 80 00 08 be 2007230 2007214: 01 00 00 00 nop 2007218: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200721c: 80 a0 60 00 cmp %g1, 0 2007220: 02 80 00 04 be 2007230 2007224: 01 00 00 00 nop 2007228: 9f c0 40 00 call %g1 200722c: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2007230: 40 00 dd aa call 203e8d8 <__errno> 2007234: b0 10 3f ff mov -1, %i0 2007238: 10 80 00 1f b 20072b4 200723c: 82 10 20 14 mov 0x14, %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 2007240: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2007244: 80 a0 60 00 cmp %g1, 0 2007248: 12 80 00 1e bne 20072c0 200724c: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 2007250: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 2007254: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007258: 02 80 00 09 be 200727c <== NOT EXECUTED 200725c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007260: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007264: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007268: 02 80 00 05 be 200727c <== NOT EXECUTED 200726c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007270: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007274: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 2007278: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200727c: 02 80 00 0b be 20072a8 <== NOT EXECUTED 2007280: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 2007284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007288: 02 80 00 08 be 20072a8 <== NOT EXECUTED 200728c: 01 00 00 00 nop <== NOT EXECUTED 2007290: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007294: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007298: 02 80 00 04 be 20072a8 <== NOT EXECUTED 200729c: 01 00 00 00 nop <== NOT EXECUTED 20072a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20072a4: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20072a8: 40 00 dd 8c call 203e8d8 <__errno> <== NOT EXECUTED 20072ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20072b0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20072b4: c2 22 00 00 st %g1, [ %o0 ] 20072b8: 81 c7 e0 08 ret 20072bc: 81 e8 00 00 restore } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 20072c0: 9f c0 40 00 call %g1 20072c4: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 20072c8: c2 07 bf e4 ld [ %fp + -28 ], %g1 20072cc: 80 a0 60 00 cmp %g1, 0 20072d0: 02 80 00 08 be 20072f0 20072d4: b0 10 00 08 mov %o0, %i0 20072d8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20072dc: 80 a0 60 00 cmp %g1, 0 20072e0: 02 80 00 05 be 20072f4 20072e4: 80 8c 60 ff btst 0xff, %l1 20072e8: 9f c0 40 00 call %g1 20072ec: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 20072f0: 80 8c 60 ff btst 0xff, %l1 20072f4: 02 bf ff ab be 20071a0 20072f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 20072fc: 80 a0 60 00 cmp %g1, 0 2007300: 02 80 00 0b be 200732c 2007304: 01 00 00 00 nop 2007308: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200730c: 80 a0 60 00 cmp %g1, 0 2007310: 02 80 00 07 be 200732c 2007314: 01 00 00 00 nop 2007318: 9f c0 40 00 call %g1 200731c: 90 07 bf ec add %fp, -20, %o0 2007320: 81 c7 e0 08 ret 2007324: 81 e8 00 00 restore 2007328: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 200732c: 81 c7 e0 08 ret <== NOT EXECUTED 2007330: 81 e8 00 00 restore <== NOT EXECUTED 020149b8 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 20149b8: 11 00 80 98 sethi %hi(0x2026000), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 20149bc: 81 c3 e0 08 retl <== NOT EXECUTED 20149c0: 90 12 22 78 or %o0, 0x278, %o0 ! 2026278 <== NOT EXECUTED 02010fd8 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 2010fd8: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 2010fdc: 90 10 00 18 mov %i0, %o0 2010fe0: 40 00 00 0b call 201100c 2010fe4: 92 10 00 19 mov %i1, %o1 if (nap) 2010fe8: 80 a2 20 00 cmp %o0, 0 2010fec: 02 80 00 05 be 2011000 2010ff0: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 2010ff4: f0 02 00 00 ld [ %o0 ], %i0 2010ff8: 81 c7 e0 08 ret 2010ffc: 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); 2011000: 40 00 0e 6e call 20149b8 <== NOT EXECUTED 2011004: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 2011008: 01 00 00 00 nop 0200e084 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200e084: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200e088: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200e08c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e090: 40 00 02 39 call 200e974 <== NOT EXECUTED 200e094: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200e098: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e09c: 32 80 00 02 bne,a 200e0a4 <== NOT EXECUTED 200e0a0: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200e0a4: 81 c7 e0 08 ret <== NOT EXECUTED 200e0a8: 81 e8 00 00 restore <== NOT EXECUTED 020020e4 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 20020e4: 9d e3 bf a0 save %sp, -96, %sp const char *p; if ( !name ) 20020e8: 90 96 20 00 orcc %i0, 0, %o0 20020ec: 22 80 00 26 be,a 2002184 20020f0: b2 10 20 00 clr %i1 return NULL; if ( !value ) 20020f4: 80 a6 60 00 cmp %i1, 0 20020f8: 22 80 00 24 be,a 2002188 20020fc: b0 10 00 19 mov %i1, %i0 return NULL; if ( !length ) 2002100: 80 a6 a0 00 cmp %i2, 0 2002104: 22 80 00 20 be,a 2002184 2002108: b2 10 20 00 clr %i1 return NULL; value[0] = '\0'; p = rtems_bsp_cmdline_get_param_raw( name ); 200210c: 40 00 00 21 call 2002190 2002110: c0 2e 40 00 clrb [ %i1 ] if ( !p ) 2002114: 80 a2 20 00 cmp %o0, 0 2002118: 02 80 00 1a be 2002180 200211c: b4 06 bf ff add %i2, -1, %i2 2002120: 84 10 20 00 clr %g2 2002124: 10 80 00 0e b 200215c 2002128: 82 10 20 00 clr %g1 int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 2002130: 80 88 a0 01 btst 1, %g2 quotes++; 2002134: 10 80 00 07 b 2002150 <== NOT EXECUTED 2002138: 84 00 a0 01 inc %g2 <== NOT EXECUTED } else if ( ((quotes % 2) == 0) && *p == ' ' ) 200213c: 32 80 00 06 bne,a 2002154 2002140: c8 2e 40 01 stb %g4, [ %i1 + %g1 ] <== NOT EXECUTED 2002144: 80 a0 e0 20 cmp %g3, 0x20 2002148: 02 80 00 10 be 2002188 200214c: b0 10 00 19 mov %i1, %i0 break; value[i++] = *p++; 2002150: c8 2e 40 01 stb %g4, [ %i1 + %g1 ] 2002154: 82 00 60 01 inc %g1 value[i] = '\0'; 2002158: c0 2e 40 01 clrb [ %i1 + %g1 ] int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 2002168: c8 0a 00 01 ldub [ %o0 + %g1 ], %g4 200216c: 80 a0 40 1a cmp %g1, %i2 2002170: 0a bf ff ef bcs 200212c 2002174: 80 a0 e0 22 cmp %g3, 0x22 return NULL; copy_string( p, value, length ); return value; } 2002178: 81 c7 e0 08 ret <== NOT EXECUTED 200217c: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i: const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 20021c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 20021c4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 20021c8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20021cc: 7f ff ff c6 call 20020e4 <== NOT EXECUTED 20021d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if ( !p ) 20021d4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 20021d8: 22 80 00 1e be,a 2002250 <== NOT EXECUTED 20021dc: b2 10 20 00 clr %i1 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; 20021e0: 40 00 35 d7 call 200f93c <== NOT EXECUTED 20021e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( *rhs != '=' ) 20021e8: c2 4c 40 08 ldsb [ %l1 + %o0 ], %g1 <== NOT EXECUTED 20021ec: 80 a0 60 3d cmp %g1, 0x3d <== NOT EXECUTED 20021f0: 12 80 00 17 bne 200224c <== NOT EXECUTED 20021f4: a2 04 40 08 add %l1, %o0, %l1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 20021f8: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED 20021fc: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 2002200: 12 80 00 03 bne 200220c <== NOT EXECUTED 2002204: 84 04 60 01 add %l1, 1, %g2 <== NOT EXECUTED rhs++; 2002208: 84 04 60 02 add %l1, 2, %g2 <== NOT EXECUTED 200220c: 10 80 00 05 b 2002220 <== NOT EXECUTED 2002210: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; 2002214: c8 28 40 00 stb %g4, [ %g1 ] <== NOT EXECUTED 2002218: 84 00 a0 01 inc %g2 <== NOT EXECUTED 200221c: 82 00 60 01 inc %g1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 2002220: c6 48 80 00 ldsb [ %g2 ], %g3 <== NOT EXECUTED 2002224: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2002228: 12 bf ff fb bne 2002214 <== NOT EXECUTED 200222c: c8 08 80 00 ldub [ %g2 ], %g4 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 2002230: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 <== NOT EXECUTED 2002234: 80 a0 e0 22 cmp %g3, 0x22 <== NOT EXECUTED 2002238: 12 80 00 03 bne 2002244 <== NOT EXECUTED 200223c: 84 00 7f ff add %g1, -1, %g2 <== NOT EXECUTED 2002240: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED d--; *d = '\0'; return value; 2002244: 10 80 00 03 b 2002250 <== NOT EXECUTED 2002248: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED 200224c: b2 10 20 00 clr %i1 <== NOT EXECUTED } 2002250: 81 c7 e0 08 ret <== NOT EXECUTED 2002254: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 02002c50 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002c50: 9d e3 bf 60 save %sp, -160, %sp Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 2002c54: 80 a6 60 00 cmp %i1, 0 2002c58: 02 80 00 69 be 2002dfc 2002c5c: ae 07 bf f0 add %fp, -16, %l7 * 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 ); 2002c60: 40 00 14 7e call 2007e58 <_TOD_Get_uptime> 2002c64: 90 10 00 17 mov %l7, %o0 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 2002c68: 92 10 00 17 mov %l7, %o1 2002c6c: ba 07 bf e8 add %fp, -24, %i5 2002c70: 11 00 80 a7 sethi %hi(0x2029c00), %o0 2002c74: 94 10 00 1d mov %i5, %o2 2002c78: 40 00 1e c0 call 200a778 <_Timespec_Subtract> 2002c7c: 90 12 21 f8 or %o0, 0x1f8, %o0 } } } #endif (*print)( 2002c80: 90 10 00 18 mov %i0, %o0 2002c84: 13 00 80 7c sethi %hi(0x201f000), %o1 2002c88: 21 00 80 a5 sethi %hi(0x2029400), %l0 2002c8c: 92 12 60 c8 or %o1, 0xc8, %o1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002c90: 39 00 80 7c sethi %hi(0x201f000), %i4 /* * 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 ) { 2002c94: 2d 00 80 a6 sethi %hi(0x2029800), %l6 /* * Print the information */ (*print)( context, 2002c98: 37 00 80 7c sethi %hi(0x201f000), %i3 } } } #endif (*print)( 2002c9c: 9f c6 40 00 call %i1 2002ca0: 35 00 80 a6 sethi %hi(0x2029800), %i2 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002ca4: a8 07 bf c8 add %fp, -56, %l4 } } } #endif (*print)( 2002ca8: a0 14 23 94 or %l0, 0x394, %l0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002cac: b8 17 22 40 or %i4, 0x240, %i4 /* * 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 ) { 2002cb0: ac 15 a0 f0 or %l6, 0xf0, %l6 /* * Print the information */ (*print)( context, 2002cb4: b6 16 e2 58 or %i3, 0x258, %i3 * 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( 2002cb8: b4 16 a0 f8 or %i2, 0xf8, %i2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002cbc: a6 07 bf e0 add %fp, -32, %l3 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 2002cc0: c2 04 00 00 ld [ %l0 ], %g1 2002cc4: 80 a0 60 00 cmp %g1, 0 2002cc8: 22 80 00 3f be,a 2002dc4 2002ccc: a0 04 20 04 add %l0, 4, %l0 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 2002cd0: e4 00 60 04 ld [ %g1 + 4 ], %l2 if ( information ) { 2002cd4: a2 10 20 01 mov 1, %l1 2002cd8: 80 a4 a0 00 cmp %l2, 0 2002cdc: 12 80 00 33 bne 2002da8 2002ce0: aa 07 bf d8 add %fp, -40, %l5 for ( i=1 ; i <= information->maximum ; i++ ) { 2002ce4: 10 80 00 38 b 2002dc4 <== NOT EXECUTED 2002ce8: a0 04 20 04 add %l0, 4, %l0 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 2002cec: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1 2002cf0: c2 00 40 02 ld [ %g1 + %g2 ], %g1 if ( !the_thread ) 2002cf4: 80 a0 60 00 cmp %g1, 0 2002cf8: 02 80 00 2c be 2002da8 2002cfc: a2 04 60 01 inc %l1 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002d00: d0 00 60 08 ld [ %g1 + 8 ], %o0 2002d04: 40 00 0f 67 call 2006aa0 2002d08: c2 27 bf c4 st %g1, [ %fp + -60 ] (*print)( 2002d0c: c2 07 bf c4 ld [ %fp + -60 ], %g1 2002d10: 90 10 00 18 mov %i0, %o0 2002d14: d4 00 60 08 ld [ %g1 + 8 ], %o2 2002d18: 92 10 00 1c mov %i4, %o1 2002d1c: 9f c6 40 00 call %i1 2002d20: 96 10 00 14 mov %l4, %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; 2002d24: c2 07 bf c4 ld [ %fp + -60 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002d28: c4 05 80 00 ld [ %l6 ], %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; 2002d2c: c6 00 60 84 ld [ %g1 + 0x84 ], %g3 2002d30: c6 27 bf e0 st %g3, [ %fp + -32 ] 2002d34: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 2002d38: c6 27 bf e4 st %g3, [ %fp + -28 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002d3c: c4 00 a0 08 ld [ %g2 + 8 ], %g2 2002d40: c2 00 60 08 ld [ %g1 + 8 ], %g1 2002d44: 80 a0 80 01 cmp %g2, %g1 2002d48: 12 80 00 0a bne 2002d70 2002d4c: 94 07 bf fc add %fp, -4, %o2 Timestamp_Control used; _Timestamp_Subtract( 2002d50: 90 10 00 1a mov %i2, %o0 2002d54: 92 10 00 17 mov %l7, %o1 2002d58: 40 00 1e 88 call 200a778 <_Timespec_Subtract> 2002d5c: 94 10 00 15 mov %l5, %o2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 2002d60: 90 10 00 13 mov %l3, %o0 2002d64: 40 00 1d da call 200a4cc <_Timespec_Add_to> 2002d68: 92 10 00 15 mov %l5, %o1 }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002d6c: 94 07 bf fc add %fp, -4, %o2 2002d70: 96 07 bf f8 add %fp, -8, %o3 2002d74: 90 10 00 13 mov %l3, %o0 2002d78: 40 00 1d ee call 200a530 <_Timespec_Divide> 2002d7c: 92 10 00 1d mov %i5, %o1 /* * Print the information */ (*print)( context, 2002d80: d0 07 bf e4 ld [ %fp + -28 ], %o0 2002d84: 40 00 69 25 call 201d218 <.udiv> 2002d88: 92 10 23 e8 mov 0x3e8, %o1 2002d8c: d4 07 bf e0 ld [ %fp + -32 ], %o2 2002d90: d8 07 bf fc ld [ %fp + -4 ], %o4 2002d94: da 07 bf f8 ld [ %fp + -8 ], %o5 2002d98: 96 10 00 08 mov %o0, %o3 2002d9c: 92 10 00 1b mov %i3, %o1 2002da0: 9f c6 40 00 call %i1 2002da4: 90 10 00 18 mov %i0, %o0 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++ ) { 2002da8: c2 14 a0 10 lduh [ %l2 + 0x10 ], %g1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002dac: 94 10 00 14 mov %l4, %o2 2002db0: 92 10 20 0d mov 0xd, %o1 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 2002db4: 80 a4 40 01 cmp %l1, %g1 2002db8: 08 bf ff cd bleu 2002cec 2002dbc: 85 2c 60 02 sll %l1, 2, %g2 2002dc0: a0 04 20 04 add %l0, 4, %l0 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 2002dc4: 03 00 80 a5 sethi %hi(0x2029400), %g1 2002dc8: 82 10 63 a4 or %g1, 0x3a4, %g1 ! 20297a4 <_Objects_Information_table+0x14> 2002dcc: 80 a4 00 01 cmp %l0, %g1 2002dd0: 32 bf ff bd bne,a 2002cc4 2002dd4: c2 04 00 00 ld [ %l0 ], %g1 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 2002dd8: d0 07 bf ec ld [ %fp + -20 ], %o0 2002ddc: 40 00 69 0f call 201d218 <.udiv> 2002de0: 92 10 23 e8 mov 0x3e8, %o1 2002de4: d4 07 bf e8 ld [ %fp + -24 ], %o2 2002de8: 96 10 00 08 mov %o0, %o3 2002dec: 13 00 80 7c sethi %hi(0x201f000), %o1 2002df0: 90 10 00 18 mov %i0, %o0 2002df4: 9f c6 40 00 call %i1 2002df8: 92 12 62 70 or %o1, 0x270, %o1 2002dfc: 81 c7 e0 08 ret 2002e00: 81 e8 00 00 restore 0200e050 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 200e050: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 200e054: 11 00 80 68 sethi %hi(0x201a000), %o0 <== NOT EXECUTED 200e058: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200e05c: 40 00 00 0a call 200e084 <== NOT EXECUTED 200e060: 90 12 23 9c or %o0, 0x39c, %o0 <== NOT EXECUTED 200e064: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 200e068: 02 80 00 05 be 200e07c <== NOT EXECUTED 200e06c: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200e070: 40 00 02 61 call 200e9f4 <__errno> <== NOT EXECUTED 200e074: 01 00 00 00 nop <== NOT EXECUTED 200e078: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200e07c: 81 c7 e0 08 ret <== NOT EXECUTED 200e080: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 02007494 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 2007494: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 2007498: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 200749c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20074a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 20074a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 20074a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 20074ac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20074b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20074b4: 7f ff ff 7d call 20072a8 <== NOT EXECUTED 20074b8: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 20074bc: 81 c7 e0 08 ret <== NOT EXECUTED 20074c0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02002140 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002140: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 2002144: 80 a6 20 00 cmp %i0, 0 2002148: 12 80 00 06 bne 2002160 200214c: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); 2002150: 40 00 32 29 call 200e9f4 <__errno> 2002154: 01 00 00 00 nop 2002158: 10 80 00 07 b 2002174 200215c: 82 10 20 0e mov 0xe, %g1 ! e if ( !pathloc ) 2002160: 32 80 00 08 bne,a 2002180 2002164: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002168: 40 00 32 23 call 200e9f4 <__errno> <== NOT EXECUTED 200216c: 01 00 00 00 nop <== NOT EXECUTED 2002170: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2002174: c2 22 00 00 st %g1, [ %o0 ] return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 2002178: 81 c7 e0 08 ret 200217c: 91 e8 3f ff restore %g0, -1, %o0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2002180: 80 a0 60 5c cmp %g1, 0x5c 2002184: 02 80 00 06 be 200219c 2002188: 80 a0 60 2f cmp %g1, 0x2f 200218c: 02 80 00 04 be 200219c 2002190: 80 a0 60 00 cmp %g1, 0 2002194: 32 80 00 0a bne,a 20021bc 2002198: 03 00 80 6a sethi %hi(0x201a800), %g1 200219c: 03 00 80 6a sethi %hi(0x201a800), %g1 20021a0: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 ! 201abc4 20021a4: 90 10 00 1b mov %i3, %o0 20021a8: 92 02 60 18 add %o1, 0x18, %o1 20021ac: 40 00 34 4d call 200f2e0 20021b0: 94 10 20 14 mov 0x14, %o2 20021b4: 10 80 00 08 b 20021d4 20021b8: 82 10 20 01 mov 1, %g1 20021bc: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 20021c0: 90 10 00 1b mov %i3, %o0 20021c4: 92 02 60 04 add %o1, 4, %o1 20021c8: 40 00 34 46 call 200f2e0 20021cc: 94 10 20 14 mov 0x14, %o2 20021d0: 82 10 20 00 clr %g1 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 20021d4: b2 26 40 01 sub %i1, %g1, %i1 20021d8: 7f ff ff 9e call 2002050 20021dc: 91 ee 00 01 restore %i0, %g1, %o0 20021e0: 01 00 00 00 nop 02002050 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002050: 9d e3 bf a0 save %sp, -96, %sp 2002054: 90 10 00 18 mov %i0, %o0 /* * Verify Input parameters. */ if ( !pathname ) 2002058: 80 a6 20 00 cmp %i0, 0 200205c: 12 80 00 06 bne 2002074 2002060: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( EFAULT ); 2002064: 40 00 32 64 call 200e9f4 <__errno> <== NOT EXECUTED 2002068: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200206c: 10 80 00 2d b 2002120 <== NOT EXECUTED 2002070: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED if ( !pathloc ) 2002074: 80 a6 e0 00 cmp %i3, 0 2002078: 32 80 00 06 bne,a 2002090 200207c: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002080: 40 00 32 5d call 200e9f4 <__errno> <== NOT EXECUTED 2002084: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002088: 10 80 00 26 b 2002120 <== NOT EXECUTED 200208c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 2002090: c2 00 40 00 ld [ %g1 ], %g1 2002094: 80 a0 60 00 cmp %g1, 0 2002098: 02 80 00 1f be 2002114 200209c: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 20020a0: 9f c0 40 00 call %g1 20020a4: 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 ) { 20020a8: b0 92 20 00 orcc %o0, 0, %i0 20020ac: 12 80 00 1e bne 2002124 20020b0: 80 a7 20 00 cmp %i4, 0 20020b4: 02 80 00 21 be 2002138 20020b8: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 20020bc: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 20020c0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20020c4: 80 a0 60 00 cmp %g1, 0 20020c8: 22 80 00 0e be,a 2002100 20020cc: 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 ); 20020d0: 9f c0 40 00 call %g1 20020d4: 90 10 00 1b mov %i3, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 20020d8: 90 02 3f fd add %o0, -3, %o0 20020dc: 80 a2 20 01 cmp %o0, 1 20020e0: 18 80 00 16 bgu 2002138 20020e4: 01 00 00 00 nop ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 20020e8: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 20020ec: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 20020f0: 80 a0 60 00 cmp %g1, 0 20020f4: 12 80 00 0e bne 200212c 20020f8: 90 10 00 1b mov %i3, %o0 rtems_filesystem_freenode( pathloc ); 20020fc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002100: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002104: 02 80 00 04 be 2002114 <== NOT EXECUTED 2002108: 01 00 00 00 nop <== NOT EXECUTED 200210c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002110: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002114: 40 00 32 38 call 200e9f4 <__errno> <== NOT EXECUTED 2002118: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200211c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002120: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002124: 81 c7 e0 08 ret 2002128: 81 e8 00 00 restore * 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 ); 200212c: 9f c0 40 00 call %g1 2002130: 92 10 00 1a mov %i2, %o1 2002134: b0 10 00 08 mov %o0, %i0 } } return result; } 2002138: 81 c7 e0 08 ret 200213c: 81 e8 00 00 restore 02001eb0 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 2001eb0: 9d e3 bf 88 save %sp, -120, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 2001eb4: 23 00 80 6a sethi %hi(0x201a800), %l1 2001eb8: c2 04 63 c4 ld [ %l1 + 0x3c4 ], %g1 ! 201abc4 2001ebc: 84 10 20 12 mov 0x12, %g2 init_fs_mount_table(); 2001ec0: 40 00 01 8d call 20024f4 2001ec4: c4 30 60 2c sth %g2, [ %g1 + 0x2c ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2001ec8: 03 00 80 65 sethi %hi(0x2019400), %g1 2001ecc: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 201973c rtems_fatal_error_occurred( 0xABCD0001 ); 2001ed0: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2001ed4: 80 a0 60 00 cmp %g1, 0 2001ed8: 02 80 00 0f be 2001f14 2001edc: 90 12 20 01 or %o0, 1, %o0 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 2001ee0: 03 00 80 6a sethi %hi(0x201a800), %g1 2001ee4: c2 00 62 bc ld [ %g1 + 0x2bc ], %g1 ! 201aabc status = mount( 2001ee8: 90 07 bf fc add %fp, -4, %o0 2001eec: d8 00 60 0c ld [ %g1 + 0xc ], %o4 2001ef0: d2 00 40 00 ld [ %g1 ], %o1 2001ef4: d4 00 60 04 ld [ %g1 + 4 ], %o2 2001ef8: 40 00 01 87 call 2002514 2001efc: d6 00 60 08 ld [ %g1 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 2001f00: 80 a2 3f ff cmp %o0, -1 2001f04: 32 80 00 06 bne,a 2001f1c 2001f08: d0 04 63 c4 ld [ %l1 + 0x3c4 ], %o0 rtems_fatal_error_occurred( 0xABCD0002 ); 2001f0c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2001f10: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED 2001f14: 40 00 0f 58 call 2005c74 <== NOT EXECUTED 2001f18: 01 00 00 00 nop <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f1c: d2 07 bf fc ld [ %fp + -4 ], %o1 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 2001f20: c0 32 20 2e clrh [ %o0 + 0x2e ] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f24: 92 02 60 1c add %o1, 0x1c, %o1 2001f28: 94 10 20 14 mov 0x14, %o2 2001f2c: 40 00 34 ed call 200f2e0 2001f30: 90 02 20 18 add %o0, 0x18, %o0 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001f34: a0 07 bf e8 add %fp, -24, %l0 2001f38: 98 10 20 00 clr %o4 2001f3c: 96 10 00 10 mov %l0, %o3 2001f40: 25 00 80 66 sethi %hi(0x2019800), %l2 2001f44: 92 10 20 01 mov 1, %o1 2001f48: 94 10 20 00 clr %o2 2001f4c: 40 00 00 7d call 2002140 2001f50: 90 14 a3 d8 or %l2, 0x3d8, %o0 rtems_filesystem_root = loc; 2001f54: d0 04 63 c4 ld [ %l1 + 0x3c4 ], %o0 2001f58: 92 10 00 10 mov %l0, %o1 2001f5c: 94 10 20 14 mov 0x14, %o2 2001f60: 40 00 34 e0 call 200f2e0 2001f64: 90 02 20 18 add %o0, 0x18, %o0 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001f68: 96 10 00 10 mov %l0, %o3 2001f6c: 98 10 20 00 clr %o4 2001f70: 92 10 20 01 mov 1, %o1 2001f74: 94 10 20 00 clr %o2 2001f78: 40 00 00 72 call 2002140 2001f7c: 90 14 a3 d8 or %l2, 0x3d8, %o0 rtems_filesystem_current = loc; 2001f80: d0 04 63 c4 ld [ %l1 + 0x3c4 ], %o0 2001f84: 92 10 00 10 mov %l0, %o1 2001f88: 94 10 20 14 mov 0x14, %o2 2001f8c: 40 00 34 d5 call 200f2e0 2001f90: 90 02 20 04 add %o0, 4, %o0 * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 2001f94: 92 10 21 ff mov 0x1ff, %o1 2001f98: 11 00 80 66 sethi %hi(0x2019800), %o0 2001f9c: 40 00 00 fe call 2002394 2001fa0: 90 12 23 e0 or %o0, 0x3e0, %o0 ! 2019be0 if ( status != 0 ) 2001fa4: 80 a2 20 00 cmp %o0, 0 2001fa8: 02 80 00 04 be 2001fb8 2001fac: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred( 0xABCD0003 ); 2001fb0: 10 bf ff d9 b 2001f14 <== NOT EXECUTED 2001fb4: 90 12 20 03 or %o0, 3, %o0 ! abcd0003 <== NOT EXECUTED 2001fb8: 81 c7 e0 08 ret 2001fbc: 81 e8 00 00 restore 0200949c : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 200949c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 20094a0: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 20094a4: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 20094a8: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 20094ac: 81 c3 e0 08 retl <== NOT EXECUTED 20094b0: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02001fc0 : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 2001fc0: 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 ) ) 2001fc4: 10 80 00 03 b 2001fd0 2001fc8: 90 10 20 00 clr %o0 { pathname++; pathnamelen--; stripped++; 2001fcc: 90 02 20 01 inc %o0 <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 2001fd0: 80 a2 40 08 cmp %o1, %o0 2001fd4: 02 80 00 0b be 2002000 2001fd8: c4 08 40 08 ldub [ %g1 + %o0 ], %g2 2001fdc: 85 28 a0 18 sll %g2, 0x18, %g2 2001fe0: 85 38 a0 18 sra %g2, 0x18, %g2 2001fe4: 80 a0 a0 00 cmp %g2, 0 2001fe8: 02 80 00 06 be 2002000 2001fec: 80 a0 a0 5c cmp %g2, 0x5c 2001ff0: 02 bf ff f7 be 2001fcc 2001ff4: 80 a0 a0 2f cmp %g2, 0x2f 2001ff8: 22 bf ff f6 be,a 2001fd0 2001ffc: 90 02 20 01 inc %o0 pathname++; pathnamelen--; stripped++; } return stripped; } 2002000: 81 c3 e0 08 retl 2002004: 01 00 00 00 nop 02001d1c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 2001d1c: 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 ); 2001d20: 40 00 36 ec call 200f8d0 <== NOT EXECUTED 2001d24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001d28: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2001d2c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2001d30: 94 10 20 00 clr %o2 <== NOT EXECUTED 2001d34: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001d38: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2001d3c: 40 00 01 01 call 2002140 <== NOT EXECUTED 2001d40: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001d44: 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 ); 2001d48: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001d4c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2001d50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001d54: 12 80 00 0e bne 2001d8c <== NOT EXECUTED 2001d58: e4 07 bf ec ld [ %fp + -20 ], %l2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001d5c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2001d60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001d64: 02 80 00 04 be 2001d74 <== NOT EXECUTED 2001d68: 01 00 00 00 nop <== NOT EXECUTED 2001d6c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001d70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2001d74: 40 00 33 20 call 200e9f4 <__errno> <== NOT EXECUTED 2001d78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001d7c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001d80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001d84: 81 c7 e0 08 ret <== NOT EXECUTED 2001d88: 81 e8 00 00 restore <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 2001d8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001d90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2001d94: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED 2001d98: 12 80 00 06 bne 2001db0 <== NOT EXECUTED 2001d9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2001da0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2001da4: 22 80 00 0e be,a 2001ddc <== NOT EXECUTED 2001da8: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001dac: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2001db0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001db4: 02 80 00 1c be 2001e24 <== NOT EXECUTED 2001db8: 01 00 00 00 nop <== NOT EXECUTED 2001dbc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001dc0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dc4: 02 80 00 18 be 2001e24 <== NOT EXECUTED 2001dc8: 01 00 00 00 nop <== NOT EXECUTED 2001dcc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001dd0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001dd4: 81 c7 e0 08 ret <== NOT EXECUTED 2001dd8: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 2001ddc: 40 00 36 bd call 200f8d0 <== NOT EXECUTED 2001de0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001de4: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 2001de8: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001dec: 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; 2001df0: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 2001df4: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001df8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dfc: 02 80 00 0c be 2001e2c <== NOT EXECUTED 2001e00: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED 2001e04: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001e08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e0c: 02 80 00 08 be 2001e2c <== NOT EXECUTED 2001e10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2001e14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e18: b0 10 20 00 clr %i0 <== NOT EXECUTED 2001e1c: 81 c7 e0 08 ret <== NOT EXECUTED 2001e20: 81 e8 00 00 restore <== NOT EXECUTED 2001e24: 81 c7 e0 08 ret <== NOT EXECUTED 2001e28: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED 2001e2c: b0 10 20 00 clr %i0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2001e30: 81 c7 e0 08 ret <== NOT EXECUTED 2001e34: 81 e8 00 00 restore <== NOT EXECUTED 0200a7cc : * 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 ) { 200a7cc: 9d e3 bf 98 save %sp, -104, %sp rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 200a7d0: 03 00 80 6c sethi %hi(0x201b000), %g1 200a7d4: d0 00 63 e8 ld [ %g1 + 0x3e8 ], %o0 ! 201b3e8 200a7d8: 92 10 20 00 clr %o1 200a7dc: 7f ff eb 7d call 20055d0 200a7e0: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 200a7e4: 21 00 80 6c sethi %hi(0x201b000), %l0 200a7e8: c2 04 23 e4 ld [ %l0 + 0x3e4 ], %g1 ! 201b3e4 200a7ec: 80 a0 60 00 cmp %g1, 0 200a7f0: 02 80 00 26 be 200a888 200a7f4: b0 10 20 00 clr %i0 rc = rtems_semaphore_create( 200a7f8: 05 00 80 6c sethi %hi(0x201b000), %g2 200a7fc: c4 00 a3 e0 ld [ %g2 + 0x3e0 ], %g2 ! 201b3e0 200a800: 92 10 20 01 mov 1, %o1 200a804: 82 20 40 02 sub %g1, %g2, %g1 200a808: 83 38 60 03 sra %g1, 3, %g1 200a80c: 87 28 60 06 sll %g1, 6, %g3 200a810: 85 28 60 03 sll %g1, 3, %g2 200a814: 84 20 c0 02 sub %g3, %g2, %g2 200a818: 87 28 a0 06 sll %g2, 6, %g3 200a81c: 84 00 80 03 add %g2, %g3, %g2 200a820: 84 00 80 01 add %g2, %g1, %g2 200a824: 87 28 a0 0f sll %g2, 0xf, %g3 200a828: 84 20 c0 02 sub %g3, %g2, %g2 200a82c: 07 13 10 92 sethi %hi(0x4c424800), %g3 200a830: 85 28 a0 03 sll %g2, 3, %g2 200a834: 86 10 e1 00 or %g3, 0x100, %g3 200a838: 82 00 80 01 add %g2, %g1, %g1 200a83c: 94 10 20 54 mov 0x54, %o2 200a840: 96 10 20 00 clr %o3 200a844: 90 10 40 03 or %g1, %g3, %o0 200a848: 7f ff ea c0 call 2005348 200a84c: 98 07 bf fc add %fp, -4, %o4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) 200a850: 80 a2 20 00 cmp %o0, 0 200a854: 32 80 00 0d bne,a 200a888 200a858: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 200a85c: f0 04 23 e4 ld [ %l0 + 0x3e4 ], %i0 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200a860: 92 10 20 00 clr %o1 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; 200a864: e2 06 20 38 ld [ %i0 + 0x38 ], %l1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200a868: 90 10 00 18 mov %i0, %o0 200a86c: 40 00 12 dc call 200f3dc 200a870: 94 10 20 48 mov 0x48, %o2 iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 200a874: c2 07 bf fc ld [ %fp + -4 ], %g1 rtems_libio_iop_freelist = next; 200a878: e2 24 23 e4 st %l1, [ %l0 + 0x3e4 ] goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 200a87c: c2 26 20 30 st %g1, [ %i0 + 0x30 ] 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; 200a880: 82 10 21 00 mov 0x100, %g1 200a884: c2 26 20 18 st %g1, [ %i0 + 0x18 ] failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 200a888: 03 00 80 6c sethi %hi(0x201b000), %g1 200a88c: 7f ff eb 98 call 20056ec 200a890: d0 00 63 e8 ld [ %g1 + 0x3e8 ], %o0 ! 201b3e8 return iop; } 200a894: 81 c7 e0 08 ret 200a898: 81 e8 00 00 restore 020021e4 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 20021e4: 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) 20021e8: 21 00 80 6a sethi %hi(0x201a800), %l0 20021ec: d0 04 22 b4 ld [ %l0 + 0x2b4 ], %o0 ! 201aab4 20021f0: 80 a2 20 00 cmp %o0, 0 20021f4: 22 80 00 18 be,a 2002254 20021f8: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 20021fc: 40 00 20 33 call 200a2c8 2002200: 92 10 20 48 mov 0x48, %o1 2002204: 03 00 80 6c sethi %hi(0x201b000), %g1 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 2002208: 80 a2 20 00 cmp %o0, 0 200220c: 12 80 00 04 bne 200221c 2002210: d0 20 63 e0 st %o0, [ %g1 + 0x3e0 ] rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 2002214: 10 80 00 1a b 200227c <== NOT EXECUTED 2002218: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; 200221c: 05 00 80 6c sethi %hi(0x201b000), %g2 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002220: c8 04 22 b4 ld [ %l0 + 0x2b4 ], %g4 rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 2002224: d0 20 a3 e4 st %o0, [ %g2 + 0x3e4 ] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002228: 82 10 00 08 mov %o0, %g1 200222c: 10 80 00 03 b 2002238 2002230: 84 10 20 00 clr %g2 iop->data1 = iop + 1; 2002234: c2 20 7f f0 st %g1, [ %g1 + -16 ] 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++) 2002238: 84 00 a0 01 inc %g2 iop->data1 = iop + 1; 200223c: 86 10 00 01 mov %g1, %g3 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002240: 80 a0 80 04 cmp %g2, %g4 2002244: 0a bf ff fc bcs 2002234 2002248: 82 00 60 48 add %g1, 0x48, %g1 iop->data1 = iop + 1; iop->data1 = NULL; 200224c: c0 20 e0 38 clr [ %g3 + 0x38 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 2002250: 11 13 10 92 sethi %hi(0x4c424800), %o0 2002254: 92 10 20 01 mov 1, %o1 2002258: 90 12 21 4f or %o0, 0x14f, %o0 200225c: 94 10 20 54 mov 0x54, %o2 2002260: 96 10 20 00 clr %o3 2002264: 19 00 80 6c sethi %hi(0x201b000), %o4 2002268: 40 00 0c 38 call 2005348 200226c: 98 13 23 e8 or %o4, 0x3e8, %o4 ! 201b3e8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 2002270: 80 a2 20 00 cmp %o0, 0 2002274: 02 80 00 04 be 2002284 2002278: 03 00 80 6a sethi %hi(0x201a800), %g1 rtems_fatal_error_occurred( rc ); 200227c: 40 00 0e 7e call 2005c74 <== NOT EXECUTED 2002280: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 2002284: c2 00 62 b0 ld [ %g1 + 0x2b0 ], %g1 2002288: 80 a0 60 00 cmp %g1, 0 200228c: 02 80 00 04 be 200229c 2002290: 01 00 00 00 nop (* rtems_fs_init_helper)(); 2002294: 9f c0 40 00 call %g1 2002298: 01 00 00 00 nop 200229c: 81 c7 e0 08 ret 20022a0: 81 e8 00 00 restore 02026b94 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 2026b94: 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); 2026b98: 90 10 20 00 clr %o0 2026b9c: 92 10 20 00 clr %o1 2026ba0: 40 00 06 59 call 2028504 2026ba4: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 2026ba8: b0 92 20 00 orcc %o0, 0, %i0 2026bac: 12 80 00 19 bne 2026c10 2026bb0: 21 00 81 8f sethi %hi(0x2063c00), %l0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 2026bb4: c4 04 22 94 ld [ %l0 + 0x294 ], %g2 ! 2063e94 2026bb8: 03 00 81 9f sethi %hi(0x2067c00), %g1 2026bbc: 82 10 61 50 or %g1, 0x150, %g1 ! 2067d50 2026bc0: 80 a0 80 01 cmp %g2, %g1 2026bc4: 12 80 00 15 bne 2026c18 2026bc8: a4 14 22 94 or %l0, 0x294, %l2 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 2026bcc: 7f ff 7d 97 call 2006228 2026bd0: 90 10 20 48 mov 0x48, %o0 if (!tmp) 2026bd4: a2 92 20 00 orcc %o0, 0, %l1 2026bd8: 12 80 00 04 bne 2026be8 2026bdc: 92 10 00 12 mov %l2, %o1 2026be0: 81 c7 e0 08 ret <== NOT EXECUTED 2026be4: 91 e8 20 1a restore %g0, 0x1a, %o0 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); 2026be8: 90 10 20 00 clr %o0 2026bec: 15 00 80 9a sethi %hi(0x2026800), %o2 2026bf0: 40 00 07 43 call 20288fc 2026bf4: 94 12 a2 60 or %o2, 0x260, %o2 ! 2026a60 if (sc != RTEMS_SUCCESSFUL) { 2026bf8: 82 92 20 00 orcc %o0, 0, %g1 2026bfc: 22 80 00 07 be,a 2026c18 2026c00: e2 24 22 94 st %l1, [ %l0 + 0x294 ] /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 2026c04: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2026c08: 7f ff 7b ec call 2005bb8 <== NOT EXECUTED 2026c0c: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED return sc; 2026c10: 81 c7 e0 08 ret <== NOT EXECUTED 2026c14: 81 e8 00 00 restore <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 2026c18: 23 00 81 8f sethi %hi(0x2063c00), %l1 2026c1c: e0 04 62 94 ld [ %l1 + 0x294 ], %l0 ! 2063e94 2026c20: 94 10 20 48 mov 0x48, %o2 2026c24: 90 10 00 10 mov %l0, %o0 2026c28: 13 00 81 9f sethi %hi(0x2067c00), %o1 2026c2c: 40 00 6b fe call 2041c24 2026c30: 92 12 61 50 or %o1, 0x150, %o1 ! 2067d50 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026c34: 03 00 81 9f sethi %hi(0x2067c00), %g1 2026c38: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 ! 2067d38 } 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*/ 2026c3c: c2 07 bf fc ld [ %fp + -4 ], %g1 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026c40: 92 02 60 1c add %o1, 0x1c, %o1 } 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*/ 2026c44: c2 24 00 00 st %g1, [ %l0 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026c48: 90 04 20 18 add %l0, 0x18, %o0 2026c4c: 40 00 6b f6 call 2041c24 2026c50: 94 10 20 14 mov 0x14, %o2 * 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); 2026c54: a0 07 bf e8 add %fp, -24, %l0 2026c58: 98 10 20 00 clr %o4 2026c5c: 96 10 00 10 mov %l0, %o3 2026c60: 25 00 81 67 sethi %hi(0x2059c00), %l2 2026c64: 92 10 20 01 mov 1, %o1 2026c68: 94 10 20 00 clr %o2 2026c6c: 7f ff 7b aa call 2005b14 2026c70: 90 14 a3 00 or %l2, 0x300, %o0 rtems_filesystem_root = loc; 2026c74: d0 04 62 94 ld [ %l1 + 0x294 ], %o0 2026c78: 92 10 00 10 mov %l0, %o1 2026c7c: 94 10 20 14 mov 0x14, %o2 2026c80: 40 00 6b e9 call 2041c24 2026c84: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2026c88: 92 10 20 01 mov 1, %o1 2026c8c: 94 10 20 00 clr %o2 2026c90: 90 14 a3 00 or %l2, 0x300, %o0 2026c94: 96 10 00 10 mov %l0, %o3 2026c98: 7f ff 7b 9f call 2005b14 2026c9c: 98 10 20 00 clr %o4 rtems_filesystem_current = loc; 2026ca0: d0 04 62 94 ld [ %l1 + 0x294 ], %o0 2026ca4: 92 10 00 10 mov %l0, %o1 2026ca8: 90 02 20 04 add %o0, 4, %o0 2026cac: 40 00 6b de call 2041c24 2026cb0: 94 10 20 14 mov 0x14, %o2 return RTEMS_SUCCESSFUL; } 2026cb4: 81 c7 e0 08 ret 2026cb8: 81 e8 00 00 restore 02026ad8 : * 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) { 2026ad8: 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); 2026adc: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026ae0: 92 10 20 00 clr %o1 <== NOT EXECUTED 2026ae4: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2026ae8: 40 00 06 87 call 2028504 <== NOT EXECUTED 2026aec: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2026af0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026af4: 12 80 00 26 bne 2026b8c <== NOT EXECUTED 2026af8: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 2026afc: 13 00 81 8f sethi %hi(0x2063c00), %o1 <== NOT EXECUTED 2026b00: e0 02 62 94 ld [ %o1 + 0x294 ], %l0 ! 2063e94 <== NOT EXECUTED 2026b04: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026b08: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 2026b0c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2026b10: 12 80 00 09 bne 2026b34 <== NOT EXECUTED 2026b14: 92 12 62 94 or %o1, 0x294, %o1 <== NOT EXECUTED /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 2026b18: 40 00 07 a5 call 20289ac <== NOT EXECUTED 2026b1c: 01 00 00 00 nop <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2026b20: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026b24: 12 80 00 1a bne 2026b8c <== NOT EXECUTED 2026b28: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 2026b2c: 7f ff ff cd call 2026a60 <== NOT EXECUTED 2026b30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 2026b34: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2026b38: 21 00 81 8f sethi %hi(0x2063c00), %l0 <== NOT EXECUTED 2026b3c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2026b40: a2 14 22 94 or %l0, 0x294, %l1 <== NOT EXECUTED 2026b44: 40 00 07 c0 call 2028a44 <== NOT EXECUTED 2026b48: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 2026b4c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026b50: 12 80 00 0c bne 2026b80 <== NOT EXECUTED 2026b54: 07 00 81 9f sethi %hi(0x2067c00), %g3 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 2026b58: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2026b5c: 15 00 80 9a sethi %hi(0x2026800), %o2 <== NOT EXECUTED 2026b60: 40 00 07 67 call 20288fc <== NOT EXECUTED 2026b64: 94 12 a2 60 or %o2, 0x260, %o2 ! 2026a60 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026b68: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026b6c: 12 80 00 05 bne 2026b80 <== NOT EXECUTED 2026b70: 07 00 81 9f sethi %hi(0x2067c00), %g3 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 2026b74: 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; 2026b78: 10 80 00 05 b 2026b8c <== NOT EXECUTED 2026b7c: c4 24 22 94 st %g2, [ %l0 + 0x294 ] <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 2026b80: 05 00 81 8f sethi %hi(0x2063c00), %g2 <== NOT EXECUTED 2026b84: 86 10 e1 50 or %g3, 0x150, %g3 <== NOT EXECUTED 2026b88: c6 20 a2 94 st %g3, [ %g2 + 0x294 ] <== NOT EXECUTED return sc; } 2026b8c: 81 c7 e0 08 ret <== NOT EXECUTED 2026b90: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED 02006330 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 2006330: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 2006334: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 2006338: d0 00 63 b0 ld [ %g1 + 0x3b0 ], %o0 ! 2063bb0 <== NOT EXECUTED 200633c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2006340: 40 00 17 77 call 200c11c <_Protected_heap_Get_block_size> <== NOT EXECUTED 2006344: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2006348: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 200634c: 02 80 00 08 be 200636c <== NOT EXECUTED 2006350: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 2006354: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 2006358: 82 10 61 08 or %g1, 0x108, %g1 <== NOT EXECUTED 200635c: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 2006360: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 2006364: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 2006368: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 200636c: 81 c7 e0 08 ret <== NOT EXECUTED 2006370: 81 e8 00 00 restore <== NOT EXECUTED 02006374 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 2006374: 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 ) 2006378: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 200637c: 02 80 00 13 be 20063c8 <== NOT EXECUTED 2006380: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 2006384: d0 00 63 b0 ld [ %g1 + 0x3b0 ], %o0 ! 2063bb0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 2006388: 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); 200638c: 40 00 17 64 call 200c11c <_Protected_heap_Get_block_size> <== NOT EXECUTED 2006390: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 2006394: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 2006398: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 200639c: 82 10 61 08 or %g1, 0x108, %g1 <== NOT EXECUTED 20063a0: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20063a4: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20063a8: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 20063ac: 9a 83 40 04 addcc %o5, %g4, %o5 <== NOT EXECUTED 20063b0: 98 43 20 00 addx %o4, 0, %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20063b4: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20063b8: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 20063bc: 08 80 00 03 bleu 20063c8 <== NOT EXECUTED 20063c0: d8 38 60 20 std %o4, [ %g1 + 0x20 ] <== NOT EXECUTED s->max_depth = current_depth; 20063c4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 20063c8: 81 c7 e0 08 ret <== NOT EXECUTED 20063cc: 81 e8 00 00 restore <== NOT EXECUTED 020063d0 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 20063d0: 11 00 81 9f sethi %hi(0x2067c00), %o0 <== NOT EXECUTED 20063d4: 92 10 20 00 clr %o1 <== NOT EXECUTED 20063d8: 90 12 21 08 or %o0, 0x108, %o0 <== NOT EXECUTED 20063dc: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED 20063e0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20063e4: 40 00 ee a3 call 2041e70 <== NOT EXECUTED 20063e8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20063ec: 01 00 00 00 nop 0200fb30 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 200fb30: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 200fb34: a0 96 20 00 orcc %i0, 0, %l0 200fb38: 02 80 00 20 be 200fbb8 200fb3c: 03 00 80 85 sethi %hi(0x2021400), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200fb40: c2 00 62 50 ld [ %g1 + 0x250 ], %g1 ! 2021650 <_System_state_Current> 200fb44: 80 a0 60 03 cmp %g1, 3 200fb48: 12 80 00 07 bne 200fb64 200fb4c: c0 24 00 00 clr [ %l0 ] 200fb50: 7f ff cf 9f call 20039cc 200fb54: 01 00 00 00 nop 200fb58: 80 8a 20 ff btst 0xff, %o0 200fb5c: 02 80 00 18 be 200fbbc 200fb60: b0 10 20 16 mov 0x16, %i0 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200fb64: 7f ff cf b3 call 2003a30 200fb68: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 200fb6c: 03 00 80 82 sethi %hi(0x2020800), %g1 200fb70: d0 00 60 f0 ld [ %g1 + 0xf0 ], %o0 ! 20208f0 200fb74: 94 10 00 19 mov %i1, %o2 200fb78: 92 10 00 1a mov %i2, %o1 200fb7c: 7f ff e4 c2 call 2008e84 <_Protected_heap_Allocate_aligned_with_boundary> 200fb80: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 200fb84: b2 92 20 00 orcc %o0, 0, %i1 200fb88: 02 80 00 0d be 200fbbc 200fb8c: 03 00 80 83 sethi %hi(0x2020c00), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 200fb90: c2 00 63 78 ld [ %g1 + 0x378 ], %g1 ! 2020f78 200fb94: 80 a0 60 00 cmp %g1, 0 200fb98: 22 80 00 06 be,a 200fbb0 200fb9c: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 200fba0: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200fba4: 9f c0 40 00 call %g1 <== NOT EXECUTED 200fba8: 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; 200fbac: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 200fbb0: 81 c7 e0 08 ret 200fbb4: 91 e8 20 00 restore %g0, 0, %o0 200fbb8: b0 10 20 16 mov 0x16, %i0 } 200fbbc: 81 c7 e0 08 ret 200fbc0: 81 e8 00 00 restore 02007460 : void rtems_panic( const char *printf_format, ... ) { 2007460: 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); 2007464: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 2007468: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 200746c: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 2007470: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007474: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007478: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 200747c: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007480: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2007484: 7f ff ff 89 call 20072a8 <== NOT EXECUTED 2007488: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 200748c: 81 c7 e0 08 ret <== NOT EXECUTED 2007490: 81 e8 00 00 restore <== NOT EXECUTED 0200c5fc : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 200c5fc: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 200c600: 03 00 80 6c sethi %hi(0x201b000), %g1 200c604: c2 08 61 24 ldub [ %g1 + 0x124 ], %g1 ! 201b124 200c608: 80 a0 60 00 cmp %g1, 0 200c60c: 02 80 00 15 be 200c660 200c610: 19 00 80 6c sethi %hi(0x201b000), %o4 return; if (rtems_pipe_semaphore) 200c614: c2 03 22 80 ld [ %o4 + 0x280 ], %g1 ! 201b280 <== NOT EXECUTED 200c618: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c61c: 12 80 00 11 bne 200c660 <== NOT EXECUTED 200c620: 98 13 22 80 or %o4, 0x280, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 200c624: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 200c628: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200c62c: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 200c630: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 200c634: 7f ff e3 45 call 2005348 <== NOT EXECUTED 200c638: 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) 200c63c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c640: 02 80 00 04 be 200c650 <== NOT EXECUTED 200c644: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200c648: 7f ff e5 8b call 2005c74 <== NOT EXECUTED 200c64c: 01 00 00 00 nop <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 200c650: 7f ff e2 1e call 2004ec8 <== NOT EXECUTED 200c654: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 200c658: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200c65c: d0 30 62 86 sth %o0, [ %g1 + 0x286 ] ! 201b286 <== NOT EXECUTED 200c660: 81 c7 e0 08 ret 200c664: 81 e8 00 00 restore 02004154 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2004154: 9d e3 bf a0 save %sp, -96, %sp Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2004158: 03 00 81 9f sethi %hi(0x2067c00), %g1 200415c: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2067f90 <_Thread_Executing> ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 2004160: d0 00 60 c8 ld [ %g1 + 0xc8 ], %o0 2004164: 80 a7 80 08 cmp %fp, %o0 2004168: 0a 80 00 06 bcs 2004180 200416c: a0 10 20 00 clr %l0 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 2004170: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 2004174: 82 02 00 01 add %o0, %g1, %g1 2004178: 80 a0 40 1e cmp %g1, %fp 200417c: a0 60 3f ff subx %g0, -1, %l0 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 2004180: 03 00 81 94 sethi %hi(0x2065000), %g1 2004184: c2 00 61 00 ld [ %g1 + 0x100 ], %g1 ! 2065100 2004188: 80 a0 60 00 cmp %g1, 0 200418c: 02 80 00 09 be 20041b0 2004190: 92 10 20 01 mov 1, %o1 pattern_ok = (!memcmp( 2004194: 90 02 20 08 add %o0, 8, %o0 2004198: 13 00 81 9f sethi %hi(0x2067c00), %o1 200419c: 94 10 20 10 mov 0x10, %o2 20041a0: 40 00 f6 70 call 2041b60 20041a4: 92 12 60 d8 or %o1, 0xd8, %o1 20041a8: 80 a0 00 08 cmp %g0, %o0 20041ac: 92 60 3f ff subx %g0, -1, %o1 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 20041b0: 80 8c 20 ff btst 0xff, %l0 20041b4: 02 80 00 04 be 20041c4 20041b8: 80 8a 60 ff btst 0xff, %o1 20041bc: 12 80 00 07 bne 20041d8 20041c0: 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 ); 20041c4: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 20041c8: d0 00 63 90 ld [ %g1 + 0x390 ], %o0 ! 2067f90 <_Thread_Executing> <== NOT EXECUTED 20041cc: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED 20041d0: 7f ff ff b7 call 20040ac <== NOT EXECUTED 20041d4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 20041d8: 81 c7 e0 08 ret 20041dc: 81 e8 00 00 restore 02004090 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 2004090: 13 00 80 1b sethi %hi(0x2006c00), %o1 <== NOT EXECUTED 2004094: 90 10 20 00 clr %o0 <== NOT EXECUTED 2004098: 92 12 62 24 or %o1, 0x224, %o1 <== NOT EXECUTED 200409c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20040a0: 7f ff ff e6 call 2004038 <== NOT EXECUTED 20040a4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20040a8: 01 00 00 00 nop 02004038 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2004038: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED print_context = context; 200403c: 23 00 81 94 sethi %hi(0x2065000), %l1 <== NOT EXECUTED print_handler = print; 2004040: 21 00 81 94 sethi %hi(0x2065000), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 2004044: f0 24 61 04 st %i0, [ %l1 + 0x104 ] <== NOT EXECUTED print_handler = print; 2004048: f2 24 21 08 st %i1, [ %l0 + 0x108 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 200404c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004050: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 2004054: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004058: 92 12 60 78 or %o1, 0x78, %o1 ! 2059c78 <== NOT EXECUTED (*print)( context, 200405c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004060: 13 00 81 67 sethi %hi(0x2059c00), %o1 <== NOT EXECUTED 2004064: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004068: 92 12 60 90 or %o1, 0x90, %o1 ! 2059c90 <== 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 ); 200406c: 11 00 80 0f sethi %hi(0x2003c00), %o0 <== NOT EXECUTED 2004070: 40 00 1d d0 call 200b7b0 <== NOT EXECUTED 2004074: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 2003ee8 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 2004078: 7f ff ff 9c call 2003ee8 <== NOT EXECUTED 200407c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 2004080: c0 24 61 04 clr [ %l1 + 0x104 ] <== NOT EXECUTED print_handler = NULL; 2004084: c0 24 21 08 clr [ %l0 + 0x108 ] <== NOT EXECUTED } 2004088: 81 c7 e0 08 ret <== NOT EXECUTED 200408c: 81 e8 00 00 restore <== NOT EXECUTED 020041e0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 20041e0: 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; 20041e4: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 20041e8: 80 a7 80 08 cmp %fp, %o0 20041ec: 0a 80 00 06 bcs 2004204 20041f0: a0 10 20 00 clr %l0 } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( 20041f4: c2 06 20 c4 ld [ %i0 + 0xc4 ], %g1 20041f8: 82 02 00 01 add %o0, %g1, %g1 20041fc: 80 a0 40 1e cmp %g1, %fp 2004200: a0 60 3f ff subx %g0, -1, %l0 /* * 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, 2004204: 90 02 20 08 add %o0, 8, %o0 2004208: 13 00 81 9f sethi %hi(0x2067c00), %o1 200420c: 94 10 20 10 mov 0x10, %o2 2004210: 40 00 f6 54 call 2041b60 2004214: 92 12 60 d8 or %o1, 0xd8, %o1 2004218: 80 a0 00 08 cmp %g0, %o0 200421c: b2 60 3f ff subx %g0, -1, %i1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 2004220: 80 8c 20 ff btst 0xff, %l0 2004224: 02 80 00 04 be 2004234 2004228: 80 a6 60 00 cmp %i1, 0 200422c: 12 80 00 05 bne 2004240 2004230: 01 00 00 00 nop Stack_check_report_blown_task( running, pattern_ok ); 2004234: b2 0e 60 01 and %i1, 1, %i1 <== NOT EXECUTED 2004238: 7f ff ff 9d call 20040ac <== NOT EXECUTED 200423c: 81 e8 00 00 restore <== NOT EXECUTED 2004240: 81 c7 e0 08 ret 2004244: 81 e8 00 00 restore 0201c7b4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c7b4: 9d e3 bf 98 save %sp, -104, %sp 201c7b8: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c7bc: 80 a6 60 00 cmp %i1, 0 201c7c0: 02 80 00 20 be 201c840 201c7c4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c7c8: 40 00 88 44 call 203e8d8 <__errno> 201c7cc: 01 00 00 00 nop 201c7d0: c0 22 00 00 clr [ %o0 ] *n = 0; 201c7d4: 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 ); 201c7d8: 94 10 00 1b mov %i3, %o2 201c7dc: 90 10 00 10 mov %l0, %o0 201c7e0: 40 00 a7 f4 call 20467b0 201c7e4: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201c7e8: 80 a6 a0 00 cmp %i2, 0 201c7ec: 02 80 00 04 be 201c7fc 201c7f0: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c7f4: c2 07 bf fc ld [ %fp + -4 ], %g1 201c7f8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c7fc: c2 07 bf fc ld [ %fp + -4 ], %g1 201c800: 80 a0 40 10 cmp %g1, %l0 201c804: 02 80 00 0f be 201c840 201c808: 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)) 201c80c: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 201c810: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 201c814: 80 a4 40 01 cmp %l1, %g1 201c818: 32 80 00 09 bne,a 201c83c 201c81c: e2 26 40 00 st %l1, [ %i1 ] 201c820: 40 00 88 2e call 203e8d8 <__errno> 201c824: b0 10 20 0a mov 0xa, %i0 201c828: c2 02 00 00 ld [ %o0 ], %g1 201c82c: 80 a0 60 22 cmp %g1, 0x22 201c830: 02 80 00 04 be 201c840 201c834: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201c838: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c83c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c840: 81 c7 e0 08 ret 201c844: 81 e8 00 00 restore 0200c024 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c024: 9d e3 bf 98 save %sp, -104, %sp 200c028: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c02c: 80 a6 60 00 cmp %i1, 0 200c030: 02 80 00 23 be 200c0bc 200c034: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c038: 40 00 0c f1 call 200f3fc <__errno> 200c03c: 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 ); 200c040: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200c044: c0 22 00 00 clr [ %o0 ] *n = 0; 200c048: 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 ); 200c04c: 90 10 00 10 mov %l0, %o0 200c050: 40 00 18 f7 call 201242c 200c054: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c058: 80 a6 a0 00 cmp %i2, 0 200c05c: 02 80 00 04 be 200c06c 200c060: a2 10 00 08 mov %o0, %l1 *endptr = end; 200c064: c2 07 bf fc ld [ %fp + -4 ], %g1 200c068: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c06c: c2 07 bf fc ld [ %fp + -4 ], %g1 200c070: 80 a0 40 10 cmp %g1, %l0 200c074: 02 80 00 12 be 200c0bc 200c078: 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)) 200c07c: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200c080: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200c084: 80 a4 40 01 cmp %l1, %g1 200c088: 02 80 00 05 be 200c09c 200c08c: 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)) 200c090: 80 a4 40 01 cmp %l1, %g1 200c094: 32 80 00 09 bne,a 200c0b8 200c098: e2 26 40 00 st %l1, [ %i1 ] 200c09c: 40 00 0c d8 call 200f3fc <__errno> 200c0a0: 01 00 00 00 nop 200c0a4: c2 02 00 00 ld [ %o0 ], %g1 200c0a8: 80 a0 60 22 cmp %g1, 0x22 200c0ac: 22 80 00 04 be,a 200c0bc 200c0b0: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c0b4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 200c0b8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200c0bc: 81 c7 e0 08 ret 200c0c0: 81 e8 00 00 restore 0200bf60 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200bf60: 9d e3 bf 98 save %sp, -104, %sp 200bf64: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200bf68: 80 a6 60 00 cmp %i1, 0 200bf6c: 02 80 00 2c be 200c01c 200bf70: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200bf74: 40 00 0d 22 call 200f3fc <__errno> 200bf78: 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 ); 200bf7c: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200bf80: c0 22 00 00 clr [ %o0 ] *n = 0; 200bf84: c0 26 40 00 clr [ %i1 ] 200bf88: 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 ); 200bf8c: 90 10 00 10 mov %l0, %o0 200bf90: 40 00 19 31 call 2012454 200bf94: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200bf98: 80 a6 a0 00 cmp %i2, 0 #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 ); 200bf9c: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200bfa0: 02 80 00 04 be 200bfb0 200bfa4: a4 10 00 09 mov %o1, %l2 *endptr = end; 200bfa8: c2 07 bf fc ld [ %fp + -4 ], %g1 200bfac: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200bfb0: c2 07 bf fc ld [ %fp + -4 ], %g1 200bfb4: 80 a0 40 10 cmp %g1, %l0 200bfb8: 02 80 00 19 be 200c01c 200bfbc: 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)) 200bfc0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200bfc4: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200bfc8: 80 a4 40 01 cmp %l1, %g1 200bfcc: 12 80 00 05 bne 200bfe0 200bfd0: 03 20 00 00 sethi %hi(0x80000000), %g1 200bfd4: 80 a4 bf ff cmp %l2, -1 200bfd8: 02 80 00 08 be 200bff8 200bfdc: 01 00 00 00 nop return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 200bfe0: 80 a4 40 01 cmp %l1, %g1 200bfe4: 32 80 00 0c bne,a 200c014 200bfe8: e4 26 60 04 st %l2, [ %i1 + 4 ] 200bfec: 80 a4 a0 00 cmp %l2, 0 200bff0: 32 80 00 09 bne,a 200c014 200bff4: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200bff8: 40 00 0d 01 call 200f3fc <__errno> 200bffc: 01 00 00 00 nop 200c000: c2 02 00 00 ld [ %o0 ], %g1 200c004: 80 a0 60 22 cmp %g1, 0x22 200c008: 22 80 00 05 be,a 200c01c 200c00c: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c010: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200c014: e2 26 40 00 st %l1, [ %i1 ] 200c018: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200c01c: 81 c7 e0 08 ret 200c020: 81 e8 00 00 restore 0201c848 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c848: 9d e3 bf 98 save %sp, -104, %sp 201c84c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c850: 80 a6 60 00 cmp %i1, 0 201c854: 02 80 00 1e be 201c8cc 201c858: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c85c: 40 00 88 1f call 203e8d8 <__errno> 201c860: 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 ); 201c864: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201c868: c0 22 00 00 clr [ %o0 ] *n = 0; 201c86c: 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 ); 201c870: 90 10 00 10 mov %l0, %o0 201c874: 40 00 a9 05 call 2046c88 201c878: 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 ) 201c87c: 80 a6 a0 00 cmp %i2, 0 201c880: 02 80 00 04 be 201c890 201c884: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c888: c2 07 bf fc ld [ %fp + -4 ], %g1 201c88c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c890: c2 07 bf fc ld [ %fp + -4 ], %g1 201c894: 80 a0 40 10 cmp %g1, %l0 201c898: 02 80 00 0d be 201c8cc 201c89c: 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)) 201c8a0: 80 a4 7f ff cmp %l1, -1 201c8a4: 32 80 00 09 bne,a 201c8c8 201c8a8: e2 26 40 00 st %l1, [ %i1 ] 201c8ac: 40 00 88 0b call 203e8d8 <__errno> <== NOT EXECUTED 201c8b0: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 201c8b4: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201c8b8: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 201c8bc: 02 80 00 04 be 201c8cc <== NOT EXECUTED 201c8c0: 01 00 00 00 nop <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201c8c4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c8c8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c8cc: 81 c7 e0 08 ret 201c8d0: 81 e8 00 00 restore 0200c1b4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c1b4: 9d e3 bf 98 save %sp, -104, %sp 200c1b8: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c1bc: 80 a6 60 00 cmp %i1, 0 200c1c0: 02 80 00 1e be 200c238 200c1c4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c1c8: 40 00 0c 8d call 200f3fc <__errno> 200c1cc: 01 00 00 00 nop 200c1d0: c0 22 00 00 clr [ %o0 ] *n = 0; 200c1d4: 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 ); 200c1d8: 94 10 00 1b mov %i3, %o2 200c1dc: 90 10 00 10 mov %l0, %o0 200c1e0: 40 00 19 c9 call 2012904 200c1e4: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c1e8: 80 a6 a0 00 cmp %i2, 0 200c1ec: 02 80 00 04 be 200c1fc 200c1f0: a2 10 00 08 mov %o0, %l1 *endptr = end; 200c1f4: c2 07 bf fc ld [ %fp + -4 ], %g1 200c1f8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c1fc: c2 07 bf fc ld [ %fp + -4 ], %g1 200c200: 80 a0 40 10 cmp %g1, %l0 200c204: 02 80 00 0d be 200c238 200c208: 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)) 200c20c: 80 a4 7f ff cmp %l1, -1 200c210: 32 80 00 09 bne,a 200c234 200c214: e2 26 40 00 st %l1, [ %i1 ] 200c218: 40 00 0c 79 call 200f3fc <__errno> 200c21c: b0 10 20 0a mov 0xa, %i0 200c220: c2 02 00 00 ld [ %o0 ], %g1 200c224: 80 a0 60 22 cmp %g1, 0x22 200c228: 02 80 00 04 be 200c238 200c22c: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c230: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 200c234: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200c238: 81 c7 e0 08 ret 200c23c: 81 e8 00 00 restore 0201c938 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c938: 9d e3 bf 98 save %sp, -104, %sp 201c93c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c940: 80 a6 60 00 cmp %i1, 0 201c944: 02 80 00 1e be 201c9bc 201c948: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c94c: 40 00 87 e3 call 203e8d8 <__errno> 201c950: 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 ); 201c954: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201c958: c0 22 00 00 clr [ %o0 ] *n = 0; 201c95c: 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 ); 201c960: 90 10 00 10 mov %l0, %o0 201c964: 40 00 a8 c9 call 2046c88 201c968: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201c96c: 80 a6 a0 00 cmp %i2, 0 201c970: 02 80 00 04 be 201c980 201c974: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c978: c2 07 bf fc ld [ %fp + -4 ], %g1 201c97c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c980: c2 07 bf fc ld [ %fp + -4 ], %g1 201c984: 80 a0 40 10 cmp %g1, %l0 201c988: 02 80 00 0d be 201c9bc 201c98c: 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)) 201c990: 80 a4 7f ff cmp %l1, -1 201c994: 32 80 00 09 bne,a 201c9b8 201c998: e2 26 40 00 st %l1, [ %i1 ] 201c99c: 40 00 87 cf call 203e8d8 <__errno> 201c9a0: b0 10 20 0a mov 0xa, %i0 201c9a4: c2 02 00 00 ld [ %o0 ], %g1 201c9a8: 80 a0 60 22 cmp %g1, 0x22 201c9ac: 02 80 00 04 be 201c9bc 201c9b0: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 201c9b4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c9b8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c9bc: 81 c7 e0 08 ret 201c9c0: 81 e8 00 00 restore 0200c240 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c240: 9d e3 bf 98 save %sp, -104, %sp 200c244: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c248: 80 a6 60 00 cmp %i1, 0 200c24c: 02 80 00 24 be 200c2dc 200c250: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c254: 40 00 0c 6a call 200f3fc <__errno> 200c258: 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 ); 200c25c: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200c260: c0 22 00 00 clr [ %o0 ] *n = 0; 200c264: c0 26 40 00 clr [ %i1 ] 200c268: 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 ); 200c26c: 90 10 00 10 mov %l0, %o0 200c270: 40 00 19 af call 201292c 200c274: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c278: 80 a6 a0 00 cmp %i2, 0 #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 ); 200c27c: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c280: 02 80 00 04 be 200c290 200c284: a4 10 00 09 mov %o1, %l2 *endptr = end; 200c288: c2 07 bf fc ld [ %fp + -4 ], %g1 200c28c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c290: c2 07 bf fc ld [ %fp + -4 ], %g1 200c294: 80 a0 40 10 cmp %g1, %l0 200c298: 02 80 00 11 be 200c2dc 200c29c: 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)) 200c2a0: 80 a4 7f ff cmp %l1, -1 200c2a4: 32 80 00 0c bne,a 200c2d4 200c2a8: e4 26 60 04 st %l2, [ %i1 + 4 ] 200c2ac: 80 a4 bf ff cmp %l2, -1 200c2b0: 32 80 00 09 bne,a 200c2d4 200c2b4: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200c2b8: 40 00 0c 51 call 200f3fc <__errno> 200c2bc: b0 10 20 0a mov 0xa, %i0 200c2c0: c2 02 00 00 ld [ %o0 ], %g1 200c2c4: 80 a0 60 22 cmp %g1, 0x22 200c2c8: 02 80 00 05 be 200c2dc 200c2cc: 01 00 00 00 nop /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200c2d0: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200c2d4: e2 26 40 00 st %l1, [ %i1 ] 200c2d8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200c2dc: 81 c7 e0 08 ret 200c2e0: 81 e8 00 00 restore 020042e0 : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 20042e0: 82 10 00 08 mov %o0, %g1 int baud_index; switch (termios_baud) { 20042e4: 80 a2 20 09 cmp %o0, 9 20042e8: 02 80 00 19 be 200434c 20042ec: 90 10 20 09 mov 9, %o0 20042f0: 80 a0 60 09 cmp %g1, 9 20042f4: 14 80 00 25 bg 2004388 20042f8: 80 a0 60 0e cmp %g1, 0xe 20042fc: 80 a0 60 04 cmp %g1, 4 2004300: 02 80 00 13 be 200434c 2004304: 90 10 20 04 mov 4, %o0 2004308: 80 a0 60 04 cmp %g1, 4 200430c: 14 80 00 12 bg 2004354 2004310: 80 a0 60 06 cmp %g1, 6 2004314: 80 a0 60 01 cmp %g1, 1 2004318: 02 80 00 0d be 200434c 200431c: 90 10 20 01 mov 1, %o0 2004320: 80 a0 60 01 cmp %g1, 1 2004324: 34 80 00 05 bg,a 2004338 2004328: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200432c: 80 a0 60 00 cmp %g1, 0 2004330: 10 80 00 3f b 200442c 2004334: 90 10 20 00 clr %o0 2004338: 02 80 00 05 be 200434c <== NOT EXECUTED 200433c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2004340: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2004344: 12 80 00 3c bne 2004434 <== NOT EXECUTED 2004348: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED 200434c: 81 c3 e0 08 retl <== NOT EXECUTED 2004350: 01 00 00 00 nop <== NOT EXECUTED 2004354: 02 bf ff fe be 200434c <== NOT EXECUTED 2004358: 90 10 20 06 mov 6, %o0 ! 6 <== NOT EXECUTED 200435c: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2004360: 06 bf ff fb bl 200434c <== NOT EXECUTED 2004364: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED 2004368: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED 200436c: 02 bf ff f8 be 200434c <== NOT EXECUTED 2004370: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED 2004374: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED 2004378: 12 80 00 2f bne 2004434 <== NOT EXECUTED 200437c: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED 2004380: 81 c3 e0 08 retl <== NOT EXECUTED 2004384: 01 00 00 00 nop <== NOT EXECUTED 2004388: 02 bf ff f1 be 200434c <== NOT EXECUTED 200438c: 90 10 20 0e mov 0xe, %o0 ! e <== NOT EXECUTED 2004390: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 2004394: 14 80 00 10 bg 20043d4 <== NOT EXECUTED 2004398: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED 200439c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 20043a0: 02 bf ff eb be 200434c <== NOT EXECUTED 20043a4: 90 10 20 0b mov 0xb, %o0 <== NOT EXECUTED 20043a8: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 20043ac: 06 bf ff e8 bl 200434c <== NOT EXECUTED 20043b0: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 20043b4: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED 20043b8: 02 bf ff e5 be 200434c <== NOT EXECUTED 20043bc: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED 20043c0: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 20043c4: 12 80 00 1c bne 2004434 <== NOT EXECUTED 20043c8: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED 20043cc: 81 c3 e0 08 retl <== NOT EXECUTED 20043d0: 01 00 00 00 nop <== NOT EXECUTED 20043d4: 86 10 a0 02 or %g2, 2, %g3 <== NOT EXECUTED 20043d8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20043dc: 02 bf ff dc be 200434c <== NOT EXECUTED 20043e0: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED 20043e4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20043e8: 34 80 00 0b bg,a 2004414 <== NOT EXECUTED 20043ec: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED 20043f0: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED 20043f4: 02 bf ff d6 be 200434c <== NOT EXECUTED 20043f8: 90 10 20 0f mov 0xf, %o0 <== NOT EXECUTED 20043fc: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED 2004400: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004404: 12 80 00 0c bne 2004434 <== NOT EXECUTED 2004408: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED 200440c: 81 c3 e0 08 retl <== NOT EXECUTED 2004410: 01 00 00 00 nop <== NOT EXECUTED 2004414: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004418: 02 bf ff cd be 200434c <== NOT EXECUTED 200441c: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED 2004420: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; 2004424: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 2004428: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200442c: 02 80 00 03 be 2004438 2004430: 01 00 00 00 nop case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; case B460800: baud_index = 19; break; 2004434: 90 10 3f ff mov -1, %o0 ! ffffffff default: baud_index = -1; break; } return baud_index; } 2004438: 81 c3 e0 08 retl 200443c: 01 00 00 00 nop 02002e14 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 2002e14: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 2002e18: d0 20 63 b4 st %o0, [ %g1 + 0x3b4 ] ! 201abb4 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 2002e1c: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 2002e20: 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; 2002e24: d2 20 63 b8 st %o1, [ %g1 + 0x3b8 ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 2002e28: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2002e2c: 81 c3 e0 08 retl <== NOT EXECUTED 2002e30: d4 20 63 bc st %o2, [ %g1 + 0x3bc ] ! 201abbc <== NOT EXECUTED 02004470 : } } rtems_status_code rtems_termios_close (void *arg) { 2004470: 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); 2004474: 03 00 80 6d sethi %hi(0x201b400), %g1 2004478: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 ! 201b42c rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 200447c: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004480: 92 10 20 00 clr %o1 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004484: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004488: 40 00 04 52 call 20055d0 200448c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2004490: 80 a2 20 00 cmp %o0, 0 2004494: 12 80 00 2c bne 2004544 2004498: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 200449c: c2 04 20 08 ld [ %l0 + 8 ], %g1 20044a0: 82 00 7f ff add %g1, -1, %g1 20044a4: 80 a0 60 00 cmp %g1, 0 20044a8: 12 80 00 5e bne 2004620 20044ac: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 20044b0: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 20044b4: 03 00 80 6c sethi %hi(0x201b000), %g1 20044b8: 85 28 a0 05 sll %g2, 5, %g2 20044bc: 82 10 61 74 or %g1, 0x174, %g1 20044c0: 82 00 40 02 add %g1, %g2, %g1 20044c4: c2 00 60 04 ld [ %g1 + 4 ], %g1 20044c8: 80 a0 60 00 cmp %g1, 0 20044cc: 22 80 00 06 be,a 20044e4 20044d0: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 20044d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20044d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 20044dc: 10 80 00 0b b 2004508 <== NOT EXECUTED 20044e0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 20044e4: 92 10 20 00 clr %o1 20044e8: 40 00 04 3a call 20055d0 20044ec: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 20044f0: 80 a2 20 00 cmp %o0, 0 20044f4: 12 80 00 14 bne 2004544 20044f8: 01 00 00 00 nop rtems_fatal_error_occurred (sc); } drainOutput (tty); 20044fc: 7f ff fd d0 call 2003c3c 2004500: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 2004504: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004508: 80 a0 60 02 cmp %g1, 2 200450c: 32 80 00 10 bne,a 200454c 2004510: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 2004514: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED 2004518: 40 00 02 ef call 20050d4 <== NOT EXECUTED 200451c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004520: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004524: 12 80 00 08 bne 2004544 <== NOT EXECUTED 2004528: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 200452c: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 2004530: 40 00 02 e9 call 20050d4 <== NOT EXECUTED 2004534: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004538: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200453c: 22 80 00 04 be,a 200454c <== NOT EXECUTED 2004540: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004544: 40 00 05 cc call 2005c74 <== NOT EXECUTED 2004548: 01 00 00 00 nop <== NOT EXECUTED } if (tty->device.lastClose) 200454c: 80 a0 60 00 cmp %g1, 0 2004550: 22 80 00 07 be,a 200456c 2004554: c4 04 00 00 ld [ %l0 ], %g2 (*tty->device.lastClose)(tty->major, tty->minor, arg); 2004558: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 200455c: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 2004560: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004564: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 2004568: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 200456c: 80 a0 a0 00 cmp %g2, 0 2004570: 12 80 00 08 bne 2004590 2004574: c2 04 20 04 ld [ %l0 + 4 ], %g1 rtems_termios_ttyTail = tty->back; 2004578: 05 00 80 6d sethi %hi(0x201b400), %g2 if ( rtems_termios_ttyTail != NULL ) { 200457c: 80 a0 60 00 cmp %g1, 0 2004580: 02 80 00 05 be 2004594 2004584: c2 20 a0 30 st %g1, [ %g2 + 0x30 ] rtems_termios_ttyTail->forw = NULL; 2004588: 10 80 00 03 b 2004594 <== NOT EXECUTED 200458c: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } } else { tty->forw->back = tty->back; 2004590: c2 20 a0 04 st %g1, [ %g2 + 4 ] } if (tty->back == NULL) { 2004594: c4 04 20 04 ld [ %l0 + 4 ], %g2 2004598: 80 a0 a0 00 cmp %g2, 0 200459c: 12 80 00 08 bne 20045bc 20045a0: c2 04 00 00 ld [ %l0 ], %g1 rtems_termios_ttyHead = tty->forw; 20045a4: 05 00 80 6d sethi %hi(0x201b400), %g2 if ( rtems_termios_ttyHead != NULL ) { 20045a8: 80 a0 60 00 cmp %g1, 0 20045ac: 02 80 00 05 be 20045c0 20045b0: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] rtems_termios_ttyHead->back = NULL; 20045b4: 10 80 00 03 b 20045c0 20045b8: c0 20 60 04 clr [ %g1 + 4 ] } } else { tty->back->forw = tty->forw; 20045bc: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 20045c0: 40 00 03 d6 call 2005518 20045c4: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 20045c8: 40 00 03 d4 call 2005518 20045cc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 20045d0: 40 00 03 d2 call 2005518 20045d4: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 20045d8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 20045dc: 80 a0 60 00 cmp %g1, 0 20045e0: 02 80 00 06 be 20045f8 20045e4: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 20045e8: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 20045ec: 80 a0 60 02 cmp %g1, 2 20045f0: 12 80 00 04 bne 2004600 20045f4: 01 00 00 00 nop rtems_semaphore_delete (tty->rawInBuf.Semaphore); 20045f8: 40 00 03 c8 call 2005518 <== NOT EXECUTED 20045fc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free (tty->rawInBuf.theBuf); 2004600: 40 00 17 78 call 200a3e0 2004604: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 2004608: 40 00 17 76 call 200a3e0 200460c: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 2004610: 40 00 17 74 call 200a3e0 2004614: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 2004618: 40 00 17 72 call 200a3e0 200461c: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 2004620: 03 00 80 6d sethi %hi(0x201b400), %g1 2004624: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 ! 201b42c 2004628: 40 00 04 31 call 20056ec 200462c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 2004630: 81 c7 e0 08 ret 2004634: 81 e8 00 00 restore 02003034 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2003034: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003038: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 200303c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003040: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 2003044: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2003048: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200304c: 12 80 00 0a bne 2003074 <== NOT EXECUTED 2003050: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 2003054: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2003058: 40 00 08 1f call 20050d4 <== NOT EXECUTED 200305c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2003060: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003064: 02 80 00 11 be 20030a8 <== NOT EXECUTED 2003068: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200306c: 40 00 0b 02 call 2005c74 <== NOT EXECUTED 2003070: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 2003074: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003078: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 200307c: 12 80 00 09 bne 20030a0 <== NOT EXECUTED 2003080: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2003084: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 201b228 <== NOT EXECUTED 2003088: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200308c: 02 80 00 07 be 20030a8 <== NOT EXECUTED 2003090: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2003094: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003098: 01 00 00 00 nop <== NOT EXECUTED 200309c: 30 80 00 03 b,a 20030a8 <== NOT EXECUTED } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 20030a0: 7f ff ff 6b call 2002e4c <== NOT EXECUTED 20030a4: 81 e8 00 00 restore <== NOT EXECUTED } } 20030a8: 81 c7 e0 08 ret <== NOT EXECUTED 20030ac: 81 e8 00 00 restore <== NOT EXECUTED 020030b0 : * 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) { 20030b0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 20030b4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 20030b8: 25 00 80 6c sethi %hi(0x201b000), %l2 <== NOT EXECUTED 20030bc: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20030c0: a4 14 a1 74 or %l2, 0x174, %l2 <== NOT EXECUTED 20030c4: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20030c8: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { 20030cc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 20030d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20030d4: 12 80 00 11 bne 2003118 <== NOT EXECUTED 20030d8: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; (*tty->device.write)(tty->minor, 20030dc: aa 06 20 4a add %i0, 0x4a, %l5 <== 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); 20030e0: a8 06 20 30 add %i0, 0x30, %l4 <== NOT EXECUTED 20030e4: a4 10 20 00 clr %l2 <== NOT EXECUTED 20030e8: 10 80 00 ad b 200339c <== NOT EXECUTED 20030ec: b0 10 20 00 clr %i0 <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; 20030f0: d0 0e 40 00 ldub [ %i1 ], %o0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 20030f4: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20030f8: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20030fc: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED 2003100: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; 2003104: b2 06 60 01 inc %i1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2003108: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED 200310c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED 2003110: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003114: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { 2003118: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200311c: 32 bf ff f5 bne,a 20030f0 <== NOT EXECUTED 2003120: 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 )) { 2003124: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 2003128: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200312c: 12 80 00 a6 bne 20033c4 <== NOT EXECUTED 2003130: 01 00 00 00 nop <== NOT EXECUTED 2003134: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 2003138: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200313c: 02 80 00 a2 be 20033c4 <== NOT EXECUTED 2003140: 01 00 00 00 nop <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003144: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 2003148: 9f c0 40 00 call %g1 <== NOT EXECUTED 200314c: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2003150: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2003154: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED 2003158: 81 c7 e0 08 ret <== NOT EXECUTED 200315c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2003160: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003164: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003168: 02 80 00 1b be 20031d4 <== NOT EXECUTED 200316c: e6 0e 40 00 ldub [ %i1 ], %l3 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 2003170: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED 2003174: 83 2c e0 18 sll %l3, 0x18, %g1 <== NOT EXECUTED 2003178: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200317c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003180: 12 80 00 0e bne 20031b8 <== NOT EXECUTED 2003184: c4 0c 20 49 ldub [ %l0 + 0x49 ], %g2 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 2003188: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 200318c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003190: 12 80 00 05 bne 20031a4 <== NOT EXECUTED 2003194: 01 00 00 00 nop <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 2003198: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200319c: 10 80 00 04 b 20031ac <== NOT EXECUTED 20031a0: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 20031a4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031a8: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED 20031ac: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 20031b0: 10 80 00 0c b 20031e0 <== NOT EXECUTED 20031b4: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 20031b8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 20031bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20031c0: 12 80 00 06 bne 20031d8 <== NOT EXECUTED 20031c4: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 20031c8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031cc: 10 bf ff f8 b 20031ac <== NOT EXECUTED 20031d0: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 20031d4: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED 20031d8: 02 80 00 1c be 2003248 <== NOT EXECUTED 20031dc: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 20031e0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031e4: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 20031e8: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 20031ec: 32 80 00 6b bne,a 2003398 <== NOT EXECUTED 20031f0: b2 06 60 01 inc %i1 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 20031f4: 7f ff fa c2 call 2001cfc <== NOT EXECUTED 20031f8: 01 00 00 00 nop <== NOT EXECUTED 20031fc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2003200: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2003204: 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; 2003208: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 200320c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2003210: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003214: 02 80 00 09 be 2003238 <== NOT EXECUTED 2003218: 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); 200321c: 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, 2003220: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 2003224: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003228: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 200322c: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 2003230: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003234: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 2003238: 7f ff fa b5 call 2001d0c <== NOT EXECUTED 200323c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003240: 10 80 00 56 b 2003398 <== NOT EXECUTED 2003244: b2 06 60 01 inc %i1 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 2003248: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 200324c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003250: 40 00 53 bd call 2018144 <.urem> <== NOT EXECUTED 2003254: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 2003258: 7f ff fa a9 call 2001cfc <== NOT EXECUTED 200325c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 2003260: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2003264: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003268: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 200326c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003270: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2003274: 40 00 53 b4 call 2018144 <.urem> <== NOT EXECUTED 2003278: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 200327c: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED 2003280: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003284: 08 80 00 2d bleu 2003338 <== NOT EXECUTED 2003288: 01 00 00 00 nop <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 200328c: 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) 2003290: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2003294: 12 80 00 29 bne 2003338 <== NOT EXECUTED 2003298: 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; 200329c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20032a0: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 20032a4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 20032a8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20032ac: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED 20032b0: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 20032b4: 12 80 00 13 bne 2003300 <== NOT EXECUTED 20032b8: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 20032bc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20032c0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20032c4: 12 80 00 06 bne 20032dc <== NOT EXECUTED 20032c8: 01 00 00 00 nop <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 20032cc: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 20032d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032d4: 12 80 00 19 bne 2003338 <== NOT EXECUTED 20032d8: 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; 20032dc: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 20032e0: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20032e4: 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; 20032e8: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 20032ec: 92 10 00 15 mov %l5, %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; 20032f0: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 20032f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20032f8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20032fc: 30 80 00 0f b,a 2003338 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 2003300: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003304: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 2003308: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 200330c: 12 80 00 0b bne 2003338 <== NOT EXECUTED 2003310: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2003314: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003318: 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; 200331c: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 2003320: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003324: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003328: 02 80 00 04 be 2003338 <== NOT EXECUTED 200332c: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 2003330: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003334: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2003338: 7f ff fa 75 call 2001d0c <== NOT EXECUTED 200333c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 2003340: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003344: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2003348: 32 80 00 04 bne,a 2003358 <== NOT EXECUTED 200334c: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED dropped++; 2003350: 10 80 00 11 b 2003394 <== NOT EXECUTED 2003354: b0 06 20 01 inc %i0 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; 2003358: e6 28 40 11 stb %l3, [ %g1 + %l1 ] <== 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 )) { 200335c: 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; 2003360: e2 24 20 60 st %l1, [ %l0 + 0x60 ] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2003364: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003368: 32 80 00 0c bne,a 2003398 <== NOT EXECUTED 200336c: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003370: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 2003374: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003378: 22 80 00 08 be,a 2003398 <== NOT EXECUTED 200337c: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003380: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 2003384: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003388: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 200338c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2003390: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003394: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003398: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 200339c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 20033a0: 12 bf ff 70 bne 2003160 <== NOT EXECUTED 20033a4: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20033a8: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20033ac: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20033b0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20033b4: 40 00 08 ce call 20056ec <== NOT EXECUTED 20033b8: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED return dropped; 20033bc: 81 c7 e0 08 ret <== NOT EXECUTED 20033c0: 81 e8 00 00 restore <== NOT EXECUTED } 20033c4: 81 c7 e0 08 ret <== NOT EXECUTED 20033c8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02002dc8 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2002dc8: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2002dcc: 19 00 80 6d sethi %hi(0x201b400), %o4 2002dd0: c2 03 20 2c ld [ %o4 + 0x2c ], %g1 ! 201b42c 2002dd4: 80 a0 60 00 cmp %g1, 0 2002dd8: 12 80 00 0d bne 2002e0c 2002ddc: 98 13 20 2c or %o4, 0x2c, %o4 sc = rtems_semaphore_create ( 2002de0: 11 15 14 9b sethi %hi(0x54526c00), %o0 2002de4: 92 10 20 01 mov 1, %o1 2002de8: 90 12 21 69 or %o0, 0x169, %o0 2002dec: 94 10 20 54 mov 0x54, %o2 2002df0: 40 00 09 56 call 2005348 2002df4: 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) 2002df8: 80 a2 20 00 cmp %o0, 0 2002dfc: 02 80 00 04 be 2002e0c 2002e00: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 2002e04: 40 00 0b 9c call 2005c74 <== NOT EXECUTED 2002e08: 01 00 00 00 nop <== NOT EXECUTED 2002e0c: 81 c7 e0 08 ret 2002e10: 81 e8 00 00 restore 0200406c : } } rtems_status_code rtems_termios_ioctl (void *arg) { 200406c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004070: c2 06 00 00 ld [ %i0 ], %g1 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 2004074: 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; 2004078: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 200407c: 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); 2004080: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 } } rtems_status_code rtems_termios_ioctl (void *arg) { 2004084: a2 10 00 18 mov %i0, %l1 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004088: 92 10 20 00 clr %o1 200408c: 40 00 05 51 call 20055d0 2004090: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 2004094: b0 92 20 00 orcc %o0, 0, %i0 2004098: 22 80 00 05 be,a 20040ac 200409c: c2 04 60 04 ld [ %l1 + 4 ], %g1 args->ioctl_return = sc; 20040a0: f0 24 60 0c st %i0, [ %l1 + 0xc ] <== NOT EXECUTED return sc; 20040a4: 81 c7 e0 08 ret <== NOT EXECUTED 20040a8: 81 e8 00 00 restore <== NOT EXECUTED } switch (args->command) { 20040ac: 80 a0 60 04 cmp %g1, 4 20040b0: 22 80 00 bd be,a 20043a4 20040b4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 20040b8: 18 80 00 0b bgu 20040e4 20040bc: 05 10 01 19 sethi %hi(0x40046400), %g2 20040c0: 80 a0 60 02 cmp %g1, 2 20040c4: 22 80 00 2c be,a 2004174 20040c8: d2 04 60 08 ld [ %l1 + 8 ], %o1 20040cc: 18 80 00 af bgu 2004388 20040d0: 80 a0 60 01 cmp %g1, 1 20040d4: 32 80 00 17 bne,a 2004130 20040d8: 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; 20040dc: 10 80 00 22 b 2004164 20040e0: d0 04 60 08 ld [ %l1 + 8 ], %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) { 20040e4: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED 20040e8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20040ec: 02 80 00 cf be 2004428 <== NOT EXECUTED 20040f0: 01 00 00 00 nop <== NOT EXECUTED 20040f4: 18 80 00 07 bgu 2004110 <== NOT EXECUTED 20040f8: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED 20040fc: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2004100: 32 80 00 0c bne,a 2004130 <== NOT EXECUTED 2004104: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 2004108: 10 80 00 a3 b 2004394 <== NOT EXECUTED 200410c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 2004110: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED 2004114: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004118: 02 80 00 c0 be 2004418 <== NOT EXECUTED 200411c: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED 2004120: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <== NOT EXECUTED 2004124: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004128: 02 80 00 a3 be 20043b4 <== NOT EXECUTED 200412c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 2004130: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 2004134: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 2004138: 82 10 61 74 or %g1, 0x174, %g1 <== NOT EXECUTED 200413c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2004140: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2004144: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004148: 02 80 00 c5 be 200445c <== NOT EXECUTED 200414c: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 2004150: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004154: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004158: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); 200415c: 10 80 00 c0 b 200445c <== NOT EXECUTED 2004160: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 2004164: 92 04 20 30 add %l0, 0x30, %o1 2004168: 40 00 2c 5e call 200f2e0 200416c: 94 10 20 24 mov 0x24, %o2 break; 2004170: 30 80 00 bb b,a 200445c case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 2004174: 90 04 20 30 add %l0, 0x30, %o0 2004178: 40 00 2c 5a call 200f2e0 200417c: 94 10 20 24 mov 0x24, %o2 /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 2004180: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004184: 80 88 62 00 btst 0x200, %g1 2004188: 02 80 00 20 be 2004208 200418c: 01 00 00 00 nop 2004190: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2004194: 80 88 64 00 btst 0x400, %g1 2004198: 12 80 00 1c bne 2004208 200419c: 01 00 00 00 nop !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 20041a0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041a4: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 20041a8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 20041ac: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041b0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20041b4: 02 80 00 15 be 2004208 <== NOT EXECUTED 20041b8: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 20041bc: 7f ff f6 d0 call 2001cfc <== NOT EXECUTED 20041c0: 01 00 00 00 nop <== NOT EXECUTED 20041c4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 20041c8: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20041cc: 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; 20041d0: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 20041d4: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20041d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041dc: 02 80 00 09 be 2004200 <== NOT EXECUTED 20041e0: 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); 20041e4: 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, 20041e8: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 20041ec: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20041f0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 20041f4: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 20041f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20041fc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 2004200: 7f ff f6 c3 call 2001d0c <== NOT EXECUTED 2004204: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 2004208: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 200420c: 80 88 64 00 btst 0x400, %g1 2004210: 02 80 00 0c be 2004240 2004214: 03 00 00 04 sethi %hi(0x1000), %g1 2004218: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 200421c: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 2004220: 12 80 00 08 bne 2004240 <== NOT EXECUTED 2004224: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 2004228: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200422c: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 2004230: 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); 2004234: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004238: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED 200423c: 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) && 2004240: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004244: 80 88 61 00 btst 0x100, %g1 2004248: 02 80 00 16 be 20042a0 200424c: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 2004250: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004254: 06 80 00 14 bl 20042a4 <== NOT EXECUTED 2004258: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 200425c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004260: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 2004264: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 2004268: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200426c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2004270: 02 80 00 08 be 2004290 <== NOT EXECUTED 2004274: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 2004278: 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) && 200427c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004280: 02 80 00 04 be 2004290 <== NOT EXECUTED 2004284: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 2004288: 9f c0 40 00 call %g1 <== NOT EXECUTED 200428c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 2004290: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004294: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 2004298: 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) { 200429c: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 20042a0: 80 a0 60 00 cmp %g1, 0 20042a4: 36 80 00 06 bge,a 20042bc 20042a8: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 tty->flow_ctrl |= FL_MDRTS; 20042ac: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20042b0: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 20042b4: 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) { 20042b8: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 20042bc: 03 00 00 04 sethi %hi(0x1000), %g1 20042c0: 80 88 80 01 btst %g2, %g1 20042c4: 22 80 00 06 be,a 20042dc 20042c8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 tty->flow_ctrl |= FL_MDXOF; 20042cc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20042d0: 82 10 64 00 or %g1, 0x400, %g1 <== NOT EXECUTED 20042d4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 20042d8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 20042dc: 80 88 64 00 btst 0x400, %g1 20042e0: 22 80 00 06 be,a 20042f8 20042e4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 20042e8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 20042ec: 82 10 62 00 or %g1, 0x200, %g1 20042f0: 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) { 20042f4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 20042f8: 80 88 60 02 btst 2, %g1 20042fc: 32 80 00 17 bne,a 2004358 2004300: c0 24 20 6c clr [ %l0 + 0x6c ] 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; 2004304: 40 00 02 e9 call 2004ea8 <== NOT EXECUTED 2004308: e4 0c 20 46 ldub [ %l0 + 0x46 ], %l2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 200430c: 40 00 4e a8 call 2017dac <.umul> <== NOT EXECUTED 2004310: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2004314: 40 00 4e e0 call 2017e94 <.udiv> <== NOT EXECUTED 2004318: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 200431c: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 2004320: d0 24 20 54 st %o0, [ %l0 + 0x54 ] <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 2004324: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004328: 02 80 00 08 be 2004348 <== NOT EXECUTED 200432c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 2004330: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004338: 12 80 00 09 bne 200435c <== NOT EXECUTED 200433c: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 2004340: 10 80 00 0a b 2004368 <== NOT EXECUTED 2004344: d0 24 20 74 st %o0, [ %l0 + 0x74 ] <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { 2004348: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200434c: 02 80 00 06 be 2004364 <== NOT EXECUTED 2004350: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 2004354: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 2004358: c0 24 20 70 clr [ %l0 + 0x70 ] tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 200435c: 10 80 00 03 b 2004368 2004360: c0 24 20 74 clr [ %l0 + 0x74 ] } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 2004364: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED } } } if (tty->device.setAttributes) 2004368: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 200436c: 80 a0 60 00 cmp %g1, 0 2004370: 02 80 00 3b be 200445c 2004374: 01 00 00 00 nop (*tty->device.setAttributes)(tty->minor, &tty->termios); 2004378: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 200437c: 9f c0 40 00 call %g1 2004380: 92 04 20 30 add %l0, 0x30, %o1 2004384: 30 80 00 36 b,a 200445c break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 2004388: 7f ff fe 2d call 2003c3c 200438c: 90 10 00 10 mov %l0, %o0 break; 2004390: 30 80 00 33 b,a 200445c case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 2004394: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED 2004398: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 200439c: 10 80 00 30 b 200445c <== NOT EXECUTED 20043a0: c2 24 20 d8 st %g1, [ %l0 + 0xd8 ] <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 20043a4: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED 20043a8: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 20043ac: 10 80 00 2c b 200445c <== NOT EXECUTED 20043b0: c2 24 20 e0 st %g1, [ %l0 + 0xe0 ] <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 20043b4: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 20043b8: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 20043bc: 82 10 61 74 or %g1, 0x174, %g1 <== NOT EXECUTED 20043c0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 20043c4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 20043c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043cc: 22 80 00 06 be,a 20043e4 <== NOT EXECUTED 20043d0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 20043d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20043d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20043dc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 20043e0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== 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) { 20043e4: 07 00 80 6c sethi %hi(0x201b000), %g3 <== 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); 20043e8: 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) { 20043ec: 86 10 e1 74 or %g3, 0x174, %g3 <== NOT EXECUTED 20043f0: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED 20043f4: c2 00 c0 01 ld [ %g3 + %g1 ], %g1 <== 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); 20043f8: c4 24 20 cc st %g2, [ %l0 + 0xcc ] <== 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) { 20043fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004400: 02 80 00 17 be 200445c <== NOT EXECUTED 2004404: c0 24 20 d0 clr [ %l0 + 0xd0 ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 2004408: 9f c0 40 00 call %g1 <== NOT EXECUTED 200440c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004410: 10 80 00 13 b 200445c <== NOT EXECUTED 2004414: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 2004418: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED 200441c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED break; 2004420: 10 80 00 0f b 200445c <== NOT EXECUTED 2004424: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 2004428: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED 200442c: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 2004430: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED 2004434: 3c 80 00 05 bpos,a 2004448 <== NOT EXECUTED 2004438: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 200443c: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 2004440: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 2004444: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED 2004448: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED 200444c: c4 04 60 08 ld [ %l1 + 8 ], %g2 <== NOT EXECUTED 2004450: 86 21 00 03 sub %g4, %g3, %g3 <== NOT EXECUTED 2004454: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED 2004458: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 200445c: 40 00 04 a4 call 20056ec 2004460: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 args->ioctl_return = sc; 2004464: f0 24 60 0c st %i0, [ %l1 + 0xc ] return sc; } 2004468: 81 c7 e0 08 ret 200446c: 81 e8 00 00 restore 02004604 : #include int rtems_termios_number_to_baud( int32_t baud ) { 2004604: 82 10 00 08 mov %o0, %g1 int termios_baud; switch (baud) { 2004608: 80 a2 24 b0 cmp %o0, 0x4b0 200460c: 02 80 00 19 be 2004670 2004610: 90 10 20 09 mov 9, %o0 2004614: 80 a0 64 b0 cmp %g1, 0x4b0 2004618: 14 80 00 29 bg 20046bc 200461c: 05 00 00 12 sethi %hi(0x4800), %g2 2004620: 80 a0 60 86 cmp %g1, 0x86 2004624: 02 80 00 13 be 2004670 2004628: 90 10 20 04 mov 4, %o0 200462c: 80 a0 60 86 cmp %g1, 0x86 2004630: 14 80 00 12 bg 2004678 2004634: 80 a0 60 c8 cmp %g1, 0xc8 2004638: 80 a0 60 32 cmp %g1, 0x32 200463c: 02 80 00 0d be 2004670 2004640: 90 10 20 01 mov 1, %o0 2004644: 80 a0 60 32 cmp %g1, 0x32 2004648: 34 80 00 05 bg,a 200465c 200464c: 80 a0 60 4b cmp %g1, 0x4b 2004650: 80 a0 60 00 cmp %g1, 0 2004654: 10 80 00 52 b 200479c 2004658: 90 10 20 00 clr %o0 200465c: 02 80 00 05 be 2004670 2004660: 90 10 20 02 mov 2, %o0 2004664: 80 a0 60 6e cmp %g1, 0x6e 2004668: 12 80 00 4f bne 20047a4 200466c: 90 10 20 03 mov 3, %o0 2004670: 81 c3 e0 08 retl 2004674: 01 00 00 00 nop 2004678: 02 bf ff fe be 2004670 200467c: 90 10 20 06 mov 6, %o0 ! 6 2004680: 80 a0 60 c8 cmp %g1, 0xc8 2004684: 14 80 00 07 bg 20046a0 2004688: 80 a0 61 2c cmp %g1, 0x12c 200468c: 80 a0 60 96 cmp %g1, 0x96 2004690: 12 80 00 45 bne 20047a4 2004694: 90 10 20 05 mov 5, %o0 2004698: 81 c3 e0 08 retl 200469c: 01 00 00 00 nop 20046a0: 02 bf ff f4 be 2004670 20046a4: 90 10 20 07 mov 7, %o0 ! 7 20046a8: 80 a0 62 58 cmp %g1, 0x258 20046ac: 12 80 00 3e bne 20047a4 20046b0: 90 10 20 08 mov 8, %o0 20046b4: 81 c3 e0 08 retl 20046b8: 01 00 00 00 nop 20046bc: 84 10 a3 00 or %g2, 0x300, %g2 20046c0: 80 a0 40 02 cmp %g1, %g2 20046c4: 02 bf ff eb be 2004670 20046c8: 90 10 20 0e mov 0xe, %o0 20046cc: 80 a0 40 02 cmp %g1, %g2 20046d0: 14 80 00 18 bg 2004730 20046d4: 07 00 00 70 sethi %hi(0x1c000), %g3 20046d8: 80 a0 69 60 cmp %g1, 0x960 20046dc: 02 bf ff e5 be 2004670 20046e0: 90 10 20 0b mov 0xb, %o0 20046e4: 80 a0 69 60 cmp %g1, 0x960 20046e8: 34 80 00 07 bg,a 2004704 20046ec: 05 00 00 04 sethi %hi(0x1000), %g2 20046f0: 80 a0 67 08 cmp %g1, 0x708 20046f4: 12 80 00 2c bne 20047a4 20046f8: 90 10 20 0a mov 0xa, %o0 20046fc: 81 c3 e0 08 retl 2004700: 01 00 00 00 nop 2004704: 84 10 a2 c0 or %g2, 0x2c0, %g2 2004708: 80 a0 40 02 cmp %g1, %g2 200470c: 02 bf ff d9 be 2004670 2004710: 90 10 20 0c mov 0xc, %o0 2004714: 05 00 00 09 sethi %hi(0x2400), %g2 2004718: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 200471c: 80 a0 40 02 cmp %g1, %g2 2004720: 12 80 00 21 bne 20047a4 2004724: 90 10 20 0d mov 0xd, %o0 2004728: 81 c3 e0 08 retl 200472c: 01 00 00 00 nop 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; 2004730: 05 00 00 04 sethi %hi(0x1000), %g2 int32_t baud ) { int termios_baud; switch (baud) { 2004734: 86 10 e2 00 or %g3, 0x200, %g3 2004738: 80 a0 40 03 cmp %g1, %g3 200473c: 02 bf ff cd be 2004670 2004740: 90 10 a0 02 or %g2, 2, %o0 2004744: 80 a0 40 03 cmp %g1, %g3 2004748: 14 80 00 0f bg 2004784 200474c: 07 00 00 e1 sethi %hi(0x38400), %g3 2004750: 07 00 00 25 sethi %hi(0x9400), %g3 2004754: 86 10 e2 00 or %g3, 0x200, %g3 ! 9600 2004758: 80 a0 40 03 cmp %g1, %g3 200475c: 02 bf ff c5 be 2004670 2004760: 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; 2004764: 90 10 a0 01 or %g2, 1, %o0 int32_t baud ) { int termios_baud; switch (baud) { 2004768: 05 00 00 38 sethi %hi(0xe000), %g2 200476c: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 2004770: 80 a0 40 02 cmp %g1, %g2 2004774: 32 bf ff bf bne,a 2004670 2004778: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 200477c: 81 c3 e0 08 retl 2004780: 01 00 00 00 nop 2004784: 80 a0 40 03 cmp %g1, %g3 2004788: 02 bf ff ba be 2004670 200478c: 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; 2004790: 90 10 a0 04 or %g2, 4, %o0 int32_t baud ) { int termios_baud; switch (baud) { 2004794: 05 00 01 c2 sethi %hi(0x70800), %g2 2004798: 80 a0 40 02 cmp %g1, %g2 200479c: 02 80 00 03 be 20047a8 20047a0: 01 00 00 00 nop 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; case 460800: termios_baud = B460800; break; 20047a4: 90 10 3f ff mov -1, %o0 ! ffffffff default: termios_baud = -1; break; } return termios_baud; } 20047a8: 81 c3 e0 08 retl 20047ac: 01 00 00 00 nop 02004638 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 2004638: 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, 200463c: 03 00 80 6d sethi %hi(0x201b400), %g1 2004640: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 ! 201b42c 2004644: 92 10 20 00 clr %o1 2004648: 40 00 03 e2 call 20055d0 200464c: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2004650: a0 92 20 00 orcc %o0, 0, %l0 2004654: 12 80 01 05 bne 2004a68 2004658: 03 00 80 6d sethi %hi(0x201b400), %g1 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 200465c: 10 80 00 0a b 2004684 2004660: e4 00 60 34 ld [ %g1 + 0x34 ], %l2 ! 201b434 if ((tty->major == major) && (tty->minor == minor)) 2004664: 80 a0 40 18 cmp %g1, %i0 2004668: 32 80 00 07 bne,a 2004684 200466c: e4 04 80 00 ld [ %l2 ], %l2 2004670: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1 2004674: 80 a0 40 19 cmp %g1, %i1 2004678: 22 80 00 d6 be,a 20049d0 200467c: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 2004680: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED 2004684: 80 a4 a0 00 cmp %l2, 0 2004688: 32 bf ff f7 bne,a 2004664 200468c: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004690: 10 80 00 f8 b 2004a70 2004694: 90 10 20 01 mov 1, %o0 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 2004698: 03 00 80 6a sethi %hi(0x201a800), %g1 200469c: c2 00 63 b8 ld [ %g1 + 0x3b8 ], %g1 ! 201abb8 20046a0: c2 24 a0 64 st %g1, [ %l2 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 20046a4: d0 04 a0 64 ld [ %l2 + 0x64 ], %o0 20046a8: 40 00 18 b0 call 200a968 20046ac: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 20046b0: 80 a2 20 00 cmp %o0, 0 20046b4: 12 80 00 08 bne 20046d4 20046b8: d0 24 a0 58 st %o0, [ %l2 + 0x58 ] free(tty); 20046bc: 40 00 17 49 call 200a3e0 <== NOT EXECUTED 20046c0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 20046c4: 03 00 80 6d sethi %hi(0x201b400), %g1 <== NOT EXECUTED 20046c8: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED 20046cc: 10 80 00 e5 b 2004a60 <== NOT EXECUTED 20046d0: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 20046d4: 03 00 80 6a sethi %hi(0x201a800), %g1 20046d8: c2 00 63 bc ld [ %g1 + 0x3bc ], %g1 ! 201abbc 20046dc: c2 24 a0 88 st %g1, [ %l2 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 20046e0: d0 04 a0 88 ld [ %l2 + 0x88 ], %o0 20046e4: 40 00 18 a1 call 200a968 20046e8: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 20046ec: 80 a2 20 00 cmp %o0, 0 20046f0: 12 80 00 05 bne 2004704 20046f4: d0 24 a0 7c st %o0, [ %l2 + 0x7c ] free((void *)(tty->rawInBuf.theBuf)); 20046f8: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 20046fc: 10 80 00 0c b 200472c <== NOT EXECUTED 2004700: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 2004704: 03 00 80 6a sethi %hi(0x201a800), %g1 2004708: 40 00 18 98 call 200a968 200470c: d0 00 63 b4 ld [ %g1 + 0x3b4 ], %o0 ! 201abb4 if (tty->cbuf == NULL) { 2004710: 80 a2 20 00 cmp %o0, 0 2004714: 12 80 00 0c bne 2004744 2004718: d0 24 a0 1c st %o0, [ %l2 + 0x1c ] free((void *)(tty->rawOutBuf.theBuf)); 200471c: d0 04 a0 7c ld [ %l2 + 0x7c ], %o0 <== NOT EXECUTED 2004720: 40 00 17 30 call 200a3e0 <== NOT EXECUTED 2004724: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 2004728: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED 200472c: 40 00 17 2d call 200a3e0 <== NOT EXECUTED 2004730: 01 00 00 00 nop <== NOT EXECUTED free(tty); 2004734: 40 00 17 2b call 200a3e0 <== NOT EXECUTED 2004738: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 200473c: 10 80 00 c8 b 2004a5c <== NOT EXECUTED 2004740: 03 00 80 6d sethi %hi(0x201b400), %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004744: 03 00 80 6d sethi %hi(0x201b400), %g1 2004748: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 201b434 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 200474c: c0 24 a0 d4 clr [ %l2 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 2004750: c0 24 a0 d8 clr [ %l2 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 2004754: c0 24 a0 dc clr [ %l2 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 2004758: c0 24 a0 e0 clr [ %l2 + 0xe0 ] tty->tty_rcvwakeup = 0; 200475c: c0 24 a0 e4 clr [ %l2 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004760: c2 24 80 00 st %g1, [ %l2 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 2004764: 80 a0 60 00 cmp %g1, 0 2004768: 02 80 00 03 be 2004774 200476c: c0 24 a0 04 clr [ %l2 + 4 ] rtems_termios_ttyHead->back = tty; 2004770: e4 20 60 04 st %l2, [ %g1 + 4 ] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 2004774: 03 00 80 6d sethi %hi(0x201b400), %g1 2004778: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 ! 201b430 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 200477c: 07 00 80 6d sethi %hi(0x201b400), %g3 if (rtems_termios_ttyTail == NULL) 2004780: 80 a0 a0 00 cmp %g2, 0 2004784: 12 80 00 03 bne 2004790 2004788: e2 20 e0 34 st %l1, [ %g3 + 0x34 ] rtems_termios_ttyTail = tty; 200478c: e2 20 60 30 st %l1, [ %g1 + 0x30 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004790: 27 00 80 6a sethi %hi(0x201a800), %l3 2004794: d0 4c e3 c0 ldsb [ %l3 + 0x3c0 ], %o0 ! 201abc0 2004798: 03 15 14 9a sethi %hi(0x54526800), %g1 200479c: 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; 20047a0: f2 24 60 10 st %i1, [ %l1 + 0x10 ] tty->major = major; 20047a4: f0 24 60 0c st %i0, [ %l1 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 20047a8: 90 12 00 01 or %o0, %g1, %o0 20047ac: 92 10 20 01 mov 1, %o1 20047b0: 94 10 20 54 mov 0x54, %o2 20047b4: 96 10 20 00 clr %o3 20047b8: 40 00 02 e4 call 2005348 20047bc: 98 04 60 14 add %l1, 0x14, %o4 rtems_build_name ('T', 'R', 'i', c), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->isem); if (sc != RTEMS_SUCCESSFUL) 20047c0: 80 a2 20 00 cmp %o0, 0 20047c4: 12 80 00 a3 bne 2004a50 20047c8: 03 15 14 9b sethi %hi(0x54526c00), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 20047cc: d0 4c e3 c0 ldsb [ %l3 + 0x3c0 ], %o0 20047d0: 82 10 63 00 or %g1, 0x300, %g1 20047d4: 92 10 20 01 mov 1, %o1 20047d8: 90 12 00 01 or %o0, %g1, %o0 20047dc: 94 10 20 54 mov 0x54, %o2 20047e0: 96 10 20 00 clr %o3 20047e4: 40 00 02 d9 call 2005348 20047e8: 98 04 60 18 add %l1, 0x18, %o4 rtems_build_name ('T', 'R', 'o', c), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->osem); if (sc != RTEMS_SUCCESSFUL) 20047ec: 80 a2 20 00 cmp %o0, 0 20047f0: 12 80 00 98 bne 2004a50 20047f4: 03 15 14 9e sethi %hi(0x54527800), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 20047f8: d0 4c e3 c0 ldsb [ %l3 + 0x3c0 ], %o0 20047fc: 92 10 20 00 clr %o1 2004800: 90 12 00 01 or %o0, %g1, %o0 2004804: 94 10 20 20 mov 0x20, %o2 2004808: 96 10 20 00 clr %o3 200480c: 40 00 02 cf call 2005348 2004810: 98 04 60 8c add %l1, 0x8c, %o4 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 2004814: 80 a2 20 00 cmp %o0, 0 2004818: 12 80 00 8e bne 2004a50 200481c: 92 10 00 1b mov %i3, %o1 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 2004820: c0 24 60 94 clr [ %l1 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 2004824: 90 04 60 98 add %l1, 0x98, %o0 2004828: 40 00 2a ae call 200f2e0 200482c: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004830: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 2004834: 80 a0 60 02 cmp %g1, 2 2004838: 32 80 00 1a bne,a 20048a0 200483c: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 sc = rtems_task_create ( 2004840: d0 4c e3 c0 ldsb [ %l3 + 0x3c0 ], %o0 <== NOT EXECUTED 2004844: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED 2004848: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 200484c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2004850: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004854: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004858: 98 10 20 00 clr %o4 <== NOT EXECUTED 200485c: 40 00 03 d0 call 200579c <== NOT EXECUTED 2004860: 9a 04 60 c8 add %l1, 0xc8, %o5 <== NOT EXECUTED TERMIOS_TXTASK_STACKSIZE, RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, &tty->txTaskId); if (sc != RTEMS_SUCCESSFUL) 2004864: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004868: 12 80 00 7a bne 2004a50 <== NOT EXECUTED 200486c: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 2004870: d0 4c e3 c0 ldsb [ %l3 + 0x3c0 ], %o0 <== NOT EXECUTED 2004874: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 2004878: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200487c: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004880: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004884: 98 10 20 00 clr %o4 <== NOT EXECUTED 2004888: 40 00 03 c5 call 200579c <== NOT EXECUTED 200488c: 9a 04 60 c4 add %l1, 0xc4, %o5 <== NOT EXECUTED TERMIOS_RXTASK_STACKSIZE, RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) 2004890: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004894: 12 80 00 6f bne 2004a50 <== NOT EXECUTED 2004898: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 200489c: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 <== NOT EXECUTED 20048a0: 80 a0 60 00 cmp %g1, 0 20048a4: 02 80 00 07 be 20048c0 20048a8: 03 00 80 6a sethi %hi(0x201a800), %g1 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 20048ac: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 20048b0: 80 a0 60 02 cmp %g1, 2 20048b4: 12 80 00 0f bne 20048f0 20048b8: 84 10 20 03 mov 3, %g2 sc = rtems_semaphore_create ( 20048bc: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 20048c0: d0 48 63 c0 ldsb [ %g1 + 0x3c0 ], %o0 ! 201abc0 <== NOT EXECUTED 20048c4: 03 15 14 9c sethi %hi(0x54527000), %g1 <== NOT EXECUTED 20048c8: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 <== NOT EXECUTED 20048cc: 92 10 20 00 clr %o1 <== NOT EXECUTED 20048d0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 20048d4: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 20048d8: 96 10 20 00 clr %o3 <== NOT EXECUTED 20048dc: 40 00 02 9b call 2005348 <== NOT EXECUTED 20048e0: 98 04 60 68 add %l1, 0x68, %o4 <== NOT EXECUTED rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 20048e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20048e8: 12 80 00 5a bne 2004a50 <== NOT EXECUTED 20048ec: 84 10 20 03 mov 3, %g2 <== NOT EXECUTED tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 20048f0: c4 2c 60 41 stb %g2, [ %l1 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 20048f4: 84 10 20 1c mov 0x1c, %g2 20048f8: c4 2c 60 42 stb %g2, [ %l1 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 20048fc: 84 10 20 7f mov 0x7f, %g2 2004900: c4 2c 60 43 stb %g2, [ %l1 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 2004904: 84 10 20 15 mov 0x15, %g2 2004908: c4 2c 60 44 stb %g2, [ %l1 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 200490c: 84 10 20 04 mov 4, %g2 2004910: c4 2c 60 45 stb %g2, [ %l1 + 0x45 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 2004914: 84 10 20 11 mov 0x11, %g2 2004918: c4 2c 60 49 stb %g2, [ %l1 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 200491c: 84 10 20 13 mov 0x13, %g2 2004920: c4 2c 60 4a stb %g2, [ %l1 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 2004924: 84 10 20 1a mov 0x1a, %g2 2004928: c4 2c 60 4b stb %g2, [ %l1 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 200492c: 84 10 20 12 mov 0x12, %g2 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; 2004930: c0 24 60 b8 clr [ %l1 + 0xb8 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 2004934: c4 2c 60 4d stb %g2, [ %l1 + 0x4d ] /* 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; 2004938: c8 04 60 64 ld [ %l1 + 0x64 ], %g4 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'; 200493c: 84 10 20 0f mov 0xf, %g2 2004940: c4 2c 60 4e stb %g2, [ %l1 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 2004944: 84 10 20 17 mov 0x17, %g2 /* 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; 2004948: 89 31 20 01 srl %g4, 1, %g4 tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 200494c: c4 2c 60 4f stb %g2, [ %l1 + 0x4f ] tty->termios.c_cc[VLNEXT] = '\026'; 2004950: 84 10 20 16 mov 0x16, %g2 tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; 2004954: c0 2c 60 4c clrb [ %l1 + 0x4c ] tty->termios.c_cc[VEOL2] = '\000'; 2004958: c0 2c 60 51 clrb [ %l1 + 0x51 ] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 200495c: 03 00 80 6a sethi %hi(0x201a800), %g1 tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; 2004960: c4 2c 60 50 stb %g2, [ %l1 + 0x50 ] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 2004964: c4 08 63 c0 ldub [ %g1 + 0x3c0 ], %g2 /* 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; 2004968: c8 24 60 bc st %g4, [ %l1 + 0xbc ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 200496c: 09 00 00 09 sethi %hi(0x2400), %g4 2004970: 88 11 21 02 or %g4, 0x102, %g4 ! 2502 2004974: c8 24 60 30 st %g4, [ %l1 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004978: 09 00 00 06 sethi %hi(0x1800), %g4 200497c: 88 11 20 05 or %g4, 5, %g4 ! 1805 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; 2004980: c6 04 60 64 ld [ %l1 + 0x64 ], %g3 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004984: c8 24 60 34 st %g4, [ %l1 + 0x34 ] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 2004988: 88 10 28 bd mov 0x8bd, %g4 200498c: c8 24 60 38 st %g4, [ %l1 + 0x38 ] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 2004990: 09 00 00 20 sethi %hi(0x8000), %g4 2004994: 88 11 22 3b or %g4, 0x23b, %g4 ! 823b 2004998: c8 24 60 3c st %g4, [ %l1 + 0x3c ] 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; 200499c: 89 28 e0 01 sll %g3, 1, %g4 20049a0: 86 01 00 03 add %g4, %g3, %g3 20049a4: 87 30 e0 02 srl %g3, 2, %g3 20049a8: c6 24 60 c0 st %g3, [ %l1 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 20049ac: 86 00 a0 01 add %g2, 1, %g3 20049b0: 85 28 a0 18 sll %g2, 0x18, %g2 20049b4: 85 38 a0 18 sra %g2, 0x18, %g2 20049b8: 80 a0 a0 7a cmp %g2, 0x7a 20049bc: 12 80 00 04 bne 20049cc 20049c0: c6 28 63 c0 stb %g3, [ %g1 + 0x3c0 ] c = 'a'; 20049c4: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 20049c8: c4 28 63 c0 stb %g2, [ %g1 + 0x3c0 ] <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { 20049cc: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 20049d0: c6 06 80 00 ld [ %i2 ], %g3 if (!tty->refcount++) { 20049d4: 84 00 60 01 add %g1, 1, %g2 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 20049d8: e4 20 e0 38 st %l2, [ %g3 + 0x38 ] if (!tty->refcount++) { 20049dc: 80 a0 60 00 cmp %g1, 0 20049e0: 12 80 00 1e bne 2004a58 20049e4: c4 24 a0 08 st %g2, [ %l2 + 8 ] if (tty->device.firstOpen) 20049e8: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1 20049ec: 80 a0 60 00 cmp %g1, 0 20049f0: 02 80 00 05 be 2004a04 20049f4: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 20049f8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20049fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004a00: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004a04: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1 2004a08: 80 a0 60 02 cmp %g1, 2 2004a0c: 12 80 00 14 bne 2004a5c 2004a10: 03 00 80 6d sethi %hi(0x201b400), %g1 sc = rtems_task_start(tty->rxTaskId, 2004a14: d0 04 a0 c4 ld [ %l2 + 0xc4 ], %o0 <== NOT EXECUTED 2004a18: 13 00 80 12 sethi %hi(0x2004800), %o1 <== NOT EXECUTED 2004a1c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2004a20: 40 00 04 05 call 2005a34 <== NOT EXECUTED 2004a24: 92 12 63 08 or %o1, 0x308, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004a28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004a2c: 12 80 00 09 bne 2004a50 <== NOT EXECUTED 2004a30: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 2004a34: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED 2004a38: 13 00 80 12 sethi %hi(0x2004800), %o1 <== NOT EXECUTED 2004a3c: 40 00 03 fe call 2005a34 <== NOT EXECUTED 2004a40: 92 12 62 8c or %o1, 0x28c, %o1 ! 2004a8c <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004a44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004a48: 02 80 00 05 be 2004a5c <== NOT EXECUTED 2004a4c: 03 00 80 6d sethi %hi(0x201b400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004a50: 40 00 04 89 call 2005c74 <== NOT EXECUTED 2004a54: 01 00 00 00 nop <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 2004a58: 03 00 80 6d sethi %hi(0x201b400), %g1 2004a5c: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 ! 201b42c 2004a60: 40 00 03 23 call 20056ec 2004a64: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } 2004a68: 81 c7 e0 08 ret 2004a6c: 91 e8 00 10 restore %g0, %l0, %o0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004a70: 40 00 16 16 call 200a2c8 2004a74: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 2004a78: a4 92 20 00 orcc %o0, 0, %l2 2004a7c: 12 bf ff 07 bne 2004698 2004a80: a2 10 00 12 mov %l2, %l1 */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 2004a84: 10 bf ff 11 b 20046c8 <== NOT EXECUTED 2004a88: 03 00 80 6d sethi %hi(0x201b400), %g1 <== NOT EXECUTED 020033cc : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20033cc: 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) { 20033d0: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20033d4: 92 10 00 18 mov %i0, %o1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 20033d8: 80 a0 60 00 cmp %g1, 0 20033dc: 12 80 00 08 bne 20033fc 20033e0: a2 10 00 18 mov %i0, %l1 (*tty->device.write)(tty->minor, (void *)buf, len); 20033e4: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 20033e8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 20033ec: 9f c0 40 00 call %g1 20033f0: 94 10 00 19 mov %i1, %o2 return; 20033f4: 81 c7 e0 08 ret 20033f8: 81 e8 00 00 restore } newHead = tty->rawOutBuf.Head; 20033fc: e0 06 a0 80 ld [ %i2 + 0x80 ], %l0 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 2003400: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 2003404: 10 80 00 39 b 20034e8 <== NOT EXECUTED 2003408: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 200340c: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED 2003410: 40 00 53 4d call 2018144 <.urem> <== NOT EXECUTED 2003414: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED rtems_interrupt_disable (level); 2003418: 7f ff fa 39 call 2001cfc <== NOT EXECUTED 200341c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2003420: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 2003424: 30 80 00 0f b,a 2003460 <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 2003428: 7f ff fa 39 call 2001d0c <== NOT EXECUTED 200342c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003430: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED 2003434: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003438: 40 00 08 66 call 20055d0 <== NOT EXECUTED 200343c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003440: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003444: 02 80 00 04 be 2003454 <== NOT EXECUTED 2003448: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200344c: 40 00 0a 0a call 2005c74 <== NOT EXECUTED 2003450: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 2003454: 7f ff fa 2a call 2001cfc <== NOT EXECUTED 2003458: 01 00 00 00 nop <== NOT EXECUTED 200345c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { 2003460: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED 2003464: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 2003468: 22 bf ff f0 be,a 2003428 <== NOT EXECUTED 200346c: e8 26 a0 94 st %l4, [ %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++; 2003470: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 <== NOT EXECUTED 2003474: c6 0c 40 00 ldub [ %l1 ], %g3 <== NOT EXECUTED 2003478: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 <== NOT EXECUTED 200347c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2003480: c2 06 a0 94 ld [ %i2 + 0x94 ], %g1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; 2003484: e0 26 a0 80 st %l0, [ %i2 + 0x80 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 2003488: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200348c: 32 80 00 14 bne,a 20034dc <== NOT EXECUTED 2003490: a2 04 60 01 inc %l1 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2003494: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 2003498: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 200349c: 12 80 00 0b bne 20034c8 <== NOT EXECUTED 20034a0: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 20034a4: c4 06 a0 84 ld [ %i2 + 0x84 ], %g2 <== NOT EXECUTED tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, 20034a8: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 <== NOT EXECUTED 20034ac: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED 20034b0: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 20034b4: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 20034b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20034bc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 20034c0: 10 80 00 06 b 20034d8 <== NOT EXECUTED 20034c4: e6 26 a0 94 st %l3, [ %i2 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; 20034c8: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 20034cc: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 20034d0: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 20034d4: e6 26 a0 94 st %l3, [ %i2 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 20034d8: a2 04 60 01 inc %l1 <== NOT EXECUTED /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); 20034dc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20034e0: 7f ff fa 0b call 2001d0c <== NOT EXECUTED 20034e4: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 20034e8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20034ec: 12 bf ff c8 bne 200340c <== NOT EXECUTED 20034f0: 01 00 00 00 nop <== NOT EXECUTED 20034f4: 81 c7 e0 08 ret <== NOT EXECUTED 20034f8: 81 e8 00 00 restore <== NOT EXECUTED 02003cb8 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003cb8: 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; 2003cbc: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 2003cc0: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003cc4: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 2003cc8: ea 06 20 10 ld [ %i0 + 0x10 ], %l5 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003ccc: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003cd0: a2 10 00 18 mov %i0, %l1 <== 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); 2003cd4: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003cd8: 40 00 06 3e call 20055d0 <== NOT EXECUTED 2003cdc: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2003ce0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2003ce4: 12 80 00 10 bne 2003d24 <== NOT EXECUTED 2003ce8: 05 00 80 6c sethi %hi(0x201b000), %g2 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 2003cec: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 2003cf0: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2003cf4: 84 10 a1 74 or %g2, 0x174, %g2 <== NOT EXECUTED 2003cf8: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED 2003cfc: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 2003d00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d04: 02 80 00 0a be 2003d2c <== NOT EXECUTED 2003d08: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 2003d0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003d10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003d14: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2003d18: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 2003d1c: 40 00 06 74 call 20056ec <== NOT EXECUTED 2003d20: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED return sc; 2003d24: 81 c7 e0 08 ret <== NOT EXECUTED 2003d28: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->cindex == tty->ccount) { 2003d2c: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2003d30: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003d34: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003d38: 12 80 00 be bne 2004030 <== NOT EXECUTED 2003d3c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2003d40: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 <== NOT EXECUTED if (tty->device.pollRead != NULL 2003d44: 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; 2003d48: 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; 2003d4c: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2003d50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d54: 02 80 00 4c be 2003e84 <== NOT EXECUTED 2003d58: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2003d5c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 2003d60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d64: 12 80 00 49 bne 2003e88 <== NOT EXECUTED 2003d68: 2f 00 80 6a sethi %hi(0x201a800), %l7 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2003d6c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003d70: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003d74: 02 80 00 13 be 2003dc0 <== NOT EXECUTED 2003d78: 01 00 00 00 nop <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003d7c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003d80: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003d84: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2003d88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003d8c: 16 80 00 06 bge 2003da4 <== NOT EXECUTED 2003d90: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); 2003d94: 40 00 07 44 call 2005aa4 <== NOT EXECUTED 2003d98: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED { int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003d9c: 10 bf ff f9 b 2003d80 <== NOT EXECUTED 2003da0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) 2003da4: 7f ff ff 5f call 2003b20 <== NOT EXECUTED 2003da8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003dac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003db0: 22 bf ff f4 be,a 2003d80 <== NOT EXECUTED 2003db4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003db8: 10 80 00 9e b 2004030 <== NOT EXECUTED 2003dbc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 2003dc0: 40 00 04 42 call 2004ec8 <== NOT EXECUTED 2003dc4: 01 00 00 00 nop <== NOT EXECUTED 2003dc8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003dcc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003dd0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003dd4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2003dd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003ddc: 36 80 00 1c bge,a 2003e4c <== NOT EXECUTED 2003de0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 2003de4: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 2003de8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003dec: 02 80 00 0a be 2003e14 <== NOT EXECUTED 2003df0: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 2003df4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003df8: 02 80 00 11 be 2003e3c <== NOT EXECUTED 2003dfc: 01 00 00 00 nop <== NOT EXECUTED 2003e00: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003e04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e08: 02 80 00 0d be 2003e3c <== NOT EXECUTED 2003e0c: 01 00 00 00 nop <== NOT EXECUTED 2003e10: 30 80 00 04 b,a 2003e20 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 2003e14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e18: 02 80 00 86 be 2004030 <== NOT EXECUTED 2003e1c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 2003e20: 40 00 04 2a call 2004ec8 <== NOT EXECUTED 2003e24: 01 00 00 00 nop <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 2003e28: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED 2003e2c: 90 22 00 13 sub %o0, %l3, %o0 <== NOT EXECUTED 2003e30: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003e34: 18 80 00 7f bgu 2004030 <== NOT EXECUTED 2003e38: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 2003e3c: 40 00 07 1a call 2005aa4 <== NOT EXECUTED 2003e40: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003e44: 10 bf ff e3 b 2003dd0 <== NOT EXECUTED 2003e48: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 2003e4c: 7f ff ff 35 call 2003b20 <== NOT EXECUTED 2003e50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2003e54: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2003e58: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003e5c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003e60: 16 80 00 73 bge 200402c <== NOT EXECUTED 2003e64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2003e68: 22 bf ff da be,a 2003dd0 <== NOT EXECUTED 2003e6c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003e70: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 2003e74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e78: 22 bf ff d6 be,a 2003dd0 <== NOT EXECUTED 2003e7c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003e80: 30 bf ff d0 b,a 2003dc0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003e84: 2f 00 80 6a sethi %hi(0x201a800), %l7 <== 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; 2003e88: e8 04 20 74 ld [ %l0 + 0x74 ], %l4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003e8c: ae 15 e3 b4 or %l7, 0x3b4, %l7 <== 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, 2003e90: ac 04 20 49 add %l0, 0x49, %l6 <== NOT EXECUTED 2003e94: 10 80 00 4b b 2003fc0 <== NOT EXECUTED 2003e98: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2003e9c: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 2003ea0: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003ea4: 40 00 50 a8 call 2018144 <.urem> <== NOT EXECUTED 2003ea8: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2003eac: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 2003eb0: e8 08 40 08 ldub [ %g1 + %o0 ], %l4 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2003eb4: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 2003eb8: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2003ebc: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 2003ec0: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003ec4: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 2003ec8: 40 00 50 9f call 2018144 <.urem> <== NOT EXECUTED 2003ecc: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED 2003ed0: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 2003ed4: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003ed8: 3a 80 00 27 bcc,a 2003f74 <== NOT EXECUTED 2003edc: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 2003ee0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003ee4: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2003ee8: 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)) 2003eec: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003ef0: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED 2003ef4: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED 2003ef8: 12 80 00 11 bne 2003f3c <== NOT EXECUTED 2003efc: 01 00 00 00 nop <== NOT EXECUTED 2003f00: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 2003f04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f08: 22 80 00 07 be,a 2003f24 <== NOT EXECUTED 2003f0c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 2003f10: 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)) 2003f14: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003f18: 02 80 00 09 be 2003f3c <== NOT EXECUTED 2003f1c: 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, 2003f20: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003f24: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2003f28: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 2003f2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003f30: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2003f34: 10 80 00 10 b 2003f74 <== NOT EXECUTED 2003f38: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 2003f3c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003f40: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2003f44: 22 80 00 0c be,a 2003f74 <== NOT EXECUTED 2003f48: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 2003f4c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2003f50: 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; 2003f54: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED 2003f58: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2003f5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f60: 22 80 00 05 be,a 2003f74 <== NOT EXECUTED 2003f64: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 2003f68: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003f6c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2003f70: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003f74: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003f78: 02 80 00 09 be 2003f9c <== NOT EXECUTED 2003f7c: 90 0d 20 ff and %l4, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 2003f80: 7f ff fe e8 call 2003b20 <== NOT EXECUTED 2003f84: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003f88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003f8c: 32 80 00 0c bne,a 2003fbc <== NOT EXECUTED 2003f90: a6 10 20 00 clr %l3 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2003f94: 10 80 00 0b b 2003fc0 <== NOT EXECUTED 2003f98: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 2003f9c: 7f ff fe e1 call 2003b20 <== NOT EXECUTED 2003fa0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2003fa4: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2003fa8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003fac: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fb0: 26 80 00 04 bl,a 2003fc0 <== NOT EXECUTED 2003fb4: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED 2003fb8: a6 10 20 00 clr %l3 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2003fbc: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003fc0: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2003fc4: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2003fc8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fcc: 02 80 00 08 be 2003fec <== NOT EXECUTED 2003fd0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2003fd4: c2 05 c0 00 ld [ %l7 ], %g1 <== NOT EXECUTED 2003fd8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003fdc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003fe0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fe4: 06 bf ff ae bl 2003e9c <== NOT EXECUTED 2003fe8: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2003fec: 02 80 00 11 be 2004030 <== NOT EXECUTED 2003ff0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 2003ff4: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2003ff8: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED 2003ffc: 40 00 05 75 call 20055d0 <== NOT EXECUTED 2004000: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 2004004: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004008: 02 bf ff ee be 2003fc0 <== NOT EXECUTED 200400c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2004010: 30 80 00 08 b,a 2004030 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 2004014: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED count--; 2004018: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 200401c: c2 08 80 01 ldub [ %g2 + %g1 ], %g1 <== NOT EXECUTED 2004020: c2 2d 40 00 stb %g1, [ %l5 ] <== NOT EXECUTED 2004024: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED 2004028: aa 05 60 01 inc %l5 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 200402c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2004030: 22 80 00 08 be,a 2004050 <== NOT EXECUTED 2004034: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2004038: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 200403c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004040: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004044: 06 bf ff f4 bl 2004014 <== NOT EXECUTED 2004048: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 200404c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2004050: 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; 2004054: a4 20 40 12 sub %g1, %l2, %l2 <== NOT EXECUTED 2004058: e4 24 60 1c st %l2, [ %l1 + 0x1c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 200405c: 40 00 05 a4 call 20056ec <== NOT EXECUTED 2004060: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 2004064: 81 c7 e0 08 ret <== NOT EXECUTED 2004068: 81 e8 00 00 restore <== NOT EXECUTED 02002e4c : * 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) { 2002e4c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 2002e50: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2002e54: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED 2002e58: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED 2002e5c: 12 80 00 10 bne 2002e9c <== NOT EXECUTED 2002e60: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 2002e64: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2002e68: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2002e6c: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 2002e70: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002e74: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2002e78: 7f ff fb a1 call 2001cfc <== NOT EXECUTED 2002e7c: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2002e80: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002e84: 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--; 2002e88: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002e8c: 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--; 2002e90: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002e94: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002e98: 30 80 00 12 b,a 2002ee0 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 2002e9c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2002ea0: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2002ea4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002ea8: 12 80 00 12 bne 2002ef0 <== NOT EXECUTED 2002eac: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED * FIXME: this .write call will generate another * dequeue callback. This will advance the "Tail" in the data * buffer, although the corresponding data is not yet out! * Therefore the dequeue "length" should be reduced by 1 */ (*tty->device.write)(tty->minor, 2002eb0: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2002eb4: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2002eb8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002ebc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2002ec0: 7f ff fb 8f call 2001cfc <== NOT EXECUTED 2002ec4: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2002ec8: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002ecc: 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--; 2002ed0: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002ed4: 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--; 2002ed8: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002edc: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002ee0: 7f ff fb 8b call 2001d0c <== NOT EXECUTED 2002ee4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2002ee8: 81 c7 e0 08 ret <== NOT EXECUTED 2002eec: 81 e8 00 00 restore <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2002ef0: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED 2002ef4: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2002ef8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2002efc: 12 80 00 0a bne 2002f24 <== NOT EXECUTED 2002f00: 01 00 00 00 nop <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 2002f04: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED 2002f08: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002f0c: 12 bf ff f7 bne 2002ee8 <== NOT EXECUTED 2002f10: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2002f14: 40 00 09 f6 call 20056ec <== NOT EXECUTED 2002f18: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2002f1c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f20: 81 e8 00 00 restore <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 2002f24: 7f ff fb 76 call 2001cfc <== NOT EXECUTED 2002f28: 01 00 00 00 nop <== NOT EXECUTED len = tty->t_dqlen; 2002f2c: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 <== NOT EXECUTED tty->t_dqlen = 0; 2002f30: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002f34: 7f ff fb 76 call 2001d0c <== NOT EXECUTED 2002f38: 01 00 00 00 nop <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 2002f3c: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED 2002f40: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED 2002f44: 40 00 54 80 call 2018144 <.urem> <== NOT EXECUTED 2002f48: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 2002f4c: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 2002f50: d0 24 20 84 st %o0, [ %l0 + 0x84 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 2002f54: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002f58: 12 80 00 04 bne 2002f68 <== NOT EXECUTED 2002f5c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2002f60: 40 00 09 e3 call 20056ec <== NOT EXECUTED 2002f64: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 2002f68: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2002f6c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2002f70: 12 80 00 0b bne 2002f9c <== NOT EXECUTED 2002f74: 01 00 00 00 nop <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2002f78: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2002f7c: c0 24 20 94 clr [ %l0 + 0x94 ] <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2002f80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002f84: 02 80 00 29 be 2003028 <== NOT EXECUTED 2002f88: b0 10 20 00 clr %i0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 2002f8c: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED 2002f90: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002f94: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED 2002f98: 30 80 00 24 b,a 2003028 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 2002f9c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2002fa0: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED 2002fa4: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED 2002fa8: 12 80 00 0c bne 2002fd8 <== NOT EXECUTED 2002fac: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 2002fb0: 7f ff fb 53 call 2001cfc <== NOT EXECUTED 2002fb4: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 2002fb8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2002fbc: 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; 2002fc0: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2002fc4: 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; 2002fc8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 2002fcc: 7f ff fb 50 call 2001d0c <== NOT EXECUTED 2002fd0: b0 10 20 00 clr %i0 <== NOT EXECUTED 2002fd4: 30 80 00 15 b,a 2003028 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 2002fd8: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2002fdc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2002fe0: 08 80 00 04 bleu 2002ff0 <== NOT EXECUTED 2002fe4: 01 00 00 00 nop <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 2002fe8: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 <== NOT EXECUTED 2002fec: 30 80 00 02 b,a 2002ff4 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 2002ff0: f0 04 20 80 ld [ %l0 + 0x80 ], %i0 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 2002ff4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2002ff8: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED 2002ffc: 02 80 00 03 be 2003008 <== NOT EXECUTED 2003000: b0 26 00 11 sub %i0, %l1, %i0 <== NOT EXECUTED 2003004: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 2003008: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 200300c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003010: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 2003014: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003018: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 200301c: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003020: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003024: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 2003028: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED } return nToSend; } 200302c: 81 c7 e0 08 ret <== NOT EXECUTED 2003030: 81 e8 00 00 restore <== NOT EXECUTED 02004b08 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 2004b08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b0c: a2 07 bf f8 add %fp, -8, %l1 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 2004b10: a0 07 bf ff add %fp, -1, %l0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b14: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2004b18: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004b1c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004b20: 40 00 01 0b call 2004f4c <== NOT EXECUTED 2004b24: 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) { 2004b28: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2004b2c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004b30: 22 80 00 07 be,a 2004b4c <== NOT EXECUTED 2004b34: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 2004b38: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004b3c: 40 00 03 65 call 20058d0 <== NOT EXECUTED 2004b40: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b44: 10 bf ff f5 b 2004b18 <== NOT EXECUTED 2004b48: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 2004b4c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004b50: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 2004b54: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2004b58: 02 bf ff ef be 2004b14 <== NOT EXECUTED 2004b5c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 2004b60: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 2004b64: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004b68: 7f ff f9 52 call 20030b0 <== NOT EXECUTED 2004b6c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b70: 10 bf ff ea b 2004b18 <== NOT EXECUTED 2004b74: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 02002e34 : 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); 2002e34: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 2002e38: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2002e3c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002e40: 40 00 08 a5 call 20050d4 <== NOT EXECUTED 2002e44: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2002e48: 01 00 00 00 nop 02004a8c : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 2004a8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a90: 23 00 80 6c sethi %hi(0x201b000), %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a94: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a98: a2 14 61 74 or %l1, 0x174, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a9c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004aa0: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004aa4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004aa8: 40 00 01 29 call 2004f4c <== NOT EXECUTED 2004aac: 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) { 2004ab0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2004ab4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004ab8: 02 80 00 07 be 2004ad4 <== NOT EXECUTED 2004abc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 2004ac0: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004ac4: 40 00 03 83 call 20058d0 <== NOT EXECUTED 2004ac8: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004acc: 10 bf ff f5 b 2004aa0 <== NOT EXECUTED 2004ad0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004ad4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2004ad8: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004adc: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 2004ae0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2004ae4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004ae8: 02 80 00 04 be 2004af8 <== NOT EXECUTED 2004aec: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2004af0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004af4: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 2004af8: 7f ff f8 d5 call 2002e4c <== NOT EXECUTED 2004afc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004b00: 10 bf ff e8 b 2004aa0 <== NOT EXECUTED 2004b04: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 02003b70 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003b70: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003b74: c2 06 00 00 ld [ %i0 ], %g1 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003b78: a2 10 00 18 mov %i0, %l1 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003b7c: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003b80: 92 10 20 00 clr %o1 2003b84: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2003b88: 40 00 06 92 call 20055d0 2003b8c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2003b90: b0 92 20 00 orcc %o0, 0, %i0 2003b94: 12 80 00 0f bne 2003bd0 2003b98: 03 00 80 6c sethi %hi(0x201b000), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2003b9c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2003ba0: 85 28 a0 05 sll %g2, 5, %g2 2003ba4: 82 10 61 74 or %g1, 0x174, %g1 2003ba8: 82 00 40 02 add %g1, %g2, %g1 2003bac: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2003bb0: 80 a0 60 00 cmp %g1, 0 2003bb4: 02 80 00 09 be 2003bd8 2003bb8: 92 10 00 11 mov %l1, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2003bbc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003bc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003bc4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003bc8: 40 00 06 c9 call 20056ec <== NOT EXECUTED 2003bcc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED return sc; 2003bd0: 81 c7 e0 08 ret <== NOT EXECUTED 2003bd4: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->termios.c_oflag & OPOST) { 2003bd8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 2003bdc: d2 04 60 14 ld [ %l1 + 0x14 ], %o1 2003be0: 80 88 60 01 btst 1, %g1 2003be4: 02 80 00 0e be 2003c1c 2003be8: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 uint32_t count = args->count; 2003bec: a6 10 00 09 mov %o1, %l3 char *buffer = args->buffer; while (count--) 2003bf0: 10 80 00 06 b 2003c08 2003bf4: a4 10 00 08 mov %o0, %l2 oproc (*buffer++, tty); 2003bf8: a6 04 ff ff add %l3, -1, %l3 2003bfc: a4 04 a0 01 inc %l2 2003c00: 7f ff fe 3f call 20034fc 2003c04: 92 10 00 10 mov %l0, %o1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2003c08: 80 a4 e0 00 cmp %l3, 0 2003c0c: 32 bf ff fb bne,a 2003bf8 2003c10: d0 0c 80 00 ldub [ %l2 ], %o0 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2003c14: 10 80 00 05 b 2003c28 2003c18: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2003c1c: 7f ff fd ec call 20033cc <== NOT EXECUTED 2003c20: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 2003c24: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2003c28: c2 24 60 1c st %g1, [ %l1 + 0x1c ] } rtems_semaphore_release (tty->osem); 2003c2c: 40 00 06 b0 call 20056ec 2003c30: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 return sc; } 2003c34: 81 c7 e0 08 ret 2003c38: 81 e8 00 00 restore 020072a8 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 20072a8: 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) 20072ac: 2b 08 00 00 sethi %hi(0x20000000), %l5 <== NOT EXECUTED 20072b0: aa 8e 00 15 andcc %i0, %l5, %l5 <== NOT EXECUTED 20072b4: 02 80 00 11 be 20072f8 <== NOT EXECUTED 20072b8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED { if (rtems_panic_in_progress++) 20072bc: 05 00 80 9a sethi %hi(0x2026800), %g2 <== NOT EXECUTED 20072c0: c2 00 a3 30 ld [ %g2 + 0x330 ], %g1 ! 2026b30 <== NOT EXECUTED 20072c4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 20072c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20072cc: 02 80 00 06 be 20072e4 <== NOT EXECUTED 20072d0: c6 20 a3 30 st %g3, [ %g2 + 0x330 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 20072d4: 03 00 80 9b sethi %hi(0x2026c00), %g1 <== NOT EXECUTED 20072d8: c4 00 61 10 ld [ %g1 + 0x110 ], %g2 ! 2026d10 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 20072dc: 84 00 a0 01 inc %g2 <== NOT EXECUTED 20072e0: c4 20 61 10 st %g2, [ %g1 + 0x110 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 20072e4: 03 00 80 9a sethi %hi(0x2026800), %g1 <== NOT EXECUTED 20072e8: c2 00 63 30 ld [ %g1 + 0x330 ], %g1 ! 2026b30 <== NOT EXECUTED 20072ec: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 20072f0: 34 80 00 5a bg,a 2007458 <== NOT EXECUTED 20072f4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 20072f8: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED 20072fc: c2 00 62 b8 ld [ %g1 + 0x2b8 ], %g1 ! 20262b8 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 2007300: 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 */ 2007304: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2007308: 40 00 3a 53 call 2015c54 <== NOT EXECUTED 200730c: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007310: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 2007314: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 2007318: 02 80 00 05 be 200732c <== NOT EXECUTED 200731c: a6 2c 00 13 andn %l0, %l3, %l3 <== NOT EXECUTED local_errno = errno; 2007320: 40 00 39 44 call 2015830 <__errno> <== NOT EXECUTED 2007324: 01 00 00 00 nop <== NOT EXECUTED 2007328: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); 200732c: 29 00 80 98 sethi %hi(0x2026000), %l4 <== NOT EXECUTED 2007330: c2 05 22 b8 ld [ %l4 + 0x2b8 ], %g1 ! 20262b8 <_impure_ptr> <== NOT EXECUTED 2007334: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007338: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 200733c: 40 00 51 c0 call 201ba3c <== NOT EXECUTED 2007340: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 2007344: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2007348: 02 80 00 0c be 2007378 <== NOT EXECUTED 200734c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007350: c2 05 22 b8 ld [ %l4 + 0x2b8 ], %g1 <== NOT EXECUTED 2007354: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007358: 7f ff ff cd call 200728c <== NOT EXECUTED 200735c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007360: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 2007364: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007368: 92 12 60 08 or %o1, 8, %o1 <== NOT EXECUTED 200736c: 40 00 3b 0e call 2015fa4 <== NOT EXECUTED 2007370: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007374: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED if (local_errno) 2007378: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200737c: 22 80 00 1c be,a 20073ec <== NOT EXECUTED 2007380: 27 00 80 98 sethi %hi(0x2026000), %l3 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 2007384: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007388: 04 80 00 11 ble 20073cc <== NOT EXECUTED 200738c: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED 2007390: 40 00 3e 58 call 2016cf0 <== NOT EXECUTED 2007394: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007398: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 200739c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073a0: 02 80 00 0b be 20073cc <== NOT EXECUTED 20073a4: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 20073a8: c2 00 62 b8 ld [ %g1 + 0x2b8 ], %g1 ! 20262b8 <_impure_ptr> <== NOT EXECUTED 20073ac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20073b0: 40 00 3e 50 call 2016cf0 <== NOT EXECUTED 20073b4: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 20073b8: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 20073bc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 20073c0: 92 12 60 18 or %o1, 0x18, %o1 <== NOT EXECUTED 20073c4: 10 80 00 07 b 20073e0 <== NOT EXECUTED 20073c8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 20073cc: c2 00 62 b8 ld [ %g1 + 0x2b8 ], %g1 <== NOT EXECUTED 20073d0: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 20073d4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20073d8: 92 12 60 28 or %o1, 0x28, %o1 <== NOT EXECUTED 20073dc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 20073e0: 40 00 3a f1 call 2015fa4 <== NOT EXECUTED 20073e4: 27 00 80 98 sethi %hi(0x2026000), %l3 <== NOT EXECUTED 20073e8: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 20073ec: c2 04 e2 b8 ld [ %l3 + 0x2b8 ], %g1 <== NOT EXECUTED 20073f0: 13 00 80 90 sethi %hi(0x2024000), %o1 <== NOT EXECUTED 20073f4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20073f8: 40 00 3a eb call 2015fa4 <== NOT EXECUTED 20073fc: 92 12 62 70 or %o1, 0x270, %o1 <== NOT EXECUTED (void) fflush(stderr); 2007400: c2 04 e2 b8 ld [ %l3 + 0x2b8 ], %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"); 2007404: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED (void) fflush(stderr); 2007408: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 200740c: 40 00 3a 12 call 2015c54 <== NOT EXECUTED 2007410: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 2007414: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 2007418: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 200741c: 02 80 00 0f be 2007458 <== NOT EXECUTED 2007420: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 2007424: 22 80 00 08 be,a 2007444 <== NOT EXECUTED 2007428: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 200742c: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 2007430: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007434: 40 00 00 18 call 2007494 <== NOT EXECUTED 2007438: 92 12 60 40 or %o1, 0x40, %o1 <== NOT EXECUTED _exit(local_errno); 200743c: 40 00 02 e8 call 2007fdc <_exit> <== NOT EXECUTED 2007440: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 2007444: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007448: 40 00 00 13 call 2007494 <== NOT EXECUTED 200744c: 92 12 60 58 or %o1, 0x58, %o1 <== NOT EXECUTED abort(); 2007450: 40 00 38 ea call 20157f8 <== NOT EXECUTED 2007454: 01 00 00 00 nop <== NOT EXECUTED } } return chars_written; } 2007458: 81 c7 e0 08 ret <== NOT EXECUTED 200745c: 81 e8 00 00 restore <== NOT EXECUTED 02025938 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025938: 9d e3 bf a0 save %sp, -96, %sp 202593c: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2025940: 2b 00 81 91 sethi %hi(0x2064400), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2025944: 29 00 81 91 sethi %hi(0x2064400), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025948: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 202594c: aa 15 62 c0 or %l5, 0x2c0, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2025950: a8 15 22 b0 or %l4, 0x2b0, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025954: a2 10 20 00 clr %l1 2025958: a0 10 20 00 clr %l0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 202595c: c2 06 20 04 ld [ %i0 + 4 ], %g1 2025960: 82 00 7f ff add %g1, -1, %g1 2025964: 80 a0 60 00 cmp %g1, 0 2025968: 16 80 00 07 bge 2025984 202596c: c2 26 20 04 st %g1, [ %i0 + 4 ] 2025970: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 2025974: 40 00 79 a9 call 2044018 <__srget_r> <== NOT EXECUTED 2025978: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 202597c: 10 80 00 06 b 2025994 <== NOT EXECUTED 2025980: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED 2025984: c2 06 00 00 ld [ %i0 ], %g1 2025988: 84 00 60 01 add %g1, 1, %g2 202598c: e4 08 40 00 ldub [ %g1 ], %l2 2025990: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') 2025994: 80 a4 a0 3a cmp %l2, 0x3a 2025998: 02 80 00 22 be 2025a20 202599c: 80 a4 60 00 cmp %l1, 0 break; if (sign == 0) { 20259a0: 32 80 00 09 bne,a 20259c4 20259a4: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 20259a8: 80 a4 a0 2d cmp %l2, 0x2d 20259ac: 12 80 00 05 bne 20259c0 20259b0: a2 10 20 01 mov 1, %l1 sign = -1; limit++; 20259b4: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 20259b8: 10 bf ff e9 b 202595c <== NOT EXECUTED 20259bc: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 20259c0: c2 05 00 00 ld [ %l4 ], %g1 20259c4: 82 00 40 12 add %g1, %l2, %g1 20259c8: c2 08 60 01 ldub [ %g1 + 1 ], %g1 20259cc: 80 88 60 04 btst 4, %g1 20259d0: 02 80 00 1c be 2025a40 20259d4: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 20259d8: 40 00 c4 e8 call 2056d78 <.udiv> 20259dc: 92 10 20 0a mov 0xa, %o1 20259e0: 80 a4 00 08 cmp %l0, %o0 20259e4: 18 80 00 17 bgu 2025a40 20259e8: 01 00 00 00 nop 20259ec: 12 80 00 08 bne 2025a0c 20259f0: a4 04 bf d0 add %l2, -48, %l2 20259f4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20259f8: 40 00 c5 8c call 2057028 <.urem> <== NOT EXECUTED 20259fc: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 2025a00: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED 2025a04: 18 80 00 0f bgu 2025a40 <== NOT EXECUTED 2025a08: 01 00 00 00 nop <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 2025a0c: 83 2c 20 03 sll %l0, 3, %g1 2025a10: a1 2c 20 01 sll %l0, 1, %l0 2025a14: a0 04 00 01 add %l0, %g1, %l0 2025a18: 10 bf ff d1 b 202595c 2025a1c: a0 04 80 10 add %l2, %l0, %l0 } if (sign == 0) 2025a20: 02 80 00 08 be 2025a40 2025a24: 90 10 00 11 mov %l1, %o0 return 0; *val = i * sign; 2025a28: 92 10 00 10 mov %l0, %o1 2025a2c: 40 00 c4 99 call 2056c90 <.umul> 2025a30: b0 10 20 01 mov 1, %i0 2025a34: d0 26 40 00 st %o0, [ %i1 ] return 1; 2025a38: 81 c7 e0 08 ret 2025a3c: 81 e8 00 00 restore } 2025a40: 81 c7 e0 08 ret <== NOT EXECUTED 2025a44: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02025a48 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 2025a48: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 2025a4c: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 2025a50: 21 00 81 91 sethi %hi(0x2064400), %l0 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 2025a54: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 2025a58: a0 14 22 c0 or %l0, 0x2c0, %l0 2025a5c: c2 06 20 04 ld [ %i0 + 4 ], %g1 2025a60: 82 00 7f ff add %g1, -1, %g1 2025a64: 80 a0 60 00 cmp %g1, 0 2025a68: 16 80 00 07 bge 2025a84 2025a6c: c2 26 20 04 st %g1, [ %i0 + 4 ] 2025a70: d0 04 00 00 ld [ %l0 ], %o0 2025a74: 40 00 79 69 call 2044018 <__srget_r> 2025a78: 92 10 00 18 mov %i0, %o1 if (c == ':') { 2025a7c: 10 80 00 07 b 2025a98 2025a80: 80 a2 20 3a cmp %o0, 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 2025a84: c2 06 00 00 ld [ %i0 ], %g1 2025a88: 84 00 60 01 add %g1, 1, %g2 2025a8c: d0 08 40 00 ldub [ %g1 ], %o0 2025a90: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') { 2025a94: 80 a2 20 3a cmp %o0, 0x3a 2025a98: 12 80 00 07 bne 2025ab4 2025a9c: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 2025aa0: 80 a7 20 00 cmp %i4, 0 2025aa4: 22 80 00 1a be,a 2025b0c 2025aa8: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 2025aac: 81 c7 e0 08 ret <== NOT EXECUTED 2025ab0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') { if (nlFlag) return 0; break; } if (c == '\n') { 2025ab4: 12 80 00 07 bne 2025ad0 2025ab8: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) 2025abc: 80 a7 20 00 cmp %i4, 0 2025ac0: 32 80 00 13 bne,a 2025b0c 2025ac4: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 2025ac8: 81 c7 e0 08 ret <== NOT EXECUTED 2025acc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == '\n') { if (!nlFlag) return 0; break; } if (c == EOF) 2025ad0: 22 80 00 17 be,a 2025b2c 2025ad4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (*nleft < 2) 2025ad8: c2 06 c0 00 ld [ %i3 ], %g1 2025adc: 80 a0 60 01 cmp %g1, 1 2025ae0: 28 80 00 13 bleu,a 2025b2c 2025ae4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; **bufp = c; 2025ae8: c2 06 80 00 ld [ %i2 ], %g1 2025aec: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 2025af0: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 2025af4: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2025af8: 84 00 a0 01 inc %g2 --(*nleft); 2025afc: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2025b00: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); } 2025b04: 10 bf ff d6 b 2025a5c 2025b08: c2 26 c0 00 st %g1, [ %i3 ] **bufp = '\0'; 2025b0c: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 2025b10: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 2025b14: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2025b18: 84 00 a0 01 inc %g2 --(*nleft); 2025b1c: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2025b20: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 2025b24: c2 26 c0 00 st %g1, [ %i3 ] 2025b28: b0 10 20 01 mov 1, %i0 return 1; } 2025b2c: 81 c7 e0 08 ret 2025b30: 81 e8 00 00 restore 02025b34 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 2025b34: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b38: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 2025b3c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2025b40: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b44: a2 07 a0 4c add %fp, 0x4c, %l1 2025b48: a0 07 a0 50 add %fp, 0x50, %l0 2025b4c: 90 10 00 18 mov %i0, %o0 2025b50: 92 10 00 19 mov %i1, %o1 2025b54: 94 10 00 11 mov %l1, %o2 2025b58: 7f ff ff bc call 2025a48 2025b5c: 96 10 00 10 mov %l0, %o3 2025b60: 80 a2 20 00 cmp %o0, 0 2025b64: 02 80 00 41 be 2025c68 2025b68: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 2025b6c: 92 06 60 04 add %i1, 4, %o1 2025b70: 94 10 00 11 mov %l1, %o2 2025b74: 96 10 00 10 mov %l0, %o3 2025b78: 7f ff ff b4 call 2025a48 2025b7c: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b80: 80 a2 20 00 cmp %o0, 0 2025b84: 02 80 00 39 be 2025c68 2025b88: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 2025b8c: 7f ff ff 6b call 2025938 2025b90: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b94: 80 a2 20 00 cmp %o0, 0 2025b98: 02 80 00 34 be 2025c68 2025b9c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 2025ba0: 94 10 00 11 mov %l1, %o2 2025ba4: 96 10 00 10 mov %l0, %o3 2025ba8: 92 07 bf f8 add %fp, -8, %o1 2025bac: 7f ff ff a7 call 2025a48 2025bb0: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025bb4: 80 a2 20 00 cmp %o0, 0 2025bb8: 02 80 00 2c be 2025c68 2025bbc: c2 07 bf fc ld [ %fp + -4 ], %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025bc0: c6 07 bf f8 ld [ %fp + -8 ], %g3 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; 2025bc4: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025bc8: 84 10 00 03 mov %g3, %g2 2025bcc: 10 80 00 05 b 2025be0 2025bd0: 82 10 20 01 mov 1, %g1 if(*cp == ',') memcount++; 2025bd4: 88 19 20 2c xor %g4, 0x2c, %g4 2025bd8: 80 a0 00 04 cmp %g0, %g4 2025bdc: 82 60 7f ff subx %g1, -1, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025be0: c8 48 80 00 ldsb [ %g2 ], %g4 2025be4: 80 a1 20 00 cmp %g4, 0 2025be8: 12 bf ff fb bne 2025bd4 2025bec: 84 00 a0 01 inc %g2 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 2025bf0: c4 07 a0 50 ld [ %fp + 0x50 ], %g2 2025bf4: 83 28 60 02 sll %g1, 2, %g1 2025bf8: 82 00 60 13 add %g1, 0x13, %g1 2025bfc: 80 a0 80 01 cmp %g2, %g1 2025c00: 0a 80 00 1a bcs 2025c68 2025c04: c2 07 a0 4c ld [ %fp + 0x4c ], %g1 grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 2025c08: 84 10 20 01 mov 1, %g2 /* * 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); 2025c0c: 82 00 60 0f add %g1, 0xf, %g1 2025c10: 82 08 7f f0 and %g1, -16, %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 2025c14: c6 20 40 00 st %g3, [ %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); 2025c18: c2 26 60 0c st %g1, [ %i1 + 0xc ] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 2025c1c: 10 80 00 09 b 2025c40 2025c20: c2 07 bf f8 ld [ %fp + -8 ], %g1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 2025c24: 32 80 00 08 bne,a 2025c44 2025c28: 82 00 60 01 inc %g1 *cp = '\0'; 2025c2c: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 2025c30: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 2025c34: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2025c38: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2025c3c: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED 2025c40: 82 00 60 01 inc %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025c44: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 2025c48: 80 a0 e0 00 cmp %g3, 0 2025c4c: 32 bf ff f6 bne,a 2025c24 2025c50: 80 a0 e0 2c cmp %g3, 0x2c if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 2025c54: c2 06 60 0c ld [ %i1 + 0xc ], %g1 2025c58: 85 28 a0 02 sll %g2, 2, %g2 2025c5c: c0 20 40 02 clr [ %g1 + %g2 ] return 1; 2025c60: 81 c7 e0 08 ret 2025c64: 91 e8 20 01 restore %g0, 1, %o0 } 2025c68: 81 c7 e0 08 ret <== NOT EXECUTED 2025c6c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02025cb8 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2025cb8: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025cbc: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2025cc0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2025cc4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025cc8: a2 07 a0 4c add %fp, 0x4c, %l1 2025ccc: a0 07 a0 50 add %fp, 0x50, %l0 2025cd0: 90 10 00 18 mov %i0, %o0 2025cd4: 92 10 00 19 mov %i1, %o1 2025cd8: 94 10 00 11 mov %l1, %o2 2025cdc: 7f ff ff 5b call 2025a48 2025ce0: 96 10 00 10 mov %l0, %o3 2025ce4: 80 a2 20 00 cmp %o0, 0 2025ce8: 02 80 00 39 be 2025dcc 2025cec: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 2025cf0: 92 06 60 04 add %i1, 4, %o1 2025cf4: 94 10 00 11 mov %l1, %o2 2025cf8: 96 10 00 10 mov %l0, %o3 2025cfc: 7f ff ff 53 call 2025a48 2025d00: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d04: 80 a2 20 00 cmp %o0, 0 2025d08: 02 80 00 31 be 2025dcc 2025d0c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 2025d10: 7f ff ff 0a call 2025938 2025d14: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d18: 80 a2 20 00 cmp %o0, 0 2025d1c: 02 80 00 2c be 2025dcc 2025d20: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 2025d24: 7f ff ff 05 call 2025938 2025d28: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d2c: 80 a2 20 00 cmp %o0, 0 2025d30: 02 80 00 27 be 2025dcc 2025d34: 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) 2025d38: 92 06 60 0c add %i1, 0xc, %o1 2025d3c: 94 10 00 11 mov %l1, %o2 2025d40: 96 10 00 10 mov %l0, %o3 2025d44: 7f ff ff 41 call 2025a48 2025d48: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d4c: 80 a2 20 00 cmp %o0, 0 2025d50: 02 80 00 1f be 2025dcc 2025d54: 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) 2025d58: 92 06 60 10 add %i1, 0x10, %o1 2025d5c: 94 10 00 11 mov %l1, %o2 2025d60: 96 10 00 10 mov %l0, %o3 2025d64: 7f ff ff 39 call 2025a48 2025d68: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d6c: 80 a2 20 00 cmp %o0, 0 2025d70: 02 80 00 17 be 2025dcc 2025d74: 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) 2025d78: 92 06 60 14 add %i1, 0x14, %o1 2025d7c: 94 10 00 11 mov %l1, %o2 2025d80: 96 10 00 10 mov %l0, %o3 2025d84: 7f ff ff 31 call 2025a48 2025d88: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d8c: 80 a2 20 00 cmp %o0, 0 2025d90: 02 80 00 0f be 2025dcc 2025d94: 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)) 2025d98: 94 10 00 11 mov %l1, %o2 2025d9c: 96 10 00 10 mov %l0, %o3 2025da0: 92 06 60 18 add %i1, 0x18, %o1 2025da4: 7f ff ff 29 call 2025a48 2025da8: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025dac: 80 a2 20 00 cmp %o0, 0 2025db0: 02 80 00 07 be 2025dcc 2025db4: 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; 2025db8: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 2025dbc: c2 07 bf f8 ld [ %fp + -8 ], %g1 2025dc0: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 2025dc4: 81 c7 e0 08 ret 2025dc8: 91 e8 20 01 restore %g0, 1, %o0 } 2025dcc: 81 c7 e0 08 ret <== NOT EXECUTED 2025dd0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020258c4 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 20258c4: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20258c8: c2 00 62 94 ld [ %g1 + 0x294 ], %g1 ! 2063e94 <== NOT EXECUTED 20258cc: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 20258d0: 81 c3 e0 08 retl <== NOT EXECUTED 20258d4: 90 10 20 00 clr %o0 <== NOT EXECUTED 02025ef4 : return NULL; return &grent; } void setgrent(void) { 2025ef4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 2025ef8: 7f ff ff c9 call 2025e1c <== NOT EXECUTED 2025efc: 01 00 00 00 nop <== NOT EXECUTED if (group_fp != NULL) 2025f00: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025f04: d0 00 62 04 ld [ %g1 + 0x204 ], %o0 ! 2067a04 <== NOT EXECUTED 2025f08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025f0c: 22 80 00 05 be,a 2025f20 <== NOT EXECUTED 2025f10: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED fclose(group_fp); 2025f14: 40 00 62 c9 call 203ea38 <== NOT EXECUTED 2025f18: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 2025f1c: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED 2025f20: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED 2025f24: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED 2025f28: 40 00 65 13 call 203f374 <== NOT EXECUTED 2025f2c: 92 12 61 90 or %o1, 0x190, %o1 <== NOT EXECUTED 2025f30: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025f34: d0 20 62 04 st %o0, [ %g1 + 0x204 ] ! 2067a04 <== NOT EXECUTED } 2025f38: 81 c7 e0 08 ret <== NOT EXECUTED 2025f3c: 81 e8 00 00 restore <== NOT EXECUTED 020260e8 : return NULL; return &pwent; } void setpwent(void) { 20260e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 20260ec: 7f ff ff 4c call 2025e1c <== NOT EXECUTED 20260f0: 01 00 00 00 nop <== NOT EXECUTED if (passwd_fp != NULL) 20260f4: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 20260f8: d0 00 61 1c ld [ %g1 + 0x11c ], %o0 ! 206791c <== NOT EXECUTED 20260fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026100: 22 80 00 05 be,a 2026114 <== NOT EXECUTED 2026104: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED fclose(passwd_fp); 2026108: 40 00 62 4c call 203ea38 <== NOT EXECUTED 202610c: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 2026110: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED 2026114: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED 2026118: 90 12 22 60 or %o0, 0x260, %o0 <== NOT EXECUTED 202611c: 40 00 64 96 call 203f374 <== NOT EXECUTED 2026120: 92 12 61 90 or %o1, 0x190, %o1 <== NOT EXECUTED 2026124: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2026128: d0 20 61 1c st %o0, [ %g1 + 0x11c ] ! 206791c <== NOT EXECUTED } 202612c: 81 c7 e0 08 ret <== NOT EXECUTED 2026130: 81 e8 00 00 restore <== NOT EXECUTED 02005cfc : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 2005cfc: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2005d00: c2 00 62 94 ld [ %g1 + 0x294 ], %g1 ! 2063e94 <== NOT EXECUTED 2005d04: d0 30 60 30 sth %o0, [ %g1 + 0x30 ] <== NOT EXECUTED return 0; } 2005d08: 81 c3 e0 08 retl <== NOT EXECUTED 2005d0c: 90 10 20 00 clr %o0 <== NOT EXECUTED 02003b20 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2003b20: 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)) { 2003b24: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003b28: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 2003b2c: 02 80 00 0e be 2003b64 <== NOT EXECUTED 2003b30: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003b34: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED 2003b38: 94 10 20 00 clr %o2 <== NOT EXECUTED 2003b3c: 40 00 06 a5 call 20055d0 <== NOT EXECUTED 2003b40: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 2003b44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2003b48: 7f ff ff 7f call 2003944 <== NOT EXECUTED 2003b4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003b50: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003b54: 40 00 06 e6 call 20056ec <== NOT EXECUTED 2003b58: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2003b5c: 81 c7 e0 08 ret <== NOT EXECUTED 2003b60: 81 e8 00 00 restore <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); i = iproc (c, tty); rtems_semaphore_release (tty->osem); } else { i = iproc (c, tty); 2003b64: 7f ff ff 78 call 2003944 <== NOT EXECUTED 2003b68: 81 e8 00 00 restore <== NOT EXECUTED 2003b6c: 01 00 00 00 nop 02007334 : int _STAT_NAME( const char *path, struct stat *buf ) { 2007334: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2007338: 80 a6 60 00 cmp %i1, 0 200733c: 12 80 00 06 bne 2007354 2007340: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 2007344: 40 00 dd 65 call 203e8d8 <__errno> 2007348: b0 10 3f ff mov -1, %i0 ! ffffffff 200734c: 10 80 00 20 b 20073cc 2007350: 82 10 20 0e mov 0xe, %g1 status = rtems_filesystem_evaluate_path( path, strlen( path ), 2007354: 40 00 f8 a0 call 20455d4 2007358: 90 10 00 18 mov %i0, %o0 200735c: a0 07 bf ec add %fp, -20, %l0 2007360: 92 10 00 08 mov %o0, %o1 2007364: 94 10 20 00 clr %o2 2007368: 90 10 00 18 mov %i0, %o0 200736c: 96 10 00 10 mov %l0, %o3 2007370: 98 10 20 01 mov 1, %o4 2007374: 7f ff f9 e8 call 2005b14 2007378: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 200737c: 80 a2 20 00 cmp %o0, 0 2007380: 12 80 00 14 bne 20073d0 2007384: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 2007388: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 200738c: 80 a0 60 00 cmp %g1, 0 2007390: 12 80 00 12 bne 20073d8 2007394: 92 10 20 00 clr %o1 rtems_filesystem_freenode( &loc ); 2007398: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200739c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073a0: 02 80 00 08 be 20073c0 <== NOT EXECUTED 20073a4: 01 00 00 00 nop <== NOT EXECUTED 20073a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20073ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073b0: 02 80 00 04 be 20073c0 <== NOT EXECUTED 20073b4: 01 00 00 00 nop <== NOT EXECUTED 20073b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20073bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20073c0: 40 00 dd 46 call 203e8d8 <__errno> <== NOT EXECUTED 20073c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20073c8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20073cc: c2 22 00 00 st %g1, [ %o0 ] 20073d0: 81 c7 e0 08 ret 20073d4: 81 e8 00 00 restore /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 20073d8: 94 10 20 48 mov 0x48, %o2 20073dc: 40 00 ea a5 call 2041e70 20073e0: 90 10 00 19 mov %i1, %o0 status = (*loc.handlers->fstat_h)( &loc, buf ); 20073e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20073e8: 92 10 00 19 mov %i1, %o1 20073ec: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 20073f0: 9f c0 40 00 call %g1 20073f4: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 20073f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 20073fc: 80 a0 60 00 cmp %g1, 0 2007400: 02 bf ff f4 be 20073d0 2007404: b0 10 00 08 mov %o0, %i0 2007408: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200740c: 80 a0 60 00 cmp %g1, 0 2007410: 02 80 00 04 be 2007420 2007414: 01 00 00 00 nop 2007418: 9f c0 40 00 call %g1 200741c: 90 10 00 10 mov %l0, %o0 return status; } 2007420: 81 c7 e0 08 ret 2007424: 81 e8 00 00 restore 02026e78 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 2026e78: 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 ) ) 2026e7c: 40 00 79 d6 call 20455d4 <== NOT EXECUTED 2026e80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026e84: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2026e88: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2026e8c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2026e90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026e94: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2026e98: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 2026e9c: 7f ff 7b 1e call 2005b14 <== NOT EXECUTED 2026ea0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026ea4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026ea8: 12 80 00 0b bne 2026ed4 <== NOT EXECUTED 2026eac: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; 2026eb0: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 2026eb4: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 2026eb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026ebc: 12 80 00 08 bne 2026edc <== NOT EXECUTED 2026ec0: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026ec4: 40 00 5e 85 call 203e8d8 <__errno> <== NOT EXECUTED 2026ec8: 01 00 00 00 nop <== NOT EXECUTED 2026ecc: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2026ed0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026ed4: 81 c7 e0 08 ret <== NOT EXECUTED 2026ed8: 81 e8 00 00 restore <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 2026edc: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED 2026ee0: 40 00 6b e4 call 2041e70 <== NOT EXECUTED 2026ee4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 2026ee8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 2026eec: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED 2026ef0: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 2026ef4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026ef8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2026efc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026f00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026f04: 02 bf ff f4 be 2026ed4 <== NOT EXECUTED 2026f08: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2026f0c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026f10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026f14: 02 80 00 04 be 2026f24 <== NOT EXECUTED 2026f18: 01 00 00 00 nop <== NOT EXECUTED 2026f1c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026f20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2026f24: 81 c7 e0 08 ret <== NOT EXECUTED 2026f28: 81 e8 00 00 restore <== NOT EXECUTED 02026f2c : int symlink( const char *actualpath, const char *sympath ) { 2026f2c: 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 ); 2026f30: c2 4e 40 00 ldsb [ %i1 ], %g1 2026f34: 80 a0 60 5c cmp %g1, 0x5c 2026f38: 02 80 00 07 be 2026f54 2026f3c: a0 10 00 18 mov %i0, %l0 2026f40: 80 a0 60 2f cmp %g1, 0x2f 2026f44: 02 80 00 04 be 2026f54 2026f48: 80 a0 60 00 cmp %g1, 0 2026f4c: 12 80 00 0a bne 2026f74 2026f50: 03 00 81 8f sethi %hi(0x2063c00), %g1 2026f54: 03 00 81 8f sethi %hi(0x2063c00), %g1 2026f58: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 ! 2063e94 2026f5c: 90 07 bf e8 add %fp, -24, %o0 2026f60: 92 02 60 18 add %o1, 0x18, %o1 2026f64: 40 00 6b 30 call 2041c24 2026f68: 94 10 20 14 mov 0x14, %o2 2026f6c: 10 80 00 08 b 2026f8c 2026f70: 90 10 20 01 mov 1, %o0 2026f74: d2 00 62 94 ld [ %g1 + 0x294 ], %o1 2026f78: 90 07 bf e8 add %fp, -24, %o0 2026f7c: 92 02 60 04 add %o1, 4, %o1 2026f80: 40 00 6b 29 call 2041c24 2026f84: 94 10 20 14 mov 0x14, %o2 2026f88: 90 10 20 00 clr %o0 if ( !loc.ops->evalformake_h ) { 2026f8c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026f90: c2 00 60 04 ld [ %g1 + 4 ], %g1 2026f94: 80 a0 60 00 cmp %g1, 0 2026f98: 02 80 00 14 be 2026fe8 2026f9c: 90 06 40 08 add %i1, %o0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 2026fa0: 94 07 bf fc add %fp, -4, %o2 2026fa4: b2 07 bf e8 add %fp, -24, %i1 if ( result != 0 ) 2026fa8: b0 10 3f ff mov -1, %i0 if ( !loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 2026fac: 9f c0 40 00 call %g1 2026fb0: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) 2026fb4: 80 a2 20 00 cmp %o0, 0 2026fb8: 12 80 00 10 bne 2026ff8 2026fbc: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 2026fc0: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 2026fc4: 80 a0 60 00 cmp %g1, 0 2026fc8: 12 80 00 0e bne 2027000 2026fcc: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &loc ); 2026fd0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026fd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026fd8: 02 80 00 04 be 2026fe8 <== NOT EXECUTED 2026fdc: 01 00 00 00 nop <== NOT EXECUTED 2026fe0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026fe4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026fe8: 40 00 5e 3c call 203e8d8 <__errno> <== NOT EXECUTED 2026fec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026ff0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026ff4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026ff8: 81 c7 e0 08 ret 2026ffc: 81 e8 00 00 restore } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 2027000: 92 10 00 10 mov %l0, %o1 2027004: 9f c0 40 00 call %g1 2027008: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &loc ); 202700c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2027010: 80 a0 60 00 cmp %g1, 0 2027014: 02 bf ff f9 be 2026ff8 2027018: b0 10 00 08 mov %o0, %i0 202701c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2027020: 80 a0 60 00 cmp %g1, 0 2027024: 02 80 00 04 be 2027034 2027028: 01 00 00 00 nop 202702c: 9f c0 40 00 call %g1 2027030: 90 10 00 19 mov %i1, %o0 return result; } 2027034: 81 c7 e0 08 ret 2027038: 81 e8 00 00 restore 02011fc0 : int tcsetattr( int fd, int opt, struct termios *tp ) { 2011fc0: 9d e3 bf a0 save %sp, -96, %sp switch (opt) { 2011fc4: 80 a6 60 00 cmp %i1, 0 2011fc8: 02 80 00 10 be 2012008 2011fcc: 80 a6 60 01 cmp %i1, 1 2011fd0: 02 80 00 08 be 2011ff0 <== NOT EXECUTED 2011fd4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 2011fd8: 40 00 14 d7 call 2017334 <__errno> <== NOT EXECUTED 2011fdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2011fe0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2011fe4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011fe8: 81 c7 e0 08 ret <== NOT EXECUTED 2011fec: 81 e8 00 00 restore <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 2011ff0: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2011ff4: 40 00 0e 80 call 20159f4 <== NOT EXECUTED 2011ff8: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011ffc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2012000: 26 80 00 04 bl,a 2012010 <== NOT EXECUTED 2012004: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 2012008: 40 00 0e 7b call 20159f4 201200c: 93 e8 20 02 restore %g0, 2, %o1 } } 2012010: 81 c7 e0 08 ret <== NOT EXECUTED 2012014: 81 e8 00 00 restore <== NOT EXECUTED 0200e0d4 : #include int unlink( const char *path ) { 200e0d4: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 200e0d8: 7f ff cf cc call 2002008 200e0dc: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200e0e0: a6 92 20 00 orcc %o0, 0, %l3 200e0e4: 32 80 00 17 bne,a 200e140 200e0e8: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 200e0ec: c2 4e 00 00 ldsb [ %i0 ], %g1 200e0f0: 80 a0 60 5c cmp %g1, 0x5c 200e0f4: 02 80 00 06 be 200e10c 200e0f8: 80 a0 60 2f cmp %g1, 0x2f 200e0fc: 02 80 00 04 be 200e10c 200e100: 80 a0 60 00 cmp %g1, 0 200e104: 12 80 00 07 bne 200e120 <== NOT EXECUTED 200e108: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 200e10c: 03 00 80 6a sethi %hi(0x201a800), %g1 200e110: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 ! 201abc4 200e114: 90 07 bf ec add %fp, -20, %o0 200e118: 10 80 00 05 b 200e12c 200e11c: 92 02 60 18 add %o1, 0x18, %o1 200e120: d2 00 63 c4 ld [ %g1 + 0x3c4 ], %o1 <== NOT EXECUTED 200e124: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 200e128: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 200e12c: 94 10 20 14 mov 0x14, %o2 200e130: 40 00 04 6c call 200f2e0 200e134: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200e138: 10 80 00 0b b 200e164 200e13c: 94 10 20 14 mov 0x14, %o2 parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 200e140: 92 10 00 13 mov %l3, %o1 200e144: 94 10 20 02 mov 2, %o2 200e148: 96 07 bf ec add %fp, -20, %o3 200e14c: 7f ff cf fd call 2002140 200e150: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 200e154: 80 a2 20 00 cmp %o0, 0 200e158: 12 80 00 82 bne 200e360 200e15c: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200e160: 94 10 20 14 mov 0x14, %o2 200e164: a0 07 bf d8 add %fp, -40, %l0 200e168: a4 07 bf ec add %fp, -20, %l2 200e16c: 90 10 00 10 mov %l0, %o0 200e170: 40 00 04 5c call 200f2e0 200e174: 92 10 00 12 mov %l2, %o1 name = path + parentpathlen; 200e178: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200e17c: 40 00 05 d5 call 200f8d0 200e180: 90 10 00 18 mov %i0, %o0 200e184: 92 10 00 08 mov %o0, %o1 200e188: 7f ff cf 8e call 2001fc0 200e18c: 90 10 00 18 mov %i0, %o0 200e190: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 200e194: 40 00 05 cf call 200f8d0 200e198: 90 10 00 18 mov %i0, %o0 200e19c: 94 10 20 00 clr %o2 200e1a0: 92 10 00 08 mov %o0, %o1 200e1a4: 96 10 00 10 mov %l0, %o3 200e1a8: 90 10 00 18 mov %i0, %o0 200e1ac: 7f ff cf a9 call 2002050 200e1b0: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 200e1b4: 80 a2 20 00 cmp %o0, 0 200e1b8: 02 80 00 11 be 200e1fc 200e1bc: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 200e1c0: 80 8c 60 ff btst 0xff, %l1 200e1c4: 02 80 00 0c be 200e1f4 200e1c8: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 200e1cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e1d0: 80 a0 60 00 cmp %g1, 0 200e1d4: 02 80 00 64 be 200e364 200e1d8: 01 00 00 00 nop 200e1dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200e1e0: 80 a0 60 00 cmp %g1, 0 200e1e4: 02 80 00 04 be 200e1f4 200e1e8: 90 10 00 12 mov %l2, %o0 200e1ec: 9f c0 40 00 call %g1 200e1f0: 01 00 00 00 nop 200e1f4: 81 c7 e0 08 ret 200e1f8: 81 e8 00 00 restore return -1; } if ( !loc.ops->node_type_h ) { 200e1fc: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200e200: 80 a0 60 00 cmp %g1, 0 200e204: 22 80 00 26 be,a 200e29c 200e208: 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 ) { 200e20c: 9f c0 40 00 call %g1 200e210: 90 10 00 10 mov %l0, %o0 200e214: 80 a2 20 01 cmp %o0, 1 200e218: 12 80 00 1c bne 200e288 200e21c: c4 07 bf e4 ld [ %fp + -28 ], %g2 rtems_filesystem_freenode( &loc ); 200e220: 80 a0 a0 00 cmp %g2, 0 200e224: 02 80 00 09 be 200e248 200e228: 80 8c 60 ff btst 0xff, %l1 200e22c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 200e230: 80 a0 60 00 cmp %g1, 0 200e234: 02 80 00 05 be 200e248 200e238: 80 8c 60 ff btst 0xff, %l1 200e23c: 9f c0 40 00 call %g1 200e240: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200e244: 80 8c 60 ff btst 0xff, %l1 200e248: 02 80 00 0c be 200e278 200e24c: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 200e250: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200e254: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e258: 02 80 00 08 be 200e278 <== NOT EXECUTED 200e25c: 01 00 00 00 nop <== NOT EXECUTED 200e260: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200e264: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e268: 02 80 00 04 be 200e278 <== NOT EXECUTED 200e26c: 01 00 00 00 nop <== NOT EXECUTED 200e270: 9f c0 40 00 call %g1 <== NOT EXECUTED 200e274: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 200e278: 40 00 01 df call 200e9f4 <__errno> 200e27c: b0 10 3f ff mov -1, %i0 200e280: 10 80 00 1b b 200e2ec 200e284: 82 10 20 15 mov 0x15, %g1 } if ( !loc.ops->unlink_h ) { 200e288: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200e28c: 80 a0 60 00 cmp %g1, 0 200e290: 12 80 00 1a bne 200e2f8 200e294: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 200e298: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200e29c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e2a0: 02 80 00 05 be 200e2b4 <== NOT EXECUTED 200e2a4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200e2a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 200e2ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 200e2b0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200e2b4: 02 80 00 0b be 200e2e0 <== NOT EXECUTED 200e2b8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 200e2bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e2c0: 02 80 00 08 be 200e2e0 <== NOT EXECUTED 200e2c4: 01 00 00 00 nop <== NOT EXECUTED 200e2c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200e2cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e2d0: 02 80 00 04 be 200e2e0 <== NOT EXECUTED 200e2d4: 01 00 00 00 nop <== NOT EXECUTED 200e2d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 200e2dc: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200e2e0: 40 00 01 c5 call 200e9f4 <__errno> <== NOT EXECUTED 200e2e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e2e8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200e2ec: c2 22 00 00 st %g1, [ %o0 ] 200e2f0: 81 c7 e0 08 ret 200e2f4: 81 e8 00 00 restore } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 200e2f8: 9f c0 40 00 call %g1 200e2fc: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 200e300: c2 07 bf e4 ld [ %fp + -28 ], %g1 200e304: 80 a0 60 00 cmp %g1, 0 200e308: 02 80 00 08 be 200e328 200e30c: b0 10 00 08 mov %o0, %i0 200e310: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200e314: 80 a0 60 00 cmp %g1, 0 200e318: 02 80 00 05 be 200e32c 200e31c: 80 8c 60 ff btst 0xff, %l1 200e320: 9f c0 40 00 call %g1 200e324: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200e328: 80 8c 60 ff btst 0xff, %l1 200e32c: 02 bf ff b2 be 200e1f4 200e330: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200e334: 80 a0 60 00 cmp %g1, 0 200e338: 02 80 00 0b be 200e364 200e33c: 01 00 00 00 nop 200e340: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200e344: 80 a0 60 00 cmp %g1, 0 200e348: 02 80 00 07 be 200e364 200e34c: 01 00 00 00 nop 200e350: 9f c0 40 00 call %g1 200e354: 90 07 bf ec add %fp, -20, %o0 200e358: 81 c7 e0 08 ret 200e35c: 81 e8 00 00 restore 200e360: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 200e364: 81 c7 e0 08 ret <== NOT EXECUTED 200e368: 81 e8 00 00 restore <== NOT EXECUTED 020094f4 : */ int unmount( const char *path ) { 20094f4: 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 ) ) 20094f8: 40 00 f0 37 call 20455d4 20094fc: 90 10 00 18 mov %i0, %o0 2009500: a0 07 bf ec add %fp, -20, %l0 2009504: 92 10 00 08 mov %o0, %o1 2009508: 94 10 20 00 clr %o2 200950c: 90 10 00 18 mov %i0, %o0 2009510: 96 10 00 10 mov %l0, %o3 2009514: 7f ff f1 80 call 2005b14 2009518: 98 10 20 01 mov 1, %o4 200951c: 80 a2 20 00 cmp %o0, 0 2009520: 12 80 00 6a bne 20096c8 2009524: 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; 2009528: c4 07 bf ec ld [ %fp + -20 ], %g2 200952c: c6 04 60 1c ld [ %l1 + 0x1c ], %g3 2009530: 80 a0 c0 02 cmp %g3, %g2 2009534: 02 80 00 0f be 2009570 2009538: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * 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 ); 200953c: 80 a0 60 00 cmp %g1, 0 2009540: 02 80 00 08 be 2009560 2009544: 01 00 00 00 nop 2009548: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200954c: 80 a0 60 00 cmp %g1, 0 2009550: 02 80 00 04 be 2009560 2009554: 01 00 00 00 nop 2009558: 9f c0 40 00 call %g1 200955c: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 2009560: 40 00 d4 de call 203e8d8 <__errno> 2009564: 01 00 00 00 nop 2009568: 10 80 00 21 b 20095ec 200956c: 82 10 20 0d mov 0xd, %g1 ! d /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 2009570: 80 a0 60 00 cmp %g1, 0 2009574: 22 80 00 09 be,a 2009598 2009578: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200957c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2009580: 80 a0 60 00 cmp %g1, 0 2009584: 22 80 00 05 be,a 2009598 2009588: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200958c: 9f c0 40 00 call %g1 2009590: 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; 2009594: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009598: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200959c: 80 a0 60 00 cmp %g1, 0 20095a0: 02 80 00 07 be 20095bc 20095a4: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 20095a8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 20095ac: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 20095b0: 80 a0 60 00 cmp %g1, 0 20095b4: 32 80 00 06 bne,a 20095cc 20095b8: 03 00 81 8f sethi %hi(0x2063c00), %g1 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 ); 20095bc: 40 00 d4 c7 call 203e8d8 <__errno> <== NOT EXECUTED 20095c0: 01 00 00 00 nop <== NOT EXECUTED 20095c4: 10 80 00 0a b 20095ec <== NOT EXECUTED 20095c8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED * that made the current node thread based instead * of system based? I thought it was but it doesn't * look like it in this version. */ if ( rtems_filesystem_current.mt_entry == mt_entry ) 20095cc: c2 00 62 94 ld [ %g1 + 0x294 ], %g1 20095d0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 20095d4: 80 a0 40 11 cmp %g1, %l1 20095d8: 12 80 00 08 bne 20095f8 20095dc: 03 00 81 9f sethi %hi(0x2067c00), %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 20095e0: 40 00 d4 be call 203e8d8 <__errno> 20095e4: 01 00 00 00 nop 20095e8: 82 10 20 10 mov 0x10, %g1 ! 10 20095ec: c2 22 00 00 st %g1, [ %o0 ] 20095f0: 81 c7 e0 08 ret 20095f4: 91 e8 3f ff restore %g0, -1, %o0 20095f8: 05 00 81 9f sethi %hi(0x2067c00), %g2 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20095fc: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 2009600: 10 80 00 07 b 200961c 2009604: 84 10 a1 3c or %g2, 0x13c, %g2 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; fs_root_loc = &mt_entry->mt_fs_root; 2009608: c6 04 60 2c ld [ %l1 + 0x2c ], %g3 200960c: 80 a1 00 03 cmp %g4, %g3 2009610: 02 bf ff f4 be 20095e0 2009614: 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 ) { 2009618: c2 00 40 00 ld [ %g1 ], %g1 200961c: 80 a0 40 02 cmp %g1, %g2 2009620: 32 bf ff fa bne,a 2009608 2009624: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 2009628: 30 80 00 2a b,a 20096d0 * 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 ) 200962c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009630: 9f c0 40 00 call %g1 2009634: 90 10 00 11 mov %l1, %o0 2009638: 80 a2 20 00 cmp %o0, 0 200963c: 12 80 00 23 bne 20096c8 2009640: 01 00 00 00 nop * 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){ 2009644: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 2009648: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 200964c: 9f c0 40 00 call %g1 2009650: 90 10 00 11 mov %l1, %o0 2009654: 80 a2 20 00 cmp %o0, 0 2009658: 02 80 00 0b be 2009684 200965c: 01 00 00 00 nop if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 2009660: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009664: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 2009668: 9f c0 40 00 call %g1 <== NOT EXECUTED 200966c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2009670: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009674: 02 80 00 15 be 20096c8 <== NOT EXECUTED 2009678: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 200967c: 40 00 04 f2 call 200aa44 <== NOT EXECUTED 2009680: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 2009684: 40 00 05 d7 call 200ade0 <_Chain_Extract> 2009688: 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 ); 200968c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009690: 80 a0 60 00 cmp %g1, 0 2009694: 02 80 00 09 be 20096b8 2009698: 90 10 00 11 mov %l1, %o0 200969c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20096a0: 80 a0 60 00 cmp %g1, 0 20096a4: 02 80 00 05 be 20096b8 20096a8: 01 00 00 00 nop 20096ac: 9f c0 40 00 call %g1 20096b0: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 20096b4: 90 10 00 11 mov %l1, %o0 20096b8: 7f ff f1 40 call 2005bb8 20096bc: b0 10 20 00 clr %i0 return 0; 20096c0: 81 c7 e0 08 ret 20096c4: 81 e8 00 00 restore } 20096c8: 81 c7 e0 08 ret 20096cc: 91 e8 3f ff restore %g0, -1, %o0 * 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 ) 20096d0: 7f ff f1 f4 call 2005ea0 20096d4: 90 10 00 11 mov %l1, %o0 20096d8: 80 a2 20 01 cmp %o0, 1 20096dc: 32 bf ff d4 bne,a 200962c 20096e0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 20096e4: 30 bf ff bf b,a 20095e0 020270dc : int utime( const char *path, const struct utimbuf *times ) { 20270dc: 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 ) ) 20270e0: 40 00 79 3d call 20455d4 20270e4: 90 10 00 18 mov %i0, %o0 20270e8: a0 07 bf ec add %fp, -20, %l0 20270ec: 92 10 00 08 mov %o0, %o1 20270f0: 94 10 20 00 clr %o2 20270f4: 90 10 00 18 mov %i0, %o0 20270f8: 96 10 00 10 mov %l0, %o3 20270fc: 98 10 20 01 mov 1, %o4 2027100: 7f ff 7a 85 call 2005b14 2027104: b0 10 3f ff mov -1, %i0 2027108: 80 a2 20 00 cmp %o0, 0 202710c: 12 80 00 10 bne 202714c 2027110: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 2027114: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 2027118: 80 a0 60 00 cmp %g1, 0 202711c: 32 80 00 0e bne,a 2027154 2027120: d4 06 60 04 ld [ %i1 + 4 ], %o2 rtems_filesystem_freenode( &temp_loc ); 2027124: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2027128: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202712c: 02 80 00 04 be 202713c <== NOT EXECUTED 2027130: 01 00 00 00 nop <== NOT EXECUTED 2027134: 9f c0 40 00 call %g1 <== NOT EXECUTED 2027138: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202713c: 40 00 5d e7 call 203e8d8 <__errno> <== NOT EXECUTED 2027140: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027144: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2027148: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202714c: 81 c7 e0 08 ret 2027150: 81 e8 00 00 restore } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 2027154: d2 06 40 00 ld [ %i1 ], %o1 2027158: 9f c0 40 00 call %g1 202715c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 2027160: c2 07 bf f8 ld [ %fp + -8 ], %g1 2027164: 80 a0 60 00 cmp %g1, 0 2027168: 02 bf ff f9 be 202714c 202716c: b0 10 00 08 mov %o0, %i0 2027170: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2027174: 80 a0 60 00 cmp %g1, 0 2027178: 02 80 00 04 be 2027188 202717c: 01 00 00 00 nop 2027180: 9f c0 40 00 call %g1 2027184: 90 10 00 10 mov %l0, %o0 return result; } 2027188: 81 c7 e0 08 ret 202718c: 81 e8 00 00 restore 020190d0 : ssize_t write( int fd, const void *buffer, size_t count ) { 20190d0: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20190d4: 03 00 80 6a sethi %hi(0x201a800), %g1 20190d8: c2 00 62 b4 ld [ %g1 + 0x2b4 ], %g1 ! 201aab4 ssize_t write( int fd, const void *buffer, size_t count ) { 20190dc: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20190e0: 80 a6 00 01 cmp %i0, %g1 20190e4: 1a 80 00 0c bcc 2019114 20190e8: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 20190ec: 03 00 80 6c sethi %hi(0x201b000), %g1 20190f0: e0 00 63 e0 ld [ %g1 + 0x3e0 ], %l0 ! 201b3e0 20190f4: 83 2e 20 06 sll %i0, 6, %g1 20190f8: b1 2e 20 03 sll %i0, 3, %i0 20190fc: b0 06 00 01 add %i0, %g1, %i0 2019100: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 2019104: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2019108: 80 88 61 00 btst 0x100, %g1 201910c: 12 80 00 06 bne 2019124 2019110: 80 a6 60 00 cmp %i1, 0 2019114: 7f ff d6 38 call 200e9f4 <__errno> <== NOT EXECUTED 2019118: 01 00 00 00 nop <== NOT EXECUTED 201911c: 10 80 00 14 b 201916c <== NOT EXECUTED 2019120: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 2019124: 02 80 00 07 be 2019140 2019128: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 201912c: 02 80 00 1c be 201919c 2019130: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2019134: 80 88 60 04 btst 4, %g1 2019138: 32 80 00 06 bne,a 2019150 201913c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2019140: 7f ff d6 2d call 200e9f4 <__errno> <== NOT EXECUTED 2019144: 01 00 00 00 nop <== NOT EXECUTED 2019148: 10 80 00 09 b 201916c <== NOT EXECUTED 201914c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 2019150: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2019154: 80 a0 60 00 cmp %g1, 0 2019158: 12 80 00 08 bne 2019178 201915c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2019160: 7f ff d6 25 call 200e9f4 <__errno> <== NOT EXECUTED 2019164: 01 00 00 00 nop <== NOT EXECUTED 2019168: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 201916c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019170: 10 80 00 0b b 201919c <== NOT EXECUTED 2019174: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 2019178: 9f c0 40 00 call %g1 201917c: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2019180: 80 a2 20 00 cmp %o0, 0 2019184: 04 80 00 06 ble 201919c 2019188: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 201918c: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2019190: 86 83 40 08 addcc %o5, %o0, %g3 2019194: 84 43 00 02 addx %o4, %g2, %g2 2019198: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 201919c: 81 c7 e0 08 ret 20191a0: 91 e8 00 08 restore %g0, %o0, %o0 0200689c : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 200689c: 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 ); 20068a0: 03 00 80 7d sethi %hi(0x201f400), %g1 20068a4: c2 00 62 64 ld [ %g1 + 0x264 ], %g1 ! 201f664 20068a8: 80 a6 00 01 cmp %i0, %g1 20068ac: 1a 80 00 0c bcc 20068dc 20068b0: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 20068b4: 03 00 80 81 sethi %hi(0x2020400), %g1 20068b8: e4 00 63 64 ld [ %g1 + 0x364 ], %l2 ! 2020764 20068bc: 83 2e 20 06 sll %i0, 6, %g1 20068c0: b1 2e 20 03 sll %i0, 3, %i0 20068c4: b0 06 00 01 add %i0, %g1, %i0 20068c8: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 20068cc: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 20068d0: 80 88 61 00 btst 0x100, %g1 20068d4: 12 80 00 06 bne 20068ec 20068d8: 80 88 60 04 btst 4, %g1 20068dc: 40 00 2a 1a call 2011144 <__errno> 20068e0: b0 10 3f ff mov -1, %i0 20068e4: 10 80 00 1f b 2006960 20068e8: 82 10 20 09 mov 9, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20068ec: 02 80 00 1a be 2006954 20068f0: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 20068f4: 02 80 00 18 be 2006954 20068f8: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 20068fc: 04 80 00 16 ble 2006954 2006900: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2006904: 14 80 00 14 bg 2006954 2006908: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 200690c: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2006910: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2006914: 80 a0 60 00 cmp %g1, 0 2006918: 12 80 00 06 bne 2006930 200691c: 19 00 00 1f sethi %hi(0x7c00), %o4 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006920: 40 00 2a 09 call 2011144 <__errno> <== NOT EXECUTED 2006924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2006928: 10 80 00 0e b 2006960 <== NOT EXECUTED 200692c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006930: 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 ) 2006934: 98 13 23 ff or %o4, 0x3ff, %o4 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 ); 2006938: 84 10 20 01 mov 1, %g2 200693c: 88 10 20 00 clr %g4 2006940: 86 10 20 00 clr %g3 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) 2006944: da 00 40 00 ld [ %g1 ], %o5 2006948: 80 a3 60 00 cmp %o5, 0 200694c: 32 80 00 08 bne,a 200696c 2006950: da 00 60 04 ld [ %g1 + 4 ], %o5 rtems_set_errno_and_return_minus_one( EINVAL ); 2006954: 40 00 29 fc call 2011144 <__errno> 2006958: b0 10 3f ff mov -1, %i0 200695c: 82 10 20 16 mov 0x16, %g1 2006960: c2 22 00 00 st %g1, [ %o0 ] 2006964: 81 c7 e0 08 ret 2006968: 81 e8 00 00 restore if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 200696c: 80 a0 00 0d cmp %g0, %o5 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 2006970: 9a 00 c0 0d add %g3, %o5, %o5 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 ) 2006974: 96 40 3f ff addx %g0, -1, %o3 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 2006978: 80 a3 40 0c cmp %o5, %o4 200697c: 14 bf ff f6 bg 2006954 2006980: 84 08 80 0b and %g2, %o3, %g2 2006984: 80 a3 40 03 cmp %o5, %g3 2006988: 06 bf ff f3 bl 2006954 200698c: 88 01 20 01 inc %g4 * 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++ ) { 2006990: 80 a1 00 1a cmp %g4, %i2 2006994: 16 80 00 04 bge 20069a4 2006998: 82 00 60 08 add %g1, 8, %g1 200699c: 10 bf ff ea b 2006944 20069a0: 86 10 00 0d mov %o5, %g3 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 20069a4: 80 88 a0 ff btst 0xff, %g2 <== NOT EXECUTED 20069a8: a6 10 20 00 clr %l3 <== NOT EXECUTED 20069ac: 12 bf ff ee bne 2006964 <== NOT EXECUTED 20069b0: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 20069b4: d4 06 60 04 ld [ %i1 + 4 ], %o2 <== NOT EXECUTED 20069b8: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 20069bc: 02 80 00 17 be 2006a18 <== NOT EXECUTED 20069c0: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 20069c4: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 <== NOT EXECUTED 20069c8: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 20069cc: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED 20069d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20069d4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED if ( bytes < 0 ) 20069d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20069dc: 16 80 00 04 bge 20069ec <== NOT EXECUTED 20069e0: 01 00 00 00 nop <== NOT EXECUTED 20069e4: 81 c7 e0 08 ret <== NOT EXECUTED 20069e8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 20069ec: 02 80 00 07 be 2006a08 <== NOT EXECUTED 20069f0: a1 3a 20 1f sra %o0, 0x1f, %l0 <== NOT EXECUTED iop->offset += bytes; 20069f4: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 20069f8: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 20069fc: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 2006a00: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 2006a04: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 2006a08: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED 2006a0c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2006a10: 12 80 00 05 bne 2006a24 <== NOT EXECUTED 2006a14: 01 00 00 00 nop <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 2006a18: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 2006a1c: 06 bf ff e6 bl 20069b4 <== NOT EXECUTED 2006a20: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 2006a24: 81 c7 e0 08 ret <== NOT EXECUTED 2006a28: 81 e8 00 00 restore <== NOT EXECUTED