4000c2f4 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4000c2f4: 9d e3 bf a0 save %sp, -96, %sp 4000c2f8: 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 ) 4000c2fc: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4000c300: 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 ) 4000c304: 02 80 00 40 be 4000c404 4000c308: 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 ); 4000c30c: 03 10 00 6a sethi %hi(0x4001a800), %g1 4000c310: c2 00 61 a8 ld [ %g1 + 0x1a8 ], %g1 ! 4001a9a8 4000c314: 90 10 00 19 mov %i1, %o0 4000c318: d4 10 60 2c lduh [ %g1 + 0x2c ], %o2 4000c31c: b6 2e c0 0a andn %i3, %o2, %i3 4000c320: 95 2e e0 10 sll %i3, 0x10, %o2 4000c324: 7f ff ff ca call 4000c24c 4000c328: 95 32 a0 10 srl %o2, 0x10, %o2 if ( !node ) 4000c32c: b0 92 20 00 orcc %o0, 0, %i0 4000c330: 02 80 00 35 be 4000c404 4000c334: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 4000c338: 80 a6 60 06 cmp %i1, 6 4000c33c: 38 80 00 20 bgu,a 4000c3bc 4000c340: 11 10 00 68 sethi %hi(0x4001a000), %o0 <== NOT EXECUTED 4000c344: b3 2e 60 02 sll %i1, 2, %i1 4000c348: 03 10 00 30 sethi %hi(0x4000c000), %g1 4000c34c: 82 10 62 30 or %g1, 0x230, %g1 ! 4000c230 4000c350: c2 00 40 19 ld [ %g1 + %i1 ], %g1 4000c354: 81 c0 40 00 jmp %g1 4000c358: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4000c35c: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 4000c360: 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); 4000c364: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4000c368: 82 06 20 50 add %i0, 0x50, %g1 4000c36c: 10 80 00 1b b 4000c3d8 4000c370: 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; 4000c374: 10 80 00 05 b 4000c388 4000c378: 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; 4000c37c: 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; 4000c380: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 4000c384: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 4000c388: 10 80 00 14 b 4000c3d8 4000c38c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 4000c390: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 4000c394: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 4000c398: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 4000c39c: c0 26 20 50 clr [ %i0 + 0x50 ] 4000c3a0: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 4000c3a4: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 4000c3a8: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 4000c3ac: 10 80 00 0b b 4000c3d8 4000c3b0: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 4000c3b4: 10 80 00 09 b 4000c3d8 4000c3b8: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 4000c3bc: 15 10 00 68 sethi %hi(0x4001a000), %o2 <== NOT EXECUTED 4000c3c0: 17 10 00 66 sethi %hi(0x40019800), %o3 <== NOT EXECUTED 4000c3c4: 90 12 20 48 or %o0, 0x48, %o0 <== NOT EXECUTED 4000c3c8: 94 12 a0 98 or %o2, 0x98, %o2 <== NOT EXECUTED 4000c3cc: 96 12 e0 d8 or %o3, 0xd8, %o3 <== NOT EXECUTED 4000c3d0: 7f ff d6 8d call 40001e04 <__assert_func> <== NOT EXECUTED 4000c3d4: 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; 4000c3d8: 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; 4000c3dc: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 4000c3e0: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 4000c3e4: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 4000c3e8: 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 ); 4000c3ec: 90 02 20 50 add %o0, 0x50, %o0 4000c3f0: 82 00 60 01 inc %g1 4000c3f4: c2 20 80 00 st %g1, [ %g2 ] 4000c3f8: c2 26 20 34 st %g1, [ %i0 + 0x34 ] 4000c3fc: 7f ff e6 c3 call 40005f08 <_Chain_Append> 4000c400: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 4000c404: 81 c7 e0 08 ret 4000c408: 81 e8 00 00 restore 40003ad4 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 40003ad4: 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 ); 40003ad8: 80 a6 20 00 cmp %i0, 0 40003adc: 12 80 00 0a bne 40003b04 40003ae0: 80 a6 60 00 cmp %i1, 0 40003ae4: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003ae8: 15 10 00 8c sethi %hi(0x40023000), %o2 <== NOT EXECUTED 40003aec: 17 10 00 8b sethi %hi(0x40022c00), %o3 <== NOT EXECUTED 40003af0: 90 12 22 b0 or %o0, 0x2b0, %o0 <== NOT EXECUTED 40003af4: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 40003af8: 96 12 e3 88 or %o3, 0x388, %o3 <== NOT EXECUTED 40003afc: 10 80 00 0b b 40003b28 <== NOT EXECUTED 40003b00: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); 40003b04: 36 80 00 0b bge,a 40003b30 40003b08: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40003b0c: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003b10: 15 10 00 8c sethi %hi(0x40023000), %o2 <== NOT EXECUTED 40003b14: 17 10 00 8b sethi %hi(0x40022c00), %o3 <== NOT EXECUTED 40003b18: 90 12 22 b0 or %o0, 0x2b0, %o0 <== NOT EXECUTED 40003b1c: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 40003b20: 96 12 e3 98 or %o3, 0x398, %o3 <== NOT EXECUTED 40003b24: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED 40003b28: 40 00 01 e8 call 400042c8 <__assert_func> <== NOT EXECUTED 40003b2c: 01 00 00 00 nop <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 40003b30: 80 a0 60 01 cmp %g1, 1 40003b34: 02 80 00 0a be 40003b5c 40003b38: 29 10 00 92 sethi %hi(0x40024800), %l4 40003b3c: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003b40: 15 10 00 8c sethi %hi(0x40023000), %o2 <== NOT EXECUTED 40003b44: 17 10 00 8b sethi %hi(0x40022c00), %o3 <== NOT EXECUTED 40003b48: 90 12 22 b0 or %o0, 0x2b0, %o0 <== NOT EXECUTED 40003b4c: 94 12 a0 80 or %o2, 0x80, %o2 <== NOT EXECUTED 40003b50: 96 12 e3 a8 or %o3, 0x3a8, %o3 <== NOT EXECUTED 40003b54: 10 bf ff f5 b 40003b28 <== NOT EXECUTED 40003b58: 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, "...." ); 40003b5c: 27 10 00 8b sethi %hi(0x40022c00), %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 40003b60: aa 06 20 54 add %i0, 0x54, %l5 40003b64: a8 15 22 28 or %l4, 0x228, %l4 40003b68: a6 14 e3 d0 or %l3, 0x3d0, %l3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 40003b6c: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 40003b70: 10 80 00 14 b 40003bc0 40003b74: 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, "...." ); 40003b78: c2 05 00 00 ld [ %l4 ], %g1 40003b7c: 90 10 00 13 mov %l3, %o0 40003b80: d2 00 60 08 ld [ %g1 + 8 ], %o1 40003b84: 40 00 39 1a call 40011fec 40003b88: 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++ ) 40003b8c: 80 a4 40 19 cmp %l1, %i1 40003b90: 24 bf ff fb ble,a 40003b7c 40003b94: c2 05 00 00 ld [ %l4 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 40003b98: 7f ff ff 71 call 4000395c 40003b9c: 90 10 00 10 mov %l0, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 40003ba0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40003ba4: 80 a0 60 01 cmp %g1, 1 40003ba8: 32 80 00 06 bne,a 40003bc0 40003bac: e0 04 00 00 ld [ %l0 ], %l0 IMFS_dump_directory( the_jnode, level + 1 ); 40003bb0: 90 10 00 10 mov %l0, %o0 40003bb4: 7f ff ff c8 call 40003ad4 40003bb8: 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 ) { 40003bbc: 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; 40003bc0: 80 a4 00 15 cmp %l0, %l5 40003bc4: 12 bf ff ed bne 40003b78 40003bc8: 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 ); } } 40003bcc: 81 c7 e0 08 ret 40003bd0: 81 e8 00 00 restore 400091f8 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 400091f8: 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 ) 400091fc: 2b 10 00 6a sethi %hi(0x4001a800), %l5 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 40009200: 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 ) 40009204: aa 15 61 a8 or %l5, 0x1a8, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 40009208: e2 06 c0 00 ld [ %i3 ], %l1 4000920c: ae 10 20 01 mov 1, %l7 40009210: 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 ); 40009214: 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) ) { 40009218: 10 80 00 6c b 400093c8 4000921c: a8 07 bf fc add %fp, -4, %l4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 40009220: 90 04 00 12 add %l0, %l2, %o0 40009224: 92 10 00 19 mov %i1, %o1 40009228: 94 10 00 13 mov %l3, %o2 4000922c: 40 00 02 3f call 40009b28 40009230: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 40009234: 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 ); 40009238: ae 10 00 08 mov %o0, %l7 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 4000923c: 80 a0 60 00 cmp %g1, 0 40009240: 02 80 00 5a be 400093a8 40009244: ec 07 bf fc ld [ %fp + -4 ], %l6 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 40009248: 80 a2 20 00 cmp %o0, 0 4000924c: 02 80 00 0a be 40009274 40009250: b2 26 40 16 sub %i1, %l6, %i1 if ( node->type == IMFS_DIRECTORY ) 40009254: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 40009258: 80 a0 a0 01 cmp %g2, 1 4000925c: 12 80 00 06 bne 40009274 40009260: 01 00 00 00 nop /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 40009264: c4 10 60 2e lduh [ %g1 + 0x2e ], %g2 40009268: 80 88 a0 40 btst 0x40, %g2 4000926c: 02 80 00 84 be 4000947c 40009270: 01 00 00 00 nop while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 40009274: a4 04 80 16 add %l2, %l6, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 40009278: 80 a5 e0 03 cmp %l7, 3 4000927c: 02 80 00 27 be 40009318 40009280: a2 10 00 01 mov %g1, %l1 40009284: 80 a5 e0 04 cmp %l7, 4 40009288: 02 80 00 4c be 400093b8 4000928c: 80 a5 e0 02 cmp %l7, 2 40009290: 12 80 00 4f bne 400093cc 40009294: 80 a5 e0 04 cmp %l7, 4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 40009298: c4 05 40 00 ld [ %l5 ], %g2 4000929c: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 400092a0: 80 a0 40 02 cmp %g1, %g2 400092a4: 02 bf ff e0 be 40009224 400092a8: 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) { 400092ac: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 400092b0: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 400092b4: 80 a0 40 02 cmp %g1, %g2 400092b8: 32 80 00 11 bne,a 400092fc 400092bc: e2 00 60 08 ld [ %g1 + 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; 400092c0: 92 02 60 08 add %o1, 8, %o1 400092c4: a2 07 bf e8 add %fp, -24, %l1 400092c8: 94 10 20 14 mov 0x14, %o2 400092cc: 40 00 12 00 call 4000dacc 400092d0: 90 10 00 11 mov %l1, %o0 *pathloc = newloc; 400092d4: 92 10 00 11 mov %l1, %o1 400092d8: 90 10 00 1b mov %i3, %o0 400092dc: 40 00 11 fc call 4000dacc 400092e0: 94 10 20 14 mov 0x14, %o2 return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 400092e4: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 400092e8: a4 24 80 16 sub %l2, %l6, %l2 400092ec: 92 06 40 16 add %i1, %l6, %o1 400092f0: c2 00 40 00 ld [ %g1 ], %g1 400092f4: 10 80 00 51 b 40009438 400092f8: 90 04 00 12 add %l0, %l2, %o0 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 400092fc: 80 a4 60 00 cmp %l1, 0 40009300: 32 bf ff c8 bne,a 40009220 40009304: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 40009308: 40 00 0f b6 call 4000d1e0 <__errno> 4000930c: 01 00 00 00 nop 40009310: 10 80 00 5f b 4000948c 40009314: ee 22 00 00 st %l7, [ %o0 ] case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 40009318: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 4000931c: 80 a0 60 03 cmp %g1, 3 40009320: 12 80 00 0a bne 40009348 40009324: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 40009328: 90 10 00 1b mov %i3, %o0 4000932c: 7f ff ff 60 call 400090ac 40009330: 92 10 20 00 clr %o1 node = pathloc->node_access; 40009334: e2 06 c0 00 ld [ %i3 ], %l1 if ( !node ) 40009338: 80 a4 60 00 cmp %l1, 0 4000933c: 32 80 00 0c bne,a 4000936c 40009340: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 40009344: 30 80 00 0d b,a 40009378 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 40009348: 32 80 00 09 bne,a 4000936c 4000934c: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 40009350: 90 10 00 1b mov %i3, %o0 40009354: 7f ff ff 70 call 40009114 40009358: 92 10 20 00 clr %o1 node = pathloc->node_access; if ( result == -1 ) 4000935c: 80 a2 3f ff cmp %o0, -1 40009360: 02 80 00 44 be 40009470 40009364: e2 06 c0 00 ld [ %i3 ], %l1 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 40009368: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 4000936c: 80 a0 60 01 cmp %g1, 1 40009370: 22 80 00 06 be,a 40009388 40009374: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40009378: 40 00 0f 9a call 4000d1e0 <__errno> 4000937c: 01 00 00 00 nop 40009380: 10 80 00 42 b 40009488 40009384: 82 10 20 14 mov 0x14, %g1 ! 14 /* * 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 ) { 40009388: 80 a2 60 00 cmp %o1, 0 4000938c: 12 80 00 1c bne 400093fc 40009390: 90 10 00 11 mov %l1, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 40009394: 40 00 01 ba call 40009a7c 40009398: 92 10 00 13 mov %l3, %o1 if ( !node ) 4000939c: a2 92 20 00 orcc %o0, 0, %l1 400093a0: 32 bf ff a0 bne,a 40009220 400093a4: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 400093a8: 40 00 0f 8e call 4000d1e0 <__errno> 400093ac: 01 00 00 00 nop 400093b0: 10 80 00 36 b 40009488 400093b4: 82 10 20 02 mov 2, %g1 ! 2 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 400093b8: 40 00 0f 8a call 4000d1e0 <__errno> 400093bc: 01 00 00 00 nop 400093c0: 10 80 00 32 b 40009488 400093c4: 82 10 20 5b mov 0x5b, %g1 ! 5b /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 400093c8: 80 a5 e0 04 cmp %l7, 4 400093cc: 02 80 00 04 be 400093dc 400093d0: 80 a5 e0 00 cmp %l7, 0 400093d4: 12 bf ff 94 bne 40009224 400093d8: 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 ) { 400093dc: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 400093e0: 80 a0 60 01 cmp %g1, 1 400093e4: 12 80 00 1a bne 4000944c 400093e8: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 400093ec: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 400093f0: 80 a2 60 00 cmp %o1, 0 400093f4: 02 80 00 16 be 4000944c 400093f8: 01 00 00 00 nop newloc = node->info.directory.mt_fs->mt_fs_root; 400093fc: 92 02 60 1c add %o1, 0x1c, %o1 40009400: a2 07 bf e8 add %fp, -24, %l1 40009404: 94 10 20 14 mov 0x14, %o2 40009408: 40 00 11 b1 call 4000dacc 4000940c: 90 10 00 11 mov %l1, %o0 *pathloc = newloc; 40009410: 92 10 00 11 mov %l1, %o1 40009414: 90 10 00 1b mov %i3, %o0 40009418: 40 00 11 ad call 4000dacc 4000941c: 94 10 20 14 mov 0x14, %o2 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 40009420: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 40009424: d0 07 bf fc ld [ %fp + -4 ], %o0 40009428: c2 00 40 00 ld [ %g1 ], %g1 4000942c: 92 06 40 08 add %i1, %o0, %o1 40009430: 90 24 80 08 sub %l2, %o0, %o0 40009434: 90 04 00 08 add %l0, %o0, %o0 40009438: 94 10 00 1a mov %i2, %o2 4000943c: 9f c0 40 00 call %g1 40009440: 96 10 00 1b mov %i3, %o3 40009444: 81 c7 e0 08 ret 40009448: 91 e8 00 08 restore %g0, %o0, %o0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 4000944c: 7f ff fe f5 call 40009020 40009450: 90 10 00 1b mov %i3, %o0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 40009454: c2 06 c0 00 ld [ %i3 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 40009458: b5 2e a0 06 sll %i2, 6, %i2 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 4000945c: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 40009460: 82 0e 80 01 and %i2, %g1, %g1 40009464: 80 a0 40 1a cmp %g1, %i2 40009468: 12 80 00 05 bne 4000947c 4000946c: 01 00 00 00 nop if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 40009470: b0 10 00 08 mov %o0, %i0 40009474: 81 c7 e0 08 ret 40009478: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 4000947c: 40 00 0f 59 call 4000d1e0 <__errno> 40009480: 01 00 00 00 nop 40009484: 82 10 20 0d mov 0xd, %g1 ! d 40009488: c2 22 00 00 st %g1, [ %o0 ] 4000948c: 10 bf ff f9 b 40009470 40009490: 90 10 3f ff mov -1, %o0 400090ac : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 400090ac: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 400090b0: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 400090b4: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 400090b8: 80 a0 a0 03 cmp %g2, 3 400090bc: 22 80 00 04 be,a 400090cc 400090c0: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 rtems_fatal_error_occurred (0xABCD0000); 400090c4: 7f ff f2 d1 call 40005c08 <== NOT EXECUTED 400090c8: 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 ); 400090cc: 90 10 00 18 mov %i0, %o0 400090d0: 7f ff ff d4 call 40009020 400090d4: c2 26 00 00 st %g1, [ %i0 ] if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 400090d8: c2 06 00 00 ld [ %i0 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 400090dc: b3 2e 60 06 sll %i1, 6, %i1 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 400090e0: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 400090e4: 82 0e 40 01 and %i1, %g1, %g1 400090e8: 80 a0 40 19 cmp %g1, %i1 400090ec: 12 80 00 04 bne 400090fc 400090f0: 01 00 00 00 nop if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 400090f4: 81 c7 e0 08 ret 400090f8: 91 e8 20 00 restore %g0, 0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 400090fc: 40 00 10 39 call 4000d1e0 <__errno> <== NOT EXECUTED 40009100: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40009104: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 40009108: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000910c: 81 c7 e0 08 ret <== NOT EXECUTED 40009110: 81 e8 00 00 restore <== NOT EXECUTED 40009090 : */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 40009090: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 40009094: 93 2a 60 06 sll %o1, 6, %o1 <== NOT EXECUTED 40009098: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 <== NOT EXECUTED 4000909c: 82 2a 40 01 andn %o1, %g1, %g1 <== NOT EXECUTED */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 400090a0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 400090a4: 81 c3 e0 08 retl <== NOT EXECUTED 400090a8: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 40009114 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 40009114: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 40009118: e2 06 00 00 ld [ %i0 ], %l1 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 4000911c: a0 10 00 18 mov %i0, %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 40009120: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 40009124: 80 a0 60 04 cmp %g1, 4 40009128: 12 80 00 07 bne 40009144 4000912c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 40009130: c2 04 60 08 ld [ %l1 + 8 ], %g1 40009134: 80 a0 60 00 cmp %g1, 0 40009138: 32 80 00 05 bne,a 4000914c 4000913c: c2 26 00 00 st %g1, [ %i0 ] rtems_fatal_error_occurred( 0xBAD00000 ); 40009140: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 40009144: 7f ff f2 b1 call 40005c08 <== NOT EXECUTED 40009148: 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( 4000914c: c2 04 60 50 ld [ %l1 + 0x50 ], %g1 40009150: c2 48 40 00 ldsb [ %g1 ], %g1 40009154: 80 a0 60 5c cmp %g1, 0x5c 40009158: 02 80 00 06 be 40009170 4000915c: 80 a0 60 2f cmp %g1, 0x2f 40009160: 02 80 00 04 be 40009170 40009164: 80 a0 60 00 cmp %g1, 0 40009168: 12 80 00 09 bne 4000918c 4000916c: 82 10 20 00 clr %g1 40009170: 03 10 00 6a sethi %hi(0x4001a800), %g1 40009174: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 ! 4001a9a8 40009178: 90 10 00 10 mov %l0, %o0 4000917c: 92 02 60 18 add %o1, 0x18, %o1 40009180: 40 00 12 53 call 4000dacc 40009184: 94 10 20 14 mov 0x14, %o2 40009188: 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] ), 4000918c: e2 04 60 50 ld [ %l1 + 0x50 ], %l1 40009190: a2 04 40 01 add %l1, %g1, %l1 40009194: 40 00 13 ca call 4000e0bc 40009198: 90 10 00 11 mov %l1, %o0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 4000919c: 94 10 00 19 mov %i1, %o2 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 400091a0: 92 10 00 08 mov %o0, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 400091a4: 96 10 00 10 mov %l0, %o3 400091a8: 40 00 00 14 call 400091f8 400091ac: 90 10 00 11 mov %l1, %o0 400091b0: b0 10 00 08 mov %o0, %i0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 400091b4: 7f ff ff 9b call 40009020 400091b8: 90 10 00 10 mov %l0, %o0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 400091bc: c2 04 00 00 ld [ %l0 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 400091c0: b3 2e 60 06 sll %i1, 6, %i1 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 400091c4: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 400091c8: 82 0e 40 01 and %i1, %g1, %g1 400091cc: 80 a0 40 19 cmp %g1, %i1 400091d0: 12 80 00 04 bne 400091e0 400091d4: 01 00 00 00 nop if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 400091d8: 81 c7 e0 08 ret 400091dc: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 400091e0: 40 00 10 00 call 4000d1e0 <__errno> <== NOT EXECUTED 400091e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400091e8: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 400091ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400091f0: 81 c7 e0 08 ret <== NOT EXECUTED 400091f4: 81 e8 00 00 restore <== NOT EXECUTED 400099c0 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 400099c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 400099c4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 400099c8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 400099cc: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 400099d0: 40 00 08 eb call 4000bd7c <== NOT EXECUTED 400099d4: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED if (! err) { 400099d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 400099dc: 12 80 00 12 bne 40009a24 <== NOT EXECUTED 400099e0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 400099e4: 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) 400099e8: 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; 400099ec: 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) 400099f0: 40 00 02 36 call 4000a2c8 <== NOT EXECUTED 400099f4: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED 400099f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400099fc: 12 80 00 10 bne 40009a3c <== NOT EXECUTED 40009a00: 01 00 00 00 nop <== NOT EXECUTED 40009a04: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 40009a08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40009a0c: 12 80 00 0c bne 40009a3c <== NOT EXECUTED 40009a10: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 40009a14: 40 00 01 90 call 4000a054 <== NOT EXECUTED 40009a18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40009a1c: 81 c7 e0 08 ret <== NOT EXECUTED 40009a20: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 40009a24: 16 80 00 06 bge 40009a3c <== NOT EXECUTED 40009a28: 01 00 00 00 nop <== NOT EXECUTED 40009a2c: 40 00 0d ed call 4000d1e0 <__errno> <== NOT EXECUTED 40009a30: b0 20 00 18 neg %i0 <== NOT EXECUTED 40009a34: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 40009a38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 40009a3c: 81 c7 e0 08 ret <== NOT EXECUTED 40009a40: 81 e8 00 00 restore <== NOT EXECUTED 40009870 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 40009870: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 40009874: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 40009878: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED int err; if (command == FIONBIO) { 4000987c: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 40009880: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED int err; if (command == FIONBIO) { 40009884: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 40009888: 12 80 00 0f bne 400098c4 <== NOT EXECUTED 4000988c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (buffer == NULL) 40009890: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 40009894: 02 80 00 12 be 400098dc <== NOT EXECUTED 40009898: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 4000989c: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 400098a0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 400098a4: 02 80 00 04 be 400098b4 <== NOT EXECUTED 400098a8: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 400098ac: 10 80 00 03 b 400098b8 <== NOT EXECUTED 400098b0: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 400098b4: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 400098b8: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 400098bc: 81 c7 e0 08 ret <== NOT EXECUTED 400098c0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 400098c4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 400098c8: 40 00 08 31 call 4000b98c <== NOT EXECUTED 400098cc: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 400098d0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 400098d4: 16 80 00 06 bge 400098ec <== NOT EXECUTED 400098d8: 01 00 00 00 nop <== NOT EXECUTED 400098dc: 40 00 0e 41 call 4000d1e0 <__errno> <== NOT EXECUTED 400098e0: b0 20 00 18 neg %i0 <== NOT EXECUTED 400098e4: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 400098e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 400098ec: 81 c7 e0 08 ret <== NOT EXECUTED 400098f0: 81 e8 00 00 restore <== NOT EXECUTED 40009818 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 40009818: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 4000981c: 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 ) { 40009820: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 40009824: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 40009828: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 4000982c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40009830: 40 00 08 3a call 4000b918 <== NOT EXECUTED 40009834: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 40009838: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 4000983c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 40009840: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40009844: 16 80 00 08 bge 40009864 <== NOT EXECUTED 40009848: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 4000984c: 40 00 0e 65 call 4000d1e0 <__errno> <== NOT EXECUTED 40009850: a0 20 00 10 neg %l0 <== NOT EXECUTED 40009854: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 40009858: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 4000985c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 40009860: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED } 40009864: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 40009868: 81 c7 e0 08 ret <== NOT EXECUTED 4000986c: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED 4000995c : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4000995c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 40009960: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 40009964: 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); 40009968: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 4000996c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40009970: 40 00 08 90 call 4000bbb0 <== NOT EXECUTED 40009974: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 40009978: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 4000997c: 04 80 00 08 ble 4000999c <== NOT EXECUTED 40009980: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 40009984: 40 00 02 19 call 4000a1e8 <== NOT EXECUTED 40009988: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000998c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40009990: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED 40009994: 81 c7 e0 08 ret <== NOT EXECUTED 40009998: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 4000999c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 400099a0: 02 80 00 06 be 400099b8 <== NOT EXECUTED 400099a4: 01 00 00 00 nop <== NOT EXECUTED 400099a8: 40 00 0e 0e call 4000d1e0 <__errno> <== NOT EXECUTED 400099ac: b0 20 00 18 neg %i0 <== NOT EXECUTED 400099b0: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 400099b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 400099b8: 81 c7 e0 08 ret <== NOT EXECUTED 400099bc: 81 e8 00 00 restore <== NOT EXECUTED 400098f4 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 400098f4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 400098f8: 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 ) { 400098fc: 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); 40009900: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 40009904: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40009908: 40 00 08 3a call 4000b9f0 <== NOT EXECUTED 4000990c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 40009910: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 40009914: 04 80 00 09 ble 40009938 <== NOT EXECUTED 40009918: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 4000991c: 40 00 02 33 call 4000a1e8 <== NOT EXECUTED 40009920: 92 10 20 00 clr %o1 <== NOT EXECUTED 40009924: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40009928: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 4000992c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 40009930: 81 c7 e0 08 ret <== NOT EXECUTED 40009934: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 40009938: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000993c: 02 80 00 06 be 40009954 <== NOT EXECUTED 40009940: 01 00 00 00 nop <== NOT EXECUTED 40009944: 40 00 0e 27 call 4000d1e0 <__errno> <== NOT EXECUTED 40009948: b0 20 00 18 neg %i0 <== NOT EXECUTED 4000994c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 40009950: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 40009954: 81 c7 e0 08 ret <== NOT EXECUTED 40009958: 81 e8 00 00 restore <== NOT EXECUTED 40009a7c : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 40009a7c: 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 ); 40009a80: 80 a6 20 00 cmp %i0, 0 40009a84: 12 80 00 0a bne 40009aac 40009a88: 80 a6 60 00 cmp %i1, 0 40009a8c: 11 10 00 67 sethi %hi(0x40019c00), %o0 <== NOT EXECUTED 40009a90: 15 10 00 67 sethi %hi(0x40019c00), %o2 <== NOT EXECUTED 40009a94: 17 10 00 67 sethi %hi(0x40019c00), %o3 <== NOT EXECUTED 40009a98: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 40009a9c: 94 12 a2 60 or %o2, 0x260, %o2 <== NOT EXECUTED 40009aa0: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED 40009aa4: 7f ff e0 d8 call 40001e04 <__assert_func> <== NOT EXECUTED 40009aa8: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 40009aac: 02 80 00 1c be 40009b1c 40009ab0: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 40009ab4: 13 10 00 67 sethi %hi(0x40019c00), %o1 40009ab8: 40 00 11 30 call 4000df78 40009abc: 92 12 62 50 or %o1, 0x250, %o1 ! 40019e50 40009ac0: 80 a2 20 00 cmp %o0, 0 40009ac4: 02 80 00 09 be 40009ae8 40009ac8: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 40009acc: 13 10 00 67 sethi %hi(0x40019c00), %o1 40009ad0: 40 00 11 2a call 4000df78 40009ad4: 92 12 62 58 or %o1, 0x258, %o1 ! 40019e58 40009ad8: 80 a2 20 00 cmp %o0, 0 40009adc: 12 80 00 05 bne 40009af0 40009ae0: a0 06 20 54 add %i0, 0x54, %l0 return directory->Parent; 40009ae4: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 40009ae8: 81 c7 e0 08 ret <== NOT EXECUTED 40009aec: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 40009af0: 10 80 00 08 b 40009b10 40009af4: 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 ) ) 40009af8: 40 00 11 20 call 4000df78 40009afc: 92 06 20 0c add %i0, 0xc, %o1 40009b00: 80 a2 20 00 cmp %o0, 0 40009b04: 02 80 00 07 be 40009b20 40009b08: 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 ) { 40009b0c: 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; 40009b10: 80 a6 00 10 cmp %i0, %l0 40009b14: 12 bf ff f9 bne 40009af8 40009b18: 90 10 00 19 mov %i1, %o0 40009b1c: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 40009b20: 81 c7 e0 08 ret 40009b24: 81 e8 00 00 restore 4000ef50 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4000ef50: 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; 4000ef54: 94 10 20 14 mov 0x14, %o2 4000ef58: 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; 4000ef5c: 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 ); 4000ef60: 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; 4000ef64: 40 00 10 b3 call 40013230 4000ef68: 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; 4000ef6c: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 4000ef70: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 4000ef74: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 4000ef78: 7f ff fd 5d call 4000e4ec 4000ef7c: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 4000ef80: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 4000ef84: 80 a0 a0 01 cmp %g2, 1 4000ef88: 12 80 00 06 bne 4000efa0 4000ef8c: 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; 4000ef90: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 4000ef94: 80 a0 80 01 cmp %g2, %g1 4000ef98: 12 80 00 09 bne 4000efbc 4000ef9c: 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 ); 4000efa0: 90 10 20 00 clr %o0 4000efa4: 7f ff d0 7b call 40003190 4000efa8: 92 10 00 11 mov %l1, %o1 if (result != 0) 4000efac: 80 a2 20 00 cmp %o0, 0 4000efb0: 12 80 00 13 bne 4000effc 4000efb4: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 4000efb8: 80 a4 20 00 cmp %l0, 0 4000efbc: 22 80 00 11 be,a 4000f000 4000efc0: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 4000efc4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 4000efc8: 80 a0 60 01 cmp %g1, 1 4000efcc: 32 bf ff ea bne,a 4000ef74 4000efd0: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 4000efd4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 4000efd8: 84 04 20 54 add %l0, 0x54, %g2 4000efdc: 80 a0 40 02 cmp %g1, %g2 4000efe0: 22 bf ff e5 be,a 4000ef74 4000efe4: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 4000efe8: a0 90 60 00 orcc %g1, 0, %l0 4000efec: 32 bf ff e2 bne,a 4000ef74 4000eff0: e0 27 bf ec st %l0, [ %fp + -20 ] 4000eff4: 81 c7 e0 08 ret <== NOT EXECUTED 4000eff8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 4000effc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 4000f000: 81 c7 e0 08 ret 4000f004: 81 e8 00 00 restore 40009c1c : 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 ) { 40009c1c: 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, 40009c20: 03 10 00 6a sethi %hi(0x4001a800), %g1 40009c24: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 ! 4001a898 40009c28: 86 10 20 00 clr %g3 40009c2c: 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) { 40009c30: 80 a0 80 01 cmp %g2, %g1 40009c34: 02 80 00 06 be 40009c4c 40009c38: 86 00 e0 01 inc %g3 40009c3c: 80 a0 e0 06 cmp %g3, 6 40009c40: 12 bf ff fc bne 40009c30 40009c44: 85 28 a0 01 sll %g2, 1, %g2 40009c48: 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) 40009c4c: 03 10 00 6b sethi %hi(0x4001ac00), %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(); 40009c50: 40 00 09 99 call 4000c2b4 40009c54: c4 20 63 dc st %g2, [ %g1 + 0x3dc ] ! 4001afdc 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; 40009c58: 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(); 40009c5c: 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; 40009c60: 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; 40009c64: 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; 40009c68: 13 10 00 68 sethi %hi(0x4001a000), %o1 40009c6c: 90 06 20 38 add %i0, 0x38, %o0 40009c70: 40 00 0f 97 call 4000dacc 40009c74: 92 12 60 18 or %o1, 0x18, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 40009c78: 90 10 20 01 mov 1, %o0 40009c7c: 40 00 00 b0 call 40009f3c 40009c80: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ) { 40009c84: 82 92 20 00 orcc %o0, 0, %g1 40009c88: 12 80 00 0a bne 40009cb0 40009c8c: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 free(temp_mt_entry->mt_fs_root.node_access); 40009c90: 40 00 00 f1 call 4000a054 <== NOT EXECUTED 40009c94: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 40009c98: 40 00 0d 52 call 4000d1e0 <__errno> <== NOT EXECUTED 40009c9c: 01 00 00 00 nop <== NOT EXECUTED 40009ca0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40009ca4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40009ca8: 81 c7 e0 08 ret <== NOT EXECUTED 40009cac: 81 e8 00 00 restore <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 40009cb0: 84 10 20 01 mov 1, %g2 40009cb4: 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; 40009cb8: 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; 40009cbc: f6 20 60 08 st %i3, [ %g1 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 40009cc0: 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; 40009cc4: 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(); 40009cc8: 40 00 07 16 call 4000b920 40009ccc: b0 10 20 00 clr %i0 return 0; } 40009cd0: 81 c7 e0 08 ret 40009cd4: 81 e8 00 00 restore 40002e64 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 40002e64: 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; 40002e68: c2 06 00 00 ld [ %i0 ], %g1 40002e6c: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 40002e70: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 40002e74: 80 a0 60 07 cmp %g1, 7 40002e78: 08 80 00 06 bleu 40002e90 40002e7c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); 40002e80: 40 00 3e b1 call 40012944 <__errno> 40002e84: 01 00 00 00 nop 40002e88: 10 80 00 17 b 40002ee4 40002e8c: 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 ); 40002e90: 40 00 42 4b call 400137bc 40002e94: 90 10 00 1a mov %i2, %o0 40002e98: a0 07 bf b0 add %fp, -80, %l0 40002e9c: 92 10 00 08 mov %o0, %o1 40002ea0: 96 07 bf fc add %fp, -4, %o3 40002ea4: 94 10 00 10 mov %l0, %o2 40002ea8: 40 00 30 83 call 4000f0b4 40002eac: 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( 40002eb0: 90 10 00 19 mov %i1, %o0 40002eb4: 94 10 00 10 mov %l0, %o2 40002eb8: 92 10 20 03 mov 3, %o1 40002ebc: 17 00 00 28 sethi %hi(0xa000), %o3 40002ec0: 98 07 bf d8 add %fp, -40, %o4 40002ec4: 40 00 2d 3d call 4000e3b8 40002ec8: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 40002ecc: 80 a2 20 00 cmp %o0, 0 40002ed0: 12 80 00 08 bne 40002ef0 40002ed4: c2 07 bf d8 ld [ %fp + -40 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 40002ed8: 40 00 3e 9b call 40012944 <__errno> <== NOT EXECUTED 40002edc: 01 00 00 00 nop <== NOT EXECUTED 40002ee0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40002ee4: c2 22 00 00 st %g1, [ %o0 ] 40002ee8: 81 c7 e0 08 ret 40002eec: 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 ); 40002ef0: 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++; 40002ef4: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 40002ef8: 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++; 40002efc: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 40002f00: 40 00 02 66 call 40003898 40002f04: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] 40002f08: c4 07 bf f4 ld [ %fp + -12 ], %g2 40002f0c: c2 07 bf d8 ld [ %fp + -40 ], %g1 40002f10: c4 20 60 44 st %g2, [ %g1 + 0x44 ] return 0; } 40002f14: 81 c7 e0 08 ret 40002f18: 91 e8 20 00 restore %g0, 0, %o0 40011414 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 40011414: 9d e3 bf a0 save %sp, -96, %sp 40011418: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 4001141c: 80 a6 20 00 cmp %i0, 0 40011420: 12 80 00 0a bne 40011448 40011424: 92 10 00 19 mov %i1, %o1 40011428: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 4001142c: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011430: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011434: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011438: 94 12 a2 60 or %o2, 0x260, %o2 <== NOT EXECUTED 4001143c: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 40011440: 10 80 00 0c b 40011470 <== NOT EXECUTED 40011444: 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 ); 40011448: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 4001144c: 80 a0 60 05 cmp %g1, 5 40011450: 02 80 00 0a be 40011478 40011454: 15 10 00 7f sethi %hi(0x4001fc00), %o2 40011458: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 4001145c: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011460: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011464: 94 12 a2 60 or %o2, 0x260, %o2 <== NOT EXECUTED 40011468: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 4001146c: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 40011470: 7f ff c7 ea call 40003418 <__assert_func> <== NOT EXECUTED 40011474: 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 ); 40011478: 7f ff fe 6c call 40010e28 4001147c: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 40011480: 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 ); 40011484: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 40011488: 80 a0 60 00 cmp %g1, 0 4001148c: 12 80 00 09 bne 400114b0 40011490: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 40011494: 7f ff fe 58 call 40010df4 40011498: b0 10 20 01 mov 1, %i0 if ( !memory ) 4001149c: 80 a2 20 00 cmp %o0, 0 400114a0: 02 80 00 04 be 400114b0 400114a4: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 400114a8: d0 24 00 00 st %o0, [ %l0 ] 400114ac: b0 10 20 00 clr %i0 return 0; } 400114b0: 81 c7 e0 08 ret 400114b4: 81 e8 00 00 restore 400114b8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 400114b8: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 400114bc: 80 a6 20 00 cmp %i0, 0 400114c0: 32 80 00 0a bne,a 400114e8 400114c4: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 400114c8: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400114cc: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400114d0: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400114d4: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400114d8: 94 12 a2 78 or %o2, 0x278, %o2 <== NOT EXECUTED 400114dc: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 400114e0: 10 80 00 0c b 40011510 <== NOT EXECUTED 400114e4: 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 ); 400114e8: 80 a0 60 05 cmp %g1, 5 400114ec: 02 80 00 0b be 40011518 400114f0: 03 10 00 83 sethi %hi(0x40020c00), %g1 400114f4: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400114f8: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400114fc: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011500: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011504: 94 12 a2 78 or %o2, 0x278, %o2 <== NOT EXECUTED 40011508: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 4001150c: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 40011510: 7f ff c7 c2 call 40003418 <__assert_func> <== NOT EXECUTED 40011514: 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 ) 40011518: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 4001151c: a3 34 20 02 srl %l0, 2, %l1 40011520: 92 10 00 11 mov %l1, %o1 40011524: 40 00 2a 03 call 4001bd30 <.umul> 40011528: 90 04 60 01 add %l1, 1, %o0 4001152c: 92 10 00 11 mov %l1, %o1 40011530: 40 00 2a 00 call 4001bd30 <.umul> 40011534: 90 02 20 01 inc %o0 40011538: 92 10 00 10 mov %l0, %o1 4001153c: 40 00 29 fd call 4001bd30 <.umul> 40011540: 90 02 3f ff add %o0, -1, %o0 40011544: 82 10 20 00 clr %g1 40011548: 80 a0 40 19 cmp %g1, %i1 4001154c: 34 80 00 0b bg,a 40011578 40011550: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 40011554: 80 a0 40 19 cmp %g1, %i1 40011558: 12 80 00 04 bne 40011568 4001155c: 80 a2 00 1a cmp %o0, %i2 40011560: 38 80 00 06 bgu,a 40011578 40011564: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 40011568: 40 00 04 f7 call 40012944 <__errno> <== NOT EXECUTED 4001156c: 01 00 00 00 nop <== NOT EXECUTED 40011570: 10 80 00 2b b 4001161c <== NOT EXECUTED 40011574: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 40011578: 80 a6 40 11 cmp %i1, %l1 4001157c: 14 80 00 09 bg 400115a0 40011580: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 40011584: 80 a6 40 11 cmp %i1, %l1 40011588: 12 80 00 04 bne 40011598 4001158c: 80 a6 80 13 cmp %i2, %l3 40011590: 18 80 00 05 bgu 400115a4 40011594: a5 3c 20 1f sra %l0, 0x1f, %l2 40011598: 81 c7 e0 08 ret 4001159c: 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; 400115a0: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 400115a4: 96 10 00 10 mov %l0, %o3 400115a8: 94 10 00 12 mov %l2, %o2 400115ac: 90 10 00 19 mov %i1, %o0 400115b0: 40 00 2b a5 call 4001c444 <__divdi3> 400115b4: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 400115b8: 90 10 00 11 mov %l1, %o0 400115bc: 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; 400115c0: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 400115c4: 94 10 00 12 mov %l2, %o2 400115c8: 40 00 2b 9f call 4001c444 <__divdi3> 400115cc: 92 10 00 13 mov %l3, %o1 400115d0: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 400115d4: 10 80 00 15 b 40011628 400115d8: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 400115dc: 7f ff ff 8e call 40011414 400115e0: 92 10 00 10 mov %l0, %o1 400115e4: 80 a2 20 00 cmp %o0, 0 400115e8: 22 80 00 10 be,a 40011628 400115ec: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 400115f0: 10 80 00 06 b 40011608 <== NOT EXECUTED 400115f4: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 400115f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 400115fc: 7f ff fe d7 call 40011158 <== NOT EXECUTED 40011600: 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-- ) { 40011604: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 40011608: 1a bf ff fc bcc 400115f8 <== NOT EXECUTED 4001160c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 40011610: 40 00 04 cd call 40012944 <__errno> <== NOT EXECUTED 40011614: 01 00 00 00 nop <== NOT EXECUTED 40011618: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 4001161c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40011620: 81 c7 e0 08 ret <== NOT EXECUTED 40011624: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 40011628: 80 a4 00 14 cmp %l0, %l4 4001162c: 08 bf ff ec bleu 400115dc 40011630: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 40011634: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 40011638: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 4001163c: 81 c7 e0 08 ret 40011640: 91 e8 20 00 restore %g0, 0, %o0 40010e28 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 40010e28: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 40010e2c: 80 a6 20 00 cmp %i0, 0 40010e30: 32 80 00 0a bne,a 40010e58 40010e34: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40010e38: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40010e3c: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40010e40: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40010e44: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40010e48: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 40010e4c: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 40010e50: 10 80 00 0c b 40010e80 <== NOT EXECUTED 40010e54: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 40010e58: 80 a0 60 05 cmp %g1, 5 40010e5c: 02 80 00 0b be 40010e88 40010e60: 03 10 00 83 sethi %hi(0x40020c00), %g1 40010e64: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40010e68: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40010e6c: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40010e70: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40010e74: 94 12 a1 b8 or %o2, 0x1b8, %o2 <== NOT EXECUTED 40010e78: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 40010e7c: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 40010e80: 7f ff c9 66 call 40003418 <__assert_func> <== NOT EXECUTED 40010e84: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 40010e88: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 40010e8c: a1 34 20 02 srl %l0, 2, %l0 40010e90: 82 04 3f ff add %l0, -1, %g1 40010e94: 80 a6 40 01 cmp %i1, %g1 40010e98: 18 80 00 16 bgu 40010ef0 40010e9c: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 40010ea0: 80 a6 a0 00 cmp %i2, 0 40010ea4: 02 80 00 0f be 40010ee0 40010ea8: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 40010eac: 80 a0 60 00 cmp %g1, 0 40010eb0: 32 80 00 09 bne,a 40010ed4 40010eb4: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 40010eb8: 7f ff ff cf call 40010df4 40010ebc: 01 00 00 00 nop if ( !p ) 40010ec0: 80 a2 20 00 cmp %o0, 0 40010ec4: 22 80 00 86 be,a 400110dc 40010ec8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 40010ecc: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 40010ed0: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 40010ed4: b3 2e 60 02 sll %i1, 2, %i1 40010ed8: 81 c7 e0 08 ret 40010edc: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 40010ee0: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 40010ee4: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 40010ee8: 10 80 00 32 b 40010fb0 40010eec: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 40010ef0: 40 00 2b 90 call 4001bd30 <.umul> <== NOT EXECUTED 40010ef4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40010ef8: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 40010efc: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 40010f00: 18 80 00 30 bgu 40010fc0 <== NOT EXECUTED 40010f04: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 40010f08: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 40010f0c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40010f10: 40 00 2c 6e call 4001c0c8 <.urem> <== NOT EXECUTED 40010f14: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40010f18: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 40010f1c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40010f20: 40 00 2b be call 4001be18 <.udiv> <== NOT EXECUTED 40010f24: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 40010f28: 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; 40010f2c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 40010f30: 02 80 00 18 be 40010f90 <== NOT EXECUTED 40010f34: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 40010f38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40010f3c: 12 80 00 08 bne 40010f5c <== NOT EXECUTED 40010f40: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 40010f44: 7f ff ff ac call 40010df4 <== NOT EXECUTED 40010f48: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 40010f4c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40010f50: 22 80 00 63 be,a 400110dc <== NOT EXECUTED 40010f54: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 40010f58: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 40010f5c: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 40010f60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40010f64: 12 80 00 08 bne 40010f84 <== NOT EXECUTED 40010f68: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 40010f6c: 7f ff ff a2 call 40010df4 <== NOT EXECUTED 40010f70: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 40010f74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40010f78: 22 80 00 59 be,a 400110dc <== NOT EXECUTED 40010f7c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 40010f80: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 40010f84: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 40010f88: 81 c7 e0 08 ret <== NOT EXECUTED 40010f8c: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 40010f90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40010f94: 02 80 00 52 be 400110dc <== NOT EXECUTED 40010f98: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 40010f9c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 40010fa0: 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 ]; 40010fa4: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 40010fa8: 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 ]; 40010fac: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 40010fb0: 12 80 00 4b bne 400110dc 40010fb4: 01 00 00 00 nop p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 40010fb8: 81 c7 e0 08 ret <== NOT EXECUTED 40010fbc: 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 ) { 40010fc0: 90 02 20 01 inc %o0 <== NOT EXECUTED 40010fc4: 40 00 2b 5b call 4001bd30 <.umul> <== NOT EXECUTED 40010fc8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40010fcc: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 40010fd0: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 40010fd4: 18 80 00 41 bgu 400110d8 <== NOT EXECUTED 40010fd8: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 40010fdc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40010fe0: 40 00 2c 3a call 4001c0c8 <.urem> <== NOT EXECUTED 40010fe4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40010fe8: 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; 40010fec: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40010ff0: 40 00 2b 8a call 4001be18 <.udiv> <== NOT EXECUTED 40010ff4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 40010ff8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40010ffc: 40 00 2b 87 call 4001be18 <.udiv> <== NOT EXECUTED 40011000: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 40011004: 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; 40011008: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 4001100c: 40 00 2c 2f call 4001c0c8 <.urem> <== NOT EXECUTED 40011010: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 40011014: 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; 40011018: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 4001101c: 02 80 00 23 be 400110a8 <== NOT EXECUTED 40011020: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 40011024: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011028: 12 80 00 08 bne 40011048 <== NOT EXECUTED 4001102c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 40011030: 7f ff ff 71 call 40010df4 <== NOT EXECUTED 40011034: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 40011038: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 4001103c: 22 80 00 28 be,a 400110dc <== NOT EXECUTED 40011040: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 40011044: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 40011048: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 4001104c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40011050: 12 80 00 08 bne 40011070 <== NOT EXECUTED 40011054: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 40011058: 7f ff ff 67 call 40010df4 <== NOT EXECUTED 4001105c: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 40011060: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 40011064: 02 80 00 1e be 400110dc <== NOT EXECUTED 40011068: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 4001106c: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 40011070: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 40011074: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 40011078: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4001107c: 12 80 00 08 bne 4001109c <== NOT EXECUTED 40011080: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 40011084: 7f ff ff 5c call 40010df4 <== NOT EXECUTED 40011088: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 4001108c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011090: 22 80 00 13 be,a 400110dc <== NOT EXECUTED 40011094: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 40011098: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 4001109c: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 400110a0: 81 c7 e0 08 ret <== NOT EXECUTED 400110a4: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 400110a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400110ac: 02 80 00 0c be 400110dc <== NOT EXECUTED 400110b0: 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 ]; 400110b4: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 400110b8: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 400110bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400110c0: 02 80 00 07 be 400110dc <== NOT EXECUTED 400110c4: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 400110c8: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 400110cc: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 400110d0: 81 c7 e0 08 ret <== NOT EXECUTED 400110d4: 91 ee 00 12 restore %i0, %l2, %o0 <== NOT EXECUTED 400110d8: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 400110dc: 81 c7 e0 08 ret 400110e0: 81 e8 00 00 restore 40011ac4 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 40011ac4: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 40011ac8: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 40011acc: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 40011ad0: 12 80 00 0a bne 40011af8 40011ad4: a6 10 00 1a mov %i2, %l3 40011ad8: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011adc: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011ae0: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011ae4: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011ae8: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 40011aec: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 40011af0: 10 80 00 0e b 40011b28 <== NOT EXECUTED 40011af4: 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 || 40011af8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40011afc: 84 00 7f fb add %g1, -5, %g2 40011b00: 80 a0 a0 01 cmp %g2, 1 40011b04: 08 80 00 0b bleu 40011b30 40011b08: 80 a6 e0 00 cmp %i3, 0 40011b0c: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011b10: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011b14: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011b18: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011b1c: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 40011b20: 96 12 e1 60 or %o3, 0x160, %o3 <== NOT EXECUTED 40011b24: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 40011b28: 7f ff c6 3c call 40003418 <__assert_func> <== NOT EXECUTED 40011b2c: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 40011b30: 32 80 00 0a bne,a 40011b58 40011b34: 80 a7 20 00 cmp %i4, 0 40011b38: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011b3c: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011b40: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011b44: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011b48: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 40011b4c: 96 12 e1 b0 or %o3, 0x1b0, %o3 <== NOT EXECUTED 40011b50: 10 bf ff f6 b 40011b28 <== NOT EXECUTED 40011b54: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 40011b58: 12 80 00 08 bne 40011b78 40011b5c: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 40011b60: 40 00 03 79 call 40012944 <__errno> <== NOT EXECUTED 40011b64: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40011b68: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40011b6c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40011b70: 81 c7 e0 08 ret <== NOT EXECUTED 40011b74: 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) { 40011b78: 32 80 00 1d bne,a 40011bec 40011b7c: 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)) 40011b80: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 40011b84: 82 10 20 00 clr %g1 <== NOT EXECUTED 40011b88: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 40011b8c: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 40011b90: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40011b94: 14 80 00 0a bg 40011bbc <== NOT EXECUTED 40011b98: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 40011b9c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40011ba0: 12 80 00 08 bne 40011bc0 <== NOT EXECUTED 40011ba4: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED 40011ba8: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 40011bac: 38 80 00 05 bgu,a 40011bc0 <== NOT EXECUTED 40011bb0: 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); 40011bb4: 10 80 00 04 b 40011bc4 <== NOT EXECUTED 40011bb8: 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; 40011bbc: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 40011bc0: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 40011bc4: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 40011bc8: 40 00 05 9a call 40013230 <== NOT EXECUTED 40011bcc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 40011bd0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 40011bd4: 7f ff c7 31 call 40003898 <== NOT EXECUTED 40011bd8: 92 10 20 00 clr %o1 <== NOT EXECUTED 40011bdc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40011be0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 40011be4: 81 c7 e0 08 ret <== NOT EXECUTED 40011be8: 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 ) 40011bec: 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; 40011bf0: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 40011bf4: 80 a1 00 03 cmp %g4, %g3 40011bf8: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 40011bfc: 14 80 00 08 bg 40011c1c 40011c00: 9a 07 00 1a add %i4, %i2, %o5 40011c04: 80 a1 00 03 cmp %g4, %g3 40011c08: 32 80 00 07 bne,a 40011c24 40011c0c: 03 10 00 83 sethi %hi(0x40020c00), %g1 <== NOT EXECUTED 40011c10: 80 a3 40 02 cmp %o5, %g2 40011c14: 28 80 00 04 bleu,a 40011c24 40011c18: 03 10 00 83 sethi %hi(0x40020c00), %g1 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 40011c1c: 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; 40011c20: 03 10 00 83 sethi %hi(0x40020c00), %g1 40011c24: e2 00 60 e4 ld [ %g1 + 0xe4 ], %l1 ! 40020ce4 40011c28: 90 10 00 12 mov %l2, %o0 40011c2c: ab 3c 60 1f sra %l1, 0x1f, %l5 40011c30: 96 10 00 11 mov %l1, %o3 40011c34: 94 10 00 15 mov %l5, %o2 40011c38: 40 00 2a ea call 4001c7e0 <__moddi3> 40011c3c: 92 10 00 13 mov %l3, %o1 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 40011c40: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 40011c44: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 40011c48: 94 10 00 15 mov %l5, %o2 40011c4c: 92 10 00 13 mov %l3, %o1 40011c50: 40 00 29 fd call 4001c444 <__divdi3> 40011c54: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 40011c58: 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; 40011c5c: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 40011c60: aa 10 00 1b mov %i3, %l5 40011c64: 02 80 00 1c be 40011cd4 40011c68: 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 ); 40011c6c: 90 10 00 10 mov %l0, %o0 40011c70: 7f ff fc 6e call 40010e28 40011c74: 94 10 20 00 clr %o2 assert( block_ptr ); 40011c78: 80 a2 20 00 cmp %o0, 0 40011c7c: 32 80 00 0a bne,a 40011ca4 40011c80: a2 24 40 14 sub %l1, %l4, %l1 40011c84: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011c88: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011c8c: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011c90: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011c94: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 40011c98: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 40011c9c: 10 bf ff a3 b 40011b28 <== NOT EXECUTED 40011ca0: 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; 40011ca4: 80 a7 00 11 cmp %i4, %l1 40011ca8: 08 80 00 03 bleu 40011cb4 40011cac: 94 10 00 1c mov %i4, %o2 40011cb0: 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 ); 40011cb4: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 40011cb8: 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 ); 40011cbc: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 40011cc0: a4 04 a0 01 inc %l2 my_length -= to_copy; 40011cc4: b8 27 00 0a sub %i4, %o2, %i4 40011cc8: 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 ); 40011ccc: 40 00 05 59 call 40013230 40011cd0: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 40011cd4: 03 10 00 83 sethi %hi(0x40020c00), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40011cd8: a8 10 60 e4 or %g1, 0xe4, %l4 ! 40020ce4 40011cdc: 10 80 00 17 b 40011d38 40011ce0: e2 00 60 e4 ld [ %g1 + 0xe4 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 40011ce4: 92 10 00 12 mov %l2, %o1 40011ce8: 7f ff fc 50 call 40010e28 40011cec: 94 10 20 00 clr %o2 assert( block_ptr ); 40011cf0: 80 a2 20 00 cmp %o0, 0 40011cf4: 32 80 00 0a bne,a 40011d1c 40011cf8: d2 02 00 00 ld [ %o0 ], %o1 40011cfc: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011d00: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011d04: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011d08: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011d0c: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 40011d10: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 40011d14: 10 bf ff 85 b 40011b28 <== NOT EXECUTED 40011d18: 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++; 40011d1c: 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 ); 40011d20: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 40011d24: b8 27 00 11 sub %i4, %l1, %i4 copied += to_copy; 40011d28: 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; 40011d2c: 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 ); 40011d30: 40 00 05 40 call 40013230 40011d34: 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 ) { 40011d38: c2 05 00 00 ld [ %l4 ], %g1 40011d3c: 80 a7 00 01 cmp %i4, %g1 40011d40: 1a bf ff e9 bcc 40011ce4 40011d44: 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 ) { 40011d48: 80 a7 20 00 cmp %i4, 0 40011d4c: 02 80 00 16 be 40011da4 40011d50: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 40011d54: 92 10 00 12 mov %l2, %o1 40011d58: 90 10 00 10 mov %l0, %o0 40011d5c: 7f ff fc 33 call 40010e28 40011d60: 94 10 20 00 clr %o2 assert( block_ptr ); 40011d64: 80 a2 20 00 cmp %o0, 0 40011d68: 32 80 00 0a bne,a 40011d90 40011d6c: d2 02 00 00 ld [ %o0 ], %o1 40011d70: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011d74: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011d78: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011d7c: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011d80: 94 12 a1 f0 or %o2, 0x1f0, %o2 <== NOT EXECUTED 40011d84: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 40011d88: 10 bf ff 68 b 40011b28 <== NOT EXECUTED 40011d8c: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 40011d90: 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 ); 40011d94: 90 10 00 15 mov %l5, %o0 40011d98: 40 00 05 26 call 40013230 40011d9c: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 40011da0: 90 07 bf f8 add %fp, -8, %o0 40011da4: 7f ff c6 bd call 40003898 40011da8: 92 10 20 00 clr %o1 40011dac: c2 07 bf f8 ld [ %fp + -8 ], %g1 40011db0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return copied; } 40011db4: 81 c7 e0 08 ret 40011db8: 81 e8 00 00 restore 400111ac : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 400111ac: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 400111b0: 80 a6 20 00 cmp %i0, 0 400111b4: 32 80 00 0a bne,a 400111dc 400111b8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 400111bc: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400111c0: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400111c4: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400111c8: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400111cc: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 400111d0: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 400111d4: 10 80 00 0c b 40011204 <== NOT EXECUTED 400111d8: 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 ); 400111dc: 80 a0 60 05 cmp %g1, 5 400111e0: 02 80 00 0b be 4001120c 400111e4: 03 10 00 83 sethi %hi(0x40020c00), %g1 400111e8: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400111ec: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400111f0: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400111f4: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400111f8: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 400111fc: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 40011200: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 40011204: 7f ff c8 85 call 40003418 <__assert_func> <== NOT EXECUTED 40011208: 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; 4001120c: e0 00 60 e4 ld [ %g1 + 0xe4 ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 40011210: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 40011214: 80 a0 60 00 cmp %g1, 0 40011218: 02 80 00 05 be 4001122c 4001121c: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 40011220: 90 06 20 58 add %i0, 0x58, %o0 40011224: 7f ff ff b0 call 400110e4 40011228: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4001122c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 40011230: 80 a0 60 00 cmp %g1, 0 40011234: 22 80 00 17 be,a 40011290 40011238: 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; 40011240: 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 40011248: a4 14 a0 e4 or %l2, 0xe4, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 4001124c: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 40011250: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 40011254: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40011258: 02 80 00 04 be 40011268 <== NOT EXECUTED 4001125c: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 40011260: 7f ff ff a1 call 400110e4 <== NOT EXECUTED 40011264: 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 4001127c: 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 ); 40011280: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 40011284: 7f ff ff 98 call 400110e4 <== NOT EXECUTED 40011288: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 4001128c: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 40011290: 80 a0 60 00 cmp %g1, 0 40011294: 02 80 00 25 be 40011328 40011298: 29 10 00 83 sethi %hi(0x40020c00), %l4 4001129c: 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 400112a4: a8 15 20 e4 or %l4, 0xe4, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 400112a8: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 400112ac: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 400112b0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 400112b4: 02 80 00 1b be 40011320 <== NOT EXECUTED 400112b8: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 400112bc: 10 80 00 09 b 400112e0 <== NOT EXECUTED 400112c0: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 400112cc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 400112d0: 7f ff ff 85 call 400110e4 <== NOT EXECUTED 400112d4: 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 400112f0: 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( 400112f4: 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 40011304: 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 40011318: 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( 4001131c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 40011320: 7f ff ff 71 call 400110e4 <== NOT EXECUTED 40011324: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 40011328: 81 c7 e0 08 ret 4001132c: 91 e8 20 00 restore %g0, 0, %o0 40011158 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 40011158: 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 ); 4001115c: 94 10 20 00 clr %o2 <== NOT EXECUTED 40011160: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40011164: 7f ff ff 31 call 40010e28 <== NOT EXECUTED 40011168: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 4001116c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40011170: 32 80 00 0a bne,a 40011198 <== NOT EXECUTED 40011174: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 40011178: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 4001117c: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011180: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011184: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011188: 94 12 a2 40 or %o2, 0x240, %o2 <== NOT EXECUTED 4001118c: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 40011190: 7f ff c8 a2 call 40003418 <__assert_func> <== NOT EXECUTED 40011194: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 40011198: 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 ); 4001119c: 7f ff ff 0d call 40010dd0 <== NOT EXECUTED 400111a0: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 400111a4: 81 c7 e0 08 ret <== NOT EXECUTED 400111a8: 81 e8 00 00 restore <== NOT EXECUTED 40011760 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 40011760: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 40011764: a0 96 20 00 orcc %i0, 0, %l0 40011768: 32 80 00 0a bne,a 40011790 4001176c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40011770: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 40011774: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011778: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 4001177c: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011780: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 40011784: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 40011788: 10 80 00 8c b 400119b8 <== NOT EXECUTED 4001178c: 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 ); 40011790: 80 a0 60 05 cmp %g1, 5 40011794: 02 80 00 0a be 400117bc 40011798: 80 a6 e0 00 cmp %i3, 0 4001179c: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400117a0: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400117a4: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400117a8: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400117ac: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 400117b0: 96 12 e0 e0 or %o3, 0xe0, %o3 <== NOT EXECUTED 400117b4: 10 80 00 81 b 400119b8 <== NOT EXECUTED 400117b8: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 400117bc: 12 80 00 0a bne 400117e4 400117c0: 80 a7 20 00 cmp %i4, 0 400117c4: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400117c8: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400117cc: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400117d0: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400117d4: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 400117d8: 96 12 e1 28 or %o3, 0x128, %o3 <== NOT EXECUTED 400117dc: 10 80 00 77 b 400119b8 <== NOT EXECUTED 400117e0: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 400117e4: 32 80 00 06 bne,a 400117fc 400117e8: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 400117ec: 40 00 04 56 call 40012944 <__errno> <== NOT EXECUTED 400117f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400117f4: 10 80 00 15 b 40011848 <== NOT EXECUTED 400117f8: 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 ) { 400117fc: 80 a0 60 00 cmp %g1, 0 40011800: 06 80 00 09 bl 40011824 40011804: 94 07 00 1a add %i4, %i2, %o2 40011808: 80 a0 60 00 cmp %g1, 0 4001180c: 12 80 00 12 bne 40011854 40011810: 03 10 00 83 sethi %hi(0x40020c00), %g1 40011814: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 40011818: 80 a0 40 0a cmp %g1, %o2 4001181c: 1a 80 00 0e bcc 40011854 40011820: 03 10 00 83 sethi %hi(0x40020c00), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 40011824: 90 10 00 10 mov %l0, %o0 40011828: 7f ff ff 24 call 400114b8 4001182c: 92 10 20 00 clr %o1 if ( status ) 40011830: 80 a2 20 00 cmp %o0, 0 40011834: 02 80 00 08 be 40011854 40011838: 03 10 00 83 sethi %hi(0x40020c00), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 4001183c: 40 00 04 42 call 40012944 <__errno> <== NOT EXECUTED 40011840: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40011844: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 40011848: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4001184c: 81 c7 e0 08 ret <== NOT EXECUTED 40011850: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 40011854: e2 00 60 e4 ld [ %g1 + 0xe4 ], %l1 40011858: 92 10 00 1a mov %i2, %o1 4001185c: a7 3c 60 1f sra %l1, 0x1f, %l3 40011860: 96 10 00 11 mov %l1, %o3 40011864: 94 10 00 13 mov %l3, %o2 40011868: 40 00 2b de call 4001c7e0 <__moddi3> 4001186c: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 40011870: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 40011874: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 40011878: 90 10 00 19 mov %i1, %o0 4001187c: 92 10 00 1a mov %i2, %o1 40011880: 40 00 2a f1 call 4001c444 <__divdi3> 40011884: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 40011888: 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; 4001188c: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 40011890: 80 a4 a0 00 cmp %l2, 0 40011894: 02 80 00 1b be 40011900 40011898: 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 ); 4001189c: 90 10 00 10 mov %l0, %o0 400118a0: 7f ff fd 62 call 40010e28 400118a4: 94 10 20 00 clr %o2 assert( block_ptr ); 400118a8: 80 a2 20 00 cmp %o0, 0 400118ac: 32 80 00 0a bne,a 400118d4 400118b0: 94 24 40 12 sub %l1, %l2, %o2 400118b4: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400118b8: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400118bc: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400118c0: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400118c4: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 400118c8: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 400118cc: 10 80 00 3b b 400119b8 <== NOT EXECUTED 400118d0: 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; 400118d4: 80 a2 80 1c cmp %o2, %i4 400118d8: 38 80 00 02 bgu,a 400118e0 400118dc: 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 ); 400118e0: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 400118e4: 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 ); 400118e8: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 400118ec: a6 04 e0 01 inc %l3 my_length -= to_copy; 400118f0: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 400118f4: 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 ); 400118f8: 40 00 06 4e call 40013230 400118fc: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 40011900: 03 10 00 83 sethi %hi(0x40020c00), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40011904: a4 10 60 e4 or %g1, 0xe4, %l2 ! 40020ce4 40011908: 10 80 00 17 b 40011964 4001190c: e2 00 60 e4 ld [ %g1 + 0xe4 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 40011910: 92 10 00 13 mov %l3, %o1 40011914: 7f ff fd 45 call 40010e28 40011918: 94 10 20 00 clr %o2 assert( block_ptr ); 4001191c: 80 a2 20 00 cmp %o0, 0 40011920: 32 80 00 0a bne,a 40011948 40011924: d0 02 00 00 ld [ %o0 ], %o0 40011928: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 4001192c: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 40011930: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011934: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011938: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 4001193c: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 40011940: 10 80 00 1e b 400119b8 <== NOT EXECUTED 40011944: 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 ); 40011948: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 4001194c: a6 04 e0 01 inc %l3 my_length -= to_copy; 40011950: 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( 40011954: 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; 40011958: 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 ); 4001195c: 40 00 06 35 call 40013230 40011960: 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 ) { 40011964: c2 04 80 00 ld [ %l2 ], %g1 40011968: 80 a7 00 01 cmp %i4, %g1 4001196c: 1a bf ff e9 bcc 40011910 40011970: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 40011974: 80 a7 20 00 cmp %i4, 0 40011978: 02 80 00 17 be 400119d4 4001197c: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 40011980: 92 10 00 13 mov %l3, %o1 40011984: 90 10 00 10 mov %l0, %o0 40011988: 7f ff fd 28 call 40010e28 4001198c: 94 10 20 00 clr %o2 assert( block_ptr ); 40011990: 80 a2 20 00 cmp %o0, 0 40011994: 32 80 00 0b bne,a 400119c0 40011998: d0 02 00 00 ld [ %o0 ], %o0 4001199c: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400119a0: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400119a4: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 400119a8: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 400119ac: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 400119b0: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED 400119b4: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 400119b8: 7f ff c6 98 call 40003418 <__assert_func> <== NOT EXECUTED 400119bc: 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; 400119c0: 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 ); 400119c4: 92 10 00 1a mov %i2, %o1 400119c8: 40 00 06 1a call 40013230 400119cc: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 400119d0: 90 07 bf f8 add %fp, -8, %o0 400119d4: 7f ff c7 b1 call 40003898 400119d8: 92 10 20 00 clr %o1 400119dc: c2 07 bf f8 ld [ %fp + -8 ], %g1 400119e0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 400119e4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 400119e8: 81 c7 e0 08 ret 400119ec: 81 e8 00 00 restore 40009cd8 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 40009cd8: 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 ); 40009cdc: 40 00 10 f8 call 4000e0bc 40009ce0: 90 10 00 18 mov %i0, %o0 40009ce4: 96 07 bf fc add %fp, -4, %o3 40009ce8: 92 10 00 08 mov %o0, %o1 40009cec: 94 07 bf b8 add %fp, -72, %o2 40009cf0: 7f ff ff 8e call 40009b28 40009cf4: 90 10 00 18 mov %i0, %o0 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 40009cf8: 97 2e 60 10 sll %i1, 0x10, %o3 40009cfc: 03 00 00 3c sethi %hi(0xf000), %g1 40009d00: 97 32 e0 10 srl %o3, 0x10, %o3 40009d04: 05 00 00 10 sethi %hi(0x4000), %g2 40009d08: 82 0a c0 01 and %o3, %g1, %g1 40009d0c: 80 a0 40 02 cmp %g1, %g2 40009d10: 02 80 00 19 be 40009d74 40009d14: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 40009d18: 05 00 00 20 sethi %hi(0x8000), %g2 40009d1c: 80 a0 40 02 cmp %g1, %g2 40009d20: 02 80 00 16 be 40009d78 40009d24: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 40009d28: 05 00 00 08 sethi %hi(0x2000), %g2 40009d2c: 80 a0 40 02 cmp %g1, %g2 40009d30: 02 80 00 05 be 40009d44 40009d34: 05 00 00 18 sethi %hi(0x6000), %g2 40009d38: 80 a0 40 02 cmp %g1, %g2 40009d3c: 12 80 00 05 bne 40009d50 40009d40: 05 00 00 04 sethi %hi(0x1000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 40009d44: f4 3f bf e0 std %i2, [ %fp + -32 ] 40009d48: 10 80 00 0c b 40009d78 40009d4c: 92 10 20 02 mov 2, %o1 } else if (S_ISFIFO(mode)) 40009d50: 80 a0 40 02 cmp %g1, %g2 40009d54: 02 80 00 09 be 40009d78 40009d58: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 40009d5c: 40 00 0d 21 call 4000d1e0 <__errno> <== NOT EXECUTED 40009d60: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40009d64: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40009d68: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40009d6c: 81 c7 e0 08 ret <== NOT EXECUTED 40009d70: 81 e8 00 00 restore <== NOT EXECUTED 40009d74: 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( 40009d78: 94 07 bf b8 add %fp, -72, %o2 40009d7c: 98 07 bf e0 add %fp, -32, %o4 40009d80: 40 00 09 5d call 4000c2f4 40009d84: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 40009d88: 80 a2 20 00 cmp %o0, 0 40009d8c: 12 80 00 06 bne 40009da4 40009d90: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 40009d94: 40 00 0d 13 call 4000d1e0 <__errno> <== NOT EXECUTED 40009d98: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40009d9c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 40009da0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 40009da4: 81 c7 e0 08 ret 40009da8: 81 e8 00 00 restore 40002ff0 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 40002ff0: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 40002ff4: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 40002ff8: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40002ffc: 80 a0 a0 01 cmp %g2, 1 40003000: 22 80 00 08 be,a 40003020 40003004: f0 20 60 5c st %i0, [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( ENOTDIR ); 40003008: 40 00 3e 4f call 40012944 <__errno> <== NOT EXECUTED 4000300c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40003010: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 40003014: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40003018: 81 c7 e0 08 ret <== NOT EXECUTED 4000301c: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 40003020: 81 c7 e0 08 ret 40003024: 91 e8 20 00 restore %g0, 0, %o0 4000395c : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 4000395c: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 40003960: 80 a6 20 00 cmp %i0, 0 40003964: 12 80 00 0a bne 4000398c 40003968: 21 10 00 92 sethi %hi(0x40024800), %l0 4000396c: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003970: 15 10 00 8c sethi %hi(0x40023000), %o2 <== NOT EXECUTED 40003974: 17 10 00 8b sethi %hi(0x40022c00), %o3 <== NOT EXECUTED 40003978: 90 12 22 b0 or %o0, 0x2b0, %o0 <== NOT EXECUTED 4000397c: 94 12 a0 98 or %o2, 0x98, %o2 <== NOT EXECUTED 40003980: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED 40003984: 10 80 00 3b b 40003a70 <== NOT EXECUTED 40003988: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); 4000398c: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 40003990: 90 06 20 0c add %i0, 0xc, %o0 40003994: 40 00 39 96 call 40011fec 40003998: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 4000399c: d4 06 20 48 ld [ %i0 + 0x48 ], %o2 400039a0: 82 02 bf ff add %o2, -1, %g1 400039a4: 80 a0 60 06 cmp %g1, 6 400039a8: 38 80 00 42 bgu,a 40003ab0 400039ac: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 <== NOT EXECUTED 400039b0: 83 28 60 02 sll %g1, 2, %g1 400039b4: 05 10 00 0e sethi %hi(0x40003800), %g2 400039b8: 84 10 a1 04 or %g2, 0x104, %g2 ! 40003904 400039bc: c2 00 80 01 ld [ %g2 + %g1 ], %g1 400039c0: 81 c0 40 00 jmp %g1 400039c4: 01 00 00 00 nop case IMFS_DIRECTORY: fprintf(stdout, "/" ); 400039c8: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 400039cc: 90 10 20 2f mov 0x2f, %o0 400039d0: 40 00 39 43 call 40011edc 400039d4: d2 00 60 08 ld [ %g1 + 8 ], %o1 break; 400039d8: 10 80 00 3c b 40003ac8 400039dc: 31 10 00 8b sethi %hi(0x40022c00), %i0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 400039e0: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 400039e4: 13 10 00 8b sethi %hi(0x40022c00), %o1 400039e8: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 400039ec: d0 00 60 08 ld [ %g1 + 8 ], %o0 400039f0: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 400039f4: 10 80 00 08 b 40003a14 400039f8: 92 12 63 10 or %o1, 0x310, %o1 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 400039fc: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 <== NOT EXECUTED 40003a00: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 40003a04: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 40003a08: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 40003a0c: 13 10 00 8b sethi %hi(0x40022c00), %o1 <== NOT EXECUTED 40003a10: 92 12 63 28 or %o1, 0x328, %o1 ! 40022f28 <__FUNCTION__.5604+0x2b8> <== NOT EXECUTED 40003a14: 40 00 39 18 call 40011e74 40003a18: 31 10 00 8b sethi %hi(0x40022c00), %i0 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 40003a1c: 30 80 00 2b b,a 40003ac8 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 40003a20: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 40003a24: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 40003a28: d0 00 60 08 ld [ %g1 + 8 ], %o0 40003a2c: 13 10 00 8b sethi %hi(0x40022c00), %o1 40003a30: 40 00 39 11 call 40011e74 40003a34: 92 12 63 38 or %o1, 0x338, %o1 ! 40022f38 <__FUNCTION__.5604+0x2c8> (uint32_t)the_jnode->info.file.size ); #endif break; 40003a38: 10 80 00 24 b 40003ac8 40003a3c: 31 10 00 8b sethi %hi(0x40022c00), %i0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 40003a40: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 <== NOT EXECUTED 40003a44: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003a48: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 40003a4c: 40 00 39 68 call 40011fec <== NOT EXECUTED 40003a50: 90 12 23 48 or %o0, 0x348, %o0 <== NOT EXECUTED assert(0); 40003a54: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED 40003a58: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003a5c: 15 10 00 8c sethi %hi(0x40023000), %o2 <== NOT EXECUTED 40003a60: 17 10 00 8b sethi %hi(0x40022c00), %o3 <== NOT EXECUTED 40003a64: 90 12 22 b0 or %o0, 0x2b0, %o0 <== NOT EXECUTED 40003a68: 94 12 a0 98 or %o2, 0x98, %o2 <== NOT EXECUTED 40003a6c: 96 12 e0 68 or %o3, 0x68, %o3 <== NOT EXECUTED 40003a70: 40 00 02 16 call 400042c8 <__assert_func> <== NOT EXECUTED 40003a74: 01 00 00 00 nop <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 40003a78: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 <== NOT EXECUTED 40003a7c: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003a80: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 40003a84: 40 00 39 5a call 40011fec <== NOT EXECUTED 40003a88: 90 12 23 48 or %o0, 0x348, %o0 <== NOT EXECUTED assert(0); 40003a8c: 10 bf ff f3 b 40003a58 <== NOT EXECUTED 40003a90: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 40003a94: c2 04 22 28 ld [ %l0 + 0x228 ], %g1 <== NOT EXECUTED 40003a98: 11 10 00 8b sethi %hi(0x40022c00), %o0 <== NOT EXECUTED 40003a9c: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 40003aa0: 40 00 39 53 call 40011fec <== NOT EXECUTED 40003aa4: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED assert(0); 40003aa8: 10 bf ff ec b 40003a58 <== NOT EXECUTED 40003aac: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 40003ab0: 13 10 00 8b sethi %hi(0x40022c00), %o1 <== NOT EXECUTED 40003ab4: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 40003ab8: 40 00 38 ef call 40011e74 <== NOT EXECUTED 40003abc: 92 12 63 78 or %o1, 0x378, %o1 <== NOT EXECUTED assert(0); 40003ac0: 10 bf ff e6 b 40003a58 <== NOT EXECUTED 40003ac4: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED break; } puts(""); 40003ac8: 40 00 40 3a call 40013bb0 40003acc: 91 ee 21 b8 restore %i0, 0x1b8, %o0 40003ad0: 01 00 00 00 nop 40003034 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 40003034: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 40003038: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 4000303c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40003040: 80 a0 a0 04 cmp %g2, 4 40003044: 02 80 00 0a be 4000306c 40003048: b0 10 20 00 clr %i0 rtems_set_errno_and_return_minus_one( EINVAL ); 4000304c: 40 00 3e 3e call 40012944 <__errno> <== NOT EXECUTED 40003050: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40003054: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40003058: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000305c: 81 c7 e0 08 ret <== NOT EXECUTED 40003060: 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]; 40003064: 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++ ) 40003068: b0 06 20 01 inc %i0 4000306c: 80 a6 00 1a cmp %i0, %i2 40003070: 1a 80 00 07 bcc 4000308c 40003074: 01 00 00 00 nop 40003078: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 4000307c: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3 40003080: 80 a0 e0 00 cmp %g3, 0 40003084: 12 bf ff f8 bne 40003064 40003088: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; return i; } 4000308c: 81 c7 e0 08 ret 40003090: 81 e8 00 00 restore 40003094 : 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 */ ) { 40003094: 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; 40003098: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 4000309c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 400030a0: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 400030a4: 40 00 41 fb call 40013890 <== NOT EXECUTED 400030a8: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 400030ac: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 400030b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400030b4: 22 80 00 05 be,a 400030c8 <== NOT EXECUTED 400030b8: 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 ); 400030bc: 40 00 13 31 call 40007d80 <_Chain_Extract> <== NOT EXECUTED 400030c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 400030c4: 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 ); 400030c8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 400030cc: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 400030d0: 40 00 13 20 call 40007d50 <_Chain_Append> <== NOT EXECUTED 400030d4: 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 ); 400030d8: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 400030dc: 40 00 01 ef call 40003898 <== NOT EXECUTED 400030e0: 92 10 20 00 clr %o1 <== NOT EXECUTED 400030e4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 400030e8: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 400030ec: 81 c7 e0 08 ret <== NOT EXECUTED 400030f0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40009db8 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 40009db8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 40009dbc: 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 ) { 40009dc0: c2 04 20 08 ld [ %l0 + 8 ], %g1 40009dc4: 80 a0 60 00 cmp %g1, 0 40009dc8: 22 80 00 06 be,a 40009de0 40009dcc: 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 ); 40009dd0: 40 00 03 7b call 4000abbc <_Chain_Extract> 40009dd4: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 40009dd8: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40009ddc: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 40009de0: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40009de4: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 40009de8: 90 07 bf f8 add %fp, -8, %o0 40009dec: 40 00 00 ff call 4000a1e8 40009df0: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 40009df4: 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) ) { 40009df8: 90 10 00 10 mov %l0, %o0 40009dfc: 40 00 01 33 call 4000a2c8 40009e00: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 40009e04: 80 a2 20 00 cmp %o0, 0 40009e08: 12 80 00 18 bne 40009e68 40009e0c: 01 00 00 00 nop 40009e10: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 40009e14: 80 a0 60 00 cmp %g1, 0 40009e18: 12 80 00 14 bne 40009e68 40009e1c: 03 10 00 6a sethi %hi(0x4001a800), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 40009e20: c2 00 61 a8 ld [ %g1 + 0x1a8 ], %g1 ! 4001a9a8 40009e24: c4 06 40 00 ld [ %i1 ], %g2 40009e28: c6 00 60 04 ld [ %g1 + 4 ], %g3 40009e2c: 80 a0 c0 02 cmp %g3, %g2 40009e30: 22 80 00 02 be,a 40009e38 40009e34: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 40009e38: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40009e3c: 80 a0 60 04 cmp %g1, 4 40009e40: 12 80 00 08 bne 40009e60 40009e44: 01 00 00 00 nop if ( the_jnode->info.sym_link.name ) 40009e48: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 40009e4c: 80 a2 20 00 cmp %o0, 0 40009e50: 02 80 00 04 be 40009e60 40009e54: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 40009e58: 40 00 00 7f call 4000a054 40009e5c: 01 00 00 00 nop } free( the_jnode ); 40009e60: 40 00 00 7d call 4000a054 40009e64: 90 10 00 10 mov %l0, %o0 } return 0; } 40009e68: 81 c7 e0 08 ret 40009e6c: 91 e8 20 00 restore %g0, 0, %o0 40009e88 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 40009e88: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 40009e8c: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 40009e90: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40009e94: 84 00 bf fe add %g2, -2, %g2 40009e98: 80 a0 a0 05 cmp %g2, 5 40009e9c: 18 80 00 10 bgu 40009edc 40009ea0: 85 28 a0 02 sll %g2, 2, %g2 40009ea4: 07 10 00 27 sethi %hi(0x40009c00), %g3 40009ea8: 86 10 e2 70 or %g3, 0x270, %g3 ! 40009e70 40009eac: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 40009eb0: 81 c0 80 00 jmp %g2 40009eb4: 01 00 00 00 nop rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 40009eb8: 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; 40009ebc: 10 80 00 0e b 40009ef4 40009ec0: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 40009ec4: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 40009ec8: 10 80 00 0b b 40009ef4 40009ecc: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 40009ed0: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED break; 40009ed4: 10 80 00 08 b 40009ef4 <== NOT EXECUTED 40009ed8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 40009edc: 40 00 0c c1 call 4000d1e0 <__errno> <== NOT EXECUTED 40009ee0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40009ee4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40009ee8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40009eec: 81 c7 e0 08 ret <== NOT EXECUTED 40009ef0: 81 e8 00 00 restore <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; 40009ef4: c6 10 60 2e lduh [ %g1 + 0x2e ], %g3 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 40009ef8: 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; 40009efc: c6 36 60 0c sth %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 40009f00: 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; 40009f04: 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; 40009f08: 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; 40009f0c: 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; 40009f10: 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; 40009f14: 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; 40009f18: 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; 40009f1c: 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; 40009f20: c4 26 60 30 st %g2, [ %i1 + 0x30 ] buf->st_ctime = the_jnode->stat_ctime; 40009f24: 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; 40009f28: 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; 40009f2c: 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; 40009f30: 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; } 40009f34: 81 c7 e0 08 ret 40009f38: 91 e8 20 00 restore %g0, 0, %o0 400030f4 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 400030f4: 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 ); 400030f8: 40 00 41 b1 call 400137bc 400030fc: 90 10 00 1a mov %i2, %o0 40003100: 96 07 bf fc add %fp, -4, %o3 40003104: 92 10 00 08 mov %o0, %o1 40003108: a0 07 bf b8 add %fp, -72, %l0 4000310c: 90 10 00 1a mov %i2, %o0 40003110: 40 00 2f e9 call 4000f0b4 40003114: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 40003118: 40 00 41 94 call 40013768 4000311c: 90 10 00 19 mov %i1, %o0 40003120: d0 27 bf e0 st %o0, [ %fp + -32 ] if (info.sym_link.name == NULL) { 40003124: 80 a2 20 00 cmp %o0, 0 40003128: 12 80 00 08 bne 40003148 4000312c: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one(ENOMEM); 40003130: 40 00 3e 05 call 40012944 <__errno> <== NOT EXECUTED 40003134: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40003138: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 4000313c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40003140: 81 c7 e0 08 ret 40003144: 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( 40003148: 94 10 00 10 mov %l0, %o2 4000314c: 92 10 20 04 mov 4, %o1 40003150: 17 00 00 28 sethi %hi(0xa000), %o3 40003154: 98 07 bf e0 add %fp, -32, %o4 40003158: 96 12 e1 ff or %o3, 0x1ff, %o3 4000315c: 40 00 2c 97 call 4000e3b8 40003160: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 40003164: 80 a2 20 00 cmp %o0, 0 40003168: 12 bf ff f6 bne 40003140 4000316c: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 40003170: 40 00 01 a0 call 400037f0 <== NOT EXECUTED 40003174: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 40003178: 40 00 3d f3 call 40012944 <__errno> <== NOT EXECUTED 4000317c: 01 00 00 00 nop <== NOT EXECUTED 40003180: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40003184: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 40003188: 81 c7 e0 08 ret <== NOT EXECUTED 4000318c: 81 e8 00 00 restore <== NOT EXECUTED 40003190 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 40003190: 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; 40003194: 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 ) { 40003198: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 4000319c: 80 a0 60 03 cmp %g1, 3 400031a0: 12 80 00 29 bne 40003244 400031a4: a4 10 00 18 mov %i0, %l2 if ( !node->info.hard_link.link_node ) 400031a8: e6 04 20 50 ld [ %l0 + 0x50 ], %l3 400031ac: 80 a4 e0 00 cmp %l3, 0 400031b0: 12 80 00 08 bne 400031d0 400031b4: a2 07 bf e4 add %fp, -28, %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 400031b8: 40 00 3d e3 call 40012944 <__errno> <== NOT EXECUTED 400031bc: 01 00 00 00 nop <== NOT EXECUTED 400031c0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 400031c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400031c8: 10 80 00 24 b 40003258 <== NOT EXECUTED 400031cc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 400031d0: 92 10 00 19 mov %i1, %o1 400031d4: 94 10 20 14 mov 0x14, %o2 400031d8: 40 00 40 16 call 40013230 400031dc: 90 10 00 11 mov %l1, %o0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 400031e0: 90 10 00 11 mov %l1, %o0 400031e4: 40 00 2c c2 call 4000e4ec 400031e8: 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) 400031ec: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 400031f0: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 400031f4: 80 a0 e0 01 cmp %g3, 1 400031f8: 12 80 00 0c bne 40003228 400031fc: 84 00 ff ff add %g3, -1, %g2 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 40003200: c2 07 bf ec ld [ %fp + -20 ], %g1 40003204: 92 10 00 11 mov %l1, %o1 40003208: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 4000320c: 9f c0 40 00 call %g1 40003210: 90 10 00 18 mov %i0, %o0 if ( result != 0 ) 40003214: 80 a2 20 00 cmp %o0, 0 40003218: 02 80 00 0b be 40003244 4000321c: 90 10 3f ff mov -1, %o0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 40003220: 81 c7 e0 08 ret 40003224: 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 ); 40003228: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 4000322c: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] IMFS_update_ctime( node->info.hard_link.link_node ); 40003230: 40 00 01 9a call 40003898 40003234: 92 10 20 00 clr %o1 40003238: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 4000323c: c4 07 bf f8 ld [ %fp + -8 ], %g2 40003240: 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 ); 40003244: c2 06 60 08 ld [ %i1 + 8 ], %g1 40003248: 90 10 00 12 mov %l2, %o0 4000324c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 40003250: 9f c0 40 00 call %g1 40003254: 92 10 00 19 mov %i1, %o1 return result; } 40003258: b0 10 00 08 mov %o0, %i0 4000325c: 81 c7 e0 08 ret 40003260: 81 e8 00 00 restore 40003264 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 40003264: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 40003268: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 4000326c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40003270: 80 a0 a0 01 cmp %g2, 1 40003274: 22 80 00 06 be,a 4000328c 40003278: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 rtems_set_errno_and_return_minus_one( ENOTDIR ); 4000327c: 40 00 3d b2 call 40012944 <__errno> <== NOT EXECUTED 40003280: 01 00 00 00 nop <== NOT EXECUTED 40003284: 10 80 00 08 b 400032a4 <== NOT EXECUTED 40003288: 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 ) 4000328c: 80 a0 a0 00 cmp %g2, 0 40003290: 32 80 00 08 bne,a 400032b0 40003294: c0 20 60 5c clr [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 40003298: 40 00 3d ab call 40012944 <__errno> <== NOT EXECUTED 4000329c: 01 00 00 00 nop <== NOT EXECUTED 400032a0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 400032a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400032a8: 81 c7 e0 08 ret <== NOT EXECUTED 400032ac: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 400032b0: 81 c7 e0 08 ret 400032b4: 91 e8 20 00 restore %g0, 0, %o0 40002240 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 40002240: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 40002244: 03 10 00 6b sethi %hi(0x4001ac00), %g1 40002248: c2 00 62 c8 ld [ %g1 + 0x2c8 ], %g1 ! 4001aec8 4000224c: 80 a0 60 00 cmp %g1, 0 40002250: 02 80 00 05 be 40002264 40002254: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 40002258: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 4000225c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40002260: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 40002264: 40 00 20 bb call 4000a550 40002268: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 4000226c: 03 10 00 6b sethi %hi(0x4001ac00), %g1 40002270: c2 00 62 cc ld [ %g1 + 0x2cc ], %g1 ! 4001aecc 40002274: 80 a0 60 00 cmp %g1, 0 40002278: 02 80 00 08 be 40002298 4000227c: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 40002280: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 40002284: 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)( 40002288: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000228c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 40002290: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 40002294: 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 ( 40002298: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000229c: c2 08 62 c5 ldub [ %g1 + 0x2c5 ], %g1 ! 4001aec5 400022a0: 80 a0 60 00 cmp %g1, 0 400022a4: 12 80 00 0c bne 400022d4 400022a8: 03 10 00 6b sethi %hi(0x4001ac00), %g1 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 400022ac: 03 10 00 6a sethi %hi(0x4001a800), %g1 400022b0: c2 08 61 70 ldub [ %g1 + 0x170 ], %g1 ! 4001a970 400022b4: 80 a0 60 00 cmp %g1, 0 400022b8: 02 80 00 07 be 400022d4 400022bc: 03 10 00 6b sethi %hi(0x4001ac00), %g1 ) { memset( heap_begin, 0, heap_size ); 400022c0: 90 10 00 18 mov %i0, %o0 400022c4: 92 10 20 00 clr %o1 400022c8: 40 00 2e 40 call 4000dbc8 400022cc: 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 ) { 400022d0: 03 10 00 6b sethi %hi(0x4001ac00), %g1 400022d4: c2 08 62 c5 ldub [ %g1 + 0x2c5 ], %g1 ! 4001aec5 400022d8: 80 a0 60 00 cmp %g1, 0 400022dc: 12 80 00 0c bne 4000230c 400022e0: 03 10 00 6a sethi %hi(0x4001a800), %g1 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 400022e4: d0 00 60 a0 ld [ %g1 + 0xa0 ], %o0 ! 4001a8a0 400022e8: 92 10 00 18 mov %i0, %o1 400022ec: 94 10 00 19 mov %i1, %o2 400022f0: 40 00 10 3a call 400063d8 <_Heap_Initialize> 400022f4: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 400022f8: 80 a2 20 00 cmp %o0, 0 400022fc: 12 80 00 05 bne 40002310 40002300: 33 10 00 6c sethi %hi(0x4001b000), %i1 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 40002304: 40 00 0e 41 call 40005c08 <== NOT EXECUTED 40002308: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 4000230c: 33 10 00 6c sethi %hi(0x4001b000), %i1 40002310: 03 10 00 6a sethi %hi(0x4001a800), %g1 40002314: f0 06 60 68 ld [ %i1 + 0x68 ], %i0 40002318: 40 00 13 3c call 40007008 <_Protected_heap_Get_size> 4000231c: d0 00 60 a0 ld [ %g1 + 0xa0 ], %o0 40002320: 90 02 00 18 add %o0, %i0, %o0 40002324: d0 26 60 68 st %o0, [ %i1 + 0x68 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 40002328: 81 c7 e0 08 ret 4000232c: 81 e8 00 00 restore 40004fc0 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 40004fc0: 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 ) 40004fc4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 40004fc8: 02 80 00 49 be 400050ec <== NOT EXECUTED 40004fcc: 03 10 01 93 sethi %hi(0x40064c00), %g1 <== NOT EXECUTED return; if ( !print_handler ) 40004fd0: e4 00 62 d8 ld [ %g1 + 0x2d8 ], %l2 ! 40064ed8 <== NOT EXECUTED 40004fd4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 40004fd8: 02 80 00 45 be 400050ec <== NOT EXECUTED 40004fdc: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 40004fe0: 32 80 00 0a bne,a 40005008 <== NOT EXECUTED 40004fe4: e8 06 21 48 ld [ %i0 + 0x148 ], %l4 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 40004fe8: 23 10 01 9e sethi %hi(0x40067800), %l1 <== NOT EXECUTED 40004fec: a2 14 61 d0 or %l1, 0x1d0, %l1 ! 400679d0 <== NOT EXECUTED 40004ff0: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED 40004ff4: a8 10 20 00 clr %l4 <== NOT EXECUTED 40004ff8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40004ffc: 12 80 00 04 bne 4000500c <== NOT EXECUTED 40005000: b0 10 20 00 clr %i0 <== NOT EXECUTED 40005004: 30 80 00 41 b,a 40005108 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 40005008: a2 06 20 c0 add %i0, 0xc0, %l1 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 4000500c: ea 04 60 04 ld [ %l1 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 40005010: 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); 40005014: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 40005018: a6 04 ff f0 add %l3, -16, %l3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 4000501c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 40005020: 7f ff ff d8 call 40004f80 <== NOT EXECUTED 40005024: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED if ( high_water_mark ) 40005028: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 4000502c: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 40005030: a0 05 40 13 add %l5, %l3, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 40005034: 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 ); 40005038: 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 ) 4000503c: 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 ) { 40005040: 02 80 00 10 be 40005080 <== NOT EXECUTED 40005044: 03 10 01 93 sethi %hi(0x40064c00), %g1 <== NOT EXECUTED (*print_handler)( 40005048: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED 4000504c: ec 00 62 d4 ld [ %g1 + 0x2d4 ], %l6 <== NOT EXECUTED 40005050: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 40005054: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 40005058: 40 00 18 7a call 4000b240 <== NOT EXECUTED 4000505c: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 40005060: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED 40005064: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 40005068: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 4000506c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED 40005070: 9f c4 80 00 call %l2 <== NOT EXECUTED 40005074: 92 12 61 f8 or %o1, 0x1f8, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 40005078: 10 80 00 08 b 40005098 <== NOT EXECUTED 4000507c: 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 ); 40005080: d0 00 62 d4 ld [ %g1 + 0x2d4 ], %o0 <== NOT EXECUTED 40005084: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 40005088: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 4000508c: 9f c4 80 00 call %l2 <== NOT EXECUTED 40005090: 92 12 62 08 or %o1, 0x208, %o1 <== NOT EXECUTED } (*print_handler)( 40005094: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED 40005098: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED 4000509c: 25 10 01 93 sethi %hi(0x40064c00), %l2 <== NOT EXECUTED 400050a0: 23 10 01 93 sethi %hi(0x40064c00), %l1 <== NOT EXECUTED 400050a4: c2 04 a2 d8 ld [ %l2 + 0x2d8 ], %g1 <== NOT EXECUTED 400050a8: d0 04 62 d4 ld [ %l1 + 0x2d4 ], %o0 <== NOT EXECUTED 400050ac: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 400050b0: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED 400050b4: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 400050b8: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED 400050bc: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 400050c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400050c4: 92 12 62 18 or %o1, 0x218, %o1 ! 40059e18 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 400050c8: 03 10 01 93 sethi %hi(0x40064c00), %g1 <== NOT EXECUTED 400050cc: c2 00 62 d0 ld [ %g1 + 0x2d0 ], %g1 ! 40064ed0 <== NOT EXECUTED 400050d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400050d4: 12 80 00 08 bne 400050f4 <== NOT EXECUTED 400050d8: c2 04 a2 d8 ld [ %l2 + 0x2d8 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 400050dc: d0 04 62 d4 ld [ %l1 + 0x2d4 ], %o0 <== NOT EXECUTED 400050e0: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 400050e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400050e8: 92 12 62 38 or %o1, 0x238, %o1 ! 40059e38 <== NOT EXECUTED 400050ec: 81 c7 e0 08 ret <== NOT EXECUTED 400050f0: 81 e8 00 00 restore <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 400050f4: d0 04 62 d4 ld [ %l1 + 0x2d4 ], %o0 <== NOT EXECUTED 400050f8: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 400050fc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 40005100: 9f c0 40 00 call %g1 <== NOT EXECUTED 40005104: 92 12 62 48 or %o1, 0x248, %o1 <== NOT EXECUTED 40005108: 81 c7 e0 08 ret <== NOT EXECUTED 4000510c: 81 e8 00 00 restore <== NOT EXECUTED 40004f80 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 40004f80: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 40004f84: 84 0a 7f fc and %o1, -4, %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 40004f88: 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++) 40004f8c: 84 02 00 02 add %o0, %g2, %g2 <== NOT EXECUTED 40004f90: 10 80 00 06 b 40004fa8 <== NOT EXECUTED 40004f94: 82 10 61 a5 or %g1, 0x1a5, %g1 <== NOT EXECUTED if (*base != U32_PATTERN) 40004f98: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 40004f9c: 12 80 00 07 bne 40004fb8 <== NOT EXECUTED 40004fa0: 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++) 40004fa4: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 40004fa8: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 40004fac: 2a bf ff fb bcs,a 40004f98 <== NOT EXECUTED 40004fb0: c6 02 00 00 ld [ %o0 ], %g3 <== NOT EXECUTED 40004fb4: 90 10 20 00 clr %o0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 40004fb8: 81 c3 e0 08 retl <== NOT EXECUTED 40004fbc: 01 00 00 00 nop 40005184 : * * 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) { 40005184: 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"); 40005188: 11 10 01 67 sethi %hi(0x40059c00), %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); 4000518c: e0 06 20 c4 ld [ %i0 + 0xc4 ], %l0 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 40005190: 40 00 0b 4f call 40007ecc <== NOT EXECUTED 40005194: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 40005198: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000519c: 11 10 01 67 sethi %hi(0x40059c00), %o0 <== NOT EXECUTED 400051a0: 40 00 0b 4b call 40007ecc <== NOT EXECUTED 400051a4: 90 12 22 c8 or %o0, 0x2c8, %o0 ! 40059ec8 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 400051a8: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 400051ac: 11 10 01 67 sethi %hi(0x40059c00), %o0 <== NOT EXECUTED 400051b0: 40 00 0b 47 call 40007ecc <== NOT EXECUTED 400051b4: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 40059ee8 <== NOT EXECUTED printk( 400051b8: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 400051bc: 11 10 01 67 sethi %hi(0x40059c00), %o0 <== NOT EXECUTED 400051c0: 40 00 0b 43 call 40007ecc <== NOT EXECUTED 400051c4: 90 12 23 00 or %o0, 0x300, %o0 ! 40059f00 <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 400051c8: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 400051cc: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED 400051d0: 40 00 18 1c call 4000b240 <== NOT EXECUTED 400051d4: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED 400051d8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 400051dc: 11 10 01 67 sethi %hi(0x40059c00), %o0 <== NOT EXECUTED 400051e0: 40 00 0b 3b call 40007ecc <== NOT EXECUTED 400051e4: 90 12 23 18 or %o0, 0x318, %o0 ! 40059f18 <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 400051e8: d2 06 20 c0 ld [ %i0 + 0xc0 ], %o1 <== NOT EXECUTED 400051ec: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2 <== NOT EXECUTED 400051f0: 11 10 01 67 sethi %hi(0x40059c00), %o0 <== NOT EXECUTED 400051f4: 96 02 80 09 add %o2, %o1, %o3 <== NOT EXECUTED 400051f8: 40 00 0b 35 call 40007ecc <== NOT EXECUTED 400051fc: 90 12 23 30 or %o0, 0x330, %o0 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { 40005200: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 40005204: 12 80 00 07 bne 40005220 <== NOT EXECUTED 40005208: 11 10 01 67 sethi %hi(0x40059c00), %o0 <== NOT EXECUTED printk( 4000520c: 96 04 20 18 add %l0, 0x18, %o3 <== NOT EXECUTED 40005210: 90 12 23 68 or %o0, 0x368, %o0 <== NOT EXECUTED 40005214: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 40005218: 40 00 0b 2d call 40007ecc <== NOT EXECUTED 4000521c: 94 04 20 08 add %l0, 8, %o2 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 40005220: 40 00 1a 3d call 4000bb14 <== NOT EXECUTED 40005224: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED 40005228: 01 00 00 00 nop 4000ac5c <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 4000ac5c: 9d e3 bf a0 save %sp, -96, %sp { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 4000ac60: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000ac64: c2 00 62 ec ld [ %g1 + 0x2ec ], %g1 ! 4001b2ec <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 4000ac68: c0 20 60 34 clr [ %g1 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 4000ac6c: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 4000ac70: 80 a0 a0 00 cmp %g2, 0 4000ac74: 22 80 00 31 be,a 4000ad38 <_CORE_mutex_Seize_interrupt_trylock+0xdc> 4000ac78: c4 06 20 5c ld [ %i0 + 0x5c ], %g2 the_mutex->lock = CORE_MUTEX_LOCKED; 4000ac7c: c0 26 20 50 clr [ %i0 + 0x50 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 4000ac80: c6 00 60 08 ld [ %g1 + 8 ], %g3 */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 4000ac84: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 4000ac88: c6 26 20 60 st %g3, [ %i0 + 0x60 ] executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; 4000ac8c: c2 26 20 5c st %g1, [ %i0 + 0x5c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 4000ac90: 86 10 20 01 mov 1, %g3 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4000ac94: 80 a0 a0 02 cmp %g2, 2 4000ac98: 02 80 00 05 be 4000acac <_CORE_mutex_Seize_interrupt_trylock+0x50> 4000ac9c: c6 26 20 54 st %g3, [ %i0 + 0x54 ] 4000aca0: 80 a0 a0 03 cmp %g2, 3 4000aca4: 12 80 00 07 bne 4000acc0 <_CORE_mutex_Seize_interrupt_trylock+0x64> 4000aca8: 01 00 00 00 nop _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 4000acac: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 4000acb0: 80 a0 a0 03 cmp %g2, 3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 4000acb4: 84 00 e0 01 add %g3, 1, %g2 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 4000acb8: 02 80 00 03 be 4000acc4 <_CORE_mutex_Seize_interrupt_trylock+0x68> 4000acbc: c4 20 60 1c st %g2, [ %g1 + 0x1c ] _ISR_Enable( *level_p ); 4000acc0: 30 80 00 2d b,a 4000ad74 <_CORE_mutex_Seize_interrupt_trylock+0x118> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 4000acc4: c4 06 20 4c ld [ %i0 + 0x4c ], %g2 current = executing->current_priority; 4000acc8: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 if ( current == ceiling ) { 4000accc: 80 a0 c0 02 cmp %g3, %g2 4000acd0: 12 80 00 03 bne 4000acdc <_CORE_mutex_Seize_interrupt_trylock+0x80> 4000acd4: 01 00 00 00 nop _ISR_Enable( *level_p ); 4000acd8: 30 80 00 27 b,a 4000ad74 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; } if ( current > ceiling ) { 4000acdc: 08 80 00 0f bleu 4000ad18 <_CORE_mutex_Seize_interrupt_trylock+0xbc> 4000ace0: 84 10 20 06 mov 6, %g2 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000ace4: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000ace8: c4 00 62 30 ld [ %g1 + 0x230 ], %g2 ! 4001b230 <_Thread_Dispatch_disable_level> 4000acec: 84 00 a0 01 inc %g2 4000acf0: c4 20 62 30 st %g2, [ %g1 + 0x230 ] _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 4000acf4: 7f ff db ed call 40001ca8 4000acf8: d0 06 40 00 ld [ %i1 ], %o0 _Thread_Change_priority( 4000acfc: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 4000ad00: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 4000ad04: 7f ff f0 d8 call 40007064 <_Thread_Change_priority> 4000ad08: 94 10 20 00 clr %o2 the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 4000ad0c: 7f ff f2 46 call 40007624 <_Thread_Enable_dispatch> 4000ad10: b0 10 20 00 clr %i0 4000ad14: 30 80 00 1b b,a 4000ad80 <_CORE_mutex_Seize_interrupt_trylock+0x124> return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4000ad18: c4 20 60 34 st %g2, [ %g1 + 0x34 ] the_mutex->lock = CORE_MUTEX_UNLOCKED; 4000ad1c: 84 10 20 01 mov 1, %g2 the_mutex->nest_count = 0; /* undo locking above */ 4000ad20: c0 26 20 54 clr [ %i0 + 0x54 ] _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 4000ad24: c4 26 20 50 st %g2, [ %i0 + 0x50 ] the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 4000ad28: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 4000ad2c: 84 00 bf ff add %g2, -1, %g2 4000ad30: c4 20 60 1c st %g2, [ %g1 + 0x1c ] _ISR_Enable( *level_p ); 4000ad34: 30 80 00 10 b,a 4000ad74 <_CORE_mutex_Seize_interrupt_trylock+0x118> /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { 4000ad38: 80 a0 80 01 cmp %g2, %g1 4000ad3c: 12 80 00 13 bne 4000ad88 <_CORE_mutex_Seize_interrupt_trylock+0x12c> 4000ad40: 01 00 00 00 nop switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4000ad44: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 4000ad48: 80 a0 60 00 cmp %g1, 0 4000ad4c: 22 80 00 07 be,a 4000ad68 <_CORE_mutex_Seize_interrupt_trylock+0x10c> 4000ad50: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 4000ad54: 80 a0 60 01 cmp %g1, 1 4000ad58: 12 80 00 0c bne 4000ad88 <_CORE_mutex_Seize_interrupt_trylock+0x12c> 4000ad5c: 82 10 20 02 mov 2, %g1 case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4000ad60: 10 80 00 05 b 4000ad74 <_CORE_mutex_Seize_interrupt_trylock+0x118> <== NOT EXECUTED 4000ad64: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 4000ad68: 82 00 60 01 inc %g1 4000ad6c: c2 26 20 54 st %g1, [ %i0 + 0x54 ] _ISR_Enable( *level_p ); 4000ad70: 30 80 00 01 b,a 4000ad74 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; _ISR_Enable( *level_p ); 4000ad74: 7f ff db cd call 40001ca8 4000ad78: d0 06 40 00 ld [ %i1 ], %o0 4000ad7c: b0 10 20 00 clr %i0 4000ad80: 81 c7 e0 08 ret 4000ad84: 81 e8 00 00 restore return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 4000ad88: 81 c7 e0 08 ret 4000ad8c: 91 e8 20 01 restore %g0, 1, %o0 40007bb4 <_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 ) { 40007bb4: 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; 40007bb8: 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); 40007bbc: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 40007bc0: 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); 40007bc4: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40007bc8: 82 06 60 38 add %i1, 0x38, %g1 40007bcc: 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; 40007bd0: 2d 10 00 6a sethi %hi(0x4001a800), %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 ]; 40007bd4: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 40007bd8: 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 ]; 40007bdc: 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; 40007be0: ac 15 a1 44 or %l6, 0x144, %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 ]; 40007be4: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 40007be8: 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 ]; 40007bec: a6 24 c0 01 sub %l3, %g1, %l3 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 40007bf0: 12 80 00 28 bne 40007c90 <_Thread_queue_Enqueue_priority+0xdc> 40007bf4: 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; 40007bf8: ac 04 e0 04 add %l3, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 40007bfc: 7f ff e8 27 call 40001c98 40007c00: 01 00 00 00 nop 40007c04: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 40007c08: a8 10 3f ff mov -1, %l4 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 40007c0c: 10 80 00 10 b 40007c4c <_Thread_queue_Enqueue_priority+0x98> 40007c10: e2 04 c0 00 ld [ %l3 ], %l1 search_priority = search_thread->current_priority; if ( priority <= search_priority ) 40007c14: 80 a4 00 14 cmp %l0, %l4 40007c18: 28 80 00 11 bleu,a 40007c5c <_Thread_queue_Enqueue_priority+0xa8> 40007c1c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 40007c20: 7f ff e8 22 call 40001ca8 40007c24: 90 10 00 12 mov %l2, %o0 40007c28: 7f ff e8 1c call 40001c98 40007c2c: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 40007c30: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 40007c34: 80 8d 40 01 btst %l5, %g1 40007c38: 32 80 00 05 bne,a 40007c4c <_Thread_queue_Enqueue_priority+0x98> 40007c3c: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 40007c40: 7f ff e8 1a call 40001ca8 <== NOT EXECUTED 40007c44: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 40007c48: 30 bf ff ed b,a 40007bfc <_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 ) ) { 40007c4c: 80 a4 40 16 cmp %l1, %l6 40007c50: 32 bf ff f1 bne,a 40007c14 <_Thread_queue_Enqueue_priority+0x60> 40007c54: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 40007c58: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 40007c5c: 80 a0 60 01 cmp %g1, 1 40007c60: 12 80 00 3c bne 40007d50 <_Thread_queue_Enqueue_priority+0x19c> 40007c64: 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 ) 40007c68: 80 a4 00 14 cmp %l0, %l4 40007c6c: 02 80 00 2e be 40007d24 <_Thread_queue_Enqueue_priority+0x170> 40007c70: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 40007c74: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 40007c78: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 40007c7c: 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; 40007c80: 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; 40007c84: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 40007c88: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 40007c8c: 30 80 00 2d b,a 40007d40 <_Thread_queue_Enqueue_priority+0x18c> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 40007c90: 7f ff e8 02 call 40001c98 40007c94: 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; 40007c98: a8 05 20 01 inc %l4 _ISR_Disable( level ); 40007c9c: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 40007ca0: 10 80 00 10 b 40007ce0 <_Thread_queue_Enqueue_priority+0x12c> 40007ca4: e2 04 e0 08 ld [ %l3 + 8 ], %l1 search_priority = search_thread->current_priority; if ( priority >= search_priority ) 40007ca8: 80 a4 00 14 cmp %l0, %l4 40007cac: 3a 80 00 11 bcc,a 40007cf0 <_Thread_queue_Enqueue_priority+0x13c> 40007cb0: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 40007cb4: 7f ff e7 fd call 40001ca8 40007cb8: 90 10 00 12 mov %l2, %o0 40007cbc: 7f ff e7 f7 call 40001c98 40007cc0: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 40007cc4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 40007cc8: 80 8d 40 01 btst %l5, %g1 40007ccc: 32 80 00 05 bne,a 40007ce0 <_Thread_queue_Enqueue_priority+0x12c> 40007cd0: e2 04 60 04 ld [ %l1 + 4 ], %l1 _ISR_Enable( level ); 40007cd4: 7f ff e7 f5 call 40001ca8 40007cd8: 90 10 00 12 mov %l2, %o0 goto restart_reverse_search; 40007cdc: 30 bf ff ed b,a 40007c90 <_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 ) ) { 40007ce0: 80 a4 40 13 cmp %l1, %l3 40007ce4: 32 bf ff f1 bne,a 40007ca8 <_Thread_queue_Enqueue_priority+0xf4> 40007ce8: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 40007cec: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 40007cf0: 80 a0 60 01 cmp %g1, 1 40007cf4: 12 80 00 17 bne 40007d50 <_Thread_queue_Enqueue_priority+0x19c> 40007cf8: 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 ) 40007cfc: 80 a4 00 14 cmp %l0, %l4 40007d00: 02 80 00 09 be 40007d24 <_Thread_queue_Enqueue_priority+0x170> 40007d04: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 40007d08: c2 04 40 00 ld [ %l1 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 40007d0c: 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; 40007d10: 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; 40007d14: 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; 40007d18: f2 24 40 00 st %i1, [ %l1 ] next_node->previous = the_node; 40007d1c: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 40007d20: 30 80 00 08 b,a 40007d40 <_Thread_queue_Enqueue_priority+0x18c> 40007d24: 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; 40007d28: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 40007d2c: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 40007d30: 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; 40007d34: 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; 40007d38: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 40007d3c: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 40007d40: 7f ff e7 da call 40001ca8 40007d44: b0 10 20 01 mov 1, %i0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 40007d48: 81 c7 e0 08 ret 40007d4c: 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; 40007d50: 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; 40007d54: d0 26 80 00 st %o0, [ %i2 ] return the_thread_queue->sync_state; } 40007d58: 81 c7 e0 08 ret 40007d5c: 81 e8 00 00 restore 40014b68 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 40014b68: 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; 40014b6c: 35 10 00 eb sethi %hi(0x4003ac00), %i2 40014b70: b2 07 bf f4 add %fp, -12, %i1 40014b74: ac 07 bf f8 add %fp, -8, %l6 40014b78: a2 07 bf e8 add %fp, -24, %l1 40014b7c: 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(); 40014b80: 37 10 00 eb sethi %hi(0x4003ac00), %i3 40014b84: 2b 10 00 ea sethi %hi(0x4003a800), %l5 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 40014b88: c0 27 bf f8 clr [ %fp + -8 ] 40014b8c: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 40014b90: 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); 40014b94: ec 27 bf f4 st %l6, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40014b98: 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); 40014b9c: 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; 40014ba0: b4 16 a1 24 or %i2, 0x124, %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(); 40014ba4: b6 16 e0 60 or %i3, 0x60, %i3 40014ba8: aa 15 63 d0 or %l5, 0x3d0, %l5 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 40014bac: 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 ); 40014bb0: 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 ); 40014bb4: 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 ); 40014bb8: 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; 40014bbc: 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; 40014bc0: 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; 40014bc4: c2 06 80 00 ld [ %i2 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 40014bc8: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 40014bcc: 94 10 00 11 mov %l1, %o2 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 40014bd0: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 40014bd4: 92 20 40 09 sub %g1, %o1, %o1 40014bd8: 40 00 10 e6 call 40018f70 <_Watchdog_Adjust_to_chain> 40014bdc: 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; 40014be0: 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(); 40014be4: 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 ) { 40014be8: 80 a4 00 0a cmp %l0, %o2 40014bec: 08 80 00 06 bleu 40014c04 <_Timer_server_Body+0x9c> 40014bf0: 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 ); 40014bf4: 90 10 00 12 mov %l2, %o0 40014bf8: 40 00 10 de call 40018f70 <_Watchdog_Adjust_to_chain> 40014bfc: 94 10 00 11 mov %l1, %o2 40014c00: 30 80 00 06 b,a 40014c18 <_Timer_server_Body+0xb0> } else if ( snapshot < last_snapshot ) { 40014c04: 1a 80 00 05 bcc 40014c18 <_Timer_server_Body+0xb0> 40014c08: 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 ); 40014c0c: 90 10 00 12 mov %l2, %o0 40014c10: 40 00 10 b1 call 40018ed4 <_Watchdog_Adjust> 40014c14: 92 10 20 01 mov 1, %o1 } watchdogs->last_snapshot = snapshot; 40014c18: 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 ); 40014c1c: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 40014c20: 40 00 02 61 call 400155a4 <_Chain_Get> 40014c24: 01 00 00 00 nop if ( timer == NULL ) { 40014c28: 80 a2 20 00 cmp %o0, 0 40014c2c: 02 80 00 0f be 40014c68 <_Timer_server_Body+0x100> 40014c30: 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 ) { 40014c34: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 40014c38: 80 a0 60 01 cmp %g1, 1 40014c3c: 12 80 00 05 bne 40014c50 <_Timer_server_Body+0xe8> 40014c40: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 40014c44: 92 02 20 10 add %o0, 0x10, %o1 40014c48: 10 80 00 05 b 40014c5c <_Timer_server_Body+0xf4> 40014c4c: 90 10 00 14 mov %l4, %o0 } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 40014c50: 12 bf ff f3 bne 40014c1c <_Timer_server_Body+0xb4> 40014c54: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 40014c58: 90 10 00 12 mov %l2, %o0 40014c5c: 40 00 10 fa call 40019044 <_Watchdog_Insert> 40014c60: 01 00 00 00 nop 40014c64: 30 bf ff ee b,a 40014c1c <_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 ); 40014c68: 7f ff e5 00 call 4000e068 40014c6c: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 40014c70: c2 07 bf f4 ld [ %fp + -12 ], %g1 40014c74: 80 a0 40 16 cmp %g1, %l6 40014c78: 12 80 00 0a bne 40014ca0 <_Timer_server_Body+0x138> 40014c7c: 01 00 00 00 nop ts->insert_chain = NULL; 40014c80: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 40014c84: 7f ff e4 fd call 4000e078 40014c88: 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 ) ) { 40014c8c: c2 07 bf e8 ld [ %fp + -24 ], %g1 40014c90: 80 a0 40 13 cmp %g1, %l3 40014c94: 12 80 00 06 bne 40014cac <_Timer_server_Body+0x144> 40014c98: 01 00 00 00 nop 40014c9c: 30 80 00 1a b,a 40014d04 <_Timer_server_Body+0x19c> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 40014ca0: 7f ff e4 f6 call 4000e078 <== NOT EXECUTED 40014ca4: 01 00 00 00 nop <== NOT EXECUTED 40014ca8: 30 bf ff c7 b,a 40014bc4 <_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 ); 40014cac: 7f ff e4 ef call 4000e068 40014cb0: 01 00 00 00 nop 40014cb4: 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)); 40014cb8: 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)) 40014cbc: 80 a4 00 13 cmp %l0, %l3 40014cc0: 02 80 00 0e be 40014cf8 <_Timer_server_Body+0x190> 40014cc4: 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; 40014cc8: c2 04 00 00 ld [ %l0 ], %g1 the_chain->first = new_first; 40014ccc: c2 27 bf e8 st %g1, [ %fp + -24 ] watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 40014cd0: 02 80 00 0a be 40014cf8 <_Timer_server_Body+0x190> 40014cd4: e2 20 60 04 st %l1, [ %g1 + 4 ] watchdog->state = WATCHDOG_INACTIVE; 40014cd8: c0 24 20 08 clr [ %l0 + 8 ] _ISR_Enable( level ); 40014cdc: 7f ff e4 e7 call 4000e078 40014ce0: 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 ); 40014ce4: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 40014ce8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 40014cec: 9f c0 40 00 call %g1 40014cf0: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 } 40014cf4: 30 bf ff ee b,a 40014cac <_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 ); 40014cf8: 7f ff e4 e0 call 4000e078 40014cfc: 90 10 00 02 mov %g2, %o0 40014d00: 30 bf ff b0 b,a 40014bc0 <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 40014d04: c0 2e 20 7c clrb [ %i0 + 0x7c ] 40014d08: c2 05 40 00 ld [ %l5 ], %g1 40014d0c: 82 00 60 01 inc %g1 40014d10: c2 25 40 00 st %g1, [ %l5 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 40014d14: d0 06 00 00 ld [ %i0 ], %o0 40014d18: 40 00 0d e5 call 400184ac <_Thread_Set_state> 40014d1c: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 40014d20: 7f ff ff 68 call 40014ac0 <_Timer_server_Reset_interval_system_watchdog> 40014d24: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 40014d28: 7f ff ff 7b call 40014b14 <_Timer_server_Reset_tod_system_watchdog> 40014d2c: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 40014d30: 40 00 0b 38 call 40017a10 <_Thread_Enable_dispatch> 40014d34: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 40014d38: 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; 40014d3c: 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 ); 40014d40: 40 00 11 1e call 400191b8 <_Watchdog_Remove> 40014d44: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 40014d48: 40 00 11 1c call 400191b8 <_Watchdog_Remove> 40014d4c: 90 10 00 1d mov %i5, %o0 40014d50: 30 bf ff 9c b,a 40014bc0 <_Timer_server_Body+0x58> 4002308c <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 4002308c: 81 c3 e0 08 retl <== NOT EXECUTED 40023090: 90 10 20 00 clr %o0 <== NOT EXECUTED 40018e04 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 40018e04: 9d e3 bf a0 save %sp, -96, %sp 40018e08: 40 00 06 99 call 4001a86c <_fini> 40018e0c: 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(); 40018e10: 7f ff ff e1 call 40018d94 40018e14: 01 00 00 00 nop rtems_shutdown_executive(status); 40018e18: 40 00 00 4c call 40018f48 40018e1c: 90 10 00 18 mov %i0, %o0 40018e20: 30 80 00 00 b,a 40018e20 <_exit+0x1c> <== NOT EXECUTED 40038dac <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 40038dac: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40038db0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 40038db4: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 40038db8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40038dbc: 7f ff ff 7f call 40038bb8 <== NOT EXECUTED 40038dc0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40038dc4: 01 00 00 00 nop 40023060 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 40023060: 81 c3 e0 08 retl <== NOT EXECUTED 40023064: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 4000a24c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 4000a24c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000a250: 7f ff ff e6 call 4000a1e8 <== NOT EXECUTED 4000a254: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4000a258: 01 00 00 00 nop 40023084 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 40023084: 81 c3 e0 08 retl <== NOT EXECUTED 40023088: 90 10 20 00 clr %o0 <== NOT EXECUTED 400272ec <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 400272ec: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 400272f0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 400272f4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 400272f8: 7f ff ff 62 call 40027080 <== NOT EXECUTED 400272fc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40027300: 01 00 00 00 nop 40027534 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 40027534: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40027538: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 4002753c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40027540: 7f ff ff c0 call 40027440 <== NOT EXECUTED 40027544: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40027548: 01 00 00 00 nop 40018f14 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 40018f14: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40018f18: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 40018f1c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40018f20: 40 00 00 17 call 40018f7c <== NOT EXECUTED 40018f24: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40018f28: 01 00 00 00 nop 40058614 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 40058614: 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 ); 40058618: 7f fe b9 27 call 40006ab4 <== NOT EXECUTED 4005861c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 40058620: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 40058624: 32 80 00 17 bne,a 40058680 <_rename_r+0x6c> <== NOT EXECUTED 40058628: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 4005862c: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 40058630: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 40058634: 02 80 00 06 be 4005864c <_rename_r+0x38> <== NOT EXECUTED 40058638: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 4005863c: 02 80 00 04 be 4005864c <_rename_r+0x38> <== NOT EXECUTED 40058640: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058644: 12 80 00 07 bne 40058660 <_rename_r+0x4c> <== NOT EXECUTED 40058648: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 4005864c: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40058650: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 ! 40063ce8 <== NOT EXECUTED 40058654: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 40058658: 10 80 00 05 b 4005866c <_rename_r+0x58> <== NOT EXECUTED 4005865c: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 40058660: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 <== NOT EXECUTED 40058664: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 40058668: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 4005866c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40058670: 7f ff a3 ae call 40041528 <== NOT EXECUTED 40058674: 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; 40058678: 10 80 00 0c b 400586a8 <_rename_r+0x94> <== NOT EXECUTED 4005867c: 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, 40058680: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40058684: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 40058688: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 4005868c: 98 10 20 00 clr %o4 <== NOT EXECUTED 40058690: 7f fe b9 57 call 40006bec <== NOT EXECUTED 40058694: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 40058698: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4005869c: 12 80 00 2b bne 40058748 <_rename_r+0x134> <== NOT EXECUTED 400586a0: 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; 400586a4: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 400586a8: a6 07 bf e8 add %fp, -24, %l3 <== NOT EXECUTED 400586ac: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED 400586b0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 400586b4: 7f ff a3 9d call 40041528 <== NOT EXECUTED 400586b8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED name = old + old_parent_pathlen; 400586bc: b2 06 40 10 add %i1, %l0, %i1 <== NOT EXECUTED 400586c0: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 400586c4: 7f ff b1 f1 call 40044e88 <== NOT EXECUTED 400586c8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 400586cc: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 400586d0: 7f fe b8 e7 call 40006a6c <== NOT EXECUTED 400586d4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 400586d8: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 400586dc: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 400586e0: 7f ff b1 ea call 40044e88 <== NOT EXECUTED 400586e4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 400586e8: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 400586ec: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 400586f0: 94 10 20 00 clr %o2 <== NOT EXECUTED 400586f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 400586f8: 7f fe b9 01 call 40006afc <== NOT EXECUTED 400586fc: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 40058700: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 40058704: 22 80 00 13 be,a 40058750 <_rename_r+0x13c> <== NOT EXECUTED 40058708: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED if ( free_old_parentloc ) 4005870c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40058710: 02 80 00 0b be 4005873c <_rename_r+0x128> <== NOT EXECUTED 40058714: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40058718: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4005871c: 02 80 00 08 be 4005873c <_rename_r+0x128> <== NOT EXECUTED 40058720: 01 00 00 00 nop <== NOT EXECUTED 40058724: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40058728: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4005872c: 02 80 00 04 be 4005873c <_rename_r+0x128> <== NOT EXECUTED 40058730: 01 00 00 00 nop <== NOT EXECUTED 40058734: 9f c0 40 00 call %g1 <== NOT EXECUTED 40058738: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 4005873c: 7f ff 96 a8 call 4003e1dc <__errno> <== NOT EXECUTED 40058740: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40058744: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 40058748: 81 c7 e0 08 ret <== NOT EXECUTED 4005874c: 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 ); 40058750: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 40058754: 02 80 00 06 be 4005876c <_rename_r+0x158> <== NOT EXECUTED 40058758: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 4005875c: 02 80 00 04 be 4005876c <_rename_r+0x158> <== NOT EXECUTED 40058760: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058764: 12 80 00 0a bne 4005878c <_rename_r+0x178> <== NOT EXECUTED 40058768: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 4005876c: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40058770: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 ! 40063ce8 <== NOT EXECUTED 40058774: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 40058778: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 4005877c: 7f ff a3 6b call 40041528 <== NOT EXECUTED 40058780: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40058784: 10 80 00 08 b 400587a4 <_rename_r+0x190> <== NOT EXECUTED 40058788: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 4005878c: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 <== NOT EXECUTED 40058790: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 40058794: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 40058798: 7f ff a3 64 call 40041528 <== NOT EXECUTED 4005879c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 400587a0: 90 10 20 00 clr %o0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 400587a4: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 400587a8: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 400587ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400587b0: 02 80 00 61 be 40058934 <_rename_r+0x320> <== NOT EXECUTED 400587b4: 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 ); 400587b8: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 400587bc: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 400587c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400587c4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if ( result != 0 ) { 400587c8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 400587cc: 02 80 00 28 be 4005886c <_rename_r+0x258> <== NOT EXECUTED 400587d0: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 400587d4: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 400587d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400587dc: 02 80 00 09 be 40058800 <_rename_r+0x1ec> <== NOT EXECUTED 400587e0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 400587e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400587e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400587ec: 02 80 00 05 be 40058800 <_rename_r+0x1ec> <== NOT EXECUTED 400587f0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 400587f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400587f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 400587fc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40058800: 02 80 00 0d be 40058834 <_rename_r+0x220> <== NOT EXECUTED 40058804: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40058808: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 4005880c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058810: 22 80 00 09 be,a 40058834 <_rename_r+0x220> <== NOT EXECUTED 40058814: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058818: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4005881c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058820: 22 80 00 05 be,a 40058834 <_rename_r+0x220> <== NOT EXECUTED 40058824: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058828: 9f c0 40 00 call %g1 <== NOT EXECUTED 4005882c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40058830: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058834: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058838: 02 80 00 08 be 40058858 <_rename_r+0x244> <== NOT EXECUTED 4005883c: 01 00 00 00 nop <== NOT EXECUTED 40058840: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40058844: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058848: 02 80 00 04 be 40058858 <_rename_r+0x244> <== NOT EXECUTED 4005884c: 01 00 00 00 nop <== NOT EXECUTED 40058850: 9f c0 40 00 call %g1 <== NOT EXECUTED 40058854: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 40058858: 7f ff 96 61 call 4003e1dc <__errno> <== NOT EXECUTED 4005885c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40058860: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED 40058864: 81 c7 e0 08 ret <== NOT EXECUTED 40058868: 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 ) { 4005886c: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED 40058870: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 40058874: 02 80 00 26 be 4005890c <_rename_r+0x2f8> <== NOT EXECUTED 40058878: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 4005887c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40058880: 02 80 00 09 be 400588a4 <_rename_r+0x290> <== NOT EXECUTED 40058884: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40058888: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4005888c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058890: 02 80 00 05 be 400588a4 <_rename_r+0x290> <== NOT EXECUTED 40058894: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40058898: 9f c0 40 00 call %g1 <== NOT EXECUTED 4005889c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 400588a0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 400588a4: 02 80 00 0d be 400588d8 <_rename_r+0x2c4> <== NOT EXECUTED 400588a8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 400588ac: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400588b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400588b4: 22 80 00 09 be,a 400588d8 <_rename_r+0x2c4> <== NOT EXECUTED 400588b8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 400588bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400588c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400588c4: 22 80 00 05 be,a 400588d8 <_rename_r+0x2c4> <== NOT EXECUTED 400588c8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 400588cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 400588d0: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 400588d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 400588d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400588dc: 02 80 00 08 be 400588fc <_rename_r+0x2e8> <== NOT EXECUTED 400588e0: 01 00 00 00 nop <== NOT EXECUTED 400588e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400588e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400588ec: 02 80 00 04 be 400588fc <_rename_r+0x2e8> <== NOT EXECUTED 400588f0: 01 00 00 00 nop <== NOT EXECUTED 400588f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400588f8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 400588fc: 7f ff 96 38 call 4003e1dc <__errno> <== NOT EXECUTED 40058900: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40058904: 10 80 00 26 b 4005899c <_rename_r+0x388> <== NOT EXECUTED 40058908: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 4005890c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 40058910: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058914: 12 80 00 25 bne 400589a8 <_rename_r+0x394> <== NOT EXECUTED 40058918: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 4005891c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40058920: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058924: 02 80 00 05 be 40058938 <_rename_r+0x324> <== NOT EXECUTED 40058928: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4005892c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40058930: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 40058934: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40058938: 02 80 00 0d be 4005896c <_rename_r+0x358> <== NOT EXECUTED 4005893c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40058940: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40058944: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058948: 22 80 00 09 be,a 4005896c <_rename_r+0x358> <== NOT EXECUTED 4005894c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058950: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40058954: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058958: 22 80 00 05 be,a 4005896c <_rename_r+0x358> <== NOT EXECUTED 4005895c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058960: 9f c0 40 00 call %g1 <== NOT EXECUTED 40058964: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40058968: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 4005896c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058970: 02 80 00 08 be 40058990 <_rename_r+0x37c> <== NOT EXECUTED 40058974: 01 00 00 00 nop <== NOT EXECUTED 40058978: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4005897c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058980: 02 80 00 04 be 40058990 <_rename_r+0x37c> <== NOT EXECUTED 40058984: 01 00 00 00 nop <== NOT EXECUTED 40058988: 9f c0 40 00 call %g1 <== NOT EXECUTED 4005898c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40058990: 7f ff 96 13 call 4003e1dc <__errno> <== NOT EXECUTED 40058994: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40058998: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 4005899c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400589a0: 81 c7 e0 08 ret <== NOT EXECUTED 400589a4: 81 e8 00 00 restore <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 400589a8: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 400589ac: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 400589b0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400589b4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 400589b8: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 400589bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400589c0: 02 80 00 08 be 400589e0 <_rename_r+0x3cc> <== NOT EXECUTED 400589c4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 400589c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400589cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400589d0: 02 80 00 05 be 400589e4 <_rename_r+0x3d0> <== NOT EXECUTED 400589d4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 400589d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 400589dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 400589e0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 400589e4: 02 80 00 0d be 40058a18 <_rename_r+0x404> <== NOT EXECUTED 400589e8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 400589ec: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400589f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400589f4: 22 80 00 09 be,a 40058a18 <_rename_r+0x404> <== NOT EXECUTED 400589f8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 400589fc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40058a00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058a04: 22 80 00 05 be,a 40058a18 <_rename_r+0x404> <== NOT EXECUTED 40058a08: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058a0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40058a10: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40058a14: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40058a18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058a1c: 02 80 00 08 be 40058a3c <_rename_r+0x428> <== NOT EXECUTED 40058a20: 01 00 00 00 nop <== NOT EXECUTED 40058a24: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40058a28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40058a2c: 02 80 00 04 be 40058a3c <_rename_r+0x428> <== NOT EXECUTED 40058a30: 01 00 00 00 nop <== NOT EXECUTED 40058a34: 9f c0 40 00 call %g1 <== NOT EXECUTED 40058a38: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED return result; } 40058a3c: 81 c7 e0 08 ret <== NOT EXECUTED 40058a40: 81 e8 00 00 restore <== NOT EXECUTED 40008500 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 40008500: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40008504: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 40008508: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000850c: 7f ff ff c0 call 4000840c <== NOT EXECUTED 40008510: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40008514: 01 00 00 00 nop 4000d138 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 4000d138: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 4000d13c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000d140: 7f ff ff 58 call 4000cea0 <== NOT EXECUTED 4000d144: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4000d148: 01 00 00 00 nop 40025cd8 : #include int chdir( const char *pathname ) { 40025cd8: 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 ); 40025cdc: 40 00 7c 6b call 40044e88 40025ce0: 90 10 00 18 mov %i0, %o0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 40025ce4: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 40025ce8: 92 10 00 08 mov %o0, %o1 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 40025cec: 94 10 20 01 mov 1, %o2 40025cf0: 90 10 00 18 mov %i0, %o0 40025cf4: 96 10 00 10 mov %l0, %o3 40025cf8: 98 10 20 01 mov 1, %o4 40025cfc: 7f ff 83 bc call 40006bec 40025d00: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 40025d04: 80 a2 20 00 cmp %o0, 0 40025d08: 12 80 00 37 bne 40025de4 40025d0c: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 40025d10: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40025d14: 80 a0 60 00 cmp %g1, 0 40025d18: 12 80 00 0c bne 40025d48 40025d1c: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 40025d20: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40025d24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40025d28: 02 80 00 04 be 40025d38 <== NOT EXECUTED 40025d2c: 01 00 00 00 nop <== NOT EXECUTED 40025d30: 9f c0 40 00 call %g1 <== NOT EXECUTED 40025d34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40025d38: 40 00 61 29 call 4003e1dc <__errno> <== NOT EXECUTED 40025d3c: 01 00 00 00 nop <== NOT EXECUTED 40025d40: 10 80 00 14 b 40025d90 <== NOT EXECUTED 40025d44: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 40025d48: 9f c0 40 00 call %g1 40025d4c: 90 10 00 10 mov %l0, %o0 40025d50: 80 a2 20 01 cmp %o0, 1 40025d54: 02 80 00 12 be 40025d9c 40025d58: 03 10 01 8f sethi %hi(0x40063c00), %g1 rtems_filesystem_freenode( &loc ); 40025d5c: c2 07 bf f8 ld [ %fp + -8 ], %g1 40025d60: 80 a0 60 00 cmp %g1, 0 40025d64: 02 80 00 08 be 40025d84 40025d68: 01 00 00 00 nop 40025d6c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40025d70: 80 a0 60 00 cmp %g1, 0 40025d74: 02 80 00 04 be 40025d84 40025d78: 01 00 00 00 nop 40025d7c: 9f c0 40 00 call %g1 40025d80: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40025d84: 40 00 61 16 call 4003e1dc <__errno> 40025d88: 01 00 00 00 nop 40025d8c: 82 10 20 14 mov 0x14, %g1 ! 14 40025d90: c2 22 00 00 st %g1, [ %o0 ] 40025d94: 81 c7 e0 08 ret 40025d98: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 40025d9c: d0 00 60 e8 ld [ %g1 + 0xe8 ], %o0 40025da0: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 40025da4: 80 a0 60 00 cmp %g1, 0 40025da8: 22 80 00 09 be,a 40025dcc 40025dac: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40025db0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 40063c1c 40025db4: 80 a0 60 00 cmp %g1, 0 40025db8: 22 80 00 05 be,a 40025dcc 40025dbc: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40025dc0: 9f c0 40 00 call %g1 40025dc4: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 40025dc8: 03 10 01 8f sethi %hi(0x40063c00), %g1 40025dcc: d0 00 60 e8 ld [ %g1 + 0xe8 ], %o0 ! 40063ce8 40025dd0: 92 07 bf ec add %fp, -20, %o1 40025dd4: 90 02 20 04 add %o0, 4, %o0 40025dd8: 94 10 20 14 mov 0x14, %o2 40025ddc: 40 00 6d d3 call 40041528 40025de0: b0 10 20 00 clr %i0 return 0; } 40025de4: 81 c7 e0 08 ret 40025de8: 81 e8 00 00 restore 400068ac : int chmod( const char *path, mode_t mode ) { 400068ac: 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 ); 400068b0: 40 00 f9 76 call 40044e88 400068b4: 90 10 00 18 mov %i0, %o0 400068b8: a0 07 bf ec add %fp, -20, %l0 400068bc: 92 10 00 08 mov %o0, %o1 400068c0: 94 10 20 00 clr %o2 400068c4: 90 10 00 18 mov %i0, %o0 400068c8: 96 10 00 10 mov %l0, %o3 400068cc: 98 10 20 01 mov 1, %o4 400068d0: 40 00 00 c7 call 40006bec 400068d4: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 400068d8: 80 a2 20 00 cmp %o0, 0 400068dc: 12 80 00 24 bne 4000696c 400068e0: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 400068e4: 80 a0 60 00 cmp %g1, 0 400068e8: 32 80 00 10 bne,a 40006928 400068ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 rtems_filesystem_freenode( &loc ); 400068f0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 400068f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400068f8: 02 80 00 08 be 40006918 <== NOT EXECUTED 400068fc: 01 00 00 00 nop <== NOT EXECUTED 40006900: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40006904: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40006908: 02 80 00 04 be 40006918 <== NOT EXECUTED 4000690c: 01 00 00 00 nop <== NOT EXECUTED 40006910: 9f c0 40 00 call %g1 <== NOT EXECUTED 40006914: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 40006918: 40 00 de 31 call 4003e1dc <__errno> <== NOT EXECUTED 4000691c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40006920: 10 80 00 12 b 40006968 <== NOT EXECUTED 40006924: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 40006928: 80 a0 60 00 cmp %g1, 0 4000692c: 12 80 00 12 bne 40006974 40006930: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 40006934: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40006938: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000693c: 02 80 00 08 be 4000695c <== NOT EXECUTED 40006940: 01 00 00 00 nop <== NOT EXECUTED 40006944: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40006948: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000694c: 02 80 00 04 be 4000695c <== NOT EXECUTED 40006950: 01 00 00 00 nop <== NOT EXECUTED 40006954: 9f c0 40 00 call %g1 <== NOT EXECUTED 40006958: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000695c: 40 00 de 20 call 4003e1dc <__errno> <== NOT EXECUTED 40006960: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40006964: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40006968: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000696c: 81 c7 e0 08 ret 40006970: 81 e8 00 00 restore } result = (*loc.handlers->fchmod_h)( &loc, mode ); 40006974: 90 10 00 10 mov %l0, %o0 40006978: 9f c0 40 00 call %g1 4000697c: 93 32 60 10 srl %o1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 40006980: c2 07 bf f8 ld [ %fp + -8 ], %g1 40006984: 80 a0 60 00 cmp %g1, 0 40006988: 02 bf ff f9 be 4000696c 4000698c: b0 10 00 08 mov %o0, %i0 40006990: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40006994: 80 a0 60 00 cmp %g1, 0 40006998: 02 80 00 04 be 400069a8 4000699c: 01 00 00 00 nop 400069a0: 9f c0 40 00 call %g1 400069a4: 90 10 00 10 mov %l0, %o0 return result; } 400069a8: 81 c7 e0 08 ret 400069ac: 81 e8 00 00 restore 40025dec : int chown( const char *path, uid_t owner, gid_t group ) { 40025dec: 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 ) ) 40025df0: 40 00 7c 26 call 40044e88 40025df4: 90 10 00 18 mov %i0, %o0 40025df8: a0 07 bf ec add %fp, -20, %l0 40025dfc: 92 10 00 08 mov %o0, %o1 40025e00: 94 10 20 00 clr %o2 40025e04: 90 10 00 18 mov %i0, %o0 40025e08: 96 10 00 10 mov %l0, %o3 40025e0c: 98 10 20 01 mov 1, %o4 40025e10: 7f ff 83 77 call 40006bec 40025e14: b0 10 3f ff mov -1, %i0 40025e18: 80 a2 20 00 cmp %o0, 0 40025e1c: 12 80 00 10 bne 40025e5c 40025e20: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 40025e24: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 40025e28: 80 a0 60 00 cmp %g1, 0 40025e2c: 12 80 00 0e bne 40025e64 40025e30: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 40025e34: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40025e38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40025e3c: 02 80 00 04 be 40025e4c <== NOT EXECUTED 40025e40: 01 00 00 00 nop <== NOT EXECUTED 40025e44: 9f c0 40 00 call %g1 <== NOT EXECUTED 40025e48: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40025e4c: 40 00 60 e4 call 4003e1dc <__errno> <== NOT EXECUTED 40025e50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40025e54: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40025e58: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40025e5c: 81 c7 e0 08 ret 40025e60: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 40025e64: 95 2e a0 10 sll %i2, 0x10, %o2 40025e68: 93 32 60 10 srl %o1, 0x10, %o1 40025e6c: 95 32 a0 10 srl %o2, 0x10, %o2 40025e70: 9f c0 40 00 call %g1 40025e74: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 40025e78: c2 07 bf f8 ld [ %fp + -8 ], %g1 40025e7c: 80 a0 60 00 cmp %g1, 0 40025e80: 02 bf ff f7 be 40025e5c 40025e84: b0 10 00 08 mov %o0, %i0 40025e88: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40025e8c: 80 a0 60 00 cmp %g1, 0 40025e90: 02 80 00 04 be 40025ea0 40025e94: 01 00 00 00 nop 40025e98: 9f c0 40 00 call %g1 40025e9c: 90 10 00 10 mov %l0, %o0 return result; } 40025ea0: 81 c7 e0 08 ret 40025ea4: 81 e8 00 00 restore 40025ea8 : #include int chroot( const char *pathname ) { 40025ea8: 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) { 40025eac: 23 10 01 8f sethi %hi(0x40063c00), %l1 40025eb0: e0 04 60 e8 ld [ %l1 + 0xe8 ], %l0 ! 40063ce8 40025eb4: 03 10 01 9e sethi %hi(0x40067800), %g1 40025eb8: 82 10 62 38 or %g1, 0x238, %g1 ! 40067a38 40025ebc: 80 a4 00 01 cmp %l0, %g1 40025ec0: 12 80 00 0e bne 40025ef8 40025ec4: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 40025ec8: 40 00 06 71 call 4002788c 40025ecc: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 40025ed0: c2 04 60 e8 ld [ %l1 + 0xe8 ], %g1 40025ed4: 80 a0 40 10 cmp %g1, %l0 40025ed8: 12 80 00 08 bne 40025ef8 40025edc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 40025ee0: 40 00 60 bf call 4003e1dc <__errno> <== NOT EXECUTED 40025ee4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40025ee8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40025eec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40025ef0: 81 c7 e0 08 ret <== NOT EXECUTED 40025ef4: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 40025ef8: 7f ff ff 78 call 40025cd8 40025efc: 90 10 00 18 mov %i0, %o0 if (result) { 40025f00: 80 a2 20 00 cmp %o0, 0 40025f04: 12 80 00 0b bne 40025f30 40025f08: 11 10 01 6c sethi %hi(0x4005b000), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 40025f0c: 92 10 20 01 mov 1, %o1 40025f10: 90 12 23 08 or %o0, 0x308, %o0 40025f14: 94 10 20 00 clr %o2 40025f18: 96 07 bf ec add %fp, -20, %o3 40025f1c: 7f ff 83 34 call 40006bec 40025f20: 98 10 20 00 clr %o4 40025f24: 80 a2 20 00 cmp %o0, 0 40025f28: 02 80 00 0a be 40025f50 40025f2c: 03 10 01 8f sethi %hi(0x40063c00), %g1 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 40025f30: 40 00 60 ab call 4003e1dc <__errno> <== NOT EXECUTED 40025f34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40025f38: 40 00 60 a9 call 4003e1dc <__errno> <== NOT EXECUTED 40025f3c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 40025f40: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 40025f44: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 40025f48: 81 c7 e0 08 ret <== NOT EXECUTED 40025f4c: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 40025f50: d0 00 60 e8 ld [ %g1 + 0xe8 ], %o0 40025f54: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 40025f58: 80 a0 60 00 cmp %g1, 0 40025f5c: 22 80 00 09 be,a 40025f80 40025f60: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40025f64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 40063c1c 40025f68: 80 a0 60 00 cmp %g1, 0 40025f6c: 22 80 00 05 be,a 40025f80 40025f70: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40025f74: 9f c0 40 00 call %g1 40025f78: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 40025f7c: 03 10 01 8f sethi %hi(0x40063c00), %g1 40025f80: d0 00 60 e8 ld [ %g1 + 0xe8 ], %o0 ! 40063ce8 40025f84: 92 07 bf ec add %fp, -20, %o1 40025f88: 94 10 20 14 mov 0x14, %o2 40025f8c: 90 02 20 18 add %o0, 0x18, %o0 40025f90: 40 00 6d 66 call 40041528 40025f94: b0 10 20 00 clr %i0 return 0; } 40025f98: 81 c7 e0 08 ret 40025f9c: 81 e8 00 00 restore 4000904c : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 4000904c: 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; 40009050: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 40009054: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 40009058: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 4000905c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 40009060: 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; 40009064: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 40009068: 94 07 bf f4 add %fp, -12, %o2 4000906c: 40 00 03 40 call 40009d6c 40009070: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 40009074: 80 a2 20 00 cmp %o0, 0 40009078: 02 80 00 05 be 4000908c 4000907c: 01 00 00 00 nop return rtems_deviceio_errno(status); 40009080: 40 00 00 3c call 40009170 <== NOT EXECUTED 40009084: 01 00 00 00 nop <== NOT EXECUTED 40009088: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 4000908c: 81 c7 e0 08 ret 40009090: 81 e8 00 00 restore 400090a0 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 400090a0: 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; 400090a4: e0 06 c0 00 ld [ %i3 ], %l0 if (!device_name_table) 400090a8: 80 a4 20 00 cmp %l0, 0 400090ac: 02 80 00 05 be 400090c0 400090b0: 27 10 00 39 sethi %hi(0x4000e400), %l3 400090b4: a2 10 20 00 clr %l1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 400090b8: 10 80 00 24 b 40009148 400090bc: 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 ); 400090c0: 40 00 07 00 call 4000acc0 <__errno> <== NOT EXECUTED 400090c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400090c8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 400090cc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400090d0: 81 c7 e0 08 ret <== NOT EXECUTED 400090d4: 81 e8 00 00 restore <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 400090d8: e4 04 00 00 ld [ %l0 ], %l2 400090dc: 80 a4 a0 00 cmp %l2, 0 400090e0: 02 80 00 19 be 40009144 400090e4: a2 04 60 01 inc %l1 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 400090e8: 92 10 00 12 mov %l2, %o1 400090ec: 40 00 0a 95 call 4000bb40 400090f0: 94 10 00 19 mov %i1, %o2 400090f4: 80 a2 20 00 cmp %o0, 0 400090f8: 32 80 00 14 bne,a 40009148 400090fc: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 40009100: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 40009104: 80 a0 60 00 cmp %g1, 0 40009108: 32 80 00 10 bne,a 40009148 4000910c: 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; 40009110: 03 10 00 39 sethi %hi(0x4000e400), %g1 40009114: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 4000e724 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 40009118: e0 26 c0 00 st %l0, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 4000911c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 40009120: 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; 40009124: 03 10 00 39 sethi %hi(0x4000e400), %g1 40009128: 82 10 62 d8 or %g1, 0x2d8, %g1 ! 4000e6d8 4000912c: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 40009130: 03 10 00 39 sethi %hi(0x4000e400), %g1 40009134: 82 10 62 90 or %g1, 0x290, %g1 ! 4000e690 40009138: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 4000913c: 81 c7 e0 08 ret 40009140: 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++) { 40009144: a0 04 20 14 add %l0, 0x14, %l0 40009148: c2 04 c0 00 ld [ %l3 ], %g1 4000914c: 80 a4 40 01 cmp %l1, %g1 40009150: 0a bf ff e2 bcs 400090d8 40009154: 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 ); 40009158: 40 00 06 da call 4000acc0 <__errno> 4000915c: b0 10 3f ff mov -1, %i0 40009160: 82 10 20 02 mov 2, %g1 40009164: c2 22 00 00 st %g1, [ %o0 ] } 40009168: 81 c7 e0 08 ret 4000916c: 81 e8 00 00 restore 40001b58 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 40001b58: 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( 40001b5c: 23 10 00 39 sethi %hi(0x4000e400), %l1 40001b60: c2 04 61 a8 ld [ %l1 + 0x1a8 ], %g1 ! 4000e5a8 40001b64: 85 28 60 04 sll %g1, 4, %g2 40001b68: 83 28 60 02 sll %g1, 2, %g1 40001b6c: 40 00 1b b9 call 40008a50 <_Workspace_Allocate> 40001b70: 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) 40001b74: a0 92 20 00 orcc %o0, 0, %l0 40001b78: 12 80 00 08 bne 40001b98 40001b7c: c2 04 61 a8 ld [ %l1 + 0x1a8 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 40001b80: 40 00 24 50 call 4000acc0 <__errno> <== NOT EXECUTED 40001b84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40001b88: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 40001b8c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40001b90: 81 c7 e0 08 ret <== NOT EXECUTED 40001b94: 81 e8 00 00 restore <== NOT EXECUTED memset( 40001b98: 92 10 20 00 clr %o1 40001b9c: 85 28 60 04 sll %g1, 4, %g2 40001ba0: 83 28 60 02 sll %g1, 2, %g1 40001ba4: 40 00 26 a7 call 4000b640 40001ba8: 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; 40001bac: 03 10 00 39 sethi %hi(0x4000e400), %g1 40001bb0: 82 10 62 d8 or %g1, 0x2d8, %g1 ! 4000e6d8 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; 40001bb4: 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; 40001bb8: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 40001bbc: 03 10 00 39 sethi %hi(0x4000e400), %g1 40001bc0: 82 10 62 90 or %g1, 0x290, %g1 ! 4000e690 40001bc4: 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; } 40001bc8: 81 c7 e0 08 ret 40001bcc: 91 e8 20 00 restore %g0, 0, %o0 40001d48 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 40001d48: 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; 40001d4c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 40001d50: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 40001d54: d2 00 60 0c ld [ %g1 + 0xc ], %o1 40001d58: 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; 40001d5c: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 40001d60: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 40001d64: 40 00 10 09 call 40005d88 40001d68: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 40001d6c: 80 a2 20 00 cmp %o0, 0 40001d70: 22 80 00 06 be,a 40001d88 40001d74: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 40001d78: 40 00 1c fe call 40009170 <== NOT EXECUTED 40001d7c: 01 00 00 00 nop <== NOT EXECUTED 40001d80: 81 c7 e0 08 ret <== NOT EXECUTED 40001d84: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 40001d88: b0 10 00 08 mov %o0, %i0 40001d8c: 81 c7 e0 08 ret 40001d90: 81 e8 00 00 restore 40001bd0 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 40001bd0: 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') && 40001bd4: c2 4e 00 00 ldsb [ %i0 ], %g1 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 40001bd8: 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') && 40001bdc: 80 a0 60 64 cmp %g1, 0x64 40001be0: 12 80 00 0e bne 40001c18 40001be4: aa 10 00 19 mov %i1, %l5 40001be8: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 40001bec: 80 a0 60 65 cmp %g1, 0x65 40001bf0: 12 80 00 0b bne 40001c1c 40001bf4: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 40001bf8: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 40001bfc: 80 a0 60 76 cmp %g1, 0x76 40001c00: 12 80 00 07 bne 40001c1c 40001c04: 03 00 00 3c sethi %hi(0xf000), %g1 40001c08: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 40001c0c: 80 a0 60 00 cmp %g1, 0 40001c10: 02 80 00 4a be 40001d38 40001c14: b0 10 20 00 clr %i0 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 40001c18: 03 00 00 3c sethi %hi(0xf000), %g1 40001c1c: b2 0e 40 01 and %i1, %g1, %i1 40001c20: 03 00 00 08 sethi %hi(0x2000), %g1 40001c24: 80 a6 40 01 cmp %i1, %g1 40001c28: 02 80 00 09 be 40001c4c 40001c2c: 03 00 00 18 sethi %hi(0x6000), %g1 40001c30: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 40001c34: 22 80 00 07 be,a 40001c50 <== NOT EXECUTED 40001c38: e2 07 00 00 ld [ %i4 ], %l1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 40001c3c: 40 00 24 21 call 4000acc0 <__errno> <== NOT EXECUTED 40001c40: 01 00 00 00 nop <== NOT EXECUTED 40001c44: 10 80 00 29 b 40001ce8 <== NOT EXECUTED 40001c48: 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; 40001c4c: e2 07 00 00 ld [ %i4 ], %l1 if (!device_name_table) 40001c50: 80 a4 60 00 cmp %l1, 0 40001c54: 02 80 00 08 be 40001c74 40001c58: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 40001c5c: 33 10 00 39 sethi %hi(0x4000e400), %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) 40001c60: 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++){ 40001c64: 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) 40001c68: a4 10 3f ff mov -1, %l2 40001c6c: 10 80 00 15 b 40001cc0 40001c70: a6 10 20 00 clr %l3 rtems_set_errno_and_return_minus_one( EFAULT ); 40001c74: 40 00 24 13 call 4000acc0 <__errno> <== NOT EXECUTED 40001c78: 01 00 00 00 nop <== NOT EXECUTED 40001c7c: 10 80 00 1b b 40001ce8 <== NOT EXECUTED 40001c80: 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) 40001c84: d2 05 00 00 ld [ %l4 ], %o1 40001c88: 80 a2 60 00 cmp %o1, 0 40001c8c: 02 80 00 0b be 40001cb8 40001c90: a8 05 20 14 add %l4, 0x14, %l4 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 40001c94: 40 00 27 25 call 4000b928 40001c98: 01 00 00 00 nop 40001c9c: 80 a2 20 00 cmp %o0, 0 40001ca0: 32 80 00 08 bne,a 40001cc0 40001ca4: a6 04 e0 01 inc %l3 rtems_set_errno_and_return_minus_one( EEXIST ); 40001ca8: 40 00 24 06 call 4000acc0 <__errno> <== NOT EXECUTED 40001cac: 01 00 00 00 nop <== NOT EXECUTED 40001cb0: 10 80 00 0e b 40001ce8 <== NOT EXECUTED 40001cb4: 82 10 20 11 mov 0x11, %g1 ! 11 <== NOT EXECUTED 40001cb8: 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++){ 40001cbc: a6 04 e0 01 inc %l3 40001cc0: c2 06 40 00 ld [ %i1 ], %g1 40001cc4: 80 a4 c0 01 cmp %l3, %g1 40001cc8: 0a bf ff ef bcs 40001c84 40001ccc: 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) 40001cd0: 80 a4 bf ff cmp %l2, -1 40001cd4: 12 80 00 08 bne 40001cf4 40001cd8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 40001cdc: 40 00 23 f9 call 4000acc0 <__errno> <== NOT EXECUTED 40001ce0: 01 00 00 00 nop <== NOT EXECUTED 40001ce4: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40001ce8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40001cec: 81 c7 e0 08 ret <== NOT EXECUTED 40001cf0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED _ISR_Disable(level); 40001cf4: 7f ff ff 70 call 40001ab4 40001cf8: 01 00 00 00 nop 40001cfc: a6 10 00 08 mov %o0, %l3 device_name_table[slot].device_name = (char *)path; 40001d00: 83 2c a0 04 sll %l2, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 40001d04: 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; 40001d08: a5 2c a0 02 sll %l2, 2, %l2 40001d0c: a4 04 80 01 add %l2, %g1, %l2 40001d10: e0 24 40 12 st %l0, [ %l1 + %l2 ] device_name_table[slot].device_name_length = strlen(path); 40001d14: 40 00 27 56 call 4000ba6c 40001d18: 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; 40001d1c: 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); 40001d20: d0 24 60 04 st %o0, [ %l1 + 4 ] device_name_table[slot].major = major; 40001d24: f4 24 60 08 st %i2, [ %l1 + 8 ] device_name_table[slot].minor = minor; 40001d28: f6 24 60 0c st %i3, [ %l1 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 40001d2c: b0 10 20 00 clr %i0 40001d30: 7f ff ff 65 call 40001ac4 40001d34: 90 10 00 13 mov %l3, %o0 return 0; } 40001d38: 81 c7 e0 08 ret 40001d3c: 81 e8 00 00 restore 40001d94 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 40001d94: 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; 40001d98: 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; 40001d9c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 40001da0: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 40001da4: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 40001da8: d2 00 60 0c ld [ %g1 + 0xc ], %o1 40001dac: 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; 40001db0: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 40001db4: 94 07 bf f4 add %fp, -12, %o2 40001db8: 40 00 10 3f call 40005eb4 40001dbc: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 40001dc0: 80 a2 20 00 cmp %o0, 0 40001dc4: 02 80 00 05 be 40001dd8 40001dc8: 01 00 00 00 nop return rtems_deviceio_errno(status); 40001dcc: 40 00 1c e9 call 40009170 <== NOT EXECUTED 40001dd0: 01 00 00 00 nop <== NOT EXECUTED 40001dd4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 40001dd8: 81 c7 e0 08 ret 40001ddc: 81 e8 00 00 restore 40001de0 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 40001de0: 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; 40001de4: 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; 40001de8: 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; 40001dec: 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; 40001df0: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 40001df4: 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; 40001df8: 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( 40001dfc: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 40001e00: 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; 40001e04: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 40001e08: 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; 40001e0c: 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( 40001e10: 40 00 10 3f call 40005f0c <== NOT EXECUTED 40001e14: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 40001e18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40001e1c: 22 80 00 06 be,a 40001e34 <== NOT EXECUTED 40001e20: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 40001e24: 40 00 1c d3 call 40009170 <== NOT EXECUTED 40001e28: 01 00 00 00 nop <== NOT EXECUTED 40001e2c: 81 c7 e0 08 ret <== NOT EXECUTED 40001e30: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 40001e34: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 40001e38: 81 c7 e0 08 ret <== NOT EXECUTED 40001e3c: 81 e8 00 00 restore <== NOT EXECUTED 40001e40 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 40001e40: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 40001e44: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 40001e48: 80 a0 60 00 cmp %g1, 0 40001e4c: 32 80 00 08 bne,a 40001e6c 40001e50: c6 10 60 10 lduh [ %g1 + 0x10 ], %g3 rtems_set_errno_and_return_minus_one( EFAULT ); 40001e54: 40 00 23 9b call 4000acc0 <__errno> <== NOT EXECUTED 40001e58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40001e5c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 40001e60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40001e64: 81 c7 e0 08 ret <== NOT EXECUTED 40001e68: 81 e8 00 00 restore <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 40001e6c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 40001e70: c2 00 60 08 ld [ %g1 + 8 ], %g1 buf->st_mode = the_dev->mode; 40001e74: 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 ); 40001e78: c2 26 60 18 st %g1, [ %i1 + 0x18 ] 40001e7c: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; return 0; } 40001e80: 81 c7 e0 08 ret 40001e84: 91 e8 20 00 restore %g0, 0, %o0 40001e88 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 40001e88: 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; 40001e8c: 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; 40001e90: 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; 40001e94: 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; 40001e98: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 40001e9c: 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; 40001ea0: 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( 40001ea4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 40001ea8: 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; 40001eac: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 40001eb0: 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; 40001eb4: 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( 40001eb8: 40 00 10 2b call 40005f64 40001ebc: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 40001ec0: 80 a2 20 00 cmp %o0, 0 40001ec4: 22 80 00 06 be,a 40001edc 40001ec8: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 40001ecc: 40 00 1c a9 call 40009170 <== NOT EXECUTED 40001ed0: 01 00 00 00 nop <== NOT EXECUTED 40001ed4: 81 c7 e0 08 ret <== NOT EXECUTED 40001ed8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 40001edc: b0 10 00 08 mov %o0, %i0 40001ee0: 81 c7 e0 08 ret 40001ee4: 81 e8 00 00 restore 4000b88c : */ int device_close( rtems_libio_t *iop ) { 4000b88c: 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; 4000b890: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 4000b894: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 4000b898: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 4000b89c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 4000b8a0: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000b8a4: 94 07 bf f4 add %fp, -12, %o2 4000b8a8: 40 00 03 ee call 4000c860 4000b8ac: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 4000b8b0: 80 a2 20 00 cmp %o0, 0 4000b8b4: 02 80 00 05 be 4000b8c8 4000b8b8: 01 00 00 00 nop return rtems_deviceio_errno(status); 4000b8bc: 40 00 05 58 call 4000ce1c <== NOT EXECUTED 4000b8c0: 01 00 00 00 nop <== NOT EXECUTED 4000b8c4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 4000b8c8: 81 c7 e0 08 ret 4000b8cc: 81 e8 00 00 restore 4000b78c : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4000b78c: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 4000b790: 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; 4000b794: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 4000b798: 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; 4000b79c: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4000b7a0: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000b7a4: 40 00 04 45 call 4000c8b8 4000b7a8: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000b7ac: 80 a2 20 00 cmp %o0, 0 4000b7b0: 22 80 00 06 be,a 4000b7c8 4000b7b4: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 4000b7b8: 40 00 05 99 call 4000ce1c <== NOT EXECUTED 4000b7bc: 01 00 00 00 nop <== NOT EXECUTED 4000b7c0: 81 c7 e0 08 ret <== NOT EXECUTED 4000b7c4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 4000b7c8: b0 10 00 08 mov %o0, %i0 4000b7cc: 81 c7 e0 08 ret 4000b7d0: 81 e8 00 00 restore 4000b8d0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4000b8d0: 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; 4000b8d4: 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; 4000b8d8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 4000b8dc: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 4000b8e0: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 4000b8e4: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 4000b8e8: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000b8ec: 94 07 bf f4 add %fp, -12, %o2 4000b8f0: 40 00 04 08 call 4000c910 4000b8f4: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000b8f8: 80 a2 20 00 cmp %o0, 0 4000b8fc: 02 80 00 05 be 4000b910 4000b900: 01 00 00 00 nop return rtems_deviceio_errno(status); 4000b904: 40 00 05 46 call 4000ce1c <== NOT EXECUTED 4000b908: 01 00 00 00 nop <== NOT EXECUTED 4000b90c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 4000b910: 81 c7 e0 08 ret 4000b914: 81 e8 00 00 restore 4000b830 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4000b830: 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; 4000b834: 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; 4000b838: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4000b83c: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 4000b840: 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; 4000b844: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 4000b848: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 4000b84c: 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; 4000b850: 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; 4000b854: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 4000b858: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 4000b85c: 40 00 04 43 call 4000c968 <== NOT EXECUTED 4000b860: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000b864: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000b868: 22 80 00 06 be,a 4000b880 <== NOT EXECUTED 4000b86c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 4000b870: 40 00 05 6b call 4000ce1c <== NOT EXECUTED 4000b874: 01 00 00 00 nop <== NOT EXECUTED 4000b878: 81 c7 e0 08 ret <== NOT EXECUTED 4000b87c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4000b880: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 4000b884: 81 c7 e0 08 ret <== NOT EXECUTED 4000b888: 81 e8 00 00 restore <== NOT EXECUTED 4000b7d4 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 4000b7d4: 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; 4000b7d8: 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; 4000b7dc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 4000b7e0: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 4000b7e4: 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; 4000b7e8: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 4000b7ec: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 4000b7f0: 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; 4000b7f4: 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; 4000b7f8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 4000b7fc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000b800: 40 00 04 70 call 4000c9c0 4000b804: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000b808: 80 a2 20 00 cmp %o0, 0 4000b80c: 22 80 00 06 be,a 4000b824 4000b810: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 4000b814: 40 00 05 82 call 4000ce1c <== NOT EXECUTED 4000b818: 01 00 00 00 nop <== NOT EXECUTED 4000b81c: 81 c7 e0 08 ret <== NOT EXECUTED 4000b820: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4000b824: b0 10 00 08 mov %o0, %i0 4000b828: 81 c7 e0 08 ret 4000b82c: 81 e8 00 00 restore 40003bd8 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 40003bd8: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 40003bdc: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 40003be0: 80 a0 60 00 cmp %g1, 0 40003be4: 02 80 00 1a be 40003c4c 40003be8: a0 10 00 18 mov %i0, %l0 rtems_interrupt_disable (level); 40003bec: 7f ff f8 2b call 40001c98 <== NOT EXECUTED 40003bf0: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 40003bf4: 10 80 00 0f b 40003c30 <== NOT EXECUTED 40003bf8: a2 10 20 02 mov 2, %l1 ! 2 <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 40003bfc: 7f ff f8 2b call 40001ca8 <== NOT EXECUTED 40003c00: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 40003c04: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 40003c08: 92 10 20 00 clr %o1 <== NOT EXECUTED 40003c0c: 40 00 06 58 call 4000556c <== NOT EXECUTED 40003c10: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 40003c14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003c18: 02 80 00 04 be 40003c28 <== NOT EXECUTED 40003c1c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 40003c20: 40 00 07 fa call 40005c08 <== NOT EXECUTED 40003c24: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 40003c28: 7f ff f8 1c call 40001c98 <== NOT EXECUTED 40003c2c: 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) { 40003c30: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED 40003c34: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 40003c38: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003c3c: 32 bf ff f0 bne,a 40003bfc <== NOT EXECUTED 40003c40: 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); 40003c44: 7f ff f8 19 call 40001ca8 <== NOT EXECUTED 40003c48: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 40003c4c: 81 c7 e0 08 ret 40003c50: 81 e8 00 00 restore 40002ed4 : int dup2( int fildes, int fildes2 ) { 40002ed4: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 40002ed8: a0 07 bf b8 add %fp, -72, %l0 40002edc: 90 10 00 18 mov %i0, %o0 40002ee0: 40 00 01 dc call 40003650 40002ee4: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 40002ee8: 80 a2 3f ff cmp %o0, -1 40002eec: 02 80 00 0e be 40002f24 40002ef0: 90 10 3f ff mov -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 40002ef4: 92 10 00 10 mov %l0, %o1 40002ef8: 40 00 01 d6 call 40003650 40002efc: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 40002f00: 80 a2 3f ff cmp %o0, -1 40002f04: 02 80 00 07 be 40002f20 40002f08: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 40002f0c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 40002f10: 40 00 00 a1 call 40003194 <== NOT EXECUTED 40002f14: 92 10 20 00 clr %o1 <== NOT EXECUTED 40002f18: 81 c7 e0 08 ret <== NOT EXECUTED 40002f1c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 40002f20: 90 10 3f ff mov -1, %o0 } 40002f24: b0 10 00 08 mov %o0, %i0 40002f28: 81 c7 e0 08 ret 40002f2c: 81 e8 00 00 restore 40003624 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 40003624: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 40003628: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 4000362c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 40003630: 02 80 00 1c be 400036a0 <== NOT EXECUTED 40003634: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40003638: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 4000363c: c4 00 62 04 ld [ %g1 + 0x204 ], %g2 ! 4001aa04 <__ctype_ptr__> <== NOT EXECUTED 40003640: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED 40003644: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 40003648: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 4000364c: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 40003650: 22 80 00 15 be,a 400036a4 <== NOT EXECUTED 40003654: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 40003658: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED 4000365c: 02 80 00 11 be 400036a0 <== NOT EXECUTED 40003660: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 40003664: 02 80 00 10 be 400036a4 <== NOT EXECUTED 40003668: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; 4000366c: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED echobuf[1] = c ^ 0x40; 40003670: 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] = '^'; 40003674: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 40003678: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 4000367c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 40003680: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 40003684: 7f ff ff 39 call 40003368 <== NOT EXECUTED 40003688: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 4000368c: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 40003690: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 40003694: 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')) { 40003698: 81 c7 e0 08 ret <== NOT EXECUTED 4000369c: 81 e8 00 00 restore <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 400036a0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 400036a4: 7f ff ff 7d call 40003498 <== NOT EXECUTED 400036a8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 400036ac: 81 c7 e0 08 ret <== NOT EXECUTED 400036b0: 81 e8 00 00 restore <== NOT EXECUTED 400265e0 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 400265e0: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 400265e4: d0 00 63 d4 ld [ %g1 + 0x3d4 ], %o0 ! 400677d4 <== NOT EXECUTED 400265e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400265ec: 02 80 00 05 be 40026600 <== NOT EXECUTED 400265f0: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 400265f4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 400265f8: 40 00 5f 51 call 4003e33c <== NOT EXECUTED 400265fc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026600: 81 c3 e0 08 retl <== NOT EXECUTED 40026604: 01 00 00 00 nop 40026608 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 40026608: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 4002660c: d0 00 62 ec ld [ %g1 + 0x2ec ], %o0 ! 400676ec <== NOT EXECUTED 40026610: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026614: 02 80 00 05 be 40026628 <== NOT EXECUTED 40026618: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 4002661c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40026620: 40 00 5f 47 call 4003e33c <== NOT EXECUTED 40026624: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026628: 81 c3 e0 08 retl <== NOT EXECUTED 4002662c: 01 00 00 00 nop 400036b4 : * 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) { 400036b4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 400036b8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 400036bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400036c0: 02 80 00 0a be 400036e8 <== NOT EXECUTED 400036c4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 400036c8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 400036cc: 02 80 00 7a be 400038b4 <== NOT EXECUTED 400036d0: 25 10 00 6a sethi %hi(0x4001a800), %l2 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 400036d4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 400036d8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 400036dc: 32 80 00 05 bne,a 400036f0 <== NOT EXECUTED 400036e0: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED tty->ccount = 0; 400036e4: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 400036e8: 81 c7 e0 08 ret <== NOT EXECUTED 400036ec: 81 e8 00 00 restore <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { 400036f0: 12 80 00 71 bne 400038b4 <== NOT EXECUTED 400036f4: 25 10 00 6a sethi %hi(0x4001a800), %l2 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 400036f8: 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; 400036fc: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 40003700: 7f ff ff c9 call 40003624 <== NOT EXECUTED 40003704: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 40003708: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); 4000370c: 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) 40003710: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 40003714: 02 bf ff f5 be 400036e8 <== NOT EXECUTED 40003718: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 4000371c: 30 80 00 0f b,a 40003758 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 40003720: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 40003724: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 40003728: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 4000372c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 40003730: 02 80 00 5c be 400038a0 <== NOT EXECUTED 40003734: e2 08 80 03 ldub [ %g2 + %g3 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 40003738: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 4000373c: 32 80 00 09 bne,a 40003760 <== NOT EXECUTED 40003740: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 40003744: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 40003748: 32 80 00 06 bne,a 40003760 <== NOT EXECUTED 4000374c: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 40003750: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED 40003754: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED 40003758: 7f ff ff b3 call 40003624 <== NOT EXECUTED 4000375c: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == '\t') { 40003760: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 40003764: 32 80 00 2a bne,a 4000380c <== NOT EXECUTED 40003768: 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) 4000376c: 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; 40003770: 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)) { 40003774: da 04 80 00 ld [ %l2 ], %o5 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 40003778: 10 80 00 13 b 400037c4 <== NOT EXECUTED 4000377c: 84 10 20 00 clr %g2 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { 40003780: c8 09 00 02 ldub [ %g4 + %g2 ], %g4 <== NOT EXECUTED 40003784: 80 a1 20 09 cmp %g4, 9 <== NOT EXECUTED 40003788: 12 80 00 04 bne 40003798 <== NOT EXECUTED 4000378c: 98 03 40 04 add %o5, %g4, %o4 <== NOT EXECUTED col = (col | 7) + 1; 40003790: 10 80 00 0b b 400037bc <== NOT EXECUTED 40003794: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED } else if (iscntrl (c)) { 40003798: c8 0b 20 01 ldub [ %o4 + 1 ], %g4 <== NOT EXECUTED 4000379c: 80 89 20 20 btst 0x20, %g4 <== NOT EXECUTED 400037a0: 22 80 00 08 be,a 400037c0 <== NOT EXECUTED 400037a4: a2 04 60 01 inc %l1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 400037a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400037ac: 32 80 00 05 bne,a 400037c0 <== NOT EXECUTED 400037b0: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 400037b4: 10 80 00 04 b 400037c4 <== NOT EXECUTED 400037b8: 84 00 a0 01 inc %g2 <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 400037bc: a2 04 60 01 inc %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 400037c0: 84 00 a0 01 inc %g2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 400037c4: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 400037c8: 32 bf ff ee bne,a 40003780 <== NOT EXECUTED 400037cc: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 400037d0: 10 80 00 08 b 400037f0 <== NOT EXECUTED 400037d4: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 400037d8: 7f ff fe e4 call 40003368 <== NOT EXECUTED 400037dc: 01 00 00 00 nop <== NOT EXECUTED tty->column--; 400037e0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 400037e4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 400037e8: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 400037ec: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 400037f0: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 400037f4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 400037f8: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 400037fc: 14 bf ff f7 bg 400037d8 <== NOT EXECUTED 40003800: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 40003804: 10 80 00 28 b 400038a4 <== NOT EXECUTED 40003808: 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)) { 4000380c: a2 04 60 01 inc %l1 <== NOT EXECUTED 40003810: c4 08 80 11 ldub [ %g2 + %l1 ], %g2 <== NOT EXECUTED 40003814: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 40003818: 22 80 00 10 be,a 40003858 <== NOT EXECUTED 4000381c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 40003820: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 40003824: 22 80 00 0d be,a 40003858 <== NOT EXECUTED 40003828: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 4000382c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 40003830: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 40003834: 7f ff fe cd call 40003368 <== NOT EXECUTED 40003838: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 4000383c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 40003840: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003844: 22 80 00 05 be,a 40003858 <== NOT EXECUTED 40003848: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED tty->column--; 4000384c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40003850: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 40003854: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 40003858: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 4000385c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 40003860: 02 80 00 07 be 4000387c <== NOT EXECUTED 40003864: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 40003868: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 4000386c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 40003870: 02 80 00 0d be 400038a4 <== NOT EXECUTED 40003874: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 40003878: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 4000387c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 40003880: 7f ff fe ba call 40003368 <== NOT EXECUTED 40003884: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 40003888: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 4000388c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003890: 02 80 00 05 be 400038a4 <== NOT EXECUTED 40003894: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 40003898: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000389c: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } } } if (!lineFlag) 400038a0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 400038a4: 32 80 00 0a bne,a 400038cc <== NOT EXECUTED 400038a8: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 400038ac: 81 c7 e0 08 ret <== NOT EXECUTED 400038b0: 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); 400038b4: 27 10 00 66 sethi %hi(0x40019800), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 400038b8: 29 10 00 66 sethi %hi(0x40019800), %l4 <== NOT EXECUTED 400038bc: a4 14 a2 04 or %l2, 0x204, %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); 400038c0: a6 14 e3 98 or %l3, 0x398, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 400038c4: a8 15 23 90 or %l4, 0x390, %l4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 400038c8: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 400038cc: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 400038d0: 32 bf ff 94 bne,a 40003720 <== NOT EXECUTED 400038d4: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 400038d8: 81 c7 e0 08 ret <== NOT EXECUTED 400038dc: 81 e8 00 00 restore <== NOT EXECUTED 40038a1c : #include int fchdir( int fd ) { 40038a1c: 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 ); 40038a20: 03 10 01 8e sethi %hi(0x40063800), %g1 <== NOT EXECUTED 40038a24: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 400639f4 <== NOT EXECUTED 40038a28: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 40038a2c: 1a 80 00 0c bcc 40038a5c <== NOT EXECUTED 40038a30: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 40038a34: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED 40038a38: e4 00 61 d8 ld [ %g1 + 0x1d8 ], %l2 ! 400679d8 <== NOT EXECUTED 40038a3c: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 40038a40: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 40038a44: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 40038a48: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 40038a4c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 40038a50: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 40038a54: 12 80 00 06 bne 40038a6c <== NOT EXECUTED 40038a58: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 40038a5c: 40 00 15 e0 call 4003e1dc <__errno> <== NOT EXECUTED 40038a60: 01 00 00 00 nop <== NOT EXECUTED 40038a64: 10 80 00 1b b 40038ad0 <== NOT EXECUTED 40038a68: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 40038a6c: 32 80 00 06 bne,a 40038a84 <== NOT EXECUTED 40038a70: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 40038a74: 40 00 15 da call 4003e1dc <__errno> <== NOT EXECUTED 40038a78: 01 00 00 00 nop <== NOT EXECUTED 40038a7c: 10 80 00 15 b 40038ad0 <== NOT EXECUTED 40038a80: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 40038a84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40038a88: 02 80 00 06 be 40038aa0 <== NOT EXECUTED 40038a8c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 40038a90: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 40038a94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40038a98: 32 80 00 06 bne,a 40038ab0 <== NOT EXECUTED 40038a9c: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40038aa0: 40 00 15 cf call 4003e1dc <__errno> <== NOT EXECUTED 40038aa4: 01 00 00 00 nop <== NOT EXECUTED 40038aa8: 10 80 00 0a b 40038ad0 <== NOT EXECUTED 40038aac: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 40038ab0: 9f c0 40 00 call %g1 <== NOT EXECUTED 40038ab4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 40038ab8: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 40038abc: 02 80 00 07 be 40038ad8 <== NOT EXECUTED 40038ac0: 23 10 01 8f sethi %hi(0x40063c00), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 40038ac4: 40 00 15 c6 call 4003e1dc <__errno> <== NOT EXECUTED 40038ac8: 01 00 00 00 nop <== NOT EXECUTED 40038acc: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 40038ad0: 10 80 00 1c b 40038b40 <== NOT EXECUTED 40038ad4: 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; 40038ad8: e6 04 60 e8 ld [ %l1 + 0xe8 ], %l3 <== NOT EXECUTED 40038adc: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40038ae0: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 40038ae4: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 40038ae8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 40038aec: 40 00 22 8f call 40041528 <== NOT EXECUTED 40038af0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 40038af4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 40038af8: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40038afc: 40 00 22 8b call 40041528 <== NOT EXECUTED 40038b00: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 40038b04: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40038b08: 11 10 01 6c sethi %hi(0x4005b000), %o0 <== NOT EXECUTED 40038b0c: 94 10 20 00 clr %o2 <== NOT EXECUTED 40038b10: 90 12 23 08 or %o0, 0x308, %o0 <== NOT EXECUTED 40038b14: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 40038b18: 7f ff 38 35 call 40006bec <== NOT EXECUTED 40038b1c: 98 10 20 00 clr %o4 <== NOT EXECUTED 40038b20: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40038b24: 02 80 00 09 be 40038b48 <== NOT EXECUTED 40038b28: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 40038b2c: d0 04 60 e8 ld [ %l1 + 0xe8 ], %o0 <== NOT EXECUTED 40038b30: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40038b34: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 40038b38: 40 00 22 7c call 40041528 <== NOT EXECUTED 40038b3c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 40038b40: 81 c7 e0 08 ret <== NOT EXECUTED 40038b44: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 40038b48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40038b4c: 22 80 00 09 be,a 40038b70 <== NOT EXECUTED 40038b50: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40038b54: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 40063c1c <== NOT EXECUTED 40038b58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40038b5c: 22 80 00 05 be,a 40038b70 <== NOT EXECUTED 40038b60: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40038b64: 9f c0 40 00 call %g1 <== NOT EXECUTED 40038b68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 40038b6c: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40038b70: d0 00 60 e8 ld [ %g1 + 0xe8 ], %o0 ! 40063ce8 <== NOT EXECUTED 40038b74: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 40038b78: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40038b7c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 40038b80: 40 00 22 6a call 40041528 <== NOT EXECUTED 40038b84: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 40038b88: 81 c7 e0 08 ret <== NOT EXECUTED 40038b8c: 81 e8 00 00 restore <== NOT EXECUTED 400261d8 : int fchmod( int fd, mode_t mode ) { 400261d8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 400261dc: 03 10 01 8e sethi %hi(0x40063800), %g1 <== NOT EXECUTED 400261e0: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 400639f4 <== NOT EXECUTED 400261e4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 400261e8: 1a 80 00 0c bcc 40026218 <== NOT EXECUTED 400261ec: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 400261f0: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED 400261f4: d0 00 61 d8 ld [ %g1 + 0x1d8 ], %o0 ! 400679d8 <== NOT EXECUTED 400261f8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 400261fc: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 40026200: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 40026204: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 40026208: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 4002620c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 40026210: 12 80 00 06 bne 40026228 <== NOT EXECUTED 40026214: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 40026218: 40 00 5f f1 call 4003e1dc <__errno> <== NOT EXECUTED 4002621c: 01 00 00 00 nop <== NOT EXECUTED 40026220: 10 80 00 0f b 4002625c <== NOT EXECUTED 40026224: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 40026228: 32 80 00 06 bne,a 40026240 <== NOT EXECUTED 4002622c: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 40026230: 40 00 5f eb call 4003e1dc <__errno> <== NOT EXECUTED 40026234: 01 00 00 00 nop <== NOT EXECUTED 40026238: 10 80 00 09 b 4002625c <== NOT EXECUTED 4002623c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 40026240: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40026244: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40026248: 32 80 00 08 bne,a 40026268 <== NOT EXECUTED 4002624c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40026250: 40 00 5f e3 call 4003e1dc <__errno> <== NOT EXECUTED 40026254: 01 00 00 00 nop <== NOT EXECUTED 40026258: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 4002625c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026260: 10 80 00 07 b 4002627c <== NOT EXECUTED 40026264: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 40026268: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED 4002626c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40026270: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 40026274: 9f c0 40 00 call %g1 <== NOT EXECUTED 40026278: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 4002627c: 81 c7 e0 08 ret <== NOT EXECUTED 40026280: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 40026284 : int fchown( int fd, uid_t owner, gid_t group ) { 40026284: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 40026288: 03 10 01 8e sethi %hi(0x40063800), %g1 <== NOT EXECUTED 4002628c: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 400639f4 <== NOT EXECUTED 40026290: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 40026294: 1a 80 00 0c bcc 400262c4 <== NOT EXECUTED 40026298: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 4002629c: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED 400262a0: d0 00 61 d8 ld [ %g1 + 0x1d8 ], %o0 ! 400679d8 <== NOT EXECUTED 400262a4: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 400262a8: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 400262ac: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 400262b0: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 400262b4: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 400262b8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 400262bc: 12 80 00 06 bne 400262d4 <== NOT EXECUTED 400262c0: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 400262c4: 40 00 5f c6 call 4003e1dc <__errno> <== NOT EXECUTED 400262c8: 01 00 00 00 nop <== NOT EXECUTED 400262cc: 10 80 00 0f b 40026308 <== NOT EXECUTED 400262d0: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 400262d4: 32 80 00 06 bne,a 400262ec <== NOT EXECUTED 400262d8: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 400262dc: 40 00 5f c0 call 4003e1dc <__errno> <== NOT EXECUTED 400262e0: 01 00 00 00 nop <== NOT EXECUTED 400262e4: 10 80 00 09 b 40026308 <== NOT EXECUTED 400262e8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 400262ec: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 400262f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400262f4: 12 80 00 08 bne 40026314 <== NOT EXECUTED 400262f8: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 400262fc: 40 00 5f b8 call 4003e1dc <__errno> <== NOT EXECUTED 40026300: 01 00 00 00 nop <== NOT EXECUTED 40026304: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40026308: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4002630c: 10 80 00 07 b 40026328 <== NOT EXECUTED 40026310: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 40026314: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 40026318: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 4002631c: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 40026320: 9f c0 40 00 call %g1 <== NOT EXECUTED 40026324: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 40026328: 81 c7 e0 08 ret <== NOT EXECUTED 4002632c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 40038bb8 : int fcntl( int fd, int cmd, ... ) { 40038bb8: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 40038bbc: 03 10 01 8e sethi %hi(0x40063800), %g1 40038bc0: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 400639f4 ... ) { int ret; va_list ap; va_start( ap, cmd ); 40038bc4: 84 07 a0 4c add %fp, 0x4c, %g2 40038bc8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 40038bcc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 40038bd0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 40038bd4: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 40038bd8: 80 a6 00 01 cmp %i0, %g1 40038bdc: 1a 80 00 0c bcc 40038c0c 40038be0: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 40038be4: 07 10 01 9e sethi %hi(0x40067800), %g3 40038be8: c6 00 e1 d8 ld [ %g3 + 0x1d8 ], %g3 ! 400679d8 40038bec: 89 2e 20 06 sll %i0, 6, %g4 40038bf0: a1 2e 20 03 sll %i0, 3, %l0 40038bf4: a0 04 00 04 add %l0, %g4, %l0 40038bf8: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 40038bfc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 40038c00: 80 8a 21 00 btst 0x100, %o0 40038c04: 12 80 00 06 bne 40038c1c 40038c08: 80 a6 60 09 cmp %i1, 9 40038c0c: 40 00 15 74 call 4003e1dc <__errno> <== NOT EXECUTED 40038c10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40038c14: 10 80 00 51 b 40038d58 <== NOT EXECUTED 40038c18: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 40038c1c: 18 80 00 4c bgu 40038d4c 40038c20: 89 2e 60 02 sll %i1, 2, %g4 40038c24: 1b 10 00 e2 sethi %hi(0x40038800), %o5 40038c28: 9a 13 63 90 or %o5, 0x390, %o5 ! 40038b90 40038c2c: c8 03 40 04 ld [ %o5 + %g4 ], %g4 40038c30: 81 c1 00 00 jmp %g4 40038c34: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 40038c38: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 40038c3c: 80 a0 a0 00 cmp %g2, 0 40038c40: 02 80 00 09 be 40038c64 40038c44: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 40038c48: 1a 80 00 0c bcc 40038c78 <== NOT EXECUTED 40038c4c: a2 10 20 00 clr %l1 <== NOT EXECUTED 40038c50: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 40038c54: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 40038c58: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 40038c5c: 10 80 00 07 b 40038c78 <== NOT EXECUTED 40038c60: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 40038c64: 7f ff 38 fc call 40007054 40038c68: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 40038c6c: a2 92 20 00 orcc %o0, 0, %l1 40038c70: 02 80 00 4d be 40038da4 40038c74: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 40038c78: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 40038c7c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 40038c80: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 40038c84: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 40038c88: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 40038c8c: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 40038c90: 90 04 60 1c add %l1, 0x1c, %o0 40038c94: 92 04 20 1c add %l0, 0x1c, %o1 40038c98: 40 00 22 24 call 40041528 40038c9c: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 40038ca0: 03 10 01 9e sethi %hi(0x40067800), %g1 40038ca4: f0 00 61 d8 ld [ %g1 + 0x1d8 ], %i0 ! 400679d8 40038ca8: a2 24 40 18 sub %l1, %i0, %l1 40038cac: a3 3c 60 03 sra %l1, 3, %l1 40038cb0: 85 2c 60 06 sll %l1, 6, %g2 40038cb4: 83 2c 60 03 sll %l1, 3, %g1 40038cb8: 82 20 80 01 sub %g2, %g1, %g1 40038cbc: 85 28 60 06 sll %g1, 6, %g2 40038cc0: 82 00 40 02 add %g1, %g2, %g1 40038cc4: 82 00 40 11 add %g1, %l1, %g1 40038cc8: b1 28 60 0f sll %g1, 0xf, %i0 40038ccc: b0 26 00 01 sub %i0, %g1, %i0 40038cd0: b1 2e 20 03 sll %i0, 3, %i0 40038cd4: 10 80 00 24 b 40038d64 40038cd8: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 40038cdc: b1 32 20 0b srl %o0, 0xb, %i0 40038ce0: 10 80 00 24 b 40038d70 40038ce4: 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 ) ) 40038ce8: c2 00 80 00 ld [ %g2 ], %g1 40038cec: 80 a0 60 00 cmp %g1, 0 40038cf0: 22 80 00 03 be,a 40038cfc 40038cf4: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 40038cf8: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 40038cfc: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 40038d00: 10 80 00 1c b 40038d70 40038d04: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 40038d08: 7f ff 38 68 call 40006ea8 40038d0c: 01 00 00 00 nop 40038d10: 10 80 00 15 b 40038d64 40038d14: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 40038d18: d0 00 80 00 ld [ %g2 ], %o0 40038d1c: 7f ff 39 02 call 40007124 40038d20: 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); 40038d24: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 40038d28: 90 0a 22 01 and %o0, 0x201, %o0 40038d2c: 82 08 7d fe and %g1, -514, %g1 40038d30: 82 12 00 01 or %o0, %g1, %g1 40038d34: 10 80 00 0f b 40038d70 40038d38: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 40038d3c: 40 00 15 28 call 4003e1dc <__errno> 40038d40: b0 10 3f ff mov -1, %i0 40038d44: 10 80 00 05 b 40038d58 40038d48: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 40038d4c: 40 00 15 24 call 4003e1dc <__errno> 40038d50: b0 10 3f ff mov -1, %i0 40038d54: 82 10 20 16 mov 0x16, %g1 40038d58: c2 22 00 00 st %g1, [ %o0 ] 40038d5c: 81 c7 e0 08 ret 40038d60: 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) { 40038d64: 80 a6 20 00 cmp %i0, 0 40038d68: 06 80 00 0f bl 40038da4 40038d6c: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 40038d70: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40038d74: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 40038d78: 80 a0 60 00 cmp %g1, 0 40038d7c: 02 bf ff f8 be 40038d5c 40038d80: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 40038d84: 9f c0 40 00 call %g1 40038d88: 90 10 00 19 mov %i1, %o0 if (err) { 40038d8c: a0 92 20 00 orcc %o0, 0, %l0 40038d90: 02 80 00 05 be 40038da4 40038d94: 01 00 00 00 nop errno = err; 40038d98: 40 00 15 11 call 4003e1dc <__errno> <== NOT EXECUTED 40038d9c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40038da0: 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; } 40038da4: 81 c7 e0 08 ret 40038da8: 81 e8 00 00 restore 4000be8c : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4000be8c: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4000be90: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000be94: d0 00 63 e0 ld [ %g1 + 0x3e0 ], %o0 ! 4001afe0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4000be98: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4000be9c: 92 10 20 00 clr %o1 4000bea0: 94 10 20 00 clr %o2 4000bea4: 7f ff e5 b2 call 4000556c 4000bea8: b0 10 3f fc mov -4, %i0 4000beac: 80 a2 20 00 cmp %o0, 0 4000beb0: 12 80 00 de bne 4000c228 4000beb4: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 4000beb8: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 4000bebc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 4000bec0: 32 80 00 49 bne,a 4000bfe4 <== NOT EXECUTED 4000bec4: 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)); 4000bec8: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED 4000becc: 7f ff f9 bc call 4000a5bc <== NOT EXECUTED 4000bed0: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 4000bed4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 4000bed8: 02 80 00 54 be 4000c028 <== NOT EXECUTED 4000bedc: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 4000bee0: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bee4: 40 00 07 39 call 4000dbc8 <== NOT EXECUTED 4000bee8: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 4000beec: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4000bef0: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 4000bef4: 7f ff f9 b2 call 4000a5bc <== NOT EXECUTED 4000bef8: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 4000befc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bf00: 02 80 00 34 be 4000bfd0 <== NOT EXECUTED 4000bf04: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 4000bf08: 27 10 00 6a sethi %hi(0x4001a800), %l3 <== NOT EXECUTED 4000bf0c: d0 4c e1 f0 ldsb [ %l3 + 0x1f0 ], %o0 ! 4001a9f0 <== NOT EXECUTED 4000bf10: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 4000bf14: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 4000bf18: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bf1c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 4000bf20: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000bf24: 40 00 01 7e call 4000c51c <== NOT EXECUTED 4000bf28: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED 4000bf2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bf30: 32 80 00 26 bne,a 4000bfc8 <== NOT EXECUTED 4000bf34: 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( 4000bf38: d0 4c e1 f0 ldsb [ %l3 + 0x1f0 ], %o0 <== NOT EXECUTED 4000bf3c: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 4000bf40: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 4000bf44: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bf48: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 4000bf4c: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000bf50: 40 00 01 73 call 4000c51c <== NOT EXECUTED 4000bf54: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED 4000bf58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bf5c: 12 80 00 18 bne 4000bfbc <== NOT EXECUTED 4000bf60: 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( 4000bf64: d0 4c e1 f0 ldsb [ %l3 + 0x1f0 ], %o0 <== NOT EXECUTED 4000bf68: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000bf6c: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 4000bf70: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 4000bf74: 96 10 20 00 clr %o3 <== NOT EXECUTED 4000bf78: 7f ff e4 db call 400052e4 <== NOT EXECUTED 4000bf7c: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED 4000bf80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bf84: 12 80 00 0c bne 4000bfb4 <== NOT EXECUTED 4000bf88: 01 00 00 00 nop <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 4000bf8c: c2 0c e1 f0 ldub [ %l3 + 0x1f0 ], %g1 <== NOT EXECUTED 4000bf90: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 4000bf94: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 4000bf98: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 4000bf9c: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 4000bfa0: 12 80 00 10 bne 4000bfe0 <== NOT EXECUTED 4000bfa4: c4 2c e1 f0 stb %g2, [ %l3 + 0x1f0 ] <== NOT EXECUTED c = 'a'; 4000bfa8: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 4000bfac: 10 80 00 0d b 4000bfe0 <== NOT EXECUTED 4000bfb0: c2 2c e1 f0 stb %g1, [ %l3 + 0x1f0 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 4000bfb4: 40 00 01 88 call 4000c5d4 <== NOT EXECUTED 4000bfb8: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 4000bfbc: 40 00 01 86 call 4000c5d4 <== NOT EXECUTED 4000bfc0: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 4000bfc4: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED 4000bfc8: 7f ff f8 23 call 4000a054 <== NOT EXECUTED 4000bfcc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 4000bfd0: 7f ff f8 21 call 4000a054 <== NOT EXECUTED 4000bfd4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4000bfd8: 10 80 00 15 b 4000c02c <== NOT EXECUTED 4000bfdc: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4000bfe0: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 4000bfe4: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bfe8: 7f ff e5 61 call 4000556c <== NOT EXECUTED 4000bfec: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4000bff0: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4000bff4: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 4000bff8: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4000bffc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4000c000: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4000c004: 12 80 00 09 bne 4000c028 <== NOT EXECUTED 4000c008: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 4000c00c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000c010: 22 80 00 06 be,a 4000c028 <== NOT EXECUTED 4000c014: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 4000c018: 7f ff ff 4d call 4000bd4c <== NOT EXECUTED 4000c01c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4000c020: 10 80 00 03 b 4000c02c <== NOT EXECUTED 4000c024: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000c028: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000c02c: 7f ff e5 97 call 40005688 <== NOT EXECUTED 4000c030: d0 00 63 e0 ld [ %g1 + 0x3e0 ], %o0 ! 4001afe0 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4000c034: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000c038: 12 80 00 7c bne 4000c228 <== NOT EXECUTED 4000c03c: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4000c040: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 4000c044: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 4000c048: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 4000c04c: 02 80 00 2e be 4000c104 <== NOT EXECUTED 4000c050: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 4000c054: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 4000c058: 02 80 00 56 be 4000c1b0 <== NOT EXECUTED 4000c05c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 4000c060: 12 80 00 6a bne 4000c208 <== NOT EXECUTED 4000c064: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4000c068: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4000c06c: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000c070: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4000c074: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000c078: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 4000c07c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c080: 12 80 00 05 bne 4000c094 <== NOT EXECUTED 4000c084: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4000c088: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 4000c08c: 40 00 01 6c call 4000c63c <== NOT EXECUTED 4000c090: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 4000c094: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000c098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c09c: 12 80 00 5b bne 4000c208 <== NOT EXECUTED 4000c0a0: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 4000c0a4: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 4000c0a8: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000c0ac: 12 80 00 57 bne 4000c208 <== NOT EXECUTED 4000c0b0: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 4000c0b4: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4000c0b8: 7f ff e5 74 call 40005688 <== NOT EXECUTED 4000c0bc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4000c0c0: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 4000c0c4: 40 00 01 75 call 4000c698 <== NOT EXECUTED 4000c0c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c0cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c0d0: 12 80 00 52 bne 4000c218 <== NOT EXECUTED 4000c0d4: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4000c0d8: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 4000c0dc: 7f ff e5 24 call 4000556c <== NOT EXECUTED 4000c0e0: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c0e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c0e8: 32 80 00 4d bne,a 4000c21c <== NOT EXECUTED 4000c0ec: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 4000c0f0: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 4000c0f4: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 4000c0f8: 02 bf ff f0 be 4000c0b8 <== NOT EXECUTED 4000c0fc: 01 00 00 00 nop <== NOT EXECUTED 4000c100: 30 80 00 42 b,a 4000c208 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 4000c104: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 4000c108: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c10c: 32 80 00 07 bne,a 4000c128 <== NOT EXECUTED 4000c110: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000c114: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 4000c118: 22 80 00 04 be,a 4000c128 <== NOT EXECUTED 4000c11c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000c120: 10 80 00 3f b 4000c21c <== NOT EXECUTED 4000c124: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4000c128: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000c12c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4000c130: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000c134: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 4000c138: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c13c: 12 80 00 05 bne 4000c150 <== NOT EXECUTED 4000c140: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000c144: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 4000c148: 40 00 01 3d call 4000c63c <== NOT EXECUTED 4000c14c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0) { 4000c150: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 4000c154: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c158: 12 80 00 2c bne 4000c208 <== NOT EXECUTED 4000c15c: 01 00 00 00 nop <== NOT EXECUTED prevCounter = pipe->readerCounter; 4000c160: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 4000c164: 7f ff e5 49 call 40005688 <== NOT EXECUTED 4000c168: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4000c16c: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 4000c170: 40 00 01 4a call 4000c698 <== NOT EXECUTED 4000c174: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c178: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c17c: 12 80 00 27 bne 4000c218 <== NOT EXECUTED 4000c180: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4000c184: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 4000c188: 7f ff e4 f9 call 4000556c <== NOT EXECUTED 4000c18c: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c190: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c194: 32 80 00 22 bne,a 4000c21c <== NOT EXECUTED 4000c198: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 4000c19c: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 4000c1a0: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 4000c1a4: 02 bf ff f0 be 4000c164 <== NOT EXECUTED 4000c1a8: 01 00 00 00 nop <== NOT EXECUTED 4000c1ac: 30 80 00 17 b,a 4000c208 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4000c1b0: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4000c1b4: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000c1b8: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4000c1bc: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000c1c0: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 4000c1c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c1c8: 12 80 00 05 bne 4000c1dc <== NOT EXECUTED 4000c1cc: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4000c1d0: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 4000c1d4: 40 00 01 1a call 4000c63c <== NOT EXECUTED 4000c1d8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4000c1dc: 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 ++; 4000c1e0: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000c1e4: 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 ++; 4000c1e8: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000c1ec: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 4000c1f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c1f4: 12 80 00 05 bne 4000c208 <== NOT EXECUTED 4000c1f8: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000c1fc: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 4000c200: 40 00 01 0f call 4000c63c <== NOT EXECUTED 4000c204: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 4000c208: 7f ff e5 20 call 40005688 <== NOT EXECUTED 4000c20c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 4000c210: 81 c7 e0 08 ret <== NOT EXECUTED 4000c214: 81 e8 00 00 restore <== NOT EXECUTED 4000c218: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 4000c21c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 4000c220: 7f ff fe d7 call 4000bd7c <== NOT EXECUTED 4000c224: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 4000c228: 81 c7 e0 08 ret 4000c22c: 81 e8 00 00 restore 4000a58c : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4000a58c: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED 4000a590: 05 10 01 9e sethi %hi(0x40067800), %g2 <== NOT EXECUTED 4000a594: c2 00 62 20 ld [ %g1 + 0x220 ], %g1 <== NOT EXECUTED 4000a598: 10 80 00 08 b 4000a5b8 <== NOT EXECUTED 4000a59c: 84 10 a2 24 or %g2, 0x224, %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 ) { 4000a5a0: c6 02 60 10 ld [ %o1 + 0x10 ], %g3 <== NOT EXECUTED 4000a5a4: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 4000a5a8: 32 80 00 04 bne,a 4000a5b8 <== NOT EXECUTED 4000a5ac: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 4000a5b0: 81 c3 e0 08 retl <== NOT EXECUTED 4000a5b4: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 4000a5b8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000a5bc: 32 bf ff f9 bne,a 4000a5a0 <== NOT EXECUTED 4000a5c0: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED return true; } } return false; } 4000a5c4: 81 c3 e0 08 retl <== NOT EXECUTED 4000a5c8: 90 10 20 00 clr %o0 <== NOT EXECUTED 40003474 : long fpathconf( int fd, int name ) { 40003474: 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); 40003478: 03 10 00 7a sethi %hi(0x4001e800), %g1 4000347c: c2 00 60 d4 ld [ %g1 + 0xd4 ], %g1 ! 4001e8d4 40003480: 80 a6 00 01 cmp %i0, %g1 40003484: 1a 80 00 0b bcc 400034b0 40003488: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop(fd); 4000348c: 03 10 00 7c sethi %hi(0x4001f000), %g1 40003490: c2 00 60 a0 ld [ %g1 + 0xa0 ], %g1 ! 4001f0a0 40003494: b1 2e 20 03 sll %i0, 3, %i0 40003498: b0 06 00 02 add %i0, %g2, %i0 4000349c: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 400034a0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 400034a4: 80 88 61 00 btst 0x100, %g1 400034a8: 12 80 00 06 bne 400034c0 400034ac: 80 88 60 02 btst 2, %g1 400034b0: 40 00 31 f0 call 4000fc70 <__errno> 400034b4: 01 00 00 00 nop 400034b8: 10 80 00 07 b 400034d4 400034bc: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 400034c0: 12 80 00 08 bne 400034e0 400034c4: 80 a6 60 0b cmp %i1, 0xb 400034c8: 40 00 31 ea call 4000fc70 <__errno> <== NOT EXECUTED 400034cc: 01 00 00 00 nop <== NOT EXECUTED 400034d0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 400034d4: c2 22 00 00 st %g1, [ %o0 ] 400034d8: 81 c7 e0 08 ret 400034dc: 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 ) { 400034e0: 18 80 00 2c bgu 40003590 400034e4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 400034e8: b3 2e 60 02 sll %i1, 2, %i1 400034ec: 05 10 00 0d sethi %hi(0x40003400), %g2 400034f0: 84 10 a0 44 or %g2, 0x44, %g2 ! 40003444 400034f4: c4 00 80 19 ld [ %g2 + %i1 ], %g2 400034f8: 81 c0 80 00 jmp %g2 400034fc: 01 00 00 00 nop case _PC_LINK_MAX: return_value = the_limits->link_max; 40003500: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 40003504: 81 c7 e0 08 ret 40003508: 81 e8 00 00 restore case _PC_MAX_CANON: return_value = the_limits->max_canon; 4000350c: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 40003510: 81 c7 e0 08 ret 40003514: 81 e8 00 00 restore case _PC_MAX_INPUT: return_value = the_limits->max_input; 40003518: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 4000351c: 81 c7 e0 08 ret 40003520: 81 e8 00 00 restore case _PC_NAME_MAX: return_value = the_limits->name_max; 40003524: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 40003528: 81 c7 e0 08 ret 4000352c: 81 e8 00 00 restore case _PC_PATH_MAX: return_value = the_limits->path_max; 40003530: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 40003534: 81 c7 e0 08 ret 40003538: 81 e8 00 00 restore case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 4000353c: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 40003540: 81 c7 e0 08 ret 40003544: 81 e8 00 00 restore case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 40003548: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 4000354c: 81 c7 e0 08 ret 40003550: 81 e8 00 00 restore case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 40003554: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 40003558: 81 c7 e0 08 ret 4000355c: 81 e8 00 00 restore case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 40003560: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 40003564: 81 c7 e0 08 ret 40003568: 81 e8 00 00 restore case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 4000356c: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 40003570: 81 c7 e0 08 ret 40003574: 81 e8 00 00 restore case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 40003578: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 4000357c: 81 c7 e0 08 ret 40003580: 81 e8 00 00 restore case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 40003584: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 40003588: 81 c7 e0 08 ret 4000358c: 81 e8 00 00 restore default: rtems_set_errno_and_return_minus_one( EINVAL ); 40003590: 40 00 31 b8 call 4000fc70 <__errno> 40003594: b0 10 3f ff mov -1, %i0 40003598: 82 10 20 16 mov 0x16, %g1 4000359c: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 400035a0: 81 c7 e0 08 ret 400035a4: 81 e8 00 00 restore 4000a054 : void free( void *ptr ) { MSBUMP(free_calls, 1); 4000a054: 9d e3 bf a0 save %sp, -96, %sp 4000a058: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000a05c: 82 10 60 68 or %g1, 0x68, %g1 ! 4001b068 4000a060: c4 00 60 0c ld [ %g1 + 0xc ], %g2 4000a064: b2 10 00 18 mov %i0, %i1 4000a068: 84 00 a0 01 inc %g2 if ( !ptr ) 4000a06c: 80 a6 20 00 cmp %i0, 0 4000a070: 02 80 00 21 be 4000a0f4 4000a074: 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()) && 4000a078: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000a07c: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 4001b3d0 <_System_state_Current> 4000a080: 80 a0 60 03 cmp %g1, 3 4000a084: 12 80 00 09 bne 4000a0a8 4000a088: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000a08c: 40 00 01 26 call 4000a524 4000a090: 01 00 00 00 nop 4000a094: 80 8a 20 ff btst 0xff, %o0 4000a098: 12 80 00 04 bne 4000a0a8 4000a09c: 03 10 00 6b sethi %hi(0x4001ac00), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 4000a0a0: 40 00 01 33 call 4000a56c <== NOT EXECUTED 4000a0a4: 81 e8 00 00 restore <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4000a0a8: c2 00 62 c8 ld [ %g1 + 0x2c8 ], %g1 4000a0ac: 80 a0 60 00 cmp %g1, 0 4000a0b0: 02 80 00 06 be 4000a0c8 4000a0b4: 21 10 00 6a sethi %hi(0x4001a800), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 4000a0b8: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 4000a0bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a0c0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 4000a0c4: 21 10 00 6a sethi %hi(0x4001a800), %l0 <== NOT EXECUTED 4000a0c8: d0 04 20 a0 ld [ %l0 + 0xa0 ], %o0 ! 4001a8a0 4000a0cc: 40 00 04 73 call 4000b298 <_Protected_heap_Free> 4000a0d0: 92 10 00 19 mov %i1, %o1 4000a0d4: 80 8a 20 ff btst 0xff, %o0 4000a0d8: 12 80 00 07 bne 4000a0f4 4000a0dc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 4000a0e0: 31 10 00 67 sethi %hi(0x40019c00), %i0 <== NOT EXECUTED 4000a0e4: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 4000a0e8: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 4000a0ec: 7f ff e3 12 call 40002d34 <== NOT EXECUTED 4000a0f0: 91 ee 22 f8 restore %i0, 0x2f8, %o0 <== NOT EXECUTED 4000a0f4: 81 c7 e0 08 ret 4000a0f8: 81 e8 00 00 restore 40027758 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 40027758: 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 4002775c: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED 40027760: 82 10 62 38 or %g1, 0x238, %g1 ! 40067a38 <== NOT EXECUTED 40027764: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 40027768: 02 80 00 18 be 400277c8 <== NOT EXECUTED 4002776c: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 40027770: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 40027774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027778: 22 80 00 09 be,a 4002779c <== NOT EXECUTED 4002777c: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 40027780: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027784: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027788: 22 80 00 05 be,a 4002779c <== NOT EXECUTED 4002778c: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 40027790: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027794: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 40027798: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 4002779c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400277a0: 02 80 00 08 be 400277c0 <== NOT EXECUTED 400277a4: 01 00 00 00 nop <== NOT EXECUTED 400277a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400277ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400277b0: 02 80 00 04 be 400277c0 <== NOT EXECUTED 400277b4: 01 00 00 00 nop <== NOT EXECUTED 400277b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 400277bc: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 400277c0: 7f ff 7d 34 call 40006c90 <== NOT EXECUTED 400277c4: 81 e8 00 00 restore <== NOT EXECUTED 400277c8: 81 c7 e0 08 ret <== NOT EXECUTED 400277cc: 81 e8 00 00 restore <== NOT EXECUTED 40018b58 : int fstat( int fd, struct stat *sbuf ) { 40018b58: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 40018b5c: 80 a6 60 00 cmp %i1, 0 40018b60: 32 80 00 06 bne,a 40018b78 40018b64: 03 10 00 6a sethi %hi(0x4001a800), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 40018b68: 7f ff d1 9e call 4000d1e0 <__errno> 40018b6c: 01 00 00 00 nop 40018b70: 10 80 00 12 b 40018bb8 40018b74: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 40018b78: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 40018b7c: 80 a6 00 01 cmp %i0, %g1 40018b80: 1a 80 00 0b bcc 40018bac 40018b84: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018b88: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 ! 4001b058 40018b8c: 85 2e 20 06 sll %i0, 6, %g2 40018b90: b1 2e 20 03 sll %i0, 3, %i0 40018b94: b0 06 00 02 add %i0, %g2, %i0 40018b98: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 40018b9c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 40018ba0: 80 88 61 00 btst 0x100, %g1 40018ba4: 32 80 00 08 bne,a 40018bc4 40018ba8: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 40018bac: 7f ff d1 8d call 4000d1e0 <__errno> 40018bb0: 01 00 00 00 nop 40018bb4: 82 10 20 09 mov 9, %g1 ! 9 40018bb8: c2 22 00 00 st %g1, [ %o0 ] 40018bbc: 10 80 00 15 b 40018c10 40018bc0: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 40018bc4: 80 a0 60 00 cmp %g1, 0 40018bc8: 02 bf ff f9 be 40018bac 40018bcc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 40018bd0: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 40018bd4: 80 a0 60 00 cmp %g1, 0 40018bd8: 12 80 00 06 bne 40018bf0 40018bdc: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 40018be0: 7f ff d1 80 call 4000d1e0 <__errno> <== NOT EXECUTED 40018be4: 01 00 00 00 nop <== NOT EXECUTED 40018be8: 10 bf ff f4 b 40018bb8 <== NOT EXECUTED 40018bec: 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) ); 40018bf0: 94 10 20 48 mov 0x48, %o2 40018bf4: 7f ff d3 f5 call 4000dbc8 40018bf8: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 40018bfc: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 40018c00: 90 06 20 1c add %i0, 0x1c, %o0 40018c04: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 40018c08: 9f c0 40 00 call %g1 40018c0c: 92 10 00 19 mov %i1, %o1 } 40018c10: 81 c7 e0 08 ret 40018c14: 91 e8 00 08 restore %g0, %o0, %o0 40026408 : #include int fsync( int fd ) { 40026408: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 4002640c: 03 10 01 8e sethi %hi(0x40063800), %g1 40026410: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 400639f4 40026414: 80 a6 00 01 cmp %i0, %g1 40026418: 1a 80 00 15 bcc 4002646c 4002641c: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 40026420: 03 10 01 9e sethi %hi(0x40067800), %g1 40026424: d0 00 61 d8 ld [ %g1 + 0x1d8 ], %o0 ! 400679d8 40026428: 83 2e 20 06 sll %i0, 6, %g1 4002642c: b1 2e 20 03 sll %i0, 3, %i0 40026430: b0 06 00 01 add %i0, %g1, %i0 40026434: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 40026438: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 4002643c: 80 88 61 00 btst 0x100, %g1 40026440: 02 80 00 0b be 4002646c 40026444: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 40026448: 32 80 00 06 bne,a 40026460 4002644c: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 40026450: 40 00 5f 63 call 4003e1dc <__errno> 40026454: 01 00 00 00 nop 40026458: 10 80 00 0f b 40026494 4002645c: 82 10 20 16 mov 0x16, %g1 ! 16 /* * Now process the fsync(). */ if ( !iop->handlers ) 40026460: 80 a0 60 00 cmp %g1, 0 40026464: 32 80 00 06 bne,a 4002647c 40026468: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 4002646c: 40 00 5f 5c call 4003e1dc <__errno> <== NOT EXECUTED 40026470: 01 00 00 00 nop <== NOT EXECUTED 40026474: 10 80 00 08 b 40026494 <== NOT EXECUTED 40026478: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 4002647c: 80 a0 60 00 cmp %g1, 0 40026480: 12 80 00 08 bne 400264a0 40026484: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 40026488: 40 00 5f 55 call 4003e1dc <__errno> 4002648c: 01 00 00 00 nop 40026490: 82 10 20 86 mov 0x86, %g1 ! 86 40026494: c2 22 00 00 st %g1, [ %o0 ] 40026498: 10 80 00 04 b 400264a8 4002649c: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 400264a0: 9f c0 40 00 call %g1 400264a4: 01 00 00 00 nop } 400264a8: 81 c7 e0 08 ret 400264ac: 91 e8 00 08 restore %g0, %o0, %o0 4000a0fc : int ftruncate( int fd, off_t length ) { 4000a0fc: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 4000a100: 03 10 00 6a sethi %hi(0x4001a800), %g1 4000a104: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 ! 4001a894 4000a108: 80 a6 00 01 cmp %i0, %g1 4000a10c: 1a 80 00 0b bcc 4000a138 4000a110: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop( fd ); 4000a114: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000a118: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 ! 4001b058 4000a11c: b1 2e 20 03 sll %i0, 3, %i0 4000a120: b0 06 00 02 add %i0, %g2, %i0 4000a124: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 4000a128: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 4000a12c: 80 88 61 00 btst 0x100, %g1 4000a130: 12 80 00 06 bne 4000a148 4000a134: a0 07 bf ec add %fp, -20, %l0 4000a138: 40 00 0c 2a call 4000d1e0 <__errno> <== NOT EXECUTED 4000a13c: 01 00 00 00 nop <== NOT EXECUTED 4000a140: 10 80 00 22 b 4000a1c8 <== NOT EXECUTED 4000a144: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4000a148: 92 06 20 1c add %i0, 0x1c, %o1 4000a14c: 90 10 00 10 mov %l0, %o0 4000a150: 40 00 0e 5f call 4000dacc 4000a154: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 4000a158: c2 07 bf f8 ld [ %fp + -8 ], %g1 4000a15c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 4000a160: 80 a0 60 00 cmp %g1, 0 4000a164: 02 80 00 16 be 4000a1bc 4000a168: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 4000a16c: 9f c0 40 00 call %g1 4000a170: 90 10 00 10 mov %l0, %o0 4000a174: 80 a2 20 01 cmp %o0, 1 4000a178: 32 80 00 06 bne,a 4000a190 4000a17c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_set_errno_and_return_minus_one( EISDIR ); 4000a180: 40 00 0c 18 call 4000d1e0 <__errno> 4000a184: 01 00 00 00 nop 4000a188: 10 80 00 10 b 4000a1c8 4000a18c: 82 10 20 15 mov 0x15, %g1 ! 15 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4000a190: 80 88 60 04 btst 4, %g1 4000a194: 32 80 00 06 bne,a 4000a1ac 4000a198: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 4000a19c: 40 00 0c 11 call 4000d1e0 <__errno> <== NOT EXECUTED 4000a1a0: 01 00 00 00 nop <== NOT EXECUTED 4000a1a4: 10 80 00 09 b 4000a1c8 <== NOT EXECUTED 4000a1a8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 4000a1ac: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 4000a1b0: 80 a0 60 00 cmp %g1, 0 4000a1b4: 32 80 00 08 bne,a 4000a1d4 4000a1b8: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000a1bc: 40 00 0c 09 call 4000d1e0 <__errno> <== NOT EXECUTED 4000a1c0: 01 00 00 00 nop <== NOT EXECUTED 4000a1c4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 4000a1c8: c2 22 00 00 st %g1, [ %o0 ] 4000a1cc: 10 80 00 05 b 4000a1e0 4000a1d0: 90 10 3f ff mov -1, %o0 return (*iop->handlers->ftruncate_h)( iop, length ); 4000a1d4: 92 10 00 19 mov %i1, %o1 4000a1d8: 9f c0 40 00 call %g1 4000a1dc: 94 10 00 1a mov %i2, %o2 } 4000a1e0: 81 c7 e0 08 ret 4000a1e4: 91 e8 00 08 restore %g0, %o0, %o0 400584f4 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 400584f4: 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 ); 400584f8: 03 10 01 8e sethi %hi(0x40063800), %g1 400584fc: c2 00 61 f4 ld [ %g1 + 0x1f4 ], %g1 ! 400639f4 40058500: 80 a6 00 01 cmp %i0, %g1 40058504: 1a 80 00 08 bcc 40058524 40058508: a0 10 20 00 clr %l0 4005850c: 03 10 01 9e sethi %hi(0x40067800), %g1 40058510: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 400679d8 40058514: 83 2e 20 06 sll %i0, 6, %g1 40058518: b1 2e 20 03 sll %i0, 3, %i0 4005851c: b0 06 00 01 add %i0, %g1, %i0 40058520: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 40058524: a2 07 bf ec add %fp, -20, %l1 40058528: 92 04 20 1c add %l0, 0x1c, %o1 4005852c: 90 10 00 11 mov %l1, %o0 40058530: 7f ff a3 fe call 40041528 40058534: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 40058538: c2 07 bf f8 ld [ %fp + -8 ], %g1 4005853c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 40058540: 80 a0 60 00 cmp %g1, 0 40058544: 02 80 00 11 be 40058588 40058548: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 4005854c: 9f c0 40 00 call %g1 40058550: 90 10 00 11 mov %l1, %o0 40058554: 80 a2 20 01 cmp %o0, 1 40058558: 22 80 00 08 be,a 40058578 4005855c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40058560: 7f ff 97 1f call 4003e1dc <__errno> 40058564: 01 00 00 00 nop 40058568: 82 10 20 14 mov 0x14, %g1 ! 14 4005856c: c2 22 00 00 st %g1, [ %o0 ] 40058570: 10 80 00 0d b 400585a4 40058574: 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 ) 40058578: c2 00 60 08 ld [ %g1 + 8 ], %g1 4005857c: 80 a0 60 00 cmp %g1, 0 40058580: 32 80 00 06 bne,a 40058598 40058584: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 40058588: 7f ff 97 15 call 4003e1dc <__errno> <== NOT EXECUTED 4005858c: 01 00 00 00 nop <== NOT EXECUTED 40058590: 10 bf ff f7 b 4005856c <== NOT EXECUTED 40058594: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 40058598: 92 10 00 19 mov %i1, %o1 4005859c: 9f c0 40 00 call %g1 400585a0: 94 10 00 1a mov %i2, %o2 } 400585a4: 81 c7 e0 08 ret 400585a8: 91 e8 00 08 restore %g0, %o0, %o0 400265bc : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 400265bc: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 400265c0: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 ! 40063ce8 <== NOT EXECUTED return _POSIX_types_Gid; } 400265c4: 81 c3 e0 08 retl <== NOT EXECUTED 400265c8: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 40026c38 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 40026c38: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 40026c3c: 7f ff ff b6 call 40026b14 40026c40: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 40026c44: 11 10 01 65 sethi %hi(0x40059400), %o0 40026c48: 13 10 01 8d sethi %hi(0x40063400), %o1 40026c4c: 90 12 20 38 or %o0, 0x38, %o0 40026c50: 40 00 60 0a call 4003ec78 40026c54: 92 12 60 d8 or %o1, 0xd8, %o1 40026c58: a0 92 20 00 orcc %o0, 0, %l0 40026c5c: 12 80 00 08 bne 40026c7c 40026c60: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 40026c64: 40 00 5d 5e call 4003e1dc <__errno> <== NOT EXECUTED 40026c68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40026c6c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40026c70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026c74: 81 c7 e0 08 ret <== NOT EXECUTED 40026c78: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 40026c7c: 94 10 00 1b mov %i3, %o2 40026c80: 96 10 00 1c mov %i4, %o3 40026c84: 7f ff fe ea call 4002682c 40026c88: 90 10 00 10 mov %l0, %o0 40026c8c: 80 a2 20 00 cmp %o0, 0 40026c90: 12 80 00 0a bne 40026cb8 40026c94: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 40026c98: 40 00 5d 51 call 4003e1dc <__errno> <== NOT EXECUTED 40026c9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40026ca0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40026ca4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 40026ca8: 40 00 5d a5 call 4003e33c <== NOT EXECUTED 40026cac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 40026cb0: 81 c7 e0 08 ret <== NOT EXECUTED 40026cb4: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 40026cb8: 22 80 00 07 be,a 40026cd4 40026cbc: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 40026cc0: d0 06 80 00 ld [ %i2 ], %o0 40026cc4: 40 00 76 70 call 40044684 40026cc8: 92 10 00 18 mov %i0, %o1 40026ccc: 10 80 00 04 b 40026cdc 40026cd0: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 40026cd4: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 40026cd8: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 40026cdc: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 40026ce0: 80 a0 60 00 cmp %g1, 0 40026ce4: 02 bf ff e6 be 40026c7c 40026ce8: 92 10 00 1a mov %i2, %o1 fclose(fp); 40026cec: 90 10 00 10 mov %l0, %o0 40026cf0: 40 00 5d 93 call 4003e33c 40026cf4: b0 10 20 00 clr %i0 *result = grp; 40026cf8: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 40026cfc: 81 c7 e0 08 ret 40026d00: 81 e8 00 00 restore 40026968 : return NULL; return p; } struct group *getgrent(void) { 40026968: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 4002696c: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 40026970: d0 00 63 d4 ld [ %g1 + 0x3d4 ], %o0 ! 400677d4 <== NOT EXECUTED 40026974: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026978: 22 80 00 0c be,a 400269a8 <== NOT EXECUTED 4002697c: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 40026980: 31 10 01 9e sethi %hi(0x40067800), %i0 <== NOT EXECUTED 40026984: 15 10 01 9d sethi %hi(0x40067400), %o2 <== NOT EXECUTED 40026988: 92 16 20 a0 or %i0, 0xa0, %o1 <== NOT EXECUTED 4002698c: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 40026990: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026994: 7f ff ff a6 call 4002682c <== NOT EXECUTED 40026998: b0 16 20 a0 or %i0, 0xa0, %i0 <== NOT EXECUTED 4002699c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400269a0: 22 80 00 02 be,a 400269a8 <== NOT EXECUTED 400269a4: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 400269a8: 81 c7 e0 08 ret <== NOT EXECUTED 400269ac: 81 e8 00 00 restore <== NOT EXECUTED 40026d38 : } struct group *getgrgid( gid_t gid ) { 40026d38: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 40026d3c: 13 10 01 9e sethi %hi(0x40067800), %o1 <== NOT EXECUTED 40026d40: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 40026d44: 92 12 60 a0 or %o1, 0xa0, %o1 <== NOT EXECUTED 40026d48: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 40026d4c: 15 10 01 9d sethi %hi(0x40067400), %o2 <== NOT EXECUTED 40026d50: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026d54: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 40026d58: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 40026d5c: 7f ff ff ea call 40026d04 <== NOT EXECUTED 40026d60: b0 10 20 00 clr %i0 <== NOT EXECUTED 40026d64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026d68: 22 80 00 02 be,a 40026d70 <== NOT EXECUTED 40026d6c: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 40026d70: 81 c7 e0 08 ret <== NOT EXECUTED 40026d74: 81 e8 00 00 restore <== NOT EXECUTED 40026d04 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 40026d04: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 40026d08: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 40026d0c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 40026d10: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 40026d14: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 40026d18: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 40026d1c: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 40026d20: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 40026d24: 90 10 20 00 clr %o0 <== NOT EXECUTED 40026d28: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40026d2c: 7f ff ff c3 call 40026c38 <== NOT EXECUTED 40026d30: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026d34: 01 00 00 00 nop 40023058 : */ pid_t getpid( void ) { return _Objects_Local_node; } 40023058: 81 c3 e0 08 retl <== NOT EXECUTED 4002305c: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED 40026e2c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 40026e2c: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 40026e30: 7f ff ff 39 call 40026b14 40026e34: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 40026e38: 11 10 01 64 sethi %hi(0x40059000), %o0 40026e3c: 13 10 01 8d sethi %hi(0x40063400), %o1 40026e40: 90 12 23 80 or %o0, 0x380, %o0 40026e44: 40 00 5f 8d call 4003ec78 40026e48: 92 12 60 d8 or %o1, 0xd8, %o1 40026e4c: a0 92 20 00 orcc %o0, 0, %l0 40026e50: 12 80 00 08 bne 40026e70 40026e54: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 40026e58: 40 00 5c e1 call 4003e1dc <__errno> <== NOT EXECUTED 40026e5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40026e60: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40026e64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026e68: 81 c7 e0 08 ret <== NOT EXECUTED 40026e6c: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 40026e70: 94 10 00 1b mov %i3, %o2 40026e74: 96 10 00 1c mov %i4, %o3 40026e78: 7f ff fe ce call 400269b0 40026e7c: 90 10 00 10 mov %l0, %o0 40026e80: 80 a2 20 00 cmp %o0, 0 40026e84: 12 80 00 0a bne 40026eac 40026e88: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 40026e8c: 40 00 5c d4 call 4003e1dc <__errno> <== NOT EXECUTED 40026e90: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40026e94: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40026e98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 40026e9c: 40 00 5d 28 call 4003e33c <== NOT EXECUTED 40026ea0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 40026ea4: 81 c7 e0 08 ret <== NOT EXECUTED 40026ea8: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 40026eac: 22 80 00 07 be,a 40026ec8 40026eb0: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 40026eb4: d0 06 80 00 ld [ %i2 ], %o0 40026eb8: 40 00 75 f3 call 40044684 40026ebc: 92 10 00 18 mov %i0, %o1 40026ec0: 10 80 00 04 b 40026ed0 40026ec4: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 40026ec8: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 40026ecc: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 40026ed0: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 40026ed4: 80 a0 60 00 cmp %g1, 0 40026ed8: 02 bf ff e6 be 40026e70 40026edc: 92 10 00 1a mov %i2, %o1 fclose(fp); 40026ee0: 90 10 00 10 mov %l0, %o0 40026ee4: 40 00 5d 16 call 4003e33c 40026ee8: b0 10 20 00 clr %i0 *result = pwd; 40026eec: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 40026ef0: 81 c7 e0 08 ret 40026ef4: 81 e8 00 00 restore 40026acc : return NULL; return p; } struct passwd *getpwent(void) { 40026acc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 40026ad0: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 40026ad4: d0 00 62 ec ld [ %g1 + 0x2ec ], %o0 ! 400676ec <== NOT EXECUTED 40026ad8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026adc: 22 80 00 0c be,a 40026b0c <== NOT EXECUTED 40026ae0: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 40026ae4: 31 10 01 9d sethi %hi(0x40067400), %i0 <== NOT EXECUTED 40026ae8: 15 10 01 9d sethi %hi(0x40067400), %o2 <== NOT EXECUTED 40026aec: 92 16 23 b8 or %i0, 0x3b8, %o1 <== NOT EXECUTED 40026af0: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 40026af4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026af8: 7f ff ff ae call 400269b0 <== NOT EXECUTED 40026afc: b0 16 23 b8 or %i0, 0x3b8, %i0 <== NOT EXECUTED 40026b00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026b04: 22 80 00 02 be,a 40026b0c <== NOT EXECUTED 40026b08: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 40026b0c: 81 c7 e0 08 ret <== NOT EXECUTED 40026b10: 81 e8 00 00 restore <== NOT EXECUTED 40026f2c : } struct passwd *getpwuid( uid_t uid ) { 40026f2c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 40026f30: 13 10 01 9d sethi %hi(0x40067400), %o1 <== NOT EXECUTED 40026f34: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 40026f38: 92 12 63 b8 or %o1, 0x3b8, %o1 <== NOT EXECUTED 40026f3c: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 40026f40: 15 10 01 9d sethi %hi(0x40067400), %o2 <== NOT EXECUTED 40026f44: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026f48: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED 40026f4c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 40026f50: 7f ff ff ea call 40026ef8 <== NOT EXECUTED 40026f54: b0 10 20 00 clr %i0 <== NOT EXECUTED 40026f58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026f5c: 22 80 00 02 be,a 40026f64 <== NOT EXECUTED 40026f60: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 40026f64: 81 c7 e0 08 ret <== NOT EXECUTED 40026f68: 81 e8 00 00 restore <== NOT EXECUTED 40026ef8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 40026ef8: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 40026efc: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 40026f00: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 40026f04: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 40026f08: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 40026f0c: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 40026f10: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 40026f14: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 40026f18: 90 10 20 00 clr %o0 <== NOT EXECUTED 40026f1c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40026f20: 7f ff ff c3 call 40026e2c <== NOT EXECUTED 40026f24: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026f28: 01 00 00 00 nop 4000a1e8 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 4000a1e8: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 4000a1ec: 80 a6 20 00 cmp %i0, 0 4000a1f0: 12 80 00 08 bne 4000a210 4000a1f4: 01 00 00 00 nop errno = EFAULT; 4000a1f8: 40 00 0b fa call 4000d1e0 <__errno> <== NOT EXECUTED 4000a1fc: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 4000a200: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 4000a204: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 4000a208: 81 c7 e0 08 ret <== NOT EXECUTED 4000a20c: 81 e8 00 00 restore <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 4000a210: 7f ff de a2 call 40001c98 4000a214: 01 00 00 00 nop 4000a218: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 4000a21c: 40 00 02 dd call 4000ad90 <_TOD_Get> 4000a220: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 4000a224: 7f ff de a1 call 40001ca8 4000a228: 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; 4000a22c: 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; 4000a230: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 4000a234: 92 10 23 e8 mov 0x3e8, %o1 4000a238: 40 00 31 7d call 4001682c <.div> 4000a23c: c2 26 00 00 st %g1, [ %i0 ] 4000a240: 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; } 4000a244: 81 c7 e0 08 ret 4000a248: 91 e8 20 00 restore %g0, 0, %o0 40006dc4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 40006dc4: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40006dc8: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 ! 40063ce8 <== NOT EXECUTED return _POSIX_types_Uid; } 40006dcc: 81 c3 e0 08 retl <== NOT EXECUTED 40006dd0: d0 10 60 30 lduh [ %g1 + 0x30 ], %o0 <== NOT EXECUTED 40012290 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 40012290: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 40012294: e0 06 40 00 ld [ %i1 ], %l0 40012298: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 4001229c: 82 04 20 54 add %l0, 0x54, %g1 400122a0: 80 a0 80 01 cmp %g2, %g1 400122a4: 22 80 00 06 be,a 400122bc 400122a8: 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 ); 400122ac: 40 00 01 a6 call 40012944 <__errno> 400122b0: 01 00 00 00 nop 400122b4: 10 80 00 0d b 400122e8 400122b8: 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 ) 400122bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400122c0: 80 a0 40 10 cmp %g1, %l0 400122c4: 02 80 00 06 be 400122dc 400122c8: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 400122cc: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 400122d0: 80 a0 60 00 cmp %g1, 0 400122d4: 22 80 00 08 be,a 400122f4 400122d8: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 400122dc: 40 00 01 9a call 40012944 <__errno> 400122e0: 01 00 00 00 nop 400122e4: 82 10 20 10 mov 0x10, %g1 ! 10 400122e8: c2 22 00 00 st %g1, [ %o0 ] 400122ec: 81 c7 e0 08 ret 400122f0: 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 ) { 400122f4: 80 a0 60 00 cmp %g1, 0 400122f8: 22 80 00 06 be,a 40012310 400122fc: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 40012300: 7f ff d6 a0 call 40007d80 <_Chain_Extract> 40012304: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 40012308: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 4001230c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 40012310: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40012314: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 40012318: 90 07 bf f8 add %fp, -8, %o0 4001231c: 7f ff c5 5f call 40003898 40012320: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 40012324: 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) ) { 40012328: 90 10 00 10 mov %l0, %o0 4001232c: 7f ff f4 7f call 4000f528 40012330: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 40012334: 80 a2 20 00 cmp %o0, 0 40012338: 12 80 00 11 bne 4001237c 4001233c: 01 00 00 00 nop 40012340: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 40012344: 80 a0 60 00 cmp %g1, 0 40012348: 12 80 00 0d bne 4001237c 4001234c: 03 10 00 81 sethi %hi(0x40020400), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 40012350: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 ! 40020770 40012354: c4 06 40 00 ld [ %i1 ], %g2 40012358: c6 00 60 04 ld [ %g1 + 4 ], %g3 4001235c: 80 a0 c0 02 cmp %g3, %g2 40012360: 22 80 00 02 be,a 40012368 40012364: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 40012368: 90 10 00 10 mov %l0, %o0 4001236c: 7f ff c5 21 call 400037f0 40012370: b0 10 20 00 clr %i0 40012374: 81 c7 e0 08 ret 40012378: 81 e8 00 00 restore } return 0; } 4001237c: 81 c7 e0 08 ret 40012380: 91 e8 20 00 restore %g0, 0, %o0 40005f24 : int ioctl( int fd, ioctl_command_t command, ... ) { 40005f24: 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 ); 40005f28: 03 10 00 82 sethi %hi(0x40020800), %g1 40005f2c: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 40020aa4 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 40005f30: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 40005f34: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 40005f38: fa 27 a0 58 st %i5, [ %fp + 0x58 ] 40005f3c: 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 ); 40005f40: 80 a6 00 01 cmp %i0, %g1 40005f44: 1a 80 00 11 bcc 40005f88 40005f48: 92 10 00 19 mov %i1, %o1 iop = rtems_libio_iop( fd ); 40005f4c: 03 10 00 84 sethi %hi(0x40021000), %g1 40005f50: d0 00 63 44 ld [ %g1 + 0x344 ], %o0 ! 40021344 40005f54: 83 2e 20 06 sll %i0, 6, %g1 40005f58: b1 2e 20 03 sll %i0, 3, %i0 40005f5c: b0 06 00 01 add %i0, %g1, %i0 40005f60: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 40005f64: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 40005f68: 80 88 61 00 btst 0x100, %g1 40005f6c: 02 80 00 07 be 40005f88 40005f70: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 40005f74: 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 *); 40005f78: c4 27 bf fc st %g2, [ %fp + -4 ] /* * Now process the ioctl(). */ if ( !iop->handlers ) 40005f7c: 80 a0 60 00 cmp %g1, 0 40005f80: 12 80 00 06 bne 40005f98 40005f84: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( EBADF ); 40005f88: 40 00 33 65 call 40012d1c <__errno> 40005f8c: 01 00 00 00 nop 40005f90: 10 80 00 09 b 40005fb4 40005f94: 82 10 20 09 mov 9, %g1 ! 9 if ( !iop->handlers->ioctl_h ) 40005f98: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 40005f9c: 80 a0 60 00 cmp %g1, 0 40005fa0: 12 80 00 08 bne 40005fc0 40005fa4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 40005fa8: 40 00 33 5d call 40012d1c <__errno> <== NOT EXECUTED 40005fac: 01 00 00 00 nop <== NOT EXECUTED 40005fb0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40005fb4: c2 22 00 00 st %g1, [ %o0 ] 40005fb8: 10 80 00 04 b 40005fc8 40005fbc: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 40005fc0: 9f c0 40 00 call %g1 40005fc4: 01 00 00 00 nop return rc; } 40005fc8: 81 c7 e0 08 ret 40005fcc: 91 e8 00 08 restore %g0, %o0, %o0 400038e0 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 400038e0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 400038e4: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 400038e8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 400038ec: 02 80 00 03 be 400038f8 <== NOT EXECUTED 400038f0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 400038f4: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 400038f8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 400038fc: 02 80 00 0c be 4000392c <== NOT EXECUTED 40003900: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 40003904: 05 10 00 6a sethi %hi(0x4001a800), %g2 <== NOT EXECUTED 40003908: c4 00 a2 04 ld [ %g2 + 0x204 ], %g2 ! 4001aa04 <__ctype_ptr__> <== NOT EXECUTED 4000390c: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 40003910: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 40003914: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 40003918: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 4000391c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 40003920: 22 80 00 02 be,a 40003928 <== NOT EXECUTED 40003924: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 40003928: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 4000392c: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 40003930: 12 80 00 09 bne 40003954 <== NOT EXECUTED 40003934: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 40003938: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 4000393c: 12 80 00 5d bne 40003ab0 <== NOT EXECUTED 40003940: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 40003944: 32 80 00 0d bne,a 40003978 <== NOT EXECUTED 40003948: 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)) { 4000394c: 10 80 00 0c b 4000397c <== NOT EXECUTED 40003950: 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)) { 40003954: 12 80 00 07 bne 40003970 <== NOT EXECUTED 40003958: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 4000395c: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 40003960: 32 80 00 06 bne,a 40003978 <== NOT EXECUTED 40003964: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 40003968: 10 80 00 05 b 4000397c <== NOT EXECUTED 4000396c: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 40003970: 02 80 00 3c be 40003a60 <== NOT EXECUTED 40003974: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 40003978: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 4000397c: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 40003980: 02 80 00 38 be 40003a60 <== NOT EXECUTED 40003984: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 40003988: c6 0e 60 43 ldub [ %i1 + 0x43 ], %g3 <== NOT EXECUTED 4000398c: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED erase (tty, 0); 40003990: 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]) { 40003994: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40003998: 02 80 00 08 be 400039b8 <== NOT EXECUTED 4000399c: 92 10 20 00 clr %o1 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 400039a0: c6 0e 60 44 ldub [ %i1 + 0x44 ], %g3 <== NOT EXECUTED 400039a4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 400039a8: 32 80 00 07 bne,a 400039c4 <== NOT EXECUTED 400039ac: c6 0e 60 45 ldub [ %i1 + 0x45 ], %g3 <== NOT EXECUTED erase (tty, 1); 400039b0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 400039b4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 400039b8: 7f ff ff 3f call 400036b4 <== NOT EXECUTED 400039bc: b0 10 20 00 clr %i0 <== NOT EXECUTED 400039c0: 30 80 00 3d b,a 40003ab4 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 400039c4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 400039c8: 02 80 00 3b be 40003ab4 <== NOT EXECUTED 400039cc: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 400039d0: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 400039d4: 32 80 00 0f bne,a 40003a10 <== NOT EXECUTED 400039d8: c6 0e 60 4c ldub [ %i1 + 0x4c ], %g3 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 400039dc: 80 88 a0 48 btst 0x48, %g2 <== NOT EXECUTED 400039e0: 22 80 00 06 be,a 400039f8 <== NOT EXECUTED 400039e4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 400039e8: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 400039ec: 7f ff ff 0e call 40003624 <== NOT EXECUTED 400039f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 400039f4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 400039f8: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 400039fc: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 40003a00: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 40003a04: 82 00 60 01 inc %g1 <== NOT EXECUTED 40003a08: 10 80 00 14 b 40003a58 <== NOT EXECUTED 40003a0c: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 40003a10: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40003a14: 02 80 00 07 be 40003a30 <== NOT EXECUTED 40003a18: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 40003a1c: c6 0e 60 51 ldub [ %i1 + 0x51 ], %g3 <== NOT EXECUTED 40003a20: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40003a24: 12 80 00 0f bne 40003a60 <== NOT EXECUTED 40003a28: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 40003a2c: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 40003a30: 22 80 00 06 be,a 40003a48 <== NOT EXECUTED 40003a34: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 40003a38: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 40003a3c: 7f ff fe fa call 40003624 <== NOT EXECUTED 40003a40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 40003a44: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 40003a48: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 40003a4c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 40003a50: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 40003a54: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 40003a58: 81 c7 e0 08 ret <== NOT EXECUTED 40003a5c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 40003a60: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 40003a64: c2 00 61 98 ld [ %g1 + 0x198 ], %g1 <== NOT EXECUTED 40003a68: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40003a6c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003a70: 16 80 00 11 bge 40003ab4 <== NOT EXECUTED 40003a74: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 40003a78: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 40003a7c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 40003a80: 22 80 00 06 be,a 40003a98 <== NOT EXECUTED 40003a84: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 40003a88: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 40003a8c: 7f ff fe e6 call 40003624 <== NOT EXECUTED 40003a90: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 40003a94: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 40003a98: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 40003a9c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 40003aa0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 40003aa4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 40003aa8: 81 c7 e0 08 ret <== NOT EXECUTED 40003aac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40003ab0: b0 10 20 00 clr %i0 <== NOT EXECUTED } return 0; } 40003ab4: 81 c7 e0 08 ret <== NOT EXECUTED 40003ab8: 81 e8 00 00 restore <== NOT EXECUTED 4002307c : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 4002307c: 81 c3 e0 08 retl <== NOT EXECUTED 40023080: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 40018d94 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 40018d94: 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())) 40018d98: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018d9c: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 4001b3d0 <_System_state_Current> 40018da0: 80 a0 60 03 cmp %g1, 3 40018da4: 12 80 00 16 bne 40018dfc 40018da8: 03 10 00 69 sethi %hi(0x4001a400), %g1 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 40018dac: 23 10 00 6a sethi %hi(0x4001a800), %l1 40018db0: e0 00 60 68 ld [ %g1 + 0x68 ], %l0 40018db4: c2 04 62 08 ld [ %l1 + 0x208 ], %g1 40018db8: 80 a0 40 10 cmp %g1, %l0 40018dbc: 22 80 00 06 be,a 40018dd4 40018dc0: 21 10 00 6a sethi %hi(0x4001a800), %l0 _wrapup_reent(_global_impure_ptr); 40018dc4: 40 00 01 83 call 400193d0 <_wrapup_reent> 40018dc8: 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; 40018dcc: e0 24 62 08 st %l0, [ %l1 + 0x208 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 40018dd0: 21 10 00 6a sethi %hi(0x4001a800), %l0 40018dd4: c2 04 22 08 ld [ %l0 + 0x208 ], %g1 ! 4001aa08 <_impure_ptr> 40018dd8: 7f ff d1 5a call 4000d340 40018ddc: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 40018de0: c2 04 22 08 ld [ %l0 + 0x208 ], %g1 40018de4: 7f ff d1 57 call 4000d340 40018de8: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 40018dec: c2 04 22 08 ld [ %l0 + 0x208 ], %g1 40018df0: f0 00 60 0c ld [ %g1 + 0xc ], %i0 40018df4: 7f ff d1 53 call 4000d340 40018df8: 81 e8 00 00 restore 40018dfc: 81 c7 e0 08 ret <== NOT EXECUTED 40018e00: 81 e8 00 00 restore <== NOT EXECUTED 40027080 : int link( const char *existing, const char *new ) { 40027080: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 40027084: 40 00 77 81 call 40044e88 40027088: 90 10 00 18 mov %i0, %o0 4002708c: 94 10 20 00 clr %o2 40027090: 92 10 00 08 mov %o0, %o1 40027094: 96 07 bf e8 add %fp, -24, %o3 40027098: 90 10 00 18 mov %i0, %o0 4002709c: 98 10 20 01 mov 1, %o4 400270a0: 7f ff 7e d3 call 40006bec 400270a4: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 400270a8: 80 a2 20 00 cmp %o0, 0 400270ac: 12 80 00 8e bne 400272e4 400270b0: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 400270b4: c2 4e 40 00 ldsb [ %i1 ], %g1 400270b8: 80 a0 60 5c cmp %g1, 0x5c 400270bc: 02 80 00 06 be 400270d4 400270c0: 80 a0 60 2f cmp %g1, 0x2f 400270c4: 02 80 00 04 be 400270d4 400270c8: 80 a0 60 00 cmp %g1, 0 400270cc: 12 80 00 0a bne 400270f4 400270d0: 03 10 01 8f sethi %hi(0x40063c00), %g1 400270d4: 03 10 01 8f sethi %hi(0x40063c00), %g1 400270d8: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 ! 40063ce8 400270dc: 90 07 bf d4 add %fp, -44, %o0 400270e0: 92 02 60 18 add %o1, 0x18, %o1 400270e4: 40 00 69 11 call 40041528 400270e8: 94 10 20 14 mov 0x14, %o2 400270ec: 10 80 00 08 b 4002710c 400270f0: 90 10 20 01 mov 1, %o0 400270f4: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 400270f8: 90 07 bf d4 add %fp, -44, %o0 400270fc: 92 02 60 04 add %o1, 4, %o1 40027100: 40 00 69 0a call 40041528 40027104: 94 10 20 14 mov 0x14, %o2 40027108: 90 10 20 00 clr %o0 if ( !parent_loc.ops->evalformake_h ) { 4002710c: c2 07 bf e0 ld [ %fp + -32 ], %g1 40027110: c2 00 60 04 ld [ %g1 + 4 ], %g1 40027114: 80 a0 60 00 cmp %g1, 0 40027118: 32 80 00 0b bne,a 40027144 4002711c: 90 06 40 08 add %i1, %o0, %o0 rtems_filesystem_freenode( &existing_loc ); 40027120: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40027124: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027128: 02 80 00 51 be 4002726c <== NOT EXECUTED 4002712c: 01 00 00 00 nop <== NOT EXECUTED 40027130: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027134: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027138: 12 80 00 4b bne 40027264 <== NOT EXECUTED 4002713c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 40027140: 30 80 00 4b b,a 4002726c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 40027144: 94 07 bf fc add %fp, -4, %o2 40027148: b2 07 bf d4 add %fp, -44, %i1 4002714c: 9f c0 40 00 call %g1 40027150: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 40027154: a0 92 20 00 orcc %o0, 0, %l0 40027158: 02 80 00 11 be 4002719c 4002715c: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &existing_loc ); 40027160: c2 07 bf f4 ld [ %fp + -12 ], %g1 40027164: 80 a0 60 00 cmp %g1, 0 40027168: 02 80 00 08 be 40027188 4002716c: 01 00 00 00 nop 40027170: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027174: 80 a0 60 00 cmp %g1, 0 40027178: 02 80 00 04 be 40027188 4002717c: 01 00 00 00 nop 40027180: 9f c0 40 00 call %g1 40027184: 90 07 bf e8 add %fp, -24, %o0 rtems_set_errno_and_return_minus_one( result ); 40027188: 40 00 5c 15 call 4003e1dc <__errno> 4002718c: b0 10 3f ff mov -1, %i0 40027190: e0 22 00 00 st %l0, [ %o0 ] 40027194: 81 c7 e0 08 ret 40027198: 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 ) { 4002719c: c4 07 bf e4 ld [ %fp + -28 ], %g2 400271a0: 80 a0 80 01 cmp %g2, %g1 400271a4: 02 80 00 1a be 4002720c 400271a8: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &existing_loc ); 400271ac: c2 07 bf f4 ld [ %fp + -12 ], %g1 400271b0: 80 a0 60 00 cmp %g1, 0 400271b4: 22 80 00 09 be,a 400271d8 400271b8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400271bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400271c0: 80 a0 60 00 cmp %g1, 0 400271c4: 22 80 00 05 be,a 400271d8 400271c8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400271cc: 9f c0 40 00 call %g1 400271d0: 90 07 bf e8 add %fp, -24, %o0 rtems_filesystem_freenode( &parent_loc ); 400271d4: c2 07 bf e0 ld [ %fp + -32 ], %g1 400271d8: 80 a0 60 00 cmp %g1, 0 400271dc: 02 80 00 08 be 400271fc 400271e0: 01 00 00 00 nop 400271e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400271e8: 80 a0 60 00 cmp %g1, 0 400271ec: 02 80 00 04 be 400271fc 400271f0: 01 00 00 00 nop 400271f4: 9f c0 40 00 call %g1 400271f8: 90 07 bf d4 add %fp, -44, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 400271fc: 40 00 5b f8 call 4003e1dc <__errno> 40027200: b0 10 3f ff mov -1, %i0 40027204: 10 80 00 1d b 40027278 40027208: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 4002720c: c2 00 60 08 ld [ %g1 + 8 ], %g1 40027210: 80 a0 60 00 cmp %g1, 0 40027214: 12 80 00 1c bne 40027284 40027218: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &existing_loc ); 4002721c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40027220: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027224: 22 80 00 09 be,a 40027248 <== NOT EXECUTED 40027228: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 4002722c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027230: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027234: 22 80 00 05 be,a 40027248 <== NOT EXECUTED 40027238: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 4002723c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027240: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 40027244: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40027248: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002724c: 02 80 00 08 be 4002726c <== NOT EXECUTED 40027250: 01 00 00 00 nop <== NOT EXECUTED 40027254: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027258: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002725c: 02 80 00 04 be 4002726c <== NOT EXECUTED 40027260: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 40027264: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027268: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4002726c: 40 00 5b dc call 4003e1dc <__errno> <== NOT EXECUTED 40027270: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40027274: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027278: c2 22 00 00 st %g1, [ %o0 ] 4002727c: 81 c7 e0 08 ret 40027280: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 40027284: 92 10 00 19 mov %i1, %o1 40027288: b2 07 bf e8 add %fp, -24, %i1 4002728c: 9f c0 40 00 call %g1 40027290: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &existing_loc ); 40027294: c2 07 bf f4 ld [ %fp + -12 ], %g1 40027298: 80 a0 60 00 cmp %g1, 0 4002729c: 02 80 00 08 be 400272bc 400272a0: b0 10 00 08 mov %o0, %i0 400272a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400272a8: 80 a0 60 00 cmp %g1, 0 400272ac: 22 80 00 05 be,a 400272c0 400272b0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400272b4: 9f c0 40 00 call %g1 400272b8: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &parent_loc ); 400272bc: c2 07 bf e0 ld [ %fp + -32 ], %g1 400272c0: 80 a0 60 00 cmp %g1, 0 400272c4: 02 80 00 08 be 400272e4 400272c8: 01 00 00 00 nop 400272cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400272d0: 80 a0 60 00 cmp %g1, 0 400272d4: 02 80 00 04 be 400272e4 400272d8: 01 00 00 00 nop 400272dc: 9f c0 40 00 call %g1 400272e0: 90 07 bf d4 add %fp, -44, %o0 return result; } 400272e4: 81 c7 e0 08 ret 400272e8: 81 e8 00 00 restore 40018c44 : off_t lseek( int fd, off_t offset, int whence ) { 40018c44: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 40018c48: 03 10 00 6a sethi %hi(0x4001a800), %g1 40018c4c: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 ! 4001a894 off_t lseek( int fd, off_t offset, int whence ) { 40018c50: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 40018c54: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 40018c58: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 40018c5c: 1a 80 00 0c bcc 40018c8c 40018c60: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 40018c64: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018c68: e0 00 60 58 ld [ %g1 + 0x58 ], %l0 ! 4001b058 40018c6c: 83 2e 20 06 sll %i0, 6, %g1 40018c70: b1 2e 20 03 sll %i0, 3, %i0 40018c74: b0 06 00 01 add %i0, %g1, %i0 40018c78: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 40018c7c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 40018c80: 80 88 61 00 btst 0x100, %g1 40018c84: 32 80 00 06 bne,a 40018c9c 40018c88: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40018c8c: 7f ff d1 55 call 4000d1e0 <__errno> <== NOT EXECUTED 40018c90: 01 00 00 00 nop <== NOT EXECUTED 40018c94: 10 80 00 1e b 40018d0c <== NOT EXECUTED 40018c98: 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 ) 40018c9c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 40018ca0: 80 a0 60 00 cmp %g1, 0 40018ca4: 12 80 00 06 bne 40018cbc 40018ca8: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 40018cac: 7f ff d1 4d call 4000d1e0 <__errno> <== NOT EXECUTED 40018cb0: 01 00 00 00 nop <== NOT EXECUTED 40018cb4: 10 80 00 16 b 40018d0c <== NOT EXECUTED 40018cb8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 40018cbc: 02 80 00 09 be 40018ce0 40018cc0: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 40018cc4: 80 a6 e0 02 cmp %i3, 2 40018cc8: 02 80 00 09 be 40018cec 40018ccc: 80 a6 e0 00 cmp %i3, 0 40018cd0: 12 80 00 0c bne 40018d00 40018cd4: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 40018cd8: 10 80 00 12 b 40018d20 40018cdc: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 40018ce0: 9a 86 80 13 addcc %i2, %l3, %o5 40018ce4: 10 80 00 05 b 40018cf8 40018ce8: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 40018cec: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 40018cf0: 9a 86 80 0d addcc %i2, %o5, %o5 40018cf4: 98 46 40 0c addx %i1, %o4, %o4 break; 40018cf8: 10 80 00 0a b 40018d20 40018cfc: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 40018d00: 7f ff d1 38 call 4000d1e0 <__errno> 40018d04: 01 00 00 00 nop 40018d08: 82 10 20 16 mov 0x16, %g1 ! 16 40018d0c: c2 22 00 00 st %g1, [ %o0 ] 40018d10: 11 3f ff ff sethi %hi(0xfffffc00), %o0 40018d14: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 40018d18: 10 80 00 0e b 40018d50 40018d1c: 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 ); 40018d20: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40018d24: 92 10 00 02 mov %g2, %o1 40018d28: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 40018d2c: 94 10 00 03 mov %g3, %o2 40018d30: 9f c0 40 00 call %g1 40018d34: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 40018d38: 80 a2 3f ff cmp %o0, -1 40018d3c: 12 80 00 06 bne 40018d54 40018d40: b2 10 00 09 mov %o1, %i1 40018d44: 80 a2 7f ff cmp %o1, -1 40018d48: 22 80 00 03 be,a 40018d54 40018d4c: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 40018d50: b2 10 00 09 mov %o1, %i1 40018d54: 81 c7 e0 08 ret 40018d58: 91 e8 00 08 restore %g0, %o0, %o0 40027440 : int _STAT_NAME( const char *path, struct stat *buf ) { 40027440: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 40027444: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 40027448: 12 80 00 06 bne 40027460 <== NOT EXECUTED 4002744c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 40027450: 40 00 5b 63 call 4003e1dc <__errno> <== NOT EXECUTED 40027454: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40027458: 10 80 00 20 b 400274d8 <== NOT EXECUTED 4002745c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 40027460: 40 00 76 8a call 40044e88 <== NOT EXECUTED 40027464: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027468: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 4002746c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40027470: 94 10 20 00 clr %o2 <== NOT EXECUTED 40027474: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027478: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 4002747c: 98 10 20 00 clr %o4 <== NOT EXECUTED 40027480: 7f ff 7d db call 40006bec <== NOT EXECUTED 40027484: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 40027488: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4002748c: 12 80 00 14 bne 400274dc <== NOT EXECUTED 40027490: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 40027494: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 40027498: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002749c: 12 80 00 12 bne 400274e4 <== NOT EXECUTED 400274a0: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 400274a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 400274a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400274ac: 02 80 00 08 be 400274cc <== NOT EXECUTED 400274b0: 01 00 00 00 nop <== NOT EXECUTED 400274b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400274b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400274bc: 02 80 00 04 be 400274cc <== NOT EXECUTED 400274c0: 01 00 00 00 nop <== NOT EXECUTED 400274c4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400274c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 400274cc: 40 00 5b 44 call 4003e1dc <__errno> <== NOT EXECUTED 400274d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400274d4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400274d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400274dc: 81 c7 e0 08 ret <== NOT EXECUTED 400274e0: 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) ); 400274e4: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 400274e8: 40 00 68 a3 call 40041774 <== NOT EXECUTED 400274ec: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 400274f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 400274f4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 400274f8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 400274fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027500: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 40027504: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40027508: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002750c: 02 bf ff f4 be 400274dc <== NOT EXECUTED 40027510: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 40027514: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027518: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002751c: 02 80 00 04 be 4002752c <== NOT EXECUTED 40027520: 01 00 00 00 nop <== NOT EXECUTED 40027524: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027528: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 4002752c: 81 c7 e0 08 ret <== NOT EXECUTED 40027530: 81 e8 00 00 restore <== NOT EXECUTED 4000a5bc : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 4000a5bc: 9d e3 bf a0 save %sp, -96, %sp 4000a5c0: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000a5c4: 82 10 60 68 or %g1, 0x68, %g1 ! 4001b068 4000a5c8: c4 00 60 04 ld [ %g1 + 4 ], %g2 4000a5cc: a0 10 00 18 mov %i0, %l0 4000a5d0: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4000a5d4: 7f ff ff ed call 4000a588 4000a5d8: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 4000a5dc: 80 a6 20 00 cmp %i0, 0 4000a5e0: 02 80 00 36 be 4000a6b8 4000a5e4: 03 10 00 6c sethi %hi(0x4001b000), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4000a5e8: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 4001b3d0 <_System_state_Current> 4000a5ec: 80 a0 60 03 cmp %g1, 3 4000a5f0: 12 80 00 07 bne 4000a60c 4000a5f4: 03 10 00 6a sethi %hi(0x4001a800), %g1 4000a5f8: 7f ff ff cb call 4000a524 4000a5fc: 01 00 00 00 nop 4000a600: 80 8a 20 ff btst 0xff, %o0 4000a604: 02 80 00 2d be 4000a6b8 4000a608: 03 10 00 6a sethi %hi(0x4001a800), %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 ); 4000a60c: d0 00 60 a0 ld [ %g1 + 0xa0 ], %o0 ! 4001a8a0 4000a610: 92 10 00 10 mov %l0, %o1 4000a614: 94 10 20 00 clr %o2 4000a618: 40 00 03 12 call 4000b260 <_Protected_heap_Allocate_aligned_with_boundary> 4000a61c: 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 ) { 4000a620: b0 92 20 00 orcc %o0, 0, %i0 4000a624: 12 80 00 13 bne 4000a670 4000a628: a2 10 00 18 mov %i0, %l1 if (rtems_malloc_sbrk_helpers) 4000a62c: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000a630: c2 00 62 cc ld [ %g1 + 0x2cc ], %g1 ! 4001aecc 4000a634: 80 a0 60 00 cmp %g1, 0 4000a638: 02 80 00 08 be 4000a658 4000a63c: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 4000a640: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 4000a644: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a648: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 4000a64c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 4000a650: 12 80 00 09 bne 4000a674 <== NOT EXECUTED 4000a654: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED errno = ENOMEM; 4000a658: 40 00 0a e2 call 4000d1e0 <__errno> 4000a65c: 01 00 00 00 nop 4000a660: 82 10 20 0c mov 0xc, %g1 ! c 4000a664: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 4000a668: 81 c7 e0 08 ret 4000a66c: 81 e8 00 00 restore } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 4000a670: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000a674: c2 00 62 d0 ld [ %g1 + 0x2d0 ], %g1 ! 4001aed0 4000a678: 80 a0 60 00 cmp %g1, 0 4000a67c: 02 80 00 05 be 4000a690 4000a680: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 4000a684: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 4000a688: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a68c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4000a690: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000a694: c2 00 62 c8 ld [ %g1 + 0x2c8 ], %g1 ! 4001aec8 4000a698: 80 a0 60 00 cmp %g1, 0 4000a69c: 02 bf ff f3 be 4000a668 4000a6a0: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4000a6a4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 4000a6a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a6ac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a6b0: 81 c7 e0 08 ret <== NOT EXECUTED 4000a6b4: 81 e8 00 00 restore <== NOT EXECUTED 4000a6b8: 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; } 4000a6bc: 81 c7 e0 08 ret <== NOT EXECUTED 4000a6c0: 81 e8 00 00 restore <== NOT EXECUTED 4000a56c : 4000a56c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 4000a570: 11 10 00 6d sethi %hi(0x4001b400), %o0 <== NOT EXECUTED 4000a574: 90 12 20 ac or %o0, 0xac, %o0 ! 4001b4ac <== NOT EXECUTED 4000a578: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000a57c: 7f ff ee 63 call 40005f08 <_Chain_Append> <== NOT EXECUTED 4000a580: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4000a584: 01 00 00 00 nop 4000a588 : void malloc_deferred_frees_process(void) { 4000a588: 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 ); 4000a58c: 21 10 00 6d sethi %hi(0x4001b400), %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) 4000a590: 10 80 00 04 b 4000a5a0 4000a594: a0 14 20 ac or %l0, 0xac, %l0 ! 4001b4ac free(to_be_freed); 4000a598: 7f ff fe af call 4000a054 <== NOT EXECUTED 4000a59c: 01 00 00 00 nop <== NOT EXECUTED 4000a5a0: 40 00 01 91 call 4000abe4 <_Chain_Get> 4000a5a4: 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) 4000a5a8: 80 a2 20 00 cmp %o0, 0 4000a5ac: 12 bf ff fb bne 4000a598 4000a5b0: 01 00 00 00 nop free(to_be_freed); } 4000a5b4: 81 c7 e0 08 ret 4000a5b8: 81 e8 00 00 restore 40011330 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 40011330: 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) ) { 40011334: 7f ff f8 7d call 4000f528 40011338: 90 10 00 18 mov %i0, %o0 4001133c: 80 a2 20 00 cmp %o0, 0 40011340: 12 80 00 13 bne 4001138c 40011344: 01 00 00 00 nop 40011348: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 4001134c: 80 a0 60 00 cmp %g1, 0 40011350: 12 80 00 0f bne 4001138c 40011354: 03 10 00 81 sethi %hi(0x40020400), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 40011358: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 ! 40020770 4001135c: c4 00 60 04 ld [ %g1 + 4 ], %g2 40011360: 80 a0 80 18 cmp %g2, %i0 40011364: 22 80 00 02 be,a 4001136c 40011368: 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) 4001136c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40011370: 80 a0 60 06 cmp %g1, 6 40011374: 02 80 00 04 be 40011384 40011378: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 4001137c: 7f ff ff 8c call 400111ac 40011380: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 40011384: 7f ff c9 1b call 400037f0 40011388: 90 10 00 18 mov %i0, %o0 } return 0; } 4001138c: 81 c7 e0 08 ret 40011390: 91 e8 20 00 restore %g0, 0, %o0 400110e4 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 400110e4: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 400110e8: 80 a6 20 00 cmp %i0, 0 400110ec: 32 80 00 0a bne,a 40011114 400110f0: e0 06 00 00 ld [ %i0 ], %l0 400110f4: 11 10 00 7f sethi %hi(0x4001fc00), %o0 <== NOT EXECUTED 400110f8: 15 10 00 7f sethi %hi(0x4001fc00), %o2 <== NOT EXECUTED 400110fc: 17 10 00 7f sethi %hi(0x4001fc00), %o3 <== NOT EXECUTED 40011100: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED 40011104: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 40011108: 96 12 e1 08 or %o3, 0x108, %o3 <== NOT EXECUTED 4001110c: 7f ff c8 c3 call 40003418 <__assert_func> <== NOT EXECUTED 40011110: 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 40011118: a2 10 20 00 clr %l1 if ( b[i] ) { 4001111c: 80 a2 20 00 cmp %o0, 0 40011120: 02 80 00 05 be 40011134 40011124: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 40011128: 7f ff ff 2a call 40010dd0 4001112c: 01 00 00 00 nop b[i] = 0; 40011130: 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 40011140: 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 ); 40011144: 7f ff ff 23 call 40010dd0 40011148: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 4001114c: c0 26 00 00 clr [ %i0 ] } 40011150: 81 c7 e0 08 ret 40011154: 81 e8 00 00 restore 40011644 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 40011644: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 40011648: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 4001164c: 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 ) 40011650: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 40011654: 80 a0 40 19 cmp %g1, %i1 40011658: 06 80 00 09 bl 4001167c 4001165c: 94 10 00 1a mov %i2, %o2 40011660: 80 a0 40 19 cmp %g1, %i1 40011664: 32 80 00 0a bne,a 4001168c 40011668: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 4001166c: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 40011670: 80 a0 40 1a cmp %g1, %i2 40011674: 3a 80 00 06 bcc,a 4001168c 40011678: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 4001167c: 7f ff ff 8f call 400114b8 <== NOT EXECUTED 40011680: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40011684: 81 c7 e0 08 ret <== NOT EXECUTED 40011688: 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; 4001168c: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 40011690: d2 26 20 08 st %o1, [ %i0 + 8 ] 40011694: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 40011698: 90 07 bf f8 add %fp, -8, %o0 4001169c: 7f ff c8 7f call 40003898 400116a0: 92 10 20 00 clr %o1 400116a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 400116a8: 90 10 20 00 clr %o0 400116ac: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return 0; } 400116b0: b0 10 00 08 mov %o0, %i0 400116b4: 81 c7 e0 08 ret 400116b8: 81 e8 00 00 restore 400116bc : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 400116bc: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 400116c0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 400116c4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 400116c8: 80 a0 60 06 cmp %g1, 6 400116cc: 32 80 00 11 bne,a 40011710 400116d0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 400116d4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 400116d8: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 400116dc: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 400116e0: 14 80 00 09 bg 40011704 <== NOT EXECUTED 400116e4: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 400116e8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 400116ec: 32 80 00 1a bne,a 40011754 <== NOT EXECUTED 400116f0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 400116f4: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 400116f8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 400116fc: 28 80 00 16 bleu,a 40011754 <== NOT EXECUTED 40011700: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 40011704: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 40011708: 10 80 00 12 b 40011750 <== NOT EXECUTED 4001170c: 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 )) 40011710: 90 10 00 10 mov %l0, %o0 40011714: 92 10 00 02 mov %g2, %o1 40011718: 7f ff ff 68 call 400114b8 4001171c: 94 10 00 03 mov %g3, %o2 40011720: 80 a2 20 00 cmp %o0, 0 40011724: 22 80 00 0a be,a 4001174c 40011728: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 4001172c: 40 00 04 86 call 40012944 <__errno> <== NOT EXECUTED 40011730: 01 00 00 00 nop <== NOT EXECUTED 40011734: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 40011738: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 4001173c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40011740: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 40011744: 10 80 00 04 b 40011754 <== NOT EXECUTED 40011748: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 4001174c: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 40011750: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 40011754: b2 10 00 03 mov %g3, %i1 40011758: 81 c7 e0 08 ret 4001175c: 91 e8 00 02 restore %g0, %g2, %o0 40011a28 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 40011a28: 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)) 40011a2c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 40011a30: 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)) 40011a34: 80 88 62 04 btst 0x204, %g1 40011a38: 02 80 00 19 be 40011a9c 40011a3c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 40011a40: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40011a44: 80 a0 60 06 cmp %g1, 6 40011a48: 32 80 00 16 bne,a 40011aa0 40011a4c: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 40011a50: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 40011a54: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 40011a58: 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; 40011a5c: 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; 40011a60: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 40011a64: 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; 40011a68: 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; 40011a6c: 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) 40011a70: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 40011a74: 02 80 00 0a be 40011a9c <== NOT EXECUTED 40011a78: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 40011a7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40011a80: 92 10 20 00 clr %o1 <== NOT EXECUTED 40011a84: 94 10 20 00 clr %o2 <== NOT EXECUTED 40011a88: 7f ff ff 36 call 40011760 <== NOT EXECUTED 40011a8c: 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) 40011a90: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 40011a94: 02 80 00 0a be 40011abc <== NOT EXECUTED 40011a98: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 40011a9c: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 40011aa0: 80 88 62 00 btst 0x200, %g1 40011aa4: 02 80 00 04 be 40011ab4 40011aa8: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 40011aac: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 40011ab0: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 40011ab4: b0 10 20 00 clr %i0 40011ab8: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 40011abc: 81 c7 e0 08 ret 40011ac0: 81 e8 00 00 restore 40011394 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 40011394: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 40011398: 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 ) { 4001139c: c2 04 20 08 ld [ %l0 + 8 ], %g1 400113a0: 80 a0 60 00 cmp %g1, 0 400113a4: 22 80 00 06 be,a 400113bc 400113a8: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 400113ac: 7f ff da 75 call 40007d80 <_Chain_Extract> 400113b0: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 400113b4: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 400113b8: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 400113bc: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 400113c0: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 400113c4: 90 07 bf f8 add %fp, -8, %o0 400113c8: 7f ff c9 34 call 40003898 400113cc: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 400113d0: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 400113d4: 90 10 00 10 mov %l0, %o0 400113d8: 7f ff ff d6 call 40011330 400113dc: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } 400113e0: 81 c7 e0 08 ret 400113e4: 91 e8 00 08 restore %g0, %o0, %o0 40008fe0 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 40008fe0: 13 10 00 67 sethi %hi(0x40019c00), %o1 40008fe4: 15 10 00 67 sethi %hi(0x40019c00), %o2 40008fe8: 92 12 61 6c or %o1, 0x16c, %o1 40008fec: 94 12 a3 30 or %o2, 0x330, %o2 40008ff0: 96 10 00 0a mov %o2, %o3 40008ff4: 82 13 c0 00 mov %o7, %g1 40008ff8: 40 00 03 09 call 40009c1c 40008ffc: 9e 10 40 00 mov %g1, %o7 40009000: 01 00 00 00 nop <== NOT EXECUTED 40002358 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 40002358: 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) ) ) 4000235c: 03 00 00 3c sethi %hi(0xf000), %g1 40002360: b3 2e 60 10 sll %i1, 0x10, %i1 40002364: b3 36 60 10 srl %i1, 0x10, %i1 40002368: 80 8e 40 01 btst %i1, %g1 4000236c: 32 80 00 06 bne,a 40002384 40002370: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 40002374: 40 00 2b 9b call 4000d1e0 <__errno> <== NOT EXECUTED 40002378: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000237c: 10 80 00 31 b 40002440 <== NOT EXECUTED 40002380: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 40002384: 80 a0 60 5c cmp %g1, 0x5c 40002388: 02 80 00 06 be 400023a0 4000238c: 80 a0 60 2f cmp %g1, 0x2f 40002390: 02 80 00 04 be 400023a0 40002394: 80 a0 60 00 cmp %g1, 0 40002398: 12 80 00 0a bne 400023c0 4000239c: 03 10 00 6a sethi %hi(0x4001a800), %g1 400023a0: 03 10 00 6a sethi %hi(0x4001a800), %g1 400023a4: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 ! 4001a9a8 400023a8: 90 07 bf e8 add %fp, -24, %o0 400023ac: 92 02 60 18 add %o1, 0x18, %o1 400023b0: 40 00 2d c7 call 4000dacc 400023b4: 94 10 20 14 mov 0x14, %o2 400023b8: 10 80 00 08 b 400023d8 400023bc: 90 10 20 01 mov 1, %o0 400023c0: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 400023c4: 90 07 bf e8 add %fp, -24, %o0 400023c8: 92 02 60 04 add %o1, 4, %o1 400023cc: 40 00 2d c0 call 4000dacc 400023d0: 94 10 20 14 mov 0x14, %o2 400023d4: 90 10 20 00 clr %o0 if ( !temp_loc.ops->evalformake_h ) { 400023d8: c2 07 bf f4 ld [ %fp + -12 ], %g1 400023dc: c2 00 60 04 ld [ %g1 + 4 ], %g1 400023e0: 80 a0 60 00 cmp %g1, 0 400023e4: 02 80 00 14 be 40002434 400023e8: 90 06 00 08 add %i0, %o0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 400023ec: a0 07 bf e8 add %fp, -24, %l0 400023f0: 94 07 bf fc add %fp, -4, %o2 400023f4: 92 10 00 10 mov %l0, %o1 400023f8: 9f c0 40 00 call %g1 400023fc: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 40002400: 80 a2 20 00 cmp %o0, 0 40002404: 12 80 00 10 bne 40002444 40002408: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 4000240c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 40002410: 80 a0 60 00 cmp %g1, 0 40002414: 12 80 00 0e bne 4000244c 40002418: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &temp_loc ); 4000241c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40002420: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40002424: 02 80 00 04 be 40002434 <== NOT EXECUTED 40002428: 01 00 00 00 nop <== NOT EXECUTED 4000242c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40002430: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40002434: 40 00 2b 6b call 4000d1e0 <__errno> <== NOT EXECUTED 40002438: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000243c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40002440: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40002444: 81 c7 e0 08 ret 40002448: 81 e8 00 00 restore } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 4000244c: 92 10 00 19 mov %i1, %o1 40002450: 94 10 00 1a mov %i2, %o2 40002454: 96 10 00 1b mov %i3, %o3 40002458: 9f c0 40 00 call %g1 4000245c: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 40002460: c2 07 bf f4 ld [ %fp + -12 ], %g1 40002464: 80 a0 60 00 cmp %g1, 0 40002468: 02 bf ff f7 be 40002444 4000246c: b0 10 00 08 mov %o0, %i0 40002470: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40002474: 80 a0 60 00 cmp %g1, 0 40002478: 02 80 00 04 be 40002488 4000247c: 01 00 00 00 nop 40002480: 9f c0 40 00 call %g1 40002484: 90 10 00 10 mov %l0, %o0 return result; } 40002488: 81 c7 e0 08 ret 4000248c: 81 e8 00 00 restore 400024b0 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 400024b0: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 400024b4: 80 a6 60 00 cmp %i1, 0 400024b8: 02 80 00 05 be 400024cc 400024bc: a0 10 00 18 mov %i0, %l0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 400024c0: 80 a6 a0 01 cmp %i2, 1 400024c4: 28 80 00 06 bleu,a 400024dc 400024c8: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 400024cc: 40 00 2b 45 call 4000d1e0 <__errno> 400024d0: 01 00 00 00 nop 400024d4: 10 80 00 14 b 40002524 400024d8: 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; 400024dc: a4 10 20 00 clr %l2 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 400024e0: 80 a0 60 00 cmp %g1, 0 400024e4: 02 80 00 4c be 40002614 400024e8: a6 10 20 00 clr %l3 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 400024ec: 80 a6 e0 00 cmp %i3, 0 400024f0: 02 80 00 05 be 40002504 400024f4: 90 10 20 6c mov 0x6c, %o0 size += strlen( device ) + 1; 400024f8: 40 00 2e f1 call 4000e0bc <== NOT EXECUTED 400024fc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 40002500: 90 02 20 6d add %o0, 0x6d, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 40002504: 40 00 20 2e call 4000a5bc 40002508: 01 00 00 00 nop if ( !temp_mt_entry ) { 4000250c: a2 92 20 00 orcc %o0, 0, %l1 40002510: 12 80 00 07 bne 4000252c 40002514: a6 10 00 11 mov %l1, %l3 errno = ENOMEM; 40002518: 40 00 2b 32 call 4000d1e0 <__errno> <== NOT EXECUTED 4000251c: 01 00 00 00 nop <== NOT EXECUTED 40002520: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40002524: 10 80 00 75 b 400026f8 40002528: 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; 4000252c: f4 24 60 30 st %i2, [ %l1 + 0x30 ] if ( device ) { 40002530: 80 a6 e0 00 cmp %i3, 0 40002534: 02 80 00 08 be 40002554 40002538: e2 24 60 2c st %l1, [ %l1 + 0x2c ] temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 4000253c: 90 04 60 6c add %l1, 0x6c, %o0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 40002540: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 40002544: 40 00 2e bb call 4000e030 <== NOT EXECUTED 40002548: 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 ) { 4000254c: 10 80 00 04 b 4000255c <== NOT EXECUTED 40002550: 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; 40002554: 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 ) { 40002558: 80 a7 20 00 cmp %i4, 0 4000255c: 22 80 00 39 be,a 40002640 40002560: c0 24 60 1c clr [ %l1 + 0x1c ] if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 40002564: 40 00 2e d6 call 4000e0bc 40002568: 90 10 00 1c mov %i4, %o0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 4000256c: a4 07 bf ec add %fp, -20, %l2 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 40002570: 92 10 00 08 mov %o0, %o1 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 40002574: 94 10 20 07 mov 7, %o2 40002578: 90 10 00 1c mov %i4, %o0 4000257c: 96 10 00 12 mov %l2, %o3 40002580: 7f ff fe d7 call 400020dc 40002584: 98 10 20 01 mov 1, %o4 40002588: 80 a2 3f ff cmp %o0, -1 4000258c: 02 80 00 4b be 400026b8 40002590: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 40002594: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 40002598: 80 a0 60 00 cmp %g1, 0 4000259c: 02 80 00 1e be 40002614 400025a0: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 400025a4: 9f c0 40 00 call %g1 400025a8: 90 10 00 12 mov %l2, %o0 400025ac: 80 a2 20 01 cmp %o0, 1 400025b0: 02 80 00 07 be 400025cc 400025b4: 03 10 00 6c sethi %hi(0x4001b000), %g1 errno = ENOTDIR; 400025b8: 40 00 2b 0a call 4000d1e0 <__errno> 400025bc: 01 00 00 00 nop 400025c0: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 400025c4: 10 80 00 3e b 400026bc 400025c8: 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; 400025cc: 05 10 00 6c sethi %hi(0x4001b000), %g2 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 400025d0: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 400025d4: 84 10 a0 9c or %g2, 0x9c, %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 ) 400025d8: 10 80 00 06 b 400025f0 400025dc: c6 07 bf ec ld [ %fp + -20 ], %g3 400025e0: 80 a1 00 03 cmp %g4, %g3 400025e4: 02 80 00 08 be 40002604 400025e8: 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 ) { 400025ec: c2 00 40 00 ld [ %g1 ], %g1 400025f0: 80 a0 40 02 cmp %g1, %g2 400025f4: 32 bf ff fb bne,a 400025e0 400025f8: 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; 400025fc: 10 80 00 42 b 40002704 40002600: 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; 40002604: 40 00 2a f7 call 4000d1e0 <__errno> 40002608: a4 07 bf ec add %fp, -20, %l2 4000260c: 10 bf ff ee b 400025c4 40002610: 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; 40002614: 40 00 2a f3 call 4000d1e0 <__errno> <== NOT EXECUTED 40002618: 01 00 00 00 nop <== NOT EXECUTED 4000261c: 10 bf ff ea b 400025c4 <== NOT EXECUTED 40002620: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 40002624: 90 10 00 11 mov %l1, %o0 40002628: 9f c0 40 00 call %g1 4000262c: a4 07 bf ec add %fp, -20, %l2 40002630: 80 a2 20 00 cmp %o0, 0 40002634: 22 80 00 0b be,a 40002660 40002638: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 4000263c: 30 80 00 20 b,a 400026bc <== 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; 40002640: c0 24 60 24 clr [ %l1 + 0x24 ] temp_mt_entry->mt_fs_root.ops = NULL; 40002644: c0 24 60 28 clr [ %l1 + 0x28 ] temp_mt_entry->mt_point_node.node_access = NULL; 40002648: c0 24 60 08 clr [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 4000264c: c0 24 60 10 clr [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = NULL; 40002650: c0 24 60 14 clr [ %l1 + 0x14 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 40002654: c0 24 60 18 clr [ %l1 + 0x18 ] 40002658: a4 10 20 00 clr %l2 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 4000265c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 40002660: 9f c0 40 00 call %g1 40002664: 90 10 00 11 mov %l1, %o0 40002668: 80 a2 20 00 cmp %o0, 0 4000266c: 02 80 00 0a be 40002694 40002670: 11 10 00 6c sethi %hi(0x4001b000), %o0 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 40002674: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40002678: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 4000267c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40002680: 02 80 00 0f be 400026bc <== NOT EXECUTED 40002684: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 40002688: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000268c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40002690: 30 80 00 0b b,a 400026bc <== 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 ); 40002694: 92 10 00 11 mov %l1, %o1 40002698: 40 00 0e 1c call 40005f08 <_Chain_Append> 4000269c: 90 12 20 98 or %o0, 0x98, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 400026a0: 80 a4 20 00 cmp %l0, 0 400026a4: 02 80 00 03 be 400026b0 400026a8: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 400026ac: e2 24 00 00 st %l1, [ %l0 ] 400026b0: 81 c7 e0 08 ret 400026b4: 81 e8 00 00 restore 400026b8: a4 10 20 00 clr %l2 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 400026bc: 40 00 1e 66 call 4000a054 400026c0: 90 10 00 13 mov %l3, %o0 if ( loc_to_free ) 400026c4: 80 a4 a0 00 cmp %l2, 0 400026c8: 02 bf ff fa be 400026b0 400026cc: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( loc_to_free ); 400026d0: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 400026d4: 80 a0 60 00 cmp %g1, 0 400026d8: 02 80 00 09 be 400026fc 400026dc: 01 00 00 00 nop 400026e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400026e4: 80 a0 60 00 cmp %g1, 0 400026e8: 02 80 00 05 be 400026fc 400026ec: 01 00 00 00 nop 400026f0: 9f c0 40 00 call %g1 400026f4: 90 10 00 12 mov %l2, %o0 400026f8: b0 10 3f ff mov -1, %i0 return -1; } 400026fc: 81 c7 e0 08 ret 40002700: 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; 40002704: c6 07 bf f4 ld [ %fp + -12 ], %g3 temp_mt_entry->mt_point_node.ops = loc.ops; 40002708: 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; 4000270c: 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; 40002710: 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 ){ 40002714: 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; 40002718: 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 ){ 4000271c: 80 a0 60 00 cmp %g1, 0 40002720: 12 bf ff c1 bne 40002624 40002724: c4 24 60 14 st %g2, [ %l1 + 0x14 ] errno = ENOTSUP; 40002728: 10 bf ff bb b 40002614 <== NOT EXECUTED 4000272c: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED 4000279c : */ int newlib_free_buffers( FILE *fp ) { 4000279c: 9d e3 bf a0 save %sp, -96, %sp switch ( fileno(fp) ) { 400027a0: 40 00 2b a9 call 4000d644 400027a4: 90 10 00 18 mov %i0, %o0 400027a8: 80 a2 20 02 cmp %o0, 2 400027ac: 18 80 00 0e bgu 400027e4 400027b0: 01 00 00 00 nop case 0: case 1: case 2: if (fp->_flags & __SMBF) { 400027b4: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 400027b8: 80 88 60 80 btst 0x80, %g1 400027bc: 02 80 00 0c be 400027ec 400027c0: 01 00 00 00 nop free( fp->_bf._base ); 400027c4: 40 00 1e 24 call 4000a054 <== NOT EXECUTED 400027c8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 400027cc: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 400027d0: 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; 400027d4: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 400027d8: 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; 400027dc: 10 80 00 04 b 400027ec <== NOT EXECUTED 400027e0: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 400027e4: 40 00 2a d7 call 4000d340 <== NOT EXECUTED 400027e8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 400027ec: 81 c7 e0 08 ret 400027f0: 91 e8 20 00 restore %g0, 0, %o0 4000285c : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 4000285c: 9d e3 bf a0 save %sp, -96, %sp rtems_device_driver status; if ( !initialized ) { 40002860: 03 10 00 7f sethi %hi(0x4001fc00), %g1 40002864: c4 48 61 8c ldsb [ %g1 + 0x18c ], %g2 ! 4001fd8c 40002868: 80 a0 a0 00 cmp %g2, 0 4000286c: 12 80 00 0e bne 400028a4 40002870: 84 10 20 01 mov 1, %g2 initialized = 1; status = rtems_io_register_name( 40002874: 11 10 00 77 sethi %hi(0x4001dc00), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 40002878: c4 28 61 8c stb %g2, [ %g1 + 0x18c ] status = rtems_io_register_name( 4000287c: 90 12 21 80 or %o0, 0x180, %o0 40002880: 92 10 00 18 mov %i0, %o1 40002884: 40 00 00 51 call 400029c8 40002888: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 4000288c: 80 a2 20 00 cmp %o0, 0 40002890: 02 80 00 04 be 400028a0 40002894: 03 10 00 7f sethi %hi(0x4001fc00), %g1 rtems_fatal_error_occurred(status); 40002898: 40 00 10 80 call 40006a98 <== NOT EXECUTED 4000289c: 01 00 00 00 nop <== NOT EXECUTED NULL_major = major; 400028a0: f0 20 63 34 st %i0, [ %g1 + 0x334 ] } return RTEMS_SUCCESSFUL; } 400028a4: 81 c7 e0 08 ret 400028a8: 91 e8 20 00 restore %g0, 0, %o0 40002838 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 40002838: 80 a2 a0 00 cmp %o2, 0 4000283c: 02 80 00 04 be 4000284c 40002840: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 40002844: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED 40002848: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 4000284c: 81 c3 e0 08 retl 40002850: 90 10 20 00 clr %o0 40002a14 : int open( const char *pathname, int flags, ... ) { 40002a14: 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); 40002a18: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 40002a1c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 40002a20: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 40002a24: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 40002a28: a2 06 60 01 add %i1, 1, %l1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 40002a2c: 80 8c 60 02 btst 2, %l1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 40002a30: a2 0c 60 01 and %l1, 1, %l1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 40002a34: 02 80 00 03 be 40002a40 40002a38: a3 2c 60 02 sll %l1, 2, %l1 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 40002a3c: a2 14 60 02 or %l1, 2, %l1 va_start(ap, flags); mode = va_arg( ap, int ); 40002a40: 82 07 a0 50 add %fp, 0x50, %g1 40002a44: e4 07 a0 4c ld [ %fp + 0x4c ], %l2 40002a48: 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(); 40002a4c: 40 00 1e 75 call 4000a420 40002a50: a6 10 20 17 mov 0x17, %l3 if ( iop == 0 ) { 40002a54: a0 92 20 00 orcc %o0, 0, %l0 40002a58: 02 80 00 9a be 40002cc0 40002a5c: 01 00 00 00 nop /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 40002a60: 40 00 2d 97 call 4000e0bc 40002a64: 90 10 00 18 mov %i0, %o0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 40002a68: 94 10 00 11 mov %l1, %o2 pathname, strlen( pathname ), eval_flags, &loc, true ); 40002a6c: 92 10 00 08 mov %o0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 40002a70: a2 07 bf e8 add %fp, -24, %l1 40002a74: 90 10 00 18 mov %i0, %o0 40002a78: 96 10 00 11 mov %l1, %o3 40002a7c: 7f ff fd 98 call 400020dc 40002a80: 98 10 20 01 mov 1, %o4 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 40002a84: 80 a2 3f ff cmp %o0, -1 40002a88: 12 80 00 24 bne 40002b18 40002a8c: 82 0e 6a 00 and %i1, 0xa00, %g1 if ( errno != ENOENT ) { 40002a90: 40 00 29 d4 call 4000d1e0 <__errno> 40002a94: a8 10 20 00 clr %l4 40002a98: c2 02 00 00 ld [ %o0 ], %g1 40002a9c: 80 a0 60 02 cmp %g1, 2 40002aa0: 12 80 00 40 bne 40002ba0 40002aa4: 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) ) { 40002aa8: a8 10 20 00 clr %l4 40002aac: 02 80 00 73 be 40002c78 40002ab0: 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 ); 40002ab4: 13 3f ff e0 sethi %hi(0xffff8000), %o1 40002ab8: 90 10 00 18 mov %i0, %o0 40002abc: 92 14 80 09 or %l2, %o1, %o1 40002ac0: 94 10 20 00 clr %o2 40002ac4: 93 2a 60 10 sll %o1, 0x10, %o1 40002ac8: 96 10 20 00 clr %o3 40002acc: 7f ff fe 23 call 40002358 40002ad0: 93 32 60 10 srl %o1, 0x10, %o1 if ( rc ) { 40002ad4: 80 a2 20 00 cmp %o0, 0 40002ad8: 12 80 00 32 bne 40002ba0 40002adc: 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 ); 40002ae0: 40 00 2d 77 call 4000e0bc 40002ae4: 90 10 00 18 mov %i0, %o0 40002ae8: 96 10 00 11 mov %l1, %o3 40002aec: 92 10 00 08 mov %o0, %o1 40002af0: 94 10 20 00 clr %o2 40002af4: 90 10 00 18 mov %i0, %o0 40002af8: 98 10 20 01 mov 1, %o4 40002afc: 7f ff fd 78 call 400020dc 40002b00: a8 10 20 00 clr %l4 if ( status != 0 ) { /* The file did not exist */ 40002b04: 80 a2 20 00 cmp %o0, 0 40002b08: 12 80 00 5c bne 40002c78 40002b0c: 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; 40002b10: 10 80 00 07 b 40002b2c 40002b14: 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)) { 40002b18: a8 10 00 11 mov %l1, %l4 40002b1c: 80 a0 6a 00 cmp %g1, 0xa00 40002b20: 02 80 00 56 be 40002c78 40002b24: 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; 40002b28: c2 07 bf f0 ld [ %fp + -16 ], %g1 iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 40002b2c: 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; 40002b30: c2 24 20 40 st %g1, [ %l0 + 0x40 ] iop->file_info = loc.node_access; 40002b34: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->flags |= rtems_libio_fcntl_flags( flags ); 40002b38: 90 10 00 19 mov %i1, %o0 40002b3c: 40 00 1e 6d call 4000a4f0 40002b40: c2 24 20 3c st %g1, [ %l0 + 0x3c ] 40002b44: 90 12 00 11 or %o0, %l1, %o0 iop->pathinfo = loc; 40002b48: 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 ); 40002b4c: d0 24 20 18 st %o0, [ %l0 + 0x18 ] iop->pathinfo = loc; 40002b50: a2 07 bf e8 add %fp, -24, %l1 40002b54: 90 04 20 1c add %l0, 0x1c, %o0 40002b58: 40 00 2b dd call 4000dacc 40002b5c: 92 10 00 11 mov %l1, %o1 if ( !iop->handlers || !iop->handlers->open_h ) { 40002b60: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40002b64: 80 a0 60 00 cmp %g1, 0 40002b68: 22 80 00 6a be,a 40002d10 40002b6c: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED 40002b70: c2 00 40 00 ld [ %g1 ], %g1 40002b74: 80 a0 60 00 cmp %g1, 0 40002b78: 02 80 00 65 be 40002d0c 40002b7c: 92 10 00 18 mov %i0, %o1 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 40002b80: 96 10 00 12 mov %l2, %o3 40002b84: 90 10 00 10 mov %l0, %o0 40002b88: 9f c0 40 00 call %g1 40002b8c: 94 10 00 19 mov %i1, %o2 if ( rc ) { 40002b90: 80 a2 20 00 cmp %o0, 0 40002b94: 02 80 00 07 be 40002bb0 40002b98: 80 8e 64 00 btst 0x400, %i1 rc = errno; 40002b9c: a8 10 00 11 mov %l1, %l4 40002ba0: 40 00 29 90 call 4000d1e0 <__errno> 40002ba4: 01 00 00 00 nop goto done; 40002ba8: 10 80 00 31 b 40002c6c 40002bac: e6 02 00 00 ld [ %o0 ], %l3 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 40002bb0: 02 80 00 49 be 40002cd4 40002bb4: 03 10 00 6c sethi %hi(0x4001b000), %g1 rc = ftruncate( iop - rtems_libio_iops, 0 ); 40002bb8: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 ! 4001b058 40002bbc: 92 10 20 00 clr %o1 40002bc0: 82 24 00 01 sub %l0, %g1, %g1 40002bc4: 83 38 60 03 sra %g1, 3, %g1 40002bc8: 87 28 60 06 sll %g1, 6, %g3 40002bcc: 85 28 60 03 sll %g1, 3, %g2 40002bd0: 84 20 c0 02 sub %g3, %g2, %g2 40002bd4: 87 28 a0 06 sll %g2, 6, %g3 40002bd8: 84 00 80 03 add %g2, %g3, %g2 40002bdc: 84 00 80 01 add %g2, %g1, %g2 40002be0: 91 28 a0 0f sll %g2, 0xf, %o0 40002be4: 84 22 00 02 sub %o0, %g2, %g2 40002be8: 94 10 20 00 clr %o2 40002bec: 91 28 a0 03 sll %g2, 3, %o0 40002bf0: 40 00 1d 43 call 4000a0fc 40002bf4: 90 02 00 01 add %o0, %g1, %o0 if ( rc ) { 40002bf8: a6 92 20 00 orcc %o0, 0, %l3 40002bfc: 02 80 00 36 be 40002cd4 40002c00: 03 10 00 6c sethi %hi(0x4001b000), %g1 if(errno) rc = errno; 40002c04: 40 00 29 77 call 4000d1e0 <__errno> <== NOT EXECUTED 40002c08: 01 00 00 00 nop <== NOT EXECUTED 40002c0c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 40002c10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40002c14: 02 80 00 06 be 40002c2c <== NOT EXECUTED 40002c18: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED 40002c1c: 40 00 29 71 call 4000d1e0 <__errno> <== NOT EXECUTED 40002c20: 01 00 00 00 nop <== NOT EXECUTED 40002c24: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED close( iop - rtems_libio_iops ); 40002c28: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED 40002c2c: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 ! 4001b058 <== NOT EXECUTED 40002c30: a8 10 20 00 clr %l4 <== NOT EXECUTED 40002c34: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED 40002c38: 83 3c 20 03 sra %l0, 3, %g1 <== NOT EXECUTED 40002c3c: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED 40002c40: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED 40002c44: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 40002c48: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED 40002c4c: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED 40002c50: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 40002c54: 91 28 a0 0f sll %g2, 0xf, %o0 <== NOT EXECUTED 40002c58: 84 22 00 02 sub %o0, %g2, %g2 <== NOT EXECUTED 40002c5c: a0 10 20 00 clr %l0 <== NOT EXECUTED 40002c60: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED 40002c64: 40 00 1c cd call 40009f98 <== NOT EXECUTED 40002c68: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 40002c6c: 80 a4 e0 00 cmp %l3, 0 40002c70: 02 80 00 19 be 40002cd4 40002c74: 03 10 00 6c sethi %hi(0x4001b000), %g1 if ( iop ) 40002c78: 80 a4 20 00 cmp %l0, 0 40002c7c: 02 80 00 05 be 40002c90 40002c80: 80 a5 20 00 cmp %l4, 0 rtems_libio_free( iop ); 40002c84: 40 00 1d cf call 4000a3c0 40002c88: 90 10 00 10 mov %l0, %o0 if ( loc_to_free ) 40002c8c: 80 a5 20 00 cmp %l4, 0 40002c90: 02 80 00 0c be 40002cc0 40002c94: 01 00 00 00 nop rtems_filesystem_freenode( loc_to_free ); 40002c98: c2 05 20 0c ld [ %l4 + 0xc ], %g1 40002c9c: 80 a0 60 00 cmp %g1, 0 40002ca0: 02 80 00 08 be 40002cc0 40002ca4: 01 00 00 00 nop 40002ca8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40002cac: 80 a0 60 00 cmp %g1, 0 40002cb0: 02 80 00 04 be 40002cc0 40002cb4: 01 00 00 00 nop 40002cb8: 9f c0 40 00 call %g1 40002cbc: 90 10 00 14 mov %l4, %o0 rtems_set_errno_and_return_minus_one( rc ); 40002cc0: 40 00 29 48 call 4000d1e0 <__errno> 40002cc4: b0 10 3f ff mov -1, %i0 40002cc8: e6 22 00 00 st %l3, [ %o0 ] 40002ccc: 81 c7 e0 08 ret 40002cd0: 81 e8 00 00 restore } return iop - rtems_libio_iops; 40002cd4: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 40002cd8: a0 24 00 01 sub %l0, %g1, %l0 40002cdc: a1 3c 20 03 sra %l0, 3, %l0 40002ce0: 85 2c 20 06 sll %l0, 6, %g2 40002ce4: 83 2c 20 03 sll %l0, 3, %g1 40002ce8: 82 20 80 01 sub %g2, %g1, %g1 40002cec: 85 28 60 06 sll %g1, 6, %g2 40002cf0: 82 00 40 02 add %g1, %g2, %g1 40002cf4: 82 00 40 10 add %g1, %l0, %g1 40002cf8: b1 28 60 0f sll %g1, 0xf, %i0 40002cfc: b0 26 00 01 sub %i0, %g1, %i0 40002d00: b1 2e 20 03 sll %i0, 3, %i0 } 40002d04: 81 c7 e0 08 ret 40002d08: 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; 40002d0c: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED 40002d10: 10 bf ff da b 40002c78 <== NOT EXECUTED 40002d14: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED 400029a0 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 400029a0: 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) { 400029a4: 21 10 00 66 sethi %hi(0x40019800), %l0 400029a8: 92 10 20 00 clr %o1 400029ac: 90 14 20 38 or %l0, 0x38, %o0 400029b0: 40 00 00 19 call 40002a14 400029b4: 94 10 20 00 clr %o2 400029b8: 80 a2 3f ff cmp %o0, -1 400029bc: 02 80 00 14 be 40002a0c 400029c0: 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) 400029c4: 92 10 20 01 mov 1, %o1 400029c8: 40 00 00 13 call 40002a14 400029cc: 94 10 20 00 clr %o2 400029d0: 80 a2 3f ff cmp %o0, -1 400029d4: 32 80 00 05 bne,a 400029e8 400029d8: 90 14 20 38 or %l0, 0x38, %o0 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 400029dc: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED 400029e0: 10 80 00 09 b 40002a04 <== NOT EXECUTED 400029e4: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 400029e8: 92 10 20 01 mov 1, %o1 400029ec: 40 00 00 0a call 40002a14 400029f0: 94 10 20 00 clr %o2 400029f4: 80 a2 3f ff cmp %o0, -1 400029f8: 12 80 00 05 bne 40002a0c 400029fc: 11 15 55 11 sethi %hi(0x55544400), %o0 rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 40002a00: 90 12 20 32 or %o0, 0x32, %o0 ! 55544432 <== NOT EXECUTED 40002a04: 40 00 0c 81 call 40005c08 <== NOT EXECUTED 40002a08: 01 00 00 00 nop <== NOT EXECUTED 40002a0c: 81 c7 e0 08 ret 40002a10: 81 e8 00 00 restore 40003498 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 40003498: 9d e3 bf a0 save %sp, -96, %sp int i; if (tty->termios.c_oflag & OPOST) { 4000349c: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 400034a0: 80 88 60 01 btst 1, %g1 400034a4: 02 80 00 5a be 4000360c 400034a8: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 400034ac: 84 0e 20 ff and %i0, 0xff, %g2 400034b0: 80 a0 a0 09 cmp %g2, 9 400034b4: 22 80 00 2b be,a 40003560 400034b8: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 400034bc: 18 80 00 07 bgu 400034d8 400034c0: 80 a0 a0 0a cmp %g2, 0xa 400034c4: 80 a0 a0 08 cmp %g2, 8 <== NOT EXECUTED 400034c8: 12 80 00 3a bne 400035b0 <== NOT EXECUTED 400034cc: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 400034d0: 10 80 00 33 b 4000359c <== NOT EXECUTED 400034d4: 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) { 400034d8: 02 80 00 06 be 400034f0 400034dc: 80 a0 a0 0d cmp %g2, 0xd 400034e0: 32 80 00 34 bne,a 400035b0 400034e4: 80 88 60 02 btst 2, %g1 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 400034e8: 10 80 00 10 b 40003528 <== NOT EXECUTED 400034ec: 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) 400034f0: 80 88 60 20 btst 0x20, %g1 400034f4: 32 80 00 02 bne,a 400034fc 400034f8: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 400034fc: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 40003500: 80 88 60 04 btst 4, %g1 40003504: 02 80 00 43 be 40003610 40003508: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 4000350c: 11 10 00 66 sethi %hi(0x40019800), %o0 40003510: 92 10 20 01 mov 1, %o1 40003514: 90 12 23 78 or %o0, 0x378, %o0 40003518: 7f ff ff 94 call 40003368 4000351c: 94 10 00 19 mov %i1, %o2 c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 40003520: 10 80 00 3b b 4000360c 40003524: c0 26 60 28 clr [ %i1 + 0x28 ] tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 40003528: 02 80 00 06 be 40003540 <== NOT EXECUTED 4000352c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 40003530: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED 40003534: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40003538: 02 80 00 17 be 40003594 <== NOT EXECUTED 4000353c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 40003540: 22 80 00 33 be,a 4000360c <== NOT EXECUTED 40003544: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 40003548: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 4000354c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 40003550: 02 80 00 2f be 4000360c <== NOT EXECUTED 40003554: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; break; 40003558: 10 80 00 2d b 4000360c <== NOT EXECUTED 4000355c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 40003560: 07 00 00 06 sethi %hi(0x1800), %g3 40003564: 82 08 40 03 and %g1, %g3, %g1 40003568: 80 a0 40 03 cmp %g1, %g3 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 4000356c: 82 08 a0 07 and %g2, 7, %g1 40003570: 92 10 20 08 mov 8, %o1 40003574: 92 22 40 01 sub %o1, %g1, %o1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 40003578: 12 80 00 24 bne 40003608 4000357c: 82 02 40 02 add %o1, %g2, %g1 tty->column += i; 40003580: c2 26 60 28 st %g1, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 40003584: 94 10 00 19 mov %i1, %o2 40003588: 11 10 00 66 sethi %hi(0x40019800), %o0 4000358c: 7f ff ff 77 call 40003368 40003590: 90 12 23 80 or %o0, 0x380, %o0 ! 40019b80 <__FUNCTION__.5604+0x2a0> return; 40003594: 81 c7 e0 08 ret 40003598: 81 e8 00 00 restore } tty->column += i; break; case '\b': if (tty->column > 0) 4000359c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400035a0: 04 80 00 1b ble 4000360c <== NOT EXECUTED 400035a4: 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++; 400035a8: 10 80 00 19 b 4000360c <== NOT EXECUTED 400035ac: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 400035b0: 02 80 00 0d be 400035e4 400035b4: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 c = toupper(c); 400035b8: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 400035bc: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 4001aa04 <__ctype_ptr__> <== NOT EXECUTED 400035c0: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 400035c4: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 400035c8: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED 400035cc: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 400035d0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 400035d4: 22 80 00 02 be,a 400035dc <== NOT EXECUTED 400035d8: b0 06 3f e0 add %i0, -32, %i0 <== NOT EXECUTED 400035dc: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] <== NOT EXECUTED if (!iscntrl(c)) 400035e0: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 <== NOT EXECUTED 400035e4: 05 10 00 6a sethi %hi(0x4001a800), %g2 400035e8: c4 00 a2 04 ld [ %g2 + 0x204 ], %g2 ! 4001aa04 <__ctype_ptr__> 400035ec: 82 00 80 01 add %g2, %g1, %g1 400035f0: c2 08 60 01 ldub [ %g1 + 1 ], %g1 400035f4: 80 88 60 20 btst 0x20, %g1 400035f8: 12 80 00 06 bne 40003610 400035fc: 94 10 00 19 mov %i1, %o2 tty->column++; 40003600: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 40003604: 82 00 60 01 inc %g1 40003608: c2 26 60 28 st %g1, [ %i1 + 0x28 ] break; } } rtems_termios_puts (&c, 1, tty); 4000360c: 94 10 00 19 mov %i1, %o2 40003610: 90 07 a0 44 add %fp, 0x44, %o0 40003614: 7f ff ff 55 call 40003368 40003618: 92 10 20 01 mov 1, %o1 4000361c: 81 c7 e0 08 ret 40003620: 81 e8 00 00 restore 4000cc70 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4000cc70: 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) 4000cc74: 23 10 00 68 sethi %hi(0x4001a000), %l1 4000cc78: a0 07 bf dc add %fp, -36, %l0 4000cc7c: 92 10 20 03 mov 3, %o1 4000cc80: 90 14 60 c0 or %l1, 0xc0, %o0 4000cc84: 94 10 20 07 mov 7, %o2 4000cc88: 96 10 00 10 mov %l0, %o3 4000cc8c: 7f ff d5 14 call 400020dc 4000cc90: 98 10 20 01 mov 1, %o4 4000cc94: 80 a2 20 00 cmp %o0, 0 4000cc98: 02 80 00 10 be 4000ccd8 4000cc9c: c2 07 bf e8 ld [ %fp + -24 ], %g1 != 0) { if (errno != ENOENT) 4000cca0: 40 00 01 50 call 4000d1e0 <__errno> 4000cca4: 01 00 00 00 nop 4000cca8: c2 02 00 00 ld [ %o0 ], %g1 4000ccac: 80 a0 60 02 cmp %g1, 2 4000ccb0: 32 80 00 59 bne,a 4000ce14 4000ccb4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 4000ccb8: 90 14 60 c0 or %l1, 0xc0, %o0 4000ccbc: 7f ff d5 9d call 40002330 4000ccc0: 92 10 23 ff mov 0x3ff, %o1 4000ccc4: 80 a2 20 00 cmp %o0, 0 4000ccc8: 02 80 00 0e be 4000cd00 4000cccc: 03 10 00 6b sethi %hi(0x4001ac00), %g1 } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 4000ccd0: 81 c7 e0 08 ret <== NOT EXECUTED 4000ccd4: 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); 4000ccd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000ccdc: 22 80 00 09 be,a 4000cd00 <== NOT EXECUTED 4000cce0: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000cce4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 4001ac1c <== NOT EXECUTED 4000cce8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000ccec: 22 80 00 05 be,a 4000cd00 <== NOT EXECUTED 4000ccf0: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000ccf4: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000ccf8: 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 ++); 4000ccfc: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000cd00: c4 10 63 e6 lduh [ %g1 + 0x3e6 ], %g2 ! 4001afe6 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000cd04: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000cd08: 95 28 a0 10 sll %g2, 0x10, %o2 4000cd0c: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000cd10: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000cd14: c4 30 63 e6 sth %g2, [ %g1 + 0x3e6 ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000cd18: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 4000cd1c: 03 00 00 19 sethi %hi(0x6400), %g1 4000cd20: 84 10 a1 70 or %g2, 0x170, %g2 4000cd24: 82 10 62 6f or %g1, 0x26f, %g1 4000cd28: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000cd2c: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000cd30: c4 3f bf f0 std %g2, [ %fp + -16 ] 4000cd34: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000cd38: 90 07 bf fa add %fp, -6, %o0 4000cd3c: 13 10 00 68 sethi %hi(0x4001a000), %o1 4000cd40: 40 00 04 13 call 4000dd8c 4000cd44: 92 12 60 c8 or %o1, 0xc8, %o1 ! 4001a0c8 <__FUNCTION__.5876+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 4000cd48: 90 10 00 10 mov %l0, %o0 4000cd4c: 40 00 00 4b call 4000ce78 4000cd50: 92 10 21 80 mov 0x180, %o1 4000cd54: 80 a2 20 00 cmp %o0, 0 4000cd58: 02 80 00 05 be 4000cd6c 4000cd5c: 90 10 00 10 mov %l0, %o0 if (errno != EEXIST){ 4000cd60: 40 00 01 20 call 4000d1e0 <__errno> <== NOT EXECUTED 4000cd64: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000cd68: 30 80 00 2b b,a 4000ce14 <== 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); 4000cd6c: 7f ff d7 2a call 40002a14 4000cd70: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 4000cd74: 80 a2 20 00 cmp %o0, 0 4000cd78: 16 80 00 07 bge 4000cd94 4000cd7c: d0 26 00 00 st %o0, [ %i0 ] err = errno; 4000cd80: 40 00 01 18 call 4000d1e0 <__errno> 4000cd84: 01 00 00 00 nop 4000cd88: 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); 4000cd8c: 10 80 00 1d b 4000ce00 4000cd90: 90 10 00 10 mov %l0, %o0 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 4000cd94: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 4000cd98: c4 00 60 94 ld [ %g1 + 0x94 ], %g2 ! 4001a894 <== NOT EXECUTED 4000cd9c: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 4000cda0: 1a 80 00 08 bcc 4000cdc0 <== NOT EXECUTED 4000cda4: 82 10 20 00 clr %g1 <== NOT EXECUTED 4000cda8: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED 4000cdac: c2 00 60 58 ld [ %g1 + 0x58 ], %g1 ! 4001b058 <== NOT EXECUTED 4000cdb0: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 4000cdb4: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 4000cdb8: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 4000cdbc: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 4000cdc0: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4000cdc4: 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; 4000cdc8: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4000cdcc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000cdd0: 7f ff d7 11 call 40002a14 <== NOT EXECUTED 4000cdd4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 4000cdd8: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 4000cddc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000cde0: 16 80 00 07 bge 4000cdfc <== NOT EXECUTED 4000cde4: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; 4000cde8: 40 00 00 fe call 4000d1e0 <__errno> <== NOT EXECUTED 4000cdec: 01 00 00 00 nop <== NOT EXECUTED 4000cdf0: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 4000cdf4: 7f ff f4 69 call 40009f98 <== NOT EXECUTED 4000cdf8: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED } unlink(fifopath); 4000cdfc: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 4000ce00: 40 00 00 28 call 4000cea0 4000ce04: b0 10 3f ff mov -1, %i0 } rtems_set_errno_and_return_minus_one(err); 4000ce08: 40 00 00 f6 call 4000d1e0 <__errno> 4000ce0c: 01 00 00 00 nop 4000ce10: e2 22 00 00 st %l1, [ %o0 ] } 4000ce14: 81 c7 e0 08 ret 4000ce18: 81 e8 00 00 restore 4000bd4c : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 4000bd4c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 4000bd50: 40 00 02 21 call 4000c5d4 <== NOT EXECUTED 4000bd54: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 4000bd58: 40 00 02 1f call 4000c5d4 <== NOT EXECUTED 4000bd5c: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 4000bd60: 7f ff e5 d5 call 400054b4 <== NOT EXECUTED 4000bd64: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 4000bd68: 7f ff f8 bb call 4000a054 <== NOT EXECUTED 4000bd6c: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED free(pipe); 4000bd70: 7f ff f8 b9 call 4000a054 <== NOT EXECUTED 4000bd74: 81 e8 00 00 restore <== NOT EXECUTED 4000bd78: 01 00 00 00 nop 4000b98c : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4000b98c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 4000b990: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4000b994: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 4000b998: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 4000b99c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 4000b9a0: 12 80 00 12 bne 4000b9e8 <== NOT EXECUTED 4000b9a4: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 4000b9a8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 4000b9ac: 02 80 00 0f be 4000b9e8 <== NOT EXECUTED 4000b9b0: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 4000b9b4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 4000b9b8: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000b9bc: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000b9c0: 7f ff e6 eb call 4000556c <== NOT EXECUTED 4000b9c4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 4000b9c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000b9cc: 12 80 00 07 bne 4000b9e8 <== NOT EXECUTED 4000b9d0: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4000b9d4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000b9d8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4000b9dc: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000b9e0: 7f ff e7 2a call 40005688 <== NOT EXECUTED 4000b9e4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 4000b9e8: 81 c7 e0 08 ret <== NOT EXECUTED 4000b9ec: 81 e8 00 00 restore <== NOT EXECUTED 4000b918 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 4000b918: 81 c3 e0 08 retl <== NOT EXECUTED 4000b91c: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 4000bbb0 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4000bbb0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4000bbb4: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4000bbb8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4000bbbc: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bbc0: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000bbc4: 7f ff e6 6a call 4000556c <== NOT EXECUTED 4000bbc8: b0 10 20 00 clr %i0 <== NOT EXECUTED 4000bbcc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bbd0: 02 80 00 54 be 4000bd20 <== NOT EXECUTED 4000bbd4: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 4000bbd8: 81 c7 e0 08 ret <== NOT EXECUTED 4000bbdc: 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) 4000bbe0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bbe4: 02 80 00 53 be 4000bd30 <== NOT EXECUTED 4000bbe8: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 4000bbec: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 4000bbf0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000bbf4: 22 80 00 04 be,a 4000bc04 <== NOT EXECUTED 4000bbf8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 4000bbfc: 10 80 00 4d b 4000bd30 <== NOT EXECUTED 4000bc00: 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); 4000bc04: 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 ++; 4000bc08: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000bc0c: 7f ff e6 9f call 40005688 <== NOT EXECUTED 4000bc10: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4000bc14: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 4000bc18: 40 00 02 a0 call 4000c698 <== NOT EXECUTED 4000bc1c: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bc20: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000bc24: 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)) 4000bc28: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000bc2c: 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)) 4000bc30: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000bc34: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000bc38: 7f ff e6 4d call 4000556c <== NOT EXECUTED 4000bc3c: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 4000bc40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bc44: 22 80 00 04 be,a 4000bc54 <== NOT EXECUTED 4000bc48: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 4000bc4c: 10 80 00 3b b 4000bd38 <== NOT EXECUTED 4000bc50: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 4000bc54: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 4000bc58: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 4000bc5c: 12 80 00 35 bne 4000bd30 <== NOT EXECUTED 4000bc60: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4000bc64: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 4000bc68: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 4000bc6c: 22 bf ff dd be,a 4000bbe0 <== NOT EXECUTED 4000bc70: 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); 4000bc74: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED 4000bc78: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 4000bc7c: 38 80 00 02 bgu,a 4000bc84 <== NOT EXECUTED 4000bc80: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 4000bc84: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 4000bc88: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 4000bc8c: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 4000bc90: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED if (chunk > chunk1) { 4000bc94: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 4000bc98: 04 80 00 0a ble 4000bcc0 <== NOT EXECUTED 4000bc9c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 4000bca0: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 4000bca4: 40 00 07 8a call 4000dacc <== NOT EXECUTED 4000bca8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 4000bcac: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED 4000bcb0: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 4000bcb4: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 4000bcb8: 10 80 00 04 b 4000bcc8 <== NOT EXECUTED 4000bcbc: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 4000bcc0: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 4000bcc4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 4000bcc8: 40 00 07 81 call 4000dacc <== NOT EXECUTED 4000bccc: 01 00 00 00 nop <== NOT EXECUTED pipe->Start += chunk; 4000bcd0: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 4000bcd4: 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; 4000bcd8: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 4000bcdc: 40 00 2b 7e call 40016ad4 <.urem> <== NOT EXECUTED 4000bce0: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 4000bce4: 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; 4000bce8: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 4000bcec: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 4000bcf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bcf4: 12 80 00 03 bne 4000bd00 <== NOT EXECUTED 4000bcf8: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 4000bcfc: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 4000bd00: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 4000bd04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bd08: 22 80 00 06 be,a 4000bd20 <== NOT EXECUTED 4000bd0c: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4000bd10: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 4000bd14: 40 00 02 4a call 4000c63c <== NOT EXECUTED 4000bd18: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 4000bd1c: 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) { 4000bd20: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 4000bd24: 2a bf ff d1 bcs,a 4000bc68 <== NOT EXECUTED 4000bd28: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 4000bd2c: a2 10 20 00 clr %l1 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4000bd30: 7f ff e6 56 call 40005688 <== NOT EXECUTED 4000bd34: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 4000bd38: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000bd3c: 24 80 00 02 ble,a 4000bd44 <== NOT EXECUTED 4000bd40: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return read; return ret; } 4000bd44: 81 c7 e0 08 ret <== NOT EXECUTED 4000bd48: 81 e8 00 00 restore <== NOT EXECUTED 4000bd7c : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 4000bd7c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 4000bd80: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4000bd84: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bd88: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 4000bd8c: 7f ff e5 f8 call 4000556c <== NOT EXECUTED 4000bd90: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 4000bd94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bd98: 12 80 00 17 bne 4000bdf4 <== NOT EXECUTED 4000bd9c: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 4000bda0: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 4000bda4: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED 4000bda8: 02 80 00 05 be 4000bdbc <== NOT EXECUTED 4000bdac: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED pipe->Readers --; 4000bdb0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000bdb4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000bdb8: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 4000bdbc: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED 4000bdc0: 02 80 00 06 be 4000bdd8 <== NOT EXECUTED 4000bdc4: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED pipe->Writers --; 4000bdc8: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 4000bdcc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000bdd0: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 4000bdd4: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000bdd8: d0 00 63 e0 ld [ %g1 + 0x3e0 ], %o0 ! 4001afe0 <== NOT EXECUTED 4000bddc: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000bde0: 7f ff e5 e3 call 4000556c <== NOT EXECUTED 4000bde4: 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) 4000bde8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000bdec: 02 80 00 04 be 4000bdfc <== NOT EXECUTED 4000bdf0: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); 4000bdf4: 7f ff e7 85 call 40005c08 <== NOT EXECUTED 4000bdf8: 01 00 00 00 nop <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000bdfc: 7f ff e6 23 call 40005688 <== NOT EXECUTED 4000be00: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 4000be04: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000be08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000be0c: 12 80 00 0a bne 4000be34 <== NOT EXECUTED 4000be10: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 4000be14: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 4000be18: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 4000be1c: 12 80 00 06 bne 4000be34 <== NOT EXECUTED 4000be20: 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); 4000be24: 7f ff ff ca call 4000bd4c <== NOT EXECUTED 4000be28: 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) { 4000be2c: 10 80 00 12 b 4000be74 <== NOT EXECUTED 4000be30: 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) 4000be34: 02 80 00 06 be 4000be4c <== NOT EXECUTED 4000be38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000be3c: 12 80 00 05 bne 4000be50 <== NOT EXECUTED 4000be40: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 4000be44: 10 80 00 0a b 4000be6c <== NOT EXECUTED 4000be48: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 4000be4c: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED 4000be50: 02 80 00 0a be 4000be78 <== NOT EXECUTED 4000be54: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000be58: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 4000be5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000be60: 12 80 00 06 bne 4000be78 <== NOT EXECUTED 4000be64: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000be68: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 4000be6c: 40 00 01 f4 call 4000c63c <== NOT EXECUTED 4000be70: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 4000be74: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000be78: d0 00 63 e0 ld [ %g1 + 0x3e0 ], %o0 ! 4001afe0 <== NOT EXECUTED 4000be7c: 7f ff e6 03 call 40005688 <== NOT EXECUTED 4000be80: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4000be84: 81 c7 e0 08 ret <== NOT EXECUTED 4000be88: 81 e8 00 00 restore <== NOT EXECUTED 4000b9f0 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 4000b9f0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 4000b9f4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 4000b9f8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 4000b9fc: 02 80 00 6b be 4000bba8 <== NOT EXECUTED 4000ba00: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 4000ba04: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 4000ba08: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000ba0c: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000ba10: 7f ff e6 d7 call 4000556c <== NOT EXECUTED 4000ba14: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 4000ba18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000ba1c: 12 80 00 63 bne 4000bba8 <== NOT EXECUTED 4000ba20: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 4000ba24: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000ba28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000ba2c: 02 80 00 5a be 4000bb94 <== NOT EXECUTED 4000ba30: 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; 4000ba34: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 4000ba38: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 4000ba3c: 08 80 00 04 bleu 4000ba4c <== NOT EXECUTED 4000ba40: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED 4000ba44: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED 4000ba48: 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); 4000ba4c: 10 80 00 4e b 4000bb84 <== NOT EXECUTED 4000ba50: 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)) { 4000ba54: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000ba58: 22 80 00 04 be,a 4000ba68 <== NOT EXECUTED 4000ba5c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 4000ba60: 10 80 00 4d b 4000bb94 <== NOT EXECUTED 4000ba64: 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); 4000ba68: 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 ++; 4000ba6c: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000ba70: 7f ff e7 06 call 40005688 <== NOT EXECUTED 4000ba74: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4000ba78: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 4000ba7c: 40 00 03 07 call 4000c698 <== NOT EXECUTED 4000ba80: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000ba84: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000ba88: 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)) 4000ba8c: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000ba90: 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)) 4000ba94: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000ba98: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000ba9c: 7f ff e6 b4 call 4000556c <== NOT EXECUTED 4000baa0: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 4000baa4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000baa8: 22 80 00 04 be,a 4000bab8 <== NOT EXECUTED 4000baac: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 4000bab0: 10 80 00 3b b 4000bb9c <== NOT EXECUTED 4000bab4: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) 4000bab8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 4000babc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 4000bac0: 12 80 00 35 bne 4000bb94 <== NOT EXECUTED 4000bac4: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 4000bac8: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000bacc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bad0: 32 80 00 04 bne,a 4000bae0 <== NOT EXECUTED 4000bad4: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 4000bad8: 10 80 00 2f b 4000bb94 <== NOT EXECUTED 4000badc: 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) { 4000bae0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 4000bae4: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED 4000bae8: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED 4000baec: 2a bf ff da bcs,a 4000ba54 <== NOT EXECUTED 4000baf0: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 4000baf4: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED 4000baf8: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 4000bafc: 38 80 00 02 bgu,a 4000bb04 <== NOT EXECUTED 4000bb00: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 4000bb04: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 4000bb08: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 4000bb0c: 40 00 2b f2 call 40016ad4 <.urem> <== NOT EXECUTED 4000bb10: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 4000bb14: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 4000bb18: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 4000bb1c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 4000bb20: 04 80 00 0a ble 4000bb48 <== NOT EXECUTED 4000bb24: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 4000bb28: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 4000bb2c: 40 00 07 e8 call 4000dacc <== NOT EXECUTED 4000bb30: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 4000bb34: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED 4000bb38: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 4000bb3c: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 4000bb40: 10 80 00 04 b 4000bb50 <== NOT EXECUTED 4000bb44: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4000bb48: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 4000bb4c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 4000bb50: 40 00 07 df call 4000dacc <== NOT EXECUTED 4000bb54: 01 00 00 00 nop <== NOT EXECUTED pipe->Length += chunk; 4000bb58: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 4000bb5c: 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; 4000bb60: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 4000bb64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bb68: 02 80 00 05 be 4000bb7c <== NOT EXECUTED 4000bb6c: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000bb70: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 4000bb74: 40 00 02 b2 call 4000c63c <== NOT EXECUTED 4000bb78: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 4000bb7c: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 4000bb80: 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) { 4000bb84: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 4000bb88: 2a bf ff d6 bcs,a 4000bae0 <== NOT EXECUTED 4000bb8c: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 4000bb90: 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); 4000bb94: 7f ff e6 bd call 40005688 <== NOT EXECUTED 4000bb98: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) 4000bb9c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000bba0: 24 80 00 02 ble,a 4000bba8 <== NOT EXECUTED 4000bba4: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return written; return ret; } 4000bba8: 81 c7 e0 08 ret <== NOT EXECUTED 4000bbac: 81 e8 00 00 restore <== NOT EXECUTED 40018e24 : ssize_t read( int fd, void *buffer, size_t count ) { 40018e24: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 40018e28: 03 10 00 6a sethi %hi(0x4001a800), %g1 40018e2c: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 ! 4001a894 ssize_t read( int fd, void *buffer, size_t count ) { 40018e30: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 40018e34: 80 a6 00 01 cmp %i0, %g1 40018e38: 1a 80 00 0c bcc 40018e68 40018e3c: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 40018e40: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018e44: e0 00 60 58 ld [ %g1 + 0x58 ], %l0 ! 4001b058 40018e48: 83 2e 20 06 sll %i0, 6, %g1 40018e4c: b1 2e 20 03 sll %i0, 3, %i0 40018e50: b0 06 00 01 add %i0, %g1, %i0 40018e54: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 40018e58: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 40018e5c: 80 88 61 00 btst 0x100, %g1 40018e60: 12 80 00 06 bne 40018e78 40018e64: 80 a6 60 00 cmp %i1, 0 40018e68: 7f ff d0 de call 4000d1e0 <__errno> 40018e6c: 01 00 00 00 nop 40018e70: 10 80 00 14 b 40018ec0 40018e74: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_buffer( buffer ); 40018e78: 02 80 00 07 be 40018e94 40018e7c: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 40018e80: 02 80 00 1c be 40018ef0 40018e84: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 40018e88: 80 88 60 02 btst 2, %g1 40018e8c: 32 80 00 06 bne,a 40018ea4 40018e90: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40018e94: 7f ff d0 d3 call 4000d1e0 <__errno> <== NOT EXECUTED 40018e98: 01 00 00 00 nop <== NOT EXECUTED 40018e9c: 10 80 00 09 b 40018ec0 <== NOT EXECUTED 40018ea0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 40018ea4: c2 00 60 08 ld [ %g1 + 8 ], %g1 40018ea8: 80 a0 60 00 cmp %g1, 0 40018eac: 12 80 00 08 bne 40018ecc 40018eb0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 40018eb4: 7f ff d0 cb call 4000d1e0 <__errno> <== NOT EXECUTED 40018eb8: 01 00 00 00 nop <== NOT EXECUTED 40018ebc: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40018ec0: c2 22 00 00 st %g1, [ %o0 ] 40018ec4: 10 80 00 0b b 40018ef0 40018ec8: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->read_h)( iop, buffer, count ); 40018ecc: 9f c0 40 00 call %g1 40018ed0: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 40018ed4: 80 a2 20 00 cmp %o0, 0 40018ed8: 04 80 00 06 ble 40018ef0 40018edc: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 40018ee0: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 40018ee4: 86 83 40 08 addcc %o5, %o0, %g3 40018ee8: 84 43 00 02 addx %o4, %g2, %g2 40018eec: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 40018ef0: 81 c7 e0 08 ret 40018ef4: 91 e8 00 08 restore %g0, %o0, %o0 400279b4 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 400279b4: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 400279b8: 80 a6 60 00 cmp %i1, 0 400279bc: 12 80 00 06 bne 400279d4 400279c0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 400279c4: 40 00 5a 06 call 4003e1dc <__errno> <== NOT EXECUTED 400279c8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 400279cc: 10 80 00 32 b 40027a94 <== NOT EXECUTED 400279d0: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 400279d4: 40 00 75 2d call 40044e88 400279d8: 90 10 00 18 mov %i0, %o0 400279dc: a0 07 bf ec add %fp, -20, %l0 400279e0: 92 10 00 08 mov %o0, %o1 400279e4: 94 10 20 00 clr %o2 400279e8: 90 10 00 18 mov %i0, %o0 400279ec: 96 10 00 10 mov %l0, %o3 400279f0: 98 10 20 00 clr %o4 400279f4: 7f ff 7c 7e call 40006bec 400279f8: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 400279fc: 80 a2 20 00 cmp %o0, 0 40027a00: 12 80 00 26 bne 40027a98 40027a04: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 40027a08: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40027a0c: 80 a0 60 00 cmp %g1, 0 40027a10: 22 80 00 19 be,a 40027a74 40027a14: 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 ){ 40027a18: 9f c0 40 00 call %g1 40027a1c: 90 10 00 10 mov %l0, %o0 40027a20: 80 a2 20 04 cmp %o0, 4 40027a24: 02 80 00 0f be 40027a60 40027a28: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_freenode( &loc ); 40027a2c: 80 a0 a0 00 cmp %g2, 0 40027a30: 02 80 00 08 be 40027a50 40027a34: 01 00 00 00 nop 40027a38: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40027a3c: 80 a0 60 00 cmp %g1, 0 40027a40: 02 80 00 04 be 40027a50 40027a44: 01 00 00 00 nop 40027a48: 9f c0 40 00 call %g1 40027a4c: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 40027a50: 40 00 59 e3 call 4003e1dc <__errno> 40027a54: b0 10 3f ff mov -1, %i0 40027a58: 10 80 00 0f b 40027a94 40027a5c: 82 10 20 16 mov 0x16, %g1 } if ( !loc.ops->readlink_h ){ 40027a60: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 40027a64: 80 a0 60 00 cmp %g1, 0 40027a68: 12 80 00 0e bne 40027aa0 40027a6c: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); 40027a70: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40027a74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027a78: 02 80 00 04 be 40027a88 <== NOT EXECUTED 40027a7c: 01 00 00 00 nop <== NOT EXECUTED 40027a80: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027a84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027a88: 40 00 59 d5 call 4003e1dc <__errno> <== NOT EXECUTED 40027a8c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027a90: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027a94: c2 22 00 00 st %g1, [ %o0 ] 40027a98: 81 c7 e0 08 ret 40027a9c: 81 e8 00 00 restore } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 40027aa0: 94 10 00 1a mov %i2, %o2 40027aa4: 9f c0 40 00 call %g1 40027aa8: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 40027aac: c2 07 bf f8 ld [ %fp + -8 ], %g1 40027ab0: 80 a0 60 00 cmp %g1, 0 40027ab4: 02 bf ff f9 be 40027a98 40027ab8: b0 10 00 08 mov %o0, %i0 40027abc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027ac0: 80 a0 60 00 cmp %g1, 0 40027ac4: 02 80 00 04 be 40027ad4 40027ac8: 01 00 00 00 nop 40027acc: 9f c0 40 00 call %g1 40027ad0: 90 10 00 10 mov %l0, %o0 return result; } 40027ad4: 81 c7 e0 08 ret 40027ad8: 81 e8 00 00 restore 4000434c : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 4000434c: 9d e3 bf a0 save %sp, -96, %sp int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 40004350: 03 10 00 7d sethi %hi(0x4001f400), %g1 40004354: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 ! 4001f414 40004358: 80 a6 00 01 cmp %i0, %g1 4000435c: 1a 80 00 0c bcc 4000438c 40004360: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 40004364: 03 10 00 80 sethi %hi(0x40020000), %g1 40004368: e4 00 63 ac ld [ %g1 + 0x3ac ], %l2 ! 400203ac 4000436c: 83 2e 20 06 sll %i0, 6, %g1 40004370: b1 2e 20 03 sll %i0, 3, %i0 40004374: b0 06 00 01 add %i0, %g1, %i0 40004378: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 4000437c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 40004380: 80 88 61 00 btst 0x100, %g1 40004384: 12 80 00 06 bne 4000439c 40004388: 80 88 60 02 btst 2, %g1 4000438c: 40 00 2d 5a call 4000f8f4 <__errno> <== NOT EXECUTED 40004390: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40004394: 10 80 00 24 b 40004424 <== NOT EXECUTED 40004398: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 4000439c: 02 80 00 1f be 40004418 400043a0: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 400043a4: 02 80 00 1d be 40004418 400043a8: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 400043ac: 04 80 00 1b ble 40004418 400043b0: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 400043b4: 14 80 00 19 bg 40004418 400043b8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 400043bc: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 400043c0: c2 00 60 08 ld [ %g1 + 8 ], %g1 400043c4: 80 a0 60 00 cmp %g1, 0 400043c8: 12 80 00 06 bne 400043e0 400043cc: 86 10 20 00 clr %g3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 400043d0: 40 00 2d 49 call 4000f8f4 <__errno> <== NOT EXECUTED 400043d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400043d8: 10 80 00 13 b 40004424 <== NOT EXECUTED 400043dc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400043e0: 82 10 00 19 mov %i1, %g1 400043e4: 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 ) 400043e8: c8 00 40 00 ld [ %g1 ], %g4 400043ec: 80 a1 20 00 cmp %g4, 0 400043f0: 02 80 00 0a be 40004418 400043f4: 86 00 e0 01 inc %g3 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 400043f8: c8 00 60 04 ld [ %g1 + 4 ], %g4 400043fc: 80 a1 20 00 cmp %g4, 0 40004400: 02 80 00 06 be 40004418 40004404: 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; 40004408: 88 00 80 04 add %g2, %g4, %g4 if ( total < old ) 4000440c: 80 a1 00 02 cmp %g4, %g2 40004410: 16 80 00 08 bge 40004430 40004414: 80 a0 c0 1a cmp %g3, %i2 rtems_set_errno_and_return_minus_one( EINVAL ); 40004418: 40 00 2d 37 call 4000f8f4 <__errno> 4000441c: b0 10 3f ff mov -1, %i0 40004420: 82 10 20 16 mov 0x16, %g1 40004424: c2 22 00 00 st %g1, [ %o0 ] 40004428: 81 c7 e0 08 ret 4000442c: 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++ ) { 40004430: 06 bf ff ee bl 400043e8 40004434: 84 10 00 04 mov %g4, %g2 40004438: a6 10 20 00 clr %l3 4000443c: 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 ); 40004440: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 40004444: d2 06 40 00 ld [ %i1 ], %o1 40004448: c2 00 60 08 ld [ %g1 + 8 ], %g1 4000444c: d4 06 60 04 ld [ %i1 + 4 ], %o2 40004450: 9f c0 40 00 call %g1 40004454: 90 10 00 12 mov %l2, %o0 if ( bytes < 0 ) 40004458: 80 a2 20 00 cmp %o0, 0 4000445c: 16 80 00 04 bge 4000446c 40004460: 01 00 00 00 nop 40004464: 81 c7 e0 08 ret <== NOT EXECUTED 40004468: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 4000446c: 02 80 00 07 be 40004488 40004470: a1 3a 20 1f sra %o0, 0x1f, %l0 iop->offset += bytes; 40004474: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 40004478: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 4000447c: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 40004480: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 40004484: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 40004488: c2 06 60 04 ld [ %i1 + 4 ], %g1 4000448c: 80 a2 00 01 cmp %o0, %g1 40004490: 12 bf ff e6 bne 40004428 40004494: a6 04 e0 01 inc %l3 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 40004498: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 4000449c: 06 bf ff e9 bl 40004440 <== NOT EXECUTED 400044a0: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 400044a4: 81 c7 e0 08 ret <== NOT EXECUTED 400044a8: 81 e8 00 00 restore <== NOT EXECUTED 40018f7c : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 40018f7c: 9d e3 bf 98 save %sp, -104, %sp 40018f80: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018f84: 82 10 60 68 or %g1, 0x68, %g1 ! 4001b068 40018f88: 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())) { 40018f8c: 05 10 00 6c sethi %hi(0x4001b000), %g2 40018f90: c4 00 a3 d0 ld [ %g2 + 0x3d0 ], %g2 ! 4001b3d0 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 40018f94: 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())) { 40018f98: 80 a0 a0 03 cmp %g2, 3 40018f9c: 12 80 00 0c bne 40018fcc 40018fa0: c6 20 60 10 st %g3, [ %g1 + 0x10 ] if (_Thread_Dispatch_disable_level > 0) 40018fa4: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018fa8: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 4001b230 <_Thread_Dispatch_disable_level> 40018fac: 80 a0 60 00 cmp %g1, 0 40018fb0: 32 80 00 13 bne,a 40018ffc 40018fb4: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; if (_ISR_Nest_level > 0) 40018fb8: 03 10 00 6c sethi %hi(0x4001b000), %g1 40018fbc: c2 00 62 c8 ld [ %g1 + 0x2c8 ], %g1 ! 4001b2c8 <_ISR_Nest_level> 40018fc0: 80 a0 60 00 cmp %g1, 0 40018fc4: 32 80 00 0e bne,a 40018ffc 40018fc8: b0 10 20 00 clr %i0 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 40018fcc: 80 a6 20 00 cmp %i0, 0 40018fd0: 12 80 00 06 bne 40018fe8 40018fd4: 80 a6 60 00 cmp %i1, 0 return malloc( size ); 40018fd8: 7f ff c5 79 call 4000a5bc 40018fdc: 90 10 00 19 mov %i1, %o0 40018fe0: 81 c7 e0 08 ret 40018fe4: 91 e8 00 08 restore %g0, %o0, %o0 if ( !size ) { 40018fe8: 12 80 00 07 bne 40019004 40018fec: 21 10 00 6a sethi %hi(0x4001a800), %l0 free( ptr ); 40018ff0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40018ff4: 7f ff c4 18 call 4000a054 <== NOT EXECUTED 40018ff8: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 40018ffc: 81 c7 e0 08 ret <== NOT EXECUTED 40019000: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 40019004: d0 04 20 a0 ld [ %l0 + 0xa0 ], %o0 40019008: 92 10 00 18 mov %i0, %o1 4001900c: 40 00 00 60 call 4001918c <_Protected_heap_Get_block_size> 40019010: 94 07 bf fc add %fp, -4, %o2 40019014: 80 8a 20 ff btst 0xff, %o0 40019018: 12 80 00 08 bne 40019038 4001901c: d0 04 20 a0 ld [ %l0 + 0xa0 ], %o0 errno = EINVAL; 40019020: 7f ff d0 70 call 4000d1e0 <__errno> 40019024: b0 10 20 00 clr %i0 40019028: 82 10 20 16 mov 0x16, %g1 4001902c: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 40019030: 81 c7 e0 08 ret 40019034: 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 ) ) { 40019038: 92 10 00 18 mov %i0, %o1 4001903c: 40 00 00 61 call 400191c0 <_Protected_heap_Resize_block> 40019040: 94 10 00 19 mov %i1, %o2 40019044: 80 8a 20 ff btst 0xff, %o0 40019048: 12 80 00 1a bne 400190b0 4001904c: 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 ); 40019050: 7f ff c5 5b call 4000a5bc 40019054: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 40019058: 03 10 00 6c sethi %hi(0x4001b000), %g1 4001905c: 82 10 60 68 or %g1, 0x68, %g1 ! 4001b068 40019060: 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 ); 40019064: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 40019068: 84 00 bf ff add %g2, -1, %g2 if ( !new_area ) { 4001906c: 80 a2 20 00 cmp %o0, 0 40019070: 02 80 00 0f be 400190ac 40019074: c4 20 60 04 st %g2, [ %g1 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 40019078: c2 07 bf fc ld [ %fp + -4 ], %g1 4001907c: 80 a6 40 01 cmp %i1, %g1 40019080: 08 80 00 03 bleu 4001908c 40019084: 94 10 00 19 mov %i1, %o2 40019088: 94 10 00 01 mov %g1, %o2 4001908c: 92 10 00 18 mov %i0, %o1 40019090: 7f ff d2 8f call 4000dacc 40019094: 90 10 00 10 mov %l0, %o0 free( ptr ); 40019098: 90 10 00 18 mov %i0, %o0 4001909c: 7f ff c3 ee call 4000a054 400190a0: b0 10 00 10 mov %l0, %i0 return new_area; 400190a4: 81 c7 e0 08 ret 400190a8: 81 e8 00 00 restore 400190ac: b0 10 20 00 clr %i0 } 400190b0: 81 c7 e0 08 ret 400190b4: 81 e8 00 00 restore 40008158 : #include int rmdir( const char *pathname ) { 40008158: 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 ); 4000815c: 7f ff fa 56 call 40006ab4 40008160: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 40008164: a6 92 20 00 orcc %o0, 0, %l3 40008168: 32 80 00 17 bne,a 400081c4 4000816c: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 40008170: c2 4e 00 00 ldsb [ %i0 ], %g1 40008174: 80 a0 60 5c cmp %g1, 0x5c 40008178: 02 80 00 06 be 40008190 4000817c: 80 a0 60 2f cmp %g1, 0x2f 40008180: 02 80 00 04 be 40008190 40008184: 80 a0 60 00 cmp %g1, 0 40008188: 12 80 00 07 bne 400081a4 <== NOT EXECUTED 4000818c: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40008190: 03 10 01 8f sethi %hi(0x40063c00), %g1 40008194: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 ! 40063ce8 40008198: 90 07 bf ec add %fp, -20, %o0 4000819c: 10 80 00 05 b 400081b0 400081a0: 92 02 60 18 add %o1, 0x18, %o1 400081a4: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 <== NOT EXECUTED 400081a8: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 400081ac: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 400081b0: 94 10 20 14 mov 0x14, %o2 400081b4: 40 00 e4 dd call 40041528 400081b8: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 400081bc: 10 80 00 0b b 400081e8 400081c0: 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, 400081c4: 92 10 00 13 mov %l3, %o1 400081c8: 94 10 20 02 mov 2, %o2 400081cc: 96 07 bf ec add %fp, -20, %o3 400081d0: 7f ff fa 87 call 40006bec 400081d4: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 400081d8: 80 a2 20 00 cmp %o0, 0 400081dc: 12 80 00 89 bne 40008400 400081e0: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 400081e4: 94 10 20 14 mov 0x14, %o2 400081e8: a0 07 bf d8 add %fp, -40, %l0 400081ec: a4 07 bf ec add %fp, -20, %l2 400081f0: 90 10 00 10 mov %l0, %o0 400081f4: 40 00 e4 cd call 40041528 400081f8: 92 10 00 12 mov %l2, %o1 name = pathname + parentpathlen; 400081fc: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 40008200: 40 00 f3 22 call 40044e88 40008204: 90 10 00 18 mov %i0, %o0 40008208: 92 10 00 08 mov %o0, %o1 4000820c: 7f ff fa 18 call 40006a6c 40008210: 90 10 00 18 mov %i0, %o0 40008214: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 40008218: 40 00 f3 1c call 40044e88 4000821c: 90 10 00 18 mov %i0, %o0 40008220: 94 10 20 00 clr %o2 40008224: 92 10 00 08 mov %o0, %o1 40008228: 96 10 00 10 mov %l0, %o3 4000822c: 90 10 00 18 mov %i0, %o0 40008230: 7f ff fa 33 call 40006afc 40008234: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 40008238: 80 a2 20 00 cmp %o0, 0 4000823c: 02 80 00 11 be 40008280 40008240: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 40008244: 80 8c 60 ff btst 0xff, %l1 40008248: 02 80 00 0c be 40008278 4000824c: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 40008250: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40008254: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008258: 02 80 00 6b be 40008404 <== NOT EXECUTED 4000825c: 01 00 00 00 nop <== NOT EXECUTED 40008260: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40008264: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008268: 02 80 00 04 be 40008278 <== NOT EXECUTED 4000826c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 40008270: 9f c0 40 00 call %g1 <== NOT EXECUTED 40008274: 01 00 00 00 nop <== NOT EXECUTED 40008278: 81 c7 e0 08 ret 4000827c: 81 e8 00 00 restore /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 40008280: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40008284: 80 a0 60 00 cmp %g1, 0 40008288: 12 80 00 04 bne 40008298 4000828c: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 40008290: 10 80 00 2b b 4000833c <== NOT EXECUTED 40008294: 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 ){ 40008298: 9f c0 40 00 call %g1 4000829c: 90 10 00 10 mov %l0, %o0 400082a0: 80 a2 20 01 cmp %o0, 1 400082a4: 02 80 00 1d be 40008318 400082a8: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &loc ); 400082ac: c2 07 bf e4 ld [ %fp + -28 ], %g1 400082b0: 80 a0 60 00 cmp %g1, 0 400082b4: 02 80 00 09 be 400082d8 400082b8: 80 8c 60 ff btst 0xff, %l1 400082bc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400082c0: 80 a0 60 00 cmp %g1, 0 400082c4: 02 80 00 05 be 400082d8 400082c8: 80 8c 60 ff btst 0xff, %l1 400082cc: 9f c0 40 00 call %g1 400082d0: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 400082d4: 80 8c 60 ff btst 0xff, %l1 400082d8: 02 80 00 0c be 40008308 400082dc: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 400082e0: c2 07 bf f8 ld [ %fp + -8 ], %g1 400082e4: 80 a0 60 00 cmp %g1, 0 400082e8: 02 80 00 08 be 40008308 400082ec: 01 00 00 00 nop 400082f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400082f4: 80 a0 60 00 cmp %g1, 0 400082f8: 02 80 00 04 be 40008308 400082fc: 01 00 00 00 nop 40008300: 9f c0 40 00 call %g1 40008304: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40008308: 40 00 d7 b5 call 4003e1dc <__errno> 4000830c: b0 10 3f ff mov -1, %i0 40008310: 10 80 00 1f b 4000838c 40008314: 82 10 20 14 mov 0x14, %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 40008318: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 4000831c: 80 a0 60 00 cmp %g1, 0 40008320: 12 80 00 1e bne 40008398 40008324: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 40008328: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 4000832c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008330: 02 80 00 09 be 40008354 <== NOT EXECUTED 40008334: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40008338: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000833c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008340: 02 80 00 05 be 40008354 <== NOT EXECUTED 40008344: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40008348: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000834c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 40008350: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40008354: 02 80 00 0b be 40008380 <== NOT EXECUTED 40008358: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 4000835c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008360: 02 80 00 08 be 40008380 <== NOT EXECUTED 40008364: 01 00 00 00 nop <== NOT EXECUTED 40008368: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000836c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008370: 02 80 00 04 be 40008380 <== NOT EXECUTED 40008374: 01 00 00 00 nop <== NOT EXECUTED 40008378: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000837c: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40008380: 40 00 d7 97 call 4003e1dc <__errno> <== NOT EXECUTED 40008384: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40008388: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 4000838c: c2 22 00 00 st %g1, [ %o0 ] 40008390: 81 c7 e0 08 ret 40008394: 81 e8 00 00 restore } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 40008398: 9f c0 40 00 call %g1 4000839c: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 400083a0: c2 07 bf e4 ld [ %fp + -28 ], %g1 400083a4: 80 a0 60 00 cmp %g1, 0 400083a8: 02 80 00 08 be 400083c8 400083ac: b0 10 00 08 mov %o0, %i0 400083b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400083b4: 80 a0 60 00 cmp %g1, 0 400083b8: 02 80 00 05 be 400083cc 400083bc: 80 8c 60 ff btst 0xff, %l1 400083c0: 9f c0 40 00 call %g1 400083c4: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 400083c8: 80 8c 60 ff btst 0xff, %l1 400083cc: 02 bf ff ab be 40008278 400083d0: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 400083d4: 80 a0 60 00 cmp %g1, 0 400083d8: 02 80 00 0b be 40008404 400083dc: 01 00 00 00 nop 400083e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400083e4: 80 a0 60 00 cmp %g1, 0 400083e8: 02 80 00 07 be 40008404 400083ec: 01 00 00 00 nop 400083f0: 9f c0 40 00 call %g1 400083f4: 90 07 bf ec add %fp, -20, %o0 400083f8: 81 c7 e0 08 ret 400083fc: 81 e8 00 00 restore 40008400: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 40008404: 81 c7 e0 08 ret <== NOT EXECUTED 40008408: 81 e8 00 00 restore <== NOT EXECUTED 40013bd0 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 40013bd0: 11 10 00 97 sethi %hi(0x40025c00), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 40013bd4: 81 c3 e0 08 retl <== NOT EXECUTED 40013bd8: 90 12 23 98 or %o0, 0x398, %o0 ! 40025f98 <== NOT EXECUTED 40010ba0 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 40010ba0: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 40010ba4: 90 10 00 18 mov %i0, %o0 40010ba8: 40 00 00 0b call 40010bd4 40010bac: 92 10 00 19 mov %i1, %o1 if (nap) 40010bb0: 80 a2 20 00 cmp %o0, 0 40010bb4: 02 80 00 05 be 40010bc8 40010bb8: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 40010bbc: f0 02 00 00 ld [ %o0 ], %i0 40010bc0: 81 c7 e0 08 ret 40010bc4: 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); 40010bc8: 40 00 0c 02 call 40013bd0 <== NOT EXECUTED 40010bcc: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 40010bd0: 01 00 00 00 nop 4000ce50 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4000ce50: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4000ce54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 4000ce58: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000ce5c: 40 00 00 c1 call 4000d160 <== NOT EXECUTED 4000ce60: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 4000ce64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000ce68: 32 80 00 02 bne,a 4000ce70 <== NOT EXECUTED 4000ce6c: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 4000ce70: 81 c7 e0 08 ret <== NOT EXECUTED 4000ce74: 81 e8 00 00 restore <== NOT EXECUTED 400020fc : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 400020fc: 9d e3 bf a0 save %sp, -96, %sp const char *p; if ( !name ) 40002100: 90 96 20 00 orcc %i0, 0, %o0 40002104: 22 80 00 26 be,a 4000219c 40002108: b2 10 20 00 clr %i1 return NULL; if ( !value ) 4000210c: 80 a6 60 00 cmp %i1, 0 40002110: 22 80 00 24 be,a 400021a0 40002114: b0 10 00 19 mov %i1, %i0 return NULL; if ( !length ) 40002118: 80 a6 a0 00 cmp %i2, 0 4000211c: 22 80 00 20 be,a 4000219c 40002120: b2 10 20 00 clr %i1 return NULL; value[0] = '\0'; p = rtems_bsp_cmdline_get_param_raw( name ); 40002124: 40 00 00 21 call 400021a8 40002128: c0 2e 40 00 clrb [ %i1 ] if ( !p ) 4000212c: 80 a2 20 00 cmp %o0, 0 40002130: 02 80 00 1a be 40002198 40002134: b4 06 bf ff add %i2, -1, %i2 40002138: 84 10 20 00 clr %g2 4000213c: 10 80 00 0e b 40002174 40002140: 82 10 20 00 clr %g1 int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 40002148: 80 88 a0 01 btst 1, %g2 quotes++; 4000214c: 10 80 00 07 b 40002168 <== NOT EXECUTED 40002150: 84 00 a0 01 inc %g2 <== NOT EXECUTED } else if ( ((quotes % 2) == 0) && *p == ' ' ) 40002154: 32 80 00 06 bne,a 4000216c 40002158: c8 2e 40 01 stb %g4, [ %i1 + %g1 ] <== NOT EXECUTED 4000215c: 80 a0 e0 20 cmp %g3, 0x20 40002160: 02 80 00 10 be 400021a0 40002164: b0 10 00 19 mov %i1, %i0 break; value[i++] = *p++; 40002168: c8 2e 40 01 stb %g4, [ %i1 + %g1 ] 4000216c: 82 00 60 01 inc %g1 value[i] = '\0'; 40002170: c0 2e 40 01 clrb [ %i1 + %g1 ] int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 40002180: c8 0a 00 01 ldub [ %o0 + %g1 ], %g4 40002184: 80 a0 40 1a cmp %g1, %i2 40002188: 0a bf ff ef bcs 40002144 4000218c: 80 a0 e0 22 cmp %g3, 0x22 return NULL; copy_string( p, value, length ); return value; } 40002190: 81 c7 e0 08 ret <== NOT EXECUTED 40002194: 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 ) { 400021d8: 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 ); 400021dc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 400021e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 400021e4: 7f ff ff c6 call 400020fc <== NOT EXECUTED 400021e8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if ( !p ) 400021ec: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 400021f0: 22 80 00 1e be,a 40002268 <== NOT EXECUTED 400021f4: b2 10 20 00 clr %i1 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; 400021f8: 40 00 2f fa call 4000e1e0 <== NOT EXECUTED 400021fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( *rhs != '=' ) 40002200: c2 4c 40 08 ldsb [ %l1 + %o0 ], %g1 <== NOT EXECUTED 40002204: 80 a0 60 3d cmp %g1, 0x3d <== NOT EXECUTED 40002208: 12 80 00 17 bne 40002264 <== NOT EXECUTED 4000220c: a2 04 40 08 add %l1, %o0, %l1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 40002210: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED 40002214: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 40002218: 12 80 00 03 bne 40002224 <== NOT EXECUTED 4000221c: 84 04 60 01 add %l1, 1, %g2 <== NOT EXECUTED rhs++; 40002220: 84 04 60 02 add %l1, 2, %g2 <== NOT EXECUTED 40002224: 10 80 00 05 b 40002238 <== NOT EXECUTED 40002228: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; 4000222c: c8 28 40 00 stb %g4, [ %g1 ] <== NOT EXECUTED 40002230: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40002234: 82 00 60 01 inc %g1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 40002238: c6 48 80 00 ldsb [ %g2 ], %g3 <== NOT EXECUTED 4000223c: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 40002240: 12 bf ff fb bne 4000222c <== NOT EXECUTED 40002244: c8 08 80 00 ldub [ %g2 ], %g4 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 40002248: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 <== NOT EXECUTED 4000224c: 80 a0 e0 22 cmp %g3, 0x22 <== NOT EXECUTED 40002250: 12 80 00 03 bne 4000225c <== NOT EXECUTED 40002254: 84 00 7f ff add %g1, -1, %g2 <== NOT EXECUTED 40002258: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED d--; *d = '\0'; return value; 4000225c: 10 80 00 03 b 40002268 <== NOT EXECUTED 40002260: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED 40002264: b2 10 20 00 clr %i1 <== NOT EXECUTED } 40002268: 81 c7 e0 08 ret <== NOT EXECUTED 4000226c: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 40002bec : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 40002bec: 9d e3 bf 60 save %sp, -160, %sp Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 40002bf0: 80 a6 60 00 cmp %i1, 0 40002bf4: 02 80 00 69 be 40002d98 40002bf8: 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 ); 40002bfc: 40 00 14 61 call 40007d80 <_TOD_Get_uptime> 40002c00: 90 10 00 17 mov %l7, %o0 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 40002c04: 92 10 00 17 mov %l7, %o1 40002c08: ba 07 bf e8 add %fp, -24, %i5 40002c0c: 11 10 00 a5 sethi %hi(0x40029400), %o0 40002c10: 94 10 00 1d mov %i5, %o2 40002c14: 40 00 1e 3d call 4000a508 <_Timespec_Subtract> 40002c18: 90 12 23 cc or %o0, 0x3cc, %o0 } } } #endif (*print)( 40002c1c: 90 10 00 18 mov %i0, %o0 40002c20: 13 10 00 7c sethi %hi(0x4001f000), %o1 40002c24: 21 10 00 a5 sethi %hi(0x40029400), %l0 40002c28: 92 12 60 b0 or %o1, 0xb0, %o1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 40002c2c: 39 10 00 7c sethi %hi(0x4001f000), %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 ) { 40002c30: 2d 10 00 a5 sethi %hi(0x40029400), %l6 /* * Print the information */ (*print)( context, 40002c34: 37 10 00 7c sethi %hi(0x4001f000), %i3 } } } #endif (*print)( 40002c38: 9f c6 40 00 call %i1 40002c3c: 35 10 00 a5 sethi %hi(0x40029400), %i2 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 40002c40: a8 07 bf c8 add %fp, -56, %l4 } } } #endif (*print)( 40002c44: a0 14 20 74 or %l0, 0x74, %l0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 40002c48: b8 17 22 28 or %i4, 0x228, %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 ) { 40002c4c: ac 15 a1 cc or %l6, 0x1cc, %l6 /* * Print the information */ (*print)( context, 40002c50: b6 16 e2 40 or %i3, 0x240, %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( 40002c54: b4 16 a1 d4 or %i2, 0x1d4, %i2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 40002c58: 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 ] ) 40002c5c: c2 04 00 00 ld [ %l0 ], %g1 40002c60: 80 a0 60 00 cmp %g1, 0 40002c64: 22 80 00 3f be,a 40002d60 40002c68: a0 04 20 04 add %l0, 4, %l0 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 40002c6c: e4 00 60 04 ld [ %g1 + 4 ], %l2 if ( information ) { 40002c70: a2 10 20 01 mov 1, %l1 40002c74: 80 a4 a0 00 cmp %l2, 0 40002c78: 12 80 00 33 bne 40002d44 40002c7c: aa 07 bf d8 add %fp, -40, %l5 for ( i=1 ; i <= information->maximum ; i++ ) { 40002c80: 10 80 00 38 b 40002d60 <== NOT EXECUTED 40002c84: a0 04 20 04 add %l0, 4, %l0 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 40002c88: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1 40002c8c: c2 00 40 02 ld [ %g1 + %g2 ], %g1 if ( !the_thread ) 40002c90: 80 a0 60 00 cmp %g1, 0 40002c94: 02 80 00 2c be 40002d44 40002c98: a2 04 60 01 inc %l1 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 40002c9c: d0 00 60 08 ld [ %g1 + 8 ], %o0 40002ca0: 40 00 0f 67 call 40006a3c 40002ca4: c2 27 bf c4 st %g1, [ %fp + -60 ] (*print)( 40002ca8: c2 07 bf c4 ld [ %fp + -60 ], %g1 40002cac: 90 10 00 18 mov %i0, %o0 40002cb0: d4 00 60 08 ld [ %g1 + 8 ], %o2 40002cb4: 92 10 00 1c mov %i4, %o1 40002cb8: 9f c6 40 00 call %i1 40002cbc: 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; 40002cc0: c2 07 bf c4 ld [ %fp + -60 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 40002cc4: 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; 40002cc8: c6 00 60 84 ld [ %g1 + 0x84 ], %g3 40002ccc: c6 27 bf e0 st %g3, [ %fp + -32 ] 40002cd0: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 40002cd4: c6 27 bf e4 st %g3, [ %fp + -28 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 40002cd8: c4 00 a0 08 ld [ %g2 + 8 ], %g2 40002cdc: c2 00 60 08 ld [ %g1 + 8 ], %g1 40002ce0: 80 a0 80 01 cmp %g2, %g1 40002ce4: 12 80 00 0a bne 40002d0c 40002ce8: 94 07 bf fc add %fp, -4, %o2 Timestamp_Control used; _Timestamp_Subtract( 40002cec: 90 10 00 1a mov %i2, %o0 40002cf0: 92 10 00 17 mov %l7, %o1 40002cf4: 40 00 1e 05 call 4000a508 <_Timespec_Subtract> 40002cf8: 94 10 00 15 mov %l5, %o2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 40002cfc: 90 10 00 13 mov %l3, %o0 40002d00: 40 00 1d 57 call 4000a25c <_Timespec_Add_to> 40002d04: 92 10 00 15 mov %l5, %o1 }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 40002d08: 94 07 bf fc add %fp, -4, %o2 40002d0c: 96 07 bf f8 add %fp, -8, %o3 40002d10: 90 10 00 13 mov %l3, %o0 40002d14: 40 00 1d 6b call 4000a2c0 <_Timespec_Divide> 40002d18: 92 10 00 1d mov %i5, %o1 /* * Print the information */ (*print)( context, 40002d1c: d0 07 bf e4 ld [ %fp + -28 ], %o0 40002d20: 40 00 63 b5 call 4001bbf4 <.udiv> 40002d24: 92 10 23 e8 mov 0x3e8, %o1 40002d28: d4 07 bf e0 ld [ %fp + -32 ], %o2 40002d2c: d8 07 bf fc ld [ %fp + -4 ], %o4 40002d30: da 07 bf f8 ld [ %fp + -8 ], %o5 40002d34: 96 10 00 08 mov %o0, %o3 40002d38: 92 10 00 1b mov %i3, %o1 40002d3c: 9f c6 40 00 call %i1 40002d40: 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++ ) { 40002d44: 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 ); 40002d48: 94 10 00 14 mov %l4, %o2 40002d4c: 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++ ) { 40002d50: 80 a4 40 01 cmp %l1, %g1 40002d54: 08 bf ff cd bleu 40002c88 40002d58: 85 2c 60 02 sll %l1, 2, %g2 40002d5c: a0 04 20 04 add %l0, 4, %l0 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 40002d60: 03 10 00 a5 sethi %hi(0x40029400), %g1 40002d64: 82 10 60 84 or %g1, 0x84, %g1 ! 40029484 <_Objects_Information_table+0x14> 40002d68: 80 a4 00 01 cmp %l0, %g1 40002d6c: 32 bf ff bd bne,a 40002c60 40002d70: c2 04 00 00 ld [ %l0 ], %g1 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 40002d74: d0 07 bf ec ld [ %fp + -20 ], %o0 40002d78: 40 00 63 9f call 4001bbf4 <.udiv> 40002d7c: 92 10 23 e8 mov 0x3e8, %o1 40002d80: d4 07 bf e8 ld [ %fp + -24 ], %o2 40002d84: 96 10 00 08 mov %o0, %o3 40002d88: 13 10 00 7c sethi %hi(0x4001f000), %o1 40002d8c: 90 10 00 18 mov %i0, %o0 40002d90: 9f c6 40 00 call %i1 40002d94: 92 12 62 58 or %o1, 0x258, %o1 40002d98: 81 c7 e0 08 ret 40002d9c: 81 e8 00 00 restore 4000ce1c : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 4000ce1c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 4000ce20: 11 10 00 68 sethi %hi(0x4001a000), %o0 <== NOT EXECUTED 4000ce24: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000ce28: 40 00 00 0a call 4000ce50 <== NOT EXECUTED 4000ce2c: 90 12 21 5c or %o0, 0x15c, %o0 <== NOT EXECUTED 4000ce30: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 4000ce34: 02 80 00 05 be 4000ce48 <== NOT EXECUTED 4000ce38: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 4000ce3c: 40 00 00 e9 call 4000d1e0 <__errno> <== NOT EXECUTED 4000ce40: 01 00 00 00 nop <== NOT EXECUTED 4000ce44: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 4000ce48: 81 c7 e0 08 ret <== NOT EXECUTED 4000ce4c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 4000742c : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 4000742c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 40007430: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 40007434: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 40007438: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 4000743c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 40007440: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 40007444: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40007448: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000744c: 7f ff ff 7d call 40007240 <== NOT EXECUTED 40007450: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 40007454: 81 c7 e0 08 ret <== NOT EXECUTED 40007458: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 400020dc : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 400020dc: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 400020e0: 80 a6 20 00 cmp %i0, 0 400020e4: 12 80 00 06 bne 400020fc 400020e8: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); 400020ec: 40 00 2c 3d call 4000d1e0 <__errno> 400020f0: 01 00 00 00 nop 400020f4: 10 80 00 07 b 40002110 400020f8: 82 10 20 0e mov 0xe, %g1 ! e if ( !pathloc ) 400020fc: 32 80 00 08 bne,a 4000211c 40002100: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 40002104: 40 00 2c 37 call 4000d1e0 <__errno> <== NOT EXECUTED 40002108: 01 00 00 00 nop <== NOT EXECUTED 4000210c: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 40002110: c2 22 00 00 st %g1, [ %o0 ] return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 40002114: 81 c7 e0 08 ret 40002118: 91 e8 3f ff restore %g0, -1, %o0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 4000211c: 80 a0 60 5c cmp %g1, 0x5c 40002120: 02 80 00 06 be 40002138 40002124: 80 a0 60 2f cmp %g1, 0x2f 40002128: 02 80 00 04 be 40002138 4000212c: 80 a0 60 00 cmp %g1, 0 40002130: 32 80 00 0a bne,a 40002158 40002134: 03 10 00 6a sethi %hi(0x4001a800), %g1 40002138: 03 10 00 6a sethi %hi(0x4001a800), %g1 4000213c: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 ! 4001a9a8 40002140: 90 10 00 1b mov %i3, %o0 40002144: 92 02 60 18 add %o1, 0x18, %o1 40002148: 40 00 2e 61 call 4000dacc 4000214c: 94 10 20 14 mov 0x14, %o2 40002150: 10 80 00 08 b 40002170 40002154: 82 10 20 01 mov 1, %g1 40002158: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 4000215c: 90 10 00 1b mov %i3, %o0 40002160: 92 02 60 04 add %o1, 4, %o1 40002164: 40 00 2e 5a call 4000dacc 40002168: 94 10 20 14 mov 0x14, %o2 4000216c: 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], 40002170: b2 26 40 01 sub %i1, %g1, %i1 40002174: 7f ff ff 9e call 40001fec 40002178: 91 ee 00 01 restore %i0, %g1, %o0 4000217c: 01 00 00 00 nop 40001fec : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 40001fec: 9d e3 bf a0 save %sp, -96, %sp 40001ff0: 90 10 00 18 mov %i0, %o0 /* * Verify Input parameters. */ if ( !pathname ) 40001ff4: 80 a6 20 00 cmp %i0, 0 40001ff8: 12 80 00 06 bne 40002010 40001ffc: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( EFAULT ); 40002000: 40 00 2c 78 call 4000d1e0 <__errno> <== NOT EXECUTED 40002004: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40002008: 10 80 00 2d b 400020bc <== NOT EXECUTED 4000200c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED if ( !pathloc ) 40002010: 80 a6 e0 00 cmp %i3, 0 40002014: 32 80 00 06 bne,a 4000202c 40002018: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 4000201c: 40 00 2c 71 call 4000d1e0 <__errno> <== NOT EXECUTED 40002020: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40002024: 10 80 00 26 b 400020bc <== NOT EXECUTED 40002028: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 4000202c: c2 00 40 00 ld [ %g1 ], %g1 40002030: 80 a0 60 00 cmp %g1, 0 40002034: 02 80 00 1f be 400020b0 40002038: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 4000203c: 9f c0 40 00 call %g1 40002040: 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 ) { 40002044: b0 92 20 00 orcc %o0, 0, %i0 40002048: 12 80 00 1e bne 400020c0 4000204c: 80 a7 20 00 cmp %i4, 0 40002050: 02 80 00 21 be 400020d4 40002054: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 40002058: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 4000205c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40002060: 80 a0 60 00 cmp %g1, 0 40002064: 22 80 00 0e be,a 4000209c 40002068: 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 ); 4000206c: 9f c0 40 00 call %g1 40002070: 90 10 00 1b mov %i3, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 40002074: 90 02 3f fd add %o0, -3, %o0 40002078: 80 a2 20 01 cmp %o0, 1 4000207c: 18 80 00 16 bgu 400020d4 40002080: 01 00 00 00 nop ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 40002084: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 40002088: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 4000208c: 80 a0 60 00 cmp %g1, 0 40002090: 12 80 00 0e bne 400020c8 40002094: 90 10 00 1b mov %i3, %o0 rtems_filesystem_freenode( pathloc ); 40002098: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4000209c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400020a0: 02 80 00 04 be 400020b0 <== NOT EXECUTED 400020a4: 01 00 00 00 nop <== NOT EXECUTED 400020a8: 9f c0 40 00 call %g1 <== NOT EXECUTED 400020ac: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 400020b0: 40 00 2c 4c call 4000d1e0 <__errno> <== NOT EXECUTED 400020b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400020b8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400020bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400020c0: 81 c7 e0 08 ret 400020c4: 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 ); 400020c8: 9f c0 40 00 call %g1 400020cc: 92 10 00 1a mov %i2, %o1 400020d0: b0 10 00 08 mov %o0, %i0 } } return result; } 400020d4: 81 c7 e0 08 ret 400020d8: 81 e8 00 00 restore 40001e4c : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 40001e4c: 9d e3 bf 88 save %sp, -120, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 40001e50: 23 10 00 6a sethi %hi(0x4001a800), %l1 40001e54: c2 04 61 a8 ld [ %l1 + 0x1a8 ], %g1 ! 4001a9a8 40001e58: 84 10 20 12 mov 0x12, %g2 init_fs_mount_table(); 40001e5c: 40 00 01 8d call 40002490 40001e60: c4 30 60 2c sth %g2, [ %g1 + 0x2c ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 40001e64: 03 10 00 65 sethi %hi(0x40019400), %g1 40001e68: c2 00 63 1c ld [ %g1 + 0x31c ], %g1 ! 4001971c rtems_fatal_error_occurred( 0xABCD0001 ); 40001e6c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 40001e70: 80 a0 60 00 cmp %g1, 0 40001e74: 02 80 00 0f be 40001eb0 40001e78: 90 12 20 01 or %o0, 1, %o0 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 40001e7c: 03 10 00 6a sethi %hi(0x4001a800), %g1 40001e80: c2 00 60 9c ld [ %g1 + 0x9c ], %g1 ! 4001a89c status = mount( 40001e84: 90 07 bf fc add %fp, -4, %o0 40001e88: d8 00 60 0c ld [ %g1 + 0xc ], %o4 40001e8c: d2 00 40 00 ld [ %g1 ], %o1 40001e90: d4 00 60 04 ld [ %g1 + 4 ], %o2 40001e94: 40 00 01 87 call 400024b0 40001e98: d6 00 60 08 ld [ %g1 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 40001e9c: 80 a2 3f ff cmp %o0, -1 40001ea0: 32 80 00 06 bne,a 40001eb8 40001ea4: d0 04 61 a8 ld [ %l1 + 0x1a8 ], %o0 rtems_fatal_error_occurred( 0xABCD0002 ); 40001ea8: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 40001eac: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED 40001eb0: 40 00 0f 56 call 40005c08 <== NOT EXECUTED 40001eb4: 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; 40001eb8: 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; 40001ebc: 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; 40001ec0: 92 02 60 1c add %o1, 0x1c, %o1 40001ec4: 94 10 20 14 mov 0x14, %o2 40001ec8: 40 00 2f 01 call 4000dacc 40001ecc: 90 02 20 18 add %o0, 0x18, %o0 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 40001ed0: a0 07 bf e8 add %fp, -24, %l0 40001ed4: 98 10 20 00 clr %o4 40001ed8: 96 10 00 10 mov %l0, %o3 40001edc: 25 10 00 66 sethi %hi(0x40019800), %l2 40001ee0: 92 10 20 01 mov 1, %o1 40001ee4: 94 10 20 00 clr %o2 40001ee8: 40 00 00 7d call 400020dc 40001eec: 90 14 a3 60 or %l2, 0x360, %o0 rtems_filesystem_root = loc; 40001ef0: d0 04 61 a8 ld [ %l1 + 0x1a8 ], %o0 40001ef4: 92 10 00 10 mov %l0, %o1 40001ef8: 94 10 20 14 mov 0x14, %o2 40001efc: 40 00 2e f4 call 4000dacc 40001f00: 90 02 20 18 add %o0, 0x18, %o0 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 40001f04: 96 10 00 10 mov %l0, %o3 40001f08: 98 10 20 00 clr %o4 40001f0c: 92 10 20 01 mov 1, %o1 40001f10: 94 10 20 00 clr %o2 40001f14: 40 00 00 72 call 400020dc 40001f18: 90 14 a3 60 or %l2, 0x360, %o0 rtems_filesystem_current = loc; 40001f1c: d0 04 61 a8 ld [ %l1 + 0x1a8 ], %o0 40001f20: 92 10 00 10 mov %l0, %o1 40001f24: 94 10 20 14 mov 0x14, %o2 40001f28: 40 00 2e e9 call 4000dacc 40001f2c: 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); 40001f30: 92 10 21 ff mov 0x1ff, %o1 40001f34: 11 10 00 66 sethi %hi(0x40019800), %o0 40001f38: 40 00 00 fe call 40002330 40001f3c: 90 12 23 68 or %o0, 0x368, %o0 ! 40019b68 <__FUNCTION__.5604+0x288> if ( status != 0 ) 40001f40: 80 a2 20 00 cmp %o0, 0 40001f44: 02 80 00 04 be 40001f54 40001f48: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred( 0xABCD0003 ); 40001f4c: 10 bf ff d9 b 40001eb0 <== NOT EXECUTED 40001f50: 90 12 20 03 or %o0, 3, %o0 ! abcd0003 <== NOT EXECUTED 40001f54: 81 c7 e0 08 ret 40001f58: 81 e8 00 00 restore 4000a574 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 4000a574: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 4000a578: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 4000a57c: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 4000a580: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 4000a584: 81 c3 e0 08 retl <== NOT EXECUTED 4000a588: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 40001f5c : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 40001f5c: 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 ) ) 40001f60: 10 80 00 03 b 40001f6c 40001f64: 90 10 20 00 clr %o0 { pathname++; pathnamelen--; stripped++; 40001f68: 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 ) ) 40001f6c: 80 a2 40 08 cmp %o1, %o0 40001f70: 02 80 00 0b be 40001f9c 40001f74: c4 08 40 08 ldub [ %g1 + %o0 ], %g2 40001f78: 85 28 a0 18 sll %g2, 0x18, %g2 40001f7c: 85 38 a0 18 sra %g2, 0x18, %g2 40001f80: 80 a0 a0 00 cmp %g2, 0 40001f84: 02 80 00 06 be 40001f9c 40001f88: 80 a0 a0 5c cmp %g2, 0x5c 40001f8c: 02 bf ff f7 be 40001f68 40001f90: 80 a0 a0 2f cmp %g2, 0x2f 40001f94: 22 bf ff f6 be,a 40001f6c 40001f98: 90 02 20 01 inc %o0 pathname++; pathnamelen--; stripped++; } return stripped; } 40001f9c: 81 c3 e0 08 retl 40001fa0: 01 00 00 00 nop 40001cb8 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 40001cb8: 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 ); 40001cbc: 40 00 31 00 call 4000e0bc <== NOT EXECUTED 40001cc0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40001cc4: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 40001cc8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40001ccc: 94 10 20 00 clr %o2 <== NOT EXECUTED 40001cd0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40001cd4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 40001cd8: 40 00 01 01 call 400020dc <== NOT EXECUTED 40001cdc: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 40001ce0: 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 ); 40001ce4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 40001ce8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 40001cec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40001cf0: 12 80 00 0e bne 40001d28 <== NOT EXECUTED 40001cf4: e4 07 bf ec ld [ %fp + -20 ], %l2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 40001cf8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40001cfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40001d00: 02 80 00 04 be 40001d10 <== NOT EXECUTED 40001d04: 01 00 00 00 nop <== NOT EXECUTED 40001d08: 9f c0 40 00 call %g1 <== NOT EXECUTED 40001d0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40001d10: 40 00 2d 34 call 4000d1e0 <__errno> <== NOT EXECUTED 40001d14: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40001d18: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40001d1c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40001d20: 81 c7 e0 08 ret <== NOT EXECUTED 40001d24: 81 e8 00 00 restore <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 40001d28: 9f c0 40 00 call %g1 <== NOT EXECUTED 40001d2c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 40001d30: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED 40001d34: 12 80 00 06 bne 40001d4c <== NOT EXECUTED 40001d38: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40001d3c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 40001d40: 22 80 00 0e be,a 40001d78 <== NOT EXECUTED 40001d44: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 40001d48: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40001d4c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40001d50: 02 80 00 1c be 40001dc0 <== NOT EXECUTED 40001d54: 01 00 00 00 nop <== NOT EXECUTED 40001d58: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40001d5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40001d60: 02 80 00 18 be 40001dc0 <== NOT EXECUTED 40001d64: 01 00 00 00 nop <== NOT EXECUTED 40001d68: 9f c0 40 00 call %g1 <== NOT EXECUTED 40001d6c: 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 ); 40001d70: 81 c7 e0 08 ret <== NOT EXECUTED 40001d74: 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 ); 40001d78: 40 00 30 d1 call 4000e0bc <== NOT EXECUTED 40001d7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40001d80: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 40001d84: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 40001d88: 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; 40001d8c: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 40001d90: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 40001d94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40001d98: 02 80 00 0c be 40001dc8 <== NOT EXECUTED 40001d9c: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED 40001da0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40001da4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40001da8: 02 80 00 08 be 40001dc8 <== NOT EXECUTED 40001dac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40001db0: 9f c0 40 00 call %g1 <== NOT EXECUTED 40001db4: b0 10 20 00 clr %i0 <== NOT EXECUTED 40001db8: 81 c7 e0 08 ret <== NOT EXECUTED 40001dbc: 81 e8 00 00 restore <== NOT EXECUTED 40001dc0: 81 c7 e0 08 ret <== NOT EXECUTED 40001dc4: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED 40001dc8: b0 10 20 00 clr %i0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 40001dcc: 81 c7 e0 08 ret <== NOT EXECUTED 40001dd0: 81 e8 00 00 restore <== NOT EXECUTED 4000a420 : * 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 ) { 4000a420: 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 ); 4000a424: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000a428: d0 00 60 60 ld [ %g1 + 0x60 ], %o0 ! 4001b060 4000a42c: 92 10 20 00 clr %o1 4000a430: 7f ff ec 4f call 4000556c 4000a434: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 4000a438: 21 10 00 6c sethi %hi(0x4001b000), %l0 4000a43c: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 ! 4001b05c 4000a440: 80 a0 60 00 cmp %g1, 0 4000a444: 02 80 00 26 be 4000a4dc 4000a448: b0 10 20 00 clr %i0 rc = rtems_semaphore_create( 4000a44c: 05 10 00 6c sethi %hi(0x4001b000), %g2 4000a450: c4 00 a0 58 ld [ %g2 + 0x58 ], %g2 ! 4001b058 4000a454: 92 10 20 01 mov 1, %o1 4000a458: 82 20 40 02 sub %g1, %g2, %g1 4000a45c: 83 38 60 03 sra %g1, 3, %g1 4000a460: 87 28 60 06 sll %g1, 6, %g3 4000a464: 85 28 60 03 sll %g1, 3, %g2 4000a468: 84 20 c0 02 sub %g3, %g2, %g2 4000a46c: 87 28 a0 06 sll %g2, 6, %g3 4000a470: 84 00 80 03 add %g2, %g3, %g2 4000a474: 84 00 80 01 add %g2, %g1, %g2 4000a478: 87 28 a0 0f sll %g2, 0xf, %g3 4000a47c: 84 20 c0 02 sub %g3, %g2, %g2 4000a480: 07 13 10 92 sethi %hi(0x4c424800), %g3 4000a484: 85 28 a0 03 sll %g2, 3, %g2 4000a488: 86 10 e1 00 or %g3, 0x100, %g3 4000a48c: 82 00 80 01 add %g2, %g1, %g1 4000a490: 94 10 20 54 mov 0x54, %o2 4000a494: 96 10 20 00 clr %o3 4000a498: 90 10 40 03 or %g1, %g3, %o0 4000a49c: 7f ff eb 92 call 400052e4 4000a4a0: 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) 4000a4a4: 80 a2 20 00 cmp %o0, 0 4000a4a8: 32 80 00 0d bne,a 4000a4dc 4000a4ac: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 4000a4b0: f0 04 20 5c ld [ %l0 + 0x5c ], %i0 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); 4000a4b4: 92 10 20 00 clr %o1 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; 4000a4b8: e2 06 20 38 ld [ %i0 + 0x38 ], %l1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 4000a4bc: 90 10 00 18 mov %i0, %o0 4000a4c0: 40 00 0d c2 call 4000dbc8 4000a4c4: 94 10 20 48 mov 0x48, %o2 iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 4000a4c8: c2 07 bf fc ld [ %fp + -4 ], %g1 rtems_libio_iop_freelist = next; 4000a4cc: e2 24 20 5c st %l1, [ %l0 + 0x5c ] 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; 4000a4d0: 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; 4000a4d4: 82 10 21 00 mov 0x100, %g1 4000a4d8: c2 26 20 18 st %g1, [ %i0 + 0x18 ] failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 4000a4dc: 03 10 00 6c sethi %hi(0x4001b000), %g1 4000a4e0: 7f ff ec 6a call 40005688 4000a4e4: d0 00 60 60 ld [ %g1 + 0x60 ], %o0 ! 4001b060 return iop; } 4000a4e8: 81 c7 e0 08 ret 4000a4ec: 81 e8 00 00 restore 40002180 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 40002180: 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) 40002184: 21 10 00 6a sethi %hi(0x4001a800), %l0 40002188: d0 04 20 94 ld [ %l0 + 0x94 ], %o0 ! 4001a894 4000218c: 80 a2 20 00 cmp %o0, 0 40002190: 22 80 00 18 be,a 400021f0 40002194: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 40002198: 40 00 1f 69 call 40009f3c 4000219c: 92 10 20 48 mov 0x48, %o1 400021a0: 03 10 00 6c sethi %hi(0x4001b000), %g1 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 400021a4: 80 a2 20 00 cmp %o0, 0 400021a8: 12 80 00 04 bne 400021b8 400021ac: d0 20 60 58 st %o0, [ %g1 + 0x58 ] rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 400021b0: 10 80 00 1a b 40002218 <== NOT EXECUTED 400021b4: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; 400021b8: 05 10 00 6c sethi %hi(0x4001b000), %g2 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 400021bc: c8 04 20 94 ld [ %l0 + 0x94 ], %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; 400021c0: d0 20 a0 5c st %o0, [ %g2 + 0x5c ] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 400021c4: 82 10 00 08 mov %o0, %g1 400021c8: 10 80 00 03 b 400021d4 400021cc: 84 10 20 00 clr %g2 iop->data1 = iop + 1; 400021d0: 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++) 400021d4: 84 00 a0 01 inc %g2 iop->data1 = iop + 1; 400021d8: 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++) 400021dc: 80 a0 80 04 cmp %g2, %g4 400021e0: 0a bf ff fc bcs 400021d0 400021e4: 82 00 60 48 add %g1, 0x48, %g1 iop->data1 = iop + 1; iop->data1 = NULL; 400021e8: c0 20 e0 38 clr [ %g3 + 0x38 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 400021ec: 11 13 10 92 sethi %hi(0x4c424800), %o0 400021f0: 92 10 20 01 mov 1, %o1 400021f4: 90 12 21 4f or %o0, 0x14f, %o0 400021f8: 94 10 20 54 mov 0x54, %o2 400021fc: 96 10 20 00 clr %o3 40002200: 19 10 00 6c sethi %hi(0x4001b000), %o4 40002204: 40 00 0c 38 call 400052e4 40002208: 98 13 20 60 or %o4, 0x60, %o4 ! 4001b060 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 4000220c: 80 a2 20 00 cmp %o0, 0 40002210: 02 80 00 04 be 40002220 40002214: 03 10 00 6a sethi %hi(0x4001a800), %g1 rtems_fatal_error_occurred( rc ); 40002218: 40 00 0e 7c call 40005c08 <== NOT EXECUTED 4000221c: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 40002220: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 40002224: 80 a0 60 00 cmp %g1, 0 40002228: 02 80 00 04 be 40002238 4000222c: 01 00 00 00 nop (* rtems_fs_init_helper)(); 40002230: 9f c0 40 00 call %g1 40002234: 01 00 00 00 nop 40002238: 81 c7 e0 08 ret 4000223c: 81 e8 00 00 restore 4002788c : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 4002788c: 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); 40027890: 90 10 20 00 clr %o0 40027894: 92 10 20 00 clr %o1 40027898: 40 00 04 3d call 4002898c 4002789c: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 400278a0: b0 92 20 00 orcc %o0, 0, %i0 400278a4: 12 80 00 19 bne 40027908 400278a8: 21 10 01 8f sethi %hi(0x40063c00), %l0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 400278ac: c4 04 20 e8 ld [ %l0 + 0xe8 ], %g2 ! 40063ce8 400278b0: 03 10 01 9e sethi %hi(0x40067800), %g1 400278b4: 82 10 62 38 or %g1, 0x238, %g1 ! 40067a38 400278b8: 80 a0 80 01 cmp %g2, %g1 400278bc: 12 80 00 15 bne 40027910 400278c0: a4 14 20 e8 or %l0, 0xe8, %l2 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 400278c4: 7f ff 7e 8f call 40007300 400278c8: 90 10 20 48 mov 0x48, %o0 if (!tmp) 400278cc: a2 92 20 00 orcc %o0, 0, %l1 400278d0: 12 80 00 04 bne 400278e0 400278d4: 92 10 00 12 mov %l2, %o1 400278d8: 81 c7 e0 08 ret <== NOT EXECUTED 400278dc: 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); 400278e0: 90 10 20 00 clr %o0 400278e4: 15 10 00 9d sethi %hi(0x40027400), %o2 400278e8: 40 00 05 27 call 40028d84 400278ec: 94 12 a3 58 or %o2, 0x358, %o2 ! 40027758 if (sc != RTEMS_SUCCESSFUL) { 400278f0: 82 92 20 00 orcc %o0, 0, %g1 400278f4: 22 80 00 07 be,a 40027910 400278f8: e2 24 20 e8 st %l1, [ %l0 + 0xe8 ] /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 400278fc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40027900: 7f ff 7c e4 call 40006c90 <== NOT EXECUTED 40027904: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED return sc; 40027908: 81 c7 e0 08 ret <== NOT EXECUTED 4002790c: 81 e8 00 00 restore <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 40027910: 23 10 01 8f sethi %hi(0x40063c00), %l1 40027914: e0 04 60 e8 ld [ %l1 + 0xe8 ], %l0 ! 40063ce8 40027918: 94 10 20 48 mov 0x48, %o2 4002791c: 90 10 00 10 mov %l0, %o0 40027920: 13 10 01 9e sethi %hi(0x40067800), %o1 40027924: 40 00 67 01 call 40041528 40027928: 92 12 62 38 or %o1, 0x238, %o1 ! 40067a38 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 4002792c: 03 10 01 9e sethi %hi(0x40067800), %g1 40027930: d2 00 62 20 ld [ %g1 + 0x220 ], %o1 ! 40067a20 } 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*/ 40027934: c2 07 bf fc ld [ %fp + -4 ], %g1 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 40027938: 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*/ 4002793c: c2 24 00 00 st %g1, [ %l0 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 40027940: 90 04 20 18 add %l0, 0x18, %o0 40027944: 40 00 66 f9 call 40041528 40027948: 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); 4002794c: a0 07 bf e8 add %fp, -24, %l0 40027950: 98 10 20 00 clr %o4 40027954: 96 10 00 10 mov %l0, %o3 40027958: 25 10 01 68 sethi %hi(0x4005a000), %l2 4002795c: 92 10 20 01 mov 1, %o1 40027960: 94 10 20 00 clr %o2 40027964: 7f ff 7c a2 call 40006bec 40027968: 90 14 a0 d8 or %l2, 0xd8, %o0 rtems_filesystem_root = loc; 4002796c: d0 04 60 e8 ld [ %l1 + 0xe8 ], %o0 40027970: 92 10 00 10 mov %l0, %o1 40027974: 94 10 20 14 mov 0x14, %o2 40027978: 40 00 66 ec call 40041528 4002797c: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 40027980: 92 10 20 01 mov 1, %o1 40027984: 94 10 20 00 clr %o2 40027988: 90 14 a0 d8 or %l2, 0xd8, %o0 4002798c: 96 10 00 10 mov %l0, %o3 40027990: 7f ff 7c 97 call 40006bec 40027994: 98 10 20 00 clr %o4 rtems_filesystem_current = loc; 40027998: d0 04 60 e8 ld [ %l1 + 0xe8 ], %o0 4002799c: 92 10 00 10 mov %l0, %o1 400279a0: 90 02 20 04 add %o0, 4, %o0 400279a4: 40 00 66 e1 call 40041528 400279a8: 94 10 20 14 mov 0x14, %o2 return RTEMS_SUCCESSFUL; } 400279ac: 81 c7 e0 08 ret 400279b0: 81 e8 00 00 restore 400277d0 : * 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) { 400277d0: 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); 400277d4: 90 10 20 00 clr %o0 <== NOT EXECUTED 400277d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 400277dc: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 400277e0: 40 00 04 6b call 4002898c <== NOT EXECUTED 400277e4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 400277e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400277ec: 12 80 00 26 bne 40027884 <== NOT EXECUTED 400277f0: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 400277f4: 13 10 01 8f sethi %hi(0x40063c00), %o1 <== NOT EXECUTED 400277f8: e0 02 60 e8 ld [ %o1 + 0xe8 ], %l0 ! 40063ce8 <== NOT EXECUTED 400277fc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40027800: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 40027804: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40027808: 12 80 00 09 bne 4002782c <== NOT EXECUTED 4002780c: 92 12 60 e8 or %o1, 0xe8, %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); 40027810: 40 00 05 89 call 40028e34 <== NOT EXECUTED 40027814: 01 00 00 00 nop <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 40027818: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 4002781c: 12 80 00 1a bne 40027884 <== NOT EXECUTED 40027820: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 40027824: 7f ff ff cd call 40027758 <== NOT EXECUTED 40027828: 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, 4002782c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40027830: 21 10 01 8f sethi %hi(0x40063c00), %l0 <== NOT EXECUTED 40027834: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 40027838: a2 14 20 e8 or %l0, 0xe8, %l1 <== NOT EXECUTED 4002783c: 40 00 05 a4 call 40028ecc <== NOT EXECUTED 40027840: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 40027844: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40027848: 12 80 00 0c bne 40027878 <== NOT EXECUTED 4002784c: 07 10 01 9e sethi %hi(0x40067800), %g3 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 40027850: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 40027854: 15 10 00 9d sethi %hi(0x40027400), %o2 <== NOT EXECUTED 40027858: 40 00 05 4b call 40028d84 <== NOT EXECUTED 4002785c: 94 12 a3 58 or %o2, 0x358, %o2 ! 40027758 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 40027860: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40027864: 12 80 00 05 bne 40027878 <== NOT EXECUTED 40027868: 07 10 01 9e sethi %hi(0x40067800), %g3 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 4002786c: 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; 40027870: 10 80 00 05 b 40027884 <== NOT EXECUTED 40027874: c4 24 20 e8 st %g2, [ %l0 + 0xe8 ] <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 40027878: 05 10 01 8f sethi %hi(0x40063c00), %g2 <== NOT EXECUTED 4002787c: 86 10 e2 38 or %g3, 0x238, %g3 <== NOT EXECUTED 40027880: c6 20 a0 e8 st %g3, [ %g2 + 0xe8 ] <== NOT EXECUTED return sc; } 40027884: 81 c7 e0 08 ret <== NOT EXECUTED 40027888: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED 40007408 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 40007408: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 4000740c: 03 10 01 8e sethi %hi(0x40063800), %g1 <== NOT EXECUTED 40007410: d0 00 62 00 ld [ %g1 + 0x200 ], %o0 ! 40063a00 <== NOT EXECUTED 40007414: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 40007418: 40 00 17 45 call 4000d12c <_Protected_heap_Get_block_size> <== NOT EXECUTED 4000741c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 40007420: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 40007424: 02 80 00 08 be 40007444 <== NOT EXECUTED 40007428: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 4000742c: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 40007430: 82 10 61 f0 or %g1, 0x1f0, %g1 <== NOT EXECUTED 40007434: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 40007438: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 4000743c: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 40007440: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 40007444: 81 c7 e0 08 ret <== NOT EXECUTED 40007448: 81 e8 00 00 restore <== NOT EXECUTED 4000744c : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 4000744c: 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 ) 40007450: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 40007454: 02 80 00 13 be 400074a0 <== NOT EXECUTED 40007458: 03 10 01 8e sethi %hi(0x40063800), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 4000745c: d0 00 62 00 ld [ %g1 + 0x200 ], %o0 ! 40063a00 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 40007460: 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); 40007464: 40 00 17 32 call 4000d12c <_Protected_heap_Get_block_size> <== NOT EXECUTED 40007468: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 4000746c: 03 10 01 9e sethi %hi(0x40067800), %g1 <== NOT EXECUTED 40007470: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 40007474: 82 10 61 f0 or %g1, 0x1f0, %g1 <== NOT EXECUTED 40007478: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 4000747c: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 40007480: 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); 40007484: 9a 83 40 04 addcc %o5, %g4, %o5 <== NOT EXECUTED 40007488: 98 43 20 00 addx %o4, 0, %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 4000748c: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 40007490: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 40007494: 08 80 00 03 bleu 400074a0 <== NOT EXECUTED 40007498: d8 38 60 20 std %o4, [ %g1 + 0x20 ] <== NOT EXECUTED s->max_depth = current_depth; 4000749c: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 400074a0: 81 c7 e0 08 ret <== NOT EXECUTED 400074a4: 81 e8 00 00 restore <== NOT EXECUTED 400074a8 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 400074a8: 11 10 01 9e sethi %hi(0x40067800), %o0 <== NOT EXECUTED 400074ac: 92 10 20 00 clr %o1 <== NOT EXECUTED 400074b0: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED 400074b4: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED 400074b8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 400074bc: 40 00 e8 ae call 40041774 <== NOT EXECUTED 400074c0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 400074c4: 01 00 00 00 nop 4000f784 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 4000f784: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 4000f788: a0 96 20 00 orcc %i0, 0, %l0 4000f78c: 02 80 00 20 be 4000f80c 4000f790: 03 10 00 84 sethi %hi(0x40021000), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4000f794: c2 00 62 70 ld [ %g1 + 0x270 ], %g1 ! 40021270 <_System_state_Current> 4000f798: 80 a0 60 03 cmp %g1, 3 4000f79c: 12 80 00 07 bne 4000f7b8 4000f7a0: c0 24 00 00 clr [ %l0 ] 4000f7a4: 7f ff d0 90 call 400039e4 4000f7a8: 01 00 00 00 nop 4000f7ac: 80 8a 20 ff btst 0xff, %o0 4000f7b0: 02 80 00 18 be 4000f810 4000f7b4: b0 10 20 16 mov 0x16, %i0 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4000f7b8: 7f ff d0 a4 call 40003a48 4000f7bc: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 4000f7c0: 03 10 00 81 sethi %hi(0x40020400), %g1 4000f7c4: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 40020680 4000f7c8: 94 10 00 19 mov %i1, %o2 4000f7cc: 92 10 00 1a mov %i2, %o1 4000f7d0: 7f ff e5 89 call 40008df4 <_Protected_heap_Allocate_aligned_with_boundary> 4000f7d4: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 4000f7d8: b2 92 20 00 orcc %o0, 0, %i1 4000f7dc: 02 80 00 0d be 4000f810 4000f7e0: 03 10 00 83 sethi %hi(0x40020c00), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 4000f7e4: c2 00 60 c8 ld [ %g1 + 0xc8 ], %g1 ! 40020cc8 4000f7e8: 80 a0 60 00 cmp %g1, 0 4000f7ec: 22 80 00 06 be,a 4000f804 4000f7f0: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 4000f7f4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 4000f7f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000f7fc: 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; 4000f800: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 4000f804: 81 c7 e0 08 ret 4000f808: 91 e8 20 00 restore %g0, 0, %o0 4000f80c: b0 10 20 16 mov 0x16, %i0 } 4000f810: 81 c7 e0 08 ret 4000f814: 81 e8 00 00 restore 400073f8 : void rtems_panic( const char *printf_format, ... ) { 400073f8: 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); 400073fc: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 40007400: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 40007404: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 40007408: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 4000740c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 40007410: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 40007414: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 40007418: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000741c: 7f ff ff 89 call 40007240 <== NOT EXECUTED 40007420: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 40007424: 81 c7 e0 08 ret <== NOT EXECUTED 40007428: 81 e8 00 00 restore <== NOT EXECUTED 4000b920 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 4000b920: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 4000b924: 03 10 00 6b sethi %hi(0x4001ac00), %g1 4000b928: c2 08 62 c4 ldub [ %g1 + 0x2c4 ], %g1 ! 4001aec4 4000b92c: 80 a0 60 00 cmp %g1, 0 4000b930: 02 80 00 15 be 4000b984 4000b934: 19 10 00 6b sethi %hi(0x4001ac00), %o4 return; if (rtems_pipe_semaphore) 4000b938: c2 03 23 e0 ld [ %o4 + 0x3e0 ], %g1 ! 4001afe0 <== NOT EXECUTED 4000b93c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000b940: 12 80 00 11 bne 4000b984 <== NOT EXECUTED 4000b944: 98 13 23 e0 or %o4, 0x3e0, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 4000b948: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 4000b94c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000b950: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 4000b954: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 4000b958: 7f ff e6 63 call 400052e4 <== NOT EXECUTED 4000b95c: 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) 4000b960: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000b964: 02 80 00 04 be 4000b974 <== NOT EXECUTED 4000b968: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 4000b96c: 7f ff e8 a7 call 40005c08 <== NOT EXECUTED 4000b970: 01 00 00 00 nop <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 4000b974: 7f ff e5 3c call 40004e64 <== NOT EXECUTED 4000b978: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 4000b97c: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 4000b980: d0 30 63 e6 sth %o0, [ %g1 + 0x3e6 ] ! 4001afe6 <== NOT EXECUTED 4000b984: 81 c7 e0 08 ret 4000b988: 81 e8 00 00 restore 4000522c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 4000522c: 9d e3 bf a0 save %sp, -96, %sp Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 40005230: 03 10 01 9f sethi %hi(0x40067c00), %g1 40005234: c2 00 60 6c ld [ %g1 + 0x6c ], %g1 ! 40067c6c <_Thread_Executing> ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 40005238: d0 00 60 c4 ld [ %g1 + 0xc4 ], %o0 4000523c: 80 a7 80 08 cmp %fp, %o0 40005240: 0a 80 00 06 bcs 40005258 40005244: a0 10 20 00 clr %l0 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 40005248: c2 00 60 c0 ld [ %g1 + 0xc0 ], %g1 4000524c: 82 02 00 01 add %o0, %g1, %g1 40005250: 80 a0 40 1e cmp %g1, %fp 40005254: 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 ) { 40005258: 03 10 01 93 sethi %hi(0x40064c00), %g1 4000525c: c2 00 62 d0 ld [ %g1 + 0x2d0 ], %g1 ! 40064ed0 40005260: 80 a0 60 00 cmp %g1, 0 40005264: 02 80 00 09 be 40005288 40005268: 92 10 20 01 mov 1, %o1 pattern_ok = (!memcmp( 4000526c: 90 02 20 08 add %o0, 8, %o0 40005270: 13 10 01 9e sethi %hi(0x40067800), %o1 40005274: 94 10 20 10 mov 0x10, %o2 40005278: 40 00 f0 7b call 40041464 4000527c: 92 12 61 c0 or %o1, 0x1c0, %o1 40005280: 80 a0 00 08 cmp %g0, %o0 40005284: 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 ) 40005288: 80 8c 20 ff btst 0xff, %l0 4000528c: 02 80 00 04 be 4000529c 40005290: 80 8a 60 ff btst 0xff, %o1 40005294: 12 80 00 07 bne 400052b0 40005298: 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 ); 4000529c: 03 10 01 9f sethi %hi(0x40067c00), %g1 <== NOT EXECUTED 400052a0: d0 00 60 6c ld [ %g1 + 0x6c ], %o0 ! 40067c6c <_Thread_Executing> <== NOT EXECUTED 400052a4: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED 400052a8: 7f ff ff b7 call 40005184 <== NOT EXECUTED 400052ac: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 400052b0: 81 c7 e0 08 ret 400052b4: 81 e8 00 00 restore 40005168 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 40005168: 13 10 00 1f sethi %hi(0x40007c00), %o1 <== NOT EXECUTED 4000516c: 90 10 20 00 clr %o0 <== NOT EXECUTED 40005170: 92 12 62 fc or %o1, 0x2fc, %o1 <== NOT EXECUTED 40005174: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40005178: 7f ff ff e6 call 40005110 <== NOT EXECUTED 4000517c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40005180: 01 00 00 00 nop 40005110 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 40005110: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED print_context = context; 40005114: 23 10 01 93 sethi %hi(0x40064c00), %l1 <== NOT EXECUTED print_handler = print; 40005118: 21 10 01 93 sethi %hi(0x40064c00), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 4000511c: f0 24 62 d4 st %i0, [ %l1 + 0x2d4 ] <== NOT EXECUTED print_handler = print; 40005120: f2 24 22 d8 st %i1, [ %l0 + 0x2d8 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 40005124: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40005128: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 4000512c: 9f c6 40 00 call %i1 <== NOT EXECUTED 40005130: 92 12 62 50 or %o1, 0x250, %o1 ! 40059e50 <== NOT EXECUTED (*print)( context, 40005134: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40005138: 13 10 01 67 sethi %hi(0x40059c00), %o1 <== NOT EXECUTED 4000513c: 9f c6 40 00 call %i1 <== NOT EXECUTED 40005140: 92 12 62 68 or %o1, 0x268, %o1 ! 40059e68 <== 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 ); 40005144: 11 10 00 13 sethi %hi(0x40004c00), %o0 <== NOT EXECUTED 40005148: 40 00 1d b3 call 4000c814 <== NOT EXECUTED 4000514c: 90 12 23 c0 or %o0, 0x3c0, %o0 ! 40004fc0 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 40005150: 7f ff ff 9c call 40004fc0 <== NOT EXECUTED 40005154: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 40005158: c0 24 62 d4 clr [ %l1 + 0x2d4 ] <== NOT EXECUTED print_handler = NULL; 4000515c: c0 24 22 d8 clr [ %l0 + 0x2d8 ] <== NOT EXECUTED } 40005160: 81 c7 e0 08 ret <== NOT EXECUTED 40005164: 81 e8 00 00 restore <== NOT EXECUTED 400052b8 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 400052b8: 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; 400052bc: d0 06 20 c4 ld [ %i0 + 0xc4 ], %o0 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 400052c0: 80 a7 80 08 cmp %fp, %o0 400052c4: 0a 80 00 06 bcs 400052dc 400052c8: a0 10 20 00 clr %l0 } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( 400052cc: c2 06 20 c0 ld [ %i0 + 0xc0 ], %g1 400052d0: 82 02 00 01 add %o0, %g1, %g1 400052d4: 80 a0 40 1e cmp %g1, %fp 400052d8: 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, 400052dc: 90 02 20 08 add %o0, 8, %o0 400052e0: 13 10 01 9e sethi %hi(0x40067800), %o1 400052e4: 94 10 20 10 mov 0x10, %o2 400052e8: 40 00 f0 5f call 40041464 400052ec: 92 12 61 c0 or %o1, 0x1c0, %o1 400052f0: 80 a0 00 08 cmp %g0, %o0 400052f4: b2 60 3f ff subx %g0, -1, %i1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 400052f8: 80 8c 20 ff btst 0xff, %l0 400052fc: 02 80 00 04 be 4000530c 40005300: 80 a6 60 00 cmp %i1, 0 40005304: 12 80 00 05 bne 40005318 40005308: 01 00 00 00 nop Stack_check_report_blown_task( running, pattern_ok ); 4000530c: b2 0e 60 01 and %i1, 1, %i1 <== NOT EXECUTED 40005310: 7f ff ff 9d call 40005184 <== NOT EXECUTED 40005314: 81 e8 00 00 restore <== NOT EXECUTED 40005318: 81 c7 e0 08 ret 4000531c: 81 e8 00 00 restore 4000bff0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000bff0: 9d e3 bf 98 save %sp, -104, %sp 4000bff4: a4 10 00 18 mov %i0, %l2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000bff8: 80 a6 60 00 cmp %i1, 0 4000bffc: 02 80 00 24 be 4000c08c 4000c000: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c004: 40 00 08 a6 call 4000e29c <__errno> 4000c008: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c00c: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c010: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c014: c0 26 40 00 clr [ %i1 ] 4000c018: c0 26 60 04 clr [ %i1 + 4 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c01c: 40 00 14 18 call 4001107c 4000c020: 90 10 00 12 mov %l2, %o0 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c024: 80 a6 a0 00 cmp %i2, 0 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c028: a0 10 00 08 mov %o0, %l0 #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 ) 4000c02c: 02 80 00 04 be 4000c03c 4000c030: a2 10 00 09 mov %o1, %l1 *endptr = end; 4000c034: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c038: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c03c: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c040: 80 a0 40 12 cmp %g1, %l2 4000c044: 02 80 00 12 be 4000c08c 4000c048: 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)) 4000c04c: 03 10 00 79 sethi %hi(0x4001e400), %g1 4000c050: d4 18 61 a8 ldd [ %g1 + 0x1a8 ], %o2 ! 4001e5a8 <_CPU_Trap_slot_template+0x14> 4000c054: 90 10 00 10 mov %l0, %o0 4000c058: 40 00 3c 2f call 4001b114 <__gtdf2> 4000c05c: 92 10 00 11 mov %l1, %o1 4000c060: 80 a2 20 00 cmp %o0, 0 4000c064: 24 80 00 09 ble,a 4000c088 4000c068: e0 3e 40 00 std %l0, [ %i1 ] 4000c06c: 40 00 08 8c call 4000e29c <__errno> 4000c070: b0 10 20 0a mov 0xa, %i0 4000c074: c2 02 00 00 ld [ %o0 ], %g1 4000c078: 80 a0 60 22 cmp %g1, 0x22 4000c07c: 02 80 00 04 be 4000c08c 4000c080: 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; 4000c084: e0 3e 40 00 std %l0, [ %i1 ] <== NOT EXECUTED 4000c088: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c08c: 81 c7 e0 08 ret 4000c090: 81 e8 00 00 restore 4000c094 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c094: 9d e3 bf 98 save %sp, -104, %sp 4000c098: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c09c: 80 a6 60 00 cmp %i1, 0 4000c0a0: 02 80 00 21 be 4000c124 4000c0a4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c0a8: 40 00 08 7d call 4000e29c <__errno> 4000c0ac: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c0b0: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c0b4: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c0b8: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c0bc: 40 00 13 dd call 40011030 4000c0c0: 90 10 00 10 mov %l0, %o0 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c0c4: 80 a6 a0 00 cmp %i2, 0 4000c0c8: 02 80 00 04 be 4000c0d8 4000c0cc: a2 10 00 08 mov %o0, %l1 *endptr = end; 4000c0d0: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c0d4: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c0d8: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c0dc: 80 a0 40 10 cmp %g1, %l0 4000c0e0: 02 80 00 11 be 4000c124 4000c0e4: 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)) 4000c0e8: 90 10 00 11 mov %l1, %o0 4000c0ec: 13 1f df ff sethi %hi(0x7f7ffc00), %o1 4000c0f0: 40 00 39 51 call 4001a634 <__gtsf2> 4000c0f4: 92 12 63 ff or %o1, 0x3ff, %o1 ! 7f7fffff 4000c0f8: 80 a2 20 00 cmp %o0, 0 4000c0fc: 24 80 00 09 ble,a 4000c120 4000c100: e2 26 40 00 st %l1, [ %i1 ] 4000c104: 40 00 08 66 call 4000e29c <__errno> 4000c108: b0 10 20 0a mov 0xa, %i0 4000c10c: c2 02 00 00 ld [ %o0 ], %g1 4000c110: 80 a0 60 22 cmp %g1, 0x22 4000c114: 02 80 00 04 be 4000c124 4000c118: 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; 4000c11c: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4000c120: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c124: 81 c7 e0 08 ret 4000c128: 81 e8 00 00 restore 4001d590 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4001d590: 9d e3 bf 98 save %sp, -104, %sp 4001d594: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4001d598: 80 a6 60 00 cmp %i1, 0 4001d59c: 02 80 00 20 be 4001d61c 4001d5a0: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4001d5a4: 40 00 83 0e call 4003e1dc <__errno> 4001d5a8: 01 00 00 00 nop 4001d5ac: c0 22 00 00 clr [ %o0 ] *n = 0; 4001d5b0: 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 ); 4001d5b4: 94 10 00 1b mov %i3, %o2 4001d5b8: 90 10 00 10 mov %l0, %o0 4001d5bc: 40 00 a2 aa call 40046064 4001d5c0: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4001d5c4: 80 a6 a0 00 cmp %i2, 0 4001d5c8: 02 80 00 04 be 4001d5d8 4001d5cc: a2 10 00 08 mov %o0, %l1 *endptr = end; 4001d5d0: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d5d4: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4001d5d8: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d5dc: 80 a0 40 10 cmp %g1, %l0 4001d5e0: 02 80 00 0f be 4001d61c 4001d5e4: 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)) 4001d5e8: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 4001d5ec: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4001d5f0: 80 a4 40 01 cmp %l1, %g1 4001d5f4: 32 80 00 09 bne,a 4001d618 4001d5f8: e2 26 40 00 st %l1, [ %i1 ] 4001d5fc: 40 00 82 f8 call 4003e1dc <__errno> 4001d600: b0 10 20 0a mov 0xa, %i0 4001d604: c2 02 00 00 ld [ %o0 ], %g1 4001d608: 80 a0 60 22 cmp %g1, 0x22 4001d60c: 02 80 00 04 be 4001d61c 4001d610: 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; 4001d614: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4001d618: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4001d61c: 81 c7 e0 08 ret 4001d620: 81 e8 00 00 restore 4000c284 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c284: 9d e3 bf 98 save %sp, -104, %sp 4000c288: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c28c: 80 a6 60 00 cmp %i1, 0 4000c290: 02 80 00 23 be 4000c31c 4000c294: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c298: 40 00 08 01 call 4000e29c <__errno> 4000c29c: 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 ); 4000c2a0: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c2a4: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c2a8: 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 ); 4000c2ac: 90 10 00 10 mov %l0, %o0 4000c2b0: 40 00 13 fc call 400112a0 4000c2b4: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c2b8: 80 a6 a0 00 cmp %i2, 0 4000c2bc: 02 80 00 04 be 4000c2cc 4000c2c0: a2 10 00 08 mov %o0, %l1 *endptr = end; 4000c2c4: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c2c8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c2cc: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c2d0: 80 a0 40 10 cmp %g1, %l0 4000c2d4: 02 80 00 12 be 4000c31c 4000c2d8: 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)) 4000c2dc: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 4000c2e0: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4000c2e4: 80 a4 40 01 cmp %l1, %g1 4000c2e8: 02 80 00 05 be 4000c2fc 4000c2ec: 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)) 4000c2f0: 80 a4 40 01 cmp %l1, %g1 4000c2f4: 32 80 00 09 bne,a 4000c318 4000c2f8: e2 26 40 00 st %l1, [ %i1 ] 4000c2fc: 40 00 07 e8 call 4000e29c <__errno> 4000c300: 01 00 00 00 nop 4000c304: c2 02 00 00 ld [ %o0 ], %g1 4000c308: 80 a0 60 22 cmp %g1, 0x22 4000c30c: 22 80 00 04 be,a 4000c31c 4000c310: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4000c314: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4000c318: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c31c: 81 c7 e0 08 ret 4000c320: 81 e8 00 00 restore 4000c1c0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c1c0: 9d e3 bf 98 save %sp, -104, %sp 4000c1c4: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c1c8: 80 a6 60 00 cmp %i1, 0 4000c1cc: 02 80 00 2c be 4000c27c 4000c1d0: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c1d4: 40 00 08 32 call 4000e29c <__errno> 4000c1d8: 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 ); 4000c1dc: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c1e0: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c1e4: c0 26 40 00 clr [ %i1 ] 4000c1e8: 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 ); 4000c1ec: 90 10 00 10 mov %l0, %o0 4000c1f0: 40 00 14 36 call 400112c8 4000c1f4: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c1f8: 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 ); 4000c1fc: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c200: 02 80 00 04 be 4000c210 4000c204: a4 10 00 09 mov %o1, %l2 *endptr = end; 4000c208: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c20c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c210: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c214: 80 a0 40 10 cmp %g1, %l0 4000c218: 02 80 00 19 be 4000c27c 4000c21c: 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)) 4000c220: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 4000c224: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4000c228: 80 a4 40 01 cmp %l1, %g1 4000c22c: 12 80 00 05 bne 4000c240 4000c230: 03 20 00 00 sethi %hi(0x80000000), %g1 4000c234: 80 a4 bf ff cmp %l2, -1 4000c238: 02 80 00 08 be 4000c258 4000c23c: 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)) 4000c240: 80 a4 40 01 cmp %l1, %g1 4000c244: 32 80 00 0c bne,a 4000c274 4000c248: e4 26 60 04 st %l2, [ %i1 + 4 ] 4000c24c: 80 a4 a0 00 cmp %l2, 0 4000c250: 32 80 00 09 bne,a 4000c274 4000c254: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c258: 40 00 08 11 call 4000e29c <__errno> 4000c25c: 01 00 00 00 nop 4000c260: c2 02 00 00 ld [ %o0 ], %g1 4000c264: 80 a0 60 22 cmp %g1, 0x22 4000c268: 22 80 00 05 be,a 4000c27c 4000c26c: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4000c270: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c274: e2 26 40 00 st %l1, [ %i1 ] 4000c278: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c27c: 81 c7 e0 08 ret 4000c280: 81 e8 00 00 restore 4001d624 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4001d624: 9d e3 bf 98 save %sp, -104, %sp 4001d628: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4001d62c: 80 a6 60 00 cmp %i1, 0 4001d630: 02 80 00 1e be 4001d6a8 4001d634: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4001d638: 40 00 82 e9 call 4003e1dc <__errno> 4001d63c: 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 ); 4001d640: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4001d644: c0 22 00 00 clr [ %o0 ] *n = 0; 4001d648: 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 ); 4001d64c: 90 10 00 10 mov %l0, %o0 4001d650: 40 00 a3 bb call 4004653c 4001d654: 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 ) 4001d658: 80 a6 a0 00 cmp %i2, 0 4001d65c: 02 80 00 04 be 4001d66c 4001d660: a2 10 00 08 mov %o0, %l1 *endptr = end; 4001d664: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d668: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4001d66c: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d670: 80 a0 40 10 cmp %g1, %l0 4001d674: 02 80 00 0d be 4001d6a8 4001d678: 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)) 4001d67c: 80 a4 7f ff cmp %l1, -1 4001d680: 32 80 00 09 bne,a 4001d6a4 4001d684: e2 26 40 00 st %l1, [ %i1 ] 4001d688: 40 00 82 d5 call 4003e1dc <__errno> <== NOT EXECUTED 4001d68c: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 4001d690: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 4001d694: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 4001d698: 02 80 00 04 be 4001d6a8 <== NOT EXECUTED 4001d69c: 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; 4001d6a0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4001d6a4: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4001d6a8: 81 c7 e0 08 ret 4001d6ac: 81 e8 00 00 restore 4000c414 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c414: 9d e3 bf 98 save %sp, -104, %sp 4000c418: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c41c: 80 a6 60 00 cmp %i1, 0 4000c420: 02 80 00 1e be 4000c498 4000c424: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c428: 40 00 07 9d call 4000e29c <__errno> 4000c42c: 01 00 00 00 nop 4000c430: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c434: 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 ); 4000c438: 94 10 00 1b mov %i3, %o2 4000c43c: 90 10 00 10 mov %l0, %o0 4000c440: 40 00 14 ce call 40011778 4000c444: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c448: 80 a6 a0 00 cmp %i2, 0 4000c44c: 02 80 00 04 be 4000c45c 4000c450: a2 10 00 08 mov %o0, %l1 *endptr = end; 4000c454: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c458: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c45c: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c460: 80 a0 40 10 cmp %g1, %l0 4000c464: 02 80 00 0d be 4000c498 4000c468: 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)) 4000c46c: 80 a4 7f ff cmp %l1, -1 4000c470: 32 80 00 09 bne,a 4000c494 4000c474: e2 26 40 00 st %l1, [ %i1 ] 4000c478: 40 00 07 89 call 4000e29c <__errno> 4000c47c: b0 10 20 0a mov 0xa, %i0 4000c480: c2 02 00 00 ld [ %o0 ], %g1 4000c484: 80 a0 60 22 cmp %g1, 0x22 4000c488: 02 80 00 04 be 4000c498 4000c48c: 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; 4000c490: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4000c494: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c498: 81 c7 e0 08 ret 4000c49c: 81 e8 00 00 restore 4001d714 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4001d714: 9d e3 bf 98 save %sp, -104, %sp 4001d718: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4001d71c: 80 a6 60 00 cmp %i1, 0 4001d720: 02 80 00 1e be 4001d798 4001d724: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4001d728: 40 00 82 ad call 4003e1dc <__errno> 4001d72c: 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 ); 4001d730: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4001d734: c0 22 00 00 clr [ %o0 ] *n = 0; 4001d738: 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 ); 4001d73c: 90 10 00 10 mov %l0, %o0 4001d740: 40 00 a3 7f call 4004653c 4001d744: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4001d748: 80 a6 a0 00 cmp %i2, 0 4001d74c: 02 80 00 04 be 4001d75c 4001d750: a2 10 00 08 mov %o0, %l1 *endptr = end; 4001d754: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d758: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4001d75c: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d760: 80 a0 40 10 cmp %g1, %l0 4001d764: 02 80 00 0d be 4001d798 4001d768: 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)) 4001d76c: 80 a4 7f ff cmp %l1, -1 4001d770: 32 80 00 09 bne,a 4001d794 4001d774: e2 26 40 00 st %l1, [ %i1 ] 4001d778: 40 00 82 99 call 4003e1dc <__errno> 4001d77c: b0 10 20 0a mov 0xa, %i0 4001d780: c2 02 00 00 ld [ %o0 ], %g1 4001d784: 80 a0 60 22 cmp %g1, 0x22 4001d788: 02 80 00 04 be 4001d798 4001d78c: 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; 4001d790: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4001d794: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4001d798: 81 c7 e0 08 ret 4001d79c: 81 e8 00 00 restore 4000c4a0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c4a0: 9d e3 bf 98 save %sp, -104, %sp 4000c4a4: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c4a8: 80 a6 60 00 cmp %i1, 0 4000c4ac: 02 80 00 24 be 4000c53c 4000c4b0: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c4b4: 40 00 07 7a call 4000e29c <__errno> 4000c4b8: 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 ); 4000c4bc: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c4c0: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c4c4: c0 26 40 00 clr [ %i1 ] 4000c4c8: 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 ); 4000c4cc: 90 10 00 10 mov %l0, %o0 4000c4d0: 40 00 14 b4 call 400117a0 4000c4d4: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c4d8: 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 ); 4000c4dc: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c4e0: 02 80 00 04 be 4000c4f0 4000c4e4: a4 10 00 09 mov %o1, %l2 *endptr = end; 4000c4e8: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c4ec: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c4f0: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c4f4: 80 a0 40 10 cmp %g1, %l0 4000c4f8: 02 80 00 11 be 4000c53c 4000c4fc: 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)) 4000c500: 80 a4 7f ff cmp %l1, -1 4000c504: 32 80 00 0c bne,a 4000c534 4000c508: e4 26 60 04 st %l2, [ %i1 + 4 ] 4000c50c: 80 a4 bf ff cmp %l2, -1 4000c510: 32 80 00 09 bne,a 4000c534 4000c514: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c518: 40 00 07 61 call 4000e29c <__errno> 4000c51c: b0 10 20 0a mov 0xa, %i0 4000c520: c2 02 00 00 ld [ %o0 ], %g1 4000c524: 80 a0 60 22 cmp %g1, 0x22 4000c528: 02 80 00 05 be 4000c53c 4000c52c: 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; 4000c530: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c534: e2 26 40 00 st %l1, [ %i1 ] 4000c538: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c53c: 81 c7 e0 08 ret 4000c540: 81 e8 00 00 restore 4000427c : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 4000427c: 82 10 00 08 mov %o0, %g1 int baud_index; switch (termios_baud) { 40004280: 80 a2 20 09 cmp %o0, 9 40004284: 02 80 00 19 be 400042e8 40004288: 90 10 20 09 mov 9, %o0 4000428c: 80 a0 60 09 cmp %g1, 9 40004290: 14 80 00 25 bg 40004324 40004294: 80 a0 60 0e cmp %g1, 0xe 40004298: 80 a0 60 04 cmp %g1, 4 4000429c: 02 80 00 13 be 400042e8 400042a0: 90 10 20 04 mov 4, %o0 400042a4: 80 a0 60 04 cmp %g1, 4 400042a8: 14 80 00 12 bg 400042f0 400042ac: 80 a0 60 06 cmp %g1, 6 400042b0: 80 a0 60 01 cmp %g1, 1 400042b4: 02 80 00 0d be 400042e8 400042b8: 90 10 20 01 mov 1, %o0 400042bc: 80 a0 60 01 cmp %g1, 1 400042c0: 34 80 00 05 bg,a 400042d4 400042c4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 400042c8: 80 a0 60 00 cmp %g1, 0 400042cc: 10 80 00 3f b 400043c8 400042d0: 90 10 20 00 clr %o0 400042d4: 02 80 00 05 be 400042e8 <== NOT EXECUTED 400042d8: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 400042dc: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 400042e0: 12 80 00 3c bne 400043d0 <== NOT EXECUTED 400042e4: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED 400042e8: 81 c3 e0 08 retl <== NOT EXECUTED 400042ec: 01 00 00 00 nop <== NOT EXECUTED 400042f0: 02 bf ff fe be 400042e8 <== NOT EXECUTED 400042f4: 90 10 20 06 mov 6, %o0 ! 6 <== NOT EXECUTED 400042f8: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 400042fc: 06 bf ff fb bl 400042e8 <== NOT EXECUTED 40004300: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED 40004304: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED 40004308: 02 bf ff f8 be 400042e8 <== NOT EXECUTED 4000430c: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED 40004310: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED 40004314: 12 80 00 2f bne 400043d0 <== NOT EXECUTED 40004318: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED 4000431c: 81 c3 e0 08 retl <== NOT EXECUTED 40004320: 01 00 00 00 nop <== NOT EXECUTED 40004324: 02 bf ff f1 be 400042e8 <== NOT EXECUTED 40004328: 90 10 20 0e mov 0xe, %o0 ! e <== NOT EXECUTED 4000432c: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 40004330: 14 80 00 10 bg 40004370 <== NOT EXECUTED 40004334: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED 40004338: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 4000433c: 02 bf ff eb be 400042e8 <== NOT EXECUTED 40004340: 90 10 20 0b mov 0xb, %o0 <== NOT EXECUTED 40004344: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 40004348: 06 bf ff e8 bl 400042e8 <== NOT EXECUTED 4000434c: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 40004350: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED 40004354: 02 bf ff e5 be 400042e8 <== NOT EXECUTED 40004358: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED 4000435c: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 40004360: 12 80 00 1c bne 400043d0 <== NOT EXECUTED 40004364: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED 40004368: 81 c3 e0 08 retl <== NOT EXECUTED 4000436c: 01 00 00 00 nop <== NOT EXECUTED 40004370: 86 10 a0 02 or %g2, 2, %g3 <== NOT EXECUTED 40004374: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40004378: 02 bf ff dc be 400042e8 <== NOT EXECUTED 4000437c: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED 40004380: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40004384: 34 80 00 0b bg,a 400043b0 <== NOT EXECUTED 40004388: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED 4000438c: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED 40004390: 02 bf ff d6 be 400042e8 <== NOT EXECUTED 40004394: 90 10 20 0f mov 0xf, %o0 <== NOT EXECUTED 40004398: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED 4000439c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 400043a0: 12 80 00 0c bne 400043d0 <== NOT EXECUTED 400043a4: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED 400043a8: 81 c3 e0 08 retl <== NOT EXECUTED 400043ac: 01 00 00 00 nop <== NOT EXECUTED 400043b0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 400043b4: 02 bf ff cd be 400042e8 <== NOT EXECUTED 400043b8: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED 400043bc: 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; 400043c0: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 400043c4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 400043c8: 02 80 00 03 be 400043d4 400043cc: 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; 400043d0: 90 10 3f ff mov -1, %o0 ! ffffffff default: baud_index = -1; break; } return baud_index; } 400043d4: 81 c3 e0 08 retl 400043d8: 01 00 00 00 nop 40002db0 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 40002db0: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 40002db4: d0 20 61 98 st %o0, [ %g1 + 0x198 ] ! 4001a998 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 40002db8: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 40002dbc: 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; 40002dc0: d2 20 61 9c st %o1, [ %g1 + 0x19c ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 40002dc4: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 40002dc8: 81 c3 e0 08 retl <== NOT EXECUTED 40002dcc: d4 20 61 a0 st %o2, [ %g1 + 0x1a0 ] ! 4001a9a0 <== NOT EXECUTED 4000440c : } } rtems_status_code rtems_termios_close (void *arg) { 4000440c: 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); 40004410: 03 10 00 6c sethi %hi(0x4001b000), %g1 40004414: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 4001b0a4 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 40004418: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 4000441c: 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; 40004420: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 40004424: 40 00 04 52 call 4000556c 40004428: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 4000442c: 80 a2 20 00 cmp %o0, 0 40004430: 12 80 00 2c bne 400044e0 40004434: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 40004438: c2 04 20 08 ld [ %l0 + 8 ], %g1 4000443c: 82 00 7f ff add %g1, -1, %g1 40004440: 80 a0 60 00 cmp %g1, 0 40004444: 12 80 00 5e bne 400045bc 40004448: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 4000444c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 40004450: 03 10 00 6b sethi %hi(0x4001ac00), %g1 40004454: 85 28 a0 05 sll %g2, 5, %g2 40004458: 82 10 62 d4 or %g1, 0x2d4, %g1 4000445c: 82 00 40 02 add %g1, %g2, %g1 40004460: c2 00 60 04 ld [ %g1 + 4 ], %g1 40004464: 80 a0 60 00 cmp %g1, 0 40004468: 22 80 00 06 be,a 40004480 4000446c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 40004470: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004474: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 40004478: 10 80 00 0b b 400044a4 <== NOT EXECUTED 4000447c: 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); 40004480: 92 10 20 00 clr %o1 40004484: 40 00 04 3a call 4000556c 40004488: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 4000448c: 80 a2 20 00 cmp %o0, 0 40004490: 12 80 00 14 bne 400044e0 40004494: 01 00 00 00 nop rtems_fatal_error_occurred (sc); } drainOutput (tty); 40004498: 7f ff fd d0 call 40003bd8 4000449c: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 400044a0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 400044a4: 80 a0 60 02 cmp %g1, 2 400044a8: 32 80 00 10 bne,a 400044e8 400044ac: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 400044b0: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED 400044b4: 40 00 02 ef call 40005070 <== NOT EXECUTED 400044b8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 400044bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400044c0: 12 80 00 08 bne 400044e0 <== NOT EXECUTED 400044c4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 400044c8: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 400044cc: 40 00 02 e9 call 40005070 <== NOT EXECUTED 400044d0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 400044d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400044d8: 22 80 00 04 be,a 400044e8 <== NOT EXECUTED 400044dc: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 400044e0: 40 00 05 ca call 40005c08 <== NOT EXECUTED 400044e4: 01 00 00 00 nop <== NOT EXECUTED } if (tty->device.lastClose) 400044e8: 80 a0 60 00 cmp %g1, 0 400044ec: 22 80 00 07 be,a 40004508 400044f0: c4 04 00 00 ld [ %l0 ], %g2 (*tty->device.lastClose)(tty->major, tty->minor, arg); 400044f4: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 400044f8: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 400044fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004500: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 40004504: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 40004508: 80 a0 a0 00 cmp %g2, 0 4000450c: 12 80 00 08 bne 4000452c 40004510: c2 04 20 04 ld [ %l0 + 4 ], %g1 rtems_termios_ttyTail = tty->back; 40004514: 05 10 00 6c sethi %hi(0x4001b000), %g2 if ( rtems_termios_ttyTail != NULL ) { 40004518: 80 a0 60 00 cmp %g1, 0 4000451c: 02 80 00 05 be 40004530 40004520: c2 20 a0 a8 st %g1, [ %g2 + 0xa8 ] rtems_termios_ttyTail->forw = NULL; 40004524: 10 80 00 03 b 40004530 <== NOT EXECUTED 40004528: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } } else { tty->forw->back = tty->back; 4000452c: c2 20 a0 04 st %g1, [ %g2 + 4 ] } if (tty->back == NULL) { 40004530: c4 04 20 04 ld [ %l0 + 4 ], %g2 40004534: 80 a0 a0 00 cmp %g2, 0 40004538: 12 80 00 08 bne 40004558 4000453c: c2 04 00 00 ld [ %l0 ], %g1 rtems_termios_ttyHead = tty->forw; 40004540: 05 10 00 6c sethi %hi(0x4001b000), %g2 if ( rtems_termios_ttyHead != NULL ) { 40004544: 80 a0 60 00 cmp %g1, 0 40004548: 02 80 00 05 be 4000455c 4000454c: c2 20 a0 ac st %g1, [ %g2 + 0xac ] rtems_termios_ttyHead->back = NULL; 40004550: 10 80 00 03 b 4000455c 40004554: c0 20 60 04 clr [ %g1 + 4 ] } } else { tty->back->forw = tty->forw; 40004558: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 4000455c: 40 00 03 d6 call 400054b4 40004560: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 40004564: 40 00 03 d4 call 400054b4 40004568: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 4000456c: 40 00 03 d2 call 400054b4 40004570: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 40004574: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 40004578: 80 a0 60 00 cmp %g1, 0 4000457c: 02 80 00 06 be 40004594 40004580: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 40004584: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 40004588: 80 a0 60 02 cmp %g1, 2 4000458c: 12 80 00 04 bne 4000459c 40004590: 01 00 00 00 nop rtems_semaphore_delete (tty->rawInBuf.Semaphore); 40004594: 40 00 03 c8 call 400054b4 <== NOT EXECUTED 40004598: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free (tty->rawInBuf.theBuf); 4000459c: 40 00 16 ae call 4000a054 400045a0: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 400045a4: 40 00 16 ac call 4000a054 400045a8: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 400045ac: 40 00 16 aa call 4000a054 400045b0: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 400045b4: 40 00 16 a8 call 4000a054 400045b8: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 400045bc: 03 10 00 6c sethi %hi(0x4001b000), %g1 400045c0: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 4001b0a4 400045c4: 40 00 04 31 call 40005688 400045c8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 400045cc: 81 c7 e0 08 ret 400045d0: 81 e8 00 00 restore 40002fd0 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 40002fd0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 40002fd4: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 40002fd8: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 40002fdc: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 40002fe0: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 40002fe4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40002fe8: 12 80 00 0a bne 40003010 <== NOT EXECUTED 40002fec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 40002ff0: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 40002ff4: 40 00 08 1f call 40005070 <== NOT EXECUTED 40002ff8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 40002ffc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003000: 02 80 00 11 be 40003044 <== NOT EXECUTED 40003004: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 40003008: 40 00 0b 00 call 40005c08 <== NOT EXECUTED 4000300c: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 40003010: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 40003014: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 40003018: 12 80 00 09 bne 4000303c <== NOT EXECUTED 4000301c: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 40003020: c2 00 63 88 ld [ %g1 + 0x388 ], %g1 ! 4001af88 <== NOT EXECUTED 40003024: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003028: 02 80 00 07 be 40003044 <== NOT EXECUTED 4000302c: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 40003030: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003034: 01 00 00 00 nop <== NOT EXECUTED 40003038: 30 80 00 03 b,a 40003044 <== NOT EXECUTED } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 4000303c: 7f ff ff 6b call 40002de8 <== NOT EXECUTED 40003040: 81 e8 00 00 restore <== NOT EXECUTED } } 40003044: 81 c7 e0 08 ret <== NOT EXECUTED 40003048: 81 e8 00 00 restore <== NOT EXECUTED 4000304c : * 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) { 4000304c: 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) { 40003050: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 40003054: 25 10 00 6b sethi %hi(0x4001ac00), %l2 <== NOT EXECUTED 40003058: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 4000305c: a4 14 a2 d4 or %l2, 0x2d4, %l2 <== NOT EXECUTED 40003060: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 40003064: 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) { 40003068: 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) { 4000306c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003070: 12 80 00 11 bne 400030b4 <== NOT EXECUTED 40003074: 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, 40003078: 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); 4000307c: a8 06 20 30 add %i0, 0x30, %l4 <== NOT EXECUTED 40003080: a4 10 20 00 clr %l2 <== NOT EXECUTED 40003084: 10 80 00 ad b 40003338 <== NOT EXECUTED 40003088: 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++; 4000308c: d0 0e 40 00 ldub [ %i1 ], %o0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 40003090: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 40003094: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 40003098: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED 4000309c: 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++; 400030a0: b2 06 60 01 inc %i1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 400030a4: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED 400030a8: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED 400030ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 400030b0: 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--) { 400030b4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 400030b8: 32 bf ff f5 bne,a 4000308c <== NOT EXECUTED 400030bc: 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 )) { 400030c0: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 400030c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400030c8: 12 80 00 a6 bne 40003360 <== NOT EXECUTED 400030cc: 01 00 00 00 nop <== NOT EXECUTED 400030d0: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 400030d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400030d8: 02 80 00 a2 be 40003360 <== NOT EXECUTED 400030dc: 01 00 00 00 nop <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 400030e0: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 400030e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400030e8: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 400030ec: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 400030f0: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED 400030f4: 81 c7 e0 08 ret <== NOT EXECUTED 400030f8: 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) { 400030fc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003100: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 40003104: 02 80 00 1b be 40003170 <== NOT EXECUTED 40003108: 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]) { 4000310c: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED 40003110: 83 2c e0 18 sll %l3, 0x18, %g1 <== NOT EXECUTED 40003114: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 40003118: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000311c: 12 80 00 0e bne 40003154 <== NOT EXECUTED 40003120: c4 0c 20 49 ldub [ %l0 + 0x49 ], %g2 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 40003124: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 40003128: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000312c: 12 80 00 05 bne 40003140 <== NOT EXECUTED 40003130: 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; 40003134: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003138: 10 80 00 04 b 40003148 <== NOT EXECUTED 4000313c: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 40003140: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003144: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED 40003148: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 4000314c: 10 80 00 0c b 4000317c <== NOT EXECUTED 40003150: 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]) { 40003154: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 40003158: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000315c: 12 80 00 06 bne 40003174 <== NOT EXECUTED 40003160: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 40003164: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003168: 10 bf ff f8 b 40003148 <== NOT EXECUTED 4000316c: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 40003170: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED 40003174: 02 80 00 1c be 400031e4 <== NOT EXECUTED 40003178: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 4000317c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003180: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 40003184: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 40003188: 32 80 00 6b bne,a 40003334 <== NOT EXECUTED 4000318c: b2 06 60 01 inc %i1 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 40003190: 7f ff fa c2 call 40001c98 <== NOT EXECUTED 40003194: 01 00 00 00 nop <== NOT EXECUTED 40003198: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 4000319c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 400031a0: 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; 400031a4: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 400031a8: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 400031ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400031b0: 02 80 00 09 be 400031d4 <== NOT EXECUTED 400031b4: 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); 400031b8: 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, 400031bc: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 400031c0: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 400031c4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 400031c8: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 400031cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 400031d0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 400031d4: 7f ff fa b5 call 40001ca8 <== NOT EXECUTED 400031d8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 400031dc: 10 80 00 56 b 40003334 <== NOT EXECUTED 400031e0: b2 06 60 01 inc %i1 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 400031e4: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 400031e8: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 400031ec: 40 00 4e 3a call 40016ad4 <.urem> <== NOT EXECUTED 400031f0: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 400031f4: 7f ff fa a9 call 40001c98 <== NOT EXECUTED 400031f8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 400031fc: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 40003200: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 40003204: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 40003208: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 4000320c: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 40003210: 40 00 4e 31 call 40016ad4 <.urem> <== NOT EXECUTED 40003214: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 40003218: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED 4000321c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 40003220: 08 80 00 2d bleu 400032d4 <== NOT EXECUTED 40003224: 01 00 00 00 nop <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 40003228: 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) 4000322c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 40003230: 12 80 00 29 bne 400032d4 <== NOT EXECUTED 40003234: 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; 40003238: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 4000323c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 40003240: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 40003244: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003248: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED 4000324c: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 40003250: 12 80 00 13 bne 4000329c <== NOT EXECUTED 40003254: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 40003258: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 4000325c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 40003260: 12 80 00 06 bne 40003278 <== NOT EXECUTED 40003264: 01 00 00 00 nop <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 40003268: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 4000326c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003270: 12 80 00 19 bne 400032d4 <== NOT EXECUTED 40003274: 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; 40003278: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 4000327c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 40003280: 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; 40003284: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 40003288: 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; 4000328c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 40003290: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003294: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 40003298: 30 80 00 0f b,a 400032d4 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 4000329c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 400032a0: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 400032a4: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 400032a8: 12 80 00 0b bne 400032d4 <== NOT EXECUTED 400032ac: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 400032b0: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 400032b4: 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; 400032b8: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 400032bc: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 400032c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400032c4: 02 80 00 04 be 400032d4 <== NOT EXECUTED 400032c8: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 400032cc: 9f c0 40 00 call %g1 <== NOT EXECUTED 400032d0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 400032d4: 7f ff fa 75 call 40001ca8 <== NOT EXECUTED 400032d8: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 400032dc: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 400032e0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 400032e4: 32 80 00 04 bne,a 400032f4 <== NOT EXECUTED 400032e8: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED dropped++; 400032ec: 10 80 00 11 b 40003330 <== NOT EXECUTED 400032f0: b0 06 20 01 inc %i0 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; 400032f4: 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 )) { 400032f8: 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; 400032fc: 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 )) { 40003300: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003304: 32 80 00 0c bne,a 40003334 <== NOT EXECUTED 40003308: b2 06 60 01 inc %i1 <== NOT EXECUTED 4000330c: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 40003310: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003314: 22 80 00 08 be,a 40003334 <== NOT EXECUTED 40003318: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 4000331c: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 40003320: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003324: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 40003328: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 4000332c: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 40003330: b2 06 60 01 inc %i1 <== NOT EXECUTED 40003334: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 40003338: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 4000333c: 12 bf ff 70 bne 400030fc <== NOT EXECUTED 40003340: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 40003344: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 40003348: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 4000334c: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 40003350: 40 00 08 ce call 40005688 <== NOT EXECUTED 40003354: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED return dropped; 40003358: 81 c7 e0 08 ret <== NOT EXECUTED 4000335c: 81 e8 00 00 restore <== NOT EXECUTED } 40003360: 81 c7 e0 08 ret <== NOT EXECUTED 40003364: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40002d64 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 40002d64: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 40002d68: 19 10 00 6c sethi %hi(0x4001b000), %o4 40002d6c: c2 03 20 a4 ld [ %o4 + 0xa4 ], %g1 ! 4001b0a4 40002d70: 80 a0 60 00 cmp %g1, 0 40002d74: 12 80 00 0d bne 40002da8 40002d78: 98 13 20 a4 or %o4, 0xa4, %o4 sc = rtems_semaphore_create ( 40002d7c: 11 15 14 9b sethi %hi(0x54526c00), %o0 40002d80: 92 10 20 01 mov 1, %o1 40002d84: 90 12 21 69 or %o0, 0x169, %o0 40002d88: 94 10 20 54 mov 0x54, %o2 40002d8c: 40 00 09 56 call 400052e4 40002d90: 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) 40002d94: 80 a2 20 00 cmp %o0, 0 40002d98: 02 80 00 04 be 40002da8 40002d9c: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 40002da0: 40 00 0b 9a call 40005c08 <== NOT EXECUTED 40002da4: 01 00 00 00 nop <== NOT EXECUTED 40002da8: 81 c7 e0 08 ret 40002dac: 81 e8 00 00 restore 40004008 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 40004008: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 4000400c: c2 06 00 00 ld [ %i0 ], %g1 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 40004010: 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; 40004014: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 40004018: 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); 4000401c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 } } rtems_status_code rtems_termios_ioctl (void *arg) { 40004020: 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); 40004024: 92 10 20 00 clr %o1 40004028: 40 00 05 51 call 4000556c 4000402c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 40004030: b0 92 20 00 orcc %o0, 0, %i0 40004034: 22 80 00 05 be,a 40004048 40004038: c2 04 60 04 ld [ %l1 + 4 ], %g1 args->ioctl_return = sc; 4000403c: f0 24 60 0c st %i0, [ %l1 + 0xc ] <== NOT EXECUTED return sc; 40004040: 81 c7 e0 08 ret <== NOT EXECUTED 40004044: 81 e8 00 00 restore <== NOT EXECUTED } switch (args->command) { 40004048: 80 a0 60 04 cmp %g1, 4 4000404c: 22 80 00 bd be,a 40004340 40004050: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 40004054: 18 80 00 0b bgu 40004080 40004058: 05 10 01 19 sethi %hi(0x40046400), %g2 4000405c: 80 a0 60 02 cmp %g1, 2 40004060: 22 80 00 2c be,a 40004110 40004064: d2 04 60 08 ld [ %l1 + 8 ], %o1 40004068: 18 80 00 af bgu 40004324 4000406c: 80 a0 60 01 cmp %g1, 1 40004070: 32 80 00 17 bne,a 400040cc 40004074: 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; 40004078: 10 80 00 22 b 40004100 4000407c: 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) { 40004080: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED 40004084: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40004088: 02 80 00 cf be 400043c4 <== NOT EXECUTED 4000408c: 01 00 00 00 nop <== NOT EXECUTED 40004090: 18 80 00 07 bgu 400040ac <== NOT EXECUTED 40004094: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED 40004098: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 4000409c: 32 80 00 0c bne,a 400040cc <== NOT EXECUTED 400040a0: 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; 400040a4: 10 80 00 a3 b 40004330 <== NOT EXECUTED 400040a8: 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) { 400040ac: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED 400040b0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 400040b4: 02 80 00 c0 be 400043b4 <== NOT EXECUTED 400040b8: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED 400040bc: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <== NOT EXECUTED 400040c0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 400040c4: 02 80 00 a3 be 40004350 <== NOT EXECUTED 400040c8: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 400040cc: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 400040d0: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 400040d4: 82 10 62 d4 or %g1, 0x2d4, %g1 <== NOT EXECUTED 400040d8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 400040dc: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 400040e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400040e4: 02 80 00 c5 be 400043f8 <== NOT EXECUTED 400040e8: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 400040ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 400040f0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400040f4: 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); 400040f8: 10 80 00 c0 b 400043f8 <== NOT EXECUTED 400040fc: 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; 40004100: 92 04 20 30 add %l0, 0x30, %o1 40004104: 40 00 26 72 call 4000dacc 40004108: 94 10 20 24 mov 0x24, %o2 break; 4000410c: 30 80 00 bb b,a 400043f8 case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 40004110: 90 04 20 30 add %l0, 0x30, %o0 40004114: 40 00 26 6e call 4000dacc 40004118: 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) && 4000411c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 40004120: 80 88 62 00 btst 0x200, %g1 40004124: 02 80 00 20 be 400041a4 40004128: 01 00 00 00 nop 4000412c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 40004130: 80 88 64 00 btst 0x400, %g1 40004134: 12 80 00 1c bne 400041a4 40004138: 01 00 00 00 nop !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 4000413c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40004140: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 40004144: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 40004148: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 4000414c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 40004150: 02 80 00 15 be 400041a4 <== NOT EXECUTED 40004154: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 40004158: 7f ff f6 d0 call 40001c98 <== NOT EXECUTED 4000415c: 01 00 00 00 nop <== NOT EXECUTED 40004160: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 40004164: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 40004168: 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; 4000416c: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 40004170: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 40004174: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40004178: 02 80 00 09 be 4000419c <== NOT EXECUTED 4000417c: 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); 40004180: 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, 40004184: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 40004188: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 4000418c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 40004190: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 40004194: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004198: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 4000419c: 7f ff f6 c3 call 40001ca8 <== NOT EXECUTED 400041a0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 400041a4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 400041a8: 80 88 64 00 btst 0x400, %g1 400041ac: 02 80 00 0c be 400041dc 400041b0: 03 00 00 04 sethi %hi(0x1000), %g1 400041b4: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 400041b8: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 400041bc: 12 80 00 08 bne 400041dc <== NOT EXECUTED 400041c0: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 400041c4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 400041c8: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 400041cc: 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); 400041d0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 400041d4: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED 400041d8: 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) && 400041dc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 400041e0: 80 88 61 00 btst 0x100, %g1 400041e4: 02 80 00 16 be 4000423c 400041e8: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 400041ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400041f0: 06 80 00 14 bl 40004240 <== NOT EXECUTED 400041f4: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 400041f8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 400041fc: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 40004200: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 40004204: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40004208: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 4000420c: 02 80 00 08 be 4000422c <== NOT EXECUTED 40004210: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 40004214: 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) && 40004218: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000421c: 02 80 00 04 be 4000422c <== NOT EXECUTED 40004220: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 40004224: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004228: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 4000422c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40004230: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 40004234: 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) { 40004238: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 4000423c: 80 a0 60 00 cmp %g1, 0 40004240: 36 80 00 06 bge,a 40004258 40004244: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 tty->flow_ctrl |= FL_MDRTS; 40004248: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 4000424c: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 40004250: 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) { 40004254: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 40004258: 03 00 00 04 sethi %hi(0x1000), %g1 4000425c: 80 88 80 01 btst %g2, %g1 40004260: 22 80 00 06 be,a 40004278 40004264: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 tty->flow_ctrl |= FL_MDXOF; 40004268: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 4000426c: 82 10 64 00 or %g1, 0x400, %g1 <== NOT EXECUTED 40004270: 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) { 40004274: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 40004278: 80 88 64 00 btst 0x400, %g1 4000427c: 22 80 00 06 be,a 40004294 40004280: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 40004284: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 40004288: 82 10 62 00 or %g1, 0x200, %g1 4000428c: 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) { 40004290: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 40004294: 80 88 60 02 btst 2, %g1 40004298: 32 80 00 17 bne,a 400042f4 4000429c: 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; 400042a0: 40 00 02 e9 call 40004e44 <== NOT EXECUTED 400042a4: 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] * 400042a8: 40 00 49 25 call 4001673c <.umul> <== NOT EXECUTED 400042ac: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 400042b0: 40 00 49 5d call 40016824 <.udiv> <== NOT EXECUTED 400042b4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 400042b8: 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] * 400042bc: d0 24 20 54 st %o0, [ %l0 + 0x54 ] <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 400042c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400042c4: 02 80 00 08 be 400042e4 <== NOT EXECUTED 400042c8: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 400042cc: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 400042d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400042d4: 12 80 00 09 bne 400042f8 <== NOT EXECUTED 400042d8: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 400042dc: 10 80 00 0a b 40004304 <== NOT EXECUTED 400042e0: d0 24 20 74 st %o0, [ %l0 + 0x74 ] <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { 400042e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400042e8: 02 80 00 06 be 40004300 <== NOT EXECUTED 400042ec: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 400042f0: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 400042f4: c0 24 20 70 clr [ %l0 + 0x70 ] tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 400042f8: 10 80 00 03 b 40004304 400042fc: c0 24 20 74 clr [ %l0 + 0x74 ] } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 40004300: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED } } } if (tty->device.setAttributes) 40004304: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 40004308: 80 a0 60 00 cmp %g1, 0 4000430c: 02 80 00 3b be 400043f8 40004310: 01 00 00 00 nop (*tty->device.setAttributes)(tty->minor, &tty->termios); 40004314: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 40004318: 9f c0 40 00 call %g1 4000431c: 92 04 20 30 add %l0, 0x30, %o1 40004320: 30 80 00 36 b,a 400043f8 break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 40004324: 7f ff fe 2d call 40003bd8 40004328: 90 10 00 10 mov %l0, %o0 break; 4000432c: 30 80 00 33 b,a 400043f8 case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 40004330: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED 40004334: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 40004338: 10 80 00 30 b 400043f8 <== NOT EXECUTED 4000433c: c2 24 20 d8 st %g1, [ %l0 + 0xd8 ] <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 40004340: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED 40004344: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 40004348: 10 80 00 2c b 400043f8 <== NOT EXECUTED 4000434c: 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) { 40004350: 03 10 00 6b sethi %hi(0x4001ac00), %g1 <== NOT EXECUTED 40004354: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 40004358: 82 10 62 d4 or %g1, 0x2d4, %g1 <== NOT EXECUTED 4000435c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 40004360: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 40004364: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40004368: 22 80 00 06 be,a 40004380 <== NOT EXECUTED 4000436c: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 40004370: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004374: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40004378: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 4000437c: 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) { 40004380: 07 10 00 6b sethi %hi(0x4001ac00), %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); 40004384: 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) { 40004388: 86 10 e2 d4 or %g3, 0x2d4, %g3 <== NOT EXECUTED 4000438c: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED 40004390: 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); 40004394: 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) { 40004398: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000439c: 02 80 00 17 be 400043f8 <== NOT EXECUTED 400043a0: c0 24 20 d0 clr [ %l0 + 0xd0 ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 400043a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400043a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 400043ac: 10 80 00 13 b 400043f8 <== NOT EXECUTED 400043b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 400043b4: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED 400043b8: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED break; 400043bc: 10 80 00 0f b 400043f8 <== NOT EXECUTED 400043c0: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 400043c4: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED 400043c8: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 400043cc: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED 400043d0: 3c 80 00 05 bpos,a 400043e4 <== NOT EXECUTED 400043d4: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 400043d8: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 400043dc: 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; 400043e0: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED 400043e4: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED 400043e8: c4 04 60 08 ld [ %l1 + 8 ], %g2 <== NOT EXECUTED 400043ec: 86 21 00 03 sub %g4, %g3, %g3 <== NOT EXECUTED 400043f0: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED 400043f4: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 400043f8: 40 00 04 a4 call 40005688 400043fc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 args->ioctl_return = sc; 40004400: f0 24 60 0c st %i0, [ %l1 + 0xc ] return sc; } 40004404: 81 c7 e0 08 ret 40004408: 81 e8 00 00 restore 400045a0 : #include int rtems_termios_number_to_baud( int32_t baud ) { 400045a0: 82 10 00 08 mov %o0, %g1 int termios_baud; switch (baud) { 400045a4: 80 a2 24 b0 cmp %o0, 0x4b0 400045a8: 02 80 00 19 be 4000460c 400045ac: 90 10 20 09 mov 9, %o0 400045b0: 80 a0 64 b0 cmp %g1, 0x4b0 400045b4: 14 80 00 29 bg 40004658 400045b8: 05 00 00 12 sethi %hi(0x4800), %g2 400045bc: 80 a0 60 86 cmp %g1, 0x86 400045c0: 02 80 00 13 be 4000460c 400045c4: 90 10 20 04 mov 4, %o0 400045c8: 80 a0 60 86 cmp %g1, 0x86 400045cc: 14 80 00 12 bg 40004614 400045d0: 80 a0 60 c8 cmp %g1, 0xc8 400045d4: 80 a0 60 32 cmp %g1, 0x32 400045d8: 02 80 00 0d be 4000460c 400045dc: 90 10 20 01 mov 1, %o0 400045e0: 80 a0 60 32 cmp %g1, 0x32 400045e4: 34 80 00 05 bg,a 400045f8 400045e8: 80 a0 60 4b cmp %g1, 0x4b 400045ec: 80 a0 60 00 cmp %g1, 0 400045f0: 10 80 00 52 b 40004738 400045f4: 90 10 20 00 clr %o0 400045f8: 02 80 00 05 be 4000460c 400045fc: 90 10 20 02 mov 2, %o0 40004600: 80 a0 60 6e cmp %g1, 0x6e 40004604: 12 80 00 4f bne 40004740 40004608: 90 10 20 03 mov 3, %o0 4000460c: 81 c3 e0 08 retl 40004610: 01 00 00 00 nop 40004614: 02 bf ff fe be 4000460c 40004618: 90 10 20 06 mov 6, %o0 ! 6 4000461c: 80 a0 60 c8 cmp %g1, 0xc8 40004620: 14 80 00 07 bg 4000463c 40004624: 80 a0 61 2c cmp %g1, 0x12c 40004628: 80 a0 60 96 cmp %g1, 0x96 4000462c: 12 80 00 45 bne 40004740 40004630: 90 10 20 05 mov 5, %o0 40004634: 81 c3 e0 08 retl 40004638: 01 00 00 00 nop 4000463c: 02 bf ff f4 be 4000460c 40004640: 90 10 20 07 mov 7, %o0 ! 7 40004644: 80 a0 62 58 cmp %g1, 0x258 40004648: 12 80 00 3e bne 40004740 4000464c: 90 10 20 08 mov 8, %o0 40004650: 81 c3 e0 08 retl 40004654: 01 00 00 00 nop 40004658: 84 10 a3 00 or %g2, 0x300, %g2 4000465c: 80 a0 40 02 cmp %g1, %g2 40004660: 02 bf ff eb be 4000460c 40004664: 90 10 20 0e mov 0xe, %o0 40004668: 80 a0 40 02 cmp %g1, %g2 4000466c: 14 80 00 18 bg 400046cc 40004670: 07 00 00 70 sethi %hi(0x1c000), %g3 40004674: 80 a0 69 60 cmp %g1, 0x960 40004678: 02 bf ff e5 be 4000460c 4000467c: 90 10 20 0b mov 0xb, %o0 40004680: 80 a0 69 60 cmp %g1, 0x960 40004684: 34 80 00 07 bg,a 400046a0 40004688: 05 00 00 04 sethi %hi(0x1000), %g2 4000468c: 80 a0 67 08 cmp %g1, 0x708 40004690: 12 80 00 2c bne 40004740 40004694: 90 10 20 0a mov 0xa, %o0 40004698: 81 c3 e0 08 retl 4000469c: 01 00 00 00 nop 400046a0: 84 10 a2 c0 or %g2, 0x2c0, %g2 400046a4: 80 a0 40 02 cmp %g1, %g2 400046a8: 02 bf ff d9 be 4000460c 400046ac: 90 10 20 0c mov 0xc, %o0 400046b0: 05 00 00 09 sethi %hi(0x2400), %g2 400046b4: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 400046b8: 80 a0 40 02 cmp %g1, %g2 400046bc: 12 80 00 21 bne 40004740 400046c0: 90 10 20 0d mov 0xd, %o0 400046c4: 81 c3 e0 08 retl 400046c8: 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; 400046cc: 05 00 00 04 sethi %hi(0x1000), %g2 int32_t baud ) { int termios_baud; switch (baud) { 400046d0: 86 10 e2 00 or %g3, 0x200, %g3 400046d4: 80 a0 40 03 cmp %g1, %g3 400046d8: 02 bf ff cd be 4000460c 400046dc: 90 10 a0 02 or %g2, 2, %o0 400046e0: 80 a0 40 03 cmp %g1, %g3 400046e4: 14 80 00 0f bg 40004720 400046e8: 07 00 00 e1 sethi %hi(0x38400), %g3 400046ec: 07 00 00 25 sethi %hi(0x9400), %g3 400046f0: 86 10 e2 00 or %g3, 0x200, %g3 ! 9600 400046f4: 80 a0 40 03 cmp %g1, %g3 400046f8: 02 bf ff c5 be 4000460c 400046fc: 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; 40004700: 90 10 a0 01 or %g2, 1, %o0 int32_t baud ) { int termios_baud; switch (baud) { 40004704: 05 00 00 38 sethi %hi(0xe000), %g2 40004708: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 4000470c: 80 a0 40 02 cmp %g1, %g2 40004710: 32 bf ff bf bne,a 4000460c 40004714: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 40004718: 81 c3 e0 08 retl 4000471c: 01 00 00 00 nop 40004720: 80 a0 40 03 cmp %g1, %g3 40004724: 02 bf ff ba be 4000460c 40004728: 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; 4000472c: 90 10 a0 04 or %g2, 4, %o0 int32_t baud ) { int termios_baud; switch (baud) { 40004730: 05 00 01 c2 sethi %hi(0x70800), %g2 40004734: 80 a0 40 02 cmp %g1, %g2 40004738: 02 80 00 03 be 40004744 4000473c: 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; 40004740: 90 10 3f ff mov -1, %o0 ! ffffffff default: termios_baud = -1; break; } return termios_baud; } 40004744: 81 c3 e0 08 retl 40004748: 01 00 00 00 nop 400045d4 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 400045d4: 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, 400045d8: 03 10 00 6c sethi %hi(0x4001b000), %g1 400045dc: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 4001b0a4 400045e0: 92 10 20 00 clr %o1 400045e4: 40 00 03 e2 call 4000556c 400045e8: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 400045ec: a0 92 20 00 orcc %o0, 0, %l0 400045f0: 12 80 01 05 bne 40004a04 400045f4: 03 10 00 6c sethi %hi(0x4001b000), %g1 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 400045f8: 10 80 00 0a b 40004620 400045fc: e4 00 60 ac ld [ %g1 + 0xac ], %l2 ! 4001b0ac if ((tty->major == major) && (tty->minor == minor)) 40004600: 80 a0 40 18 cmp %g1, %i0 40004604: 32 80 00 07 bne,a 40004620 40004608: e4 04 80 00 ld [ %l2 ], %l2 4000460c: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1 40004610: 80 a0 40 19 cmp %g1, %i1 40004614: 22 80 00 d6 be,a 4000496c 40004618: 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) { 4000461c: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED 40004620: 80 a4 a0 00 cmp %l2, 0 40004624: 32 bf ff f7 bne,a 40004600 40004628: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 4000462c: 10 80 00 f8 b 40004a0c 40004630: 90 10 20 01 mov 1, %o0 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 40004634: 03 10 00 6a sethi %hi(0x4001a800), %g1 40004638: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 4001a99c 4000463c: c2 24 a0 64 st %g1, [ %l2 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 40004640: d0 04 a0 64 ld [ %l2 + 0x64 ], %o0 40004644: 40 00 17 de call 4000a5bc 40004648: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 4000464c: 80 a2 20 00 cmp %o0, 0 40004650: 12 80 00 08 bne 40004670 40004654: d0 24 a0 58 st %o0, [ %l2 + 0x58 ] free(tty); 40004658: 40 00 16 7f call 4000a054 <== NOT EXECUTED 4000465c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 40004660: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED 40004664: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED 40004668: 10 80 00 e5 b 400049fc <== NOT EXECUTED 4000466c: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 40004670: 03 10 00 6a sethi %hi(0x4001a800), %g1 40004674: c2 00 61 a0 ld [ %g1 + 0x1a0 ], %g1 ! 4001a9a0 40004678: c2 24 a0 88 st %g1, [ %l2 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 4000467c: d0 04 a0 88 ld [ %l2 + 0x88 ], %o0 40004680: 40 00 17 cf call 4000a5bc 40004684: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 40004688: 80 a2 20 00 cmp %o0, 0 4000468c: 12 80 00 05 bne 400046a0 40004690: d0 24 a0 7c st %o0, [ %l2 + 0x7c ] free((void *)(tty->rawInBuf.theBuf)); 40004694: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 40004698: 10 80 00 0c b 400046c8 <== NOT EXECUTED 4000469c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 400046a0: 03 10 00 6a sethi %hi(0x4001a800), %g1 400046a4: 40 00 17 c6 call 4000a5bc 400046a8: d0 00 61 98 ld [ %g1 + 0x198 ], %o0 ! 4001a998 if (tty->cbuf == NULL) { 400046ac: 80 a2 20 00 cmp %o0, 0 400046b0: 12 80 00 0c bne 400046e0 400046b4: d0 24 a0 1c st %o0, [ %l2 + 0x1c ] free((void *)(tty->rawOutBuf.theBuf)); 400046b8: d0 04 a0 7c ld [ %l2 + 0x7c ], %o0 <== NOT EXECUTED 400046bc: 40 00 16 66 call 4000a054 <== NOT EXECUTED 400046c0: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 400046c4: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED 400046c8: 40 00 16 63 call 4000a054 <== NOT EXECUTED 400046cc: 01 00 00 00 nop <== NOT EXECUTED free(tty); 400046d0: 40 00 16 61 call 4000a054 <== NOT EXECUTED 400046d4: 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); 400046d8: 10 80 00 c8 b 400049f8 <== NOT EXECUTED 400046dc: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 400046e0: 03 10 00 6c sethi %hi(0x4001b000), %g1 400046e4: c2 00 60 ac ld [ %g1 + 0xac ], %g1 ! 4001b0ac return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 400046e8: c0 24 a0 d4 clr [ %l2 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 400046ec: c0 24 a0 d8 clr [ %l2 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 400046f0: c0 24 a0 dc clr [ %l2 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 400046f4: c0 24 a0 e0 clr [ %l2 + 0xe0 ] tty->tty_rcvwakeup = 0; 400046f8: c0 24 a0 e4 clr [ %l2 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 400046fc: c2 24 80 00 st %g1, [ %l2 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 40004700: 80 a0 60 00 cmp %g1, 0 40004704: 02 80 00 03 be 40004710 40004708: c0 24 a0 04 clr [ %l2 + 4 ] rtems_termios_ttyHead->back = tty; 4000470c: e4 20 60 04 st %l2, [ %g1 + 4 ] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 40004710: 03 10 00 6c sethi %hi(0x4001b000), %g1 40004714: c4 00 60 a8 ld [ %g1 + 0xa8 ], %g2 ! 4001b0a8 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 40004718: 07 10 00 6c sethi %hi(0x4001b000), %g3 if (rtems_termios_ttyTail == NULL) 4000471c: 80 a0 a0 00 cmp %g2, 0 40004720: 12 80 00 03 bne 4000472c 40004724: e2 20 e0 ac st %l1, [ %g3 + 0xac ] rtems_termios_ttyTail = tty; 40004728: e2 20 60 a8 st %l1, [ %g1 + 0xa8 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 4000472c: 27 10 00 6a sethi %hi(0x4001a800), %l3 40004730: d0 4c e1 a4 ldsb [ %l3 + 0x1a4 ], %o0 ! 4001a9a4 40004734: 03 15 14 9a sethi %hi(0x54526800), %g1 40004738: 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; 4000473c: f2 24 60 10 st %i1, [ %l1 + 0x10 ] tty->major = major; 40004740: f0 24 60 0c st %i0, [ %l1 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 40004744: 90 12 00 01 or %o0, %g1, %o0 40004748: 92 10 20 01 mov 1, %o1 4000474c: 94 10 20 54 mov 0x54, %o2 40004750: 96 10 20 00 clr %o3 40004754: 40 00 02 e4 call 400052e4 40004758: 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) 4000475c: 80 a2 20 00 cmp %o0, 0 40004760: 12 80 00 a3 bne 400049ec 40004764: 03 15 14 9b sethi %hi(0x54526c00), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 40004768: d0 4c e1 a4 ldsb [ %l3 + 0x1a4 ], %o0 4000476c: 82 10 63 00 or %g1, 0x300, %g1 40004770: 92 10 20 01 mov 1, %o1 40004774: 90 12 00 01 or %o0, %g1, %o0 40004778: 94 10 20 54 mov 0x54, %o2 4000477c: 96 10 20 00 clr %o3 40004780: 40 00 02 d9 call 400052e4 40004784: 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) 40004788: 80 a2 20 00 cmp %o0, 0 4000478c: 12 80 00 98 bne 400049ec 40004790: 03 15 14 9e sethi %hi(0x54527800), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 40004794: d0 4c e1 a4 ldsb [ %l3 + 0x1a4 ], %o0 40004798: 92 10 20 00 clr %o1 4000479c: 90 12 00 01 or %o0, %g1, %o0 400047a0: 94 10 20 20 mov 0x20, %o2 400047a4: 96 10 20 00 clr %o3 400047a8: 40 00 02 cf call 400052e4 400047ac: 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) 400047b0: 80 a2 20 00 cmp %o0, 0 400047b4: 12 80 00 8e bne 400049ec 400047b8: 92 10 00 1b mov %i3, %o1 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 400047bc: c0 24 60 94 clr [ %l1 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 400047c0: 90 04 60 98 add %l1, 0x98, %o0 400047c4: 40 00 24 c2 call 4000dacc 400047c8: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 400047cc: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 400047d0: 80 a0 60 02 cmp %g1, 2 400047d4: 32 80 00 1a bne,a 4000483c 400047d8: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 sc = rtems_task_create ( 400047dc: d0 4c e1 a4 ldsb [ %l3 + 0x1a4 ], %o0 <== NOT EXECUTED 400047e0: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED 400047e4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 400047e8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 400047ec: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 400047f0: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 400047f4: 98 10 20 00 clr %o4 <== NOT EXECUTED 400047f8: 40 00 03 d0 call 40005738 <== NOT EXECUTED 400047fc: 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) 40004800: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40004804: 12 80 00 7a bne 400049ec <== NOT EXECUTED 40004808: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 4000480c: d0 4c e1 a4 ldsb [ %l3 + 0x1a4 ], %o0 <== NOT EXECUTED 40004810: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 40004814: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 40004818: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 4000481c: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 40004820: 98 10 20 00 clr %o4 <== NOT EXECUTED 40004824: 40 00 03 c5 call 40005738 <== NOT EXECUTED 40004828: 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) 4000482c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40004830: 12 80 00 6f bne 400049ec <== NOT EXECUTED 40004834: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 40004838: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 <== NOT EXECUTED 4000483c: 80 a0 60 00 cmp %g1, 0 40004840: 02 80 00 07 be 4000485c 40004844: 03 10 00 6a sethi %hi(0x4001a800), %g1 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 40004848: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 4000484c: 80 a0 60 02 cmp %g1, 2 40004850: 12 80 00 0f bne 4000488c 40004854: 84 10 20 03 mov 3, %g2 sc = rtems_semaphore_create ( 40004858: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 4000485c: d0 48 61 a4 ldsb [ %g1 + 0x1a4 ], %o0 ! 4001a9a4 <== NOT EXECUTED 40004860: 03 15 14 9c sethi %hi(0x54527000), %g1 <== NOT EXECUTED 40004864: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 <== NOT EXECUTED 40004868: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000486c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 40004870: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 40004874: 96 10 20 00 clr %o3 <== NOT EXECUTED 40004878: 40 00 02 9b call 400052e4 <== NOT EXECUTED 4000487c: 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) 40004880: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40004884: 12 80 00 5a bne 400049ec <== NOT EXECUTED 40004888: 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'; 4000488c: c4 2c 60 41 stb %g2, [ %l1 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 40004890: 84 10 20 1c mov 0x1c, %g2 40004894: c4 2c 60 42 stb %g2, [ %l1 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 40004898: 84 10 20 7f mov 0x7f, %g2 4000489c: c4 2c 60 43 stb %g2, [ %l1 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 400048a0: 84 10 20 15 mov 0x15, %g2 400048a4: c4 2c 60 44 stb %g2, [ %l1 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 400048a8: 84 10 20 04 mov 4, %g2 400048ac: 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'; 400048b0: 84 10 20 11 mov 0x11, %g2 400048b4: c4 2c 60 49 stb %g2, [ %l1 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 400048b8: 84 10 20 13 mov 0x13, %g2 400048bc: c4 2c 60 4a stb %g2, [ %l1 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 400048c0: 84 10 20 1a mov 0x1a, %g2 400048c4: c4 2c 60 4b stb %g2, [ %l1 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 400048c8: 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; 400048cc: 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'; 400048d0: 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; 400048d4: 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'; 400048d8: 84 10 20 0f mov 0xf, %g2 400048dc: c4 2c 60 4e stb %g2, [ %l1 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 400048e0: 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; 400048e4: 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'; 400048e8: c4 2c 60 4f stb %g2, [ %l1 + 0x4f ] tty->termios.c_cc[VLNEXT] = '\026'; 400048ec: 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'; 400048f0: c0 2c 60 4c clrb [ %l1 + 0x4c ] tty->termios.c_cc[VEOL2] = '\000'; 400048f4: 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') 400048f8: 03 10 00 6a sethi %hi(0x4001a800), %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'; 400048fc: 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') 40004900: c4 08 61 a4 ldub [ %g1 + 0x1a4 ], %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; 40004904: c8 24 60 bc st %g4, [ %l1 + 0xbc ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 40004908: 09 00 00 09 sethi %hi(0x2400), %g4 4000490c: 88 11 21 02 or %g4, 0x102, %g4 ! 2502 40004910: c8 24 60 30 st %g4, [ %l1 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 40004914: 09 00 00 06 sethi %hi(0x1800), %g4 40004918: 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; 4000491c: 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; 40004920: c8 24 60 34 st %g4, [ %l1 + 0x34 ] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 40004924: 88 10 28 bd mov 0x8bd, %g4 40004928: c8 24 60 38 st %g4, [ %l1 + 0x38 ] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 4000492c: 09 00 00 20 sethi %hi(0x8000), %g4 40004930: 88 11 22 3b or %g4, 0x23b, %g4 ! 823b 40004934: 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; 40004938: 89 28 e0 01 sll %g3, 1, %g4 4000493c: 86 01 00 03 add %g4, %g3, %g3 40004940: 87 30 e0 02 srl %g3, 2, %g3 40004944: c6 24 60 c0 st %g3, [ %l1 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 40004948: 86 00 a0 01 add %g2, 1, %g3 4000494c: 85 28 a0 18 sll %g2, 0x18, %g2 40004950: 85 38 a0 18 sra %g2, 0x18, %g2 40004954: 80 a0 a0 7a cmp %g2, 0x7a 40004958: 12 80 00 04 bne 40004968 4000495c: c6 28 61 a4 stb %g3, [ %g1 + 0x1a4 ] c = 'a'; 40004960: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 40004964: c4 28 61 a4 stb %g2, [ %g1 + 0x1a4 ] <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { 40004968: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 4000496c: c6 06 80 00 ld [ %i2 ], %g3 if (!tty->refcount++) { 40004970: 84 00 60 01 add %g1, 1, %g2 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 40004974: e4 20 e0 38 st %l2, [ %g3 + 0x38 ] if (!tty->refcount++) { 40004978: 80 a0 60 00 cmp %g1, 0 4000497c: 12 80 00 1e bne 400049f4 40004980: c4 24 a0 08 st %g2, [ %l2 + 8 ] if (tty->device.firstOpen) 40004984: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1 40004988: 80 a0 60 00 cmp %g1, 0 4000498c: 02 80 00 05 be 400049a0 40004990: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 40004994: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40004998: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000499c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 400049a0: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1 400049a4: 80 a0 60 02 cmp %g1, 2 400049a8: 12 80 00 14 bne 400049f8 400049ac: 03 10 00 6c sethi %hi(0x4001b000), %g1 sc = rtems_task_start(tty->rxTaskId, 400049b0: d0 04 a0 c4 ld [ %l2 + 0xc4 ], %o0 <== NOT EXECUTED 400049b4: 13 10 00 12 sethi %hi(0x40004800), %o1 <== NOT EXECUTED 400049b8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 400049bc: 40 00 04 05 call 400059d0 <== NOT EXECUTED 400049c0: 92 12 62 a4 or %o1, 0x2a4, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 400049c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400049c8: 12 80 00 09 bne 400049ec <== NOT EXECUTED 400049cc: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 400049d0: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED 400049d4: 13 10 00 12 sethi %hi(0x40004800), %o1 <== NOT EXECUTED 400049d8: 40 00 03 fe call 400059d0 <== NOT EXECUTED 400049dc: 92 12 62 28 or %o1, 0x228, %o1 ! 40004a28 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 400049e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400049e4: 02 80 00 05 be 400049f8 <== NOT EXECUTED 400049e8: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 400049ec: 40 00 04 87 call 40005c08 <== NOT EXECUTED 400049f0: 01 00 00 00 nop <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 400049f4: 03 10 00 6c sethi %hi(0x4001b000), %g1 400049f8: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 4001b0a4 400049fc: 40 00 03 23 call 40005688 40004a00: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } 40004a04: 81 c7 e0 08 ret 40004a08: 91 e8 00 10 restore %g0, %l0, %o0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 40004a0c: 40 00 15 4c call 40009f3c 40004a10: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 40004a14: a4 92 20 00 orcc %o0, 0, %l2 40004a18: 12 bf ff 07 bne 40004634 40004a1c: 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); 40004a20: 10 bf ff 11 b 40004664 <== NOT EXECUTED 40004a24: 03 10 00 6c sethi %hi(0x4001b000), %g1 <== NOT EXECUTED 40003368 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 40003368: 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) { 4000336c: 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) { 40003370: 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) { 40003374: 80 a0 60 00 cmp %g1, 0 40003378: 12 80 00 08 bne 40003398 4000337c: a2 10 00 18 mov %i0, %l1 (*tty->device.write)(tty->minor, (void *)buf, len); 40003380: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 40003384: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 40003388: 9f c0 40 00 call %g1 4000338c: 94 10 00 19 mov %i1, %o2 return; 40003390: 81 c7 e0 08 ret 40003394: 81 e8 00 00 restore } newHead = tty->rawOutBuf.Head; 40003398: 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; 4000339c: 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) { 400033a0: 10 80 00 39 b 40003484 <== NOT EXECUTED 400033a4: 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; 400033a8: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED 400033ac: 40 00 4d ca call 40016ad4 <.urem> <== NOT EXECUTED 400033b0: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED rtems_interrupt_disable (level); 400033b4: 7f ff fa 39 call 40001c98 <== NOT EXECUTED 400033b8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 400033bc: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 400033c0: 30 80 00 0f b,a 400033fc <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 400033c4: 7f ff fa 39 call 40001ca8 <== NOT EXECUTED 400033c8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 400033cc: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED 400033d0: 92 10 20 00 clr %o1 <== NOT EXECUTED 400033d4: 40 00 08 66 call 4000556c <== NOT EXECUTED 400033d8: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 400033dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400033e0: 02 80 00 04 be 400033f0 <== NOT EXECUTED 400033e4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 400033e8: 40 00 0a 08 call 40005c08 <== NOT EXECUTED 400033ec: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 400033f0: 7f ff fa 2a call 40001c98 <== NOT EXECUTED 400033f4: 01 00 00 00 nop <== NOT EXECUTED 400033f8: 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) { 400033fc: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED 40003400: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 40003404: 22 bf ff f0 be,a 400033c4 <== NOT EXECUTED 40003408: 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++; 4000340c: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 <== NOT EXECUTED 40003410: c6 0c 40 00 ldub [ %l1 ], %g3 <== NOT EXECUTED 40003414: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 <== NOT EXECUTED 40003418: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 4000341c: 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; 40003420: e0 26 a0 80 st %l0, [ %i2 + 0x80 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 40003424: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003428: 32 80 00 14 bne,a 40003478 <== NOT EXECUTED 4000342c: a2 04 60 01 inc %l1 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 40003430: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 40003434: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 40003438: 12 80 00 0b bne 40003464 <== NOT EXECUTED 4000343c: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 40003440: 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, 40003444: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 <== NOT EXECUTED 40003448: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED 4000344c: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 40003450: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 40003454: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003458: 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; 4000345c: 10 80 00 06 b 40003474 <== NOT EXECUTED 40003460: 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; 40003464: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 40003468: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 4000346c: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 40003470: 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++; 40003474: 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); 40003478: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 4000347c: 7f ff fa 0b call 40001ca8 <== NOT EXECUTED 40003480: 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) { 40003484: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 40003488: 12 bf ff c8 bne 400033a8 <== NOT EXECUTED 4000348c: 01 00 00 00 nop <== NOT EXECUTED 40003490: 81 c7 e0 08 ret <== NOT EXECUTED 40003494: 81 e8 00 00 restore <== NOT EXECUTED 40003c54 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 40003c54: 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; 40003c58: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 40003c5c: 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; 40003c60: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 40003c64: 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); 40003c68: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 40003c6c: 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); 40003c70: 92 10 20 00 clr %o1 <== NOT EXECUTED 40003c74: 40 00 06 3e call 4000556c <== NOT EXECUTED 40003c78: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 40003c7c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 40003c80: 12 80 00 10 bne 40003cc0 <== NOT EXECUTED 40003c84: 05 10 00 6b sethi %hi(0x4001ac00), %g2 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 40003c88: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 40003c8c: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 40003c90: 84 10 a2 d4 or %g2, 0x2d4, %g2 <== NOT EXECUTED 40003c94: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED 40003c98: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 40003c9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003ca0: 02 80 00 0a be 40003cc8 <== NOT EXECUTED 40003ca4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 40003ca8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003cac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40003cb0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 40003cb4: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 40003cb8: 40 00 06 74 call 40005688 <== NOT EXECUTED 40003cbc: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED return sc; 40003cc0: 81 c7 e0 08 ret <== NOT EXECUTED 40003cc4: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->cindex == tty->ccount) { 40003cc8: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 40003ccc: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 40003cd0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003cd4: 12 80 00 be bne 40003fcc <== NOT EXECUTED 40003cd8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 40003cdc: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 <== NOT EXECUTED if (tty->device.pollRead != NULL 40003ce0: 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; 40003ce4: 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; 40003ce8: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 40003cec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003cf0: 02 80 00 4c be 40003e20 <== NOT EXECUTED 40003cf4: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 40003cf8: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 40003cfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003d00: 12 80 00 49 bne 40003e24 <== NOT EXECUTED 40003d04: 2f 10 00 6a sethi %hi(0x4001a800), %l7 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 40003d08: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 40003d0c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 40003d10: 02 80 00 13 be 40003d5c <== NOT EXECUTED 40003d14: 01 00 00 00 nop <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 40003d18: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 40003d1c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003d20: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 40003d24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003d28: 16 80 00 06 bge 40003d40 <== NOT EXECUTED 40003d2c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); 40003d30: 40 00 07 44 call 40005a40 <== NOT EXECUTED 40003d34: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED { int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); 40003d38: 10 bf ff f9 b 40003d1c <== NOT EXECUTED 40003d3c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) 40003d40: 7f ff ff 5f call 40003abc <== NOT EXECUTED 40003d44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40003d48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003d4c: 22 bf ff f4 be,a 40003d1c <== NOT EXECUTED 40003d50: 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)) { 40003d54: 10 80 00 9e b 40003fcc <== NOT EXECUTED 40003d58: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 40003d5c: 40 00 04 42 call 40004e64 <== NOT EXECUTED 40003d60: 01 00 00 00 nop <== NOT EXECUTED 40003d64: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 40003d68: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 40003d6c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003d70: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 40003d74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003d78: 36 80 00 1c bge,a 40003de8 <== NOT EXECUTED 40003d7c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 40003d80: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 40003d84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40003d88: 02 80 00 0a be 40003db0 <== NOT EXECUTED 40003d8c: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 40003d90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003d94: 02 80 00 11 be 40003dd8 <== NOT EXECUTED 40003d98: 01 00 00 00 nop <== NOT EXECUTED 40003d9c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 40003da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003da4: 02 80 00 0d be 40003dd8 <== NOT EXECUTED 40003da8: 01 00 00 00 nop <== NOT EXECUTED 40003dac: 30 80 00 04 b,a 40003dbc <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 40003db0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003db4: 02 80 00 86 be 40003fcc <== NOT EXECUTED 40003db8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 40003dbc: 40 00 04 2a call 40004e64 <== NOT EXECUTED 40003dc0: 01 00 00 00 nop <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 40003dc4: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED 40003dc8: 90 22 00 13 sub %o0, %l3, %o0 <== NOT EXECUTED 40003dcc: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 40003dd0: 18 80 00 7f bgu 40003fcc <== NOT EXECUTED 40003dd4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 40003dd8: 40 00 07 1a call 40005a40 <== NOT EXECUTED 40003ddc: 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); 40003de0: 10 bf ff e3 b 40003d6c <== NOT EXECUTED 40003de4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 40003de8: 7f ff ff 35 call 40003abc <== NOT EXECUTED 40003dec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 40003df0: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 40003df4: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 40003df8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003dfc: 16 80 00 73 bge 40003fc8 <== NOT EXECUTED 40003e00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 40003e04: 22 bf ff da be,a 40003d6c <== NOT EXECUTED 40003e08: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 40003e0c: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 40003e10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003e14: 22 bf ff d6 be,a 40003d6c <== NOT EXECUTED 40003e18: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 40003e1c: 30 bf ff d0 b,a 40003d5c <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 40003e20: 2f 10 00 6a sethi %hi(0x4001a800), %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; 40003e24: 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) && 40003e28: ae 15 e1 98 or %l7, 0x198, %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, 40003e2c: ac 04 20 49 add %l0, 0x49, %l6 <== NOT EXECUTED 40003e30: 10 80 00 4b b 40003f5c <== NOT EXECUTED 40003e34: 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; 40003e38: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 40003e3c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 40003e40: 40 00 4b 25 call 40016ad4 <.urem> <== NOT EXECUTED 40003e44: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 40003e48: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 40003e4c: e8 08 40 08 ldub [ %g1 + %o0 ], %l4 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 40003e50: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 40003e54: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 40003e58: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 40003e5c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 40003e60: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 40003e64: 40 00 4b 1c call 40016ad4 <.urem> <== NOT EXECUTED 40003e68: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED 40003e6c: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 40003e70: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 40003e74: 3a 80 00 27 bcc,a 40003f10 <== NOT EXECUTED 40003e78: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 40003e7c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003e80: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 40003e84: 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)) 40003e88: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003e8c: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED 40003e90: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED 40003e94: 12 80 00 11 bne 40003ed8 <== NOT EXECUTED 40003e98: 01 00 00 00 nop <== NOT EXECUTED 40003e9c: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 40003ea0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003ea4: 22 80 00 07 be,a 40003ec0 <== NOT EXECUTED 40003ea8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 40003eac: 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)) 40003eb0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 40003eb4: 02 80 00 09 be 40003ed8 <== NOT EXECUTED 40003eb8: 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, 40003ebc: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 40003ec0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 40003ec4: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 40003ec8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003ecc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 40003ed0: 10 80 00 10 b 40003f10 <== NOT EXECUTED 40003ed4: 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) { 40003ed8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40003edc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 40003ee0: 22 80 00 0c be,a 40003f10 <== NOT EXECUTED 40003ee4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 40003ee8: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 40003eec: 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; 40003ef0: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED 40003ef4: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 40003ef8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40003efc: 22 80 00 05 be,a 40003f10 <== NOT EXECUTED 40003f00: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 40003f04: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003f08: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 40003f0c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 40003f10: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 40003f14: 02 80 00 09 be 40003f38 <== NOT EXECUTED 40003f18: 90 0d 20 ff and %l4, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 40003f1c: 7f ff fe e8 call 40003abc <== NOT EXECUTED 40003f20: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40003f24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003f28: 32 80 00 0c bne,a 40003f58 <== NOT EXECUTED 40003f2c: 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; 40003f30: 10 80 00 0b b 40003f5c <== NOT EXECUTED 40003f34: 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); 40003f38: 7f ff fe e1 call 40003abc <== NOT EXECUTED 40003f3c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 40003f40: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 40003f44: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 40003f48: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003f4c: 26 80 00 04 bl,a 40003f5c <== NOT EXECUTED 40003f50: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED 40003f54: a6 10 20 00 clr %l3 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 40003f58: 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) && 40003f5c: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 40003f60: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 40003f64: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003f68: 02 80 00 08 be 40003f88 <== NOT EXECUTED 40003f6c: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 40003f70: c2 05 c0 00 ld [ %l7 ], %g1 <== NOT EXECUTED 40003f74: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 40003f78: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40003f7c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40003f80: 06 bf ff ae bl 40003e38 <== NOT EXECUTED 40003f84: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 40003f88: 02 80 00 11 be 40003fcc <== NOT EXECUTED 40003f8c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 40003f90: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 40003f94: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED 40003f98: 40 00 05 75 call 4000556c <== NOT EXECUTED 40003f9c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 40003fa0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40003fa4: 02 bf ff ee be 40003f5c <== NOT EXECUTED 40003fa8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 40003fac: 30 80 00 08 b,a 40003fcc <== 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++]; 40003fb0: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED count--; 40003fb4: 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++]; 40003fb8: c2 08 80 01 ldub [ %g2 + %g1 ], %g1 <== NOT EXECUTED 40003fbc: c2 2d 40 00 stb %g1, [ %l5 ] <== NOT EXECUTED 40003fc0: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED 40003fc4: 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)) { 40003fc8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 40003fcc: 22 80 00 08 be,a 40003fec <== NOT EXECUTED 40003fd0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 40003fd4: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 40003fd8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 40003fdc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40003fe0: 06 bf ff f4 bl 40003fb0 <== NOT EXECUTED 40003fe4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 40003fe8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 40003fec: 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; 40003ff0: a4 20 40 12 sub %g1, %l2, %l2 <== NOT EXECUTED 40003ff4: e4 24 60 1c st %l2, [ %l1 + 0x1c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 40003ff8: 40 00 05 a4 call 40005688 <== NOT EXECUTED 40003ffc: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 40004000: 81 c7 e0 08 ret <== NOT EXECUTED 40004004: 81 e8 00 00 restore <== NOT EXECUTED 40002de8 : * 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) { 40002de8: 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)) 40002dec: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 40002df0: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED 40002df4: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED 40002df8: 12 80 00 10 bne 40002e38 <== NOT EXECUTED 40002dfc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 40002e00: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 40002e04: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 40002e08: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 40002e0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40002e10: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 40002e14: 7f ff fb a1 call 40001c98 <== NOT EXECUTED 40002e18: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 40002e1c: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 40002e20: 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--; 40002e24: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 40002e28: 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--; 40002e2c: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 40002e30: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 40002e34: 30 80 00 12 b,a 40002e7c <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 40002e38: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 40002e3c: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 40002e40: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40002e44: 12 80 00 12 bne 40002e8c <== NOT EXECUTED 40002e48: 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, 40002e4c: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 40002e50: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 40002e54: 9f c0 40 00 call %g1 <== NOT EXECUTED 40002e58: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 40002e5c: 7f ff fb 8f call 40001c98 <== NOT EXECUTED 40002e60: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 40002e64: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 40002e68: 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--; 40002e6c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 40002e70: 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--; 40002e74: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 40002e78: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 40002e7c: 7f ff fb 8b call 40001ca8 <== NOT EXECUTED 40002e80: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 40002e84: 81 c7 e0 08 ret <== NOT EXECUTED 40002e88: 81 e8 00 00 restore <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 40002e8c: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED 40002e90: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 40002e94: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40002e98: 12 80 00 0a bne 40002ec0 <== NOT EXECUTED 40002e9c: 01 00 00 00 nop <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 40002ea0: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED 40002ea4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40002ea8: 12 bf ff f7 bne 40002e84 <== NOT EXECUTED 40002eac: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 40002eb0: 40 00 09 f6 call 40005688 <== NOT EXECUTED 40002eb4: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 40002eb8: 81 c7 e0 08 ret <== NOT EXECUTED 40002ebc: 81 e8 00 00 restore <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 40002ec0: 7f ff fb 76 call 40001c98 <== NOT EXECUTED 40002ec4: 01 00 00 00 nop <== NOT EXECUTED len = tty->t_dqlen; 40002ec8: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 <== NOT EXECUTED tty->t_dqlen = 0; 40002ecc: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED rtems_interrupt_enable(level); 40002ed0: 7f ff fb 76 call 40001ca8 <== NOT EXECUTED 40002ed4: 01 00 00 00 nop <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 40002ed8: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED 40002edc: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED 40002ee0: 40 00 4e fd call 40016ad4 <.urem> <== NOT EXECUTED 40002ee4: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 40002ee8: 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; 40002eec: d0 24 20 84 st %o0, [ %l0 + 0x84 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 40002ef0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40002ef4: 12 80 00 04 bne 40002f04 <== NOT EXECUTED 40002ef8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 40002efc: 40 00 09 e3 call 40005688 <== NOT EXECUTED 40002f00: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 40002f04: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 40002f08: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 40002f0c: 12 80 00 0b bne 40002f38 <== NOT EXECUTED 40002f10: 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) { 40002f14: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 40002f18: 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) { 40002f1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40002f20: 02 80 00 29 be 40002fc4 <== NOT EXECUTED 40002f24: b0 10 20 00 clr %i0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 40002f28: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED 40002f2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40002f30: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED 40002f34: 30 80 00 24 b,a 40002fc4 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 40002f38: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40002f3c: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED 40002f40: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED 40002f44: 12 80 00 0c bne 40002f74 <== NOT EXECUTED 40002f48: 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); 40002f4c: 7f ff fb 53 call 40001c98 <== NOT EXECUTED 40002f50: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 40002f54: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 40002f58: 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; 40002f5c: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 40002f60: 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; 40002f64: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 40002f68: 7f ff fb 50 call 40001ca8 <== NOT EXECUTED 40002f6c: b0 10 20 00 clr %i0 <== NOT EXECUTED 40002f70: 30 80 00 15 b,a 40002fc4 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 40002f74: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 40002f78: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 40002f7c: 08 80 00 04 bleu 40002f8c <== NOT EXECUTED 40002f80: 01 00 00 00 nop <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 40002f84: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 <== NOT EXECUTED 40002f88: 30 80 00 02 b,a 40002f90 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 40002f8c: 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)) { 40002f90: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 40002f94: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED 40002f98: 02 80 00 03 be 40002fa4 <== NOT EXECUTED 40002f9c: b0 26 00 11 sub %i0, %l1, %i0 <== NOT EXECUTED 40002fa0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 40002fa4: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 40002fa8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 40002fac: 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*/ 40002fb0: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 40002fb4: 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*/ 40002fb8: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 40002fbc: 9f c0 40 00 call %g1 <== NOT EXECUTED 40002fc0: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 40002fc4: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED } return nToSend; } 40002fc8: 81 c7 e0 08 ret <== NOT EXECUTED 40002fcc: 81 e8 00 00 restore <== NOT EXECUTED 40004aa4 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 40004aa4: 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 | 40004aa8: 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 ( 40004aac: 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 | 40004ab0: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 40004ab4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 40004ab8: 94 10 20 00 clr %o2 <== NOT EXECUTED 40004abc: 40 00 01 0b call 40004ee8 <== NOT EXECUTED 40004ac0: 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) { 40004ac4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40004ac8: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 40004acc: 22 80 00 07 be,a 40004ae8 <== NOT EXECUTED 40004ad0: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 40004ad4: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 40004ad8: 40 00 03 65 call 4000586c <== NOT EXECUTED 40004adc: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 40004ae0: 10 bf ff f5 b 40004ab4 <== NOT EXECUTED 40004ae4: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 40004ae8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004aec: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 40004af0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 40004af4: 02 bf ff ef be 40004ab0 <== NOT EXECUTED 40004af8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 40004afc: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 40004b00: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40004b04: 7f ff f9 52 call 4000304c <== NOT EXECUTED 40004b08: 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 | 40004b0c: 10 bf ff ea b 40004ab4 <== NOT EXECUTED 40004b10: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 40002dd0 : 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); 40002dd0: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 40002dd4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 40002dd8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40002ddc: 40 00 08 a5 call 40005070 <== NOT EXECUTED 40002de0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40002de4: 01 00 00 00 nop 40004a28 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 40004a28: 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) { 40004a2c: 23 10 00 6b sethi %hi(0x4001ac00), %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 40004a30: 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) { 40004a34: a2 14 62 d4 or %l1, 0x2d4, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 40004a38: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 40004a3c: 94 10 20 00 clr %o2 <== NOT EXECUTED 40004a40: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 40004a44: 40 00 01 29 call 40004ee8 <== NOT EXECUTED 40004a48: 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) { 40004a4c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 40004a50: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 40004a54: 02 80 00 07 be 40004a70 <== NOT EXECUTED 40004a58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 40004a5c: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 40004a60: 40 00 03 83 call 4000586c <== NOT EXECUTED 40004a64: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 40004a68: 10 bf ff f5 b 40004a3c <== NOT EXECUTED 40004a6c: 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) { 40004a70: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 40004a74: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 40004a78: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 40004a7c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 40004a80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40004a84: 02 80 00 04 be 40004a94 <== NOT EXECUTED 40004a88: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 40004a8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004a90: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 40004a94: 7f ff f8 d5 call 40002de8 <== NOT EXECUTED 40004a98: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 40004a9c: 10 bf ff e8 b 40004a3c <== NOT EXECUTED 40004aa0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 40003b0c : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 40003b0c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 40003b10: c2 06 00 00 ld [ %i0 ], %g1 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 40003b14: a2 10 00 18 mov %i0, %l1 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 40003b18: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 40003b1c: 92 10 20 00 clr %o1 40003b20: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 40003b24: 40 00 06 92 call 4000556c 40003b28: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 40003b2c: b0 92 20 00 orcc %o0, 0, %i0 40003b30: 12 80 00 0f bne 40003b6c 40003b34: 03 10 00 6b sethi %hi(0x4001ac00), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 40003b38: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 40003b3c: 85 28 a0 05 sll %g2, 5, %g2 40003b40: 82 10 62 d4 or %g1, 0x2d4, %g1 40003b44: 82 00 40 02 add %g1, %g2, %g1 40003b48: c2 00 60 0c ld [ %g1 + 0xc ], %g1 40003b4c: 80 a0 60 00 cmp %g1, 0 40003b50: 02 80 00 09 be 40003b74 40003b54: 92 10 00 11 mov %l1, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 40003b58: 9f c0 40 00 call %g1 <== NOT EXECUTED 40003b5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40003b60: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 40003b64: 40 00 06 c9 call 40005688 <== NOT EXECUTED 40003b68: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED return sc; 40003b6c: 81 c7 e0 08 ret <== NOT EXECUTED 40003b70: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->termios.c_oflag & OPOST) { 40003b74: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 40003b78: d2 04 60 14 ld [ %l1 + 0x14 ], %o1 40003b7c: 80 88 60 01 btst 1, %g1 40003b80: 02 80 00 0e be 40003bb8 40003b84: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 uint32_t count = args->count; 40003b88: a6 10 00 09 mov %o1, %l3 char *buffer = args->buffer; while (count--) 40003b8c: 10 80 00 06 b 40003ba4 40003b90: a4 10 00 08 mov %o0, %l2 oproc (*buffer++, tty); 40003b94: a6 04 ff ff add %l3, -1, %l3 40003b98: a4 04 a0 01 inc %l2 40003b9c: 7f ff fe 3f call 40003498 40003ba0: 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--) 40003ba4: 80 a4 e0 00 cmp %l3, 0 40003ba8: 32 bf ff fb bne,a 40003b94 40003bac: 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; 40003bb0: 10 80 00 05 b 40003bc4 40003bb4: 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); 40003bb8: 7f ff fd ec call 40003368 <== NOT EXECUTED 40003bbc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 40003bc0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 40003bc4: c2 24 60 1c st %g1, [ %l1 + 0x1c ] } rtems_semaphore_release (tty->osem); 40003bc8: 40 00 06 b0 call 40005688 40003bcc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 return sc; } 40003bd0: 81 c7 e0 08 ret 40003bd4: 81 e8 00 00 restore 40007240 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 40007240: 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) 40007244: 2b 08 00 00 sethi %hi(0x20000000), %l5 <== NOT EXECUTED 40007248: aa 8e 00 15 andcc %i0, %l5, %l5 <== NOT EXECUTED 4000724c: 02 80 00 11 be 40007290 <== NOT EXECUTED 40007250: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED { if (rtems_panic_in_progress++) 40007254: 05 10 00 99 sethi %hi(0x40026400), %g2 <== NOT EXECUTED 40007258: c2 00 a3 28 ld [ %g2 + 0x328 ], %g1 ! 40026728 <== NOT EXECUTED 4000725c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 40007260: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40007264: 02 80 00 06 be 4000727c <== NOT EXECUTED 40007268: c6 20 a3 28 st %g3, [ %g2 + 0x328 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000726c: 03 10 00 9a sethi %hi(0x40026800), %g1 <== NOT EXECUTED 40007270: c4 00 61 10 ld [ %g1 + 0x110 ], %g2 ! 40026910 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40007274: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40007278: c4 20 61 10 st %g2, [ %g1 + 0x110 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 4000727c: 03 10 00 99 sethi %hi(0x40026400), %g1 <== NOT EXECUTED 40007280: c2 00 63 28 ld [ %g1 + 0x328 ], %g1 ! 40026728 <== NOT EXECUTED 40007284: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40007288: 34 80 00 5a bg,a 400073f0 <== NOT EXECUTED 4000728c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 40007290: 03 10 00 97 sethi %hi(0x40025c00), %g1 <== NOT EXECUTED 40007294: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 ! 40025fd8 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 40007298: 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 */ 4000729c: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 400072a0: 40 00 34 58 call 40014400 <== NOT EXECUTED 400072a4: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 400072a8: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 400072ac: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 400072b0: 02 80 00 05 be 400072c4 <== NOT EXECUTED 400072b4: a6 2c 00 13 andn %l0, %l3, %l3 <== NOT EXECUTED local_errno = errno; 400072b8: 40 00 33 49 call 40013fdc <__errno> <== NOT EXECUTED 400072bc: 01 00 00 00 nop <== NOT EXECUTED 400072c0: 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); 400072c4: 29 10 00 97 sethi %hi(0x40025c00), %l4 <== NOT EXECUTED 400072c8: c2 05 23 d8 ld [ %l4 + 0x3d8 ], %g1 ! 40025fd8 <_impure_ptr> <== NOT EXECUTED 400072cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 400072d0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 400072d4: 40 00 4c 08 call 4001a2f4 <== NOT EXECUTED 400072d8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 400072dc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 400072e0: 02 80 00 0c be 40007310 <== NOT EXECUTED 400072e4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 400072e8: c2 05 23 d8 ld [ %l4 + 0x3d8 ], %g1 <== NOT EXECUTED 400072ec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 400072f0: 7f ff ff cd call 40007224 <== NOT EXECUTED 400072f4: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 400072f8: 13 10 00 90 sethi %hi(0x40024000), %o1 <== NOT EXECUTED 400072fc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 40007300: 92 12 63 00 or %o1, 0x300, %o1 <== NOT EXECUTED 40007304: 40 00 35 13 call 40014750 <== NOT EXECUTED 40007308: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 4000730c: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED if (local_errno) 40007310: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 40007314: 22 80 00 1c be,a 40007384 <== NOT EXECUTED 40007318: 27 10 00 97 sethi %hi(0x40025c00), %l3 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 4000731c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 40007320: 04 80 00 11 ble 40007364 <== NOT EXECUTED 40007324: 03 10 00 97 sethi %hi(0x40025c00), %g1 <== NOT EXECUTED 40007328: 40 00 38 5d call 4001549c <== NOT EXECUTED 4000732c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40007330: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 40007334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40007338: 02 80 00 0b be 40007364 <== NOT EXECUTED 4000733c: 03 10 00 97 sethi %hi(0x40025c00), %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 40007340: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 ! 40025fd8 <_impure_ptr> <== NOT EXECUTED 40007344: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40007348: 40 00 38 55 call 4001549c <== NOT EXECUTED 4000734c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 40007350: 13 10 00 90 sethi %hi(0x40024000), %o1 <== NOT EXECUTED 40007354: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 40007358: 92 12 63 10 or %o1, 0x310, %o1 <== NOT EXECUTED 4000735c: 10 80 00 07 b 40007378 <== NOT EXECUTED 40007360: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 40007364: c2 00 63 d8 ld [ %g1 + 0x3d8 ], %g1 <== NOT EXECUTED 40007368: 13 10 00 90 sethi %hi(0x40024000), %o1 <== NOT EXECUTED 4000736c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 40007370: 92 12 63 20 or %o1, 0x320, %o1 <== NOT EXECUTED 40007374: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 40007378: 40 00 34 f6 call 40014750 <== NOT EXECUTED 4000737c: 27 10 00 97 sethi %hi(0x40025c00), %l3 <== NOT EXECUTED 40007380: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 40007384: c2 04 e3 d8 ld [ %l3 + 0x3d8 ], %g1 <== NOT EXECUTED 40007388: 13 10 00 90 sethi %hi(0x40024000), %o1 <== NOT EXECUTED 4000738c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 40007390: 40 00 34 f0 call 40014750 <== NOT EXECUTED 40007394: 92 12 63 38 or %o1, 0x338, %o1 <== NOT EXECUTED (void) fflush(stderr); 40007398: c2 04 e3 d8 ld [ %l3 + 0x3d8 ], %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); 4000739c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED (void) fflush(stderr); 400073a0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 400073a4: 40 00 34 17 call 40014400 <== NOT EXECUTED 400073a8: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 400073ac: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 400073b0: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 400073b4: 02 80 00 0f be 400073f0 <== NOT EXECUTED 400073b8: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 400073bc: 22 80 00 08 be,a 400073dc <== NOT EXECUTED 400073c0: 13 10 00 90 sethi %hi(0x40024000), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 400073c4: 13 10 00 90 sethi %hi(0x40024000), %o1 <== NOT EXECUTED 400073c8: 90 10 20 00 clr %o0 <== NOT EXECUTED 400073cc: 40 00 00 18 call 4000742c <== NOT EXECUTED 400073d0: 92 12 63 40 or %o1, 0x340, %o1 <== NOT EXECUTED _exit(local_errno); 400073d4: 40 00 02 e8 call 40007f74 <_exit> <== NOT EXECUTED 400073d8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 400073dc: 90 10 20 00 clr %o0 <== NOT EXECUTED 400073e0: 40 00 00 13 call 4000742c <== NOT EXECUTED 400073e4: 92 12 63 58 or %o1, 0x358, %o1 <== NOT EXECUTED abort(); 400073e8: 40 00 32 ef call 40013fa4 <== NOT EXECUTED 400073ec: 01 00 00 00 nop <== NOT EXECUTED } } return chars_written; } 400073f0: 81 c7 e0 08 ret <== NOT EXECUTED 400073f4: 81 e8 00 00 restore <== NOT EXECUTED 40026630 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 40026630: 9d e3 bf a0 save %sp, -96, %sp 40026634: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 40026638: 2b 10 01 91 sethi %hi(0x40064400), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 4002663c: 29 10 01 91 sethi %hi(0x40064400), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 40026640: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 40026644: aa 15 60 d0 or %l5, 0xd0, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 40026648: a8 15 20 c0 or %l4, 0xc0, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 4002664c: a2 10 20 00 clr %l1 40026650: a0 10 20 00 clr %l0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 40026654: c2 06 20 04 ld [ %i0 + 4 ], %g1 40026658: 82 00 7f ff add %g1, -1, %g1 4002665c: 80 a0 60 00 cmp %g1, 0 40026660: 16 80 00 07 bge 4002667c 40026664: c2 26 20 04 st %g1, [ %i0 + 4 ] 40026668: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 4002666c: 40 00 74 ac call 4004391c <__srget_r> <== NOT EXECUTED 40026670: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 40026674: 10 80 00 06 b 4002668c <== NOT EXECUTED 40026678: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED 4002667c: c2 06 00 00 ld [ %i0 ], %g1 40026680: 84 00 60 01 add %g1, 1, %g2 40026684: e4 08 40 00 ldub [ %g1 ], %l2 40026688: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') 4002668c: 80 a4 a0 3a cmp %l2, 0x3a 40026690: 02 80 00 22 be 40026718 40026694: 80 a4 60 00 cmp %l1, 0 break; if (sign == 0) { 40026698: 32 80 00 09 bne,a 400266bc 4002669c: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 400266a0: 80 a4 a0 2d cmp %l2, 0x2d 400266a4: 12 80 00 05 bne 400266b8 400266a8: a2 10 20 01 mov 1, %l1 sign = -1; limit++; 400266ac: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 400266b0: 10 bf ff e9 b 40026654 <== NOT EXECUTED 400266b4: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 400266b8: c2 05 00 00 ld [ %l4 ], %g1 400266bc: 82 00 40 12 add %g1, %l2, %g1 400266c0: c2 08 60 01 ldub [ %g1 + 1 ], %g1 400266c4: 80 88 60 04 btst 4, %g1 400266c8: 02 80 00 1c be 40026738 400266cc: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 400266d0: 40 00 c0 16 call 40056728 <.udiv> 400266d4: 92 10 20 0a mov 0xa, %o1 400266d8: 80 a4 00 08 cmp %l0, %o0 400266dc: 18 80 00 17 bgu 40026738 400266e0: 01 00 00 00 nop 400266e4: 12 80 00 08 bne 40026704 400266e8: a4 04 bf d0 add %l2, -48, %l2 400266ec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 400266f0: 40 00 c0 ba call 400569d8 <.urem> <== NOT EXECUTED 400266f4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 400266f8: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED 400266fc: 18 80 00 0f bgu 40026738 <== NOT EXECUTED 40026700: 01 00 00 00 nop <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 40026704: 83 2c 20 03 sll %l0, 3, %g1 40026708: a1 2c 20 01 sll %l0, 1, %l0 4002670c: a0 04 00 01 add %l0, %g1, %l0 40026710: 10 bf ff d1 b 40026654 40026714: a0 04 80 10 add %l2, %l0, %l0 } if (sign == 0) 40026718: 02 80 00 08 be 40026738 4002671c: 90 10 00 11 mov %l1, %o0 return 0; *val = i * sign; 40026720: 92 10 00 10 mov %l0, %o1 40026724: 7f ff 72 b3 call 400031f0 <.umul> 40026728: b0 10 20 01 mov 1, %i0 4002672c: d0 26 40 00 st %o0, [ %i1 ] return 1; 40026730: 81 c7 e0 08 ret 40026734: 81 e8 00 00 restore } 40026738: 81 c7 e0 08 ret <== NOT EXECUTED 4002673c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40026740 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 40026740: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 40026744: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 40026748: 21 10 01 91 sethi %hi(0x40064400), %l0 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 4002674c: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 40026750: a0 14 20 d0 or %l0, 0xd0, %l0 40026754: c2 06 20 04 ld [ %i0 + 4 ], %g1 40026758: 82 00 7f ff add %g1, -1, %g1 4002675c: 80 a0 60 00 cmp %g1, 0 40026760: 16 80 00 07 bge 4002677c 40026764: c2 26 20 04 st %g1, [ %i0 + 4 ] 40026768: d0 04 00 00 ld [ %l0 ], %o0 4002676c: 40 00 74 6c call 4004391c <__srget_r> 40026770: 92 10 00 18 mov %i0, %o1 if (c == ':') { 40026774: 10 80 00 07 b 40026790 40026778: 80 a2 20 3a cmp %o0, 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 4002677c: c2 06 00 00 ld [ %i0 ], %g1 40026780: 84 00 60 01 add %g1, 1, %g2 40026784: d0 08 40 00 ldub [ %g1 ], %o0 40026788: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') { 4002678c: 80 a2 20 3a cmp %o0, 0x3a 40026790: 12 80 00 07 bne 400267ac 40026794: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 40026798: 80 a7 20 00 cmp %i4, 0 4002679c: 22 80 00 1a be,a 40026804 400267a0: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 400267a4: 81 c7 e0 08 ret <== NOT EXECUTED 400267a8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') { if (nlFlag) return 0; break; } if (c == '\n') { 400267ac: 12 80 00 07 bne 400267c8 400267b0: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) 400267b4: 80 a7 20 00 cmp %i4, 0 400267b8: 32 80 00 13 bne,a 40026804 400267bc: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 400267c0: 81 c7 e0 08 ret <== NOT EXECUTED 400267c4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == '\n') { if (!nlFlag) return 0; break; } if (c == EOF) 400267c8: 22 80 00 17 be,a 40026824 400267cc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (*nleft < 2) 400267d0: c2 06 c0 00 ld [ %i3 ], %g1 400267d4: 80 a0 60 01 cmp %g1, 1 400267d8: 28 80 00 13 bleu,a 40026824 400267dc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; **bufp = c; 400267e0: c2 06 80 00 ld [ %i2 ], %g1 400267e4: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 400267e8: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 400267ec: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 400267f0: 84 00 a0 01 inc %g2 --(*nleft); 400267f4: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 400267f8: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); } 400267fc: 10 bf ff d6 b 40026754 40026800: c2 26 c0 00 st %g1, [ %i3 ] **bufp = '\0'; 40026804: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 40026808: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 4002680c: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 40026810: 84 00 a0 01 inc %g2 --(*nleft); 40026814: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 40026818: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 4002681c: c2 26 c0 00 st %g1, [ %i3 ] 40026820: b0 10 20 01 mov 1, %i0 return 1; } 40026824: 81 c7 e0 08 ret 40026828: 81 e8 00 00 restore 4002682c : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 4002682c: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026830: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 40026834: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 40026838: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 4002683c: a2 07 a0 4c add %fp, 0x4c, %l1 40026840: a0 07 a0 50 add %fp, 0x50, %l0 40026844: 90 10 00 18 mov %i0, %o0 40026848: 92 10 00 19 mov %i1, %o1 4002684c: 94 10 00 11 mov %l1, %o2 40026850: 7f ff ff bc call 40026740 40026854: 96 10 00 10 mov %l0, %o3 40026858: 80 a2 20 00 cmp %o0, 0 4002685c: 02 80 00 41 be 40026960 40026860: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 40026864: 92 06 60 04 add %i1, 4, %o1 40026868: 94 10 00 11 mov %l1, %o2 4002686c: 96 10 00 10 mov %l0, %o3 40026870: 7f ff ff b4 call 40026740 40026874: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026878: 80 a2 20 00 cmp %o0, 0 4002687c: 02 80 00 39 be 40026960 40026880: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 40026884: 7f ff ff 6b call 40026630 40026888: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 4002688c: 80 a2 20 00 cmp %o0, 0 40026890: 02 80 00 34 be 40026960 40026894: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 40026898: 94 10 00 11 mov %l1, %o2 4002689c: 96 10 00 10 mov %l0, %o3 400268a0: 92 07 bf f8 add %fp, -8, %o1 400268a4: 7f ff ff a7 call 40026740 400268a8: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 400268ac: 80 a2 20 00 cmp %o0, 0 400268b0: 02 80 00 2c be 40026960 400268b4: c2 07 bf fc ld [ %fp + -4 ], %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 400268b8: 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; 400268bc: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 400268c0: 84 10 00 03 mov %g3, %g2 400268c4: 10 80 00 05 b 400268d8 400268c8: 82 10 20 01 mov 1, %g1 if(*cp == ',') memcount++; 400268cc: 88 19 20 2c xor %g4, 0x2c, %g4 400268d0: 80 a0 00 04 cmp %g0, %g4 400268d4: 82 60 7f ff subx %g1, -1, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 400268d8: c8 48 80 00 ldsb [ %g2 ], %g4 400268dc: 80 a1 20 00 cmp %g4, 0 400268e0: 12 bf ff fb bne 400268cc 400268e4: 84 00 a0 01 inc %g2 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 400268e8: c4 07 a0 50 ld [ %fp + 0x50 ], %g2 400268ec: 83 28 60 02 sll %g1, 2, %g1 400268f0: 82 00 60 13 add %g1, 0x13, %g1 400268f4: 80 a0 80 01 cmp %g2, %g1 400268f8: 0a 80 00 1a bcs 40026960 400268fc: 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; 40026900: 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); 40026904: 82 00 60 0f add %g1, 0xf, %g1 40026908: 82 08 7f f0 and %g1, -16, %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 4002690c: 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); 40026910: c2 26 60 0c st %g1, [ %i1 + 0xc ] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 40026914: 10 80 00 09 b 40026938 40026918: c2 07 bf f8 ld [ %fp + -8 ], %g1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 4002691c: 32 80 00 08 bne,a 4002693c 40026920: 82 00 60 01 inc %g1 *cp = '\0'; 40026924: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 40026928: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 4002692c: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 40026930: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40026934: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED 40026938: 82 00 60 01 inc %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 4002693c: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 40026940: 80 a0 e0 00 cmp %g3, 0 40026944: 32 bf ff f6 bne,a 4002691c 40026948: 80 a0 e0 2c cmp %g3, 0x2c if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 4002694c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 40026950: 85 28 a0 02 sll %g2, 2, %g2 40026954: c0 20 40 02 clr [ %g1 + %g2 ] return 1; 40026958: 81 c7 e0 08 ret 4002695c: 91 e8 20 01 restore %g0, 1, %o0 } 40026960: 81 c7 e0 08 ret <== NOT EXECUTED 40026964: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 400269b0 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 400269b0: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 400269b4: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 400269b8: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 400269bc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 400269c0: a2 07 a0 4c add %fp, 0x4c, %l1 400269c4: a0 07 a0 50 add %fp, 0x50, %l0 400269c8: 90 10 00 18 mov %i0, %o0 400269cc: 92 10 00 19 mov %i1, %o1 400269d0: 94 10 00 11 mov %l1, %o2 400269d4: 7f ff ff 5b call 40026740 400269d8: 96 10 00 10 mov %l0, %o3 400269dc: 80 a2 20 00 cmp %o0, 0 400269e0: 02 80 00 39 be 40026ac4 400269e4: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 400269e8: 92 06 60 04 add %i1, 4, %o1 400269ec: 94 10 00 11 mov %l1, %o2 400269f0: 96 10 00 10 mov %l0, %o3 400269f4: 7f ff ff 53 call 40026740 400269f8: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 400269fc: 80 a2 20 00 cmp %o0, 0 40026a00: 02 80 00 31 be 40026ac4 40026a04: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 40026a08: 7f ff ff 0a call 40026630 40026a0c: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026a10: 80 a2 20 00 cmp %o0, 0 40026a14: 02 80 00 2c be 40026ac4 40026a18: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 40026a1c: 7f ff ff 05 call 40026630 40026a20: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026a24: 80 a2 20 00 cmp %o0, 0 40026a28: 02 80 00 27 be 40026ac4 40026a2c: 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) 40026a30: 92 06 60 0c add %i1, 0xc, %o1 40026a34: 94 10 00 11 mov %l1, %o2 40026a38: 96 10 00 10 mov %l0, %o3 40026a3c: 7f ff ff 41 call 40026740 40026a40: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026a44: 80 a2 20 00 cmp %o0, 0 40026a48: 02 80 00 1f be 40026ac4 40026a4c: 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) 40026a50: 92 06 60 10 add %i1, 0x10, %o1 40026a54: 94 10 00 11 mov %l1, %o2 40026a58: 96 10 00 10 mov %l0, %o3 40026a5c: 7f ff ff 39 call 40026740 40026a60: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026a64: 80 a2 20 00 cmp %o0, 0 40026a68: 02 80 00 17 be 40026ac4 40026a6c: 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) 40026a70: 92 06 60 14 add %i1, 0x14, %o1 40026a74: 94 10 00 11 mov %l1, %o2 40026a78: 96 10 00 10 mov %l0, %o3 40026a7c: 7f ff ff 31 call 40026740 40026a80: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026a84: 80 a2 20 00 cmp %o0, 0 40026a88: 02 80 00 0f be 40026ac4 40026a8c: 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)) 40026a90: 94 10 00 11 mov %l1, %o2 40026a94: 96 10 00 10 mov %l0, %o3 40026a98: 92 06 60 18 add %i1, 0x18, %o1 40026a9c: 7f ff ff 29 call 40026740 40026aa0: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026aa4: 80 a2 20 00 cmp %o0, 0 40026aa8: 02 80 00 07 be 40026ac4 40026aac: 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; 40026ab0: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 40026ab4: c2 07 bf f8 ld [ %fp + -8 ], %g1 40026ab8: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 40026abc: 81 c7 e0 08 ret 40026ac0: 91 e8 20 01 restore %g0, 1, %o0 } 40026ac4: 81 c7 e0 08 ret <== NOT EXECUTED 40026ac8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 400265cc : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 400265cc: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 400265d0: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 ! 40063ce8 <== NOT EXECUTED 400265d4: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 400265d8: 81 c3 e0 08 retl <== NOT EXECUTED 400265dc: 90 10 20 00 clr %o0 <== NOT EXECUTED 40026bec : return NULL; return &grent; } void setgrent(void) { 40026bec: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 40026bf0: 7f ff ff c9 call 40026b14 <== NOT EXECUTED 40026bf4: 01 00 00 00 nop <== NOT EXECUTED if (group_fp != NULL) 40026bf8: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 40026bfc: d0 00 63 d4 ld [ %g1 + 0x3d4 ], %o0 ! 400677d4 <== NOT EXECUTED 40026c00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026c04: 22 80 00 05 be,a 40026c18 <== NOT EXECUTED 40026c08: 11 10 01 65 sethi %hi(0x40059400), %o0 <== NOT EXECUTED fclose(group_fp); 40026c0c: 40 00 5d cc call 4003e33c <== NOT EXECUTED 40026c10: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 40026c14: 11 10 01 65 sethi %hi(0x40059400), %o0 <== NOT EXECUTED 40026c18: 13 10 01 8d sethi %hi(0x40063400), %o1 <== NOT EXECUTED 40026c1c: 90 12 20 38 or %o0, 0x38, %o0 <== NOT EXECUTED 40026c20: 40 00 60 16 call 4003ec78 <== NOT EXECUTED 40026c24: 92 12 60 d8 or %o1, 0xd8, %o1 <== NOT EXECUTED 40026c28: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 40026c2c: d0 20 63 d4 st %o0, [ %g1 + 0x3d4 ] ! 400677d4 <== NOT EXECUTED } 40026c30: 81 c7 e0 08 ret <== NOT EXECUTED 40026c34: 81 e8 00 00 restore <== NOT EXECUTED 40026de0 : return NULL; return &pwent; } void setpwent(void) { 40026de0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 40026de4: 7f ff ff 4c call 40026b14 <== NOT EXECUTED 40026de8: 01 00 00 00 nop <== NOT EXECUTED if (passwd_fp != NULL) 40026dec: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 40026df0: d0 00 62 ec ld [ %g1 + 0x2ec ], %o0 ! 400676ec <== NOT EXECUTED 40026df4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026df8: 22 80 00 05 be,a 40026e0c <== NOT EXECUTED 40026dfc: 11 10 01 64 sethi %hi(0x40059000), %o0 <== NOT EXECUTED fclose(passwd_fp); 40026e00: 40 00 5d 4f call 4003e33c <== NOT EXECUTED 40026e04: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 40026e08: 11 10 01 64 sethi %hi(0x40059000), %o0 <== NOT EXECUTED 40026e0c: 13 10 01 8d sethi %hi(0x40063400), %o1 <== NOT EXECUTED 40026e10: 90 12 23 80 or %o0, 0x380, %o0 <== NOT EXECUTED 40026e14: 40 00 5f 99 call 4003ec78 <== NOT EXECUTED 40026e18: 92 12 60 d8 or %o1, 0xd8, %o1 <== NOT EXECUTED 40026e1c: 03 10 01 9d sethi %hi(0x40067400), %g1 <== NOT EXECUTED 40026e20: d0 20 62 ec st %o0, [ %g1 + 0x2ec ] ! 400676ec <== NOT EXECUTED } 40026e24: 81 c7 e0 08 ret <== NOT EXECUTED 40026e28: 81 e8 00 00 restore <== NOT EXECUTED 40006dd4 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 40006dd4: 03 10 01 8f sethi %hi(0x40063c00), %g1 <== NOT EXECUTED 40006dd8: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 ! 40063ce8 <== NOT EXECUTED 40006ddc: d0 30 60 30 sth %o0, [ %g1 + 0x30 ] <== NOT EXECUTED return 0; } 40006de0: 81 c3 e0 08 retl <== NOT EXECUTED 40006de4: 90 10 20 00 clr %o0 <== NOT EXECUTED 40003abc : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 40003abc: 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)) { 40003ac0: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 40003ac4: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 40003ac8: 02 80 00 0e be 40003b00 <== NOT EXECUTED 40003acc: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 40003ad0: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED 40003ad4: 94 10 20 00 clr %o2 <== NOT EXECUTED 40003ad8: 40 00 06 a5 call 4000556c <== NOT EXECUTED 40003adc: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 40003ae0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40003ae4: 7f ff ff 7f call 400038e0 <== NOT EXECUTED 40003ae8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40003aec: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 40003af0: 40 00 06 e6 call 40005688 <== NOT EXECUTED 40003af4: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 40003af8: 81 c7 e0 08 ret <== NOT EXECUTED 40003afc: 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); 40003b00: 7f ff ff 78 call 400038e0 <== NOT EXECUTED 40003b04: 81 e8 00 00 restore <== NOT EXECUTED 40003b08: 01 00 00 00 nop 4000840c : int _STAT_NAME( const char *path, struct stat *buf ) { 4000840c: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 40008410: 80 a6 60 00 cmp %i1, 0 40008414: 12 80 00 06 bne 4000842c 40008418: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 4000841c: 40 00 d7 70 call 4003e1dc <__errno> 40008420: b0 10 3f ff mov -1, %i0 ! ffffffff 40008424: 10 80 00 20 b 400084a4 40008428: 82 10 20 0e mov 0xe, %g1 status = rtems_filesystem_evaluate_path( path, strlen( path ), 4000842c: 40 00 f2 97 call 40044e88 40008430: 90 10 00 18 mov %i0, %o0 40008434: a0 07 bf ec add %fp, -20, %l0 40008438: 92 10 00 08 mov %o0, %o1 4000843c: 94 10 20 00 clr %o2 40008440: 90 10 00 18 mov %i0, %o0 40008444: 96 10 00 10 mov %l0, %o3 40008448: 98 10 20 01 mov 1, %o4 4000844c: 7f ff f9 e8 call 40006bec 40008450: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 40008454: 80 a2 20 00 cmp %o0, 0 40008458: 12 80 00 14 bne 400084a8 4000845c: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 40008460: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 40008464: 80 a0 60 00 cmp %g1, 0 40008468: 12 80 00 12 bne 400084b0 4000846c: 92 10 20 00 clr %o1 rtems_filesystem_freenode( &loc ); 40008470: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40008474: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008478: 02 80 00 08 be 40008498 <== NOT EXECUTED 4000847c: 01 00 00 00 nop <== NOT EXECUTED 40008480: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40008484: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008488: 02 80 00 04 be 40008498 <== NOT EXECUTED 4000848c: 01 00 00 00 nop <== NOT EXECUTED 40008490: 9f c0 40 00 call %g1 <== NOT EXECUTED 40008494: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40008498: 40 00 d7 51 call 4003e1dc <__errno> <== NOT EXECUTED 4000849c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400084a0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400084a4: c2 22 00 00 st %g1, [ %o0 ] 400084a8: 81 c7 e0 08 ret 400084ac: 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) ); 400084b0: 94 10 20 48 mov 0x48, %o2 400084b4: 40 00 e4 b0 call 40041774 400084b8: 90 10 00 19 mov %i1, %o0 status = (*loc.handlers->fstat_h)( &loc, buf ); 400084bc: c2 07 bf f4 ld [ %fp + -12 ], %g1 400084c0: 92 10 00 19 mov %i1, %o1 400084c4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 400084c8: 9f c0 40 00 call %g1 400084cc: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 400084d0: c2 07 bf f8 ld [ %fp + -8 ], %g1 400084d4: 80 a0 60 00 cmp %g1, 0 400084d8: 02 bf ff f4 be 400084a8 400084dc: b0 10 00 08 mov %o0, %i0 400084e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400084e4: 80 a0 60 00 cmp %g1, 0 400084e8: 02 80 00 04 be 400084f8 400084ec: 01 00 00 00 nop 400084f0: 9f c0 40 00 call %g1 400084f4: 90 10 00 10 mov %l0, %o0 return status; } 400084f8: 81 c7 e0 08 ret 400084fc: 81 e8 00 00 restore 40027b70 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 40027b70: 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 ) ) 40027b74: 40 00 74 c5 call 40044e88 <== NOT EXECUTED 40027b78: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027b7c: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 40027b80: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40027b84: 94 10 20 00 clr %o2 <== NOT EXECUTED 40027b88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027b8c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 40027b90: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 40027b94: 7f ff 7c 16 call 40006bec <== NOT EXECUTED 40027b98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027b9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40027ba0: 12 80 00 0b bne 40027bcc <== NOT EXECUTED 40027ba4: 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; 40027ba8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 40027bac: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 40027bb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027bb4: 12 80 00 08 bne 40027bd4 <== NOT EXECUTED 40027bb8: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027bbc: 40 00 59 88 call 4003e1dc <__errno> <== NOT EXECUTED 40027bc0: 01 00 00 00 nop <== NOT EXECUTED 40027bc4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40027bc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027bcc: 81 c7 e0 08 ret <== NOT EXECUTED 40027bd0: 81 e8 00 00 restore <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 40027bd4: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED 40027bd8: 40 00 66 e7 call 40041774 <== NOT EXECUTED 40027bdc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 40027be0: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 40027be4: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED 40027be8: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 40027bec: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027bf0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 40027bf4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40027bf8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027bfc: 02 bf ff f4 be 40027bcc <== NOT EXECUTED 40027c00: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 40027c04: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027c08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027c0c: 02 80 00 04 be 40027c1c <== NOT EXECUTED 40027c10: 01 00 00 00 nop <== NOT EXECUTED 40027c14: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027c18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 40027c1c: 81 c7 e0 08 ret <== NOT EXECUTED 40027c20: 81 e8 00 00 restore <== NOT EXECUTED 40027c24 : int symlink( const char *actualpath, const char *sympath ) { 40027c24: 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 ); 40027c28: c2 4e 40 00 ldsb [ %i1 ], %g1 40027c2c: 80 a0 60 5c cmp %g1, 0x5c 40027c30: 02 80 00 07 be 40027c4c 40027c34: a0 10 00 18 mov %i0, %l0 40027c38: 80 a0 60 2f cmp %g1, 0x2f 40027c3c: 02 80 00 04 be 40027c4c 40027c40: 80 a0 60 00 cmp %g1, 0 40027c44: 12 80 00 0a bne 40027c6c 40027c48: 03 10 01 8f sethi %hi(0x40063c00), %g1 40027c4c: 03 10 01 8f sethi %hi(0x40063c00), %g1 40027c50: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 ! 40063ce8 40027c54: 90 07 bf e8 add %fp, -24, %o0 40027c58: 92 02 60 18 add %o1, 0x18, %o1 40027c5c: 40 00 66 33 call 40041528 40027c60: 94 10 20 14 mov 0x14, %o2 40027c64: 10 80 00 08 b 40027c84 40027c68: 90 10 20 01 mov 1, %o0 40027c6c: d2 00 60 e8 ld [ %g1 + 0xe8 ], %o1 40027c70: 90 07 bf e8 add %fp, -24, %o0 40027c74: 92 02 60 04 add %o1, 4, %o1 40027c78: 40 00 66 2c call 40041528 40027c7c: 94 10 20 14 mov 0x14, %o2 40027c80: 90 10 20 00 clr %o0 if ( !loc.ops->evalformake_h ) { 40027c84: c2 07 bf f4 ld [ %fp + -12 ], %g1 40027c88: c2 00 60 04 ld [ %g1 + 4 ], %g1 40027c8c: 80 a0 60 00 cmp %g1, 0 40027c90: 02 80 00 14 be 40027ce0 40027c94: 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 ); 40027c98: 94 07 bf fc add %fp, -4, %o2 40027c9c: b2 07 bf e8 add %fp, -24, %i1 if ( result != 0 ) 40027ca0: 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 ); 40027ca4: 9f c0 40 00 call %g1 40027ca8: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) 40027cac: 80 a2 20 00 cmp %o0, 0 40027cb0: 12 80 00 10 bne 40027cf0 40027cb4: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 40027cb8: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 40027cbc: 80 a0 60 00 cmp %g1, 0 40027cc0: 12 80 00 0e bne 40027cf8 40027cc4: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &loc ); 40027cc8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40027ccc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027cd0: 02 80 00 04 be 40027ce0 <== NOT EXECUTED 40027cd4: 01 00 00 00 nop <== NOT EXECUTED 40027cd8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027cdc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027ce0: 40 00 59 3f call 4003e1dc <__errno> <== NOT EXECUTED 40027ce4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027ce8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027cec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027cf0: 81 c7 e0 08 ret 40027cf4: 81 e8 00 00 restore } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 40027cf8: 92 10 00 10 mov %l0, %o1 40027cfc: 9f c0 40 00 call %g1 40027d00: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &loc ); 40027d04: c2 07 bf f4 ld [ %fp + -12 ], %g1 40027d08: 80 a0 60 00 cmp %g1, 0 40027d0c: 02 bf ff f9 be 40027cf0 40027d10: b0 10 00 08 mov %o0, %i0 40027d14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027d18: 80 a0 60 00 cmp %g1, 0 40027d1c: 02 80 00 04 be 40027d2c 40027d20: 01 00 00 00 nop 40027d24: 9f c0 40 00 call %g1 40027d28: 90 10 00 19 mov %i1, %o0 return result; } 40027d2c: 81 c7 e0 08 ret 40027d30: 81 e8 00 00 restore 40011bfc : int tcsetattr( int fd, int opt, struct termios *tp ) { 40011bfc: 9d e3 bf a0 save %sp, -96, %sp switch (opt) { 40011c00: 80 a6 60 00 cmp %i1, 0 40011c04: 02 80 00 10 be 40011c44 40011c08: 80 a6 60 01 cmp %i1, 1 40011c0c: 02 80 00 08 be 40011c2c <== NOT EXECUTED 40011c10: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 40011c14: 40 00 0f 65 call 400159a8 <__errno> <== NOT EXECUTED 40011c18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40011c1c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40011c20: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40011c24: 81 c7 e0 08 ret <== NOT EXECUTED 40011c28: 81 e8 00 00 restore <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 40011c2c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 40011c30: 40 00 0b d4 call 40014b80 <== NOT EXECUTED 40011c34: 94 10 20 00 clr %o2 <== NOT EXECUTED 40011c38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011c3c: 26 80 00 04 bl,a 40011c4c <== NOT EXECUTED 40011c40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 40011c44: 40 00 0b cf call 40014b80 40011c48: 93 e8 20 02 restore %g0, 2, %o1 } } 40011c4c: 81 c7 e0 08 ret <== NOT EXECUTED 40011c50: 81 e8 00 00 restore <== NOT EXECUTED 4000cea0 : #include int unlink( const char *path ) { 4000cea0: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4000cea4: 7f ff d4 40 call 40001fa4 4000cea8: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 4000ceac: a6 92 20 00 orcc %o0, 0, %l3 4000ceb0: 32 80 00 17 bne,a 4000cf0c 4000ceb4: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 4000ceb8: c2 4e 00 00 ldsb [ %i0 ], %g1 4000cebc: 80 a0 60 5c cmp %g1, 0x5c 4000cec0: 02 80 00 06 be 4000ced8 4000cec4: 80 a0 60 2f cmp %g1, 0x2f 4000cec8: 02 80 00 04 be 4000ced8 4000cecc: 80 a0 60 00 cmp %g1, 0 4000ced0: 12 80 00 07 bne 4000ceec <== NOT EXECUTED 4000ced4: 03 10 00 6a sethi %hi(0x4001a800), %g1 <== NOT EXECUTED 4000ced8: 03 10 00 6a sethi %hi(0x4001a800), %g1 4000cedc: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 ! 4001a9a8 4000cee0: 90 07 bf ec add %fp, -20, %o0 4000cee4: 10 80 00 05 b 4000cef8 4000cee8: 92 02 60 18 add %o1, 0x18, %o1 4000ceec: d2 00 61 a8 ld [ %g1 + 0x1a8 ], %o1 <== NOT EXECUTED 4000cef0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 4000cef4: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 4000cef8: 94 10 20 14 mov 0x14, %o2 4000cefc: 40 00 02 f4 call 4000dacc 4000cf00: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4000cf04: 10 80 00 0b b 4000cf30 4000cf08: 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, 4000cf0c: 92 10 00 13 mov %l3, %o1 4000cf10: 94 10 20 02 mov 2, %o2 4000cf14: 96 07 bf ec add %fp, -20, %o3 4000cf18: 7f ff d4 71 call 400020dc 4000cf1c: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 4000cf20: 80 a2 20 00 cmp %o0, 0 4000cf24: 12 80 00 82 bne 4000d12c 4000cf28: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4000cf2c: 94 10 20 14 mov 0x14, %o2 4000cf30: a0 07 bf d8 add %fp, -40, %l0 4000cf34: a4 07 bf ec add %fp, -20, %l2 4000cf38: 90 10 00 10 mov %l0, %o0 4000cf3c: 40 00 02 e4 call 4000dacc 4000cf40: 92 10 00 12 mov %l2, %o1 name = path + parentpathlen; 4000cf44: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4000cf48: 40 00 04 5d call 4000e0bc 4000cf4c: 90 10 00 18 mov %i0, %o0 4000cf50: 92 10 00 08 mov %o0, %o1 4000cf54: 7f ff d4 02 call 40001f5c 4000cf58: 90 10 00 18 mov %i0, %o0 4000cf5c: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4000cf60: 40 00 04 57 call 4000e0bc 4000cf64: 90 10 00 18 mov %i0, %o0 4000cf68: 94 10 20 00 clr %o2 4000cf6c: 92 10 00 08 mov %o0, %o1 4000cf70: 96 10 00 10 mov %l0, %o3 4000cf74: 90 10 00 18 mov %i0, %o0 4000cf78: 7f ff d4 1d call 40001fec 4000cf7c: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 4000cf80: 80 a2 20 00 cmp %o0, 0 4000cf84: 02 80 00 11 be 4000cfc8 4000cf88: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 4000cf8c: 80 8c 60 ff btst 0xff, %l1 4000cf90: 02 80 00 0c be 4000cfc0 4000cf94: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 4000cf98: c2 07 bf f8 ld [ %fp + -8 ], %g1 4000cf9c: 80 a0 60 00 cmp %g1, 0 4000cfa0: 02 80 00 64 be 4000d130 4000cfa4: 01 00 00 00 nop 4000cfa8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000cfac: 80 a0 60 00 cmp %g1, 0 4000cfb0: 02 80 00 04 be 4000cfc0 4000cfb4: 90 10 00 12 mov %l2, %o0 4000cfb8: 9f c0 40 00 call %g1 4000cfbc: 01 00 00 00 nop 4000cfc0: 81 c7 e0 08 ret 4000cfc4: 81 e8 00 00 restore return -1; } if ( !loc.ops->node_type_h ) { 4000cfc8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 4000cfcc: 80 a0 60 00 cmp %g1, 0 4000cfd0: 22 80 00 26 be,a 4000d068 4000cfd4: 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 ) { 4000cfd8: 9f c0 40 00 call %g1 4000cfdc: 90 10 00 10 mov %l0, %o0 4000cfe0: 80 a2 20 01 cmp %o0, 1 4000cfe4: 12 80 00 1c bne 4000d054 4000cfe8: c4 07 bf e4 ld [ %fp + -28 ], %g2 rtems_filesystem_freenode( &loc ); 4000cfec: 80 a0 a0 00 cmp %g2, 0 4000cff0: 02 80 00 09 be 4000d014 4000cff4: 80 8c 60 ff btst 0xff, %l1 4000cff8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 4000cffc: 80 a0 60 00 cmp %g1, 0 4000d000: 02 80 00 05 be 4000d014 4000d004: 80 8c 60 ff btst 0xff, %l1 4000d008: 9f c0 40 00 call %g1 4000d00c: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 4000d010: 80 8c 60 ff btst 0xff, %l1 4000d014: 02 80 00 0c be 4000d044 4000d018: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 4000d01c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 4000d020: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000d024: 02 80 00 08 be 4000d044 <== NOT EXECUTED 4000d028: 01 00 00 00 nop <== NOT EXECUTED 4000d02c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000d030: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000d034: 02 80 00 04 be 4000d044 <== NOT EXECUTED 4000d038: 01 00 00 00 nop <== NOT EXECUTED 4000d03c: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000d040: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 4000d044: 40 00 00 67 call 4000d1e0 <__errno> 4000d048: b0 10 3f ff mov -1, %i0 4000d04c: 10 80 00 1b b 4000d0b8 4000d050: 82 10 20 15 mov 0x15, %g1 } if ( !loc.ops->unlink_h ) { 4000d054: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 4000d058: 80 a0 60 00 cmp %g1, 0 4000d05c: 12 80 00 1a bne 4000d0c4 4000d060: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 4000d064: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4000d068: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000d06c: 02 80 00 05 be 4000d080 <== NOT EXECUTED 4000d070: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4000d074: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000d078: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 4000d07c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4000d080: 02 80 00 0b be 4000d0ac <== NOT EXECUTED 4000d084: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 4000d088: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000d08c: 02 80 00 08 be 4000d0ac <== NOT EXECUTED 4000d090: 01 00 00 00 nop <== NOT EXECUTED 4000d094: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000d098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000d09c: 02 80 00 04 be 4000d0ac <== NOT EXECUTED 4000d0a0: 01 00 00 00 nop <== NOT EXECUTED 4000d0a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000d0a8: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000d0ac: 40 00 00 4d call 4000d1e0 <__errno> <== NOT EXECUTED 4000d0b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000d0b4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 4000d0b8: c2 22 00 00 st %g1, [ %o0 ] 4000d0bc: 81 c7 e0 08 ret 4000d0c0: 81 e8 00 00 restore } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 4000d0c4: 9f c0 40 00 call %g1 4000d0c8: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 4000d0cc: c2 07 bf e4 ld [ %fp + -28 ], %g1 4000d0d0: 80 a0 60 00 cmp %g1, 0 4000d0d4: 02 80 00 08 be 4000d0f4 4000d0d8: b0 10 00 08 mov %o0, %i0 4000d0dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000d0e0: 80 a0 60 00 cmp %g1, 0 4000d0e4: 02 80 00 05 be 4000d0f8 4000d0e8: 80 8c 60 ff btst 0xff, %l1 4000d0ec: 9f c0 40 00 call %g1 4000d0f0: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 4000d0f4: 80 8c 60 ff btst 0xff, %l1 4000d0f8: 02 bf ff b2 be 4000cfc0 4000d0fc: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 4000d100: 80 a0 60 00 cmp %g1, 0 4000d104: 02 80 00 0b be 4000d130 4000d108: 01 00 00 00 nop 4000d10c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000d110: 80 a0 60 00 cmp %g1, 0 4000d114: 02 80 00 07 be 4000d130 4000d118: 01 00 00 00 nop 4000d11c: 9f c0 40 00 call %g1 4000d120: 90 07 bf ec add %fp, -20, %o0 4000d124: 81 c7 e0 08 ret 4000d128: 81 e8 00 00 restore 4000d12c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 4000d130: 81 c7 e0 08 ret <== NOT EXECUTED 4000d134: 81 e8 00 00 restore <== NOT EXECUTED 4000a5cc : */ int unmount( const char *path ) { 4000a5cc: 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 ) ) 4000a5d0: 40 00 ea 2e call 40044e88 4000a5d4: 90 10 00 18 mov %i0, %o0 4000a5d8: a0 07 bf ec add %fp, -20, %l0 4000a5dc: 92 10 00 08 mov %o0, %o1 4000a5e0: 94 10 20 00 clr %o2 4000a5e4: 90 10 00 18 mov %i0, %o0 4000a5e8: 96 10 00 10 mov %l0, %o3 4000a5ec: 7f ff f1 80 call 40006bec 4000a5f0: 98 10 20 01 mov 1, %o4 4000a5f4: 80 a2 20 00 cmp %o0, 0 4000a5f8: 12 80 00 6a bne 4000a7a0 4000a5fc: 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; 4000a600: c4 07 bf ec ld [ %fp + -20 ], %g2 4000a604: c6 04 60 1c ld [ %l1 + 0x1c ], %g3 4000a608: 80 a0 c0 02 cmp %g3, %g2 4000a60c: 02 80 00 0f be 4000a648 4000a610: 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 ); 4000a614: 80 a0 60 00 cmp %g1, 0 4000a618: 02 80 00 08 be 4000a638 4000a61c: 01 00 00 00 nop 4000a620: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000a624: 80 a0 60 00 cmp %g1, 0 4000a628: 02 80 00 04 be 4000a638 4000a62c: 01 00 00 00 nop 4000a630: 9f c0 40 00 call %g1 4000a634: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 4000a638: 40 00 ce e9 call 4003e1dc <__errno> 4000a63c: 01 00 00 00 nop 4000a640: 10 80 00 21 b 4000a6c4 4000a644: 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 ); 4000a648: 80 a0 60 00 cmp %g1, 0 4000a64c: 22 80 00 09 be,a 4000a670 4000a650: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000a654: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000a658: 80 a0 60 00 cmp %g1, 0 4000a65c: 22 80 00 05 be,a 4000a670 4000a660: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000a664: 9f c0 40 00 call %g1 4000a668: 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; 4000a66c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 4000a670: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 4000a674: 80 a0 60 00 cmp %g1, 0 4000a678: 02 80 00 07 be 4000a694 4000a67c: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 4000a680: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 4000a684: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 4000a688: 80 a0 60 00 cmp %g1, 0 4000a68c: 32 80 00 06 bne,a 4000a6a4 4000a690: 03 10 01 8f sethi %hi(0x40063c00), %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 ); 4000a694: 40 00 ce d2 call 4003e1dc <__errno> <== NOT EXECUTED 4000a698: 01 00 00 00 nop <== NOT EXECUTED 4000a69c: 10 80 00 0a b 4000a6c4 <== NOT EXECUTED 4000a6a0: 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 ) 4000a6a4: c2 00 60 e8 ld [ %g1 + 0xe8 ], %g1 4000a6a8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 4000a6ac: 80 a0 40 11 cmp %g1, %l1 4000a6b0: 12 80 00 08 bne 4000a6d0 4000a6b4: 03 10 01 9e sethi %hi(0x40067800), %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 4000a6b8: 40 00 ce c9 call 4003e1dc <__errno> 4000a6bc: 01 00 00 00 nop 4000a6c0: 82 10 20 10 mov 0x10, %g1 ! 10 4000a6c4: c2 22 00 00 st %g1, [ %o0 ] 4000a6c8: 81 c7 e0 08 ret 4000a6cc: 91 e8 3f ff restore %g0, -1, %o0 4000a6d0: 05 10 01 9e sethi %hi(0x40067800), %g2 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4000a6d4: c2 00 62 20 ld [ %g1 + 0x220 ], %g1 4000a6d8: 10 80 00 07 b 4000a6f4 4000a6dc: 84 10 a2 24 or %g2, 0x224, %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; 4000a6e0: c6 04 60 2c ld [ %l1 + 0x2c ], %g3 4000a6e4: 80 a1 00 03 cmp %g4, %g3 4000a6e8: 02 bf ff f4 be 4000a6b8 4000a6ec: 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 ) { 4000a6f0: c2 00 40 00 ld [ %g1 ], %g1 4000a6f4: 80 a0 40 02 cmp %g1, %g2 4000a6f8: 32 bf ff fa bne,a 4000a6e0 4000a6fc: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 4000a700: 30 80 00 2a b,a 4000a7a8 * 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 ) 4000a704: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 4000a708: 9f c0 40 00 call %g1 4000a70c: 90 10 00 11 mov %l1, %o0 4000a710: 80 a2 20 00 cmp %o0, 0 4000a714: 12 80 00 23 bne 4000a7a0 4000a718: 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){ 4000a71c: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 4000a720: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 4000a724: 9f c0 40 00 call %g1 4000a728: 90 10 00 11 mov %l1, %o0 4000a72c: 80 a2 20 00 cmp %o0, 0 4000a730: 02 80 00 0b be 4000a75c 4000a734: 01 00 00 00 nop if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 4000a738: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000a73c: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 4000a740: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a744: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a748: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000a74c: 02 80 00 15 be 4000a7a0 <== NOT EXECUTED 4000a750: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 4000a754: 40 00 04 f0 call 4000bb14 <== NOT EXECUTED 4000a758: 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 ); 4000a75c: 40 00 05 ba call 4000be44 <_Chain_Extract> 4000a760: 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 ); 4000a764: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 4000a768: 80 a0 60 00 cmp %g1, 0 4000a76c: 02 80 00 09 be 4000a790 4000a770: 90 10 00 11 mov %l1, %o0 4000a774: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000a778: 80 a0 60 00 cmp %g1, 0 4000a77c: 02 80 00 05 be 4000a790 4000a780: 01 00 00 00 nop 4000a784: 9f c0 40 00 call %g1 4000a788: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 4000a78c: 90 10 00 11 mov %l1, %o0 4000a790: 7f ff f1 40 call 40006c90 4000a794: b0 10 20 00 clr %i0 return 0; 4000a798: 81 c7 e0 08 ret 4000a79c: 81 e8 00 00 restore } 4000a7a0: 81 c7 e0 08 ret 4000a7a4: 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 ) 4000a7a8: 7f ff f1 f4 call 40006f78 4000a7ac: 90 10 00 11 mov %l1, %o0 4000a7b0: 80 a2 20 01 cmp %o0, 1 4000a7b4: 32 bf ff d4 bne,a 4000a704 4000a7b8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 4000a7bc: 30 bf ff bf b,a 4000a6b8 40027dd4 : int utime( const char *path, const struct utimbuf *times ) { 40027dd4: 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 ) ) 40027dd8: 40 00 74 2c call 40044e88 40027ddc: 90 10 00 18 mov %i0, %o0 40027de0: a0 07 bf ec add %fp, -20, %l0 40027de4: 92 10 00 08 mov %o0, %o1 40027de8: 94 10 20 00 clr %o2 40027dec: 90 10 00 18 mov %i0, %o0 40027df0: 96 10 00 10 mov %l0, %o3 40027df4: 98 10 20 01 mov 1, %o4 40027df8: 7f ff 7b 7d call 40006bec 40027dfc: b0 10 3f ff mov -1, %i0 40027e00: 80 a2 20 00 cmp %o0, 0 40027e04: 12 80 00 10 bne 40027e44 40027e08: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 40027e0c: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 40027e10: 80 a0 60 00 cmp %g1, 0 40027e14: 32 80 00 0e bne,a 40027e4c 40027e18: d4 06 60 04 ld [ %i1 + 4 ], %o2 rtems_filesystem_freenode( &temp_loc ); 40027e1c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40027e20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027e24: 02 80 00 04 be 40027e34 <== NOT EXECUTED 40027e28: 01 00 00 00 nop <== NOT EXECUTED 40027e2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027e30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027e34: 40 00 58 ea call 4003e1dc <__errno> <== NOT EXECUTED 40027e38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027e3c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027e40: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027e44: 81 c7 e0 08 ret 40027e48: 81 e8 00 00 restore } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 40027e4c: d2 06 40 00 ld [ %i1 ], %o1 40027e50: 9f c0 40 00 call %g1 40027e54: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 40027e58: c2 07 bf f8 ld [ %fp + -8 ], %g1 40027e5c: 80 a0 60 00 cmp %g1, 0 40027e60: 02 bf ff f9 be 40027e44 40027e64: b0 10 00 08 mov %o0, %i0 40027e68: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027e6c: 80 a0 60 00 cmp %g1, 0 40027e70: 02 80 00 04 be 40027e80 40027e74: 01 00 00 00 nop 40027e78: 9f c0 40 00 call %g1 40027e7c: 90 10 00 10 mov %l0, %o0 return result; } 40027e80: 81 c7 e0 08 ret 40027e84: 81 e8 00 00 restore 400190b8 : ssize_t write( int fd, const void *buffer, size_t count ) { 400190b8: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 400190bc: 03 10 00 6a sethi %hi(0x4001a800), %g1 400190c0: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 ! 4001a894 ssize_t write( int fd, const void *buffer, size_t count ) { 400190c4: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 400190c8: 80 a6 00 01 cmp %i0, %g1 400190cc: 1a 80 00 0c bcc 400190fc 400190d0: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 400190d4: 03 10 00 6c sethi %hi(0x4001b000), %g1 400190d8: e0 00 60 58 ld [ %g1 + 0x58 ], %l0 ! 4001b058 400190dc: 83 2e 20 06 sll %i0, 6, %g1 400190e0: b1 2e 20 03 sll %i0, 3, %i0 400190e4: b0 06 00 01 add %i0, %g1, %i0 400190e8: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 400190ec: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 400190f0: 80 88 61 00 btst 0x100, %g1 400190f4: 12 80 00 06 bne 4001910c 400190f8: 80 a6 60 00 cmp %i1, 0 400190fc: 7f ff d0 39 call 4000d1e0 <__errno> <== NOT EXECUTED 40019100: 01 00 00 00 nop <== NOT EXECUTED 40019104: 10 80 00 14 b 40019154 <== NOT EXECUTED 40019108: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 4001910c: 02 80 00 07 be 40019128 40019110: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 40019114: 02 80 00 1c be 40019184 40019118: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4001911c: 80 88 60 04 btst 4, %g1 40019120: 32 80 00 06 bne,a 40019138 40019124: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40019128: 7f ff d0 2e call 4000d1e0 <__errno> <== NOT EXECUTED 4001912c: 01 00 00 00 nop <== NOT EXECUTED 40019130: 10 80 00 09 b 40019154 <== NOT EXECUTED 40019134: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 40019138: c2 00 60 0c ld [ %g1 + 0xc ], %g1 4001913c: 80 a0 60 00 cmp %g1, 0 40019140: 12 80 00 08 bne 40019160 40019144: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 40019148: 7f ff d0 26 call 4000d1e0 <__errno> <== NOT EXECUTED 4001914c: 01 00 00 00 nop <== NOT EXECUTED 40019150: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40019154: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40019158: 10 80 00 0b b 40019184 <== NOT EXECUTED 4001915c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 40019160: 9f c0 40 00 call %g1 40019164: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 40019168: 80 a2 20 00 cmp %o0, 0 4001916c: 04 80 00 06 ble 40019184 40019170: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 40019174: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 40019178: 86 83 40 08 addcc %o5, %o0, %g3 4001917c: 84 43 00 02 addx %o4, %g2, %g2 40019180: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 40019184: 81 c7 e0 08 ret 40019188: 91 e8 00 08 restore %g0, %o0, %o0 40006838 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 40006838: 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 ); 4000683c: 03 10 00 7d sethi %hi(0x4001f400), %g1 40006840: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 ! 4001f414 40006844: 80 a6 00 01 cmp %i0, %g1 40006848: 1a 80 00 0c bcc 40006878 4000684c: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 40006850: 03 10 00 80 sethi %hi(0x40020000), %g1 40006854: e4 00 63 ac ld [ %g1 + 0x3ac ], %l2 ! 400203ac 40006858: 83 2e 20 06 sll %i0, 6, %g1 4000685c: b1 2e 20 03 sll %i0, 3, %i0 40006860: b0 06 00 01 add %i0, %g1, %i0 40006864: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 40006868: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 4000686c: 80 88 61 00 btst 0x100, %g1 40006870: 12 80 00 06 bne 40006888 40006874: 80 88 60 04 btst 4, %g1 40006878: 40 00 24 1f call 4000f8f4 <__errno> 4000687c: b0 10 3f ff mov -1, %i0 40006880: 10 80 00 1f b 400068fc 40006884: 82 10 20 09 mov 9, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 40006888: 02 80 00 1a be 400068f0 4000688c: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 40006890: 02 80 00 18 be 400068f0 40006894: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 40006898: 04 80 00 16 ble 400068f0 4000689c: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 400068a0: 14 80 00 14 bg 400068f0 400068a4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 400068a8: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 400068ac: c2 00 60 0c ld [ %g1 + 0xc ], %g1 400068b0: 80 a0 60 00 cmp %g1, 0 400068b4: 12 80 00 06 bne 400068cc 400068b8: 19 00 00 1f sethi %hi(0x7c00), %o4 rtems_set_errno_and_return_minus_one( ENOTSUP ); 400068bc: 40 00 24 0e call 4000f8f4 <__errno> <== NOT EXECUTED 400068c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400068c4: 10 80 00 0e b 400068fc <== NOT EXECUTED 400068c8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400068cc: 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 ) 400068d0: 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 ); 400068d4: 84 10 20 01 mov 1, %g2 400068d8: 88 10 20 00 clr %g4 400068dc: 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 ) 400068e0: da 00 40 00 ld [ %g1 ], %o5 400068e4: 80 a3 60 00 cmp %o5, 0 400068e8: 32 80 00 08 bne,a 40006908 400068ec: da 00 60 04 ld [ %g1 + 4 ], %o5 rtems_set_errno_and_return_minus_one( EINVAL ); 400068f0: 40 00 24 01 call 4000f8f4 <__errno> 400068f4: b0 10 3f ff mov -1, %i0 400068f8: 82 10 20 16 mov 0x16, %g1 400068fc: c2 22 00 00 st %g1, [ %o0 ] 40006900: 81 c7 e0 08 ret 40006904: 81 e8 00 00 restore if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 40006908: 80 a0 00 0d cmp %g0, %o5 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 4000690c: 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 ) 40006910: 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 ) 40006914: 80 a3 40 0c cmp %o5, %o4 40006918: 14 bf ff f6 bg 400068f0 4000691c: 84 08 80 0b and %g2, %o3, %g2 40006920: 80 a3 40 03 cmp %o5, %g3 40006924: 06 bf ff f3 bl 400068f0 40006928: 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++ ) { 4000692c: 80 a1 00 1a cmp %g4, %i2 40006930: 16 80 00 04 bge 40006940 40006934: 82 00 60 08 add %g1, 8, %g1 40006938: 10 bf ff ea b 400068e0 4000693c: 86 10 00 0d mov %o5, %g3 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 40006940: 80 88 a0 ff btst 0xff, %g2 <== NOT EXECUTED 40006944: a6 10 20 00 clr %l3 <== NOT EXECUTED 40006948: 12 bf ff ee bne 40006900 <== NOT EXECUTED 4000694c: 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 ) 40006950: d4 06 60 04 ld [ %i1 + 4 ], %o2 <== NOT EXECUTED 40006954: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 40006958: 02 80 00 17 be 400069b4 <== NOT EXECUTED 4000695c: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 40006960: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 <== NOT EXECUTED 40006964: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 40006968: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED 4000696c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40006970: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED if ( bytes < 0 ) 40006974: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40006978: 16 80 00 04 bge 40006988 <== NOT EXECUTED 4000697c: 01 00 00 00 nop <== NOT EXECUTED 40006980: 81 c7 e0 08 ret <== NOT EXECUTED 40006984: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 40006988: 02 80 00 07 be 400069a4 <== NOT EXECUTED 4000698c: a1 3a 20 1f sra %o0, 0x1f, %l0 <== NOT EXECUTED iop->offset += bytes; 40006990: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 40006994: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 40006998: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 4000699c: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 400069a0: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 400069a4: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED 400069a8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 400069ac: 12 80 00 05 bne 400069c0 <== NOT EXECUTED 400069b0: 01 00 00 00 nop <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 400069b4: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 400069b8: 06 bf ff e6 bl 40006950 <== NOT EXECUTED 400069bc: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 400069c0: 81 c7 e0 08 ret <== NOT EXECUTED 400069c4: 81 e8 00 00 restore <== NOT EXECUTED