4000e498 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 4000e498: 9d e3 bf 98 save %sp, -104, %sp /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 4000e49c: 40 00 04 a2 call 4000f724 4000e4a0: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4000e4a4: 91 2a 20 10 sll %o0, 0x10, %o0 4000e4a8: 91 32 20 10 srl %o0, 0x10, %o0 4000e4ac: 80 a2 20 00 cmp %o0, 0 4000e4b0: 22 80 00 0c be,a 4000e4e0 4000e4b4: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] 4000e4b8: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 4000e4bc: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 4000e4c0: 22 80 00 08 be,a 4000e4e0 <== NOT EXECUTED 4000e4c4: f2 34 20 38 sth %i1, [ %l0 + 0x38 ] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 4000e4c8: 40 00 16 9a call 40013f30 <__errno> <== NOT EXECUTED 4000e4cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000e4d0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 4000e4d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000e4d8: 81 c7 e0 08 ret <== NOT EXECUTED 4000e4dc: 81 e8 00 00 restore <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; 4000e4e0: f4 34 20 3a sth %i2, [ %l0 + 0x3a ] IMFS_update_ctime( jnode ); 4000e4e4: 90 07 bf f8 add %fp, -8, %o0 4000e4e8: 7f ff d4 ed call 4000389c 4000e4ec: 92 10 20 00 clr %o1 4000e4f0: c2 07 bf f8 ld [ %fp + -8 ], %g1 4000e4f4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 4000e4f8: 81 c7 e0 08 ret 4000e4fc: 91 e8 20 00 restore %g0, 0, %o0 4000cdbc : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4000cdbc: 9d e3 bf a0 save %sp, -96, %sp 4000cdc0: 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 ) 4000cdc4: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 4000cdc8: 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 ) 4000cdcc: 02 80 00 40 be 4000cecc 4000cdd0: 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 ); 4000cdd4: 03 10 00 70 sethi %hi(0x4001c000), %g1 4000cdd8: c2 00 60 c8 ld [ %g1 + 0xc8 ], %g1 ! 4001c0c8 4000cddc: 90 10 00 19 mov %i1, %o0 4000cde0: d4 10 60 2c lduh [ %g1 + 0x2c ], %o2 4000cde4: b6 2e c0 0a andn %i3, %o2, %i3 4000cde8: 95 2e e0 10 sll %i3, 0x10, %o2 4000cdec: 7f ff ff c8 call 4000cd0c 4000cdf0: 95 32 a0 10 srl %o2, 0x10, %o2 if ( !node ) 4000cdf4: b0 92 20 00 orcc %o0, 0, %i0 4000cdf8: 02 80 00 35 be 4000cecc 4000cdfc: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 4000ce00: 80 a6 60 06 cmp %i1, 6 4000ce04: 38 80 00 20 bgu,a 4000ce84 4000ce08: 11 10 00 6d sethi %hi(0x4001b400), %o0 <== NOT EXECUTED 4000ce0c: b3 2e 60 02 sll %i1, 2, %i1 4000ce10: 03 10 00 33 sethi %hi(0x4000cc00), %g1 4000ce14: 82 10 60 f0 or %g1, 0xf0, %g1 ! 4000ccf0 4000ce18: c2 00 40 19 ld [ %g1 + %i1 ], %g1 4000ce1c: 81 c0 40 00 jmp %g1 4000ce20: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4000ce24: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 4000ce28: 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); 4000ce2c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 4000ce30: 82 06 20 50 add %i0, 0x50, %g1 4000ce34: 10 80 00 1b b 4000cea0 4000ce38: 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; 4000ce3c: 10 80 00 05 b 4000ce50 4000ce40: 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; 4000ce44: 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; 4000ce48: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 4000ce4c: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 4000ce50: 10 80 00 14 b 4000cea0 4000ce54: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 4000ce58: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 4000ce5c: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 4000ce60: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 4000ce64: c0 26 20 50 clr [ %i0 + 0x50 ] 4000ce68: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 4000ce6c: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 4000ce70: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 4000ce74: 10 80 00 0b b 4000cea0 4000ce78: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 4000ce7c: 10 80 00 09 b 4000cea0 4000ce80: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 4000ce84: 15 10 00 6d sethi %hi(0x4001b400), %o2 <== NOT EXECUTED 4000ce88: 17 10 00 6b sethi %hi(0x4001ac00), %o3 <== NOT EXECUTED 4000ce8c: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED 4000ce90: 94 12 a3 b0 or %o2, 0x3b0, %o2 <== NOT EXECUTED 4000ce94: 96 12 e2 38 or %o3, 0x238, %o3 <== NOT EXECUTED 4000ce98: 7f ff d3 db call 40001e04 <__assert_func> <== NOT EXECUTED 4000ce9c: 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; 4000cea0: 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; 4000cea4: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 4000cea8: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 4000ceac: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 4000ceb0: 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 ); 4000ceb4: 90 02 20 50 add %o0, 0x50, %o0 4000ceb8: 82 00 60 01 inc %g1 4000cebc: c2 20 80 00 st %g1, [ %g2 ] 4000cec0: c2 26 20 34 st %g1, [ %i0 + 0x34 ] 4000cec4: 7f ff e4 2e call 40005f7c <_Chain_Append> 4000cec8: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 4000cecc: 81 c7 e0 08 ret 4000ced0: 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 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003ae8: 15 10 00 91 sethi %hi(0x40024400), %o2 <== NOT EXECUTED 40003aec: 17 10 00 91 sethi %hi(0x40024400), %o3 <== NOT EXECUTED 40003af0: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED 40003af4: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 40003af8: 96 12 e1 28 or %o3, 0x128, %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 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003b10: 15 10 00 91 sethi %hi(0x40024400), %o2 <== NOT EXECUTED 40003b14: 17 10 00 91 sethi %hi(0x40024400), %o3 <== NOT EXECUTED 40003b18: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED 40003b1c: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 40003b20: 96 12 e1 38 or %o3, 0x138, %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 98 sethi %hi(0x40026000), %l4 40003b3c: 11 10 00 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003b40: 15 10 00 91 sethi %hi(0x40024400), %o2 <== NOT EXECUTED 40003b44: 17 10 00 91 sethi %hi(0x40024400), %o3 <== NOT EXECUTED 40003b48: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED 40003b4c: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 40003b50: 96 12 e1 48 or %o3, 0x148, %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 91 sethi %hi(0x40024400), %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 21 c0 or %l4, 0x1c0, %l4 40003b68: a6 14 e1 70 or %l3, 0x170, %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 3e 82 call 4001358c 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 40009348 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 40009348: 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 ) 4000934c: 2b 10 00 70 sethi %hi(0x4001c000), %l5 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 40009350: 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 ) 40009354: aa 15 60 c8 or %l5, 0xc8, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 40009358: e2 06 c0 00 ld [ %i3 ], %l1 4000935c: ac 10 20 01 mov 1, %l6 40009360: 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 ); 40009364: 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) ) { 40009368: 10 80 00 6a b 40009510 4000936c: a8 07 bf fc add %fp, -4, %l4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 40009370: 90 04 00 12 add %l0, %l2, %o0 40009374: 92 10 00 19 mov %i1, %o1 40009378: 94 10 00 13 mov %l3, %o2 4000937c: 40 00 02 3e call 40009c74 40009380: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 40009384: 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 ); 40009388: ac 10 00 08 mov %o0, %l6 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 4000938c: 80 a0 60 00 cmp %g1, 0 40009390: 02 80 00 56 be 400094e8 40009394: f0 07 bf fc ld [ %fp + -4 ], %i0 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 40009398: 80 a2 20 00 cmp %o0, 0 4000939c: 22 80 00 10 be,a 400093dc 400093a0: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 400093a4: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 400093a8: 80 a0 60 01 cmp %g1, 1 400093ac: 32 80 00 0c bne,a 400093dc 400093b0: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 400093b4: 90 10 00 1b mov %i3, %o0 400093b8: 7f ff ff 7e call 400091b0 400093bc: 92 10 20 01 mov 1, %o1 400093c0: 80 a2 20 00 cmp %o0, 0 400093c4: 32 80 00 06 bne,a 400093dc 400093c8: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 400093cc: 40 00 14 dc call 4000e73c <__errno> 400093d0: b0 10 3f ff mov -1, %i0 400093d4: 10 80 00 4c b 40009504 400093d8: 82 10 20 0d mov 0xd, %g1 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 400093dc: b2 26 40 18 sub %i1, %i0, %i1 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 400093e0: 80 a5 a0 03 cmp %l6, 3 400093e4: 02 80 00 1b be 40009450 400093e8: e2 06 c0 00 ld [ %i3 ], %l1 400093ec: 80 a5 a0 04 cmp %l6, 4 400093f0: 02 80 00 42 be 400094f8 400093f4: 80 a5 a0 02 cmp %l6, 2 400093f8: 12 80 00 47 bne 40009514 400093fc: 80 a5 a0 04 cmp %l6, 4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 40009400: c2 05 40 00 ld [ %l5 ], %g1 40009404: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 40009408: 80 a4 40 01 cmp %l1, %g1 4000940c: 02 bf ff da be 40009374 40009410: 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) { 40009414: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 40009418: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 4000941c: 80 a4 40 01 cmp %l1, %g1 40009420: 32 80 00 04 bne,a 40009430 40009424: e2 04 60 08 ld [ %l1 + 8 ], %l1 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 40009428: 10 80 00 47 b 40009544 4000942c: 92 02 60 08 add %o1, 8, %o1 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 40009430: 80 a4 60 00 cmp %l1, 0 40009434: 32 bf ff cf bne,a 40009370 40009438: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 4000943c: 40 00 14 c0 call 4000e73c <__errno> 40009440: b0 10 3f ff mov -1, %i0 40009444: ec 22 00 00 st %l6, [ %o0 ] 40009448: 81 c7 e0 08 ret 4000944c: 81 e8 00 00 restore case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 40009450: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 40009454: 80 a0 60 03 cmp %g1, 3 40009458: 12 80 00 0a bne 40009480 4000945c: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 40009460: 90 10 00 1b mov %i3, %o0 40009464: 7f ff ff 6b call 40009210 40009468: 92 10 20 00 clr %o1 node = pathloc->node_access; 4000946c: e2 06 c0 00 ld [ %i3 ], %l1 if ( !node ) 40009470: 80 a4 60 00 cmp %l1, 0 40009474: 32 80 00 0d bne,a 400094a8 40009478: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 4000947c: 30 80 00 0e b,a 400094b4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 40009480: 32 80 00 0a bne,a 400094a8 40009484: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 40009488: 90 10 00 1b mov %i3, %o0 4000948c: 7f ff ff 79 call 40009270 40009490: 92 10 20 00 clr %o1 node = pathloc->node_access; 40009494: e2 06 c0 00 ld [ %i3 ], %l1 if ( result == -1 ) 40009498: 80 a2 3f ff cmp %o0, -1 4000949c: 02 bf ff eb be 40009448 400094a0: b0 10 00 08 mov %o0, %i0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 400094a4: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 400094a8: 80 a0 60 01 cmp %g1, 1 400094ac: 22 80 00 06 be,a 400094c4 400094b0: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 400094b4: 40 00 14 a2 call 4000e73c <__errno> 400094b8: b0 10 3f ff mov -1, %i0 400094bc: 10 80 00 12 b 40009504 400094c0: 82 10 20 14 mov 0x14, %g1 /* * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { 400094c4: 80 a2 60 00 cmp %o1, 0 400094c8: 12 80 00 1f bne 40009544 400094cc: 92 02 60 1c add %o1, 0x1c, %o1 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 400094d0: 90 10 00 11 mov %l1, %o0 400094d4: 40 00 01 bd call 40009bc8 400094d8: 92 10 00 13 mov %l3, %o1 if ( !node ) 400094dc: a2 92 20 00 orcc %o0, 0, %l1 400094e0: 32 bf ff a4 bne,a 40009370 400094e4: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 400094e8: 40 00 14 95 call 4000e73c <__errno> 400094ec: b0 10 3f ff mov -1, %i0 400094f0: 10 80 00 05 b 40009504 400094f4: 82 10 20 02 mov 2, %g1 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 400094f8: 40 00 14 91 call 4000e73c <__errno> 400094fc: b0 10 3f ff mov -1, %i0 40009500: 82 10 20 5b mov 0x5b, %g1 40009504: c2 22 00 00 st %g1, [ %o0 ] 40009508: 81 c7 e0 08 ret 4000950c: 81 e8 00 00 restore /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 40009510: 80 a5 a0 04 cmp %l6, 4 40009514: 02 80 00 04 be 40009524 40009518: 80 a5 a0 00 cmp %l6, 0 4000951c: 12 bf ff 96 bne 40009374 40009520: 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 ) { 40009524: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 40009528: 80 a0 60 01 cmp %g1, 1 4000952c: 12 80 00 19 bne 40009590 40009530: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 40009534: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 40009538: 80 a2 60 00 cmp %o1, 0 4000953c: 02 80 00 15 be 40009590 40009540: 92 02 60 1c add %o1, 0x1c, %o1 newloc = node->info.directory.mt_fs->mt_fs_root; 40009544: a2 07 bf e8 add %fp, -24, %l1 40009548: 94 10 20 14 mov 0x14, %o2 4000954c: 40 00 16 b7 call 4000f028 40009550: 90 10 00 11 mov %l1, %o0 *pathloc = newloc; 40009554: 92 10 00 11 mov %l1, %o1 40009558: 94 10 20 14 mov 0x14, %o2 4000955c: 40 00 16 b3 call 4000f028 40009560: 90 10 00 1b mov %i3, %o0 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 40009564: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 40009568: d0 07 bf fc ld [ %fp + -4 ], %o0 4000956c: c2 00 40 00 ld [ %g1 ], %g1 40009570: 92 06 40 08 add %i1, %o0, %o1 40009574: 94 10 00 1a mov %i2, %o2 40009578: 90 24 80 08 sub %l2, %o0, %o0 4000957c: 96 10 00 1b mov %i3, %o3 40009580: 9f c0 40 00 call %g1 40009584: 90 04 00 08 add %l0, %o0, %o0 40009588: 81 c7 e0 08 ret 4000958c: 91 e8 00 08 restore %g0, %o0, %o0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 40009590: 7f ff fe ec call 40009140 40009594: 90 10 00 1b mov %i3, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 40009598: 92 10 00 1a mov %i2, %o1 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 4000959c: b0 10 00 08 mov %o0, %i0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 400095a0: 7f ff ff 04 call 400091b0 400095a4: 90 10 00 1b mov %i3, %o0 400095a8: 80 a2 20 00 cmp %o0, 0 400095ac: 12 80 00 06 bne 400095c4 400095b0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 400095b4: 40 00 14 62 call 4000e73c <__errno> 400095b8: b0 10 3f ff mov -1, %i0 ! ffffffff 400095bc: 82 10 20 0d mov 0xd, %g1 400095c0: c2 22 00 00 st %g1, [ %o0 ] return result; } 400095c4: 81 c7 e0 08 ret 400095c8: 81 e8 00 00 restore 40009688 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 40009688: 9d e3 bf 60 save %sp, -160, %sp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 4000968c: e0 06 40 00 ld [ %i1 ], %l0 /* * Get the path length. */ pathlen = strlen( path ); 40009690: 90 10 00 18 mov %i0, %o0 40009694: 40 00 17 e1 call 4000f618 40009698: 2b 10 00 70 sethi %hi(0x4001c000), %l5 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 4000969c: a2 10 00 18 mov %i0, %l1 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 400096a0: a4 10 20 00 clr %l2 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 400096a4: a8 07 bf c0 add %fp, -64, %l4 400096a8: ac 07 bf fc add %fp, -4, %l6 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 400096ac: a6 10 00 08 mov %o0, %l3 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 400096b0: aa 15 60 c8 or %l5, 0xc8, %l5 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 400096b4: 92 10 00 13 mov %l3, %o1 400096b8: 90 04 40 12 add %l1, %l2, %o0 400096bc: 94 10 00 14 mov %l4, %o2 400096c0: 40 00 01 6d call 40009c74 400096c4: 96 10 00 16 mov %l6, %o3 pathlen -= len; i += len; if ( !pathloc->node_access ) 400096c8: c2 06 40 00 ld [ %i1 ], %g1 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 400096cc: f0 07 bf fc ld [ %fp + -4 ], %i0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 400096d0: ae 10 00 08 mov %o0, %l7 pathlen -= len; i += len; if ( !pathloc->node_access ) 400096d4: 80 a0 60 00 cmp %g1, 0 400096d8: 02 80 00 82 be 400098e0 400096dc: a6 24 c0 18 sub %l3, %i0, %l3 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 400096e0: 80 a2 20 00 cmp %o0, 0 400096e4: 22 80 00 10 be,a 40009724 400096e8: a4 04 80 18 add %l2, %i0, %l2 if ( node->type == IMFS_DIRECTORY ) 400096ec: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 400096f0: 80 a0 60 01 cmp %g1, 1 400096f4: 32 80 00 0c bne,a 40009724 400096f8: a4 04 80 18 add %l2, %i0, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 400096fc: 90 10 00 19 mov %i1, %o0 40009700: 7f ff fe ac call 400091b0 40009704: 92 10 20 01 mov 1, %o1 40009708: 80 a2 20 00 cmp %o0, 0 4000970c: 32 80 00 06 bne,a 40009724 40009710: a4 04 80 18 add %l2, %i0, %l2 rtems_set_errno_and_return_minus_one( EACCES ); 40009714: 40 00 14 0a call 4000e73c <__errno> 40009718: b0 10 3f ff mov -1, %i0 4000971c: 10 80 00 83 b 40009928 40009720: 82 10 20 0d mov 0xd, %g1 node = pathloc->node_access; switch( type ) { 40009724: 80 a5 e0 02 cmp %l7, 2 40009728: 02 80 00 0f be 40009764 4000972c: e0 06 40 00 ld [ %i1 ], %l0 40009730: 80 a5 e0 02 cmp %l7, 2 40009734: 18 80 00 07 bgu 40009750 40009738: 80 a5 e0 03 cmp %l7, 3 4000973c: 80 a5 e0 00 cmp %l7, 0 40009740: 02 80 00 56 be 40009898 40009744: 92 10 00 13 mov %l3, %o1 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 40009748: 10 bf ff dd b 400096bc 4000974c: 90 04 40 12 add %l1, %l2, %o0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 40009750: 02 80 00 19 be 400097b4 40009754: 80 a5 e0 04 cmp %l7, 4 40009758: 12 bf ff d8 bne 400096b8 4000975c: 92 10 00 13 mov %l3, %o1 40009760: 30 80 00 52 b,a 400098a8 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 40009764: c2 05 40 00 ld [ %l5 ], %g1 40009768: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 4000976c: 80 a4 00 01 cmp %l0, %g1 40009770: 02 bf ff d2 be 400096b8 40009774: 92 10 00 13 mov %l3, %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 40009778: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 4000977c: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 40009780: 80 a4 00 01 cmp %l0, %g1 40009784: 32 80 00 04 bne,a 40009794 40009788: e0 04 20 08 ld [ %l0 + 8 ], %l0 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 4000978c: 10 80 00 2a b 40009834 40009790: 92 02 60 08 add %o1, 8, %o1 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 40009794: 80 a4 20 00 cmp %l0, 0 40009798: 32 bf ff c7 bne,a 400096b4 4000979c: e0 26 40 00 st %l0, [ %i1 ] rtems_set_errno_and_return_minus_one( ENOENT ); 400097a0: 40 00 13 e7 call 4000e73c <__errno> 400097a4: b0 10 3f ff mov -1, %i0 400097a8: ee 22 00 00 st %l7, [ %o0 ] 400097ac: 81 c7 e0 08 ret 400097b0: 81 e8 00 00 restore pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 400097b4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 400097b8: 80 a0 60 03 cmp %g1, 3 400097bc: 12 80 00 0a bne 400097e4 400097c0: 80 a0 60 04 cmp %g1, 4 result = IMFS_evaluate_link( pathloc, 0 ); 400097c4: 90 10 00 19 mov %i1, %o0 400097c8: 7f ff ff 81 call 400095cc 400097cc: 92 10 20 00 clr %o1 if ( result == -1 ) 400097d0: 80 a2 3f ff cmp %o0, -1 400097d4: 12 80 00 0c bne 40009804 400097d8: b0 10 00 08 mov %o0, %i0 400097dc: 81 c7 e0 08 ret <== NOT EXECUTED 400097e0: 81 e8 00 00 restore <== NOT EXECUTED return -1; } else if ( node->type == IMFS_SYM_LINK ) { 400097e4: 32 80 00 09 bne,a 40009808 400097e8: d0 06 40 00 ld [ %i1 ], %o0 result = IMFS_evaluate_link( pathloc, 0 ); 400097ec: 90 10 00 19 mov %i1, %o0 400097f0: 7f ff ff 77 call 400095cc 400097f4: 92 10 20 00 clr %o1 if ( result == -1 ) 400097f8: 80 a2 3f ff cmp %o0, -1 400097fc: 02 bf ff ec be 400097ac 40009800: b0 10 00 08 mov %o0, %i0 return -1; } node = pathloc->node_access; 40009804: d0 06 40 00 ld [ %i1 ], %o0 if ( !node ) 40009808: 80 a2 20 00 cmp %o0, 0 4000980c: 02 80 00 44 be 4000991c 40009810: 01 00 00 00 nop /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 40009814: c2 02 20 48 ld [ %o0 + 0x48 ], %g1 40009818: 80 a0 60 01 cmp %g1, 1 4000981c: 12 80 00 40 bne 4000991c 40009820: 01 00 00 00 nop /* * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { 40009824: d2 02 20 5c ld [ %o0 + 0x5c ], %o1 40009828: 80 a2 60 00 cmp %o1, 0 4000982c: 02 80 00 14 be 4000987c 40009830: 92 02 60 1c add %o1, 0x1c, %o1 newloc = node->info.directory.mt_fs->mt_fs_root; 40009834: a0 07 bf e8 add %fp, -24, %l0 40009838: 94 10 20 14 mov 0x14, %o2 4000983c: 40 00 15 fb call 4000f028 40009840: 90 10 00 10 mov %l0, %o0 *pathloc = newloc; 40009844: 92 10 00 10 mov %l0, %o1 40009848: 94 10 20 14 mov 0x14, %o2 4000984c: 40 00 15 f7 call 4000f028 40009850: 90 10 00 19 mov %i1, %o0 return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 40009854: c2 06 60 0c ld [ %i1 + 0xc ], %g1 40009858: c4 07 bf fc ld [ %fp + -4 ], %g2 4000985c: c2 00 60 04 ld [ %g1 + 4 ], %g1 40009860: a4 24 80 02 sub %l2, %g2, %l2 40009864: 92 10 00 19 mov %i1, %o1 40009868: 90 04 40 12 add %l1, %l2, %o0 4000986c: 9f c0 40 00 call %g1 40009870: 94 10 00 1a mov %i2, %o2 40009874: 81 c7 e0 08 ret 40009878: 91 e8 00 08 restore %g0, %o0, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 4000987c: 40 00 00 d3 call 40009bc8 40009880: 92 10 00 14 mov %l4, %o1 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 40009884: a0 92 20 00 orcc %o0, 0, %l0 40009888: 02 80 00 0c be 400098b8 4000988c: c4 07 bf fc ld [ %fp + -4 ], %g2 done = true; else pathloc->node_access = node; 40009890: 10 bf ff 89 b 400096b4 40009894: e0 26 40 00 st %l0, [ %i1 ] break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 40009898: 40 00 13 a9 call 4000e73c <__errno> 4000989c: b0 10 3f ff mov -1, %i0 400098a0: 10 80 00 22 b 40009928 400098a4: 82 10 20 11 mov 0x11, %g1 break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 400098a8: 40 00 13 a5 call 4000e73c <__errno> 400098ac: b0 10 3f ff mov -1, %i0 400098b0: 10 80 00 1e b 40009928 400098b4: 82 10 20 5b mov 0x5b, %g1 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 400098b8: 82 04 40 12 add %l1, %l2, %g1 400098bc: a4 24 80 02 sub %l2, %g2, %l2 400098c0: a2 04 40 12 add %l1, %l2, %l1 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 400098c4: 10 80 00 0b b 400098f0 400098c8: e2 26 80 00 st %l1, [ %i2 ] if ( !IMFS_is_separator( path[ i ] ) ) 400098cc: 80 a0 a0 5c cmp %g2, 0x5c 400098d0: 02 80 00 08 be 400098f0 400098d4: 80 a0 a0 2f cmp %g2, 0x2f 400098d8: 22 80 00 07 be,a 400098f4 400098dc: c4 48 40 00 ldsb [ %g1 ], %g2 rtems_set_errno_and_return_minus_one( ENOENT ); 400098e0: 40 00 13 97 call 4000e73c <__errno> 400098e4: b0 10 3f ff mov -1, %i0 400098e8: 10 80 00 10 b 40009928 400098ec: 82 10 20 02 mov 2, %g1 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 400098f0: c4 48 40 00 ldsb [ %g1 ], %g2 400098f4: 80 a0 a0 00 cmp %g2, 0 400098f8: 12 bf ff f5 bne 400098cc 400098fc: 82 00 60 01 inc %g1 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 40009900: 7f ff fe 10 call 40009140 40009904: 90 10 00 19 mov %i1, %o0 /* * The returned node must be a directory */ node = pathloc->node_access; 40009908: c2 06 40 00 ld [ %i1 ], %g1 4000990c: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 40009910: 80 a0 60 01 cmp %g1, 1 40009914: 02 80 00 08 be 40009934 40009918: b0 10 00 08 mov %o0, %i0 if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 4000991c: 40 00 13 88 call 4000e73c <__errno> 40009920: b0 10 3f ff mov -1, %i0 40009924: 82 10 20 14 mov 0x14, %g1 40009928: c2 22 00 00 st %g1, [ %o0 ] 4000992c: 81 c7 e0 08 ret 40009930: 81 e8 00 00 restore /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 40009934: 90 10 00 19 mov %i1, %o0 40009938: 7f ff fe 1e call 400091b0 4000993c: 92 10 20 03 mov 3, %o1 40009940: 80 a2 20 00 cmp %o0, 0 40009944: 12 80 00 06 bne 4000995c 40009948: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 4000994c: 40 00 13 7c call 4000e73c <__errno> 40009950: b0 10 3f ff mov -1, %i0 ! ffffffff 40009954: 82 10 20 0d mov 0xd, %g1 40009958: c2 22 00 00 st %g1, [ %o0 ] return result; } 4000995c: 81 c7 e0 08 ret 40009960: 81 e8 00 00 restore 40009210 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 40009210: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 40009214: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 40009218: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 4000921c: 80 a0 a0 03 cmp %g2, 3 40009220: 22 80 00 04 be,a 40009230 40009224: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 rtems_fatal_error_occurred (0xABCD0000); 40009228: 7f ff f2 7a call 40005c10 <== NOT EXECUTED 4000922c: 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 ); 40009230: 90 10 00 18 mov %i0, %o0 40009234: 7f ff ff c3 call 40009140 40009238: c2 26 00 00 st %g1, [ %i0 ] /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 4000923c: 90 10 00 18 mov %i0, %o0 40009240: 92 10 00 19 mov %i1, %o1 40009244: 7f ff ff db call 400091b0 40009248: b0 10 20 00 clr %i0 4000924c: 80 a2 20 00 cmp %o0, 0 40009250: 12 80 00 06 bne 40009268 40009254: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 40009258: 40 00 15 39 call 4000e73c <__errno> <== NOT EXECUTED 4000925c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40009260: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 40009264: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 40009268: 81 c7 e0 08 ret 4000926c: 81 e8 00 00 restore 400091b0 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 400091b0: 9d e3 bf a0 save %sp, -96, %sp } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 400091b4: 40 00 04 64 call 4000a344 400091b8: e0 06 00 00 ld [ %i0 ], %l0 st_gid = getegid(); 400091bc: 40 00 04 5e call 4000a334 400091c0: a2 10 00 08 mov %o0, %l1 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 400091c4: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 400091c8: a3 2c 60 10 sll %l1, 0x10, %l1 400091cc: a3 34 60 10 srl %l1, 0x10, %l1 400091d0: 80 a4 40 01 cmp %l1, %g1 400091d4: 02 80 00 09 be 400091f8 400091d8: 83 2e 60 06 sll %i1, 6, %g1 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 400091dc: c2 14 20 3a lduh [ %l0 + 0x3a ], %g1 400091e0: 91 2a 20 10 sll %o0, 0x10, %o0 400091e4: 91 32 20 10 srl %o0, 0x10, %o0 400091e8: 80 a2 00 01 cmp %o0, %g1 400091ec: 02 80 00 03 be 400091f8 400091f0: 83 2e 60 03 sll %i1, 3, %g1 400091f4: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED flags_to_test <<= 3; 400091f8: c4 14 20 2e lduh [ %l0 + 0x2e ], %g2 400091fc: 82 28 40 02 andn %g1, %g2, %g1 */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 40009200: 80 a0 00 01 cmp %g0, %g1 40009204: b0 60 3f ff subx %g0, -1, %i0 40009208: 81 c7 e0 08 ret 4000920c: 81 e8 00 00 restore 40009270 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 40009270: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 40009274: e2 06 00 00 ld [ %i0 ], %l1 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 40009278: a0 10 00 18 mov %i0, %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 4000927c: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 40009280: 80 a0 60 04 cmp %g1, 4 40009284: 12 80 00 07 bne 400092a0 40009288: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 4000928c: c2 04 60 08 ld [ %l1 + 8 ], %g1 40009290: 80 a0 60 00 cmp %g1, 0 40009294: 32 80 00 05 bne,a 400092a8 40009298: c2 26 00 00 st %g1, [ %i0 ] rtems_fatal_error_occurred( 0xBAD00000 ); 4000929c: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 400092a0: 7f ff f2 5c call 40005c10 <== NOT EXECUTED 400092a4: 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( 400092a8: c2 04 60 50 ld [ %l1 + 0x50 ], %g1 400092ac: c2 48 40 00 ldsb [ %g1 ], %g1 400092b0: 80 a0 60 5c cmp %g1, 0x5c 400092b4: 02 80 00 06 be 400092cc 400092b8: 80 a0 60 2f cmp %g1, 0x2f 400092bc: 02 80 00 04 be 400092cc 400092c0: 80 a0 60 00 cmp %g1, 0 400092c4: 12 80 00 09 bne 400092e8 400092c8: 82 10 20 00 clr %g1 400092cc: 03 10 00 70 sethi %hi(0x4001c000), %g1 400092d0: d2 00 60 c8 ld [ %g1 + 0xc8 ], %o1 ! 4001c0c8 400092d4: 90 10 00 10 mov %l0, %o0 400092d8: 92 02 60 18 add %o1, 0x18, %o1 400092dc: 40 00 17 53 call 4000f028 400092e0: 94 10 20 14 mov 0x14, %o2 400092e4: 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] ), 400092e8: e2 04 60 50 ld [ %l1 + 0x50 ], %l1 400092ec: a2 04 40 01 add %l1, %g1, %l1 400092f0: 40 00 18 ca call 4000f618 400092f4: 90 10 00 11 mov %l1, %o0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 400092f8: 94 10 00 19 mov %i1, %o2 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 400092fc: 92 10 00 08 mov %o0, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 40009300: 96 10 00 10 mov %l0, %o3 40009304: 40 00 00 11 call 40009348 40009308: 90 10 00 11 mov %l1, %o0 4000930c: b0 10 00 08 mov %o0, %i0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 40009310: 7f ff ff 8c call 40009140 40009314: 90 10 00 10 mov %l0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 40009318: 90 10 00 10 mov %l0, %o0 4000931c: 7f ff ff a5 call 400091b0 40009320: 92 10 00 19 mov %i1, %o1 40009324: 80 a2 20 00 cmp %o0, 0 40009328: 12 80 00 06 bne 40009340 4000932c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EACCES ); 40009330: 40 00 15 03 call 4000e73c <__errno> <== NOT EXECUTED 40009334: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40009338: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 4000933c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return result; } 40009340: 81 c7 e0 08 ret 40009344: 81 e8 00 00 restore 4000ced4 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 4000ced4: 9d e3 bf 98 save %sp, -104, %sp /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 4000ced8: 7f ff f5 1b call 4000a344 4000cedc: e0 06 00 00 ld [ %i0 ], %l0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 4000cee0: 91 2a 20 10 sll %o0, 0x10, %o0 4000cee4: 91 32 20 10 srl %o0, 0x10, %o0 4000cee8: 80 a2 20 00 cmp %o0, 0 4000ceec: 22 80 00 0c be,a 4000cf1c 4000cef0: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 4000cef4: c2 14 20 38 lduh [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 4000cef8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 4000cefc: 22 80 00 08 be,a 4000cf1c <== NOT EXECUTED 4000cf00: c2 14 20 2e lduh [ %l0 + 0x2e ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 4000cf04: 40 00 06 0e call 4000e73c <__errno> <== NOT EXECUTED 4000cf08: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000cf0c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 4000cf10: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000cf14: 81 c7 e0 08 ret <== NOT EXECUTED 4000cf18: 81 e8 00 00 restore <== NOT EXECUTED */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); 4000cf1c: 90 07 bf f8 add %fp, -8, %o0 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 4000cf20: 82 08 70 00 and %g1, -4096, %g1 IMFS_update_ctime( jnode ); 4000cf24: 92 10 20 00 clr %o1 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 4000cf28: b2 0e 6f ff and %i1, 0xfff, %i1 4000cf2c: b2 16 40 01 or %i1, %g1, %i1 IMFS_update_ctime( jnode ); 4000cf30: 7f ff f5 09 call 4000a354 4000cf34: f2 34 20 2e sth %i1, [ %l0 + 0x2e ] 4000cf38: c2 07 bf f8 ld [ %fp + -8 ], %g1 4000cf3c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] return 0; } 4000cf40: 81 c7 e0 08 ret 4000cf44: 91 e8 20 00 restore %g0, 0, %o0 40009b0c : } int IMFS_fifo_close( rtems_libio_t *iop ) { 40009b0c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 40009b10: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 40009b14: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 40009b18: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 40009b1c: 40 00 0b 36 call 4000c7f4 <== NOT EXECUTED 40009b20: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED if (! err) { 40009b24: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 40009b28: 12 80 00 12 bne 40009b70 <== NOT EXECUTED 40009b2c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 40009b30: 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) 40009b34: 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; 40009b38: 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) 40009b3c: 40 00 02 3e call 4000a434 <== NOT EXECUTED 40009b40: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED 40009b44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40009b48: 12 80 00 10 bne 40009b88 <== NOT EXECUTED 40009b4c: 01 00 00 00 nop <== NOT EXECUTED 40009b50: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 40009b54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40009b58: 12 80 00 0c bne 40009b88 <== NOT EXECUTED 40009b5c: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 40009b60: 40 00 01 90 call 4000a1a0 <== NOT EXECUTED 40009b64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 40009b68: 81 c7 e0 08 ret <== NOT EXECUTED 40009b6c: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 40009b70: 16 80 00 06 bge 40009b88 <== NOT EXECUTED 40009b74: 01 00 00 00 nop <== NOT EXECUTED 40009b78: 40 00 12 f1 call 4000e73c <__errno> <== NOT EXECUTED 40009b7c: b0 20 00 18 neg %i0 <== NOT EXECUTED 40009b80: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 40009b84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 40009b88: 81 c7 e0 08 ret <== NOT EXECUTED 40009b8c: 81 e8 00 00 restore <== NOT EXECUTED 400099bc : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 400099bc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 400099c0: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 400099c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED int err; if (command == FIONBIO) { 400099c8: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 400099cc: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED int err; if (command == FIONBIO) { 400099d0: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 400099d4: 12 80 00 0f bne 40009a10 <== NOT EXECUTED 400099d8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (buffer == NULL) 400099dc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 400099e0: 02 80 00 12 be 40009a28 <== NOT EXECUTED 400099e4: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 400099e8: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 400099ec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 400099f0: 02 80 00 04 be 40009a00 <== NOT EXECUTED 400099f4: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 400099f8: 10 80 00 03 b 40009a04 <== NOT EXECUTED 400099fc: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 40009a00: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 40009a04: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 40009a08: 81 c7 e0 08 ret <== NOT EXECUTED 40009a0c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 40009a10: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 40009a14: 40 00 0a 75 call 4000c3e8 <== NOT EXECUTED 40009a18: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 40009a1c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 40009a20: 16 80 00 06 bge 40009a38 <== NOT EXECUTED 40009a24: 01 00 00 00 nop <== NOT EXECUTED 40009a28: 40 00 13 45 call 4000e73c <__errno> <== NOT EXECUTED 40009a2c: b0 20 00 18 neg %i0 <== NOT EXECUTED 40009a30: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 40009a34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 40009a38: 81 c7 e0 08 ret <== NOT EXECUTED 40009a3c: 81 e8 00 00 restore <== NOT EXECUTED 40009964 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 40009964: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 40009968: 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 ) { 4000996c: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 40009970: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 40009974: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 40009978: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000997c: 40 00 0a 7e call 4000c374 <== NOT EXECUTED 40009980: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 40009984: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 40009988: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 4000998c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40009990: 16 80 00 08 bge 400099b0 <== NOT EXECUTED 40009994: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 40009998: 40 00 13 69 call 4000e73c <__errno> <== NOT EXECUTED 4000999c: a0 20 00 10 neg %l0 <== NOT EXECUTED 400099a0: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 400099a4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 400099a8: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 400099ac: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED } 400099b0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 400099b4: 81 c7 e0 08 ret <== NOT EXECUTED 400099b8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED 40009aa8 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 40009aa8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 40009aac: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 40009ab0: 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); 40009ab4: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 40009ab8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40009abc: 40 00 0a 64 call 4000c44c <== NOT EXECUTED 40009ac0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 40009ac4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 40009ac8: 04 80 00 08 ble 40009ae8 <== NOT EXECUTED 40009acc: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 40009ad0: 40 00 02 21 call 4000a354 <== NOT EXECUTED 40009ad4: 92 10 20 00 clr %o1 <== NOT EXECUTED 40009ad8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40009adc: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED 40009ae0: 81 c7 e0 08 ret <== NOT EXECUTED 40009ae4: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 40009ae8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 40009aec: 02 80 00 06 be 40009b04 <== NOT EXECUTED 40009af0: 01 00 00 00 nop <== NOT EXECUTED 40009af4: 40 00 13 12 call 4000e73c <__errno> <== NOT EXECUTED 40009af8: b0 20 00 18 neg %i0 <== NOT EXECUTED 40009afc: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 40009b00: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 40009b04: 81 c7 e0 08 ret <== NOT EXECUTED 40009b08: 81 e8 00 00 restore <== NOT EXECUTED 40009a40 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 40009a40: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 40009a44: 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 ) { 40009a48: 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); 40009a4c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 40009a50: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40009a54: 40 00 0a e5 call 4000c5e8 <== NOT EXECUTED 40009a58: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 40009a5c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 40009a60: 04 80 00 09 ble 40009a84 <== NOT EXECUTED 40009a64: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 40009a68: 40 00 02 3b call 4000a354 <== NOT EXECUTED 40009a6c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40009a70: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40009a74: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 40009a78: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 40009a7c: 81 c7 e0 08 ret <== NOT EXECUTED 40009a80: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 40009a84: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 40009a88: 02 80 00 06 be 40009aa0 <== NOT EXECUTED 40009a8c: 01 00 00 00 nop <== NOT EXECUTED 40009a90: 40 00 13 2b call 4000e73c <__errno> <== NOT EXECUTED 40009a94: b0 20 00 18 neg %i0 <== NOT EXECUTED 40009a98: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 40009a9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 40009aa0: 81 c7 e0 08 ret <== NOT EXECUTED 40009aa4: 81 e8 00 00 restore <== NOT EXECUTED 40009bc8 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 40009bc8: 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 ); 40009bcc: 80 a6 20 00 cmp %i0, 0 40009bd0: 12 80 00 0a bne 40009bf8 40009bd4: 80 a6 60 00 cmp %i1, 0 40009bd8: 11 10 00 6c sethi %hi(0x4001b000), %o0 <== NOT EXECUTED 40009bdc: 15 10 00 6c sethi %hi(0x4001b000), %o2 <== NOT EXECUTED 40009be0: 17 10 00 6c sethi %hi(0x4001b000), %o3 <== NOT EXECUTED 40009be4: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED 40009be8: 94 12 a3 c0 or %o2, 0x3c0, %o2 <== NOT EXECUTED 40009bec: 96 12 e3 a0 or %o3, 0x3a0, %o3 <== NOT EXECUTED 40009bf0: 7f ff e0 85 call 40001e04 <__assert_func> <== NOT EXECUTED 40009bf4: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 40009bf8: 02 80 00 1c be 40009c68 40009bfc: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 40009c00: 13 10 00 6c sethi %hi(0x4001b000), %o1 40009c04: 40 00 16 34 call 4000f4d4 40009c08: 92 12 63 b0 or %o1, 0x3b0, %o1 ! 4001b3b0 40009c0c: 80 a2 20 00 cmp %o0, 0 40009c10: 02 80 00 09 be 40009c34 40009c14: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 40009c18: 13 10 00 6c sethi %hi(0x4001b000), %o1 40009c1c: 40 00 16 2e call 4000f4d4 40009c20: 92 12 63 b8 or %o1, 0x3b8, %o1 ! 4001b3b8 40009c24: 80 a2 20 00 cmp %o0, 0 40009c28: 12 80 00 05 bne 40009c3c 40009c2c: a0 06 20 54 add %i0, 0x54, %l0 return directory->Parent; 40009c30: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 40009c34: 81 c7 e0 08 ret <== NOT EXECUTED 40009c38: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 40009c3c: 10 80 00 08 b 40009c5c 40009c40: 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 ) ) 40009c44: 40 00 16 24 call 4000f4d4 40009c48: 92 06 20 0c add %i0, 0xc, %o1 40009c4c: 80 a2 20 00 cmp %o0, 0 40009c50: 02 80 00 07 be 40009c6c 40009c54: 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 ) { 40009c58: 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; 40009c5c: 80 a6 00 10 cmp %i0, %l0 40009c60: 12 bf ff f9 bne 40009c44 40009c64: 90 10 00 19 mov %i1, %o0 40009c68: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 40009c6c: 81 c7 e0 08 ret 40009c70: 81 e8 00 00 restore 4000f190 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4000f190: 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; 4000f194: 94 10 20 14 mov 0x14, %o2 4000f198: 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; 4000f19c: 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 ); 4000f1a0: 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; 4000f1a4: 40 00 15 9e call 4001481c 4000f1a8: 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; 4000f1ac: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 4000f1b0: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 4000f1b4: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 4000f1b8: 7f ff fd 52 call 4000e700 4000f1bc: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 4000f1c0: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 4000f1c4: 80 a0 a0 01 cmp %g2, 1 4000f1c8: 12 80 00 06 bne 4000f1e0 4000f1cc: 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; 4000f1d0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 4000f1d4: 80 a0 80 01 cmp %g2, %g1 4000f1d8: 12 80 00 09 bne 4000f1fc 4000f1dc: 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 ); 4000f1e0: 90 10 20 00 clr %o0 4000f1e4: 7f ff cf ec call 40003194 4000f1e8: 92 10 00 11 mov %l1, %o1 if (result != 0) 4000f1ec: 80 a2 20 00 cmp %o0, 0 4000f1f0: 12 80 00 13 bne 4000f23c 4000f1f4: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 4000f1f8: 80 a4 20 00 cmp %l0, 0 4000f1fc: 22 80 00 11 be,a 4000f240 4000f200: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 4000f204: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 4000f208: 80 a0 60 01 cmp %g1, 1 4000f20c: 32 bf ff ea bne,a 4000f1b4 4000f210: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 4000f214: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 4000f218: 84 04 20 54 add %l0, 0x54, %g2 4000f21c: 80 a0 40 02 cmp %g1, %g2 4000f220: 22 bf ff e5 be,a 4000f1b4 4000f224: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 4000f228: a0 90 60 00 orcc %g1, 0, %l0 4000f22c: 32 bf ff e2 bne,a 4000f1b4 4000f230: e0 27 bf ec st %l0, [ %fp + -20 ] 4000f234: 81 c7 e0 08 ret <== NOT EXECUTED 4000f238: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 4000f23c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 4000f240: 81 c7 e0 08 ret 4000f244: 81 e8 00 00 restore 40009d68 : 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 ) { 40009d68: 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, 40009d6c: 03 10 00 6f sethi %hi(0x4001bc00), %g1 40009d70: c2 00 63 b8 ld [ %g1 + 0x3b8 ], %g1 ! 4001bfb8 40009d74: 86 10 20 00 clr %g3 40009d78: 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) { 40009d7c: 80 a0 80 01 cmp %g2, %g1 40009d80: 02 80 00 06 be 40009d98 40009d84: 86 00 e0 01 inc %g3 40009d88: 80 a0 e0 06 cmp %g3, 6 40009d8c: 12 bf ff fc bne 40009d7c 40009d90: 85 28 a0 01 sll %g2, 1, %g2 40009d94: 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) 40009d98: 03 10 00 71 sethi %hi(0x4001c400), %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(); 40009d9c: 40 00 0b f8 call 4000cd7c 40009da0: c4 20 63 78 st %g2, [ %g1 + 0x378 ] ! 4001c778 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; 40009da4: 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(); 40009da8: 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; 40009dac: 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; 40009db0: 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; 40009db4: 13 10 00 6d sethi %hi(0x4001b400), %o1 40009db8: 90 06 20 38 add %i0, 0x38, %o0 40009dbc: 40 00 14 9b call 4000f028 40009dc0: 92 12 63 30 or %o1, 0x330, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 40009dc4: 90 10 20 01 mov 1, %o0 40009dc8: 40 00 00 b0 call 4000a088 40009dcc: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ) { 40009dd0: 82 92 20 00 orcc %o0, 0, %g1 40009dd4: 12 80 00 0a bne 40009dfc 40009dd8: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 free(temp_mt_entry->mt_fs_root.node_access); 40009ddc: 40 00 00 f1 call 4000a1a0 <== NOT EXECUTED 40009de0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 40009de4: 40 00 12 56 call 4000e73c <__errno> <== NOT EXECUTED 40009de8: 01 00 00 00 nop <== NOT EXECUTED 40009dec: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40009df0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40009df4: 81 c7 e0 08 ret <== NOT EXECUTED 40009df8: 81 e8 00 00 restore <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 40009dfc: 84 10 20 01 mov 1, %g2 40009e00: 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; 40009e04: 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; 40009e08: f6 20 60 08 st %i3, [ %g1 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 40009e0c: 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; 40009e10: 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(); 40009e14: 40 00 09 5a call 4000c37c 40009e18: b0 10 20 00 clr %i0 return 0; } 40009e1c: 81 c7 e0 08 ret 40009e20: 81 e8 00 00 restore 40002e68 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 40002e68: 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; 40002e6c: c2 06 00 00 ld [ %i0 ], %g1 40002e70: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 40002e74: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 40002e78: 80 a0 60 07 cmp %g1, 7 40002e7c: 08 80 00 06 bleu 40002e94 40002e80: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); 40002e84: 40 00 44 2b call 40013f30 <__errno> 40002e88: 01 00 00 00 nop 40002e8c: 10 80 00 17 b 40002ee8 40002e90: 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 ); 40002e94: 40 00 47 c5 call 40014da8 40002e98: 90 10 00 1a mov %i2, %o0 40002e9c: a0 07 bf b0 add %fp, -80, %l0 40002ea0: 92 10 00 08 mov %o0, %o1 40002ea4: 96 07 bf fc add %fp, -4, %o3 40002ea8: 94 10 00 10 mov %l0, %o2 40002eac: 40 00 31 12 call 4000f2f4 40002eb0: 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( 40002eb4: 90 10 00 19 mov %i1, %o0 40002eb8: 94 10 00 10 mov %l0, %o2 40002ebc: 92 10 20 03 mov 3, %o1 40002ec0: 17 00 00 28 sethi %hi(0xa000), %o3 40002ec4: 98 07 bf d8 add %fp, -40, %o4 40002ec8: 40 00 2d c1 call 4000e5cc 40002ecc: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 40002ed0: 80 a2 20 00 cmp %o0, 0 40002ed4: 12 80 00 08 bne 40002ef4 40002ed8: c2 07 bf d8 ld [ %fp + -40 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 40002edc: 40 00 44 15 call 40013f30 <__errno> <== NOT EXECUTED 40002ee0: 01 00 00 00 nop <== NOT EXECUTED 40002ee4: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40002ee8: c2 22 00 00 st %g1, [ %o0 ] 40002eec: 81 c7 e0 08 ret 40002ef0: 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 ); 40002ef4: 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++; 40002ef8: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 40002efc: 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++; 40002f00: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 40002f04: 40 00 02 66 call 4000389c 40002f08: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] 40002f0c: c4 07 bf f4 ld [ %fp + -12 ], %g2 40002f10: c2 07 bf d8 ld [ %fp + -40 ], %g1 40002f14: c4 20 60 44 st %g2, [ %g1 + 0x44 ] return 0; } 40002f18: 81 c7 e0 08 ret 40002f1c: 91 e8 20 00 restore %g0, 0, %o0 40011f88 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 40011f88: 9d e3 bf a0 save %sp, -96, %sp 40011f8c: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 40011f90: 80 a6 20 00 cmp %i0, 0 40011f94: 12 80 00 0a bne 40011fbc 40011f98: 92 10 00 19 mov %i1, %o1 40011f9c: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40011fa0: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40011fa4: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40011fa8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40011fac: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 40011fb0: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 40011fb4: 10 80 00 0c b 40011fe4 <== NOT EXECUTED 40011fb8: 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 ); 40011fbc: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40011fc0: 80 a0 60 05 cmp %g1, 5 40011fc4: 02 80 00 0a be 40011fec 40011fc8: 15 10 00 85 sethi %hi(0x40021400), %o2 40011fcc: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40011fd0: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40011fd4: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40011fd8: 94 12 a2 08 or %o2, 0x208, %o2 <== NOT EXECUTED 40011fdc: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 40011fe0: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 40011fe4: 7f ff c5 0e call 4000341c <__assert_func> <== NOT EXECUTED 40011fe8: 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 ); 40011fec: 7f ff fe 6c call 4001199c 40011ff0: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 40011ff4: 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 ); 40011ff8: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 40011ffc: 80 a0 60 00 cmp %g1, 0 40012000: 12 80 00 09 bne 40012024 40012004: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 40012008: 7f ff fe 58 call 40011968 4001200c: b0 10 20 01 mov 1, %i0 if ( !memory ) 40012010: 80 a2 20 00 cmp %o0, 0 40012014: 02 80 00 04 be 40012024 40012018: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 4001201c: d0 24 00 00 st %o0, [ %l0 ] 40012020: b0 10 20 00 clr %i0 return 0; } 40012024: 81 c7 e0 08 ret 40012028: 81 e8 00 00 restore 4001202c : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 4001202c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 40012030: 80 a6 20 00 cmp %i0, 0 40012034: 32 80 00 0a bne,a 4001205c 40012038: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 4001203c: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40012040: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012044: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012048: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 4001204c: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 40012050: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 40012054: 10 80 00 0c b 40012084 <== NOT EXECUTED 40012058: 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 ); 4001205c: 80 a0 60 05 cmp %g1, 5 40012060: 02 80 00 0b be 4001208c 40012064: 03 10 00 89 sethi %hi(0x40022400), %g1 40012068: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 4001206c: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012070: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012074: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012078: 94 12 a2 20 or %o2, 0x220, %o2 <== NOT EXECUTED 4001207c: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 40012080: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 40012084: 7f ff c4 e6 call 4000341c <__assert_func> <== NOT EXECUTED 40012088: 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 ) 4001208c: e0 00 61 00 ld [ %g1 + 0x100 ], %l0 40012090: a3 34 20 02 srl %l0, 2, %l1 40012094: 92 10 00 11 mov %l1, %o1 40012098: 40 00 2c a1 call 4001d31c <.umul> 4001209c: 90 04 60 01 add %l1, 1, %o0 400120a0: 92 10 00 11 mov %l1, %o1 400120a4: 40 00 2c 9e call 4001d31c <.umul> 400120a8: 90 02 20 01 inc %o0 400120ac: 92 10 00 10 mov %l0, %o1 400120b0: 40 00 2c 9b call 4001d31c <.umul> 400120b4: 90 02 3f ff add %o0, -1, %o0 400120b8: 82 10 20 00 clr %g1 400120bc: 80 a0 40 19 cmp %g1, %i1 400120c0: 34 80 00 0b bg,a 400120ec 400120c4: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 400120c8: 80 a0 40 19 cmp %g1, %i1 400120cc: 12 80 00 04 bne 400120dc 400120d0: 80 a2 00 1a cmp %o0, %i2 400120d4: 38 80 00 06 bgu,a 400120ec 400120d8: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 400120dc: 40 00 07 95 call 40013f30 <__errno> <== NOT EXECUTED 400120e0: 01 00 00 00 nop <== NOT EXECUTED 400120e4: 10 80 00 2b b 40012190 <== NOT EXECUTED 400120e8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 400120ec: 80 a6 40 11 cmp %i1, %l1 400120f0: 14 80 00 09 bg 40012114 400120f4: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 400120f8: 80 a6 40 11 cmp %i1, %l1 400120fc: 12 80 00 04 bne 4001210c 40012100: 80 a6 80 13 cmp %i2, %l3 40012104: 18 80 00 05 bgu 40012118 40012108: a5 3c 20 1f sra %l0, 0x1f, %l2 4001210c: 81 c7 e0 08 ret 40012110: 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; 40012114: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 40012118: 96 10 00 10 mov %l0, %o3 4001211c: 94 10 00 12 mov %l2, %o2 40012120: 90 10 00 19 mov %i1, %o0 40012124: 40 00 2e 43 call 4001da30 <__divdi3> 40012128: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 4001212c: 90 10 00 11 mov %l1, %o0 40012130: 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; 40012134: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 40012138: 94 10 00 12 mov %l2, %o2 4001213c: 40 00 2e 3d call 4001da30 <__divdi3> 40012140: 92 10 00 13 mov %l3, %o1 40012144: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 40012148: 10 80 00 15 b 4001219c 4001214c: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 40012150: 7f ff ff 8e call 40011f88 40012154: 92 10 00 10 mov %l0, %o1 40012158: 80 a2 20 00 cmp %o0, 0 4001215c: 22 80 00 10 be,a 4001219c 40012160: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 40012164: 10 80 00 06 b 4001217c <== NOT EXECUTED 40012168: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 4001216c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40012170: 7f ff fe d7 call 40011ccc <== NOT EXECUTED 40012174: 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-- ) { 40012178: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 4001217c: 1a bf ff fc bcc 4001216c <== NOT EXECUTED 40012180: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 40012184: 40 00 07 6b call 40013f30 <__errno> <== NOT EXECUTED 40012188: 01 00 00 00 nop <== NOT EXECUTED 4001218c: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 40012190: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40012194: 81 c7 e0 08 ret <== NOT EXECUTED 40012198: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 4001219c: 80 a4 00 14 cmp %l0, %l4 400121a0: 08 bf ff ec bleu 40012150 400121a4: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 400121a8: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 400121ac: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 400121b0: 81 c7 e0 08 ret 400121b4: 91 e8 20 00 restore %g0, 0, %o0 4001199c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 4001199c: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 400119a0: 80 a6 20 00 cmp %i0, 0 400119a4: 32 80 00 0a bne,a 400119cc 400119a8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 400119ac: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400119b0: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 400119b4: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 400119b8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 400119bc: 94 12 a1 60 or %o2, 0x160, %o2 <== NOT EXECUTED 400119c0: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 400119c4: 10 80 00 0c b 400119f4 <== NOT EXECUTED 400119c8: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 400119cc: 80 a0 60 05 cmp %g1, 5 400119d0: 02 80 00 0b be 400119fc 400119d4: 03 10 00 89 sethi %hi(0x40022400), %g1 400119d8: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400119dc: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 400119e0: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 400119e4: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 400119e8: 94 12 a1 60 or %o2, 0x160, %o2 <== NOT EXECUTED 400119ec: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 400119f0: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 400119f4: 7f ff c6 8a call 4000341c <__assert_func> <== NOT EXECUTED 400119f8: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 400119fc: e0 00 61 00 ld [ %g1 + 0x100 ], %l0 40011a00: a1 34 20 02 srl %l0, 2, %l0 40011a04: 82 04 3f ff add %l0, -1, %g1 40011a08: 80 a6 40 01 cmp %i1, %g1 40011a0c: 18 80 00 16 bgu 40011a64 40011a10: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 40011a14: 80 a6 a0 00 cmp %i2, 0 40011a18: 02 80 00 0f be 40011a54 40011a1c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 40011a20: 80 a0 60 00 cmp %g1, 0 40011a24: 32 80 00 09 bne,a 40011a48 40011a28: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 40011a2c: 7f ff ff cf call 40011968 40011a30: 01 00 00 00 nop if ( !p ) 40011a34: 80 a2 20 00 cmp %o0, 0 40011a38: 22 80 00 86 be,a 40011c50 40011a3c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 40011a40: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 40011a44: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 40011a48: b3 2e 60 02 sll %i1, 2, %i1 40011a4c: 81 c7 e0 08 ret 40011a50: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 40011a54: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 40011a58: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 40011a5c: 10 80 00 32 b 40011b24 40011a60: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 40011a64: 40 00 2e 2e call 4001d31c <.umul> <== NOT EXECUTED 40011a68: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40011a6c: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 40011a70: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 40011a74: 18 80 00 30 bgu 40011b34 <== NOT EXECUTED 40011a78: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 40011a7c: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 40011a80: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40011a84: 40 00 2f 0c call 4001d6b4 <.urem> <== NOT EXECUTED 40011a88: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40011a8c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 40011a90: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40011a94: 40 00 2e 5c call 4001d404 <.udiv> <== NOT EXECUTED 40011a98: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 40011a9c: 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; 40011aa0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 40011aa4: 02 80 00 18 be 40011b04 <== NOT EXECUTED 40011aa8: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 40011aac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011ab0: 12 80 00 08 bne 40011ad0 <== NOT EXECUTED 40011ab4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 40011ab8: 7f ff ff ac call 40011968 <== NOT EXECUTED 40011abc: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 40011ac0: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40011ac4: 22 80 00 63 be,a 40011c50 <== NOT EXECUTED 40011ac8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 40011acc: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 40011ad0: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 40011ad4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011ad8: 12 80 00 08 bne 40011af8 <== NOT EXECUTED 40011adc: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 40011ae0: 7f ff ff a2 call 40011968 <== NOT EXECUTED 40011ae4: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 40011ae8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011aec: 22 80 00 59 be,a 40011c50 <== NOT EXECUTED 40011af0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 40011af4: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 40011af8: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 40011afc: 81 c7 e0 08 ret <== NOT EXECUTED 40011b00: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 40011b04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011b08: 02 80 00 52 be 40011c50 <== NOT EXECUTED 40011b0c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 40011b10: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 40011b14: 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 ]; 40011b18: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 40011b1c: 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 ]; 40011b20: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 40011b24: 12 80 00 4b bne 40011c50 40011b28: 01 00 00 00 nop p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 40011b2c: 81 c7 e0 08 ret <== NOT EXECUTED 40011b30: 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 ) { 40011b34: 90 02 20 01 inc %o0 <== NOT EXECUTED 40011b38: 40 00 2d f9 call 4001d31c <.umul> <== NOT EXECUTED 40011b3c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40011b40: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 40011b44: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 40011b48: 18 80 00 41 bgu 40011c4c <== NOT EXECUTED 40011b4c: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 40011b50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40011b54: 40 00 2e d8 call 4001d6b4 <.urem> <== NOT EXECUTED 40011b58: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40011b5c: 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; 40011b60: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 40011b64: 40 00 2e 28 call 4001d404 <.udiv> <== NOT EXECUTED 40011b68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 40011b6c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40011b70: 40 00 2e 25 call 4001d404 <.udiv> <== NOT EXECUTED 40011b74: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 40011b78: 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; 40011b7c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 40011b80: 40 00 2e cd call 4001d6b4 <.urem> <== NOT EXECUTED 40011b84: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 40011b88: 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; 40011b8c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 40011b90: 02 80 00 23 be 40011c1c <== NOT EXECUTED 40011b94: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 40011b98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011b9c: 12 80 00 08 bne 40011bbc <== NOT EXECUTED 40011ba0: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 40011ba4: 7f ff ff 71 call 40011968 <== NOT EXECUTED 40011ba8: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 40011bac: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40011bb0: 22 80 00 28 be,a 40011c50 <== NOT EXECUTED 40011bb4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 40011bb8: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 40011bbc: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 40011bc0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40011bc4: 12 80 00 08 bne 40011be4 <== NOT EXECUTED 40011bc8: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 40011bcc: 7f ff ff 67 call 40011968 <== NOT EXECUTED 40011bd0: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 40011bd4: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 40011bd8: 02 80 00 1e be 40011c50 <== NOT EXECUTED 40011bdc: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 40011be0: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 40011be4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 40011be8: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 40011bec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011bf0: 12 80 00 08 bne 40011c10 <== NOT EXECUTED 40011bf4: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 40011bf8: 7f ff ff 5c call 40011968 <== NOT EXECUTED 40011bfc: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 40011c00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011c04: 22 80 00 13 be,a 40011c50 <== NOT EXECUTED 40011c08: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 40011c0c: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 40011c10: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 40011c14: 81 c7 e0 08 ret <== NOT EXECUTED 40011c18: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 40011c1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011c20: 02 80 00 0c be 40011c50 <== NOT EXECUTED 40011c24: 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 ]; 40011c28: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 40011c2c: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 40011c30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011c34: 02 80 00 07 be 40011c50 <== NOT EXECUTED 40011c38: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 40011c3c: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 40011c40: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 40011c44: 81 c7 e0 08 ret <== NOT EXECUTED 40011c48: 91 ee 00 12 restore %i0, %l2, %o0 <== NOT EXECUTED 40011c4c: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 40011c50: 81 c7 e0 08 ret 40011c54: 81 e8 00 00 restore 40012638 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 40012638: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 4001263c: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 40012640: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 40012644: 12 80 00 0a bne 4001266c 40012648: a6 10 00 1a mov %i2, %l3 4001264c: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40012650: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012654: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012658: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 4001265c: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 40012660: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 40012664: 10 80 00 0e b 4001269c <== NOT EXECUTED 40012668: 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 || 4001266c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40012670: 84 00 7f fb add %g1, -5, %g2 40012674: 80 a0 a0 01 cmp %g2, 1 40012678: 08 80 00 0b bleu 400126a4 4001267c: 80 a6 e0 00 cmp %i3, 0 40012680: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40012684: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012688: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 4001268c: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012690: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 40012694: 96 12 e1 08 or %o3, 0x108, %o3 <== NOT EXECUTED 40012698: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 4001269c: 7f ff c3 60 call 4000341c <__assert_func> <== NOT EXECUTED 400126a0: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 400126a4: 32 80 00 0a bne,a 400126cc 400126a8: 80 a7 20 00 cmp %i4, 0 400126ac: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400126b0: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 400126b4: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 400126b8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 400126bc: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 400126c0: 96 12 e1 58 or %o3, 0x158, %o3 <== NOT EXECUTED 400126c4: 10 bf ff f6 b 4001269c <== NOT EXECUTED 400126c8: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 400126cc: 12 80 00 08 bne 400126ec 400126d0: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 400126d4: 40 00 06 17 call 40013f30 <__errno> <== NOT EXECUTED 400126d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400126dc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 400126e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400126e4: 81 c7 e0 08 ret <== NOT EXECUTED 400126e8: 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) { 400126ec: 32 80 00 1d bne,a 40012760 400126f0: 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)) 400126f4: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 400126f8: 82 10 20 00 clr %g1 <== NOT EXECUTED 400126fc: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 40012700: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 40012704: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40012708: 14 80 00 0a bg 40012730 <== NOT EXECUTED 4001270c: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 40012710: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40012714: 12 80 00 08 bne 40012734 <== NOT EXECUTED 40012718: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED 4001271c: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 40012720: 38 80 00 05 bgu,a 40012734 <== NOT EXECUTED 40012724: 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); 40012728: 10 80 00 04 b 40012738 <== NOT EXECUTED 4001272c: 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; 40012730: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 40012734: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 40012738: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 4001273c: 40 00 08 38 call 4001481c <== NOT EXECUTED 40012740: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 40012744: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 40012748: 7f ff c4 55 call 4000389c <== NOT EXECUTED 4001274c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40012750: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40012754: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 40012758: 81 c7 e0 08 ret <== NOT EXECUTED 4001275c: 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 ) 40012760: 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; 40012764: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 40012768: 80 a1 00 03 cmp %g4, %g3 4001276c: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 40012770: 14 80 00 08 bg 40012790 40012774: 9a 07 00 1a add %i4, %i2, %o5 40012778: 80 a1 00 03 cmp %g4, %g3 4001277c: 32 80 00 07 bne,a 40012798 40012780: 03 10 00 89 sethi %hi(0x40022400), %g1 <== NOT EXECUTED 40012784: 80 a3 40 02 cmp %o5, %g2 40012788: 28 80 00 04 bleu,a 40012798 4001278c: 03 10 00 89 sethi %hi(0x40022400), %g1 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 40012790: 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; 40012794: 03 10 00 89 sethi %hi(0x40022400), %g1 40012798: e2 00 61 00 ld [ %g1 + 0x100 ], %l1 ! 40022500 4001279c: 90 10 00 12 mov %l2, %o0 400127a0: 92 10 00 13 mov %l3, %o1 400127a4: ab 3c 60 1f sra %l1, 0x1f, %l5 400127a8: 96 10 00 11 mov %l1, %o3 400127ac: 40 00 2d 88 call 4001ddcc <__moddi3> 400127b0: 94 10 00 15 mov %l5, %o2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 400127b4: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 400127b8: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 400127bc: 94 10 00 15 mov %l5, %o2 400127c0: 92 10 00 13 mov %l3, %o1 400127c4: 40 00 2c 9b call 4001da30 <__divdi3> 400127c8: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 400127cc: 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; 400127d0: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 400127d4: a6 10 00 1b mov %i3, %l3 400127d8: 02 80 00 1c be 40012848 400127dc: ac 10 20 00 clr %l6 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 ); 400127e0: 90 10 00 10 mov %l0, %o0 400127e4: 7f ff fc 6e call 4001199c 400127e8: 94 10 20 00 clr %o2 assert( block_ptr ); 400127ec: 80 a2 20 00 cmp %o0, 0 400127f0: 32 80 00 0a bne,a 40012818 400127f4: a2 24 40 14 sub %l1, %l4, %l1 400127f8: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400127fc: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012800: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012804: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012808: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 4001280c: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 40012810: 10 bf ff a3 b 4001269c <== NOT EXECUTED 40012814: 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; 40012818: 80 a7 00 11 cmp %i4, %l1 4001281c: 08 80 00 03 bleu 40012828 40012820: 94 10 00 1c mov %i4, %o2 40012824: 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 ); 40012828: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 4001282c: a6 06 c0 0a add %i3, %o2, %l3 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 ); 40012830: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 40012834: a4 04 a0 01 inc %l2 my_length -= to_copy; 40012838: b8 27 00 0a sub %i4, %o2, %i4 4001283c: ac 10 00 0a mov %o2, %l6 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 ); 40012840: 40 00 07 f7 call 4001481c 40012844: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 40012848: 03 10 00 89 sethi %hi(0x40022400), %g1 4001284c: a2 10 20 00 clr %l1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40012850: b6 10 61 00 or %g1, 0x100, %i3 40012854: 10 80 00 17 b 400128b0 40012858: e8 00 61 00 ld [ %g1 + 0x100 ], %l4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 4001285c: 90 10 00 10 mov %l0, %o0 40012860: 92 10 00 12 mov %l2, %o1 40012864: 94 10 20 00 clr %o2 40012868: 7f ff fc 4d call 4001199c 4001286c: a2 04 40 14 add %l1, %l4, %l1 assert( block_ptr ); 40012870: 80 a2 20 00 cmp %o0, 0 40012874: 32 80 00 0a bne,a 4001289c 40012878: d2 02 00 00 ld [ %o0 ], %o1 4001287c: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40012880: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012884: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012888: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 4001288c: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 40012890: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 40012894: 10 bf ff 82 b 4001269c <== NOT EXECUTED 40012898: 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++; 4001289c: 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 ); 400128a0: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 400128a4: b8 27 00 14 sub %i4, %l4, %i4 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 ); 400128a8: 40 00 07 dd call 4001481c 400128ac: 94 10 00 14 mov %l4, %o2 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 400128b0: c2 06 c0 00 ld [ %i3 ], %g1 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 400128b4: b0 04 40 16 add %l1, %l6, %i0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 400128b8: 80 a7 00 01 cmp %i4, %g1 400128bc: 1a bf ff e8 bcc 4001285c 400128c0: aa 04 c0 11 add %l3, %l1, %l5 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 400128c4: 80 a7 20 00 cmp %i4, 0 400128c8: 02 80 00 16 be 40012920 400128cc: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 400128d0: 92 10 00 12 mov %l2, %o1 400128d4: 90 10 00 10 mov %l0, %o0 400128d8: 7f ff fc 31 call 4001199c 400128dc: 94 10 20 00 clr %o2 assert( block_ptr ); 400128e0: 80 a2 20 00 cmp %o0, 0 400128e4: 32 80 00 0a bne,a 4001290c 400128e8: d2 02 00 00 ld [ %o0 ], %o1 400128ec: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400128f0: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 400128f4: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 400128f8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 400128fc: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED 40012900: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 40012904: 10 bf ff 66 b 4001269c <== NOT EXECUTED 40012908: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 4001290c: 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 ); 40012910: 90 10 00 15 mov %l5, %o0 40012914: 40 00 07 c2 call 4001481c 40012918: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 4001291c: 90 07 bf f8 add %fp, -8, %o0 40012920: 7f ff c3 df call 4000389c 40012924: 92 10 20 00 clr %o1 40012928: c2 07 bf f8 ld [ %fp + -8 ], %g1 4001292c: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return copied; } 40012930: 81 c7 e0 08 ret 40012934: 81 e8 00 00 restore 40011d20 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 40011d20: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 40011d24: 80 a6 20 00 cmp %i0, 0 40011d28: 32 80 00 0a bne,a 40011d50 40011d2c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40011d30: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40011d34: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40011d38: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40011d3c: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40011d40: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED 40011d44: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 40011d48: 10 80 00 0c b 40011d78 <== NOT EXECUTED 40011d4c: 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 ); 40011d50: 80 a0 60 05 cmp %g1, 5 40011d54: 02 80 00 0b be 40011d80 40011d58: 03 10 00 89 sethi %hi(0x40022400), %g1 40011d5c: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40011d60: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40011d64: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40011d68: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40011d6c: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED 40011d70: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 40011d74: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 40011d78: 7f ff c5 a9 call 4000341c <__assert_func> <== NOT EXECUTED 40011d7c: 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; 40011d80: e0 00 61 00 ld [ %g1 + 0x100 ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 40011d84: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 40011d88: 80 a0 60 00 cmp %g1, 0 40011d8c: 02 80 00 05 be 40011da0 40011d90: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 40011d94: 90 06 20 58 add %i0, 0x58, %o0 40011d98: 7f ff ff b0 call 40011c58 40011d9c: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 40011da0: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 40011da4: 80 a0 60 00 cmp %g1, 0 40011da8: 22 80 00 17 be,a 40011e04 40011dac: 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; 40011db4: 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 40011dbc: a4 14 a1 00 or %l2, 0x100, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 40011dc0: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 40011dc4: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 40011dc8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40011dcc: 02 80 00 04 be 40011ddc <== NOT EXECUTED 40011dd0: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 40011dd4: 7f ff ff a1 call 40011c58 <== NOT EXECUTED 40011dd8: 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 40011df0: 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 ); 40011df4: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 40011df8: 7f ff ff 98 call 40011c58 <== NOT EXECUTED 40011dfc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 40011e00: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 40011e04: 80 a0 60 00 cmp %g1, 0 40011e08: 02 80 00 25 be 40011e9c 40011e0c: 29 10 00 89 sethi %hi(0x40022400), %l4 40011e10: 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 40011e18: a8 15 21 00 or %l4, 0x100, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 40011e1c: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 40011e20: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 40011e24: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 40011e28: 02 80 00 1b be 40011e94 <== NOT EXECUTED 40011e2c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 40011e30: 10 80 00 09 b 40011e54 <== NOT EXECUTED 40011e34: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 40011e40: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 40011e44: 7f ff ff 85 call 40011c58 <== NOT EXECUTED 40011e48: 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 40011e64: 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( 40011e68: 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 40011e78: 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 40011e8c: 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( 40011e90: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 40011e94: 7f ff ff 71 call 40011c58 <== NOT EXECUTED 40011e98: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 40011e9c: 81 c7 e0 08 ret 40011ea0: 91 e8 20 00 restore %g0, 0, %o0 40011ccc : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 40011ccc: 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 ); 40011cd0: 94 10 20 00 clr %o2 <== NOT EXECUTED 40011cd4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40011cd8: 7f ff ff 31 call 4001199c <== NOT EXECUTED 40011cdc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 40011ce0: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40011ce4: 32 80 00 0a bne,a 40011d0c <== NOT EXECUTED 40011ce8: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 40011cec: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40011cf0: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40011cf4: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40011cf8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40011cfc: 94 12 a1 e8 or %o2, 0x1e8, %o2 <== NOT EXECUTED 40011d00: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 40011d04: 7f ff c5 c6 call 4000341c <__assert_func> <== NOT EXECUTED 40011d08: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 40011d0c: 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 ); 40011d10: 7f ff ff 0d call 40011944 <== NOT EXECUTED 40011d14: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 40011d18: 81 c7 e0 08 ret <== NOT EXECUTED 40011d1c: 81 e8 00 00 restore <== NOT EXECUTED 400122d4 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 400122d4: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 400122d8: a0 96 20 00 orcc %i0, 0, %l0 400122dc: 32 80 00 0a bne,a 40012304 400122e0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 400122e4: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400122e8: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 400122ec: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 400122f0: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 400122f4: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 400122f8: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 400122fc: 10 80 00 8c b 4001252c <== NOT EXECUTED 40012300: 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 ); 40012304: 80 a0 60 05 cmp %g1, 5 40012308: 02 80 00 0a be 40012330 4001230c: 80 a6 e0 00 cmp %i3, 0 40012310: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40012314: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012318: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 4001231c: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012320: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 40012324: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 40012328: 10 80 00 81 b 4001252c <== NOT EXECUTED 4001232c: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 40012330: 12 80 00 0a bne 40012358 40012334: 80 a7 20 00 cmp %i4, 0 40012338: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 4001233c: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012340: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012344: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012348: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 4001234c: 96 12 e0 d0 or %o3, 0xd0, %o3 <== NOT EXECUTED 40012350: 10 80 00 77 b 4001252c <== NOT EXECUTED 40012354: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 40012358: 32 80 00 06 bne,a 40012370 4001235c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 40012360: 40 00 06 f4 call 40013f30 <__errno> <== NOT EXECUTED 40012364: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40012368: 10 80 00 15 b 400123bc <== NOT EXECUTED 4001236c: 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 ) { 40012370: 80 a0 60 00 cmp %g1, 0 40012374: 06 80 00 09 bl 40012398 40012378: 94 07 00 1a add %i4, %i2, %o2 4001237c: 80 a0 60 00 cmp %g1, 0 40012380: 12 80 00 12 bne 400123c8 40012384: 03 10 00 89 sethi %hi(0x40022400), %g1 40012388: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 4001238c: 80 a0 40 0a cmp %g1, %o2 40012390: 1a 80 00 0e bcc 400123c8 40012394: 03 10 00 89 sethi %hi(0x40022400), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 40012398: 90 10 00 10 mov %l0, %o0 4001239c: 7f ff ff 24 call 4001202c 400123a0: 92 10 20 00 clr %o1 if ( status ) 400123a4: 80 a2 20 00 cmp %o0, 0 400123a8: 02 80 00 08 be 400123c8 400123ac: 03 10 00 89 sethi %hi(0x40022400), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 400123b0: 40 00 06 e0 call 40013f30 <__errno> <== NOT EXECUTED 400123b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400123b8: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 400123bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400123c0: 81 c7 e0 08 ret <== NOT EXECUTED 400123c4: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 400123c8: e2 00 61 00 ld [ %g1 + 0x100 ], %l1 400123cc: 92 10 00 1a mov %i2, %o1 400123d0: a7 3c 60 1f sra %l1, 0x1f, %l3 400123d4: 96 10 00 11 mov %l1, %o3 400123d8: 94 10 00 13 mov %l3, %o2 400123dc: 40 00 2e 7c call 4001ddcc <__moddi3> 400123e0: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 400123e4: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 400123e8: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 400123ec: 90 10 00 19 mov %i1, %o0 400123f0: 92 10 00 1a mov %i2, %o1 400123f4: 40 00 2d 8f call 4001da30 <__divdi3> 400123f8: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 400123fc: 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; 40012400: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 40012404: 80 a4 a0 00 cmp %l2, 0 40012408: 02 80 00 1b be 40012474 4001240c: 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 ); 40012410: 90 10 00 10 mov %l0, %o0 40012414: 7f ff fd 62 call 4001199c 40012418: 94 10 20 00 clr %o2 assert( block_ptr ); 4001241c: 80 a2 20 00 cmp %o0, 0 40012420: 32 80 00 0a bne,a 40012448 40012424: 94 24 40 12 sub %l1, %l2, %o2 40012428: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 4001242c: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012430: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40012434: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012438: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 4001243c: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 40012440: 10 80 00 3b b 4001252c <== NOT EXECUTED 40012444: 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; 40012448: 80 a2 80 1c cmp %o2, %i4 4001244c: 38 80 00 02 bgu,a 40012454 40012450: 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 ); 40012454: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 40012458: 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 ); 4001245c: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 40012460: a6 04 e0 01 inc %l3 my_length -= to_copy; 40012464: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 40012468: 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 ); 4001246c: 40 00 08 ec call 4001481c 40012470: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 40012474: 03 10 00 89 sethi %hi(0x40022400), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40012478: a4 10 61 00 or %g1, 0x100, %l2 ! 40022500 4001247c: 10 80 00 17 b 400124d8 40012480: e2 00 61 00 ld [ %g1 + 0x100 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 40012484: 92 10 00 13 mov %l3, %o1 40012488: 7f ff fd 45 call 4001199c 4001248c: 94 10 20 00 clr %o2 assert( block_ptr ); 40012490: 80 a2 20 00 cmp %o0, 0 40012494: 32 80 00 0a bne,a 400124bc 40012498: d0 02 00 00 ld [ %o0 ], %o0 4001249c: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 400124a0: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 400124a4: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 400124a8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 400124ac: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 400124b0: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 400124b4: 10 80 00 1e b 4001252c <== NOT EXECUTED 400124b8: 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 ); 400124bc: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 400124c0: a6 04 e0 01 inc %l3 my_length -= to_copy; 400124c4: 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( 400124c8: 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; 400124cc: 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 ); 400124d0: 40 00 08 d3 call 4001481c 400124d4: 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 ) { 400124d8: c2 04 80 00 ld [ %l2 ], %g1 400124dc: 80 a7 00 01 cmp %i4, %g1 400124e0: 1a bf ff e9 bcc 40012484 400124e4: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 400124e8: 80 a7 20 00 cmp %i4, 0 400124ec: 02 80 00 17 be 40012548 400124f0: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 400124f4: 92 10 00 13 mov %l3, %o1 400124f8: 90 10 00 10 mov %l0, %o0 400124fc: 7f ff fd 28 call 4001199c 40012500: 94 10 20 00 clr %o2 assert( block_ptr ); 40012504: 80 a2 20 00 cmp %o0, 0 40012508: 32 80 00 0b bne,a 40012534 4001250c: d0 02 00 00 ld [ %o0 ], %o0 40012510: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40012514: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40012518: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 4001251c: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40012520: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 40012524: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 40012528: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 4001252c: 7f ff c3 bc call 4000341c <__assert_func> <== NOT EXECUTED 40012530: 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; 40012534: 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 ); 40012538: 92 10 00 1a mov %i2, %o1 4001253c: 40 00 08 b8 call 4001481c 40012540: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 40012544: 90 07 bf f8 add %fp, -8, %o0 40012548: 7f ff c4 d5 call 4000389c 4001254c: 92 10 20 00 clr %o1 40012550: c2 07 bf f8 ld [ %fp + -8 ], %g1 40012554: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 40012558: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 4001255c: 81 c7 e0 08 ret 40012560: 81 e8 00 00 restore 40009e24 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 40009e24: 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 ); 40009e28: 40 00 15 fc call 4000f618 40009e2c: 90 10 00 18 mov %i0, %o0 40009e30: 96 07 bf fc add %fp, -4, %o3 40009e34: 92 10 00 08 mov %o0, %o1 40009e38: 94 07 bf b8 add %fp, -72, %o2 40009e3c: 7f ff ff 8e call 40009c74 40009e40: 90 10 00 18 mov %i0, %o0 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 40009e44: 97 2e 60 10 sll %i1, 0x10, %o3 40009e48: 03 00 00 3c sethi %hi(0xf000), %g1 40009e4c: 97 32 e0 10 srl %o3, 0x10, %o3 40009e50: 05 00 00 10 sethi %hi(0x4000), %g2 40009e54: 82 0a c0 01 and %o3, %g1, %g1 40009e58: 80 a0 40 02 cmp %g1, %g2 40009e5c: 02 80 00 19 be 40009ec0 40009e60: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 40009e64: 05 00 00 20 sethi %hi(0x8000), %g2 40009e68: 80 a0 40 02 cmp %g1, %g2 40009e6c: 02 80 00 16 be 40009ec4 40009e70: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 40009e74: 05 00 00 08 sethi %hi(0x2000), %g2 40009e78: 80 a0 40 02 cmp %g1, %g2 40009e7c: 02 80 00 05 be 40009e90 40009e80: 05 00 00 18 sethi %hi(0x6000), %g2 40009e84: 80 a0 40 02 cmp %g1, %g2 40009e88: 12 80 00 05 bne 40009e9c 40009e8c: 05 00 00 04 sethi %hi(0x1000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 40009e90: f4 3f bf e0 std %i2, [ %fp + -32 ] 40009e94: 10 80 00 0c b 40009ec4 40009e98: 92 10 20 02 mov 2, %o1 } else if (S_ISFIFO(mode)) 40009e9c: 80 a0 40 02 cmp %g1, %g2 40009ea0: 02 80 00 09 be 40009ec4 40009ea4: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 40009ea8: 40 00 12 25 call 4000e73c <__errno> <== NOT EXECUTED 40009eac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40009eb0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40009eb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40009eb8: 81 c7 e0 08 ret <== NOT EXECUTED 40009ebc: 81 e8 00 00 restore <== NOT EXECUTED 40009ec0: 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( 40009ec4: 94 07 bf b8 add %fp, -72, %o2 40009ec8: 98 07 bf e0 add %fp, -32, %o4 40009ecc: 40 00 0b bc call 4000cdbc 40009ed0: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 40009ed4: 80 a2 20 00 cmp %o0, 0 40009ed8: 12 80 00 06 bne 40009ef0 40009edc: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 40009ee0: 40 00 12 17 call 4000e73c <__errno> <== NOT EXECUTED 40009ee4: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40009ee8: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 40009eec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 40009ef0: 81 c7 e0 08 ret 40009ef4: 81 e8 00 00 restore 40002ff4 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 40002ff4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 40002ff8: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 40002ffc: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40003000: 80 a0 a0 01 cmp %g2, 1 40003004: 22 80 00 08 be,a 40003024 40003008: f0 20 60 5c st %i0, [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( ENOTDIR ); 4000300c: 40 00 43 c9 call 40013f30 <__errno> <== NOT EXECUTED 40003010: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40003014: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 40003018: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000301c: 81 c7 e0 08 ret <== NOT EXECUTED 40003020: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 40003024: 81 c7 e0 08 ret 40003028: 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 98 sethi %hi(0x40026000), %l0 4000396c: 11 10 00 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003970: 15 10 00 91 sethi %hi(0x40024400), %o2 <== NOT EXECUTED 40003974: 17 10 00 91 sethi %hi(0x40024400), %o3 <== NOT EXECUTED 40003978: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED 4000397c: 94 12 a2 38 or %o2, 0x238, %o2 <== NOT EXECUTED 40003980: 96 12 e0 a0 or %o3, 0xa0, %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 21 c0 ld [ %l0 + 0x1c0 ], %g1 40003990: 90 06 20 0c add %i0, 0xc, %o0 40003994: 40 00 3e fe call 4001358c 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 21 c0 ld [ %l0 + 0x1c0 ], %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 21 c0 ld [ %l0 + 0x1c0 ], %g1 400039cc: 90 10 20 2f mov 0x2f, %o0 400039d0: 40 00 3e ab call 4001347c 400039d4: d2 00 60 08 ld [ %g1 + 8 ], %o1 break; 400039d8: 10 80 00 3c b 40003ac8 400039dc: 31 10 00 90 sethi %hi(0x40024000), %i0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 400039e0: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 400039e4: 13 10 00 91 sethi %hi(0x40024400), %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 60 b0 or %o1, 0xb0, %o1 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 400039fc: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %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 91 sethi %hi(0x40024400), %o1 <== NOT EXECUTED 40003a10: 92 12 60 c8 or %o1, 0xc8, %o1 ! 400244c8 <__FUNCTION__.5671+0x2b8> <== NOT EXECUTED 40003a14: 40 00 3e 80 call 40013414 40003a18: 31 10 00 90 sethi %hi(0x40024000), %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 21 c0 ld [ %l0 + 0x1c0 ], %g1 40003a24: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 40003a28: d0 00 60 08 ld [ %g1 + 8 ], %o0 40003a2c: 13 10 00 91 sethi %hi(0x40024400), %o1 40003a30: 40 00 3e 79 call 40013414 40003a34: 92 12 60 d8 or %o1, 0xd8, %o1 ! 400244d8 <__FUNCTION__.5671+0x2c8> (uint32_t)the_jnode->info.file.size ); #endif break; 40003a38: 10 80 00 24 b 40003ac8 40003a3c: 31 10 00 90 sethi %hi(0x40024000), %i0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 40003a40: c2 04 21 c0 ld [ %l0 + 0x1c0 ], %g1 <== NOT EXECUTED 40003a44: 11 10 00 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003a48: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 40003a4c: 40 00 3e d0 call 4001358c <== NOT EXECUTED 40003a50: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED assert(0); 40003a54: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED 40003a58: 11 10 00 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003a5c: 15 10 00 91 sethi %hi(0x40024400), %o2 <== NOT EXECUTED 40003a60: 17 10 00 90 sethi %hi(0x40024000), %o3 <== NOT EXECUTED 40003a64: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED 40003a68: 94 12 a2 38 or %o2, 0x238, %o2 <== NOT EXECUTED 40003a6c: 96 12 e2 08 or %o3, 0x208, %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 21 c0 ld [ %l0 + 0x1c0 ], %g1 <== NOT EXECUTED 40003a7c: 11 10 00 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003a80: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 40003a84: 40 00 3e c2 call 4001358c <== NOT EXECUTED 40003a88: 90 12 20 e8 or %o0, 0xe8, %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 21 c0 ld [ %l0 + 0x1c0 ], %g1 <== NOT EXECUTED 40003a98: 11 10 00 91 sethi %hi(0x40024400), %o0 <== NOT EXECUTED 40003a9c: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 40003aa0: 40 00 3e bb call 4001358c <== NOT EXECUTED 40003aa4: 90 12 21 00 or %o0, 0x100, %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 91 sethi %hi(0x40024400), %o1 <== NOT EXECUTED 40003ab4: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 40003ab8: 40 00 3e 57 call 40013414 <== NOT EXECUTED 40003abc: 92 12 61 18 or %o1, 0x118, %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 45 a2 call 40015150 40003acc: 91 ee 23 58 restore %i0, 0x358, %o0 40003ad0: 01 00 00 00 nop 40003038 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 40003038: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 4000303c: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 40003040: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40003044: 80 a0 a0 04 cmp %g2, 4 40003048: 02 80 00 0a be 40003070 4000304c: b0 10 20 00 clr %i0 rtems_set_errno_and_return_minus_one( EINVAL ); 40003050: 40 00 43 b8 call 40013f30 <__errno> <== NOT EXECUTED 40003054: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40003058: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 4000305c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40003060: 81 c7 e0 08 ret <== NOT EXECUTED 40003064: 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]; 40003068: 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++ ) 4000306c: b0 06 20 01 inc %i0 40003070: 80 a6 00 1a cmp %i0, %i2 40003074: 1a 80 00 07 bcc 40003090 40003078: 01 00 00 00 nop 4000307c: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 40003080: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3 40003084: 80 a0 e0 00 cmp %g3, 0 40003088: 12 bf ff f8 bne 40003068 4000308c: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; return i; } 40003090: 81 c7 e0 08 ret 40003094: 81 e8 00 00 restore 40003098 : 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 */ ) { 40003098: 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; 4000309c: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 400030a0: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 400030a4: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 400030a8: 40 00 47 75 call 40014e7c <== NOT EXECUTED 400030ac: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 400030b0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 400030b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400030b8: 22 80 00 05 be,a 400030cc <== NOT EXECUTED 400030bc: 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 ); 400030c0: 40 00 13 4e call 40007df8 <_Chain_Extract> <== NOT EXECUTED 400030c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 400030c8: 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 ); 400030cc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 400030d0: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 400030d4: 40 00 13 3d call 40007dc8 <_Chain_Append> <== NOT EXECUTED 400030d8: 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 ); 400030dc: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 400030e0: 40 00 01 ef call 4000389c <== NOT EXECUTED 400030e4: 92 10 20 00 clr %o1 <== NOT EXECUTED 400030e8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 400030ec: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 400030f0: 81 c7 e0 08 ret <== NOT EXECUTED 400030f4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40009f04 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 40009f04: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 40009f08: 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 ) { 40009f0c: c2 04 20 08 ld [ %l0 + 8 ], %g1 40009f10: 80 a0 60 00 cmp %g1, 0 40009f14: 22 80 00 06 be,a 40009f2c 40009f18: 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 ); 40009f1c: 40 00 05 8e call 4000b554 <_Chain_Extract> 40009f20: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 40009f24: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40009f28: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 40009f2c: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40009f30: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 40009f34: 90 07 bf f8 add %fp, -8, %o0 40009f38: 40 00 01 07 call 4000a354 40009f3c: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 40009f40: 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) ) { 40009f44: 90 10 00 10 mov %l0, %o0 40009f48: 40 00 01 3b call 4000a434 40009f4c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 40009f50: 80 a2 20 00 cmp %o0, 0 40009f54: 12 80 00 18 bne 40009fb4 40009f58: 01 00 00 00 nop 40009f5c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 40009f60: 80 a0 60 00 cmp %g1, 0 40009f64: 12 80 00 14 bne 40009fb4 40009f68: 03 10 00 70 sethi %hi(0x4001c000), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 40009f6c: c2 00 60 c8 ld [ %g1 + 0xc8 ], %g1 ! 4001c0c8 40009f70: c4 06 40 00 ld [ %i1 ], %g2 40009f74: c6 00 60 04 ld [ %g1 + 4 ], %g3 40009f78: 80 a0 c0 02 cmp %g3, %g2 40009f7c: 22 80 00 02 be,a 40009f84 40009f80: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 40009f84: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 40009f88: 80 a0 60 04 cmp %g1, 4 40009f8c: 12 80 00 08 bne 40009fac 40009f90: 01 00 00 00 nop if ( the_jnode->info.sym_link.name ) 40009f94: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 40009f98: 80 a2 20 00 cmp %o0, 0 40009f9c: 02 80 00 04 be 40009fac 40009fa0: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 40009fa4: 40 00 00 7f call 4000a1a0 40009fa8: 01 00 00 00 nop } free( the_jnode ); 40009fac: 40 00 00 7d call 4000a1a0 40009fb0: 90 10 00 10 mov %l0, %o0 } return 0; } 40009fb4: 81 c7 e0 08 ret 40009fb8: 91 e8 20 00 restore %g0, 0, %o0 40009fd4 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 40009fd4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 40009fd8: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 40009fdc: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40009fe0: 84 00 bf fe add %g2, -2, %g2 40009fe4: 80 a0 a0 05 cmp %g2, 5 40009fe8: 18 80 00 10 bgu 4000a028 40009fec: 85 28 a0 02 sll %g2, 2, %g2 40009ff0: 07 10 00 27 sethi %hi(0x40009c00), %g3 40009ff4: 86 10 e3 bc or %g3, 0x3bc, %g3 ! 40009fbc 40009ff8: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 40009ffc: 81 c0 80 00 jmp %g2 4000a000: 01 00 00 00 nop rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 4000a004: 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; 4000a008: 10 80 00 0e b 4000a040 4000a00c: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 4000a010: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 4000a014: 10 80 00 0b b 4000a040 4000a018: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 4000a01c: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED break; 4000a020: 10 80 00 08 b 4000a040 <== NOT EXECUTED 4000a024: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000a028: 40 00 11 c5 call 4000e73c <__errno> <== NOT EXECUTED 4000a02c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000a030: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 4000a034: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4000a038: 81 c7 e0 08 ret <== NOT EXECUTED 4000a03c: 81 e8 00 00 restore <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; 4000a040: c6 10 60 2e lduh [ %g1 + 0x2e ], %g3 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4000a044: 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; 4000a048: c6 36 60 0c sth %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 4000a04c: 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; 4000a050: 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; 4000a054: 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; 4000a058: 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; 4000a05c: 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; 4000a060: 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; 4000a064: 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; 4000a068: 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; 4000a06c: c4 26 60 30 st %g2, [ %i1 + 0x30 ] buf->st_ctime = the_jnode->stat_ctime; 4000a070: 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; 4000a074: 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; 4000a078: 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; 4000a07c: 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; } 4000a080: 81 c7 e0 08 ret 4000a084: 91 e8 20 00 restore %g0, 0, %o0 400030f8 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 400030f8: 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 ); 400030fc: 40 00 47 2b call 40014da8 40003100: 90 10 00 1a mov %i2, %o0 40003104: 96 07 bf fc add %fp, -4, %o3 40003108: 92 10 00 08 mov %o0, %o1 4000310c: a0 07 bf b8 add %fp, -72, %l0 40003110: 90 10 00 1a mov %i2, %o0 40003114: 40 00 30 78 call 4000f2f4 40003118: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 4000311c: 40 00 47 0e call 40014d54 40003120: 90 10 00 19 mov %i1, %o0 40003124: d0 27 bf e0 st %o0, [ %fp + -32 ] if (info.sym_link.name == NULL) { 40003128: 80 a2 20 00 cmp %o0, 0 4000312c: 12 80 00 08 bne 4000314c 40003130: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one(ENOMEM); 40003134: 40 00 43 7f call 40013f30 <__errno> <== NOT EXECUTED 40003138: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000313c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 40003140: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40003144: 81 c7 e0 08 ret 40003148: 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( 4000314c: 94 10 00 10 mov %l0, %o2 40003150: 92 10 20 04 mov 4, %o1 40003154: 17 00 00 28 sethi %hi(0xa000), %o3 40003158: 98 07 bf e0 add %fp, -32, %o4 4000315c: 96 12 e1 ff or %o3, 0x1ff, %o3 40003160: 40 00 2d 1b call 4000e5cc 40003164: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 40003168: 80 a2 20 00 cmp %o0, 0 4000316c: 12 bf ff f6 bne 40003144 40003170: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 40003174: 40 00 01 a0 call 400037f4 <== NOT EXECUTED 40003178: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 4000317c: 40 00 43 6d call 40013f30 <__errno> <== NOT EXECUTED 40003180: 01 00 00 00 nop <== NOT EXECUTED 40003184: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 40003188: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 4000318c: 81 c7 e0 08 ret <== NOT EXECUTED 40003190: 81 e8 00 00 restore <== NOT EXECUTED 40003194 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 40003194: 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; 40003198: 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 ) { 4000319c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 400031a0: 80 a0 60 03 cmp %g1, 3 400031a4: 12 80 00 29 bne 40003248 400031a8: a4 10 00 18 mov %i0, %l2 if ( !node->info.hard_link.link_node ) 400031ac: e6 04 20 50 ld [ %l0 + 0x50 ], %l3 400031b0: 80 a4 e0 00 cmp %l3, 0 400031b4: 12 80 00 08 bne 400031d4 400031b8: a2 07 bf e4 add %fp, -28, %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 400031bc: 40 00 43 5d call 40013f30 <__errno> <== NOT EXECUTED 400031c0: 01 00 00 00 nop <== NOT EXECUTED 400031c4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 400031c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400031cc: 10 80 00 24 b 4000325c <== NOT EXECUTED 400031d0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 400031d4: 92 10 00 19 mov %i1, %o1 400031d8: 94 10 20 14 mov 0x14, %o2 400031dc: 40 00 45 90 call 4001481c 400031e0: 90 10 00 11 mov %l1, %o0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 400031e4: 90 10 00 11 mov %l1, %o0 400031e8: 40 00 2d 46 call 4000e700 400031ec: 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) 400031f0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 400031f4: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 400031f8: 80 a0 e0 01 cmp %g3, 1 400031fc: 12 80 00 0c bne 4000322c 40003200: 84 00 ff ff add %g3, -1, %g2 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 40003204: c2 07 bf ec ld [ %fp + -20 ], %g1 40003208: 92 10 00 11 mov %l1, %o1 4000320c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 40003210: 9f c0 40 00 call %g1 40003214: 90 10 00 18 mov %i0, %o0 if ( result != 0 ) 40003218: 80 a2 20 00 cmp %o0, 0 4000321c: 02 80 00 0b be 40003248 40003220: 90 10 3f ff mov -1, %o0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 40003224: 81 c7 e0 08 ret 40003228: 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 ); 4000322c: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 40003230: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] IMFS_update_ctime( node->info.hard_link.link_node ); 40003234: 40 00 01 9a call 4000389c 40003238: 92 10 20 00 clr %o1 4000323c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 40003240: c4 07 bf f8 ld [ %fp + -8 ], %g2 40003244: 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 ); 40003248: c2 06 60 08 ld [ %i1 + 8 ], %g1 4000324c: 90 10 00 12 mov %l2, %o0 40003250: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 40003254: 9f c0 40 00 call %g1 40003258: 92 10 00 19 mov %i1, %o1 return result; } 4000325c: b0 10 00 08 mov %o0, %i0 40003260: 81 c7 e0 08 ret 40003264: 81 e8 00 00 restore 40003268 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 40003268: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 4000326c: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 40003270: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 40003274: 80 a0 a0 01 cmp %g2, 1 40003278: 22 80 00 06 be,a 40003290 4000327c: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40003280: 40 00 43 2c call 40013f30 <__errno> <== NOT EXECUTED 40003284: 01 00 00 00 nop <== NOT EXECUTED 40003288: 10 80 00 08 b 400032a8 <== NOT EXECUTED 4000328c: 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 ) 40003290: 80 a0 a0 00 cmp %g2, 0 40003294: 32 80 00 08 bne,a 400032b4 40003298: c0 20 60 5c clr [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 4000329c: 40 00 43 25 call 40013f30 <__errno> <== NOT EXECUTED 400032a0: 01 00 00 00 nop <== NOT EXECUTED 400032a4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 400032a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400032ac: 81 c7 e0 08 ret <== NOT EXECUTED 400032b0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 400032b4: 81 c7 e0 08 ret 400032b8: 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 71 sethi %hi(0x4001c400), %g1 40002248: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 4001c628 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 21 16 call 4000a6bc 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 71 sethi %hi(0x4001c400), %g1 40002270: c2 00 62 2c ld [ %g1 + 0x22c ], %g1 ! 4001c62c 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 71 sethi %hi(0x4001c400), %g1 4000229c: c2 08 62 25 ldub [ %g1 + 0x225 ], %g1 ! 4001c625 400022a0: 80 a0 60 00 cmp %g1, 0 400022a4: 12 80 00 0c bne 400022d4 400022a8: 03 10 00 71 sethi %hi(0x4001c400), %g1 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 400022ac: 03 10 00 70 sethi %hi(0x4001c000), %g1 400022b0: c2 08 60 90 ldub [ %g1 + 0x90 ], %g1 ! 4001c090 400022b4: 80 a0 60 00 cmp %g1, 0 400022b8: 02 80 00 07 be 400022d4 400022bc: 03 10 00 71 sethi %hi(0x4001c400), %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 33 97 call 4000f124 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 71 sethi %hi(0x4001c400), %g1 400022d4: c2 08 62 25 ldub [ %g1 + 0x225 ], %g1 ! 4001c625 400022d8: 80 a0 60 00 cmp %g1, 0 400022dc: 12 80 00 0c bne 4000230c 400022e0: 03 10 00 6f sethi %hi(0x4001bc00), %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 63 c0 ld [ %g1 + 0x3c0 ], %o0 ! 4001bfc0 400022e8: 92 10 00 18 mov %i0, %o1 400022ec: 94 10 00 19 mov %i1, %o2 400022f0: 40 00 10 57 call 4000644c <_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 72 sethi %hi(0x4001c800), %i1 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 40002304: 40 00 0e 43 call 40005c10 <== 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 72 sethi %hi(0x4001c800), %i1 40002310: 03 10 00 6f sethi %hi(0x4001bc00), %g1 40002314: f0 06 60 00 ld [ %i1 ], %i0 40002318: 40 00 13 66 call 400070b0 <_Protected_heap_Get_size> 4000231c: d0 00 63 c0 ld [ %g1 + 0x3c0 ], %o0 40002320: 90 02 00 18 add %o0, %i0, %o0 40002324: d0 26 60 00 st %o0, [ %i1 ] 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 99 sethi %hi(0x40066400), %g1 <== NOT EXECUTED return; if ( !print_handler ) 40004fd0: e4 00 63 a4 ld [ %g1 + 0x3a4 ], %l2 ! 400667a4 <== 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 a4 sethi %hi(0x40069000), %l1 <== NOT EXECUTED 40004fec: a2 14 62 a0 or %l1, 0x2a0, %l1 ! 400692a0 <== 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 c4 add %i0, 0xc4, %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 99 sethi %hi(0x40066400), %g1 <== NOT EXECUTED (*print_handler)( 40005048: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED 4000504c: ec 00 63 a0 ld [ %g1 + 0x3a0 ], %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 7b call 4000b244 <== 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 6c sethi %hi(0x4005b000), %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 63 f8 or %o1, 0x3f8, %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 63 a0 ld [ %g1 + 0x3a0 ], %o0 <== NOT EXECUTED 40005084: 13 10 01 6d sethi %hi(0x4005b400), %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 60 08 or %o1, 8, %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 99 sethi %hi(0x40066400), %l2 <== NOT EXECUTED 400050a0: 23 10 01 99 sethi %hi(0x40066400), %l1 <== NOT EXECUTED 400050a4: c2 04 a3 a4 ld [ %l2 + 0x3a4 ], %g1 <== NOT EXECUTED 400050a8: d0 04 63 a0 ld [ %l1 + 0x3a0 ], %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 6d sethi %hi(0x4005b400), %o1 <== NOT EXECUTED 400050c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400050c4: 92 12 60 18 or %o1, 0x18, %o1 ! 4005b418 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 400050c8: 03 10 01 99 sethi %hi(0x40066400), %g1 <== NOT EXECUTED 400050cc: c2 00 63 9c ld [ %g1 + 0x39c ], %g1 ! 4006679c <== NOT EXECUTED 400050d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400050d4: 12 80 00 08 bne 400050f4 <== NOT EXECUTED 400050d8: c2 04 a3 a4 ld [ %l2 + 0x3a4 ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 400050dc: d0 04 63 a0 ld [ %l1 + 0x3a0 ], %o0 <== NOT EXECUTED 400050e0: 13 10 01 6d sethi %hi(0x4005b400), %o1 <== NOT EXECUTED 400050e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 400050e8: 92 12 60 38 or %o1, 0x38, %o1 ! 4005b438 <== 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 63 a0 ld [ %l1 + 0x3a0 ], %o0 <== NOT EXECUTED 400050f8: 13 10 01 6d sethi %hi(0x4005b400), %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 60 48 or %o1, 0x48, %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 6d sethi %hi(0x4005b400), %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 c8 ld [ %i0 + 0xc8 ], %l0 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 40005190: 40 00 0b 50 call 40007ed0 <== NOT EXECUTED 40005194: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED printk("task control block: 0x%08lx\n", (unsigned long) running); 40005198: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000519c: 11 10 01 6d sethi %hi(0x4005b400), %o0 <== NOT EXECUTED 400051a0: 40 00 0b 4c call 40007ed0 <== NOT EXECUTED 400051a4: 90 12 20 c8 or %o0, 0xc8, %o0 ! 4005b4c8 <== 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 6d sethi %hi(0x4005b400), %o0 <== NOT EXECUTED 400051b0: 40 00 0b 48 call 40007ed0 <== NOT EXECUTED 400051b4: 90 12 20 e8 or %o0, 0xe8, %o0 ! 4005b4e8 <== NOT EXECUTED printk( 400051b8: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 400051bc: 11 10 01 6d sethi %hi(0x4005b400), %o0 <== NOT EXECUTED 400051c0: 40 00 0b 44 call 40007ed0 <== NOT EXECUTED 400051c4: 90 12 21 00 or %o0, 0x100, %o0 ! 4005b500 <== NOT EXECUTED "task name: 0x%08lx\n", (unsigned long) 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 1d call 4000b244 <== 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 6d sethi %hi(0x4005b400), %o0 <== NOT EXECUTED 400051e0: 40 00 0b 3c call 40007ed0 <== NOT EXECUTED 400051e4: 90 12 21 18 or %o0, 0x118, %o0 ! 4005b518 <== NOT EXECUTED ); printk( "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) 400051e8: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1 <== NOT EXECUTED ); printk( "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 400051ec: d4 06 20 c8 ld [ %i0 + 0xc8 ], %o2 <== NOT EXECUTED 400051f0: 11 10 01 6d sethi %hi(0x4005b400), %o0 <== NOT EXECUTED 400051f4: 96 02 80 09 add %o2, %o1, %o3 <== NOT EXECUTED 400051f8: 40 00 0b 36 call 40007ed0 <== NOT EXECUTED 400051fc: 90 12 21 30 or %o0, 0x130, %o0 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ); if (!pattern_ok) { 40005200: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 40005204: 12 80 00 07 bne 40005220 <== NOT EXECUTED 40005208: 11 10 01 6d sethi %hi(0x4005b400), %o0 <== NOT EXECUTED printk( 4000520c: 96 04 20 18 add %l0, 0x18, %o3 <== NOT EXECUTED 40005210: 90 12 21 68 or %o0, 0x168, %o0 <== NOT EXECUTED 40005214: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 40005218: 40 00 0b 2e call 40007ed0 <== 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 40 call 4000bb20 <== NOT EXECUTED 40005224: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED 40005228: 01 00 00 00 nop 40007c8c <_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 ) { 40007c8c: 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; 40007c90: 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); 40007c94: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 40007c98: 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); 40007c9c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40007ca0: 82 06 60 38 add %i1, 0x38, %g1 40007ca4: 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; 40007ca8: 2d 10 00 70 sethi %hi(0x4001c000), %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 ]; 40007cac: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 40007cb0: 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 ]; 40007cb4: 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; 40007cb8: ac 15 a0 64 or %l6, 0x64, %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 ]; 40007cbc: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 40007cc0: 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 ]; 40007cc4: a6 24 c0 01 sub %l3, %g1, %l3 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 40007cc8: 12 80 00 28 bne 40007d68 <_Thread_queue_Enqueue_priority+0xdc> 40007ccc: 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; 40007cd0: ac 04 e0 04 add %l3, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 40007cd4: 7f ff e7 f1 call 40001c98 40007cd8: 01 00 00 00 nop 40007cdc: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 40007ce0: a8 10 3f ff mov -1, %l4 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 40007ce4: 10 80 00 10 b 40007d24 <_Thread_queue_Enqueue_priority+0x98> 40007ce8: e2 04 c0 00 ld [ %l3 ], %l1 search_priority = search_thread->current_priority; if ( priority <= search_priority ) 40007cec: 80 a4 00 14 cmp %l0, %l4 40007cf0: 28 80 00 11 bleu,a 40007d34 <_Thread_queue_Enqueue_priority+0xa8> 40007cf4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 40007cf8: 7f ff e7 ec call 40001ca8 40007cfc: 90 10 00 12 mov %l2, %o0 40007d00: 7f ff e7 e6 call 40001c98 40007d04: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 40007d08: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 40007d0c: 80 8d 40 01 btst %l5, %g1 40007d10: 32 80 00 05 bne,a 40007d24 <_Thread_queue_Enqueue_priority+0x98> 40007d14: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 40007d18: 7f ff e7 e4 call 40001ca8 <== NOT EXECUTED 40007d1c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 40007d20: 30 bf ff ed b,a 40007cd4 <_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 ) ) { 40007d24: 80 a4 40 16 cmp %l1, %l6 40007d28: 32 bf ff f1 bne,a 40007cec <_Thread_queue_Enqueue_priority+0x60> 40007d2c: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 40007d30: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 40007d34: 80 a0 60 01 cmp %g1, 1 40007d38: 12 80 00 3c bne 40007e28 <_Thread_queue_Enqueue_priority+0x19c> 40007d3c: 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 ) 40007d40: 80 a4 00 14 cmp %l0, %l4 40007d44: 02 80 00 2e be 40007dfc <_Thread_queue_Enqueue_priority+0x170> 40007d48: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 40007d4c: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 40007d50: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 40007d54: 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; 40007d58: 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; 40007d5c: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 40007d60: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 40007d64: 30 80 00 2d b,a 40007e18 <_Thread_queue_Enqueue_priority+0x18c> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 40007d68: 7f ff e7 cc call 40001c98 40007d6c: 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; 40007d70: a8 05 20 01 inc %l4 _ISR_Disable( level ); 40007d74: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 40007d78: 10 80 00 10 b 40007db8 <_Thread_queue_Enqueue_priority+0x12c> 40007d7c: e2 04 e0 08 ld [ %l3 + 8 ], %l1 search_priority = search_thread->current_priority; if ( priority >= search_priority ) 40007d80: 80 a4 00 14 cmp %l0, %l4 40007d84: 3a 80 00 11 bcc,a 40007dc8 <_Thread_queue_Enqueue_priority+0x13c> 40007d88: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 40007d8c: 7f ff e7 c7 call 40001ca8 40007d90: 90 10 00 12 mov %l2, %o0 40007d94: 7f ff e7 c1 call 40001c98 40007d98: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 40007d9c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 40007da0: 80 8d 40 01 btst %l5, %g1 40007da4: 32 80 00 05 bne,a 40007db8 <_Thread_queue_Enqueue_priority+0x12c> 40007da8: e2 04 60 04 ld [ %l1 + 4 ], %l1 _ISR_Enable( level ); 40007dac: 7f ff e7 bf call 40001ca8 40007db0: 90 10 00 12 mov %l2, %o0 goto restart_reverse_search; 40007db4: 30 bf ff ed b,a 40007d68 <_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 ) ) { 40007db8: 80 a4 40 13 cmp %l1, %l3 40007dbc: 32 bf ff f1 bne,a 40007d80 <_Thread_queue_Enqueue_priority+0xf4> 40007dc0: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 40007dc4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 40007dc8: 80 a0 60 01 cmp %g1, 1 40007dcc: 12 80 00 17 bne 40007e28 <_Thread_queue_Enqueue_priority+0x19c> 40007dd0: 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 ) 40007dd4: 80 a4 00 14 cmp %l0, %l4 40007dd8: 02 80 00 09 be 40007dfc <_Thread_queue_Enqueue_priority+0x170> 40007ddc: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 40007de0: c2 04 40 00 ld [ %l1 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 40007de4: 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; 40007de8: 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; 40007dec: 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; 40007df0: f2 24 40 00 st %i1, [ %l1 ] next_node->previous = the_node; 40007df4: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 40007df8: 30 80 00 08 b,a 40007e18 <_Thread_queue_Enqueue_priority+0x18c> 40007dfc: 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; 40007e00: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 40007e04: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 40007e08: 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; 40007e0c: 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; 40007e10: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 40007e14: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 40007e18: 7f ff e7 a4 call 40001ca8 40007e1c: b0 10 20 01 mov 1, %i0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 40007e20: 81 c7 e0 08 ret 40007e24: 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; 40007e28: 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; 40007e2c: d0 26 80 00 st %o0, [ %i2 ] return the_thread_queue->sync_state; } 40007e30: 81 c7 e0 08 ret 40007e34: 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 f1 sethi %hi(0x4003c400), %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 f1 sethi %hi(0x4003c400), %i3 40014b84: 2b 10 00 f1 sethi %hi(0x4003c400), %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 a2 04 or %i2, 0x204, %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 e1 40 or %i3, 0x140, %i3 40014ba8: aa 15 60 b0 or %l5, 0xb0, %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 11 5f call 40019154 <_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 11 57 call 40019154 <_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 11 2a call 400190b8 <_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 7e call 40015618 <_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 11 73 call 40019228 <_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 0e 4c call 40018648 <_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 93 call 40017b7c <_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 97 call 4001939c <_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 95 call 4001939c <_Watchdog_Remove> 40014d4c: 90 10 00 1d mov %i5, %o0 40014d50: 30 bf ff 9c b,a 40014bc0 <_Timer_server_Body+0x58> 4001a360 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 4001a360: 9d e3 bf a0 save %sp, -96, %sp 4001a364: 40 00 07 08 call 4001bf84 <_fini> 4001a368: 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(); 4001a36c: 7f ff ff e1 call 4001a2f0 4001a370: 01 00 00 00 nop rtems_shutdown_executive(status); 4001a374: 40 00 00 4c call 4001a4a4 4001a378: 90 10 00 18 mov %i0, %o0 4001a37c: 30 80 00 00 b,a 4001a37c <_exit+0x1c> <== NOT EXECUTED 40039838 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 40039838: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 4003983c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 40039840: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 40039844: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40039848: 7f ff ff 7f call 40039644 <== NOT EXECUTED 4003984c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40039850: 01 00 00 00 nop 4000d028 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 4000d028: 81 c3 e0 08 retl <== NOT EXECUTED 4000d02c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 4000a3b8 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 4000a3b8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000a3bc: 7f ff ff e6 call 4000a354 <== NOT EXECUTED 4000a3c0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4000a3c4: 01 00 00 00 nop 40027514 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 40027514: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40027518: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 4002751c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40027520: 7f ff ff 62 call 400272a8 <== NOT EXECUTED 40027524: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40027528: 01 00 00 00 nop 4002775c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 4002775c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40027760: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 40027764: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40027768: 7f ff ff c0 call 40027668 <== NOT EXECUTED 4002776c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40027770: 01 00 00 00 nop 4001a470 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 4001a470: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 4001a474: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 4001a478: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4001a47c: 40 00 00 17 call 4001a4d8 <== NOT EXECUTED 4001a480: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4001a484: 01 00 00 00 nop 40059bf8 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 40059bf8: 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 ); 40059bfc: 7f fe b3 af call 40006ab8 <== NOT EXECUTED 40059c00: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 40059c04: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 40059c08: 32 80 00 17 bne,a 40059c64 <_rename_r+0x6c> <== NOT EXECUTED 40059c0c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 40059c10: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 40059c14: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 40059c18: 02 80 00 06 be 40059c30 <_rename_r+0x38> <== NOT EXECUTED 40059c1c: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 40059c20: 02 80 00 04 be 40059c30 <_rename_r+0x38> <== NOT EXECUTED 40059c24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059c28: 12 80 00 07 bne 40059c44 <_rename_r+0x4c> <== NOT EXECUTED 40059c2c: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40059c30: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40059c34: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 ! 40065538 <== NOT EXECUTED 40059c38: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 40059c3c: 10 80 00 05 b 40059c50 <_rename_r+0x58> <== NOT EXECUTED 40059c40: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 40059c44: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 <== NOT EXECUTED 40059c48: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 40059c4c: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 40059c50: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40059c54: 7f ff a3 a4 call 40042ae4 <== NOT EXECUTED 40059c58: 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; 40059c5c: 10 80 00 0c b 40059c8c <_rename_r+0x94> <== NOT EXECUTED 40059c60: 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, 40059c64: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 40059c68: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 40059c6c: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 40059c70: 98 10 20 00 clr %o4 <== NOT EXECUTED 40059c74: 7f fe b3 df call 40006bf0 <== NOT EXECUTED 40059c78: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 40059c7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40059c80: 12 80 00 2b bne 40059d2c <_rename_r+0x134> <== NOT EXECUTED 40059c84: 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; 40059c88: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40059c8c: a6 07 bf e8 add %fp, -24, %l3 <== NOT EXECUTED 40059c90: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED 40059c94: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 40059c98: 7f ff a3 93 call 40042ae4 <== NOT EXECUTED 40059c9c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED name = old + old_parent_pathlen; 40059ca0: b2 06 40 10 add %i1, %l0, %i1 <== NOT EXECUTED 40059ca4: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 40059ca8: 7f ff b1 fb call 40046494 <== NOT EXECUTED 40059cac: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 40059cb0: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40059cb4: 7f fe b3 6f call 40006a70 <== NOT EXECUTED 40059cb8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 40059cbc: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 40059cc0: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 40059cc4: 7f ff b1 f4 call 40046494 <== NOT EXECUTED 40059cc8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 40059ccc: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 40059cd0: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40059cd4: 94 10 20 00 clr %o2 <== NOT EXECUTED 40059cd8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 40059cdc: 7f fe b3 89 call 40006b00 <== NOT EXECUTED 40059ce0: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 40059ce4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 40059ce8: 22 80 00 13 be,a 40059d34 <_rename_r+0x13c> <== NOT EXECUTED 40059cec: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED if ( free_old_parentloc ) 40059cf0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059cf4: 02 80 00 0b be 40059d20 <_rename_r+0x128> <== NOT EXECUTED 40059cf8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40059cfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059d00: 02 80 00 08 be 40059d20 <_rename_r+0x128> <== NOT EXECUTED 40059d04: 01 00 00 00 nop <== NOT EXECUTED 40059d08: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059d0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059d10: 02 80 00 04 be 40059d20 <_rename_r+0x128> <== NOT EXECUTED 40059d14: 01 00 00 00 nop <== NOT EXECUTED 40059d18: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059d1c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 40059d20: 7f ff 96 9e call 4003f798 <__errno> <== NOT EXECUTED 40059d24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40059d28: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 40059d2c: 81 c7 e0 08 ret <== NOT EXECUTED 40059d30: 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 ); 40059d34: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 40059d38: 02 80 00 06 be 40059d50 <_rename_r+0x158> <== NOT EXECUTED 40059d3c: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 40059d40: 02 80 00 04 be 40059d50 <_rename_r+0x158> <== NOT EXECUTED 40059d44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059d48: 12 80 00 0a bne 40059d70 <_rename_r+0x178> <== NOT EXECUTED 40059d4c: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40059d50: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40059d54: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 ! 40065538 <== NOT EXECUTED 40059d58: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 40059d5c: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 40059d60: 7f ff a3 61 call 40042ae4 <== NOT EXECUTED 40059d64: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40059d68: 10 80 00 08 b 40059d88 <_rename_r+0x190> <== NOT EXECUTED 40059d6c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 40059d70: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 <== NOT EXECUTED 40059d74: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 40059d78: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 40059d7c: 7f ff a3 5a call 40042ae4 <== NOT EXECUTED 40059d80: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40059d84: 90 10 20 00 clr %o0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 40059d88: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 40059d8c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 40059d90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059d94: 02 80 00 61 be 40059f18 <_rename_r+0x320> <== NOT EXECUTED 40059d98: 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 ); 40059d9c: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 40059da0: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 40059da4: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059da8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if ( result != 0 ) { 40059dac: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 40059db0: 02 80 00 28 be 40059e50 <_rename_r+0x258> <== NOT EXECUTED 40059db4: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 40059db8: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 40059dbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059dc0: 02 80 00 09 be 40059de4 <_rename_r+0x1ec> <== NOT EXECUTED 40059dc4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059dc8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059dcc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059dd0: 02 80 00 05 be 40059de4 <_rename_r+0x1ec> <== NOT EXECUTED 40059dd4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059dd8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059ddc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 40059de0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059de4: 02 80 00 0d be 40059e18 <_rename_r+0x220> <== NOT EXECUTED 40059de8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40059dec: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40059df0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059df4: 22 80 00 09 be,a 40059e18 <_rename_r+0x220> <== NOT EXECUTED 40059df8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059dfc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059e00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059e04: 22 80 00 05 be,a 40059e18 <_rename_r+0x220> <== NOT EXECUTED 40059e08: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059e0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059e10: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40059e14: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059e18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059e1c: 02 80 00 08 be 40059e3c <_rename_r+0x244> <== NOT EXECUTED 40059e20: 01 00 00 00 nop <== NOT EXECUTED 40059e24: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059e28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059e2c: 02 80 00 04 be 40059e3c <_rename_r+0x244> <== NOT EXECUTED 40059e30: 01 00 00 00 nop <== NOT EXECUTED 40059e34: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059e38: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 40059e3c: 7f ff 96 57 call 4003f798 <__errno> <== NOT EXECUTED 40059e40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40059e44: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED 40059e48: 81 c7 e0 08 ret <== NOT EXECUTED 40059e4c: 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 ) { 40059e50: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED 40059e54: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 40059e58: 02 80 00 26 be 40059ef0 <_rename_r+0x2f8> <== NOT EXECUTED 40059e5c: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 40059e60: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40059e64: 02 80 00 09 be 40059e88 <_rename_r+0x290> <== NOT EXECUTED 40059e68: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059e6c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40059e70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059e74: 02 80 00 05 be 40059e88 <_rename_r+0x290> <== NOT EXECUTED 40059e78: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059e7c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059e80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 40059e84: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059e88: 02 80 00 0d be 40059ebc <_rename_r+0x2c4> <== NOT EXECUTED 40059e8c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40059e90: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40059e94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059e98: 22 80 00 09 be,a 40059ebc <_rename_r+0x2c4> <== NOT EXECUTED 40059e9c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059ea0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059ea4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059ea8: 22 80 00 05 be,a 40059ebc <_rename_r+0x2c4> <== NOT EXECUTED 40059eac: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059eb0: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059eb4: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40059eb8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059ebc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059ec0: 02 80 00 08 be 40059ee0 <_rename_r+0x2e8> <== NOT EXECUTED 40059ec4: 01 00 00 00 nop <== NOT EXECUTED 40059ec8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059ecc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059ed0: 02 80 00 04 be 40059ee0 <_rename_r+0x2e8> <== NOT EXECUTED 40059ed4: 01 00 00 00 nop <== NOT EXECUTED 40059ed8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059edc: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 40059ee0: 7f ff 96 2e call 4003f798 <__errno> <== NOT EXECUTED 40059ee4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40059ee8: 10 80 00 26 b 40059f80 <_rename_r+0x388> <== NOT EXECUTED 40059eec: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 40059ef0: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 40059ef4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059ef8: 12 80 00 25 bne 40059f8c <_rename_r+0x394> <== NOT EXECUTED 40059efc: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 40059f00: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40059f04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059f08: 02 80 00 05 be 40059f1c <_rename_r+0x324> <== NOT EXECUTED 40059f0c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059f10: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059f14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 40059f18: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059f1c: 02 80 00 0d be 40059f50 <_rename_r+0x358> <== NOT EXECUTED 40059f20: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40059f24: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40059f28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059f2c: 22 80 00 09 be,a 40059f50 <_rename_r+0x358> <== NOT EXECUTED 40059f30: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059f34: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059f38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059f3c: 22 80 00 05 be,a 40059f50 <_rename_r+0x358> <== NOT EXECUTED 40059f40: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059f44: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059f48: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40059f4c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059f50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059f54: 02 80 00 08 be 40059f74 <_rename_r+0x37c> <== NOT EXECUTED 40059f58: 01 00 00 00 nop <== NOT EXECUTED 40059f5c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059f60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059f64: 02 80 00 04 be 40059f74 <_rename_r+0x37c> <== NOT EXECUTED 40059f68: 01 00 00 00 nop <== NOT EXECUTED 40059f6c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059f70: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40059f74: 7f ff 96 09 call 4003f798 <__errno> <== NOT EXECUTED 40059f78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40059f7c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40059f80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40059f84: 81 c7 e0 08 ret <== NOT EXECUTED 40059f88: 81 e8 00 00 restore <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 40059f8c: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 40059f90: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 40059f94: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059f98: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 40059f9c: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 40059fa0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059fa4: 02 80 00 08 be 40059fc4 <_rename_r+0x3cc> <== NOT EXECUTED 40059fa8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 40059fac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059fb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059fb4: 02 80 00 05 be 40059fc8 <_rename_r+0x3d0> <== NOT EXECUTED 40059fb8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059fbc: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059fc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 40059fc4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40059fc8: 02 80 00 0d be 40059ffc <_rename_r+0x404> <== NOT EXECUTED 40059fcc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 40059fd0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40059fd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059fd8: 22 80 00 09 be,a 40059ffc <_rename_r+0x404> <== NOT EXECUTED 40059fdc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059fe0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40059fe4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40059fe8: 22 80 00 05 be,a 40059ffc <_rename_r+0x404> <== NOT EXECUTED 40059fec: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059ff0: 9f c0 40 00 call %g1 <== NOT EXECUTED 40059ff4: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 40059ff8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40059ffc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4005a000: 02 80 00 08 be 4005a020 <_rename_r+0x428> <== NOT EXECUTED 4005a004: 01 00 00 00 nop <== NOT EXECUTED 4005a008: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4005a00c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4005a010: 02 80 00 04 be 4005a020 <_rename_r+0x428> <== NOT EXECUTED 4005a014: 01 00 00 00 nop <== NOT EXECUTED 4005a018: 9f c0 40 00 call %g1 <== NOT EXECUTED 4005a01c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED return result; } 4005a020: 81 c7 e0 08 ret <== NOT EXECUTED 4005a024: 81 e8 00 00 restore <== NOT EXECUTED 40008504 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 40008504: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 40008508: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 4000850c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40008510: 7f ff ff c0 call 40008410 <== NOT EXECUTED 40008514: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40008518: 01 00 00 00 nop 4000e0b4 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 4000e0b4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 4000e0b8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000e0bc: 7f ff ff 58 call 4000de1c <== NOT EXECUTED 4000e0c0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4000e0c4: 01 00 00 00 nop 40025ef0 : #include int chdir( const char *pathname ) { 40025ef0: 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 ); 40025ef4: 40 00 81 68 call 40046494 40025ef8: 90 10 00 18 mov %i0, %o0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 40025efc: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 40025f00: 92 10 00 08 mov %o0, %o1 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 40025f04: 94 10 20 01 mov 1, %o2 40025f08: 90 10 00 18 mov %i0, %o0 40025f0c: 96 10 00 10 mov %l0, %o3 40025f10: 98 10 20 01 mov 1, %o4 40025f14: 7f ff 83 37 call 40006bf0 40025f18: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 40025f1c: 80 a2 20 00 cmp %o0, 0 40025f20: 12 80 00 37 bne 40025ffc 40025f24: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 40025f28: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40025f2c: 80 a0 60 00 cmp %g1, 0 40025f30: 12 80 00 0c bne 40025f60 40025f34: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 40025f38: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40025f3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40025f40: 02 80 00 04 be 40025f50 <== NOT EXECUTED 40025f44: 01 00 00 00 nop <== NOT EXECUTED 40025f48: 9f c0 40 00 call %g1 <== NOT EXECUTED 40025f4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40025f50: 40 00 66 12 call 4003f798 <__errno> <== NOT EXECUTED 40025f54: 01 00 00 00 nop <== NOT EXECUTED 40025f58: 10 80 00 14 b 40025fa8 <== NOT EXECUTED 40025f5c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 40025f60: 9f c0 40 00 call %g1 40025f64: 90 10 00 10 mov %l0, %o0 40025f68: 80 a2 20 01 cmp %o0, 1 40025f6c: 02 80 00 12 be 40025fb4 40025f70: 03 10 01 95 sethi %hi(0x40065400), %g1 rtems_filesystem_freenode( &loc ); 40025f74: c2 07 bf f8 ld [ %fp + -8 ], %g1 40025f78: 80 a0 60 00 cmp %g1, 0 40025f7c: 02 80 00 08 be 40025f9c 40025f80: 01 00 00 00 nop 40025f84: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40025f88: 80 a0 60 00 cmp %g1, 0 40025f8c: 02 80 00 04 be 40025f9c 40025f90: 01 00 00 00 nop 40025f94: 9f c0 40 00 call %g1 40025f98: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40025f9c: 40 00 65 ff call 4003f798 <__errno> 40025fa0: 01 00 00 00 nop 40025fa4: 82 10 20 14 mov 0x14, %g1 ! 14 40025fa8: c2 22 00 00 st %g1, [ %o0 ] 40025fac: 81 c7 e0 08 ret 40025fb0: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 40025fb4: d0 00 61 38 ld [ %g1 + 0x138 ], %o0 40025fb8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 40025fbc: 80 a0 60 00 cmp %g1, 0 40025fc0: 22 80 00 09 be,a 40025fe4 40025fc4: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40025fc8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 4006541c 40025fcc: 80 a0 60 00 cmp %g1, 0 40025fd0: 22 80 00 05 be,a 40025fe4 40025fd4: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40025fd8: 9f c0 40 00 call %g1 40025fdc: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 40025fe0: 03 10 01 95 sethi %hi(0x40065400), %g1 40025fe4: d0 00 61 38 ld [ %g1 + 0x138 ], %o0 ! 40065538 40025fe8: 92 07 bf ec add %fp, -20, %o1 40025fec: 90 02 20 04 add %o0, 4, %o0 40025ff0: 94 10 20 14 mov 0x14, %o2 40025ff4: 40 00 72 bc call 40042ae4 40025ff8: b0 10 20 00 clr %i0 return 0; } 40025ffc: 81 c7 e0 08 ret 40026000: 81 e8 00 00 restore 400068b0 : int chmod( const char *path, mode_t mode ) { 400068b0: 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 ); 400068b4: 40 00 fe f8 call 40046494 400068b8: 90 10 00 18 mov %i0, %o0 400068bc: a0 07 bf ec add %fp, -20, %l0 400068c0: 92 10 00 08 mov %o0, %o1 400068c4: 94 10 20 00 clr %o2 400068c8: 90 10 00 18 mov %i0, %o0 400068cc: 96 10 00 10 mov %l0, %o3 400068d0: 98 10 20 01 mov 1, %o4 400068d4: 40 00 00 c7 call 40006bf0 400068d8: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 400068dc: 80 a2 20 00 cmp %o0, 0 400068e0: 12 80 00 24 bne 40006970 400068e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 400068e8: 80 a0 60 00 cmp %g1, 0 400068ec: 32 80 00 10 bne,a 4000692c 400068f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 rtems_filesystem_freenode( &loc ); 400068f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 400068f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400068fc: 02 80 00 08 be 4000691c <== NOT EXECUTED 40006900: 01 00 00 00 nop <== NOT EXECUTED 40006904: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40006908: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000690c: 02 80 00 04 be 4000691c <== NOT EXECUTED 40006910: 01 00 00 00 nop <== NOT EXECUTED 40006914: 9f c0 40 00 call %g1 <== NOT EXECUTED 40006918: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 4000691c: 40 00 e3 9f call 4003f798 <__errno> <== NOT EXECUTED 40006920: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40006924: 10 80 00 12 b 4000696c <== NOT EXECUTED 40006928: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 4000692c: 80 a0 60 00 cmp %g1, 0 40006930: 12 80 00 12 bne 40006978 40006934: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 40006938: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 4000693c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40006940: 02 80 00 08 be 40006960 <== NOT EXECUTED 40006944: 01 00 00 00 nop <== NOT EXECUTED 40006948: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000694c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40006950: 02 80 00 04 be 40006960 <== NOT EXECUTED 40006954: 01 00 00 00 nop <== NOT EXECUTED 40006958: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000695c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40006960: 40 00 e3 8e call 4003f798 <__errno> <== NOT EXECUTED 40006964: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40006968: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 4000696c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40006970: 81 c7 e0 08 ret 40006974: 81 e8 00 00 restore } result = (*loc.handlers->fchmod_h)( &loc, mode ); 40006978: 90 10 00 10 mov %l0, %o0 4000697c: 9f c0 40 00 call %g1 40006980: 93 32 60 10 srl %o1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 40006984: c2 07 bf f8 ld [ %fp + -8 ], %g1 40006988: 80 a0 60 00 cmp %g1, 0 4000698c: 02 bf ff f9 be 40006970 40006990: b0 10 00 08 mov %o0, %i0 40006994: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40006998: 80 a0 60 00 cmp %g1, 0 4000699c: 02 80 00 04 be 400069ac 400069a0: 01 00 00 00 nop 400069a4: 9f c0 40 00 call %g1 400069a8: 90 10 00 10 mov %l0, %o0 return result; } 400069ac: 81 c7 e0 08 ret 400069b0: 81 e8 00 00 restore 40026004 : int chown( const char *path, uid_t owner, gid_t group ) { 40026004: 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 ) ) 40026008: 40 00 81 23 call 40046494 4002600c: 90 10 00 18 mov %i0, %o0 40026010: a0 07 bf ec add %fp, -20, %l0 40026014: 92 10 00 08 mov %o0, %o1 40026018: 94 10 20 00 clr %o2 4002601c: 90 10 00 18 mov %i0, %o0 40026020: 96 10 00 10 mov %l0, %o3 40026024: 98 10 20 01 mov 1, %o4 40026028: 7f ff 82 f2 call 40006bf0 4002602c: b0 10 3f ff mov -1, %i0 40026030: 80 a2 20 00 cmp %o0, 0 40026034: 12 80 00 10 bne 40026074 40026038: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 4002603c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 40026040: 80 a0 60 00 cmp %g1, 0 40026044: 12 80 00 0e bne 4002607c 40026048: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 4002604c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40026050: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40026054: 02 80 00 04 be 40026064 <== NOT EXECUTED 40026058: 01 00 00 00 nop <== NOT EXECUTED 4002605c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40026060: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40026064: 40 00 65 cd call 4003f798 <__errno> <== NOT EXECUTED 40026068: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4002606c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40026070: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026074: 81 c7 e0 08 ret 40026078: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 4002607c: 95 2e a0 10 sll %i2, 0x10, %o2 40026080: 93 32 60 10 srl %o1, 0x10, %o1 40026084: 95 32 a0 10 srl %o2, 0x10, %o2 40026088: 9f c0 40 00 call %g1 4002608c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 40026090: c2 07 bf f8 ld [ %fp + -8 ], %g1 40026094: 80 a0 60 00 cmp %g1, 0 40026098: 02 bf ff f7 be 40026074 4002609c: b0 10 00 08 mov %o0, %i0 400260a0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400260a4: 80 a0 60 00 cmp %g1, 0 400260a8: 02 80 00 04 be 400260b8 400260ac: 01 00 00 00 nop 400260b0: 9f c0 40 00 call %g1 400260b4: 90 10 00 10 mov %l0, %o0 return result; } 400260b8: 81 c7 e0 08 ret 400260bc: 81 e8 00 00 restore 400260c0 : #include int chroot( const char *pathname ) { 400260c0: 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) { 400260c4: 23 10 01 95 sethi %hi(0x40065400), %l1 400260c8: e0 04 61 38 ld [ %l1 + 0x138 ], %l0 ! 40065538 400260cc: 03 10 01 a4 sethi %hi(0x40069000), %g1 400260d0: 82 10 63 08 or %g1, 0x308, %g1 ! 40069308 400260d4: 80 a4 00 01 cmp %l0, %g1 400260d8: 12 80 00 0e bne 40026110 400260dc: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 400260e0: 40 00 06 75 call 40027ab4 400260e4: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 400260e8: c2 04 61 38 ld [ %l1 + 0x138 ], %g1 400260ec: 80 a0 40 10 cmp %g1, %l0 400260f0: 12 80 00 08 bne 40026110 400260f4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 400260f8: 40 00 65 a8 call 4003f798 <__errno> <== NOT EXECUTED 400260fc: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40026100: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40026104: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026108: 81 c7 e0 08 ret <== NOT EXECUTED 4002610c: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 40026110: 7f ff ff 78 call 40025ef0 40026114: 90 10 00 18 mov %i0, %o0 if (result) { 40026118: 80 a2 20 00 cmp %o0, 0 4002611c: 12 80 00 0b bne 40026148 40026120: 11 10 01 72 sethi %hi(0x4005c800), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 40026124: 92 10 20 01 mov 1, %o1 40026128: 90 12 21 08 or %o0, 0x108, %o0 4002612c: 94 10 20 00 clr %o2 40026130: 96 07 bf ec add %fp, -20, %o3 40026134: 7f ff 82 af call 40006bf0 40026138: 98 10 20 00 clr %o4 4002613c: 80 a2 20 00 cmp %o0, 0 40026140: 02 80 00 0a be 40026168 40026144: 03 10 01 95 sethi %hi(0x40065400), %g1 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 40026148: 40 00 65 94 call 4003f798 <__errno> <== NOT EXECUTED 4002614c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40026150: 40 00 65 92 call 4003f798 <__errno> <== NOT EXECUTED 40026154: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 40026158: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 4002615c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 40026160: 81 c7 e0 08 ret <== NOT EXECUTED 40026164: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 40026168: d0 00 61 38 ld [ %g1 + 0x138 ], %o0 4002616c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 40026170: 80 a0 60 00 cmp %g1, 0 40026174: 22 80 00 09 be,a 40026198 40026178: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 4002617c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 4006541c 40026180: 80 a0 60 00 cmp %g1, 0 40026184: 22 80 00 05 be,a 40026198 40026188: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 4002618c: 9f c0 40 00 call %g1 40026190: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 40026194: 03 10 01 95 sethi %hi(0x40065400), %g1 40026198: d0 00 61 38 ld [ %g1 + 0x138 ], %o0 ! 40065538 4002619c: 92 07 bf ec add %fp, -20, %o1 400261a0: 94 10 20 14 mov 0x14, %o2 400261a4: 90 02 20 18 add %o0, 0x18, %o0 400261a8: 40 00 72 4f call 40042ae4 400261ac: b0 10 20 00 clr %i0 return 0; } 400261b0: 81 c7 e0 08 ret 400261b4: 81 e8 00 00 restore 40009130 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 40009130: 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; 40009134: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 40009138: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 4000913c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 40009140: d2 00 60 0c ld [ %g1 + 0xc ], %o1 40009144: 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; 40009148: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 4000914c: 94 07 bf f4 add %fp, -12, %o2 40009150: 40 00 05 4b call 4000a67c 40009154: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 40009158: 80 a2 20 00 cmp %o0, 0 4000915c: 02 80 00 05 be 40009170 40009160: 01 00 00 00 nop return rtems_deviceio_errno(status); 40009164: 40 00 00 3c call 40009254 <== NOT EXECUTED 40009168: 01 00 00 00 nop <== NOT EXECUTED 4000916c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 40009170: 81 c7 e0 08 ret 40009174: 81 e8 00 00 restore 40009184 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 40009184: 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; 40009188: e0 06 c0 00 ld [ %i3 ], %l0 if (!device_name_table) 4000918c: 80 a4 20 00 cmp %l0, 0 40009190: 02 80 00 05 be 400091a4 40009194: 27 10 00 3e sethi %hi(0x4000f800), %l3 40009198: a2 10 20 00 clr %l1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 4000919c: 10 80 00 24 b 4000922c 400091a0: a6 14 e3 88 or %l3, 0x388, %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 ); 400091a4: 40 00 0b d2 call 4000c0ec <__errno> <== NOT EXECUTED 400091a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400091ac: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 400091b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400091b4: 81 c7 e0 08 ret <== NOT EXECUTED 400091b8: 81 e8 00 00 restore <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 400091bc: e4 04 00 00 ld [ %l0 ], %l2 400091c0: 80 a4 a0 00 cmp %l2, 0 400091c4: 02 80 00 19 be 40009228 400091c8: a2 04 60 01 inc %l1 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 400091cc: 92 10 00 12 mov %l2, %o1 400091d0: 40 00 0f 67 call 4000cf6c 400091d4: 94 10 00 19 mov %i1, %o2 400091d8: 80 a2 20 00 cmp %o0, 0 400091dc: 32 80 00 14 bne,a 4000922c 400091e0: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 400091e4: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 400091e8: 80 a0 60 00 cmp %g1, 0 400091ec: 32 80 00 10 bne,a 4000922c 400091f0: 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; 400091f4: 03 10 00 3f sethi %hi(0x4000fc00), %g1 400091f8: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 4000fd04 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 400091fc: e0 26 c0 00 st %l0, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 40009200: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 40009204: 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; 40009208: 03 10 00 3f sethi %hi(0x4000fc00), %g1 4000920c: 82 10 60 b8 or %g1, 0xb8, %g1 ! 4000fcb8 40009210: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 40009214: 03 10 00 3f sethi %hi(0x4000fc00), %g1 40009218: 82 10 60 70 or %g1, 0x70, %g1 ! 4000fc70 4000921c: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 40009220: 81 c7 e0 08 ret 40009224: 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++) { 40009228: a0 04 20 14 add %l0, 0x14, %l0 4000922c: c2 04 c0 00 ld [ %l3 ], %g1 40009230: 80 a4 40 01 cmp %l1, %g1 40009234: 0a bf ff e2 bcs 400091bc 40009238: 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 ); 4000923c: 40 00 0b ac call 4000c0ec <__errno> 40009240: b0 10 3f ff mov -1, %i0 40009244: 82 10 20 02 mov 2, %g1 40009248: c2 22 00 00 st %g1, [ %o0 ] } 4000924c: 81 c7 e0 08 ret 40009250: 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 3e sethi %hi(0x4000f800), %l1 40001b60: c2 04 63 88 ld [ %l1 + 0x388 ], %g1 ! 4000fb88 40001b64: 85 28 60 04 sll %g1, 4, %g2 40001b68: 83 28 60 02 sll %g1, 2, %g1 40001b6c: 40 00 1b f2 call 40008b34 <_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 63 88 ld [ %l1 + 0x388 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 40001b80: 40 00 29 5b call 4000c0ec <__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 2b b2 call 4000ca6c 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 3f sethi %hi(0x4000fc00), %g1 40001bb0: 82 10 60 b8 or %g1, 0xb8, %g1 ! 4000fcb8 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 3f sethi %hi(0x4000fc00), %g1 40001bc0: 82 10 60 70 or %g1, 0x70, %g1 ! 4000fc70 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 0b call 40005d90 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 1d 37 call 40009254 <== 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 29 2c call 4000c0ec <__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 3e sethi %hi(0x4000f800), %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 63 88 or %i1, 0x388, %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 29 1e call 4000c0ec <__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 2c 30 call 4000cd54 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 29 11 call 4000c0ec <__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 29 04 call 4000c0ec <__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 2c 61 call 4000ce98 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 41 call 40005ebc 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 1d 22 call 40009254 <== 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 41 call 40005f14 <== 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 1d 0c call 40009254 <== 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 28 a6 call 4000c0ec <__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 2d call 40005f6c 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 e2 call 40009254 <== 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 4000c2e8 : */ int device_close( rtems_libio_t *iop ) { 4000c2e8: 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; 4000c2ec: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 4000c2f0: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 4000c2f4: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 4000c2f8: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 4000c2fc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000c300: 94 07 bf f4 add %fp, -12, %o2 4000c304: 40 00 05 28 call 4000d7a4 4000c308: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 4000c30c: 80 a2 20 00 cmp %o0, 0 4000c310: 02 80 00 05 be 4000c324 4000c314: 01 00 00 00 nop return rtems_deviceio_errno(status); 4000c318: 40 00 06 a0 call 4000dd98 <== NOT EXECUTED 4000c31c: 01 00 00 00 nop <== NOT EXECUTED 4000c320: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 4000c324: 81 c7 e0 08 ret 4000c328: 81 e8 00 00 restore 4000c1e8 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 4000c1e8: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 4000c1ec: 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; 4000c1f0: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 4000c1f4: 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; 4000c1f8: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 4000c1fc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000c200: 40 00 05 7f call 4000d7fc 4000c204: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000c208: 80 a2 20 00 cmp %o0, 0 4000c20c: 22 80 00 06 be,a 4000c224 4000c210: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 4000c214: 40 00 06 e1 call 4000dd98 <== NOT EXECUTED 4000c218: 01 00 00 00 nop <== NOT EXECUTED 4000c21c: 81 c7 e0 08 ret <== NOT EXECUTED 4000c220: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 4000c224: b0 10 00 08 mov %o0, %i0 4000c228: 81 c7 e0 08 ret 4000c22c: 81 e8 00 00 restore 4000c32c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4000c32c: 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; 4000c330: 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; 4000c334: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 4000c338: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 4000c33c: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 4000c340: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 4000c344: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000c348: 94 07 bf f4 add %fp, -12, %o2 4000c34c: 40 00 05 42 call 4000d854 4000c350: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000c354: 80 a2 20 00 cmp %o0, 0 4000c358: 02 80 00 05 be 4000c36c 4000c35c: 01 00 00 00 nop return rtems_deviceio_errno(status); 4000c360: 40 00 06 8e call 4000dd98 <== NOT EXECUTED 4000c364: 01 00 00 00 nop <== NOT EXECUTED 4000c368: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 4000c36c: 81 c7 e0 08 ret 4000c370: 81 e8 00 00 restore 4000c28c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 4000c28c: 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; 4000c290: 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; 4000c294: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 4000c298: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 4000c29c: 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; 4000c2a0: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 4000c2a4: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 4000c2a8: 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; 4000c2ac: 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; 4000c2b0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 4000c2b4: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 4000c2b8: 40 00 05 7d call 4000d8ac <== NOT EXECUTED 4000c2bc: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000c2c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c2c4: 22 80 00 06 be,a 4000c2dc <== NOT EXECUTED 4000c2c8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 4000c2cc: 40 00 06 b3 call 4000dd98 <== NOT EXECUTED 4000c2d0: 01 00 00 00 nop <== NOT EXECUTED 4000c2d4: 81 c7 e0 08 ret <== NOT EXECUTED 4000c2d8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4000c2dc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 4000c2e0: 81 c7 e0 08 ret <== NOT EXECUTED 4000c2e4: 81 e8 00 00 restore <== NOT EXECUTED 4000c230 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 4000c230: 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; 4000c234: 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; 4000c238: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 4000c23c: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 4000c240: 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; 4000c244: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 4000c248: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 4000c24c: 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; 4000c250: 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; 4000c254: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 4000c258: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 4000c25c: 40 00 05 aa call 4000d904 4000c260: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 4000c264: 80 a2 20 00 cmp %o0, 0 4000c268: 22 80 00 06 be,a 4000c280 4000c26c: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 4000c270: 40 00 06 ca call 4000dd98 <== NOT EXECUTED 4000c274: 01 00 00 00 nop <== NOT EXECUTED 4000c278: 81 c7 e0 08 ret <== NOT EXECUTED 4000c27c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 4000c280: b0 10 00 08 mov %o0, %i0 4000c284: 81 c7 e0 08 ret 4000c288: 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 fc call 40005c10 <== 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 70 sethi %hi(0x4001c000), %g1 <== NOT EXECUTED 4000363c: c4 00 61 68 ld [ %g1 + 0x168 ], %g2 ! 4001c168 <__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 40026808 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 40026808: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 4002680c: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 400690a4 <== NOT EXECUTED 40026810: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026814: 02 80 00 05 be 40026828 <== NOT EXECUTED 40026818: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 4002681c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40026820: 40 00 64 36 call 4003f8f8 <== NOT EXECUTED 40026824: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026828: 81 c3 e0 08 retl <== NOT EXECUTED 4002682c: 01 00 00 00 nop 40026830 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 40026830: 03 10 01 a3 sethi %hi(0x40068c00), %g1 <== NOT EXECUTED 40026834: d0 00 63 bc ld [ %g1 + 0x3bc ], %o0 ! 40068fbc <== NOT EXECUTED 40026838: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4002683c: 02 80 00 05 be 40026850 <== NOT EXECUTED 40026840: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 40026844: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40026848: 40 00 64 2c call 4003f8f8 <== NOT EXECUTED 4002684c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026850: 81 c3 e0 08 retl <== NOT EXECUTED 40026854: 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 70 sethi %hi(0x4001c000), %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 70 sethi %hi(0x4001c000), %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 6c sethi %hi(0x4001b000), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 400038b8: 29 10 00 6c sethi %hi(0x4001b000), %l4 <== NOT EXECUTED 400038bc: a4 14 a1 68 or %l2, 0x168, %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 e0 f8 or %l3, 0xf8, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 400038c4: a8 15 20 f0 or %l4, 0xf0, %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 400394a8 : #include int fchdir( int fd ) { 400394a8: 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 ); 400394ac: 03 10 01 94 sethi %hi(0x40065000), %g1 <== NOT EXECUTED 400394b0: c2 00 62 44 ld [ %g1 + 0x244 ], %g1 ! 40065244 <== NOT EXECUTED 400394b4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 400394b8: 1a 80 00 0c bcc 400394e8 <== NOT EXECUTED 400394bc: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 400394c0: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 400394c4: e4 00 62 a8 ld [ %g1 + 0x2a8 ], %l2 ! 400692a8 <== NOT EXECUTED 400394c8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 400394cc: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 400394d0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 400394d4: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 400394d8: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 400394dc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 400394e0: 12 80 00 06 bne 400394f8 <== NOT EXECUTED 400394e4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 400394e8: 40 00 18 ac call 4003f798 <__errno> <== NOT EXECUTED 400394ec: 01 00 00 00 nop <== NOT EXECUTED 400394f0: 10 80 00 1b b 4003955c <== NOT EXECUTED 400394f4: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 400394f8: 32 80 00 06 bne,a 40039510 <== NOT EXECUTED 400394fc: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 40039500: 40 00 18 a6 call 4003f798 <__errno> <== NOT EXECUTED 40039504: 01 00 00 00 nop <== NOT EXECUTED 40039508: 10 80 00 15 b 4003955c <== NOT EXECUTED 4003950c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 40039510: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40039514: 02 80 00 06 be 4003952c <== NOT EXECUTED 40039518: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 4003951c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 40039520: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40039524: 32 80 00 06 bne,a 4003953c <== NOT EXECUTED 40039528: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4003952c: 40 00 18 9b call 4003f798 <__errno> <== NOT EXECUTED 40039530: 01 00 00 00 nop <== NOT EXECUTED 40039534: 10 80 00 0a b 4003955c <== NOT EXECUTED 40039538: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 4003953c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40039540: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 40039544: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 40039548: 02 80 00 07 be 40039564 <== NOT EXECUTED 4003954c: 23 10 01 95 sethi %hi(0x40065400), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 40039550: 40 00 18 92 call 4003f798 <__errno> <== NOT EXECUTED 40039554: 01 00 00 00 nop <== NOT EXECUTED 40039558: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 4003955c: 10 80 00 1c b 400395cc <== NOT EXECUTED 40039560: 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; 40039564: e6 04 61 38 ld [ %l1 + 0x138 ], %l3 <== NOT EXECUTED 40039568: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 4003956c: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 40039570: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 40039574: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 40039578: 40 00 25 5b call 40042ae4 <== NOT EXECUTED 4003957c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 40039580: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 40039584: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40039588: 40 00 25 57 call 40042ae4 <== NOT EXECUTED 4003958c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 40039590: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40039594: 11 10 01 72 sethi %hi(0x4005c800), %o0 <== NOT EXECUTED 40039598: 94 10 20 00 clr %o2 <== NOT EXECUTED 4003959c: 90 12 21 08 or %o0, 0x108, %o0 <== NOT EXECUTED 400395a0: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 400395a4: 7f ff 35 93 call 40006bf0 <== NOT EXECUTED 400395a8: 98 10 20 00 clr %o4 <== NOT EXECUTED 400395ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400395b0: 02 80 00 09 be 400395d4 <== NOT EXECUTED 400395b4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 400395b8: d0 04 61 38 ld [ %l1 + 0x138 ], %o0 <== NOT EXECUTED 400395bc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 400395c0: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 400395c4: 40 00 25 48 call 40042ae4 <== NOT EXECUTED 400395c8: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 400395cc: 81 c7 e0 08 ret <== NOT EXECUTED 400395d0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 400395d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400395d8: 22 80 00 09 be,a 400395fc <== NOT EXECUTED 400395dc: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 400395e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 4006541c <== NOT EXECUTED 400395e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400395e8: 22 80 00 05 be,a 400395fc <== NOT EXECUTED 400395ec: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 400395f0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400395f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 400395f8: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 400395fc: d0 00 61 38 ld [ %g1 + 0x138 ], %o0 ! 40065538 <== NOT EXECUTED 40039600: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 40039604: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 40039608: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 4003960c: 40 00 25 36 call 40042ae4 <== NOT EXECUTED 40039610: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 40039614: 81 c7 e0 08 ret <== NOT EXECUTED 40039618: 81 e8 00 00 restore <== NOT EXECUTED 400263f0 : int fchmod( int fd, mode_t mode ) { 400263f0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 400263f4: 03 10 01 94 sethi %hi(0x40065000), %g1 <== NOT EXECUTED 400263f8: c2 00 62 44 ld [ %g1 + 0x244 ], %g1 ! 40065244 <== NOT EXECUTED 400263fc: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 40026400: 1a 80 00 0c bcc 40026430 <== NOT EXECUTED 40026404: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 40026408: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 4002640c: d0 00 62 a8 ld [ %g1 + 0x2a8 ], %o0 ! 400692a8 <== NOT EXECUTED 40026410: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 40026414: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 40026418: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 4002641c: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 40026420: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 40026424: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 40026428: 12 80 00 06 bne 40026440 <== NOT EXECUTED 4002642c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 40026430: 40 00 64 da call 4003f798 <__errno> <== NOT EXECUTED 40026434: 01 00 00 00 nop <== NOT EXECUTED 40026438: 10 80 00 0f b 40026474 <== NOT EXECUTED 4002643c: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 40026440: 32 80 00 06 bne,a 40026458 <== NOT EXECUTED 40026444: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 40026448: 40 00 64 d4 call 4003f798 <__errno> <== NOT EXECUTED 4002644c: 01 00 00 00 nop <== NOT EXECUTED 40026450: 10 80 00 09 b 40026474 <== NOT EXECUTED 40026454: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 40026458: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4002645c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40026460: 32 80 00 08 bne,a 40026480 <== NOT EXECUTED 40026464: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40026468: 40 00 64 cc call 4003f798 <__errno> <== NOT EXECUTED 4002646c: 01 00 00 00 nop <== NOT EXECUTED 40026470: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40026474: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026478: 10 80 00 07 b 40026494 <== NOT EXECUTED 4002647c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 40026480: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED 40026484: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40026488: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 4002648c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40026490: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 40026494: 81 c7 e0 08 ret <== NOT EXECUTED 40026498: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 4002649c : int fchown( int fd, uid_t owner, gid_t group ) { 4002649c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 400264a0: 03 10 01 94 sethi %hi(0x40065000), %g1 <== NOT EXECUTED 400264a4: c2 00 62 44 ld [ %g1 + 0x244 ], %g1 ! 40065244 <== NOT EXECUTED 400264a8: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 400264ac: 1a 80 00 0c bcc 400264dc <== NOT EXECUTED 400264b0: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 400264b4: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 400264b8: d0 00 62 a8 ld [ %g1 + 0x2a8 ], %o0 ! 400692a8 <== NOT EXECUTED 400264bc: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 400264c0: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 400264c4: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 400264c8: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 400264cc: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 400264d0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 400264d4: 12 80 00 06 bne 400264ec <== NOT EXECUTED 400264d8: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 400264dc: 40 00 64 af call 4003f798 <__errno> <== NOT EXECUTED 400264e0: 01 00 00 00 nop <== NOT EXECUTED 400264e4: 10 80 00 0f b 40026520 <== NOT EXECUTED 400264e8: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 400264ec: 32 80 00 06 bne,a 40026504 <== NOT EXECUTED 400264f0: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 400264f4: 40 00 64 a9 call 4003f798 <__errno> <== NOT EXECUTED 400264f8: 01 00 00 00 nop <== NOT EXECUTED 400264fc: 10 80 00 09 b 40026520 <== NOT EXECUTED 40026500: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 40026504: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 40026508: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002650c: 12 80 00 08 bne 4002652c <== NOT EXECUTED 40026510: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40026514: 40 00 64 a1 call 4003f798 <__errno> <== NOT EXECUTED 40026518: 01 00 00 00 nop <== NOT EXECUTED 4002651c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40026520: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40026524: 10 80 00 07 b 40026540 <== NOT EXECUTED 40026528: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 4002652c: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 40026530: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 40026534: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 40026538: 9f c0 40 00 call %g1 <== NOT EXECUTED 4002653c: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 40026540: 81 c7 e0 08 ret <== NOT EXECUTED 40026544: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 40039644 : int fcntl( int fd, int cmd, ... ) { 40039644: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 40039648: 03 10 01 94 sethi %hi(0x40065000), %g1 4003964c: c2 00 62 44 ld [ %g1 + 0x244 ], %g1 ! 40065244 ... ) { int ret; va_list ap; va_start( ap, cmd ); 40039650: 84 07 a0 4c add %fp, 0x4c, %g2 40039654: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 40039658: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 4003965c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 40039660: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 40039664: 80 a6 00 01 cmp %i0, %g1 40039668: 1a 80 00 0c bcc 40039698 4003966c: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 40039670: 07 10 01 a4 sethi %hi(0x40069000), %g3 40039674: c6 00 e2 a8 ld [ %g3 + 0x2a8 ], %g3 ! 400692a8 40039678: 89 2e 20 06 sll %i0, 6, %g4 4003967c: a1 2e 20 03 sll %i0, 3, %l0 40039680: a0 04 00 04 add %l0, %g4, %l0 40039684: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 40039688: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 4003968c: 80 8a 21 00 btst 0x100, %o0 40039690: 12 80 00 06 bne 400396a8 40039694: 80 a6 60 09 cmp %i1, 9 40039698: 40 00 18 40 call 4003f798 <__errno> <== NOT EXECUTED 4003969c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400396a0: 10 80 00 51 b 400397e4 <== NOT EXECUTED 400396a4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 400396a8: 18 80 00 4c bgu 400397d8 400396ac: 89 2e 60 02 sll %i1, 2, %g4 400396b0: 1b 10 00 e5 sethi %hi(0x40039400), %o5 400396b4: 9a 13 62 1c or %o5, 0x21c, %o5 ! 4003961c 400396b8: c8 03 40 04 ld [ %o5 + %g4 ], %g4 400396bc: 81 c1 00 00 jmp %g4 400396c0: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 400396c4: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 400396c8: 80 a0 a0 00 cmp %g2, 0 400396cc: 02 80 00 09 be 400396f0 400396d0: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 400396d4: 1a 80 00 0c bcc 40039704 <== NOT EXECUTED 400396d8: a2 10 20 00 clr %l1 <== NOT EXECUTED 400396dc: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 400396e0: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 400396e4: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 400396e8: 10 80 00 07 b 40039704 <== NOT EXECUTED 400396ec: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 400396f0: 7f ff 36 5a call 40007058 400396f4: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 400396f8: a2 92 20 00 orcc %o0, 0, %l1 400396fc: 02 80 00 4d be 40039830 40039700: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 40039704: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 40039708: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 4003970c: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 40039710: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 40039714: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 40039718: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 4003971c: 90 04 60 1c add %l1, 0x1c, %o0 40039720: 92 04 20 1c add %l0, 0x1c, %o1 40039724: 40 00 24 f0 call 40042ae4 40039728: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 4003972c: 03 10 01 a4 sethi %hi(0x40069000), %g1 40039730: f0 00 62 a8 ld [ %g1 + 0x2a8 ], %i0 ! 400692a8 40039734: a2 24 40 18 sub %l1, %i0, %l1 40039738: a3 3c 60 03 sra %l1, 3, %l1 4003973c: 85 2c 60 06 sll %l1, 6, %g2 40039740: 83 2c 60 03 sll %l1, 3, %g1 40039744: 82 20 80 01 sub %g2, %g1, %g1 40039748: 85 28 60 06 sll %g1, 6, %g2 4003974c: 82 00 40 02 add %g1, %g2, %g1 40039750: 82 00 40 11 add %g1, %l1, %g1 40039754: b1 28 60 0f sll %g1, 0xf, %i0 40039758: b0 26 00 01 sub %i0, %g1, %i0 4003975c: b1 2e 20 03 sll %i0, 3, %i0 40039760: 10 80 00 24 b 400397f0 40039764: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 40039768: b1 32 20 0b srl %o0, 0xb, %i0 4003976c: 10 80 00 24 b 400397fc 40039770: 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 ) ) 40039774: c2 00 80 00 ld [ %g2 ], %g1 40039778: 80 a0 60 00 cmp %g1, 0 4003977c: 22 80 00 03 be,a 40039788 40039780: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 40039784: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 40039788: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 4003978c: 10 80 00 1c b 400397fc 40039790: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 40039794: 7f ff 35 c6 call 40006eac 40039798: 01 00 00 00 nop 4003979c: 10 80 00 15 b 400397f0 400397a0: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 400397a4: d0 00 80 00 ld [ %g2 ], %o0 400397a8: 7f ff 36 60 call 40007128 400397ac: 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); 400397b0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 400397b4: 90 0a 22 01 and %o0, 0x201, %o0 400397b8: 82 08 7d fe and %g1, -514, %g1 400397bc: 82 12 00 01 or %o0, %g1, %g1 400397c0: 10 80 00 0f b 400397fc 400397c4: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 400397c8: 40 00 17 f4 call 4003f798 <__errno> 400397cc: b0 10 3f ff mov -1, %i0 400397d0: 10 80 00 05 b 400397e4 400397d4: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 400397d8: 40 00 17 f0 call 4003f798 <__errno> 400397dc: b0 10 3f ff mov -1, %i0 400397e0: 82 10 20 16 mov 0x16, %g1 400397e4: c2 22 00 00 st %g1, [ %o0 ] 400397e8: 81 c7 e0 08 ret 400397ec: 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) { 400397f0: 80 a6 20 00 cmp %i0, 0 400397f4: 06 80 00 0f bl 40039830 400397f8: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 400397fc: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 40039800: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 40039804: 80 a0 60 00 cmp %g1, 0 40039808: 02 bf ff f8 be 400397e8 4003980c: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 40039810: 9f c0 40 00 call %g1 40039814: 90 10 00 19 mov %i1, %o0 if (err) { 40039818: a0 92 20 00 orcc %o0, 0, %l0 4003981c: 02 80 00 05 be 40039830 40039820: 01 00 00 00 nop errno = err; 40039824: 40 00 17 dd call 4003f798 <__errno> <== NOT EXECUTED 40039828: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 4003982c: 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; } 40039830: 81 c7 e0 08 ret 40039834: 81 e8 00 00 restore 4000c904 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4000c904: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4000c908: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000c90c: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 4001c77c */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 4000c910: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 4000c914: 92 10 20 00 clr %o1 4000c918: 94 10 20 00 clr %o2 4000c91c: 7f ff e3 14 call 4000556c 4000c920: b0 10 3f fc mov -4, %i0 4000c924: 80 a2 20 00 cmp %o0, 0 4000c928: 12 80 00 f0 bne 4000cce8 4000c92c: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 4000c930: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 4000c934: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 4000c938: 32 80 00 5b bne,a 4000caa4 <== NOT EXECUTED 4000c93c: 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)); 4000c940: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED 4000c944: 7f ff f7 79 call 4000a728 <== NOT EXECUTED 4000c948: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 4000c94c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 4000c950: 02 80 00 66 be 4000cae8 <== NOT EXECUTED 4000c954: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 4000c958: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c95c: 40 00 09 f2 call 4000f124 <== NOT EXECUTED 4000c960: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 4000c964: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 4000c968: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 4000c96c: 7f ff f7 6f call 4000a728 <== NOT EXECUTED 4000c970: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 4000c974: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c978: 02 80 00 46 be 4000ca90 <== NOT EXECUTED 4000c97c: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 4000c980: 27 10 00 70 sethi %hi(0x4001c000), %l3 <== NOT EXECUTED 4000c984: d0 4c e1 54 ldsb [ %l3 + 0x154 ], %o0 ! 4001c154 <== NOT EXECUTED 4000c988: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 4000c98c: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 4000c990: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c994: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 4000c998: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c99c: 40 00 02 b1 call 4000d460 <== NOT EXECUTED 4000c9a0: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED 4000c9a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c9a8: 32 80 00 38 bne,a 4000ca88 <== NOT EXECUTED 4000c9ac: 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( 4000c9b0: d0 4c e1 54 ldsb [ %l3 + 0x154 ], %o0 <== NOT EXECUTED 4000c9b4: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 4000c9b8: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 4000c9bc: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c9c0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 4000c9c4: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c9c8: 40 00 02 a6 call 4000d460 <== NOT EXECUTED 4000c9cc: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED 4000c9d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c9d4: 12 80 00 2a bne 4000ca7c <== NOT EXECUTED 4000c9d8: 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( 4000c9dc: d0 4c e1 54 ldsb [ %l3 + 0x154 ], %o0 <== NOT EXECUTED 4000c9e0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000c9e4: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 4000c9e8: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 4000c9ec: 96 10 20 00 clr %o3 <== NOT EXECUTED 4000c9f0: 7f ff e2 3d call 400052e4 <== NOT EXECUTED 4000c9f4: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED 4000c9f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c9fc: 12 80 00 1e bne 4000ca74 <== NOT EXECUTED 4000ca00: 29 10 00 74 sethi %hi(0x4001d000), %l4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 4000ca04: d2 04 a0 2c ld [ %l2 + 0x2c ], %o1 <== NOT EXECUTED 4000ca08: b0 07 bf f8 add %fp, -8, %i0 <== NOT EXECUTED 4000ca0c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 4000ca10: 7f ff e8 e1 call 40006d94 <_Objects_Get> <== NOT EXECUTED 4000ca14: 90 15 23 40 or %l4, 0x340, %o0 <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state 4000ca18: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 4000ca1c: 25 04 00 00 sethi %hi(0x10000000), %l2 <== NOT EXECUTED 4000ca20: 82 10 40 12 or %g1, %l2, %g1 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4000ca24: 7f ff eb 2a call 400076cc <_Thread_Enable_dispatch> <== NOT EXECUTED 4000ca28: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED 4000ca2c: d2 04 60 30 ld [ %l1 + 0x30 ], %o1 <== NOT EXECUTED 4000ca30: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 4000ca34: 7f ff e8 d8 call 40006d94 <_Objects_Get> <== NOT EXECUTED 4000ca38: 90 15 23 40 or %l4, 0x340, %o0 <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 4000ca3c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED 4000ca40: a4 10 40 12 or %g1, %l2, %l2 <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 4000ca44: 7f ff eb 22 call 400076cc <_Thread_Enable_dispatch> <== NOT EXECUTED 4000ca48: e4 22 20 4c st %l2, [ %o0 + 0x4c ] <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 4000ca4c: c2 0c e1 54 ldub [ %l3 + 0x154 ], %g1 <== NOT EXECUTED 4000ca50: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 4000ca54: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 4000ca58: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 4000ca5c: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 4000ca60: 12 80 00 10 bne 4000caa0 <== NOT EXECUTED 4000ca64: c4 2c e1 54 stb %g2, [ %l3 + 0x154 ] <== NOT EXECUTED c = 'a'; 4000ca68: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 4000ca6c: 10 80 00 0d b 4000caa0 <== NOT EXECUTED 4000ca70: c2 2c e1 54 stb %g1, [ %l3 + 0x154 ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 4000ca74: 40 00 02 a9 call 4000d518 <== NOT EXECUTED 4000ca78: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 4000ca7c: 40 00 02 a7 call 4000d518 <== NOT EXECUTED 4000ca80: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 4000ca84: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED 4000ca88: 7f ff f5 c6 call 4000a1a0 <== NOT EXECUTED 4000ca8c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 4000ca90: 7f ff f5 c4 call 4000a1a0 <== NOT EXECUTED 4000ca94: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4000ca98: 10 80 00 15 b 4000caec <== NOT EXECUTED 4000ca9c: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4000caa0: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 4000caa4: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000caa8: 7f ff e2 b1 call 4000556c <== NOT EXECUTED 4000caac: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4000cab0: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4000cab4: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 4000cab8: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4000cabc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 4000cac0: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 4000cac4: 12 80 00 09 bne 4000cae8 <== NOT EXECUTED 4000cac8: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 4000cacc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000cad0: 22 80 00 06 be,a 4000cae8 <== NOT EXECUTED 4000cad4: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 4000cad8: 7f ff ff 3b call 4000c7c4 <== NOT EXECUTED 4000cadc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 4000cae0: 10 80 00 03 b 4000caec <== NOT EXECUTED 4000cae4: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000cae8: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000caec: 7f ff e2 e7 call 40005688 <== NOT EXECUTED 4000caf0: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 4001c77c <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 4000caf4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000caf8: 12 80 00 7c bne 4000cce8 <== NOT EXECUTED 4000cafc: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 4000cb00: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 4000cb04: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 4000cb08: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 4000cb0c: 02 80 00 2e be 4000cbc4 <== NOT EXECUTED 4000cb10: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 4000cb14: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 4000cb18: 02 80 00 56 be 4000cc70 <== NOT EXECUTED 4000cb1c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 4000cb20: 12 80 00 6a bne 4000ccc8 <== NOT EXECUTED 4000cb24: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4000cb28: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4000cb2c: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000cb30: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 4000cb34: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000cb38: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 4000cb3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000cb40: 12 80 00 05 bne 4000cb54 <== NOT EXECUTED 4000cb44: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4000cb48: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 4000cb4c: 40 00 02 8d call 4000d580 <== NOT EXECUTED 4000cb50: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 4000cb54: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000cb58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000cb5c: 12 80 00 5b bne 4000ccc8 <== NOT EXECUTED 4000cb60: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 4000cb64: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 4000cb68: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000cb6c: 12 80 00 57 bne 4000ccc8 <== NOT EXECUTED 4000cb70: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 4000cb74: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 4000cb78: 7f ff e2 c4 call 40005688 <== NOT EXECUTED 4000cb7c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4000cb80: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 4000cb84: 40 00 02 96 call 4000d5dc <== NOT EXECUTED 4000cb88: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000cb8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000cb90: 12 80 00 52 bne 4000ccd8 <== NOT EXECUTED 4000cb94: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4000cb98: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 4000cb9c: 7f ff e2 74 call 4000556c <== NOT EXECUTED 4000cba0: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000cba4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000cba8: 32 80 00 4d bne,a 4000ccdc <== NOT EXECUTED 4000cbac: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 4000cbb0: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 4000cbb4: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 4000cbb8: 02 bf ff f0 be 4000cb78 <== NOT EXECUTED 4000cbbc: 01 00 00 00 nop <== NOT EXECUTED 4000cbc0: 30 80 00 42 b,a 4000ccc8 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 4000cbc4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 4000cbc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000cbcc: 32 80 00 07 bne,a 4000cbe8 <== NOT EXECUTED 4000cbd0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000cbd4: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 4000cbd8: 22 80 00 04 be,a 4000cbe8 <== NOT EXECUTED 4000cbdc: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000cbe0: 10 80 00 3f b 4000ccdc <== NOT EXECUTED 4000cbe4: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4000cbe8: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000cbec: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 4000cbf0: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000cbf4: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 4000cbf8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000cbfc: 12 80 00 05 bne 4000cc10 <== NOT EXECUTED 4000cc00: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000cc04: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 4000cc08: 40 00 02 5e call 4000d580 <== NOT EXECUTED 4000cc0c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0) { 4000cc10: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 4000cc14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000cc18: 12 80 00 2c bne 4000ccc8 <== NOT EXECUTED 4000cc1c: 01 00 00 00 nop <== NOT EXECUTED prevCounter = pipe->readerCounter; 4000cc20: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 4000cc24: 7f ff e2 99 call 40005688 <== NOT EXECUTED 4000cc28: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4000cc2c: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 4000cc30: 40 00 02 6b call 4000d5dc <== NOT EXECUTED 4000cc34: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000cc38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000cc3c: 12 80 00 27 bne 4000ccd8 <== NOT EXECUTED 4000cc40: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 4000cc44: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 4000cc48: 7f ff e2 49 call 4000556c <== NOT EXECUTED 4000cc4c: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000cc50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000cc54: 32 80 00 22 bne,a 4000ccdc <== NOT EXECUTED 4000cc58: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 4000cc5c: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 4000cc60: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 4000cc64: 02 bf ff f0 be 4000cc24 <== NOT EXECUTED 4000cc68: 01 00 00 00 nop <== NOT EXECUTED 4000cc6c: 30 80 00 17 b,a 4000ccc8 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 4000cc70: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4000cc74: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000cc78: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 4000cc7c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 4000cc80: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 4000cc84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000cc88: 12 80 00 05 bne 4000cc9c <== NOT EXECUTED 4000cc8c: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4000cc90: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 4000cc94: 40 00 02 3b call 4000d580 <== NOT EXECUTED 4000cc98: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 4000cc9c: 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 ++; 4000cca0: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000cca4: 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 ++; 4000cca8: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 4000ccac: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 4000ccb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000ccb4: 12 80 00 05 bne 4000ccc8 <== NOT EXECUTED 4000ccb8: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000ccbc: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 4000ccc0: 40 00 02 30 call 4000d580 <== NOT EXECUTED 4000ccc4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 4000ccc8: 7f ff e2 70 call 40005688 <== NOT EXECUTED 4000cccc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 4000ccd0: 81 c7 e0 08 ret <== NOT EXECUTED 4000ccd4: 81 e8 00 00 restore <== NOT EXECUTED 4000ccd8: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 4000ccdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 4000cce0: 7f ff fe c5 call 4000c7f4 <== NOT EXECUTED 4000cce4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 4000cce8: 81 c7 e0 08 ret 4000ccec: 81 e8 00 00 restore 4000a590 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4000a590: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 4000a594: 05 10 01 a4 sethi %hi(0x40069000), %g2 <== NOT EXECUTED 4000a598: c2 00 62 f0 ld [ %g1 + 0x2f0 ], %g1 <== NOT EXECUTED 4000a59c: 10 80 00 08 b 4000a5bc <== NOT EXECUTED 4000a5a0: 84 10 a2 f4 or %g2, 0x2f4, %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 ) { 4000a5a4: c6 02 60 10 ld [ %o1 + 0x10 ], %g3 <== NOT EXECUTED 4000a5a8: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 4000a5ac: 32 80 00 04 bne,a 4000a5bc <== NOT EXECUTED 4000a5b0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 4000a5b4: 81 c3 e0 08 retl <== NOT EXECUTED 4000a5b8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 4000a5bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000a5c0: 32 bf ff f9 bne,a 4000a5a4 <== NOT EXECUTED 4000a5c4: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED return true; } } return false; } 4000a5c8: 81 c3 e0 08 retl <== NOT EXECUTED 4000a5cc: 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 80 sethi %hi(0x40020000), %g1 4000347c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 40020034 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 82 sethi %hi(0x40020800), %g1 40003490: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 ! 4002087c 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 37 58 call 40011210 <__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 37 52 call 40011210 <__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 37 20 call 40011210 <__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 4000a1a0 : void free( void *ptr ) { MSBUMP(free_calls, 1); 4000a1a0: 9d e3 bf a0 save %sp, -96, %sp 4000a1a4: 03 10 00 72 sethi %hi(0x4001c800), %g1 4000a1a8: 82 10 60 00 mov %g1, %g1 ! 4001c800 4000a1ac: c4 00 60 0c ld [ %g1 + 0xc ], %g2 4000a1b0: b2 10 00 18 mov %i0, %i1 4000a1b4: 84 00 a0 01 inc %g2 if ( !ptr ) 4000a1b8: 80 a6 20 00 cmp %i0, 0 4000a1bc: 02 80 00 21 be 4000a240 4000a1c0: 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()) && 4000a1c4: 03 10 00 72 sethi %hi(0x4001c800), %g1 4000a1c8: c2 00 63 60 ld [ %g1 + 0x360 ], %g1 ! 4001cb60 <_System_state_Current> 4000a1cc: 80 a0 60 03 cmp %g1, 3 4000a1d0: 12 80 00 09 bne 4000a1f4 4000a1d4: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a1d8: 40 00 01 2e call 4000a690 4000a1dc: 01 00 00 00 nop 4000a1e0: 80 8a 20 ff btst 0xff, %o0 4000a1e4: 12 80 00 04 bne 4000a1f4 4000a1e8: 03 10 00 71 sethi %hi(0x4001c400), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 4000a1ec: 40 00 01 3b call 4000a6d8 <== NOT EXECUTED 4000a1f0: 81 e8 00 00 restore <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4000a1f4: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 4000a1f8: 80 a0 60 00 cmp %g1, 0 4000a1fc: 02 80 00 06 be 4000a214 4000a200: 21 10 00 6f sethi %hi(0x4001bc00), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 4000a204: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 4000a208: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a20c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 4000a210: 21 10 00 6f sethi %hi(0x4001bc00), %l0 <== NOT EXECUTED 4000a214: d0 04 23 c0 ld [ %l0 + 0x3c0 ], %o0 ! 4001bfc0 4000a218: 40 00 06 86 call 4000bc30 <_Protected_heap_Free> 4000a21c: 92 10 00 19 mov %i1, %o1 4000a220: 80 8a 20 ff btst 0xff, %o0 4000a224: 12 80 00 07 bne 4000a240 4000a228: c2 04 23 c0 ld [ %l0 + 0x3c0 ], %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 4000a22c: 31 10 00 6d sethi %hi(0x4001b400), %i0 <== NOT EXECUTED 4000a230: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 4000a234: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 4000a238: 7f ff e2 bf call 40002d34 <== NOT EXECUTED 4000a23c: 91 ee 20 58 restore %i0, 0x58, %o0 <== NOT EXECUTED 4000a240: 81 c7 e0 08 ret 4000a244: 81 e8 00 00 restore 40027980 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 40027980: 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 40027984: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 40027988: 82 10 63 08 or %g1, 0x308, %g1 ! 40069308 <== NOT EXECUTED 4002798c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 40027990: 02 80 00 18 be 400279f0 <== NOT EXECUTED 40027994: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 40027998: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 4002799c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400279a0: 22 80 00 09 be,a 400279c4 <== NOT EXECUTED 400279a4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 400279a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400279ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400279b0: 22 80 00 05 be,a 400279c4 <== NOT EXECUTED 400279b4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 400279b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 400279bc: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 400279c0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 400279c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400279c8: 02 80 00 08 be 400279e8 <== NOT EXECUTED 400279cc: 01 00 00 00 nop <== NOT EXECUTED 400279d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400279d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400279d8: 02 80 00 04 be 400279e8 <== NOT EXECUTED 400279dc: 01 00 00 00 nop <== NOT EXECUTED 400279e0: 9f c0 40 00 call %g1 <== NOT EXECUTED 400279e4: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 400279e8: 7f ff 7c ab call 40006c94 <== NOT EXECUTED 400279ec: 81 e8 00 00 restore <== NOT EXECUTED 400279f0: 81 c7 e0 08 ret <== NOT EXECUTED 400279f4: 81 e8 00 00 restore <== NOT EXECUTED 4001a0b4 : int fstat( int fd, struct stat *sbuf ) { 4001a0b4: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 4001a0b8: 80 a6 60 00 cmp %i1, 0 4001a0bc: 32 80 00 06 bne,a 4001a0d4 4001a0c0: 03 10 00 6f sethi %hi(0x4001bc00), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 4001a0c4: 7f ff d1 9e call 4000e73c <__errno> 4001a0c8: 01 00 00 00 nop 4001a0cc: 10 80 00 12 b 4001a114 4001a0d0: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 4001a0d4: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 4001a0d8: 80 a6 00 01 cmp %i0, %g1 4001a0dc: 1a 80 00 0b bcc 4001a108 4001a0e0: 03 10 00 71 sethi %hi(0x4001c400), %g1 4001a0e4: c2 00 63 f4 ld [ %g1 + 0x3f4 ], %g1 ! 4001c7f4 4001a0e8: 85 2e 20 06 sll %i0, 6, %g2 4001a0ec: b1 2e 20 03 sll %i0, 3, %i0 4001a0f0: b0 06 00 02 add %i0, %g2, %i0 4001a0f4: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 4001a0f8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 4001a0fc: 80 88 61 00 btst 0x100, %g1 4001a100: 32 80 00 08 bne,a 4001a120 4001a104: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 4001a108: 7f ff d1 8d call 4000e73c <__errno> 4001a10c: 01 00 00 00 nop 4001a110: 82 10 20 09 mov 9, %g1 ! 9 4001a114: c2 22 00 00 st %g1, [ %o0 ] 4001a118: 10 80 00 15 b 4001a16c 4001a11c: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 4001a120: 80 a0 60 00 cmp %g1, 0 4001a124: 02 bf ff f9 be 4001a108 4001a128: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 4001a12c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 4001a130: 80 a0 60 00 cmp %g1, 0 4001a134: 12 80 00 06 bne 4001a14c 4001a138: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 4001a13c: 7f ff d1 80 call 4000e73c <__errno> <== NOT EXECUTED 4001a140: 01 00 00 00 nop <== NOT EXECUTED 4001a144: 10 bf ff f4 b 4001a114 <== NOT EXECUTED 4001a148: 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) ); 4001a14c: 94 10 20 48 mov 0x48, %o2 4001a150: 7f ff d3 f5 call 4000f124 4001a154: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 4001a158: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 4001a15c: 90 06 20 1c add %i0, 0x1c, %o0 4001a160: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 4001a164: 9f c0 40 00 call %g1 4001a168: 92 10 00 19 mov %i1, %o1 } 4001a16c: 81 c7 e0 08 ret 4001a170: 91 e8 00 08 restore %g0, %o0, %o0 40026620 : #include int fsync( int fd ) { 40026620: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 40026624: 03 10 01 94 sethi %hi(0x40065000), %g1 40026628: c2 00 62 44 ld [ %g1 + 0x244 ], %g1 ! 40065244 4002662c: 80 a6 00 01 cmp %i0, %g1 40026630: 1a 80 00 15 bcc 40026684 40026634: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 40026638: 03 10 01 a4 sethi %hi(0x40069000), %g1 4002663c: d0 00 62 a8 ld [ %g1 + 0x2a8 ], %o0 ! 400692a8 40026640: 83 2e 20 06 sll %i0, 6, %g1 40026644: b1 2e 20 03 sll %i0, 3, %i0 40026648: b0 06 00 01 add %i0, %g1, %i0 4002664c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 40026650: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 40026654: 80 88 61 00 btst 0x100, %g1 40026658: 02 80 00 0b be 40026684 4002665c: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 40026660: 32 80 00 06 bne,a 40026678 40026664: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 40026668: 40 00 64 4c call 4003f798 <__errno> 4002666c: 01 00 00 00 nop 40026670: 10 80 00 0f b 400266ac 40026674: 82 10 20 16 mov 0x16, %g1 ! 16 /* * Now process the fsync(). */ if ( !iop->handlers ) 40026678: 80 a0 60 00 cmp %g1, 0 4002667c: 32 80 00 06 bne,a 40026694 40026680: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 40026684: 40 00 64 45 call 4003f798 <__errno> <== NOT EXECUTED 40026688: 01 00 00 00 nop <== NOT EXECUTED 4002668c: 10 80 00 08 b 400266ac <== NOT EXECUTED 40026690: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 40026694: 80 a0 60 00 cmp %g1, 0 40026698: 12 80 00 08 bne 400266b8 4002669c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 400266a0: 40 00 64 3e call 4003f798 <__errno> 400266a4: 01 00 00 00 nop 400266a8: 82 10 20 86 mov 0x86, %g1 ! 86 400266ac: c2 22 00 00 st %g1, [ %o0 ] 400266b0: 10 80 00 04 b 400266c0 400266b4: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 400266b8: 9f c0 40 00 call %g1 400266bc: 01 00 00 00 nop } 400266c0: 81 c7 e0 08 ret 400266c4: 91 e8 00 08 restore %g0, %o0, %o0 4000a248 : int ftruncate( int fd, off_t length ) { 4000a248: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 4000a24c: 03 10 00 6f sethi %hi(0x4001bc00), %g1 4000a250: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 4001bfb4 4000a254: 80 a6 00 01 cmp %i0, %g1 4000a258: 1a 80 00 0b bcc 4000a284 4000a25c: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop( fd ); 4000a260: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a264: c2 00 63 f4 ld [ %g1 + 0x3f4 ], %g1 ! 4001c7f4 4000a268: b1 2e 20 03 sll %i0, 3, %i0 4000a26c: b0 06 00 02 add %i0, %g2, %i0 4000a270: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 4000a274: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 4000a278: 80 88 61 00 btst 0x100, %g1 4000a27c: 12 80 00 06 bne 4000a294 4000a280: a0 07 bf ec add %fp, -20, %l0 4000a284: 40 00 11 2e call 4000e73c <__errno> <== NOT EXECUTED 4000a288: 01 00 00 00 nop <== NOT EXECUTED 4000a28c: 10 80 00 22 b 4000a314 <== NOT EXECUTED 4000a290: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 4000a294: 92 06 20 1c add %i0, 0x1c, %o1 4000a298: 90 10 00 10 mov %l0, %o0 4000a29c: 40 00 13 63 call 4000f028 4000a2a0: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 4000a2a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 4000a2a8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 4000a2ac: 80 a0 60 00 cmp %g1, 0 4000a2b0: 02 80 00 16 be 4000a308 4000a2b4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 4000a2b8: 9f c0 40 00 call %g1 4000a2bc: 90 10 00 10 mov %l0, %o0 4000a2c0: 80 a2 20 01 cmp %o0, 1 4000a2c4: 32 80 00 06 bne,a 4000a2dc 4000a2c8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_set_errno_and_return_minus_one( EISDIR ); 4000a2cc: 40 00 11 1c call 4000e73c <__errno> 4000a2d0: 01 00 00 00 nop 4000a2d4: 10 80 00 10 b 4000a314 4000a2d8: 82 10 20 15 mov 0x15, %g1 ! 15 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4000a2dc: 80 88 60 04 btst 4, %g1 4000a2e0: 32 80 00 06 bne,a 4000a2f8 4000a2e4: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 4000a2e8: 40 00 11 15 call 4000e73c <__errno> <== NOT EXECUTED 4000a2ec: 01 00 00 00 nop <== NOT EXECUTED 4000a2f0: 10 80 00 09 b 4000a314 <== NOT EXECUTED 4000a2f4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 4000a2f8: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 4000a2fc: 80 a0 60 00 cmp %g1, 0 4000a300: 32 80 00 08 bne,a 4000a320 4000a304: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000a308: 40 00 11 0d call 4000e73c <__errno> <== NOT EXECUTED 4000a30c: 01 00 00 00 nop <== NOT EXECUTED 4000a310: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 4000a314: c2 22 00 00 st %g1, [ %o0 ] 4000a318: 10 80 00 05 b 4000a32c 4000a31c: 90 10 3f ff mov -1, %o0 return (*iop->handlers->ftruncate_h)( iop, length ); 4000a320: 92 10 00 19 mov %i1, %o1 4000a324: 9f c0 40 00 call %g1 4000a328: 94 10 00 1a mov %i2, %o2 } 4000a32c: 81 c7 e0 08 ret 4000a330: 91 e8 00 08 restore %g0, %o0, %o0 40059b00 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 40059b00: 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 ); 40059b04: 03 10 01 94 sethi %hi(0x40065000), %g1 40059b08: c2 00 62 44 ld [ %g1 + 0x244 ], %g1 ! 40065244 40059b0c: 80 a6 00 01 cmp %i0, %g1 40059b10: 1a 80 00 08 bcc 40059b30 40059b14: a0 10 20 00 clr %l0 40059b18: 03 10 01 a4 sethi %hi(0x40069000), %g1 40059b1c: e0 00 62 a8 ld [ %g1 + 0x2a8 ], %l0 ! 400692a8 40059b20: 83 2e 20 06 sll %i0, 6, %g1 40059b24: b1 2e 20 03 sll %i0, 3, %i0 40059b28: b0 06 00 01 add %i0, %g1, %i0 40059b2c: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 40059b30: a2 07 bf ec add %fp, -20, %l1 40059b34: 92 04 20 1c add %l0, 0x1c, %o1 40059b38: 90 10 00 11 mov %l1, %o0 40059b3c: 7f ff a3 ea call 40042ae4 40059b40: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 40059b44: c2 07 bf f8 ld [ %fp + -8 ], %g1 40059b48: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 40059b4c: 80 a0 60 00 cmp %g1, 0 40059b50: 02 80 00 11 be 40059b94 40059b54: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 40059b58: 9f c0 40 00 call %g1 40059b5c: 90 10 00 11 mov %l1, %o0 40059b60: 80 a2 20 01 cmp %o0, 1 40059b64: 22 80 00 08 be,a 40059b84 40059b68: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 40059b6c: 7f ff 97 0b call 4003f798 <__errno> 40059b70: 01 00 00 00 nop 40059b74: 82 10 20 14 mov 0x14, %g1 ! 14 40059b78: c2 22 00 00 st %g1, [ %o0 ] 40059b7c: 10 80 00 0d b 40059bb0 40059b80: 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 ) 40059b84: c2 00 60 08 ld [ %g1 + 8 ], %g1 40059b88: 80 a0 60 00 cmp %g1, 0 40059b8c: 32 80 00 06 bne,a 40059ba4 40059b90: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 40059b94: 7f ff 97 01 call 4003f798 <__errno> <== NOT EXECUTED 40059b98: 01 00 00 00 nop <== NOT EXECUTED 40059b9c: 10 bf ff f7 b 40059b78 <== NOT EXECUTED 40059ba0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 40059ba4: 92 10 00 19 mov %i1, %o1 40059ba8: 9f c0 40 00 call %g1 40059bac: 94 10 00 1a mov %i2, %o2 } 40059bb0: 81 c7 e0 08 ret 40059bb4: 91 e8 00 08 restore %g0, %o0, %o0 400267d4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 400267d4: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 400267d8: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 ! 40065538 <== NOT EXECUTED return _POSIX_types_Gid; } 400267dc: 81 c3 e0 08 retl <== NOT EXECUTED 400267e0: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 40026e60 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 40026e60: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 40026e64: 7f ff ff b6 call 40026d3c 40026e68: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 40026e6c: 11 10 01 6a sethi %hi(0x4005a800), %o0 40026e70: 13 10 01 93 sethi %hi(0x40064c00), %o1 40026e74: 90 12 22 38 or %o0, 0x238, %o0 40026e78: 40 00 64 ef call 40040234 40026e7c: 92 12 61 20 or %o1, 0x120, %o1 40026e80: a0 92 20 00 orcc %o0, 0, %l0 40026e84: 12 80 00 08 bne 40026ea4 40026e88: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 40026e8c: 40 00 62 43 call 4003f798 <__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 40026e9c: 81 c7 e0 08 ret <== NOT EXECUTED 40026ea0: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 40026ea4: 94 10 00 1b mov %i3, %o2 40026ea8: 96 10 00 1c mov %i4, %o3 40026eac: 7f ff fe ea call 40026a54 40026eb0: 90 10 00 10 mov %l0, %o0 40026eb4: 80 a2 20 00 cmp %o0, 0 40026eb8: 12 80 00 0a bne 40026ee0 40026ebc: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 40026ec0: 40 00 62 36 call 4003f798 <__errno> <== NOT EXECUTED 40026ec4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40026ec8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40026ecc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 40026ed0: 40 00 62 8a call 4003f8f8 <== NOT EXECUTED 40026ed4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 40026ed8: 81 c7 e0 08 ret <== NOT EXECUTED 40026edc: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 40026ee0: 22 80 00 07 be,a 40026efc 40026ee4: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 40026ee8: d0 06 80 00 ld [ %i2 ], %o0 40026eec: 40 00 7b 69 call 40045c90 40026ef0: 92 10 00 18 mov %i0, %o1 40026ef4: 10 80 00 04 b 40026f04 40026ef8: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 40026efc: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 40026f00: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 40026f04: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 40026f08: 80 a0 60 00 cmp %g1, 0 40026f0c: 02 bf ff e6 be 40026ea4 40026f10: 92 10 00 1a mov %i2, %o1 fclose(fp); 40026f14: 90 10 00 10 mov %l0, %o0 40026f18: 40 00 62 78 call 4003f8f8 40026f1c: b0 10 20 00 clr %i0 *result = grp; 40026f20: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 40026f24: 81 c7 e0 08 ret 40026f28: 81 e8 00 00 restore 40026b90 : return NULL; return p; } struct group *getgrent(void) { 40026b90: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 40026b94: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 40026b98: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 400690a4 <== NOT EXECUTED 40026b9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026ba0: 22 80 00 0c be,a 40026bd0 <== NOT EXECUTED 40026ba4: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 40026ba8: 31 10 01 a4 sethi %hi(0x40069000), %i0 <== NOT EXECUTED 40026bac: 15 10 01 a4 sethi %hi(0x40069000), %o2 <== NOT EXECUTED 40026bb0: 92 16 21 70 or %i0, 0x170, %o1 <== NOT EXECUTED 40026bb4: 94 12 a0 a8 or %o2, 0xa8, %o2 <== NOT EXECUTED 40026bb8: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026bbc: 7f ff ff a6 call 40026a54 <== NOT EXECUTED 40026bc0: b0 16 21 70 or %i0, 0x170, %i0 <== NOT EXECUTED 40026bc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026bc8: 22 80 00 02 be,a 40026bd0 <== NOT EXECUTED 40026bcc: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 40026bd0: 81 c7 e0 08 ret <== NOT EXECUTED 40026bd4: 81 e8 00 00 restore <== NOT EXECUTED 40026f60 : } struct group *getgrgid( gid_t gid ) { 40026f60: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 40026f64: 13 10 01 a4 sethi %hi(0x40069000), %o1 <== NOT EXECUTED 40026f68: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 40026f6c: 92 12 61 70 or %o1, 0x170, %o1 <== NOT EXECUTED 40026f70: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 40026f74: 15 10 01 a4 sethi %hi(0x40069000), %o2 <== NOT EXECUTED 40026f78: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026f7c: 94 12 a0 a8 or %o2, 0xa8, %o2 <== NOT EXECUTED 40026f80: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 40026f84: 7f ff ff ea call 40026f2c <== NOT EXECUTED 40026f88: b0 10 20 00 clr %i0 <== NOT EXECUTED 40026f8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026f90: 22 80 00 02 be,a 40026f98 <== NOT EXECUTED 40026f94: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 40026f98: 81 c7 e0 08 ret <== NOT EXECUTED 40026f9c: 81 e8 00 00 restore <== NOT EXECUTED 40026f2c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 40026f2c: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 40026f30: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 40026f34: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 40026f38: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 40026f3c: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 40026f40: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 40026f44: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 40026f48: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 40026f4c: 90 10 20 00 clr %o0 <== NOT EXECUTED 40026f50: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40026f54: 7f ff ff c3 call 40026e60 <== NOT EXECUTED 40026f58: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40026f5c: 01 00 00 00 nop 40027054 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 40027054: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 40027058: 7f ff ff 39 call 40026d3c 4002705c: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 40027060: 11 10 01 6a sethi %hi(0x4005a800), %o0 40027064: 13 10 01 93 sethi %hi(0x40064c00), %o1 40027068: 90 12 21 80 or %o0, 0x180, %o0 4002706c: 40 00 64 72 call 40040234 40027070: 92 12 61 20 or %o1, 0x120, %o1 40027074: a0 92 20 00 orcc %o0, 0, %l0 40027078: 12 80 00 08 bne 40027098 4002707c: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 40027080: 40 00 61 c6 call 4003f798 <__errno> <== NOT EXECUTED 40027084: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027088: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 4002708c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027090: 81 c7 e0 08 ret <== NOT EXECUTED 40027094: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 40027098: 94 10 00 1b mov %i3, %o2 4002709c: 96 10 00 1c mov %i4, %o3 400270a0: 7f ff fe ce call 40026bd8 400270a4: 90 10 00 10 mov %l0, %o0 400270a8: 80 a2 20 00 cmp %o0, 0 400270ac: 12 80 00 0a bne 400270d4 400270b0: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 400270b4: 40 00 61 b9 call 4003f798 <__errno> <== NOT EXECUTED 400270b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400270bc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 400270c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 400270c4: 40 00 62 0d call 4003f8f8 <== NOT EXECUTED 400270c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 400270cc: 81 c7 e0 08 ret <== NOT EXECUTED 400270d0: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 400270d4: 22 80 00 07 be,a 400270f0 400270d8: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 400270dc: d0 06 80 00 ld [ %i2 ], %o0 400270e0: 40 00 7a ec call 40045c90 400270e4: 92 10 00 18 mov %i0, %o1 400270e8: 10 80 00 04 b 400270f8 400270ec: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 400270f0: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 400270f4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 400270f8: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 400270fc: 80 a0 60 00 cmp %g1, 0 40027100: 02 bf ff e6 be 40027098 40027104: 92 10 00 1a mov %i2, %o1 fclose(fp); 40027108: 90 10 00 10 mov %l0, %o0 4002710c: 40 00 61 fb call 4003f8f8 40027110: b0 10 20 00 clr %i0 *result = pwd; 40027114: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 40027118: 81 c7 e0 08 ret 4002711c: 81 e8 00 00 restore 40026cf4 : return NULL; return p; } struct passwd *getpwent(void) { 40026cf4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 40026cf8: 03 10 01 a3 sethi %hi(0x40068c00), %g1 <== NOT EXECUTED 40026cfc: d0 00 63 bc ld [ %g1 + 0x3bc ], %o0 ! 40068fbc <== NOT EXECUTED 40026d00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026d04: 22 80 00 0c be,a 40026d34 <== NOT EXECUTED 40026d08: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 40026d0c: 31 10 01 a4 sethi %hi(0x40069000), %i0 <== NOT EXECUTED 40026d10: 15 10 01 a3 sethi %hi(0x40068c00), %o2 <== NOT EXECUTED 40026d14: 92 16 20 88 or %i0, 0x88, %o1 <== NOT EXECUTED 40026d18: 94 12 a3 c0 or %o2, 0x3c0, %o2 <== NOT EXECUTED 40026d1c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40026d20: 7f ff ff ae call 40026bd8 <== NOT EXECUTED 40026d24: b0 16 20 88 or %i0, 0x88, %i0 <== NOT EXECUTED 40026d28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026d2c: 22 80 00 02 be,a 40026d34 <== NOT EXECUTED 40026d30: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 40026d34: 81 c7 e0 08 ret <== NOT EXECUTED 40026d38: 81 e8 00 00 restore <== NOT EXECUTED 40027154 : } struct passwd *getpwuid( uid_t uid ) { 40027154: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 40027158: 13 10 01 a4 sethi %hi(0x40069000), %o1 <== NOT EXECUTED 4002715c: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 40027160: 92 12 60 88 or %o1, 0x88, %o1 <== NOT EXECUTED 40027164: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 40027168: 15 10 01 a3 sethi %hi(0x40068c00), %o2 <== NOT EXECUTED 4002716c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 40027170: 94 12 a3 c0 or %o2, 0x3c0, %o2 <== NOT EXECUTED 40027174: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 40027178: 7f ff ff ea call 40027120 <== NOT EXECUTED 4002717c: b0 10 20 00 clr %i0 <== NOT EXECUTED 40027180: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40027184: 22 80 00 02 be,a 4002718c <== NOT EXECUTED 40027188: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 4002718c: 81 c7 e0 08 ret <== NOT EXECUTED 40027190: 81 e8 00 00 restore <== NOT EXECUTED 40027120 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 40027120: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 40027124: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 40027128: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 4002712c: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 40027130: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 40027134: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 40027138: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 4002713c: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 40027140: 90 10 20 00 clr %o0 <== NOT EXECUTED 40027144: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40027148: 7f ff ff c3 call 40027054 <== NOT EXECUTED 4002714c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 40027150: 01 00 00 00 nop 4000a354 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 4000a354: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 4000a358: 80 a6 20 00 cmp %i0, 0 4000a35c: 12 80 00 08 bne 4000a37c 4000a360: 01 00 00 00 nop errno = EFAULT; 4000a364: 40 00 10 f6 call 4000e73c <__errno> <== NOT EXECUTED 4000a368: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 4000a36c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 4000a370: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 4000a374: 81 c7 e0 08 ret <== NOT EXECUTED 4000a378: 81 e8 00 00 restore <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 4000a37c: 7f ff de 47 call 40001c98 4000a380: 01 00 00 00 nop 4000a384: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 4000a388: 40 00 04 e8 call 4000b728 <_TOD_Get> 4000a38c: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 4000a390: 7f ff de 46 call 40001ca8 4000a394: 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; 4000a398: 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; 4000a39c: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 4000a3a0: 92 10 23 e8 mov 0x3e8, %o1 4000a3a4: 40 00 36 79 call 40017d88 <.div> 4000a3a8: c2 26 00 00 st %g1, [ %i0 ] 4000a3ac: 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; } 4000a3b0: 81 c7 e0 08 ret 4000a3b4: 91 e8 20 00 restore %g0, 0, %o0 40006dc8 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 40006dc8: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40006dcc: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 ! 40065538 <== NOT EXECUTED return _POSIX_types_Uid; } 40006dd0: 81 c3 e0 08 retl <== NOT EXECUTED 40006dd4: d0 10 60 30 lduh [ %g1 + 0x30 ], %o0 <== NOT EXECUTED 40012e0c : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 40012e0c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 40012e10: e0 06 40 00 ld [ %i1 ], %l0 40012e14: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 40012e18: 82 04 20 54 add %l0, 0x54, %g1 40012e1c: 80 a0 80 01 cmp %g2, %g1 40012e20: 22 80 00 06 be,a 40012e38 40012e24: 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 ); 40012e28: 40 00 04 42 call 40013f30 <__errno> 40012e2c: 01 00 00 00 nop 40012e30: 10 80 00 0d b 40012e64 40012e34: 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 ) 40012e38: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40012e3c: 80 a0 40 10 cmp %g1, %l0 40012e40: 02 80 00 06 be 40012e58 40012e44: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 40012e48: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 40012e4c: 80 a0 60 00 cmp %g1, 0 40012e50: 22 80 00 08 be,a 40012e70 40012e54: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 40012e58: 40 00 04 36 call 40013f30 <__errno> 40012e5c: 01 00 00 00 nop 40012e60: 82 10 20 10 mov 0x10, %g1 ! 10 40012e64: c2 22 00 00 st %g1, [ %o0 ] 40012e68: 81 c7 e0 08 ret 40012e6c: 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 ) { 40012e70: 80 a0 60 00 cmp %g1, 0 40012e74: 22 80 00 06 be,a 40012e8c 40012e78: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 40012e7c: 7f ff d3 df call 40007df8 <_Chain_Extract> 40012e80: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 40012e84: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40012e88: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 40012e8c: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40012e90: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 40012e94: 90 07 bf f8 add %fp, -8, %o0 40012e98: 7f ff c2 81 call 4000389c 40012e9c: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 40012ea0: 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) ) { 40012ea4: 90 10 00 10 mov %l0, %o0 40012ea8: 7f ff f2 3c call 4000f798 40012eac: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 40012eb0: 80 a2 20 00 cmp %o0, 0 40012eb4: 12 80 00 11 bne 40012ef8 40012eb8: 01 00 00 00 nop 40012ebc: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 40012ec0: 80 a0 60 00 cmp %g1, 0 40012ec4: 12 80 00 0d bne 40012ef8 40012ec8: 03 10 00 87 sethi %hi(0x40021c00), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 40012ecc: c2 00 63 10 ld [ %g1 + 0x310 ], %g1 ! 40021f10 40012ed0: c4 06 40 00 ld [ %i1 ], %g2 40012ed4: c6 00 60 04 ld [ %g1 + 4 ], %g3 40012ed8: 80 a0 c0 02 cmp %g3, %g2 40012edc: 22 80 00 02 be,a 40012ee4 40012ee0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 40012ee4: 90 10 00 10 mov %l0, %o0 40012ee8: 7f ff c2 43 call 400037f4 40012eec: b0 10 20 00 clr %i0 40012ef0: 81 c7 e0 08 ret 40012ef4: 81 e8 00 00 restore } return 0; } 40012ef8: 81 c7 e0 08 ret 40012efc: 91 e8 20 00 restore %g0, 0, %o0 40005f28 : int ioctl( int fd, ioctl_command_t command, ... ) { 40005f28: 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 ); 40005f2c: 03 10 00 88 sethi %hi(0x40022000), %g1 40005f30: c2 00 62 54 ld [ %g1 + 0x254 ], %g1 ! 40022254 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 40005f34: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 40005f38: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 40005f3c: fa 27 a0 58 st %i5, [ %fp + 0x58 ] 40005f40: 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 ); 40005f44: 80 a6 00 01 cmp %i0, %g1 40005f48: 1a 80 00 11 bcc 40005f8c 40005f4c: 92 10 00 19 mov %i1, %o1 iop = rtems_libio_iop( fd ); 40005f50: 03 10 00 8a sethi %hi(0x40022800), %g1 40005f54: d0 00 63 6c ld [ %g1 + 0x36c ], %o0 ! 40022b6c 40005f58: 83 2e 20 06 sll %i0, 6, %g1 40005f5c: b1 2e 20 03 sll %i0, 3, %i0 40005f60: b0 06 00 01 add %i0, %g1, %i0 40005f64: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 40005f68: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 40005f6c: 80 88 61 00 btst 0x100, %g1 40005f70: 02 80 00 07 be 40005f8c 40005f74: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 40005f78: 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 *); 40005f7c: c4 27 bf fc st %g2, [ %fp + -4 ] /* * Now process the ioctl(). */ if ( !iop->handlers ) 40005f80: 80 a0 60 00 cmp %g1, 0 40005f84: 12 80 00 06 bne 40005f9c 40005f88: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( EBADF ); 40005f8c: 40 00 38 df call 40014308 <__errno> 40005f90: 01 00 00 00 nop 40005f94: 10 80 00 09 b 40005fb8 40005f98: 82 10 20 09 mov 9, %g1 ! 9 if ( !iop->handlers->ioctl_h ) 40005f9c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 40005fa0: 80 a0 60 00 cmp %g1, 0 40005fa4: 12 80 00 08 bne 40005fc4 40005fa8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 40005fac: 40 00 38 d7 call 40014308 <__errno> <== NOT EXECUTED 40005fb0: 01 00 00 00 nop <== NOT EXECUTED 40005fb4: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40005fb8: c2 22 00 00 st %g1, [ %o0 ] 40005fbc: 10 80 00 04 b 40005fcc 40005fc0: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 40005fc4: 9f c0 40 00 call %g1 40005fc8: 01 00 00 00 nop return rc; } 40005fcc: 81 c7 e0 08 ret 40005fd0: 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 70 sethi %hi(0x4001c000), %g2 <== NOT EXECUTED 40003908: c4 00 a1 68 ld [ %g2 + 0x168 ], %g2 ! 4001c168 <__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 70 sethi %hi(0x4001c000), %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 70 sethi %hi(0x4001c000), %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 70 sethi %hi(0x4001c000), %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 60 b8 ld [ %g1 + 0xb8 ], %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 4000e0c8 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 4000e0c8: 9d e3 bf 90 save %sp, -112, %sp POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) 4000e0cc: 7f ff fb d5 call 4000d020 4000e0d0: 01 00 00 00 nop 4000e0d4: 80 a6 00 08 cmp %i0, %o0 4000e0d8: 02 80 00 06 be 4000e0f0 4000e0dc: 80 a6 60 00 cmp %i1, 0 rtems_set_errno_and_return_minus_one( ESRCH ); 4000e0e0: 40 00 01 97 call 4000e73c <__errno> 4000e0e4: 01 00 00 00 nop 4000e0e8: 10 80 00 07 b 4000e104 4000e0ec: 82 10 20 03 mov 3, %g1 ! 3 /* * Validate the signal passed. */ if ( !sig ) 4000e0f0: 12 80 00 08 bne 4000e110 4000e0f4: 82 06 7f ff add %i1, -1, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 4000e0f8: 40 00 01 91 call 4000e73c <__errno> 4000e0fc: 01 00 00 00 nop 4000e100: 82 10 20 16 mov 0x16, %g1 ! 16 4000e104: c2 22 00 00 st %g1, [ %o0 ] 4000e108: 10 80 00 a5 b 4000e39c 4000e10c: 90 10 3f ff mov -1, %o0 if ( !is_valid_signo(sig) ) 4000e110: 80 a0 60 1f cmp %g1, 0x1f 4000e114: 18 bf ff f9 bgu 4000e0f8 4000e118: 85 2e 60 02 sll %i1, 2, %g2 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) 4000e11c: 87 2e 60 04 sll %i1, 4, %g3 4000e120: 86 20 c0 02 sub %g3, %g2, %g3 4000e124: 05 10 00 73 sethi %hi(0x4001cc00), %g2 4000e128: 84 10 a3 54 or %g2, 0x354, %g2 ! 4001cf54 <_POSIX_signals_Vectors> 4000e12c: 84 00 80 03 add %g2, %g3, %g2 4000e130: c4 00 a0 08 ld [ %g2 + 8 ], %g2 4000e134: 80 a0 a0 01 cmp %g2, 1 4000e138: 02 80 00 99 be 4000e39c 4000e13c: 90 10 20 00 clr %o0 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) 4000e140: 80 a6 60 04 cmp %i1, 4 4000e144: 02 80 00 06 be 4000e15c 4000e148: 80 a6 60 08 cmp %i1, 8 4000e14c: 02 80 00 04 be 4000e15c 4000e150: 80 a6 60 0b cmp %i1, 0xb 4000e154: 12 80 00 08 bne 4000e174 4000e158: a0 10 20 01 mov 1, %l0 return pthread_kill( pthread_self(), sig ); 4000e15c: 40 00 01 4f call 4000e698 4000e160: 01 00 00 00 nop 4000e164: 40 00 01 11 call 4000e5a8 4000e168: 92 10 00 19 mov %i1, %o1 4000e16c: 81 c7 e0 08 ret 4000e170: 91 e8 00 08 restore %g0, %o0, %o0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 4000e174: f2 27 bf f4 st %i1, [ %fp + -12 ] siginfo->si_code = SI_USER; 4000e178: e0 27 bf f8 st %l0, [ %fp + -8 ] if ( !value ) { 4000e17c: 80 a6 a0 00 cmp %i2, 0 4000e180: 12 80 00 04 bne 4000e190 4000e184: a1 2c 00 01 sll %l0, %g1, %l0 siginfo->si_value.sival_int = 0; 4000e188: 10 80 00 04 b 4000e198 4000e18c: c0 27 bf fc clr [ %fp + -4 ] } else { siginfo->si_value = *value; 4000e190: c2 06 80 00 ld [ %i2 ], %g1 4000e194: c2 27 bf fc st %g1, [ %fp + -4 ] 4000e198: 03 10 00 72 sethi %hi(0x4001c800), %g1 4000e19c: c4 00 61 c0 ld [ %g1 + 0x1c0 ], %g2 ! 4001c9c0 <_Thread_Dispatch_disable_level> 4000e1a0: 84 00 a0 01 inc %g2 4000e1a4: c4 20 61 c0 st %g2, [ %g1 + 0x1c0 ] /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; 4000e1a8: 03 10 00 72 sethi %hi(0x4001c800), %g1 4000e1ac: c2 00 62 7c ld [ %g1 + 0x27c ], %g1 ! 4001ca7c <_Thread_Executing> api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4000e1b0: c4 00 61 60 ld [ %g1 + 0x160 ], %g2 4000e1b4: c4 00 a0 c4 ld [ %g2 + 0xc4 ], %g2 4000e1b8: 80 ac 00 02 andncc %l0, %g2, %g0 4000e1bc: 12 80 00 4e bne 4000e2f4 4000e1c0: 07 10 00 74 sethi %hi(0x4001d000), %g3 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 4000e1c4: 03 10 00 74 sethi %hi(0x4001d000), %g1 4000e1c8: c4 00 60 e0 ld [ %g1 + 0xe0 ], %g2 ! 4001d0e0 <_POSIX_signals_Wait_queue> 4000e1cc: 10 80 00 0b b 4000e1f8 4000e1d0: 86 10 e0 e4 or %g3, 0xe4, %g3 !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4000e1d4: c8 00 a1 60 ld [ %g2 + 0x160 ], %g4 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 4000e1d8: 80 8c 00 01 btst %l0, %g1 4000e1dc: 12 80 00 46 bne 4000e2f4 4000e1e0: 82 10 00 02 mov %g2, %g1 /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 4000e1e4: c8 01 20 c4 ld [ %g4 + 0xc4 ], %g4 4000e1e8: 80 ac 00 04 andncc %l0, %g4, %g0 4000e1ec: 32 80 00 43 bne,a 4000e2f8 4000e1f0: 84 10 20 01 mov 1, %g2 the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 4000e1f4: c4 00 80 00 ld [ %g2 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4000e1f8: 80 a0 80 03 cmp %g2, %g3 4000e1fc: 32 bf ff f6 bne,a 4000e1d4 4000e200: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 4000e204: 03 10 00 70 sethi %hi(0x4001c000), %g1 4000e208: c8 08 60 64 ldub [ %g1 + 0x64 ], %g4 ! 4001c064 4000e20c: 05 10 00 72 sethi %hi(0x4001c800), %g2 4000e210: 88 01 20 01 inc %g4 4000e214: 84 10 a1 28 or %g2, 0x128, %g2 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 4000e218: 82 10 20 00 clr %g1 4000e21c: 90 00 a0 0c add %g2, 0xc, %o0 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 4000e220: 17 04 00 00 sethi %hi(0x10000000), %o3 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) 4000e224: c6 00 80 00 ld [ %g2 ], %g3 4000e228: 80 a0 e0 00 cmp %g3, 0 4000e22c: 22 80 00 2c be,a 4000e2dc 4000e230: 84 00 a0 04 add %g2, 4, %g2 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 4000e234: c6 00 e0 04 ld [ %g3 + 4 ], %g3 if ( !the_info ) continue; #endif maximum = the_info->maximum; object_table = the_info->local_table; 4000e238: 9a 10 20 01 mov 1, %o5 4000e23c: f4 00 e0 1c ld [ %g3 + 0x1c ], %i2 for ( index = 1 ; index <= maximum ; index++ ) { 4000e240: 10 80 00 23 b 4000e2cc 4000e244: de 10 e0 10 lduh [ %g3 + 0x10 ], %o7 the_thread = (Thread_Control *) object_table[ index ]; 4000e248: c6 06 80 03 ld [ %i2 + %g3 ], %g3 if ( !the_thread ) 4000e24c: 80 a0 e0 00 cmp %g3, 0 4000e250: 02 80 00 1d be 4000e2c4 4000e254: 98 10 00 04 mov %g4, %o4 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 4000e258: d8 00 e0 14 ld [ %g3 + 0x14 ], %o4 4000e25c: 80 a3 00 04 cmp %o4, %g4 4000e260: 38 80 00 19 bgu,a 4000e2c4 4000e264: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 4000e268: d4 00 e1 60 ld [ %g3 + 0x160 ], %o2 4000e26c: d4 02 a0 c4 ld [ %o2 + 0xc4 ], %o2 4000e270: 80 ac 00 0a andncc %l0, %o2, %g0 4000e274: 22 80 00 14 be,a 4000e2c4 4000e278: 98 10 00 04 mov %g4, %o4 * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { 4000e27c: 80 a3 00 04 cmp %o4, %g4 4000e280: 2a 80 00 11 bcs,a 4000e2c4 4000e284: 82 10 00 03 mov %g3, %g1 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 4000e288: d2 00 60 10 ld [ %g1 + 0x10 ], %o1 4000e28c: 80 a2 60 00 cmp %o1, 0 4000e290: 22 80 00 0d be,a 4000e2c4 4000e294: 98 10 00 04 mov %g4, %o4 <== NOT EXECUTED /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 4000e298: d4 00 e0 10 ld [ %g3 + 0x10 ], %o2 4000e29c: 80 a2 a0 00 cmp %o2, 0 4000e2a0: 22 80 00 09 be,a 4000e2c4 4000e2a4: 82 10 00 03 mov %g3, %g1 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 4000e2a8: 80 8a 40 0b btst %o1, %o3 4000e2ac: 32 80 00 06 bne,a 4000e2c4 4000e2b0: 98 10 00 04 mov %g4, %o4 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 4000e2b4: 80 8a 80 0b btst %o2, %o3 4000e2b8: 32 80 00 03 bne,a 4000e2c4 4000e2bc: 82 10 00 03 mov %g3, %g1 4000e2c0: 98 10 00 04 mov %g4, %o4 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 4000e2c4: 9a 03 60 01 inc %o5 4000e2c8: 88 10 00 0c mov %o4, %g4 4000e2cc: 80 a3 40 0f cmp %o5, %o7 4000e2d0: 28 bf ff de bleu,a 4000e248 4000e2d4: 87 2b 60 02 sll %o5, 2, %g3 4000e2d8: 84 00 a0 04 add %g2, 4, %g2 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { 4000e2dc: 80 a0 80 08 cmp %g2, %o0 4000e2e0: 32 bf ff d2 bne,a 4000e228 4000e2e4: c6 00 80 00 ld [ %g2 ], %g3 } } } } if ( interested ) { 4000e2e8: 80 a0 60 00 cmp %g1, 0 4000e2ec: 02 80 00 0b be 4000e318 4000e2f0: 01 00 00 00 nop * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 4000e2f4: 84 10 20 01 mov 1, %g2 ! 1 /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 4000e2f8: 90 10 00 01 mov %g1, %o0 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 4000e2fc: c4 28 60 74 stb %g2, [ %g1 + 0x74 ] /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 4000e300: 92 10 00 19 mov %i1, %o1 4000e304: 40 00 00 5d call 4000e478 <_POSIX_signals_Unblock_thread> 4000e308: 94 07 bf f4 add %fp, -12, %o2 4000e30c: 80 8a 20 ff btst 0xff, %o0 4000e310: 12 80 00 20 bne 4000e390 4000e314: 01 00 00 00 nop /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); 4000e318: 40 00 00 47 call 4000e434 <_POSIX_signals_Set_process_signals> 4000e31c: 90 10 00 10 mov %l0, %o0 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 4000e320: 83 2e 60 04 sll %i1, 4, %g1 4000e324: b3 2e 60 02 sll %i1, 2, %i1 4000e328: b2 20 40 19 sub %g1, %i1, %i1 4000e32c: 03 10 00 73 sethi %hi(0x4001cc00), %g1 4000e330: 82 10 63 54 or %g1, 0x354, %g1 ! 4001cf54 <_POSIX_signals_Vectors> 4000e334: c2 00 40 19 ld [ %g1 + %i1 ], %g1 4000e338: 80 a0 60 02 cmp %g1, 2 4000e33c: 12 80 00 15 bne 4000e390 4000e340: 11 10 00 74 sethi %hi(0x4001d000), %o0 psiginfo = (POSIX_signals_Siginfo_node *) 4000e344: 7f ff f4 8e call 4000b57c <_Chain_Get> 4000e348: 90 12 20 d4 or %o0, 0xd4, %o0 ! 4001d0d4 <_POSIX_signals_Inactive_siginfo> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 4000e34c: a0 92 20 00 orcc %o0, 0, %l0 4000e350: 12 80 00 08 bne 4000e370 4000e354: 92 07 bf f4 add %fp, -12, %o1 _Thread_Enable_dispatch(); 4000e358: 7f ff e4 dd call 400076cc <_Thread_Enable_dispatch> 4000e35c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EAGAIN ); 4000e360: 40 00 00 f7 call 4000e73c <__errno> 4000e364: 01 00 00 00 nop 4000e368: 10 bf ff 67 b 4000e104 4000e36c: 82 10 20 0b mov 0xb, %g1 ! b } psiginfo->Info = *siginfo; 4000e370: 90 04 20 08 add %l0, 8, %o0 4000e374: 40 00 03 2d call 4000f028 4000e378: 94 10 20 0c mov 0xc, %o2 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 4000e37c: 11 10 00 74 sethi %hi(0x4001d000), %o0 4000e380: 92 10 00 10 mov %l0, %o1 4000e384: 90 12 21 24 or %o0, 0x124, %o0 4000e388: 7f ff de fd call 40005f7c <_Chain_Append> 4000e38c: 90 02 00 19 add %o0, %i1, %o0 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 4000e390: 7f ff e4 cf call 400076cc <_Thread_Enable_dispatch> 4000e394: 01 00 00 00 nop 4000e398: 90 10 20 00 clr %o0 ! 0 return 0; } 4000e39c: b0 10 00 08 mov %o0, %i0 4000e3a0: 81 c7 e0 08 ret 4000e3a4: 81 e8 00 00 restore 4001a2f0 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 4001a2f0: 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())) 4001a2f4: 03 10 00 72 sethi %hi(0x4001c800), %g1 4001a2f8: c2 00 63 60 ld [ %g1 + 0x360 ], %g1 ! 4001cb60 <_System_state_Current> 4001a2fc: 80 a0 60 03 cmp %g1, 3 4001a300: 12 80 00 16 bne 4001a358 4001a304: 03 10 00 6e sethi %hi(0x4001b800), %g1 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 4001a308: 23 10 00 70 sethi %hi(0x4001c000), %l1 4001a30c: e0 00 63 80 ld [ %g1 + 0x380 ], %l0 4001a310: c2 04 61 70 ld [ %l1 + 0x170 ], %g1 4001a314: 80 a0 40 10 cmp %g1, %l0 4001a318: 22 80 00 06 be,a 4001a330 4001a31c: 21 10 00 70 sethi %hi(0x4001c000), %l0 _wrapup_reent(_global_impure_ptr); 4001a320: 40 00 01 83 call 4001a92c <_wrapup_reent> 4001a324: 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; 4001a328: e0 24 61 70 st %l0, [ %l1 + 0x170 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 4001a32c: 21 10 00 70 sethi %hi(0x4001c000), %l0 4001a330: c2 04 21 70 ld [ %l0 + 0x170 ], %g1 ! 4001c170 <_impure_ptr> 4001a334: 7f ff d1 5a call 4000e89c 4001a338: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 4001a33c: c2 04 21 70 ld [ %l0 + 0x170 ], %g1 4001a340: 7f ff d1 57 call 4000e89c 4001a344: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 4001a348: c2 04 21 70 ld [ %l0 + 0x170 ], %g1 4001a34c: f0 00 60 0c ld [ %g1 + 0xc ], %i0 4001a350: 7f ff d1 53 call 4000e89c 4001a354: 81 e8 00 00 restore 4001a358: 81 c7 e0 08 ret <== NOT EXECUTED 4001a35c: 81 e8 00 00 restore <== NOT EXECUTED 400272a8 : int link( const char *existing, const char *new ) { 400272a8: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 400272ac: 40 00 7c 7a call 40046494 400272b0: 90 10 00 18 mov %i0, %o0 400272b4: 94 10 20 00 clr %o2 400272b8: 92 10 00 08 mov %o0, %o1 400272bc: 96 07 bf e8 add %fp, -24, %o3 400272c0: 90 10 00 18 mov %i0, %o0 400272c4: 98 10 20 01 mov 1, %o4 400272c8: 7f ff 7e 4a call 40006bf0 400272cc: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 400272d0: 80 a2 20 00 cmp %o0, 0 400272d4: 12 80 00 8e bne 4002750c 400272d8: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 400272dc: c2 4e 40 00 ldsb [ %i1 ], %g1 400272e0: 80 a0 60 5c cmp %g1, 0x5c 400272e4: 02 80 00 06 be 400272fc 400272e8: 80 a0 60 2f cmp %g1, 0x2f 400272ec: 02 80 00 04 be 400272fc 400272f0: 80 a0 60 00 cmp %g1, 0 400272f4: 12 80 00 0a bne 4002731c 400272f8: 03 10 01 95 sethi %hi(0x40065400), %g1 400272fc: 03 10 01 95 sethi %hi(0x40065400), %g1 40027300: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 ! 40065538 40027304: 90 07 bf d4 add %fp, -44, %o0 40027308: 92 02 60 18 add %o1, 0x18, %o1 4002730c: 40 00 6d f6 call 40042ae4 40027310: 94 10 20 14 mov 0x14, %o2 40027314: 10 80 00 08 b 40027334 40027318: 90 10 20 01 mov 1, %o0 4002731c: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 40027320: 90 07 bf d4 add %fp, -44, %o0 40027324: 92 02 60 04 add %o1, 4, %o1 40027328: 40 00 6d ef call 40042ae4 4002732c: 94 10 20 14 mov 0x14, %o2 40027330: 90 10 20 00 clr %o0 if ( !parent_loc.ops->evalformake_h ) { 40027334: c2 07 bf e0 ld [ %fp + -32 ], %g1 40027338: c2 00 60 04 ld [ %g1 + 4 ], %g1 4002733c: 80 a0 60 00 cmp %g1, 0 40027340: 32 80 00 0b bne,a 4002736c 40027344: 90 06 40 08 add %i1, %o0, %o0 rtems_filesystem_freenode( &existing_loc ); 40027348: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 4002734c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027350: 02 80 00 51 be 40027494 <== NOT EXECUTED 40027354: 01 00 00 00 nop <== NOT EXECUTED 40027358: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4002735c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027360: 12 80 00 4b bne 4002748c <== NOT EXECUTED 40027364: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 40027368: 30 80 00 4b b,a 40027494 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 4002736c: 94 07 bf fc add %fp, -4, %o2 40027370: b2 07 bf d4 add %fp, -44, %i1 40027374: 9f c0 40 00 call %g1 40027378: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 4002737c: a0 92 20 00 orcc %o0, 0, %l0 40027380: 02 80 00 11 be 400273c4 40027384: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &existing_loc ); 40027388: c2 07 bf f4 ld [ %fp + -12 ], %g1 4002738c: 80 a0 60 00 cmp %g1, 0 40027390: 02 80 00 08 be 400273b0 40027394: 01 00 00 00 nop 40027398: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4002739c: 80 a0 60 00 cmp %g1, 0 400273a0: 02 80 00 04 be 400273b0 400273a4: 01 00 00 00 nop 400273a8: 9f c0 40 00 call %g1 400273ac: 90 07 bf e8 add %fp, -24, %o0 rtems_set_errno_and_return_minus_one( result ); 400273b0: 40 00 60 fa call 4003f798 <__errno> 400273b4: b0 10 3f ff mov -1, %i0 400273b8: e0 22 00 00 st %l0, [ %o0 ] 400273bc: 81 c7 e0 08 ret 400273c0: 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 ) { 400273c4: c4 07 bf e4 ld [ %fp + -28 ], %g2 400273c8: 80 a0 80 01 cmp %g2, %g1 400273cc: 02 80 00 1a be 40027434 400273d0: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &existing_loc ); 400273d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 400273d8: 80 a0 60 00 cmp %g1, 0 400273dc: 22 80 00 09 be,a 40027400 400273e0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400273e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400273e8: 80 a0 60 00 cmp %g1, 0 400273ec: 22 80 00 05 be,a 40027400 400273f0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400273f4: 9f c0 40 00 call %g1 400273f8: 90 07 bf e8 add %fp, -24, %o0 rtems_filesystem_freenode( &parent_loc ); 400273fc: c2 07 bf e0 ld [ %fp + -32 ], %g1 40027400: 80 a0 60 00 cmp %g1, 0 40027404: 02 80 00 08 be 40027424 40027408: 01 00 00 00 nop 4002740c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027410: 80 a0 60 00 cmp %g1, 0 40027414: 02 80 00 04 be 40027424 40027418: 01 00 00 00 nop 4002741c: 9f c0 40 00 call %g1 40027420: 90 07 bf d4 add %fp, -44, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 40027424: 40 00 60 dd call 4003f798 <__errno> 40027428: b0 10 3f ff mov -1, %i0 4002742c: 10 80 00 1d b 400274a0 40027430: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 40027434: c2 00 60 08 ld [ %g1 + 8 ], %g1 40027438: 80 a0 60 00 cmp %g1, 0 4002743c: 12 80 00 1c bne 400274ac 40027440: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &existing_loc ); 40027444: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40027448: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002744c: 22 80 00 09 be,a 40027470 <== NOT EXECUTED 40027450: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40027454: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027458: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002745c: 22 80 00 05 be,a 40027470 <== NOT EXECUTED 40027460: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40027464: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027468: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 4002746c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 40027470: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027474: 02 80 00 08 be 40027494 <== NOT EXECUTED 40027478: 01 00 00 00 nop <== NOT EXECUTED 4002747c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027480: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027484: 02 80 00 04 be 40027494 <== NOT EXECUTED 40027488: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 4002748c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027490: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027494: 40 00 60 c1 call 4003f798 <__errno> <== NOT EXECUTED 40027498: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 4002749c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400274a0: c2 22 00 00 st %g1, [ %o0 ] 400274a4: 81 c7 e0 08 ret 400274a8: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 400274ac: 92 10 00 19 mov %i1, %o1 400274b0: b2 07 bf e8 add %fp, -24, %i1 400274b4: 9f c0 40 00 call %g1 400274b8: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &existing_loc ); 400274bc: c2 07 bf f4 ld [ %fp + -12 ], %g1 400274c0: 80 a0 60 00 cmp %g1, 0 400274c4: 02 80 00 08 be 400274e4 400274c8: b0 10 00 08 mov %o0, %i0 400274cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400274d0: 80 a0 60 00 cmp %g1, 0 400274d4: 22 80 00 05 be,a 400274e8 400274d8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 400274dc: 9f c0 40 00 call %g1 400274e0: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &parent_loc ); 400274e4: c2 07 bf e0 ld [ %fp + -32 ], %g1 400274e8: 80 a0 60 00 cmp %g1, 0 400274ec: 02 80 00 08 be 4002750c 400274f0: 01 00 00 00 nop 400274f4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400274f8: 80 a0 60 00 cmp %g1, 0 400274fc: 02 80 00 04 be 4002750c 40027500: 01 00 00 00 nop 40027504: 9f c0 40 00 call %g1 40027508: 90 07 bf d4 add %fp, -44, %o0 return result; } 4002750c: 81 c7 e0 08 ret 40027510: 81 e8 00 00 restore 4001a1a0 : off_t lseek( int fd, off_t offset, int whence ) { 4001a1a0: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 4001a1a4: 03 10 00 6f sethi %hi(0x4001bc00), %g1 4001a1a8: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 4001bfb4 off_t lseek( int fd, off_t offset, int whence ) { 4001a1ac: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 4001a1b0: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 4001a1b4: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 4001a1b8: 1a 80 00 0c bcc 4001a1e8 4001a1bc: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 4001a1c0: 03 10 00 71 sethi %hi(0x4001c400), %g1 4001a1c4: e0 00 63 f4 ld [ %g1 + 0x3f4 ], %l0 ! 4001c7f4 4001a1c8: 83 2e 20 06 sll %i0, 6, %g1 4001a1cc: b1 2e 20 03 sll %i0, 3, %i0 4001a1d0: b0 06 00 01 add %i0, %g1, %i0 4001a1d4: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 4001a1d8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 4001a1dc: 80 88 61 00 btst 0x100, %g1 4001a1e0: 32 80 00 06 bne,a 4001a1f8 4001a1e4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 4001a1e8: 7f ff d1 55 call 4000e73c <__errno> <== NOT EXECUTED 4001a1ec: 01 00 00 00 nop <== NOT EXECUTED 4001a1f0: 10 80 00 1e b 4001a268 <== NOT EXECUTED 4001a1f4: 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 ) 4001a1f8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 4001a1fc: 80 a0 60 00 cmp %g1, 0 4001a200: 12 80 00 06 bne 4001a218 4001a204: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 4001a208: 7f ff d1 4d call 4000e73c <__errno> <== NOT EXECUTED 4001a20c: 01 00 00 00 nop <== NOT EXECUTED 4001a210: 10 80 00 16 b 4001a268 <== NOT EXECUTED 4001a214: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 4001a218: 02 80 00 09 be 4001a23c 4001a21c: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 4001a220: 80 a6 e0 02 cmp %i3, 2 4001a224: 02 80 00 09 be 4001a248 4001a228: 80 a6 e0 00 cmp %i3, 0 4001a22c: 12 80 00 0c bne 4001a25c 4001a230: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 4001a234: 10 80 00 12 b 4001a27c 4001a238: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 4001a23c: 9a 86 80 13 addcc %i2, %l3, %o5 4001a240: 10 80 00 05 b 4001a254 4001a244: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 4001a248: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 4001a24c: 9a 86 80 0d addcc %i2, %o5, %o5 4001a250: 98 46 40 0c addx %i1, %o4, %o4 break; 4001a254: 10 80 00 0a b 4001a27c 4001a258: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 4001a25c: 7f ff d1 38 call 4000e73c <__errno> 4001a260: 01 00 00 00 nop 4001a264: 82 10 20 16 mov 0x16, %g1 ! 16 4001a268: c2 22 00 00 st %g1, [ %o0 ] 4001a26c: 11 3f ff ff sethi %hi(0xfffffc00), %o0 4001a270: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 4001a274: 10 80 00 0e b 4001a2ac 4001a278: 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 ); 4001a27c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 4001a280: 92 10 00 02 mov %g2, %o1 4001a284: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 4001a288: 94 10 00 03 mov %g3, %o2 4001a28c: 9f c0 40 00 call %g1 4001a290: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 4001a294: 80 a2 3f ff cmp %o0, -1 4001a298: 12 80 00 06 bne 4001a2b0 4001a29c: b2 10 00 09 mov %o1, %i1 4001a2a0: 80 a2 7f ff cmp %o1, -1 4001a2a4: 22 80 00 03 be,a 4001a2b0 4001a2a8: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 4001a2ac: b2 10 00 09 mov %o1, %i1 4001a2b0: 81 c7 e0 08 ret 4001a2b4: 91 e8 00 08 restore %g0, %o0, %o0 40027668 : int _STAT_NAME( const char *path, struct stat *buf ) { 40027668: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 4002766c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 40027670: 12 80 00 06 bne 40027688 <== NOT EXECUTED 40027674: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 40027678: 40 00 60 48 call 4003f798 <__errno> <== NOT EXECUTED 4002767c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40027680: 10 80 00 20 b 40027700 <== NOT EXECUTED 40027684: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 40027688: 40 00 7b 83 call 40046494 <== NOT EXECUTED 4002768c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027690: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 40027694: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40027698: 94 10 20 00 clr %o2 <== NOT EXECUTED 4002769c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 400276a0: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 400276a4: 98 10 20 00 clr %o4 <== NOT EXECUTED 400276a8: 7f ff 7d 52 call 40006bf0 <== NOT EXECUTED 400276ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 400276b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400276b4: 12 80 00 14 bne 40027704 <== NOT EXECUTED 400276b8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 400276bc: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 400276c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400276c4: 12 80 00 12 bne 4002770c <== NOT EXECUTED 400276c8: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 400276cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 400276d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400276d4: 02 80 00 08 be 400276f4 <== NOT EXECUTED 400276d8: 01 00 00 00 nop <== NOT EXECUTED 400276dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 400276e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400276e4: 02 80 00 04 be 400276f4 <== NOT EXECUTED 400276e8: 01 00 00 00 nop <== NOT EXECUTED 400276ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 400276f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 400276f4: 40 00 60 29 call 4003f798 <__errno> <== NOT EXECUTED 400276f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400276fc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027700: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027704: 81 c7 e0 08 ret <== NOT EXECUTED 40027708: 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) ); 4002770c: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 40027710: 40 00 6d 88 call 40042d30 <== NOT EXECUTED 40027714: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 40027718: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 4002771c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40027720: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 40027724: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027728: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 4002772c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40027730: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027734: 02 bf ff f4 be 40027704 <== NOT EXECUTED 40027738: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 4002773c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027740: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027744: 02 80 00 04 be 40027754 <== NOT EXECUTED 40027748: 01 00 00 00 nop <== NOT EXECUTED 4002774c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027750: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 40027754: 81 c7 e0 08 ret <== NOT EXECUTED 40027758: 81 e8 00 00 restore <== NOT EXECUTED 4000a728 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 4000a728: 9d e3 bf a0 save %sp, -96, %sp 4000a72c: 03 10 00 72 sethi %hi(0x4001c800), %g1 4000a730: 82 10 60 00 mov %g1, %g1 ! 4001c800 4000a734: c4 00 60 04 ld [ %g1 + 4 ], %g2 4000a738: a0 10 00 18 mov %i0, %l0 4000a73c: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4000a740: 7f ff ff ed call 4000a6f4 4000a744: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 4000a748: 80 a6 20 00 cmp %i0, 0 4000a74c: 02 80 00 36 be 4000a824 4000a750: 03 10 00 72 sethi %hi(0x4001c800), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4000a754: c2 00 63 60 ld [ %g1 + 0x360 ], %g1 ! 4001cb60 <_System_state_Current> 4000a758: 80 a0 60 03 cmp %g1, 3 4000a75c: 12 80 00 07 bne 4000a778 4000a760: 03 10 00 6f sethi %hi(0x4001bc00), %g1 4000a764: 7f ff ff cb call 4000a690 4000a768: 01 00 00 00 nop 4000a76c: 80 8a 20 ff btst 0xff, %o0 4000a770: 02 80 00 2d be 4000a824 4000a774: 03 10 00 6f sethi %hi(0x4001bc00), %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 ); 4000a778: d0 00 63 c0 ld [ %g1 + 0x3c0 ], %o0 ! 4001bfc0 4000a77c: 92 10 00 10 mov %l0, %o1 4000a780: 94 10 20 00 clr %o2 4000a784: 40 00 05 1d call 4000bbf8 <_Protected_heap_Allocate_aligned_with_boundary> 4000a788: 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 ) { 4000a78c: b0 92 20 00 orcc %o0, 0, %i0 4000a790: 12 80 00 13 bne 4000a7dc 4000a794: a2 10 00 18 mov %i0, %l1 if (rtems_malloc_sbrk_helpers) 4000a798: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a79c: c2 00 62 2c ld [ %g1 + 0x22c ], %g1 ! 4001c62c 4000a7a0: 80 a0 60 00 cmp %g1, 0 4000a7a4: 02 80 00 08 be 4000a7c4 4000a7a8: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 4000a7ac: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 4000a7b0: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a7b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 4000a7b8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 4000a7bc: 12 80 00 09 bne 4000a7e0 <== NOT EXECUTED 4000a7c0: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED errno = ENOMEM; 4000a7c4: 40 00 0f de call 4000e73c <__errno> 4000a7c8: 01 00 00 00 nop 4000a7cc: 82 10 20 0c mov 0xc, %g1 ! c 4000a7d0: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 4000a7d4: 81 c7 e0 08 ret 4000a7d8: 81 e8 00 00 restore } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 4000a7dc: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a7e0: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 4001c630 4000a7e4: 80 a0 60 00 cmp %g1, 0 4000a7e8: 02 80 00 05 be 4000a7fc 4000a7ec: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 4000a7f0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 4000a7f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a7f8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 4000a7fc: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a800: c2 00 62 28 ld [ %g1 + 0x228 ], %g1 ! 4001c628 4000a804: 80 a0 60 00 cmp %g1, 0 4000a808: 02 bf ff f3 be 4000a7d4 4000a80c: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 4000a810: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 4000a814: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a818: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a81c: 81 c7 e0 08 ret <== NOT EXECUTED 4000a820: 81 e8 00 00 restore <== NOT EXECUTED 4000a824: 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; } 4000a828: 81 c7 e0 08 ret <== NOT EXECUTED 4000a82c: 81 e8 00 00 restore <== NOT EXECUTED 4000a6d8 : 4000a6d8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 4000a6dc: 11 10 00 73 sethi %hi(0x4001cc00), %o0 <== NOT EXECUTED 4000a6e0: 90 12 23 48 or %o0, 0x348, %o0 ! 4001cf48 <== NOT EXECUTED 4000a6e4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 4000a6e8: 7f ff ee 25 call 40005f7c <_Chain_Append> <== NOT EXECUTED 4000a6ec: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 4000a6f0: 01 00 00 00 nop 4000a6f4 : void malloc_deferred_frees_process(void) { 4000a6f4: 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 ); 4000a6f8: 21 10 00 73 sethi %hi(0x4001cc00), %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) 4000a6fc: 10 80 00 04 b 4000a70c 4000a700: a0 14 23 48 or %l0, 0x348, %l0 ! 4001cf48 free(to_be_freed); 4000a704: 7f ff fe a7 call 4000a1a0 <== NOT EXECUTED 4000a708: 01 00 00 00 nop <== NOT EXECUTED 4000a70c: 40 00 03 9c call 4000b57c <_Chain_Get> 4000a710: 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) 4000a714: 80 a2 20 00 cmp %o0, 0 4000a718: 12 bf ff fb bne 4000a704 4000a71c: 01 00 00 00 nop free(to_be_freed); } 4000a720: 81 c7 e0 08 ret 4000a724: 81 e8 00 00 restore 40011ea4 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 40011ea4: 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) ) { 40011ea8: 7f ff f6 3c call 4000f798 40011eac: 90 10 00 18 mov %i0, %o0 40011eb0: 80 a2 20 00 cmp %o0, 0 40011eb4: 12 80 00 13 bne 40011f00 40011eb8: 01 00 00 00 nop 40011ebc: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 40011ec0: 80 a0 60 00 cmp %g1, 0 40011ec4: 12 80 00 0f bne 40011f00 40011ec8: 03 10 00 87 sethi %hi(0x40021c00), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 40011ecc: c2 00 63 10 ld [ %g1 + 0x310 ], %g1 ! 40021f10 40011ed0: c4 00 60 04 ld [ %g1 + 4 ], %g2 40011ed4: 80 a0 80 18 cmp %g2, %i0 40011ed8: 22 80 00 02 be,a 40011ee0 40011edc: 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) 40011ee0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40011ee4: 80 a0 60 06 cmp %g1, 6 40011ee8: 02 80 00 04 be 40011ef8 40011eec: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 40011ef0: 7f ff ff 8c call 40011d20 40011ef4: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 40011ef8: 7f ff c6 3f call 400037f4 40011efc: 90 10 00 18 mov %i0, %o0 } return 0; } 40011f00: 81 c7 e0 08 ret 40011f04: 91 e8 20 00 restore %g0, 0, %o0 40011c58 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 40011c58: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 40011c5c: 80 a6 20 00 cmp %i0, 0 40011c60: 32 80 00 0a bne,a 40011c88 40011c64: e0 06 00 00 ld [ %i0 ], %l0 40011c68: 11 10 00 85 sethi %hi(0x40021400), %o0 <== NOT EXECUTED 40011c6c: 15 10 00 85 sethi %hi(0x40021400), %o2 <== NOT EXECUTED 40011c70: 17 10 00 85 sethi %hi(0x40021400), %o3 <== NOT EXECUTED 40011c74: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 40011c78: 94 12 a1 c8 or %o2, 0x1c8, %o2 <== NOT EXECUTED 40011c7c: 96 12 e0 b0 or %o3, 0xb0, %o3 <== NOT EXECUTED 40011c80: 7f ff c5 e7 call 4000341c <__assert_func> <== NOT EXECUTED 40011c84: 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 40011c8c: a2 10 20 00 clr %l1 if ( b[i] ) { 40011c90: 80 a2 20 00 cmp %o0, 0 40011c94: 02 80 00 05 be 40011ca8 40011c98: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 40011c9c: 7f ff ff 2a call 40011944 40011ca0: 01 00 00 00 nop b[i] = 0; 40011ca4: 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 40011cb4: 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 ); 40011cb8: 7f ff ff 23 call 40011944 40011cbc: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 40011cc0: c0 26 00 00 clr [ %i0 ] } 40011cc4: 81 c7 e0 08 ret 40011cc8: 81 e8 00 00 restore 400121b8 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 400121b8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 400121bc: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 400121c0: 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 ) 400121c4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 400121c8: 80 a0 40 19 cmp %g1, %i1 400121cc: 06 80 00 09 bl 400121f0 400121d0: 94 10 00 1a mov %i2, %o2 400121d4: 80 a0 40 19 cmp %g1, %i1 400121d8: 32 80 00 0a bne,a 40012200 400121dc: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 400121e0: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 400121e4: 80 a0 40 1a cmp %g1, %i2 400121e8: 3a 80 00 06 bcc,a 40012200 400121ec: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 400121f0: 7f ff ff 8f call 4001202c <== NOT EXECUTED 400121f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 400121f8: 81 c7 e0 08 ret <== NOT EXECUTED 400121fc: 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; 40012200: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 40012204: d2 26 20 08 st %o1, [ %i0 + 8 ] 40012208: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 4001220c: 90 07 bf f8 add %fp, -8, %o0 40012210: 7f ff c5 a3 call 4000389c 40012214: 92 10 20 00 clr %o1 40012218: c2 07 bf f8 ld [ %fp + -8 ], %g1 4001221c: 90 10 20 00 clr %o0 40012220: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return 0; } 40012224: b0 10 00 08 mov %o0, %i0 40012228: 81 c7 e0 08 ret 4001222c: 81 e8 00 00 restore 40012230 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 40012230: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 40012234: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 40012238: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 4001223c: 80 a0 60 06 cmp %g1, 6 40012240: 32 80 00 11 bne,a 40012284 40012244: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 40012248: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 4001224c: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 40012250: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 40012254: 14 80 00 09 bg 40012278 <== NOT EXECUTED 40012258: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 4001225c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 40012260: 32 80 00 1a bne,a 400122c8 <== NOT EXECUTED 40012264: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 40012268: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 4001226c: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 40012270: 28 80 00 16 bleu,a 400122c8 <== NOT EXECUTED 40012274: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 40012278: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 4001227c: 10 80 00 12 b 400122c4 <== NOT EXECUTED 40012280: 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 )) 40012284: 90 10 00 10 mov %l0, %o0 40012288: 92 10 00 02 mov %g2, %o1 4001228c: 7f ff ff 68 call 4001202c 40012290: 94 10 00 03 mov %g3, %o2 40012294: 80 a2 20 00 cmp %o0, 0 40012298: 22 80 00 0a be,a 400122c0 4001229c: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 400122a0: 40 00 07 24 call 40013f30 <__errno> <== NOT EXECUTED 400122a4: 01 00 00 00 nop <== NOT EXECUTED 400122a8: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 400122ac: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 400122b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 400122b4: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 400122b8: 10 80 00 04 b 400122c8 <== NOT EXECUTED 400122bc: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 400122c0: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 400122c4: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 400122c8: b2 10 00 03 mov %g3, %i1 400122cc: 81 c7 e0 08 ret 400122d0: 91 e8 00 02 restore %g0, %g2, %o0 4001259c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 4001259c: 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)) 400125a0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 400125a4: 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)) 400125a8: 80 88 62 04 btst 0x204, %g1 400125ac: 02 80 00 19 be 40012610 400125b0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 400125b4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 400125b8: 80 a0 60 06 cmp %g1, 6 400125bc: 32 80 00 16 bne,a 40012614 400125c0: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 400125c4: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 400125c8: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 400125cc: 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; 400125d0: 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; 400125d4: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 400125d8: 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; 400125dc: 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; 400125e0: 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) 400125e4: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 400125e8: 02 80 00 0a be 40012610 <== NOT EXECUTED 400125ec: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 400125f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 400125f4: 92 10 20 00 clr %o1 <== NOT EXECUTED 400125f8: 94 10 20 00 clr %o2 <== NOT EXECUTED 400125fc: 7f ff ff 36 call 400122d4 <== NOT EXECUTED 40012600: 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) 40012604: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 40012608: 02 80 00 0a be 40012630 <== NOT EXECUTED 4001260c: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 40012610: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 40012614: 80 88 62 00 btst 0x200, %g1 40012618: 02 80 00 04 be 40012628 4001261c: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 40012620: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 40012624: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 40012628: b0 10 20 00 clr %i0 4001262c: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 40012630: 81 c7 e0 08 ret 40012634: 81 e8 00 00 restore 40011f08 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 40011f08: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 40011f0c: 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 ) { 40011f10: c2 04 20 08 ld [ %l0 + 8 ], %g1 40011f14: 80 a0 60 00 cmp %g1, 0 40011f18: 22 80 00 06 be,a 40011f30 40011f1c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 40011f20: 7f ff d7 b6 call 40007df8 <_Chain_Extract> 40011f24: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 40011f28: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40011f2c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 40011f30: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 40011f34: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 40011f38: 90 07 bf f8 add %fp, -8, %o0 40011f3c: 7f ff c6 58 call 4000389c 40011f40: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 40011f44: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 40011f48: 90 10 00 10 mov %l0, %o0 40011f4c: 7f ff ff d6 call 40011ea4 40011f50: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } 40011f54: 81 c7 e0 08 ret 40011f58: 91 e8 00 08 restore %g0, %o0, %o0 40009100 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 40009100: 13 10 00 6c sethi %hi(0x4001b000), %o1 40009104: 15 10 00 6d sethi %hi(0x4001b400), %o2 40009108: 92 12 62 cc or %o1, 0x2cc, %o1 4000910c: 94 12 a0 90 or %o2, 0x90, %o2 40009110: 96 10 00 0a mov %o2, %o3 40009114: 82 13 c0 00 mov %o7, %g1 40009118: 40 00 03 14 call 40009d68 4000911c: 9e 10 40 00 mov %g1, %o7 40009120: 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 30 f2 call 4000e73c <__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 70 sethi %hi(0x4001c000), %g1 400023a0: 03 10 00 70 sethi %hi(0x4001c000), %g1 400023a4: d2 00 60 c8 ld [ %g1 + 0xc8 ], %o1 ! 4001c0c8 400023a8: 90 07 bf e8 add %fp, -24, %o0 400023ac: 92 02 60 18 add %o1, 0x18, %o1 400023b0: 40 00 33 1e call 4000f028 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 60 c8 ld [ %g1 + 0xc8 ], %o1 400023c4: 90 07 bf e8 add %fp, -24, %o0 400023c8: 92 02 60 04 add %o1, 4, %o1 400023cc: 40 00 33 17 call 4000f028 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 30 c2 call 4000e73c <__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 30 9c call 4000e73c <__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 34 48 call 4000f618 <== 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 89 call 4000a728 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 30 89 call 4000e73c <__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 34 12 call 4000f58c <== 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 34 2d call 4000f618 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 72 sethi %hi(0x4001c800), %g1 errno = ENOTDIR; 400025b8: 40 00 30 61 call 4000e73c <__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 72 sethi %hi(0x4001c800), %g2 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 400025d0: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 400025d4: 84 10 a0 34 or %g2, 0x34, %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 30 4e call 4000e73c <__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 30 4a call 4000e73c <__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 72 sethi %hi(0x4001c800), %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 39 call 40005f7c <_Chain_Append> 4000269c: 90 12 20 30 or %o0, 0x30, %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 b9 call 4000a1a0 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 31 00 call 4000eba0 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 77 call 4000a1a0 <== 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 30 2e call 4000e89c <== 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 85 sethi %hi(0x40021400), %g1 40002864: c4 48 61 18 ldsb [ %g1 + 0x118 ], %g2 ! 40021518 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 7c sethi %hi(0x4001f000), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 40002878: c4 28 61 18 stb %g2, [ %g1 + 0x118 ] status = rtems_io_register_name( 4000287c: 90 12 22 d0 or %o0, 0x2d0, %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 85 sethi %hi(0x40021400), %g1 rtems_fatal_error_occurred(status); 40002898: 40 00 10 82 call 40006aa0 <== NOT EXECUTED 4000289c: 01 00 00 00 nop <== NOT EXECUTED NULL_major = major; 400028a0: f0 20 62 c0 st %i0, [ %g1 + 0x2c0 ] } 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 d0 call 4000a58c 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 32 ee call 4000f618 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 2f 2b call 4000e73c <__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 32 ce call 4000f618 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 c8 call 4000a65c 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 31 34 call 4000f028 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 2e e7 call 4000e73c <__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 71 sethi %hi(0x4001c400), %g1 rc = ftruncate( iop - rtems_libio_iops, 0 ); 40002bb8: c2 00 63 f4 ld [ %g1 + 0x3f4 ], %g1 ! 4001c7f4 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 96 call 4000a248 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 71 sethi %hi(0x4001c400), %g1 if(errno) rc = errno; 40002c04: 40 00 2e ce call 4000e73c <__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 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 40002c1c: 40 00 2e c8 call 4000e73c <__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 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 40002c2c: c2 00 63 f4 ld [ %g1 + 0x3f4 ], %g1 ! 4001c7f4 <== 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 1d 20 call 4000a0e4 <== 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 71 sethi %hi(0x4001c400), %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 1e 2a call 4000a52c 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 2e 9f call 4000e73c <__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 63 f4 ld [ %g1 + 0x3f4 ], %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 6b sethi %hi(0x4001ac00), %l0 400029a8: 92 10 20 00 clr %o1 400029ac: 90 14 21 98 or %l0, 0x198, %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 21 98 or %l0, 0x198, %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 21 98 or %l0, 0x198, %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 83 call 40005c10 <== 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 6c sethi %hi(0x4001b000), %o0 40003510: 92 10 20 01 mov 1, %o1 40003514: 90 12 20 d8 or %o0, 0xd8, %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 6c sethi %hi(0x4001b000), %o0 4000358c: 7f ff ff 77 call 40003368 40003590: 90 12 20 e0 or %o0, 0xe0, %o0 ! 4001b0e0 <__FUNCTION__.5671+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 70 sethi %hi(0x4001c000), %g1 <== NOT EXECUTED 400035bc: c2 00 61 68 ld [ %g1 + 0x168 ], %g1 ! 4001c168 <__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 70 sethi %hi(0x4001c000), %g2 400035e8: c4 00 a1 68 ld [ %g2 + 0x168 ], %g2 ! 4001c168 <__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 4000dbec : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 4000dbec: 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) 4000dbf0: 23 10 00 6d sethi %hi(0x4001b400), %l1 4000dbf4: a0 07 bf dc add %fp, -36, %l0 4000dbf8: 92 10 20 03 mov 3, %o1 4000dbfc: 90 14 63 d8 or %l1, 0x3d8, %o0 4000dc00: 94 10 20 07 mov 7, %o2 4000dc04: 96 10 00 10 mov %l0, %o3 4000dc08: 7f ff d1 35 call 400020dc 4000dc0c: 98 10 20 01 mov 1, %o4 4000dc10: 80 a2 20 00 cmp %o0, 0 4000dc14: 02 80 00 10 be 4000dc54 4000dc18: c2 07 bf e8 ld [ %fp + -24 ], %g1 != 0) { if (errno != ENOENT) 4000dc1c: 40 00 02 c8 call 4000e73c <__errno> 4000dc20: 01 00 00 00 nop 4000dc24: c2 02 00 00 ld [ %o0 ], %g1 4000dc28: 80 a0 60 02 cmp %g1, 2 4000dc2c: 32 80 00 59 bne,a 4000dd90 4000dc30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 4000dc34: 90 14 63 d8 or %l1, 0x3d8, %o0 4000dc38: 7f ff d1 be call 40002330 4000dc3c: 92 10 23 ff mov 0x3ff, %o1 4000dc40: 80 a2 20 00 cmp %o0, 0 4000dc44: 02 80 00 0e be 4000dc7c 4000dc48: 03 10 00 71 sethi %hi(0x4001c400), %g1 } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 4000dc4c: 81 c7 e0 08 ret <== NOT EXECUTED 4000dc50: 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); 4000dc54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000dc58: 22 80 00 09 be,a 4000dc7c <== NOT EXECUTED 4000dc5c: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000dc60: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 4001c41c <== NOT EXECUTED 4000dc64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000dc68: 22 80 00 05 be,a 4000dc7c <== NOT EXECUTED 4000dc6c: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000dc70: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000dc74: 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 ++); 4000dc78: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000dc7c: c4 10 63 82 lduh [ %g1 + 0x382 ], %g2 ! 4001c782 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000dc80: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000dc84: 95 28 a0 10 sll %g2, 0x10, %o2 4000dc88: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000dc8c: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000dc90: c4 30 63 82 sth %g2, [ %g1 + 0x382 ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000dc94: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 4000dc98: 03 00 00 19 sethi %hi(0x6400), %g1 4000dc9c: 84 10 a1 70 or %g2, 0x170, %g2 4000dca0: 82 10 62 6f or %g1, 0x26f, %g1 4000dca4: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000dca8: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 4000dcac: c4 3f bf f0 std %g2, [ %fp + -16 ] 4000dcb0: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 4000dcb4: 90 07 bf fa add %fp, -6, %o0 4000dcb8: 13 10 00 6d sethi %hi(0x4001b400), %o1 4000dcbc: 40 00 05 8b call 4000f2e8 4000dcc0: 92 12 63 e0 or %o1, 0x3e0, %o1 ! 4001b7e0 <__FUNCTION__.5943+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 4000dcc4: 90 10 00 10 mov %l0, %o0 4000dcc8: 40 00 00 4b call 4000ddf4 4000dccc: 92 10 21 80 mov 0x180, %o1 4000dcd0: 80 a2 20 00 cmp %o0, 0 4000dcd4: 02 80 00 05 be 4000dce8 4000dcd8: 90 10 00 10 mov %l0, %o0 if (errno != EEXIST){ 4000dcdc: 40 00 02 98 call 4000e73c <__errno> <== NOT EXECUTED 4000dce0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000dce4: 30 80 00 2b b,a 4000dd90 <== 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); 4000dce8: 7f ff d3 4b call 40002a14 4000dcec: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 4000dcf0: 80 a2 20 00 cmp %o0, 0 4000dcf4: 16 80 00 07 bge 4000dd10 4000dcf8: d0 26 00 00 st %o0, [ %i0 ] err = errno; 4000dcfc: 40 00 02 90 call 4000e73c <__errno> 4000dd00: 01 00 00 00 nop 4000dd04: 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); 4000dd08: 10 80 00 1d b 4000dd7c 4000dd0c: 90 10 00 10 mov %l0, %o0 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 4000dd10: 03 10 00 6f sethi %hi(0x4001bc00), %g1 <== NOT EXECUTED 4000dd14: c4 00 63 b4 ld [ %g1 + 0x3b4 ], %g2 ! 4001bfb4 <== NOT EXECUTED 4000dd18: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 4000dd1c: 1a 80 00 08 bcc 4000dd3c <== NOT EXECUTED 4000dd20: 82 10 20 00 clr %g1 <== NOT EXECUTED 4000dd24: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000dd28: c2 00 63 f4 ld [ %g1 + 0x3f4 ], %g1 ! 4001c7f4 <== NOT EXECUTED 4000dd2c: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 4000dd30: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 4000dd34: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 4000dd38: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 4000dd3c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4000dd40: 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; 4000dd44: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 4000dd48: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000dd4c: 7f ff d3 32 call 40002a14 <== NOT EXECUTED 4000dd50: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 4000dd54: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 4000dd58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000dd5c: 16 80 00 07 bge 4000dd78 <== NOT EXECUTED 4000dd60: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; 4000dd64: 40 00 02 76 call 4000e73c <__errno> <== NOT EXECUTED 4000dd68: 01 00 00 00 nop <== NOT EXECUTED 4000dd6c: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 4000dd70: 7f ff f0 dd call 4000a0e4 <== NOT EXECUTED 4000dd74: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED } unlink(fifopath); 4000dd78: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 4000dd7c: 40 00 00 28 call 4000de1c 4000dd80: b0 10 3f ff mov -1, %i0 } rtems_set_errno_and_return_minus_one(err); 4000dd84: 40 00 02 6e call 4000e73c <__errno> 4000dd88: 01 00 00 00 nop 4000dd8c: e2 22 00 00 st %l1, [ %o0 ] } 4000dd90: 81 c7 e0 08 ret 4000dd94: 81 e8 00 00 restore 4000c7c4 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 4000c7c4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 4000c7c8: 40 00 03 54 call 4000d518 <== NOT EXECUTED 4000c7cc: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 4000c7d0: 40 00 03 52 call 4000d518 <== NOT EXECUTED 4000c7d4: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 4000c7d8: 7f ff e3 37 call 400054b4 <== NOT EXECUTED 4000c7dc: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 4000c7e0: 7f ff f6 70 call 4000a1a0 <== NOT EXECUTED 4000c7e4: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED free(pipe); 4000c7e8: 7f ff f6 6e call 4000a1a0 <== NOT EXECUTED 4000c7ec: 81 e8 00 00 restore <== NOT EXECUTED 4000c7f0: 01 00 00 00 nop 4000c3e8 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4000c3e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 4000c3ec: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 4000c3f0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 4000c3f4: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 4000c3f8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 4000c3fc: 12 80 00 12 bne 4000c444 <== NOT EXECUTED 4000c400: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 4000c404: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 4000c408: 02 80 00 0f be 4000c444 <== NOT EXECUTED 4000c40c: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 4000c410: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 4000c414: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c418: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c41c: 7f ff e4 54 call 4000556c <== NOT EXECUTED 4000c420: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 4000c424: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c428: 12 80 00 07 bne 4000c444 <== NOT EXECUTED 4000c42c: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4000c430: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000c434: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 4000c438: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000c43c: 7f ff e4 93 call 40005688 <== NOT EXECUTED 4000c440: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 4000c444: 81 c7 e0 08 ret <== NOT EXECUTED 4000c448: 81 e8 00 00 restore <== NOT EXECUTED 4000c374 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 4000c374: 81 c3 e0 08 retl <== NOT EXECUTED 4000c378: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 4000c44c : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4000c44c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4000c450: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 4000c454: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 4000c458: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c45c: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c460: 7f ff e4 43 call 4000556c <== NOT EXECUTED 4000c464: b0 10 20 00 clr %i0 <== NOT EXECUTED 4000c468: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c46c: 02 80 00 54 be 4000c5bc <== NOT EXECUTED 4000c470: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 4000c474: 81 c7 e0 08 ret <== NOT EXECUTED 4000c478: 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) 4000c47c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c480: 02 80 00 53 be 4000c5cc <== NOT EXECUTED 4000c484: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 4000c488: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 4000c48c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000c490: 22 80 00 04 be,a 4000c4a0 <== NOT EXECUTED 4000c494: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 4000c498: 10 80 00 4d b 4000c5cc <== NOT EXECUTED 4000c49c: 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); 4000c4a0: 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 ++; 4000c4a4: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000c4a8: 7f ff e4 78 call 40005688 <== NOT EXECUTED 4000c4ac: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 4000c4b0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 4000c4b4: 40 00 04 4a call 4000d5dc <== NOT EXECUTED 4000c4b8: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c4bc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000c4c0: 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)) 4000c4c4: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000c4c8: 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)) 4000c4cc: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000c4d0: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c4d4: 7f ff e4 26 call 4000556c <== NOT EXECUTED 4000c4d8: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 4000c4dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c4e0: 22 80 00 04 be,a 4000c4f0 <== NOT EXECUTED 4000c4e4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 4000c4e8: 10 80 00 3b b 4000c5d4 <== NOT EXECUTED 4000c4ec: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 4000c4f0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 4000c4f4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 4000c4f8: 12 80 00 35 bne 4000c5cc <== NOT EXECUTED 4000c4fc: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 4000c500: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 4000c504: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 4000c508: 22 bf ff dd be,a 4000c47c <== NOT EXECUTED 4000c50c: 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); 4000c510: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED 4000c514: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 4000c518: 38 80 00 02 bgu,a 4000c520 <== NOT EXECUTED 4000c51c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 4000c520: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 4000c524: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 4000c528: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 4000c52c: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED if (chunk > chunk1) { 4000c530: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 4000c534: 04 80 00 0a ble 4000c55c <== NOT EXECUTED 4000c538: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 4000c53c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 4000c540: 40 00 0a ba call 4000f028 <== NOT EXECUTED 4000c544: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 4000c548: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED 4000c54c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 4000c550: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 4000c554: 10 80 00 04 b 4000c564 <== NOT EXECUTED 4000c558: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 4000c55c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 4000c560: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 4000c564: 40 00 0a b1 call 4000f028 <== NOT EXECUTED 4000c568: 01 00 00 00 nop <== NOT EXECUTED pipe->Start += chunk; 4000c56c: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 4000c570: 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; 4000c574: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 4000c578: 40 00 2e ae call 40018030 <.urem> <== NOT EXECUTED 4000c57c: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 4000c580: 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; 4000c584: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 4000c588: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 4000c58c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c590: 12 80 00 03 bne 4000c59c <== NOT EXECUTED 4000c594: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 4000c598: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 4000c59c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 4000c5a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c5a4: 22 80 00 06 be,a 4000c5bc <== NOT EXECUTED 4000c5a8: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 4000c5ac: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 4000c5b0: 40 00 03 f4 call 4000d580 <== NOT EXECUTED 4000c5b4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 4000c5b8: 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) { 4000c5bc: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 4000c5c0: 2a bf ff d1 bcs,a 4000c504 <== NOT EXECUTED 4000c5c4: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 4000c5c8: a2 10 20 00 clr %l1 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 4000c5cc: 7f ff e4 2f call 40005688 <== NOT EXECUTED 4000c5d0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 4000c5d4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000c5d8: 24 80 00 02 ble,a 4000c5e0 <== NOT EXECUTED 4000c5dc: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return read; return ret; } 4000c5e0: 81 c7 e0 08 ret <== NOT EXECUTED 4000c5e4: 81 e8 00 00 restore <== NOT EXECUTED 4000c7f4 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 4000c7f4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 4000c7f8: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 4000c7fc: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c800: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 4000c804: 7f ff e3 5a call 4000556c <== NOT EXECUTED 4000c808: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 4000c80c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c810: 12 80 00 17 bne 4000c86c <== NOT EXECUTED 4000c814: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 4000c818: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 4000c81c: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED 4000c820: 02 80 00 05 be 4000c834 <== NOT EXECUTED 4000c824: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED pipe->Readers --; 4000c828: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000c82c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000c830: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 4000c834: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED 4000c838: 02 80 00 06 be 4000c850 <== NOT EXECUTED 4000c83c: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED pipe->Writers --; 4000c840: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 4000c844: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000c848: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 4000c84c: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000c850: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 4001c77c <== NOT EXECUTED 4000c854: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c858: 7f ff e3 45 call 4000556c <== NOT EXECUTED 4000c85c: 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) 4000c860: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c864: 02 80 00 04 be 4000c874 <== NOT EXECUTED 4000c868: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); 4000c86c: 7f ff e4 e9 call 40005c10 <== NOT EXECUTED 4000c870: 01 00 00 00 nop <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000c874: 7f ff e3 85 call 40005688 <== NOT EXECUTED 4000c878: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 4000c87c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000c880: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c884: 12 80 00 0a bne 4000c8ac <== NOT EXECUTED 4000c888: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 4000c88c: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 4000c890: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 4000c894: 12 80 00 06 bne 4000c8ac <== NOT EXECUTED 4000c898: 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); 4000c89c: 7f ff ff ca call 4000c7c4 <== NOT EXECUTED 4000c8a0: 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) { 4000c8a4: 10 80 00 12 b 4000c8ec <== NOT EXECUTED 4000c8a8: 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) 4000c8ac: 02 80 00 06 be 4000c8c4 <== NOT EXECUTED 4000c8b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c8b4: 12 80 00 05 bne 4000c8c8 <== NOT EXECUTED 4000c8b8: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 4000c8bc: 10 80 00 0a b 4000c8e4 <== NOT EXECUTED 4000c8c0: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 4000c8c4: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED 4000c8c8: 02 80 00 0a be 4000c8f0 <== NOT EXECUTED 4000c8cc: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000c8d0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 4000c8d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c8d8: 12 80 00 06 bne 4000c8f0 <== NOT EXECUTED 4000c8dc: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000c8e0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 4000c8e4: 40 00 03 27 call 4000d580 <== NOT EXECUTED 4000c8e8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 4000c8ec: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000c8f0: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 4001c77c <== NOT EXECUTED 4000c8f4: 7f ff e3 65 call 40005688 <== NOT EXECUTED 4000c8f8: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 4000c8fc: 81 c7 e0 08 ret <== NOT EXECUTED 4000c900: 81 e8 00 00 restore <== NOT EXECUTED 4000c5e8 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 4000c5e8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 4000c5ec: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 4000c5f0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 4000c5f4: 02 80 00 72 be 4000c7bc <== NOT EXECUTED 4000c5f8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 4000c5fc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 4000c600: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c604: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c608: 7f ff e3 d9 call 4000556c <== NOT EXECUTED 4000c60c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 4000c610: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c614: 12 80 00 6a bne 4000c7bc <== NOT EXECUTED 4000c618: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 4000c61c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000c620: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c624: 02 80 00 5a be 4000c78c <== NOT EXECUTED 4000c628: 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; 4000c62c: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 4000c630: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 4000c634: 08 80 00 04 bleu 4000c644 <== NOT EXECUTED 4000c638: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED 4000c63c: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED 4000c640: 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); 4000c644: 10 80 00 4e b 4000c77c <== NOT EXECUTED 4000c648: 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)) { 4000c64c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000c650: 22 80 00 04 be,a 4000c660 <== NOT EXECUTED 4000c654: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 4000c658: 10 80 00 4d b 4000c78c <== NOT EXECUTED 4000c65c: 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); 4000c660: 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 ++; 4000c664: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 4000c668: 7f ff e4 08 call 40005688 <== NOT EXECUTED 4000c66c: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 4000c670: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 4000c674: 40 00 03 da call 4000d5dc <== NOT EXECUTED 4000c678: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c67c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000c680: 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)) 4000c684: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000c688: 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)) 4000c68c: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 4000c690: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c694: 7f ff e3 b6 call 4000556c <== NOT EXECUTED 4000c698: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 4000c69c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c6a0: 22 80 00 04 be,a 4000c6b0 <== NOT EXECUTED 4000c6a4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 4000c6a8: 10 80 00 42 b 4000c7b0 <== NOT EXECUTED 4000c6ac: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) 4000c6b0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 4000c6b4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 4000c6b8: 12 80 00 35 bne 4000c78c <== NOT EXECUTED 4000c6bc: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 4000c6c0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 4000c6c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c6c8: 32 80 00 04 bne,a 4000c6d8 <== NOT EXECUTED 4000c6cc: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 4000c6d0: 10 80 00 2f b 4000c78c <== NOT EXECUTED 4000c6d4: 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) { 4000c6d8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 4000c6dc: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED 4000c6e0: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED 4000c6e4: 2a bf ff da bcs,a 4000c64c <== NOT EXECUTED 4000c6e8: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 4000c6ec: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED 4000c6f0: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 4000c6f4: 38 80 00 02 bgu,a 4000c6fc <== NOT EXECUTED 4000c6f8: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 4000c6fc: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 4000c700: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 4000c704: 40 00 2e 4b call 40018030 <.urem> <== NOT EXECUTED 4000c708: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 4000c70c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 4000c710: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 4000c714: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 4000c718: 04 80 00 0a ble 4000c740 <== NOT EXECUTED 4000c71c: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 4000c720: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 4000c724: 40 00 0a 41 call 4000f028 <== NOT EXECUTED 4000c728: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 4000c72c: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED 4000c730: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 4000c734: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 4000c738: 10 80 00 04 b 4000c748 <== NOT EXECUTED 4000c73c: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 4000c740: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 4000c744: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 4000c748: 40 00 0a 38 call 4000f028 <== NOT EXECUTED 4000c74c: 01 00 00 00 nop <== NOT EXECUTED pipe->Length += chunk; 4000c750: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 4000c754: 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; 4000c758: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 4000c75c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c760: 02 80 00 05 be 4000c774 <== NOT EXECUTED 4000c764: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 4000c768: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 4000c76c: 40 00 03 85 call 4000d580 <== NOT EXECUTED 4000c770: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 4000c774: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 4000c778: 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) { 4000c77c: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 4000c780: 2a bf ff d6 bcs,a 4000c6d8 <== NOT EXECUTED 4000c784: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 4000c788: 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); 4000c78c: 7f ff e3 bf call 40005688 <== NOT EXECUTED 4000c790: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 4000c794: 80 a4 7f e0 cmp %l1, -32 <== NOT EXECUTED 4000c798: 12 80 00 07 bne 4000c7b4 <== NOT EXECUTED 4000c79c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED kill(getpid(), SIGPIPE); 4000c7a0: 40 00 02 20 call 4000d020 <== NOT EXECUTED 4000c7a4: 01 00 00 00 nop <== NOT EXECUTED 4000c7a8: 40 00 02 9a call 4000d210 <== NOT EXECUTED 4000c7ac: 92 10 20 0d mov 0xd, %o1 ! d <== NOT EXECUTED #endif if (written > 0) 4000c7b0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 4000c7b4: 24 80 00 02 ble,a 4000c7bc <== NOT EXECUTED 4000c7b8: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return written; return ret; } 4000c7bc: 81 c7 e0 08 ret <== NOT EXECUTED 4000c7c0: 81 e8 00 00 restore <== NOT EXECUTED 4001a380 : ssize_t read( int fd, void *buffer, size_t count ) { 4001a380: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 4001a384: 03 10 00 6f sethi %hi(0x4001bc00), %g1 4001a388: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 4001bfb4 ssize_t read( int fd, void *buffer, size_t count ) { 4001a38c: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 4001a390: 80 a6 00 01 cmp %i0, %g1 4001a394: 1a 80 00 0c bcc 4001a3c4 4001a398: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 4001a39c: 03 10 00 71 sethi %hi(0x4001c400), %g1 4001a3a0: e0 00 63 f4 ld [ %g1 + 0x3f4 ], %l0 ! 4001c7f4 4001a3a4: 83 2e 20 06 sll %i0, 6, %g1 4001a3a8: b1 2e 20 03 sll %i0, 3, %i0 4001a3ac: b0 06 00 01 add %i0, %g1, %i0 4001a3b0: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 4001a3b4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 4001a3b8: 80 88 61 00 btst 0x100, %g1 4001a3bc: 12 80 00 06 bne 4001a3d4 4001a3c0: 80 a6 60 00 cmp %i1, 0 4001a3c4: 7f ff d0 de call 4000e73c <__errno> 4001a3c8: 01 00 00 00 nop 4001a3cc: 10 80 00 14 b 4001a41c 4001a3d0: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_buffer( buffer ); 4001a3d4: 02 80 00 07 be 4001a3f0 4001a3d8: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 4001a3dc: 02 80 00 1c be 4001a44c 4001a3e0: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 4001a3e4: 80 88 60 02 btst 2, %g1 4001a3e8: 32 80 00 06 bne,a 4001a400 4001a3ec: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 4001a3f0: 7f ff d0 d3 call 4000e73c <__errno> <== NOT EXECUTED 4001a3f4: 01 00 00 00 nop <== NOT EXECUTED 4001a3f8: 10 80 00 09 b 4001a41c <== NOT EXECUTED 4001a3fc: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 4001a400: c2 00 60 08 ld [ %g1 + 8 ], %g1 4001a404: 80 a0 60 00 cmp %g1, 0 4001a408: 12 80 00 08 bne 4001a428 4001a40c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 4001a410: 7f ff d0 cb call 4000e73c <__errno> <== NOT EXECUTED 4001a414: 01 00 00 00 nop <== NOT EXECUTED 4001a418: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 4001a41c: c2 22 00 00 st %g1, [ %o0 ] 4001a420: 10 80 00 0b b 4001a44c 4001a424: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->read_h)( iop, buffer, count ); 4001a428: 9f c0 40 00 call %g1 4001a42c: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 4001a430: 80 a2 20 00 cmp %o0, 0 4001a434: 04 80 00 06 ble 4001a44c 4001a438: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 4001a43c: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 4001a440: 86 83 40 08 addcc %o5, %o0, %g3 4001a444: 84 43 00 02 addx %o4, %g2, %g2 4001a448: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 4001a44c: 81 c7 e0 08 ret 4001a450: 91 e8 00 08 restore %g0, %o0, %o0 40027bdc : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 40027bdc: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 40027be0: 80 a6 60 00 cmp %i1, 0 40027be4: 12 80 00 06 bne 40027bfc 40027be8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 40027bec: 40 00 5e eb call 4003f798 <__errno> <== NOT EXECUTED 40027bf0: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 40027bf4: 10 80 00 32 b 40027cbc <== NOT EXECUTED 40027bf8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 40027bfc: 40 00 7a 26 call 40046494 40027c00: 90 10 00 18 mov %i0, %o0 40027c04: a0 07 bf ec add %fp, -20, %l0 40027c08: 92 10 00 08 mov %o0, %o1 40027c0c: 94 10 20 00 clr %o2 40027c10: 90 10 00 18 mov %i0, %o0 40027c14: 96 10 00 10 mov %l0, %o3 40027c18: 98 10 20 00 clr %o4 40027c1c: 7f ff 7b f5 call 40006bf0 40027c20: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 40027c24: 80 a2 20 00 cmp %o0, 0 40027c28: 12 80 00 26 bne 40027cc0 40027c2c: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 40027c30: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40027c34: 80 a0 60 00 cmp %g1, 0 40027c38: 22 80 00 19 be,a 40027c9c 40027c3c: 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 ){ 40027c40: 9f c0 40 00 call %g1 40027c44: 90 10 00 10 mov %l0, %o0 40027c48: 80 a2 20 04 cmp %o0, 4 40027c4c: 02 80 00 0f be 40027c88 40027c50: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_freenode( &loc ); 40027c54: 80 a0 a0 00 cmp %g2, 0 40027c58: 02 80 00 08 be 40027c78 40027c5c: 01 00 00 00 nop 40027c60: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40027c64: 80 a0 60 00 cmp %g1, 0 40027c68: 02 80 00 04 be 40027c78 40027c6c: 01 00 00 00 nop 40027c70: 9f c0 40 00 call %g1 40027c74: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 40027c78: 40 00 5e c8 call 4003f798 <__errno> 40027c7c: b0 10 3f ff mov -1, %i0 40027c80: 10 80 00 0f b 40027cbc 40027c84: 82 10 20 16 mov 0x16, %g1 } if ( !loc.ops->readlink_h ){ 40027c88: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 40027c8c: 80 a0 60 00 cmp %g1, 0 40027c90: 12 80 00 0e bne 40027cc8 40027c94: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); 40027c98: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40027c9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027ca0: 02 80 00 04 be 40027cb0 <== NOT EXECUTED 40027ca4: 01 00 00 00 nop <== NOT EXECUTED 40027ca8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027cac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027cb0: 40 00 5e ba call 4003f798 <__errno> <== NOT EXECUTED 40027cb4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027cb8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027cbc: c2 22 00 00 st %g1, [ %o0 ] 40027cc0: 81 c7 e0 08 ret 40027cc4: 81 e8 00 00 restore } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 40027cc8: 94 10 00 1a mov %i2, %o2 40027ccc: 9f c0 40 00 call %g1 40027cd0: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 40027cd4: c2 07 bf f8 ld [ %fp + -8 ], %g1 40027cd8: 80 a0 60 00 cmp %g1, 0 40027cdc: 02 bf ff f9 be 40027cc0 40027ce0: b0 10 00 08 mov %o0, %i0 40027ce4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027ce8: 80 a0 60 00 cmp %g1, 0 40027cec: 02 80 00 04 be 40027cfc 40027cf0: 01 00 00 00 nop 40027cf4: 9f c0 40 00 call %g1 40027cf8: 90 10 00 10 mov %l0, %o0 return result; } 40027cfc: 81 c7 e0 08 ret 40027d00: 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 82 sethi %hi(0x40020800), %g1 40004354: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 ! 40020b74 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 86 sethi %hi(0x40021800), %g1 40004368: e4 00 63 8c ld [ %g1 + 0x38c ], %l2 ! 40021b8c 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 32 c2 call 40010e94 <__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 32 b1 call 40010e94 <__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 32 9f call 40010e94 <__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 4001a4d8 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 4001a4d8: 9d e3 bf 98 save %sp, -104, %sp 4001a4dc: 03 10 00 72 sethi %hi(0x4001c800), %g1 4001a4e0: 82 10 60 00 mov %g1, %g1 ! 4001c800 4001a4e4: 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())) { 4001a4e8: 05 10 00 72 sethi %hi(0x4001c800), %g2 4001a4ec: c4 00 a3 60 ld [ %g2 + 0x360 ], %g2 ! 4001cb60 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 4001a4f0: 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())) { 4001a4f4: 80 a0 a0 03 cmp %g2, 3 4001a4f8: 12 80 00 0c bne 4001a528 4001a4fc: c6 20 60 10 st %g3, [ %g1 + 0x10 ] if (_Thread_Dispatch_disable_level > 0) 4001a500: 03 10 00 72 sethi %hi(0x4001c800), %g1 4001a504: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 4001c9c0 <_Thread_Dispatch_disable_level> 4001a508: 80 a0 60 00 cmp %g1, 0 4001a50c: 32 80 00 13 bne,a 4001a558 4001a510: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; if (_ISR_Nest_level > 0) 4001a514: 03 10 00 72 sethi %hi(0x4001c800), %g1 4001a518: c2 00 62 58 ld [ %g1 + 0x258 ], %g1 ! 4001ca58 <_ISR_Nest_level> 4001a51c: 80 a0 60 00 cmp %g1, 0 4001a520: 32 80 00 0e bne,a 4001a558 4001a524: b0 10 20 00 clr %i0 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 4001a528: 80 a6 20 00 cmp %i0, 0 4001a52c: 12 80 00 06 bne 4001a544 4001a530: 80 a6 60 00 cmp %i1, 0 return malloc( size ); 4001a534: 7f ff c0 7d call 4000a728 4001a538: 90 10 00 19 mov %i1, %o0 4001a53c: 81 c7 e0 08 ret 4001a540: 91 e8 00 08 restore %g0, %o0, %o0 if ( !size ) { 4001a544: 12 80 00 07 bne 4001a560 4001a548: 21 10 00 6f sethi %hi(0x4001bc00), %l0 free( ptr ); 4001a54c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 4001a550: 7f ff bf 14 call 4000a1a0 <== NOT EXECUTED 4001a554: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 4001a558: 81 c7 e0 08 ret <== NOT EXECUTED 4001a55c: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 4001a560: d0 04 23 c0 ld [ %l0 + 0x3c0 ], %o0 4001a564: 92 10 00 18 mov %i0, %o1 4001a568: 40 00 00 60 call 4001a6e8 <_Protected_heap_Get_block_size> 4001a56c: 94 07 bf fc add %fp, -4, %o2 4001a570: 80 8a 20 ff btst 0xff, %o0 4001a574: 12 80 00 08 bne 4001a594 4001a578: d0 04 23 c0 ld [ %l0 + 0x3c0 ], %o0 errno = EINVAL; 4001a57c: 7f ff d0 70 call 4000e73c <__errno> 4001a580: b0 10 20 00 clr %i0 4001a584: 82 10 20 16 mov 0x16, %g1 4001a588: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 4001a58c: 81 c7 e0 08 ret 4001a590: 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 ) ) { 4001a594: 92 10 00 18 mov %i0, %o1 4001a598: 40 00 00 61 call 4001a71c <_Protected_heap_Resize_block> 4001a59c: 94 10 00 19 mov %i1, %o2 4001a5a0: 80 8a 20 ff btst 0xff, %o0 4001a5a4: 12 80 00 1a bne 4001a60c 4001a5a8: 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 ); 4001a5ac: 7f ff c0 5f call 4000a728 4001a5b0: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 4001a5b4: 03 10 00 72 sethi %hi(0x4001c800), %g1 4001a5b8: 82 10 60 00 mov %g1, %g1 ! 4001c800 4001a5bc: 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 ); 4001a5c0: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 4001a5c4: 84 00 bf ff add %g2, -1, %g2 if ( !new_area ) { 4001a5c8: 80 a2 20 00 cmp %o0, 0 4001a5cc: 02 80 00 0f be 4001a608 4001a5d0: c4 20 60 04 st %g2, [ %g1 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 4001a5d4: c2 07 bf fc ld [ %fp + -4 ], %g1 4001a5d8: 80 a6 40 01 cmp %i1, %g1 4001a5dc: 08 80 00 03 bleu 4001a5e8 4001a5e0: 94 10 00 19 mov %i1, %o2 4001a5e4: 94 10 00 01 mov %g1, %o2 4001a5e8: 92 10 00 18 mov %i0, %o1 4001a5ec: 7f ff d2 8f call 4000f028 4001a5f0: 90 10 00 10 mov %l0, %o0 free( ptr ); 4001a5f4: 90 10 00 18 mov %i0, %o0 4001a5f8: 7f ff be ea call 4000a1a0 4001a5fc: b0 10 00 10 mov %l0, %i0 return new_area; 4001a600: 81 c7 e0 08 ret 4001a604: 81 e8 00 00 restore 4001a608: b0 10 20 00 clr %i0 } 4001a60c: 81 c7 e0 08 ret 4001a610: 81 e8 00 00 restore 4000815c : #include int rmdir( const char *pathname ) { 4000815c: 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 ); 40008160: 7f ff fa 56 call 40006ab8 40008164: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 40008168: a6 92 20 00 orcc %o0, 0, %l3 4000816c: 32 80 00 17 bne,a 400081c8 40008170: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 40008174: c2 4e 00 00 ldsb [ %i0 ], %g1 40008178: 80 a0 60 5c cmp %g1, 0x5c 4000817c: 02 80 00 06 be 40008194 40008180: 80 a0 60 2f cmp %g1, 0x2f 40008184: 02 80 00 04 be 40008194 40008188: 80 a0 60 00 cmp %g1, 0 4000818c: 12 80 00 07 bne 400081a8 <== NOT EXECUTED 40008190: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40008194: 03 10 01 95 sethi %hi(0x40065400), %g1 40008198: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 ! 40065538 4000819c: 90 07 bf ec add %fp, -20, %o0 400081a0: 10 80 00 05 b 400081b4 400081a4: 92 02 60 18 add %o1, 0x18, %o1 400081a8: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 <== NOT EXECUTED 400081ac: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 400081b0: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 400081b4: 94 10 20 14 mov 0x14, %o2 400081b8: 40 00 ea 4b call 40042ae4 400081bc: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 400081c0: 10 80 00 0b b 400081ec 400081c4: 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, 400081c8: 92 10 00 13 mov %l3, %o1 400081cc: 94 10 20 02 mov 2, %o2 400081d0: 96 07 bf ec add %fp, -20, %o3 400081d4: 7f ff fa 87 call 40006bf0 400081d8: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 400081dc: 80 a2 20 00 cmp %o0, 0 400081e0: 12 80 00 89 bne 40008404 400081e4: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 400081e8: 94 10 20 14 mov 0x14, %o2 400081ec: a0 07 bf d8 add %fp, -40, %l0 400081f0: a4 07 bf ec add %fp, -20, %l2 400081f4: 90 10 00 10 mov %l0, %o0 400081f8: 40 00 ea 3b call 40042ae4 400081fc: 92 10 00 12 mov %l2, %o1 name = pathname + parentpathlen; 40008200: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 40008204: 40 00 f8 a4 call 40046494 40008208: 90 10 00 18 mov %i0, %o0 4000820c: 92 10 00 08 mov %o0, %o1 40008210: 7f ff fa 18 call 40006a70 40008214: 90 10 00 18 mov %i0, %o0 40008218: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4000821c: 40 00 f8 9e call 40046494 40008220: 90 10 00 18 mov %i0, %o0 40008224: 94 10 20 00 clr %o2 40008228: 92 10 00 08 mov %o0, %o1 4000822c: 96 10 00 10 mov %l0, %o3 40008230: 90 10 00 18 mov %i0, %o0 40008234: 7f ff fa 33 call 40006b00 40008238: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 4000823c: 80 a2 20 00 cmp %o0, 0 40008240: 02 80 00 11 be 40008284 40008244: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 40008248: 80 8c 60 ff btst 0xff, %l1 4000824c: 02 80 00 0c be 4000827c 40008250: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 40008254: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40008258: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000825c: 02 80 00 6b be 40008408 <== NOT EXECUTED 40008260: 01 00 00 00 nop <== NOT EXECUTED 40008264: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40008268: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000826c: 02 80 00 04 be 4000827c <== NOT EXECUTED 40008270: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 40008274: 9f c0 40 00 call %g1 <== NOT EXECUTED 40008278: 01 00 00 00 nop <== NOT EXECUTED 4000827c: 81 c7 e0 08 ret 40008280: 81 e8 00 00 restore /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 40008284: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 40008288: 80 a0 60 00 cmp %g1, 0 4000828c: 12 80 00 04 bne 4000829c 40008290: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 40008294: 10 80 00 2b b 40008340 <== NOT EXECUTED 40008298: 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 ){ 4000829c: 9f c0 40 00 call %g1 400082a0: 90 10 00 10 mov %l0, %o0 400082a4: 80 a2 20 01 cmp %o0, 1 400082a8: 02 80 00 1d be 4000831c 400082ac: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &loc ); 400082b0: c2 07 bf e4 ld [ %fp + -28 ], %g1 400082b4: 80 a0 60 00 cmp %g1, 0 400082b8: 02 80 00 09 be 400082dc 400082bc: 80 8c 60 ff btst 0xff, %l1 400082c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400082c4: 80 a0 60 00 cmp %g1, 0 400082c8: 02 80 00 05 be 400082dc 400082cc: 80 8c 60 ff btst 0xff, %l1 400082d0: 9f c0 40 00 call %g1 400082d4: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 400082d8: 80 8c 60 ff btst 0xff, %l1 400082dc: 02 80 00 0c be 4000830c 400082e0: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 400082e4: c2 07 bf f8 ld [ %fp + -8 ], %g1 400082e8: 80 a0 60 00 cmp %g1, 0 400082ec: 02 80 00 08 be 4000830c 400082f0: 01 00 00 00 nop 400082f4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400082f8: 80 a0 60 00 cmp %g1, 0 400082fc: 02 80 00 04 be 4000830c 40008300: 01 00 00 00 nop 40008304: 9f c0 40 00 call %g1 40008308: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 4000830c: 40 00 dd 23 call 4003f798 <__errno> 40008310: b0 10 3f ff mov -1, %i0 40008314: 10 80 00 1f b 40008390 40008318: 82 10 20 14 mov 0x14, %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 4000831c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 40008320: 80 a0 60 00 cmp %g1, 0 40008324: 12 80 00 1e bne 4000839c 40008328: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 4000832c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 40008330: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008334: 02 80 00 09 be 40008358 <== NOT EXECUTED 40008338: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4000833c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40008340: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008344: 02 80 00 05 be 40008358 <== NOT EXECUTED 40008348: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4000834c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40008350: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 40008354: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 40008358: 02 80 00 0b be 40008384 <== NOT EXECUTED 4000835c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 40008360: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008364: 02 80 00 08 be 40008384 <== NOT EXECUTED 40008368: 01 00 00 00 nop <== NOT EXECUTED 4000836c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40008370: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008374: 02 80 00 04 be 40008384 <== NOT EXECUTED 40008378: 01 00 00 00 nop <== NOT EXECUTED 4000837c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40008380: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40008384: 40 00 dd 05 call 4003f798 <__errno> <== NOT EXECUTED 40008388: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000838c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40008390: c2 22 00 00 st %g1, [ %o0 ] 40008394: 81 c7 e0 08 ret 40008398: 81 e8 00 00 restore } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 4000839c: 9f c0 40 00 call %g1 400083a0: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 400083a4: c2 07 bf e4 ld [ %fp + -28 ], %g1 400083a8: 80 a0 60 00 cmp %g1, 0 400083ac: 02 80 00 08 be 400083cc 400083b0: b0 10 00 08 mov %o0, %i0 400083b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400083b8: 80 a0 60 00 cmp %g1, 0 400083bc: 02 80 00 05 be 400083d0 400083c0: 80 8c 60 ff btst 0xff, %l1 400083c4: 9f c0 40 00 call %g1 400083c8: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 400083cc: 80 8c 60 ff btst 0xff, %l1 400083d0: 02 bf ff ab be 4000827c 400083d4: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 400083d8: 80 a0 60 00 cmp %g1, 0 400083dc: 02 80 00 0b be 40008408 400083e0: 01 00 00 00 nop 400083e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400083e8: 80 a0 60 00 cmp %g1, 0 400083ec: 02 80 00 07 be 40008408 400083f0: 01 00 00 00 nop 400083f4: 9f c0 40 00 call %g1 400083f8: 90 07 bf ec add %fp, -20, %o0 400083fc: 81 c7 e0 08 ret 40008400: 81 e8 00 00 restore 40008404: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 40008408: 81 c7 e0 08 ret <== NOT EXECUTED 4000840c: 81 e8 00 00 restore <== NOT EXECUTED 400147c4 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 400147c4: 11 10 00 9d sethi %hi(0x40027400), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 400147c8: 81 c3 e0 08 retl <== NOT EXECUTED 400147cc: 90 12 23 b0 or %o0, 0x3b0, %o0 ! 400277b0 <== NOT EXECUTED 40010e1c : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 40010e1c: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 40010e20: 90 10 00 18 mov %i0, %o0 40010e24: 40 00 00 0b call 40010e50 40010e28: 92 10 00 19 mov %i1, %o1 if (nap) 40010e2c: 80 a2 20 00 cmp %o0, 0 40010e30: 02 80 00 05 be 40010e44 40010e34: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 40010e38: f0 02 00 00 ld [ %o0 ], %i0 40010e3c: 81 c7 e0 08 ret 40010e40: 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); 40010e44: 40 00 0e 60 call 400147c4 <== NOT EXECUTED 40010e48: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 40010e4c: 01 00 00 00 nop 4000ddcc : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 4000ddcc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 4000ddd0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 4000ddd4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000ddd8: 40 00 02 39 call 4000e6bc <== NOT EXECUTED 4000dddc: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 4000dde0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000dde4: 32 80 00 02 bne,a 4000ddec <== NOT EXECUTED 4000dde8: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 4000ddec: 81 c7 e0 08 ret <== NOT EXECUTED 4000ddf0: 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 35 42 call 4000f700 <== 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 7e call 40007df4 <_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 ac sethi %hi(0x4002b000), %o0 40002c10: 94 10 00 1d mov %i5, %o2 40002c14: 40 00 1e 8d call 4000a648 <_Timespec_Subtract> 40002c18: 90 12 22 88 or %o0, 0x288, %o0 } } } #endif (*print)( 40002c1c: 90 10 00 18 mov %i0, %o0 40002c20: 13 10 00 81 sethi %hi(0x40020400), %o1 40002c24: 21 10 00 ab sethi %hi(0x4002ac00), %l0 40002c28: 92 12 62 20 or %o1, 0x220, %o1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 40002c2c: 39 10 00 81 sethi %hi(0x40020400), %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 ab sethi %hi(0x4002ac00), %l6 /* * Print the information */ (*print)( context, 40002c34: 37 10 00 81 sethi %hi(0x40020400), %i3 } } } #endif (*print)( 40002c38: 9f c6 40 00 call %i1 40002c3c: 35 10 00 ab sethi %hi(0x4002ac00), %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 24 or %l0, 0x24, %l0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 40002c48: b8 17 23 98 or %i4, 0x398, %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 7c or %l6, 0x17c, %l6 /* * Print the information */ (*print)( context, 40002c50: b6 16 e3 b0 or %i3, 0x3b0, %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 84 or %i2, 0x184, %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 55 call 4000a648 <_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 a7 call 4000a39c <_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 bb call 4000a400 <_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 69 14 call 4001d170 <.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 ab sethi %hi(0x4002ac00), %g1 40002d64: 82 10 60 34 or %g1, 0x34, %g1 ! 4002ac34 <_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 68 fe call 4001d170 <.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 81 sethi %hi(0x40020400), %o1 40002d8c: 90 10 00 18 mov %i0, %o0 40002d90: 9f c6 40 00 call %i1 40002d94: 92 12 63 c8 or %o1, 0x3c8, %o1 40002d98: 81 c7 e0 08 ret 40002d9c: 81 e8 00 00 restore 4000dd98 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 4000dd98: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 4000dd9c: 11 10 00 6e sethi %hi(0x4001b800), %o0 <== NOT EXECUTED 4000dda0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000dda4: 40 00 00 0a call 4000ddcc <== NOT EXECUTED 4000dda8: 90 12 20 74 or %o0, 0x74, %o0 <== NOT EXECUTED 4000ddac: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 4000ddb0: 02 80 00 05 be 4000ddc4 <== NOT EXECUTED 4000ddb4: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 4000ddb8: 40 00 02 61 call 4000e73c <__errno> <== NOT EXECUTED 4000ddbc: 01 00 00 00 nop <== NOT EXECUTED 4000ddc0: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 4000ddc4: 81 c7 e0 08 ret <== NOT EXECUTED 4000ddc8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 400074b4 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 400074b4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 400074b8: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 400074bc: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 400074c0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 400074c4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 400074c8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 400074cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 400074d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 400074d4: 7f ff ff 7d call 400072c8 <== NOT EXECUTED 400074d8: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 400074dc: 81 c7 e0 08 ret <== NOT EXECUTED 400074e0: 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 31 94 call 4000e73c <__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 31 8e call 4000e73c <__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 70 sethi %hi(0x4001c000), %g1 40002138: 03 10 00 70 sethi %hi(0x4001c000), %g1 4000213c: d2 00 60 c8 ld [ %g1 + 0xc8 ], %o1 ! 4001c0c8 40002140: 90 10 00 1b mov %i3, %o0 40002144: 92 02 60 18 add %o1, 0x18, %o1 40002148: 40 00 33 b8 call 4000f028 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 60 c8 ld [ %g1 + 0xc8 ], %o1 4000215c: 90 10 00 1b mov %i3, %o0 40002160: 92 02 60 04 add %o1, 4, %o1 40002164: 40 00 33 b1 call 4000f028 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 31 cf call 4000e73c <__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 31 c8 call 4000e73c <__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 31 a3 call 4000e73c <__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 70 sethi %hi(0x4001c000), %l1 40001e54: c2 04 60 c8 ld [ %l1 + 0xc8 ], %g1 ! 4001c0c8 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 6b sethi %hi(0x4001ac00), %g1 40001e68: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 ! 4001ac7c 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 6f sethi %hi(0x4001bc00), %g1 40001e80: c2 00 63 bc ld [ %g1 + 0x3bc ], %g1 ! 4001bfbc 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 60 c8 ld [ %l1 + 0xc8 ], %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 58 call 40005c10 <== 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 34 58 call 4000f028 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 6c sethi %hi(0x4001b000), %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 a0 c0 or %l2, 0xc0, %o0 rtems_filesystem_root = loc; 40001ef0: d0 04 60 c8 ld [ %l1 + 0xc8 ], %o0 40001ef4: 92 10 00 10 mov %l0, %o1 40001ef8: 94 10 20 14 mov 0x14, %o2 40001efc: 40 00 34 4b call 4000f028 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 a0 c0 or %l2, 0xc0, %o0 rtems_filesystem_current = loc; 40001f1c: d0 04 60 c8 ld [ %l1 + 0xc8 ], %o0 40001f20: 92 10 00 10 mov %l0, %o1 40001f24: 94 10 20 14 mov 0x14, %o2 40001f28: 40 00 34 40 call 4000f028 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 6c sethi %hi(0x4001b000), %o0 40001f38: 40 00 00 fe call 40002330 40001f3c: 90 12 20 c8 or %o0, 0xc8, %o0 ! 4001b0c8 <__FUNCTION__.5671+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 4000a578 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 4000a578: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 4000a57c: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 4000a580: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 4000a584: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 4000a588: 81 c3 e0 08 retl <== NOT EXECUTED 4000a58c: 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 36 57 call 4000f618 <== 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 32 8b call 4000e73c <__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 36 28 call 4000f618 <== 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 4000a58c : * 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 ) { 4000a58c: 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 ); 4000a590: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a594: d0 00 63 fc ld [ %g1 + 0x3fc ], %o0 ! 4001c7fc 4000a598: 92 10 20 00 clr %o1 4000a59c: 7f ff eb f4 call 4000556c 4000a5a0: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 4000a5a4: 21 10 00 71 sethi %hi(0x4001c400), %l0 4000a5a8: c2 04 23 f8 ld [ %l0 + 0x3f8 ], %g1 ! 4001c7f8 4000a5ac: 80 a0 60 00 cmp %g1, 0 4000a5b0: 02 80 00 26 be 4000a648 4000a5b4: b0 10 20 00 clr %i0 rc = rtems_semaphore_create( 4000a5b8: 05 10 00 71 sethi %hi(0x4001c400), %g2 4000a5bc: c4 00 a3 f4 ld [ %g2 + 0x3f4 ], %g2 ! 4001c7f4 4000a5c0: 92 10 20 01 mov 1, %o1 4000a5c4: 82 20 40 02 sub %g1, %g2, %g1 4000a5c8: 83 38 60 03 sra %g1, 3, %g1 4000a5cc: 87 28 60 06 sll %g1, 6, %g3 4000a5d0: 85 28 60 03 sll %g1, 3, %g2 4000a5d4: 84 20 c0 02 sub %g3, %g2, %g2 4000a5d8: 87 28 a0 06 sll %g2, 6, %g3 4000a5dc: 84 00 80 03 add %g2, %g3, %g2 4000a5e0: 84 00 80 01 add %g2, %g1, %g2 4000a5e4: 87 28 a0 0f sll %g2, 0xf, %g3 4000a5e8: 84 20 c0 02 sub %g3, %g2, %g2 4000a5ec: 07 13 10 92 sethi %hi(0x4c424800), %g3 4000a5f0: 85 28 a0 03 sll %g2, 3, %g2 4000a5f4: 86 10 e1 00 or %g3, 0x100, %g3 4000a5f8: 82 00 80 01 add %g2, %g1, %g1 4000a5fc: 94 10 20 54 mov 0x54, %o2 4000a600: 96 10 20 00 clr %o3 4000a604: 90 10 40 03 or %g1, %g3, %o0 4000a608: 7f ff eb 37 call 400052e4 4000a60c: 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) 4000a610: 80 a2 20 00 cmp %o0, 0 4000a614: 32 80 00 0d bne,a 4000a648 4000a618: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 4000a61c: f0 04 23 f8 ld [ %l0 + 0x3f8 ], %i0 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); 4000a620: 92 10 20 00 clr %o1 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; 4000a624: e2 06 20 38 ld [ %i0 + 0x38 ], %l1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 4000a628: 90 10 00 18 mov %i0, %o0 4000a62c: 40 00 12 be call 4000f124 4000a630: 94 10 20 48 mov 0x48, %o2 iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 4000a634: c2 07 bf fc ld [ %fp + -4 ], %g1 rtems_libio_iop_freelist = next; 4000a638: e2 24 23 f8 st %l1, [ %l0 + 0x3f8 ] 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; 4000a63c: 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; 4000a640: 82 10 21 00 mov 0x100, %g1 4000a644: c2 26 20 18 st %g1, [ %i0 + 0x18 ] failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 4000a648: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000a64c: 7f ff ec 0f call 40005688 4000a650: d0 00 63 fc ld [ %g1 + 0x3fc ], %o0 ! 4001c7fc return iop; } 4000a654: 81 c7 e0 08 ret 4000a658: 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 6f sethi %hi(0x4001bc00), %l0 40002188: d0 04 23 b4 ld [ %l0 + 0x3b4 ], %o0 ! 4001bfb4 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 bc call 4000a088 4000219c: 92 10 20 48 mov 0x48, %o1 400021a0: 03 10 00 71 sethi %hi(0x4001c400), %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 63 f4 st %o0, [ %g1 + 0x3f4 ] 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 71 sethi %hi(0x4001c400), %g2 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 400021bc: c8 04 23 b4 ld [ %l0 + 0x3b4 ], %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 a3 f8 st %o0, [ %g2 + 0x3f8 ] 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 71 sethi %hi(0x4001c400), %o4 40002204: 40 00 0c 38 call 400052e4 40002208: 98 13 23 fc or %o4, 0x3fc, %o4 ! 4001c7fc 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 6f sethi %hi(0x4001bc00), %g1 rtems_fatal_error_occurred( rc ); 40002218: 40 00 0e 7e call 40005c10 <== NOT EXECUTED 4000221c: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 40002220: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %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 40027ab4 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 40027ab4: 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); 40027ab8: 90 10 20 00 clr %o0 40027abc: 92 10 20 00 clr %o1 40027ac0: 40 00 06 52 call 40029408 40027ac4: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 40027ac8: b0 92 20 00 orcc %o0, 0, %i0 40027acc: 12 80 00 19 bne 40027b30 40027ad0: 21 10 01 95 sethi %hi(0x40065400), %l0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 40027ad4: c4 04 21 38 ld [ %l0 + 0x138 ], %g2 ! 40065538 40027ad8: 03 10 01 a4 sethi %hi(0x40069000), %g1 40027adc: 82 10 63 08 or %g1, 0x308, %g1 ! 40069308 40027ae0: 80 a0 80 01 cmp %g2, %g1 40027ae4: 12 80 00 15 bne 40027b38 40027ae8: a4 14 21 38 or %l0, 0x138, %l2 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 40027aec: 7f ff 7e 06 call 40007304 40027af0: 90 10 20 48 mov 0x48, %o0 if (!tmp) 40027af4: a2 92 20 00 orcc %o0, 0, %l1 40027af8: 12 80 00 04 bne 40027b08 40027afc: 92 10 00 12 mov %l2, %o1 40027b00: 81 c7 e0 08 ret <== NOT EXECUTED 40027b04: 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); 40027b08: 90 10 20 00 clr %o0 40027b0c: 15 10 00 9e sethi %hi(0x40027800), %o2 40027b10: 40 00 07 3c call 40029800 40027b14: 94 12 a1 80 or %o2, 0x180, %o2 ! 40027980 if (sc != RTEMS_SUCCESSFUL) { 40027b18: 82 92 20 00 orcc %o0, 0, %g1 40027b1c: 22 80 00 07 be,a 40027b38 40027b20: e2 24 21 38 st %l1, [ %l0 + 0x138 ] /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 40027b24: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40027b28: 7f ff 7c 5b call 40006c94 <== NOT EXECUTED 40027b2c: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED return sc; 40027b30: 81 c7 e0 08 ret <== NOT EXECUTED 40027b34: 81 e8 00 00 restore <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 40027b38: 23 10 01 95 sethi %hi(0x40065400), %l1 40027b3c: e0 04 61 38 ld [ %l1 + 0x138 ], %l0 ! 40065538 40027b40: 94 10 20 48 mov 0x48, %o2 40027b44: 90 10 00 10 mov %l0, %o0 40027b48: 13 10 01 a4 sethi %hi(0x40069000), %o1 40027b4c: 40 00 6b e6 call 40042ae4 40027b50: 92 12 63 08 or %o1, 0x308, %o1 ! 40069308 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 40027b54: 03 10 01 a4 sethi %hi(0x40069000), %g1 40027b58: d2 00 62 f0 ld [ %g1 + 0x2f0 ], %o1 ! 400692f0 } 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*/ 40027b5c: c2 07 bf fc ld [ %fp + -4 ], %g1 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 40027b60: 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*/ 40027b64: c2 24 00 00 st %g1, [ %l0 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 40027b68: 90 04 20 18 add %l0, 0x18, %o0 40027b6c: 40 00 6b de call 40042ae4 40027b70: 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); 40027b74: a0 07 bf e8 add %fp, -24, %l0 40027b78: 98 10 20 00 clr %o4 40027b7c: 96 10 00 10 mov %l0, %o3 40027b80: 25 10 01 6d sethi %hi(0x4005b400), %l2 40027b84: 92 10 20 01 mov 1, %o1 40027b88: 94 10 20 00 clr %o2 40027b8c: 7f ff 7c 19 call 40006bf0 40027b90: 90 14 a2 d8 or %l2, 0x2d8, %o0 rtems_filesystem_root = loc; 40027b94: d0 04 61 38 ld [ %l1 + 0x138 ], %o0 40027b98: 92 10 00 10 mov %l0, %o1 40027b9c: 94 10 20 14 mov 0x14, %o2 40027ba0: 40 00 6b d1 call 40042ae4 40027ba4: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 40027ba8: 92 10 20 01 mov 1, %o1 40027bac: 94 10 20 00 clr %o2 40027bb0: 90 14 a2 d8 or %l2, 0x2d8, %o0 40027bb4: 96 10 00 10 mov %l0, %o3 40027bb8: 7f ff 7c 0e call 40006bf0 40027bbc: 98 10 20 00 clr %o4 rtems_filesystem_current = loc; 40027bc0: d0 04 61 38 ld [ %l1 + 0x138 ], %o0 40027bc4: 92 10 00 10 mov %l0, %o1 40027bc8: 90 02 20 04 add %o0, 4, %o0 40027bcc: 40 00 6b c6 call 40042ae4 40027bd0: 94 10 20 14 mov 0x14, %o2 return RTEMS_SUCCESSFUL; } 40027bd4: 81 c7 e0 08 ret 40027bd8: 81 e8 00 00 restore 400279f8 : * 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) { 400279f8: 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); 400279fc: 90 10 20 00 clr %o0 <== NOT EXECUTED 40027a00: 92 10 20 00 clr %o1 <== NOT EXECUTED 40027a04: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 40027a08: 40 00 06 80 call 40029408 <== NOT EXECUTED 40027a0c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 40027a10: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40027a14: 12 80 00 26 bne 40027aac <== NOT EXECUTED 40027a18: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 40027a1c: 13 10 01 95 sethi %hi(0x40065400), %o1 <== NOT EXECUTED 40027a20: e0 02 61 38 ld [ %o1 + 0x138 ], %l0 ! 40065538 <== NOT EXECUTED 40027a24: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40027a28: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 40027a2c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 40027a30: 12 80 00 09 bne 40027a54 <== NOT EXECUTED 40027a34: 92 12 61 38 or %o1, 0x138, %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); 40027a38: 40 00 07 9e call 400298b0 <== NOT EXECUTED 40027a3c: 01 00 00 00 nop <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 40027a40: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40027a44: 12 80 00 1a bne 40027aac <== NOT EXECUTED 40027a48: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 40027a4c: 7f ff ff cd call 40027980 <== NOT EXECUTED 40027a50: 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, 40027a54: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40027a58: 21 10 01 95 sethi %hi(0x40065400), %l0 <== NOT EXECUTED 40027a5c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 40027a60: a2 14 21 38 or %l0, 0x138, %l1 <== NOT EXECUTED 40027a64: 40 00 07 b9 call 40029948 <== NOT EXECUTED 40027a68: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 40027a6c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40027a70: 12 80 00 0c bne 40027aa0 <== NOT EXECUTED 40027a74: 07 10 01 a4 sethi %hi(0x40069000), %g3 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 40027a78: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 40027a7c: 15 10 00 9e sethi %hi(0x40027800), %o2 <== NOT EXECUTED 40027a80: 40 00 07 60 call 40029800 <== NOT EXECUTED 40027a84: 94 12 a1 80 or %o2, 0x180, %o2 ! 40027980 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 40027a88: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 40027a8c: 12 80 00 05 bne 40027aa0 <== NOT EXECUTED 40027a90: 07 10 01 a4 sethi %hi(0x40069000), %g3 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 40027a94: 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; 40027a98: 10 80 00 05 b 40027aac <== NOT EXECUTED 40027a9c: c4 24 21 38 st %g2, [ %l0 + 0x138 ] <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 40027aa0: 05 10 01 95 sethi %hi(0x40065400), %g2 <== NOT EXECUTED 40027aa4: 86 10 e3 08 or %g3, 0x308, %g3 <== NOT EXECUTED 40027aa8: c6 20 a1 38 st %g3, [ %g2 + 0x138 ] <== NOT EXECUTED return sc; } 40027aac: 81 c7 e0 08 ret <== NOT EXECUTED 40027ab0: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED 4000740c : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 4000740c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 40007410: 03 10 01 94 sethi %hi(0x40065000), %g1 <== NOT EXECUTED 40007414: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 40065250 <== NOT EXECUTED 40007418: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000741c: 40 00 17 77 call 4000d1f8 <_Protected_heap_Get_block_size> <== NOT EXECUTED 40007420: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 40007424: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 40007428: 02 80 00 08 be 40007448 <== NOT EXECUTED 4000742c: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 40007430: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 40007434: 82 10 62 c0 or %g1, 0x2c0, %g1 <== NOT EXECUTED 40007438: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 4000743c: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 40007440: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 40007444: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 40007448: 81 c7 e0 08 ret <== NOT EXECUTED 4000744c: 81 e8 00 00 restore <== NOT EXECUTED 40007450 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 40007450: 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 ) 40007454: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 40007458: 02 80 00 13 be 400074a4 <== NOT EXECUTED 4000745c: 03 10 01 94 sethi %hi(0x40065000), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 40007460: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 40065250 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 40007464: 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); 40007468: 40 00 17 64 call 4000d1f8 <_Protected_heap_Get_block_size> <== NOT EXECUTED 4000746c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 40007470: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 40007474: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 40007478: 82 10 62 c0 or %g1, 0x2c0, %g1 <== NOT EXECUTED 4000747c: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 40007480: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 40007484: 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); 40007488: 9a 83 40 04 addcc %o5, %g4, %o5 <== NOT EXECUTED 4000748c: 98 43 20 00 addx %o4, 0, %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 40007490: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 40007494: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 40007498: 08 80 00 03 bleu 400074a4 <== NOT EXECUTED 4000749c: d8 38 60 20 std %o4, [ %g1 + 0x20 ] <== NOT EXECUTED s->max_depth = current_depth; 400074a0: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 400074a4: 81 c7 e0 08 ret <== NOT EXECUTED 400074a8: 81 e8 00 00 restore <== NOT EXECUTED 400074ac : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 400074ac: 11 10 01 a4 sethi %hi(0x40069000), %o0 <== NOT EXECUTED 400074b0: 92 10 20 00 clr %o1 <== NOT EXECUTED 400074b4: 90 12 22 c0 or %o0, 0x2c0, %o0 <== NOT EXECUTED 400074b8: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED 400074bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 400074c0: 40 00 ee 1c call 40042d30 <== NOT EXECUTED 400074c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 400074c8: 01 00 00 00 nop 4000f9f4 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 4000f9f4: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 4000f9f8: a0 96 20 00 orcc %i0, 0, %l0 4000f9fc: 02 80 00 20 be 4000fa7c 4000fa00: 03 10 00 8a sethi %hi(0x40022800), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 4000fa04: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 40022a90 <_System_state_Current> 4000fa08: 80 a0 60 03 cmp %g1, 3 4000fa0c: 12 80 00 07 bne 4000fa28 4000fa10: c0 24 00 00 clr [ %l0 ] 4000fa14: 7f ff cf f5 call 400039e8 4000fa18: 01 00 00 00 nop 4000fa1c: 80 8a 20 ff btst 0xff, %o0 4000fa20: 02 80 00 18 be 4000fa80 4000fa24: b0 10 20 16 mov 0x16, %i0 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 4000fa28: 7f ff d0 09 call 40003a4c 4000fa2c: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 4000fa30: 03 10 00 87 sethi %hi(0x40021c00), %g1 4000fa34: d0 00 62 20 ld [ %g1 + 0x220 ], %o0 ! 40021e20 4000fa38: 94 10 00 19 mov %i1, %o2 4000fa3c: 92 10 00 1a mov %i2, %o1 4000fa40: 7f ff e5 18 call 40008ea0 <_Protected_heap_Allocate_aligned_with_boundary> 4000fa44: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 4000fa48: b2 92 20 00 orcc %o0, 0, %i1 4000fa4c: 02 80 00 0d be 4000fa80 4000fa50: 03 10 00 89 sethi %hi(0x40022400), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 4000fa54: c2 00 60 a8 ld [ %g1 + 0xa8 ], %g1 ! 400224a8 4000fa58: 80 a0 60 00 cmp %g1, 0 4000fa5c: 22 80 00 06 be,a 4000fa74 4000fa60: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 4000fa64: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 4000fa68: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000fa6c: 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; 4000fa70: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 4000fa74: 81 c7 e0 08 ret 4000fa78: 91 e8 20 00 restore %g0, 0, %o0 4000fa7c: b0 10 20 16 mov 0x16, %i0 } 4000fa80: 81 c7 e0 08 ret 4000fa84: 81 e8 00 00 restore 40007480 : void rtems_panic( const char *printf_format, ... ) { 40007480: 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); 40007484: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 40007488: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 4000748c: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 40007490: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 40007494: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 40007498: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 4000749c: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 400074a0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 400074a4: 7f ff ff 89 call 400072c8 <== NOT EXECUTED 400074a8: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 400074ac: 81 c7 e0 08 ret <== NOT EXECUTED 400074b0: 81 e8 00 00 restore <== NOT EXECUTED 4000c37c : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 4000c37c: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 4000c380: 03 10 00 71 sethi %hi(0x4001c400), %g1 4000c384: c2 08 62 24 ldub [ %g1 + 0x224 ], %g1 ! 4001c624 4000c388: 80 a0 60 00 cmp %g1, 0 4000c38c: 02 80 00 15 be 4000c3e0 4000c390: 19 10 00 71 sethi %hi(0x4001c400), %o4 return; if (rtems_pipe_semaphore) 4000c394: c2 03 23 7c ld [ %o4 + 0x37c ], %g1 ! 4001c77c <== NOT EXECUTED 4000c398: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c39c: 12 80 00 11 bne 4000c3e0 <== NOT EXECUTED 4000c3a0: 98 13 23 7c or %o4, 0x37c, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 4000c3a4: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 4000c3a8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000c3ac: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 4000c3b0: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 4000c3b4: 7f ff e3 cc call 400052e4 <== NOT EXECUTED 4000c3b8: 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) 4000c3bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000c3c0: 02 80 00 04 be 4000c3d0 <== NOT EXECUTED 4000c3c4: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 4000c3c8: 7f ff e6 12 call 40005c10 <== NOT EXECUTED 4000c3cc: 01 00 00 00 nop <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 4000c3d0: 7f ff e2 a5 call 40004e64 <== NOT EXECUTED 4000c3d4: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 4000c3d8: 03 10 00 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 4000c3dc: d0 30 63 82 sth %o0, [ %g1 + 0x382 ] ! 4001c782 <== NOT EXECUTED 4000c3e0: 81 c7 e0 08 ret 4000c3e4: 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 a5 sethi %hi(0x40069400), %g1 40005234: c2 00 61 3c ld [ %g1 + 0x13c ], %g1 ! 4006953c <_Thread_Executing> ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 40005238: d0 00 60 c8 ld [ %g1 + 0xc8 ], %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 c4 ld [ %g1 + 0xc4 ], %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 99 sethi %hi(0x40066400), %g1 4000525c: c2 00 63 9c ld [ %g1 + 0x39c ], %g1 ! 4006679c 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 a4 sethi %hi(0x40069000), %o1 40005274: 94 10 20 10 mov 0x10, %o2 40005278: 40 00 f5 ea call 40042a20 4000527c: 92 12 62 90 or %o1, 0x290, %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 a5 sethi %hi(0x40069400), %g1 <== NOT EXECUTED 400052a0: d0 00 61 3c ld [ %g1 + 0x13c ], %o0 ! 4006953c <_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 63 00 or %o1, 0x300, %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 99 sethi %hi(0x40066400), %l1 <== NOT EXECUTED print_handler = print; 40005118: 21 10 01 99 sethi %hi(0x40066400), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 4000511c: f0 24 63 a0 st %i0, [ %l1 + 0x3a0 ] <== NOT EXECUTED print_handler = print; 40005120: f2 24 23 a4 st %i1, [ %l0 + 0x3a4 ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 40005124: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40005128: 13 10 01 6d sethi %hi(0x4005b400), %o1 <== NOT EXECUTED 4000512c: 9f c6 40 00 call %i1 <== NOT EXECUTED 40005130: 92 12 60 50 or %o1, 0x50, %o1 ! 4005b450 <== NOT EXECUTED (*print)( context, 40005134: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40005138: 13 10 01 6d sethi %hi(0x4005b400), %o1 <== NOT EXECUTED 4000513c: 9f c6 40 00 call %i1 <== NOT EXECUTED 40005140: 92 12 60 68 or %o1, 0x68, %o1 ! 4005b468 <== 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 d1 call 4000c88c <== 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 63 a0 clr [ %l1 + 0x3a0 ] <== NOT EXECUTED print_handler = NULL; 4000515c: c0 24 23 a4 clr [ %l0 + 0x3a4 ] <== 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 c8 ld [ %i0 + 0xc8 ], %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 c4 ld [ %i0 + 0xc4 ], %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 a4 sethi %hi(0x40069000), %o1 400052e4: 94 10 20 10 mov 0x10, %o2 400052e8: 40 00 f5 ce call 40042a20 400052ec: 92 12 62 90 or %o1, 0x290, %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 4000c0d4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c0d4: 9d e3 bf 98 save %sp, -104, %sp 4000c0d8: a4 10 00 18 mov %i0, %l2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c0dc: 80 a6 60 00 cmp %i1, 0 4000c0e0: 02 80 00 24 be 4000c170 4000c0e4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c0e8: 40 00 0d 78 call 4000f6c8 <__errno> 4000c0ec: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c0f0: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c0f4: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c0f8: c0 26 40 00 clr [ %i1 ] 4000c0fc: c0 26 60 04 clr [ %i1 + 4 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c100: 40 00 18 ea call 400124a8 4000c104: 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 ) 4000c108: 80 a6 a0 00 cmp %i2, 0 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c10c: 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 ) 4000c110: 02 80 00 04 be 4000c120 4000c114: a2 10 00 09 mov %o1, %l1 *endptr = end; 4000c118: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c11c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c120: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c124: 80 a0 40 12 cmp %g1, %l2 4000c128: 02 80 00 12 be 4000c170 4000c12c: 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)) 4000c130: 03 10 00 7e sethi %hi(0x4001f800), %g1 4000c134: d4 18 61 c8 ldd [ %g1 + 0x1c8 ], %o2 ! 4001f9c8 <_CPU_Trap_slot_template+0x14> 4000c138: 90 10 00 10 mov %l0, %o0 4000c13c: 40 00 41 01 call 4001c540 <__gtdf2> 4000c140: 92 10 00 11 mov %l1, %o1 4000c144: 80 a2 20 00 cmp %o0, 0 4000c148: 24 80 00 09 ble,a 4000c16c 4000c14c: e0 3e 40 00 std %l0, [ %i1 ] 4000c150: 40 00 0d 5e call 4000f6c8 <__errno> 4000c154: b0 10 20 0a mov 0xa, %i0 4000c158: c2 02 00 00 ld [ %o0 ], %g1 4000c15c: 80 a0 60 22 cmp %g1, 0x22 4000c160: 02 80 00 04 be 4000c170 4000c164: 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; 4000c168: e0 3e 40 00 std %l0, [ %i1 ] <== NOT EXECUTED 4000c16c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c170: 81 c7 e0 08 ret 4000c174: 81 e8 00 00 restore 4000c178 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c178: 9d e3 bf 98 save %sp, -104, %sp 4000c17c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c180: 80 a6 60 00 cmp %i1, 0 4000c184: 02 80 00 21 be 4000c208 4000c188: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c18c: 40 00 0d 4f call 4000f6c8 <__errno> 4000c190: 01 00 00 00 nop *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c194: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c198: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c19c: c0 26 40 00 clr [ %i1 ] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 4000c1a0: 40 00 18 af call 4001245c 4000c1a4: 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 ) 4000c1a8: 80 a6 a0 00 cmp %i2, 0 4000c1ac: 02 80 00 04 be 4000c1bc 4000c1b0: a2 10 00 08 mov %o0, %l1 *endptr = end; 4000c1b4: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c1b8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c1bc: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c1c0: 80 a0 40 10 cmp %g1, %l0 4000c1c4: 02 80 00 11 be 4000c208 4000c1c8: 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)) 4000c1cc: 90 10 00 11 mov %l1, %o0 4000c1d0: 13 1f df ff sethi %hi(0x7f7ffc00), %o1 4000c1d4: 40 00 3e 23 call 4001ba60 <__gtsf2> 4000c1d8: 92 12 63 ff or %o1, 0x3ff, %o1 ! 7f7fffff 4000c1dc: 80 a2 20 00 cmp %o0, 0 4000c1e0: 24 80 00 09 ble,a 4000c204 4000c1e4: e2 26 40 00 st %l1, [ %i1 ] 4000c1e8: 40 00 0d 38 call 4000f6c8 <__errno> 4000c1ec: b0 10 20 0a mov 0xa, %i0 4000c1f0: c2 02 00 00 ld [ %o0 ], %g1 4000c1f4: 80 a0 60 22 cmp %g1, 0x22 4000c1f8: 02 80 00 04 be 4000c208 4000c1fc: 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; 4000c200: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4000c204: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c208: 81 c7 e0 08 ret 4000c20c: 81 e8 00 00 restore 4001d6d4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4001d6d4: 9d e3 bf 98 save %sp, -104, %sp 4001d6d8: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4001d6dc: 80 a6 60 00 cmp %i1, 0 4001d6e0: 02 80 00 20 be 4001d760 4001d6e4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4001d6e8: 40 00 88 2c call 4003f798 <__errno> 4001d6ec: 01 00 00 00 nop 4001d6f0: c0 22 00 00 clr [ %o0 ] *n = 0; 4001d6f4: 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 ); 4001d6f8: 94 10 00 1b mov %i3, %o2 4001d6fc: 90 10 00 10 mov %l0, %o0 4001d700: 40 00 a7 dc call 40047670 4001d704: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4001d708: 80 a6 a0 00 cmp %i2, 0 4001d70c: 02 80 00 04 be 4001d71c 4001d710: a2 10 00 08 mov %o0, %l1 *endptr = end; 4001d714: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d718: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4001d71c: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d720: 80 a0 40 10 cmp %g1, %l0 4001d724: 02 80 00 0f be 4001d760 4001d728: 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)) 4001d72c: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 4001d730: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4001d734: 80 a4 40 01 cmp %l1, %g1 4001d738: 32 80 00 09 bne,a 4001d75c 4001d73c: e2 26 40 00 st %l1, [ %i1 ] 4001d740: 40 00 88 16 call 4003f798 <__errno> 4001d744: b0 10 20 0a mov 0xa, %i0 4001d748: c2 02 00 00 ld [ %o0 ], %g1 4001d74c: 80 a0 60 22 cmp %g1, 0x22 4001d750: 02 80 00 04 be 4001d760 4001d754: 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; 4001d758: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4001d75c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4001d760: 81 c7 e0 08 ret 4001d764: 81 e8 00 00 restore 4000c368 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c368: 9d e3 bf 98 save %sp, -104, %sp 4000c36c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c370: 80 a6 60 00 cmp %i1, 0 4000c374: 02 80 00 23 be 4000c400 4000c378: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c37c: 40 00 0c d3 call 4000f6c8 <__errno> 4000c380: 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 ); 4000c384: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c388: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c38c: 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 ); 4000c390: 90 10 00 10 mov %l0, %o0 4000c394: 40 00 18 ce call 400126cc 4000c398: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c39c: 80 a6 a0 00 cmp %i2, 0 4000c3a0: 02 80 00 04 be 4000c3b0 4000c3a4: a2 10 00 08 mov %o0, %l1 *endptr = end; 4000c3a8: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c3ac: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c3b0: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c3b4: 80 a0 40 10 cmp %g1, %l0 4000c3b8: 02 80 00 12 be 4000c400 4000c3bc: 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)) 4000c3c0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 4000c3c4: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4000c3c8: 80 a4 40 01 cmp %l1, %g1 4000c3cc: 02 80 00 05 be 4000c3e0 4000c3d0: 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)) 4000c3d4: 80 a4 40 01 cmp %l1, %g1 4000c3d8: 32 80 00 09 bne,a 4000c3fc 4000c3dc: e2 26 40 00 st %l1, [ %i1 ] 4000c3e0: 40 00 0c ba call 4000f6c8 <__errno> 4000c3e4: 01 00 00 00 nop 4000c3e8: c2 02 00 00 ld [ %o0 ], %g1 4000c3ec: 80 a0 60 22 cmp %g1, 0x22 4000c3f0: 22 80 00 04 be,a 4000c400 4000c3f4: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4000c3f8: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4000c3fc: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c400: 81 c7 e0 08 ret 4000c404: 81 e8 00 00 restore 4000c2a4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c2a4: 9d e3 bf 98 save %sp, -104, %sp 4000c2a8: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c2ac: 80 a6 60 00 cmp %i1, 0 4000c2b0: 02 80 00 2c be 4000c360 4000c2b4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c2b8: 40 00 0d 04 call 4000f6c8 <__errno> 4000c2bc: 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 ); 4000c2c0: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c2c4: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c2c8: c0 26 40 00 clr [ %i1 ] 4000c2cc: 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 ); 4000c2d0: 90 10 00 10 mov %l0, %o0 4000c2d4: 40 00 19 08 call 400126f4 4000c2d8: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c2dc: 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 ); 4000c2e0: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c2e4: 02 80 00 04 be 4000c2f4 4000c2e8: a4 10 00 09 mov %o1, %l2 *endptr = end; 4000c2ec: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c2f0: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c2f4: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c2f8: 80 a0 40 10 cmp %g1, %l0 4000c2fc: 02 80 00 19 be 4000c360 4000c300: 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)) 4000c304: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 4000c308: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4000c30c: 80 a4 40 01 cmp %l1, %g1 4000c310: 12 80 00 05 bne 4000c324 4000c314: 03 20 00 00 sethi %hi(0x80000000), %g1 4000c318: 80 a4 bf ff cmp %l2, -1 4000c31c: 02 80 00 08 be 4000c33c 4000c320: 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)) 4000c324: 80 a4 40 01 cmp %l1, %g1 4000c328: 32 80 00 0c bne,a 4000c358 4000c32c: e4 26 60 04 st %l2, [ %i1 + 4 ] 4000c330: 80 a4 a0 00 cmp %l2, 0 4000c334: 32 80 00 09 bne,a 4000c358 4000c338: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c33c: 40 00 0c e3 call 4000f6c8 <__errno> 4000c340: 01 00 00 00 nop 4000c344: c2 02 00 00 ld [ %o0 ], %g1 4000c348: 80 a0 60 22 cmp %g1, 0x22 4000c34c: 22 80 00 05 be,a 4000c360 4000c350: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 4000c354: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c358: e2 26 40 00 st %l1, [ %i1 ] 4000c35c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c360: 81 c7 e0 08 ret 4000c364: 81 e8 00 00 restore 4001d768 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4001d768: 9d e3 bf 98 save %sp, -104, %sp 4001d76c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4001d770: 80 a6 60 00 cmp %i1, 0 4001d774: 02 80 00 1e be 4001d7ec 4001d778: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4001d77c: 40 00 88 07 call 4003f798 <__errno> 4001d780: 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 ); 4001d784: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4001d788: c0 22 00 00 clr [ %o0 ] *n = 0; 4001d78c: 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 ); 4001d790: 90 10 00 10 mov %l0, %o0 4001d794: 40 00 a8 ed call 40047b48 4001d798: 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 ) 4001d79c: 80 a6 a0 00 cmp %i2, 0 4001d7a0: 02 80 00 04 be 4001d7b0 4001d7a4: a2 10 00 08 mov %o0, %l1 *endptr = end; 4001d7a8: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d7ac: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4001d7b0: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d7b4: 80 a0 40 10 cmp %g1, %l0 4001d7b8: 02 80 00 0d be 4001d7ec 4001d7bc: 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)) 4001d7c0: 80 a4 7f ff cmp %l1, -1 4001d7c4: 32 80 00 09 bne,a 4001d7e8 4001d7c8: e2 26 40 00 st %l1, [ %i1 ] 4001d7cc: 40 00 87 f3 call 4003f798 <__errno> <== NOT EXECUTED 4001d7d0: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 4001d7d4: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 4001d7d8: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 4001d7dc: 02 80 00 04 be 4001d7ec <== NOT EXECUTED 4001d7e0: 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; 4001d7e4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4001d7e8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4001d7ec: 81 c7 e0 08 ret 4001d7f0: 81 e8 00 00 restore 4000c4f8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c4f8: 9d e3 bf 98 save %sp, -104, %sp 4000c4fc: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c500: 80 a6 60 00 cmp %i1, 0 4000c504: 02 80 00 1e be 4000c57c 4000c508: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c50c: 40 00 0c 6f call 4000f6c8 <__errno> 4000c510: 01 00 00 00 nop 4000c514: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c518: 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 ); 4000c51c: 94 10 00 1b mov %i3, %o2 4000c520: 90 10 00 10 mov %l0, %o0 4000c524: 40 00 19 a0 call 40012ba4 4000c528: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c52c: 80 a6 a0 00 cmp %i2, 0 4000c530: 02 80 00 04 be 4000c540 4000c534: a2 10 00 08 mov %o0, %l1 *endptr = end; 4000c538: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c53c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c540: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c544: 80 a0 40 10 cmp %g1, %l0 4000c548: 02 80 00 0d be 4000c57c 4000c54c: 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)) 4000c550: 80 a4 7f ff cmp %l1, -1 4000c554: 32 80 00 09 bne,a 4000c578 4000c558: e2 26 40 00 st %l1, [ %i1 ] 4000c55c: 40 00 0c 5b call 4000f6c8 <__errno> 4000c560: b0 10 20 0a mov 0xa, %i0 4000c564: c2 02 00 00 ld [ %o0 ], %g1 4000c568: 80 a0 60 22 cmp %g1, 0x22 4000c56c: 02 80 00 04 be 4000c57c 4000c570: 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; 4000c574: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4000c578: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c57c: 81 c7 e0 08 ret 4000c580: 81 e8 00 00 restore 4001d858 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4001d858: 9d e3 bf 98 save %sp, -104, %sp 4001d85c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4001d860: 80 a6 60 00 cmp %i1, 0 4001d864: 02 80 00 1e be 4001d8dc 4001d868: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4001d86c: 40 00 87 cb call 4003f798 <__errno> 4001d870: 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 ); 4001d874: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4001d878: c0 22 00 00 clr [ %o0 ] *n = 0; 4001d87c: 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 ); 4001d880: 90 10 00 10 mov %l0, %o0 4001d884: 40 00 a8 b1 call 40047b48 4001d888: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4001d88c: 80 a6 a0 00 cmp %i2, 0 4001d890: 02 80 00 04 be 4001d8a0 4001d894: a2 10 00 08 mov %o0, %l1 *endptr = end; 4001d898: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d89c: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4001d8a0: c2 07 bf fc ld [ %fp + -4 ], %g1 4001d8a4: 80 a0 40 10 cmp %g1, %l0 4001d8a8: 02 80 00 0d be 4001d8dc 4001d8ac: 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)) 4001d8b0: 80 a4 7f ff cmp %l1, -1 4001d8b4: 32 80 00 09 bne,a 4001d8d8 4001d8b8: e2 26 40 00 st %l1, [ %i1 ] 4001d8bc: 40 00 87 b7 call 4003f798 <__errno> 4001d8c0: b0 10 20 0a mov 0xa, %i0 4001d8c4: c2 02 00 00 ld [ %o0 ], %g1 4001d8c8: 80 a0 60 22 cmp %g1, 0x22 4001d8cc: 02 80 00 04 be 4001d8dc 4001d8d0: 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; 4001d8d4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 4001d8d8: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4001d8dc: 81 c7 e0 08 ret 4001d8e0: 81 e8 00 00 restore 4000c584 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 4000c584: 9d e3 bf 98 save %sp, -104, %sp 4000c588: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 4000c58c: 80 a6 60 00 cmp %i1, 0 4000c590: 02 80 00 24 be 4000c620 4000c594: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 4000c598: 40 00 0c 4c call 4000f6c8 <__errno> 4000c59c: 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 ); 4000c5a0: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 4000c5a4: c0 22 00 00 clr [ %o0 ] *n = 0; 4000c5a8: c0 26 40 00 clr [ %i1 ] 4000c5ac: 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 ); 4000c5b0: 90 10 00 10 mov %l0, %o0 4000c5b4: 40 00 19 86 call 40012bcc 4000c5b8: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c5bc: 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 ); 4000c5c0: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 4000c5c4: 02 80 00 04 be 4000c5d4 4000c5c8: a4 10 00 09 mov %o1, %l2 *endptr = end; 4000c5cc: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c5d0: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 4000c5d4: c2 07 bf fc ld [ %fp + -4 ], %g1 4000c5d8: 80 a0 40 10 cmp %g1, %l0 4000c5dc: 02 80 00 11 be 4000c620 4000c5e0: 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)) 4000c5e4: 80 a4 7f ff cmp %l1, -1 4000c5e8: 32 80 00 0c bne,a 4000c618 4000c5ec: e4 26 60 04 st %l2, [ %i1 + 4 ] 4000c5f0: 80 a4 bf ff cmp %l2, -1 4000c5f4: 32 80 00 09 bne,a 4000c618 4000c5f8: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c5fc: 40 00 0c 33 call 4000f6c8 <__errno> 4000c600: b0 10 20 0a mov 0xa, %i0 4000c604: c2 02 00 00 ld [ %o0 ], %g1 4000c608: 80 a0 60 22 cmp %g1, 0x22 4000c60c: 02 80 00 05 be 4000c620 4000c610: 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; 4000c614: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 4000c618: e2 26 40 00 st %l1, [ %i1 ] 4000c61c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000c620: 81 c7 e0 08 ret 4000c624: 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 70 sethi %hi(0x4001c000), %g1 <== NOT EXECUTED 40002db4: d0 20 60 b8 st %o0, [ %g1 + 0xb8 ] ! 4001c0b8 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 40002db8: 03 10 00 70 sethi %hi(0x4001c000), %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 60 bc st %o1, [ %g1 + 0xbc ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 40002dc4: 03 10 00 70 sethi %hi(0x4001c000), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 40002dc8: 81 c3 e0 08 retl <== NOT EXECUTED 40002dcc: d4 20 60 c0 st %o2, [ %g1 + 0xc0 ] ! 4001c0c0 <== 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 72 sethi %hi(0x4001c800), %g1 40004414: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 4001c83c 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 71 sethi %hi(0x4001c400), %g1 40004454: 85 28 a0 05 sll %g2, 5, %g2 40004458: 82 10 62 70 or %g1, 0x270, %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 cc call 40005c10 <== 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 72 sethi %hi(0x4001c800), %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 40 st %g1, [ %g2 + 0x40 ] 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 72 sethi %hi(0x4001c800), %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 44 st %g1, [ %g2 + 0x44 ] 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 17 01 call 4000a1a0 400045a0: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 400045a4: 40 00 16 ff call 4000a1a0 400045a8: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 400045ac: 40 00 16 fd call 4000a1a0 400045b0: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 400045b4: 40 00 16 fb call 4000a1a0 400045b8: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 400045bc: 03 10 00 72 sethi %hi(0x4001c800), %g1 400045c0: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 4001c83c 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 02 call 40005c10 <== 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 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 40003020: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 4001c724 <== 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 71 sethi %hi(0x4001c400), %l2 <== NOT EXECUTED 40003058: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 4000305c: a4 14 a2 70 or %l2, 0x270, %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 53 91 call 40018030 <.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 53 88 call 40018030 <.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 72 sethi %hi(0x4001c800), %o4 40002d6c: c2 03 20 3c ld [ %o4 + 0x3c ], %g1 ! 4001c83c 40002d70: 80 a0 60 00 cmp %g1, 0 40002d74: 12 80 00 0d bne 40002da8 40002d78: 98 13 20 3c or %o4, 0x3c, %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 9c call 40005c10 <== 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 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 400040d0: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 400040d4: 82 10 62 70 or %g1, 0x270, %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 2b c9 call 4000f028 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 2b c5 call 4000f028 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 4e 7c call 40017c98 <.umul> <== NOT EXECUTED 400042ac: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 400042b0: 40 00 4e b4 call 40017d80 <.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 71 sethi %hi(0x4001c400), %g1 <== NOT EXECUTED 40004354: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 40004358: 82 10 62 70 or %g1, 0x270, %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 71 sethi %hi(0x4001c400), %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 70 or %g3, 0x270, %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 72 sethi %hi(0x4001c800), %g1 400045dc: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 4001c83c 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 72 sethi %hi(0x4001c800), %g1 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 400045f8: 10 80 00 0a b 40004620 400045fc: e4 00 60 44 ld [ %g1 + 0x44 ], %l2 ! 4001c844 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 70 sethi %hi(0x4001c000), %g1 40004638: c2 00 60 bc ld [ %g1 + 0xbc ], %g1 ! 4001c0bc 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 18 39 call 4000a728 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 d2 call 4000a1a0 <== NOT EXECUTED 4000465c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 40004660: 03 10 00 72 sethi %hi(0x4001c800), %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 3c ld [ %g1 + 0x3c ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 40004670: 03 10 00 70 sethi %hi(0x4001c000), %g1 40004674: c2 00 60 c0 ld [ %g1 + 0xc0 ], %g1 ! 4001c0c0 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 18 2a call 4000a728 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 70 sethi %hi(0x4001c000), %g1 400046a4: 40 00 18 21 call 4000a728 400046a8: d0 00 60 b8 ld [ %g1 + 0xb8 ], %o0 ! 4001c0b8 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 b9 call 4000a1a0 <== 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 b6 call 4000a1a0 <== NOT EXECUTED 400046cc: 01 00 00 00 nop <== NOT EXECUTED free(tty); 400046d0: 40 00 16 b4 call 4000a1a0 <== 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 72 sethi %hi(0x4001c800), %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 400046e0: 03 10 00 72 sethi %hi(0x4001c800), %g1 400046e4: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 4001c844 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 72 sethi %hi(0x4001c800), %g1 40004714: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 ! 4001c840 */ 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 72 sethi %hi(0x4001c800), %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 44 st %l1, [ %g3 + 0x44 ] rtems_termios_ttyTail = tty; 40004728: e2 20 60 40 st %l1, [ %g1 + 0x40 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 4000472c: 27 10 00 70 sethi %hi(0x4001c000), %l3 40004730: d0 4c e0 c4 ldsb [ %l3 + 0xc4 ], %o0 ! 4001c0c4 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 e0 c4 ldsb [ %l3 + 0xc4 ], %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 e0 c4 ldsb [ %l3 + 0xc4 ], %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 2a 19 call 4000f028 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 e0 c4 ldsb [ %l3 + 0xc4 ], %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 e0 c4 ldsb [ %l3 + 0xc4 ], %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 70 sethi %hi(0x4001c000), %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 70 sethi %hi(0x4001c000), %g1 <== NOT EXECUTED 4000485c: d0 48 60 c4 ldsb [ %g1 + 0xc4 ], %o0 ! 4001c0c4 <== 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 70 sethi %hi(0x4001c000), %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 60 c4 ldub [ %g1 + 0xc4 ], %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 60 c4 stb %g3, [ %g1 + 0xc4 ] c = 'a'; 40004960: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 40004964: c4 28 60 c4 stb %g2, [ %g1 + 0xc4 ] <== 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 72 sethi %hi(0x4001c800), %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 72 sethi %hi(0x4001c800), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 400049ec: 40 00 04 89 call 40005c10 <== NOT EXECUTED 400049f0: 01 00 00 00 nop <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 400049f4: 03 10 00 72 sethi %hi(0x4001c800), %g1 400049f8: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 4001c83c 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 9f call 4000a088 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 72 sethi %hi(0x4001c800), %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 53 21 call 40018030 <.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 0a call 40005c10 <== 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 71 sethi %hi(0x4001c400), %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 70 or %g2, 0x270, %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 70 sethi %hi(0x4001c000), %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 70 sethi %hi(0x4001c000), %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 e0 b8 or %l7, 0xb8, %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 50 7c call 40018030 <.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 50 73 call 40018030 <.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 54 54 call 40018030 <.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 71 sethi %hi(0x4001c400), %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 70 or %l1, 0x270, %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 71 sethi %hi(0x4001c400), %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 70 or %g1, 0x270, %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 400072c8 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 400072c8: 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) 400072cc: 2b 08 00 00 sethi %hi(0x20000000), %l5 <== NOT EXECUTED 400072d0: aa 8e 00 15 andcc %i0, %l5, %l5 <== NOT EXECUTED 400072d4: 02 80 00 11 be 40007318 <== NOT EXECUTED 400072d8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED { if (rtems_panic_in_progress++) 400072dc: 05 10 00 9f sethi %hi(0x40027c00), %g2 <== NOT EXECUTED 400072e0: c2 00 a3 70 ld [ %g2 + 0x370 ], %g1 ! 40027f70 <== NOT EXECUTED 400072e4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 400072e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400072ec: 02 80 00 06 be 40007304 <== NOT EXECUTED 400072f0: c6 20 a3 70 st %g3, [ %g2 + 0x370 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400072f4: 03 10 00 a0 sethi %hi(0x40028000), %g1 <== NOT EXECUTED 400072f8: c4 00 61 50 ld [ %g1 + 0x150 ], %g2 ! 40028150 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400072fc: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40007300: c4 20 61 50 st %g2, [ %g1 + 0x150 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 40007304: 03 10 00 9f sethi %hi(0x40027c00), %g1 <== NOT EXECUTED 40007308: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 ! 40027f70 <== NOT EXECUTED 4000730c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40007310: 34 80 00 5a bg,a 40007478 <== NOT EXECUTED 40007314: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 40007318: 03 10 00 9d sethi %hi(0x40027400), %g1 <== NOT EXECUTED 4000731c: c2 00 63 f0 ld [ %g1 + 0x3f0 ], %g1 ! 400277f0 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 40007320: 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 */ 40007324: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 40007328: 40 00 39 c0 call 40015a28 <== NOT EXECUTED 4000732c: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 40007330: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 40007334: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 40007338: 02 80 00 05 be 4000734c <== NOT EXECUTED 4000733c: a6 2c 00 13 andn %l0, %l3, %l3 <== NOT EXECUTED local_errno = errno; 40007340: 40 00 38 b1 call 40015604 <__errno> <== NOT EXECUTED 40007344: 01 00 00 00 nop <== NOT EXECUTED 40007348: 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); 4000734c: 29 10 00 9d sethi %hi(0x40027400), %l4 <== NOT EXECUTED 40007350: c2 05 23 f0 ld [ %l4 + 0x3f0 ], %g1 ! 400277f0 <_impure_ptr> <== NOT EXECUTED 40007354: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40007358: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 4000735c: 40 00 51 70 call 4001b91c <== NOT EXECUTED 40007360: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 40007364: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 40007368: 02 80 00 0c be 40007398 <== NOT EXECUTED 4000736c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 40007370: c2 05 23 f0 ld [ %l4 + 0x3f0 ], %g1 <== NOT EXECUTED 40007374: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 40007378: 7f ff ff cd call 400072ac <== NOT EXECUTED 4000737c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 40007380: 13 10 00 96 sethi %hi(0x40025800), %o1 <== NOT EXECUTED 40007384: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 40007388: 92 12 61 20 or %o1, 0x120, %o1 <== NOT EXECUTED 4000738c: 40 00 3a 7b call 40015d78 <== NOT EXECUTED 40007390: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 40007394: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED if (local_errno) 40007398: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 4000739c: 22 80 00 1c be,a 4000740c <== NOT EXECUTED 400073a0: 27 10 00 9d sethi %hi(0x40027400), %l3 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 400073a4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 400073a8: 04 80 00 11 ble 400073ec <== NOT EXECUTED 400073ac: 03 10 00 9d sethi %hi(0x40027400), %g1 <== NOT EXECUTED 400073b0: 40 00 3d c5 call 40016ac4 <== NOT EXECUTED 400073b4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 400073b8: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 400073bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400073c0: 02 80 00 0b be 400073ec <== NOT EXECUTED 400073c4: 03 10 00 9d sethi %hi(0x40027400), %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 400073c8: c2 00 63 f0 ld [ %g1 + 0x3f0 ], %g1 ! 400277f0 <_impure_ptr> <== NOT EXECUTED 400073cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 400073d0: 40 00 3d bd call 40016ac4 <== NOT EXECUTED 400073d4: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 400073d8: 13 10 00 96 sethi %hi(0x40025800), %o1 <== NOT EXECUTED 400073dc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 400073e0: 92 12 61 30 or %o1, 0x130, %o1 <== NOT EXECUTED 400073e4: 10 80 00 07 b 40007400 <== NOT EXECUTED 400073e8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 400073ec: c2 00 63 f0 ld [ %g1 + 0x3f0 ], %g1 <== NOT EXECUTED 400073f0: 13 10 00 96 sethi %hi(0x40025800), %o1 <== NOT EXECUTED 400073f4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 400073f8: 92 12 61 40 or %o1, 0x140, %o1 <== NOT EXECUTED 400073fc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 40007400: 40 00 3a 5e call 40015d78 <== NOT EXECUTED 40007404: 27 10 00 9d sethi %hi(0x40027400), %l3 <== NOT EXECUTED 40007408: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 4000740c: c2 04 e3 f0 ld [ %l3 + 0x3f0 ], %g1 <== NOT EXECUTED 40007410: 13 10 00 96 sethi %hi(0x40025800), %o1 <== NOT EXECUTED 40007414: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 40007418: 40 00 3a 58 call 40015d78 <== NOT EXECUTED 4000741c: 92 12 61 58 or %o1, 0x158, %o1 <== NOT EXECUTED (void) fflush(stderr); 40007420: c2 04 e3 f0 ld [ %l3 + 0x3f0 ], %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"); 40007424: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED (void) fflush(stderr); 40007428: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 4000742c: 40 00 39 7f call 40015a28 <== NOT EXECUTED 40007430: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 40007434: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 40007438: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 4000743c: 02 80 00 0f be 40007478 <== NOT EXECUTED 40007440: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 40007444: 22 80 00 08 be,a 40007464 <== NOT EXECUTED 40007448: 13 10 00 96 sethi %hi(0x40025800), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 4000744c: 13 10 00 96 sethi %hi(0x40025800), %o1 <== NOT EXECUTED 40007450: 90 10 20 00 clr %o0 <== NOT EXECUTED 40007454: 40 00 00 18 call 400074b4 <== NOT EXECUTED 40007458: 92 12 61 60 or %o1, 0x160, %o1 <== NOT EXECUTED _exit(local_errno); 4000745c: 40 00 02 e8 call 40007ffc <_exit> <== NOT EXECUTED 40007460: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 40007464: 90 10 20 00 clr %o0 <== NOT EXECUTED 40007468: 40 00 00 13 call 400074b4 <== NOT EXECUTED 4000746c: 92 12 61 78 or %o1, 0x178, %o1 <== NOT EXECUTED abort(); 40007470: 40 00 38 57 call 400155cc <== NOT EXECUTED 40007474: 01 00 00 00 nop <== NOT EXECUTED } } return chars_written; } 40007478: 81 c7 e0 08 ret <== NOT EXECUTED 4000747c: 81 e8 00 00 restore <== NOT EXECUTED 40026858 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 40026858: 9d e3 bf a0 save %sp, -96, %sp 4002685c: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 40026860: 2b 10 01 97 sethi %hi(0x40065c00), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 40026864: 29 10 01 97 sethi %hi(0x40065c00), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 40026868: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 4002686c: aa 15 61 68 or %l5, 0x168, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 40026870: a8 15 21 58 or %l4, 0x158, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 40026874: a2 10 20 00 clr %l1 40026878: a0 10 20 00 clr %l0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 4002687c: c2 06 20 04 ld [ %i0 + 4 ], %g1 40026880: 82 00 7f ff add %g1, -1, %g1 40026884: 80 a0 60 00 cmp %g1, 0 40026888: 16 80 00 07 bge 400268a4 4002688c: c2 26 20 04 st %g1, [ %i0 + 4 ] 40026890: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 40026894: 40 00 79 91 call 40044ed8 <__srget_r> <== NOT EXECUTED 40026898: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4002689c: 10 80 00 06 b 400268b4 <== NOT EXECUTED 400268a0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED 400268a4: c2 06 00 00 ld [ %i0 ], %g1 400268a8: 84 00 60 01 add %g1, 1, %g2 400268ac: e4 08 40 00 ldub [ %g1 ], %l2 400268b0: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') 400268b4: 80 a4 a0 3a cmp %l2, 0x3a 400268b8: 02 80 00 22 be 40026940 400268bc: 80 a4 60 00 cmp %l1, 0 break; if (sign == 0) { 400268c0: 32 80 00 09 bne,a 400268e4 400268c4: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 400268c8: 80 a4 a0 2d cmp %l2, 0x2d 400268cc: 12 80 00 05 bne 400268e0 400268d0: a2 10 20 01 mov 1, %l1 sign = -1; limit++; 400268d4: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 400268d8: 10 bf ff e9 b 4002687c <== NOT EXECUTED 400268dc: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 400268e0: c2 05 00 00 ld [ %l4 ], %g1 400268e4: 82 00 40 12 add %g1, %l2, %g1 400268e8: c2 08 60 01 ldub [ %g1 + 1 ], %g1 400268ec: 80 88 60 04 btst 4, %g1 400268f0: 02 80 00 1c be 40026960 400268f4: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 400268f8: 40 00 c5 0f call 40057d34 <.udiv> 400268fc: 92 10 20 0a mov 0xa, %o1 40026900: 80 a4 00 08 cmp %l0, %o0 40026904: 18 80 00 17 bgu 40026960 40026908: 01 00 00 00 nop 4002690c: 12 80 00 08 bne 4002692c 40026910: a4 04 bf d0 add %l2, -48, %l2 40026914: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 40026918: 40 00 c5 b3 call 40057fe4 <.urem> <== NOT EXECUTED 4002691c: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 40026920: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED 40026924: 18 80 00 0f bgu 40026960 <== NOT EXECUTED 40026928: 01 00 00 00 nop <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 4002692c: 83 2c 20 03 sll %l0, 3, %g1 40026930: a1 2c 20 01 sll %l0, 1, %l0 40026934: a0 04 00 01 add %l0, %g1, %l0 40026938: 10 bf ff d1 b 4002687c 4002693c: a0 04 80 10 add %l2, %l0, %l0 } if (sign == 0) 40026940: 02 80 00 08 be 40026960 40026944: 90 10 00 11 mov %l1, %o0 return 0; *val = i * sign; 40026948: 92 10 00 10 mov %l0, %o1 4002694c: 7f ff 72 29 call 400031f0 <.umul> 40026950: b0 10 20 01 mov 1, %i0 40026954: d0 26 40 00 st %o0, [ %i1 ] return 1; 40026958: 81 c7 e0 08 ret 4002695c: 81 e8 00 00 restore } 40026960: 81 c7 e0 08 ret <== NOT EXECUTED 40026964: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40026968 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 40026968: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 4002696c: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 40026970: 21 10 01 97 sethi %hi(0x40065c00), %l0 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 40026974: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 40026978: a0 14 21 68 or %l0, 0x168, %l0 4002697c: c2 06 20 04 ld [ %i0 + 4 ], %g1 40026980: 82 00 7f ff add %g1, -1, %g1 40026984: 80 a0 60 00 cmp %g1, 0 40026988: 16 80 00 07 bge 400269a4 4002698c: c2 26 20 04 st %g1, [ %i0 + 4 ] 40026990: d0 04 00 00 ld [ %l0 ], %o0 40026994: 40 00 79 51 call 40044ed8 <__srget_r> 40026998: 92 10 00 18 mov %i0, %o1 if (c == ':') { 4002699c: 10 80 00 07 b 400269b8 400269a0: 80 a2 20 3a cmp %o0, 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 400269a4: c2 06 00 00 ld [ %i0 ], %g1 400269a8: 84 00 60 01 add %g1, 1, %g2 400269ac: d0 08 40 00 ldub [ %g1 ], %o0 400269b0: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') { 400269b4: 80 a2 20 3a cmp %o0, 0x3a 400269b8: 12 80 00 07 bne 400269d4 400269bc: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 400269c0: 80 a7 20 00 cmp %i4, 0 400269c4: 22 80 00 1a be,a 40026a2c 400269c8: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 400269cc: 81 c7 e0 08 ret <== NOT EXECUTED 400269d0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') { if (nlFlag) return 0; break; } if (c == '\n') { 400269d4: 12 80 00 07 bne 400269f0 400269d8: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) 400269dc: 80 a7 20 00 cmp %i4, 0 400269e0: 32 80 00 13 bne,a 40026a2c 400269e4: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 400269e8: 81 c7 e0 08 ret <== NOT EXECUTED 400269ec: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == '\n') { if (!nlFlag) return 0; break; } if (c == EOF) 400269f0: 22 80 00 17 be,a 40026a4c 400269f4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (*nleft < 2) 400269f8: c2 06 c0 00 ld [ %i3 ], %g1 400269fc: 80 a0 60 01 cmp %g1, 1 40026a00: 28 80 00 13 bleu,a 40026a4c 40026a04: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; **bufp = c; 40026a08: c2 06 80 00 ld [ %i2 ], %g1 40026a0c: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 40026a10: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 40026a14: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 40026a18: 84 00 a0 01 inc %g2 --(*nleft); 40026a1c: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 40026a20: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); } 40026a24: 10 bf ff d6 b 4002697c 40026a28: c2 26 c0 00 st %g1, [ %i3 ] **bufp = '\0'; 40026a2c: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 40026a30: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 40026a34: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 40026a38: 84 00 a0 01 inc %g2 --(*nleft); 40026a3c: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 40026a40: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 40026a44: c2 26 c0 00 st %g1, [ %i3 ] 40026a48: b0 10 20 01 mov 1, %i0 return 1; } 40026a4c: 81 c7 e0 08 ret 40026a50: 81 e8 00 00 restore 40026a54 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 40026a54: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026a58: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 40026a5c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 40026a60: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026a64: a2 07 a0 4c add %fp, 0x4c, %l1 40026a68: a0 07 a0 50 add %fp, 0x50, %l0 40026a6c: 90 10 00 18 mov %i0, %o0 40026a70: 92 10 00 19 mov %i1, %o1 40026a74: 94 10 00 11 mov %l1, %o2 40026a78: 7f ff ff bc call 40026968 40026a7c: 96 10 00 10 mov %l0, %o3 40026a80: 80 a2 20 00 cmp %o0, 0 40026a84: 02 80 00 41 be 40026b88 40026a88: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 40026a8c: 92 06 60 04 add %i1, 4, %o1 40026a90: 94 10 00 11 mov %l1, %o2 40026a94: 96 10 00 10 mov %l0, %o3 40026a98: 7f ff ff b4 call 40026968 40026a9c: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026aa0: 80 a2 20 00 cmp %o0, 0 40026aa4: 02 80 00 39 be 40026b88 40026aa8: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 40026aac: 7f ff ff 6b call 40026858 40026ab0: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026ab4: 80 a2 20 00 cmp %o0, 0 40026ab8: 02 80 00 34 be 40026b88 40026abc: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 40026ac0: 94 10 00 11 mov %l1, %o2 40026ac4: 96 10 00 10 mov %l0, %o3 40026ac8: 92 07 bf f8 add %fp, -8, %o1 40026acc: 7f ff ff a7 call 40026968 40026ad0: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 40026ad4: 80 a2 20 00 cmp %o0, 0 40026ad8: 02 80 00 2c be 40026b88 40026adc: c2 07 bf fc ld [ %fp + -4 ], %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 40026ae0: 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; 40026ae4: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 40026ae8: 84 10 00 03 mov %g3, %g2 40026aec: 10 80 00 05 b 40026b00 40026af0: 82 10 20 01 mov 1, %g1 if(*cp == ',') memcount++; 40026af4: 88 19 20 2c xor %g4, 0x2c, %g4 40026af8: 80 a0 00 04 cmp %g0, %g4 40026afc: 82 60 7f ff subx %g1, -1, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 40026b00: c8 48 80 00 ldsb [ %g2 ], %g4 40026b04: 80 a1 20 00 cmp %g4, 0 40026b08: 12 bf ff fb bne 40026af4 40026b0c: 84 00 a0 01 inc %g2 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 40026b10: c4 07 a0 50 ld [ %fp + 0x50 ], %g2 40026b14: 83 28 60 02 sll %g1, 2, %g1 40026b18: 82 00 60 13 add %g1, 0x13, %g1 40026b1c: 80 a0 80 01 cmp %g2, %g1 40026b20: 0a 80 00 1a bcs 40026b88 40026b24: 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; 40026b28: 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); 40026b2c: 82 00 60 0f add %g1, 0xf, %g1 40026b30: 82 08 7f f0 and %g1, -16, %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 40026b34: 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); 40026b38: c2 26 60 0c st %g1, [ %i1 + 0xc ] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 40026b3c: 10 80 00 09 b 40026b60 40026b40: c2 07 bf f8 ld [ %fp + -8 ], %g1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 40026b44: 32 80 00 08 bne,a 40026b64 40026b48: 82 00 60 01 inc %g1 *cp = '\0'; 40026b4c: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 40026b50: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 40026b54: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 40026b58: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40026b5c: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED 40026b60: 82 00 60 01 inc %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 40026b64: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 40026b68: 80 a0 e0 00 cmp %g3, 0 40026b6c: 32 bf ff f6 bne,a 40026b44 40026b70: 80 a0 e0 2c cmp %g3, 0x2c if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 40026b74: c2 06 60 0c ld [ %i1 + 0xc ], %g1 40026b78: 85 28 a0 02 sll %g2, 2, %g2 40026b7c: c0 20 40 02 clr [ %g1 + %g2 ] return 1; 40026b80: 81 c7 e0 08 ret 40026b84: 91 e8 20 01 restore %g0, 1, %o0 } 40026b88: 81 c7 e0 08 ret <== NOT EXECUTED 40026b8c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40026bd8 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 40026bd8: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026bdc: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 40026be0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 40026be4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026be8: a2 07 a0 4c add %fp, 0x4c, %l1 40026bec: a0 07 a0 50 add %fp, 0x50, %l0 40026bf0: 90 10 00 18 mov %i0, %o0 40026bf4: 92 10 00 19 mov %i1, %o1 40026bf8: 94 10 00 11 mov %l1, %o2 40026bfc: 7f ff ff 5b call 40026968 40026c00: 96 10 00 10 mov %l0, %o3 40026c04: 80 a2 20 00 cmp %o0, 0 40026c08: 02 80 00 39 be 40026cec 40026c0c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 40026c10: 92 06 60 04 add %i1, 4, %o1 40026c14: 94 10 00 11 mov %l1, %o2 40026c18: 96 10 00 10 mov %l0, %o3 40026c1c: 7f ff ff 53 call 40026968 40026c20: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026c24: 80 a2 20 00 cmp %o0, 0 40026c28: 02 80 00 31 be 40026cec 40026c2c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 40026c30: 7f ff ff 0a call 40026858 40026c34: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026c38: 80 a2 20 00 cmp %o0, 0 40026c3c: 02 80 00 2c be 40026cec 40026c40: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 40026c44: 7f ff ff 05 call 40026858 40026c48: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026c4c: 80 a2 20 00 cmp %o0, 0 40026c50: 02 80 00 27 be 40026cec 40026c54: 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) 40026c58: 92 06 60 0c add %i1, 0xc, %o1 40026c5c: 94 10 00 11 mov %l1, %o2 40026c60: 96 10 00 10 mov %l0, %o3 40026c64: 7f ff ff 41 call 40026968 40026c68: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026c6c: 80 a2 20 00 cmp %o0, 0 40026c70: 02 80 00 1f be 40026cec 40026c74: 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) 40026c78: 92 06 60 10 add %i1, 0x10, %o1 40026c7c: 94 10 00 11 mov %l1, %o2 40026c80: 96 10 00 10 mov %l0, %o3 40026c84: 7f ff ff 39 call 40026968 40026c88: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026c8c: 80 a2 20 00 cmp %o0, 0 40026c90: 02 80 00 17 be 40026cec 40026c94: 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) 40026c98: 92 06 60 14 add %i1, 0x14, %o1 40026c9c: 94 10 00 11 mov %l1, %o2 40026ca0: 96 10 00 10 mov %l0, %o3 40026ca4: 7f ff ff 31 call 40026968 40026ca8: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026cac: 80 a2 20 00 cmp %o0, 0 40026cb0: 02 80 00 0f be 40026cec 40026cb4: 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)) 40026cb8: 94 10 00 11 mov %l1, %o2 40026cbc: 96 10 00 10 mov %l0, %o3 40026cc0: 92 06 60 18 add %i1, 0x18, %o1 40026cc4: 7f ff ff 29 call 40026968 40026cc8: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 40026ccc: 80 a2 20 00 cmp %o0, 0 40026cd0: 02 80 00 07 be 40026cec 40026cd4: 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; 40026cd8: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 40026cdc: c2 07 bf f8 ld [ %fp + -8 ], %g1 40026ce0: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 40026ce4: 81 c7 e0 08 ret 40026ce8: 91 e8 20 01 restore %g0, 1, %o0 } 40026cec: 81 c7 e0 08 ret <== NOT EXECUTED 40026cf0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 400267e4 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 400267e4: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 400267e8: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 ! 40065538 <== NOT EXECUTED 400267ec: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 400267f0: 81 c3 e0 08 retl <== NOT EXECUTED 400267f4: 90 10 20 00 clr %o0 <== NOT EXECUTED 40026e14 : return NULL; return &grent; } void setgrent(void) { 40026e14: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 40026e18: 7f ff ff c9 call 40026d3c <== NOT EXECUTED 40026e1c: 01 00 00 00 nop <== NOT EXECUTED if (group_fp != NULL) 40026e20: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 40026e24: d0 00 60 a4 ld [ %g1 + 0xa4 ], %o0 ! 400690a4 <== NOT EXECUTED 40026e28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40026e2c: 22 80 00 05 be,a 40026e40 <== NOT EXECUTED 40026e30: 11 10 01 6a sethi %hi(0x4005a800), %o0 <== NOT EXECUTED fclose(group_fp); 40026e34: 40 00 62 b1 call 4003f8f8 <== NOT EXECUTED 40026e38: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 40026e3c: 11 10 01 6a sethi %hi(0x4005a800), %o0 <== NOT EXECUTED 40026e40: 13 10 01 93 sethi %hi(0x40064c00), %o1 <== NOT EXECUTED 40026e44: 90 12 22 38 or %o0, 0x238, %o0 <== NOT EXECUTED 40026e48: 40 00 64 fb call 40040234 <== NOT EXECUTED 40026e4c: 92 12 61 20 or %o1, 0x120, %o1 <== NOT EXECUTED 40026e50: 03 10 01 a4 sethi %hi(0x40069000), %g1 <== NOT EXECUTED 40026e54: d0 20 60 a4 st %o0, [ %g1 + 0xa4 ] ! 400690a4 <== NOT EXECUTED } 40026e58: 81 c7 e0 08 ret <== NOT EXECUTED 40026e5c: 81 e8 00 00 restore <== NOT EXECUTED 40027008 : return NULL; return &pwent; } void setpwent(void) { 40027008: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 4002700c: 7f ff ff 4c call 40026d3c <== NOT EXECUTED 40027010: 01 00 00 00 nop <== NOT EXECUTED if (passwd_fp != NULL) 40027014: 03 10 01 a3 sethi %hi(0x40068c00), %g1 <== NOT EXECUTED 40027018: d0 00 63 bc ld [ %g1 + 0x3bc ], %o0 ! 40068fbc <== NOT EXECUTED 4002701c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40027020: 22 80 00 05 be,a 40027034 <== NOT EXECUTED 40027024: 11 10 01 6a sethi %hi(0x4005a800), %o0 <== NOT EXECUTED fclose(passwd_fp); 40027028: 40 00 62 34 call 4003f8f8 <== NOT EXECUTED 4002702c: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 40027030: 11 10 01 6a sethi %hi(0x4005a800), %o0 <== NOT EXECUTED 40027034: 13 10 01 93 sethi %hi(0x40064c00), %o1 <== NOT EXECUTED 40027038: 90 12 21 80 or %o0, 0x180, %o0 <== NOT EXECUTED 4002703c: 40 00 64 7e call 40040234 <== NOT EXECUTED 40027040: 92 12 61 20 or %o1, 0x120, %o1 <== NOT EXECUTED 40027044: 03 10 01 a3 sethi %hi(0x40068c00), %g1 <== NOT EXECUTED 40027048: d0 20 63 bc st %o0, [ %g1 + 0x3bc ] ! 40068fbc <== NOT EXECUTED } 4002704c: 81 c7 e0 08 ret <== NOT EXECUTED 40027050: 81 e8 00 00 restore <== NOT EXECUTED 40006dd8 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 40006dd8: 03 10 01 95 sethi %hi(0x40065400), %g1 <== NOT EXECUTED 40006ddc: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 ! 40065538 <== NOT EXECUTED 40006de0: d0 30 60 30 sth %o0, [ %g1 + 0x30 ] <== NOT EXECUTED return 0; } 40006de4: 81 c3 e0 08 retl <== NOT EXECUTED 40006de8: 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 40008410 : int _STAT_NAME( const char *path, struct stat *buf ) { 40008410: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 40008414: 80 a6 60 00 cmp %i1, 0 40008418: 12 80 00 06 bne 40008430 4000841c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 40008420: 40 00 dc de call 4003f798 <__errno> 40008424: b0 10 3f ff mov -1, %i0 ! ffffffff 40008428: 10 80 00 20 b 400084a8 4000842c: 82 10 20 0e mov 0xe, %g1 status = rtems_filesystem_evaluate_path( path, strlen( path ), 40008430: 40 00 f8 19 call 40046494 40008434: 90 10 00 18 mov %i0, %o0 40008438: a0 07 bf ec add %fp, -20, %l0 4000843c: 92 10 00 08 mov %o0, %o1 40008440: 94 10 20 00 clr %o2 40008444: 90 10 00 18 mov %i0, %o0 40008448: 96 10 00 10 mov %l0, %o3 4000844c: 98 10 20 01 mov 1, %o4 40008450: 7f ff f9 e8 call 40006bf0 40008454: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 40008458: 80 a2 20 00 cmp %o0, 0 4000845c: 12 80 00 14 bne 400084ac 40008460: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 40008464: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 40008468: 80 a0 60 00 cmp %g1, 0 4000846c: 12 80 00 12 bne 400084b4 40008470: 92 10 20 00 clr %o1 rtems_filesystem_freenode( &loc ); 40008474: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40008478: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000847c: 02 80 00 08 be 4000849c <== NOT EXECUTED 40008480: 01 00 00 00 nop <== NOT EXECUTED 40008484: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40008488: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000848c: 02 80 00 04 be 4000849c <== NOT EXECUTED 40008490: 01 00 00 00 nop <== NOT EXECUTED 40008494: 9f c0 40 00 call %g1 <== NOT EXECUTED 40008498: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000849c: 40 00 dc bf call 4003f798 <__errno> <== NOT EXECUTED 400084a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 400084a4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 400084a8: c2 22 00 00 st %g1, [ %o0 ] 400084ac: 81 c7 e0 08 ret 400084b0: 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) ); 400084b4: 94 10 20 48 mov 0x48, %o2 400084b8: 40 00 ea 1e call 40042d30 400084bc: 90 10 00 19 mov %i1, %o0 status = (*loc.handlers->fstat_h)( &loc, buf ); 400084c0: c2 07 bf f4 ld [ %fp + -12 ], %g1 400084c4: 92 10 00 19 mov %i1, %o1 400084c8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 400084cc: 9f c0 40 00 call %g1 400084d0: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 400084d4: c2 07 bf f8 ld [ %fp + -8 ], %g1 400084d8: 80 a0 60 00 cmp %g1, 0 400084dc: 02 bf ff f4 be 400084ac 400084e0: b0 10 00 08 mov %o0, %i0 400084e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 400084e8: 80 a0 60 00 cmp %g1, 0 400084ec: 02 80 00 04 be 400084fc 400084f0: 01 00 00 00 nop 400084f4: 9f c0 40 00 call %g1 400084f8: 90 10 00 10 mov %l0, %o0 return status; } 400084fc: 81 c7 e0 08 ret 40008500: 81 e8 00 00 restore 40027d98 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 40027d98: 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 ) ) 40027d9c: 40 00 79 be call 40046494 <== NOT EXECUTED 40027da0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027da4: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 40027da8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 40027dac: 94 10 20 00 clr %o2 <== NOT EXECUTED 40027db0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40027db4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 40027db8: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 40027dbc: 7f ff 7b 8d call 40006bf0 <== NOT EXECUTED 40027dc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027dc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40027dc8: 12 80 00 0b bne 40027df4 <== NOT EXECUTED 40027dcc: 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; 40027dd0: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 40027dd4: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 40027dd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027ddc: 12 80 00 08 bne 40027dfc <== NOT EXECUTED 40027de0: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027de4: 40 00 5e 6d call 4003f798 <__errno> <== NOT EXECUTED 40027de8: 01 00 00 00 nop <== NOT EXECUTED 40027dec: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 40027df0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027df4: 81 c7 e0 08 ret <== NOT EXECUTED 40027df8: 81 e8 00 00 restore <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 40027dfc: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED 40027e00: 40 00 6b cc call 40042d30 <== NOT EXECUTED 40027e04: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 40027e08: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 40027e0c: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED 40027e10: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 40027e14: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027e18: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 40027e1c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 40027e20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027e24: 02 bf ff f4 be 40027df4 <== NOT EXECUTED 40027e28: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 40027e2c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 40027e30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027e34: 02 80 00 04 be 40027e44 <== NOT EXECUTED 40027e38: 01 00 00 00 nop <== NOT EXECUTED 40027e3c: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027e40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 40027e44: 81 c7 e0 08 ret <== NOT EXECUTED 40027e48: 81 e8 00 00 restore <== NOT EXECUTED 40027e4c : int symlink( const char *actualpath, const char *sympath ) { 40027e4c: 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 ); 40027e50: c2 4e 40 00 ldsb [ %i1 ], %g1 40027e54: 80 a0 60 5c cmp %g1, 0x5c 40027e58: 02 80 00 07 be 40027e74 40027e5c: a0 10 00 18 mov %i0, %l0 40027e60: 80 a0 60 2f cmp %g1, 0x2f 40027e64: 02 80 00 04 be 40027e74 40027e68: 80 a0 60 00 cmp %g1, 0 40027e6c: 12 80 00 0a bne 40027e94 40027e70: 03 10 01 95 sethi %hi(0x40065400), %g1 40027e74: 03 10 01 95 sethi %hi(0x40065400), %g1 40027e78: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 ! 40065538 40027e7c: 90 07 bf e8 add %fp, -24, %o0 40027e80: 92 02 60 18 add %o1, 0x18, %o1 40027e84: 40 00 6b 18 call 40042ae4 40027e88: 94 10 20 14 mov 0x14, %o2 40027e8c: 10 80 00 08 b 40027eac 40027e90: 90 10 20 01 mov 1, %o0 40027e94: d2 00 61 38 ld [ %g1 + 0x138 ], %o1 40027e98: 90 07 bf e8 add %fp, -24, %o0 40027e9c: 92 02 60 04 add %o1, 4, %o1 40027ea0: 40 00 6b 11 call 40042ae4 40027ea4: 94 10 20 14 mov 0x14, %o2 40027ea8: 90 10 20 00 clr %o0 if ( !loc.ops->evalformake_h ) { 40027eac: c2 07 bf f4 ld [ %fp + -12 ], %g1 40027eb0: c2 00 60 04 ld [ %g1 + 4 ], %g1 40027eb4: 80 a0 60 00 cmp %g1, 0 40027eb8: 02 80 00 14 be 40027f08 40027ebc: 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 ); 40027ec0: 94 07 bf fc add %fp, -4, %o2 40027ec4: b2 07 bf e8 add %fp, -24, %i1 if ( result != 0 ) 40027ec8: 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 ); 40027ecc: 9f c0 40 00 call %g1 40027ed0: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) 40027ed4: 80 a2 20 00 cmp %o0, 0 40027ed8: 12 80 00 10 bne 40027f18 40027edc: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 40027ee0: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 40027ee4: 80 a0 60 00 cmp %g1, 0 40027ee8: 12 80 00 0e bne 40027f20 40027eec: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &loc ); 40027ef0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40027ef4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40027ef8: 02 80 00 04 be 40027f08 <== NOT EXECUTED 40027efc: 01 00 00 00 nop <== NOT EXECUTED 40027f00: 9f c0 40 00 call %g1 <== NOT EXECUTED 40027f04: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 40027f08: 40 00 5e 24 call 4003f798 <__errno> <== NOT EXECUTED 40027f0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40027f10: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40027f14: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40027f18: 81 c7 e0 08 ret 40027f1c: 81 e8 00 00 restore } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 40027f20: 92 10 00 10 mov %l0, %o1 40027f24: 9f c0 40 00 call %g1 40027f28: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &loc ); 40027f2c: c2 07 bf f4 ld [ %fp + -12 ], %g1 40027f30: 80 a0 60 00 cmp %g1, 0 40027f34: 02 bf ff f9 be 40027f18 40027f38: b0 10 00 08 mov %o0, %i0 40027f3c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40027f40: 80 a0 60 00 cmp %g1, 0 40027f44: 02 80 00 04 be 40027f54 40027f48: 01 00 00 00 nop 40027f4c: 9f c0 40 00 call %g1 40027f50: 90 10 00 19 mov %i1, %o0 return result; } 40027f54: 81 c7 e0 08 ret 40027f58: 81 e8 00 00 restore 40011d80 : int tcsetattr( int fd, int opt, struct termios *tp ) { 40011d80: 9d e3 bf a0 save %sp, -96, %sp switch (opt) { 40011d84: 80 a6 60 00 cmp %i1, 0 40011d88: 02 80 00 10 be 40011dc8 40011d8c: 80 a6 60 01 cmp %i1, 1 40011d90: 02 80 00 08 be 40011db0 <== NOT EXECUTED 40011d94: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 40011d98: 40 00 14 b9 call 4001707c <__errno> <== NOT EXECUTED 40011d9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40011da0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40011da4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40011da8: 81 c7 e0 08 ret <== NOT EXECUTED 40011dac: 81 e8 00 00 restore <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 40011db0: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 40011db4: 40 00 0e 70 call 40015774 <== NOT EXECUTED 40011db8: 94 10 20 00 clr %o2 <== NOT EXECUTED 40011dbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40011dc0: 26 80 00 04 bl,a 40011dd0 <== NOT EXECUTED 40011dc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 40011dc8: 40 00 0e 6b call 40015774 40011dcc: 93 e8 20 02 restore %g0, 2, %o1 } } 40011dd0: 81 c7 e0 08 ret <== NOT EXECUTED 40011dd4: 81 e8 00 00 restore <== NOT EXECUTED 4000de1c : #include int unlink( const char *path ) { 4000de1c: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 4000de20: 7f ff d0 61 call 40001fa4 4000de24: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 4000de28: a6 92 20 00 orcc %o0, 0, %l3 4000de2c: 32 80 00 17 bne,a 4000de88 4000de30: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 4000de34: c2 4e 00 00 ldsb [ %i0 ], %g1 4000de38: 80 a0 60 5c cmp %g1, 0x5c 4000de3c: 02 80 00 06 be 4000de54 4000de40: 80 a0 60 2f cmp %g1, 0x2f 4000de44: 02 80 00 04 be 4000de54 4000de48: 80 a0 60 00 cmp %g1, 0 4000de4c: 12 80 00 07 bne 4000de68 <== NOT EXECUTED 4000de50: 03 10 00 70 sethi %hi(0x4001c000), %g1 <== NOT EXECUTED 4000de54: 03 10 00 70 sethi %hi(0x4001c000), %g1 4000de58: d2 00 60 c8 ld [ %g1 + 0xc8 ], %o1 ! 4001c0c8 4000de5c: 90 07 bf ec add %fp, -20, %o0 4000de60: 10 80 00 05 b 4000de74 4000de64: 92 02 60 18 add %o1, 0x18, %o1 4000de68: d2 00 60 c8 ld [ %g1 + 0xc8 ], %o1 <== NOT EXECUTED 4000de6c: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 4000de70: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 4000de74: 94 10 20 14 mov 0x14, %o2 4000de78: 40 00 04 6c call 4000f028 4000de7c: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4000de80: 10 80 00 0b b 4000deac 4000de84: 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, 4000de88: 92 10 00 13 mov %l3, %o1 4000de8c: 94 10 20 02 mov 2, %o2 4000de90: 96 07 bf ec add %fp, -20, %o3 4000de94: 7f ff d0 92 call 400020dc 4000de98: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 4000de9c: 80 a2 20 00 cmp %o0, 0 4000dea0: 12 80 00 82 bne 4000e0a8 4000dea4: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 4000dea8: 94 10 20 14 mov 0x14, %o2 4000deac: a0 07 bf d8 add %fp, -40, %l0 4000deb0: a4 07 bf ec add %fp, -20, %l2 4000deb4: 90 10 00 10 mov %l0, %o0 4000deb8: 40 00 04 5c call 4000f028 4000debc: 92 10 00 12 mov %l2, %o1 name = path + parentpathlen; 4000dec0: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 4000dec4: 40 00 05 d5 call 4000f618 4000dec8: 90 10 00 18 mov %i0, %o0 4000decc: 92 10 00 08 mov %o0, %o1 4000ded0: 7f ff d0 23 call 40001f5c 4000ded4: 90 10 00 18 mov %i0, %o0 4000ded8: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 4000dedc: 40 00 05 cf call 4000f618 4000dee0: 90 10 00 18 mov %i0, %o0 4000dee4: 94 10 20 00 clr %o2 4000dee8: 92 10 00 08 mov %o0, %o1 4000deec: 96 10 00 10 mov %l0, %o3 4000def0: 90 10 00 18 mov %i0, %o0 4000def4: 7f ff d0 3e call 40001fec 4000def8: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 4000defc: 80 a2 20 00 cmp %o0, 0 4000df00: 02 80 00 11 be 4000df44 4000df04: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 4000df08: 80 8c 60 ff btst 0xff, %l1 4000df0c: 02 80 00 0c be 4000df3c 4000df10: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 4000df14: c2 07 bf f8 ld [ %fp + -8 ], %g1 4000df18: 80 a0 60 00 cmp %g1, 0 4000df1c: 02 80 00 64 be 4000e0ac 4000df20: 01 00 00 00 nop 4000df24: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000df28: 80 a0 60 00 cmp %g1, 0 4000df2c: 02 80 00 04 be 4000df3c 4000df30: 90 10 00 12 mov %l2, %o0 4000df34: 9f c0 40 00 call %g1 4000df38: 01 00 00 00 nop 4000df3c: 81 c7 e0 08 ret 4000df40: 81 e8 00 00 restore return -1; } if ( !loc.ops->node_type_h ) { 4000df44: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 4000df48: 80 a0 60 00 cmp %g1, 0 4000df4c: 22 80 00 26 be,a 4000dfe4 4000df50: 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 ) { 4000df54: 9f c0 40 00 call %g1 4000df58: 90 10 00 10 mov %l0, %o0 4000df5c: 80 a2 20 01 cmp %o0, 1 4000df60: 12 80 00 1c bne 4000dfd0 4000df64: c4 07 bf e4 ld [ %fp + -28 ], %g2 rtems_filesystem_freenode( &loc ); 4000df68: 80 a0 a0 00 cmp %g2, 0 4000df6c: 02 80 00 09 be 4000df90 4000df70: 80 8c 60 ff btst 0xff, %l1 4000df74: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 4000df78: 80 a0 60 00 cmp %g1, 0 4000df7c: 02 80 00 05 be 4000df90 4000df80: 80 8c 60 ff btst 0xff, %l1 4000df84: 9f c0 40 00 call %g1 4000df88: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 4000df8c: 80 8c 60 ff btst 0xff, %l1 4000df90: 02 80 00 0c be 4000dfc0 4000df94: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 4000df98: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 4000df9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000dfa0: 02 80 00 08 be 4000dfc0 <== NOT EXECUTED 4000dfa4: 01 00 00 00 nop <== NOT EXECUTED 4000dfa8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000dfac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000dfb0: 02 80 00 04 be 4000dfc0 <== NOT EXECUTED 4000dfb4: 01 00 00 00 nop <== NOT EXECUTED 4000dfb8: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000dfbc: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 4000dfc0: 40 00 01 df call 4000e73c <__errno> 4000dfc4: b0 10 3f ff mov -1, %i0 4000dfc8: 10 80 00 1b b 4000e034 4000dfcc: 82 10 20 15 mov 0x15, %g1 } if ( !loc.ops->unlink_h ) { 4000dfd0: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 4000dfd4: 80 a0 60 00 cmp %g1, 0 4000dfd8: 12 80 00 1a bne 4000e040 4000dfdc: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 4000dfe0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4000dfe4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000dfe8: 02 80 00 05 be 4000dffc <== NOT EXECUTED 4000dfec: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4000dff0: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000dff4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 4000dff8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 4000dffc: 02 80 00 0b be 4000e028 <== NOT EXECUTED 4000e000: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 4000e004: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000e008: 02 80 00 08 be 4000e028 <== NOT EXECUTED 4000e00c: 01 00 00 00 nop <== NOT EXECUTED 4000e010: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 4000e014: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000e018: 02 80 00 04 be 4000e028 <== NOT EXECUTED 4000e01c: 01 00 00 00 nop <== NOT EXECUTED 4000e020: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000e024: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4000e028: 40 00 01 c5 call 4000e73c <__errno> <== NOT EXECUTED 4000e02c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 4000e030: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 4000e034: c2 22 00 00 st %g1, [ %o0 ] 4000e038: 81 c7 e0 08 ret 4000e03c: 81 e8 00 00 restore } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 4000e040: 9f c0 40 00 call %g1 4000e044: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 4000e048: c2 07 bf e4 ld [ %fp + -28 ], %g1 4000e04c: 80 a0 60 00 cmp %g1, 0 4000e050: 02 80 00 08 be 4000e070 4000e054: b0 10 00 08 mov %o0, %i0 4000e058: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000e05c: 80 a0 60 00 cmp %g1, 0 4000e060: 02 80 00 05 be 4000e074 4000e064: 80 8c 60 ff btst 0xff, %l1 4000e068: 9f c0 40 00 call %g1 4000e06c: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 4000e070: 80 8c 60 ff btst 0xff, %l1 4000e074: 02 bf ff b2 be 4000df3c 4000e078: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 4000e07c: 80 a0 60 00 cmp %g1, 0 4000e080: 02 80 00 0b be 4000e0ac 4000e084: 01 00 00 00 nop 4000e088: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000e08c: 80 a0 60 00 cmp %g1, 0 4000e090: 02 80 00 07 be 4000e0ac 4000e094: 01 00 00 00 nop 4000e098: 9f c0 40 00 call %g1 4000e09c: 90 07 bf ec add %fp, -20, %o0 4000e0a0: 81 c7 e0 08 ret 4000e0a4: 81 e8 00 00 restore 4000e0a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 4000e0ac: 81 c7 e0 08 ret <== NOT EXECUTED 4000e0b0: 81 e8 00 00 restore <== NOT EXECUTED 4000a5d0 : */ int unmount( const char *path ) { 4000a5d0: 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 ) ) 4000a5d4: 40 00 ef b0 call 40046494 4000a5d8: 90 10 00 18 mov %i0, %o0 4000a5dc: a0 07 bf ec add %fp, -20, %l0 4000a5e0: 92 10 00 08 mov %o0, %o1 4000a5e4: 94 10 20 00 clr %o2 4000a5e8: 90 10 00 18 mov %i0, %o0 4000a5ec: 96 10 00 10 mov %l0, %o3 4000a5f0: 7f ff f1 80 call 40006bf0 4000a5f4: 98 10 20 01 mov 1, %o4 4000a5f8: 80 a2 20 00 cmp %o0, 0 4000a5fc: 12 80 00 6a bne 4000a7a4 4000a600: 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; 4000a604: c4 07 bf ec ld [ %fp + -20 ], %g2 4000a608: c6 04 60 1c ld [ %l1 + 0x1c ], %g3 4000a60c: 80 a0 c0 02 cmp %g3, %g2 4000a610: 02 80 00 0f be 4000a64c 4000a614: 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 ); 4000a618: 80 a0 60 00 cmp %g1, 0 4000a61c: 02 80 00 08 be 4000a63c 4000a620: 01 00 00 00 nop 4000a624: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000a628: 80 a0 60 00 cmp %g1, 0 4000a62c: 02 80 00 04 be 4000a63c 4000a630: 01 00 00 00 nop 4000a634: 9f c0 40 00 call %g1 4000a638: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 4000a63c: 40 00 d4 57 call 4003f798 <__errno> 4000a640: 01 00 00 00 nop 4000a644: 10 80 00 21 b 4000a6c8 4000a648: 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 ); 4000a64c: 80 a0 60 00 cmp %g1, 0 4000a650: 22 80 00 09 be,a 4000a674 4000a654: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000a658: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000a65c: 80 a0 60 00 cmp %g1, 0 4000a660: 22 80 00 05 be,a 4000a674 4000a664: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000a668: 9f c0 40 00 call %g1 4000a66c: 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; 4000a670: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 4000a674: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 4000a678: 80 a0 60 00 cmp %g1, 0 4000a67c: 02 80 00 07 be 4000a698 4000a680: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 4000a684: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 4000a688: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 4000a68c: 80 a0 60 00 cmp %g1, 0 4000a690: 32 80 00 06 bne,a 4000a6a8 4000a694: 03 10 01 95 sethi %hi(0x40065400), %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 ); 4000a698: 40 00 d4 40 call 4003f798 <__errno> <== NOT EXECUTED 4000a69c: 01 00 00 00 nop <== NOT EXECUTED 4000a6a0: 10 80 00 0a b 4000a6c8 <== NOT EXECUTED 4000a6a4: 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 ) 4000a6a8: c2 00 61 38 ld [ %g1 + 0x138 ], %g1 4000a6ac: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 4000a6b0: 80 a0 40 11 cmp %g1, %l1 4000a6b4: 12 80 00 08 bne 4000a6d4 4000a6b8: 03 10 01 a4 sethi %hi(0x40069000), %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 4000a6bc: 40 00 d4 37 call 4003f798 <__errno> 4000a6c0: 01 00 00 00 nop 4000a6c4: 82 10 20 10 mov 0x10, %g1 ! 10 4000a6c8: c2 22 00 00 st %g1, [ %o0 ] 4000a6cc: 81 c7 e0 08 ret 4000a6d0: 91 e8 3f ff restore %g0, -1, %o0 4000a6d4: 05 10 01 a4 sethi %hi(0x40069000), %g2 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 4000a6d8: c2 00 62 f0 ld [ %g1 + 0x2f0 ], %g1 4000a6dc: 10 80 00 07 b 4000a6f8 4000a6e0: 84 10 a2 f4 or %g2, 0x2f4, %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; 4000a6e4: c6 04 60 2c ld [ %l1 + 0x2c ], %g3 4000a6e8: 80 a1 00 03 cmp %g4, %g3 4000a6ec: 02 bf ff f4 be 4000a6bc 4000a6f0: 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 ) { 4000a6f4: c2 00 40 00 ld [ %g1 ], %g1 4000a6f8: 80 a0 40 02 cmp %g1, %g2 4000a6fc: 32 bf ff fa bne,a 4000a6e4 4000a700: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 4000a704: 30 80 00 2a b,a 4000a7ac * 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 ) 4000a708: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 4000a70c: 9f c0 40 00 call %g1 4000a710: 90 10 00 11 mov %l1, %o0 4000a714: 80 a2 20 00 cmp %o0, 0 4000a718: 12 80 00 23 bne 4000a7a4 4000a71c: 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){ 4000a720: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 4000a724: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 4000a728: 9f c0 40 00 call %g1 4000a72c: 90 10 00 11 mov %l1, %o0 4000a730: 80 a2 20 00 cmp %o0, 0 4000a734: 02 80 00 0b be 4000a760 4000a738: 01 00 00 00 nop if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 4000a73c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 4000a740: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 4000a744: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a748: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a74c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000a750: 02 80 00 15 be 4000a7a4 <== NOT EXECUTED 4000a754: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 4000a758: 40 00 04 f2 call 4000bb20 <== NOT EXECUTED 4000a75c: 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 ); 4000a760: 40 00 05 d7 call 4000bebc <_Chain_Extract> 4000a764: 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 ); 4000a768: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 4000a76c: 80 a0 60 00 cmp %g1, 0 4000a770: 02 80 00 09 be 4000a794 4000a774: 90 10 00 11 mov %l1, %o0 4000a778: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 4000a77c: 80 a0 60 00 cmp %g1, 0 4000a780: 02 80 00 05 be 4000a794 4000a784: 01 00 00 00 nop 4000a788: 9f c0 40 00 call %g1 4000a78c: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 4000a790: 90 10 00 11 mov %l1, %o0 4000a794: 7f ff f1 40 call 40006c94 4000a798: b0 10 20 00 clr %i0 return 0; 4000a79c: 81 c7 e0 08 ret 4000a7a0: 81 e8 00 00 restore } 4000a7a4: 81 c7 e0 08 ret 4000a7a8: 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 ) 4000a7ac: 7f ff f1 f4 call 40006f7c 4000a7b0: 90 10 00 11 mov %l1, %o0 4000a7b4: 80 a2 20 01 cmp %o0, 1 4000a7b8: 32 bf ff d4 bne,a 4000a708 4000a7bc: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 4000a7c0: 30 bf ff bf b,a 4000a6bc 40027ffc : int utime( const char *path, const struct utimbuf *times ) { 40027ffc: 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 ) ) 40028000: 40 00 79 25 call 40046494 40028004: 90 10 00 18 mov %i0, %o0 40028008: a0 07 bf ec add %fp, -20, %l0 4002800c: 92 10 00 08 mov %o0, %o1 40028010: 94 10 20 00 clr %o2 40028014: 90 10 00 18 mov %i0, %o0 40028018: 96 10 00 10 mov %l0, %o3 4002801c: 98 10 20 01 mov 1, %o4 40028020: 7f ff 7a f4 call 40006bf0 40028024: b0 10 3f ff mov -1, %i0 40028028: 80 a2 20 00 cmp %o0, 0 4002802c: 12 80 00 10 bne 4002806c 40028030: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 40028034: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 40028038: 80 a0 60 00 cmp %g1, 0 4002803c: 32 80 00 0e bne,a 40028074 40028040: d4 06 60 04 ld [ %i1 + 4 ], %o2 rtems_filesystem_freenode( &temp_loc ); 40028044: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40028048: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4002804c: 02 80 00 04 be 4002805c <== NOT EXECUTED 40028050: 01 00 00 00 nop <== NOT EXECUTED 40028054: 9f c0 40 00 call %g1 <== NOT EXECUTED 40028058: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 4002805c: 40 00 5d cf call 4003f798 <__errno> <== NOT EXECUTED 40028060: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40028064: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 40028068: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4002806c: 81 c7 e0 08 ret 40028070: 81 e8 00 00 restore } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 40028074: d2 06 40 00 ld [ %i1 ], %o1 40028078: 9f c0 40 00 call %g1 4002807c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 40028080: c2 07 bf f8 ld [ %fp + -8 ], %g1 40028084: 80 a0 60 00 cmp %g1, 0 40028088: 02 bf ff f9 be 4002806c 4002808c: b0 10 00 08 mov %o0, %i0 40028090: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 40028094: 80 a0 60 00 cmp %g1, 0 40028098: 02 80 00 04 be 400280a8 4002809c: 01 00 00 00 nop 400280a0: 9f c0 40 00 call %g1 400280a4: 90 10 00 10 mov %l0, %o0 return result; } 400280a8: 81 c7 e0 08 ret 400280ac: 81 e8 00 00 restore 4001a614 : ssize_t write( int fd, const void *buffer, size_t count ) { 4001a614: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 4001a618: 03 10 00 6f sethi %hi(0x4001bc00), %g1 4001a61c: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 4001bfb4 ssize_t write( int fd, const void *buffer, size_t count ) { 4001a620: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 4001a624: 80 a6 00 01 cmp %i0, %g1 4001a628: 1a 80 00 0c bcc 4001a658 4001a62c: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 4001a630: 03 10 00 71 sethi %hi(0x4001c400), %g1 4001a634: e0 00 63 f4 ld [ %g1 + 0x3f4 ], %l0 ! 4001c7f4 4001a638: 83 2e 20 06 sll %i0, 6, %g1 4001a63c: b1 2e 20 03 sll %i0, 3, %i0 4001a640: b0 06 00 01 add %i0, %g1, %i0 4001a644: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 4001a648: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 4001a64c: 80 88 61 00 btst 0x100, %g1 4001a650: 12 80 00 06 bne 4001a668 4001a654: 80 a6 60 00 cmp %i1, 0 4001a658: 7f ff d0 39 call 4000e73c <__errno> <== NOT EXECUTED 4001a65c: 01 00 00 00 nop <== NOT EXECUTED 4001a660: 10 80 00 14 b 4001a6b0 <== NOT EXECUTED 4001a664: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 4001a668: 02 80 00 07 be 4001a684 4001a66c: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 4001a670: 02 80 00 1c be 4001a6e0 4001a674: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 4001a678: 80 88 60 04 btst 4, %g1 4001a67c: 32 80 00 06 bne,a 4001a694 4001a680: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 4001a684: 7f ff d0 2e call 4000e73c <__errno> <== NOT EXECUTED 4001a688: 01 00 00 00 nop <== NOT EXECUTED 4001a68c: 10 80 00 09 b 4001a6b0 <== NOT EXECUTED 4001a690: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 4001a694: c2 00 60 0c ld [ %g1 + 0xc ], %g1 4001a698: 80 a0 60 00 cmp %g1, 0 4001a69c: 12 80 00 08 bne 4001a6bc 4001a6a0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 4001a6a4: 7f ff d0 26 call 4000e73c <__errno> <== NOT EXECUTED 4001a6a8: 01 00 00 00 nop <== NOT EXECUTED 4001a6ac: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 4001a6b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 4001a6b4: 10 80 00 0b b 4001a6e0 <== NOT EXECUTED 4001a6b8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 4001a6bc: 9f c0 40 00 call %g1 4001a6c0: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 4001a6c4: 80 a2 20 00 cmp %o0, 0 4001a6c8: 04 80 00 06 ble 4001a6e0 4001a6cc: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 4001a6d0: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 4001a6d4: 86 83 40 08 addcc %o5, %o0, %g3 4001a6d8: 84 43 00 02 addx %o4, %g2, %g2 4001a6dc: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 4001a6e0: 81 c7 e0 08 ret 4001a6e4: 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 82 sethi %hi(0x40020800), %g1 40006840: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 ! 40020b74 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 86 sethi %hi(0x40021800), %g1 40006854: e4 00 63 8c ld [ %g1 + 0x38c ], %l2 ! 40021b8c 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 29 87 call 40010e94 <__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 29 76 call 40010e94 <__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 29 69 call 40010e94 <__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