0200e65c : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 200e65c: 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(); 200e660: 40 00 04 a2 call 200f8e8 200e664: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200e668: 91 2a 20 10 sll %o0, 0x10, %o0 200e66c: 91 32 20 10 srl %o0, 0x10, %o0 200e670: 80 a2 20 00 cmp %o0, 0 200e674: 22 80 00 0c be,a 200e6a4 200e678: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] 200e67c: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 200e680: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200e684: 22 80 00 08 be,a 200e6a4 <== NOT EXECUTED 200e688: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200e68c: 40 00 16 af call 2014148 <__errno> <== NOT EXECUTED 200e690: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e694: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200e698: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200e69c: 81 c7 e0 08 ret <== NOT EXECUTED 200e6a0: 81 e8 00 00 restore <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; 200e6a4: f4 34 20 3a sth %i2, [ %l0 + 0x3a ] IMFS_update_ctime( jnode ); 200e6a8: 90 07 bf f8 add %fp, -8, %o0 200e6ac: 7f ff d4 76 call 2003884 200e6b0: 92 10 20 00 clr %o1 200e6b4: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e6b8: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 200e6bc: 81 c7 e0 08 ret 200e6c0: 91 e8 20 00 restore %g0, 0, %o0 0200d020 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200d020: 9d e3 bf a0 save %sp, -96, %sp 200d024: 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 ) 200d028: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200d02c: 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 ) 200d030: 02 80 00 40 be 200d130 200d034: 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 ); 200d038: 03 00 80 6a sethi %hi(0x201a800), %g1 200d03c: c2 00 63 94 ld [ %g1 + 0x394 ], %g1 ! 201ab94 200d040: 90 10 00 19 mov %i1, %o0 200d044: d4 10 60 2c lduh [ %g1 + 0x2c ], %o2 200d048: b6 2e c0 0a andn %i3, %o2, %i3 200d04c: 95 2e e0 10 sll %i3, 0x10, %o2 200d050: 7f ff ff c8 call 200cf70 200d054: 95 32 a0 10 srl %o2, 0x10, %o2 if ( !node ) 200d058: b0 92 20 00 orcc %o0, 0, %i0 200d05c: 02 80 00 35 be 200d130 200d060: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 200d064: 80 a6 60 06 cmp %i1, 6 200d068: 38 80 00 20 bgu,a 200d0e8 200d06c: 11 00 80 68 sethi %hi(0x201a000), %o0 <== NOT EXECUTED 200d070: b3 2e 60 02 sll %i1, 2, %i1 200d074: 03 00 80 33 sethi %hi(0x200cc00), %g1 200d078: 82 10 63 54 or %g1, 0x354, %g1 ! 200cf54 200d07c: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200d080: 81 c0 40 00 jmp %g1 200d084: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200d088: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 200d08c: 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); 200d090: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200d094: 82 06 20 50 add %i0, 0x50, %g1 200d098: 10 80 00 1b b 200d104 200d09c: 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; 200d0a0: 10 80 00 05 b 200d0b4 200d0a4: 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; 200d0a8: 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; 200d0ac: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200d0b0: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 200d0b4: 10 80 00 14 b 200d104 200d0b8: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200d0bc: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 200d0c0: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200d0c4: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200d0c8: c0 26 20 50 clr [ %i0 + 0x50 ] 200d0cc: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 200d0d0: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 200d0d4: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200d0d8: 10 80 00 0b b 200d104 200d0dc: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200d0e0: 10 80 00 09 b 200d104 200d0e4: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 200d0e8: 15 00 80 68 sethi %hi(0x201a000), %o2 <== NOT EXECUTED 200d0ec: 17 00 80 68 sethi %hi(0x201a000), %o3 <== NOT EXECUTED 200d0f0: 90 12 22 58 or %o0, 0x258, %o0 <== NOT EXECUTED 200d0f4: 94 12 a2 b0 or %o2, 0x2b0, %o2 <== NOT EXECUTED 200d0f8: 96 12 e2 a8 or %o3, 0x2a8, %o3 <== NOT EXECUTED 200d0fc: 7f ff d3 5b call 2001e68 <__assert_func> <== NOT EXECUTED 200d100: 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; 200d104: 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; 200d108: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200d10c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200d110: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 200d114: 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 ); 200d118: 90 02 20 50 add %o0, 0x50, %o0 200d11c: 82 00 60 01 inc %g1 200d120: c2 20 80 00 st %g1, [ %g2 ] 200d124: c2 26 20 34 st %g1, [ %i0 + 0x34 ] 200d128: 7f ff e3 ae call 2005fe0 <_Chain_Append> 200d12c: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200d130: 81 c7 e0 08 ret 200d134: 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 d8 or %o0, 0x2d8, %o0 <== NOT EXECUTED 2003b58: 94 12 a0 b0 or %o2, 0xb0, %o2 <== NOT EXECUTED 2003b5c: 96 12 e3 b8 or %o3, 0x3b8, %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 d8 or %o0, 0x2d8, %o0 <== NOT EXECUTED 2003b80: 94 12 a0 b0 or %o2, 0xb0, %o2 <== NOT EXECUTED 2003b84: 96 12 e3 c8 or %o3, 0x3c8, %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 d8 or %o0, 0x2d8, %o0 <== NOT EXECUTED 2003bb0: 94 12 a0 b0 or %o2, 0xb0, %o2 <== NOT EXECUTED 2003bb4: 96 12 e3 d8 or %o3, 0x3d8, %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 28 or %l4, 0x28, %l4 2003bcc: a6 14 e0 00 mov %l3, %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 0e call 2013820 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 94 or %l5, 0x394, %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 f3 call 200e9d8 <__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 d7 call 200e9d8 <__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 b9 call 200e9d8 <__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 ac call 200e9d8 <__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 a8 call 200e9d8 <__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 ce call 200f2c4 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 ca call 200f2c4 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 79 call 200e9d8 <__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 f8 call 200f8b4 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 94 or %l5, 0x394, %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 21 call 200e9d8 <__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 13 fe call 200e9d8 <__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 12 call 200f2c4 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 0e call 200f2c4 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 c0 call 200e9d8 <__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 bc call 200e9d8 <__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 ae call 200e9d8 <__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 9f call 200e9d8 <__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 93 call 200e9d8 <__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 50 call 200e9d8 <__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 94 ld [ %g1 + 0x394 ], %o1 ! 201ab94 2009514: 90 10 00 10 mov %l0, %o0 2009518: 92 02 60 18 add %o1, 0x18, %o1 200951c: 40 00 17 6a call 200f2c4 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 e1 call 200f8b4 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 1a call 200e9d8 <__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 0200d138 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 200d138: 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(); 200d13c: 7f ff f5 12 call 200a584 200d140: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 200d144: 91 2a 20 10 sll %o0, 0x10, %o0 200d148: 91 32 20 10 srl %o0, 0x10, %o0 200d14c: 80 a2 20 00 cmp %o0, 0 200d150: 22 80 00 0c be,a 200d180 200d154: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 200d158: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 200d15c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 200d160: 22 80 00 08 be,a 200d180 <== NOT EXECUTED 200d164: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 200d168: 40 00 06 1c call 200e9d8 <__errno> <== NOT EXECUTED 200d16c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200d170: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 200d174: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200d178: 81 c7 e0 08 ret <== NOT EXECUTED 200d17c: 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 ); 200d180: 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); 200d184: 82 08 70 00 and %g1, -4096, %g1 IMFS_update_ctime( jnode ); 200d188: 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); 200d18c: b2 0e 6f ff and %i1, 0xfff, %i1 200d190: b2 16 40 01 or %i1, %g1, %i1 IMFS_update_ctime( jnode ); 200d194: 7f ff f5 00 call 200a594 200d198: f2 34 20 2e sth %i1, [ %l0 + 0x2e ] 200d19c: c2 07 bf f8 ld [ %fp + -8 ], %g1 200d1a0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 200d1a4: 81 c7 e0 08 ret 200d1a8: 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 3f call 200ca58 <== 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 08 call 200e9d8 <__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 7e call 200c64c <== 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 5c call 200e9d8 <__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 87 call 200c5d8 <== 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 80 call 200e9d8 <__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 6d call 200c6b0 <== 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 29 call 200e9d8 <__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 ee call 200c84c <== 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 42 call 200e9d8 <__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 48 or %o0, 0x248, %o0 <== NOT EXECUTED 2009e28: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED 2009e2c: 96 12 e2 98 or %o3, 0x298, %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 4b call 200f770 2009e48: 92 12 62 a8 or %o1, 0x2a8, %o1 ! 2019ea8 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 45 call 200f770 2009e60: 92 12 62 b0 or %o1, 0x2b0, %o1 ! 2019eb0 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 3b call 200f770 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 0200f354 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 200f354: 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; 200f358: 94 10 20 14 mov 0x14, %o2 200f35c: 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; 200f360: 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 ); 200f364: 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; 200f368: 40 00 15 b3 call 2014a34 200f36c: 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; 200f370: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 200f374: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 200f378: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200f37c: 7f ff fd 52 call 200e8c4 200f380: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 200f384: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 200f388: 80 a0 a0 01 cmp %g2, 1 200f38c: 12 80 00 06 bne 200f3a4 200f390: 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; 200f394: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200f398: 80 a0 80 01 cmp %g2, %g1 200f39c: 12 80 00 09 bne 200f3c0 200f3a0: 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 ); 200f3a4: 90 10 20 00 clr %o0 200f3a8: 7f ff cf 75 call 200317c 200f3ac: 92 10 00 11 mov %l1, %o1 if (result != 0) 200f3b0: 80 a2 20 00 cmp %o0, 0 200f3b4: 12 80 00 13 bne 200f400 200f3b8: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 200f3bc: 80 a4 20 00 cmp %l0, 0 200f3c0: 22 80 00 11 be,a 200f404 200f3c4: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 200f3c8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200f3cc: 80 a0 60 01 cmp %g1, 1 200f3d0: 32 bf ff ea bne,a 200f378 200f3d4: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 200f3d8: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200f3dc: 84 04 20 54 add %l0, 0x54, %g2 200f3e0: 80 a0 40 02 cmp %g1, %g2 200f3e4: 22 bf ff e5 be,a 200f378 200f3e8: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200f3ec: a0 90 60 00 orcc %g1, 0, %l0 200f3f0: 32 bf ff e2 bne,a 200f378 200f3f4: e0 27 bf ec st %l0, [ %fp + -20 ] 200f3f8: 81 c7 e0 08 ret <== NOT EXECUTED 200f3fc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200f400: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 200f404: 81 c7 e0 08 ret 200f408: 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 88 ld [ %g1 + 0x288 ], %g1 ! 201aa88 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 01 call 200cfe0 2009fe0: c4 20 62 4c st %g2, [ %g1 + 0x24c ] ! 201b24c 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 b2 call 200f2c4 200a000: 92 12 62 28 or %o1, 0x228, %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 6d call 200e9d8 <__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 63 call 200c5e0 200a058: b0 10 20 00 clr %i0 return 0; } 200a05c: 81 c7 e0 08 ret 200a060: 81 e8 00 00 restore 02002e50 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 2002e50: 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; 2002e54: c2 06 00 00 ld [ %i0 ], %g1 2002e58: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2002e5c: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 2002e60: 80 a0 60 07 cmp %g1, 7 2002e64: 08 80 00 06 bleu 2002e7c 2002e68: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); 2002e6c: 40 00 44 b7 call 2014148 <__errno> 2002e70: 01 00 00 00 nop 2002e74: 10 80 00 17 b 2002ed0 2002e78: 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 ); 2002e7c: 40 00 48 51 call 2014fc0 2002e80: 90 10 00 1a mov %i2, %o0 2002e84: a0 07 bf b0 add %fp, -80, %l0 2002e88: 92 10 00 08 mov %o0, %o1 2002e8c: 96 07 bf fc add %fp, -4, %o3 2002e90: 94 10 00 10 mov %l0, %o2 2002e94: 40 00 31 89 call 200f4b8 2002e98: 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( 2002e9c: 90 10 00 19 mov %i1, %o0 2002ea0: 94 10 00 10 mov %l0, %o2 2002ea4: 92 10 20 03 mov 3, %o1 2002ea8: 17 00 00 28 sethi %hi(0xa000), %o3 2002eac: 98 07 bf d8 add %fp, -40, %o4 2002eb0: 40 00 2e 38 call 200e790 2002eb4: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2002eb8: 80 a2 20 00 cmp %o0, 0 2002ebc: 12 80 00 08 bne 2002edc 2002ec0: c2 07 bf d8 ld [ %fp + -40 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2002ec4: 40 00 44 a1 call 2014148 <__errno> <== NOT EXECUTED 2002ec8: 01 00 00 00 nop <== NOT EXECUTED 2002ecc: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002ed0: c2 22 00 00 st %g1, [ %o0 ] 2002ed4: 81 c7 e0 08 ret 2002ed8: 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 ); 2002edc: 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++; 2002ee0: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002ee4: 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++; 2002ee8: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002eec: 40 00 02 66 call 2003884 2002ef0: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] 2002ef4: c4 07 bf f4 ld [ %fp + -12 ], %g2 2002ef8: c2 07 bf d8 ld [ %fp + -40 ], %g1 2002efc: c4 20 60 44 st %g2, [ %g1 + 0x44 ] return 0; } 2002f00: 81 c7 e0 08 ret 2002f04: 91 e8 20 00 restore %g0, 0, %o0 02012170 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 2012170: 9d e3 bf a0 save %sp, -96, %sp 2012174: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 2012178: 80 a6 20 00 cmp %i0, 0 201217c: 12 80 00 0a bne 20121a4 2012180: 92 10 00 19 mov %i1, %o1 2012184: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012188: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 201218c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012190: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012194: 94 12 a1 58 or %o2, 0x158, %o2 <== NOT EXECUTED 2012198: 96 12 e3 c8 or %o3, 0x3c8, %o3 <== NOT EXECUTED 201219c: 10 80 00 0c b 20121cc <== NOT EXECUTED 20121a0: 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 ); 20121a4: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 20121a8: 80 a0 60 05 cmp %g1, 5 20121ac: 02 80 00 0a be 20121d4 20121b0: 15 00 80 80 sethi %hi(0x2020000), %o2 20121b4: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20121b8: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20121bc: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 20121c0: 94 12 a1 58 or %o2, 0x158, %o2 <== NOT EXECUTED 20121c4: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 20121c8: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 20121cc: 7f ff c4 8e call 2003404 <__assert_func> <== NOT EXECUTED 20121d0: 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 ); 20121d4: 7f ff fe 6c call 2011b84 20121d8: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 20121dc: 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 ); 20121e0: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 20121e4: 80 a0 60 00 cmp %g1, 0 20121e8: 12 80 00 09 bne 201220c 20121ec: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 20121f0: 7f ff fe 58 call 2011b50 20121f4: b0 10 20 01 mov 1, %i0 if ( !memory ) 20121f8: 80 a2 20 00 cmp %o0, 0 20121fc: 02 80 00 04 be 201220c 2012200: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 2012204: d0 24 00 00 st %o0, [ %l0 ] 2012208: b0 10 20 00 clr %i0 return 0; } 201220c: 81 c7 e0 08 ret 2012210: 81 e8 00 00 restore 02012214 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 2012214: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2012218: 80 a6 20 00 cmp %i0, 0 201221c: 32 80 00 0a bne,a 2012244 2012220: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2012224: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012228: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 201222c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012230: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012234: 94 12 a1 70 or %o2, 0x170, %o2 <== NOT EXECUTED 2012238: 96 12 e3 c8 or %o3, 0x3c8, %o3 <== NOT EXECUTED 201223c: 10 80 00 0c b 201226c <== NOT EXECUTED 2012240: 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 ); 2012244: 80 a0 60 05 cmp %g1, 5 2012248: 02 80 00 0b be 2012274 201224c: 03 00 80 84 sethi %hi(0x2021000), %g1 2012250: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012254: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012258: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 201225c: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012260: 94 12 a1 70 or %o2, 0x170, %o2 <== NOT EXECUTED 2012264: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2012268: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 201226c: 7f ff c4 66 call 2003404 <__assert_func> <== NOT EXECUTED 2012270: 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 ) 2012274: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 2012278: a3 34 20 02 srl %l0, 2, %l1 201227c: 92 10 00 11 mov %l1, %o1 2012280: 40 00 2c 44 call 201d390 <.umul> 2012284: 90 04 60 01 add %l1, 1, %o0 2012288: 92 10 00 11 mov %l1, %o1 201228c: 40 00 2c 41 call 201d390 <.umul> 2012290: 90 02 20 01 inc %o0 2012294: 92 10 00 10 mov %l0, %o1 2012298: 40 00 2c 3e call 201d390 <.umul> 201229c: 90 02 3f ff add %o0, -1, %o0 20122a0: 82 10 20 00 clr %g1 20122a4: 80 a0 40 19 cmp %g1, %i1 20122a8: 34 80 00 0b bg,a 20122d4 20122ac: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 20122b0: 80 a0 40 19 cmp %g1, %i1 20122b4: 12 80 00 04 bne 20122c4 20122b8: 80 a2 00 1a cmp %o0, %i2 20122bc: 38 80 00 06 bgu,a 20122d4 20122c0: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 20122c4: 40 00 07 a1 call 2014148 <__errno> <== NOT EXECUTED 20122c8: 01 00 00 00 nop <== NOT EXECUTED 20122cc: 10 80 00 2b b 2012378 <== NOT EXECUTED 20122d0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 20122d4: 80 a6 40 11 cmp %i1, %l1 20122d8: 14 80 00 09 bg 20122fc 20122dc: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 20122e0: 80 a6 40 11 cmp %i1, %l1 20122e4: 12 80 00 04 bne 20122f4 20122e8: 80 a6 80 13 cmp %i2, %l3 20122ec: 18 80 00 05 bgu 2012300 20122f0: a5 3c 20 1f sra %l0, 0x1f, %l2 20122f4: 81 c7 e0 08 ret 20122f8: 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; 20122fc: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 2012300: 96 10 00 10 mov %l0, %o3 2012304: 94 10 00 12 mov %l2, %o2 2012308: 90 10 00 19 mov %i1, %o0 201230c: 40 00 2d e6 call 201daa4 <__divdi3> 2012310: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012314: 90 10 00 11 mov %l1, %o0 2012318: 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; 201231c: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2012320: 94 10 00 12 mov %l2, %o2 2012324: 40 00 2d e0 call 201daa4 <__divdi3> 2012328: 92 10 00 13 mov %l3, %o1 201232c: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2012330: 10 80 00 15 b 2012384 2012334: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 2012338: 7f ff ff 8e call 2012170 201233c: 92 10 00 10 mov %l0, %o1 2012340: 80 a2 20 00 cmp %o0, 0 2012344: 22 80 00 10 be,a 2012384 2012348: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 201234c: 10 80 00 06 b 2012364 <== NOT EXECUTED 2012350: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 2012354: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2012358: 7f ff fe d7 call 2011eb4 <== NOT EXECUTED 201235c: 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-- ) { 2012360: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 2012364: 1a bf ff fc bcc 2012354 <== NOT EXECUTED 2012368: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 201236c: 40 00 07 77 call 2014148 <__errno> <== NOT EXECUTED 2012370: 01 00 00 00 nop <== NOT EXECUTED 2012374: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2012378: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201237c: 81 c7 e0 08 ret <== NOT EXECUTED 2012380: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2012384: 80 a4 00 14 cmp %l0, %l4 2012388: 08 bf ff ec bleu 2012338 201238c: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 2012390: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 2012394: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 2012398: 81 c7 e0 08 ret 201239c: 91 e8 20 00 restore %g0, 0, %o0 02011b84 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2011b84: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011b88: 80 a6 20 00 cmp %i0, 0 2011b8c: 32 80 00 0a bne,a 2011bb4 2011b90: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011b94: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011b98: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011b9c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011ba0: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2011ba4: 94 12 a0 b0 or %o2, 0xb0, %o2 <== NOT EXECUTED 2011ba8: 96 12 e3 c8 or %o3, 0x3c8, %o3 <== NOT EXECUTED 2011bac: 10 80 00 0c b 2011bdc <== NOT EXECUTED 2011bb0: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2011bb4: 80 a0 60 05 cmp %g1, 5 2011bb8: 02 80 00 0b be 2011be4 2011bbc: 03 00 80 84 sethi %hi(0x2021000), %g1 2011bc0: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011bc4: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011bc8: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011bcc: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2011bd0: 94 12 a0 b0 or %o2, 0xb0, %o2 <== NOT EXECUTED 2011bd4: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2011bd8: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 2011bdc: 7f ff c6 0a call 2003404 <__assert_func> <== NOT EXECUTED 2011be0: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2011be4: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 2011be8: a1 34 20 02 srl %l0, 2, %l0 2011bec: 82 04 3f ff add %l0, -1, %g1 2011bf0: 80 a6 40 01 cmp %i1, %g1 2011bf4: 18 80 00 16 bgu 2011c4c 2011bf8: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 2011bfc: 80 a6 a0 00 cmp %i2, 0 2011c00: 02 80 00 0f be 2011c3c 2011c04: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 2011c08: 80 a0 60 00 cmp %g1, 0 2011c0c: 32 80 00 09 bne,a 2011c30 2011c10: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 2011c14: 7f ff ff cf call 2011b50 2011c18: 01 00 00 00 nop if ( !p ) 2011c1c: 80 a2 20 00 cmp %o0, 0 2011c20: 22 80 00 86 be,a 2011e38 2011c24: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 2011c28: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 2011c2c: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 2011c30: b3 2e 60 02 sll %i1, 2, %i1 2011c34: 81 c7 e0 08 ret 2011c38: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 2011c3c: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 2011c40: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 2011c44: 10 80 00 32 b 2011d0c 2011c48: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 2011c4c: 40 00 2d d1 call 201d390 <.umul> <== NOT EXECUTED 2011c50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011c54: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 2011c58: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2011c5c: 18 80 00 30 bgu 2011d1c <== NOT EXECUTED 2011c60: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 2011c64: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011c68: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011c6c: 40 00 2e af call 201d728 <.urem> <== NOT EXECUTED 2011c70: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011c74: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011c78: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011c7c: 40 00 2d ff call 201d478 <.udiv> <== NOT EXECUTED 2011c80: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2011c84: 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; 2011c88: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2011c8c: 02 80 00 18 be 2011cec <== NOT EXECUTED 2011c90: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 2011c94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011c98: 12 80 00 08 bne 2011cb8 <== NOT EXECUTED 2011c9c: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 2011ca0: 7f ff ff ac call 2011b50 <== NOT EXECUTED 2011ca4: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2011ca8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011cac: 22 80 00 63 be,a 2011e38 <== NOT EXECUTED 2011cb0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 2011cb4: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 2011cb8: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 2011cbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011cc0: 12 80 00 08 bne 2011ce0 <== NOT EXECUTED 2011cc4: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 2011cc8: 7f ff ff a2 call 2011b50 <== NOT EXECUTED 2011ccc: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2011cd0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011cd4: 22 80 00 59 be,a 2011e38 <== NOT EXECUTED 2011cd8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 2011cdc: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 2011ce0: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2011ce4: 81 c7 e0 08 ret <== NOT EXECUTED 2011ce8: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 2011cec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011cf0: 02 80 00 52 be 2011e38 <== NOT EXECUTED 2011cf4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2011cf8: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 2011cfc: 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 ]; 2011d00: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2011d04: 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 ]; 2011d08: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2011d0c: 12 80 00 4b bne 2011e38 2011d10: 01 00 00 00 nop p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 2011d14: 81 c7 e0 08 ret <== NOT EXECUTED 2011d18: 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 ) { 2011d1c: 90 02 20 01 inc %o0 <== NOT EXECUTED 2011d20: 40 00 2d 9c call 201d390 <.umul> <== NOT EXECUTED 2011d24: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011d28: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 2011d2c: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 2011d30: 18 80 00 41 bgu 2011e34 <== NOT EXECUTED 2011d34: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011d38: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011d3c: 40 00 2e 7b call 201d728 <.urem> <== NOT EXECUTED 2011d40: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011d44: 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; 2011d48: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011d4c: 40 00 2d cb call 201d478 <.udiv> <== NOT EXECUTED 2011d50: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 2011d54: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2011d58: 40 00 2d c8 call 201d478 <.udiv> <== NOT EXECUTED 2011d5c: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2011d60: 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; 2011d64: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2011d68: 40 00 2e 70 call 201d728 <.urem> <== NOT EXECUTED 2011d6c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2011d70: 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; 2011d74: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2011d78: 02 80 00 23 be 2011e04 <== NOT EXECUTED 2011d7c: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 2011d80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011d84: 12 80 00 08 bne 2011da4 <== NOT EXECUTED 2011d88: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 2011d8c: 7f ff ff 71 call 2011b50 <== NOT EXECUTED 2011d90: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2011d94: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011d98: 22 80 00 28 be,a 2011e38 <== NOT EXECUTED 2011d9c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 2011da0: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 2011da4: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 2011da8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2011dac: 12 80 00 08 bne 2011dcc <== NOT EXECUTED 2011db0: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 2011db4: 7f ff ff 67 call 2011b50 <== NOT EXECUTED 2011db8: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2011dbc: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 2011dc0: 02 80 00 1e be 2011e38 <== NOT EXECUTED 2011dc4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 2011dc8: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 2011dcc: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 2011dd0: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 2011dd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011dd8: 12 80 00 08 bne 2011df8 <== NOT EXECUTED 2011ddc: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 2011de0: 7f ff ff 5c call 2011b50 <== NOT EXECUTED 2011de4: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2011de8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011dec: 22 80 00 13 be,a 2011e38 <== NOT EXECUTED 2011df0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 2011df4: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 2011df8: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 2011dfc: 81 c7 e0 08 ret <== NOT EXECUTED 2011e00: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 2011e04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011e08: 02 80 00 0c be 2011e38 <== NOT EXECUTED 2011e0c: 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 ]; 2011e10: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2011e14: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 2011e18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011e1c: 02 80 00 07 be 2011e38 <== NOT EXECUTED 2011e20: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 2011e24: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 2011e28: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 2011e2c: 81 c7 e0 08 ret <== NOT EXECUTED 2011e30: 91 ee 00 12 restore %i0, %l2, %o0 <== NOT EXECUTED 2011e34: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 2011e38: 81 c7 e0 08 ret 2011e3c: 81 e8 00 00 restore 02012820 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2012820: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2012824: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2012828: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 201282c: 12 80 00 0a bne 2012854 2012830: a6 10 00 1a mov %i2, %l3 2012834: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012838: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 201283c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012840: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012844: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 2012848: 96 12 e3 c8 or %o3, 0x3c8, %o3 <== NOT EXECUTED 201284c: 10 80 00 0e b 2012884 <== NOT EXECUTED 2012850: 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 || 2012854: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2012858: 84 00 7f fb add %g1, -5, %g2 201285c: 80 a0 a0 01 cmp %g2, 1 2012860: 08 80 00 0b bleu 201288c 2012864: 80 a6 e0 00 cmp %i3, 0 2012868: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 201286c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012870: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2012874: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012878: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 201287c: 96 12 e0 58 or %o3, 0x58, %o3 <== NOT EXECUTED 2012880: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 2012884: 7f ff c2 e0 call 2003404 <__assert_func> <== NOT EXECUTED 2012888: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 201288c: 32 80 00 0a bne,a 20128b4 2012890: 80 a7 20 00 cmp %i4, 0 2012894: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012898: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 201289c: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 20128a0: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 20128a4: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 20128a8: 96 12 e0 a8 or %o3, 0xa8, %o3 <== NOT EXECUTED 20128ac: 10 bf ff f6 b 2012884 <== NOT EXECUTED 20128b0: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 20128b4: 12 80 00 08 bne 20128d4 20128b8: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 20128bc: 40 00 06 23 call 2014148 <__errno> <== NOT EXECUTED 20128c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20128c4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20128c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20128cc: 81 c7 e0 08 ret <== NOT EXECUTED 20128d0: 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) { 20128d4: 32 80 00 1d bne,a 2012948 20128d8: 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)) 20128dc: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 20128e0: 82 10 20 00 clr %g1 <== NOT EXECUTED 20128e4: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 20128e8: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 20128ec: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20128f0: 14 80 00 0a bg 2012918 <== NOT EXECUTED 20128f4: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 20128f8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20128fc: 12 80 00 08 bne 201291c <== NOT EXECUTED 2012900: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED 2012904: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 2012908: 38 80 00 05 bgu,a 201291c <== NOT EXECUTED 201290c: 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); 2012910: 10 80 00 04 b 2012920 <== NOT EXECUTED 2012914: 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; 2012918: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 201291c: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 2012920: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2012924: 40 00 08 44 call 2014a34 <== NOT EXECUTED 2012928: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 201292c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2012930: 7f ff c3 d5 call 2003884 <== NOT EXECUTED 2012934: 92 10 20 00 clr %o1 <== NOT EXECUTED 2012938: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 201293c: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 2012940: 81 c7 e0 08 ret <== NOT EXECUTED 2012944: 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 ) 2012948: 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; 201294c: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 2012950: 80 a1 00 03 cmp %g4, %g3 2012954: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 2012958: 14 80 00 08 bg 2012978 201295c: 9a 07 00 1a add %i4, %i2, %o5 2012960: 80 a1 00 03 cmp %g4, %g3 2012964: 32 80 00 07 bne,a 2012980 2012968: 03 00 80 84 sethi %hi(0x2021000), %g1 <== NOT EXECUTED 201296c: 80 a3 40 02 cmp %o5, %g2 2012970: 28 80 00 04 bleu,a 2012980 2012974: 03 00 80 84 sethi %hi(0x2021000), %g1 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 2012978: 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; 201297c: 03 00 80 84 sethi %hi(0x2021000), %g1 2012980: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 ! 2021034 2012984: 90 10 00 12 mov %l2, %o0 2012988: ab 3c 60 1f sra %l1, 0x1f, %l5 201298c: 96 10 00 11 mov %l1, %o3 2012990: 94 10 00 15 mov %l5, %o2 2012994: 40 00 2d 2b call 201de40 <__moddi3> 2012998: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 201299c: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 20129a0: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 20129a4: 94 10 00 15 mov %l5, %o2 20129a8: 92 10 00 13 mov %l3, %o1 20129ac: 40 00 2c 3e call 201daa4 <__divdi3> 20129b0: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 20129b4: 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; 20129b8: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 20129bc: aa 10 00 1b mov %i3, %l5 20129c0: 02 80 00 1c be 2012a30 20129c4: 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 ); 20129c8: 90 10 00 10 mov %l0, %o0 20129cc: 7f ff fc 6e call 2011b84 20129d0: 94 10 20 00 clr %o2 assert( block_ptr ); 20129d4: 80 a2 20 00 cmp %o0, 0 20129d8: 32 80 00 0a bne,a 2012a00 20129dc: a2 24 40 14 sub %l1, %l4, %l1 20129e0: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20129e4: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20129e8: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 20129ec: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 20129f0: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 20129f4: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 20129f8: 10 bf ff a3 b 2012884 <== NOT EXECUTED 20129fc: 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; 2012a00: 80 a7 00 11 cmp %i4, %l1 2012a04: 08 80 00 03 bleu 2012a10 2012a08: 94 10 00 1c mov %i4, %o2 2012a0c: 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 ); 2012a10: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 2012a14: 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 ); 2012a18: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 2012a1c: a4 04 a0 01 inc %l2 my_length -= to_copy; 2012a20: b8 27 00 0a sub %i4, %o2, %i4 2012a24: 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 ); 2012a28: 40 00 08 03 call 2014a34 2012a2c: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2012a30: 03 00 80 84 sethi %hi(0x2021000), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2012a34: a8 10 60 34 or %g1, 0x34, %l4 ! 2021034 2012a38: 10 80 00 17 b 2012a94 2012a3c: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2012a40: 92 10 00 12 mov %l2, %o1 2012a44: 7f ff fc 50 call 2011b84 2012a48: 94 10 20 00 clr %o2 assert( block_ptr ); 2012a4c: 80 a2 20 00 cmp %o0, 0 2012a50: 32 80 00 0a bne,a 2012a78 2012a54: d2 02 00 00 ld [ %o0 ], %o1 2012a58: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012a5c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012a60: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2012a64: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012a68: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 2012a6c: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 2012a70: 10 bf ff 85 b 2012884 <== NOT EXECUTED 2012a74: 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++; 2012a78: 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 ); 2012a7c: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 2012a80: b8 27 00 11 sub %i4, %l1, %i4 copied += to_copy; 2012a84: 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; 2012a88: 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 ); 2012a8c: 40 00 07 ea call 2014a34 2012a90: 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 ) { 2012a94: c2 05 00 00 ld [ %l4 ], %g1 2012a98: 80 a7 00 01 cmp %i4, %g1 2012a9c: 1a bf ff e9 bcc 2012a40 2012aa0: 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 ) { 2012aa4: 80 a7 20 00 cmp %i4, 0 2012aa8: 02 80 00 16 be 2012b00 2012aac: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2012ab0: 92 10 00 12 mov %l2, %o1 2012ab4: 90 10 00 10 mov %l0, %o0 2012ab8: 7f ff fc 33 call 2011b84 2012abc: 94 10 20 00 clr %o2 assert( block_ptr ); 2012ac0: 80 a2 20 00 cmp %o0, 0 2012ac4: 32 80 00 0a bne,a 2012aec 2012ac8: d2 02 00 00 ld [ %o0 ], %o1 2012acc: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012ad0: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012ad4: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2012ad8: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012adc: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED 2012ae0: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 2012ae4: 10 bf ff 68 b 2012884 <== NOT EXECUTED 2012ae8: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 2012aec: 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 ); 2012af0: 90 10 00 15 mov %l5, %o0 2012af4: 40 00 07 d0 call 2014a34 2012af8: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 2012afc: 90 07 bf f8 add %fp, -8, %o0 2012b00: 7f ff c3 61 call 2003884 2012b04: 92 10 20 00 clr %o1 2012b08: c2 07 bf f8 ld [ %fp + -8 ], %g1 2012b0c: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return copied; } 2012b10: 81 c7 e0 08 ret 2012b14: 81 e8 00 00 restore 02011f08 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 2011f08: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011f0c: 80 a6 20 00 cmp %i0, 0 2011f10: 32 80 00 0a bne,a 2011f38 2011f14: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011f18: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011f1c: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011f20: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011f24: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2011f28: 94 12 a1 00 or %o2, 0x100, %o2 <== NOT EXECUTED 2011f2c: 96 12 e3 c8 or %o3, 0x3c8, %o3 <== NOT EXECUTED 2011f30: 10 80 00 0c b 2011f60 <== NOT EXECUTED 2011f34: 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 ); 2011f38: 80 a0 60 05 cmp %g1, 5 2011f3c: 02 80 00 0b be 2011f68 2011f40: 03 00 80 84 sethi %hi(0x2021000), %g1 2011f44: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011f48: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011f4c: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2011f50: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2011f54: 94 12 a1 00 or %o2, 0x100, %o2 <== NOT EXECUTED 2011f58: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2011f5c: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 2011f60: 7f ff c5 29 call 2003404 <__assert_func> <== NOT EXECUTED 2011f64: 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; 2011f68: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011f6c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 2011f70: 80 a0 60 00 cmp %g1, 0 2011f74: 02 80 00 05 be 2011f88 2011f78: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 2011f7c: 90 06 20 58 add %i0, 0x58, %o0 2011f80: 7f ff ff b0 call 2011e40 2011f84: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011f88: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 2011f8c: 80 a0 60 00 cmp %g1, 0 2011f90: 22 80 00 17 be,a 2011fec 2011f94: 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; 2011f9c: 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 2011fa4: a4 14 a0 34 or %l2, 0x34, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 2011fa8: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 2011fac: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 2011fb0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2011fb4: 02 80 00 04 be 2011fc4 <== NOT EXECUTED 2011fb8: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 2011fbc: 7f ff ff a1 call 2011e40 <== NOT EXECUTED 2011fc0: 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 2011fd8: 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 ); 2011fdc: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 2011fe0: 7f ff ff 98 call 2011e40 <== NOT EXECUTED 2011fe4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011fe8: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 2011fec: 80 a0 60 00 cmp %g1, 0 2011ff0: 02 80 00 25 be 2012084 2011ff4: 29 00 80 84 sethi %hi(0x2021000), %l4 2011ff8: 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 2012000: a8 15 20 34 or %l4, 0x34, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2012004: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 2012008: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 201200c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2012010: 02 80 00 1b be 201207c <== NOT EXECUTED 2012014: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2012018: 10 80 00 09 b 201203c <== NOT EXECUTED 201201c: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 2012028: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 201202c: 7f ff ff 85 call 2011e40 <== NOT EXECUTED 2012030: 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 201204c: 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( 2012050: 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 2012060: 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 2012074: 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( 2012078: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 201207c: 7f ff ff 71 call 2011e40 <== NOT EXECUTED 2012080: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2012084: 81 c7 e0 08 ret 2012088: 91 e8 20 00 restore %g0, 0, %o0 02011eb4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 2011eb4: 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 ); 2011eb8: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011ebc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2011ec0: 7f ff ff 31 call 2011b84 <== NOT EXECUTED 2011ec4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 2011ec8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011ecc: 32 80 00 0a bne,a 2011ef4 <== NOT EXECUTED 2011ed0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 2011ed4: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011ed8: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011edc: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2011ee0: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2011ee4: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 2011ee8: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 2011eec: 7f ff c5 46 call 2003404 <__assert_func> <== NOT EXECUTED 2011ef0: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 2011ef4: 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 ); 2011ef8: 7f ff ff 0d call 2011b2c <== NOT EXECUTED 2011efc: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 2011f00: 81 c7 e0 08 ret <== NOT EXECUTED 2011f04: 81 e8 00 00 restore <== NOT EXECUTED 020124bc : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 20124bc: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20124c0: a0 96 20 00 orcc %i0, 0, %l0 20124c4: 32 80 00 0a bne,a 20124ec 20124c8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20124cc: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20124d0: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 20124d4: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 20124d8: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 20124dc: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 20124e0: 96 12 e3 c8 or %o3, 0x3c8, %o3 <== NOT EXECUTED 20124e4: 10 80 00 8c b 2012714 <== NOT EXECUTED 20124e8: 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 ); 20124ec: 80 a0 60 05 cmp %g1, 5 20124f0: 02 80 00 0a be 2012518 20124f4: 80 a6 e0 00 cmp %i3, 0 20124f8: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20124fc: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012500: 17 00 80 7f sethi %hi(0x201fc00), %o3 <== NOT EXECUTED 2012504: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012508: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 201250c: 96 12 e3 d8 or %o3, 0x3d8, %o3 <== NOT EXECUTED 2012510: 10 80 00 81 b 2012714 <== NOT EXECUTED 2012514: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 2012518: 12 80 00 0a bne 2012540 201251c: 80 a7 20 00 cmp %i4, 0 2012520: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012524: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012528: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 201252c: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012530: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2012534: 96 12 e0 20 or %o3, 0x20, %o3 <== NOT EXECUTED 2012538: 10 80 00 77 b 2012714 <== NOT EXECUTED 201253c: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 2012540: 32 80 00 06 bne,a 2012558 2012544: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 2012548: 40 00 07 00 call 2014148 <__errno> <== NOT EXECUTED 201254c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2012550: 10 80 00 15 b 20125a4 <== NOT EXECUTED 2012554: 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 ) { 2012558: 80 a0 60 00 cmp %g1, 0 201255c: 06 80 00 09 bl 2012580 2012560: 94 07 00 1a add %i4, %i2, %o2 2012564: 80 a0 60 00 cmp %g1, 0 2012568: 12 80 00 12 bne 20125b0 201256c: 03 00 80 84 sethi %hi(0x2021000), %g1 2012570: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 2012574: 80 a0 40 0a cmp %g1, %o2 2012578: 1a 80 00 0e bcc 20125b0 201257c: 03 00 80 84 sethi %hi(0x2021000), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 2012580: 90 10 00 10 mov %l0, %o0 2012584: 7f ff ff 24 call 2012214 2012588: 92 10 20 00 clr %o1 if ( status ) 201258c: 80 a2 20 00 cmp %o0, 0 2012590: 02 80 00 08 be 20125b0 2012594: 03 00 80 84 sethi %hi(0x2021000), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 2012598: 40 00 06 ec call 2014148 <__errno> <== NOT EXECUTED 201259c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20125a0: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 20125a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20125a8: 81 c7 e0 08 ret <== NOT EXECUTED 20125ac: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 20125b0: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 20125b4: 92 10 00 1a mov %i2, %o1 20125b8: a7 3c 60 1f sra %l1, 0x1f, %l3 20125bc: 96 10 00 11 mov %l1, %o3 20125c0: 94 10 00 13 mov %l3, %o2 20125c4: 40 00 2e 1f call 201de40 <__moddi3> 20125c8: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 20125cc: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 20125d0: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 20125d4: 90 10 00 19 mov %i1, %o0 20125d8: 92 10 00 1a mov %i2, %o1 20125dc: 40 00 2d 32 call 201daa4 <__divdi3> 20125e0: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 20125e4: 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; 20125e8: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 20125ec: 80 a4 a0 00 cmp %l2, 0 20125f0: 02 80 00 1b be 201265c 20125f4: 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 ); 20125f8: 90 10 00 10 mov %l0, %o0 20125fc: 7f ff fd 62 call 2011b84 2012600: 94 10 20 00 clr %o2 assert( block_ptr ); 2012604: 80 a2 20 00 cmp %o0, 0 2012608: 32 80 00 0a bne,a 2012630 201260c: 94 24 40 12 sub %l1, %l2, %o2 2012610: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012614: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012618: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 201261c: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012620: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2012624: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 2012628: 10 80 00 3b b 2012714 <== NOT EXECUTED 201262c: 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; 2012630: 80 a2 80 1c cmp %o2, %i4 2012634: 38 80 00 02 bgu,a 201263c 2012638: 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 ); 201263c: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 2012640: 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 ); 2012644: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 2012648: a6 04 e0 01 inc %l3 my_length -= to_copy; 201264c: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 2012650: 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 ); 2012654: 40 00 08 f8 call 2014a34 2012658: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 201265c: 03 00 80 84 sethi %hi(0x2021000), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2012660: a4 10 60 34 or %g1, 0x34, %l2 ! 2021034 2012664: 10 80 00 17 b 20126c0 2012668: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 201266c: 92 10 00 13 mov %l3, %o1 2012670: 7f ff fd 45 call 2011b84 2012674: 94 10 20 00 clr %o2 assert( block_ptr ); 2012678: 80 a2 20 00 cmp %o0, 0 201267c: 32 80 00 0a bne,a 20126a4 2012680: d0 02 00 00 ld [ %o0 ], %o0 2012684: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2012688: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 201268c: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2012690: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012694: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 2012698: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 201269c: 10 80 00 1e b 2012714 <== NOT EXECUTED 20126a0: 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 ); 20126a4: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 20126a8: a6 04 e0 01 inc %l3 my_length -= to_copy; 20126ac: 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( 20126b0: 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; 20126b4: 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 ); 20126b8: 40 00 08 df call 2014a34 20126bc: 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 ) { 20126c0: c2 04 80 00 ld [ %l2 ], %g1 20126c4: 80 a7 00 01 cmp %i4, %g1 20126c8: 1a bf ff e9 bcc 201266c 20126cc: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 20126d0: 80 a7 20 00 cmp %i4, 0 20126d4: 02 80 00 17 be 2012730 20126d8: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 20126dc: 92 10 00 13 mov %l3, %o1 20126e0: 90 10 00 10 mov %l0, %o0 20126e4: 7f ff fd 28 call 2011b84 20126e8: 94 10 20 00 clr %o2 assert( block_ptr ); 20126ec: 80 a2 20 00 cmp %o0, 0 20126f0: 32 80 00 0b bne,a 201271c 20126f4: d0 02 00 00 ld [ %o0 ], %o0 20126f8: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 20126fc: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2012700: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2012704: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2012708: 94 12 a0 d0 or %o2, 0xd0, %o2 <== NOT EXECUTED 201270c: 96 12 e0 10 or %o3, 0x10, %o3 <== NOT EXECUTED 2012710: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 2012714: 7f ff c3 3c call 2003404 <__assert_func> <== NOT EXECUTED 2012718: 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; 201271c: 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 ); 2012720: 92 10 00 1a mov %i2, %o1 2012724: 40 00 08 c4 call 2014a34 2012728: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 201272c: 90 07 bf f8 add %fp, -8, %o0 2012730: 7f ff c4 55 call 2003884 2012734: 92 10 20 00 clr %o1 2012738: c2 07 bf f8 ld [ %fp + -8 ], %g1 201273c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 2012740: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 2012744: 81 c7 e0 08 ret 2012748: 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 13 call 200f8b4 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 3c call 200e9d8 <__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 c5 call 200d020 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 2e call 200e9d8 <__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 02002fdc : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2002fdc: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2002fe0: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2002fe4: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2002fe8: 80 a0 a0 01 cmp %g2, 1 2002fec: 22 80 00 08 be,a 200300c 2002ff0: f0 20 60 5c st %i0, [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( ENOTDIR ); 2002ff4: 40 00 44 55 call 2014148 <__errno> <== NOT EXECUTED 2002ff8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002ffc: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2003000: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003004: 81 c7 e0 08 ret <== NOT EXECUTED 2003008: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 200300c: 81 c7 e0 08 ret 2003010: 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 d8 or %o0, 0x2d8, %o0 <== NOT EXECUTED 20039e0: 94 12 a0 c8 or %o2, 0xc8, %o2 <== NOT EXECUTED 20039e4: 96 12 e3 28 or %o3, 0x328, %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 28 ld [ %l0 + 0x28 ], %g1 20039f4: 90 06 20 0c add %i0, 0xc, %o0 20039f8: 40 00 3f 8a call 2013820 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 28 ld [ %l0 + 0x28 ], %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 28 ld [ %l0 + 0x28 ], %g1 2003a30: 90 10 20 2f mov 0x2f, %o0 2003a34: 40 00 3f 37 call 2013710 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 28 ld [ %l0 + 0x28 ], %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 38 or %o1, 0x338, %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 28 ld [ %l0 + 0x28 ], %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 50 or %o1, 0x350, %o1 ! 2022f50 <== NOT EXECUTED 2003a78: 40 00 3f 0c call 20136a8 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 28 ld [ %l0 + 0x28 ], %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 05 call 20136a8 2003a98: 92 12 63 60 or %o1, 0x360, %o1 ! 2022f60 (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 28 ld [ %l0 + 0x28 ], %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 5c call 2013820 <== NOT EXECUTED 2003ab4: 90 12 23 70 or %o0, 0x370, %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 d8 or %o0, 0x2d8, %o0 <== NOT EXECUTED 2003acc: 94 12 a0 c8 or %o2, 0xc8, %o2 <== NOT EXECUTED 2003ad0: 96 12 e3 88 or %o3, 0x388, %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 28 ld [ %l0 + 0x28 ], %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 4e call 2013820 <== NOT EXECUTED 2003aec: 90 12 23 70 or %o0, 0x370, %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 28 ld [ %l0 + 0x28 ], %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 47 call 2013820 <== NOT EXECUTED 2003b08: 90 12 23 90 or %o0, 0x390, %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 e3 call 20136a8 <== NOT EXECUTED 2003b20: 92 12 63 a8 or %o1, 0x3a8, %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 2e call 20153e4 2003b30: 91 ee 22 88 restore %i0, 0x288, %o0 2003b34: 01 00 00 00 nop 02003020 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 2003020: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 2003024: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 2003028: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200302c: 80 a0 a0 04 cmp %g2, 4 2003030: 02 80 00 0a be 2003058 2003034: b0 10 20 00 clr %i0 rtems_set_errno_and_return_minus_one( EINVAL ); 2003038: 40 00 44 44 call 2014148 <__errno> <== NOT EXECUTED 200303c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003040: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003044: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003048: 81 c7 e0 08 ret <== NOT EXECUTED 200304c: 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]; 2003050: 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++ ) 2003054: b0 06 20 01 inc %i0 2003058: 80 a6 00 1a cmp %i0, %i2 200305c: 1a 80 00 07 bcc 2003078 2003060: 01 00 00 00 nop 2003064: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003068: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3 200306c: 80 a0 e0 00 cmp %g3, 0 2003070: 12 bf ff f8 bne 2003050 2003074: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; return i; } 2003078: 81 c7 e0 08 ret 200307c: 81 e8 00 00 restore 02003080 : 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 */ ) { 2003080: 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; 2003084: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 2003088: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 200308c: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 2003090: 40 00 48 01 call 2015094 <== NOT EXECUTED 2003094: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 2003098: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200309c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20030a0: 22 80 00 05 be,a 20030b4 <== NOT EXECUTED 20030a4: 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 ); 20030a8: 40 00 13 4e call 2007de0 <_Chain_Extract> <== NOT EXECUTED 20030ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 20030b0: 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 ); 20030b4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20030b8: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 20030bc: 40 00 13 3d call 2007db0 <_Chain_Append> <== NOT EXECUTED 20030c0: 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 ); 20030c4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20030c8: 40 00 01 ef call 2003884 <== NOT EXECUTED 20030cc: 92 10 20 00 clr %o1 <== NOT EXECUTED 20030d0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20030d4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 20030d8: 81 c7 e0 08 ret <== NOT EXECUTED 20030dc: 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 8e call 200b794 <_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 94 ld [ %g1 + 0x394 ], %g1 ! 201ab94 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 dc call 200e9d8 <__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 020030e0 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 20030e0: 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 ); 20030e4: 40 00 47 b7 call 2014fc0 20030e8: 90 10 00 1a mov %i2, %o0 20030ec: 96 07 bf fc add %fp, -4, %o3 20030f0: 92 10 00 08 mov %o0, %o1 20030f4: a0 07 bf b8 add %fp, -72, %l0 20030f8: 90 10 00 1a mov %i2, %o0 20030fc: 40 00 30 ef call 200f4b8 2003100: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2003104: 40 00 47 9a call 2014f6c 2003108: 90 10 00 19 mov %i1, %o0 200310c: d0 27 bf e0 st %o0, [ %fp + -32 ] if (info.sym_link.name == NULL) { 2003110: 80 a2 20 00 cmp %o0, 0 2003114: 12 80 00 08 bne 2003134 2003118: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one(ENOMEM); 200311c: 40 00 44 0b call 2014148 <__errno> <== NOT EXECUTED 2003120: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003124: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2003128: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200312c: 81 c7 e0 08 ret 2003130: 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( 2003134: 94 10 00 10 mov %l0, %o2 2003138: 92 10 20 04 mov 4, %o1 200313c: 17 00 00 28 sethi %hi(0xa000), %o3 2003140: 98 07 bf e0 add %fp, -32, %o4 2003144: 96 12 e1 ff or %o3, 0x1ff, %o3 2003148: 40 00 2d 92 call 200e790 200314c: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 2003150: 80 a2 20 00 cmp %o0, 0 2003154: 12 bf ff f6 bne 200312c 2003158: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 200315c: 40 00 01 a0 call 20037dc <== NOT EXECUTED 2003160: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2003164: 40 00 43 f9 call 2014148 <__errno> <== NOT EXECUTED 2003168: 01 00 00 00 nop <== NOT EXECUTED 200316c: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2003170: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2003174: 81 c7 e0 08 ret <== NOT EXECUTED 2003178: 81 e8 00 00 restore <== NOT EXECUTED 0200317c : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 200317c: 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; 2003180: 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 ) { 2003184: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003188: 80 a0 60 03 cmp %g1, 3 200318c: 12 80 00 29 bne 2003230 2003190: a4 10 00 18 mov %i0, %l2 if ( !node->info.hard_link.link_node ) 2003194: e6 04 20 50 ld [ %l0 + 0x50 ], %l3 2003198: 80 a4 e0 00 cmp %l3, 0 200319c: 12 80 00 08 bne 20031bc 20031a0: a2 07 bf e4 add %fp, -28, %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 20031a4: 40 00 43 e9 call 2014148 <__errno> <== NOT EXECUTED 20031a8: 01 00 00 00 nop <== NOT EXECUTED 20031ac: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20031b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20031b4: 10 80 00 24 b 2003244 <== NOT EXECUTED 20031b8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 20031bc: 92 10 00 19 mov %i1, %o1 20031c0: 94 10 20 14 mov 0x14, %o2 20031c4: 40 00 46 1c call 2014a34 20031c8: 90 10 00 11 mov %l1, %o0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 20031cc: 90 10 00 11 mov %l1, %o0 20031d0: 40 00 2d bd call 200e8c4 20031d4: 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) 20031d8: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20031dc: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 20031e0: 80 a0 e0 01 cmp %g3, 1 20031e4: 12 80 00 0c bne 2003214 20031e8: 84 00 ff ff add %g3, -1, %g2 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 20031ec: c2 07 bf ec ld [ %fp + -20 ], %g1 20031f0: 92 10 00 11 mov %l1, %o1 20031f4: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20031f8: 9f c0 40 00 call %g1 20031fc: 90 10 00 18 mov %i0, %o0 if ( result != 0 ) 2003200: 80 a2 20 00 cmp %o0, 0 2003204: 02 80 00 0b be 2003230 2003208: 90 10 3f ff mov -1, %o0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 200320c: 81 c7 e0 08 ret 2003210: 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 ); 2003214: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2003218: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] IMFS_update_ctime( node->info.hard_link.link_node ); 200321c: 40 00 01 9a call 2003884 2003220: 92 10 20 00 clr %o1 2003224: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003228: c4 07 bf f8 ld [ %fp + -8 ], %g2 200322c: 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 ); 2003230: c2 06 60 08 ld [ %i1 + 8 ], %g1 2003234: 90 10 00 12 mov %l2, %o0 2003238: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 200323c: 9f c0 40 00 call %g1 2003240: 92 10 00 19 mov %i1, %o1 return result; } 2003244: b0 10 00 08 mov %o0, %i0 2003248: 81 c7 e0 08 ret 200324c: 81 e8 00 00 restore 02003250 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2003250: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003254: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2003258: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200325c: 80 a0 a0 01 cmp %g2, 1 2003260: 22 80 00 06 be,a 2003278 2003264: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2003268: 40 00 43 b8 call 2014148 <__errno> <== NOT EXECUTED 200326c: 01 00 00 00 nop <== NOT EXECUTED 2003270: 10 80 00 08 b 2003290 <== NOT EXECUTED 2003274: 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 ) 2003278: 80 a0 a0 00 cmp %g2, 0 200327c: 32 80 00 08 bne,a 200329c 2003280: c0 20 60 5c clr [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 2003284: 40 00 43 b1 call 2014148 <__errno> <== NOT EXECUTED 2003288: 01 00 00 00 nop <== NOT EXECUTED 200328c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2003290: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003294: 81 c7 e0 08 ret <== NOT EXECUTED 2003298: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 200329c: 81 c7 e0 08 ret 20032a0: 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 60 f8 ld [ %g1 + 0xf8 ], %g1 ! 201b0f8 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 60 fc ld [ %g1 + 0xfc ], %g1 ! 201b0fc 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 60 f5 ldub [ %g1 + 0xf5 ], %g1 ! 201b0f5 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 60 ldub [ %g1 + 0x360 ], %g1 ! 201ab60 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 25 call 200f3c0 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 60 f5 ldub [ %g1 + 0xf5 ], %g1 ! 201b0f5 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 90 ld [ %g1 + 0x290 ], %o0 ! 201aa90 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 c0 ld [ %i1 + 0x3c0 ], %i0 200237c: 40 00 13 66 call 2007114 <_Protected_heap_Get_size> 2002380: d0 00 62 90 ld [ %g1 + 0x290 ], %o0 2002384: 90 02 00 18 add %o0, %i0, %o0 2002388: d0 26 63 c0 st %o0, [ %i1 + 0x3c0 ] 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 60 28 ld [ %g1 + 0x28 ], %l2 ! 2065028 <== 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 08 or %l1, 8, %l1 ! 2067c08 <== 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 60 24 ld [ %g1 + 0x24 ], %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 7b call 200a16c <== 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 66 sethi %hi(0x2059800), %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 63 80 or %o1, 0x380, %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 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED 2003fac: 13 00 81 66 sethi %hi(0x2059800), %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 63 90 or %o1, 0x390, %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 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 2003fd0: d0 04 60 24 ld [ %l1 + 0x24 ], %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 66 sethi %hi(0x2059800), %o1 <== NOT EXECUTED 2003fe8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003fec: 92 12 63 a0 or %o1, 0x3a0, %o1 ! 2059ba0 <== 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 60 20 ld [ %g1 + 0x20 ], %g1 ! 2065020 <== NOT EXECUTED 2003ff8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ffc: 12 80 00 08 bne 200401c <== NOT EXECUTED 2004000: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 2004004: d0 04 60 24 ld [ %l1 + 0x24 ], %o0 <== NOT EXECUTED 2004008: 13 00 81 66 sethi %hi(0x2059800), %o1 <== NOT EXECUTED 200400c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004010: 92 12 63 c0 or %o1, 0x3c0, %o1 ! 2059bc0 <== 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 60 24 ld [ %l1 + 0x24 ], %o0 <== NOT EXECUTED 2004020: 13 00 81 66 sethi %hi(0x2059800), %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 63 d0 or %o1, 0x3d0, %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 50 call 2006df8 <== NOT EXECUTED 20040bc: 90 12 20 40 or %o0, 0x40, %o0 <== NOT EXECUTED printk("task control block: 0x%08lx\n", (unsigned long) 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 4c call 2006df8 <== NOT EXECUTED 20040cc: 90 12 20 50 or %o0, 0x50, %o0 ! 2059c50 <== 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 48 call 2006df8 <== NOT EXECUTED 20040dc: 90 12 20 70 or %o0, 0x70, %o0 ! 2059c70 <== 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 44 call 2006df8 <== NOT EXECUTED 20040ec: 90 12 20 88 or %o0, 0x88, %o0 ! 2059c88 <== NOT EXECUTED "task name: 0x%08lx\n", (unsigned long) 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 1d call 200a16c <== 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 3c call 2006df8 <== NOT EXECUTED 200410c: 90 12 20 a0 or %o0, 0xa0, %o0 ! 2059ca0 <== NOT EXECUTED ); printk( "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) 2004110: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1 <== NOT EXECUTED ); printk( "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 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 36 call 2006df8 <== NOT EXECUTED 2004124: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((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 20 f0 or %o0, 0xf0, %o0 <== NOT EXECUTED 200413c: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 2004140: 40 00 0b 2e call 2006df8 <== 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 40 call 200aa48 <== NOT EXECUTED 200414c: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED 2004150: 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 34 or %l6, 0x334, %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 74 or %i2, 0x174, %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 b4 or %i3, 0xb4, %i3 2014c0c: aa 15 60 20 or %l5, 0x20, %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> 02018e00 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 2018e00: 9d e3 bf a0 save %sp, -96, %sp 2018e04: 40 00 07 16 call 201aa5c <_fini> 2018e08: 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(); 2018e0c: 7f ff ff e1 call 2018d90 2018e10: 01 00 00 00 nop rtems_shutdown_executive(status); 2018e14: 40 00 00 4c call 2018f44 2018e18: 90 10 00 18 mov %i0, %o0 2018e1c: 30 80 00 00 b,a 2018e1c <_exit+0x1c> <== NOT EXECUTED 020388c4 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 20388c4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20388c8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20388cc: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 20388d0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20388d4: 7f ff ff 7f call 20386d0 <== NOT EXECUTED 20388d8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20388dc: 01 00 00 00 nop 0200d28c <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 200d28c: 81 c3 e0 08 retl <== NOT EXECUTED 200d290: 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 020265f8 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 20265f8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20265fc: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2026600: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026604: 7f ff ff 62 call 202638c <== NOT EXECUTED 2026608: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202660c: 01 00 00 00 nop 02026840 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2026840: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2026844: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2026848: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202684c: 7f ff ff c0 call 202674c <== NOT EXECUTED 2026850: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026854: 01 00 00 00 nop 02018f10 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 2018f10: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2018f14: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2018f18: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2018f1c: 40 00 00 17 call 2018f78 <== NOT EXECUTED 2018f20: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2018f24: 01 00 00 00 nop 02058440 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 2058440: 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 ); 2058444: 7f fe b5 67 call 20059e0 <== NOT EXECUTED 2058448: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 205844c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 2058450: 32 80 00 17 bne,a 20584ac <_rename_r+0x6c> <== NOT EXECUTED 2058454: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 2058458: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 205845c: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2058460: 02 80 00 06 be 2058478 <_rename_r+0x38> <== NOT EXECUTED 2058464: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2058468: 02 80 00 04 be 2058478 <_rename_r+0x38> <== NOT EXECUTED 205846c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058470: 12 80 00 07 bne 205848c <_rename_r+0x4c> <== NOT EXECUTED 2058474: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2058478: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 205847c: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 ! 2063db4 <== NOT EXECUTED 2058480: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2058484: 10 80 00 05 b 2058498 <_rename_r+0x58> <== NOT EXECUTED 2058488: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 205848c: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 <== NOT EXECUTED 2058490: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2058494: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 2058498: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 205849c: 7f ff a5 c3 call 2041ba8 <== NOT EXECUTED 20584a0: 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; 20584a4: 10 80 00 0c b 20584d4 <_rename_r+0x94> <== NOT EXECUTED 20584a8: 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, 20584ac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20584b0: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 20584b4: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 20584b8: 98 10 20 00 clr %o4 <== NOT EXECUTED 20584bc: 7f fe b5 97 call 2005b18 <== NOT EXECUTED 20584c0: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 20584c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20584c8: 12 80 00 2b bne 2058574 <_rename_r+0x134> <== NOT EXECUTED 20584cc: 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; 20584d0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 20584d4: a6 07 bf e8 add %fp, -24, %l3 <== NOT EXECUTED 20584d8: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED 20584dc: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20584e0: 7f ff a5 b2 call 2041ba8 <== NOT EXECUTED 20584e4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED name = old + old_parent_pathlen; 20584e8: b2 06 40 10 add %i1, %l0, %i1 <== NOT EXECUTED 20584ec: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 20584f0: 7f ff b4 1a call 2045558 <== NOT EXECUTED 20584f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 20584f8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 20584fc: 7f fe b5 27 call 2005998 <== NOT EXECUTED 2058500: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2058504: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 2058508: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 205850c: 7f ff b4 13 call 2045558 <== NOT EXECUTED 2058510: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2058514: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 2058518: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 205851c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2058520: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2058524: 7f fe b5 41 call 2005a28 <== NOT EXECUTED 2058528: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 205852c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 2058530: 22 80 00 13 be,a 205857c <_rename_r+0x13c> <== NOT EXECUTED 2058534: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED if ( free_old_parentloc ) 2058538: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205853c: 02 80 00 0b be 2058568 <_rename_r+0x128> <== NOT EXECUTED 2058540: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 2058544: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058548: 02 80 00 08 be 2058568 <_rename_r+0x128> <== NOT EXECUTED 205854c: 01 00 00 00 nop <== NOT EXECUTED 2058550: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058554: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058558: 02 80 00 04 be 2058568 <_rename_r+0x128> <== NOT EXECUTED 205855c: 01 00 00 00 nop <== NOT EXECUTED 2058560: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058564: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2058568: 7f ff 98 bd call 203e85c <__errno> <== NOT EXECUTED 205856c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2058570: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 2058574: 81 c7 e0 08 ret <== NOT EXECUTED 2058578: 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 ); 205857c: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2058580: 02 80 00 06 be 2058598 <_rename_r+0x158> <== NOT EXECUTED 2058584: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2058588: 02 80 00 04 be 2058598 <_rename_r+0x158> <== NOT EXECUTED 205858c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058590: 12 80 00 0a bne 20585b8 <_rename_r+0x178> <== NOT EXECUTED 2058594: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2058598: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 205859c: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 ! 2063db4 <== NOT EXECUTED 20585a0: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 20585a4: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 20585a8: 7f ff a5 80 call 2041ba8 <== NOT EXECUTED 20585ac: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 20585b0: 10 80 00 08 b 20585d0 <_rename_r+0x190> <== NOT EXECUTED 20585b4: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 20585b8: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 <== NOT EXECUTED 20585bc: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 20585c0: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 20585c4: 7f ff a5 79 call 2041ba8 <== NOT EXECUTED 20585c8: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 20585cc: 90 10 20 00 clr %o0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 20585d0: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 20585d4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 20585d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20585dc: 02 80 00 61 be 2058760 <_rename_r+0x320> <== NOT EXECUTED 20585e0: 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 ); 20585e4: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 20585e8: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 20585ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20585f0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if ( result != 0 ) { 20585f4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 20585f8: 02 80 00 28 be 2058698 <_rename_r+0x258> <== NOT EXECUTED 20585fc: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 2058600: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 2058604: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058608: 02 80 00 09 be 205862c <_rename_r+0x1ec> <== NOT EXECUTED 205860c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058610: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058614: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058618: 02 80 00 05 be 205862c <_rename_r+0x1ec> <== NOT EXECUTED 205861c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058620: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058624: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 2058628: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 205862c: 02 80 00 0d be 2058660 <_rename_r+0x220> <== NOT EXECUTED 2058630: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 2058634: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2058638: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205863c: 22 80 00 09 be,a 2058660 <_rename_r+0x220> <== NOT EXECUTED 2058640: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058644: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058648: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205864c: 22 80 00 05 be,a 2058660 <_rename_r+0x220> <== NOT EXECUTED 2058650: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058654: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058658: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 205865c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058660: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058664: 02 80 00 08 be 2058684 <_rename_r+0x244> <== NOT EXECUTED 2058668: 01 00 00 00 nop <== NOT EXECUTED 205866c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058670: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058674: 02 80 00 04 be 2058684 <_rename_r+0x244> <== NOT EXECUTED 2058678: 01 00 00 00 nop <== NOT EXECUTED 205867c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058680: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2058684: 7f ff 98 76 call 203e85c <__errno> <== NOT EXECUTED 2058688: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 205868c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED 2058690: 81 c7 e0 08 ret <== NOT EXECUTED 2058694: 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 ) { 2058698: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED 205869c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20586a0: 02 80 00 26 be 2058738 <_rename_r+0x2f8> <== NOT EXECUTED 20586a4: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 20586a8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20586ac: 02 80 00 09 be 20586d0 <_rename_r+0x290> <== NOT EXECUTED 20586b0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20586b4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 20586b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586bc: 02 80 00 05 be 20586d0 <_rename_r+0x290> <== NOT EXECUTED 20586c0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20586c4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20586c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 20586cc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20586d0: 02 80 00 0d be 2058704 <_rename_r+0x2c4> <== NOT EXECUTED 20586d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 20586d8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20586dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586e0: 22 80 00 09 be,a 2058704 <_rename_r+0x2c4> <== NOT EXECUTED 20586e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20586e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20586ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20586f0: 22 80 00 05 be,a 2058704 <_rename_r+0x2c4> <== NOT EXECUTED 20586f4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20586f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20586fc: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 2058700: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058704: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058708: 02 80 00 08 be 2058728 <_rename_r+0x2e8> <== NOT EXECUTED 205870c: 01 00 00 00 nop <== NOT EXECUTED 2058710: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058714: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058718: 02 80 00 04 be 2058728 <_rename_r+0x2e8> <== NOT EXECUTED 205871c: 01 00 00 00 nop <== NOT EXECUTED 2058720: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058724: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 2058728: 7f ff 98 4d call 203e85c <__errno> <== NOT EXECUTED 205872c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2058730: 10 80 00 26 b 20587c8 <_rename_r+0x388> <== NOT EXECUTED 2058734: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 2058738: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 205873c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058740: 12 80 00 25 bne 20587d4 <_rename_r+0x394> <== NOT EXECUTED 2058744: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 2058748: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 205874c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058750: 02 80 00 05 be 2058764 <_rename_r+0x324> <== NOT EXECUTED 2058754: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058758: 9f c0 40 00 call %g1 <== NOT EXECUTED 205875c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 2058760: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058764: 02 80 00 0d be 2058798 <_rename_r+0x358> <== NOT EXECUTED 2058768: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205876c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2058770: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058774: 22 80 00 09 be,a 2058798 <_rename_r+0x358> <== NOT EXECUTED 2058778: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205877c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058780: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058784: 22 80 00 05 be,a 2058798 <_rename_r+0x358> <== NOT EXECUTED 2058788: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205878c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058790: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 2058794: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058798: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205879c: 02 80 00 08 be 20587bc <_rename_r+0x37c> <== NOT EXECUTED 20587a0: 01 00 00 00 nop <== NOT EXECUTED 20587a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20587a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587ac: 02 80 00 04 be 20587bc <_rename_r+0x37c> <== NOT EXECUTED 20587b0: 01 00 00 00 nop <== NOT EXECUTED 20587b4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20587b8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20587bc: 7f ff 98 28 call 203e85c <__errno> <== NOT EXECUTED 20587c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20587c4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20587c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20587cc: 81 c7 e0 08 ret <== NOT EXECUTED 20587d0: 81 e8 00 00 restore <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 20587d4: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 20587d8: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 20587dc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20587e0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 20587e4: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 20587e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587ec: 02 80 00 08 be 205880c <_rename_r+0x3cc> <== NOT EXECUTED 20587f0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20587f4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20587f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20587fc: 02 80 00 05 be 2058810 <_rename_r+0x3d0> <== NOT EXECUTED 2058800: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058804: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058808: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 205880c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2058810: 02 80 00 0d be 2058844 <_rename_r+0x404> <== NOT EXECUTED 2058814: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 2058818: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 205881c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058820: 22 80 00 09 be,a 2058844 <_rename_r+0x404> <== NOT EXECUTED 2058824: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058828: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205882c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058830: 22 80 00 05 be,a 2058844 <_rename_r+0x404> <== NOT EXECUTED 2058834: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058838: 9f c0 40 00 call %g1 <== NOT EXECUTED 205883c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 2058840: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2058844: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058848: 02 80 00 08 be 2058868 <_rename_r+0x428> <== NOT EXECUTED 205884c: 01 00 00 00 nop <== NOT EXECUTED 2058850: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2058854: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2058858: 02 80 00 04 be 2058868 <_rename_r+0x428> <== NOT EXECUTED 205885c: 01 00 00 00 nop <== NOT EXECUTED 2058860: 9f c0 40 00 call %g1 <== NOT EXECUTED 2058864: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED return result; } 2058868: 81 c7 e0 08 ret <== NOT EXECUTED 205886c: 81 e8 00 00 restore <== NOT EXECUTED 0200742c <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 200742c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2007430: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2007434: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2007438: 7f ff ff c0 call 2007338 <== NOT EXECUTED 200743c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2007440: 01 00 00 00 nop 0200e350 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200e350: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200e354: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200e358: 7f ff ff 58 call 200e0b8 <== NOT EXECUTED 200e35c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200e360: 01 00 00 00 nop 02024fd4 : #include int chdir( const char *pathname ) { 2024fd4: 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 ); 2024fd8: 40 00 81 60 call 2045558 2024fdc: 90 10 00 18 mov %i0, %o0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2024fe0: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 2024fe4: 92 10 00 08 mov %o0, %o1 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2024fe8: 94 10 20 01 mov 1, %o2 2024fec: 90 10 00 18 mov %i0, %o0 2024ff0: 96 10 00 10 mov %l0, %o3 2024ff4: 98 10 20 01 mov 1, %o4 2024ff8: 7f ff 82 c8 call 2005b18 2024ffc: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 2025000: 80 a2 20 00 cmp %o0, 0 2025004: 12 80 00 37 bne 20250e0 2025008: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 202500c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2025010: 80 a0 60 00 cmp %g1, 0 2025014: 12 80 00 0c bne 2025044 2025018: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 202501c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2025020: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025024: 02 80 00 04 be 2025034 <== NOT EXECUTED 2025028: 01 00 00 00 nop <== NOT EXECUTED 202502c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025030: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025034: 40 00 66 0a call 203e85c <__errno> <== NOT EXECUTED 2025038: 01 00 00 00 nop <== NOT EXECUTED 202503c: 10 80 00 14 b 202508c <== NOT EXECUTED 2025040: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2025044: 9f c0 40 00 call %g1 2025048: 90 10 00 10 mov %l0, %o0 202504c: 80 a2 20 01 cmp %o0, 1 2025050: 02 80 00 12 be 2025098 2025054: 03 00 81 8f sethi %hi(0x2063c00), %g1 rtems_filesystem_freenode( &loc ); 2025058: c2 07 bf f8 ld [ %fp + -8 ], %g1 202505c: 80 a0 60 00 cmp %g1, 0 2025060: 02 80 00 08 be 2025080 2025064: 01 00 00 00 nop 2025068: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202506c: 80 a0 60 00 cmp %g1, 0 2025070: 02 80 00 04 be 2025080 2025074: 01 00 00 00 nop 2025078: 9f c0 40 00 call %g1 202507c: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2025080: 40 00 65 f7 call 203e85c <__errno> 2025084: 01 00 00 00 nop 2025088: 82 10 20 14 mov 0x14, %g1 ! 14 202508c: c2 22 00 00 st %g1, [ %o0 ] 2025090: 81 c7 e0 08 ret 2025094: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 2025098: d0 00 61 b4 ld [ %g1 + 0x1b4 ], %o0 202509c: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 20250a0: 80 a0 60 00 cmp %g1, 0 20250a4: 22 80 00 09 be,a 20250c8 20250a8: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20250ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 2063c1c 20250b0: 80 a0 60 00 cmp %g1, 0 20250b4: 22 80 00 05 be,a 20250c8 20250b8: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20250bc: 9f c0 40 00 call %g1 20250c0: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 20250c4: 03 00 81 8f sethi %hi(0x2063c00), %g1 20250c8: d0 00 61 b4 ld [ %g1 + 0x1b4 ], %o0 ! 2063db4 20250cc: 92 07 bf ec add %fp, -20, %o1 20250d0: 90 02 20 04 add %o0, 4, %o0 20250d4: 94 10 20 14 mov 0x14, %o2 20250d8: 40 00 72 b4 call 2041ba8 20250dc: b0 10 20 00 clr %i0 return 0; } 20250e0: 81 c7 e0 08 ret 20250e4: 81 e8 00 00 restore 020057d8 : int chmod( const char *path, mode_t mode ) { 20057d8: 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 ); 20057dc: 40 00 ff 5f call 2045558 20057e0: 90 10 00 18 mov %i0, %o0 20057e4: a0 07 bf ec add %fp, -20, %l0 20057e8: 92 10 00 08 mov %o0, %o1 20057ec: 94 10 20 00 clr %o2 20057f0: 90 10 00 18 mov %i0, %o0 20057f4: 96 10 00 10 mov %l0, %o3 20057f8: 98 10 20 01 mov 1, %o4 20057fc: 40 00 00 c7 call 2005b18 2005800: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 2005804: 80 a2 20 00 cmp %o0, 0 2005808: 12 80 00 24 bne 2005898 200580c: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 2005810: 80 a0 60 00 cmp %g1, 0 2005814: 32 80 00 10 bne,a 2005854 2005818: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 rtems_filesystem_freenode( &loc ); 200581c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2005820: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005824: 02 80 00 08 be 2005844 <== NOT EXECUTED 2005828: 01 00 00 00 nop <== NOT EXECUTED 200582c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005830: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005834: 02 80 00 04 be 2005844 <== NOT EXECUTED 2005838: 01 00 00 00 nop <== NOT EXECUTED 200583c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005840: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2005844: 40 00 e4 06 call 203e85c <__errno> <== NOT EXECUTED 2005848: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200584c: 10 80 00 12 b 2005894 <== NOT EXECUTED 2005850: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 2005854: 80 a0 60 00 cmp %g1, 0 2005858: 12 80 00 12 bne 20058a0 200585c: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 2005860: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2005864: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005868: 02 80 00 08 be 2005888 <== NOT EXECUTED 200586c: 01 00 00 00 nop <== NOT EXECUTED 2005870: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005874: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005878: 02 80 00 04 be 2005888 <== NOT EXECUTED 200587c: 01 00 00 00 nop <== NOT EXECUTED 2005880: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005884: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005888: 40 00 e3 f5 call 203e85c <__errno> <== NOT EXECUTED 200588c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005890: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2005894: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005898: 81 c7 e0 08 ret 200589c: 81 e8 00 00 restore } result = (*loc.handlers->fchmod_h)( &loc, mode ); 20058a0: 90 10 00 10 mov %l0, %o0 20058a4: 9f c0 40 00 call %g1 20058a8: 93 32 60 10 srl %o1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 20058ac: c2 07 bf f8 ld [ %fp + -8 ], %g1 20058b0: 80 a0 60 00 cmp %g1, 0 20058b4: 02 bf ff f9 be 2005898 20058b8: b0 10 00 08 mov %o0, %i0 20058bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20058c0: 80 a0 60 00 cmp %g1, 0 20058c4: 02 80 00 04 be 20058d4 20058c8: 01 00 00 00 nop 20058cc: 9f c0 40 00 call %g1 20058d0: 90 10 00 10 mov %l0, %o0 return result; } 20058d4: 81 c7 e0 08 ret 20058d8: 81 e8 00 00 restore 020250e8 : int chown( const char *path, uid_t owner, gid_t group ) { 20250e8: 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 ) ) 20250ec: 40 00 81 1b call 2045558 20250f0: 90 10 00 18 mov %i0, %o0 20250f4: a0 07 bf ec add %fp, -20, %l0 20250f8: 92 10 00 08 mov %o0, %o1 20250fc: 94 10 20 00 clr %o2 2025100: 90 10 00 18 mov %i0, %o0 2025104: 96 10 00 10 mov %l0, %o3 2025108: 98 10 20 01 mov 1, %o4 202510c: 7f ff 82 83 call 2005b18 2025110: b0 10 3f ff mov -1, %i0 2025114: 80 a2 20 00 cmp %o0, 0 2025118: 12 80 00 10 bne 2025158 202511c: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 2025120: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 2025124: 80 a0 60 00 cmp %g1, 0 2025128: 12 80 00 0e bne 2025160 202512c: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 2025130: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2025134: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025138: 02 80 00 04 be 2025148 <== NOT EXECUTED 202513c: 01 00 00 00 nop <== NOT EXECUTED 2025140: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025144: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025148: 40 00 65 c5 call 203e85c <__errno> <== NOT EXECUTED 202514c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025150: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2025154: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025158: 81 c7 e0 08 ret 202515c: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 2025160: 95 2e a0 10 sll %i2, 0x10, %o2 2025164: 93 32 60 10 srl %o1, 0x10, %o1 2025168: 95 32 a0 10 srl %o2, 0x10, %o2 202516c: 9f c0 40 00 call %g1 2025170: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2025174: c2 07 bf f8 ld [ %fp + -8 ], %g1 2025178: 80 a0 60 00 cmp %g1, 0 202517c: 02 bf ff f7 be 2025158 2025180: b0 10 00 08 mov %o0, %i0 2025184: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2025188: 80 a0 60 00 cmp %g1, 0 202518c: 02 80 00 04 be 202519c 2025190: 01 00 00 00 nop 2025194: 9f c0 40 00 call %g1 2025198: 90 10 00 10 mov %l0, %o0 return result; } 202519c: 81 c7 e0 08 ret 20251a0: 81 e8 00 00 restore 020251a4 : #include int chroot( const char *pathname ) { 20251a4: 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) { 20251a8: 23 00 81 8f sethi %hi(0x2063c00), %l1 20251ac: e0 04 61 b4 ld [ %l1 + 0x1b4 ], %l0 ! 2063db4 20251b0: 03 00 81 9f sethi %hi(0x2067c00), %g1 20251b4: 82 10 60 70 or %g1, 0x70, %g1 ! 2067c70 20251b8: 80 a4 00 01 cmp %l0, %g1 20251bc: 12 80 00 0e bne 20251f4 20251c0: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 20251c4: 40 00 06 75 call 2026b98 20251c8: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 20251cc: c2 04 61 b4 ld [ %l1 + 0x1b4 ], %g1 20251d0: 80 a0 40 10 cmp %g1, %l0 20251d4: 12 80 00 08 bne 20251f4 20251d8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 20251dc: 40 00 65 a0 call 203e85c <__errno> <== NOT EXECUTED 20251e0: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20251e4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20251e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20251ec: 81 c7 e0 08 ret <== NOT EXECUTED 20251f0: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 20251f4: 7f ff ff 78 call 2024fd4 20251f8: 90 10 00 18 mov %i0, %o0 if (result) { 20251fc: 80 a2 20 00 cmp %o0, 0 2025200: 12 80 00 0b bne 202522c 2025204: 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)) { 2025208: 92 10 20 01 mov 1, %o1 202520c: 90 12 20 90 or %o0, 0x90, %o0 2025210: 94 10 20 00 clr %o2 2025214: 96 07 bf ec add %fp, -20, %o3 2025218: 7f ff 82 40 call 2005b18 202521c: 98 10 20 00 clr %o4 2025220: 80 a2 20 00 cmp %o0, 0 2025224: 02 80 00 0a be 202524c 2025228: 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 ); 202522c: 40 00 65 8c call 203e85c <__errno> <== NOT EXECUTED 2025230: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025234: 40 00 65 8a call 203e85c <__errno> <== NOT EXECUTED 2025238: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 202523c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2025240: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2025244: 81 c7 e0 08 ret <== NOT EXECUTED 2025248: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 202524c: d0 00 61 b4 ld [ %g1 + 0x1b4 ], %o0 2025250: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 2025254: 80 a0 60 00 cmp %g1, 0 2025258: 22 80 00 09 be,a 202527c 202525c: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2025260: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 2063c1c 2025264: 80 a0 60 00 cmp %g1, 0 2025268: 22 80 00 05 be,a 202527c 202526c: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2025270: 9f c0 40 00 call %g1 2025274: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 2025278: 03 00 81 8f sethi %hi(0x2063c00), %g1 202527c: d0 00 61 b4 ld [ %g1 + 0x1b4 ], %o0 ! 2063db4 2025280: 92 07 bf ec add %fp, -20, %o1 2025284: 94 10 20 14 mov 0x14, %o2 2025288: 90 02 20 18 add %o0, 0x18, %o0 202528c: 40 00 72 47 call 2041ba8 2025290: b0 10 20 00 clr %i0 return 0; } 2025294: 81 c7 e0 08 ret 2025298: 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 4b call 200a840 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 a8 or %l3, 0x1a8, %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 e9 call 200c30c <__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 7e call 200d18c 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 20 ld [ %g1 + 0x320 ], %g1 ! 200ff20 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 d4 or %g1, 0x2d4, %g1 ! 200fed4 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 8c or %g1, 0x28c, %g1 ! 200fe8c 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 c3 call 200c30c <__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 a8 ld [ %l1 + 0x1a8 ], %g1 ! 200fda8 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 a8 ld [ %l1 + 0x1a8 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2001b68: 40 00 29 e9 call 200c30c <__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 40 call 200cc8c 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 d4 or %g1, 0x2d4, %g1 ! 200fed4 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 8c or %g1, 0x28c, %g1 ! 200fe8c 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 ba call 200c30c <__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 a8 or %i1, 0x1a8, %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 ac call 200c30c <__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 be call 200cf74 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 9f call 200c30c <__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 92 call 200c30c <__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 ef call 200d0b8 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 34 call 200c30c <__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 0200c54c : */ int device_close( rtems_libio_t *iop ) { 200c54c: 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; 200c550: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200c554: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200c558: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200c55c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200c560: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c564: 94 07 bf f4 add %fp, -12, %o2 200c568: 40 00 05 28 call 200da08 200c56c: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200c570: 80 a2 20 00 cmp %o0, 0 200c574: 02 80 00 05 be 200c588 200c578: 01 00 00 00 nop return rtems_deviceio_errno(status); 200c57c: 40 00 06 ae call 200e034 <== NOT EXECUTED 200c580: 01 00 00 00 nop <== NOT EXECUTED 200c584: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 200c588: 81 c7 e0 08 ret 200c58c: 81 e8 00 00 restore 0200c44c : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200c44c: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200c450: 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; 200c454: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200c458: 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; 200c45c: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200c460: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c464: 40 00 05 7f call 200da60 200c468: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c46c: 80 a2 20 00 cmp %o0, 0 200c470: 22 80 00 06 be,a 200c488 200c474: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200c478: 40 00 06 ef call 200e034 <== NOT EXECUTED 200c47c: 01 00 00 00 nop <== NOT EXECUTED 200c480: 81 c7 e0 08 ret <== NOT EXECUTED 200c484: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 200c488: b0 10 00 08 mov %o0, %i0 200c48c: 81 c7 e0 08 ret 200c490: 81 e8 00 00 restore 0200c590 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200c590: 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; 200c594: 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; 200c598: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200c59c: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200c5a0: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200c5a4: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200c5a8: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c5ac: 94 07 bf f4 add %fp, -12, %o2 200c5b0: 40 00 05 42 call 200dab8 200c5b4: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c5b8: 80 a2 20 00 cmp %o0, 0 200c5bc: 02 80 00 05 be 200c5d0 200c5c0: 01 00 00 00 nop return rtems_deviceio_errno(status); 200c5c4: 40 00 06 9c call 200e034 <== NOT EXECUTED 200c5c8: 01 00 00 00 nop <== NOT EXECUTED 200c5cc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 200c5d0: 81 c7 e0 08 ret 200c5d4: 81 e8 00 00 restore 0200c4f0 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200c4f0: 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; 200c4f4: 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; 200c4f8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 200c4fc: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 200c500: 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; 200c504: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200c508: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 200c50c: 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; 200c510: 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; 200c514: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 200c518: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200c51c: 40 00 05 7d call 200db10 <== NOT EXECUTED 200c520: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c524: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c528: 22 80 00 06 be,a 200c540 <== NOT EXECUTED 200c52c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200c530: 40 00 06 c1 call 200e034 <== NOT EXECUTED 200c534: 01 00 00 00 nop <== NOT EXECUTED 200c538: 81 c7 e0 08 ret <== NOT EXECUTED 200c53c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200c540: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200c544: 81 c7 e0 08 ret <== NOT EXECUTED 200c548: 81 e8 00 00 restore <== NOT EXECUTED 0200c494 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200c494: 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; 200c498: 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; 200c49c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200c4a0: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200c4a4: 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; 200c4a8: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200c4ac: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200c4b0: 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; 200c4b4: 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; 200c4b8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200c4bc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200c4c0: 40 00 05 aa call 200db68 200c4c4: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200c4c8: 80 a2 20 00 cmp %o0, 0 200c4cc: 22 80 00 06 be,a 200c4e4 200c4d0: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200c4d4: 40 00 06 d8 call 200e034 <== NOT EXECUTED 200c4d8: 01 00 00 00 nop <== NOT EXECUTED 200c4dc: 81 c7 e0 08 ret <== NOT EXECUTED 200c4e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200c4e4: b0 10 00 08 mov %o0, %i0 200c4e8: 81 c7 e0 08 ret 200c4ec: 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 34 ld [ %g1 + 0x34 ], %g2 ! 201ac34 <__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 020258ec : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 20258ec: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 20258f0: d0 00 61 24 ld [ %g1 + 0x124 ], %o0 ! 2067924 <== NOT EXECUTED 20258f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20258f8: 02 80 00 05 be 202590c <== NOT EXECUTED 20258fc: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 2025900: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025904: 40 00 64 2e call 203e9bc <== NOT EXECUTED 2025908: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 202590c: 81 c3 e0 08 retl <== NOT EXECUTED 2025910: 01 00 00 00 nop 02025914 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 2025914: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025918: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 206783c <== NOT EXECUTED 202591c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025920: 02 80 00 05 be 2025934 <== NOT EXECUTED 2025924: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2025928: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202592c: 40 00 64 24 call 203e9bc <== NOT EXECUTED 2025930: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2025934: 81 c3 e0 08 retl <== NOT EXECUTED 2025938: 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 66 sethi %hi(0x2019800), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 200391c: 29 00 80 66 sethi %hi(0x2019800), %l4 <== NOT EXECUTED 2003920: a4 14 a0 34 or %l2, 0x34, %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 e3 f0 or %l3, 0x3f0, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003928: a8 15 23 e8 or %l4, 0x3e8, %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 02038534 : #include int fchdir( int fd ) { 2038534: 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 ); 2038538: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 203853c: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 2063ac4 <== NOT EXECUTED 2038540: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2038544: 1a 80 00 0c bcc 2038574 <== NOT EXECUTED 2038548: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 203854c: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 2038550: e4 00 60 10 ld [ %g1 + 0x10 ], %l2 ! 2067c10 <== NOT EXECUTED 2038554: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2038558: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 203855c: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2038560: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2038564: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 2038568: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 203856c: 12 80 00 06 bne 2038584 <== NOT EXECUTED 2038570: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2038574: 40 00 18 ba call 203e85c <__errno> <== NOT EXECUTED 2038578: 01 00 00 00 nop <== NOT EXECUTED 203857c: 10 80 00 1b b 20385e8 <== NOT EXECUTED 2038580: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2038584: 32 80 00 06 bne,a 203859c <== NOT EXECUTED 2038588: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 203858c: 40 00 18 b4 call 203e85c <__errno> <== NOT EXECUTED 2038590: 01 00 00 00 nop <== NOT EXECUTED 2038594: 10 80 00 15 b 20385e8 <== NOT EXECUTED 2038598: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 203859c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20385a0: 02 80 00 06 be 20385b8 <== NOT EXECUTED 20385a4: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 20385a8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 20385ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20385b0: 32 80 00 06 bne,a 20385c8 <== NOT EXECUTED 20385b4: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20385b8: 40 00 18 a9 call 203e85c <__errno> <== NOT EXECUTED 20385bc: 01 00 00 00 nop <== NOT EXECUTED 20385c0: 10 80 00 0a b 20385e8 <== NOT EXECUTED 20385c4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 20385c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20385cc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20385d0: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 20385d4: 02 80 00 07 be 20385f0 <== NOT EXECUTED 20385d8: 23 00 81 8f sethi %hi(0x2063c00), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 20385dc: 40 00 18 a0 call 203e85c <__errno> <== NOT EXECUTED 20385e0: 01 00 00 00 nop <== NOT EXECUTED 20385e4: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 20385e8: 10 80 00 1c b 2038658 <== NOT EXECUTED 20385ec: 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; 20385f0: e6 04 61 b4 ld [ %l1 + 0x1b4 ], %l3 <== NOT EXECUTED 20385f4: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 20385f8: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 20385fc: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 2038600: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2038604: 40 00 25 69 call 2041ba8 <== NOT EXECUTED 2038608: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 203860c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2038610: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2038614: 40 00 25 65 call 2041ba8 <== NOT EXECUTED 2038618: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 203861c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2038620: 11 00 81 6c sethi %hi(0x205b000), %o0 <== NOT EXECUTED 2038624: 94 10 20 00 clr %o2 <== NOT EXECUTED 2038628: 90 12 20 90 or %o0, 0x90, %o0 <== NOT EXECUTED 203862c: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 2038630: 7f ff 35 3a call 2005b18 <== NOT EXECUTED 2038634: 98 10 20 00 clr %o4 <== NOT EXECUTED 2038638: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 203863c: 02 80 00 09 be 2038660 <== NOT EXECUTED 2038640: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 2038644: d0 04 61 b4 ld [ %l1 + 0x1b4 ], %o0 <== NOT EXECUTED 2038648: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 203864c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2038650: 40 00 25 56 call 2041ba8 <== NOT EXECUTED 2038654: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 2038658: 81 c7 e0 08 ret <== NOT EXECUTED 203865c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 2038660: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2038664: 22 80 00 09 be,a 2038688 <== NOT EXECUTED 2038668: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 203866c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 2063c1c <== NOT EXECUTED 2038670: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2038674: 22 80 00 05 be,a 2038688 <== NOT EXECUTED 2038678: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 203867c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2038680: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 2038684: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2038688: d0 00 61 b4 ld [ %g1 + 0x1b4 ], %o0 ! 2063db4 <== NOT EXECUTED 203868c: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 2038690: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2038694: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2038698: 40 00 25 44 call 2041ba8 <== NOT EXECUTED 203869c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 20386a0: 81 c7 e0 08 ret <== NOT EXECUTED 20386a4: 81 e8 00 00 restore <== NOT EXECUTED 020254d4 : int fchmod( int fd, mode_t mode ) { 20254d4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20254d8: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 20254dc: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 2063ac4 <== NOT EXECUTED 20254e0: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20254e4: 1a 80 00 0c bcc 2025514 <== NOT EXECUTED 20254e8: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20254ec: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 20254f0: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 ! 2067c10 <== NOT EXECUTED 20254f4: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20254f8: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20254fc: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2025500: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2025504: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 2025508: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 202550c: 12 80 00 06 bne 2025524 <== NOT EXECUTED 2025510: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2025514: 40 00 64 d2 call 203e85c <__errno> <== NOT EXECUTED 2025518: 01 00 00 00 nop <== NOT EXECUTED 202551c: 10 80 00 0f b 2025558 <== NOT EXECUTED 2025520: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2025524: 32 80 00 06 bne,a 202553c <== NOT EXECUTED 2025528: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 202552c: 40 00 64 cc call 203e85c <__errno> <== NOT EXECUTED 2025530: 01 00 00 00 nop <== NOT EXECUTED 2025534: 10 80 00 09 b 2025558 <== NOT EXECUTED 2025538: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 202553c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2025540: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025544: 32 80 00 08 bne,a 2025564 <== NOT EXECUTED 2025548: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202554c: 40 00 64 c4 call 203e85c <__errno> <== NOT EXECUTED 2025550: 01 00 00 00 nop <== NOT EXECUTED 2025554: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2025558: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 202555c: 10 80 00 07 b 2025578 <== NOT EXECUTED 2025560: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2025564: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED 2025568: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202556c: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 2025570: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025574: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 2025578: 81 c7 e0 08 ret <== NOT EXECUTED 202557c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02025580 : int fchown( int fd, uid_t owner, gid_t group ) { 2025580: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2025584: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 2025588: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 2063ac4 <== NOT EXECUTED 202558c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2025590: 1a 80 00 0c bcc 20255c0 <== NOT EXECUTED 2025594: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2025598: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 202559c: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 ! 2067c10 <== NOT EXECUTED 20255a0: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20255a4: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20255a8: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 20255ac: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20255b0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 20255b4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20255b8: 12 80 00 06 bne 20255d0 <== NOT EXECUTED 20255bc: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 20255c0: 40 00 64 a7 call 203e85c <__errno> <== NOT EXECUTED 20255c4: 01 00 00 00 nop <== NOT EXECUTED 20255c8: 10 80 00 0f b 2025604 <== NOT EXECUTED 20255cc: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20255d0: 32 80 00 06 bne,a 20255e8 <== NOT EXECUTED 20255d4: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 20255d8: 40 00 64 a1 call 203e85c <__errno> <== NOT EXECUTED 20255dc: 01 00 00 00 nop <== NOT EXECUTED 20255e0: 10 80 00 09 b 2025604 <== NOT EXECUTED 20255e4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 20255e8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20255ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20255f0: 12 80 00 08 bne 2025610 <== NOT EXECUTED 20255f4: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20255f8: 40 00 64 99 call 203e85c <__errno> <== NOT EXECUTED 20255fc: 01 00 00 00 nop <== NOT EXECUTED 2025600: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2025604: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025608: 10 80 00 07 b 2025624 <== NOT EXECUTED 202560c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 2025610: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 2025614: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 2025618: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 202561c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025620: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 2025624: 81 c7 e0 08 ret <== NOT EXECUTED 2025628: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 020386d0 : int fcntl( int fd, int cmd, ... ) { 20386d0: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 20386d4: 03 00 81 8e sethi %hi(0x2063800), %g1 20386d8: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 2063ac4 ... ) { int ret; va_list ap; va_start( ap, cmd ); 20386dc: 84 07 a0 4c add %fp, 0x4c, %g2 20386e0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 20386e4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 20386e8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 20386ec: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 20386f0: 80 a6 00 01 cmp %i0, %g1 20386f4: 1a 80 00 0c bcc 2038724 20386f8: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 20386fc: 07 00 81 9f sethi %hi(0x2067c00), %g3 2038700: c6 00 e0 10 ld [ %g3 + 0x10 ], %g3 ! 2067c10 2038704: 89 2e 20 06 sll %i0, 6, %g4 2038708: a1 2e 20 03 sll %i0, 3, %l0 203870c: a0 04 00 04 add %l0, %g4, %l0 2038710: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 2038714: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2038718: 80 8a 21 00 btst 0x100, %o0 203871c: 12 80 00 06 bne 2038734 2038720: 80 a6 60 09 cmp %i1, 9 2038724: 40 00 18 4e call 203e85c <__errno> <== NOT EXECUTED 2038728: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 203872c: 10 80 00 51 b 2038870 <== NOT EXECUTED 2038730: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 2038734: 18 80 00 4c bgu 2038864 2038738: 89 2e 60 02 sll %i1, 2, %g4 203873c: 1b 00 80 e1 sethi %hi(0x2038400), %o5 2038740: 9a 13 62 a8 or %o5, 0x2a8, %o5 ! 20386a8 2038744: c8 03 40 04 ld [ %o5 + %g4 ], %g4 2038748: 81 c1 00 00 jmp %g4 203874c: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 2038750: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 2038754: 80 a0 a0 00 cmp %g2, 0 2038758: 02 80 00 09 be 203877c 203875c: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 2038760: 1a 80 00 0c bcc 2038790 <== NOT EXECUTED 2038764: a2 10 20 00 clr %l1 <== NOT EXECUTED 2038768: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 203876c: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 2038770: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 2038774: 10 80 00 07 b 2038790 <== NOT EXECUTED 2038778: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 203877c: 7f ff 36 01 call 2005f80 2038780: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 2038784: a2 92 20 00 orcc %o0, 0, %l1 2038788: 02 80 00 4d be 20388bc 203878c: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 2038790: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 2038794: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 2038798: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 203879c: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 20387a0: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 20387a4: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 20387a8: 90 04 60 1c add %l1, 0x1c, %o0 20387ac: 92 04 20 1c add %l0, 0x1c, %o1 20387b0: 40 00 24 fe call 2041ba8 20387b4: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 20387b8: 03 00 81 9f sethi %hi(0x2067c00), %g1 20387bc: f0 00 60 10 ld [ %g1 + 0x10 ], %i0 ! 2067c10 20387c0: a2 24 40 18 sub %l1, %i0, %l1 20387c4: a3 3c 60 03 sra %l1, 3, %l1 20387c8: 85 2c 60 06 sll %l1, 6, %g2 20387cc: 83 2c 60 03 sll %l1, 3, %g1 20387d0: 82 20 80 01 sub %g2, %g1, %g1 20387d4: 85 28 60 06 sll %g1, 6, %g2 20387d8: 82 00 40 02 add %g1, %g2, %g1 20387dc: 82 00 40 11 add %g1, %l1, %g1 20387e0: b1 28 60 0f sll %g1, 0xf, %i0 20387e4: b0 26 00 01 sub %i0, %g1, %i0 20387e8: b1 2e 20 03 sll %i0, 3, %i0 20387ec: 10 80 00 24 b 203887c 20387f0: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 20387f4: b1 32 20 0b srl %o0, 0xb, %i0 20387f8: 10 80 00 24 b 2038888 20387fc: 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 ) ) 2038800: c2 00 80 00 ld [ %g2 ], %g1 2038804: 80 a0 60 00 cmp %g1, 0 2038808: 22 80 00 03 be,a 2038814 203880c: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 2038810: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 2038814: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 2038818: 10 80 00 1c b 2038888 203881c: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 2038820: 7f ff 35 6d call 2005dd4 2038824: 01 00 00 00 nop 2038828: 10 80 00 15 b 203887c 203882c: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 2038830: d0 00 80 00 ld [ %g2 ], %o0 2038834: 7f ff 36 07 call 2006050 2038838: 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); 203883c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2038840: 90 0a 22 01 and %o0, 0x201, %o0 2038844: 82 08 7d fe and %g1, -514, %g1 2038848: 82 12 00 01 or %o0, %g1, %g1 203884c: 10 80 00 0f b 2038888 2038850: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 2038854: 40 00 18 02 call 203e85c <__errno> 2038858: b0 10 3f ff mov -1, %i0 203885c: 10 80 00 05 b 2038870 2038860: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 2038864: 40 00 17 fe call 203e85c <__errno> 2038868: b0 10 3f ff mov -1, %i0 203886c: 82 10 20 16 mov 0x16, %g1 2038870: c2 22 00 00 st %g1, [ %o0 ] 2038874: 81 c7 e0 08 ret 2038878: 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) { 203887c: 80 a6 20 00 cmp %i0, 0 2038880: 06 80 00 0f bl 20388bc 2038884: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 2038888: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 203888c: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 2038890: 80 a0 60 00 cmp %g1, 0 2038894: 02 bf ff f8 be 2038874 2038898: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 203889c: 9f c0 40 00 call %g1 20388a0: 90 10 00 19 mov %i1, %o0 if (err) { 20388a4: a0 92 20 00 orcc %o0, 0, %l0 20388a8: 02 80 00 05 be 20388bc 20388ac: 01 00 00 00 nop errno = err; 20388b0: 40 00 17 eb call 203e85c <__errno> <== NOT EXECUTED 20388b4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 20388b8: 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; } 20388bc: 81 c7 e0 08 ret 20388c0: 81 e8 00 00 restore 0200cb68 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200cb68: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200cb6c: 03 00 80 6c sethi %hi(0x201b000), %g1 200cb70: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201b250 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200cb74: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200cb78: 92 10 20 00 clr %o1 200cb7c: 94 10 20 00 clr %o2 200cb80: 7f ff e2 94 call 20055d0 200cb84: b0 10 3f fc mov -4, %i0 200cb88: 80 a2 20 00 cmp %o0, 0 200cb8c: 12 80 00 f0 bne 200cf4c 200cb90: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200cb94: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 200cb98: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200cb9c: 32 80 00 5b bne,a 200cd08 <== NOT EXECUTED 200cba0: 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)); 200cba4: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED 200cba8: 7f ff f7 70 call 200a968 <== NOT EXECUTED 200cbac: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 200cbb0: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 200cbb4: 02 80 00 66 be 200cd4c <== NOT EXECUTED 200cbb8: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 200cbbc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cbc0: 40 00 0a 00 call 200f3c0 <== NOT EXECUTED 200cbc4: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 200cbc8: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200cbcc: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 200cbd0: 7f ff f7 66 call 200a968 <== NOT EXECUTED 200cbd4: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 200cbd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cbdc: 02 80 00 46 be 200ccf4 <== NOT EXECUTED 200cbe0: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 200cbe4: 27 00 80 6b sethi %hi(0x201ac00), %l3 <== NOT EXECUTED 200cbe8: d0 4c e0 20 ldsb [ %l3 + 0x20 ], %o0 ! 201ac20 <== NOT EXECUTED 200cbec: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 200cbf0: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200cbf4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cbf8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200cbfc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200cc00: 40 00 02 b1 call 200d6c4 <== NOT EXECUTED 200cc04: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED 200cc08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cc0c: 32 80 00 38 bne,a 200ccec <== NOT EXECUTED 200cc10: 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( 200cc14: d0 4c e0 20 ldsb [ %l3 + 0x20 ], %o0 <== NOT EXECUTED 200cc18: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200cc1c: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200cc20: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cc24: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200cc28: 94 10 20 00 clr %o2 <== NOT EXECUTED 200cc2c: 40 00 02 a6 call 200d6c4 <== NOT EXECUTED 200cc30: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED 200cc34: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cc38: 12 80 00 2a bne 200cce0 <== NOT EXECUTED 200cc3c: 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( 200cc40: d0 4c e0 20 ldsb [ %l3 + 0x20 ], %o0 <== NOT EXECUTED 200cc44: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200cc48: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 200cc4c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200cc50: 96 10 20 00 clr %o3 <== NOT EXECUTED 200cc54: 7f ff e1 bd call 2005348 <== NOT EXECUTED 200cc58: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED 200cc5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cc60: 12 80 00 1e bne 200ccd8 <== NOT EXECUTED 200cc64: 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 *) 200cc68: d2 04 a0 2c ld [ %l2 + 0x2c ], %o1 <== NOT EXECUTED 200cc6c: b0 07 bf f8 add %fp, -8, %i0 <== NOT EXECUTED 200cc70: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200cc74: 7f ff e8 61 call 2006df8 <_Objects_Get> <== NOT EXECUTED 200cc78: 90 15 23 00 or %l4, 0x300, %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 200cc7c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200cc80: 25 04 00 00 sethi %hi(0x10000000), %l2 <== NOT EXECUTED 200cc84: 82 10 40 12 or %g1, %l2, %g1 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200cc88: 7f ff ea c5 call 200779c <_Thread_Enable_dispatch> <== NOT EXECUTED 200cc8c: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED 200cc90: d2 04 60 30 ld [ %l1 + 0x30 ], %o1 <== NOT EXECUTED 200cc94: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 200cc98: 7f ff e8 58 call 2006df8 <_Objects_Get> <== NOT EXECUTED 200cc9c: 90 15 23 00 or %l4, 0x300, %o0 <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 200cca0: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 200cca4: a4 10 40 12 or %g1, %l2, %l2 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 200cca8: 7f ff ea bd call 200779c <_Thread_Enable_dispatch> <== NOT EXECUTED 200ccac: e4 22 20 4c st %l2, [ %o0 + 0x4c ] <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200ccb0: c2 0c e0 20 ldub [ %l3 + 0x20 ], %g1 <== NOT EXECUTED 200ccb4: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200ccb8: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200ccbc: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200ccc0: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200ccc4: 12 80 00 10 bne 200cd04 <== NOT EXECUTED 200ccc8: c4 2c e0 20 stb %g2, [ %l3 + 0x20 ] <== NOT EXECUTED c = 'a'; 200cccc: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200ccd0: 10 80 00 0d b 200cd04 <== NOT EXECUTED 200ccd4: c2 2c e0 20 stb %g1, [ %l3 + 0x20 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200ccd8: 40 00 02 a9 call 200d77c <== NOT EXECUTED 200ccdc: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200cce0: 40 00 02 a7 call 200d77c <== NOT EXECUTED 200cce4: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200cce8: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED 200ccec: 7f ff f5 bd call 200a3e0 <== NOT EXECUTED 200ccf0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 200ccf4: 7f ff f5 bb call 200a3e0 <== NOT EXECUTED 200ccf8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200ccfc: 10 80 00 15 b 200cd50 <== NOT EXECUTED 200cd00: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200cd04: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200cd08: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cd0c: 7f ff e2 31 call 20055d0 <== NOT EXECUTED 200cd10: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200cd14: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200cd18: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200cd1c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200cd20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200cd24: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200cd28: 12 80 00 09 bne 200cd4c <== NOT EXECUTED 200cd2c: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 200cd30: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200cd34: 22 80 00 06 be,a 200cd4c <== NOT EXECUTED 200cd38: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 200cd3c: 7f ff ff 3b call 200ca28 <== NOT EXECUTED 200cd40: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200cd44: 10 80 00 03 b 200cd50 <== NOT EXECUTED 200cd48: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cd4c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cd50: 7f ff e2 67 call 20056ec <== NOT EXECUTED 200cd54: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201b250 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 200cd58: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200cd5c: 12 80 00 7c bne 200cf4c <== NOT EXECUTED 200cd60: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200cd64: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 200cd68: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200cd6c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200cd70: 02 80 00 2e be 200ce28 <== NOT EXECUTED 200cd74: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 200cd78: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200cd7c: 02 80 00 56 be 200ced4 <== NOT EXECUTED 200cd80: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200cd84: 12 80 00 6a bne 200cf2c <== NOT EXECUTED 200cd88: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200cd8c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200cd90: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cd94: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200cd98: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cd9c: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200cda0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cda4: 12 80 00 05 bne 200cdb8 <== NOT EXECUTED 200cda8: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200cdac: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200cdb0: 40 00 02 8d call 200d7e4 <== NOT EXECUTED 200cdb4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200cdb8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200cdbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cdc0: 12 80 00 5b bne 200cf2c <== NOT EXECUTED 200cdc4: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200cdc8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200cdcc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200cdd0: 12 80 00 57 bne 200cf2c <== NOT EXECUTED 200cdd4: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200cdd8: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200cddc: 7f ff e2 44 call 20056ec <== NOT EXECUTED 200cde0: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200cde4: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200cde8: 40 00 02 96 call 200d840 <== NOT EXECUTED 200cdec: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cdf0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cdf4: 12 80 00 52 bne 200cf3c <== NOT EXECUTED 200cdf8: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200cdfc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200ce00: 7f ff e1 f4 call 20055d0 <== NOT EXECUTED 200ce04: 94 10 20 00 clr %o2 <== NOT EXECUTED 200ce08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ce0c: 32 80 00 4d bne,a 200cf40 <== NOT EXECUTED 200ce10: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200ce14: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 200ce18: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200ce1c: 02 bf ff f0 be 200cddc <== NOT EXECUTED 200ce20: 01 00 00 00 nop <== NOT EXECUTED 200ce24: 30 80 00 42 b,a 200cf2c <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200ce28: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200ce2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ce30: 32 80 00 07 bne,a 200ce4c <== NOT EXECUTED 200ce34: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200ce38: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200ce3c: 22 80 00 04 be,a 200ce4c <== NOT EXECUTED 200ce40: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200ce44: 10 80 00 3f b 200cf40 <== NOT EXECUTED 200ce48: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200ce4c: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200ce50: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200ce54: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200ce58: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200ce5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ce60: 12 80 00 05 bne 200ce74 <== NOT EXECUTED 200ce64: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200ce68: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200ce6c: 40 00 02 5e call 200d7e4 <== NOT EXECUTED 200ce70: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0) { 200ce74: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200ce78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ce7c: 12 80 00 2c bne 200cf2c <== NOT EXECUTED 200ce80: 01 00 00 00 nop <== NOT EXECUTED prevCounter = pipe->readerCounter; 200ce84: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 200ce88: 7f ff e2 19 call 20056ec <== NOT EXECUTED 200ce8c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200ce90: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200ce94: 40 00 02 6b call 200d840 <== NOT EXECUTED 200ce98: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ce9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cea0: 12 80 00 27 bne 200cf3c <== NOT EXECUTED 200cea4: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200cea8: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200ceac: 7f ff e1 c9 call 20055d0 <== NOT EXECUTED 200ceb0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200ceb4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ceb8: 32 80 00 22 bne,a 200cf40 <== NOT EXECUTED 200cebc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200cec0: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 200cec4: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200cec8: 02 bf ff f0 be 200ce88 <== NOT EXECUTED 200cecc: 01 00 00 00 nop <== NOT EXECUTED 200ced0: 30 80 00 17 b,a 200cf2c <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200ced4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200ced8: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cedc: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200cee0: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200cee4: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200cee8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200ceec: 12 80 00 05 bne 200cf00 <== NOT EXECUTED 200cef0: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200cef4: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200cef8: 40 00 02 3b call 200d7e4 <== NOT EXECUTED 200cefc: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200cf00: 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 ++; 200cf04: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200cf08: 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 ++; 200cf0c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200cf10: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200cf14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cf18: 12 80 00 05 bne 200cf2c <== NOT EXECUTED 200cf1c: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200cf20: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200cf24: 40 00 02 30 call 200d7e4 <== NOT EXECUTED 200cf28: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200cf2c: 7f ff e1 f0 call 20056ec <== NOT EXECUTED 200cf30: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 200cf34: 81 c7 e0 08 ret <== NOT EXECUTED 200cf38: 81 e8 00 00 restore <== NOT EXECUTED 200cf3c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200cf40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200cf44: 7f ff fe c5 call 200ca58 <== NOT EXECUTED 200cf48: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200cf4c: 81 c7 e0 08 ret 200cf50: 81 e8 00 00 restore 020094b8 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20094b8: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 20094bc: 05 00 81 9f sethi %hi(0x2067c00), %g2 <== NOT EXECUTED 20094c0: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 <== NOT EXECUTED 20094c4: 10 80 00 08 b 20094e4 <== NOT EXECUTED 20094c8: 84 10 a0 5c or %g2, 0x5c, %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 ) { 20094cc: c6 02 60 10 ld [ %o1 + 0x10 ], %g3 <== NOT EXECUTED 20094d0: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 20094d4: 32 80 00 04 bne,a 20094e4 <== NOT EXECUTED 20094d8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20094dc: 81 c3 e0 08 retl <== NOT EXECUTED 20094e0: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 20094e4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20094e8: 32 bf ff f9 bne,a 20094cc <== NOT EXECUTED 20094ec: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED return true; } } return false; } 20094f0: 81 c3 e0 08 retl <== NOT EXECUTED 20094f4: 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 14 ld [ %g1 + 0x314 ], %g1 ! 201eb14 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 48 ld [ %g1 + 0x48 ], %g1 ! 201f448 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 e4 call 20114a4 <__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 de call 20114a4 <__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 ac call 20114a4 <__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 c0 or %g1, 0x3c0, %g1 ! 201b3c0 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 20 ld [ %g1 + 0x320 ], %g1 ! 201b720 <_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 60 f8 ld [ %g1 + 0xf8 ], %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 90 ld [ %l0 + 0x290 ], %o0 ! 201aa90 200a458: 40 00 06 86 call 200be70 <_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 90 ld [ %l0 + 0x290 ], %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 50 restore %i0, 0x350, %o0 <== NOT EXECUTED 200a480: 81 c7 e0 08 ret 200a484: 81 e8 00 00 restore 02026a64 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 2026a64: 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 2026a68: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 2026a6c: 82 10 60 70 or %g1, 0x70, %g1 ! 2067c70 <== NOT EXECUTED 2026a70: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2026a74: 02 80 00 18 be 2026ad4 <== NOT EXECUTED 2026a78: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 2026a7c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 2026a80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026a84: 22 80 00 09 be,a 2026aa8 <== NOT EXECUTED 2026a88: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026a8c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026a90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026a94: 22 80 00 05 be,a 2026aa8 <== NOT EXECUTED 2026a98: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026a9c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026aa0: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 2026aa4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026aa8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026aac: 02 80 00 08 be 2026acc <== NOT EXECUTED 2026ab0: 01 00 00 00 nop <== NOT EXECUTED 2026ab4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026ab8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026abc: 02 80 00 04 be 2026acc <== NOT EXECUTED 2026ac0: 01 00 00 00 nop <== NOT EXECUTED 2026ac4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026ac8: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 2026acc: 7f ff 7c 3c call 2005bbc <== NOT EXECUTED 2026ad0: 81 e8 00 00 restore <== NOT EXECUTED 2026ad4: 81 c7 e0 08 ret <== NOT EXECUTED 2026ad8: 81 e8 00 00 restore <== NOT EXECUTED 02018b54 : int fstat( int fd, struct stat *sbuf ) { 2018b54: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 2018b58: 80 a6 60 00 cmp %i1, 0 2018b5c: 32 80 00 06 bne,a 2018b74 2018b60: 03 00 80 6a sethi %hi(0x201a800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 2018b64: 7f ff d7 9d call 200e9d8 <__errno> 2018b68: 01 00 00 00 nop 2018b6c: 10 80 00 12 b 2018bb4 2018b70: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 2018b74: c2 00 62 84 ld [ %g1 + 0x284 ], %g1 2018b78: 80 a6 00 01 cmp %i0, %g1 2018b7c: 1a 80 00 0b bcc 2018ba8 2018b80: 03 00 80 6c sethi %hi(0x201b000), %g1 2018b84: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201b3b0 2018b88: 85 2e 20 06 sll %i0, 6, %g2 2018b8c: b1 2e 20 03 sll %i0, 3, %i0 2018b90: b0 06 00 02 add %i0, %g2, %i0 2018b94: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 2018b98: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2018b9c: 80 88 61 00 btst 0x100, %g1 2018ba0: 32 80 00 08 bne,a 2018bc0 2018ba4: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 2018ba8: 7f ff d7 8c call 200e9d8 <__errno> 2018bac: 01 00 00 00 nop 2018bb0: 82 10 20 09 mov 9, %g1 ! 9 2018bb4: c2 22 00 00 st %g1, [ %o0 ] 2018bb8: 10 80 00 15 b 2018c0c 2018bbc: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 2018bc0: 80 a0 60 00 cmp %g1, 0 2018bc4: 02 bf ff f9 be 2018ba8 2018bc8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2018bcc: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2018bd0: 80 a0 60 00 cmp %g1, 0 2018bd4: 12 80 00 06 bne 2018bec 2018bd8: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2018bdc: 7f ff d7 7f call 200e9d8 <__errno> <== NOT EXECUTED 2018be0: 01 00 00 00 nop <== NOT EXECUTED 2018be4: 10 bf ff f4 b 2018bb4 <== NOT EXECUTED 2018be8: 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) ); 2018bec: 94 10 20 48 mov 0x48, %o2 2018bf0: 7f ff d9 f4 call 200f3c0 2018bf4: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 2018bf8: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 2018bfc: 90 06 20 1c add %i0, 0x1c, %o0 2018c00: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2018c04: 9f c0 40 00 call %g1 2018c08: 92 10 00 19 mov %i1, %o1 } 2018c0c: 81 c7 e0 08 ret 2018c10: 91 e8 00 08 restore %g0, %o0, %o0 02025704 : #include int fsync( int fd ) { 2025704: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2025708: 03 00 81 8e sethi %hi(0x2063800), %g1 202570c: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 2063ac4 2025710: 80 a6 00 01 cmp %i0, %g1 2025714: 1a 80 00 15 bcc 2025768 2025718: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 202571c: 03 00 81 9f sethi %hi(0x2067c00), %g1 2025720: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 ! 2067c10 2025724: 83 2e 20 06 sll %i0, 6, %g1 2025728: b1 2e 20 03 sll %i0, 3, %i0 202572c: b0 06 00 01 add %i0, %g1, %i0 2025730: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2025734: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2025738: 80 88 61 00 btst 0x100, %g1 202573c: 02 80 00 0b be 2025768 2025740: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2025744: 32 80 00 06 bne,a 202575c 2025748: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 202574c: 40 00 64 44 call 203e85c <__errno> 2025750: 01 00 00 00 nop 2025754: 10 80 00 0f b 2025790 2025758: 82 10 20 16 mov 0x16, %g1 ! 16 /* * Now process the fsync(). */ if ( !iop->handlers ) 202575c: 80 a0 60 00 cmp %g1, 0 2025760: 32 80 00 06 bne,a 2025778 2025764: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 2025768: 40 00 64 3d call 203e85c <__errno> <== NOT EXECUTED 202576c: 01 00 00 00 nop <== NOT EXECUTED 2025770: 10 80 00 08 b 2025790 <== NOT EXECUTED 2025774: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 2025778: 80 a0 60 00 cmp %g1, 0 202577c: 12 80 00 08 bne 202579c 2025780: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025784: 40 00 64 36 call 203e85c <__errno> 2025788: 01 00 00 00 nop 202578c: 82 10 20 86 mov 0x86, %g1 ! 86 2025790: c2 22 00 00 st %g1, [ %o0 ] 2025794: 10 80 00 04 b 20257a4 2025798: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 202579c: 9f c0 40 00 call %g1 20257a0: 01 00 00 00 nop } 20257a4: 81 c7 e0 08 ret 20257a8: 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 84 ld [ %g1 + 0x284 ], %g1 ! 201aa84 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 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201b3b0 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 45 call 200e9d8 <__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 7a call 200f2c4 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 33 call 200e9d8 <__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 2c call 200e9d8 <__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 24 call 200e9d8 <__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 02058348 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 2058348: 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 ); 205834c: 03 00 81 8e sethi %hi(0x2063800), %g1 2058350: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 2063ac4 2058354: 80 a6 00 01 cmp %i0, %g1 2058358: 1a 80 00 08 bcc 2058378 205835c: a0 10 20 00 clr %l0 2058360: 03 00 81 9f sethi %hi(0x2067c00), %g1 2058364: e0 00 60 10 ld [ %g1 + 0x10 ], %l0 ! 2067c10 2058368: 83 2e 20 06 sll %i0, 6, %g1 205836c: b1 2e 20 03 sll %i0, 3, %i0 2058370: b0 06 00 01 add %i0, %g1, %i0 2058374: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 2058378: a2 07 bf ec add %fp, -20, %l1 205837c: 92 04 20 1c add %l0, 0x1c, %o1 2058380: 90 10 00 11 mov %l1, %o0 2058384: 7f ff a6 09 call 2041ba8 2058388: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 205838c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2058390: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2058394: 80 a0 60 00 cmp %g1, 0 2058398: 02 80 00 11 be 20583dc 205839c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 20583a0: 9f c0 40 00 call %g1 20583a4: 90 10 00 11 mov %l1, %o0 20583a8: 80 a2 20 01 cmp %o0, 1 20583ac: 22 80 00 08 be,a 20583cc 20583b0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 20583b4: 7f ff 99 2a call 203e85c <__errno> 20583b8: 01 00 00 00 nop 20583bc: 82 10 20 14 mov 0x14, %g1 ! 14 20583c0: c2 22 00 00 st %g1, [ %o0 ] 20583c4: 10 80 00 0d b 20583f8 20583c8: 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 ) 20583cc: c2 00 60 08 ld [ %g1 + 8 ], %g1 20583d0: 80 a0 60 00 cmp %g1, 0 20583d4: 32 80 00 06 bne,a 20583ec 20583d8: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 20583dc: 7f ff 99 20 call 203e85c <__errno> <== NOT EXECUTED 20583e0: 01 00 00 00 nop <== NOT EXECUTED 20583e4: 10 bf ff f7 b 20583c0 <== NOT EXECUTED 20583e8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 20583ec: 92 10 00 19 mov %i1, %o1 20583f0: 9f c0 40 00 call %g1 20583f4: 94 10 00 1a mov %i2, %o2 } 20583f8: 81 c7 e0 08 ret 20583fc: 91 e8 00 08 restore %g0, %o0, %o0 020258b8 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 20258b8: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20258bc: c2 00 61 b4 ld [ %g1 + 0x1b4 ], %g1 ! 2063db4 <== NOT EXECUTED return _POSIX_types_Gid; } 20258c0: 81 c3 e0 08 retl <== NOT EXECUTED 20258c4: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 02025f44 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2025f44: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2025f48: 7f ff ff b6 call 2025e20 2025f4c: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 2025f50: 11 00 81 64 sethi %hi(0x2059000), %o0 2025f54: 13 00 81 8d sethi %hi(0x2063400), %o1 2025f58: 90 12 22 78 or %o0, 0x278, %o0 2025f5c: 40 00 64 e7 call 203f2f8 2025f60: 92 12 60 a8 or %o1, 0xa8, %o1 2025f64: a0 92 20 00 orcc %o0, 0, %l0 2025f68: 12 80 00 08 bne 2025f88 2025f6c: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2025f70: 40 00 62 3b call 203e85c <__errno> <== NOT EXECUTED 2025f74: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025f78: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025f7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025f80: 81 c7 e0 08 ret <== NOT EXECUTED 2025f84: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2025f88: 94 10 00 1b mov %i3, %o2 2025f8c: 96 10 00 1c mov %i4, %o3 2025f90: 7f ff fe ea call 2025b38 2025f94: 90 10 00 10 mov %l0, %o0 2025f98: 80 a2 20 00 cmp %o0, 0 2025f9c: 12 80 00 0a bne 2025fc4 2025fa0: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2025fa4: 40 00 62 2e call 203e85c <__errno> <== NOT EXECUTED 2025fa8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025fac: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025fb0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2025fb4: 40 00 62 82 call 203e9bc <== NOT EXECUTED 2025fb8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2025fbc: 81 c7 e0 08 ret <== NOT EXECUTED 2025fc0: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 2025fc4: 22 80 00 07 be,a 2025fe0 2025fc8: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 2025fcc: d0 06 80 00 ld [ %i2 ], %o0 2025fd0: 40 00 7b 61 call 2044d54 2025fd4: 92 10 00 18 mov %i0, %o1 2025fd8: 10 80 00 04 b 2025fe8 2025fdc: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 2025fe0: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2025fe4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2025fe8: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2025fec: 80 a0 60 00 cmp %g1, 0 2025ff0: 02 bf ff e6 be 2025f88 2025ff4: 92 10 00 1a mov %i2, %o1 fclose(fp); 2025ff8: 90 10 00 10 mov %l0, %o0 2025ffc: 40 00 62 70 call 203e9bc 2026000: b0 10 20 00 clr %i0 *result = grp; 2026004: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2026008: 81 c7 e0 08 ret 202600c: 81 e8 00 00 restore 02025c74 : return NULL; return p; } struct group *getgrent(void) { 2025c74: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 2025c78: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025c7c: d0 00 61 24 ld [ %g1 + 0x124 ], %o0 ! 2067924 <== NOT EXECUTED 2025c80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025c84: 22 80 00 0c be,a 2025cb4 <== NOT EXECUTED 2025c88: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 2025c8c: 31 00 81 9e sethi %hi(0x2067800), %i0 <== NOT EXECUTED 2025c90: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 2025c94: 92 16 21 f0 or %i0, 0x1f0, %o1 <== NOT EXECUTED 2025c98: 94 12 a1 28 or %o2, 0x128, %o2 <== NOT EXECUTED 2025c9c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025ca0: 7f ff ff a6 call 2025b38 <== NOT EXECUTED 2025ca4: b0 16 21 f0 or %i0, 0x1f0, %i0 <== NOT EXECUTED 2025ca8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025cac: 22 80 00 02 be,a 2025cb4 <== NOT EXECUTED 2025cb0: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 2025cb4: 81 c7 e0 08 ret <== NOT EXECUTED 2025cb8: 81 e8 00 00 restore <== NOT EXECUTED 02026044 : } struct group *getgrgid( gid_t gid ) { 2026044: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 2026048: 13 00 81 9e sethi %hi(0x2067800), %o1 <== NOT EXECUTED 202604c: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2026050: 92 12 61 f0 or %o1, 0x1f0, %o1 <== NOT EXECUTED 2026054: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2026058: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 202605c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2026060: 94 12 a1 28 or %o2, 0x128, %o2 <== NOT EXECUTED 2026064: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2026068: 7f ff ff ea call 2026010 <== NOT EXECUTED 202606c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2026070: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026074: 22 80 00 02 be,a 202607c <== NOT EXECUTED 2026078: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 202607c: 81 c7 e0 08 ret <== NOT EXECUTED 2026080: 81 e8 00 00 restore <== NOT EXECUTED 02026010 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2026010: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2026014: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2026018: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 202601c: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2026020: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2026024: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2026028: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 202602c: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2026030: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026034: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026038: 7f ff ff c3 call 2025f44 <== NOT EXECUTED 202603c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026040: 01 00 00 00 nop 02026138 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2026138: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 202613c: 7f ff ff 39 call 2025e20 2026140: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 2026144: 11 00 81 64 sethi %hi(0x2059000), %o0 2026148: 13 00 81 8d sethi %hi(0x2063400), %o1 202614c: 90 12 21 c0 or %o0, 0x1c0, %o0 2026150: 40 00 64 6a call 203f2f8 2026154: 92 12 60 a8 or %o1, 0xa8, %o1 2026158: a0 92 20 00 orcc %o0, 0, %l0 202615c: 12 80 00 08 bne 202617c 2026160: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2026164: 40 00 61 be call 203e85c <__errno> <== NOT EXECUTED 2026168: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 202616c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2026170: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026174: 81 c7 e0 08 ret <== NOT EXECUTED 2026178: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 202617c: 94 10 00 1b mov %i3, %o2 2026180: 96 10 00 1c mov %i4, %o3 2026184: 7f ff fe ce call 2025cbc 2026188: 90 10 00 10 mov %l0, %o0 202618c: 80 a2 20 00 cmp %o0, 0 2026190: 12 80 00 0a bne 20261b8 2026194: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2026198: 40 00 61 b1 call 203e85c <__errno> <== NOT EXECUTED 202619c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20261a0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 20261a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 20261a8: 40 00 62 05 call 203e9bc <== NOT EXECUTED 20261ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 20261b0: 81 c7 e0 08 ret <== NOT EXECUTED 20261b4: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 20261b8: 22 80 00 07 be,a 20261d4 20261bc: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 20261c0: d0 06 80 00 ld [ %i2 ], %o0 20261c4: 40 00 7a e4 call 2044d54 20261c8: 92 10 00 18 mov %i0, %o1 20261cc: 10 80 00 04 b 20261dc 20261d0: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 20261d4: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 20261d8: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 20261dc: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 20261e0: 80 a0 60 00 cmp %g1, 0 20261e4: 02 bf ff e6 be 202617c 20261e8: 92 10 00 1a mov %i2, %o1 fclose(fp); 20261ec: 90 10 00 10 mov %l0, %o0 20261f0: 40 00 61 f3 call 203e9bc 20261f4: b0 10 20 00 clr %i0 *result = pwd; 20261f8: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 20261fc: 81 c7 e0 08 ret 2026200: 81 e8 00 00 restore 02025dd8 : return NULL; return p; } struct passwd *getpwent(void) { 2025dd8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2025ddc: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025de0: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 206783c <== NOT EXECUTED 2025de4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025de8: 22 80 00 0c be,a 2025e18 <== NOT EXECUTED 2025dec: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 2025df0: 31 00 81 9e sethi %hi(0x2067800), %i0 <== NOT EXECUTED 2025df4: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 2025df8: 92 16 21 08 or %i0, 0x108, %o1 <== NOT EXECUTED 2025dfc: 94 12 a0 40 or %o2, 0x40, %o2 <== NOT EXECUTED 2025e00: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025e04: 7f ff ff ae call 2025cbc <== NOT EXECUTED 2025e08: b0 16 21 08 or %i0, 0x108, %i0 <== NOT EXECUTED 2025e0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025e10: 22 80 00 02 be,a 2025e18 <== NOT EXECUTED 2025e14: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 2025e18: 81 c7 e0 08 ret <== NOT EXECUTED 2025e1c: 81 e8 00 00 restore <== NOT EXECUTED 02026238 : } struct passwd *getpwuid( uid_t uid ) { 2026238: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 202623c: 13 00 81 9e sethi %hi(0x2067800), %o1 <== NOT EXECUTED 2026240: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2026244: 92 12 61 08 or %o1, 0x108, %o1 <== NOT EXECUTED 2026248: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 202624c: 15 00 81 9e sethi %hi(0x2067800), %o2 <== NOT EXECUTED 2026250: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2026254: 94 12 a0 40 or %o2, 0x40, %o2 <== NOT EXECUTED 2026258: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 202625c: 7f ff ff ea call 2026204 <== NOT EXECUTED 2026260: b0 10 20 00 clr %i0 <== NOT EXECUTED 2026264: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026268: 22 80 00 02 be,a 2026270 <== NOT EXECUTED 202626c: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2026270: 81 c7 e0 08 ret <== NOT EXECUTED 2026274: 81 e8 00 00 restore <== NOT EXECUTED 02026204 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2026204: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2026208: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 202620c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2026210: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2026214: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2026218: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 202621c: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2026220: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2026224: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026228: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 202622c: 7f ff ff c3 call 2026138 <== NOT EXECUTED 2026230: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026234: 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 0d call 200e9d8 <__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 e8 call 200b968 <_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 27 call 2017e80 <.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 02005cf0 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 2005cf0: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2005cf4: c2 00 61 b4 ld [ %g1 + 0x1b4 ], %g1 ! 2063db4 <== NOT EXECUTED return _POSIX_types_Uid; } 2005cf8: 81 c3 e0 08 retl <== NOT EXECUTED 2005cfc: d0 10 60 30 lduh [ %g1 + 0x30 ], %o0 <== NOT EXECUTED 02012fec : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2012fec: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2012ff0: e0 06 40 00 ld [ %i1 ], %l0 2012ff4: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 2012ff8: 82 04 20 54 add %l0, 0x54, %g1 2012ffc: 80 a0 80 01 cmp %g2, %g1 2013000: 22 80 00 06 be,a 2013018 2013004: 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 ); 2013008: 40 00 04 50 call 2014148 <__errno> 201300c: 01 00 00 00 nop 2013010: 10 80 00 0d b 2013044 2013014: 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 ) 2013018: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 201301c: 80 a0 40 10 cmp %g1, %l0 2013020: 02 80 00 06 be 2013038 2013024: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 2013028: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 201302c: 80 a0 60 00 cmp %g1, 0 2013030: 22 80 00 08 be,a 2013050 2013034: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 2013038: 40 00 04 44 call 2014148 <__errno> 201303c: 01 00 00 00 nop 2013040: 82 10 20 10 mov 0x10, %g1 ! 10 2013044: c2 22 00 00 st %g1, [ %o0 ] 2013048: 81 c7 e0 08 ret 201304c: 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 ) { 2013050: 80 a0 60 00 cmp %g1, 0 2013054: 22 80 00 06 be,a 201306c 2013058: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 201305c: 7f ff d3 61 call 2007de0 <_Chain_Extract> 2013060: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2013064: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2013068: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 201306c: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2013070: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2013074: 90 07 bf f8 add %fp, -8, %o0 2013078: 7f ff c2 03 call 2003884 201307c: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 2013080: 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) ) { 2013084: 90 10 00 10 mov %l0, %o0 2013088: 7f ff f2 35 call 200f95c 201308c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 2013090: 80 a2 20 00 cmp %o0, 0 2013094: 12 80 00 11 bne 20130d8 2013098: 01 00 00 00 nop 201309c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 20130a0: 80 a0 60 00 cmp %g1, 0 20130a4: 12 80 00 0d bne 20130d8 20130a8: 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 ) 20130ac: c2 00 62 3c ld [ %g1 + 0x23c ], %g1 ! 2020a3c 20130b0: c4 06 40 00 ld [ %i1 ], %g2 20130b4: c6 00 60 04 ld [ %g1 + 4 ], %g3 20130b8: 80 a0 c0 02 cmp %g3, %g2 20130bc: 22 80 00 02 be,a 20130c4 20130c0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 20130c4: 90 10 00 10 mov %l0, %o0 20130c8: 7f ff c1 c5 call 20037dc 20130cc: b0 10 20 00 clr %i0 20130d0: 81 c7 e0 08 ret 20130d4: 81 e8 00 00 restore } return 0; } 20130d8: 81 c7 e0 08 ret 20130dc: 91 e8 20 00 restore %g0, 0, %o0 02005f10 : int ioctl( int fd, ioctl_command_t command, ... ) { 2005f10: 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 ); 2005f14: 03 00 80 83 sethi %hi(0x2020c00), %g1 2005f18: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 2020d74 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 2005f1c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2005f20: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2005f24: fa 27 a0 58 st %i5, [ %fp + 0x58 ] 2005f28: 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 ); 2005f2c: 80 a6 00 01 cmp %i0, %g1 2005f30: 1a 80 00 11 bcc 2005f74 2005f34: 92 10 00 19 mov %i1, %o1 iop = rtems_libio_iop( fd ); 2005f38: 03 00 80 85 sethi %hi(0x2021400), %g1 2005f3c: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 202177c 2005f40: 83 2e 20 06 sll %i0, 6, %g1 2005f44: b1 2e 20 03 sll %i0, 3, %i0 2005f48: b0 06 00 01 add %i0, %g1, %i0 2005f4c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2005f50: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2005f54: 80 88 61 00 btst 0x100, %g1 2005f58: 02 80 00 07 be 2005f74 2005f5c: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 2005f60: 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 *); 2005f64: c4 27 bf fc st %g2, [ %fp + -4 ] /* * Now process the ioctl(). */ if ( !iop->handlers ) 2005f68: 80 a0 60 00 cmp %g1, 0 2005f6c: 12 80 00 06 bne 2005f84 2005f70: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( EBADF ); 2005f74: 40 00 39 6b call 2014520 <__errno> 2005f78: 01 00 00 00 nop 2005f7c: 10 80 00 09 b 2005fa0 2005f80: 82 10 20 09 mov 9, %g1 ! 9 if ( !iop->handlers->ioctl_h ) 2005f84: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2005f88: 80 a0 60 00 cmp %g1, 0 2005f8c: 12 80 00 08 bne 2005fac 2005f90: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005f94: 40 00 39 63 call 2014520 <__errno> <== NOT EXECUTED 2005f98: 01 00 00 00 nop <== NOT EXECUTED 2005f9c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2005fa0: c2 22 00 00 st %g1, [ %o0 ] 2005fa4: 10 80 00 04 b 2005fb4 2005fa8: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 2005fac: 9f c0 40 00 call %g1 2005fb0: 01 00 00 00 nop return rc; } 2005fb4: 81 c7 e0 08 ret 2005fb8: 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 34 ld [ %g2 + 0x34 ], %g2 ! 201ac34 <__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 84 ld [ %g1 + 0x384 ], %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 0200e364 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 200e364: 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() ) 200e368: 7f ff fb c7 call 200d284 200e36c: 01 00 00 00 nop 200e370: 80 a6 00 08 cmp %i0, %o0 200e374: 02 80 00 06 be 200e38c 200e378: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( ESRCH ); 200e37c: 40 00 01 97 call 200e9d8 <__errno> 200e380: 01 00 00 00 nop 200e384: 10 80 00 07 b 200e3a0 200e388: 82 10 20 03 mov 3, %g1 ! 3 /* * Validate the signal passed. */ if ( !sig ) 200e38c: 12 80 00 08 bne 200e3ac 200e390: 82 06 7f ff add %i1, -1, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 200e394: 40 00 01 91 call 200e9d8 <__errno> 200e398: 01 00 00 00 nop 200e39c: 82 10 20 16 mov 0x16, %g1 ! 16 200e3a0: c2 22 00 00 st %g1, [ %o0 ] 200e3a4: 10 80 00 a5 b 200e638 200e3a8: 90 10 3f ff mov -1, %o0 if ( !is_valid_signo(sig) ) 200e3ac: 80 a0 60 1f cmp %g1, 0x1f 200e3b0: 18 bf ff f9 bgu 200e394 200e3b4: 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 ) 200e3b8: 87 2e 60 04 sll %i1, 4, %g3 200e3bc: 86 20 c0 02 sub %g3, %g2, %g3 200e3c0: 05 00 80 6e sethi %hi(0x201b800), %g2 200e3c4: 84 10 a3 14 or %g2, 0x314, %g2 ! 201bb14 <_POSIX_signals_Vectors> 200e3c8: 84 00 80 03 add %g2, %g3, %g2 200e3cc: c4 00 a0 08 ld [ %g2 + 8 ], %g2 200e3d0: 80 a0 a0 01 cmp %g2, 1 200e3d4: 02 80 00 99 be 200e638 200e3d8: 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 ) ) 200e3dc: 80 a6 60 04 cmp %i1, 4 200e3e0: 02 80 00 06 be 200e3f8 200e3e4: 80 a6 60 08 cmp %i1, 8 200e3e8: 02 80 00 04 be 200e3f8 200e3ec: 80 a6 60 0b cmp %i1, 0xb 200e3f0: 12 80 00 08 bne 200e410 200e3f4: a0 10 20 01 mov 1, %l0 return pthread_kill( pthread_self(), sig ); 200e3f8: 40 00 01 4f call 200e934 200e3fc: 01 00 00 00 nop 200e400: 40 00 01 11 call 200e844 200e404: 92 10 00 19 mov %i1, %o1 200e408: 81 c7 e0 08 ret 200e40c: 91 e8 00 08 restore %g0, %o0, %o0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 200e410: f2 27 bf f4 st %i1, [ %fp + -12 ] siginfo->si_code = SI_USER; 200e414: e0 27 bf f8 st %l0, [ %fp + -8 ] if ( !value ) { 200e418: 80 a6 a0 00 cmp %i2, 0 200e41c: 12 80 00 04 bne 200e42c 200e420: a1 2c 00 01 sll %l0, %g1, %l0 siginfo->si_value.sival_int = 0; 200e424: 10 80 00 04 b 200e434 200e428: c0 27 bf fc clr [ %fp + -4 ] } else { siginfo->si_value = *value; 200e42c: c2 06 80 00 ld [ %i2 ], %g1 200e430: c2 27 bf fc st %g1, [ %fp + -4 ] 200e434: 03 00 80 6d sethi %hi(0x201b400), %g1 200e438: c4 00 61 80 ld [ %g1 + 0x180 ], %g2 ! 201b580 <_Thread_Dispatch_disable_level> 200e43c: 84 00 a0 01 inc %g2 200e440: c4 20 61 80 st %g2, [ %g1 + 0x180 ] /* * 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; 200e444: 03 00 80 6d sethi %hi(0x201b400), %g1 200e448: c2 00 62 40 ld [ %g1 + 0x240 ], %g1 ! 201b640 <_Thread_Executing> api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 200e44c: c4 00 61 6c ld [ %g1 + 0x16c ], %g2 200e450: c4 00 a0 c4 ld [ %g2 + 0xc4 ], %g2 200e454: 80 ac 00 02 andncc %l0, %g2, %g0 200e458: 12 80 00 4e bne 200e590 200e45c: 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 ; 200e460: 03 00 80 6f sethi %hi(0x201bc00), %g1 200e464: c4 00 60 a0 ld [ %g1 + 0xa0 ], %g2 ! 201bca0 <_POSIX_signals_Wait_queue> 200e468: 10 80 00 0b b 200e494 200e46c: 86 10 e0 a4 or %g3, 0xa4, %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 ]; 200e470: 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) 200e474: 80 8c 00 01 btst %l0, %g1 200e478: 12 80 00 46 bne 200e590 200e47c: 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) 200e480: c8 01 20 c4 ld [ %g4 + 0xc4 ], %g4 200e484: 80 ac 00 04 andncc %l0, %g4, %g0 200e488: 32 80 00 43 bne,a 200e594 200e48c: 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 ) { 200e490: 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; 200e494: 80 a0 80 03 cmp %g2, %g3 200e498: 32 bf ff f6 bne,a 200e470 200e49c: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 200e4a0: 03 00 80 6a sethi %hi(0x201a800), %g1 200e4a4: c8 08 63 34 ldub [ %g1 + 0x334 ], %g4 ! 201ab34 200e4a8: 05 00 80 6d sethi %hi(0x201b400), %g2 200e4ac: 88 01 20 01 inc %g4 200e4b0: 84 10 a0 e8 or %g2, 0xe8, %g2 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 200e4b4: 82 10 20 00 clr %g1 200e4b8: 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) ) { 200e4bc: 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 ] ) 200e4c0: c6 00 80 00 ld [ %g2 ], %g3 200e4c4: 80 a0 e0 00 cmp %g3, 0 200e4c8: 22 80 00 2c be,a 200e578 200e4cc: 84 00 a0 04 add %g2, 4, %g2 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 200e4d0: c6 00 e0 04 ld [ %g3 + 4 ], %g3 if ( !the_info ) continue; #endif maximum = the_info->maximum; object_table = the_info->local_table; 200e4d4: 9a 10 20 01 mov 1, %o5 200e4d8: f4 00 e0 1c ld [ %g3 + 0x1c ], %i2 for ( index = 1 ; index <= maximum ; index++ ) { 200e4dc: 10 80 00 23 b 200e568 200e4e0: de 10 e0 10 lduh [ %g3 + 0x10 ], %o7 the_thread = (Thread_Control *) object_table[ index ]; 200e4e4: c6 06 80 03 ld [ %i2 + %g3 ], %g3 if ( !the_thread ) 200e4e8: 80 a0 e0 00 cmp %g3, 0 200e4ec: 02 80 00 1d be 200e560 200e4f0: 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 ) 200e4f4: d8 00 e0 14 ld [ %g3 + 0x14 ], %o4 200e4f8: 80 a3 00 04 cmp %o4, %g4 200e4fc: 38 80 00 19 bgu,a 200e560 200e500: 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 ]; 200e504: d4 00 e1 6c ld [ %g3 + 0x16c ], %o2 200e508: d4 02 a0 c4 ld [ %o2 + 0xc4 ], %o2 200e50c: 80 ac 00 0a andncc %l0, %o2, %g0 200e510: 22 80 00 14 be,a 200e560 200e514: 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 ) { 200e518: 80 a3 00 04 cmp %o4, %g4 200e51c: 2a 80 00 11 bcs,a 200e560 200e520: 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 ) ) { 200e524: d2 00 60 10 ld [ %g1 + 0x10 ], %o1 200e528: 80 a2 60 00 cmp %o1, 0 200e52c: 22 80 00 0d be,a 200e560 200e530: 98 10 00 04 mov %g4, %o4 <== NOT EXECUTED /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 200e534: d4 00 e0 10 ld [ %g3 + 0x10 ], %o2 200e538: 80 a2 a0 00 cmp %o2, 0 200e53c: 22 80 00 09 be,a 200e560 200e540: 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) ) { 200e544: 80 8a 40 0b btst %o1, %o3 200e548: 32 80 00 06 bne,a 200e560 200e54c: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 200e550: 80 8a 80 0b btst %o2, %o3 200e554: 32 80 00 03 bne,a 200e560 200e558: 82 10 00 03 mov %g3, %g1 200e55c: 98 10 00 04 mov %g4, %o4 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 200e560: 9a 03 60 01 inc %o5 200e564: 88 10 00 0c mov %o4, %g4 200e568: 80 a3 40 0f cmp %o5, %o7 200e56c: 28 bf ff de bleu,a 200e4e4 200e570: 87 2b 60 02 sll %o5, 2, %g3 200e574: 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++) { 200e578: 80 a0 80 08 cmp %g2, %o0 200e57c: 32 bf ff d2 bne,a 200e4c4 200e580: c6 00 80 00 ld [ %g2 ], %g3 } } } } if ( interested ) { 200e584: 80 a0 60 00 cmp %g1, 0 200e588: 02 80 00 0b be 200e5b4 200e58c: 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; 200e590: 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 ) ) { 200e594: 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; 200e598: 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 ) ) { 200e59c: 92 10 00 19 mov %i1, %o1 200e5a0: 40 00 00 5d call 200e714 <_POSIX_signals_Unblock_thread> 200e5a4: 94 07 bf f4 add %fp, -12, %o2 200e5a8: 80 8a 20 ff btst 0xff, %o0 200e5ac: 12 80 00 20 bne 200e62c 200e5b0: 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 ); 200e5b4: 40 00 00 47 call 200e6d0 <_POSIX_signals_Set_process_signals> 200e5b8: 90 10 00 10 mov %l0, %o0 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 200e5bc: 83 2e 60 04 sll %i1, 4, %g1 200e5c0: b3 2e 60 02 sll %i1, 2, %i1 200e5c4: b2 20 40 19 sub %g1, %i1, %i1 200e5c8: 03 00 80 6e sethi %hi(0x201b800), %g1 200e5cc: 82 10 63 14 or %g1, 0x314, %g1 ! 201bb14 <_POSIX_signals_Vectors> 200e5d0: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200e5d4: 80 a0 60 02 cmp %g1, 2 200e5d8: 12 80 00 15 bne 200e62c 200e5dc: 11 00 80 6f sethi %hi(0x201bc00), %o0 psiginfo = (POSIX_signals_Siginfo_node *) 200e5e0: 7f ff f4 77 call 200b7bc <_Chain_Get> 200e5e4: 90 12 20 94 or %o0, 0x94, %o0 ! 201bc94 <_POSIX_signals_Inactive_siginfo> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 200e5e8: a0 92 20 00 orcc %o0, 0, %l0 200e5ec: 12 80 00 08 bne 200e60c 200e5f0: 92 07 bf f4 add %fp, -12, %o1 _Thread_Enable_dispatch(); 200e5f4: 7f ff e4 6a call 200779c <_Thread_Enable_dispatch> 200e5f8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EAGAIN ); 200e5fc: 40 00 00 f7 call 200e9d8 <__errno> 200e600: 01 00 00 00 nop 200e604: 10 bf ff 67 b 200e3a0 200e608: 82 10 20 0b mov 0xb, %g1 ! b } psiginfo->Info = *siginfo; 200e60c: 90 04 20 08 add %l0, 8, %o0 200e610: 40 00 03 2d call 200f2c4 200e614: 94 10 20 0c mov 0xc, %o2 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 200e618: 11 00 80 6f sethi %hi(0x201bc00), %o0 200e61c: 92 10 00 10 mov %l0, %o1 200e620: 90 12 20 e4 or %o0, 0xe4, %o0 200e624: 7f ff de 6f call 2005fe0 <_Chain_Append> 200e628: 90 02 00 19 add %o0, %i1, %o0 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 200e62c: 7f ff e4 5c call 200779c <_Thread_Enable_dispatch> 200e630: 01 00 00 00 nop 200e634: 90 10 20 00 clr %o0 ! 0 return 0; } 200e638: b0 10 00 08 mov %o0, %i0 200e63c: 81 c7 e0 08 ret 200e640: 81 e8 00 00 restore 02018d90 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 2018d90: 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())) 2018d94: 03 00 80 6d sethi %hi(0x201b400), %g1 2018d98: c2 00 63 20 ld [ %g1 + 0x320 ], %g1 ! 201b720 <_System_state_Current> 2018d9c: 80 a0 60 03 cmp %g1, 3 2018da0: 12 80 00 16 bne 2018df8 2018da4: 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) { 2018da8: 23 00 80 6b sethi %hi(0x201ac00), %l1 2018dac: e0 00 62 80 ld [ %g1 + 0x280 ], %l0 2018db0: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 2018db4: 80 a0 40 10 cmp %g1, %l0 2018db8: 22 80 00 06 be,a 2018dd0 2018dbc: 21 00 80 6b sethi %hi(0x201ac00), %l0 _wrapup_reent(_global_impure_ptr); 2018dc0: 40 00 01 83 call 20193cc <_wrapup_reent> 2018dc4: 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; 2018dc8: e0 24 60 38 st %l0, [ %l1 + 0x38 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 2018dcc: 21 00 80 6b sethi %hi(0x201ac00), %l0 2018dd0: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 ! 201ac38 <_impure_ptr> 2018dd4: 7f ff d7 59 call 200eb38 2018dd8: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 2018ddc: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 2018de0: 7f ff d7 56 call 200eb38 2018de4: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 2018de8: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 2018dec: f0 00 60 0c ld [ %g1 + 0xc ], %i0 2018df0: 7f ff d7 52 call 200eb38 2018df4: 81 e8 00 00 restore 2018df8: 81 c7 e0 08 ret <== NOT EXECUTED 2018dfc: 81 e8 00 00 restore <== NOT EXECUTED 0202638c : int link( const char *existing, const char *new ) { 202638c: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 2026390: 40 00 7c 72 call 2045558 2026394: 90 10 00 18 mov %i0, %o0 2026398: 94 10 20 00 clr %o2 202639c: 92 10 00 08 mov %o0, %o1 20263a0: 96 07 bf e8 add %fp, -24, %o3 20263a4: 90 10 00 18 mov %i0, %o0 20263a8: 98 10 20 01 mov 1, %o4 20263ac: 7f ff 7d db call 2005b18 20263b0: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 20263b4: 80 a2 20 00 cmp %o0, 0 20263b8: 12 80 00 8e bne 20265f0 20263bc: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 20263c0: c2 4e 40 00 ldsb [ %i1 ], %g1 20263c4: 80 a0 60 5c cmp %g1, 0x5c 20263c8: 02 80 00 06 be 20263e0 20263cc: 80 a0 60 2f cmp %g1, 0x2f 20263d0: 02 80 00 04 be 20263e0 20263d4: 80 a0 60 00 cmp %g1, 0 20263d8: 12 80 00 0a bne 2026400 20263dc: 03 00 81 8f sethi %hi(0x2063c00), %g1 20263e0: 03 00 81 8f sethi %hi(0x2063c00), %g1 20263e4: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 ! 2063db4 20263e8: 90 07 bf d4 add %fp, -44, %o0 20263ec: 92 02 60 18 add %o1, 0x18, %o1 20263f0: 40 00 6d ee call 2041ba8 20263f4: 94 10 20 14 mov 0x14, %o2 20263f8: 10 80 00 08 b 2026418 20263fc: 90 10 20 01 mov 1, %o0 2026400: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 2026404: 90 07 bf d4 add %fp, -44, %o0 2026408: 92 02 60 04 add %o1, 4, %o1 202640c: 40 00 6d e7 call 2041ba8 2026410: 94 10 20 14 mov 0x14, %o2 2026414: 90 10 20 00 clr %o0 if ( !parent_loc.ops->evalformake_h ) { 2026418: c2 07 bf e0 ld [ %fp + -32 ], %g1 202641c: c2 00 60 04 ld [ %g1 + 4 ], %g1 2026420: 80 a0 60 00 cmp %g1, 0 2026424: 32 80 00 0b bne,a 2026450 2026428: 90 06 40 08 add %i1, %o0, %o0 rtems_filesystem_freenode( &existing_loc ); 202642c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2026430: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026434: 02 80 00 51 be 2026578 <== NOT EXECUTED 2026438: 01 00 00 00 nop <== NOT EXECUTED 202643c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026440: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026444: 12 80 00 4b bne 2026570 <== NOT EXECUTED 2026448: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 202644c: 30 80 00 4b b,a 2026578 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 2026450: 94 07 bf fc add %fp, -4, %o2 2026454: b2 07 bf d4 add %fp, -44, %i1 2026458: 9f c0 40 00 call %g1 202645c: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 2026460: a0 92 20 00 orcc %o0, 0, %l0 2026464: 02 80 00 11 be 20264a8 2026468: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &existing_loc ); 202646c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026470: 80 a0 60 00 cmp %g1, 0 2026474: 02 80 00 08 be 2026494 2026478: 01 00 00 00 nop 202647c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026480: 80 a0 60 00 cmp %g1, 0 2026484: 02 80 00 04 be 2026494 2026488: 01 00 00 00 nop 202648c: 9f c0 40 00 call %g1 2026490: 90 07 bf e8 add %fp, -24, %o0 rtems_set_errno_and_return_minus_one( result ); 2026494: 40 00 60 f2 call 203e85c <__errno> 2026498: b0 10 3f ff mov -1, %i0 202649c: e0 22 00 00 st %l0, [ %o0 ] 20264a0: 81 c7 e0 08 ret 20264a4: 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 ) { 20264a8: c4 07 bf e4 ld [ %fp + -28 ], %g2 20264ac: 80 a0 80 01 cmp %g2, %g1 20264b0: 02 80 00 1a be 2026518 20264b4: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &existing_loc ); 20264b8: c2 07 bf f4 ld [ %fp + -12 ], %g1 20264bc: 80 a0 60 00 cmp %g1, 0 20264c0: 22 80 00 09 be,a 20264e4 20264c4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20264c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20264cc: 80 a0 60 00 cmp %g1, 0 20264d0: 22 80 00 05 be,a 20264e4 20264d4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20264d8: 9f c0 40 00 call %g1 20264dc: 90 07 bf e8 add %fp, -24, %o0 rtems_filesystem_freenode( &parent_loc ); 20264e0: c2 07 bf e0 ld [ %fp + -32 ], %g1 20264e4: 80 a0 60 00 cmp %g1, 0 20264e8: 02 80 00 08 be 2026508 20264ec: 01 00 00 00 nop 20264f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20264f4: 80 a0 60 00 cmp %g1, 0 20264f8: 02 80 00 04 be 2026508 20264fc: 01 00 00 00 nop 2026500: 9f c0 40 00 call %g1 2026504: 90 07 bf d4 add %fp, -44, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 2026508: 40 00 60 d5 call 203e85c <__errno> 202650c: b0 10 3f ff mov -1, %i0 2026510: 10 80 00 1d b 2026584 2026514: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 2026518: c2 00 60 08 ld [ %g1 + 8 ], %g1 202651c: 80 a0 60 00 cmp %g1, 0 2026520: 12 80 00 1c bne 2026590 2026524: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &existing_loc ); 2026528: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 202652c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026530: 22 80 00 09 be,a 2026554 <== NOT EXECUTED 2026534: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026538: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202653c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026540: 22 80 00 05 be,a 2026554 <== NOT EXECUTED 2026544: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026548: 9f c0 40 00 call %g1 <== NOT EXECUTED 202654c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 2026550: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026554: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026558: 02 80 00 08 be 2026578 <== NOT EXECUTED 202655c: 01 00 00 00 nop <== NOT EXECUTED 2026560: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026564: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026568: 02 80 00 04 be 2026578 <== NOT EXECUTED 202656c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2026570: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026574: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026578: 40 00 60 b9 call 203e85c <__errno> <== NOT EXECUTED 202657c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026580: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026584: c2 22 00 00 st %g1, [ %o0 ] 2026588: 81 c7 e0 08 ret 202658c: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 2026590: 92 10 00 19 mov %i1, %o1 2026594: b2 07 bf e8 add %fp, -24, %i1 2026598: 9f c0 40 00 call %g1 202659c: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &existing_loc ); 20265a0: c2 07 bf f4 ld [ %fp + -12 ], %g1 20265a4: 80 a0 60 00 cmp %g1, 0 20265a8: 02 80 00 08 be 20265c8 20265ac: b0 10 00 08 mov %o0, %i0 20265b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20265b4: 80 a0 60 00 cmp %g1, 0 20265b8: 22 80 00 05 be,a 20265cc 20265bc: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20265c0: 9f c0 40 00 call %g1 20265c4: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &parent_loc ); 20265c8: c2 07 bf e0 ld [ %fp + -32 ], %g1 20265cc: 80 a0 60 00 cmp %g1, 0 20265d0: 02 80 00 08 be 20265f0 20265d4: 01 00 00 00 nop 20265d8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20265dc: 80 a0 60 00 cmp %g1, 0 20265e0: 02 80 00 04 be 20265f0 20265e4: 01 00 00 00 nop 20265e8: 9f c0 40 00 call %g1 20265ec: 90 07 bf d4 add %fp, -44, %o0 return result; } 20265f0: 81 c7 e0 08 ret 20265f4: 81 e8 00 00 restore 02018c40 : off_t lseek( int fd, off_t offset, int whence ) { 2018c40: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2018c44: 03 00 80 6a sethi %hi(0x201a800), %g1 2018c48: c2 00 62 84 ld [ %g1 + 0x284 ], %g1 ! 201aa84 off_t lseek( int fd, off_t offset, int whence ) { 2018c4c: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2018c50: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 2018c54: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 2018c58: 1a 80 00 0c bcc 2018c88 2018c5c: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 2018c60: 03 00 80 6c sethi %hi(0x201b000), %g1 2018c64: e0 00 63 b0 ld [ %g1 + 0x3b0 ], %l0 ! 201b3b0 2018c68: 83 2e 20 06 sll %i0, 6, %g1 2018c6c: b1 2e 20 03 sll %i0, 3, %i0 2018c70: b0 06 00 01 add %i0, %g1, %i0 2018c74: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 2018c78: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2018c7c: 80 88 61 00 btst 0x100, %g1 2018c80: 32 80 00 06 bne,a 2018c98 2018c84: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2018c88: 7f ff d7 54 call 200e9d8 <__errno> <== NOT EXECUTED 2018c8c: 01 00 00 00 nop <== NOT EXECUTED 2018c90: 10 80 00 1e b 2018d08 <== NOT EXECUTED 2018c94: 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 ) 2018c98: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2018c9c: 80 a0 60 00 cmp %g1, 0 2018ca0: 12 80 00 06 bne 2018cb8 2018ca4: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2018ca8: 7f ff d7 4c call 200e9d8 <__errno> <== NOT EXECUTED 2018cac: 01 00 00 00 nop <== NOT EXECUTED 2018cb0: 10 80 00 16 b 2018d08 <== NOT EXECUTED 2018cb4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 2018cb8: 02 80 00 09 be 2018cdc 2018cbc: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 2018cc0: 80 a6 e0 02 cmp %i3, 2 2018cc4: 02 80 00 09 be 2018ce8 2018cc8: 80 a6 e0 00 cmp %i3, 0 2018ccc: 12 80 00 0c bne 2018cfc 2018cd0: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 2018cd4: 10 80 00 12 b 2018d1c 2018cd8: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 2018cdc: 9a 86 80 13 addcc %i2, %l3, %o5 2018ce0: 10 80 00 05 b 2018cf4 2018ce4: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 2018ce8: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 2018cec: 9a 86 80 0d addcc %i2, %o5, %o5 2018cf0: 98 46 40 0c addx %i1, %o4, %o4 break; 2018cf4: 10 80 00 0a b 2018d1c 2018cf8: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 2018cfc: 7f ff d7 37 call 200e9d8 <__errno> 2018d00: 01 00 00 00 nop 2018d04: 82 10 20 16 mov 0x16, %g1 ! 16 2018d08: c2 22 00 00 st %g1, [ %o0 ] 2018d0c: 11 3f ff ff sethi %hi(0xfffffc00), %o0 2018d10: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 2018d14: 10 80 00 0e b 2018d4c 2018d18: 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 ); 2018d1c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2018d20: 92 10 00 02 mov %g2, %o1 2018d24: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2018d28: 94 10 00 03 mov %g3, %o2 2018d2c: 9f c0 40 00 call %g1 2018d30: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 2018d34: 80 a2 3f ff cmp %o0, -1 2018d38: 12 80 00 06 bne 2018d50 2018d3c: b2 10 00 09 mov %o1, %i1 2018d40: 80 a2 7f ff cmp %o1, -1 2018d44: 22 80 00 03 be,a 2018d50 2018d48: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 2018d4c: b2 10 00 09 mov %o1, %i1 2018d50: 81 c7 e0 08 ret 2018d54: 91 e8 00 08 restore %g0, %o0, %o0 0202674c : int _STAT_NAME( const char *path, struct stat *buf ) { 202674c: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2026750: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2026754: 12 80 00 06 bne 202676c <== NOT EXECUTED 2026758: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 202675c: 40 00 60 40 call 203e85c <__errno> <== NOT EXECUTED 2026760: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026764: 10 80 00 20 b 20267e4 <== NOT EXECUTED 2026768: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 202676c: 40 00 7b 7b call 2045558 <== NOT EXECUTED 2026770: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026774: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2026778: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 202677c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2026780: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026784: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2026788: 98 10 20 00 clr %o4 <== NOT EXECUTED 202678c: 7f ff 7c e3 call 2005b18 <== NOT EXECUTED 2026790: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2026794: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026798: 12 80 00 14 bne 20267e8 <== NOT EXECUTED 202679c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 20267a0: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20267a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20267a8: 12 80 00 12 bne 20267f0 <== NOT EXECUTED 20267ac: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20267b0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20267b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20267b8: 02 80 00 08 be 20267d8 <== NOT EXECUTED 20267bc: 01 00 00 00 nop <== NOT EXECUTED 20267c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20267c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20267c8: 02 80 00 04 be 20267d8 <== NOT EXECUTED 20267cc: 01 00 00 00 nop <== NOT EXECUTED 20267d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20267d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20267d8: 40 00 60 21 call 203e85c <__errno> <== NOT EXECUTED 20267dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20267e0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20267e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20267e8: 81 c7 e0 08 ret <== NOT EXECUTED 20267ec: 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) ); 20267f0: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 20267f4: 40 00 6d 80 call 2041df4 <== NOT EXECUTED 20267f8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 20267fc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2026800: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2026804: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2026808: 9f c0 40 00 call %g1 <== NOT EXECUTED 202680c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2026810: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026814: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026818: 02 bf ff f4 be 20267e8 <== NOT EXECUTED 202681c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2026820: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026824: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026828: 02 80 00 04 be 2026838 <== NOT EXECUTED 202682c: 01 00 00 00 nop <== NOT EXECUTED 2026830: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026834: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2026838: 81 c7 e0 08 ret <== NOT EXECUTED 202683c: 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 c0 or %g1, 0x3c0, %g1 ! 201b3c0 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 20 ld [ %g1 + 0x320 ], %g1 ! 201b720 <_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 90 ld [ %g1 + 0x290 ], %o0 ! 201aa90 200a9bc: 92 10 00 10 mov %l0, %o1 200a9c0: 94 10 20 00 clr %o2 200a9c4: 40 00 05 1d call 200be38 <_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 60 fc ld [ %g1 + 0xfc ], %g1 ! 201b0fc 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 f5 call 200e9d8 <__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 00 ld [ %g1 + 0x100 ], %g1 ! 201b100 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 60 f8 ld [ %g1 + 0xf8 ], %g1 ! 201b0f8 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 08 or %o0, 0x308, %o0 ! 201bb08 <== 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 08 or %l0, 0x308, %l0 ! 201bb08 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 9c call 200b7bc <_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 0201208c : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 201208c: 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) ) { 2012090: 7f ff f6 33 call 200f95c 2012094: 90 10 00 18 mov %i0, %o0 2012098: 80 a2 20 00 cmp %o0, 0 201209c: 12 80 00 13 bne 20120e8 20120a0: 01 00 00 00 nop 20120a4: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 20120a8: 80 a0 60 00 cmp %g1, 0 20120ac: 12 80 00 0f bne 20120e8 20120b0: 03 00 80 82 sethi %hi(0x2020800), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 20120b4: c2 00 62 3c ld [ %g1 + 0x23c ], %g1 ! 2020a3c 20120b8: c4 00 60 04 ld [ %g1 + 4 ], %g2 20120bc: 80 a0 80 18 cmp %g2, %i0 20120c0: 22 80 00 02 be,a 20120c8 20120c4: 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) 20120c8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 20120cc: 80 a0 60 06 cmp %g1, 6 20120d0: 02 80 00 04 be 20120e0 20120d4: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 20120d8: 7f ff ff 8c call 2011f08 20120dc: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 20120e0: 7f ff c5 bf call 20037dc 20120e4: 90 10 00 18 mov %i0, %o0 } return 0; } 20120e8: 81 c7 e0 08 ret 20120ec: 91 e8 20 00 restore %g0, 0, %o0 02011e40 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 2011e40: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 2011e44: 80 a6 20 00 cmp %i0, 0 2011e48: 32 80 00 0a bne,a 2011e70 2011e4c: e0 06 00 00 ld [ %i0 ], %l0 2011e50: 11 00 80 7f sethi %hi(0x201fc00), %o0 <== NOT EXECUTED 2011e54: 15 00 80 80 sethi %hi(0x2020000), %o2 <== NOT EXECUTED 2011e58: 17 00 80 80 sethi %hi(0x2020000), %o3 <== NOT EXECUTED 2011e5c: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 2011e60: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED 2011e64: 96 12 e0 00 mov %o3, %o3 <== NOT EXECUTED 2011e68: 7f ff c5 67 call 2003404 <__assert_func> <== NOT EXECUTED 2011e6c: 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 2011e74: a2 10 20 00 clr %l1 if ( b[i] ) { 2011e78: 80 a2 20 00 cmp %o0, 0 2011e7c: 02 80 00 05 be 2011e90 2011e80: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 2011e84: 7f ff ff 2a call 2011b2c 2011e88: 01 00 00 00 nop b[i] = 0; 2011e8c: 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 2011e9c: 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 ); 2011ea0: 7f ff ff 23 call 2011b2c 2011ea4: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 2011ea8: c0 26 00 00 clr [ %i0 ] } 2011eac: 81 c7 e0 08 ret 2011eb0: 81 e8 00 00 restore 020123a0 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 20123a0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 20123a4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 20123a8: 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 ) 20123ac: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20123b0: 80 a0 40 19 cmp %g1, %i1 20123b4: 06 80 00 09 bl 20123d8 20123b8: 94 10 00 1a mov %i2, %o2 20123bc: 80 a0 40 19 cmp %g1, %i1 20123c0: 32 80 00 0a bne,a 20123e8 20123c4: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 20123c8: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 20123cc: 80 a0 40 1a cmp %g1, %i2 20123d0: 3a 80 00 06 bcc,a 20123e8 20123d4: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 20123d8: 7f ff ff 8f call 2012214 <== NOT EXECUTED 20123dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20123e0: 81 c7 e0 08 ret <== NOT EXECUTED 20123e4: 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; 20123e8: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 20123ec: d2 26 20 08 st %o1, [ %i0 + 8 ] 20123f0: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 20123f4: 90 07 bf f8 add %fp, -8, %o0 20123f8: 7f ff c5 23 call 2003884 20123fc: 92 10 20 00 clr %o1 2012400: c2 07 bf f8 ld [ %fp + -8 ], %g1 2012404: 90 10 20 00 clr %o0 2012408: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return 0; } 201240c: b0 10 00 08 mov %o0, %i0 2012410: 81 c7 e0 08 ret 2012414: 81 e8 00 00 restore 02012418 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 2012418: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 201241c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 2012420: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2012424: 80 a0 60 06 cmp %g1, 6 2012428: 32 80 00 11 bne,a 201246c 201242c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 2012430: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 2012434: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 2012438: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 201243c: 14 80 00 09 bg 2012460 <== NOT EXECUTED 2012440: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 2012444: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2012448: 32 80 00 1a bne,a 20124b0 <== NOT EXECUTED 201244c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 2012450: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 2012454: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 2012458: 28 80 00 16 bleu,a 20124b0 <== NOT EXECUTED 201245c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 2012460: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 2012464: 10 80 00 12 b 20124ac <== NOT EXECUTED 2012468: 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 )) 201246c: 90 10 00 10 mov %l0, %o0 2012470: 92 10 00 02 mov %g2, %o1 2012474: 7f ff ff 68 call 2012214 2012478: 94 10 00 03 mov %g3, %o2 201247c: 80 a2 20 00 cmp %o0, 0 2012480: 22 80 00 0a be,a 20124a8 2012484: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 2012488: 40 00 07 30 call 2014148 <__errno> <== NOT EXECUTED 201248c: 01 00 00 00 nop <== NOT EXECUTED 2012490: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2012494: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 2012498: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 201249c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 20124a0: 10 80 00 04 b 20124b0 <== NOT EXECUTED 20124a4: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 20124a8: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 20124ac: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 20124b0: b2 10 00 03 mov %g3, %i1 20124b4: 81 c7 e0 08 ret 20124b8: 91 e8 00 02 restore %g0, %g2, %o0 02012784 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2012784: 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)) 2012788: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 201278c: 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)) 2012790: 80 88 62 04 btst 0x204, %g1 2012794: 02 80 00 19 be 20127f8 2012798: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 201279c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20127a0: 80 a0 60 06 cmp %g1, 6 20127a4: 32 80 00 16 bne,a 20127fc 20127a8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 20127ac: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 20127b0: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 20127b4: 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; 20127b8: 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; 20127bc: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 20127c0: 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; 20127c4: 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; 20127c8: 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) 20127cc: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 20127d0: 02 80 00 0a be 20127f8 <== NOT EXECUTED 20127d4: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 20127d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20127dc: 92 10 20 00 clr %o1 <== NOT EXECUTED 20127e0: 94 10 20 00 clr %o2 <== NOT EXECUTED 20127e4: 7f ff ff 36 call 20124bc <== NOT EXECUTED 20127e8: 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) 20127ec: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 20127f0: 02 80 00 0a be 2012818 <== NOT EXECUTED 20127f4: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 20127f8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 20127fc: 80 88 62 00 btst 0x200, %g1 2012800: 02 80 00 04 be 2012810 2012804: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 2012808: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 201280c: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 2012810: b0 10 20 00 clr %i0 2012814: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 2012818: 81 c7 e0 08 ret 201281c: 81 e8 00 00 restore 020120f0 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 20120f0: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 20120f4: 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 ) { 20120f8: c2 04 20 08 ld [ %l0 + 8 ], %g1 20120fc: 80 a0 60 00 cmp %g1, 0 2012100: 22 80 00 06 be,a 2012118 2012104: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 2012108: 7f ff d7 36 call 2007de0 <_Chain_Extract> 201210c: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2012110: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2012114: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 2012118: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 201211c: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2012120: 90 07 bf f8 add %fp, -8, %o0 2012124: 7f ff c5 d8 call 2003884 2012128: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 201212c: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 2012130: 90 10 00 10 mov %l0, %o0 2012134: 7f ff ff d6 call 201208c 2012138: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } 201213c: 81 c7 e0 08 ret 2012140: 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 c4 or %o1, 0x1c4, %o1 200934c: 94 12 a3 88 or %o2, 0x388, %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 80 call 200e9d8 <__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 94 ld [ %g1 + 0x394 ], %o1 ! 201ab94 200240c: 90 07 bf e8 add %fp, -24, %o0 2002410: 92 02 60 18 add %o1, 0x18, %o1 2002414: 40 00 33 ac call 200f2c4 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 94 ld [ %g1 + 0x394 ], %o1 2002428: 90 07 bf e8 add %fp, -24, %o0 200242c: 92 02 60 04 add %o1, 4, %o1 2002430: 40 00 33 a5 call 200f2c4 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 50 call 200e9d8 <__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 2a call 200e9d8 <__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 d6 call 200f8b4 <== 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 17 call 200e9d8 <__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 a0 call 200f828 <== 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 bb call 200f8b4 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 6c sethi %hi(0x201b000), %g1 errno = ENOTDIR; 200261c: 40 00 30 ef call 200e9d8 <__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 6c sethi %hi(0x201b000), %g2 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 2002634: c2 00 63 f0 ld [ %g1 + 0x3f0 ], %g1 2002638: 84 10 a3 f4 or %g2, 0x3f4, %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 dc call 200e9d8 <__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 d8 call 200e9d8 <__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 6c sethi %hi(0x201b000), %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 23 f0 or %o0, 0x3f0, %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 8e call 200ee3c 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 bc call 200eb38 <== 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 7c ldsb [ %g1 + 0x37c ], %g2 ! 201ff7c 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 7c stb %g2, [ %g1 + 0x37c ] status = rtems_io_register_name( 20028e0: 90 12 21 58 or %o0, 0x158, %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 0c st %i0, [ %g1 + 0x20c ] } 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 7c call 200f8b4 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 b9 call 200e9d8 <__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 5c call 200f8b4 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 c2 call 200f2c4 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 75 call 200e9d8 <__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 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201b3b0 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 5c call 200e9d8 <__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 56 call 200e9d8 <__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 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201b3b0 <== 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 2d call 200e9d8 <__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 b0 ld [ %g1 + 0x3b0 ], %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 38 or %l0, 0x38, %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 38 or %l0, 0x38, %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 38 or %l0, 0x38, %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 d0 or %o0, 0x3d0, %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 d8 or %o0, 0x3d8, %o0 ! 2019bd8 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 34 ld [ %g1 + 0x34 ], %g1 ! 201ac34 <__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 34 ld [ %g2 + 0x34 ], %g2 ! 201ac34 <__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 0200de88 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 200de88: 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) 200de8c: 23 00 80 68 sethi %hi(0x201a000), %l1 200de90: a0 07 bf dc add %fp, -36, %l0 200de94: 92 10 20 03 mov 3, %o1 200de98: 90 14 62 d8 or %l1, 0x2d8, %o0 200de9c: 94 10 20 07 mov 7, %o2 200dea0: 96 10 00 10 mov %l0, %o3 200dea4: 7f ff d0 a7 call 2002140 200dea8: 98 10 20 01 mov 1, %o4 200deac: 80 a2 20 00 cmp %o0, 0 200deb0: 02 80 00 10 be 200def0 200deb4: c2 07 bf e8 ld [ %fp + -24 ], %g1 != 0) { if (errno != ENOENT) 200deb8: 40 00 02 c8 call 200e9d8 <__errno> 200debc: 01 00 00 00 nop 200dec0: c2 02 00 00 ld [ %o0 ], %g1 200dec4: 80 a0 60 02 cmp %g1, 2 200dec8: 32 80 00 59 bne,a 200e02c 200decc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 200ded0: 90 14 62 d8 or %l1, 0x2d8, %o0 200ded4: 7f ff d1 30 call 2002394 200ded8: 92 10 23 ff mov 0x3ff, %o1 200dedc: 80 a2 20 00 cmp %o0, 0 200dee0: 02 80 00 0e be 200df18 200dee4: 03 00 80 6c sethi %hi(0x201b000), %g1 } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 200dee8: 81 c7 e0 08 ret <== NOT EXECUTED 200deec: 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); 200def0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200def4: 22 80 00 09 be,a 200df18 <== NOT EXECUTED 200def8: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200defc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201b01c <== NOT EXECUTED 200df00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200df04: 22 80 00 05 be,a 200df18 <== NOT EXECUTED 200df08: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200df0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200df10: 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 ++); 200df14: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200df18: c4 10 62 56 lduh [ %g1 + 0x256 ], %g2 ! 201b256 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df1c: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df20: 95 28 a0 10 sll %g2, 0x10, %o2 200df24: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df28: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df2c: c4 30 62 56 sth %g2, [ %g1 + 0x256 ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df30: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 200df34: 03 00 00 19 sethi %hi(0x6400), %g1 200df38: 84 10 a1 70 or %g2, 0x170, %g2 200df3c: 82 10 62 6f or %g1, 0x26f, %g1 200df40: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df44: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200df48: c4 3f bf f0 std %g2, [ %fp + -16 ] 200df4c: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200df50: 90 07 bf fa add %fp, -6, %o0 200df54: 13 00 80 68 sethi %hi(0x201a000), %o1 200df58: 40 00 05 8b call 200f584 200df5c: 92 12 62 e0 or %o1, 0x2e0, %o1 ! 201a2e0 <__FUNCTION__.5948+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 200df60: 90 10 00 10 mov %l0, %o0 200df64: 40 00 00 4b call 200e090 200df68: 92 10 21 80 mov 0x180, %o1 200df6c: 80 a2 20 00 cmp %o0, 0 200df70: 02 80 00 05 be 200df84 200df74: 90 10 00 10 mov %l0, %o0 if (errno != EEXIST){ 200df78: 40 00 02 98 call 200e9d8 <__errno> <== NOT EXECUTED 200df7c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200df80: 30 80 00 2b b,a 200e02c <== 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); 200df84: 7f ff d2 bd call 2002a78 200df88: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 200df8c: 80 a2 20 00 cmp %o0, 0 200df90: 16 80 00 07 bge 200dfac 200df94: d0 26 00 00 st %o0, [ %i0 ] err = errno; 200df98: 40 00 02 90 call 200e9d8 <__errno> 200df9c: 01 00 00 00 nop 200dfa0: 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); 200dfa4: 10 80 00 1d b 200e018 200dfa8: 90 10 00 10 mov %l0, %o0 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 200dfac: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 200dfb0: c4 00 62 84 ld [ %g1 + 0x284 ], %g2 ! 201aa84 <== NOT EXECUTED 200dfb4: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 200dfb8: 1a 80 00 08 bcc 200dfd8 <== NOT EXECUTED 200dfbc: 82 10 20 00 clr %g1 <== NOT EXECUTED 200dfc0: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200dfc4: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201b3b0 <== NOT EXECUTED 200dfc8: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 200dfcc: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 200dfd0: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 200dfd4: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200dfd8: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200dfdc: 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; 200dfe0: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200dfe4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200dfe8: 7f ff d2 a4 call 2002a78 <== NOT EXECUTED 200dfec: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 200dff0: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 200dff4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200dff8: 16 80 00 07 bge 200e014 <== NOT EXECUTED 200dffc: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; 200e000: 40 00 02 76 call 200e9d8 <__errno> <== NOT EXECUTED 200e004: 01 00 00 00 nop <== NOT EXECUTED 200e008: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 200e00c: 7f ff f0 c6 call 200a324 <== NOT EXECUTED 200e010: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED } unlink(fifopath); 200e014: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 200e018: 40 00 00 28 call 200e0b8 200e01c: b0 10 3f ff mov -1, %i0 } rtems_set_errno_and_return_minus_one(err); 200e020: 40 00 02 6e call 200e9d8 <__errno> 200e024: 01 00 00 00 nop 200e028: e2 22 00 00 st %l1, [ %o0 ] } 200e02c: 81 c7 e0 08 ret 200e030: 81 e8 00 00 restore 0200ca28 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 200ca28: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 200ca2c: 40 00 03 54 call 200d77c <== NOT EXECUTED 200ca30: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200ca34: 40 00 03 52 call 200d77c <== NOT EXECUTED 200ca38: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200ca3c: 7f ff e2 b7 call 2005518 <== NOT EXECUTED 200ca40: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200ca44: 7f ff f6 67 call 200a3e0 <== NOT EXECUTED 200ca48: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED free(pipe); 200ca4c: 7f ff f6 65 call 200a3e0 <== NOT EXECUTED 200ca50: 81 e8 00 00 restore <== NOT EXECUTED 200ca54: 01 00 00 00 nop 0200c64c : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200c64c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 200c650: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200c654: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 200c658: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 200c65c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200c660: 12 80 00 12 bne 200c6a8 <== NOT EXECUTED 200c664: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 200c668: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200c66c: 02 80 00 0f be 200c6a8 <== NOT EXECUTED 200c670: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 200c674: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200c678: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c67c: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c680: 7f ff e3 d4 call 20055d0 <== NOT EXECUTED 200c684: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200c688: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c68c: 12 80 00 07 bne 200c6a8 <== NOT EXECUTED 200c690: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200c694: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c698: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200c69c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c6a0: 7f ff e4 13 call 20056ec <== NOT EXECUTED 200c6a4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 200c6a8: 81 c7 e0 08 ret <== NOT EXECUTED 200c6ac: 81 e8 00 00 restore <== NOT EXECUTED 0200c5d8 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 200c5d8: 81 c3 e0 08 retl <== NOT EXECUTED 200c5dc: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 0200c6b0 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200c6b0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200c6b4: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200c6b8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200c6bc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c6c0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c6c4: 7f ff e3 c3 call 20055d0 <== NOT EXECUTED 200c6c8: b0 10 20 00 clr %i0 <== NOT EXECUTED 200c6cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c6d0: 02 80 00 54 be 200c820 <== NOT EXECUTED 200c6d4: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 200c6d8: 81 c7 e0 08 ret <== NOT EXECUTED 200c6dc: 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) 200c6e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c6e4: 02 80 00 53 be 200c830 <== NOT EXECUTED 200c6e8: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 200c6ec: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200c6f0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200c6f4: 22 80 00 04 be,a 200c704 <== NOT EXECUTED 200c6f8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200c6fc: 10 80 00 4d b 200c830 <== NOT EXECUTED 200c700: 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); 200c704: 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 ++; 200c708: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c70c: 7f ff e3 f8 call 20056ec <== NOT EXECUTED 200c710: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200c714: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200c718: 40 00 04 4a call 200d840 <== NOT EXECUTED 200c71c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c720: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c724: 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)) 200c728: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c72c: 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)) 200c730: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c734: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c738: 7f ff e3 a6 call 20055d0 <== NOT EXECUTED 200c73c: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200c740: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c744: 22 80 00 04 be,a 200c754 <== NOT EXECUTED 200c748: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200c74c: 10 80 00 3b b 200c838 <== NOT EXECUTED 200c750: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 200c754: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 200c758: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200c75c: 12 80 00 35 bne 200c830 <== NOT EXECUTED 200c760: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 200c764: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200c768: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200c76c: 22 bf ff dd be,a 200c6e0 <== NOT EXECUTED 200c770: 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); 200c774: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED 200c778: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 200c77c: 38 80 00 02 bgu,a 200c784 <== NOT EXECUTED 200c780: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 200c784: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200c788: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200c78c: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 200c790: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200c794: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200c798: 04 80 00 0a ble 200c7c0 <== NOT EXECUTED 200c79c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 200c7a0: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200c7a4: 40 00 0a c8 call 200f2c4 <== NOT EXECUTED 200c7a8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 200c7ac: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED 200c7b0: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 200c7b4: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200c7b8: 10 80 00 04 b 200c7c8 <== NOT EXECUTED 200c7bc: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 200c7c0: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200c7c4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200c7c8: 40 00 0a bf call 200f2c4 <== NOT EXECUTED 200c7cc: 01 00 00 00 nop <== NOT EXECUTED pipe->Start += chunk; 200c7d0: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200c7d4: 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; 200c7d8: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200c7dc: 40 00 2e 53 call 2018128 <.urem> <== NOT EXECUTED 200c7e0: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200c7e4: 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; 200c7e8: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200c7ec: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 200c7f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c7f4: 12 80 00 03 bne 200c800 <== NOT EXECUTED 200c7f8: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 200c7fc: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 200c800: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200c804: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c808: 22 80 00 06 be,a 200c820 <== NOT EXECUTED 200c80c: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200c810: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200c814: 40 00 03 f4 call 200d7e4 <== NOT EXECUTED 200c818: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 200c81c: 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) { 200c820: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200c824: 2a bf ff d1 bcs,a 200c768 <== NOT EXECUTED 200c828: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200c82c: a2 10 20 00 clr %l1 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 200c830: 7f ff e3 af call 20056ec <== NOT EXECUTED 200c834: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 200c838: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200c83c: 24 80 00 02 ble,a 200c844 <== NOT EXECUTED 200c840: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return read; return ret; } 200c844: 81 c7 e0 08 ret <== NOT EXECUTED 200c848: 81 e8 00 00 restore <== NOT EXECUTED 0200ca58 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 200ca58: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 200ca5c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 200ca60: 92 10 20 00 clr %o1 <== NOT EXECUTED 200ca64: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200ca68: 7f ff e2 da call 20055d0 <== NOT EXECUTED 200ca6c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 200ca70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200ca74: 12 80 00 17 bne 200cad0 <== NOT EXECUTED 200ca78: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 200ca7c: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 200ca80: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED 200ca84: 02 80 00 05 be 200ca98 <== NOT EXECUTED 200ca88: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED pipe->Readers --; 200ca8c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200ca90: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200ca94: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 200ca98: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED 200ca9c: 02 80 00 06 be 200cab4 <== NOT EXECUTED 200caa0: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED pipe->Writers --; 200caa4: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200caa8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200caac: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 200cab0: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cab4: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201b250 <== NOT EXECUTED 200cab8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200cabc: 7f ff e2 c5 call 20055d0 <== NOT EXECUTED 200cac0: 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) 200cac4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200cac8: 02 80 00 04 be 200cad8 <== NOT EXECUTED 200cacc: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); 200cad0: 7f ff e4 69 call 2005c74 <== NOT EXECUTED 200cad4: 01 00 00 00 nop <== NOT EXECUTED PIPE_UNLOCK(pipe); 200cad8: 7f ff e3 05 call 20056ec <== NOT EXECUTED 200cadc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 200cae0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200cae4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cae8: 12 80 00 0a bne 200cb10 <== NOT EXECUTED 200caec: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 200caf0: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 200caf4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200caf8: 12 80 00 06 bne 200cb10 <== NOT EXECUTED 200cafc: 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); 200cb00: 7f ff ff ca call 200ca28 <== NOT EXECUTED 200cb04: 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) { 200cb08: 10 80 00 12 b 200cb50 <== NOT EXECUTED 200cb0c: 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) 200cb10: 02 80 00 06 be 200cb28 <== NOT EXECUTED 200cb14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cb18: 12 80 00 05 bne 200cb2c <== NOT EXECUTED 200cb1c: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 200cb20: 10 80 00 0a b 200cb48 <== NOT EXECUTED 200cb24: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 200cb28: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED 200cb2c: 02 80 00 0a be 200cb54 <== NOT EXECUTED 200cb30: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cb34: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200cb38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cb3c: 12 80 00 06 bne 200cb54 <== NOT EXECUTED 200cb40: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200cb44: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200cb48: 40 00 03 27 call 200d7e4 <== NOT EXECUTED 200cb4c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 200cb50: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200cb54: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201b250 <== NOT EXECUTED 200cb58: 7f ff e2 e5 call 20056ec <== NOT EXECUTED 200cb5c: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200cb60: 81 c7 e0 08 ret <== NOT EXECUTED 200cb64: 81 e8 00 00 restore <== NOT EXECUTED 0200c84c : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 200c84c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 200c850: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 200c854: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200c858: 02 80 00 72 be 200ca20 <== NOT EXECUTED 200c85c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 200c860: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200c864: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c868: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c86c: 7f ff e3 59 call 20055d0 <== NOT EXECUTED 200c870: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200c874: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c878: 12 80 00 6a bne 200ca20 <== NOT EXECUTED 200c87c: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 200c880: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200c884: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c888: 02 80 00 5a be 200c9f0 <== NOT EXECUTED 200c88c: 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; 200c890: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 200c894: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 200c898: 08 80 00 04 bleu 200c8a8 <== NOT EXECUTED 200c89c: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED 200c8a0: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED 200c8a4: 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); 200c8a8: 10 80 00 4e b 200c9e0 <== NOT EXECUTED 200c8ac: 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)) { 200c8b0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200c8b4: 22 80 00 04 be,a 200c8c4 <== NOT EXECUTED 200c8b8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200c8bc: 10 80 00 4d b 200c9f0 <== NOT EXECUTED 200c8c0: 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); 200c8c4: 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 ++; 200c8c8: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c8cc: 7f ff e3 88 call 20056ec <== NOT EXECUTED 200c8d0: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200c8d4: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200c8d8: 40 00 03 da call 200d840 <== NOT EXECUTED 200c8dc: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c8e0: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c8e4: 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)) 200c8e8: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c8ec: 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)) 200c8f0: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200c8f4: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c8f8: 7f ff e3 36 call 20055d0 <== NOT EXECUTED 200c8fc: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200c900: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c904: 22 80 00 04 be,a 200c914 <== NOT EXECUTED 200c908: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200c90c: 10 80 00 42 b 200ca14 <== NOT EXECUTED 200c910: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) 200c914: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 200c918: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200c91c: 12 80 00 35 bne 200c9f0 <== NOT EXECUTED 200c920: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 200c924: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200c928: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c92c: 32 80 00 04 bne,a 200c93c <== NOT EXECUTED 200c930: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200c934: 10 80 00 2f b 200c9f0 <== NOT EXECUTED 200c938: 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) { 200c93c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200c940: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED 200c944: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED 200c948: 2a bf ff da bcs,a 200c8b0 <== NOT EXECUTED 200c94c: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 200c950: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED 200c954: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 200c958: 38 80 00 02 bgu,a 200c960 <== NOT EXECUTED 200c95c: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 200c960: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 200c964: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 200c968: 40 00 2d f0 call 2018128 <.urem> <== NOT EXECUTED 200c96c: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200c970: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 200c974: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200c978: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200c97c: 04 80 00 0a ble 200c9a4 <== NOT EXECUTED 200c980: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 200c984: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 200c988: 40 00 0a 4f call 200f2c4 <== NOT EXECUTED 200c98c: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 200c990: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED 200c994: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 200c998: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200c99c: 10 80 00 04 b 200c9ac <== NOT EXECUTED 200c9a0: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 200c9a4: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200c9a8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200c9ac: 40 00 0a 46 call 200f2c4 <== NOT EXECUTED 200c9b0: 01 00 00 00 nop <== NOT EXECUTED pipe->Length += chunk; 200c9b4: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200c9b8: 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; 200c9bc: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200c9c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c9c4: 02 80 00 05 be 200c9d8 <== NOT EXECUTED 200c9c8: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200c9cc: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200c9d0: 40 00 03 85 call 200d7e4 <== NOT EXECUTED 200c9d4: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 200c9d8: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 200c9dc: 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) { 200c9e0: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200c9e4: 2a bf ff d6 bcs,a 200c93c <== NOT EXECUTED 200c9e8: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200c9ec: 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); 200c9f0: 7f ff e3 3f call 20056ec <== NOT EXECUTED 200c9f4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 200c9f8: 80 a4 7f e0 cmp %l1, -32 <== NOT EXECUTED 200c9fc: 12 80 00 07 bne 200ca18 <== NOT EXECUTED 200ca00: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED kill(getpid(), SIGPIPE); 200ca04: 40 00 02 20 call 200d284 <== NOT EXECUTED 200ca08: 01 00 00 00 nop <== NOT EXECUTED 200ca0c: 40 00 02 9a call 200d474 <== NOT EXECUTED 200ca10: 92 10 20 0d mov 0xd, %o1 ! d <== NOT EXECUTED #endif if (written > 0) 200ca14: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200ca18: 24 80 00 02 ble,a 200ca20 <== NOT EXECUTED 200ca1c: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return written; return ret; } 200ca20: 81 c7 e0 08 ret <== NOT EXECUTED 200ca24: 81 e8 00 00 restore <== NOT EXECUTED 02018e20 : ssize_t read( int fd, void *buffer, size_t count ) { 2018e20: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2018e24: 03 00 80 6a sethi %hi(0x201a800), %g1 2018e28: c2 00 62 84 ld [ %g1 + 0x284 ], %g1 ! 201aa84 ssize_t read( int fd, void *buffer, size_t count ) { 2018e2c: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2018e30: 80 a6 00 01 cmp %i0, %g1 2018e34: 1a 80 00 0c bcc 2018e64 2018e38: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 2018e3c: 03 00 80 6c sethi %hi(0x201b000), %g1 2018e40: e0 00 63 b0 ld [ %g1 + 0x3b0 ], %l0 ! 201b3b0 2018e44: 83 2e 20 06 sll %i0, 6, %g1 2018e48: b1 2e 20 03 sll %i0, 3, %i0 2018e4c: b0 06 00 01 add %i0, %g1, %i0 2018e50: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 2018e54: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2018e58: 80 88 61 00 btst 0x100, %g1 2018e5c: 12 80 00 06 bne 2018e74 2018e60: 80 a6 60 00 cmp %i1, 0 2018e64: 7f ff d6 dd call 200e9d8 <__errno> 2018e68: 01 00 00 00 nop 2018e6c: 10 80 00 14 b 2018ebc 2018e70: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_buffer( buffer ); 2018e74: 02 80 00 07 be 2018e90 2018e78: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2018e7c: 02 80 00 1c be 2018eec 2018e80: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2018e84: 80 88 60 02 btst 2, %g1 2018e88: 32 80 00 06 bne,a 2018ea0 2018e8c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2018e90: 7f ff d6 d2 call 200e9d8 <__errno> <== NOT EXECUTED 2018e94: 01 00 00 00 nop <== NOT EXECUTED 2018e98: 10 80 00 09 b 2018ebc <== NOT EXECUTED 2018e9c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 2018ea0: c2 00 60 08 ld [ %g1 + 8 ], %g1 2018ea4: 80 a0 60 00 cmp %g1, 0 2018ea8: 12 80 00 08 bne 2018ec8 2018eac: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2018eb0: 7f ff d6 ca call 200e9d8 <__errno> <== NOT EXECUTED 2018eb4: 01 00 00 00 nop <== NOT EXECUTED 2018eb8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2018ebc: c2 22 00 00 st %g1, [ %o0 ] 2018ec0: 10 80 00 0b b 2018eec 2018ec4: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->read_h)( iop, buffer, count ); 2018ec8: 9f c0 40 00 call %g1 2018ecc: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2018ed0: 80 a2 20 00 cmp %o0, 0 2018ed4: 04 80 00 06 ble 2018eec 2018ed8: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 2018edc: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2018ee0: 86 83 40 08 addcc %o5, %o0, %g3 2018ee4: 84 43 00 02 addx %o4, %g2, %g2 2018ee8: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 2018eec: 81 c7 e0 08 ret 2018ef0: 91 e8 00 08 restore %g0, %o0, %o0 02026cc0 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 2026cc0: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 2026cc4: 80 a6 60 00 cmp %i1, 0 2026cc8: 12 80 00 06 bne 2026ce0 2026ccc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 2026cd0: 40 00 5e e3 call 203e85c <__errno> <== NOT EXECUTED 2026cd4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026cd8: 10 80 00 32 b 2026da0 <== NOT EXECUTED 2026cdc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 2026ce0: 40 00 7a 1e call 2045558 2026ce4: 90 10 00 18 mov %i0, %o0 2026ce8: a0 07 bf ec add %fp, -20, %l0 2026cec: 92 10 00 08 mov %o0, %o1 2026cf0: 94 10 20 00 clr %o2 2026cf4: 90 10 00 18 mov %i0, %o0 2026cf8: 96 10 00 10 mov %l0, %o3 2026cfc: 98 10 20 00 clr %o4 2026d00: 7f ff 7b 86 call 2005b18 2026d04: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 2026d08: 80 a2 20 00 cmp %o0, 0 2026d0c: 12 80 00 26 bne 2026da4 2026d10: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 2026d14: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2026d18: 80 a0 60 00 cmp %g1, 0 2026d1c: 22 80 00 19 be,a 2026d80 2026d20: 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 ){ 2026d24: 9f c0 40 00 call %g1 2026d28: 90 10 00 10 mov %l0, %o0 2026d2c: 80 a2 20 04 cmp %o0, 4 2026d30: 02 80 00 0f be 2026d6c 2026d34: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_freenode( &loc ); 2026d38: 80 a0 a0 00 cmp %g2, 0 2026d3c: 02 80 00 08 be 2026d5c 2026d40: 01 00 00 00 nop 2026d44: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 2026d48: 80 a0 60 00 cmp %g1, 0 2026d4c: 02 80 00 04 be 2026d5c 2026d50: 01 00 00 00 nop 2026d54: 9f c0 40 00 call %g1 2026d58: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 2026d5c: 40 00 5e c0 call 203e85c <__errno> 2026d60: b0 10 3f ff mov -1, %i0 2026d64: 10 80 00 0f b 2026da0 2026d68: 82 10 20 16 mov 0x16, %g1 } if ( !loc.ops->readlink_h ){ 2026d6c: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 2026d70: 80 a0 60 00 cmp %g1, 0 2026d74: 12 80 00 0e bne 2026dac 2026d78: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); 2026d7c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026d80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026d84: 02 80 00 04 be 2026d94 <== NOT EXECUTED 2026d88: 01 00 00 00 nop <== NOT EXECUTED 2026d8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026d90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026d94: 40 00 5e b2 call 203e85c <__errno> <== NOT EXECUTED 2026d98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026d9c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026da0: c2 22 00 00 st %g1, [ %o0 ] 2026da4: 81 c7 e0 08 ret 2026da8: 81 e8 00 00 restore } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 2026dac: 94 10 00 1a mov %i2, %o2 2026db0: 9f c0 40 00 call %g1 2026db4: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2026db8: c2 07 bf f8 ld [ %fp + -8 ], %g1 2026dbc: 80 a0 60 00 cmp %g1, 0 2026dc0: 02 bf ff f9 be 2026da4 2026dc4: b0 10 00 08 mov %o0, %i0 2026dc8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026dcc: 80 a0 60 00 cmp %g1, 0 2026dd0: 02 80 00 04 be 2026de0 2026dd4: 01 00 00 00 nop 2026dd8: 9f c0 40 00 call %g1 2026ddc: 90 10 00 10 mov %l0, %o0 return result; } 2026de0: 81 c7 e0 08 ret 2026de4: 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 54 ld [ %g1 + 0x254 ], %g1 ! 201f654 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 54 ld [ %g1 + 0x354 ], %l2 ! 2020754 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 4e call 2011128 <__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 3d call 2011128 <__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 2b call 2011128 <__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 02018f78 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2018f78: 9d e3 bf 98 save %sp, -104, %sp 2018f7c: 03 00 80 6c sethi %hi(0x201b000), %g1 2018f80: 82 10 63 c0 or %g1, 0x3c0, %g1 ! 201b3c0 2018f84: 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())) { 2018f88: 05 00 80 6d sethi %hi(0x201b400), %g2 2018f8c: c4 00 a3 20 ld [ %g2 + 0x320 ], %g2 ! 201b720 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2018f90: 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())) { 2018f94: 80 a0 a0 03 cmp %g2, 3 2018f98: 12 80 00 0c bne 2018fc8 2018f9c: c6 20 60 10 st %g3, [ %g1 + 0x10 ] if (_Thread_Dispatch_disable_level > 0) 2018fa0: 03 00 80 6d sethi %hi(0x201b400), %g1 2018fa4: c2 00 61 80 ld [ %g1 + 0x180 ], %g1 ! 201b580 <_Thread_Dispatch_disable_level> 2018fa8: 80 a0 60 00 cmp %g1, 0 2018fac: 32 80 00 13 bne,a 2018ff8 2018fb0: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; if (_ISR_Nest_level > 0) 2018fb4: 03 00 80 6d sethi %hi(0x201b400), %g1 2018fb8: c2 00 62 1c ld [ %g1 + 0x21c ], %g1 ! 201b61c <_ISR_Nest_level> 2018fbc: 80 a0 60 00 cmp %g1, 0 2018fc0: 32 80 00 0e bne,a 2018ff8 2018fc4: b0 10 20 00 clr %i0 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 2018fc8: 80 a6 20 00 cmp %i0, 0 2018fcc: 12 80 00 06 bne 2018fe4 2018fd0: 80 a6 60 00 cmp %i1, 0 return malloc( size ); 2018fd4: 7f ff c6 65 call 200a968 2018fd8: 90 10 00 19 mov %i1, %o0 2018fdc: 81 c7 e0 08 ret 2018fe0: 91 e8 00 08 restore %g0, %o0, %o0 if ( !size ) { 2018fe4: 12 80 00 07 bne 2019000 2018fe8: 21 00 80 6a sethi %hi(0x201a800), %l0 free( ptr ); 2018fec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2018ff0: 7f ff c4 fc call 200a3e0 <== NOT EXECUTED 2018ff4: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 2018ff8: 81 c7 e0 08 ret <== NOT EXECUTED 2018ffc: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 2019000: d0 04 22 90 ld [ %l0 + 0x290 ], %o0 2019004: 92 10 00 18 mov %i0, %o1 2019008: 40 00 00 60 call 2019188 <_Protected_heap_Get_block_size> 201900c: 94 07 bf fc add %fp, -4, %o2 2019010: 80 8a 20 ff btst 0xff, %o0 2019014: 12 80 00 08 bne 2019034 2019018: d0 04 22 90 ld [ %l0 + 0x290 ], %o0 errno = EINVAL; 201901c: 7f ff d6 6f call 200e9d8 <__errno> 2019020: b0 10 20 00 clr %i0 2019024: 82 10 20 16 mov 0x16, %g1 2019028: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 201902c: 81 c7 e0 08 ret 2019030: 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 ) ) { 2019034: 92 10 00 18 mov %i0, %o1 2019038: 40 00 00 61 call 20191bc <_Protected_heap_Resize_block> 201903c: 94 10 00 19 mov %i1, %o2 2019040: 80 8a 20 ff btst 0xff, %o0 2019044: 12 80 00 1a bne 20190ac 2019048: 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 ); 201904c: 7f ff c6 47 call 200a968 2019050: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2019054: 03 00 80 6c sethi %hi(0x201b000), %g1 2019058: 82 10 63 c0 or %g1, 0x3c0, %g1 ! 201b3c0 201905c: 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 ); 2019060: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2019064: 84 00 bf ff add %g2, -1, %g2 if ( !new_area ) { 2019068: 80 a2 20 00 cmp %o0, 0 201906c: 02 80 00 0f be 20190a8 2019070: c4 20 60 04 st %g2, [ %g1 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 2019074: c2 07 bf fc ld [ %fp + -4 ], %g1 2019078: 80 a6 40 01 cmp %i1, %g1 201907c: 08 80 00 03 bleu 2019088 2019080: 94 10 00 19 mov %i1, %o2 2019084: 94 10 00 01 mov %g1, %o2 2019088: 92 10 00 18 mov %i0, %o1 201908c: 7f ff d8 8e call 200f2c4 2019090: 90 10 00 10 mov %l0, %o0 free( ptr ); 2019094: 90 10 00 18 mov %i0, %o0 2019098: 7f ff c4 d2 call 200a3e0 201909c: b0 10 00 10 mov %l0, %i0 return new_area; 20190a0: 81 c7 e0 08 ret 20190a4: 81 e8 00 00 restore 20190a8: b0 10 20 00 clr %i0 } 20190ac: 81 c7 e0 08 ret 20190b0: 81 e8 00 00 restore 02007084 : #include int rmdir( const char *pathname ) { 2007084: 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 ); 2007088: 7f ff fa 56 call 20059e0 200708c: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 2007090: a6 92 20 00 orcc %o0, 0, %l3 2007094: 32 80 00 17 bne,a 20070f0 2007098: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 200709c: c2 4e 00 00 ldsb [ %i0 ], %g1 20070a0: 80 a0 60 5c cmp %g1, 0x5c 20070a4: 02 80 00 06 be 20070bc 20070a8: 80 a0 60 2f cmp %g1, 0x2f 20070ac: 02 80 00 04 be 20070bc 20070b0: 80 a0 60 00 cmp %g1, 0 20070b4: 12 80 00 07 bne 20070d0 <== NOT EXECUTED 20070b8: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20070bc: 03 00 81 8f sethi %hi(0x2063c00), %g1 20070c0: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 ! 2063db4 20070c4: 90 07 bf ec add %fp, -20, %o0 20070c8: 10 80 00 05 b 20070dc 20070cc: 92 02 60 18 add %o1, 0x18, %o1 20070d0: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 <== NOT EXECUTED 20070d4: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 20070d8: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 20070dc: 94 10 20 14 mov 0x14, %o2 20070e0: 40 00 ea b2 call 2041ba8 20070e4: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 20070e8: 10 80 00 0b b 2007114 20070ec: 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, 20070f0: 92 10 00 13 mov %l3, %o1 20070f4: 94 10 20 02 mov 2, %o2 20070f8: 96 07 bf ec add %fp, -20, %o3 20070fc: 7f ff fa 87 call 2005b18 2007100: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 2007104: 80 a2 20 00 cmp %o0, 0 2007108: 12 80 00 89 bne 200732c 200710c: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 2007110: 94 10 20 14 mov 0x14, %o2 2007114: a0 07 bf d8 add %fp, -40, %l0 2007118: a4 07 bf ec add %fp, -20, %l2 200711c: 90 10 00 10 mov %l0, %o0 2007120: 40 00 ea a2 call 2041ba8 2007124: 92 10 00 12 mov %l2, %o1 name = pathname + parentpathlen; 2007128: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200712c: 40 00 f9 0b call 2045558 2007130: 90 10 00 18 mov %i0, %o0 2007134: 92 10 00 08 mov %o0, %o1 2007138: 7f ff fa 18 call 2005998 200713c: 90 10 00 18 mov %i0, %o0 2007140: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 2007144: 40 00 f9 05 call 2045558 2007148: 90 10 00 18 mov %i0, %o0 200714c: 94 10 20 00 clr %o2 2007150: 92 10 00 08 mov %o0, %o1 2007154: 96 10 00 10 mov %l0, %o3 2007158: 90 10 00 18 mov %i0, %o0 200715c: 7f ff fa 33 call 2005a28 2007160: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 2007164: 80 a2 20 00 cmp %o0, 0 2007168: 02 80 00 11 be 20071ac 200716c: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 2007170: 80 8c 60 ff btst 0xff, %l1 2007174: 02 80 00 0c be 20071a4 2007178: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 200717c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2007180: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007184: 02 80 00 6b be 2007330 <== NOT EXECUTED 2007188: 01 00 00 00 nop <== NOT EXECUTED 200718c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007190: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007194: 02 80 00 04 be 20071a4 <== NOT EXECUTED 2007198: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 200719c: 9f c0 40 00 call %g1 <== NOT EXECUTED 20071a0: 01 00 00 00 nop <== NOT EXECUTED 20071a4: 81 c7 e0 08 ret 20071a8: 81 e8 00 00 restore /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 20071ac: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20071b0: 80 a0 60 00 cmp %g1, 0 20071b4: 12 80 00 04 bne 20071c4 20071b8: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 20071bc: 10 80 00 2b b 2007268 <== NOT EXECUTED 20071c0: 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 ){ 20071c4: 9f c0 40 00 call %g1 20071c8: 90 10 00 10 mov %l0, %o0 20071cc: 80 a2 20 01 cmp %o0, 1 20071d0: 02 80 00 1d be 2007244 20071d4: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &loc ); 20071d8: c2 07 bf e4 ld [ %fp + -28 ], %g1 20071dc: 80 a0 60 00 cmp %g1, 0 20071e0: 02 80 00 09 be 2007204 20071e4: 80 8c 60 ff btst 0xff, %l1 20071e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20071ec: 80 a0 60 00 cmp %g1, 0 20071f0: 02 80 00 05 be 2007204 20071f4: 80 8c 60 ff btst 0xff, %l1 20071f8: 9f c0 40 00 call %g1 20071fc: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 2007200: 80 8c 60 ff btst 0xff, %l1 2007204: 02 80 00 0c be 2007234 2007208: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 200720c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2007210: 80 a0 60 00 cmp %g1, 0 2007214: 02 80 00 08 be 2007234 2007218: 01 00 00 00 nop 200721c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007220: 80 a0 60 00 cmp %g1, 0 2007224: 02 80 00 04 be 2007234 2007228: 01 00 00 00 nop 200722c: 9f c0 40 00 call %g1 2007230: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2007234: 40 00 dd 8a call 203e85c <__errno> 2007238: b0 10 3f ff mov -1, %i0 200723c: 10 80 00 1f b 20072b8 2007240: 82 10 20 14 mov 0x14, %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 2007244: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2007248: 80 a0 60 00 cmp %g1, 0 200724c: 12 80 00 1e bne 20072c4 2007250: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 2007254: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 2007258: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200725c: 02 80 00 09 be 2007280 <== NOT EXECUTED 2007260: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007264: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007268: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200726c: 02 80 00 05 be 2007280 <== NOT EXECUTED 2007270: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007274: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007278: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 200727c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007280: 02 80 00 0b be 20072ac <== NOT EXECUTED 2007284: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 2007288: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200728c: 02 80 00 08 be 20072ac <== NOT EXECUTED 2007290: 01 00 00 00 nop <== NOT EXECUTED 2007294: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007298: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200729c: 02 80 00 04 be 20072ac <== NOT EXECUTED 20072a0: 01 00 00 00 nop <== NOT EXECUTED 20072a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20072a8: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20072ac: 40 00 dd 6c call 203e85c <__errno> <== NOT EXECUTED 20072b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20072b4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20072b8: c2 22 00 00 st %g1, [ %o0 ] 20072bc: 81 c7 e0 08 ret 20072c0: 81 e8 00 00 restore } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 20072c4: 9f c0 40 00 call %g1 20072c8: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 20072cc: c2 07 bf e4 ld [ %fp + -28 ], %g1 20072d0: 80 a0 60 00 cmp %g1, 0 20072d4: 02 80 00 08 be 20072f4 20072d8: b0 10 00 08 mov %o0, %i0 20072dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20072e0: 80 a0 60 00 cmp %g1, 0 20072e4: 02 80 00 05 be 20072f8 20072e8: 80 8c 60 ff btst 0xff, %l1 20072ec: 9f c0 40 00 call %g1 20072f0: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 20072f4: 80 8c 60 ff btst 0xff, %l1 20072f8: 02 bf ff ab be 20071a4 20072fc: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 2007300: 80 a0 60 00 cmp %g1, 0 2007304: 02 80 00 0b be 2007330 2007308: 01 00 00 00 nop 200730c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007310: 80 a0 60 00 cmp %g1, 0 2007314: 02 80 00 07 be 2007330 2007318: 01 00 00 00 nop 200731c: 9f c0 40 00 call %g1 2007320: 90 07 bf ec add %fp, -20, %o0 2007324: 81 c7 e0 08 ret 2007328: 81 e8 00 00 restore 200732c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 2007330: 81 c7 e0 08 ret <== NOT EXECUTED 2007334: 81 e8 00 00 restore <== NOT EXECUTED 02014a24 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 2014a24: 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; } 2014a28: 81 c3 e0 08 retl <== NOT EXECUTED 2014a2c: 90 12 22 d8 or %o0, 0x2d8, %o0 ! 20262d8 <== NOT EXECUTED 02011060 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 2011060: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 2011064: 90 10 00 18 mov %i0, %o0 2011068: 40 00 00 0b call 2011094 201106c: 92 10 00 19 mov %i1, %o1 if (nap) 2011070: 80 a2 20 00 cmp %o0, 0 2011074: 02 80 00 05 be 2011088 2011078: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 201107c: f0 02 00 00 ld [ %o0 ], %i0 2011080: 81 c7 e0 08 ret 2011084: 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); 2011088: 40 00 0e 67 call 2014a24 <== NOT EXECUTED 201108c: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 2011090: 01 00 00 00 nop 0200e068 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200e068: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200e06c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200e070: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200e074: 40 00 02 39 call 200e958 <== NOT EXECUTED 200e078: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200e07c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200e080: 32 80 00 02 bne,a 200e088 <== NOT EXECUTED 200e084: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200e088: 81 c7 e0 08 ret <== NOT EXECUTED 200e08c: 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 d0 call 200f920 <== 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 e8 or %o0, 0x1e8, %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 b8 or %o1, 0xb8, %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 84 or %l0, 0x384, %l0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002cac: b8 17 22 30 or %i4, 0x230, %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 e0 or %l6, 0xe0, %l6 /* * Print the information */ (*print)( context, 2002cb4: b6 16 e2 48 or %i3, 0x248, %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 e8 or %i2, 0xe8, %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 1e call 201d1fc <.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 94 or %g1, 0x394, %g1 ! 2029794 <_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 08 call 201d1fc <.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 60 or %o1, 0x260, %o1 2002dfc: 81 c7 e0 08 ret 2002e00: 81 e8 00 00 restore 0200e034 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 200e034: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 200e038: 11 00 80 68 sethi %hi(0x201a000), %o0 <== NOT EXECUTED 200e03c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200e040: 40 00 00 0a call 200e068 <== NOT EXECUTED 200e044: 90 12 23 74 or %o0, 0x374, %o0 <== NOT EXECUTED 200e048: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 200e04c: 02 80 00 05 be 200e060 <== NOT EXECUTED 200e050: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200e054: 40 00 02 61 call 200e9d8 <__errno> <== NOT EXECUTED 200e058: 01 00 00 00 nop <== NOT EXECUTED 200e05c: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200e060: 81 c7 e0 08 ret <== NOT EXECUTED 200e064: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 0200751c : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 200751c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 2007520: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 2007524: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007528: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 200752c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2007530: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 2007534: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2007538: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200753c: 7f ff ff 7d call 2007330 <== NOT EXECUTED 2007540: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 2007544: 81 c7 e0 08 ret <== NOT EXECUTED 2007548: 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 22 call 200e9d8 <__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 1c call 200e9d8 <__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 94 ld [ %g1 + 0x394 ], %o1 ! 201ab94 20021a4: 90 10 00 1b mov %i3, %o0 20021a8: 92 02 60 18 add %o1, 0x18, %o1 20021ac: 40 00 34 46 call 200f2c4 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 94 ld [ %g1 + 0x394 ], %o1 20021c0: 90 10 00 1b mov %i3, %o0 20021c4: 92 02 60 04 add %o1, 4, %o1 20021c8: 40 00 34 3f call 200f2c4 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 5d call 200e9d8 <__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 56 call 200e9d8 <__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 31 call 200e9d8 <__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 94 ld [ %l1 + 0x394 ], %g1 ! 201ab94 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 1c ld [ %g1 + 0x31c ], %g1 ! 201971c 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 8c ld [ %g1 + 0x28c ], %g1 ! 201aa8c 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 94 ld [ %l1 + 0x394 ], %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 e6 call 200f2c4 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 b8 or %l2, 0x3b8, %o0 rtems_filesystem_root = loc; 2001f54: d0 04 63 94 ld [ %l1 + 0x394 ], %o0 2001f58: 92 10 00 10 mov %l0, %o1 2001f5c: 94 10 20 14 mov 0x14, %o2 2001f60: 40 00 34 d9 call 200f2c4 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 b8 or %l2, 0x3b8, %o0 rtems_filesystem_current = loc; 2001f80: d0 04 63 94 ld [ %l1 + 0x394 ], %o0 2001f84: 92 10 00 10 mov %l0, %o1 2001f88: 94 10 20 14 mov 0x14, %o2 2001f8c: 40 00 34 ce call 200f2c4 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 c0 or %o0, 0x3c0, %o0 ! 2019bc0 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 020094a0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 20094a0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 20094a4: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 20094a8: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 20094ac: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 20094b0: 81 c3 e0 08 retl <== NOT EXECUTED 20094b4: 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 e5 call 200f8b4 <== 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 19 call 200e9d8 <__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 b6 call 200f8b4 <== 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 b8 ld [ %g1 + 0x3b8 ], %o0 ! 201b3b8 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 b4 ld [ %l0 + 0x3b4 ], %g1 ! 201b3b4 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 b0 ld [ %g2 + 0x3b0 ], %g2 ! 201b3b0 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 b4 ld [ %l0 + 0x3b4 ], %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 d5 call 200f3c0 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 b4 st %l1, [ %l0 + 0x3b4 ] 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 b8 ld [ %g1 + 0x3b8 ], %o0 ! 201b3b8 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 84 ld [ %l0 + 0x284 ], %o0 ! 201aa84 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 b0 st %o0, [ %g1 + 0x3b0 ] 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 84 ld [ %l0 + 0x284 ], %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 b4 st %o0, [ %g2 + 0x3b4 ] 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 b8 or %o4, 0x3b8, %o4 ! 201b3b8 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 80 ld [ %g1 + 0x280 ], %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 02026b98 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 2026b98: 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); 2026b9c: 90 10 20 00 clr %o0 2026ba0: 92 10 20 00 clr %o1 2026ba4: 40 00 06 52 call 20284ec 2026ba8: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 2026bac: b0 92 20 00 orcc %o0, 0, %i0 2026bb0: 12 80 00 19 bne 2026c14 2026bb4: 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) { 2026bb8: c4 04 21 b4 ld [ %l0 + 0x1b4 ], %g2 ! 2063db4 2026bbc: 03 00 81 9f sethi %hi(0x2067c00), %g1 2026bc0: 82 10 60 70 or %g1, 0x70, %g1 ! 2067c70 2026bc4: 80 a0 80 01 cmp %g2, %g1 2026bc8: 12 80 00 15 bne 2026c1c 2026bcc: a4 14 21 b4 or %l0, 0x1b4, %l2 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 2026bd0: 7f ff 7d 97 call 200622c 2026bd4: 90 10 20 48 mov 0x48, %o0 if (!tmp) 2026bd8: a2 92 20 00 orcc %o0, 0, %l1 2026bdc: 12 80 00 04 bne 2026bec 2026be0: 92 10 00 12 mov %l2, %o1 2026be4: 81 c7 e0 08 ret <== NOT EXECUTED 2026be8: 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); 2026bec: 90 10 20 00 clr %o0 2026bf0: 15 00 80 9a sethi %hi(0x2026800), %o2 2026bf4: 40 00 07 3c call 20288e4 2026bf8: 94 12 a2 64 or %o2, 0x264, %o2 ! 2026a64 if (sc != RTEMS_SUCCESSFUL) { 2026bfc: 82 92 20 00 orcc %o0, 0, %g1 2026c00: 22 80 00 07 be,a 2026c1c 2026c04: e2 24 21 b4 st %l1, [ %l0 + 0x1b4 ] /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 2026c08: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2026c0c: 7f ff 7b ec call 2005bbc <== NOT EXECUTED 2026c10: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED return sc; 2026c14: 81 c7 e0 08 ret <== NOT EXECUTED 2026c18: 81 e8 00 00 restore <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 2026c1c: 23 00 81 8f sethi %hi(0x2063c00), %l1 2026c20: e0 04 61 b4 ld [ %l1 + 0x1b4 ], %l0 ! 2063db4 2026c24: 94 10 20 48 mov 0x48, %o2 2026c28: 90 10 00 10 mov %l0, %o0 2026c2c: 13 00 81 9f sethi %hi(0x2067c00), %o1 2026c30: 40 00 6b de call 2041ba8 2026c34: 92 12 60 70 or %o1, 0x70, %o1 ! 2067c70 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026c38: 03 00 81 9f sethi %hi(0x2067c00), %g1 2026c3c: d2 00 60 58 ld [ %g1 + 0x58 ], %o1 ! 2067c58 } 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*/ 2026c40: c2 07 bf fc ld [ %fp + -4 ], %g1 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026c44: 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*/ 2026c48: c2 24 00 00 st %g1, [ %l0 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026c4c: 90 04 20 18 add %l0, 0x18, %o0 2026c50: 40 00 6b d6 call 2041ba8 2026c54: 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); 2026c58: a0 07 bf e8 add %fp, -24, %l0 2026c5c: 98 10 20 00 clr %o4 2026c60: 96 10 00 10 mov %l0, %o3 2026c64: 25 00 81 67 sethi %hi(0x2059c00), %l2 2026c68: 92 10 20 01 mov 1, %o1 2026c6c: 94 10 20 00 clr %o2 2026c70: 7f ff 7b aa call 2005b18 2026c74: 90 14 a2 60 or %l2, 0x260, %o0 rtems_filesystem_root = loc; 2026c78: d0 04 61 b4 ld [ %l1 + 0x1b4 ], %o0 2026c7c: 92 10 00 10 mov %l0, %o1 2026c80: 94 10 20 14 mov 0x14, %o2 2026c84: 40 00 6b c9 call 2041ba8 2026c88: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2026c8c: 92 10 20 01 mov 1, %o1 2026c90: 94 10 20 00 clr %o2 2026c94: 90 14 a2 60 or %l2, 0x260, %o0 2026c98: 96 10 00 10 mov %l0, %o3 2026c9c: 7f ff 7b 9f call 2005b18 2026ca0: 98 10 20 00 clr %o4 rtems_filesystem_current = loc; 2026ca4: d0 04 61 b4 ld [ %l1 + 0x1b4 ], %o0 2026ca8: 92 10 00 10 mov %l0, %o1 2026cac: 90 02 20 04 add %o0, 4, %o0 2026cb0: 40 00 6b be call 2041ba8 2026cb4: 94 10 20 14 mov 0x14, %o2 return RTEMS_SUCCESSFUL; } 2026cb8: 81 c7 e0 08 ret 2026cbc: 81 e8 00 00 restore 02026adc : * 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) { 2026adc: 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); 2026ae0: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026ae4: 92 10 20 00 clr %o1 <== NOT EXECUTED 2026ae8: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2026aec: 40 00 06 80 call 20284ec <== NOT EXECUTED 2026af0: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2026af4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026af8: 12 80 00 26 bne 2026b90 <== NOT EXECUTED 2026afc: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 2026b00: 13 00 81 8f sethi %hi(0x2063c00), %o1 <== NOT EXECUTED 2026b04: e0 02 61 b4 ld [ %o1 + 0x1b4 ], %l0 ! 2063db4 <== NOT EXECUTED 2026b08: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026b0c: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 2026b10: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2026b14: 12 80 00 09 bne 2026b38 <== NOT EXECUTED 2026b18: 92 12 61 b4 or %o1, 0x1b4, %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); 2026b1c: 40 00 07 9e call 2028994 <== NOT EXECUTED 2026b20: 01 00 00 00 nop <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2026b24: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026b28: 12 80 00 1a bne 2026b90 <== NOT EXECUTED 2026b2c: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 2026b30: 7f ff ff cd call 2026a64 <== NOT EXECUTED 2026b34: 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, 2026b38: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2026b3c: 21 00 81 8f sethi %hi(0x2063c00), %l0 <== NOT EXECUTED 2026b40: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2026b44: a2 14 21 b4 or %l0, 0x1b4, %l1 <== NOT EXECUTED 2026b48: 40 00 07 b9 call 2028a2c <== NOT EXECUTED 2026b4c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 2026b50: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026b54: 12 80 00 0c bne 2026b84 <== NOT EXECUTED 2026b58: 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); 2026b5c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 2026b60: 15 00 80 9a sethi %hi(0x2026800), %o2 <== NOT EXECUTED 2026b64: 40 00 07 60 call 20288e4 <== NOT EXECUTED 2026b68: 94 12 a2 64 or %o2, 0x264, %o2 ! 2026a64 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026b6c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026b70: 12 80 00 05 bne 2026b84 <== NOT EXECUTED 2026b74: 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; 2026b78: 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; 2026b7c: 10 80 00 05 b 2026b90 <== NOT EXECUTED 2026b80: c4 24 21 b4 st %g2, [ %l0 + 0x1b4 ] <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 2026b84: 05 00 81 8f sethi %hi(0x2063c00), %g2 <== NOT EXECUTED 2026b88: 86 10 e0 70 or %g3, 0x70, %g3 <== NOT EXECUTED 2026b8c: c6 20 a1 b4 st %g3, [ %g2 + 0x1b4 ] <== NOT EXECUTED return sc; } 2026b90: 81 c7 e0 08 ret <== NOT EXECUTED 2026b94: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED 02006334 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 2006334: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 2006338: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED 200633c: d0 00 62 d0 ld [ %g1 + 0x2d0 ], %o0 ! 2063ad0 <== NOT EXECUTED 2006340: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2006344: 40 00 17 77 call 200c120 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2006348: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 200634c: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 2006350: 02 80 00 08 be 2006370 <== NOT EXECUTED 2006354: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 2006358: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 200635c: 82 10 60 28 or %g1, 0x28, %g1 <== NOT EXECUTED 2006360: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 2006364: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 2006368: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 200636c: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 2006370: 81 c7 e0 08 ret <== NOT EXECUTED 2006374: 81 e8 00 00 restore <== NOT EXECUTED 02006378 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 2006378: 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 ) 200637c: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 2006380: 02 80 00 13 be 20063cc <== NOT EXECUTED 2006384: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 2006388: d0 00 62 d0 ld [ %g1 + 0x2d0 ], %o0 ! 2063ad0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 200638c: 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); 2006390: 40 00 17 64 call 200c120 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2006394: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 2006398: 03 00 81 9f sethi %hi(0x2067c00), %g1 <== NOT EXECUTED 200639c: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 20063a0: 82 10 60 28 or %g1, 0x28, %g1 <== NOT EXECUTED 20063a4: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20063a8: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20063ac: 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); 20063b0: 9a 83 40 04 addcc %o5, %g4, %o5 <== NOT EXECUTED 20063b4: 98 43 20 00 addx %o4, 0, %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20063b8: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20063bc: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 20063c0: 08 80 00 03 bleu 20063cc <== NOT EXECUTED 20063c4: d8 38 60 20 std %o4, [ %g1 + 0x20 ] <== NOT EXECUTED s->max_depth = current_depth; 20063c8: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 20063cc: 81 c7 e0 08 ret <== NOT EXECUTED 20063d0: 81 e8 00 00 restore <== NOT EXECUTED 020063d4 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 20063d4: 11 00 81 9f sethi %hi(0x2067c00), %o0 <== NOT EXECUTED 20063d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20063dc: 90 12 20 28 or %o0, 0x28, %o0 <== NOT EXECUTED 20063e0: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED 20063e4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20063e8: 40 00 ee 83 call 2041df4 <== NOT EXECUTED 20063ec: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20063f0: 01 00 00 00 nop 0200fbb8 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 200fbb8: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 200fbbc: a0 96 20 00 orcc %i0, 0, %l0 200fbc0: 02 80 00 20 be 200fc40 200fbc4: 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()) && 200fbc8: c2 00 62 b0 ld [ %g1 + 0x2b0 ], %g1 ! 20216b0 <_System_state_Current> 200fbcc: 80 a0 60 03 cmp %g1, 3 200fbd0: 12 80 00 07 bne 200fbec 200fbd4: c0 24 00 00 clr [ %l0 ] 200fbd8: 7f ff cf 7e call 20039d0 200fbdc: 01 00 00 00 nop 200fbe0: 80 8a 20 ff btst 0xff, %o0 200fbe4: 02 80 00 18 be 200fc44 200fbe8: b0 10 20 16 mov 0x16, %i0 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200fbec: 7f ff cf 92 call 2003a34 200fbf0: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 200fbf4: 03 00 80 82 sethi %hi(0x2020800), %g1 200fbf8: d0 00 61 50 ld [ %g1 + 0x150 ], %o0 ! 2020950 200fbfc: 94 10 00 19 mov %i1, %o2 200fc00: 92 10 00 1a mov %i2, %o1 200fc04: 7f ff e4 a1 call 2008e88 <_Protected_heap_Allocate_aligned_with_boundary> 200fc08: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 200fc0c: b2 92 20 00 orcc %o0, 0, %i1 200fc10: 02 80 00 0d be 200fc44 200fc14: 03 00 80 83 sethi %hi(0x2020c00), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 200fc18: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 ! 2020fd8 200fc1c: 80 a0 60 00 cmp %g1, 0 200fc20: 22 80 00 06 be,a 200fc38 200fc24: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 200fc28: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200fc2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200fc30: 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; 200fc34: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 200fc38: 81 c7 e0 08 ret 200fc3c: 91 e8 20 00 restore %g0, 0, %o0 200fc40: b0 10 20 16 mov 0x16, %i0 } 200fc44: 81 c7 e0 08 ret 200fc48: 81 e8 00 00 restore 020074e8 : void rtems_panic( const char *printf_format, ... ) { 20074e8: 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); 20074ec: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 20074f0: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 20074f4: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 20074f8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20074fc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007500: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 2007504: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007508: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200750c: 7f ff ff 89 call 2007330 <== NOT EXECUTED 2007510: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 2007514: 81 c7 e0 08 ret <== NOT EXECUTED 2007518: 81 e8 00 00 restore <== NOT EXECUTED 0200c5e0 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 200c5e0: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 200c5e4: 03 00 80 6c sethi %hi(0x201b000), %g1 200c5e8: c2 08 60 f4 ldub [ %g1 + 0xf4 ], %g1 ! 201b0f4 200c5ec: 80 a0 60 00 cmp %g1, 0 200c5f0: 02 80 00 15 be 200c644 200c5f4: 19 00 80 6c sethi %hi(0x201b000), %o4 return; if (rtems_pipe_semaphore) 200c5f8: c2 03 22 50 ld [ %o4 + 0x250 ], %g1 ! 201b250 <== NOT EXECUTED 200c5fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c600: 12 80 00 11 bne 200c644 <== NOT EXECUTED 200c604: 98 13 22 50 or %o4, 0x250, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 200c608: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 200c60c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200c610: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 200c614: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 200c618: 7f ff e3 4c call 2005348 <== NOT EXECUTED 200c61c: 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) 200c620: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c624: 02 80 00 04 be 200c634 <== NOT EXECUTED 200c628: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200c62c: 7f ff e5 92 call 2005c74 <== NOT EXECUTED 200c630: 01 00 00 00 nop <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 200c634: 7f ff e2 25 call 2004ec8 <== NOT EXECUTED 200c638: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 200c63c: 03 00 80 6c sethi %hi(0x201b000), %g1 <== NOT EXECUTED 200c640: d0 30 62 56 sth %o0, [ %g1 + 0x256 ] ! 201b256 <== NOT EXECUTED 200c644: 81 c7 e0 08 ret 200c648: 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 62 b0 ld [ %g1 + 0x2b0 ], %g1 ! 2067eb0 <_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 60 20 ld [ %g1 + 0x20 ], %g1 ! 2065020 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 9e sethi %hi(0x2067800), %o1 200419c: 94 10 20 10 mov 0x10, %o2 20041a0: 40 00 f6 51 call 2041ae4 20041a4: 92 12 63 f8 or %o1, 0x3f8, %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 62 b0 ld [ %g1 + 0x2b0 ], %o0 ! 2067eb0 <_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 28 or %o1, 0x228, %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 60 24 st %i0, [ %l1 + 0x24 ] <== NOT EXECUTED print_handler = print; 2004048: f2 24 20 28 st %i1, [ %l0 + 0x28 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 200404c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004050: 13 00 81 66 sethi %hi(0x2059800), %o1 <== NOT EXECUTED 2004054: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004058: 92 12 63 d8 or %o1, 0x3d8, %o1 ! 2059bd8 <== NOT EXECUTED (*print)( context, 200405c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004060: 13 00 81 66 sethi %hi(0x2059800), %o1 <== NOT EXECUTED 2004064: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004068: 92 12 63 f0 or %o1, 0x3f0, %o1 ! 2059bf0 <== 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 d1 call 200b7b4 <== 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 60 24 clr [ %l1 + 0x24 ] <== NOT EXECUTED print_handler = NULL; 2004084: c0 24 20 28 clr [ %l0 + 0x28 ] <== 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 9e sethi %hi(0x2067800), %o1 200420c: 94 10 20 10 mov 0x10, %o2 2004210: 40 00 f6 35 call 2041ae4 2004214: 92 12 63 f8 or %o1, 0x3f8, %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 0201c7b8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c7b8: 9d e3 bf 98 save %sp, -104, %sp 201c7bc: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c7c0: 80 a6 60 00 cmp %i1, 0 201c7c4: 02 80 00 20 be 201c844 201c7c8: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c7cc: 40 00 88 24 call 203e85c <__errno> 201c7d0: 01 00 00 00 nop 201c7d4: c0 22 00 00 clr [ %o0 ] *n = 0; 201c7d8: 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 ); 201c7dc: 94 10 00 1b mov %i3, %o2 201c7e0: 90 10 00 10 mov %l0, %o0 201c7e4: 40 00 a7 d4 call 2046734 201c7e8: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201c7ec: 80 a6 a0 00 cmp %i2, 0 201c7f0: 02 80 00 04 be 201c800 201c7f4: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c7f8: c2 07 bf fc ld [ %fp + -4 ], %g1 201c7fc: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c800: c2 07 bf fc ld [ %fp + -4 ], %g1 201c804: 80 a0 40 10 cmp %g1, %l0 201c808: 02 80 00 0f be 201c844 201c80c: 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)) 201c810: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 201c814: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 201c818: 80 a4 40 01 cmp %l1, %g1 201c81c: 32 80 00 09 bne,a 201c840 201c820: e2 26 40 00 st %l1, [ %i1 ] 201c824: 40 00 88 0e call 203e85c <__errno> 201c828: b0 10 20 0a mov 0xa, %i0 201c82c: c2 02 00 00 ld [ %o0 ], %g1 201c830: 80 a0 60 22 cmp %g1, 0x22 201c834: 02 80 00 04 be 201c844 201c838: 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; 201c83c: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c840: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c844: 81 c7 e0 08 ret 201c848: 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 ea call 200f3e0 <__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 f0 call 2012410 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 d1 call 200f3e0 <__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 1b call 200f3e0 <__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 2a call 2012438 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 0c fa call 200f3e0 <__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 0201c84c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c84c: 9d e3 bf 98 save %sp, -104, %sp 201c850: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c854: 80 a6 60 00 cmp %i1, 0 201c858: 02 80 00 1e be 201c8d0 201c85c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c860: 40 00 87 ff call 203e85c <__errno> 201c864: 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 ); 201c868: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201c86c: c0 22 00 00 clr [ %o0 ] *n = 0; 201c870: 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 ); 201c874: 90 10 00 10 mov %l0, %o0 201c878: 40 00 a8 e5 call 2046c0c 201c87c: 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 ) 201c880: 80 a6 a0 00 cmp %i2, 0 201c884: 02 80 00 04 be 201c894 201c888: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c88c: c2 07 bf fc ld [ %fp + -4 ], %g1 201c890: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c894: c2 07 bf fc ld [ %fp + -4 ], %g1 201c898: 80 a0 40 10 cmp %g1, %l0 201c89c: 02 80 00 0d be 201c8d0 201c8a0: 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)) 201c8a4: 80 a4 7f ff cmp %l1, -1 201c8a8: 32 80 00 09 bne,a 201c8cc 201c8ac: e2 26 40 00 st %l1, [ %i1 ] 201c8b0: 40 00 87 eb call 203e85c <__errno> <== NOT EXECUTED 201c8b4: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 201c8b8: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201c8bc: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 201c8c0: 02 80 00 04 be 201c8d0 <== NOT EXECUTED 201c8c4: 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; 201c8c8: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c8cc: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c8d0: 81 c7 e0 08 ret 201c8d4: 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 86 call 200f3e0 <__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 c2 call 20128e8 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 72 call 200f3e0 <__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 0201c93c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c93c: 9d e3 bf 98 save %sp, -104, %sp 201c940: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c944: 80 a6 60 00 cmp %i1, 0 201c948: 02 80 00 1e be 201c9c0 201c94c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c950: 40 00 87 c3 call 203e85c <__errno> 201c954: 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 ); 201c958: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201c95c: c0 22 00 00 clr [ %o0 ] *n = 0; 201c960: 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 ); 201c964: 90 10 00 10 mov %l0, %o0 201c968: 40 00 a8 a9 call 2046c0c 201c96c: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201c970: 80 a6 a0 00 cmp %i2, 0 201c974: 02 80 00 04 be 201c984 201c978: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c97c: c2 07 bf fc ld [ %fp + -4 ], %g1 201c980: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c984: c2 07 bf fc ld [ %fp + -4 ], %g1 201c988: 80 a0 40 10 cmp %g1, %l0 201c98c: 02 80 00 0d be 201c9c0 201c990: 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)) 201c994: 80 a4 7f ff cmp %l1, -1 201c998: 32 80 00 09 bne,a 201c9bc 201c99c: e2 26 40 00 st %l1, [ %i1 ] 201c9a0: 40 00 87 af call 203e85c <__errno> 201c9a4: b0 10 20 0a mov 0xa, %i0 201c9a8: c2 02 00 00 ld [ %o0 ], %g1 201c9ac: 80 a0 60 22 cmp %g1, 0x22 201c9b0: 02 80 00 04 be 201c9c0 201c9b4: 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; 201c9b8: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c9bc: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c9c0: 81 c7 e0 08 ret 201c9c4: 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 63 call 200f3e0 <__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 a8 call 2012910 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 4a call 200f3e0 <__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 84 st %o0, [ %g1 + 0x384 ] ! 201ab84 <== 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 88 st %o1, [ %g1 + 0x388 ] <== 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 8c st %o2, [ %g1 + 0x38c ] ! 201ab8c <== 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 6c sethi %hi(0x201b000), %g1 2004478: d0 00 63 fc ld [ %g1 + 0x3fc ], %o0 ! 201b3fc 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 44 or %g1, 0x144, %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 00 st %g1, [ %g2 ] 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 04 st %g1, [ %g2 + 4 ] 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 6c sethi %hi(0x201b000), %g1 2004624: d0 00 63 fc ld [ %g1 + 0x3fc ], %o0 ! 201b3fc 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 61 f8 ld [ %g1 + 0x1f8 ], %g1 ! 201b1f8 <== 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 44 or %l2, 0x144, %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 b6 call 2018128 <.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 ad call 2018128 <.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 6c sethi %hi(0x201b000), %o4 2002dd0: c2 03 23 fc ld [ %o4 + 0x3fc ], %g1 ! 201b3fc 2002dd4: 80 a0 60 00 cmp %g1, 0 2002dd8: 12 80 00 0d bne 2002e0c 2002ddc: 98 13 23 fc or %o4, 0x3fc, %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 44 or %g1, 0x144, %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 57 call 200f2c4 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 53 call 200f2c4 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 a1 call 2017d90 <.umul> <== NOT EXECUTED 2004310: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2004314: 40 00 4e d9 call 2017e78 <.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 44 or %g1, 0x144, %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 44 or %g3, 0x144, %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 6c sethi %hi(0x201b000), %g1 2004640: d0 00 63 fc ld [ %g1 + 0x3fc ], %o0 ! 201b3fc 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 04 ld [ %g1 + 4 ], %l2 ! 201b404 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 88 ld [ %g1 + 0x388 ], %g1 ! 201ab88 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 6c sethi %hi(0x201b000), %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 63 fc ld [ %g1 + 0x3fc ], %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 8c ld [ %g1 + 0x38c ], %g1 ! 201ab8c 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 84 ld [ %g1 + 0x384 ], %o0 ! 201ab84 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 6c sethi %hi(0x201b000), %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 04 ld [ %g1 + 4 ], %g1 ! 201b404 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 00 ld [ %g1 ], %g2 */ 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 04 st %l1, [ %g3 + 4 ] rtems_termios_ttyTail = tty; 200478c: e2 20 60 00 st %l1, [ %g1 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004790: 27 00 80 6a sethi %hi(0x201a800), %l3 2004794: d0 4c e3 90 ldsb [ %l3 + 0x390 ], %o0 ! 201ab90 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 90 ldsb [ %l3 + 0x390 ], %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 90 ldsb [ %l3 + 0x390 ], %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 a7 call 200f2c4 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 90 ldsb [ %l3 + 0x390 ], %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 90 ldsb [ %l3 + 0x390 ], %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 90 ldsb [ %g1 + 0x390 ], %o0 ! 201ab90 <== 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 90 ldub [ %g1 + 0x390 ], %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 90 stb %g3, [ %g1 + 0x390 ] c = 'a'; 20049c4: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 20049c8: c4 28 63 90 stb %g2, [ %g1 + 0x390 ] <== 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 6c sethi %hi(0x201b000), %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 6c sethi %hi(0x201b000), %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 6c sethi %hi(0x201b000), %g1 2004a5c: d0 00 63 fc ld [ %g1 + 0x3fc ], %o0 ! 201b3fc 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 6c sethi %hi(0x201b000), %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 46 call 2018128 <.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 44 or %g2, 0x144, %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 84 or %l7, 0x384, %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 a1 call 2018128 <.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 98 call 2018128 <.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 79 call 2018128 <.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 44 or %l1, 0x144, %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 44 or %g1, 0x144, %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 02007330 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 2007330: 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) 2007334: 2b 08 00 00 sethi %hi(0x20000000), %l5 <== NOT EXECUTED 2007338: aa 8e 00 15 andcc %i0, %l5, %l5 <== NOT EXECUTED 200733c: 02 80 00 11 be 2007380 <== NOT EXECUTED 2007340: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED { if (rtems_panic_in_progress++) 2007344: 05 00 80 9a sethi %hi(0x2026800), %g2 <== NOT EXECUTED 2007348: c2 00 a3 90 ld [ %g2 + 0x390 ], %g1 ! 2026b90 <== NOT EXECUTED 200734c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 2007350: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007354: 02 80 00 06 be 200736c <== NOT EXECUTED 2007358: c6 20 a3 90 st %g3, [ %g2 + 0x390 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200735c: 03 00 80 9b sethi %hi(0x2026c00), %g1 <== NOT EXECUTED 2007360: c4 00 61 70 ld [ %g1 + 0x170 ], %g2 ! 2026d70 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 2007364: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2007368: c4 20 61 70 st %g2, [ %g1 + 0x170 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 200736c: 03 00 80 9a sethi %hi(0x2026800), %g1 <== NOT EXECUTED 2007370: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2026b90 <== NOT EXECUTED 2007374: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2007378: 34 80 00 5a bg,a 20074e0 <== NOT EXECUTED 200737c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 2007380: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED 2007384: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2026318 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 2007388: 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 */ 200738c: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2007390: 40 00 3a 4c call 2015cc0 <== NOT EXECUTED 2007394: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007398: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 200739c: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 20073a0: 02 80 00 05 be 20073b4 <== NOT EXECUTED 20073a4: a6 2c 00 13 andn %l0, %l3, %l3 <== NOT EXECUTED local_errno = errno; 20073a8: 40 00 39 3d call 201589c <__errno> <== NOT EXECUTED 20073ac: 01 00 00 00 nop <== NOT EXECUTED 20073b0: 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); 20073b4: 29 00 80 98 sethi %hi(0x2026000), %l4 <== NOT EXECUTED 20073b8: c2 05 23 18 ld [ %l4 + 0x318 ], %g1 ! 2026318 <_impure_ptr> <== NOT EXECUTED 20073bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20073c0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20073c4: 40 00 51 b9 call 201baa8 <== NOT EXECUTED 20073c8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 20073cc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 20073d0: 02 80 00 0c be 2007400 <== NOT EXECUTED 20073d4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 20073d8: c2 05 23 18 ld [ %l4 + 0x318 ], %g1 <== NOT EXECUTED 20073dc: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20073e0: 7f ff ff cd call 2007314 <== NOT EXECUTED 20073e4: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 20073e8: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 20073ec: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 20073f0: 92 12 60 68 or %o1, 0x68, %o1 <== NOT EXECUTED 20073f4: 40 00 3b 07 call 2016010 <== NOT EXECUTED 20073f8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20073fc: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED if (local_errno) 2007400: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007404: 22 80 00 1c be,a 2007474 <== NOT EXECUTED 2007408: 27 00 80 98 sethi %hi(0x2026000), %l3 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 200740c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007410: 04 80 00 11 ble 2007454 <== NOT EXECUTED 2007414: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED 2007418: 40 00 3e 51 call 2016d5c <== NOT EXECUTED 200741c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007420: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 2007424: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007428: 02 80 00 0b be 2007454 <== NOT EXECUTED 200742c: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 2007430: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 2026318 <_impure_ptr> <== NOT EXECUTED 2007434: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007438: 40 00 3e 49 call 2016d5c <== NOT EXECUTED 200743c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007440: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 2007444: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007448: 92 12 60 78 or %o1, 0x78, %o1 <== NOT EXECUTED 200744c: 10 80 00 07 b 2007468 <== NOT EXECUTED 2007450: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 2007454: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 <== NOT EXECUTED 2007458: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 200745c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007460: 92 12 60 88 or %o1, 0x88, %o1 <== NOT EXECUTED 2007464: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 2007468: 40 00 3a ea call 2016010 <== NOT EXECUTED 200746c: 27 00 80 98 sethi %hi(0x2026000), %l3 <== NOT EXECUTED 2007470: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 2007474: c2 04 e3 18 ld [ %l3 + 0x318 ], %g1 <== NOT EXECUTED 2007478: 13 00 80 90 sethi %hi(0x2024000), %o1 <== NOT EXECUTED 200747c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007480: 40 00 3a e4 call 2016010 <== NOT EXECUTED 2007484: 92 12 62 d0 or %o1, 0x2d0, %o1 <== NOT EXECUTED (void) fflush(stderr); 2007488: c2 04 e3 18 ld [ %l3 + 0x318 ], %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"); 200748c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED (void) fflush(stderr); 2007490: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 2007494: 40 00 3a 0b call 2015cc0 <== NOT EXECUTED 2007498: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 200749c: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 20074a0: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 20074a4: 02 80 00 0f be 20074e0 <== NOT EXECUTED 20074a8: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 20074ac: 22 80 00 08 be,a 20074cc <== NOT EXECUTED 20074b0: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 20074b4: 13 00 80 91 sethi %hi(0x2024400), %o1 <== NOT EXECUTED 20074b8: 90 10 20 00 clr %o0 <== NOT EXECUTED 20074bc: 40 00 00 18 call 200751c <== NOT EXECUTED 20074c0: 92 12 60 a0 or %o1, 0xa0, %o1 <== NOT EXECUTED _exit(local_errno); 20074c4: 40 00 02 e8 call 2008064 <_exit> <== NOT EXECUTED 20074c8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 20074cc: 90 10 20 00 clr %o0 <== NOT EXECUTED 20074d0: 40 00 00 13 call 200751c <== NOT EXECUTED 20074d4: 92 12 60 b8 or %o1, 0xb8, %o1 <== NOT EXECUTED abort(); 20074d8: 40 00 38 e3 call 2015864 <== NOT EXECUTED 20074dc: 01 00 00 00 nop <== NOT EXECUTED } } return chars_written; } 20074e0: 81 c7 e0 08 ret <== NOT EXECUTED 20074e4: 81 e8 00 00 restore <== NOT EXECUTED 0202593c : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 202593c: 9d e3 bf a0 save %sp, -96, %sp 2025940: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2025944: 2b 00 81 91 sethi %hi(0x2064400), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2025948: 29 00 81 91 sethi %hi(0x2064400), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 202594c: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2025950: aa 15 61 e0 or %l5, 0x1e0, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2025954: a8 15 21 d0 or %l4, 0x1d0, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025958: a2 10 20 00 clr %l1 202595c: a0 10 20 00 clr %l0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2025960: c2 06 20 04 ld [ %i0 + 4 ], %g1 2025964: 82 00 7f ff add %g1, -1, %g1 2025968: 80 a0 60 00 cmp %g1, 0 202596c: 16 80 00 07 bge 2025988 2025970: c2 26 20 04 st %g1, [ %i0 + 4 ] 2025974: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 2025978: 40 00 79 89 call 2043f9c <__srget_r> <== NOT EXECUTED 202597c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2025980: 10 80 00 06 b 2025998 <== NOT EXECUTED 2025984: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED 2025988: c2 06 00 00 ld [ %i0 ], %g1 202598c: 84 00 60 01 add %g1, 1, %g2 2025990: e4 08 40 00 ldub [ %g1 ], %l2 2025994: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') 2025998: 80 a4 a0 3a cmp %l2, 0x3a 202599c: 02 80 00 22 be 2025a24 20259a0: 80 a4 60 00 cmp %l1, 0 break; if (sign == 0) { 20259a4: 32 80 00 09 bne,a 20259c8 20259a8: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 20259ac: 80 a4 a0 2d cmp %l2, 0x2d 20259b0: 12 80 00 05 bne 20259c4 20259b4: a2 10 20 01 mov 1, %l1 sign = -1; limit++; 20259b8: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 20259bc: 10 bf ff e9 b 2025960 <== NOT EXECUTED 20259c0: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 20259c4: c2 05 00 00 ld [ %l4 ], %g1 20259c8: 82 00 40 12 add %g1, %l2, %g1 20259cc: c2 08 60 01 ldub [ %g1 + 1 ], %g1 20259d0: 80 88 60 04 btst 4, %g1 20259d4: 02 80 00 1c be 2025a44 20259d8: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 20259dc: 40 00 c4 bf call 2056cd8 <.udiv> 20259e0: 92 10 20 0a mov 0xa, %o1 20259e4: 80 a4 00 08 cmp %l0, %o0 20259e8: 18 80 00 17 bgu 2025a44 20259ec: 01 00 00 00 nop 20259f0: 12 80 00 08 bne 2025a10 20259f4: a4 04 bf d0 add %l2, -48, %l2 20259f8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20259fc: 40 00 c5 63 call 2056f88 <.urem> <== NOT EXECUTED 2025a00: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 2025a04: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED 2025a08: 18 80 00 0f bgu 2025a44 <== NOT EXECUTED 2025a0c: 01 00 00 00 nop <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 2025a10: 83 2c 20 03 sll %l0, 3, %g1 2025a14: a1 2c 20 01 sll %l0, 1, %l0 2025a18: a0 04 00 01 add %l0, %g1, %l0 2025a1c: 10 bf ff d1 b 2025960 2025a20: a0 04 80 10 add %l2, %l0, %l0 } if (sign == 0) 2025a24: 02 80 00 08 be 2025a44 2025a28: 90 10 00 11 mov %l1, %o0 return 0; *val = i * sign; 2025a2c: 92 10 00 10 mov %l0, %o1 2025a30: 40 00 c4 70 call 2056bf0 <.umul> 2025a34: b0 10 20 01 mov 1, %i0 2025a38: d0 26 40 00 st %o0, [ %i1 ] return 1; 2025a3c: 81 c7 e0 08 ret 2025a40: 81 e8 00 00 restore } 2025a44: 81 c7 e0 08 ret <== NOT EXECUTED 2025a48: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02025a4c : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 2025a4c: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 2025a50: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 2025a54: 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; 2025a58: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 2025a5c: a0 14 21 e0 or %l0, 0x1e0, %l0 2025a60: c2 06 20 04 ld [ %i0 + 4 ], %g1 2025a64: 82 00 7f ff add %g1, -1, %g1 2025a68: 80 a0 60 00 cmp %g1, 0 2025a6c: 16 80 00 07 bge 2025a88 2025a70: c2 26 20 04 st %g1, [ %i0 + 4 ] 2025a74: d0 04 00 00 ld [ %l0 ], %o0 2025a78: 40 00 79 49 call 2043f9c <__srget_r> 2025a7c: 92 10 00 18 mov %i0, %o1 if (c == ':') { 2025a80: 10 80 00 07 b 2025a9c 2025a84: 80 a2 20 3a cmp %o0, 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 2025a88: c2 06 00 00 ld [ %i0 ], %g1 2025a8c: 84 00 60 01 add %g1, 1, %g2 2025a90: d0 08 40 00 ldub [ %g1 ], %o0 2025a94: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') { 2025a98: 80 a2 20 3a cmp %o0, 0x3a 2025a9c: 12 80 00 07 bne 2025ab8 2025aa0: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 2025aa4: 80 a7 20 00 cmp %i4, 0 2025aa8: 22 80 00 1a be,a 2025b10 2025aac: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 2025ab0: 81 c7 e0 08 ret <== NOT EXECUTED 2025ab4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') { if (nlFlag) return 0; break; } if (c == '\n') { 2025ab8: 12 80 00 07 bne 2025ad4 2025abc: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) 2025ac0: 80 a7 20 00 cmp %i4, 0 2025ac4: 32 80 00 13 bne,a 2025b10 2025ac8: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 2025acc: 81 c7 e0 08 ret <== NOT EXECUTED 2025ad0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == '\n') { if (!nlFlag) return 0; break; } if (c == EOF) 2025ad4: 22 80 00 17 be,a 2025b30 2025ad8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (*nleft < 2) 2025adc: c2 06 c0 00 ld [ %i3 ], %g1 2025ae0: 80 a0 60 01 cmp %g1, 1 2025ae4: 28 80 00 13 bleu,a 2025b30 2025ae8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; **bufp = c; 2025aec: c2 06 80 00 ld [ %i2 ], %g1 2025af0: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 2025af4: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 2025af8: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2025afc: 84 00 a0 01 inc %g2 --(*nleft); 2025b00: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 2025b04: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); } 2025b08: 10 bf ff d6 b 2025a60 2025b0c: c2 26 c0 00 st %g1, [ %i3 ] **bufp = '\0'; 2025b10: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 2025b14: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 2025b18: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2025b1c: 84 00 a0 01 inc %g2 --(*nleft); 2025b20: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2025b24: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 2025b28: c2 26 c0 00 st %g1, [ %i3 ] 2025b2c: b0 10 20 01 mov 1, %i0 return 1; } 2025b30: 81 c7 e0 08 ret 2025b34: 81 e8 00 00 restore 02025b38 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 2025b38: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b3c: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 2025b40: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2025b44: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b48: a2 07 a0 4c add %fp, 0x4c, %l1 2025b4c: a0 07 a0 50 add %fp, 0x50, %l0 2025b50: 90 10 00 18 mov %i0, %o0 2025b54: 92 10 00 19 mov %i1, %o1 2025b58: 94 10 00 11 mov %l1, %o2 2025b5c: 7f ff ff bc call 2025a4c 2025b60: 96 10 00 10 mov %l0, %o3 2025b64: 80 a2 20 00 cmp %o0, 0 2025b68: 02 80 00 41 be 2025c6c 2025b6c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 2025b70: 92 06 60 04 add %i1, 4, %o1 2025b74: 94 10 00 11 mov %l1, %o2 2025b78: 96 10 00 10 mov %l0, %o3 2025b7c: 7f ff ff b4 call 2025a4c 2025b80: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b84: 80 a2 20 00 cmp %o0, 0 2025b88: 02 80 00 39 be 2025c6c 2025b8c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 2025b90: 7f ff ff 6b call 202593c 2025b94: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025b98: 80 a2 20 00 cmp %o0, 0 2025b9c: 02 80 00 34 be 2025c6c 2025ba0: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 2025ba4: 94 10 00 11 mov %l1, %o2 2025ba8: 96 10 00 10 mov %l0, %o3 2025bac: 92 07 bf f8 add %fp, -8, %o1 2025bb0: 7f ff ff a7 call 2025a4c 2025bb4: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025bb8: 80 a2 20 00 cmp %o0, 0 2025bbc: 02 80 00 2c be 2025c6c 2025bc0: c2 07 bf fc ld [ %fp + -4 ], %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025bc4: 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; 2025bc8: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025bcc: 84 10 00 03 mov %g3, %g2 2025bd0: 10 80 00 05 b 2025be4 2025bd4: 82 10 20 01 mov 1, %g1 if(*cp == ',') memcount++; 2025bd8: 88 19 20 2c xor %g4, 0x2c, %g4 2025bdc: 80 a0 00 04 cmp %g0, %g4 2025be0: 82 60 7f ff subx %g1, -1, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025be4: c8 48 80 00 ldsb [ %g2 ], %g4 2025be8: 80 a1 20 00 cmp %g4, 0 2025bec: 12 bf ff fb bne 2025bd8 2025bf0: 84 00 a0 01 inc %g2 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 2025bf4: c4 07 a0 50 ld [ %fp + 0x50 ], %g2 2025bf8: 83 28 60 02 sll %g1, 2, %g1 2025bfc: 82 00 60 13 add %g1, 0x13, %g1 2025c00: 80 a0 80 01 cmp %g2, %g1 2025c04: 0a 80 00 1a bcs 2025c6c 2025c08: 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; 2025c0c: 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); 2025c10: 82 00 60 0f add %g1, 0xf, %g1 2025c14: 82 08 7f f0 and %g1, -16, %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 2025c18: 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); 2025c1c: c2 26 60 0c st %g1, [ %i1 + 0xc ] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 2025c20: 10 80 00 09 b 2025c44 2025c24: c2 07 bf f8 ld [ %fp + -8 ], %g1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 2025c28: 32 80 00 08 bne,a 2025c48 2025c2c: 82 00 60 01 inc %g1 *cp = '\0'; 2025c30: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 2025c34: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 2025c38: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2025c3c: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2025c40: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED 2025c44: 82 00 60 01 inc %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025c48: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 2025c4c: 80 a0 e0 00 cmp %g3, 0 2025c50: 32 bf ff f6 bne,a 2025c28 2025c54: 80 a0 e0 2c cmp %g3, 0x2c if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 2025c58: c2 06 60 0c ld [ %i1 + 0xc ], %g1 2025c5c: 85 28 a0 02 sll %g2, 2, %g2 2025c60: c0 20 40 02 clr [ %g1 + %g2 ] return 1; 2025c64: 81 c7 e0 08 ret 2025c68: 91 e8 20 01 restore %g0, 1, %o0 } 2025c6c: 81 c7 e0 08 ret <== NOT EXECUTED 2025c70: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02025cbc : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2025cbc: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025cc0: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2025cc4: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2025cc8: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025ccc: a2 07 a0 4c add %fp, 0x4c, %l1 2025cd0: a0 07 a0 50 add %fp, 0x50, %l0 2025cd4: 90 10 00 18 mov %i0, %o0 2025cd8: 92 10 00 19 mov %i1, %o1 2025cdc: 94 10 00 11 mov %l1, %o2 2025ce0: 7f ff ff 5b call 2025a4c 2025ce4: 96 10 00 10 mov %l0, %o3 2025ce8: 80 a2 20 00 cmp %o0, 0 2025cec: 02 80 00 39 be 2025dd0 2025cf0: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 2025cf4: 92 06 60 04 add %i1, 4, %o1 2025cf8: 94 10 00 11 mov %l1, %o2 2025cfc: 96 10 00 10 mov %l0, %o3 2025d00: 7f ff ff 53 call 2025a4c 2025d04: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d08: 80 a2 20 00 cmp %o0, 0 2025d0c: 02 80 00 31 be 2025dd0 2025d10: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 2025d14: 7f ff ff 0a call 202593c 2025d18: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d1c: 80 a2 20 00 cmp %o0, 0 2025d20: 02 80 00 2c be 2025dd0 2025d24: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 2025d28: 7f ff ff 05 call 202593c 2025d2c: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d30: 80 a2 20 00 cmp %o0, 0 2025d34: 02 80 00 27 be 2025dd0 2025d38: 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) 2025d3c: 92 06 60 0c add %i1, 0xc, %o1 2025d40: 94 10 00 11 mov %l1, %o2 2025d44: 96 10 00 10 mov %l0, %o3 2025d48: 7f ff ff 41 call 2025a4c 2025d4c: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d50: 80 a2 20 00 cmp %o0, 0 2025d54: 02 80 00 1f be 2025dd0 2025d58: 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) 2025d5c: 92 06 60 10 add %i1, 0x10, %o1 2025d60: 94 10 00 11 mov %l1, %o2 2025d64: 96 10 00 10 mov %l0, %o3 2025d68: 7f ff ff 39 call 2025a4c 2025d6c: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d70: 80 a2 20 00 cmp %o0, 0 2025d74: 02 80 00 17 be 2025dd0 2025d78: 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) 2025d7c: 92 06 60 14 add %i1, 0x14, %o1 2025d80: 94 10 00 11 mov %l1, %o2 2025d84: 96 10 00 10 mov %l0, %o3 2025d88: 7f ff ff 31 call 2025a4c 2025d8c: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025d90: 80 a2 20 00 cmp %o0, 0 2025d94: 02 80 00 0f be 2025dd0 2025d98: 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)) 2025d9c: 94 10 00 11 mov %l1, %o2 2025da0: 96 10 00 10 mov %l0, %o3 2025da4: 92 06 60 18 add %i1, 0x18, %o1 2025da8: 7f ff ff 29 call 2025a4c 2025dac: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025db0: 80 a2 20 00 cmp %o0, 0 2025db4: 02 80 00 07 be 2025dd0 2025db8: 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; 2025dbc: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 2025dc0: c2 07 bf f8 ld [ %fp + -8 ], %g1 2025dc4: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 2025dc8: 81 c7 e0 08 ret 2025dcc: 91 e8 20 01 restore %g0, 1, %o0 } 2025dd0: 81 c7 e0 08 ret <== NOT EXECUTED 2025dd4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020258c8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 20258c8: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 20258cc: c2 00 61 b4 ld [ %g1 + 0x1b4 ], %g1 ! 2063db4 <== NOT EXECUTED 20258d0: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 20258d4: 81 c3 e0 08 retl <== NOT EXECUTED 20258d8: 90 10 20 00 clr %o0 <== NOT EXECUTED 02025ef8 : return NULL; return &grent; } void setgrent(void) { 2025ef8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 2025efc: 7f ff ff c9 call 2025e20 <== NOT EXECUTED 2025f00: 01 00 00 00 nop <== NOT EXECUTED if (group_fp != NULL) 2025f04: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025f08: d0 00 61 24 ld [ %g1 + 0x124 ], %o0 ! 2067924 <== NOT EXECUTED 2025f0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025f10: 22 80 00 05 be,a 2025f24 <== NOT EXECUTED 2025f14: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED fclose(group_fp); 2025f18: 40 00 62 a9 call 203e9bc <== NOT EXECUTED 2025f1c: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 2025f20: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED 2025f24: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED 2025f28: 90 12 22 78 or %o0, 0x278, %o0 <== NOT EXECUTED 2025f2c: 40 00 64 f3 call 203f2f8 <== NOT EXECUTED 2025f30: 92 12 60 a8 or %o1, 0xa8, %o1 <== NOT EXECUTED 2025f34: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 2025f38: d0 20 61 24 st %o0, [ %g1 + 0x124 ] ! 2067924 <== NOT EXECUTED } 2025f3c: 81 c7 e0 08 ret <== NOT EXECUTED 2025f40: 81 e8 00 00 restore <== NOT EXECUTED 020260ec : return NULL; return &pwent; } void setpwent(void) { 20260ec: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 20260f0: 7f ff ff 4c call 2025e20 <== NOT EXECUTED 20260f4: 01 00 00 00 nop <== NOT EXECUTED if (passwd_fp != NULL) 20260f8: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 20260fc: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 206783c <== NOT EXECUTED 2026100: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026104: 22 80 00 05 be,a 2026118 <== NOT EXECUTED 2026108: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED fclose(passwd_fp); 202610c: 40 00 62 2c call 203e9bc <== NOT EXECUTED 2026110: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 2026114: 11 00 81 64 sethi %hi(0x2059000), %o0 <== NOT EXECUTED 2026118: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED 202611c: 90 12 21 c0 or %o0, 0x1c0, %o0 <== NOT EXECUTED 2026120: 40 00 64 76 call 203f2f8 <== NOT EXECUTED 2026124: 92 12 60 a8 or %o1, 0xa8, %o1 <== NOT EXECUTED 2026128: 03 00 81 9e sethi %hi(0x2067800), %g1 <== NOT EXECUTED 202612c: d0 20 60 3c st %o0, [ %g1 + 0x3c ] ! 206783c <== NOT EXECUTED } 2026130: 81 c7 e0 08 ret <== NOT EXECUTED 2026134: 81 e8 00 00 restore <== NOT EXECUTED 02005d00 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 2005d00: 03 00 81 8f sethi %hi(0x2063c00), %g1 <== NOT EXECUTED 2005d04: c2 00 61 b4 ld [ %g1 + 0x1b4 ], %g1 ! 2063db4 <== NOT EXECUTED 2005d08: d0 30 60 30 sth %o0, [ %g1 + 0x30 ] <== NOT EXECUTED return 0; } 2005d0c: 81 c3 e0 08 retl <== NOT EXECUTED 2005d10: 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 02007338 : int _STAT_NAME( const char *path, struct stat *buf ) { 2007338: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 200733c: 80 a6 60 00 cmp %i1, 0 2007340: 12 80 00 06 bne 2007358 2007344: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 2007348: 40 00 dd 45 call 203e85c <__errno> 200734c: b0 10 3f ff mov -1, %i0 ! ffffffff 2007350: 10 80 00 20 b 20073d0 2007354: 82 10 20 0e mov 0xe, %g1 status = rtems_filesystem_evaluate_path( path, strlen( path ), 2007358: 40 00 f8 80 call 2045558 200735c: 90 10 00 18 mov %i0, %o0 2007360: a0 07 bf ec add %fp, -20, %l0 2007364: 92 10 00 08 mov %o0, %o1 2007368: 94 10 20 00 clr %o2 200736c: 90 10 00 18 mov %i0, %o0 2007370: 96 10 00 10 mov %l0, %o3 2007374: 98 10 20 01 mov 1, %o4 2007378: 7f ff f9 e8 call 2005b18 200737c: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2007380: 80 a2 20 00 cmp %o0, 0 2007384: 12 80 00 14 bne 20073d4 2007388: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 200738c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2007390: 80 a0 60 00 cmp %g1, 0 2007394: 12 80 00 12 bne 20073dc 2007398: 92 10 20 00 clr %o1 rtems_filesystem_freenode( &loc ); 200739c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20073a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073a4: 02 80 00 08 be 20073c4 <== NOT EXECUTED 20073a8: 01 00 00 00 nop <== NOT EXECUTED 20073ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20073b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073b4: 02 80 00 04 be 20073c4 <== NOT EXECUTED 20073b8: 01 00 00 00 nop <== NOT EXECUTED 20073bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20073c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20073c4: 40 00 dd 26 call 203e85c <__errno> <== NOT EXECUTED 20073c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20073cc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20073d0: c2 22 00 00 st %g1, [ %o0 ] 20073d4: 81 c7 e0 08 ret 20073d8: 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) ); 20073dc: 94 10 20 48 mov 0x48, %o2 20073e0: 40 00 ea 85 call 2041df4 20073e4: 90 10 00 19 mov %i1, %o0 status = (*loc.handlers->fstat_h)( &loc, buf ); 20073e8: c2 07 bf f4 ld [ %fp + -12 ], %g1 20073ec: 92 10 00 19 mov %i1, %o1 20073f0: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 20073f4: 9f c0 40 00 call %g1 20073f8: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 20073fc: c2 07 bf f8 ld [ %fp + -8 ], %g1 2007400: 80 a0 60 00 cmp %g1, 0 2007404: 02 bf ff f4 be 20073d4 2007408: b0 10 00 08 mov %o0, %i0 200740c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2007410: 80 a0 60 00 cmp %g1, 0 2007414: 02 80 00 04 be 2007424 2007418: 01 00 00 00 nop 200741c: 9f c0 40 00 call %g1 2007420: 90 10 00 10 mov %l0, %o0 return status; } 2007424: 81 c7 e0 08 ret 2007428: 81 e8 00 00 restore 02026e7c : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 2026e7c: 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 ) ) 2026e80: 40 00 79 b6 call 2045558 <== NOT EXECUTED 2026e84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026e88: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2026e8c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2026e90: 94 10 20 00 clr %o2 <== NOT EXECUTED 2026e94: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026e98: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2026e9c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 2026ea0: 7f ff 7b 1e call 2005b18 <== NOT EXECUTED 2026ea4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026ea8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026eac: 12 80 00 0b bne 2026ed8 <== NOT EXECUTED 2026eb0: 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; 2026eb4: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 2026eb8: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 2026ebc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026ec0: 12 80 00 08 bne 2026ee0 <== NOT EXECUTED 2026ec4: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026ec8: 40 00 5e 65 call 203e85c <__errno> <== NOT EXECUTED 2026ecc: 01 00 00 00 nop <== NOT EXECUTED 2026ed0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2026ed4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026ed8: 81 c7 e0 08 ret <== NOT EXECUTED 2026edc: 81 e8 00 00 restore <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 2026ee0: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED 2026ee4: 40 00 6b c4 call 2041df4 <== NOT EXECUTED 2026ee8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 2026eec: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 2026ef0: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED 2026ef4: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 2026ef8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026efc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2026f00: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026f04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026f08: 02 bf ff f4 be 2026ed8 <== NOT EXECUTED 2026f0c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2026f10: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026f14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026f18: 02 80 00 04 be 2026f28 <== NOT EXECUTED 2026f1c: 01 00 00 00 nop <== NOT EXECUTED 2026f20: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026f24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2026f28: 81 c7 e0 08 ret <== NOT EXECUTED 2026f2c: 81 e8 00 00 restore <== NOT EXECUTED 02026f30 : int symlink( const char *actualpath, const char *sympath ) { 2026f30: 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 ); 2026f34: c2 4e 40 00 ldsb [ %i1 ], %g1 2026f38: 80 a0 60 5c cmp %g1, 0x5c 2026f3c: 02 80 00 07 be 2026f58 2026f40: a0 10 00 18 mov %i0, %l0 2026f44: 80 a0 60 2f cmp %g1, 0x2f 2026f48: 02 80 00 04 be 2026f58 2026f4c: 80 a0 60 00 cmp %g1, 0 2026f50: 12 80 00 0a bne 2026f78 2026f54: 03 00 81 8f sethi %hi(0x2063c00), %g1 2026f58: 03 00 81 8f sethi %hi(0x2063c00), %g1 2026f5c: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 ! 2063db4 2026f60: 90 07 bf e8 add %fp, -24, %o0 2026f64: 92 02 60 18 add %o1, 0x18, %o1 2026f68: 40 00 6b 10 call 2041ba8 2026f6c: 94 10 20 14 mov 0x14, %o2 2026f70: 10 80 00 08 b 2026f90 2026f74: 90 10 20 01 mov 1, %o0 2026f78: d2 00 61 b4 ld [ %g1 + 0x1b4 ], %o1 2026f7c: 90 07 bf e8 add %fp, -24, %o0 2026f80: 92 02 60 04 add %o1, 4, %o1 2026f84: 40 00 6b 09 call 2041ba8 2026f88: 94 10 20 14 mov 0x14, %o2 2026f8c: 90 10 20 00 clr %o0 if ( !loc.ops->evalformake_h ) { 2026f90: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026f94: c2 00 60 04 ld [ %g1 + 4 ], %g1 2026f98: 80 a0 60 00 cmp %g1, 0 2026f9c: 02 80 00 14 be 2026fec 2026fa0: 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 ); 2026fa4: 94 07 bf fc add %fp, -4, %o2 2026fa8: b2 07 bf e8 add %fp, -24, %i1 if ( result != 0 ) 2026fac: 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 ); 2026fb0: 9f c0 40 00 call %g1 2026fb4: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) 2026fb8: 80 a2 20 00 cmp %o0, 0 2026fbc: 12 80 00 10 bne 2026ffc 2026fc0: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 2026fc4: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 2026fc8: 80 a0 60 00 cmp %g1, 0 2026fcc: 12 80 00 0e bne 2027004 2026fd0: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &loc ); 2026fd4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026fd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026fdc: 02 80 00 04 be 2026fec <== NOT EXECUTED 2026fe0: 01 00 00 00 nop <== NOT EXECUTED 2026fe4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026fe8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026fec: 40 00 5e 1c call 203e85c <__errno> <== NOT EXECUTED 2026ff0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026ff4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026ff8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026ffc: 81 c7 e0 08 ret 2027000: 81 e8 00 00 restore } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 2027004: 92 10 00 10 mov %l0, %o1 2027008: 9f c0 40 00 call %g1 202700c: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &loc ); 2027010: c2 07 bf f4 ld [ %fp + -12 ], %g1 2027014: 80 a0 60 00 cmp %g1, 0 2027018: 02 bf ff f9 be 2026ffc 202701c: b0 10 00 08 mov %o0, %i0 2027020: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2027024: 80 a0 60 00 cmp %g1, 0 2027028: 02 80 00 04 be 2027038 202702c: 01 00 00 00 nop 2027030: 9f c0 40 00 call %g1 2027034: 90 10 00 19 mov %i1, %o0 return result; } 2027038: 81 c7 e0 08 ret 202703c: 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 d0 call 2017318 <__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 79 call 20159d8 <== 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 74 call 20159d8 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 0200e0b8 : #include int unlink( const char *path ) { 200e0b8: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 200e0bc: 7f ff cf d3 call 2002008 200e0c0: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200e0c4: a6 92 20 00 orcc %o0, 0, %l3 200e0c8: 32 80 00 17 bne,a 200e124 200e0cc: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 200e0d0: c2 4e 00 00 ldsb [ %i0 ], %g1 200e0d4: 80 a0 60 5c cmp %g1, 0x5c 200e0d8: 02 80 00 06 be 200e0f0 200e0dc: 80 a0 60 2f cmp %g1, 0x2f 200e0e0: 02 80 00 04 be 200e0f0 200e0e4: 80 a0 60 00 cmp %g1, 0 200e0e8: 12 80 00 07 bne 200e104 <== NOT EXECUTED 200e0ec: 03 00 80 6a sethi %hi(0x201a800), %g1 <== NOT EXECUTED 200e0f0: 03 00 80 6a sethi %hi(0x201a800), %g1 200e0f4: d2 00 63 94 ld [ %g1 + 0x394 ], %o1 ! 201ab94 200e0f8: 90 07 bf ec add %fp, -20, %o0 200e0fc: 10 80 00 05 b 200e110 200e100: 92 02 60 18 add %o1, 0x18, %o1 200e104: d2 00 63 94 ld [ %g1 + 0x394 ], %o1 <== NOT EXECUTED 200e108: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 200e10c: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 200e110: 94 10 20 14 mov 0x14, %o2 200e114: 40 00 04 6c call 200f2c4 200e118: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200e11c: 10 80 00 0b b 200e148 200e120: 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, 200e124: 92 10 00 13 mov %l3, %o1 200e128: 94 10 20 02 mov 2, %o2 200e12c: 96 07 bf ec add %fp, -20, %o3 200e130: 7f ff d0 04 call 2002140 200e134: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 200e138: 80 a2 20 00 cmp %o0, 0 200e13c: 12 80 00 82 bne 200e344 200e140: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200e144: 94 10 20 14 mov 0x14, %o2 200e148: a0 07 bf d8 add %fp, -40, %l0 200e14c: a4 07 bf ec add %fp, -20, %l2 200e150: 90 10 00 10 mov %l0, %o0 200e154: 40 00 04 5c call 200f2c4 200e158: 92 10 00 12 mov %l2, %o1 name = path + parentpathlen; 200e15c: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200e160: 40 00 05 d5 call 200f8b4 200e164: 90 10 00 18 mov %i0, %o0 200e168: 92 10 00 08 mov %o0, %o1 200e16c: 7f ff cf 95 call 2001fc0 200e170: 90 10 00 18 mov %i0, %o0 200e174: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 200e178: 40 00 05 cf call 200f8b4 200e17c: 90 10 00 18 mov %i0, %o0 200e180: 94 10 20 00 clr %o2 200e184: 92 10 00 08 mov %o0, %o1 200e188: 96 10 00 10 mov %l0, %o3 200e18c: 90 10 00 18 mov %i0, %o0 200e190: 7f ff cf b0 call 2002050 200e194: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 200e198: 80 a2 20 00 cmp %o0, 0 200e19c: 02 80 00 11 be 200e1e0 200e1a0: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 200e1a4: 80 8c 60 ff btst 0xff, %l1 200e1a8: 02 80 00 0c be 200e1d8 200e1ac: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 200e1b0: c2 07 bf f8 ld [ %fp + -8 ], %g1 200e1b4: 80 a0 60 00 cmp %g1, 0 200e1b8: 02 80 00 64 be 200e348 200e1bc: 01 00 00 00 nop 200e1c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200e1c4: 80 a0 60 00 cmp %g1, 0 200e1c8: 02 80 00 04 be 200e1d8 200e1cc: 90 10 00 12 mov %l2, %o0 200e1d0: 9f c0 40 00 call %g1 200e1d4: 01 00 00 00 nop 200e1d8: 81 c7 e0 08 ret 200e1dc: 81 e8 00 00 restore return -1; } if ( !loc.ops->node_type_h ) { 200e1e0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200e1e4: 80 a0 60 00 cmp %g1, 0 200e1e8: 22 80 00 26 be,a 200e280 200e1ec: 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 ) { 200e1f0: 9f c0 40 00 call %g1 200e1f4: 90 10 00 10 mov %l0, %o0 200e1f8: 80 a2 20 01 cmp %o0, 1 200e1fc: 12 80 00 1c bne 200e26c 200e200: c4 07 bf e4 ld [ %fp + -28 ], %g2 rtems_filesystem_freenode( &loc ); 200e204: 80 a0 a0 00 cmp %g2, 0 200e208: 02 80 00 09 be 200e22c 200e20c: 80 8c 60 ff btst 0xff, %l1 200e210: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 200e214: 80 a0 60 00 cmp %g1, 0 200e218: 02 80 00 05 be 200e22c 200e21c: 80 8c 60 ff btst 0xff, %l1 200e220: 9f c0 40 00 call %g1 200e224: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200e228: 80 8c 60 ff btst 0xff, %l1 200e22c: 02 80 00 0c be 200e25c 200e230: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 200e234: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200e238: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e23c: 02 80 00 08 be 200e25c <== NOT EXECUTED 200e240: 01 00 00 00 nop <== NOT EXECUTED 200e244: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200e248: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e24c: 02 80 00 04 be 200e25c <== NOT EXECUTED 200e250: 01 00 00 00 nop <== NOT EXECUTED 200e254: 9f c0 40 00 call %g1 <== NOT EXECUTED 200e258: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 200e25c: 40 00 01 df call 200e9d8 <__errno> 200e260: b0 10 3f ff mov -1, %i0 200e264: 10 80 00 1b b 200e2d0 200e268: 82 10 20 15 mov 0x15, %g1 } if ( !loc.ops->unlink_h ) { 200e26c: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200e270: 80 a0 60 00 cmp %g1, 0 200e274: 12 80 00 1a bne 200e2dc 200e278: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 200e27c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200e280: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e284: 02 80 00 05 be 200e298 <== NOT EXECUTED 200e288: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200e28c: 9f c0 40 00 call %g1 <== NOT EXECUTED 200e290: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 200e294: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200e298: 02 80 00 0b be 200e2c4 <== NOT EXECUTED 200e29c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 200e2a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e2a4: 02 80 00 08 be 200e2c4 <== NOT EXECUTED 200e2a8: 01 00 00 00 nop <== NOT EXECUTED 200e2ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200e2b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200e2b4: 02 80 00 04 be 200e2c4 <== NOT EXECUTED 200e2b8: 01 00 00 00 nop <== NOT EXECUTED 200e2bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 200e2c0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200e2c4: 40 00 01 c5 call 200e9d8 <__errno> <== NOT EXECUTED 200e2c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200e2cc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200e2d0: c2 22 00 00 st %g1, [ %o0 ] 200e2d4: 81 c7 e0 08 ret 200e2d8: 81 e8 00 00 restore } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 200e2dc: 9f c0 40 00 call %g1 200e2e0: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 200e2e4: c2 07 bf e4 ld [ %fp + -28 ], %g1 200e2e8: 80 a0 60 00 cmp %g1, 0 200e2ec: 02 80 00 08 be 200e30c 200e2f0: b0 10 00 08 mov %o0, %i0 200e2f4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200e2f8: 80 a0 60 00 cmp %g1, 0 200e2fc: 02 80 00 05 be 200e310 200e300: 80 8c 60 ff btst 0xff, %l1 200e304: 9f c0 40 00 call %g1 200e308: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200e30c: 80 8c 60 ff btst 0xff, %l1 200e310: 02 bf ff b2 be 200e1d8 200e314: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200e318: 80 a0 60 00 cmp %g1, 0 200e31c: 02 80 00 0b be 200e348 200e320: 01 00 00 00 nop 200e324: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200e328: 80 a0 60 00 cmp %g1, 0 200e32c: 02 80 00 07 be 200e348 200e330: 01 00 00 00 nop 200e334: 9f c0 40 00 call %g1 200e338: 90 07 bf ec add %fp, -20, %o0 200e33c: 81 c7 e0 08 ret 200e340: 81 e8 00 00 restore 200e344: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 200e348: 81 c7 e0 08 ret <== NOT EXECUTED 200e34c: 81 e8 00 00 restore <== NOT EXECUTED 020094f8 : */ int unmount( const char *path ) { 20094f8: 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 ) ) 20094fc: 40 00 f0 17 call 2045558 2009500: 90 10 00 18 mov %i0, %o0 2009504: a0 07 bf ec add %fp, -20, %l0 2009508: 92 10 00 08 mov %o0, %o1 200950c: 94 10 20 00 clr %o2 2009510: 90 10 00 18 mov %i0, %o0 2009514: 96 10 00 10 mov %l0, %o3 2009518: 7f ff f1 80 call 2005b18 200951c: 98 10 20 01 mov 1, %o4 2009520: 80 a2 20 00 cmp %o0, 0 2009524: 12 80 00 6a bne 20096cc 2009528: 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; 200952c: c4 07 bf ec ld [ %fp + -20 ], %g2 2009530: c6 04 60 1c ld [ %l1 + 0x1c ], %g3 2009534: 80 a0 c0 02 cmp %g3, %g2 2009538: 02 80 00 0f be 2009574 200953c: 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 ); 2009540: 80 a0 60 00 cmp %g1, 0 2009544: 02 80 00 08 be 2009564 2009548: 01 00 00 00 nop 200954c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2009550: 80 a0 60 00 cmp %g1, 0 2009554: 02 80 00 04 be 2009564 2009558: 01 00 00 00 nop 200955c: 9f c0 40 00 call %g1 2009560: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 2009564: 40 00 d4 be call 203e85c <__errno> 2009568: 01 00 00 00 nop 200956c: 10 80 00 21 b 20095f0 2009570: 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 ); 2009574: 80 a0 60 00 cmp %g1, 0 2009578: 22 80 00 09 be,a 200959c 200957c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009580: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2009584: 80 a0 60 00 cmp %g1, 0 2009588: 22 80 00 05 be,a 200959c 200958c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009590: 9f c0 40 00 call %g1 2009594: 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; 2009598: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 200959c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 20095a0: 80 a0 60 00 cmp %g1, 0 20095a4: 02 80 00 07 be 20095c0 20095a8: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 20095ac: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 20095b0: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 20095b4: 80 a0 60 00 cmp %g1, 0 20095b8: 32 80 00 06 bne,a 20095d0 20095bc: 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 ); 20095c0: 40 00 d4 a7 call 203e85c <__errno> <== NOT EXECUTED 20095c4: 01 00 00 00 nop <== NOT EXECUTED 20095c8: 10 80 00 0a b 20095f0 <== NOT EXECUTED 20095cc: 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 ) 20095d0: c2 00 61 b4 ld [ %g1 + 0x1b4 ], %g1 20095d4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 20095d8: 80 a0 40 11 cmp %g1, %l1 20095dc: 12 80 00 08 bne 20095fc 20095e0: 03 00 81 9f sethi %hi(0x2067c00), %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 20095e4: 40 00 d4 9e call 203e85c <__errno> 20095e8: 01 00 00 00 nop 20095ec: 82 10 20 10 mov 0x10, %g1 ! 10 20095f0: c2 22 00 00 st %g1, [ %o0 ] 20095f4: 81 c7 e0 08 ret 20095f8: 91 e8 3f ff restore %g0, -1, %o0 20095fc: 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; 2009600: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 2009604: 10 80 00 07 b 2009620 2009608: 84 10 a0 5c or %g2, 0x5c, %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; 200960c: c6 04 60 2c ld [ %l1 + 0x2c ], %g3 2009610: 80 a1 00 03 cmp %g4, %g3 2009614: 02 bf ff f4 be 20095e4 2009618: 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 ) { 200961c: c2 00 40 00 ld [ %g1 ], %g1 2009620: 80 a0 40 02 cmp %g1, %g2 2009624: 32 bf ff fa bne,a 200960c 2009628: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 200962c: 30 80 00 2a b,a 20096d4 * 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 ) 2009630: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009634: 9f c0 40 00 call %g1 2009638: 90 10 00 11 mov %l1, %o0 200963c: 80 a2 20 00 cmp %o0, 0 2009640: 12 80 00 23 bne 20096cc 2009644: 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){ 2009648: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 200964c: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 2009650: 9f c0 40 00 call %g1 2009654: 90 10 00 11 mov %l1, %o0 2009658: 80 a2 20 00 cmp %o0, 0 200965c: 02 80 00 0b be 2009688 2009660: 01 00 00 00 nop if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 2009664: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009668: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 200966c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2009670: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2009674: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009678: 02 80 00 15 be 20096cc <== NOT EXECUTED 200967c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 2009680: 40 00 04 f2 call 200aa48 <== NOT EXECUTED 2009684: 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 ); 2009688: 40 00 05 d7 call 200ade4 <_Chain_Extract> 200968c: 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 ); 2009690: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009694: 80 a0 60 00 cmp %g1, 0 2009698: 02 80 00 09 be 20096bc 200969c: 90 10 00 11 mov %l1, %o0 20096a0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20096a4: 80 a0 60 00 cmp %g1, 0 20096a8: 02 80 00 05 be 20096bc 20096ac: 01 00 00 00 nop 20096b0: 9f c0 40 00 call %g1 20096b4: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 20096b8: 90 10 00 11 mov %l1, %o0 20096bc: 7f ff f1 40 call 2005bbc 20096c0: b0 10 20 00 clr %i0 return 0; 20096c4: 81 c7 e0 08 ret 20096c8: 81 e8 00 00 restore } 20096cc: 81 c7 e0 08 ret 20096d0: 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 ) 20096d4: 7f ff f1 f4 call 2005ea4 20096d8: 90 10 00 11 mov %l1, %o0 20096dc: 80 a2 20 01 cmp %o0, 1 20096e0: 32 bf ff d4 bne,a 2009630 20096e4: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 20096e8: 30 bf ff bf b,a 20095e4 020270e0 : int utime( const char *path, const struct utimbuf *times ) { 20270e0: 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 ) ) 20270e4: 40 00 79 1d call 2045558 20270e8: 90 10 00 18 mov %i0, %o0 20270ec: a0 07 bf ec add %fp, -20, %l0 20270f0: 92 10 00 08 mov %o0, %o1 20270f4: 94 10 20 00 clr %o2 20270f8: 90 10 00 18 mov %i0, %o0 20270fc: 96 10 00 10 mov %l0, %o3 2027100: 98 10 20 01 mov 1, %o4 2027104: 7f ff 7a 85 call 2005b18 2027108: b0 10 3f ff mov -1, %i0 202710c: 80 a2 20 00 cmp %o0, 0 2027110: 12 80 00 10 bne 2027150 2027114: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 2027118: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 202711c: 80 a0 60 00 cmp %g1, 0 2027120: 32 80 00 0e bne,a 2027158 2027124: d4 06 60 04 ld [ %i1 + 4 ], %o2 rtems_filesystem_freenode( &temp_loc ); 2027128: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 202712c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2027130: 02 80 00 04 be 2027140 <== NOT EXECUTED 2027134: 01 00 00 00 nop <== NOT EXECUTED 2027138: 9f c0 40 00 call %g1 <== NOT EXECUTED 202713c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2027140: 40 00 5d c7 call 203e85c <__errno> <== NOT EXECUTED 2027144: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2027148: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 202714c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2027150: 81 c7 e0 08 ret 2027154: 81 e8 00 00 restore } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 2027158: d2 06 40 00 ld [ %i1 ], %o1 202715c: 9f c0 40 00 call %g1 2027160: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 2027164: c2 07 bf f8 ld [ %fp + -8 ], %g1 2027168: 80 a0 60 00 cmp %g1, 0 202716c: 02 bf ff f9 be 2027150 2027170: b0 10 00 08 mov %o0, %i0 2027174: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2027178: 80 a0 60 00 cmp %g1, 0 202717c: 02 80 00 04 be 202718c 2027180: 01 00 00 00 nop 2027184: 9f c0 40 00 call %g1 2027188: 90 10 00 10 mov %l0, %o0 return result; } 202718c: 81 c7 e0 08 ret 2027190: 81 e8 00 00 restore 020190b4 : ssize_t write( int fd, const void *buffer, size_t count ) { 20190b4: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20190b8: 03 00 80 6a sethi %hi(0x201a800), %g1 20190bc: c2 00 62 84 ld [ %g1 + 0x284 ], %g1 ! 201aa84 ssize_t write( int fd, const void *buffer, size_t count ) { 20190c0: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20190c4: 80 a6 00 01 cmp %i0, %g1 20190c8: 1a 80 00 0c bcc 20190f8 20190cc: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 20190d0: 03 00 80 6c sethi %hi(0x201b000), %g1 20190d4: e0 00 63 b0 ld [ %g1 + 0x3b0 ], %l0 ! 201b3b0 20190d8: 83 2e 20 06 sll %i0, 6, %g1 20190dc: b1 2e 20 03 sll %i0, 3, %i0 20190e0: b0 06 00 01 add %i0, %g1, %i0 20190e4: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 20190e8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 20190ec: 80 88 61 00 btst 0x100, %g1 20190f0: 12 80 00 06 bne 2019108 20190f4: 80 a6 60 00 cmp %i1, 0 20190f8: 7f ff d6 38 call 200e9d8 <__errno> <== NOT EXECUTED 20190fc: 01 00 00 00 nop <== NOT EXECUTED 2019100: 10 80 00 14 b 2019150 <== NOT EXECUTED 2019104: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 2019108: 02 80 00 07 be 2019124 201910c: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2019110: 02 80 00 1c be 2019180 2019114: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2019118: 80 88 60 04 btst 4, %g1 201911c: 32 80 00 06 bne,a 2019134 2019120: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2019124: 7f ff d6 2d call 200e9d8 <__errno> <== NOT EXECUTED 2019128: 01 00 00 00 nop <== NOT EXECUTED 201912c: 10 80 00 09 b 2019150 <== NOT EXECUTED 2019130: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 2019134: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2019138: 80 a0 60 00 cmp %g1, 0 201913c: 12 80 00 08 bne 201915c 2019140: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2019144: 7f ff d6 25 call 200e9d8 <__errno> <== NOT EXECUTED 2019148: 01 00 00 00 nop <== NOT EXECUTED 201914c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2019150: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2019154: 10 80 00 0b b 2019180 <== NOT EXECUTED 2019158: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 201915c: 9f c0 40 00 call %g1 2019160: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2019164: 80 a2 20 00 cmp %o0, 0 2019168: 04 80 00 06 ble 2019180 201916c: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 2019170: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2019174: 86 83 40 08 addcc %o5, %o0, %g3 2019178: 84 43 00 02 addx %o4, %g2, %g2 201917c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 2019180: 81 c7 e0 08 ret 2019184: 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 54 ld [ %g1 + 0x254 ], %g1 ! 201f654 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 54 ld [ %g1 + 0x354 ], %l2 ! 2020754 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 13 call 2011128 <__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 02 call 2011128 <__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 f5 call 2011128 <__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