0200c558 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200c558: 9d e3 bf a0 save %sp, -96, %sp 200c55c: 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 ) 200c560: 80 a6 20 00 cmp %i0, 0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 200c564: 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 ) 200c568: 02 80 00 40 be 200c668 200c56c: 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 ); 200c570: 03 00 80 65 sethi %hi(0x2019400), %g1 200c574: c2 00 60 84 ld [ %g1 + 0x84 ], %g1 ! 2019484 200c578: 90 10 00 19 mov %i1, %o0 200c57c: d4 10 60 2c lduh [ %g1 + 0x2c ], %o2 200c580: b6 2e c0 0a andn %i3, %o2, %i3 200c584: 95 2e e0 10 sll %i3, 0x10, %o2 200c588: 7f ff ff ca call 200c4b0 200c58c: 95 32 a0 10 srl %o2, 0x10, %o2 if ( !node ) 200c590: b0 92 20 00 orcc %o0, 0, %i0 200c594: 02 80 00 35 be 200c668 200c598: b2 06 7f ff add %i1, -1, %i1 return NULL; /* * Set the type specific information */ switch (type) { 200c59c: 80 a6 60 06 cmp %i1, 6 200c5a0: 38 80 00 20 bgu,a 200c620 200c5a4: 11 00 80 62 sethi %hi(0x2018800), %o0 <== NOT EXECUTED 200c5a8: b3 2e 60 02 sll %i1, 2, %i1 200c5ac: 03 00 80 31 sethi %hi(0x200c400), %g1 200c5b0: 82 10 60 94 or %g1, 0x94, %g1 ! 200c494 200c5b4: c2 00 40 19 ld [ %g1 + %i1 ], %g1 200c5b8: 81 c0 40 00 jmp %g1 200c5bc: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 200c5c0: 82 06 20 54 add %i0, 0x54, %g1 the_chain->permanent_null = NULL; 200c5c4: 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); 200c5c8: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 200c5cc: 82 06 20 50 add %i0, 0x50, %g1 200c5d0: 10 80 00 1b b 200c63c 200c5d4: 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; 200c5d8: 10 80 00 05 b 200c5ec 200c5dc: 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; 200c5e0: 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; 200c5e4: c2 07 00 00 ld [ %i4 ], %g1 node->info.device.minor = info->device.minor; 200c5e8: c4 26 20 54 st %g2, [ %i0 + 0x54 ] break; 200c5ec: 10 80 00 14 b 200c63c 200c5f0: c2 26 20 50 st %g1, [ %i0 + 0x50 ] case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 200c5f4: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED 200c5f8: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED node->info.linearfile.direct = 0; 200c5fc: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 200c600: c0 26 20 50 clr [ %i0 + 0x50 ] 200c604: c0 26 20 54 clr [ %i0 + 0x54 ] node->info.file.indirect = 0; 200c608: c0 26 20 58 clr [ %i0 + 0x58 ] node->info.file.doubly_indirect = 0; 200c60c: c0 26 20 5c clr [ %i0 + 0x5c ] node->info.file.triply_indirect = 0; break; 200c610: 10 80 00 0b b 200c63c 200c614: c0 26 20 60 clr [ %i0 + 0x60 ] case IMFS_FIFO: node->info.fifo.pipe = NULL; break; 200c618: 10 80 00 09 b 200c63c 200c61c: c0 26 20 50 clr [ %i0 + 0x50 ] default: assert(0); 200c620: 15 00 80 62 sethi %hi(0x2018800), %o2 <== NOT EXECUTED 200c624: 17 00 80 62 sethi %hi(0x2018800), %o3 <== NOT EXECUTED 200c628: 90 12 23 40 or %o0, 0x340, %o0 <== NOT EXECUTED 200c62c: 94 12 a3 98 or %o2, 0x398, %o2 <== NOT EXECUTED 200c630: 96 12 e3 90 or %o3, 0x390, %o3 <== NOT EXECUTED 200c634: 7f ff d6 0d call 2001e68 <__assert_func> <== NOT EXECUTED 200c638: 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; 200c63c: 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; 200c640: d0 04 00 00 ld [ %l0 ], %o0 fs_info = parent_loc->mt_entry->fs_info; 200c644: c4 00 60 34 ld [ %g1 + 0x34 ], %g2 node->Parent = parent; 200c648: d0 26 20 08 st %o0, [ %i0 + 8 ] node->st_ino = ++fs_info->ino_count; 200c64c: 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 ); 200c650: 90 02 20 50 add %o0, 0x50, %o0 200c654: 82 00 60 01 inc %g1 200c658: c2 20 80 00 st %g1, [ %g2 ] 200c65c: c2 26 20 34 st %g1, [ %i0 + 0x34 ] 200c660: 7f ff e6 43 call 2005f6c <_Chain_Append> 200c664: 92 10 00 18 mov %i0, %o1 rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 200c668: 81 c7 e0 08 ret 200c66c: 81 e8 00 00 restore 02003b38 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 2003b38: 9d e3 bf a0 save %sp, -96, %sp rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 2003b3c: 80 a6 20 00 cmp %i0, 0 2003b40: 12 80 00 0a bne 2003b68 2003b44: 80 a6 60 00 cmp %i1, 0 2003b48: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003b4c: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2003b50: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2003b54: 90 12 21 48 or %o0, 0x148, %o0 <== NOT EXECUTED 2003b58: 94 12 a3 20 or %o2, 0x320, %o2 <== NOT EXECUTED 2003b5c: 96 12 e2 28 or %o3, 0x228, %o3 <== NOT EXECUTED 2003b60: 10 80 00 0b b 2003b8c <== NOT EXECUTED 2003b64: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED assert( level >= 0 ); 2003b68: 36 80 00 0b bge,a 2003b94 2003b6c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2003b70: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003b74: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2003b78: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2003b7c: 90 12 21 48 or %o0, 0x148, %o0 <== NOT EXECUTED 2003b80: 94 12 a3 20 or %o2, 0x320, %o2 <== NOT EXECUTED 2003b84: 96 12 e2 38 or %o3, 0x238, %o3 <== NOT EXECUTED 2003b88: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED 2003b8c: 40 00 01 e8 call 200432c <__assert_func> <== NOT EXECUTED 2003b90: 01 00 00 00 nop <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 2003b94: 80 a0 60 01 cmp %g1, 1 2003b98: 02 80 00 0a be 2003bc0 2003b9c: 29 00 80 8d sethi %hi(0x2023400), %l4 2003ba0: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003ba4: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2003ba8: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2003bac: 90 12 21 48 or %o0, 0x148, %o0 <== NOT EXECUTED 2003bb0: 94 12 a3 20 or %o2, 0x320, %o2 <== NOT EXECUTED 2003bb4: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED 2003bb8: 10 bf ff f5 b 2003b8c <== NOT EXECUTED 2003bbc: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2003bc0: 27 00 80 86 sethi %hi(0x2021800), %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2003bc4: aa 06 20 54 add %i0, 0x54, %l5 2003bc8: a8 15 20 a8 or %l4, 0xa8, %l4 2003bcc: a6 14 e2 70 or %l3, 0x270, %l3 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2003bd0: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 2003bd4: 10 80 00 14 b 2003c24 2003bd8: a4 06 60 01 add %i1, 1, %l2 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 2003bdc: c2 05 00 00 ld [ %l4 ], %g1 2003be0: 90 10 00 13 mov %l3, %o0 2003be4: d2 00 60 08 ld [ %g1 + 8 ], %o1 2003be8: 40 00 39 aa call 2012290 2003bec: a2 04 60 01 inc %l1 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) 2003bf0: 80 a4 40 19 cmp %l1, %i1 2003bf4: 24 bf ff fb ble,a 2003be0 2003bf8: c2 05 00 00 ld [ %l4 ], %g1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 2003bfc: 7f ff ff 71 call 20039c0 2003c00: 90 10 00 10 mov %l0, %o0 if ( the_jnode->type == IMFS_DIRECTORY ) 2003c04: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003c08: 80 a0 60 01 cmp %g1, 1 2003c0c: 32 80 00 06 bne,a 2003c24 2003c10: e0 04 00 00 ld [ %l0 ], %l0 IMFS_dump_directory( the_jnode, level + 1 ); 2003c14: 90 10 00 10 mov %l0, %o0 2003c18: 7f ff ff c8 call 2003b38 2003c1c: 92 10 00 12 mov %l2, %o1 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 2003c20: e0 04 00 00 ld [ %l0 ], %l0 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 2003c24: 80 a4 00 15 cmp %l0, %l5 2003c28: 12 bf ff ed bne 2003bdc 2003c2c: a2 10 20 00 clr %l1 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 2003c30: 81 c7 e0 08 ret 2003c34: 81 e8 00 00 restore 02009438 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009438: 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 ) 200943c: 2b 00 80 65 sethi %hi(0x2019400), %l5 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009440: 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 ) 2009444: aa 15 60 84 or %l5, 0x84, %l5 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 2009448: e2 06 c0 00 ld [ %i3 ], %l1 200944c: ae 10 20 01 mov 1, %l7 2009450: 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 ); 2009454: 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) ) { 2009458: 10 80 00 6c b 2009608 200945c: a8 07 bf fc add %fp, -4, %l4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 2009460: 90 04 00 12 add %l0, %l2, %o0 2009464: 92 10 00 19 mov %i1, %o1 2009468: 94 10 00 13 mov %l3, %o2 200946c: 40 00 02 3f call 2009d68 2009470: 96 10 00 14 mov %l4, %o3 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 2009474: 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 ); 2009478: ae 10 00 08 mov %o0, %l7 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 200947c: 80 a0 60 00 cmp %g1, 0 2009480: 02 80 00 5a be 20095e8 2009484: ec 07 bf fc ld [ %fp + -4 ], %l6 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 2009488: 80 a2 20 00 cmp %o0, 0 200948c: 02 80 00 0a be 20094b4 2009490: b2 26 40 16 sub %i1, %l6, %i1 if ( node->type == IMFS_DIRECTORY ) 2009494: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 2009498: 80 a0 a0 01 cmp %g2, 1 200949c: 12 80 00 06 bne 20094b4 20094a0: 01 00 00 00 nop /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 20094a4: c4 10 60 2e lduh [ %g1 + 0x2e ], %g2 20094a8: 80 88 a0 40 btst 0x40, %g2 20094ac: 02 80 00 84 be 20096bc 20094b0: 01 00 00 00 nop while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 20094b4: a4 04 80 16 add %l2, %l6, %l2 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 20094b8: 80 a5 e0 03 cmp %l7, 3 20094bc: 02 80 00 27 be 2009558 20094c0: a2 10 00 01 mov %g1, %l1 20094c4: 80 a5 e0 04 cmp %l7, 4 20094c8: 02 80 00 4c be 20095f8 20094cc: 80 a5 e0 02 cmp %l7, 2 20094d0: 12 80 00 4f bne 200960c 20094d4: 80 a5 e0 04 cmp %l7, 4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 20094d8: c4 05 40 00 ld [ %l5 ], %g2 20094dc: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 20094e0: 80 a0 40 02 cmp %g1, %g2 20094e4: 02 bf ff e0 be 2009464 20094e8: 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) { 20094ec: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 20094f0: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 20094f4: 80 a0 40 02 cmp %g1, %g2 20094f8: 32 80 00 11 bne,a 200953c 20094fc: e2 00 60 08 ld [ %g1 + 8 ], %l1 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 2009500: 92 02 60 08 add %o1, 8, %o1 2009504: a2 07 bf e8 add %fp, -24, %l1 2009508: 94 10 20 14 mov 0x14, %o2 200950c: 40 00 12 17 call 200dd68 2009510: 90 10 00 11 mov %l1, %o0 *pathloc = newloc; 2009514: 92 10 00 11 mov %l1, %o1 2009518: 90 10 00 1b mov %i3, %o0 200951c: 40 00 12 13 call 200dd68 2009520: 94 10 20 14 mov 0x14, %o2 return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 2009524: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 2009528: a4 24 80 16 sub %l2, %l6, %l2 200952c: 92 06 40 16 add %i1, %l6, %o1 2009530: c2 00 40 00 ld [ %g1 ], %g1 2009534: 10 80 00 51 b 2009678 2009538: 90 04 00 12 add %l0, %l2, %o0 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 200953c: 80 a4 60 00 cmp %l1, 0 2009540: 32 bf ff c8 bne,a 2009460 2009544: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 2009548: 40 00 0f cd call 200d47c <__errno> 200954c: 01 00 00 00 nop 2009550: 10 80 00 5f b 20096cc 2009554: ee 22 00 00 st %l7, [ %o0 ] case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 2009558: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 200955c: 80 a0 60 03 cmp %g1, 3 2009560: 12 80 00 0a bne 2009588 2009564: 80 a0 60 04 cmp %g1, 4 IMFS_evaluate_hard_link( pathloc, 0 ); 2009568: 90 10 00 1b mov %i3, %o0 200956c: 7f ff ff 60 call 20092ec 2009570: 92 10 20 00 clr %o1 node = pathloc->node_access; 2009574: e2 06 c0 00 ld [ %i3 ], %l1 if ( !node ) 2009578: 80 a4 60 00 cmp %l1, 0 200957c: 32 80 00 0c bne,a 20095ac 2009580: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2009584: 30 80 00 0d b,a 20095b8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 2009588: 32 80 00 09 bne,a 20095ac 200958c: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 result = IMFS_evaluate_sym_link( pathloc, 0 ); 2009590: 90 10 00 1b mov %i3, %o0 2009594: 7f ff ff 70 call 2009354 2009598: 92 10 20 00 clr %o1 node = pathloc->node_access; if ( result == -1 ) 200959c: 80 a2 3f ff cmp %o0, -1 20095a0: 02 80 00 44 be 20096b0 20095a4: e2 06 c0 00 ld [ %i3 ], %l1 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 20095a8: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 20095ac: 80 a0 60 01 cmp %g1, 1 20095b0: 22 80 00 06 be,a 20095c8 20095b4: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 20095b8: 40 00 0f b1 call 200d47c <__errno> 20095bc: 01 00 00 00 nop 20095c0: 10 80 00 42 b 20096c8 20095c4: 82 10 20 14 mov 0x14, %g1 ! 14 /* * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { 20095c8: 80 a2 60 00 cmp %o1, 0 20095cc: 12 80 00 1c bne 200963c 20095d0: 90 10 00 11 mov %l1, %o0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 20095d4: 40 00 01 ba call 2009cbc 20095d8: 92 10 00 13 mov %l3, %o1 if ( !node ) 20095dc: a2 92 20 00 orcc %o0, 0, %l1 20095e0: 32 bf ff a0 bne,a 2009460 20095e4: e2 26 c0 00 st %l1, [ %i3 ] rtems_set_errno_and_return_minus_one( ENOENT ); 20095e8: 40 00 0f a5 call 200d47c <__errno> 20095ec: 01 00 00 00 nop 20095f0: 10 80 00 36 b 20096c8 20095f4: 82 10 20 02 mov 2, %g1 ! 2 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 20095f8: 40 00 0f a1 call 200d47c <__errno> 20095fc: 01 00 00 00 nop 2009600: 10 80 00 32 b 20096c8 2009604: 82 10 20 5b mov 0x5b, %g1 ! 5b /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 2009608: 80 a5 e0 04 cmp %l7, 4 200960c: 02 80 00 04 be 200961c 2009610: 80 a5 e0 00 cmp %l7, 0 2009614: 12 bf ff 94 bne 2009464 2009618: 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 ) { 200961c: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2009620: 80 a0 60 01 cmp %g1, 1 2009624: 12 80 00 1a bne 200968c 2009628: 01 00 00 00 nop if ( node->info.directory.mt_fs != NULL ) { 200962c: d2 04 60 5c ld [ %l1 + 0x5c ], %o1 2009630: 80 a2 60 00 cmp %o1, 0 2009634: 02 80 00 16 be 200968c 2009638: 01 00 00 00 nop newloc = node->info.directory.mt_fs->mt_fs_root; 200963c: 92 02 60 1c add %o1, 0x1c, %o1 2009640: a2 07 bf e8 add %fp, -24, %l1 2009644: 94 10 20 14 mov 0x14, %o2 2009648: 40 00 11 c8 call 200dd68 200964c: 90 10 00 11 mov %l1, %o0 *pathloc = newloc; 2009650: 92 10 00 11 mov %l1, %o1 2009654: 90 10 00 1b mov %i3, %o0 2009658: 40 00 11 c4 call 200dd68 200965c: 94 10 20 14 mov 0x14, %o2 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 2009660: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 2009664: d0 07 bf fc ld [ %fp + -4 ], %o0 2009668: c2 00 40 00 ld [ %g1 ], %g1 200966c: 92 06 40 08 add %i1, %o0, %o1 2009670: 90 24 80 08 sub %l2, %o0, %o0 2009674: 90 04 00 08 add %l0, %o0, %o0 2009678: 94 10 00 1a mov %i2, %o2 200967c: 9f c0 40 00 call %g1 2009680: 96 10 00 1b mov %i3, %o3 2009684: 81 c7 e0 08 ret 2009688: 91 e8 00 08 restore %g0, %o0, %o0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 200968c: 7f ff fe f5 call 2009260 2009690: 90 10 00 1b mov %i3, %o0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 2009694: c2 06 c0 00 ld [ %i3 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009698: b5 2e a0 06 sll %i2, 6, %i2 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 200969c: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 20096a0: 82 0e 80 01 and %i2, %g1, %g1 20096a4: 80 a0 40 1a cmp %g1, %i2 20096a8: 12 80 00 05 bne 20096bc 20096ac: 01 00 00 00 nop if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 20096b0: b0 10 00 08 mov %o0, %i0 20096b4: 81 c7 e0 08 ret 20096b8: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 20096bc: 40 00 0f 70 call 200d47c <__errno> 20096c0: 01 00 00 00 nop 20096c4: 82 10 20 0d mov 0xd, %g1 ! d 20096c8: c2 22 00 00 st %g1, [ %o0 ] 20096cc: 10 bf ff f9 b 20096b0 20096d0: 90 10 3f ff mov -1, %o0 020092ec : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 20092ec: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 20092f0: c2 06 00 00 ld [ %i0 ], %g1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 20092f4: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 20092f8: 80 a0 a0 03 cmp %g2, 3 20092fc: 22 80 00 04 be,a 200930c 2009300: c2 00 60 50 ld [ %g1 + 0x50 ], %g1 rtems_fatal_error_occurred (0xABCD0000); 2009304: 7f ff f2 5a call 2005c6c <== NOT EXECUTED 2009308: 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 ); 200930c: 90 10 00 18 mov %i0, %o0 2009310: 7f ff ff d4 call 2009260 2009314: c2 26 00 00 st %g1, [ %i0 ] if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 2009318: c2 06 00 00 ld [ %i0 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 200931c: b3 2e 60 06 sll %i1, 6, %i1 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 2009320: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 2009324: 82 0e 40 01 and %i1, %g1, %g1 2009328: 80 a0 40 19 cmp %g1, %i1 200932c: 12 80 00 04 bne 200933c 2009330: 01 00 00 00 nop if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009334: 81 c7 e0 08 ret 2009338: 91 e8 20 00 restore %g0, 0, %o0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 200933c: 40 00 10 50 call 200d47c <__errno> <== NOT EXECUTED 2009340: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009344: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 2009348: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200934c: 81 c7 e0 08 ret <== NOT EXECUTED 2009350: 81 e8 00 00 restore <== NOT EXECUTED 020092d0 : */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 20092d0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 20092d4: 93 2a 60 06 sll %o1, 6, %o1 <== NOT EXECUTED 20092d8: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 <== NOT EXECUTED 20092dc: 82 2a 40 01 andn %o1, %g1, %g1 <== NOT EXECUTED */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 20092e0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 20092e4: 81 c3 e0 08 retl <== NOT EXECUTED 20092e8: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02009354 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 2009354: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *jnode = node->node_access; 2009358: e2 06 00 00 ld [ %i0 ], %l1 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 200935c: a0 10 00 18 mov %i0, %l0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 2009360: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 2009364: 80 a0 60 04 cmp %g1, 4 2009368: 12 80 00 07 bne 2009384 200936c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 2009370: c2 04 60 08 ld [ %l1 + 8 ], %g1 2009374: 80 a0 60 00 cmp %g1, 0 2009378: 32 80 00 05 bne,a 200938c 200937c: c2 26 00 00 st %g1, [ %i0 ] rtems_fatal_error_occurred( 0xBAD00000 ); 2009380: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED 2009384: 7f ff f2 3a call 2005c6c <== NOT EXECUTED 2009388: 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( 200938c: c2 04 60 50 ld [ %l1 + 0x50 ], %g1 2009390: c2 48 40 00 ldsb [ %g1 ], %g1 2009394: 80 a0 60 5c cmp %g1, 0x5c 2009398: 02 80 00 06 be 20093b0 200939c: 80 a0 60 2f cmp %g1, 0x2f 20093a0: 02 80 00 04 be 20093b0 20093a4: 80 a0 60 00 cmp %g1, 0 20093a8: 12 80 00 09 bne 20093cc 20093ac: 82 10 20 00 clr %g1 20093b0: 03 00 80 65 sethi %hi(0x2019400), %g1 20093b4: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 ! 2019484 20093b8: 90 10 00 10 mov %l0, %o0 20093bc: 92 02 60 18 add %o1, 0x18, %o1 20093c0: 40 00 12 6a call 200dd68 20093c4: 94 10 20 14 mov 0x14, %o2 20093c8: 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] ), 20093cc: e2 04 60 50 ld [ %l1 + 0x50 ], %l1 20093d0: a2 04 40 01 add %l1, %g1, %l1 20093d4: 40 00 13 e1 call 200e358 20093d8: 90 10 00 11 mov %l1, %o0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 20093dc: 94 10 00 19 mov %i1, %o2 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 20093e0: 92 10 00 08 mov %o0, %o1 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 20093e4: 96 10 00 10 mov %l0, %o3 20093e8: 40 00 00 14 call 2009438 20093ec: 90 10 00 11 mov %l1, %o0 20093f0: b0 10 00 08 mov %o0, %i0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 20093f4: 7f ff ff 9b call 2009260 20093f8: 90 10 00 10 mov %l0, %o0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 20093fc: c2 04 00 00 ld [ %l0 ], %g1 */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 2009400: b3 2e 60 06 sll %i1, 6, %i1 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 2009404: c2 10 60 2e lduh [ %g1 + 0x2e ], %g1 2009408: 82 0e 40 01 and %i1, %g1, %g1 200940c: 80 a0 40 19 cmp %g1, %i1 2009410: 12 80 00 04 bne 2009420 2009414: 01 00 00 00 nop if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 2009418: 81 c7 e0 08 ret 200941c: 81 e8 00 00 restore /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 2009420: 40 00 10 17 call 200d47c <__errno> <== NOT EXECUTED 2009424: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009428: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED 200942c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009430: 81 c7 e0 08 ret <== NOT EXECUTED 2009434: 81 e8 00 00 restore <== NOT EXECUTED 02009c00 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 2009c00: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 2009c04: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 2009c08: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 2009c0c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 2009c10: 40 00 08 f4 call 200bfe0 <== NOT EXECUTED 2009c14: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED if (! err) { 2009c18: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009c1c: 12 80 00 12 bne 2009c64 <== NOT EXECUTED 2009c20: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 2009c24: 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) 2009c28: 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; 2009c2c: 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) 2009c30: 40 00 02 36 call 200a508 <== NOT EXECUTED 2009c34: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED 2009c38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009c3c: 12 80 00 10 bne 2009c7c <== NOT EXECUTED 2009c40: 01 00 00 00 nop <== NOT EXECUTED 2009c44: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 2009c48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2009c4c: 12 80 00 0c bne 2009c7c <== NOT EXECUTED 2009c50: 01 00 00 00 nop <== NOT EXECUTED free(jnode); 2009c54: 40 00 01 90 call 200a294 <== NOT EXECUTED 2009c58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2009c5c: 81 c7 e0 08 ret <== NOT EXECUTED 2009c60: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 2009c64: 16 80 00 06 bge 2009c7c <== NOT EXECUTED 2009c68: 01 00 00 00 nop <== NOT EXECUTED 2009c6c: 40 00 0e 04 call 200d47c <__errno> <== NOT EXECUTED 2009c70: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009c74: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009c78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009c7c: 81 c7 e0 08 ret <== NOT EXECUTED 2009c80: 81 e8 00 00 restore <== NOT EXECUTED 02009ab0 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2009ab0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int err; if (command == FIONBIO) { 2009ab4: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2009ab8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED int err; if (command == FIONBIO) { 2009abc: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2009ac0: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED int err; if (command == FIONBIO) { 2009ac4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2009ac8: 12 80 00 0f bne 2009b04 <== NOT EXECUTED 2009acc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (buffer == NULL) 2009ad0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 2009ad4: 02 80 00 12 be 2009b1c <== NOT EXECUTED 2009ad8: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 2009adc: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED 2009ae0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2009ae4: 02 80 00 04 be 2009af4 <== NOT EXECUTED 2009ae8: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 2009aec: 10 80 00 03 b 2009af8 <== NOT EXECUTED 2009af0: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 2009af4: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2009af8: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED 2009afc: 81 c7 e0 08 ret <== NOT EXECUTED 2009b00: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 2009b04: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 2009b08: 40 00 08 3a call 200bbf0 <== NOT EXECUTED 2009b0c: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 2009b10: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009b14: 16 80 00 06 bge 2009b2c <== NOT EXECUTED 2009b18: 01 00 00 00 nop <== NOT EXECUTED 2009b1c: 40 00 0e 58 call 200d47c <__errno> <== NOT EXECUTED 2009b20: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009b24: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009b28: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009b2c: 81 c7 e0 08 ret <== NOT EXECUTED 2009b30: 81 e8 00 00 restore <== NOT EXECUTED 02009a58 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 2009a58: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 2009a5c: 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 ) { 2009a60: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 2009a64: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 2009a68: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED 2009a6c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009a70: 40 00 08 43 call 200bb7c <== NOT EXECUTED 2009a74: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 2009a78: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED 2009a7c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 2009a80: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2009a84: 16 80 00 08 bge 2009aa4 <== NOT EXECUTED 2009a88: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED 2009a8c: 40 00 0e 7c call 200d47c <__errno> <== NOT EXECUTED 2009a90: a0 20 00 10 neg %l0 <== NOT EXECUTED 2009a94: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 2009a98: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 2009a9c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 2009aa0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED } 2009aa4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED 2009aa8: 81 c7 e0 08 ret <== NOT EXECUTED 2009aac: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED 02009b9c : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2009b9c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 2009ba0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2009ba4: 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); 2009ba8: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2009bac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009bb0: 40 00 08 99 call 200be14 <== NOT EXECUTED 2009bb4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) 2009bb8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009bbc: 04 80 00 08 ble 2009bdc <== NOT EXECUTED 2009bc0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_update_atime(jnode); 2009bc4: 40 00 02 19 call 200a428 <== NOT EXECUTED 2009bc8: 92 10 20 00 clr %o1 <== NOT EXECUTED 2009bcc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2009bd0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED 2009bd4: 81 c7 e0 08 ret <== NOT EXECUTED 2009bd8: 81 e8 00 00 restore <== NOT EXECUTED IMFS_FIFO_RETURN(err); 2009bdc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2009be0: 02 80 00 06 be 2009bf8 <== NOT EXECUTED 2009be4: 01 00 00 00 nop <== NOT EXECUTED 2009be8: 40 00 0e 25 call 200d47c <__errno> <== NOT EXECUTED 2009bec: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009bf0: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009bf4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009bf8: 81 c7 e0 08 ret <== NOT EXECUTED 2009bfc: 81 e8 00 00 restore <== NOT EXECUTED 02009b34 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2009b34: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 2009b38: 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 ) { 2009b3c: 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); 2009b40: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED 2009b44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2009b48: 40 00 08 43 call 200bc54 <== NOT EXECUTED 2009b4c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (err > 0) { 2009b50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2009b54: 04 80 00 09 ble 2009b78 <== NOT EXECUTED 2009b58: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 2009b5c: 40 00 02 33 call 200a428 <== NOT EXECUTED 2009b60: 92 10 20 00 clr %o1 <== NOT EXECUTED 2009b64: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2009b68: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED 2009b6c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 2009b70: 81 c7 e0 08 ret <== NOT EXECUTED 2009b74: 81 e8 00 00 restore <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 2009b78: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2009b7c: 02 80 00 06 be 2009b94 <== NOT EXECUTED 2009b80: 01 00 00 00 nop <== NOT EXECUTED 2009b84: 40 00 0e 3e call 200d47c <__errno> <== NOT EXECUTED 2009b88: b0 20 00 18 neg %i0 <== NOT EXECUTED 2009b8c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED 2009b90: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED } 2009b94: 81 c7 e0 08 ret <== NOT EXECUTED 2009b98: 81 e8 00 00 restore <== NOT EXECUTED 02009cbc : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 2009cbc: 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 ); 2009cc0: 80 a6 20 00 cmp %i0, 0 2009cc4: 12 80 00 0a bne 2009cec 2009cc8: 80 a6 60 00 cmp %i1, 0 2009ccc: 11 00 80 62 sethi %hi(0x2018800), %o0 <== NOT EXECUTED 2009cd0: 15 00 80 62 sethi %hi(0x2018800), %o2 <== NOT EXECUTED 2009cd4: 17 00 80 62 sethi %hi(0x2018800), %o3 <== NOT EXECUTED 2009cd8: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED 2009cdc: 94 12 a1 58 or %o2, 0x158, %o2 <== NOT EXECUTED 2009ce0: 96 12 e1 38 or %o3, 0x138, %o3 <== NOT EXECUTED 2009ce4: 7f ff e0 61 call 2001e68 <__assert_func> <== NOT EXECUTED 2009ce8: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED if ( !name ) 2009cec: 02 80 00 1c be 2009d5c 2009cf0: 90 10 00 19 mov %i1, %o0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 2009cf4: 13 00 80 62 sethi %hi(0x2018800), %o1 2009cf8: 40 00 11 47 call 200e214 2009cfc: 92 12 61 48 or %o1, 0x148, %o1 ! 2018948 2009d00: 80 a2 20 00 cmp %o0, 0 2009d04: 02 80 00 09 be 2009d28 2009d08: 90 10 00 19 mov %i1, %o0 return directory; if ( !strcmp( name, dotdotname ) ) 2009d0c: 13 00 80 62 sethi %hi(0x2018800), %o1 2009d10: 40 00 11 41 call 200e214 2009d14: 92 12 61 50 or %o1, 0x150, %o1 ! 2018950 2009d18: 80 a2 20 00 cmp %o0, 0 2009d1c: 12 80 00 05 bne 2009d30 2009d20: a0 06 20 54 add %i0, 0x54, %l0 return directory->Parent; 2009d24: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED 2009d28: 81 c7 e0 08 ret <== NOT EXECUTED 2009d2c: 81 e8 00 00 restore <== NOT EXECUTED the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 2009d30: 10 80 00 08 b 2009d50 2009d34: 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 ) ) 2009d38: 40 00 11 37 call 200e214 2009d3c: 92 06 20 0c add %i0, 0xc, %o1 2009d40: 80 a2 20 00 cmp %o0, 0 2009d44: 02 80 00 07 be 2009d60 2009d48: 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 ) { 2009d4c: 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; 2009d50: 80 a6 00 10 cmp %i0, %l0 2009d54: 12 bf ff f9 bne 2009d38 2009d58: 90 10 00 19 mov %i1, %o0 2009d5c: b0 10 20 00 clr %i0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 2009d60: 81 c7 e0 08 ret 2009d64: 81 e8 00 00 restore 0200f114 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 200f114: 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; 200f118: 94 10 20 14 mov 0x14, %o2 200f11c: 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; 200f120: 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 ); 200f124: 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; 200f128: 40 00 10 cc call 2013458 200f12c: 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; 200f130: c0 26 20 1c clr [ %i0 + 0x1c ] do { next = jnode->Parent; loc.node_access = (void *)jnode; 200f134: e0 27 bf ec st %l0, [ %fp + -20 ] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 200f138: f0 04 20 08 ld [ %l0 + 8 ], %i0 loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 200f13c: 7f ff fd 5d call 200e6b0 200f140: 90 10 00 11 mov %l1, %o0 if ( jnode->type != IMFS_DIRECTORY ) { 200f144: c4 04 20 48 ld [ %l0 + 0x48 ], %g2 200f148: 80 a0 a0 01 cmp %g2, 1 200f14c: 12 80 00 06 bne 200f164 200f150: 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; 200f154: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 200f158: 80 a0 80 01 cmp %g2, %g1 200f15c: 12 80 00 09 bne 200f180 200f160: 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 ); 200f164: 90 10 20 00 clr %o0 200f168: 7f ff d0 04 call 2003178 200f16c: 92 10 00 11 mov %l1, %o1 if (result != 0) 200f170: 80 a2 20 00 cmp %o0, 0 200f174: 12 80 00 13 bne 200f1c0 200f178: a0 10 00 18 mov %i0, %l0 return -1; jnode = next; } if ( jnode != NULL ) { 200f17c: 80 a4 20 00 cmp %l0, 0 200f180: 22 80 00 11 be,a 200f1c4 200f184: b0 10 20 00 clr %i0 if ( jnode->type == IMFS_DIRECTORY ) { 200f188: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200f18c: 80 a0 60 01 cmp %g1, 1 200f190: 32 bf ff ea bne,a 200f138 200f194: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED 200f198: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 200f19c: 84 04 20 54 add %l0, 0x54, %g2 200f1a0: 80 a0 40 02 cmp %g1, %g2 200f1a4: 22 bf ff e5 be,a 200f138 200f1a8: e0 27 bf ec st %l0, [ %fp + -20 ] if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 200f1ac: a0 90 60 00 orcc %g1, 0, %l0 200f1b0: 32 bf ff e2 bne,a 200f138 200f1b4: e0 27 bf ec st %l0, [ %fp + -20 ] 200f1b8: 81 c7 e0 08 ret <== NOT EXECUTED 200f1bc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 200f1c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return 0; } 200f1c4: 81 c7 e0 08 ret 200f1c8: 81 e8 00 00 restore 02009e5c : 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 ) { 2009e5c: 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, 2009e60: 03 00 80 64 sethi %hi(0x2019000), %g1 2009e64: c2 00 63 78 ld [ %g1 + 0x378 ], %g1 ! 2019378 2009e68: 86 10 20 00 clr %g3 2009e6c: 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) { 2009e70: 80 a0 80 01 cmp %g2, %g1 2009e74: 02 80 00 06 be 2009e8c 2009e78: 86 00 e0 01 inc %g3 2009e7c: 80 a0 e0 06 cmp %g3, 6 2009e80: 12 bf ff fc bne 2009e70 2009e84: 85 28 a0 01 sll %g2, 1, %g2 2009e88: 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) 2009e8c: 03 00 80 66 sethi %hi(0x2019800), %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(); 2009e90: 40 00 09 a2 call 200c518 2009e94: c4 20 62 c0 st %g2, [ %g1 + 0x2c0 ] ! 2019ac0 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; 2009e98: 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(); 2009e9c: 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; 2009ea0: 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; 2009ea4: 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; 2009ea8: 13 00 80 62 sethi %hi(0x2018800), %o1 2009eac: 90 06 20 38 add %i0, 0x38, %o0 2009eb0: 40 00 0f ae call 200dd68 2009eb4: 92 12 63 10 or %o1, 0x310, %o1 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 2009eb8: 90 10 20 01 mov 1, %o0 2009ebc: 40 00 00 b0 call 200a17c 2009ec0: 92 10 20 0c mov 0xc, %o1 if ( !fs_info ) { 2009ec4: 82 92 20 00 orcc %o0, 0, %g1 2009ec8: 12 80 00 0a bne 2009ef0 2009ecc: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 free(temp_mt_entry->mt_fs_root.node_access); 2009ed0: 40 00 00 f1 call 200a294 <== NOT EXECUTED 2009ed4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2009ed8: 40 00 0d 69 call 200d47c <__errno> <== NOT EXECUTED 2009edc: 01 00 00 00 nop <== NOT EXECUTED 2009ee0: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2009ee4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009ee8: 81 c7 e0 08 ret <== NOT EXECUTED 2009eec: 81 e8 00 00 restore <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 2009ef0: 84 10 20 01 mov 1, %g2 2009ef4: 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; 2009ef8: 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; 2009efc: f6 20 60 08 st %i3, [ %g1 + 8 ] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 2009f00: 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; 2009f04: 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(); 2009f08: 40 00 07 1f call 200bb84 2009f0c: b0 10 20 00 clr %i0 return 0; } 2009f10: 81 c7 e0 08 ret 2009f14: 81 e8 00 00 restore 02002e4c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 2002e4c: 9d e3 bf 50 save %sp, -176, %sp int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 2002e50: c2 06 00 00 ld [ %i0 ], %g1 2002e54: c2 27 bf d8 st %g1, [ %fp + -40 ] if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 2002e58: c2 10 60 30 lduh [ %g1 + 0x30 ], %g1 2002e5c: 80 a0 60 07 cmp %g1, 7 2002e60: 08 80 00 06 bleu 2002e78 2002e64: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EMLINK ); 2002e68: 40 00 3f 41 call 2012b6c <__errno> 2002e6c: 01 00 00 00 nop 2002e70: 10 80 00 17 b 2002ecc 2002e74: 82 10 20 1f mov 0x1f, %g1 ! 1f /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 2002e78: 40 00 42 db call 20139e4 2002e7c: 90 10 00 1a mov %i2, %o0 2002e80: a0 07 bf b0 add %fp, -80, %l0 2002e84: 92 10 00 08 mov %o0, %o1 2002e88: 96 07 bf fc add %fp, -4, %o3 2002e8c: 94 10 00 10 mov %l0, %o2 2002e90: 40 00 30 fa call 200f278 2002e94: 90 10 00 1a mov %i2, %o0 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 2002e98: 90 10 00 19 mov %i1, %o0 2002e9c: 94 10 00 10 mov %l0, %o2 2002ea0: 92 10 20 03 mov 3, %o1 2002ea4: 17 00 00 28 sethi %hi(0xa000), %o3 2002ea8: 98 07 bf d8 add %fp, -40, %o4 2002eac: 40 00 2d b4 call 200e57c 2002eb0: 96 12 e1 ff or %o3, 0x1ff, %o3 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 2002eb4: 80 a2 20 00 cmp %o0, 0 2002eb8: 12 80 00 08 bne 2002ed8 2002ebc: c2 07 bf d8 ld [ %fp + -40 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2002ec0: 40 00 3f 2b call 2012b6c <__errno> <== NOT EXECUTED 2002ec4: 01 00 00 00 nop <== NOT EXECUTED 2002ec8: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002ecc: c2 22 00 00 st %g1, [ %o0 ] 2002ed0: 81 c7 e0 08 ret 2002ed4: 91 e8 3f ff restore %g0, -1, %o0 /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); 2002ed8: 90 07 bf f4 add %fp, -12, %o0 rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 2002edc: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002ee0: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 2002ee4: 84 00 a0 01 inc %g2 IMFS_update_ctime( info.hard_link.link_node ); 2002ee8: 40 00 02 66 call 2003880 2002eec: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] 2002ef0: c4 07 bf f4 ld [ %fp + -12 ], %g2 2002ef4: c2 07 bf d8 ld [ %fp + -40 ], %g1 2002ef8: c4 20 60 44 st %g2, [ %g1 + 0x44 ] return 0; } 2002efc: 81 c7 e0 08 ret 2002f00: 91 e8 20 00 restore %g0, 0, %o0 020115fc : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 20115fc: 9d e3 bf a0 save %sp, -96, %sp 2011600: 90 10 00 18 mov %i0, %o0 block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 2011604: 80 a6 20 00 cmp %i0, 0 2011608: 12 80 00 0a bne 2011630 201160c: 92 10 00 19 mov %i1, %o1 2011610: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011614: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011618: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 201161c: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011620: 94 12 a1 c0 or %o2, 0x1c0, %o2 <== NOT EXECUTED 2011624: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 2011628: 10 80 00 0c b 2011658 <== NOT EXECUTED 201162c: 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 ); 2011630: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011634: 80 a0 60 05 cmp %g1, 5 2011638: 02 80 00 0a be 2011660 201163c: 15 00 80 7a sethi %hi(0x201e800), %o2 2011640: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011644: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011648: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 201164c: 94 12 a1 c0 or %o2, 0x1c0, %o2 <== NOT EXECUTED 2011650: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 2011654: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED 2011658: 7f ff c7 6a call 2003400 <__assert_func> <== NOT EXECUTED 201165c: 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 ); 2011660: 7f ff fe 6c call 2011010 2011664: 94 10 20 01 mov 1, %o2 ! 1 if ( *block_entry_ptr ) 2011668: 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 ); 201166c: a0 10 00 08 mov %o0, %l0 if ( *block_entry_ptr ) 2011670: 80 a0 60 00 cmp %g1, 0 2011674: 12 80 00 09 bne 2011698 2011678: b0 10 20 00 clr %i0 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 201167c: 7f ff fe 58 call 2010fdc 2011680: b0 10 20 01 mov 1, %i0 if ( !memory ) 2011684: 80 a2 20 00 cmp %o0, 0 2011688: 02 80 00 04 be 2011698 201168c: 01 00 00 00 nop return 1; *block_entry_ptr = memory; 2011690: d0 24 00 00 st %o0, [ %l0 ] 2011694: b0 10 20 00 clr %i0 return 0; } 2011698: 81 c7 e0 08 ret 201169c: 81 e8 00 00 restore 020116a0 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 20116a0: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 20116a4: 80 a6 20 00 cmp %i0, 0 20116a8: 32 80 00 0a bne,a 20116d0 20116ac: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 20116b0: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 20116b4: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 20116b8: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 20116bc: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 20116c0: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 20116c4: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 20116c8: 10 80 00 0c b 20116f8 <== NOT EXECUTED 20116cc: 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 ); 20116d0: 80 a0 60 05 cmp %g1, 5 20116d4: 02 80 00 0b be 2011700 20116d8: 03 00 80 7e sethi %hi(0x201f800), %g1 20116dc: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 20116e0: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 20116e4: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 20116e8: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 20116ec: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED 20116f0: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 20116f4: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED 20116f8: 7f ff c7 42 call 2003400 <__assert_func> <== NOT EXECUTED 20116fc: 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 ) 2011700: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 2011704: a3 34 20 02 srl %l0, 2, %l1 2011708: 92 10 00 11 mov %l1, %o1 201170c: 40 00 29 aa call 201bdb4 <.umul> 2011710: 90 04 60 01 add %l1, 1, %o0 2011714: 92 10 00 11 mov %l1, %o1 2011718: 40 00 29 a7 call 201bdb4 <.umul> 201171c: 90 02 20 01 inc %o0 2011720: 92 10 00 10 mov %l0, %o1 2011724: 40 00 29 a4 call 201bdb4 <.umul> 2011728: 90 02 3f ff add %o0, -1, %o0 201172c: 82 10 20 00 clr %g1 2011730: 80 a0 40 19 cmp %g1, %i1 2011734: 34 80 00 0b bg,a 2011760 2011738: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED 201173c: 80 a0 40 19 cmp %g1, %i1 2011740: 12 80 00 04 bne 2011750 2011744: 80 a2 00 1a cmp %o0, %i2 2011748: 38 80 00 06 bgu,a 2011760 201174c: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 2011750: 40 00 05 07 call 2012b6c <__errno> <== NOT EXECUTED 2011754: 01 00 00 00 nop <== NOT EXECUTED 2011758: 10 80 00 2b b 2011804 <== NOT EXECUTED 201175c: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 2011760: 80 a6 40 11 cmp %i1, %l1 2011764: 14 80 00 09 bg 2011788 2011768: e6 06 20 54 ld [ %i0 + 0x54 ], %l3 201176c: 80 a6 40 11 cmp %i1, %l1 2011770: 12 80 00 04 bne 2011780 2011774: 80 a6 80 13 cmp %i2, %l3 2011778: 18 80 00 05 bgu 201178c 201177c: a5 3c 20 1f sra %l0, 0x1f, %l2 2011780: 81 c7 e0 08 ret 2011784: 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; 2011788: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED 201178c: 96 10 00 10 mov %l0, %o3 2011790: 94 10 00 12 mov %l2, %o2 2011794: 90 10 00 19 mov %i1, %o0 2011798: 40 00 2b 4c call 201c4c8 <__divdi3> 201179c: 92 10 00 1a mov %i2, %o1 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 20117a0: 90 10 00 11 mov %l1, %o0 20117a4: 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; 20117a8: a8 10 00 09 mov %o1, %l4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 20117ac: 94 10 00 12 mov %l2, %o2 20117b0: 40 00 2b 46 call 201c4c8 <__divdi3> 20117b4: 92 10 00 13 mov %l3, %o1 20117b8: a2 10 00 09 mov %o1, %l1 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 20117bc: 10 80 00 15 b 2011810 20117c0: a0 10 00 09 mov %o1, %l0 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 20117c4: 7f ff ff 8e call 20115fc 20117c8: 92 10 00 10 mov %l0, %o1 20117cc: 80 a2 20 00 cmp %o0, 0 20117d0: 22 80 00 10 be,a 2011810 20117d4: a0 04 20 01 inc %l0 for ( ; block>=old_blocks ; block-- ) { 20117d8: 10 80 00 06 b 20117f0 <== NOT EXECUTED 20117dc: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 20117e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20117e4: 7f ff fe d7 call 2011340 <== NOT EXECUTED 20117e8: 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-- ) { 20117ec: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED 20117f0: 1a bf ff fc bcc 20117e0 <== NOT EXECUTED 20117f4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 20117f8: 40 00 04 dd call 2012b6c <__errno> <== NOT EXECUTED 20117fc: 01 00 00 00 nop <== NOT EXECUTED 2011800: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2011804: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011808: 81 c7 e0 08 ret <== NOT EXECUTED 201180c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 2011810: 80 a4 00 14 cmp %l0, %l4 2011814: 08 bf ff ec bleu 20117c4 2011818: 90 10 00 18 mov %i0, %o0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 201181c: f4 26 20 54 st %i2, [ %i0 + 0x54 ] 2011820: f2 26 20 50 st %i1, [ %i0 + 0x50 ] return 0; } 2011824: 81 c7 e0 08 ret 2011828: 91 e8 20 00 restore %g0, 0, %o0 02011010 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2011010: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011014: 80 a6 20 00 cmp %i0, 0 2011018: 32 80 00 0a bne,a 2011040 201101c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011020: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011024: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011028: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 201102c: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011030: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED 2011034: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 2011038: 10 80 00 0c b 2011068 <== NOT EXECUTED 201103c: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 2011040: 80 a0 60 05 cmp %g1, 5 2011044: 02 80 00 0b be 2011070 2011048: 03 00 80 7e sethi %hi(0x201f800), %g1 201104c: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011050: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011054: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011058: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 201105c: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED 2011060: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 2011064: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED 2011068: 7f ff c8 e6 call 2003400 <__assert_func> <== NOT EXECUTED 201106c: 01 00 00 00 nop <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2011070: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 2011074: a1 34 20 02 srl %l0, 2, %l0 2011078: 82 04 3f ff add %l0, -1, %g1 201107c: 80 a6 40 01 cmp %i1, %g1 2011080: 18 80 00 16 bgu 20110d8 2011084: 90 04 20 01 add %l0, 1, %o0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 2011088: 80 a6 a0 00 cmp %i2, 0 201108c: 02 80 00 0f be 20110c8 2011090: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 if ( !p ) { 2011094: 80 a0 60 00 cmp %g1, 0 2011098: 32 80 00 09 bne,a 20110bc 201109c: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 p = memfile_alloc_block(); 20110a0: 7f ff ff cf call 2010fdc 20110a4: 01 00 00 00 nop if ( !p ) 20110a8: 80 a2 20 00 cmp %o0, 0 20110ac: 22 80 00 86 be,a 20112c4 20110b0: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->indirect = p; 20110b4: d0 26 20 58 st %o0, [ %i0 + 0x58 ] } return &info->indirect[ my_block ]; 20110b8: f0 06 20 58 ld [ %i0 + 0x58 ], %i0 20110bc: b3 2e 60 02 sll %i1, 2, %i1 20110c0: 81 c7 e0 08 ret 20110c4: 91 ee 00 19 restore %i0, %i1, %o0 } if ( !p ) return 0; return &info->indirect[ my_block ]; 20110c8: b3 2e 60 02 sll %i1, 2, %i1 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 20110cc: 80 a0 60 00 cmp %g1, 0 return 0; return &info->indirect[ my_block ]; 20110d0: 10 80 00 32 b 2011198 20110d4: b0 00 40 19 add %g1, %i1, %i0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 20110d8: 40 00 2b 37 call 201bdb4 <.umul> <== NOT EXECUTED 20110dc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20110e0: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED 20110e4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 20110e8: 18 80 00 30 bgu 20111a8 <== NOT EXECUTED 20110ec: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 20110f0: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20110f4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20110f8: 40 00 2c 15 call 201c14c <.urem> <== NOT EXECUTED 20110fc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011100: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 2011104: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2011108: 40 00 2b 65 call 201be9c <.udiv> <== NOT EXECUTED 201110c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2011110: 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; 2011114: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 2011118: 02 80 00 18 be 2011178 <== NOT EXECUTED 201111c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED if ( !p ) { 2011120: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011124: 12 80 00 08 bne 2011144 <== NOT EXECUTED 2011128: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED p = memfile_alloc_block(); 201112c: 7f ff ff ac call 2010fdc <== NOT EXECUTED 2011130: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2011134: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011138: 22 80 00 63 be,a 20112c4 <== NOT EXECUTED 201113c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->doubly_indirect = p; 2011140: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 2011144: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED if ( !p1 ) { 2011148: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 201114c: 12 80 00 08 bne 201116c <== NOT EXECUTED 2011150: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED p1 = memfile_alloc_block(); 2011154: 7f ff ff a2 call 2010fdc <== NOT EXECUTED 2011158: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 201115c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011160: 22 80 00 59 be,a 20112c4 <== NOT EXECUTED 2011164: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 2011168: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 201116c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 2011170: 81 c7 e0 08 ret <== NOT EXECUTED 2011174: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED } if ( !p ) 2011178: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 201117c: 02 80 00 52 be 20112c4 <== NOT EXECUTED 2011180: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2011184: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED 2011188: 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 ]; 201118c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2011190: 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 ]; 2011194: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2011198: 12 80 00 4b bne 20112c4 201119c: 01 00 00 00 nop p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 20111a0: 81 c7 e0 08 ret <== NOT EXECUTED 20111a4: 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 ) { 20111a8: 90 02 20 01 inc %o0 <== NOT EXECUTED 20111ac: 40 00 2b 02 call 201bdb4 <.umul> <== NOT EXECUTED 20111b0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20111b4: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED 20111b8: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED 20111bc: 18 80 00 41 bgu 20112c0 <== NOT EXECUTED 20111c0: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 20111c4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20111c8: 40 00 2b e1 call 201c14c <.urem> <== NOT EXECUTED 20111cc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20111d0: 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; 20111d4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 20111d8: 40 00 2b 31 call 201be9c <.udiv> <== NOT EXECUTED 20111dc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 20111e0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20111e4: 40 00 2b 2e call 201be9c <.udiv> <== NOT EXECUTED 20111e8: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 20111ec: 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; 20111f0: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 20111f4: 40 00 2b d6 call 201c14c <.urem> <== NOT EXECUTED 20111f8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 20111fc: 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; 2011200: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 2011204: 02 80 00 23 be 2011290 <== NOT EXECUTED 2011208: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED if ( !p ) { 201120c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011210: 12 80 00 08 bne 2011230 <== NOT EXECUTED 2011214: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED p = memfile_alloc_block(); 2011218: 7f ff ff 71 call 2010fdc <== NOT EXECUTED 201121c: 01 00 00 00 nop <== NOT EXECUTED if ( !p ) 2011220: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011224: 22 80 00 28 be,a 20112c4 <== NOT EXECUTED 2011228: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; info->triply_indirect = p; 201122c: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 2011230: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED if ( !p1 ) { 2011234: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2011238: 12 80 00 08 bne 2011258 <== NOT EXECUTED 201123c: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED p1 = memfile_alloc_block(); 2011240: 7f ff ff 67 call 2010fdc <== NOT EXECUTED 2011244: 01 00 00 00 nop <== NOT EXECUTED if ( !p1 ) 2011248: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED 201124c: 02 80 00 1e be 20112c4 <== NOT EXECUTED 2011250: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 2011254: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 2011258: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED 201125c: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED if ( !p2 ) { 2011260: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011264: 12 80 00 08 bne 2011284 <== NOT EXECUTED 2011268: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED p2 = memfile_alloc_block(); 201126c: 7f ff ff 5c call 2010fdc <== NOT EXECUTED 2011270: 01 00 00 00 nop <== NOT EXECUTED if ( !p2 ) 2011274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011278: 22 80 00 13 be,a 20112c4 <== NOT EXECUTED 201127c: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 2011280: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 2011284: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 2011288: 81 c7 e0 08 ret <== NOT EXECUTED 201128c: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED } if ( !p ) 2011290: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2011294: 02 80 00 0c be 20112c4 <== NOT EXECUTED 2011298: 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 ]; 201129c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED 20112a0: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED if ( !p1 ) 20112a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20112a8: 02 80 00 07 be 20112c4 <== NOT EXECUTED 20112ac: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 20112b0: f0 00 40 10 ld [ %g1 + %l0 ], %i0 <== NOT EXECUTED 20112b4: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED 20112b8: 81 c7 e0 08 ret <== NOT EXECUTED 20112bc: 91 ee 00 12 restore %i0, %l2, %o0 <== NOT EXECUTED 20112c0: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 20112c4: 81 c7 e0 08 ret 20112c8: 81 e8 00 00 restore 02011cac : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2011cac: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011cb0: a0 96 20 00 orcc %i0, 0, %l0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 2011cb4: a4 10 00 19 mov %i1, %l2 /* * Perform internal consistency checks */ assert( the_jnode ); 2011cb8: 12 80 00 0a bne 2011ce0 2011cbc: a6 10 00 1a mov %i2, %l3 2011cc0: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011cc4: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011cc8: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011ccc: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011cd0: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 2011cd4: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 2011cd8: 10 80 00 0e b 2011d10 <== NOT EXECUTED 2011cdc: 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 || 2011ce0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2011ce4: 84 00 7f fb add %g1, -5, %g2 2011ce8: 80 a0 a0 01 cmp %g2, 1 2011cec: 08 80 00 0b bleu 2011d18 2011cf0: 80 a6 e0 00 cmp %i3, 0 2011cf4: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011cf8: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011cfc: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011d00: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011d04: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 2011d08: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED 2011d0c: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED 2011d10: 7f ff c5 bc call 2003400 <__assert_func> <== NOT EXECUTED 2011d14: 01 00 00 00 nop <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 2011d18: 32 80 00 0a bne,a 2011d40 2011d1c: 80 a7 20 00 cmp %i4, 0 2011d20: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011d24: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011d28: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011d2c: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011d30: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 2011d34: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED 2011d38: 10 bf ff f6 b 2011d10 <== NOT EXECUTED 2011d3c: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 2011d40: 12 80 00 08 bne 2011d60 2011d44: 80 a0 60 06 cmp %g1, 6 rtems_set_errno_and_return_minus_one( EINVAL ); 2011d48: 40 00 03 89 call 2012b6c <__errno> <== NOT EXECUTED 2011d4c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2011d50: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2011d54: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011d58: 81 c7 e0 08 ret <== NOT EXECUTED 2011d5c: 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) { 2011d60: 32 80 00 1d bne,a 2011dd4 2011d64: 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)) 2011d68: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED 2011d6c: 82 10 20 00 clr %g1 <== NOT EXECUTED 2011d70: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED 2011d74: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED 2011d78: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2011d7c: 14 80 00 0a bg 2011da4 <== NOT EXECUTED 2011d80: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED 2011d84: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2011d88: 12 80 00 08 bne 2011da8 <== NOT EXECUTED 2011d8c: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED 2011d90: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED 2011d94: 38 80 00 05 bgu,a 2011da8 <== NOT EXECUTED 2011d98: 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); 2011d9c: 10 80 00 04 b 2011dac <== NOT EXECUTED 2011da0: 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; 2011da4: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 2011da8: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED 2011dac: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED 2011db0: 40 00 05 aa call 2013458 <== NOT EXECUTED 2011db4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 2011db8: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 2011dbc: 7f ff c6 b1 call 2003880 <== NOT EXECUTED 2011dc0: 92 10 20 00 clr %o1 <== NOT EXECUTED 2011dc4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2011dc8: c2 24 20 3c st %g1, [ %l0 + 0x3c ] <== NOT EXECUTED return my_length; 2011dcc: 81 c7 e0 08 ret <== NOT EXECUTED 2011dd0: 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 ) 2011dd4: 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; 2011dd8: 82 10 00 1a mov %i2, %g1 if ( last_byte > the_jnode->info.file.size ) 2011ddc: 80 a1 00 03 cmp %g4, %g3 2011de0: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 2011de4: 14 80 00 08 bg 2011e04 2011de8: 9a 07 00 1a add %i4, %i2, %o5 2011dec: 80 a1 00 03 cmp %g4, %g3 2011df0: 32 80 00 07 bne,a 2011e0c 2011df4: 03 00 80 7e sethi %hi(0x201f800), %g1 <== NOT EXECUTED 2011df8: 80 a3 40 02 cmp %o5, %g2 2011dfc: 28 80 00 04 bleu,a 2011e0c 2011e00: 03 00 80 7e sethi %hi(0x201f800), %g1 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 2011e04: 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; 2011e08: 03 00 80 7e sethi %hi(0x201f800), %g1 2011e0c: e2 00 60 28 ld [ %g1 + 0x28 ], %l1 ! 201f828 2011e10: 90 10 00 12 mov %l2, %o0 2011e14: 92 10 00 13 mov %l3, %o1 2011e18: ab 3c 60 1f sra %l1, 0x1f, %l5 2011e1c: 96 10 00 11 mov %l1, %o3 2011e20: 40 00 2a 91 call 201c864 <__moddi3> 2011e24: 94 10 00 15 mov %l5, %o2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2011e28: 90 10 00 12 mov %l2, %o0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2011e2c: a8 10 00 09 mov %o1, %l4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2011e30: 94 10 00 15 mov %l5, %o2 2011e34: 92 10 00 13 mov %l3, %o1 2011e38: 40 00 29 a4 call 201c4c8 <__divdi3> 2011e3c: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2011e40: 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; 2011e44: a4 10 00 09 mov %o1, %l2 if ( start_offset ) { 2011e48: a6 10 00 1b mov %i3, %l3 2011e4c: 02 80 00 1c be 2011ebc 2011e50: 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 ); 2011e54: 90 10 00 10 mov %l0, %o0 2011e58: 7f ff fc 6e call 2011010 2011e5c: 94 10 20 00 clr %o2 assert( block_ptr ); 2011e60: 80 a2 20 00 cmp %o0, 0 2011e64: 32 80 00 0a bne,a 2011e8c 2011e68: a2 24 40 14 sub %l1, %l4, %l1 2011e6c: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011e70: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011e74: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011e78: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011e7c: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 2011e80: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011e84: 10 bf ff a3 b 2011d10 <== NOT EXECUTED 2011e88: 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; 2011e8c: 80 a7 00 11 cmp %i4, %l1 2011e90: 08 80 00 03 bleu 2011e9c 2011e94: 94 10 00 1c mov %i4, %o2 2011e98: 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 ); 2011e9c: d2 02 00 00 ld [ %o0 ], %o1 dest += to_copy; 2011ea0: 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 ); 2011ea4: 92 02 40 14 add %o1, %l4, %o1 dest += to_copy; block++; 2011ea8: a4 04 a0 01 inc %l2 my_length -= to_copy; 2011eac: b8 27 00 0a sub %i4, %o2, %i4 2011eb0: 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 ); 2011eb4: 40 00 05 69 call 2013458 2011eb8: 90 10 00 1b mov %i3, %o0 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2011ebc: 03 00 80 7e sethi %hi(0x201f800), %g1 2011ec0: a2 10 20 00 clr %l1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2011ec4: b6 10 60 28 or %g1, 0x28, %i3 2011ec8: 10 80 00 17 b 2011f24 2011ecc: e8 00 60 28 ld [ %g1 + 0x28 ], %l4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2011ed0: 90 10 00 10 mov %l0, %o0 2011ed4: 92 10 00 12 mov %l2, %o1 2011ed8: 94 10 20 00 clr %o2 2011edc: 7f ff fc 4d call 2011010 2011ee0: a2 04 40 14 add %l1, %l4, %l1 assert( block_ptr ); 2011ee4: 80 a2 20 00 cmp %o0, 0 2011ee8: 32 80 00 0a bne,a 2011f10 2011eec: d2 02 00 00 ld [ %o0 ], %o1 2011ef0: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011ef4: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011ef8: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011efc: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011f00: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 2011f04: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011f08: 10 bf ff 82 b 2011d10 <== NOT EXECUTED 2011f0c: 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++; 2011f10: 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 ); 2011f14: 90 10 00 15 mov %l5, %o0 dest += to_copy; block++; my_length -= to_copy; 2011f18: 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 ); 2011f1c: 40 00 05 4f call 2013458 2011f20: 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 ) { 2011f24: 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; 2011f28: 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 ) { 2011f2c: 80 a7 00 01 cmp %i4, %g1 2011f30: 1a bf ff e8 bcc 2011ed0 2011f34: 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 ) { 2011f38: 80 a7 20 00 cmp %i4, 0 2011f3c: 02 80 00 16 be 2011f94 2011f40: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2011f44: 92 10 00 12 mov %l2, %o1 2011f48: 90 10 00 10 mov %l0, %o0 2011f4c: 7f ff fc 31 call 2011010 2011f50: 94 10 20 00 clr %o2 assert( block_ptr ); 2011f54: 80 a2 20 00 cmp %o0, 0 2011f58: 32 80 00 0a bne,a 2011f80 2011f5c: d2 02 00 00 ld [ %o0 ], %o1 2011f60: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011f64: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011f68: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011f6c: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011f70: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED 2011f74: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011f78: 10 bf ff 66 b 2011d10 <== NOT EXECUTED 2011f7c: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; 2011f80: 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 ); 2011f84: 90 10 00 15 mov %l5, %o0 2011f88: 40 00 05 34 call 2013458 2011f8c: 94 10 00 1c mov %i4, %o2 copied += my_length; } IMFS_update_atime( the_jnode ); 2011f90: 90 07 bf f8 add %fp, -8, %o0 2011f94: 7f ff c6 3b call 2003880 2011f98: 92 10 20 00 clr %o1 2011f9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2011fa0: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return copied; } 2011fa4: 81 c7 e0 08 ret 2011fa8: 81 e8 00 00 restore 02011394 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 2011394: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 2011398: 80 a6 20 00 cmp %i0, 0 201139c: 32 80 00 0a bne,a 20113c4 20113a0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 20113a4: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 20113a8: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 20113ac: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 20113b0: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 20113b4: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 20113b8: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 20113bc: 10 80 00 0c b 20113ec <== NOT EXECUTED 20113c0: 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 ); 20113c4: 80 a0 60 05 cmp %g1, 5 20113c8: 02 80 00 0b be 20113f4 20113cc: 03 00 80 7e sethi %hi(0x201f800), %g1 20113d0: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 20113d4: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 20113d8: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 20113dc: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 20113e0: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED 20113e4: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 20113e8: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED 20113ec: 7f ff c8 05 call 2003400 <__assert_func> <== NOT EXECUTED 20113f0: 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; 20113f4: e0 00 60 28 ld [ %g1 + 0x28 ], %l0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 20113f8: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 20113fc: 80 a0 60 00 cmp %g1, 0 2011400: 02 80 00 05 be 2011414 2011404: a1 34 20 02 srl %l0, 2, %l0 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 2011408: 90 06 20 58 add %i0, 0x58, %o0 201140c: 7f ff ff b0 call 20112cc 2011410: 92 10 00 10 mov %l0, %o1 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011414: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 2011418: 80 a0 60 00 cmp %g1, 0 201141c: 22 80 00 17 be,a 2011478 2011420: 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; 2011428: 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 2011430: a4 14 a0 28 or %l2, 0x28, %l2 <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 2011434: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED 2011438: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED 201143c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2011440: 02 80 00 04 be 2011450 <== NOT EXECUTED 2011444: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( 2011448: 7f ff ff a1 call 20112cc <== NOT EXECUTED 201144c: 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 2011464: 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 ); 2011468: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED 201146c: 7f ff ff 98 call 20112cc <== NOT EXECUTED 2011470: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011474: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED 2011478: 80 a0 60 00 cmp %g1, 0 201147c: 02 80 00 25 be 2011510 2011480: 29 00 80 7e sethi %hi(0x201f800), %l4 2011484: 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 201148c: a8 15 20 28 or %l4, 0x28, %l4 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 2011490: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 2011494: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 2011498: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 201149c: 02 80 00 1b be 2011508 <== NOT EXECUTED 20114a0: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 20114a4: 10 80 00 09 b 20114c8 <== NOT EXECUTED 20114a8: a6 10 20 00 clr %l3 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 20114b4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 20114b8: 7f ff ff 85 call 20112cc <== NOT EXECUTED 20114bc: 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 20114d8: 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( 20114dc: 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 20114ec: 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 2011500: 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( 2011504: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED 2011508: 7f ff ff 71 call 20112cc <== NOT EXECUTED 201150c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 2011510: 81 c7 e0 08 ret 2011514: 91 e8 20 00 restore %g0, 0, %o0 02011340 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 2011340: 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 ); 2011344: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011348: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 201134c: 7f ff ff 31 call 2011010 <== NOT EXECUTED 2011350: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED assert( block_ptr ); 2011354: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2011358: 32 80 00 0a bne,a 2011380 <== NOT EXECUTED 201135c: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED 2011360: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011364: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011368: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 201136c: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011370: 94 12 a1 a0 or %o2, 0x1a0, %o2 <== NOT EXECUTED 2011374: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011378: 7f ff c8 22 call 2003400 <__assert_func> <== NOT EXECUTED 201137c: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED *block_ptr = 0; memfile_free_block( ptr ); } return 1; } 2011380: 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 ); 2011384: 7f ff ff 0d call 2010fb8 <== NOT EXECUTED 2011388: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } return 1; } 201138c: 81 c7 e0 08 ret <== NOT EXECUTED 2011390: 81 e8 00 00 restore <== NOT EXECUTED 02011948 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 2011948: 9d e3 bf 98 save %sp, -104, %sp /* * Perform internal consistency checks */ assert( the_jnode ); 201194c: a0 96 20 00 orcc %i0, 0, %l0 2011950: 32 80 00 0a bne,a 2011978 2011954: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2011958: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 201195c: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011960: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011964: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011968: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 201196c: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED 2011970: 10 80 00 8c b 2011ba0 <== NOT EXECUTED 2011974: 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 ); 2011978: 80 a0 60 05 cmp %g1, 5 201197c: 02 80 00 0a be 20119a4 2011980: 80 a6 e0 00 cmp %i3, 0 2011984: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011988: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 201198c: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011990: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011994: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 2011998: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED 201199c: 10 80 00 81 b 2011ba0 <== NOT EXECUTED 20119a0: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 20119a4: 12 80 00 0a bne 20119cc 20119a8: 80 a7 20 00 cmp %i4, 0 20119ac: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 20119b0: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 20119b4: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 20119b8: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 20119bc: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 20119c0: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED 20119c4: 10 80 00 77 b 2011ba0 <== NOT EXECUTED 20119c8: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 20119cc: 32 80 00 06 bne,a 20119e4 20119d0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 20119d4: 40 00 04 66 call 2012b6c <__errno> <== NOT EXECUTED 20119d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20119dc: 10 80 00 15 b 2011a30 <== NOT EXECUTED 20119e0: 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 ) { 20119e4: 80 a0 60 00 cmp %g1, 0 20119e8: 06 80 00 09 bl 2011a0c 20119ec: 94 07 00 1a add %i4, %i2, %o2 20119f0: 80 a0 60 00 cmp %g1, 0 20119f4: 12 80 00 12 bne 2011a3c 20119f8: 03 00 80 7e sethi %hi(0x201f800), %g1 20119fc: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 2011a00: 80 a0 40 0a cmp %g1, %o2 2011a04: 1a 80 00 0e bcc 2011a3c 2011a08: 03 00 80 7e sethi %hi(0x201f800), %g1 status = IMFS_memfile_extend( the_jnode, last_byte ); 2011a0c: 90 10 00 10 mov %l0, %o0 2011a10: 7f ff ff 24 call 20116a0 2011a14: 92 10 20 00 clr %o1 if ( status ) 2011a18: 80 a2 20 00 cmp %o0, 0 2011a1c: 02 80 00 08 be 2011a3c 2011a20: 03 00 80 7e sethi %hi(0x201f800), %g1 rtems_set_errno_and_return_minus_one( ENOSPC ); 2011a24: 40 00 04 52 call 2012b6c <__errno> <== NOT EXECUTED 2011a28: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2011a2c: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED 2011a30: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011a34: 81 c7 e0 08 ret <== NOT EXECUTED 2011a38: 81 e8 00 00 restore <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2011a3c: e2 00 60 28 ld [ %g1 + 0x28 ], %l1 2011a40: 92 10 00 1a mov %i2, %o1 2011a44: a7 3c 60 1f sra %l1, 0x1f, %l3 2011a48: 96 10 00 11 mov %l1, %o3 2011a4c: 94 10 00 13 mov %l3, %o2 2011a50: 40 00 2b 85 call 201c864 <__moddi3> 2011a54: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2011a58: 94 10 00 13 mov %l3, %o2 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 2011a5c: a4 10 00 09 mov %o1, %l2 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 2011a60: 90 10 00 19 mov %i1, %o0 2011a64: 92 10 00 1a mov %i2, %o1 2011a68: 40 00 2a 98 call 201c4c8 <__divdi3> 2011a6c: 96 10 00 11 mov %l1, %o3 if ( start_offset ) { 2011a70: 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; 2011a74: a6 10 00 09 mov %o1, %l3 if ( start_offset ) { 2011a78: 80 a4 a0 00 cmp %l2, 0 2011a7c: 02 80 00 1b be 2011ae8 2011a80: 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 ); 2011a84: 90 10 00 10 mov %l0, %o0 2011a88: 7f ff fd 62 call 2011010 2011a8c: 94 10 20 00 clr %o2 assert( block_ptr ); 2011a90: 80 a2 20 00 cmp %o0, 0 2011a94: 32 80 00 0a bne,a 2011abc 2011a98: 94 24 40 12 sub %l1, %l2, %o2 2011a9c: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011aa0: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011aa4: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011aa8: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011aac: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 2011ab0: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011ab4: 10 80 00 3b b 2011ba0 <== NOT EXECUTED 2011ab8: 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; 2011abc: 80 a2 80 1c cmp %o2, %i4 2011ac0: 38 80 00 02 bgu,a 2011ac8 2011ac4: 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 ); 2011ac8: d0 02 00 00 ld [ %o0 ], %o0 src += to_copy; 2011acc: 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 ); 2011ad0: 90 02 00 12 add %o0, %l2, %o0 src += to_copy; block++; 2011ad4: a6 04 e0 01 inc %l3 my_length -= to_copy; 2011ad8: b8 27 00 0a sub %i4, %o2, %i4 copied += to_copy; 2011adc: 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 ); 2011ae0: 40 00 06 5e call 2013458 2011ae4: 92 10 00 1b mov %i3, %o1 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 2011ae8: 03 00 80 7e sethi %hi(0x201f800), %g1 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 2011aec: a4 10 60 28 or %g1, 0x28, %l2 ! 201f828 2011af0: 10 80 00 17 b 2011b4c 2011af4: e2 00 60 28 ld [ %g1 + 0x28 ], %l1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2011af8: 92 10 00 13 mov %l3, %o1 2011afc: 7f ff fd 45 call 2011010 2011b00: 94 10 20 00 clr %o2 assert( block_ptr ); 2011b04: 80 a2 20 00 cmp %o0, 0 2011b08: 32 80 00 0a bne,a 2011b30 2011b0c: d0 02 00 00 ld [ %o0 ], %o0 2011b10: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011b14: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011b18: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011b1c: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011b20: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 2011b24: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011b28: 10 80 00 1e b 2011ba0 <== NOT EXECUTED 2011b2c: 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 ); 2011b30: 92 10 00 1a mov %i2, %o1 src += to_copy; block++; 2011b34: a6 04 e0 01 inc %l3 my_length -= to_copy; 2011b38: 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( 2011b3c: 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; 2011b40: 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 ); 2011b44: 40 00 06 45 call 2013458 2011b48: 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 ) { 2011b4c: c2 04 80 00 ld [ %l2 ], %g1 2011b50: 80 a7 00 01 cmp %i4, %g1 2011b54: 1a bf ff e9 bcc 2011af8 2011b58: 90 10 00 10 mov %l0, %o0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 2011b5c: 80 a7 20 00 cmp %i4, 0 2011b60: 02 80 00 17 be 2011bbc 2011b64: 90 07 bf f8 add %fp, -8, %o0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2011b68: 92 10 00 13 mov %l3, %o1 2011b6c: 90 10 00 10 mov %l0, %o0 2011b70: 7f ff fd 28 call 2011010 2011b74: 94 10 20 00 clr %o2 assert( block_ptr ); 2011b78: 80 a2 20 00 cmp %o0, 0 2011b7c: 32 80 00 0b bne,a 2011ba8 2011b80: d0 02 00 00 ld [ %o0 ], %o0 2011b84: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 2011b88: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 2011b8c: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 2011b90: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 2011b94: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED 2011b98: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED 2011b9c: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED 2011ba0: 7f ff c6 18 call 2003400 <__assert_func> <== NOT EXECUTED 2011ba4: 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; 2011ba8: 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 ); 2011bac: 92 10 00 1a mov %i2, %o1 2011bb0: 40 00 06 2a call 2013458 2011bb4: 94 10 00 1c mov %i4, %o2 my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 2011bb8: 90 07 bf f8 add %fp, -8, %o0 2011bbc: 7f ff c7 31 call 2003880 2011bc0: 92 10 20 00 clr %o1 2011bc4: c2 07 bf f8 ld [ %fp + -8 ], %g1 2011bc8: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 2011bcc: c2 24 20 40 st %g1, [ %l0 + 0x40 ] return copied; } 2011bd0: 81 c7 e0 08 ret 2011bd4: 81 e8 00 00 restore 02009f18 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 2009f18: 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 ); 2009f1c: 40 00 11 0f call 200e358 2009f20: 90 10 00 18 mov %i0, %o0 2009f24: 96 07 bf fc add %fp, -4, %o3 2009f28: 92 10 00 08 mov %o0, %o1 2009f2c: 94 07 bf b8 add %fp, -72, %o2 2009f30: 7f ff ff 8e call 2009d68 2009f34: 90 10 00 18 mov %i0, %o0 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 2009f38: 97 2e 60 10 sll %i1, 0x10, %o3 2009f3c: 03 00 00 3c sethi %hi(0xf000), %g1 2009f40: 97 32 e0 10 srl %o3, 0x10, %o3 2009f44: 05 00 00 10 sethi %hi(0x4000), %g2 2009f48: 82 0a c0 01 and %o3, %g1, %g1 2009f4c: 80 a0 40 02 cmp %g1, %g2 2009f50: 02 80 00 19 be 2009fb4 2009f54: 90 10 00 1c mov %i4, %o0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 2009f58: 05 00 00 20 sethi %hi(0x8000), %g2 2009f5c: 80 a0 40 02 cmp %g1, %g2 2009f60: 02 80 00 16 be 2009fb8 2009f64: 92 10 20 05 mov 5, %o1 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 2009f68: 05 00 00 08 sethi %hi(0x2000), %g2 2009f6c: 80 a0 40 02 cmp %g1, %g2 2009f70: 02 80 00 05 be 2009f84 2009f74: 05 00 00 18 sethi %hi(0x6000), %g2 2009f78: 80 a0 40 02 cmp %g1, %g2 2009f7c: 12 80 00 05 bne 2009f90 2009f80: 05 00 00 04 sethi %hi(0x1000), %g2 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 2009f84: f4 3f bf e0 std %i2, [ %fp + -32 ] 2009f88: 10 80 00 0c b 2009fb8 2009f8c: 92 10 20 02 mov 2, %o1 } else if (S_ISFIFO(mode)) 2009f90: 80 a0 40 02 cmp %g1, %g2 2009f94: 02 80 00 09 be 2009fb8 2009f98: 92 10 20 07 mov 7, %o1 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 2009f9c: 40 00 0d 38 call 200d47c <__errno> <== NOT EXECUTED 2009fa0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2009fa4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2009fa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009fac: 81 c7 e0 08 ret <== NOT EXECUTED 2009fb0: 81 e8 00 00 restore <== NOT EXECUTED 2009fb4: 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( 2009fb8: 94 07 bf b8 add %fp, -72, %o2 2009fbc: 98 07 bf e0 add %fp, -32, %o4 2009fc0: 40 00 09 66 call 200c558 2009fc4: b0 10 20 00 clr %i0 new_name, mode, &info ); if ( !new_node ) 2009fc8: 80 a2 20 00 cmp %o0, 0 2009fcc: 12 80 00 06 bne 2009fe4 2009fd0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 2009fd4: 40 00 0d 2a call 200d47c <__errno> <== NOT EXECUTED 2009fd8: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2009fdc: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2009fe0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return 0; } 2009fe4: 81 c7 e0 08 ret 2009fe8: 81 e8 00 00 restore 02002fd8 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 2002fd8: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2002fdc: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2002fe0: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2002fe4: 80 a0 a0 01 cmp %g2, 1 2002fe8: 22 80 00 08 be,a 2003008 2002fec: f0 20 60 5c st %i0, [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( ENOTDIR ); 2002ff0: 40 00 3e df call 2012b6c <__errno> <== NOT EXECUTED 2002ff4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002ff8: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 2002ffc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003000: 81 c7 e0 08 ret <== NOT EXECUTED 2003004: 81 e8 00 00 restore <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 2003008: 81 c7 e0 08 ret 200300c: 91 e8 20 00 restore %g0, 0, %o0 020039c0 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 20039c0: 9d e3 bf a0 save %sp, -96, %sp assert( the_jnode ); 20039c4: 80 a6 20 00 cmp %i0, 0 20039c8: 12 80 00 0a bne 20039f0 20039cc: 21 00 80 8d sethi %hi(0x2023400), %l0 20039d0: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 20039d4: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 20039d8: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 20039dc: 90 12 21 48 or %o0, 0x148, %o0 <== NOT EXECUTED 20039e0: 94 12 a3 38 or %o2, 0x338, %o2 <== NOT EXECUTED 20039e4: 96 12 e1 98 or %o3, 0x198, %o3 <== NOT EXECUTED 20039e8: 10 80 00 3b b 2003ad4 <== NOT EXECUTED 20039ec: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); 20039f0: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 20039f4: 90 06 20 0c add %i0, 0xc, %o0 20039f8: 40 00 3a 26 call 2012290 20039fc: d2 00 60 08 ld [ %g1 + 8 ], %o1 switch( the_jnode->type ) { 2003a00: d4 06 20 48 ld [ %i0 + 0x48 ], %o2 2003a04: 82 02 bf ff add %o2, -1, %g1 2003a08: 80 a0 60 06 cmp %g1, 6 2003a0c: 38 80 00 42 bgu,a 2003b14 2003a10: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 <== NOT EXECUTED 2003a14: 83 28 60 02 sll %g1, 2, %g1 2003a18: 05 00 80 0e sethi %hi(0x2003800), %g2 2003a1c: 84 10 a1 68 or %g2, 0x168, %g2 ! 2003968 2003a20: c2 00 80 01 ld [ %g2 + %g1 ], %g1 2003a24: 81 c0 40 00 jmp %g1 2003a28: 01 00 00 00 nop case IMFS_DIRECTORY: fprintf(stdout, "/" ); 2003a2c: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 2003a30: 90 10 20 2f mov 0x2f, %o0 2003a34: 40 00 39 d3 call 2012180 2003a38: d2 00 60 08 ld [ %g1 + 8 ], %o1 break; 2003a3c: 10 80 00 3c b 2003b2c 2003a40: 31 00 80 86 sethi %hi(0x2021800), %i0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 2003a44: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 2003a48: 13 00 80 86 sethi %hi(0x2021800), %o1 2003a4c: d6 06 20 54 ld [ %i0 + 0x54 ], %o3 2003a50: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003a54: d4 06 20 50 ld [ %i0 + 0x50 ], %o2 2003a58: 10 80 00 08 b 2003a78 2003a5c: 92 12 61 a8 or %o1, 0x1a8, %o1 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 2003a60: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 <== NOT EXECUTED 2003a64: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED 2003a68: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2003a6c: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED 2003a70: 13 00 80 86 sethi %hi(0x2021800), %o1 <== NOT EXECUTED 2003a74: 92 12 61 c0 or %o1, 0x1c0, %o1 ! 20219c0 <== NOT EXECUTED 2003a78: 40 00 39 a8 call 2012118 2003a7c: 31 00 80 86 sethi %hi(0x2021800), %i0 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 2003a80: 30 80 00 2b b,a 2003b2c the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 2003a84: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 2003a88: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 2003a8c: d0 00 60 08 ld [ %g1 + 8 ], %o0 2003a90: 13 00 80 86 sethi %hi(0x2021800), %o1 2003a94: 40 00 39 a1 call 2012118 2003a98: 92 12 61 d0 or %o1, 0x1d0, %o1 ! 20219d0 (uint32_t)the_jnode->info.file.size ); #endif break; 2003a9c: 10 80 00 24 b 2003b2c 2003aa0: 31 00 80 86 sethi %hi(0x2021800), %i0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 2003aa4: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 <== NOT EXECUTED 2003aa8: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003aac: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2003ab0: 40 00 39 f8 call 2012290 <== NOT EXECUTED 2003ab4: 90 12 21 e0 or %o0, 0x1e0, %o0 <== NOT EXECUTED assert(0); 2003ab8: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED 2003abc: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003ac0: 15 00 80 86 sethi %hi(0x2021800), %o2 <== NOT EXECUTED 2003ac4: 17 00 80 86 sethi %hi(0x2021800), %o3 <== NOT EXECUTED 2003ac8: 90 12 21 48 or %o0, 0x148, %o0 <== NOT EXECUTED 2003acc: 94 12 a3 38 or %o2, 0x338, %o2 <== NOT EXECUTED 2003ad0: 96 12 e1 f8 or %o3, 0x1f8, %o3 <== NOT EXECUTED 2003ad4: 40 00 02 16 call 200432c <__assert_func> <== NOT EXECUTED 2003ad8: 01 00 00 00 nop <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 2003adc: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 <== NOT EXECUTED 2003ae0: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003ae4: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2003ae8: 40 00 39 ea call 2012290 <== NOT EXECUTED 2003aec: 90 12 21 e0 or %o0, 0x1e0, %o0 <== NOT EXECUTED assert(0); 2003af0: 10 bf ff f3 b 2003abc <== NOT EXECUTED 2003af4: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 2003af8: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 <== NOT EXECUTED 2003afc: 11 00 80 86 sethi %hi(0x2021800), %o0 <== NOT EXECUTED 2003b00: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED 2003b04: 40 00 39 e3 call 2012290 <== NOT EXECUTED 2003b08: 90 12 22 00 or %o0, 0x200, %o0 <== NOT EXECUTED assert(0); 2003b0c: 10 bf ff ec b 2003abc <== NOT EXECUTED 2003b10: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 2003b14: 13 00 80 86 sethi %hi(0x2021800), %o1 <== NOT EXECUTED 2003b18: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2003b1c: 40 00 39 7f call 2012118 <== NOT EXECUTED 2003b20: 92 12 62 18 or %o1, 0x218, %o1 <== NOT EXECUTED assert(0); 2003b24: 10 bf ff e6 b 2003abc <== NOT EXECUTED 2003b28: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED break; } puts(""); 2003b2c: 40 00 40 ca call 2013e54 2003b30: 91 ee 20 f8 restore %i0, 0xf8, %o0 2003b34: 01 00 00 00 nop 0200301c : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 200301c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; int i; node = loc->node_access; 2003020: c2 06 00 00 ld [ %i0 ], %g1 if ( node->type != IMFS_SYM_LINK ) 2003024: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2003028: 80 a0 a0 04 cmp %g2, 4 200302c: 02 80 00 0a be 2003054 2003030: b0 10 20 00 clr %i0 rtems_set_errno_and_return_minus_one( EINVAL ); 2003034: 40 00 3e ce call 2012b6c <__errno> <== NOT EXECUTED 2003038: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200303c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2003040: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003044: 81 c7 e0 08 ret <== NOT EXECUTED 2003048: 81 e8 00 00 restore <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 200304c: c4 2e 40 18 stb %g2, [ %i1 + %i0 ] node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 2003050: b0 06 20 01 inc %i0 2003054: 80 a6 00 1a cmp %i0, %i2 2003058: 1a 80 00 07 bcc 2003074 200305c: 01 00 00 00 nop 2003060: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 2003064: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3 2003068: 80 a0 e0 00 cmp %g3, 0 200306c: 12 bf ff f8 bne 200304c 2003070: c4 08 80 18 ldub [ %g2 + %i0 ], %g2 buf[i] = node->info.sym_link.name[i]; return i; } 2003074: 81 c7 e0 08 ret 2003078: 81 e8 00 00 restore 0200307c : rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { 200307c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 2003080: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 2003084: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 2003088: 90 04 20 0c add %l0, 0xc, %o0 <== NOT EXECUTED 200308c: 40 00 42 8b call 2013ab8 <== NOT EXECUTED 2003090: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 2003094: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 2003098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200309c: 22 80 00 05 be,a 20030b0 <== NOT EXECUTED 20030a0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 20030a4: 40 00 13 31 call 2007d68 <_Chain_Extract> <== NOT EXECUTED 20030a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 20030ac: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 20030b0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 20030b4: 90 00 60 50 add %g1, 0x50, %o0 <== NOT EXECUTED 20030b8: 40 00 13 20 call 2007d38 <_Chain_Append> <== NOT EXECUTED 20030bc: c2 24 20 08 st %g1, [ %l0 + 8 ] <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 20030c0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20030c4: 40 00 01 ef call 2003880 <== NOT EXECUTED 20030c8: 92 10 20 00 clr %o1 <== NOT EXECUTED 20030cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20030d0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED return 0; } 20030d4: 81 c7 e0 08 ret <== NOT EXECUTED 20030d8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02009ff8 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2009ff8: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2009ffc: 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 ) { 200a000: c2 04 20 08 ld [ %l0 + 8 ], %g1 200a004: 80 a0 60 00 cmp %g1, 0 200a008: 22 80 00 06 be,a 200a020 200a00c: 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 ); 200a010: 40 00 03 7b call 200adfc <_Chain_Extract> 200a014: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 200a018: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200a01c: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 200a020: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 200a024: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 200a028: 90 07 bf f8 add %fp, -8, %o0 200a02c: 40 00 00 ff call 200a428 200a030: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 200a034: 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) ) { 200a038: 90 10 00 10 mov %l0, %o0 200a03c: 40 00 01 33 call 200a508 200a040: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 200a044: 80 a2 20 00 cmp %o0, 0 200a048: 12 80 00 18 bne 200a0a8 200a04c: 01 00 00 00 nop 200a050: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 200a054: 80 a0 60 00 cmp %g1, 0 200a058: 12 80 00 14 bne 200a0a8 200a05c: 03 00 80 65 sethi %hi(0x2019400), %g1 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 200a060: c2 00 60 84 ld [ %g1 + 0x84 ], %g1 ! 2019484 200a064: c4 06 40 00 ld [ %i1 ], %g2 200a068: c6 00 60 04 ld [ %g1 + 4 ], %g3 200a06c: 80 a0 c0 02 cmp %g3, %g2 200a070: 22 80 00 02 be,a 200a078 200a074: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 200a078: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 200a07c: 80 a0 60 04 cmp %g1, 4 200a080: 12 80 00 08 bne 200a0a0 200a084: 01 00 00 00 nop if ( the_jnode->info.sym_link.name ) 200a088: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 200a08c: 80 a2 20 00 cmp %o0, 0 200a090: 02 80 00 04 be 200a0a0 200a094: 01 00 00 00 nop free( (void*) the_jnode->info.sym_link.name ); 200a098: 40 00 00 7f call 200a294 200a09c: 01 00 00 00 nop } free( the_jnode ); 200a0a0: 40 00 00 7d call 200a294 200a0a4: 90 10 00 10 mov %l0, %o0 } return 0; } 200a0a8: 81 c7 e0 08 ret 200a0ac: 91 e8 20 00 restore %g0, 0, %o0 0200a0c8 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 200a0c8: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 200a0cc: c2 06 00 00 ld [ %i0 ], %g1 switch ( the_jnode->type ) { 200a0d0: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 200a0d4: 84 00 bf fe add %g2, -2, %g2 200a0d8: 80 a0 a0 05 cmp %g2, 5 200a0dc: 18 80 00 10 bgu 200a11c 200a0e0: 85 28 a0 02 sll %g2, 2, %g2 200a0e4: 07 00 80 28 sethi %hi(0x200a000), %g3 200a0e8: 86 10 e0 b0 or %g3, 0xb0, %g3 ! 200a0b0 200a0ec: c4 00 c0 02 ld [ %g3 + %g2 ], %g2 200a0f0: 81 c0 80 00 jmp %g2 200a0f4: 01 00 00 00 nop rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 200a0f8: 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; 200a0fc: 10 80 00 0e b 200a134 200a100: c4 3e 60 18 std %g2, [ %i1 + 0x18 ] case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 200a104: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2 break; 200a108: 10 80 00 0b b 200a134 200a10c: c4 3e 60 20 std %g2, [ %i1 + 0x20 ] case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 200a110: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED break; 200a114: 10 80 00 08 b 200a134 <== NOT EXECUTED 200a118: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a11c: 40 00 0c d8 call 200d47c <__errno> <== NOT EXECUTED 200a120: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200a124: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200a128: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 200a12c: 81 c7 e0 08 ret <== NOT EXECUTED 200a130: 81 e8 00 00 restore <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; 200a134: c6 10 60 2e lduh [ %g1 + 0x2e ], %g3 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200a138: 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; 200a13c: c6 36 60 0c sth %g3, [ %i1 + 0xc ] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 200a140: 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; 200a144: 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; 200a148: 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; 200a14c: 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; 200a150: 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; 200a154: 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; 200a158: 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; 200a15c: 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; 200a160: c4 26 60 30 st %g2, [ %i1 + 0x30 ] buf->st_ctime = the_jnode->stat_ctime; 200a164: 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; 200a168: 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; 200a16c: 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; 200a170: 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; } 200a174: 81 c7 e0 08 ret 200a178: 91 e8 20 00 restore %g0, 0, %o0 020030dc : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 20030dc: 9d e3 bf 58 save %sp, -168, %sp int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 20030e0: 40 00 42 41 call 20139e4 20030e4: 90 10 00 1a mov %i2, %o0 20030e8: 96 07 bf fc add %fp, -4, %o3 20030ec: 92 10 00 08 mov %o0, %o1 20030f0: a0 07 bf b8 add %fp, -72, %l0 20030f4: 90 10 00 1a mov %i2, %o0 20030f8: 40 00 30 60 call 200f278 20030fc: 94 10 00 10 mov %l0, %o2 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 2003100: 40 00 42 24 call 2013990 2003104: 90 10 00 19 mov %i1, %o0 2003108: d0 27 bf e0 st %o0, [ %fp + -32 ] if (info.sym_link.name == NULL) { 200310c: 80 a2 20 00 cmp %o0, 0 2003110: 12 80 00 08 bne 2003130 2003114: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one(ENOMEM); 2003118: 40 00 3e 95 call 2012b6c <__errno> <== NOT EXECUTED 200311c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2003120: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2003124: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003128: 81 c7 e0 08 ret 200312c: 81 e8 00 00 restore * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 2003130: 94 10 00 10 mov %l0, %o2 2003134: 92 10 20 04 mov 4, %o1 2003138: 17 00 00 28 sethi %hi(0xa000), %o3 200313c: 98 07 bf e0 add %fp, -32, %o4 2003140: 96 12 e1 ff or %o3, 0x1ff, %o3 2003144: 40 00 2d 0e call 200e57c 2003148: b0 10 20 00 clr %i0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 200314c: 80 a2 20 00 cmp %o0, 0 2003150: 12 bf ff f6 bne 2003128 2003154: d0 07 bf e0 ld [ %fp + -32 ], %o0 free(info.sym_link.name); 2003158: 40 00 01 a0 call 20037d8 <== NOT EXECUTED 200315c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 2003160: 40 00 3e 83 call 2012b6c <__errno> <== NOT EXECUTED 2003164: 01 00 00 00 nop <== NOT EXECUTED 2003168: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 200316c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED } return 0; } 2003170: 81 c7 e0 08 ret <== NOT EXECUTED 2003174: 81 e8 00 00 restore <== NOT EXECUTED 02003178 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 2003178: 9d e3 bf 80 save %sp, -128, %sp IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 200317c: e0 06 40 00 ld [ %i1 ], %l0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 2003180: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2003184: 80 a0 60 03 cmp %g1, 3 2003188: 12 80 00 29 bne 200322c 200318c: a4 10 00 18 mov %i0, %l2 if ( !node->info.hard_link.link_node ) 2003190: e6 04 20 50 ld [ %l0 + 0x50 ], %l3 2003194: 80 a4 e0 00 cmp %l3, 0 2003198: 12 80 00 08 bne 20031b8 200319c: a2 07 bf e4 add %fp, -28, %l1 rtems_set_errno_and_return_minus_one( EINVAL ); 20031a0: 40 00 3e 73 call 2012b6c <__errno> <== NOT EXECUTED 20031a4: 01 00 00 00 nop <== NOT EXECUTED 20031a8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 20031ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20031b0: 10 80 00 24 b 2003240 <== NOT EXECUTED 20031b4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED the_link = *loc; 20031b8: 92 10 00 19 mov %i1, %o1 20031bc: 94 10 20 14 mov 0x14, %o2 20031c0: 40 00 40 a6 call 2013458 20031c4: 90 10 00 11 mov %l1, %o0 the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 20031c8: 90 10 00 11 mov %l1, %o0 20031cc: 40 00 2d 39 call 200e6b0 20031d0: e6 27 bf e4 st %l3, [ %fp + -28 ] /* * If removing the last hard link to a node, then we need * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) 20031d4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 20031d8: c6 10 60 30 lduh [ %g1 + 0x30 ], %g3 20031dc: 80 a0 e0 01 cmp %g3, 1 20031e0: 12 80 00 0c bne 2003210 20031e4: 84 00 ff ff add %g3, -1, %g2 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 20031e8: c2 07 bf ec ld [ %fp + -20 ], %g1 20031ec: 92 10 00 11 mov %l1, %o1 20031f0: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 20031f4: 9f c0 40 00 call %g1 20031f8: 90 10 00 18 mov %i0, %o0 if ( result != 0 ) 20031fc: 80 a2 20 00 cmp %o0, 0 2003200: 02 80 00 0b be 200322c 2003204: 90 10 3f ff mov -1, %o0 */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } 2003208: 81 c7 e0 08 ret 200320c: 91 e8 00 08 restore %g0, %o0, %o0 return -1; } else { node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); 2003210: 90 07 bf f8 add %fp, -8, %o0 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 2003214: c4 30 60 30 sth %g2, [ %g1 + 0x30 ] IMFS_update_ctime( node->info.hard_link.link_node ); 2003218: 40 00 01 9a call 2003880 200321c: 92 10 20 00 clr %o1 2003220: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 2003224: c4 07 bf f8 ld [ %fp + -8 ], %g2 2003228: c4 20 60 44 st %g2, [ %g1 + 0x44 ] /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 200322c: c2 06 60 08 ld [ %i1 + 8 ], %g1 2003230: 90 10 00 12 mov %l2, %o0 2003234: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2003238: 9f c0 40 00 call %g1 200323c: 92 10 00 19 mov %i1, %o1 return result; } 2003240: b0 10 00 08 mov %o0, %i0 2003244: 81 c7 e0 08 ret 2003248: 81 e8 00 00 restore 0200324c : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 200324c: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 2003250: c2 06 20 08 ld [ %i0 + 8 ], %g1 /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 2003254: c4 00 60 48 ld [ %g1 + 0x48 ], %g2 2003258: 80 a0 a0 01 cmp %g2, 1 200325c: 22 80 00 06 be,a 2003274 2003260: c4 00 60 5c ld [ %g1 + 0x5c ], %g2 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2003264: 40 00 3e 42 call 2012b6c <__errno> <== NOT EXECUTED 2003268: 01 00 00 00 nop <== NOT EXECUTED 200326c: 10 80 00 08 b 200328c <== NOT EXECUTED 2003270: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 2003274: 80 a0 a0 00 cmp %g2, 0 2003278: 32 80 00 08 bne,a 2003298 200327c: c0 20 60 5c clr [ %g1 + 0x5c ] rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 2003280: 40 00 3e 3b call 2012b6c <__errno> <== NOT EXECUTED 2003284: 01 00 00 00 nop <== NOT EXECUTED 2003288: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 200328c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2003290: 81 c7 e0 08 ret <== NOT EXECUTED 2003294: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 2003298: 81 c7 e0 08 ret 200329c: 91 e8 20 00 restore %g0, 0, %o0 020022a4 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 20022a4: 9d e3 bf a0 save %sp, -96, %sp #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 20022a8: 03 00 80 66 sethi %hi(0x2019800), %g1 20022ac: c2 00 61 a8 ld [ %g1 + 0x1a8 ], %g1 ! 20199a8 20022b0: 80 a0 60 00 cmp %g1, 0 20022b4: 02 80 00 05 be 20022c8 20022b8: 01 00 00 00 nop (*rtems_malloc_statistics_helpers->initialize)(); 20022bc: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20022c0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20022c4: 01 00 00 00 nop <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 20022c8: 40 00 21 32 call 200a790 20022cc: 01 00 00 00 nop /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 20022d0: 03 00 80 66 sethi %hi(0x2019800), %g1 20022d4: c2 00 61 ac ld [ %g1 + 0x1ac ], %g1 ! 20199ac 20022d8: 80 a0 60 00 cmp %g1, 0 20022dc: 02 80 00 08 be 20022fc 20022e0: 90 10 00 18 mov %i0, %o0 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 20022e4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 20022e8: b2 06 00 19 add %i0, %i1, %i1 <== NOT EXECUTED /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 20022ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20022f0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 20022f4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20022f8: b2 26 40 08 sub %i1, %o0, %i1 <== NOT EXECUTED * of the time under UNIX because zero'ing memory when it is first * given to a process eliminates the chance of a process seeing data * left over from another process. This would be a security violation. */ if ( 20022fc: 03 00 80 66 sethi %hi(0x2019800), %g1 2002300: c2 08 61 a5 ldub [ %g1 + 0x1a5 ], %g1 ! 20199a5 2002304: 80 a0 60 00 cmp %g1, 0 2002308: 12 80 00 0c bne 2002338 200230c: 03 00 80 66 sethi %hi(0x2019800), %g1 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 2002310: 03 00 80 65 sethi %hi(0x2019400), %g1 2002314: c2 08 60 50 ldub [ %g1 + 0x50 ], %g1 ! 2019450 2002318: 80 a0 60 00 cmp %g1, 0 200231c: 02 80 00 07 be 2002338 2002320: 03 00 80 66 sethi %hi(0x2019800), %g1 ) { memset( heap_begin, 0, heap_size ); 2002324: 90 10 00 18 mov %i0, %o0 2002328: 92 10 20 00 clr %o1 200232c: 40 00 2e ce call 200de64 2002330: 94 10 00 19 mov %i1, %o2 * Unfortunately we cannot use assert if this fails because if this * has failed we do not have a heap and if we do not have a heap * STDIO cannot work because there will be no buffers. */ if ( !rtems_unified_work_area ) { 2002334: 03 00 80 66 sethi %hi(0x2019800), %g1 2002338: c2 08 61 a5 ldub [ %g1 + 0x1a5 ], %g1 ! 20199a5 200233c: 80 a0 60 00 cmp %g1, 0 2002340: 12 80 00 0c bne 2002370 2002344: 03 00 80 64 sethi %hi(0x2019000), %g1 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 2002348: d0 00 63 80 ld [ %g1 + 0x380 ], %o0 ! 2019380 200234c: 92 10 00 18 mov %i0, %o1 2002350: 94 10 00 19 mov %i1, %o2 2002354: 40 00 10 3a call 200643c <_Heap_Initialize> 2002358: 96 10 20 08 mov 8, %o3 RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 200235c: 80 a2 20 00 cmp %o0, 0 2002360: 12 80 00 05 bne 2002374 2002364: 33 00 80 67 sethi %hi(0x2019c00), %i1 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 2002368: 40 00 0e 41 call 2005c6c <== NOT EXECUTED 200236c: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 2002370: 33 00 80 67 sethi %hi(0x2019c00), %i1 2002374: 03 00 80 64 sethi %hi(0x2019000), %g1 2002378: f0 06 60 30 ld [ %i1 + 0x30 ], %i0 200237c: 40 00 13 3c call 200706c <_Protected_heap_Get_size> 2002380: d0 00 63 80 ld [ %g1 + 0x380 ], %o0 2002384: 90 02 00 18 add %o0, %i0, %o0 2002388: d0 26 60 30 st %o0, [ %i1 + 0x30 ] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 200238c: 81 c7 e0 08 ret 2002390: 81 e8 00 00 restore 02003ee8 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2003ee8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 2003eec: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 2003ef0: 02 80 00 49 be 2004014 <== NOT EXECUTED 2003ef4: 03 00 81 8d sethi %hi(0x2063400), %g1 <== NOT EXECUTED return; if ( !print_handler ) 2003ef8: e4 00 63 bc ld [ %g1 + 0x3bc ], %l2 ! 20637bc <== NOT EXECUTED 2003efc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2003f00: 02 80 00 45 be 2004014 <== NOT EXECUTED 2003f04: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2003f08: 32 80 00 0a bne,a 2003f30 <== NOT EXECUTED 2003f0c: e8 06 21 48 ld [ %i0 + 0x148 ], %l4 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 2003f10: 23 00 81 98 sethi %hi(0x2066000), %l1 <== NOT EXECUTED 2003f14: a2 14 63 a0 or %l1, 0x3a0, %l1 ! 20663a0 <== NOT EXECUTED 2003f18: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED 2003f1c: a8 10 20 00 clr %l4 <== NOT EXECUTED 2003f20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f24: 12 80 00 04 bne 2003f34 <== NOT EXECUTED 2003f28: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003f2c: 30 80 00 41 b,a 2004030 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 2003f30: a2 06 20 c0 add %i0, 0xc0, %l1 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 2003f34: ea 04 60 04 ld [ %l1 + 4 ], %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2003f38: e6 04 40 00 ld [ %l1 ], %l3 <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 2003f3c: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2003f40: a6 04 ff f0 add %l3, -16, %l3 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 2003f44: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2003f48: 7f ff ff d8 call 2003ea8 <== NOT EXECUTED 2003f4c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED if ( high_water_mark ) 2003f50: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 2003f54: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2003f58: a0 05 40 13 add %l5, %l3, %l0 <== NOT EXECUTED else used = 0; if ( the_thread ) { 2003f5c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); 2003f60: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) 2003f64: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { 2003f68: 02 80 00 10 be 2003fa8 <== NOT EXECUTED 2003f6c: 03 00 81 8d sethi %hi(0x2063400), %g1 <== NOT EXECUTED (*print_handler)( 2003f70: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED 2003f74: ec 00 63 b8 ld [ %g1 + 0x3b8 ], %l6 <== NOT EXECUTED 2003f78: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 2003f7c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED 2003f80: 40 00 18 7a call 200a168 <== NOT EXECUTED 2003f84: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED 2003f88: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED 2003f8c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED 2003f90: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 2003f94: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED 2003f98: 9f c4 80 00 call %l2 <== NOT EXECUTED 2003f9c: 92 12 61 f0 or %o1, 0x1f0, %o1 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 2003fa0: 10 80 00 08 b 2003fc0 <== NOT EXECUTED 2003fa4: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED "0x%08" PRIx32 " %4s", the_thread->Object.id, rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); 2003fa8: d0 00 63 b8 ld [ %g1 + 0x3b8 ], %o0 <== NOT EXECUTED 2003fac: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 2003fb0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED 2003fb4: 9f c4 80 00 call %l2 <== NOT EXECUTED 2003fb8: 92 12 62 00 or %o1, 0x200, %o1 <== NOT EXECUTED } (*print_handler)( 2003fbc: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED 2003fc0: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED 2003fc4: 25 00 81 8d sethi %hi(0x2063400), %l2 <== NOT EXECUTED 2003fc8: 23 00 81 8d sethi %hi(0x2063400), %l1 <== NOT EXECUTED 2003fcc: c2 04 a3 bc ld [ %l2 + 0x3bc ], %g1 <== NOT EXECUTED 2003fd0: d0 04 63 b8 ld [ %l1 + 0x3b8 ], %o0 <== NOT EXECUTED 2003fd4: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED 2003fd8: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED 2003fdc: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED 2003fe0: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED 2003fe4: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 2003fe8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003fec: 92 12 62 10 or %o1, 0x210, %o1 ! 2058610 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 2003ff0: 03 00 81 8d sethi %hi(0x2063400), %g1 <== NOT EXECUTED 2003ff4: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 20637b4 <== NOT EXECUTED 2003ff8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003ffc: 12 80 00 08 bne 200401c <== NOT EXECUTED 2004000: c2 04 a3 bc ld [ %l2 + 0x3bc ], %g1 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 2004004: d0 04 63 b8 ld [ %l1 + 0x3b8 ], %o0 <== NOT EXECUTED 2004008: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 200400c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004010: 92 12 62 30 or %o1, 0x230, %o1 ! 2058630 <== NOT EXECUTED 2004014: 81 c7 e0 08 ret <== NOT EXECUTED 2004018: 81 e8 00 00 restore <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 200401c: d0 04 63 b8 ld [ %l1 + 0x3b8 ], %o0 <== NOT EXECUTED 2004020: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 2004024: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED 2004028: 9f c0 40 00 call %g1 <== NOT EXECUTED 200402c: 92 12 62 40 or %o1, 0x240, %o1 <== NOT EXECUTED 2004030: 81 c7 e0 08 ret <== NOT EXECUTED 2004034: 81 e8 00 00 restore <== NOT EXECUTED 02003ea8 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2003ea8: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2003eac: 84 0a 7f fc and %o1, -4, %g2 <== NOT EXECUTED if (*base != U32_PATTERN) 2003eb0: 03 29 69 69 sethi %hi(0xa5a5a400), %g1 <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 2003eb4: 84 02 00 02 add %o0, %g2, %g2 <== NOT EXECUTED 2003eb8: 10 80 00 06 b 2003ed0 <== NOT EXECUTED 2003ebc: 82 10 61 a5 or %g1, 0x1a5, %g1 <== NOT EXECUTED if (*base != U32_PATTERN) 2003ec0: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2003ec4: 12 80 00 07 bne 2003ee0 <== NOT EXECUTED 2003ec8: 01 00 00 00 nop <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 2003ecc: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2003ed0: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 2003ed4: 2a bf ff fb bcs,a 2003ec0 <== NOT EXECUTED 2003ed8: c6 02 00 00 ld [ %o0 ], %g3 <== NOT EXECUTED 2003edc: 90 10 20 00 clr %o0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 2003ee0: 81 c3 e0 08 retl <== NOT EXECUTED 2003ee4: 01 00 00 00 nop 020040ac : * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { 20040ac: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); 20040b0: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 20040b4: e0 06 20 c4 ld [ %i0 + 0xc4 ], %l0 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 20040b8: 40 00 0b 4f call 2006df4 <== NOT EXECUTED 20040bc: 90 12 22 b0 or %o0, 0x2b0, %o0 <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 20040c0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 20040c4: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED 20040c8: 40 00 0b 4b call 2006df4 <== NOT EXECUTED 20040cc: 90 12 22 c0 or %o0, 0x2c0, %o0 ! 20586c0 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 20040d0: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED 20040d4: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED 20040d8: 40 00 0b 47 call 2006df4 <== NOT EXECUTED 20040dc: 90 12 22 e0 or %o0, 0x2e0, %o0 ! 20586e0 <== NOT EXECUTED printk( 20040e0: d2 06 20 0c ld [ %i0 + 0xc ], %o1 <== NOT EXECUTED 20040e4: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED 20040e8: 40 00 0b 43 call 2006df4 <== NOT EXECUTED 20040ec: 90 12 22 f8 or %o0, 0x2f8, %o0 ! 20586f8 <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 20040f0: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED 20040f4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED 20040f8: 40 00 18 1c call 200a168 <== NOT EXECUTED 20040fc: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED 2004100: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2004104: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED 2004108: 40 00 0b 3b call 2006df4 <== NOT EXECUTED 200410c: 90 12 23 10 or %o0, 0x310, %o0 ! 2058710 <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 2004110: d2 06 20 c0 ld [ %i0 + 0xc0 ], %o1 <== NOT EXECUTED 2004114: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2 <== NOT EXECUTED 2004118: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED 200411c: 96 02 80 09 add %o2, %o1, %o3 <== NOT EXECUTED 2004120: 40 00 0b 35 call 2006df4 <== NOT EXECUTED 2004124: 90 12 23 28 or %o0, 0x328, %o0 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { 2004128: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED 200412c: 12 80 00 07 bne 2004148 <== NOT EXECUTED 2004130: 11 00 81 61 sethi %hi(0x2058400), %o0 <== NOT EXECUTED printk( 2004134: 96 04 20 18 add %l0, 0x18, %o3 <== NOT EXECUTED 2004138: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED 200413c: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED 2004140: 40 00 0b 2d call 2006df4 <== NOT EXECUTED 2004144: 94 04 20 08 add %l0, 8, %o2 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 2004148: 40 00 1a 3d call 200aa3c <== NOT EXECUTED 200414c: 90 10 20 81 mov 0x81, %o0 <== NOT EXECUTED 2004150: 01 00 00 00 nop 0200ae9c <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 200ae9c: 9d e3 bf a0 save %sp, -96, %sp { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 200aea0: 03 00 80 67 sethi %hi(0x2019c00), %g1 200aea4: c2 00 62 b0 ld [ %g1 + 0x2b0 ], %g1 ! 2019eb0 <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 200aea8: c0 20 60 34 clr [ %g1 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 200aeac: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 200aeb0: 80 a0 a0 00 cmp %g2, 0 200aeb4: 22 80 00 31 be,a 200af78 <_CORE_mutex_Seize_interrupt_trylock+0xdc> 200aeb8: c4 06 20 5c ld [ %i0 + 0x5c ], %g2 the_mutex->lock = CORE_MUTEX_LOCKED; 200aebc: c0 26 20 50 clr [ %i0 + 0x50 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200aec0: c6 00 60 08 ld [ %g1 + 8 ], %g3 */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 200aec4: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 200aec8: c6 26 20 60 st %g3, [ %i0 + 0x60 ] executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; 200aecc: c2 26 20 5c st %g1, [ %i0 + 0x5c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 200aed0: 86 10 20 01 mov 1, %g3 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 200aed4: 80 a0 a0 02 cmp %g2, 2 200aed8: 02 80 00 05 be 200aeec <_CORE_mutex_Seize_interrupt_trylock+0x50> 200aedc: c6 26 20 54 st %g3, [ %i0 + 0x54 ] 200aee0: 80 a0 a0 03 cmp %g2, 3 200aee4: 12 80 00 07 bne 200af00 <_CORE_mutex_Seize_interrupt_trylock+0x64> 200aee8: 01 00 00 00 nop _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200aeec: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200aef0: 80 a0 a0 03 cmp %g2, 3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 200aef4: 84 00 e0 01 add %g3, 1, %g2 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 200aef8: 02 80 00 03 be 200af04 <_CORE_mutex_Seize_interrupt_trylock+0x68> 200aefc: c4 20 60 1c st %g2, [ %g1 + 0x1c ] _ISR_Enable( *level_p ); 200af00: 30 80 00 2d b,a 200afb4 <_CORE_mutex_Seize_interrupt_trylock+0x118> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 200af04: c4 06 20 4c ld [ %i0 + 0x4c ], %g2 current = executing->current_priority; 200af08: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 if ( current == ceiling ) { 200af0c: 80 a0 c0 02 cmp %g3, %g2 200af10: 12 80 00 03 bne 200af1c <_CORE_mutex_Seize_interrupt_trylock+0x80> 200af14: 01 00 00 00 nop _ISR_Enable( *level_p ); 200af18: 30 80 00 27 b,a 200afb4 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; } if ( current > ceiling ) { 200af1c: 08 80 00 0f bleu 200af58 <_CORE_mutex_Seize_interrupt_trylock+0xbc> 200af20: 84 10 20 06 mov 6, %g2 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 200af24: 03 00 80 67 sethi %hi(0x2019c00), %g1 200af28: c4 00 61 f0 ld [ %g1 + 0x1f0 ], %g2 ! 2019df0 <_Thread_Dispatch_disable_level> 200af2c: 84 00 a0 01 inc %g2 200af30: c4 20 61 f0 st %g2, [ %g1 + 0x1f0 ] _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 200af34: 7f ff db 76 call 2001d0c 200af38: d0 06 40 00 ld [ %i1 ], %o0 _Thread_Change_priority( 200af3c: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 200af40: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 200af44: 7f ff f0 61 call 20070c8 <_Thread_Change_priority> 200af48: 94 10 20 00 clr %o2 the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 200af4c: 7f ff f1 ea call 20076f4 <_Thread_Enable_dispatch> 200af50: b0 10 20 00 clr %i0 200af54: 30 80 00 1b b,a 200afc0 <_CORE_mutex_Seize_interrupt_trylock+0x124> return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 200af58: c4 20 60 34 st %g2, [ %g1 + 0x34 ] the_mutex->lock = CORE_MUTEX_UNLOCKED; 200af5c: 84 10 20 01 mov 1, %g2 the_mutex->nest_count = 0; /* undo locking above */ 200af60: c0 26 20 54 clr [ %i0 + 0x54 ] _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 200af64: c4 26 20 50 st %g2, [ %i0 + 0x50 ] the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 200af68: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 200af6c: 84 00 bf ff add %g2, -1, %g2 200af70: c4 20 60 1c st %g2, [ %g1 + 0x1c ] _ISR_Enable( *level_p ); 200af74: 30 80 00 10 b,a 200afb4 <_CORE_mutex_Seize_interrupt_trylock+0x118> /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { 200af78: 80 a0 80 01 cmp %g2, %g1 200af7c: 12 80 00 13 bne 200afc8 <_CORE_mutex_Seize_interrupt_trylock+0x12c> 200af80: 01 00 00 00 nop switch ( the_mutex->Attributes.lock_nesting_behavior ) { 200af84: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200af88: 80 a0 60 00 cmp %g1, 0 200af8c: 22 80 00 07 be,a 200afa8 <_CORE_mutex_Seize_interrupt_trylock+0x10c> 200af90: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 200af94: 80 a0 60 01 cmp %g1, 1 200af98: 12 80 00 0c bne 200afc8 <_CORE_mutex_Seize_interrupt_trylock+0x12c> 200af9c: 82 10 20 02 mov 2, %g1 case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 200afa0: 10 80 00 05 b 200afb4 <_CORE_mutex_Seize_interrupt_trylock+0x118> <== NOT EXECUTED 200afa4: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 200afa8: 82 00 60 01 inc %g1 200afac: c2 26 20 54 st %g1, [ %i0 + 0x54 ] _ISR_Enable( *level_p ); 200afb0: 30 80 00 01 b,a 200afb4 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; _ISR_Enable( *level_p ); 200afb4: 7f ff db 56 call 2001d0c 200afb8: d0 06 40 00 ld [ %i1 ], %o0 200afbc: b0 10 20 00 clr %i0 200afc0: 81 c7 e0 08 ret 200afc4: 81 e8 00 00 restore return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 200afc8: 81 c7 e0 08 ret 200afcc: 91 e8 20 01 restore %g0, 1, %o0 02007ccc <_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 ) { 2007ccc: 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; 2007cd0: 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); 2007cd4: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 2007cd8: 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); 2007cdc: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2007ce0: 82 06 60 38 add %i1, 0x38, %g1 2007ce4: 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; 2007ce8: 2d 00 80 65 sethi %hi(0x2019400), %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 ]; 2007cec: 83 34 20 06 srl %l0, 6, %g1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2007cf0: 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 ]; 2007cf4: 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; 2007cf8: ac 15 a0 24 or %l6, 0x24, %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 ]; 2007cfc: 83 28 60 02 sll %g1, 2, %g1 block_state = the_thread_queue->state; 2007d00: 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 ]; 2007d04: a6 24 c0 01 sub %l3, %g1, %l3 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 2007d08: 12 80 00 28 bne 2007da8 <_Thread_queue_Enqueue_priority+0xdc> 2007d0c: 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; 2007d10: ac 04 e0 04 add %l3, 4, %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 2007d14: 7f ff e7 fa call 2001cfc 2007d18: 01 00 00 00 nop 2007d1c: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->first; 2007d20: a8 10 3f ff mov -1, %l4 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 2007d24: 10 80 00 10 b 2007d64 <_Thread_queue_Enqueue_priority+0x98> 2007d28: e2 04 c0 00 ld [ %l3 ], %l1 search_priority = search_thread->current_priority; if ( priority <= search_priority ) 2007d2c: 80 a4 00 14 cmp %l0, %l4 2007d30: 28 80 00 11 bleu,a 2007d74 <_Thread_queue_Enqueue_priority+0xa8> 2007d34: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 2007d38: 7f ff e7 f5 call 2001d0c 2007d3c: 90 10 00 12 mov %l2, %o0 2007d40: 7f ff e7 ef call 2001cfc 2007d44: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2007d48: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2007d4c: 80 8d 40 01 btst %l5, %g1 2007d50: 32 80 00 05 bne,a 2007d64 <_Thread_queue_Enqueue_priority+0x98> 2007d54: e2 04 40 00 ld [ %l1 ], %l1 _ISR_Enable( level ); 2007d58: 7f ff e7 ed call 2001d0c <== NOT EXECUTED 2007d5c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED goto restart_forward_search; 2007d60: 30 bf ff ed b,a 2007d14 <_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 ) ) { 2007d64: 80 a4 40 16 cmp %l1, %l6 2007d68: 32 bf ff f1 bne,a 2007d2c <_Thread_queue_Enqueue_priority+0x60> 2007d6c: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 2007d70: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2007d74: 80 a0 60 01 cmp %g1, 1 2007d78: 12 80 00 3c bne 2007e68 <_Thread_queue_Enqueue_priority+0x19c> 2007d7c: 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 ) 2007d80: 80 a4 00 14 cmp %l0, %l4 2007d84: 02 80 00 2e be 2007e3c <_Thread_queue_Enqueue_priority+0x170> 2007d88: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 2007d8c: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2007d90: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2007d94: 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; 2007d98: 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; 2007d9c: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2007da0: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007da4: 30 80 00 2d b,a 2007e58 <_Thread_queue_Enqueue_priority+0x18c> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 2007da8: 7f ff e7 d5 call 2001cfc 2007dac: 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; 2007db0: a8 05 20 01 inc %l4 _ISR_Disable( level ); 2007db4: a4 10 00 08 mov %o0, %l2 search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 2007db8: 10 80 00 10 b 2007df8 <_Thread_queue_Enqueue_priority+0x12c> 2007dbc: e2 04 e0 08 ld [ %l3 + 8 ], %l1 search_priority = search_thread->current_priority; if ( priority >= search_priority ) 2007dc0: 80 a4 00 14 cmp %l0, %l4 2007dc4: 3a 80 00 11 bcc,a 2007e08 <_Thread_queue_Enqueue_priority+0x13c> 2007dc8: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 2007dcc: 7f ff e7 d0 call 2001d0c 2007dd0: 90 10 00 12 mov %l2, %o0 2007dd4: 7f ff e7 ca call 2001cfc 2007dd8: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 2007ddc: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 2007de0: 80 8d 40 01 btst %l5, %g1 2007de4: 32 80 00 05 bne,a 2007df8 <_Thread_queue_Enqueue_priority+0x12c> 2007de8: e2 04 60 04 ld [ %l1 + 4 ], %l1 _ISR_Enable( level ); 2007dec: 7f ff e7 c8 call 2001d0c 2007df0: 90 10 00 12 mov %l2, %o0 goto restart_reverse_search; 2007df4: 30 bf ff ed b,a 2007da8 <_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 ) ) { 2007df8: 80 a4 40 13 cmp %l1, %l3 2007dfc: 32 bf ff f1 bne,a 2007dc0 <_Thread_queue_Enqueue_priority+0xf4> 2007e00: e8 04 60 14 ld [ %l1 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 2007e04: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 2007e08: 80 a0 60 01 cmp %g1, 1 2007e0c: 12 80 00 17 bne 2007e68 <_Thread_queue_Enqueue_priority+0x19c> 2007e10: 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 ) 2007e14: 80 a4 00 14 cmp %l0, %l4 2007e18: 02 80 00 09 be 2007e3c <_Thread_queue_Enqueue_priority+0x170> 2007e1c: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 2007e20: c2 04 40 00 ld [ %l1 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 2007e24: 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; 2007e28: 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; 2007e2c: 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; 2007e30: f2 24 40 00 st %i1, [ %l1 ] next_node->previous = the_node; 2007e34: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007e38: 30 80 00 08 b,a 2007e58 <_Thread_queue_Enqueue_priority+0x18c> 2007e3c: 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; 2007e40: c2 04 60 04 ld [ %l1 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 2007e44: e2 26 40 00 st %l1, [ %i1 ] the_node->previous = previous_node; 2007e48: 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; 2007e4c: 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; 2007e50: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 2007e54: f2 24 60 04 st %i1, [ %l1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 2007e58: 7f ff e7 ad call 2001d0c 2007e5c: b0 10 20 01 mov 1, %i0 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 2007e60: 81 c7 e0 08 ret 2007e64: 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; 2007e68: 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; 2007e6c: d0 26 80 00 st %o0, [ %i2 ] return the_thread_queue->sync_state; } 2007e70: 81 c7 e0 08 ret 2007e74: 81 e8 00 00 restore 02014bcc <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 2014bcc: 9d e3 bf 88 save %sp, -120, %sp static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2014bd0: 35 00 80 e6 sethi %hi(0x2039800), %i2 2014bd4: b2 07 bf f4 add %fp, -12, %i1 2014bd8: ac 07 bf f8 add %fp, -8, %l6 2014bdc: a2 07 bf e8 add %fp, -24, %l1 2014be0: a6 07 bf ec add %fp, -20, %l3 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2014be4: 37 00 80 e5 sethi %hi(0x2039400), %i3 2014be8: 2b 00 80 e5 sethi %hi(0x2039400), %l5 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 2014bec: c0 27 bf f8 clr [ %fp + -8 ] 2014bf0: c0 27 bf ec clr [ %fp + -20 ] the_chain->last = _Chain_Head(the_chain); 2014bf4: f2 27 bf fc st %i1, [ %fp + -4 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2014bf8: ec 27 bf f4 st %l6, [ %fp + -12 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 2014bfc: e2 27 bf f0 st %l1, [ %fp + -16 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 2014c00: e6 27 bf e8 st %l3, [ %fp + -24 ] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2014c04: b4 16 a0 94 or %i2, 0x94, %i2 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2014c08: b6 16 e3 d4 or %i3, 0x3d4, %i3 2014c0c: aa 15 63 40 or %l5, 0x340, %l5 */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c10: a8 06 20 30 add %i0, 0x30, %l4 /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c14: a4 06 20 68 add %i0, 0x68, %l2 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2014c18: b8 06 20 08 add %i0, 8, %i4 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2014c1c: ba 06 20 40 add %i0, 0x40, %i5 _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; 2014c20: ae 10 20 01 mov 1, %l7 { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; 2014c24: f2 26 20 78 st %i1, [ %i0 + 0x78 ] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 2014c28: c2 06 80 00 ld [ %i2 ], %g1 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 2014c2c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c30: 94 10 00 11 mov %l1, %o2 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 2014c34: c2 26 20 3c st %g1, [ %i0 + 0x3c ] _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c38: 92 20 40 09 sub %g1, %o1, %o1 2014c3c: 40 00 11 22 call 20190c4 <_Watchdog_Adjust_to_chain> 2014c40: 90 10 00 14 mov %l4, %o0 Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 2014c44: d4 06 20 74 ld [ %i0 + 0x74 ], %o2 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 2014c48: e0 06 c0 00 ld [ %i3 ], %l0 /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { 2014c4c: 80 a4 00 0a cmp %l0, %o2 2014c50: 08 80 00 06 bleu 2014c68 <_Timer_server_Body+0x9c> 2014c54: 92 24 00 0a sub %l0, %o2, %o1 /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 2014c58: 90 10 00 12 mov %l2, %o0 2014c5c: 40 00 11 1a call 20190c4 <_Watchdog_Adjust_to_chain> 2014c60: 94 10 00 11 mov %l1, %o2 2014c64: 30 80 00 06 b,a 2014c7c <_Timer_server_Body+0xb0> } else if ( snapshot < last_snapshot ) { 2014c68: 1a 80 00 05 bcc 2014c7c <_Timer_server_Body+0xb0> 2014c6c: 94 22 80 10 sub %o2, %l0, %o2 /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 2014c70: 90 10 00 12 mov %l2, %o0 2014c74: 40 00 10 ed call 2019028 <_Watchdog_Adjust> 2014c78: 92 10 20 01 mov 1, %o1 } watchdogs->last_snapshot = snapshot; 2014c7c: e0 26 20 74 st %l0, [ %i0 + 0x74 ] } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 2014c80: d0 06 20 78 ld [ %i0 + 0x78 ], %o0 2014c84: 40 00 02 61 call 2015608 <_Chain_Get> 2014c88: 01 00 00 00 nop if ( timer == NULL ) { 2014c8c: 80 a2 20 00 cmp %o0, 0 2014c90: 02 80 00 0f be 2014ccc <_Timer_server_Body+0x100> 2014c94: 01 00 00 00 nop static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 2014c98: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 2014c9c: 80 a0 60 01 cmp %g1, 1 2014ca0: 12 80 00 05 bne 2014cb4 <_Timer_server_Body+0xe8> 2014ca4: 80 a0 60 03 cmp %g1, 3 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 2014ca8: 92 02 20 10 add %o0, 0x10, %o1 2014cac: 10 80 00 05 b 2014cc0 <_Timer_server_Body+0xf4> 2014cb0: 90 10 00 14 mov %l4, %o0 } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 2014cb4: 12 bf ff f3 bne 2014c80 <_Timer_server_Body+0xb4> 2014cb8: 92 02 20 10 add %o0, 0x10, %o1 _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 2014cbc: 90 10 00 12 mov %l2, %o0 2014cc0: 40 00 11 36 call 2019198 <_Watchdog_Insert> 2014cc4: 01 00 00 00 nop 2014cc8: 30 bf ff ee b,a 2014c80 <_Timer_server_Body+0xb4> * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 2014ccc: 7f ff e5 00 call 200e0cc 2014cd0: 01 00 00 00 nop if ( _Chain_Is_empty( insert_chain ) ) { 2014cd4: c2 07 bf f4 ld [ %fp + -12 ], %g1 2014cd8: 80 a0 40 16 cmp %g1, %l6 2014cdc: 12 80 00 0a bne 2014d04 <_Timer_server_Body+0x138> 2014ce0: 01 00 00 00 nop ts->insert_chain = NULL; 2014ce4: c0 26 20 78 clr [ %i0 + 0x78 ] _ISR_Enable( level ); 2014ce8: 7f ff e4 fd call 200e0dc 2014cec: 01 00 00 00 nop _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { 2014cf0: c2 07 bf e8 ld [ %fp + -24 ], %g1 2014cf4: 80 a0 40 13 cmp %g1, %l3 2014cf8: 12 80 00 06 bne 2014d10 <_Timer_server_Body+0x144> 2014cfc: 01 00 00 00 nop 2014d00: 30 80 00 1a b,a 2014d68 <_Timer_server_Body+0x19c> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 2014d04: 7f ff e4 f6 call 200e0dc <== NOT EXECUTED 2014d08: 01 00 00 00 nop <== NOT EXECUTED 2014d0c: 30 bf ff c7 b,a 2014c28 <_Timer_server_Body+0x5c> <== NOT EXECUTED /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 2014d10: 7f ff e4 ef call 200e0cc 2014d14: 01 00 00 00 nop 2014d18: 84 10 00 08 mov %o0, %g2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2014d1c: e0 07 bf e8 ld [ %fp + -24 ], %l0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 2014d20: 80 a4 00 13 cmp %l0, %l3 2014d24: 02 80 00 0e be 2014d5c <_Timer_server_Body+0x190> 2014d28: 80 a4 20 00 cmp %l0, 0 { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 2014d2c: c2 04 00 00 ld [ %l0 ], %g1 the_chain->first = new_first; 2014d30: c2 27 bf e8 st %g1, [ %fp + -24 ] watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 2014d34: 02 80 00 0a be 2014d5c <_Timer_server_Body+0x190> 2014d38: e2 20 60 04 st %l1, [ %g1 + 4 ] watchdog->state = WATCHDOG_INACTIVE; 2014d3c: c0 24 20 08 clr [ %l0 + 8 ] _ISR_Enable( level ); 2014d40: 7f ff e4 e7 call 200e0dc 2014d44: 01 00 00 00 nop /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); 2014d48: d2 04 20 24 ld [ %l0 + 0x24 ], %o1 2014d4c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 2014d50: 9f c0 40 00 call %g1 2014d54: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 } 2014d58: 30 bf ff ee b,a 2014d10 <_Timer_server_Body+0x144> watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 2014d5c: 7f ff e4 e0 call 200e0dc 2014d60: 90 10 00 02 mov %g2, %o0 2014d64: 30 bf ff b0 b,a 2014c24 <_Timer_server_Body+0x58> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 2014d68: c0 2e 20 7c clrb [ %i0 + 0x7c ] 2014d6c: c2 05 40 00 ld [ %l5 ], %g1 2014d70: 82 00 60 01 inc %g1 2014d74: c2 25 40 00 st %g1, [ %l5 ] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 2014d78: d0 06 00 00 ld [ %i0 ], %o0 2014d7c: 40 00 0e 1b call 20185e8 <_Thread_Set_state> 2014d80: 92 10 20 08 mov 8, %o1 _Timer_server_Reset_interval_system_watchdog( ts ); 2014d84: 7f ff ff 68 call 2014b24 <_Timer_server_Reset_interval_system_watchdog> 2014d88: 90 10 00 18 mov %i0, %o0 _Timer_server_Reset_tod_system_watchdog( ts ); 2014d8c: 7f ff ff 7b call 2014b78 <_Timer_server_Reset_tod_system_watchdog> 2014d90: 90 10 00 18 mov %i0, %o0 _Thread_Enable_dispatch(); 2014d94: 40 00 0b 53 call 2017ae0 <_Thread_Enable_dispatch> 2014d98: 01 00 00 00 nop static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2014d9c: 90 10 00 1c mov %i4, %o0 _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; 2014da0: ee 2e 20 7c stb %l7, [ %i0 + 0x7c ] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 2014da4: 40 00 11 5a call 201930c <_Watchdog_Remove> 2014da8: 01 00 00 00 nop static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 2014dac: 40 00 11 58 call 201930c <_Watchdog_Remove> 2014db0: 90 10 00 1d mov %i5, %o0 2014db4: 30 bf ff 9c b,a 2014c24 <_Timer_server_Body+0x58> 02021b98 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 2021b98: 81 c3 e0 08 retl <== NOT EXECUTED 2021b9c: 90 10 20 00 clr %o0 <== NOT EXECUTED 020178a4 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 20178a4: 9d e3 bf a0 save %sp, -96, %sp 20178a8: 40 00 06 a7 call 2019344 <_fini> 20178ac: 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(); 20178b0: 7f ff ff e1 call 2017834 20178b4: 01 00 00 00 nop rtems_shutdown_executive(status); 20178b8: 40 00 00 4c call 20179e8 20178bc: 90 10 00 18 mov %i0, %o0 20178c0: 30 80 00 00 b,a 20178c0 <_exit+0x1c> <== NOT EXECUTED 02037e7c <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 2037e7c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2037e80: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2037e84: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED 2037e88: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2037e8c: 7f ff ff 7f call 2037c88 <== NOT EXECUTED 2037e90: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2037e94: 01 00 00 00 nop 02021b6c <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 2021b6c: 81 c3 e0 08 retl <== NOT EXECUTED 2021b70: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 0200a48c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 200a48c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a490: 7f ff ff e6 call 200a428 <== NOT EXECUTED 200a494: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200a498: 01 00 00 00 nop 02021b90 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 2021b90: 81 c3 e0 08 retl <== NOT EXECUTED 2021b94: 90 10 20 00 clr %o0 <== NOT EXECUTED 020263d4 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 20263d4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20263d8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20263dc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20263e0: 7f ff ff 62 call 2026168 <== NOT EXECUTED 20263e4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20263e8: 01 00 00 00 nop 0202661c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 202661c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 2026620: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2026624: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026628: 7f ff ff c0 call 2026528 <== NOT EXECUTED 202662c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026630: 01 00 00 00 nop 020179b4 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 20179b4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 20179b8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 20179bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20179c0: 40 00 00 17 call 2017a1c <== NOT EXECUTED 20179c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20179c8: 01 00 00 00 nop 02056ec4 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 2056ec4: 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 ); 2056ec8: 7f fe ba c5 call 20059dc <== NOT EXECUTED 2056ecc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 2056ed0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 2056ed4: 32 80 00 17 bne,a 2056f30 <_rename_r+0x6c> <== NOT EXECUTED 2056ed8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 2056edc: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED 2056ee0: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2056ee4: 02 80 00 06 be 2056efc <_rename_r+0x38> <== NOT EXECUTED 2056ee8: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 2056eec: 02 80 00 04 be 2056efc <_rename_r+0x38> <== NOT EXECUTED 2056ef0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2056ef4: 12 80 00 07 bne 2056f10 <_rename_r+0x4c> <== NOT EXECUTED 2056ef8: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2056efc: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2056f00: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 ! 20625d4 <== NOT EXECUTED 2056f04: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2056f08: 10 80 00 05 b 2056f1c <_rename_r+0x58> <== NOT EXECUTED 2056f0c: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 2056f10: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 <== NOT EXECUTED 2056f14: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 2056f18: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 2056f1c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2056f20: 7f ff a5 c4 call 2040630 <== NOT EXECUTED 2056f24: 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; 2056f28: 10 80 00 0c b 2056f58 <_rename_r+0x94> <== NOT EXECUTED 2056f2c: 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, 2056f30: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2056f34: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED 2056f38: 96 07 bf d4 add %fp, -44, %o3 <== NOT EXECUTED 2056f3c: 98 10 20 00 clr %o4 <== NOT EXECUTED 2056f40: 7f fe ba f5 call 2005b14 <== NOT EXECUTED 2056f44: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 2056f48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2056f4c: 12 80 00 2b bne 2056ff8 <_rename_r+0x134> <== NOT EXECUTED 2056f50: 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; 2056f54: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2056f58: a6 07 bf e8 add %fp, -24, %l3 <== NOT EXECUTED 2056f5c: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED 2056f60: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2056f64: 7f ff a5 b3 call 2040630 <== NOT EXECUTED 2056f68: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED name = old + old_parent_pathlen; 2056f6c: b2 06 40 10 add %i1, %l0, %i1 <== NOT EXECUTED 2056f70: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 2056f74: 7f ff b4 07 call 2043f90 <== NOT EXECUTED 2056f78: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2056f7c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2056f80: 7f fe ba 85 call 2005994 <== NOT EXECUTED 2056f84: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2056f88: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED 2056f8c: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 2056f90: 7f ff b4 00 call 2043f90 <== NOT EXECUTED 2056f94: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2056f98: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED 2056f9c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2056fa0: 94 10 20 00 clr %o2 <== NOT EXECUTED 2056fa4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2056fa8: 7f fe ba 9f call 2005a24 <== NOT EXECUTED 2056fac: 98 10 20 00 clr %o4 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 2056fb0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 2056fb4: 22 80 00 13 be,a 2057000 <_rename_r+0x13c> <== NOT EXECUTED 2056fb8: c2 4e 80 00 ldsb [ %i2 ], %g1 <== NOT EXECUTED if ( free_old_parentloc ) 2056fbc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2056fc0: 02 80 00 0b be 2056fec <_rename_r+0x128> <== NOT EXECUTED 2056fc4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 2056fc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2056fcc: 02 80 00 08 be 2056fec <_rename_r+0x128> <== NOT EXECUTED 2056fd0: 01 00 00 00 nop <== NOT EXECUTED 2056fd4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2056fd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2056fdc: 02 80 00 04 be 2056fec <_rename_r+0x128> <== NOT EXECUTED 2056fe0: 01 00 00 00 nop <== NOT EXECUTED 2056fe4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2056fe8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2056fec: 7f ff 98 be call 203d2e4 <__errno> <== NOT EXECUTED 2056ff0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2056ff4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED 2056ff8: 81 c7 e0 08 ret <== NOT EXECUTED 2056ffc: 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 ); 2057000: 80 a0 60 5c cmp %g1, 0x5c <== NOT EXECUTED 2057004: 02 80 00 06 be 205701c <_rename_r+0x158> <== NOT EXECUTED 2057008: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED 205700c: 02 80 00 04 be 205701c <_rename_r+0x158> <== NOT EXECUTED 2057010: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057014: 12 80 00 0a bne 205703c <_rename_r+0x178> <== NOT EXECUTED 2057018: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 205701c: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2057020: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 ! 20625d4 <== NOT EXECUTED 2057024: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 2057028: 92 02 60 18 add %o1, 0x18, %o1 <== NOT EXECUTED 205702c: 7f ff a5 81 call 2040630 <== NOT EXECUTED 2057030: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2057034: 10 80 00 08 b 2057054 <_rename_r+0x190> <== NOT EXECUTED 2057038: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 205703c: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 <== NOT EXECUTED 2057040: 90 07 bf c0 add %fp, -64, %o0 <== NOT EXECUTED 2057044: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 2057048: 7f ff a5 7a call 2040630 <== NOT EXECUTED 205704c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2057050: 90 10 20 00 clr %o0 <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 2057054: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 2057058: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 205705c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057060: 02 80 00 61 be 20571e4 <_rename_r+0x320> <== NOT EXECUTED 2057064: 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 ); 2057068: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED 205706c: a0 07 bf c0 add %fp, -64, %l0 <== NOT EXECUTED 2057070: 9f c0 40 00 call %g1 <== NOT EXECUTED 2057074: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if ( result != 0 ) { 2057078: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 205707c: 02 80 00 28 be 205711c <_rename_r+0x258> <== NOT EXECUTED 2057080: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 2057084: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 2057088: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205708c: 02 80 00 09 be 20570b0 <_rename_r+0x1ec> <== NOT EXECUTED 2057090: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2057094: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2057098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205709c: 02 80 00 05 be 20570b0 <_rename_r+0x1ec> <== NOT EXECUTED 20570a0: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20570a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20570a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 20570ac: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20570b0: 02 80 00 0d be 20570e4 <_rename_r+0x220> <== NOT EXECUTED 20570b4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 20570b8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20570bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20570c0: 22 80 00 09 be,a 20570e4 <_rename_r+0x220> <== NOT EXECUTED 20570c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20570c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20570cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20570d0: 22 80 00 05 be,a 20570e4 <_rename_r+0x220> <== NOT EXECUTED 20570d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20570d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20570dc: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 20570e0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20570e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20570e8: 02 80 00 08 be 2057108 <_rename_r+0x244> <== NOT EXECUTED 20570ec: 01 00 00 00 nop <== NOT EXECUTED 20570f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20570f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20570f8: 02 80 00 04 be 2057108 <_rename_r+0x244> <== NOT EXECUTED 20570fc: 01 00 00 00 nop <== NOT EXECUTED 2057100: 9f c0 40 00 call %g1 <== NOT EXECUTED 2057104: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 2057108: 7f ff 98 77 call 203d2e4 <__errno> <== NOT EXECUTED 205710c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2057110: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED 2057114: 81 c7 e0 08 ret <== NOT EXECUTED 2057118: 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 ) { 205711c: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED 2057120: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 2057124: 02 80 00 26 be 20571bc <_rename_r+0x2f8> <== NOT EXECUTED 2057128: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 205712c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2057130: 02 80 00 09 be 2057154 <_rename_r+0x290> <== NOT EXECUTED 2057134: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2057138: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 205713c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057140: 02 80 00 05 be 2057154 <_rename_r+0x290> <== NOT EXECUTED 2057144: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2057148: 9f c0 40 00 call %g1 <== NOT EXECUTED 205714c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 2057150: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2057154: 02 80 00 0d be 2057188 <_rename_r+0x2c4> <== NOT EXECUTED 2057158: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205715c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2057160: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057164: 22 80 00 09 be,a 2057188 <_rename_r+0x2c4> <== NOT EXECUTED 2057168: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205716c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2057170: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057174: 22 80 00 05 be,a 2057188 <_rename_r+0x2c4> <== NOT EXECUTED 2057178: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205717c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2057180: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 2057184: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2057188: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205718c: 02 80 00 08 be 20571ac <_rename_r+0x2e8> <== NOT EXECUTED 2057190: 01 00 00 00 nop <== NOT EXECUTED 2057194: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2057198: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 205719c: 02 80 00 04 be 20571ac <_rename_r+0x2e8> <== NOT EXECUTED 20571a0: 01 00 00 00 nop <== NOT EXECUTED 20571a4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20571a8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 20571ac: 7f ff 98 4e call 203d2e4 <__errno> <== NOT EXECUTED 20571b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20571b4: 10 80 00 26 b 205724c <_rename_r+0x388> <== NOT EXECUTED 20571b8: 82 10 20 12 mov 0x12, %g1 <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 20571bc: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED 20571c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20571c4: 12 80 00 25 bne 2057258 <_rename_r+0x394> <== NOT EXECUTED 20571c8: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 20571cc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 20571d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20571d4: 02 80 00 05 be 20571e8 <_rename_r+0x324> <== NOT EXECUTED 20571d8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20571dc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20571e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 20571e4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 20571e8: 02 80 00 0d be 205721c <_rename_r+0x358> <== NOT EXECUTED 20571ec: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 20571f0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20571f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20571f8: 22 80 00 09 be,a 205721c <_rename_r+0x358> <== NOT EXECUTED 20571fc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2057200: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2057204: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057208: 22 80 00 05 be,a 205721c <_rename_r+0x358> <== NOT EXECUTED 205720c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2057210: 9f c0 40 00 call %g1 <== NOT EXECUTED 2057214: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 2057218: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 205721c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057220: 02 80 00 08 be 2057240 <_rename_r+0x37c> <== NOT EXECUTED 2057224: 01 00 00 00 nop <== NOT EXECUTED 2057228: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205722c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057230: 02 80 00 04 be 2057240 <_rename_r+0x37c> <== NOT EXECUTED 2057234: 01 00 00 00 nop <== NOT EXECUTED 2057238: 9f c0 40 00 call %g1 <== NOT EXECUTED 205723c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2057240: 7f ff 98 29 call 203d2e4 <__errno> <== NOT EXECUTED 2057244: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2057248: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 205724c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2057250: 81 c7 e0 08 ret <== NOT EXECUTED 2057254: 81 e8 00 00 restore <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 2057258: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 205725c: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED 2057260: 9f c0 40 00 call %g1 <== NOT EXECUTED 2057264: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 2057268: c2 07 bf cc ld [ %fp + -52 ], %g1 <== NOT EXECUTED 205726c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057270: 02 80 00 08 be 2057290 <_rename_r+0x3cc> <== NOT EXECUTED 2057274: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2057278: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 205727c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2057280: 02 80 00 05 be 2057294 <_rename_r+0x3d0> <== NOT EXECUTED 2057284: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2057288: 9f c0 40 00 call %g1 <== NOT EXECUTED 205728c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_old_parentloc ) 2057290: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2057294: 02 80 00 0d be 20572c8 <_rename_r+0x404> <== NOT EXECUTED 2057298: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 205729c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20572a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20572a4: 22 80 00 09 be,a 20572c8 <_rename_r+0x404> <== NOT EXECUTED 20572a8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20572ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20572b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20572b4: 22 80 00 05 be,a 20572c8 <_rename_r+0x404> <== NOT EXECUTED 20572b8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20572bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 20572c0: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 20572c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20572c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20572cc: 02 80 00 08 be 20572ec <_rename_r+0x428> <== NOT EXECUTED 20572d0: 01 00 00 00 nop <== NOT EXECUTED 20572d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20572d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20572dc: 02 80 00 04 be 20572ec <_rename_r+0x428> <== NOT EXECUTED 20572e0: 01 00 00 00 nop <== NOT EXECUTED 20572e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20572e8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED return result; } 20572ec: 81 c7 e0 08 ret <== NOT EXECUTED 20572f0: 81 e8 00 00 restore <== NOT EXECUTED 02007428 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 2007428: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200742c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED 2007430: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2007434: 7f ff ff c0 call 2007334 <== NOT EXECUTED 2007438: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200743c: 01 00 00 00 nop 0200d3d4 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 200d3d4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED 200d3d8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200d3dc: 7f ff ff 58 call 200d13c <== NOT EXECUTED 200d3e0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200d3e4: 01 00 00 00 nop 02024dc0 : #include int chdir( const char *pathname ) { 2024dc0: 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 ); 2024dc4: 40 00 7c 73 call 2043f90 2024dc8: 90 10 00 18 mov %i0, %o0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2024dcc: a0 07 bf ec add %fp, -20, %l0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 2024dd0: 92 10 00 08 mov %o0, %o1 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 2024dd4: 94 10 20 01 mov 1, %o2 2024dd8: 90 10 00 18 mov %i0, %o0 2024ddc: 96 10 00 10 mov %l0, %o3 2024de0: 98 10 20 01 mov 1, %o4 2024de4: 7f ff 83 4c call 2005b14 2024de8: b0 10 3f ff mov -1, %i0 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 2024dec: 80 a2 20 00 cmp %o0, 0 2024df0: 12 80 00 37 bne 2024ecc 2024df4: c4 07 bf f8 ld [ %fp + -8 ], %g2 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 2024df8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2024dfc: 80 a0 60 00 cmp %g1, 0 2024e00: 12 80 00 0c bne 2024e30 2024e04: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 2024e08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2024e0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024e10: 02 80 00 04 be 2024e20 <== NOT EXECUTED 2024e14: 01 00 00 00 nop <== NOT EXECUTED 2024e18: 9f c0 40 00 call %g1 <== NOT EXECUTED 2024e1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2024e20: 40 00 61 31 call 203d2e4 <__errno> <== NOT EXECUTED 2024e24: 01 00 00 00 nop <== NOT EXECUTED 2024e28: 10 80 00 14 b 2024e78 <== NOT EXECUTED 2024e2c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2024e30: 9f c0 40 00 call %g1 2024e34: 90 10 00 10 mov %l0, %o0 2024e38: 80 a2 20 01 cmp %o0, 1 2024e3c: 02 80 00 12 be 2024e84 2024e40: 03 00 81 89 sethi %hi(0x2062400), %g1 rtems_filesystem_freenode( &loc ); 2024e44: c2 07 bf f8 ld [ %fp + -8 ], %g1 2024e48: 80 a0 60 00 cmp %g1, 0 2024e4c: 02 80 00 08 be 2024e6c 2024e50: 01 00 00 00 nop 2024e54: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2024e58: 80 a0 60 00 cmp %g1, 0 2024e5c: 02 80 00 04 be 2024e6c 2024e60: 01 00 00 00 nop 2024e64: 9f c0 40 00 call %g1 2024e68: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2024e6c: 40 00 61 1e call 203d2e4 <__errno> 2024e70: 01 00 00 00 nop 2024e74: 82 10 20 14 mov 0x14, %g1 ! 14 2024e78: c2 22 00 00 st %g1, [ %o0 ] 2024e7c: 81 c7 e0 08 ret 2024e80: 91 e8 3f ff restore %g0, -1, %o0 } rtems_filesystem_freenode( &rtems_filesystem_current ); 2024e84: d0 00 61 d4 ld [ %g1 + 0x1d4 ], %o0 2024e88: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 2024e8c: 80 a0 60 00 cmp %g1, 0 2024e90: 22 80 00 09 be,a 2024eb4 2024e94: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2024e98: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206241c 2024e9c: 80 a0 60 00 cmp %g1, 0 2024ea0: 22 80 00 05 be,a 2024eb4 2024ea4: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2024ea8: 9f c0 40 00 call %g1 2024eac: 90 02 20 04 add %o0, 4, %o0 rtems_filesystem_current = loc; 2024eb0: 03 00 81 89 sethi %hi(0x2062400), %g1 2024eb4: d0 00 61 d4 ld [ %g1 + 0x1d4 ], %o0 ! 20625d4 2024eb8: 92 07 bf ec add %fp, -20, %o1 2024ebc: 90 02 20 04 add %o0, 4, %o0 2024ec0: 94 10 20 14 mov 0x14, %o2 2024ec4: 40 00 6d db call 2040630 2024ec8: b0 10 20 00 clr %i0 return 0; } 2024ecc: 81 c7 e0 08 ret 2024ed0: 81 e8 00 00 restore 020057d4 : int chmod( const char *path, mode_t mode ) { 20057d4: 9d e3 bf 88 save %sp, -120, %sp int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); 20057d8: 40 00 f9 ee call 2043f90 20057dc: 90 10 00 18 mov %i0, %o0 20057e0: a0 07 bf ec add %fp, -20, %l0 20057e4: 92 10 00 08 mov %o0, %o1 20057e8: 94 10 20 00 clr %o2 20057ec: 90 10 00 18 mov %i0, %o0 20057f0: 96 10 00 10 mov %l0, %o3 20057f4: 98 10 20 01 mov 1, %o4 20057f8: 40 00 00 c7 call 2005b14 20057fc: b0 10 3f ff mov -1, %i0 if ( status != 0 ) 2005800: 80 a2 20 00 cmp %o0, 0 2005804: 12 80 00 24 bne 2005894 2005808: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers ){ 200580c: 80 a0 60 00 cmp %g1, 0 2005810: 32 80 00 10 bne,a 2005850 2005814: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 rtems_filesystem_freenode( &loc ); 2005818: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200581c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005820: 02 80 00 08 be 2005840 <== NOT EXECUTED 2005824: 01 00 00 00 nop <== NOT EXECUTED 2005828: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200582c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005830: 02 80 00 04 be 2005840 <== NOT EXECUTED 2005834: 01 00 00 00 nop <== NOT EXECUTED 2005838: 9f c0 40 00 call %g1 <== NOT EXECUTED 200583c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 2005840: 40 00 de a9 call 203d2e4 <__errno> <== NOT EXECUTED 2005844: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2005848: 10 80 00 12 b 2005890 <== NOT EXECUTED 200584c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 2005850: 80 a0 60 00 cmp %g1, 0 2005854: 12 80 00 12 bne 200589c 2005858: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 200585c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2005860: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005864: 02 80 00 08 be 2005884 <== NOT EXECUTED 2005868: 01 00 00 00 nop <== NOT EXECUTED 200586c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2005870: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2005874: 02 80 00 04 be 2005884 <== NOT EXECUTED 2005878: 01 00 00 00 nop <== NOT EXECUTED 200587c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2005880: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005884: 40 00 de 98 call 203d2e4 <__errno> <== NOT EXECUTED 2005888: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200588c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2005890: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2005894: 81 c7 e0 08 ret 2005898: 81 e8 00 00 restore } result = (*loc.handlers->fchmod_h)( &loc, mode ); 200589c: 90 10 00 10 mov %l0, %o0 20058a0: 9f c0 40 00 call %g1 20058a4: 93 32 60 10 srl %o1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 20058a8: c2 07 bf f8 ld [ %fp + -8 ], %g1 20058ac: 80 a0 60 00 cmp %g1, 0 20058b0: 02 bf ff f9 be 2005894 20058b4: b0 10 00 08 mov %o0, %i0 20058b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20058bc: 80 a0 60 00 cmp %g1, 0 20058c0: 02 80 00 04 be 20058d0 20058c4: 01 00 00 00 nop 20058c8: 9f c0 40 00 call %g1 20058cc: 90 10 00 10 mov %l0, %o0 return result; } 20058d0: 81 c7 e0 08 ret 20058d4: 81 e8 00 00 restore 02024ed4 : int chown( const char *path, uid_t owner, gid_t group ) { 2024ed4: 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 ) ) 2024ed8: 40 00 7c 2e call 2043f90 2024edc: 90 10 00 18 mov %i0, %o0 2024ee0: a0 07 bf ec add %fp, -20, %l0 2024ee4: 92 10 00 08 mov %o0, %o1 2024ee8: 94 10 20 00 clr %o2 2024eec: 90 10 00 18 mov %i0, %o0 2024ef0: 96 10 00 10 mov %l0, %o3 2024ef4: 98 10 20 01 mov 1, %o4 2024ef8: 7f ff 83 07 call 2005b14 2024efc: b0 10 3f ff mov -1, %i0 2024f00: 80 a2 20 00 cmp %o0, 0 2024f04: 12 80 00 10 bne 2024f44 2024f08: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->chown_h ) { 2024f0c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1 2024f10: 80 a0 60 00 cmp %g1, 0 2024f14: 12 80 00 0e bne 2024f4c 2024f18: 93 2e 60 10 sll %i1, 0x10, %o1 rtems_filesystem_freenode( &loc ); 2024f1c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2024f20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2024f24: 02 80 00 04 be 2024f34 <== NOT EXECUTED 2024f28: 01 00 00 00 nop <== NOT EXECUTED 2024f2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2024f30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2024f34: 40 00 60 ec call 203d2e4 <__errno> <== NOT EXECUTED 2024f38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2024f3c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2024f40: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2024f44: 81 c7 e0 08 ret 2024f48: 81 e8 00 00 restore } result = (*loc.ops->chown_h)( &loc, owner, group ); 2024f4c: 95 2e a0 10 sll %i2, 0x10, %o2 2024f50: 93 32 60 10 srl %o1, 0x10, %o1 2024f54: 95 32 a0 10 srl %o2, 0x10, %o2 2024f58: 9f c0 40 00 call %g1 2024f5c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2024f60: c2 07 bf f8 ld [ %fp + -8 ], %g1 2024f64: 80 a0 60 00 cmp %g1, 0 2024f68: 02 bf ff f7 be 2024f44 2024f6c: b0 10 00 08 mov %o0, %i0 2024f70: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2024f74: 80 a0 60 00 cmp %g1, 0 2024f78: 02 80 00 04 be 2024f88 2024f7c: 01 00 00 00 nop 2024f80: 9f c0 40 00 call %g1 2024f84: 90 10 00 10 mov %l0, %o0 return result; } 2024f88: 81 c7 e0 08 ret 2024f8c: 81 e8 00 00 restore 02024f90 : #include int chroot( const char *pathname ) { 2024f90: 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) { 2024f94: 23 00 81 89 sethi %hi(0x2062400), %l1 2024f98: e0 04 61 d4 ld [ %l1 + 0x1d4 ], %l0 ! 20625d4 2024f9c: 03 00 81 99 sethi %hi(0x2066400), %g1 2024fa0: 82 10 60 08 or %g1, 8, %g1 ! 2066408 2024fa4: 80 a4 00 01 cmp %l0, %g1 2024fa8: 12 80 00 0e bne 2024fe0 2024fac: 01 00 00 00 nop rtems_libio_set_private_env(); /* try to set a new private env*/ 2024fb0: 40 00 06 71 call 2026974 2024fb4: 01 00 00 00 nop if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 2024fb8: c2 04 61 d4 ld [ %l1 + 0x1d4 ], %g1 2024fbc: 80 a0 40 10 cmp %g1, %l0 2024fc0: 12 80 00 08 bne 2024fe0 2024fc4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2024fc8: 40 00 60 c7 call 203d2e4 <__errno> <== NOT EXECUTED 2024fcc: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2024fd0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2024fd4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2024fd8: 81 c7 e0 08 ret <== NOT EXECUTED 2024fdc: 81 e8 00 00 restore <== NOT EXECUTED } result = chdir(pathname); 2024fe0: 7f ff ff 78 call 2024dc0 2024fe4: 90 10 00 18 mov %i0, %o0 if (result) { 2024fe8: 80 a2 20 00 cmp %o0, 0 2024fec: 12 80 00 0b bne 2025018 2024ff0: 11 00 81 66 sethi %hi(0x2059800), %o0 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2024ff4: 92 10 20 01 mov 1, %o1 2024ff8: 90 12 23 00 or %o0, 0x300, %o0 2024ffc: 94 10 20 00 clr %o2 2025000: 96 07 bf ec add %fp, -20, %o3 2025004: 7f ff 82 c4 call 2005b14 2025008: 98 10 20 00 clr %o4 202500c: 80 a2 20 00 cmp %o0, 0 2025010: 02 80 00 0a be 2025038 2025014: 03 00 81 89 sethi %hi(0x2062400), %g1 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 2025018: 40 00 60 b3 call 203d2e4 <__errno> <== NOT EXECUTED 202501c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025020: 40 00 60 b1 call 203d2e4 <__errno> <== NOT EXECUTED 2025024: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2025028: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 202502c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED 2025030: 81 c7 e0 08 ret <== NOT EXECUTED 2025034: 81 e8 00 00 restore <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 2025038: d0 00 61 d4 ld [ %g1 + 0x1d4 ], %o0 202503c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 2025040: 80 a0 60 00 cmp %g1, 0 2025044: 22 80 00 09 be,a 2025068 2025048: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 202504c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206241c 2025050: 80 a0 60 00 cmp %g1, 0 2025054: 22 80 00 05 be,a 2025068 2025058: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 202505c: 9f c0 40 00 call %g1 2025060: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_root = loc; 2025064: 03 00 81 89 sethi %hi(0x2062400), %g1 2025068: d0 00 61 d4 ld [ %g1 + 0x1d4 ], %o0 ! 20625d4 202506c: 92 07 bf ec add %fp, -20, %o1 2025070: 94 10 20 14 mov 0x14, %o2 2025074: 90 02 20 18 add %o0, 0x18, %o0 2025078: 40 00 6d 6e call 2040630 202507c: b0 10 20 00 clr %i0 return 0; } 2025080: 81 c7 e0 08 ret 2025084: 81 e8 00 00 restore 02009210 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 2009210: 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; 2009214: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = 0; 2009218: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200921c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 2009220: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2009224: 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; 2009228: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; args.mode = 0; status = rtems_io_close( 200922c: 94 07 bf f4 add %fp, -12, %o2 2009230: 40 00 03 40 call 2009f30 2009234: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) { 2009238: 80 a2 20 00 cmp %o0, 0 200923c: 02 80 00 05 be 2009250 2009240: 01 00 00 00 nop return rtems_deviceio_errno(status); 2009244: 40 00 00 3c call 2009334 <== NOT EXECUTED 2009248: 01 00 00 00 nop <== NOT EXECUTED 200924c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 2009250: 81 c7 e0 08 ret 2009254: 81 e8 00 00 restore 02009264 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 2009264: 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; 2009268: e0 06 c0 00 ld [ %i3 ], %l0 if (!device_name_table) 200926c: 80 a4 20 00 cmp %l0, 0 2009270: 02 80 00 05 be 2009284 2009274: 27 00 80 39 sethi %hi(0x200e400), %l3 2009278: a2 10 20 00 clr %l1 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 200927c: 10 80 00 24 b 200930c 2009280: a6 14 e3 b8 or %l3, 0x3b8, %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 ); 2009284: 40 00 07 17 call 200aee0 <__errno> <== NOT EXECUTED 2009288: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200928c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2009290: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2009294: 81 c7 e0 08 ret <== NOT EXECUTED 2009298: 81 e8 00 00 restore <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 200929c: e4 04 00 00 ld [ %l0 ], %l2 20092a0: 80 a4 a0 00 cmp %l2, 0 20092a4: 02 80 00 19 be 2009308 20092a8: a2 04 60 01 inc %l1 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 20092ac: 92 10 00 12 mov %l2, %o1 20092b0: 40 00 0a ac call 200bd60 20092b4: 94 10 00 19 mov %i1, %o2 20092b8: 80 a2 20 00 cmp %o0, 0 20092bc: 32 80 00 14 bne,a 200930c 20092c0: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 20092c4: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1 20092c8: 80 a0 60 00 cmp %g1, 0 20092cc: 32 80 00 10 bne,a 200930c 20092d0: 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; 20092d4: 03 00 80 3a sethi %hi(0x200e800), %g1 20092d8: c2 00 61 30 ld [ %g1 + 0x130 ], %g1 ! 200e930 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 20092dc: e0 26 c0 00 st %l0, [ %i3 ] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 20092e0: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 20092e4: 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; 20092e8: 03 00 80 3a sethi %hi(0x200e800), %g1 20092ec: 82 10 60 e4 or %g1, 0xe4, %g1 ! 200e8e4 20092f0: c2 26 e0 08 st %g1, [ %i3 + 8 ] pathloc->ops = &devFS_ops; 20092f4: 03 00 80 3a sethi %hi(0x200e800), %g1 20092f8: 82 10 60 9c or %g1, 0x9c, %g1 ! 200e89c 20092fc: c2 26 e0 0c st %g1, [ %i3 + 0xc ] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 2009300: 81 c7 e0 08 ret 2009304: 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++) { 2009308: a0 04 20 14 add %l0, 0x14, %l0 200930c: c2 04 c0 00 ld [ %l3 ], %g1 2009310: 80 a4 40 01 cmp %l1, %g1 2009314: 0a bf ff e2 bcs 200929c 2009318: 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 ); 200931c: 40 00 06 f1 call 200aee0 <__errno> 2009320: b0 10 3f ff mov -1, %i0 2009324: 82 10 20 02 mov 2, %g1 2009328: c2 22 00 00 st %g1, [ %o0 ] } 200932c: 81 c7 e0 08 ret 2009330: 81 e8 00 00 restore 02001b40 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 2001b40: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 2001b44: 23 00 80 39 sethi %hi(0x200e400), %l1 2001b48: c2 04 63 b8 ld [ %l1 + 0x3b8 ], %g1 ! 200e7b8 2001b4c: 85 28 60 04 sll %g1, 4, %g2 2001b50: 83 28 60 02 sll %g1, 2, %g1 2001b54: 40 00 1b ec call 2008b04 <_Workspace_Allocate> 2001b58: 90 00 40 02 add %g1, %g2, %o0 sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 2001b5c: a0 92 20 00 orcc %o0, 0, %l0 2001b60: 12 80 00 08 bne 2001b80 2001b64: c2 04 63 b8 ld [ %l1 + 0x3b8 ], %g1 rtems_set_errno_and_return_minus_one( ENOMEM ); 2001b68: 40 00 24 de call 200aee0 <__errno> <== NOT EXECUTED 2001b6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001b70: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 2001b74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001b78: 81 c7 e0 08 ret <== NOT EXECUTED 2001b7c: 81 e8 00 00 restore <== NOT EXECUTED memset( 2001b80: 92 10 20 00 clr %o1 2001b84: 85 28 60 04 sll %g1, 4, %g2 2001b88: 83 28 60 02 sll %g1, 2, %g1 2001b8c: 40 00 27 35 call 200b860 2001b90: 94 00 40 02 add %g1, %g2, %o2 device_name_table, 0, sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; 2001b94: 03 00 80 3a sethi %hi(0x200e800), %g1 2001b98: 82 10 60 e4 or %g1, 0xe4, %g1 ! 200e8e4 temp_mt_entry->mt_fs_root.ops = &devFS_ops; /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; 2001b9c: e0 26 20 1c st %l0, [ %i0 + 0x1c ] device_name_table, 0, sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; 2001ba0: c2 26 20 24 st %g1, [ %i0 + 0x24 ] temp_mt_entry->mt_fs_root.ops = &devFS_ops; 2001ba4: 03 00 80 3a sethi %hi(0x200e800), %g1 2001ba8: 82 10 60 9c or %g1, 0x9c, %g1 ! 200e89c 2001bac: c2 26 20 28 st %g1, [ %i0 + 0x28 ] /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } 2001bb0: 81 c7 e0 08 ret 2001bb4: 91 e8 20 00 restore %g0, 0, %o0 02001d30 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 2001d30: 9d e3 bf 90 save %sp, -112, %sp rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001d34: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.command = command; 2001d38: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; status = rtems_io_control( 2001d3c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001d40: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001d44: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; 2001d48: f4 27 bf f8 st %i2, [ %fp + -8 ] status = rtems_io_control( 2001d4c: 40 00 10 09 call 2005d70 2001d50: 94 07 bf f0 add %fp, -16, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2001d54: 80 a2 20 00 cmp %o0, 0 2001d58: 22 80 00 06 be,a 2001d70 2001d5c: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 2001d60: 40 00 1d 75 call 2009334 <== NOT EXECUTED 2001d64: 01 00 00 00 nop <== NOT EXECUTED 2001d68: 81 c7 e0 08 ret <== NOT EXECUTED 2001d6c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 2001d70: b0 10 00 08 mov %o0, %i0 2001d74: 81 c7 e0 08 ret 2001d78: 81 e8 00 00 restore 02001bb8 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001bb8: 9d e3 bf a0 save %sp, -96, %sp * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 2001bbc: c2 4e 00 00 ldsb [ %i0 ], %g1 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 2001bc0: a0 10 00 18 mov %i0, %l0 * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 2001bc4: 80 a0 60 64 cmp %g1, 0x64 2001bc8: 12 80 00 0e bne 2001c00 2001bcc: aa 10 00 19 mov %i1, %l5 2001bd0: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 2001bd4: 80 a0 60 65 cmp %g1, 0x65 2001bd8: 12 80 00 0b bne 2001c04 2001bdc: 03 00 00 3c sethi %hi(0xf000), %g1 (path[2] == 'v') && (path[3] == '\0')) 2001be0: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1 2001be4: 80 a0 60 76 cmp %g1, 0x76 2001be8: 12 80 00 07 bne 2001c04 2001bec: 03 00 00 3c sethi %hi(0xf000), %g1 2001bf0: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1 2001bf4: 80 a0 60 00 cmp %g1, 0 2001bf8: 02 80 00 4a be 2001d20 2001bfc: b0 10 20 00 clr %i0 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 2001c00: 03 00 00 3c sethi %hi(0xf000), %g1 2001c04: b2 0e 40 01 and %i1, %g1, %i1 2001c08: 03 00 00 08 sethi %hi(0x2000), %g1 2001c0c: 80 a6 40 01 cmp %i1, %g1 2001c10: 02 80 00 09 be 2001c34 2001c14: 03 00 00 18 sethi %hi(0x6000), %g1 2001c18: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 2001c1c: 22 80 00 07 be,a 2001c38 <== NOT EXECUTED 2001c20: e2 07 00 00 ld [ %i4 ], %l1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 2001c24: 40 00 24 af call 200aee0 <__errno> <== NOT EXECUTED 2001c28: 01 00 00 00 nop <== NOT EXECUTED 2001c2c: 10 80 00 29 b 2001cd0 <== NOT EXECUTED 2001c30: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 2001c34: e2 07 00 00 ld [ %i4 ], %l1 if (!device_name_table) 2001c38: 80 a4 60 00 cmp %l1, 0 2001c3c: 02 80 00 08 be 2001c5c 2001c40: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001c44: 33 00 80 39 sethi %hi(0x200e400), %i1 else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) 2001c48: a8 10 00 11 mov %l1, %l4 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001c4c: b2 16 63 b8 or %i1, 0x3b8, %i1 else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) 2001c50: a4 10 3f ff mov -1, %l2 2001c54: 10 80 00 15 b 2001ca8 2001c58: a6 10 20 00 clr %l3 rtems_set_errno_and_return_minus_one( EFAULT ); 2001c5c: 40 00 24 a1 call 200aee0 <__errno> <== NOT EXECUTED 2001c60: 01 00 00 00 nop <== NOT EXECUTED 2001c64: 10 80 00 1b b 2001cd0 <== NOT EXECUTED 2001c68: 82 10 20 0e mov 0xe, %g1 ! e <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) 2001c6c: d2 05 00 00 ld [ %l4 ], %o1 2001c70: 80 a2 60 00 cmp %o1, 0 2001c74: 02 80 00 0b be 2001ca0 2001c78: a8 05 20 14 add %l4, 0x14, %l4 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 2001c7c: 40 00 27 b3 call 200bb48 2001c80: 01 00 00 00 nop 2001c84: 80 a2 20 00 cmp %o0, 0 2001c88: 32 80 00 08 bne,a 2001ca8 2001c8c: a6 04 e0 01 inc %l3 rtems_set_errno_and_return_minus_one( EEXIST ); 2001c90: 40 00 24 94 call 200aee0 <__errno> <== NOT EXECUTED 2001c94: 01 00 00 00 nop <== NOT EXECUTED 2001c98: 10 80 00 0e b 2001cd0 <== NOT EXECUTED 2001c9c: 82 10 20 11 mov 0x11, %g1 ! 11 <== NOT EXECUTED 2001ca0: a4 10 00 13 mov %l3, %l2 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 2001ca4: a6 04 e0 01 inc %l3 2001ca8: c2 06 40 00 ld [ %i1 ], %g1 2001cac: 80 a4 c0 01 cmp %l3, %g1 2001cb0: 0a bf ff ef bcs 2001c6c 2001cb4: 90 10 00 10 mov %l0, %o0 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 2001cb8: 80 a4 bf ff cmp %l2, -1 2001cbc: 12 80 00 08 bne 2001cdc 2001cc0: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOMEM ); 2001cc4: 40 00 24 87 call 200aee0 <__errno> <== NOT EXECUTED 2001cc8: 01 00 00 00 nop <== NOT EXECUTED 2001ccc: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2001cd0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001cd4: 81 c7 e0 08 ret <== NOT EXECUTED 2001cd8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED _ISR_Disable(level); 2001cdc: 7f ff ff 70 call 2001a9c 2001ce0: 01 00 00 00 nop 2001ce4: a6 10 00 08 mov %o0, %l3 device_name_table[slot].device_name = (char *)path; 2001ce8: 83 2c a0 04 sll %l2, 4, %g1 device_name_table[slot].device_name_length = strlen(path); 2001cec: 90 10 00 10 mov %l0, %o0 if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; 2001cf0: a5 2c a0 02 sll %l2, 2, %l2 2001cf4: a4 04 80 01 add %l2, %g1, %l2 2001cf8: e0 24 40 12 st %l0, [ %l1 + %l2 ] device_name_table[slot].device_name_length = strlen(path); 2001cfc: 40 00 27 e4 call 200bc8c 2001d00: a2 04 40 12 add %l1, %l2, %l1 device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 2001d04: ea 34 60 10 sth %l5, [ %l1 + 0x10 ] if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; device_name_table[slot].device_name_length = strlen(path); 2001d08: d0 24 60 04 st %o0, [ %l1 + 4 ] device_name_table[slot].major = major; 2001d0c: f4 24 60 08 st %i2, [ %l1 + 8 ] device_name_table[slot].minor = minor; 2001d10: f6 24 60 0c st %i3, [ %l1 + 0xc ] device_name_table[slot].mode = mode; _ISR_Enable(level); 2001d14: b0 10 20 00 clr %i0 2001d18: 7f ff ff 65 call 2001aac 2001d1c: 90 10 00 13 mov %l3, %o0 return 0; } 2001d20: 81 c7 e0 08 ret 2001d24: 81 e8 00 00 restore 02001d7c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2001d7c: 9d e3 bf 90 save %sp, -112, %sp rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; 2001d80: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001d84: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.flags = iop->flags; 2001d88: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 2001d8c: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 2001d90: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001d94: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001d98: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( 2001d9c: 94 07 bf f4 add %fp, -12, %o2 2001da0: 40 00 10 3f call 2005e9c 2001da4: b0 10 20 00 clr %i0 np->major, np->minor, (void *) &args ); if ( status ) 2001da8: 80 a2 20 00 cmp %o0, 0 2001dac: 02 80 00 05 be 2001dc0 2001db0: 01 00 00 00 nop return rtems_deviceio_errno(status); 2001db4: 40 00 1d 60 call 2009334 <== NOT EXECUTED 2001db8: 01 00 00 00 nop <== NOT EXECUTED 2001dbc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 2001dc0: 81 c7 e0 08 ret 2001dc4: 81 e8 00 00 restore 02001dc8 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2001dc8: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 2001dcc: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001dd0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 2001dd4: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; 2001dd8: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 2001ddc: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001de0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 2001de4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED 2001de8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001dec: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; 2001df0: f2 27 bf f0 st %i1, [ %fp + -16 ] <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001df4: f0 27 bf e0 st %i0, [ %fp + -32 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 2001df8: 40 00 10 3f call 2005ef4 <== NOT EXECUTED 2001dfc: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 2001e00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2001e04: 22 80 00 06 be,a 2001e1c <== NOT EXECUTED 2001e08: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 2001e0c: 40 00 1d 4a call 2009334 <== NOT EXECUTED 2001e10: 01 00 00 00 nop <== NOT EXECUTED 2001e14: 81 c7 e0 08 ret <== NOT EXECUTED 2001e18: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 2001e1c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2001e20: 81 c7 e0 08 ret <== NOT EXECUTED 2001e24: 81 e8 00 00 restore <== NOT EXECUTED 02001e28 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2001e28: 9d e3 bf a0 save %sp, -96, %sp rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 2001e2c: c2 06 00 00 ld [ %i0 ], %g1 if (!the_dev) 2001e30: 80 a0 60 00 cmp %g1, 0 2001e34: 32 80 00 08 bne,a 2001e54 2001e38: c6 10 60 10 lduh [ %g1 + 0x10 ], %g3 rtems_set_errno_and_return_minus_one( EFAULT ); 2001e3c: 40 00 24 29 call 200aee0 <__errno> <== NOT EXECUTED 2001e40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001e44: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 2001e48: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001e4c: 81 c7 e0 08 ret <== NOT EXECUTED 2001e50: 81 e8 00 00 restore <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 2001e54: c4 00 60 0c ld [ %g1 + 0xc ], %g2 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 2001e58: c2 00 60 08 ld [ %g1 + 8 ], %g1 buf->st_mode = the_dev->mode; 2001e5c: c6 36 60 0c sth %g3, [ %i1 + 0xc ] the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 2001e60: c2 26 60 18 st %g1, [ %i1 + 0x18 ] 2001e64: c4 26 60 1c st %g2, [ %i1 + 0x1c ] buf->st_mode = the_dev->mode; return 0; } 2001e68: 81 c7 e0 08 ret 2001e6c: 91 e8 20 00 restore %g0, 0, %o0 02001e70 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 2001e70: 9d e3 bf 80 save %sp, -128, %sp args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 2001e74: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 2001e78: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 2001e7c: c4 27 bf f8 st %g2, [ %fp + -8 ] np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; 2001e80: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; args.bytes_moved = 0; 2001e84: c0 27 bf fc clr [ %fp + -4 ] rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001e88: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 2001e8c: d2 00 60 0c ld [ %g1 + 0xc ], %o1 2001e90: d0 00 60 08 ld [ %g1 + 8 ], %o0 rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; 2001e94: c4 3f bf e8 std %g2, [ %fp + -24 ] args.buffer = (void *) buffer; 2001e98: f2 27 bf f0 st %i1, [ %fp + -16 ] rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 2001e9c: f0 27 bf e0 st %i0, [ %fp + -32 ] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 2001ea0: 40 00 10 2b call 2005f4c 2001ea4: 94 07 bf e0 add %fp, -32, %o2 np->major, np->minor, (void *) &args ); if ( status ) 2001ea8: 80 a2 20 00 cmp %o0, 0 2001eac: 22 80 00 06 be,a 2001ec4 2001eb0: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 2001eb4: 40 00 1d 20 call 2009334 <== NOT EXECUTED 2001eb8: 01 00 00 00 nop <== NOT EXECUTED 2001ebc: 81 c7 e0 08 ret <== NOT EXECUTED 2001ec0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 2001ec4: b0 10 00 08 mov %o0, %i0 2001ec8: 81 c7 e0 08 ret 2001ecc: 81 e8 00 00 restore 0200baf0 : */ int device_close( rtems_libio_t *iop ) { 200baf0: 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; 200baf4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200baf8: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = 0; 200bafc: c0 27 bf f8 clr [ %fp + -8 ] args.mode = 0; 200bb00: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_close( 200bb04: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200bb08: 94 07 bf f4 add %fp, -12, %o2 200bb0c: 40 00 03 ee call 200cac4 200bb10: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 200bb14: 80 a2 20 00 cmp %o0, 0 200bb18: 02 80 00 05 be 200bb2c 200bb1c: 01 00 00 00 nop return rtems_deviceio_errno(status); 200bb20: 40 00 05 66 call 200d0b8 <== NOT EXECUTED 200bb24: 01 00 00 00 nop <== NOT EXECUTED 200bb28: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } return 0; } 200bb2c: 81 c7 e0 08 ret 200bb30: 81 e8 00 00 restore 0200b9f0 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 200b9f0: 9d e3 bf 90 save %sp, -112, %sp args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 200b9f4: 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; 200b9f8: f2 27 bf f4 st %i1, [ %fp + -12 ] args.buffer = buffer; 200b9fc: 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; 200ba00: f0 27 bf f0 st %i0, [ %fp + -16 ] args.command = command; args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( 200ba04: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200ba08: 40 00 04 45 call 200cb1c 200ba0c: 94 07 bf f0 add %fp, -16, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200ba10: 80 a2 20 00 cmp %o0, 0 200ba14: 22 80 00 06 be,a 200ba2c 200ba18: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200ba1c: 40 00 05 a7 call 200d0b8 <== NOT EXECUTED 200ba20: 01 00 00 00 nop <== NOT EXECUTED 200ba24: 81 c7 e0 08 ret <== NOT EXECUTED 200ba28: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return args.ioctl_return; } 200ba2c: b0 10 00 08 mov %o0, %i0 200ba30: 81 c7 e0 08 ret 200ba34: 81 e8 00 00 restore 0200bb34 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 200bb34: 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; 200bb38: 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; 200bb3c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; 200bb40: f0 27 bf f4 st %i0, [ %fp + -12 ] args.flags = iop->flags; 200bb44: c4 27 bf f8 st %g2, [ %fp + -8 ] args.mode = mode; 200bb48: f6 27 bf fc st %i3, [ %fp + -4 ] status = rtems_io_open( 200bb4c: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200bb50: 94 07 bf f4 add %fp, -12, %o2 200bb54: 40 00 04 08 call 200cb74 200bb58: b0 10 20 00 clr %i0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200bb5c: 80 a2 20 00 cmp %o0, 0 200bb60: 02 80 00 05 be 200bb74 200bb64: 01 00 00 00 nop return rtems_deviceio_errno(status); 200bb68: 40 00 05 54 call 200d0b8 <== NOT EXECUTED 200bb6c: 01 00 00 00 nop <== NOT EXECUTED 200bb70: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return 0; } 200bb74: 81 c7 e0 08 ret 200bb78: 81 e8 00 00 restore 0200ba94 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 200ba94: 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; 200ba98: 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; 200ba9c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 200baa0: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 <== NOT EXECUTED args.buffer = buffer; 200baa4: 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; 200baa8: d8 3f bf e8 std %o4, [ %fp + -24 ] <== NOT EXECUTED args.buffer = buffer; args.count = count; 200baac: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED args.flags = iop->flags; 200bab0: 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; 200bab4: 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; 200bab8: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED status = rtems_io_read( 200babc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 <== NOT EXECUTED 200bac0: 40 00 04 43 call 200cbcc <== NOT EXECUTED 200bac4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200bac8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bacc: 22 80 00 06 be,a 200bae4 <== NOT EXECUTED 200bad0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED return rtems_deviceio_errno(status); 200bad4: 40 00 05 79 call 200d0b8 <== NOT EXECUTED 200bad8: 01 00 00 00 nop <== NOT EXECUTED 200badc: 81 c7 e0 08 ret <== NOT EXECUTED 200bae0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200bae4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 200bae8: 81 c7 e0 08 ret <== NOT EXECUTED 200baec: 81 e8 00 00 restore <== NOT EXECUTED 0200ba38 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 200ba38: 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; 200ba3c: 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; 200ba40: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 args.iop = iop; args.offset = iop->offset; 200ba44: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4 args.buffer = (void *) buffer; 200ba48: 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; 200ba4c: d8 3f bf e8 std %o4, [ %fp + -24 ] args.buffer = (void *) buffer; args.count = count; 200ba50: f4 27 bf f4 st %i2, [ %fp + -12 ] args.flags = iop->flags; 200ba54: 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; 200ba58: 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; 200ba5c: c0 27 bf fc clr [ %fp + -4 ] status = rtems_io_write( 200ba60: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0 200ba64: 40 00 04 70 call 200cc24 200ba68: 94 07 bf e0 add %fp, -32, %o2 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 200ba6c: 80 a2 20 00 cmp %o0, 0 200ba70: 22 80 00 06 be,a 200ba88 200ba74: d0 07 bf fc ld [ %fp + -4 ], %o0 return rtems_deviceio_errno(status); 200ba78: 40 00 05 90 call 200d0b8 <== NOT EXECUTED 200ba7c: 01 00 00 00 nop <== NOT EXECUTED 200ba80: 81 c7 e0 08 ret <== NOT EXECUTED 200ba84: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 200ba88: b0 10 00 08 mov %o0, %i0 200ba8c: 81 c7 e0 08 ret 200ba90: 81 e8 00 00 restore 02003c3c : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2003c3c: 9d e3 bf a0 save %sp, -96, %sp rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2003c40: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 2003c44: 80 a0 60 00 cmp %g1, 0 2003c48: 02 80 00 1a be 2003cb0 2003c4c: a0 10 00 18 mov %i0, %l0 rtems_interrupt_disable (level); 2003c50: 7f ff f8 2b call 2001cfc <== NOT EXECUTED 2003c54: 01 00 00 00 nop <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2003c58: 10 80 00 0f b 2003c94 <== NOT EXECUTED 2003c5c: a2 10 20 02 mov 2, %l1 ! 2 <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 2003c60: 7f ff f8 2b call 2001d0c <== NOT EXECUTED 2003c64: 01 00 00 00 nop <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003c68: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2003c6c: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003c70: 40 00 06 58 call 20055d0 <== NOT EXECUTED 2003c74: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003c78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003c7c: 02 80 00 04 be 2003c8c <== NOT EXECUTED 2003c80: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2003c84: 40 00 07 fa call 2005c6c <== NOT EXECUTED 2003c88: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 2003c8c: 7f ff f8 1c call 2001cfc <== NOT EXECUTED 2003c90: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2003c94: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED 2003c98: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2003c9c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003ca0: 32 bf ff f0 bne,a 2003c60 <== NOT EXECUTED 2003ca4: e2 24 20 94 st %l1, [ %l0 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 2003ca8: 7f ff f8 19 call 2001d0c <== NOT EXECUTED 2003cac: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 2003cb0: 81 c7 e0 08 ret 2003cb4: 81 e8 00 00 restore 02002f38 : int dup2( int fildes, int fildes2 ) { 2002f38: 9d e3 bf 58 save %sp, -168, %sp /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 2002f3c: a0 07 bf b8 add %fp, -72, %l0 2002f40: 90 10 00 18 mov %i0, %o0 2002f44: 40 00 01 dc call 20036b4 2002f48: 92 10 00 10 mov %l0, %o1 if ( status == -1 ) 2002f4c: 80 a2 3f ff cmp %o0, -1 2002f50: 02 80 00 0e be 2002f88 2002f54: 90 10 3f ff mov -1, %o0 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 2002f58: 92 10 00 10 mov %l0, %o1 2002f5c: 40 00 01 d6 call 20036b4 2002f60: 90 10 00 19 mov %i1, %o0 if ( status == -1 ) 2002f64: 80 a2 3f ff cmp %o0, -1 2002f68: 02 80 00 07 be 2002f84 2002f6c: 90 10 00 18 mov %i0, %o0 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 2002f70: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED 2002f74: 40 00 00 a1 call 20031f8 <== NOT EXECUTED 2002f78: 92 10 20 00 clr %o1 <== NOT EXECUTED 2002f7c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f80: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 2002f84: 90 10 3f ff mov -1, %o0 } 2002f88: b0 10 00 08 mov %o0, %i0 2002f8c: 81 c7 e0 08 ret 2002f90: 81 e8 00 00 restore 02003688 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2003688: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 200368c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003690: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003694: 02 80 00 1c be 2003704 <== NOT EXECUTED 2003698: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200369c: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED 20036a0: c4 00 60 e0 ld [ %g1 + 0xe0 ], %g2 ! 20194e0 <__ctype_ptr__> <== NOT EXECUTED 20036a4: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED 20036a8: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 20036ac: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 20036b0: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 20036b4: 22 80 00 15 be,a 2003708 <== NOT EXECUTED 20036b8: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 20036bc: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED 20036c0: 02 80 00 11 be 2003704 <== NOT EXECUTED 20036c4: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 20036c8: 02 80 00 10 be 2003708 <== NOT EXECUTED 20036cc: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; 20036d0: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED echobuf[1] = c ^ 0x40; 20036d4: b0 1e 20 40 xor %i0, 0x40, %i0 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; 20036d8: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 20036dc: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 20036e0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED 20036e4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 20036e8: 7f ff ff 39 call 20033cc <== NOT EXECUTED 20036ec: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED tty->column += 2; 20036f0: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED 20036f4: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED 20036f8: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 20036fc: 81 c7 e0 08 ret <== NOT EXECUTED 2003700: 81 e8 00 00 restore <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 2003704: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED 2003708: 7f ff ff 7d call 20034fc <== NOT EXECUTED 200370c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003710: 81 c7 e0 08 ret <== NOT EXECUTED 2003714: 81 e8 00 00 restore <== NOT EXECUTED 020256c8 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 20256c8: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 20256cc: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 20660bc <== NOT EXECUTED 20256d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20256d4: 02 80 00 05 be 20256e8 <== NOT EXECUTED 20256d8: 01 00 00 00 nop <== NOT EXECUTED fclose(group_fp); 20256dc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20256e0: 40 00 5f 59 call 203d444 <== NOT EXECUTED 20256e4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20256e8: 81 c3 e0 08 retl <== NOT EXECUTED 20256ec: 01 00 00 00 nop 020256f0 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 20256f0: 03 00 81 97 sethi %hi(0x2065c00), %g1 <== NOT EXECUTED 20256f4: d0 00 63 d4 ld [ %g1 + 0x3d4 ], %o0 ! 2065fd4 <== NOT EXECUTED 20256f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20256fc: 02 80 00 05 be 2025710 <== NOT EXECUTED 2025700: 01 00 00 00 nop <== NOT EXECUTED fclose(passwd_fp); 2025704: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025708: 40 00 5f 4f call 203d444 <== NOT EXECUTED 202570c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2025710: 81 c3 e0 08 retl <== NOT EXECUTED 2025714: 01 00 00 00 nop 02003718 : * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { 2003718: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->ccount == 0) 200371c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 2003720: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003724: 02 80 00 0a be 200374c <== NOT EXECUTED 2003728: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED return; if (lineFlag) { 200372c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003730: 02 80 00 7a be 2003918 <== NOT EXECUTED 2003734: 25 00 80 65 sethi %hi(0x2019400), %l2 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 2003738: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 200373c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003740: 32 80 00 05 bne,a 2003754 <== NOT EXECUTED 2003744: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED tty->ccount = 0; 2003748: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED return; 200374c: 81 c7 e0 08 ret <== NOT EXECUTED 2003750: 81 e8 00 00 restore <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { 2003754: 12 80 00 71 bne 2003918 <== NOT EXECUTED 2003758: 25 00 80 65 sethi %hi(0x2019400), %l2 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); 200375c: d0 0e 20 44 ldub [ %i0 + 0x44 ], %o0 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; 2003760: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 2003764: 7f ff ff c9 call 2003688 <== NOT EXECUTED 2003768: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 200376c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); 2003770: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) 2003774: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003778: 02 bf ff f5 be 200374c <== NOT EXECUTED 200377c: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 2003780: 30 80 00 0f b,a 20037bc <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 2003784: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2003788: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED 200378c: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2003790: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003794: 02 80 00 5c be 2003904 <== NOT EXECUTED 2003798: e2 08 80 03 ldub [ %g2 + %g3 ], %l1 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 200379c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20037a0: 32 80 00 09 bne,a 20037c4 <== NOT EXECUTED 20037a4: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED 20037a8: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 20037ac: 32 80 00 06 bne,a 20037c4 <== NOT EXECUTED 20037b0: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 20037b4: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED 20037b8: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED 20037bc: 7f ff ff b3 call 2003688 <== NOT EXECUTED 20037c0: 81 e8 00 00 restore <== NOT EXECUTED } else if (c == '\t') { 20037c4: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED 20037c8: 32 80 00 2a bne,a 2003870 <== NOT EXECUTED 20037cc: c4 04 80 00 ld [ %l2 ], %g2 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 20037d0: 82 08 62 00 and %g1, 0x200, %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; 20037d4: e2 04 20 2c ld [ %l0 + 0x2c ], %l1 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 20037d8: da 04 80 00 ld [ %l2 ], %o5 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 20037dc: 10 80 00 13 b 2003828 <== NOT EXECUTED 20037e0: 84 10 20 00 clr %g2 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { 20037e4: c8 09 00 02 ldub [ %g4 + %g2 ], %g4 <== NOT EXECUTED 20037e8: 80 a1 20 09 cmp %g4, 9 <== NOT EXECUTED 20037ec: 12 80 00 04 bne 20037fc <== NOT EXECUTED 20037f0: 98 03 40 04 add %o5, %g4, %o4 <== NOT EXECUTED col = (col | 7) + 1; 20037f4: 10 80 00 0b b 2003820 <== NOT EXECUTED 20037f8: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED } else if (iscntrl (c)) { 20037fc: c8 0b 20 01 ldub [ %o4 + 1 ], %g4 <== NOT EXECUTED 2003800: 80 89 20 20 btst 0x20, %g4 <== NOT EXECUTED 2003804: 22 80 00 08 be,a 2003824 <== NOT EXECUTED 2003808: a2 04 60 01 inc %l1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 200380c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003810: 32 80 00 05 bne,a 2003824 <== NOT EXECUTED 2003814: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2003818: 10 80 00 04 b 2003828 <== NOT EXECUTED 200381c: 84 00 a0 01 inc %g2 <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 2003820: a2 04 60 01 inc %l1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2003824: 84 00 a0 01 inc %g2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2003828: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 200382c: 32 bf ff ee bne,a 20037e4 <== NOT EXECUTED 2003830: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003834: 10 80 00 08 b 2003854 <== NOT EXECUTED 2003838: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 200383c: 7f ff fe e4 call 20033cc <== NOT EXECUTED 2003840: 01 00 00 00 nop <== NOT EXECUTED tty->column--; 2003844: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 2003848: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200384c: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2003850: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2003854: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED 2003858: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 200385c: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED 2003860: 14 bf ff f7 bg 200383c <== NOT EXECUTED 2003864: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2003868: 10 80 00 28 b 2003908 <== NOT EXECUTED 200386c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2003870: a2 04 60 01 inc %l1 <== NOT EXECUTED 2003874: c4 08 80 11 ldub [ %g2 + %l1 ], %g2 <== NOT EXECUTED 2003878: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED 200387c: 22 80 00 10 be,a 20038bc <== NOT EXECUTED 2003880: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 2003884: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003888: 22 80 00 0d be,a 20038bc <== NOT EXECUTED 200388c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2003890: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2003894: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2003898: 7f ff fe cd call 20033cc <== NOT EXECUTED 200389c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20038a0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20038a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038a8: 22 80 00 05 be,a 20038bc <== NOT EXECUTED 20038ac: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED tty->column--; 20038b0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 20038b4: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 20038b8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 20038bc: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED 20038c0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20038c4: 02 80 00 07 be 20038e0 <== NOT EXECUTED 20038c8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20038cc: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 20038d0: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 20038d4: 02 80 00 0d be 2003908 <== NOT EXECUTED 20038d8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 20038dc: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20038e0: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 20038e4: 7f ff fe ba call 20033cc <== NOT EXECUTED 20038e8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED if (tty->column) 20038ec: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED 20038f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20038f4: 02 80 00 05 be 2003908 <== NOT EXECUTED 20038f8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED tty->column--; 20038fc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003900: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED } } } if (!lineFlag) 2003904: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2003908: 32 80 00 0a bne,a 2003930 <== NOT EXECUTED 200390c: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2003910: 81 c7 e0 08 ret <== NOT EXECUTED 2003914: 81 e8 00 00 restore <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 2003918: 27 00 80 61 sethi %hi(0x2018400), %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 200391c: 29 00 80 61 sethi %hi(0x2018400), %l4 <== NOT EXECUTED 2003920: a4 14 a0 e0 or %l2, 0xe0, %l2 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 2003924: a6 14 e2 90 or %l3, 0x290, %l3 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2003928: a8 15 22 88 or %l4, 0x288, %l4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 200392c: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED 2003930: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2003934: 32 bf ff 94 bne,a 2003784 <== NOT EXECUTED 2003938: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED 200393c: 81 c7 e0 08 ret <== NOT EXECUTED 2003940: 81 e8 00 00 restore <== NOT EXECUTED 02037aec : #include int fchdir( int fd ) { 2037aec: 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 ); 2037af0: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED 2037af4: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 20622e4 <== NOT EXECUTED 2037af8: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2037afc: 1a 80 00 0c bcc 2037b2c <== NOT EXECUTED 2037b00: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2037b04: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 2037b08: e4 00 63 a8 ld [ %g1 + 0x3a8 ], %l2 ! 20663a8 <== NOT EXECUTED 2037b0c: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2037b10: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2037b14: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2037b18: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2037b1c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED 2037b20: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2037b24: 12 80 00 06 bne 2037b3c <== NOT EXECUTED 2037b28: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2037b2c: 40 00 15 ee call 203d2e4 <__errno> <== NOT EXECUTED 2037b30: 01 00 00 00 nop <== NOT EXECUTED 2037b34: 10 80 00 1b b 2037ba0 <== NOT EXECUTED 2037b38: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2037b3c: 32 80 00 06 bne,a 2037b54 <== NOT EXECUTED 2037b40: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED 2037b44: 40 00 15 e8 call 203d2e4 <__errno> <== NOT EXECUTED 2037b48: 01 00 00 00 nop <== NOT EXECUTED 2037b4c: 10 80 00 15 b 2037ba0 <== NOT EXECUTED 2037b50: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 2037b54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2037b58: 02 80 00 06 be 2037b70 <== NOT EXECUTED 2037b5c: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 2037b60: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 2037b64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2037b68: 32 80 00 06 bne,a 2037b80 <== NOT EXECUTED 2037b6c: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2037b70: 40 00 15 dd call 203d2e4 <__errno> <== NOT EXECUTED 2037b74: 01 00 00 00 nop <== NOT EXECUTED 2037b78: 10 80 00 0a b 2037ba0 <== NOT EXECUTED 2037b7c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 2037b80: 9f c0 40 00 call %g1 <== NOT EXECUTED 2037b84: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2037b88: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED 2037b8c: 02 80 00 07 be 2037ba8 <== NOT EXECUTED 2037b90: 23 00 81 89 sethi %hi(0x2062400), %l1 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 2037b94: 40 00 15 d4 call 203d2e4 <__errno> <== NOT EXECUTED 2037b98: 01 00 00 00 nop <== NOT EXECUTED 2037b9c: 82 10 20 14 mov 0x14, %g1 ! 14 <== NOT EXECUTED 2037ba0: 10 80 00 1c b 2037c10 <== NOT EXECUTED 2037ba4: 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; 2037ba8: e6 04 61 d4 ld [ %l1 + 0x1d4 ], %l3 <== NOT EXECUTED 2037bac: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2037bb0: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED 2037bb4: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED 2037bb8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 2037bbc: 40 00 22 9d call 2040630 <== NOT EXECUTED 2037bc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 2037bc4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2037bc8: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2037bcc: 40 00 22 99 call 2040630 <== NOT EXECUTED 2037bd0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 2037bd4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2037bd8: 11 00 81 66 sethi %hi(0x2059800), %o0 <== NOT EXECUTED 2037bdc: 94 10 20 00 clr %o2 <== NOT EXECUTED 2037be0: 90 12 23 00 or %o0, 0x300, %o0 <== NOT EXECUTED 2037be4: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED 2037be8: 7f ff 37 cb call 2005b14 <== NOT EXECUTED 2037bec: 98 10 20 00 clr %o4 <== NOT EXECUTED 2037bf0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2037bf4: 02 80 00 09 be 2037c18 <== NOT EXECUTED 2037bf8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 2037bfc: d0 04 61 d4 ld [ %l1 + 0x1d4 ], %o0 <== NOT EXECUTED 2037c00: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2037c04: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2037c08: 40 00 22 8a call 2040630 <== NOT EXECUTED 2037c0c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED return -1; 2037c10: 81 c7 e0 08 ret <== NOT EXECUTED 2037c14: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED } /* release the old one */ rtems_filesystem_freenode( &saved ); 2037c18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2037c1c: 22 80 00 09 be,a 2037c40 <== NOT EXECUTED 2037c20: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2037c24: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206241c <== NOT EXECUTED 2037c28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2037c2c: 22 80 00 05 be,a 2037c40 <== NOT EXECUTED 2037c30: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2037c34: 9f c0 40 00 call %g1 <== NOT EXECUTED 2037c38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_current = loc; 2037c3c: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2037c40: d0 00 61 d4 ld [ %g1 + 0x1d4 ], %o0 ! 20625d4 <== NOT EXECUTED 2037c44: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED 2037c48: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED 2037c4c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 2037c50: 40 00 22 78 call 2040630 <== NOT EXECUTED 2037c54: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } 2037c58: 81 c7 e0 08 ret <== NOT EXECUTED 2037c5c: 81 e8 00 00 restore <== NOT EXECUTED 020252c0 : int fchmod( int fd, mode_t mode ) { 20252c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20252c4: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED 20252c8: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 20622e4 <== NOT EXECUTED 20252cc: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 20252d0: 1a 80 00 0c bcc 2025300 <== NOT EXECUTED 20252d4: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 20252d8: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 20252dc: d0 00 63 a8 ld [ %g1 + 0x3a8 ], %o0 ! 20663a8 <== NOT EXECUTED 20252e0: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 20252e4: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 20252e8: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 20252ec: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 20252f0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 20252f4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20252f8: 12 80 00 06 bne 2025310 <== NOT EXECUTED 20252fc: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2025300: 40 00 5f f9 call 203d2e4 <__errno> <== NOT EXECUTED 2025304: 01 00 00 00 nop <== NOT EXECUTED 2025308: 10 80 00 0f b 2025344 <== NOT EXECUTED 202530c: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2025310: 32 80 00 06 bne,a 2025328 <== NOT EXECUTED 2025314: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED 2025318: 40 00 5f f3 call 203d2e4 <__errno> <== NOT EXECUTED 202531c: 01 00 00 00 nop <== NOT EXECUTED 2025320: 10 80 00 09 b 2025344 <== NOT EXECUTED 2025324: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 2025328: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202532c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2025330: 32 80 00 08 bne,a 2025350 <== NOT EXECUTED 2025334: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025338: 40 00 5f eb call 203d2e4 <__errno> <== NOT EXECUTED 202533c: 01 00 00 00 nop <== NOT EXECUTED 2025340: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2025344: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025348: 10 80 00 07 b 2025364 <== NOT EXECUTED 202534c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 2025350: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED 2025354: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2025358: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 202535c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2025360: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED } 2025364: 81 c7 e0 08 ret <== NOT EXECUTED 2025368: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 0202536c : int fchown( int fd, uid_t owner, gid_t group ) { 202536c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2025370: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED 2025374: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 20622e4 <== NOT EXECUTED 2025378: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 202537c: 1a 80 00 0c bcc 20253ac <== NOT EXECUTED 2025380: 01 00 00 00 nop <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2025384: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 2025388: d0 00 63 a8 ld [ %g1 + 0x3a8 ], %o0 ! 20663a8 <== NOT EXECUTED 202538c: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED 2025390: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED 2025394: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED 2025398: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED rtems_libio_check_is_open(iop); 202539c: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED 20253a0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 20253a4: 12 80 00 06 bne 20253bc <== NOT EXECUTED 20253a8: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 20253ac: 40 00 5f ce call 203d2e4 <__errno> <== NOT EXECUTED 20253b0: 01 00 00 00 nop <== NOT EXECUTED 20253b4: 10 80 00 0f b 20253f0 <== NOT EXECUTED 20253b8: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20253bc: 32 80 00 06 bne,a 20253d4 <== NOT EXECUTED 20253c0: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED 20253c4: 40 00 5f c8 call 203d2e4 <__errno> <== NOT EXECUTED 20253c8: 01 00 00 00 nop <== NOT EXECUTED 20253cc: 10 80 00 09 b 20253f0 <== NOT EXECUTED 20253d0: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 20253d4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20253d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20253dc: 12 80 00 08 bne 20253fc <== NOT EXECUTED 20253e0: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20253e4: 40 00 5f c0 call 203d2e4 <__errno> <== NOT EXECUTED 20253e8: 01 00 00 00 nop <== NOT EXECUTED 20253ec: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 20253f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20253f4: 10 80 00 07 b 2025410 <== NOT EXECUTED 20253f8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 20253fc: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 2025400: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED 2025404: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED 2025408: 9f c0 40 00 call %g1 <== NOT EXECUTED 202540c: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED } 2025410: 81 c7 e0 08 ret <== NOT EXECUTED 2025414: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02037c88 : int fcntl( int fd, int cmd, ... ) { 2037c88: 9d e3 bf 98 save %sp, -104, %sp int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2037c8c: 03 00 81 88 sethi %hi(0x2062000), %g1 2037c90: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 20622e4 ... ) { int ret; va_list ap; va_start( ap, cmd ); 2037c94: 84 07 a0 4c add %fp, 0x4c, %g2 2037c98: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2037c9c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2037ca0: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2037ca4: fa 27 a0 58 st %i5, [ %fp + 0x58 ] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2037ca8: 80 a6 00 01 cmp %i0, %g1 2037cac: 1a 80 00 0c bcc 2037cdc 2037cb0: c4 27 bf fc st %g2, [ %fp + -4 ] iop = rtems_libio_iop( fd ); 2037cb4: 07 00 81 98 sethi %hi(0x2066000), %g3 2037cb8: c6 00 e3 a8 ld [ %g3 + 0x3a8 ], %g3 ! 20663a8 2037cbc: 89 2e 20 06 sll %i0, 6, %g4 2037cc0: a1 2e 20 03 sll %i0, 3, %l0 2037cc4: a0 04 00 04 add %l0, %g4, %l0 2037cc8: a0 00 c0 10 add %g3, %l0, %l0 rtems_libio_check_is_open(iop); 2037ccc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2037cd0: 80 8a 21 00 btst 0x100, %o0 2037cd4: 12 80 00 06 bne 2037cec 2037cd8: 80 a6 60 09 cmp %i1, 9 2037cdc: 40 00 15 82 call 203d2e4 <__errno> <== NOT EXECUTED 2037ce0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2037ce4: 10 80 00 51 b 2037e28 <== NOT EXECUTED 2037ce8: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 2037cec: 18 80 00 4c bgu 2037e1c 2037cf0: 89 2e 60 02 sll %i1, 2, %g4 2037cf4: 1b 00 80 df sethi %hi(0x2037c00), %o5 2037cf8: 9a 13 60 60 or %o5, 0x60, %o5 ! 2037c60 2037cfc: c8 03 40 04 ld [ %o5 + %g4 ], %g4 2037d00: 81 c1 00 00 jmp %g4 2037d04: 01 00 00 00 nop case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 2037d08: c4 00 80 00 ld [ %g2 ], %g2 if ( fd2 ) 2037d0c: 80 a0 a0 00 cmp %g2, 0 2037d10: 02 80 00 09 be 2037d34 2037d14: 80 a0 80 01 cmp %g2, %g1 diop = rtems_libio_iop( fd2 ); 2037d18: 1a 80 00 0c bcc 2037d48 <== NOT EXECUTED 2037d1c: a2 10 20 00 clr %l1 <== NOT EXECUTED 2037d20: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED 2037d24: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED 2037d28: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED 2037d2c: 10 80 00 07 b 2037d48 <== NOT EXECUTED 2037d30: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 2037d34: 7f ff 38 92 call 2005f7c 2037d38: b0 10 3f ff mov -1, %i0 if ( diop == 0 ) { 2037d3c: a2 92 20 00 orcc %o0, 0, %l1 2037d40: 02 80 00 4d be 2037e74 2037d44: 01 00 00 00 nop break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 2037d48: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 diop->flags = iop->flags; 2037d4c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 ret = -1; break; } } diop->handlers = iop->handlers; 2037d50: c6 04 20 40 ld [ %l0 + 0x40 ], %g3 diop->file_info = iop->file_info; 2037d54: c4 24 60 3c st %g2, [ %l1 + 0x3c ] diop->flags = iop->flags; 2037d58: c2 24 60 18 st %g1, [ %l1 + 0x18 ] ret = -1; break; } } diop->handlers = iop->handlers; 2037d5c: c6 24 60 40 st %g3, [ %l1 + 0x40 ] diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2037d60: 90 04 60 1c add %l1, 0x1c, %o0 2037d64: 92 04 20 1c add %l0, 0x1c, %o1 2037d68: 40 00 22 32 call 2040630 2037d6c: 94 10 20 14 mov 0x14, %o2 ret = (int) (diop - rtems_libio_iops); 2037d70: 03 00 81 98 sethi %hi(0x2066000), %g1 2037d74: f0 00 63 a8 ld [ %g1 + 0x3a8 ], %i0 ! 20663a8 2037d78: a2 24 40 18 sub %l1, %i0, %l1 2037d7c: a3 3c 60 03 sra %l1, 3, %l1 2037d80: 85 2c 60 06 sll %l1, 6, %g2 2037d84: 83 2c 60 03 sll %l1, 3, %g1 2037d88: 82 20 80 01 sub %g2, %g1, %g1 2037d8c: 85 28 60 06 sll %g1, 6, %g2 2037d90: 82 00 40 02 add %g1, %g2, %g1 2037d94: 82 00 40 11 add %g1, %l1, %g1 2037d98: b1 28 60 0f sll %g1, 0xf, %i0 2037d9c: b0 26 00 01 sub %i0, %g1, %i0 2037da0: b1 2e 20 03 sll %i0, 3, %i0 2037da4: 10 80 00 24 b 2037e34 2037da8: b0 06 00 11 add %i0, %l1, %i0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 2037dac: b1 32 20 0b srl %o0, 0xb, %i0 2037db0: 10 80 00 24 b 2037e40 2037db4: 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 ) ) 2037db8: c2 00 80 00 ld [ %g2 ], %g1 2037dbc: 80 a0 60 00 cmp %g1, 0 2037dc0: 22 80 00 03 be,a 2037dcc 2037dc4: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED 2037dc8: 90 12 28 00 or %o0, 0x800, %o0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 2037dcc: d0 24 20 18 st %o0, [ %l0 + 0x18 ] 2037dd0: 10 80 00 1c b 2037e40 2037dd4: b0 10 20 00 clr %i0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 2037dd8: 7f ff 37 fe call 2005dd0 2037ddc: 01 00 00 00 nop 2037de0: 10 80 00 15 b 2037e34 2037de4: b0 10 00 08 mov %o0, %i0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 2037de8: d0 00 80 00 ld [ %g2 ], %o0 2037dec: 7f ff 38 98 call 200604c 2037df0: 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); 2037df4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2037df8: 90 0a 22 01 and %o0, 0x201, %o0 2037dfc: 82 08 7d fe and %g1, -514, %g1 2037e00: 82 12 00 01 or %o0, %g1, %g1 2037e04: 10 80 00 0f b 2037e40 2037e08: c2 24 20 18 st %g1, [ %l0 + 0x18 ] errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 2037e0c: 40 00 15 36 call 203d2e4 <__errno> 2037e10: b0 10 3f ff mov -1, %i0 2037e14: 10 80 00 05 b 2037e28 2037e18: 82 10 20 86 mov 0x86, %g1 ret = -1; break; default: errno = EINVAL; 2037e1c: 40 00 15 32 call 203d2e4 <__errno> 2037e20: b0 10 3f ff mov -1, %i0 2037e24: 82 10 20 16 mov 0x16, %g1 2037e28: c2 22 00 00 st %g1, [ %o0 ] 2037e2c: 81 c7 e0 08 ret 2037e30: 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) { 2037e34: 80 a6 20 00 cmp %i0, 0 2037e38: 06 80 00 0f bl 2037e74 2037e3c: 01 00 00 00 nop if (iop->handlers->fcntl_h) { 2037e40: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2037e44: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 2037e48: 80 a0 60 00 cmp %g1, 0 2037e4c: 02 bf ff f8 be 2037e2c 2037e50: 92 10 00 10 mov %l0, %o1 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 2037e54: 9f c0 40 00 call %g1 2037e58: 90 10 00 19 mov %i1, %o0 if (err) { 2037e5c: a0 92 20 00 orcc %o0, 0, %l0 2037e60: 02 80 00 05 be 2037e74 2037e64: 01 00 00 00 nop errno = err; 2037e68: 40 00 15 1f call 203d2e4 <__errno> <== NOT EXECUTED 2037e6c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2037e70: 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; } 2037e74: 81 c7 e0 08 ret 2037e78: 81 e8 00 00 restore 0200c0f0 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200c0f0: 9d e3 bf 98 save %sp, -104, %sp ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200c0f4: 03 00 80 66 sethi %hi(0x2019800), %g1 200c0f8: d0 00 62 c4 ld [ %g1 + 0x2c4 ], %o0 ! 2019ac4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 200c0fc: a0 10 00 18 mov %i0, %l0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 200c100: 92 10 20 00 clr %o1 200c104: 94 10 20 00 clr %o2 200c108: 7f ff e5 32 call 20055d0 200c10c: b0 10 3f fc mov -4, %i0 200c110: 80 a2 20 00 cmp %o0, 0 200c114: 12 80 00 de bne 200c48c 200c118: 01 00 00 00 nop RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 200c11c: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (pipe == NULL) { 200c120: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200c124: 32 80 00 49 bne,a 200c248 <== NOT EXECUTED 200c128: 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)); 200c12c: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED 200c130: 7f ff f9 b3 call 200a7fc <== NOT EXECUTED 200c134: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED if (pipe == NULL) 200c138: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED 200c13c: 02 80 00 54 be 200c28c <== NOT EXECUTED 200c140: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 200c144: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c148: 40 00 07 47 call 200de64 <== NOT EXECUTED 200c14c: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED pipe->Size = PIPE_BUF; 200c150: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 200c154: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED 200c158: 7f ff f9 a9 call 200a7fc <== NOT EXECUTED 200c15c: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED if (! pipe->Buffer) 200c160: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c164: 02 80 00 34 be 200c234 <== NOT EXECUTED 200c168: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 200c16c: 27 00 80 65 sethi %hi(0x2019400), %l3 <== NOT EXECUTED 200c170: d0 4c e0 cc ldsb [ %l3 + 0xcc ], %o0 ! 20194cc <== NOT EXECUTED 200c174: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED 200c178: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <== NOT EXECUTED 200c17c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c180: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200c184: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c188: 40 00 01 7e call 200c780 <== NOT EXECUTED 200c18c: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED 200c190: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c194: 32 80 00 26 bne,a 200c22c <== NOT EXECUTED 200c198: 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( 200c19c: d0 4c e0 cc ldsb [ %l3 + 0xcc ], %o0 <== NOT EXECUTED 200c1a0: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED 200c1a4: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <== NOT EXECUTED 200c1a8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c1ac: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200c1b0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c1b4: 40 00 01 73 call 200c780 <== NOT EXECUTED 200c1b8: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED 200c1bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c1c0: 12 80 00 18 bne 200c220 <== NOT EXECUTED 200c1c4: 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( 200c1c8: d0 4c e0 cc ldsb [ %l3 + 0xcc ], %o0 <== NOT EXECUTED 200c1cc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200c1d0: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED 200c1d4: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED 200c1d8: 96 10 20 00 clr %o3 <== NOT EXECUTED 200c1dc: 7f ff e4 5b call 2005348 <== NOT EXECUTED 200c1e0: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED 200c1e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c1e8: 12 80 00 0c bne 200c218 <== NOT EXECUTED 200c1ec: 01 00 00 00 nop <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 200c1f0: c2 0c e0 cc ldub [ %l3 + 0xcc ], %g1 <== NOT EXECUTED 200c1f4: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 200c1f8: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED 200c1fc: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200c200: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED 200c204: 12 80 00 10 bne 200c244 <== NOT EXECUTED 200c208: c4 2c e0 cc stb %g2, [ %l3 + 0xcc ] <== NOT EXECUTED c = 'a'; 200c20c: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED 200c210: 10 80 00 0d b 200c244 <== NOT EXECUTED 200c214: c2 2c e0 cc stb %g1, [ %l3 + 0xcc ] <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 200c218: 40 00 01 88 call 200c838 <== NOT EXECUTED 200c21c: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 200c220: 40 00 01 86 call 200c838 <== NOT EXECUTED 200c224: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 200c228: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED 200c22c: 7f ff f8 1a call 200a294 <== NOT EXECUTED 200c230: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED err_buf: free(pipe); 200c234: 7f ff f8 18 call 200a294 <== NOT EXECUTED 200c238: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200c23c: 10 80 00 15 b 200c290 <== NOT EXECUTED 200c240: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200c244: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200c248: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c24c: 7f ff e4 e1 call 20055d0 <== NOT EXECUTED 200c250: 94 10 20 00 clr %o2 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200c254: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200c258: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 200c25c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200c260: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 200c264: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 200c268: 12 80 00 09 bne 200c28c <== NOT EXECUTED 200c26c: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED if (err) 200c270: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200c274: 22 80 00 06 be,a 200c28c <== NOT EXECUTED 200c278: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED pipe_free(pipe); 200c27c: 7f ff ff 4d call 200bfb0 <== NOT EXECUTED 200c280: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 200c284: 10 80 00 03 b 200c290 <== NOT EXECUTED 200c288: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200c28c: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200c290: 7f ff e5 17 call 20056ec <== NOT EXECUTED 200c294: d0 00 62 c4 ld [ %g1 + 0x2c4 ], %o0 ! 2019ac4 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 200c298: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200c29c: 12 80 00 7c bne 200c48c <== NOT EXECUTED 200c2a0: 01 00 00 00 nop <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 200c2a4: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED 200c2a8: 82 08 a0 06 and %g2, 6, %g1 <== NOT EXECUTED 200c2ac: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED 200c2b0: 02 80 00 2e be 200c368 <== NOT EXECUTED 200c2b4: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED 200c2b8: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 200c2bc: 02 80 00 56 be 200c414 <== NOT EXECUTED 200c2c0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200c2c4: 12 80 00 6a bne 200c46c <== NOT EXECUTED 200c2c8: 01 00 00 00 nop <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200c2cc: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200c2d0: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200c2d4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 200c2d8: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200c2dc: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200c2e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c2e4: 12 80 00 05 bne 200c2f8 <== NOT EXECUTED 200c2e8: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200c2ec: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200c2f0: 40 00 01 6c call 200c8a0 <== NOT EXECUTED 200c2f4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Writers == 0) { 200c2f8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200c2fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c300: 12 80 00 5b bne 200c46c <== NOT EXECUTED 200c304: 01 00 00 00 nop <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 200c308: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED 200c30c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200c310: 12 80 00 57 bne 200c46c <== NOT EXECUTED 200c314: 01 00 00 00 nop <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 200c318: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 200c31c: 7f ff e4 f4 call 20056ec <== NOT EXECUTED 200c320: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200c324: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200c328: 40 00 01 75 call 200c8fc <== NOT EXECUTED 200c32c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c330: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c334: 12 80 00 52 bne 200c47c <== NOT EXECUTED 200c338: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200c33c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200c340: 7f ff e4 a4 call 20055d0 <== NOT EXECUTED 200c344: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c348: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c34c: 32 80 00 4d bne,a 200c480 <== NOT EXECUTED 200c350: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 200c354: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED 200c358: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200c35c: 02 bf ff f0 be 200c31c <== NOT EXECUTED 200c360: 01 00 00 00 nop <== NOT EXECUTED 200c364: 30 80 00 42 b,a 200c46c <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 200c368: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200c36c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c370: 32 80 00 07 bne,a 200c38c <== NOT EXECUTED 200c374: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200c378: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED 200c37c: 22 80 00 04 be,a 200c38c <== NOT EXECUTED 200c380: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200c384: 10 80 00 3f b 200c480 <== NOT EXECUTED 200c388: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200c38c: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200c390: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 200c394: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200c398: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200c39c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c3a0: 12 80 00 05 bne 200c3b4 <== NOT EXECUTED 200c3a4: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200c3a8: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200c3ac: 40 00 01 3d call 200c8a0 <== NOT EXECUTED 200c3b0: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED if (pipe->Readers == 0) { 200c3b4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED 200c3b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c3bc: 12 80 00 2c bne 200c46c <== NOT EXECUTED 200c3c0: 01 00 00 00 nop <== NOT EXECUTED prevCounter = pipe->readerCounter; 200c3c4: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 200c3c8: 7f ff e4 c9 call 20056ec <== NOT EXECUTED 200c3cc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200c3d0: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200c3d4: 40 00 01 4a call 200c8fc <== NOT EXECUTED 200c3d8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c3dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c3e0: 12 80 00 27 bne 200c47c <== NOT EXECUTED 200c3e4: 92 10 20 00 clr %o1 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 200c3e8: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED 200c3ec: 7f ff e4 79 call 20055d0 <== NOT EXECUTED 200c3f0: 94 10 20 00 clr %o2 <== NOT EXECUTED 200c3f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c3f8: 32 80 00 22 bne,a 200c480 <== NOT EXECUTED 200c3fc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 200c400: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED 200c404: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 200c408: 02 bf ff f0 be 200c3c8 <== NOT EXECUTED 200c40c: 01 00 00 00 nop <== NOT EXECUTED 200c410: 30 80 00 17 b,a 200c46c <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 200c414: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200c418: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200c41c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 200c420: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Readers ++ == 0) 200c424: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED 200c428: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c42c: 12 80 00 05 bne 200c440 <== NOT EXECUTED 200c430: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200c434: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED 200c438: 40 00 01 1a call 200c8a0 <== NOT EXECUTED 200c43c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 200c440: 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 ++; 200c444: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200c448: 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 ++; 200c44c: 84 00 a0 01 inc %g2 <== NOT EXECUTED if (pipe->Writers ++ == 0) 200c450: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED 200c454: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c458: 12 80 00 05 bne 200c46c <== NOT EXECUTED 200c45c: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200c460: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED 200c464: 40 00 01 0f call 200c8a0 <== NOT EXECUTED 200c468: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 200c46c: 7f ff e4 a0 call 20056ec <== NOT EXECUTED 200c470: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED return 0; 200c474: 81 c7 e0 08 ret <== NOT EXECUTED 200c478: 81 e8 00 00 restore <== NOT EXECUTED 200c47c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 200c480: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 200c484: 7f ff fe d7 call 200bfe0 <== NOT EXECUTED 200c488: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED return err; } 200c48c: 81 c7 e0 08 ret 200c490: 81 e8 00 00 restore 020094b4 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20094b4: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 20094b8: 05 00 81 98 sethi %hi(0x2066000), %g2 <== NOT EXECUTED 20094bc: c2 00 63 f0 ld [ %g1 + 0x3f0 ], %g1 <== NOT EXECUTED 20094c0: 10 80 00 08 b 20094e0 <== NOT EXECUTED 20094c4: 84 10 a3 f4 or %g2, 0x3f4, %g2 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) { 20094c8: c6 02 60 10 ld [ %o1 + 0x10 ], %g3 <== NOT EXECUTED 20094cc: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 20094d0: 32 80 00 04 bne,a 20094e0 <== NOT EXECUTED 20094d4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 20094d8: 81 c3 e0 08 retl <== NOT EXECUTED 20094dc: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 20094e0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20094e4: 32 bf ff f9 bne,a 20094c8 <== NOT EXECUTED 20094e8: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED return true; } } return false; } 20094ec: 81 c3 e0 08 retl <== NOT EXECUTED 20094f0: 90 10 20 00 clr %o0 <== NOT EXECUTED 020034d8 : long fpathconf( int fd, int name ) { 20034d8: 9d e3 bf a0 save %sp, -96, %sp long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 20034dc: 03 00 80 74 sethi %hi(0x201d000), %g1 20034e0: c2 00 63 c4 ld [ %g1 + 0x3c4 ], %g1 ! 201d3c4 20034e4: 80 a6 00 01 cmp %i0, %g1 20034e8: 1a 80 00 0b bcc 2003514 20034ec: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop(fd); 20034f0: 03 00 80 77 sethi %hi(0x201dc00), %g1 20034f4: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 ! 201dc7c 20034f8: b1 2e 20 03 sll %i0, 3, %i0 20034fc: b0 06 00 02 add %i0, %g2, %i0 2003500: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 2003504: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2003508: 80 88 61 00 btst 0x100, %g1 200350c: 12 80 00 06 bne 2003524 2003510: 80 88 60 02 btst 2, %g1 2003514: 40 00 32 80 call 200ff14 <__errno> 2003518: 01 00 00 00 nop 200351c: 10 80 00 07 b 2003538 2003520: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 2003524: 12 80 00 08 bne 2003544 2003528: 80 a6 60 0b cmp %i1, 0xb 200352c: 40 00 32 7a call 200ff14 <__errno> <== NOT EXECUTED 2003530: 01 00 00 00 nop <== NOT EXECUTED 2003534: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED 2003538: c2 22 00 00 st %g1, [ %o0 ] 200353c: 81 c7 e0 08 ret 2003540: 91 e8 3f ff restore %g0, -1, %o0 * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 2003544: 18 80 00 2c bgu 20035f4 2003548: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 200354c: b3 2e 60 02 sll %i1, 2, %i1 2003550: 05 00 80 0d sethi %hi(0x2003400), %g2 2003554: 84 10 a0 a8 or %g2, 0xa8, %g2 ! 20034a8 2003558: c4 00 80 19 ld [ %g2 + %i1 ], %g2 200355c: 81 c0 80 00 jmp %g2 2003560: 01 00 00 00 nop case _PC_LINK_MAX: return_value = the_limits->link_max; 2003564: f0 00 60 38 ld [ %g1 + 0x38 ], %i0 break; 2003568: 81 c7 e0 08 ret 200356c: 81 e8 00 00 restore case _PC_MAX_CANON: return_value = the_limits->max_canon; 2003570: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 break; 2003574: 81 c7 e0 08 ret 2003578: 81 e8 00 00 restore case _PC_MAX_INPUT: return_value = the_limits->max_input; 200357c: f0 00 60 40 ld [ %g1 + 0x40 ], %i0 break; 2003580: 81 c7 e0 08 ret 2003584: 81 e8 00 00 restore case _PC_NAME_MAX: return_value = the_limits->name_max; 2003588: f0 00 60 44 ld [ %g1 + 0x44 ], %i0 break; 200358c: 81 c7 e0 08 ret 2003590: 81 e8 00 00 restore case _PC_PATH_MAX: return_value = the_limits->path_max; 2003594: f0 00 60 48 ld [ %g1 + 0x48 ], %i0 break; 2003598: 81 c7 e0 08 ret 200359c: 81 e8 00 00 restore case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 20035a0: f0 00 60 4c ld [ %g1 + 0x4c ], %i0 break; 20035a4: 81 c7 e0 08 ret 20035a8: 81 e8 00 00 restore case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 20035ac: f0 00 60 54 ld [ %g1 + 0x54 ], %i0 break; 20035b0: 81 c7 e0 08 ret 20035b4: 81 e8 00 00 restore case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 20035b8: f0 00 60 58 ld [ %g1 + 0x58 ], %i0 break; 20035bc: 81 c7 e0 08 ret 20035c0: 81 e8 00 00 restore case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 20035c4: f0 00 60 64 ld [ %g1 + 0x64 ], %i0 break; 20035c8: 81 c7 e0 08 ret 20035cc: 81 e8 00 00 restore case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 20035d0: f0 00 60 50 ld [ %g1 + 0x50 ], %i0 break; 20035d4: 81 c7 e0 08 ret 20035d8: 81 e8 00 00 restore case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 20035dc: f0 00 60 5c ld [ %g1 + 0x5c ], %i0 break; 20035e0: 81 c7 e0 08 ret 20035e4: 81 e8 00 00 restore case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 20035e8: f0 00 60 60 ld [ %g1 + 0x60 ], %i0 break; 20035ec: 81 c7 e0 08 ret 20035f0: 81 e8 00 00 restore default: rtems_set_errno_and_return_minus_one( EINVAL ); 20035f4: 40 00 32 48 call 200ff14 <__errno> 20035f8: b0 10 3f ff mov -1, %i0 20035fc: 82 10 20 16 mov 0x16, %g1 2003600: c2 22 00 00 st %g1, [ %o0 ] break; } return return_value; } 2003604: 81 c7 e0 08 ret 2003608: 81 e8 00 00 restore 0200a294 : void free( void *ptr ) { MSBUMP(free_calls, 1); 200a294: 9d e3 bf a0 save %sp, -96, %sp 200a298: 03 00 80 67 sethi %hi(0x2019c00), %g1 200a29c: 82 10 60 30 or %g1, 0x30, %g1 ! 2019c30 200a2a0: c4 00 60 0c ld [ %g1 + 0xc ], %g2 200a2a4: b2 10 00 18 mov %i0, %i1 200a2a8: 84 00 a0 01 inc %g2 if ( !ptr ) 200a2ac: 80 a6 20 00 cmp %i0, 0 200a2b0: 02 80 00 21 be 200a334 200a2b4: 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()) && 200a2b8: 03 00 80 67 sethi %hi(0x2019c00), %g1 200a2bc: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2019f90 <_System_state_Current> 200a2c0: 80 a0 60 03 cmp %g1, 3 200a2c4: 12 80 00 09 bne 200a2e8 200a2c8: 03 00 80 66 sethi %hi(0x2019800), %g1 200a2cc: 40 00 01 26 call 200a764 200a2d0: 01 00 00 00 nop 200a2d4: 80 8a 20 ff btst 0xff, %o0 200a2d8: 12 80 00 04 bne 200a2e8 200a2dc: 03 00 80 66 sethi %hi(0x2019800), %g1 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 200a2e0: 40 00 01 33 call 200a7ac <== NOT EXECUTED 200a2e4: 81 e8 00 00 restore <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200a2e8: c2 00 61 a8 ld [ %g1 + 0x1a8 ], %g1 200a2ec: 80 a0 60 00 cmp %g1, 0 200a2f0: 02 80 00 06 be 200a308 200a2f4: 21 00 80 64 sethi %hi(0x2019000), %l0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 200a2f8: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 200a2fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a300: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 200a304: 21 00 80 64 sethi %hi(0x2019000), %l0 <== NOT EXECUTED 200a308: d0 04 23 80 ld [ %l0 + 0x380 ], %o0 ! 2019380 200a30c: 40 00 04 73 call 200b4d8 <_Protected_heap_Free> 200a310: 92 10 00 19 mov %i1, %o1 200a314: 80 8a 20 ff btst 0xff, %o0 200a318: 12 80 00 07 bne 200a334 200a31c: c2 04 23 80 ld [ %l0 + 0x380 ], %g1 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 200a320: 31 00 80 62 sethi %hi(0x2018800), %i0 <== NOT EXECUTED 200a324: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED 200a328: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED 200a32c: 7f ff e2 9b call 2002d98 <== NOT EXECUTED 200a330: 91 ee 21 f0 restore %i0, 0x1f0, %o0 <== NOT EXECUTED 200a334: 81 c7 e0 08 ret 200a338: 81 e8 00 00 restore 02026840 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 2026840: 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 2026844: 03 00 81 99 sethi %hi(0x2066400), %g1 <== NOT EXECUTED 2026848: 82 10 60 08 or %g1, 8, %g1 ! 2066408 <== NOT EXECUTED 202684c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 2026850: 02 80 00 18 be 20268b0 <== NOT EXECUTED 2026854: 01 00 00 00 nop <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 2026858: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED 202685c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026860: 22 80 00 09 be,a 2026884 <== NOT EXECUTED 2026864: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026868: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202686c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026870: 22 80 00 05 be,a 2026884 <== NOT EXECUTED 2026874: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026878: 9f c0 40 00 call %g1 <== NOT EXECUTED 202687c: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 2026880: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 2026884: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026888: 02 80 00 08 be 20268a8 <== NOT EXECUTED 202688c: 01 00 00 00 nop <== NOT EXECUTED 2026890: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026894: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026898: 02 80 00 04 be 20268a8 <== NOT EXECUTED 202689c: 01 00 00 00 nop <== NOT EXECUTED 20268a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20268a4: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED free(env); 20268a8: 7f ff 7c c4 call 2005bb8 <== NOT EXECUTED 20268ac: 81 e8 00 00 restore <== NOT EXECUTED 20268b0: 81 c7 e0 08 ret <== NOT EXECUTED 20268b4: 81 e8 00 00 restore <== NOT EXECUTED 020175f8 : int fstat( int fd, struct stat *sbuf ) { 20175f8: 9d e3 bf a0 save %sp, -96, %sp /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 20175fc: 80 a6 60 00 cmp %i1, 0 2017600: 32 80 00 06 bne,a 2017618 2017604: 03 00 80 64 sethi %hi(0x2019000), %g1 rtems_set_errno_and_return_minus_one( EFAULT ); 2017608: 7f ff d7 9d call 200d47c <__errno> 201760c: 01 00 00 00 nop 2017610: 10 80 00 12 b 2017658 2017614: 82 10 20 0e mov 0xe, %g1 ! e /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 2017618: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 201761c: 80 a6 00 01 cmp %i0, %g1 2017620: 1a 80 00 0b bcc 201764c 2017624: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017628: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 2019c24 201762c: 85 2e 20 06 sll %i0, 6, %g2 2017630: b1 2e 20 03 sll %i0, 3, %i0 2017634: b0 06 00 02 add %i0, %g2, %i0 2017638: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 201763c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 2017640: 80 88 61 00 btst 0x100, %g1 2017644: 32 80 00 08 bne,a 2017664 2017648: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 201764c: 7f ff d7 8c call 200d47c <__errno> 2017650: 01 00 00 00 nop 2017654: 82 10 20 09 mov 9, %g1 ! 9 2017658: c2 22 00 00 st %g1, [ %o0 ] 201765c: 10 80 00 15 b 20176b0 2017660: 90 10 3f ff mov -1, %o0 rtems_libio_check_is_open(iop); if ( !iop->handlers ) 2017664: 80 a0 60 00 cmp %g1, 0 2017668: 02 bf ff f9 be 201764c 201766c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 2017670: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 2017674: 80 a0 60 00 cmp %g1, 0 2017678: 12 80 00 06 bne 2017690 201767c: 92 10 20 00 clr %o1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2017680: 7f ff d7 7f call 200d47c <__errno> <== NOT EXECUTED 2017684: 01 00 00 00 nop <== NOT EXECUTED 2017688: 10 bf ff f4 b 2017658 <== NOT EXECUTED 201768c: 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) ); 2017690: 94 10 20 48 mov 0x48, %o2 2017694: 7f ff d9 f4 call 200de64 2017698: 90 10 00 19 mov %i1, %o0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 201769c: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 20176a0: 90 06 20 1c add %i0, 0x1c, %o0 20176a4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 20176a8: 9f c0 40 00 call %g1 20176ac: 92 10 00 19 mov %i1, %o1 } 20176b0: 81 c7 e0 08 ret 20176b4: 91 e8 00 08 restore %g0, %o0, %o0 020254f0 : #include int fsync( int fd ) { 20254f0: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20254f4: 03 00 81 88 sethi %hi(0x2062000), %g1 20254f8: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 20622e4 20254fc: 80 a6 00 01 cmp %i0, %g1 2025500: 1a 80 00 15 bcc 2025554 2025504: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 2025508: 03 00 81 98 sethi %hi(0x2066000), %g1 202550c: d0 00 63 a8 ld [ %g1 + 0x3a8 ], %o0 ! 20663a8 2025510: 83 2e 20 06 sll %i0, 6, %g1 2025514: b1 2e 20 03 sll %i0, 3, %i0 2025518: b0 06 00 01 add %i0, %g1, %i0 202551c: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2025520: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2025524: 80 88 61 00 btst 0x100, %g1 2025528: 02 80 00 0b be 2025554 202552c: 80 88 60 04 btst 4, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2025530: 32 80 00 06 bne,a 2025548 2025534: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 2025538: 40 00 5f 6b call 203d2e4 <__errno> 202553c: 01 00 00 00 nop 2025540: 10 80 00 0f b 202557c 2025544: 82 10 20 16 mov 0x16, %g1 ! 16 /* * Now process the fsync(). */ if ( !iop->handlers ) 2025548: 80 a0 60 00 cmp %g1, 0 202554c: 32 80 00 06 bne,a 2025564 2025550: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 rtems_set_errno_and_return_minus_one( EBADF ); 2025554: 40 00 5f 64 call 203d2e4 <__errno> <== NOT EXECUTED 2025558: 01 00 00 00 nop <== NOT EXECUTED 202555c: 10 80 00 08 b 202557c <== NOT EXECUTED 2025560: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 2025564: 80 a0 60 00 cmp %g1, 0 2025568: 12 80 00 08 bne 2025588 202556c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2025570: 40 00 5f 5d call 203d2e4 <__errno> 2025574: 01 00 00 00 nop 2025578: 82 10 20 86 mov 0x86, %g1 ! 86 202557c: c2 22 00 00 st %g1, [ %o0 ] 2025580: 10 80 00 04 b 2025590 2025584: 90 10 3f ff mov -1, %o0 return (*iop->handlers->fsync_h)( iop ); 2025588: 9f c0 40 00 call %g1 202558c: 01 00 00 00 nop } 2025590: 81 c7 e0 08 ret 2025594: 91 e8 00 08 restore %g0, %o0, %o0 0200a33c : int ftruncate( int fd, off_t length ) { 200a33c: 9d e3 bf 88 save %sp, -120, %sp rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 200a340: 03 00 80 64 sethi %hi(0x2019000), %g1 200a344: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 ! 2019374 200a348: 80 a6 00 01 cmp %i0, %g1 200a34c: 1a 80 00 0b bcc 200a378 200a350: 85 2e 20 06 sll %i0, 6, %g2 iop = rtems_libio_iop( fd ); 200a354: 03 00 80 67 sethi %hi(0x2019c00), %g1 200a358: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 2019c24 200a35c: b1 2e 20 03 sll %i0, 3, %i0 200a360: b0 06 00 02 add %i0, %g2, %i0 200a364: b0 00 40 18 add %g1, %i0, %i0 rtems_libio_check_is_open(iop); 200a368: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 200a36c: 80 88 61 00 btst 0x100, %g1 200a370: 12 80 00 06 bne 200a388 200a374: a0 07 bf ec add %fp, -20, %l0 200a378: 40 00 0c 41 call 200d47c <__errno> <== NOT EXECUTED 200a37c: 01 00 00 00 nop <== NOT EXECUTED 200a380: 10 80 00 22 b 200a408 <== NOT EXECUTED 200a384: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 200a388: 92 06 20 1c add %i0, 0x1c, %o1 200a38c: 90 10 00 10 mov %l0, %o0 200a390: 40 00 0e 76 call 200dd68 200a394: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 200a398: c2 07 bf f8 ld [ %fp + -8 ], %g1 200a39c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 200a3a0: 80 a0 60 00 cmp %g1, 0 200a3a4: 02 80 00 16 be 200a3fc 200a3a8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 200a3ac: 9f c0 40 00 call %g1 200a3b0: 90 10 00 10 mov %l0, %o0 200a3b4: 80 a2 20 01 cmp %o0, 1 200a3b8: 32 80 00 06 bne,a 200a3d0 200a3bc: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_set_errno_and_return_minus_one( EISDIR ); 200a3c0: 40 00 0c 2f call 200d47c <__errno> 200a3c4: 01 00 00 00 nop 200a3c8: 10 80 00 10 b 200a408 200a3cc: 82 10 20 15 mov 0x15, %g1 ! 15 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 200a3d0: 80 88 60 04 btst 4, %g1 200a3d4: 32 80 00 06 bne,a 200a3ec 200a3d8: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 200a3dc: 40 00 0c 28 call 200d47c <__errno> <== NOT EXECUTED 200a3e0: 01 00 00 00 nop <== NOT EXECUTED 200a3e4: 10 80 00 09 b 200a408 <== NOT EXECUTED 200a3e8: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 200a3ec: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 200a3f0: 80 a0 60 00 cmp %g1, 0 200a3f4: 32 80 00 08 bne,a 200a414 200a3f8: 90 10 00 18 mov %i0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 200a3fc: 40 00 0c 20 call 200d47c <__errno> <== NOT EXECUTED 200a400: 01 00 00 00 nop <== NOT EXECUTED 200a404: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 200a408: c2 22 00 00 st %g1, [ %o0 ] 200a40c: 10 80 00 05 b 200a420 200a410: 90 10 3f ff mov -1, %o0 return (*iop->handlers->ftruncate_h)( iop, length ); 200a414: 92 10 00 19 mov %i1, %o1 200a418: 9f c0 40 00 call %g1 200a41c: 94 10 00 1a mov %i2, %o2 } 200a420: 81 c7 e0 08 ret 200a424: 91 e8 00 08 restore %g0, %o0, %o0 02056da4 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 2056da4: 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 ); 2056da8: 03 00 81 88 sethi %hi(0x2062000), %g1 2056dac: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 20622e4 2056db0: 80 a6 00 01 cmp %i0, %g1 2056db4: 1a 80 00 08 bcc 2056dd4 2056db8: a0 10 20 00 clr %l0 2056dbc: 03 00 81 98 sethi %hi(0x2066000), %g1 2056dc0: e0 00 63 a8 ld [ %g1 + 0x3a8 ], %l0 ! 20663a8 2056dc4: 83 2e 20 06 sll %i0, 6, %g1 2056dc8: b1 2e 20 03 sll %i0, 3, %i0 2056dcc: b0 06 00 01 add %i0, %g1, %i0 2056dd0: a0 04 00 18 add %l0, %i0, %l0 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 2056dd4: a2 07 bf ec add %fp, -20, %l1 2056dd8: 92 04 20 1c add %l0, 0x1c, %o1 2056ddc: 90 10 00 11 mov %l1, %o0 2056de0: 7f ff a6 14 call 2040630 2056de4: 94 10 20 14 mov 0x14, %o2 if ( !loc.ops->node_type_h ) 2056de8: c2 07 bf f8 ld [ %fp + -8 ], %g1 2056dec: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2056df0: 80 a0 60 00 cmp %g1, 0 2056df4: 02 80 00 11 be 2056e38 2056df8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 2056dfc: 9f c0 40 00 call %g1 2056e00: 90 10 00 11 mov %l1, %o0 2056e04: 80 a2 20 01 cmp %o0, 1 2056e08: 22 80 00 08 be,a 2056e28 2056e0c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2056e10: 7f ff 99 35 call 203d2e4 <__errno> 2056e14: 01 00 00 00 nop 2056e18: 82 10 20 14 mov 0x14, %g1 ! 14 2056e1c: c2 22 00 00 st %g1, [ %o0 ] 2056e20: 10 80 00 0d b 2056e54 2056e24: 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 ) 2056e28: c2 00 60 08 ld [ %g1 + 8 ], %g1 2056e2c: 80 a0 60 00 cmp %g1, 0 2056e30: 32 80 00 06 bne,a 2056e48 2056e34: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2056e38: 7f ff 99 2b call 203d2e4 <__errno> <== NOT EXECUTED 2056e3c: 01 00 00 00 nop <== NOT EXECUTED 2056e40: 10 bf ff f7 b 2056e1c <== NOT EXECUTED 2056e44: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 2056e48: 92 10 00 19 mov %i1, %o1 2056e4c: 9f c0 40 00 call %g1 2056e50: 94 10 00 1a mov %i2, %o2 } 2056e54: 81 c7 e0 08 ret 2056e58: 91 e8 00 08 restore %g0, %o0, %o0 020256a4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 20256a4: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 20256a8: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 ! 20625d4 <== NOT EXECUTED return _POSIX_types_Gid; } 20256ac: 81 c3 e0 08 retl <== NOT EXECUTED 20256b0: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED 02025d20 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2025d20: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2025d24: 7f ff ff b6 call 2025bfc 2025d28: 01 00 00 00 nop if ((fp = fopen("/etc/group", "r")) == NULL) { 2025d2c: 11 00 81 5f sethi %hi(0x2057c00), %o0 2025d30: 13 00 81 87 sethi %hi(0x2061c00), %o1 2025d34: 90 12 20 e8 or %o0, 0xe8, %o0 2025d38: 40 00 60 12 call 203dd80 2025d3c: 92 12 60 d0 or %o1, 0xd0, %o1 2025d40: a0 92 20 00 orcc %o0, 0, %l0 2025d44: 12 80 00 08 bne 2025d64 2025d48: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2025d4c: 40 00 5d 66 call 203d2e4 <__errno> <== NOT EXECUTED 2025d50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025d54: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025d58: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025d5c: 81 c7 e0 08 ret <== NOT EXECUTED 2025d60: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 2025d64: 94 10 00 1b mov %i3, %o2 2025d68: 96 10 00 1c mov %i4, %o3 2025d6c: 7f ff fe ea call 2025914 2025d70: 90 10 00 10 mov %l0, %o0 2025d74: 80 a2 20 00 cmp %o0, 0 2025d78: 12 80 00 0a bne 2025da0 2025d7c: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2025d80: 40 00 5d 59 call 203d2e4 <__errno> <== NOT EXECUTED 2025d84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025d88: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025d8c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2025d90: 40 00 5d ad call 203d444 <== NOT EXECUTED 2025d94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2025d98: 81 c7 e0 08 ret <== NOT EXECUTED 2025d9c: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 2025da0: 22 80 00 07 be,a 2025dbc 2025da4: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 2025da8: d0 06 80 00 ld [ %i2 ], %o0 2025dac: 40 00 76 78 call 204378c 2025db0: 92 10 00 18 mov %i0, %o1 2025db4: 10 80 00 04 b 2025dc4 2025db8: 80 a0 00 08 cmp %g0, %o0 } else { match = (grp->gr_gid == gid); 2025dbc: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2025dc0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2025dc4: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2025dc8: 80 a0 60 00 cmp %g1, 0 2025dcc: 02 bf ff e6 be 2025d64 2025dd0: 92 10 00 1a mov %i2, %o1 fclose(fp); 2025dd4: 90 10 00 10 mov %l0, %o0 2025dd8: 40 00 5d 9b call 203d444 2025ddc: b0 10 20 00 clr %i0 *result = grp; 2025de0: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2025de4: 81 c7 e0 08 ret 2025de8: 81 e8 00 00 restore 02025a50 : return NULL; return p; } struct group *getgrent(void) { 2025a50: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (group_fp == NULL) 2025a54: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 2025a58: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 20660bc <== NOT EXECUTED 2025a5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025a60: 22 80 00 0c be,a 2025a90 <== NOT EXECUTED 2025a64: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 2025a68: 31 00 81 98 sethi %hi(0x2066000), %i0 <== NOT EXECUTED 2025a6c: 15 00 81 98 sethi %hi(0x2066000), %o2 <== NOT EXECUTED 2025a70: 92 16 21 88 or %i0, 0x188, %o1 <== NOT EXECUTED 2025a74: 94 12 a0 c0 or %o2, 0xc0, %o2 <== NOT EXECUTED 2025a78: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025a7c: 7f ff ff a6 call 2025914 <== NOT EXECUTED 2025a80: b0 16 21 88 or %i0, 0x188, %i0 <== NOT EXECUTED 2025a84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025a88: 22 80 00 02 be,a 2025a90 <== NOT EXECUTED 2025a8c: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &grent; } 2025a90: 81 c7 e0 08 ret <== NOT EXECUTED 2025a94: 81 e8 00 00 restore <== NOT EXECUTED 02025e20 : } struct group *getgrgid( gid_t gid ) { 2025e20: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 2025e24: 13 00 81 98 sethi %hi(0x2066000), %o1 <== NOT EXECUTED 2025e28: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2025e2c: 92 12 61 88 or %o1, 0x188, %o1 <== NOT EXECUTED 2025e30: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2025e34: 15 00 81 98 sethi %hi(0x2066000), %o2 <== NOT EXECUTED 2025e38: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025e3c: 94 12 a0 c0 or %o2, 0xc0, %o2 <== NOT EXECUTED 2025e40: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2025e44: 7f ff ff ea call 2025dec <== NOT EXECUTED 2025e48: b0 10 20 00 clr %i0 <== NOT EXECUTED 2025e4c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025e50: 22 80 00 02 be,a 2025e58 <== NOT EXECUTED 2025e54: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 2025e58: 81 c7 e0 08 ret <== NOT EXECUTED 2025e5c: 81 e8 00 00 restore <== NOT EXECUTED 02025dec : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2025dec: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2025df0: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2025df4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 2025df8: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 2025dfc: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2025e00: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2025e04: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2025e08: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2025e0c: 90 10 20 00 clr %o0 <== NOT EXECUTED 2025e10: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2025e14: 7f ff ff c3 call 2025d20 <== NOT EXECUTED 2025e18: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2025e1c: 01 00 00 00 nop 02021b64 : */ pid_t getpid( void ) { return _Objects_Local_node; } 2021b64: 81 c3 e0 08 retl <== NOT EXECUTED 2021b68: 90 10 20 01 mov 1, %o0 ! 1 <== NOT EXECUTED 02025f14 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2025f14: 9d e3 bf a0 save %sp, -96, %sp FILE *fp; int match; init_etc_passwd_group(); 2025f18: 7f ff ff 39 call 2025bfc 2025f1c: 01 00 00 00 nop if ((fp = fopen("/etc/passwd", "r")) == NULL) { 2025f20: 11 00 81 5f sethi %hi(0x2057c00), %o0 2025f24: 13 00 81 87 sethi %hi(0x2061c00), %o1 2025f28: 90 12 20 30 or %o0, 0x30, %o0 2025f2c: 40 00 5f 95 call 203dd80 2025f30: 92 12 60 d0 or %o1, 0xd0, %o1 2025f34: a0 92 20 00 orcc %o0, 0, %l0 2025f38: 12 80 00 08 bne 2025f58 2025f3c: 92 10 00 1a mov %i2, %o1 errno = EINVAL; 2025f40: 40 00 5c e9 call 203d2e4 <__errno> <== NOT EXECUTED 2025f44: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025f48: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025f4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2025f50: 81 c7 e0 08 ret <== NOT EXECUTED 2025f54: 81 e8 00 00 restore <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 2025f58: 94 10 00 1b mov %i3, %o2 2025f5c: 96 10 00 1c mov %i4, %o3 2025f60: 7f ff fe ce call 2025a98 2025f64: 90 10 00 10 mov %l0, %o0 2025f68: 80 a2 20 00 cmp %o0, 0 2025f6c: 12 80 00 0a bne 2025f94 2025f70: 80 a6 20 00 cmp %i0, 0 errno = EINVAL; 2025f74: 40 00 5c dc call 203d2e4 <__errno> <== NOT EXECUTED 2025f78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2025f7c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 2025f80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED fclose(fp); 2025f84: 40 00 5d 30 call 203d444 <== NOT EXECUTED 2025f88: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return -1; 2025f8c: 81 c7 e0 08 ret <== NOT EXECUTED 2025f90: 81 e8 00 00 restore <== NOT EXECUTED } if (name) { 2025f94: 22 80 00 07 be,a 2025fb0 2025f98: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 2025f9c: d0 06 80 00 ld [ %i2 ], %o0 2025fa0: 40 00 75 fb call 204378c 2025fa4: 92 10 00 18 mov %i0, %o1 2025fa8: 10 80 00 04 b 2025fb8 2025fac: 80 a0 00 08 cmp %g0, %o0 } else { match = (pwd->pw_uid == uid); 2025fb0: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED 2025fb4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 2025fb8: 82 60 3f ff subx %g0, -1, %g1 } if (match) { 2025fbc: 80 a0 60 00 cmp %g1, 0 2025fc0: 02 bf ff e6 be 2025f58 2025fc4: 92 10 00 1a mov %i2, %o1 fclose(fp); 2025fc8: 90 10 00 10 mov %l0, %o0 2025fcc: 40 00 5d 1e call 203d444 2025fd0: b0 10 20 00 clr %i0 *result = pwd; 2025fd4: f4 27 40 00 st %i2, [ %i5 ] } } fclose(fp); errno = EINVAL; return -1; } 2025fd8: 81 c7 e0 08 ret 2025fdc: 81 e8 00 00 restore 02025bb4 : return NULL; return p; } struct passwd *getpwent(void) { 2025bb4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (passwd_fp == NULL) 2025bb8: 03 00 81 97 sethi %hi(0x2065c00), %g1 <== NOT EXECUTED 2025bbc: d0 00 63 d4 ld [ %g1 + 0x3d4 ], %o0 ! 2065fd4 <== NOT EXECUTED 2025bc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025bc4: 22 80 00 0c be,a 2025bf4 <== NOT EXECUTED 2025bc8: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 2025bcc: 31 00 81 98 sethi %hi(0x2066000), %i0 <== NOT EXECUTED 2025bd0: 15 00 81 97 sethi %hi(0x2065c00), %o2 <== NOT EXECUTED 2025bd4: 92 16 20 a0 or %i0, 0xa0, %o1 <== NOT EXECUTED 2025bd8: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 2025bdc: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2025be0: 7f ff ff ae call 2025a98 <== NOT EXECUTED 2025be4: b0 16 20 a0 or %i0, 0xa0, %i0 <== NOT EXECUTED 2025be8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025bec: 22 80 00 02 be,a 2025bf4 <== NOT EXECUTED 2025bf0: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; return &pwent; } 2025bf4: 81 c7 e0 08 ret <== NOT EXECUTED 2025bf8: 81 e8 00 00 restore <== NOT EXECUTED 02026014 : } struct passwd *getpwuid( uid_t uid ) { 2026014: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 2026018: 13 00 81 98 sethi %hi(0x2066000), %o1 <== NOT EXECUTED 202601c: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED 2026020: 92 12 60 a0 or %o1, 0xa0, %o1 <== NOT EXECUTED 2026024: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED 2026028: 15 00 81 97 sethi %hi(0x2065c00), %o2 <== NOT EXECUTED 202602c: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED 2026030: 94 12 a3 d8 or %o2, 0x3d8, %o2 <== NOT EXECUTED 2026034: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED 2026038: 7f ff ff ea call 2025fe0 <== NOT EXECUTED 202603c: b0 10 20 00 clr %i0 <== NOT EXECUTED 2026040: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026044: 22 80 00 02 be,a 202604c <== NOT EXECUTED 2026048: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED return NULL; return p; } 202604c: 81 c7 e0 08 ret <== NOT EXECUTED 2026050: 81 e8 00 00 restore <== NOT EXECUTED 02025fe0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2025fe0: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED 2025fe4: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2025fe8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 2025fec: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 2025ff0: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED 2025ff4: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED 2025ff8: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED 2025ffc: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED 2026000: 90 10 20 00 clr %o0 <== NOT EXECUTED 2026004: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2026008: 7f ff ff c3 call 2025f14 <== NOT EXECUTED 202600c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2026010: 01 00 00 00 nop 0200a428 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 200a428: 9d e3 bf 98 save %sp, -104, %sp /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 200a42c: 80 a6 20 00 cmp %i0, 0 200a430: 12 80 00 08 bne 200a450 200a434: 01 00 00 00 nop errno = EFAULT; 200a438: 40 00 0c 11 call 200d47c <__errno> <== NOT EXECUTED 200a43c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 200a440: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED 200a444: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED return -1; 200a448: 81 c7 e0 08 ret <== NOT EXECUTED 200a44c: 81 e8 00 00 restore <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 200a450: 7f ff de 2b call 2001cfc 200a454: 01 00 00 00 nop 200a458: a0 10 00 08 mov %o0, %l0 _TOD_Get( &now ); 200a45c: 40 00 02 dd call 200afd0 <_TOD_Get> 200a460: 90 07 bf f8 add %fp, -8, %o0 _ISR_Enable(level); 200a464: 7f ff de 2a call 2001d0c 200a468: 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; 200a46c: 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; 200a470: c2 07 bf f8 ld [ %fp + -8 ], %g1 time->tv_usec = useconds; 200a474: 92 10 23 e8 mov 0x3e8, %o1 200a478: 40 00 31 2b call 2016924 <.div> 200a47c: c2 26 00 00 st %g1, [ %i0 ] 200a480: 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; } 200a484: 81 c7 e0 08 ret 200a488: 91 e8 20 00 restore %g0, 0, %o0 02005cec : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 2005cec: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2005cf0: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 ! 20625d4 <== NOT EXECUTED return _POSIX_types_Uid; } 2005cf4: 81 c3 e0 08 retl <== NOT EXECUTED 2005cf8: d0 10 60 30 lduh [ %g1 + 0x30 ], %o0 <== NOT EXECUTED 02012480 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2012480: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2012484: e0 06 40 00 ld [ %i1 ], %l0 2012488: c4 04 20 50 ld [ %l0 + 0x50 ], %g2 201248c: 82 04 20 54 add %l0, 0x54, %g1 2012490: 80 a0 80 01 cmp %g2, %g1 2012494: 22 80 00 06 be,a 20124ac 2012498: 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 ); 201249c: 40 00 01 b4 call 2012b6c <__errno> 20124a0: 01 00 00 00 nop 20124a4: 10 80 00 0d b 20124d8 20124a8: 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 ) 20124ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20124b0: 80 a0 40 10 cmp %g1, %l0 20124b4: 02 80 00 06 be 20124cc 20124b8: 01 00 00 00 nop /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 20124bc: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 20124c0: 80 a0 60 00 cmp %g1, 0 20124c4: 22 80 00 08 be,a 20124e4 20124c8: c2 04 20 08 ld [ %l0 + 8 ], %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 20124cc: 40 00 01 a8 call 2012b6c <__errno> 20124d0: 01 00 00 00 nop 20124d4: 82 10 20 10 mov 0x10, %g1 ! 10 20124d8: c2 22 00 00 st %g1, [ %o0 ] 20124dc: 81 c7 e0 08 ret 20124e0: 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 ) { 20124e4: 80 a0 60 00 cmp %g1, 0 20124e8: 22 80 00 06 be,a 2012500 20124ec: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 20124f0: 7f ff d6 1e call 2007d68 <_Chain_Extract> 20124f4: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 20124f8: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20124fc: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 2012500: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2012504: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 2012508: 90 07 bf f8 add %fp, -8, %o0 201250c: 7f ff c4 dd call 2003880 2012510: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 2012514: 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) ) { 2012518: 90 10 00 10 mov %l0, %o0 201251c: 7f ff f4 74 call 200f6ec 2012520: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 2012524: 80 a2 20 00 cmp %o0, 0 2012528: 12 80 00 11 bne 201256c 201252c: 01 00 00 00 nop 2012530: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 2012534: 80 a0 60 00 cmp %g1, 0 2012538: 12 80 00 0d bne 201256c 201253c: 03 00 80 7c sethi %hi(0x201f000), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 2012540: c2 00 62 ac ld [ %g1 + 0x2ac ], %g1 ! 201f2ac 2012544: c4 06 40 00 ld [ %i1 ], %g2 2012548: c6 00 60 04 ld [ %g1 + 4 ], %g3 201254c: 80 a0 c0 02 cmp %g3, %g2 2012550: 22 80 00 02 be,a 2012558 2012554: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 2012558: 90 10 00 10 mov %l0, %o0 201255c: 7f ff c4 9f call 20037d8 2012560: b0 10 20 00 clr %i0 2012564: 81 c7 e0 08 ret 2012568: 81 e8 00 00 restore } return 0; } 201256c: 81 c7 e0 08 ret 2012570: 91 e8 20 00 restore %g0, 0, %o0 02005f0c : int ioctl( int fd, ioctl_command_t command, ... ) { 2005f0c: 9d e3 bf 98 save %sp, -104, %sp va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 2005f10: 03 00 80 7d sethi %hi(0x201f400), %g1 2005f14: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 ! 201f5d4 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); 2005f18: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2005f1c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2005f20: fa 27 a0 58 st %i5, [ %fp + 0x58 ] 2005f24: f4 27 a0 4c st %i2, [ %fp + 0x4c ] va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 2005f28: 80 a6 00 01 cmp %i0, %g1 2005f2c: 1a 80 00 11 bcc 2005f70 2005f30: 92 10 00 19 mov %i1, %o1 iop = rtems_libio_iop( fd ); 2005f34: 03 00 80 7f sethi %hi(0x201fc00), %g1 2005f38: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 201ff64 2005f3c: 83 2e 20 06 sll %i0, 6, %g1 2005f40: b1 2e 20 03 sll %i0, 3, %i0 2005f44: b0 06 00 01 add %i0, %g1, %i0 2005f48: 90 02 00 18 add %o0, %i0, %o0 rtems_libio_check_is_open(iop); 2005f4c: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 2005f50: 80 88 61 00 btst 0x100, %g1 2005f54: 02 80 00 07 be 2005f70 2005f58: 84 07 a0 50 add %fp, 0x50, %g2 /* * Now process the ioctl(). */ if ( !iop->handlers ) 2005f5c: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 2005f60: c4 27 bf fc st %g2, [ %fp + -4 ] /* * Now process the ioctl(). */ if ( !iop->handlers ) 2005f64: 80 a0 60 00 cmp %g1, 0 2005f68: 12 80 00 06 bne 2005f80 2005f6c: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( EBADF ); 2005f70: 40 00 33 f5 call 2012f44 <__errno> 2005f74: 01 00 00 00 nop 2005f78: 10 80 00 09 b 2005f9c 2005f7c: 82 10 20 09 mov 9, %g1 ! 9 if ( !iop->handlers->ioctl_h ) 2005f80: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 2005f84: 80 a0 60 00 cmp %g1, 0 2005f88: 12 80 00 08 bne 2005fa8 2005f8c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2005f90: 40 00 33 ed call 2012f44 <__errno> <== NOT EXECUTED 2005f94: 01 00 00 00 nop <== NOT EXECUTED 2005f98: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2005f9c: c2 22 00 00 st %g1, [ %o0 ] 2005fa0: 10 80 00 04 b 2005fb0 2005fa4: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 2005fa8: 9f c0 40 00 call %g1 2005fac: 01 00 00 00 nop return rc; } 2005fb0: 81 c7 e0 08 ret 2005fb4: 91 e8 00 08 restore %g0, %o0, %o0 02003944 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2003944: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2003948: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED 200394c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003950: 02 80 00 03 be 200395c <== NOT EXECUTED 2003954: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED c &= 0x7f; 2003958: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 200395c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003960: 02 80 00 0c be 2003990 <== NOT EXECUTED 2003964: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED c = tolower (c); 2003968: 05 00 80 65 sethi %hi(0x2019400), %g2 <== NOT EXECUTED 200396c: c4 00 a0 e0 ld [ %g2 + 0xe0 ], %g2 ! 20194e0 <__ctype_ptr__> <== NOT EXECUTED 2003970: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED 2003974: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED 2003978: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED 200397c: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED 2003980: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED 2003984: 22 80 00 02 be,a 200398c <== NOT EXECUTED 2003988: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED if (c == '\r') { 200398c: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED 2003990: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED 2003994: 12 80 00 09 bne 20039b8 <== NOT EXECUTED 2003998: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 200399c: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED 20039a0: 12 80 00 5d bne 2003b14 <== NOT EXECUTED 20039a4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 20039a8: 32 80 00 0d bne,a 20039dc <== NOT EXECUTED 20039ac: a0 10 20 0a mov 0xa, %l0 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 20039b0: 10 80 00 0c b 20039e0 <== NOT EXECUTED 20039b4: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 20039b8: 12 80 00 07 bne 20039d4 <== NOT EXECUTED 20039bc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 20039c0: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED 20039c4: 32 80 00 06 bne,a 20039dc <== NOT EXECUTED 20039c8: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 20039cc: 10 80 00 05 b 20039e0 <== NOT EXECUTED 20039d0: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 20039d4: 02 80 00 3c be 2003ac4 <== NOT EXECUTED 20039d8: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED 20039dc: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED 20039e0: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED 20039e4: 02 80 00 38 be 2003ac4 <== NOT EXECUTED 20039e8: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 20039ec: c6 0e 60 43 ldub [ %i1 + 0x43 ], %g3 <== NOT EXECUTED 20039f0: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED erase (tty, 0); 20039f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { 20039f8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20039fc: 02 80 00 08 be 2003a1c <== NOT EXECUTED 2003a00: 92 10 20 00 clr %o1 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2003a04: c6 0e 60 44 ldub [ %i1 + 0x44 ], %g3 <== NOT EXECUTED 2003a08: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a0c: 32 80 00 07 bne,a 2003a28 <== NOT EXECUTED 2003a10: c6 0e 60 45 ldub [ %i1 + 0x45 ], %g3 <== NOT EXECUTED erase (tty, 1); 2003a14: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 2003a18: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 2003a1c: 7f ff ff 3f call 2003718 <== NOT EXECUTED 2003a20: b0 10 20 00 clr %i0 <== NOT EXECUTED 2003a24: 30 80 00 3d b,a 2003b18 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2003a28: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a2c: 02 80 00 3b be 2003b18 <== NOT EXECUTED 2003a30: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return 1; } else if (c == '\n') { 2003a34: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED 2003a38: 32 80 00 0f bne,a 2003a74 <== NOT EXECUTED 2003a3c: c6 0e 60 4c ldub [ %i1 + 0x4c ], %g3 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 2003a40: 80 88 a0 48 btst 0x48, %g2 <== NOT EXECUTED 2003a44: 22 80 00 06 be,a 2003a5c <== NOT EXECUTED 2003a48: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003a4c: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 2003a50: 7f ff ff 0e call 2003688 <== NOT EXECUTED 2003a54: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003a58: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003a5c: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED 2003a60: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED 2003a64: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED 2003a68: 82 00 60 01 inc %g1 <== NOT EXECUTED 2003a6c: 10 80 00 14 b 2003abc <== NOT EXECUTED 2003a70: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 2003a74: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a78: 02 80 00 07 be 2003a94 <== NOT EXECUTED 2003a7c: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 2003a80: c6 0e 60 51 ldub [ %i1 + 0x51 ], %g3 <== NOT EXECUTED 2003a84: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2003a88: 12 80 00 0f bne 2003ac4 <== NOT EXECUTED 2003a8c: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003a90: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED 2003a94: 22 80 00 06 be,a 2003aac <== NOT EXECUTED 2003a98: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003a9c: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003aa0: 7f ff fe fa call 2003688 <== NOT EXECUTED 2003aa4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003aa8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003aac: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003ab0: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2003ab4: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003ab8: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED return 1; 2003abc: 81 c7 e0 08 ret <== NOT EXECUTED 2003ac0: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2003ac4: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED 2003ac8: c2 00 60 74 ld [ %g1 + 0x74 ], %g1 <== NOT EXECUTED 2003acc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003ad0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003ad4: 16 80 00 11 bge 2003b18 <== NOT EXECUTED 2003ad8: b0 10 20 00 clr %i0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2003adc: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003ae0: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003ae4: 22 80 00 06 be,a 2003afc <== NOT EXECUTED 2003ae8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED echo (c, tty); 2003aec: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED 2003af0: 7f ff fe e6 call 2003688 <== NOT EXECUTED 2003af4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2003af8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED 2003afc: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED 2003b00: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED 2003b04: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED 2003b08: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED 2003b0c: 81 c7 e0 08 ret <== NOT EXECUTED 2003b10: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 2003b14: b0 10 20 00 clr %i0 <== NOT EXECUTED } return 0; } 2003b18: 81 c7 e0 08 ret <== NOT EXECUTED 2003b1c: 81 e8 00 00 restore <== NOT EXECUTED 02021b88 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 2021b88: 81 c3 e0 08 retl <== NOT EXECUTED 2021b8c: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED 02017834 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 2017834: 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())) 2017838: 03 00 80 67 sethi %hi(0x2019c00), %g1 201783c: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2019f90 <_System_state_Current> 2017840: 80 a0 60 03 cmp %g1, 3 2017844: 12 80 00 16 bne 201789c 2017848: 03 00 80 63 sethi %hi(0x2018c00), %g1 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { 201784c: 23 00 80 65 sethi %hi(0x2019400), %l1 2017850: e0 00 63 68 ld [ %g1 + 0x368 ], %l0 2017854: c2 04 60 e8 ld [ %l1 + 0xe8 ], %g1 2017858: 80 a0 40 10 cmp %g1, %l0 201785c: 22 80 00 06 be,a 2017874 2017860: 21 00 80 65 sethi %hi(0x2019400), %l0 _wrapup_reent(_global_impure_ptr); 2017864: 40 00 01 83 call 2017e70 <_wrapup_reent> 2017868: 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; 201786c: e0 24 60 e8 st %l0, [ %l1 + 0xe8 ] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 2017870: 21 00 80 65 sethi %hi(0x2019400), %l0 2017874: c2 04 20 e8 ld [ %l0 + 0xe8 ], %g1 ! 20194e8 <_impure_ptr> 2017878: 7f ff d7 59 call 200d5dc 201787c: d0 00 60 04 ld [ %g1 + 4 ], %o0 fclose (stdout); 2017880: c2 04 20 e8 ld [ %l0 + 0xe8 ], %g1 2017884: 7f ff d7 56 call 200d5dc 2017888: d0 00 60 08 ld [ %g1 + 8 ], %o0 fclose (stderr); 201788c: c2 04 20 e8 ld [ %l0 + 0xe8 ], %g1 2017890: f0 00 60 0c ld [ %g1 + 0xc ], %i0 2017894: 7f ff d7 52 call 200d5dc 2017898: 81 e8 00 00 restore 201789c: 81 c7 e0 08 ret <== NOT EXECUTED 20178a0: 81 e8 00 00 restore <== NOT EXECUTED 02026168 : int link( const char *existing, const char *new ) { 2026168: 9d e3 bf 70 save %sp, -144, %sp /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 202616c: 40 00 77 89 call 2043f90 2026170: 90 10 00 18 mov %i0, %o0 2026174: 94 10 20 00 clr %o2 2026178: 92 10 00 08 mov %o0, %o1 202617c: 96 07 bf e8 add %fp, -24, %o3 2026180: 90 10 00 18 mov %i0, %o0 2026184: 98 10 20 01 mov 1, %o4 2026188: 7f ff 7e 63 call 2005b14 202618c: b0 10 3f ff mov -1, %i0 0, &existing_loc, true ); if ( result != 0 ) 2026190: 80 a2 20 00 cmp %o0, 0 2026194: 12 80 00 8e bne 20263cc 2026198: 01 00 00 00 nop /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 202619c: c2 4e 40 00 ldsb [ %i1 ], %g1 20261a0: 80 a0 60 5c cmp %g1, 0x5c 20261a4: 02 80 00 06 be 20261bc 20261a8: 80 a0 60 2f cmp %g1, 0x2f 20261ac: 02 80 00 04 be 20261bc 20261b0: 80 a0 60 00 cmp %g1, 0 20261b4: 12 80 00 0a bne 20261dc 20261b8: 03 00 81 89 sethi %hi(0x2062400), %g1 20261bc: 03 00 81 89 sethi %hi(0x2062400), %g1 20261c0: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 ! 20625d4 20261c4: 90 07 bf d4 add %fp, -44, %o0 20261c8: 92 02 60 18 add %o1, 0x18, %o1 20261cc: 40 00 69 19 call 2040630 20261d0: 94 10 20 14 mov 0x14, %o2 20261d4: 10 80 00 08 b 20261f4 20261d8: 90 10 20 01 mov 1, %o0 20261dc: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 20261e0: 90 07 bf d4 add %fp, -44, %o0 20261e4: 92 02 60 04 add %o1, 4, %o1 20261e8: 40 00 69 12 call 2040630 20261ec: 94 10 20 14 mov 0x14, %o2 20261f0: 90 10 20 00 clr %o0 if ( !parent_loc.ops->evalformake_h ) { 20261f4: c2 07 bf e0 ld [ %fp + -32 ], %g1 20261f8: c2 00 60 04 ld [ %g1 + 4 ], %g1 20261fc: 80 a0 60 00 cmp %g1, 0 2026200: 32 80 00 0b bne,a 202622c 2026204: 90 06 40 08 add %i1, %o0, %o0 rtems_filesystem_freenode( &existing_loc ); 2026208: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 202620c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026210: 02 80 00 51 be 2026354 <== NOT EXECUTED 2026214: 01 00 00 00 nop <== NOT EXECUTED 2026218: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 202621c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026220: 12 80 00 4b bne 202634c <== NOT EXECUTED 2026224: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED 2026228: 30 80 00 4b b,a 2026354 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 202622c: 94 07 bf fc add %fp, -4, %o2 2026230: b2 07 bf d4 add %fp, -44, %i1 2026234: 9f c0 40 00 call %g1 2026238: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) { 202623c: a0 92 20 00 orcc %o0, 0, %l0 2026240: 02 80 00 11 be 2026284 2026244: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2026248: c2 07 bf f4 ld [ %fp + -12 ], %g1 202624c: 80 a0 60 00 cmp %g1, 0 2026250: 02 80 00 08 be 2026270 2026254: 01 00 00 00 nop 2026258: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 202625c: 80 a0 60 00 cmp %g1, 0 2026260: 02 80 00 04 be 2026270 2026264: 01 00 00 00 nop 2026268: 9f c0 40 00 call %g1 202626c: 90 07 bf e8 add %fp, -24, %o0 rtems_set_errno_and_return_minus_one( result ); 2026270: 40 00 5c 1d call 203d2e4 <__errno> 2026274: b0 10 3f ff mov -1, %i0 2026278: e0 22 00 00 st %l0, [ %o0 ] 202627c: 81 c7 e0 08 ret 2026280: 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 ) { 2026284: c4 07 bf e4 ld [ %fp + -28 ], %g2 2026288: 80 a0 80 01 cmp %g2, %g1 202628c: 02 80 00 1a be 20262f4 2026290: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &existing_loc ); 2026294: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026298: 80 a0 60 00 cmp %g1, 0 202629c: 22 80 00 09 be,a 20262c0 20262a0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20262a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20262a8: 80 a0 60 00 cmp %g1, 0 20262ac: 22 80 00 05 be,a 20262c0 20262b0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 20262b4: 9f c0 40 00 call %g1 20262b8: 90 07 bf e8 add %fp, -24, %o0 rtems_filesystem_freenode( &parent_loc ); 20262bc: c2 07 bf e0 ld [ %fp + -32 ], %g1 20262c0: 80 a0 60 00 cmp %g1, 0 20262c4: 02 80 00 08 be 20262e4 20262c8: 01 00 00 00 nop 20262cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20262d0: 80 a0 60 00 cmp %g1, 0 20262d4: 02 80 00 04 be 20262e4 20262d8: 01 00 00 00 nop 20262dc: 9f c0 40 00 call %g1 20262e0: 90 07 bf d4 add %fp, -44, %o0 rtems_set_errno_and_return_minus_one( EXDEV ); 20262e4: 40 00 5c 00 call 203d2e4 <__errno> 20262e8: b0 10 3f ff mov -1, %i0 20262ec: 10 80 00 1d b 2026360 20262f0: 82 10 20 12 mov 0x12, %g1 } if ( !parent_loc.ops->link_h ) { 20262f4: c2 00 60 08 ld [ %g1 + 8 ], %g1 20262f8: 80 a0 60 00 cmp %g1, 0 20262fc: 12 80 00 1c bne 202636c 2026300: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &existing_loc ); 2026304: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 2026308: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202630c: 22 80 00 09 be,a 2026330 <== NOT EXECUTED 2026310: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026314: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026318: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 202631c: 22 80 00 05 be,a 2026330 <== NOT EXECUTED 2026320: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026324: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026328: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 202632c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 2026330: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026334: 02 80 00 08 be 2026354 <== NOT EXECUTED 2026338: 01 00 00 00 nop <== NOT EXECUTED 202633c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026340: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026344: 02 80 00 04 be 2026354 <== NOT EXECUTED 2026348: 90 07 bf d4 add %fp, -44, %o0 <== NOT EXECUTED 202634c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026350: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026354: 40 00 5b e4 call 203d2e4 <__errno> <== NOT EXECUTED 2026358: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 202635c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026360: c2 22 00 00 st %g1, [ %o0 ] 2026364: 81 c7 e0 08 ret 2026368: 81 e8 00 00 restore } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 202636c: 92 10 00 19 mov %i1, %o1 2026370: b2 07 bf e8 add %fp, -24, %i1 2026374: 9f c0 40 00 call %g1 2026378: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &existing_loc ); 202637c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026380: 80 a0 60 00 cmp %g1, 0 2026384: 02 80 00 08 be 20263a4 2026388: b0 10 00 08 mov %o0, %i0 202638c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026390: 80 a0 60 00 cmp %g1, 0 2026394: 22 80 00 05 be,a 20263a8 2026398: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED 202639c: 9f c0 40 00 call %g1 20263a0: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &parent_loc ); 20263a4: c2 07 bf e0 ld [ %fp + -32 ], %g1 20263a8: 80 a0 60 00 cmp %g1, 0 20263ac: 02 80 00 08 be 20263cc 20263b0: 01 00 00 00 nop 20263b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20263b8: 80 a0 60 00 cmp %g1, 0 20263bc: 02 80 00 04 be 20263cc 20263c0: 01 00 00 00 nop 20263c4: 9f c0 40 00 call %g1 20263c8: 90 07 bf d4 add %fp, -44, %o0 return result; } 20263cc: 81 c7 e0 08 ret 20263d0: 81 e8 00 00 restore 020176e4 : off_t lseek( int fd, off_t offset, int whence ) { 20176e4: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 20176e8: 03 00 80 64 sethi %hi(0x2019000), %g1 20176ec: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 ! 2019374 off_t lseek( int fd, off_t offset, int whence ) { 20176f0: 96 10 00 1b mov %i3, %o3 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 20176f4: 80 a6 00 01 cmp %i0, %g1 off_t lseek( int fd, off_t offset, int whence ) { 20176f8: 84 10 00 19 mov %i1, %g2 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 20176fc: 1a 80 00 0c bcc 201772c 2017700: 86 10 00 1a mov %i2, %g3 iop = rtems_libio_iop( fd ); 2017704: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017708: e0 00 60 24 ld [ %g1 + 0x24 ], %l0 ! 2019c24 201770c: 83 2e 20 06 sll %i0, 6, %g1 2017710: b1 2e 20 03 sll %i0, 3, %i0 2017714: b0 06 00 01 add %i0, %g1, %i0 2017718: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open(iop); 201771c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2017720: 80 88 61 00 btst 0x100, %g1 2017724: 32 80 00 06 bne,a 201773c 2017728: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 201772c: 7f ff d7 54 call 200d47c <__errno> <== NOT EXECUTED 2017730: 01 00 00 00 nop <== NOT EXECUTED 2017734: 10 80 00 1e b 20177ac <== NOT EXECUTED 2017738: 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 ) 201773c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 2017740: 80 a0 60 00 cmp %g1, 0 2017744: 12 80 00 06 bne 201775c 2017748: 80 a6 e0 01 cmp %i3, 1 rtems_set_errno_and_return_minus_one( ENOTSUP ); 201774c: 7f ff d7 4c call 200d47c <__errno> <== NOT EXECUTED 2017750: 01 00 00 00 nop <== NOT EXECUTED 2017754: 10 80 00 16 b 20177ac <== NOT EXECUTED 2017758: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 201775c: 02 80 00 09 be 2017780 2017760: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2 2017764: 80 a6 e0 02 cmp %i3, 2 2017768: 02 80 00 09 be 201778c 201776c: 80 a6 e0 00 cmp %i3, 0 2017770: 12 80 00 0c bne 20177a0 2017774: 01 00 00 00 nop case SEEK_SET: iop->offset = offset; break; 2017778: 10 80 00 12 b 20177c0 201777c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] case SEEK_CUR: iop->offset += offset; 2017780: 9a 86 80 13 addcc %i2, %l3, %o5 2017784: 10 80 00 05 b 2017798 2017788: 98 46 40 12 addx %i1, %l2, %o4 break; case SEEK_END: iop->offset = iop->size + offset; 201778c: d8 1c 20 08 ldd [ %l0 + 8 ], %o4 2017790: 9a 86 80 0d addcc %i2, %o5, %o5 2017794: 98 46 40 0c addx %i1, %o4, %o4 break; 2017798: 10 80 00 0a b 20177c0 201779c: d8 3c 20 10 std %o4, [ %l0 + 0x10 ] default: rtems_set_errno_and_return_minus_one( EINVAL ); 20177a0: 7f ff d7 37 call 200d47c <__errno> 20177a4: 01 00 00 00 nop 20177a8: 82 10 20 16 mov 0x16, %g1 ! 16 20177ac: c2 22 00 00 st %g1, [ %o0 ] 20177b0: 11 3f ff ff sethi %hi(0xfffffc00), %o0 20177b4: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff 20177b8: 10 80 00 0e b 20177f0 20177bc: 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 ); 20177c0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 20177c4: 92 10 00 02 mov %g2, %o1 20177c8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 20177cc: 94 10 00 03 mov %g3, %o2 20177d0: 9f c0 40 00 call %g1 20177d4: 90 10 00 10 mov %l0, %o0 if ( status == (off_t) -1 ) 20177d8: 80 a2 3f ff cmp %o0, -1 20177dc: 12 80 00 06 bne 20177f4 20177e0: b2 10 00 09 mov %o1, %i1 20177e4: 80 a2 7f ff cmp %o1, -1 20177e8: 22 80 00 03 be,a 20177f4 20177ec: e4 3c 20 10 std %l2, [ %l0 + 0x10 ] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 20177f0: b2 10 00 09 mov %o1, %i1 20177f4: 81 c7 e0 08 ret 20177f8: 91 e8 00 08 restore %g0, %o0, %o0 02026528 : int _STAT_NAME( const char *path, struct stat *buf ) { 2026528: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 202652c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 2026530: 12 80 00 06 bne 2026548 <== NOT EXECUTED 2026534: 01 00 00 00 nop <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 2026538: 40 00 5b 6b call 203d2e4 <__errno> <== NOT EXECUTED 202653c: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026540: 10 80 00 20 b 20265c0 <== NOT EXECUTED 2026544: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 2026548: 40 00 76 92 call 2043f90 <== NOT EXECUTED 202654c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026550: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2026554: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2026558: 94 10 20 00 clr %o2 <== NOT EXECUTED 202655c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026560: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2026564: 98 10 20 00 clr %o4 <== NOT EXECUTED 2026568: 7f ff 7d 6b call 2005b14 <== NOT EXECUTED 202656c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 2026570: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026574: 12 80 00 14 bne 20265c4 <== NOT EXECUTED 2026578: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 202657c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2026580: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026584: 12 80 00 12 bne 20265cc <== NOT EXECUTED 2026588: 92 10 20 00 clr %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 202658c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026590: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026594: 02 80 00 08 be 20265b4 <== NOT EXECUTED 2026598: 01 00 00 00 nop <== NOT EXECUTED 202659c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20265a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20265a4: 02 80 00 04 be 20265b4 <== NOT EXECUTED 20265a8: 01 00 00 00 nop <== NOT EXECUTED 20265ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 20265b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20265b4: 40 00 5b 4c call 203d2e4 <__errno> <== NOT EXECUTED 20265b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20265bc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20265c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20265c4: 81 c7 e0 08 ret <== NOT EXECUTED 20265c8: 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) ); 20265cc: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED 20265d0: 40 00 68 ab call 204087c <== NOT EXECUTED 20265d4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 20265d8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 20265dc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20265e0: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 20265e4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20265e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20265ec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20265f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20265f4: 02 bf ff f4 be 20265c4 <== NOT EXECUTED 20265f8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 20265fc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026600: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026604: 02 80 00 04 be 2026614 <== NOT EXECUTED 2026608: 01 00 00 00 nop <== NOT EXECUTED 202660c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026610: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return status; } 2026614: 81 c7 e0 08 ret <== NOT EXECUTED 2026618: 81 e8 00 00 restore <== NOT EXECUTED 0200a7fc : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 200a7fc: 9d e3 bf a0 save %sp, -96, %sp 200a800: 03 00 80 67 sethi %hi(0x2019c00), %g1 200a804: 82 10 60 30 or %g1, 0x30, %g1 ! 2019c30 200a808: c4 00 60 04 ld [ %g1 + 4 ], %g2 200a80c: a0 10 00 18 mov %i0, %l0 200a810: 84 00 a0 01 inc %g2 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200a814: 7f ff ff ed call 200a7c8 200a818: c4 20 60 04 st %g2, [ %g1 + 4 ] /* * Validate the parameters */ if ( !size ) 200a81c: 80 a6 20 00 cmp %i0, 0 200a820: 02 80 00 36 be 200a8f8 200a824: 03 00 80 67 sethi %hi(0x2019c00), %g1 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200a828: c2 00 63 90 ld [ %g1 + 0x390 ], %g1 ! 2019f90 <_System_state_Current> 200a82c: 80 a0 60 03 cmp %g1, 3 200a830: 12 80 00 07 bne 200a84c 200a834: 03 00 80 64 sethi %hi(0x2019000), %g1 200a838: 7f ff ff cb call 200a764 200a83c: 01 00 00 00 nop 200a840: 80 8a 20 ff btst 0xff, %o0 200a844: 02 80 00 2d be 200a8f8 200a848: 03 00 80 64 sethi %hi(0x2019000), %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 ); 200a84c: d0 00 63 80 ld [ %g1 + 0x380 ], %o0 ! 2019380 200a850: 92 10 00 10 mov %l0, %o1 200a854: 94 10 20 00 clr %o2 200a858: 40 00 03 12 call 200b4a0 <_Protected_heap_Allocate_aligned_with_boundary> 200a85c: 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 ) { 200a860: b0 92 20 00 orcc %o0, 0, %i0 200a864: 12 80 00 13 bne 200a8b0 200a868: a2 10 00 18 mov %i0, %l1 if (rtems_malloc_sbrk_helpers) 200a86c: 03 00 80 66 sethi %hi(0x2019800), %g1 200a870: c2 00 61 ac ld [ %g1 + 0x1ac ], %g1 ! 20199ac 200a874: 80 a0 60 00 cmp %g1, 0 200a878: 02 80 00 08 be 200a898 200a87c: 01 00 00 00 nop return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 200a880: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200a884: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a888: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( !return_this ) { 200a88c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 200a890: 12 80 00 09 bne 200a8b4 <== NOT EXECUTED 200a894: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED errno = ENOMEM; 200a898: 40 00 0a f9 call 200d47c <__errno> 200a89c: 01 00 00 00 nop 200a8a0: 82 10 20 0c mov 0xc, %g1 ! c 200a8a4: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 200a8a8: 81 c7 e0 08 ret 200a8ac: 81 e8 00 00 restore } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 200a8b0: 03 00 80 66 sethi %hi(0x2019800), %g1 200a8b4: c2 00 61 b0 ld [ %g1 + 0x1b0 ], %g1 ! 20199b0 200a8b8: 80 a0 60 00 cmp %g1, 0 200a8bc: 02 80 00 05 be 200a8d0 200a8c0: 92 10 00 10 mov %l0, %o1 (*rtems_malloc_dirty_helper)( return_this, size ); 200a8c4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED 200a8c8: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a8cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 200a8d0: 03 00 80 66 sethi %hi(0x2019800), %g1 200a8d4: c2 00 61 a8 ld [ %g1 + 0x1a8 ], %g1 ! 20199a8 200a8d8: 80 a0 60 00 cmp %g1, 0 200a8dc: 02 bf ff f3 be 200a8a8 200a8e0: b0 10 00 11 mov %l1, %i0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 200a8e4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200a8e8: 9f c0 40 00 call %g1 <== NOT EXECUTED 200a8ec: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 200a8f0: 81 c7 e0 08 ret <== NOT EXECUTED 200a8f4: 81 e8 00 00 restore <== NOT EXECUTED 200a8f8: 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; } 200a8fc: 81 c7 e0 08 ret <== NOT EXECUTED 200a900: 81 e8 00 00 restore <== NOT EXECUTED 0200a7ac : 200a7ac: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 200a7b0: 11 00 80 68 sethi %hi(0x201a000), %o0 <== NOT EXECUTED 200a7b4: 90 12 20 6c or %o0, 0x6c, %o0 ! 201a06c <== NOT EXECUTED 200a7b8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 200a7bc: 7f ff ed ec call 2005f6c <_Chain_Append> <== NOT EXECUTED 200a7c0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 200a7c4: 01 00 00 00 nop 0200a7c8 : void malloc_deferred_frees_process(void) { 200a7c8: 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 ); 200a7cc: 21 00 80 68 sethi %hi(0x201a000), %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) 200a7d0: 10 80 00 04 b 200a7e0 200a7d4: a0 14 20 6c or %l0, 0x6c, %l0 ! 201a06c free(to_be_freed); 200a7d8: 7f ff fe af call 200a294 <== NOT EXECUTED 200a7dc: 01 00 00 00 nop <== NOT EXECUTED 200a7e0: 40 00 01 91 call 200ae24 <_Chain_Get> 200a7e4: 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) 200a7e8: 80 a2 20 00 cmp %o0, 0 200a7ec: 12 bf ff fb bne 200a7d8 200a7f0: 01 00 00 00 nop free(to_be_freed); } 200a7f4: 81 c7 e0 08 ret 200a7f8: 81 e8 00 00 restore 02011518 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 2011518: 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) ) { 201151c: 7f ff f8 74 call 200f6ec 2011520: 90 10 00 18 mov %i0, %o0 2011524: 80 a2 20 00 cmp %o0, 0 2011528: 12 80 00 13 bne 2011574 201152c: 01 00 00 00 nop 2011530: c2 16 20 30 lduh [ %i0 + 0x30 ], %g1 2011534: 80 a0 60 00 cmp %g1, 0 2011538: 12 80 00 0f bne 2011574 201153c: 03 00 80 7c sethi %hi(0x201f000), %g1 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 2011540: c2 00 62 ac ld [ %g1 + 0x2ac ], %g1 ! 201f2ac 2011544: c4 00 60 04 ld [ %g1 + 4 ], %g2 2011548: 80 a0 80 18 cmp %g2, %i0 201154c: 22 80 00 02 be,a 2011554 2011550: 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) 2011554: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 2011558: 80 a0 60 06 cmp %g1, 6 201155c: 02 80 00 04 be 201156c 2011560: 01 00 00 00 nop IMFS_memfile_remove( the_jnode ); 2011564: 7f ff ff 8c call 2011394 2011568: 90 10 00 18 mov %i0, %o0 free( the_jnode ); 201156c: 7f ff c8 9b call 20037d8 2011570: 90 10 00 18 mov %i0, %o0 } return 0; } 2011574: 81 c7 e0 08 ret 2011578: 91 e8 20 00 restore %g0, 0, %o0 020112cc : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 20112cc: 9d e3 bf a0 save %sp, -96, %sp /* * Perform internal consistency checks */ assert( block_table ); 20112d0: 80 a6 20 00 cmp %i0, 0 20112d4: 32 80 00 0a bne,a 20112fc 20112d8: e0 06 00 00 ld [ %i0 ], %l0 20112dc: 11 00 80 79 sethi %hi(0x201e400), %o0 <== NOT EXECUTED 20112e0: 15 00 80 7a sethi %hi(0x201e800), %o2 <== NOT EXECUTED 20112e4: 17 00 80 7a sethi %hi(0x201e800), %o3 <== NOT EXECUTED 20112e8: 90 12 23 e8 or %o0, 0x3e8, %o0 <== NOT EXECUTED 20112ec: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED 20112f0: 96 12 e0 68 or %o3, 0x68, %o3 <== NOT EXECUTED 20112f4: 7f ff c8 43 call 2003400 <__assert_func> <== NOT EXECUTED 20112f8: 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 2011300: a2 10 20 00 clr %l1 if ( b[i] ) { 2011304: 80 a2 20 00 cmp %o0, 0 2011308: 02 80 00 05 be 201131c 201130c: a2 04 60 01 inc %l1 memfile_free_block( b[i] ); 2011310: 7f ff ff 2a call 2010fb8 2011314: 01 00 00 00 nop b[i] = 0; 2011318: 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 2011328: 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 ); 201132c: 7f ff ff 23 call 2010fb8 2011330: d0 06 00 00 ld [ %i0 ], %o0 *block_table = 0; 2011334: c0 26 00 00 clr [ %i0 ] } 2011338: 81 c7 e0 08 ret 201133c: 81 e8 00 00 restore 0201182c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 201182c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 2011830: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 2011834: 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 ) 2011838: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 201183c: 80 a0 40 19 cmp %g1, %i1 2011840: 06 80 00 09 bl 2011864 2011844: 94 10 00 1a mov %i2, %o2 2011848: 80 a0 40 19 cmp %g1, %i1 201184c: 32 80 00 0a bne,a 2011874 2011850: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED 2011854: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 2011858: 80 a0 40 1a cmp %g1, %i2 201185c: 3a 80 00 06 bcc,a 2011874 2011860: d2 24 20 50 st %o1, [ %l0 + 0x50 ] return IMFS_memfile_extend( the_jnode, length ); 2011864: 7f ff ff 8f call 20116a0 <== NOT EXECUTED 2011868: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 201186c: 81 c7 e0 08 ret <== NOT EXECUTED 2011870: 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; 2011874: d4 24 20 54 st %o2, [ %l0 + 0x54 ] iop->size = the_jnode->info.file.size; 2011878: d2 26 20 08 st %o1, [ %i0 + 8 ] 201187c: d4 26 20 0c st %o2, [ %i0 + 0xc ] IMFS_update_atime( the_jnode ); 2011880: 90 07 bf f8 add %fp, -8, %o0 2011884: 7f ff c7 ff call 2003880 2011888: 92 10 20 00 clr %o1 201188c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2011890: 90 10 20 00 clr %o0 2011894: c2 24 20 3c st %g1, [ %l0 + 0x3c ] return 0; } 2011898: b0 10 00 08 mov %o0, %i0 201189c: 81 c7 e0 08 ret 20118a0: 81 e8 00 00 restore 020118a4 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 20118a4: 9d e3 bf a0 save %sp, -96, %sp IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 20118a8: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 if (the_jnode->type == IMFS_LINEAR_FILE) { 20118ac: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 20118b0: 80 a0 60 06 cmp %g1, 6 20118b4: 32 80 00 11 bne,a 20118f8 20118b8: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 if (iop->offset > the_jnode->info.linearfile.size) 20118bc: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 20118c0: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED 20118c4: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20118c8: 14 80 00 09 bg 20118ec <== NOT EXECUTED 20118cc: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED 20118d0: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED 20118d4: 32 80 00 1a bne,a 201193c <== NOT EXECUTED 20118d8: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 20118dc: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED 20118e0: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED 20118e4: 28 80 00 16 bleu,a 201193c <== NOT EXECUTED 20118e8: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 20118ec: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED 20118f0: 10 80 00 12 b 2011938 <== NOT EXECUTED 20118f4: 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 )) 20118f8: 90 10 00 10 mov %l0, %o0 20118fc: 92 10 00 02 mov %g2, %o1 2011900: 7f ff ff 68 call 20116a0 2011904: 94 10 00 03 mov %g3, %o2 2011908: 80 a2 20 00 cmp %o0, 0 201190c: 22 80 00 0a be,a 2011934 2011910: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 rtems_set_errno_and_return_minus_one( ENOSPC ); 2011914: 40 00 04 96 call 2012b6c <__errno> <== NOT EXECUTED 2011918: 01 00 00 00 nop <== NOT EXECUTED 201191c: 82 10 20 1c mov 0x1c, %g1 ! 1c <== NOT EXECUTED 2011920: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED 2011924: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011928: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED 201192c: 10 80 00 04 b 201193c <== NOT EXECUTED 2011930: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 2011934: c4 3e 20 08 std %g2, [ %i0 + 8 ] } return iop->offset; 2011938: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 } 201193c: b2 10 00 03 mov %g3, %i1 2011940: 81 c7 e0 08 ret 2011944: 91 e8 00 02 restore %g0, %g2, %o0 02011c10 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2011c10: 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)) 2011c14: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 2011c18: 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)) 2011c1c: 80 88 62 04 btst 0x204, %g1 2011c20: 02 80 00 19 be 2011c84 2011c24: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 && (the_jnode->type == IMFS_LINEAR_FILE)) { 2011c28: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 2011c2c: 80 a0 60 06 cmp %g1, 6 2011c30: 32 80 00 16 bne,a 2011c88 2011c34: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 uint32_t count = the_jnode->info.linearfile.size; 2011c38: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 2011c3c: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 2011c40: 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; 2011c44: 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; 2011c48: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED 2011c4c: 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; 2011c50: 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; 2011c54: 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) 2011c58: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED 2011c5c: 02 80 00 0a be 2011c84 <== NOT EXECUTED 2011c60: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 2011c64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2011c68: 92 10 20 00 clr %o1 <== NOT EXECUTED 2011c6c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011c70: 7f ff ff 36 call 2011948 <== NOT EXECUTED 2011c74: 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) 2011c78: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2011c7c: 02 80 00 0a be 2011ca4 <== NOT EXECUTED 2011c80: 01 00 00 00 nop <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 2011c84: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 2011c88: 80 88 62 00 btst 0x200, %g1 2011c8c: 02 80 00 04 be 2011c9c 2011c90: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 iop->offset = the_jnode->info.file.size; 2011c94: c4 3c 60 10 std %g2, [ %l1 + 0x10 ] iop->size = the_jnode->info.file.size; 2011c98: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 2011c9c: b0 10 20 00 clr %i0 2011ca0: c4 3c 60 08 std %g2, [ %l1 + 8 ] return 0; } 2011ca4: 81 c7 e0 08 ret 2011ca8: 81 e8 00 00 restore 0201157c : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 201157c: 9d e3 bf 98 save %sp, -104, %sp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2011580: 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 ) { 2011584: c2 04 20 08 ld [ %l0 + 8 ], %g1 2011588: 80 a0 60 00 cmp %g1, 0 201158c: 22 80 00 06 be,a 20115a4 2011590: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 2011594: 7f ff d9 f5 call 2007d68 <_Chain_Extract> 2011598: 90 10 00 10 mov %l0, %o0 rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 201159c: c0 24 20 08 clr [ %l0 + 8 ] /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20115a0: c2 14 20 30 lduh [ %l0 + 0x30 ], %g1 IMFS_update_ctime( the_jnode ); 20115a4: 92 10 20 00 clr %o1 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 20115a8: 82 00 7f ff add %g1, -1, %g1 IMFS_update_ctime( the_jnode ); 20115ac: 90 07 bf f8 add %fp, -8, %o0 20115b0: 7f ff c8 b4 call 2003880 20115b4: c2 34 20 30 sth %g1, [ %l0 + 0x30 ] 20115b8: c2 07 bf f8 ld [ %fp + -8 ], %g1 return memfile_check_rmnod( the_jnode ); 20115bc: 90 10 00 10 mov %l0, %o0 20115c0: 7f ff ff d6 call 2011518 20115c4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } 20115c8: 81 c7 e0 08 ret 20115cc: 91 e8 00 08 restore %g0, %o0, %o0 02009220 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 2009220: 13 00 80 62 sethi %hi(0x2018800), %o1 2009224: 15 00 80 62 sethi %hi(0x2018800), %o2 2009228: 92 12 60 64 or %o1, 0x64, %o1 200922c: 94 12 a2 28 or %o2, 0x228, %o2 2009230: 96 10 00 0a mov %o2, %o3 2009234: 82 13 c0 00 mov %o7, %g1 2009238: 40 00 03 09 call 2009e5c 200923c: 9e 10 40 00 mov %g1, %o7 2009240: 01 00 00 00 nop <== NOT EXECUTED 020023bc : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 20023bc: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) 20023c0: 03 00 00 3c sethi %hi(0xf000), %g1 20023c4: b3 2e 60 10 sll %i1, 0x10, %i1 20023c8: b3 36 60 10 srl %i1, 0x10, %i1 20023cc: 80 8e 40 01 btst %i1, %g1 20023d0: 32 80 00 06 bne,a 20023e8 20023d4: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EINVAL ); 20023d8: 40 00 2c 29 call 200d47c <__errno> <== NOT EXECUTED 20023dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20023e0: 10 80 00 31 b 20024a4 <== NOT EXECUTED 20023e4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 20023e8: 80 a0 60 5c cmp %g1, 0x5c 20023ec: 02 80 00 06 be 2002404 20023f0: 80 a0 60 2f cmp %g1, 0x2f 20023f4: 02 80 00 04 be 2002404 20023f8: 80 a0 60 00 cmp %g1, 0 20023fc: 12 80 00 0a bne 2002424 2002400: 03 00 80 65 sethi %hi(0x2019400), %g1 2002404: 03 00 80 65 sethi %hi(0x2019400), %g1 2002408: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 ! 2019484 200240c: 90 07 bf e8 add %fp, -24, %o0 2002410: 92 02 60 18 add %o1, 0x18, %o1 2002414: 40 00 2e 55 call 200dd68 2002418: 94 10 20 14 mov 0x14, %o2 200241c: 10 80 00 08 b 200243c 2002420: 90 10 20 01 mov 1, %o0 2002424: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 2002428: 90 07 bf e8 add %fp, -24, %o0 200242c: 92 02 60 04 add %o1, 4, %o1 2002430: 40 00 2e 4e call 200dd68 2002434: 94 10 20 14 mov 0x14, %o2 2002438: 90 10 20 00 clr %o0 if ( !temp_loc.ops->evalformake_h ) { 200243c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2002440: c2 00 60 04 ld [ %g1 + 4 ], %g1 2002444: 80 a0 60 00 cmp %g1, 0 2002448: 02 80 00 14 be 2002498 200244c: 90 06 00 08 add %i0, %o0, %o0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 2002450: a0 07 bf e8 add %fp, -24, %l0 2002454: 94 07 bf fc add %fp, -4, %o2 2002458: 92 10 00 10 mov %l0, %o1 200245c: 9f c0 40 00 call %g1 2002460: b0 10 3f ff mov -1, %i0 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 2002464: 80 a2 20 00 cmp %o0, 0 2002468: 12 80 00 10 bne 20024a8 200246c: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !temp_loc.ops->mknod_h ) { 2002470: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 2002474: 80 a0 60 00 cmp %g1, 0 2002478: 12 80 00 0e bne 20024b0 200247c: d0 07 bf fc ld [ %fp + -4 ], %o0 rtems_filesystem_freenode( &temp_loc ); 2002480: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002484: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002488: 02 80 00 04 be 2002498 <== NOT EXECUTED 200248c: 01 00 00 00 nop <== NOT EXECUTED 2002490: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002494: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002498: 40 00 2b f9 call 200d47c <__errno> <== NOT EXECUTED 200249c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20024a0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20024a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 20024a8: 81 c7 e0 08 ret 20024ac: 81 e8 00 00 restore } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 20024b0: 92 10 00 19 mov %i1, %o1 20024b4: 94 10 00 1a mov %i2, %o2 20024b8: 96 10 00 1b mov %i3, %o3 20024bc: 9f c0 40 00 call %g1 20024c0: 98 10 00 10 mov %l0, %o4 rtems_filesystem_freenode( &temp_loc ); 20024c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20024c8: 80 a0 60 00 cmp %g1, 0 20024cc: 02 bf ff f7 be 20024a8 20024d0: b0 10 00 08 mov %o0, %i0 20024d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20024d8: 80 a0 60 00 cmp %g1, 0 20024dc: 02 80 00 04 be 20024ec 20024e0: 01 00 00 00 nop 20024e4: 9f c0 40 00 call %g1 20024e8: 90 10 00 10 mov %l0, %o0 return result; } 20024ec: 81 c7 e0 08 ret 20024f0: 81 e8 00 00 restore 02002514 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 2002514: 9d e3 bf 88 save %sp, -120, %sp /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 2002518: 80 a6 60 00 cmp %i1, 0 200251c: 02 80 00 05 be 2002530 2002520: a0 10 00 18 mov %i0, %l0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 2002524: 80 a6 a0 01 cmp %i2, 1 2002528: 28 80 00 06 bleu,a 2002540 200252c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 2002530: 40 00 2b d3 call 200d47c <__errno> 2002534: 01 00 00 00 nop 2002538: 10 80 00 14 b 2002588 200253c: 82 10 20 16 mov 0x16, %g1 ! 16 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 2002540: a4 10 20 00 clr %l2 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 2002544: 80 a0 60 00 cmp %g1, 0 2002548: 02 80 00 4c be 2002678 200254c: a6 10 20 00 clr %l3 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 2002550: 80 a6 e0 00 cmp %i3, 0 2002554: 02 80 00 05 be 2002568 2002558: 90 10 20 6c mov 0x6c, %o0 size += strlen( device ) + 1; 200255c: 40 00 2f 7f call 200e358 <== NOT EXECUTED 2002560: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED 2002564: 90 02 20 6d add %o0, 0x6d, %o0 <== NOT EXECUTED temp_mt_entry = malloc( size ); 2002568: 40 00 20 a5 call 200a7fc 200256c: 01 00 00 00 nop if ( !temp_mt_entry ) { 2002570: a2 92 20 00 orcc %o0, 0, %l1 2002574: 12 80 00 07 bne 2002590 2002578: a6 10 00 11 mov %l1, %l3 errno = ENOMEM; 200257c: 40 00 2b c0 call 200d47c <__errno> <== NOT EXECUTED 2002580: 01 00 00 00 nop <== NOT EXECUTED 2002584: 82 10 20 0c mov 0xc, %g1 ! c <== NOT EXECUTED 2002588: 10 80 00 75 b 200275c 200258c: c2 22 00 00 st %g1, [ %o0 ] return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 2002590: f4 24 60 30 st %i2, [ %l1 + 0x30 ] if ( device ) { 2002594: 80 a6 e0 00 cmp %i3, 0 2002598: 02 80 00 08 be 20025b8 200259c: e2 24 60 2c st %l1, [ %l1 + 0x2c ] temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 20025a0: 90 04 60 6c add %l1, 0x6c, %o0 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 20025a4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 20025a8: 40 00 2f 49 call 200e2cc <== NOT EXECUTED 20025ac: d0 24 60 68 st %o0, [ %l1 + 0x68 ] <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 20025b0: 10 80 00 04 b 20025c0 <== NOT EXECUTED 20025b4: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); } else temp_mt_entry->dev = 0; 20025b8: c0 24 60 68 clr [ %l1 + 0x68 ] /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 20025bc: 80 a7 20 00 cmp %i4, 0 20025c0: 22 80 00 39 be,a 20026a4 20025c4: c0 24 60 1c clr [ %l1 + 0x1c ] if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 20025c8: 40 00 2f 64 call 200e358 20025cc: 90 10 00 1c mov %i4, %o0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 20025d0: a4 07 bf ec add %fp, -20, %l2 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 20025d4: 92 10 00 08 mov %o0, %o1 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 20025d8: 94 10 20 07 mov 7, %o2 20025dc: 90 10 00 1c mov %i4, %o0 20025e0: 96 10 00 12 mov %l2, %o3 20025e4: 7f ff fe d7 call 2002140 20025e8: 98 10 20 01 mov 1, %o4 20025ec: 80 a2 3f ff cmp %o0, -1 20025f0: 02 80 00 4b be 200271c 20025f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 20025f8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 20025fc: 80 a0 60 00 cmp %g1, 0 2002600: 02 80 00 1e be 2002678 2002604: 01 00 00 00 nop /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 2002608: 9f c0 40 00 call %g1 200260c: 90 10 00 12 mov %l2, %o0 2002610: 80 a2 20 01 cmp %o0, 1 2002614: 02 80 00 07 be 2002630 2002618: 03 00 80 67 sethi %hi(0x2019c00), %g1 errno = ENOTDIR; 200261c: 40 00 2b 98 call 200d47c <__errno> 2002620: 01 00 00 00 nop 2002624: 82 10 20 14 mov 0x14, %g1 ! 14 goto cleanup_and_bail; 2002628: 10 80 00 3e b 2002720 200262c: c2 22 00 00 st %g1, [ %o0 ] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 2002630: 05 00 80 67 sethi %hi(0x2019c00), %g2 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 2002634: c2 00 60 60 ld [ %g1 + 0x60 ], %g1 2002638: 84 10 a0 64 or %g2, 0x64, %g2 !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node; if ( the_mount_entry->mt_fs_root.node_access == loc->node_access ) 200263c: 10 80 00 06 b 2002654 2002640: c6 07 bf ec ld [ %fp + -20 ], %g3 2002644: 80 a1 00 03 cmp %g4, %g3 2002648: 02 80 00 08 be 2002668 200264c: 01 00 00 00 nop * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { 2002650: c2 00 40 00 ld [ %g1 ], %g1 2002654: 80 a0 40 02 cmp %g1, %g2 2002658: 32 bf ff fb bne,a 2002644 200265c: c8 00 60 1c ld [ %g1 + 0x1c ], %g4 * may have been allocated in loc should not be sent to freenode * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; 2002660: 10 80 00 42 b 2002768 2002664: c6 24 60 08 st %g3, [ %l1 + 8 ] /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 2002668: 40 00 2b 85 call 200d47c <__errno> 200266c: a4 07 bf ec add %fp, -20, %l2 2002670: 10 bf ff ee b 2002628 2002674: 82 10 20 10 mov 0x10, %g1 * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ errno = ENOTSUP; 2002678: 40 00 2b 81 call 200d47c <__errno> <== NOT EXECUTED 200267c: 01 00 00 00 nop <== NOT EXECUTED 2002680: 10 bf ff ea b 2002628 <== NOT EXECUTED 2002684: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 2002688: 90 10 00 11 mov %l1, %o0 200268c: 9f c0 40 00 call %g1 2002690: a4 07 bf ec add %fp, -20, %l2 2002694: 80 a2 20 00 cmp %o0, 0 2002698: 22 80 00 0b be,a 20026c4 200269c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 20026a0: 30 80 00 20 b,a 2002720 <== NOT EXECUTED * mt_point_node.node_access will be set to null to indicate that this * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL; temp_mt_entry->mt_fs_root.handlers = NULL; 20026a4: c0 24 60 24 clr [ %l1 + 0x24 ] temp_mt_entry->mt_fs_root.ops = NULL; 20026a8: c0 24 60 28 clr [ %l1 + 0x28 ] temp_mt_entry->mt_point_node.node_access = NULL; 20026ac: c0 24 60 08 clr [ %l1 + 8 ] temp_mt_entry->mt_point_node.handlers = NULL; 20026b0: c0 24 60 10 clr [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = NULL; 20026b4: c0 24 60 14 clr [ %l1 + 0x14 ] temp_mt_entry->mt_point_node.mt_entry = NULL; 20026b8: c0 24 60 18 clr [ %l1 + 0x18 ] 20026bc: a4 10 20 00 clr %l2 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 20026c0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 20026c4: 9f c0 40 00 call %g1 20026c8: 90 10 00 11 mov %l1, %o0 20026cc: 80 a2 20 00 cmp %o0, 0 20026d0: 02 80 00 0a be 20026f8 20026d4: 11 00 80 67 sethi %hi(0x2019c00), %o0 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 20026d8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20026dc: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED 20026e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20026e4: 02 80 00 0f be 2002720 <== NOT EXECUTED 20026e8: 01 00 00 00 nop <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 20026ec: 9f c0 40 00 call %g1 <== NOT EXECUTED 20026f0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20026f4: 30 80 00 0b b,a 2002720 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 20026f8: 92 10 00 11 mov %l1, %o1 20026fc: 40 00 0e 1c call 2005f6c <_Chain_Append> 2002700: 90 12 20 60 or %o0, 0x60, %o0 */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 2002704: 80 a4 20 00 cmp %l0, 0 2002708: 02 80 00 03 be 2002714 200270c: b0 10 20 00 clr %i0 *mt_entry = temp_mt_entry; 2002710: e2 24 00 00 st %l1, [ %l0 ] 2002714: 81 c7 e0 08 ret 2002718: 81 e8 00 00 restore 200271c: a4 10 20 00 clr %l2 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 2002720: 40 00 1e dd call 200a294 2002724: 90 10 00 13 mov %l3, %o0 if ( loc_to_free ) 2002728: 80 a4 a0 00 cmp %l2, 0 200272c: 02 bf ff fa be 2002714 2002730: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( loc_to_free ); 2002734: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 2002738: 80 a0 60 00 cmp %g1, 0 200273c: 02 80 00 09 be 2002760 2002740: 01 00 00 00 nop 2002744: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002748: 80 a0 60 00 cmp %g1, 0 200274c: 02 80 00 05 be 2002760 2002750: 01 00 00 00 nop 2002754: 9f c0 40 00 call %g1 2002758: 90 10 00 12 mov %l2, %o0 200275c: b0 10 3f ff mov -1, %i0 return -1; } 2002760: 81 c7 e0 08 ret 2002764: 81 e8 00 00 restore * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; 2002768: c6 07 bf f4 ld [ %fp + -12 ], %g3 temp_mt_entry->mt_point_node.ops = loc.ops; 200276c: c4 07 bf f8 ld [ %fp + -8 ], %g2 * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; 2002770: c6 24 60 10 st %g3, [ %l1 + 0x10 ] temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 2002774: c6 07 bf fc ld [ %fp + -4 ], %g3 /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 2002778: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 200277c: c6 24 60 18 st %g3, [ %l1 + 0x18 ] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 2002780: 80 a0 60 00 cmp %g1, 0 2002784: 12 bf ff c1 bne 2002688 2002788: c4 24 60 14 st %g2, [ %l1 + 0x14 ] errno = ENOTSUP; 200278c: 10 bf ff bb b 2002678 <== NOT EXECUTED 2002790: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED 02002800 : */ int newlib_free_buffers( FILE *fp ) { 2002800: 9d e3 bf a0 save %sp, -96, %sp switch ( fileno(fp) ) { 2002804: 40 00 2c 37 call 200d8e0 2002808: 90 10 00 18 mov %i0, %o0 200280c: 80 a2 20 02 cmp %o0, 2 2002810: 18 80 00 0e bgu 2002848 2002814: 01 00 00 00 nop case 0: case 1: case 2: if (fp->_flags & __SMBF) { 2002818: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 200281c: 80 88 60 80 btst 0x80, %g1 2002820: 02 80 00 0c be 2002850 2002824: 01 00 00 00 nop free( fp->_bf._base ); 2002828: 40 00 1e 9b call 200a294 <== NOT EXECUTED 200282c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED fp->_flags &= ~__SMBF; 2002830: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 2002834: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002838: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 200283c: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 2002840: 10 80 00 04 b 2002850 <== NOT EXECUTED 2002844: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 2002848: 40 00 2b 65 call 200d5dc <== NOT EXECUTED 200284c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } return 0; } 2002850: 81 c7 e0 08 ret 2002854: 91 e8 20 00 restore %g0, 0, %o0 020028c0 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 20028c0: 9d e3 bf a0 save %sp, -96, %sp rtems_device_driver status; if ( !initialized ) { 20028c4: 03 00 80 7a sethi %hi(0x201e800), %g1 20028c8: c4 48 60 00 ldsb [ %g1 ], %g2 20028cc: 80 a0 a0 00 cmp %g2, 0 20028d0: 12 80 00 0e bne 2002908 20028d4: 84 10 20 01 mov 1, %g2 initialized = 1; status = rtems_io_register_name( 20028d8: 11 00 80 72 sethi %hi(0x201c800), %o0 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 20028dc: c4 28 60 00 stb %g2, [ %g1 ] status = rtems_io_register_name( 20028e0: 90 12 20 08 or %o0, 8, %o0 20028e4: 92 10 00 18 mov %i0, %o1 20028e8: 40 00 00 51 call 2002a2c 20028ec: 94 10 20 00 clr %o2 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 20028f0: 80 a2 20 00 cmp %o0, 0 20028f4: 02 80 00 04 be 2002904 20028f8: 03 00 80 7a sethi %hi(0x201e800), %g1 rtems_fatal_error_occurred(status); 20028fc: 40 00 10 80 call 2006afc <== NOT EXECUTED 2002900: 01 00 00 00 nop <== NOT EXECUTED NULL_major = major; 2002904: f0 20 62 90 st %i0, [ %g1 + 0x290 ] } return RTEMS_SUCCESSFUL; } 2002908: 81 c7 e0 08 ret 200290c: 91 e8 20 00 restore %g0, 0, %o0 0200289c : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 200289c: 80 a2 a0 00 cmp %o2, 0 20028a0: 02 80 00 04 be 20028b0 20028a4: 01 00 00 00 nop rw_args->bytes_moved = rw_args->count; 20028a8: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED 20028ac: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED return NULL_SUCCESSFUL; } 20028b0: 81 c3 e0 08 retl 20028b4: 90 10 20 00 clr %o0 02002a78 : int open( const char *pathname, int flags, ... ) { 2002a78: 9d e3 bf 88 save %sp, -120, %sp eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); 2002a7c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2002a80: f6 27 a0 50 st %i3, [ %fp + 0x50 ] 2002a84: f8 27 a0 54 st %i4, [ %fp + 0x54 ] 2002a88: fa 27 a0 58 st %i5, [ %fp + 0x58 ] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 2002a8c: a2 06 60 01 add %i1, 1, %l1 if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 2002a90: 80 8c 60 02 btst 2, %l1 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) 2002a94: a2 0c 60 01 and %l1, 1, %l1 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 2002a98: 02 80 00 03 be 2002aa4 2002a9c: a3 2c 60 02 sll %l1, 2, %l1 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 2002aa0: a2 14 60 02 or %l1, 2, %l1 va_start(ap, flags); mode = va_arg( ap, int ); 2002aa4: 82 07 a0 50 add %fp, 0x50, %g1 2002aa8: e4 07 a0 4c ld [ %fp + 0x4c ], %l2 2002aac: c2 27 bf fc st %g1, [ %fp + -4 ] * code does not require changes here since network file * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); 2002ab0: 40 00 1e ec call 200a660 2002ab4: a6 10 20 17 mov 0x17, %l3 if ( iop == 0 ) { 2002ab8: a0 92 20 00 orcc %o0, 0, %l0 2002abc: 02 80 00 9a be 2002d24 2002ac0: 01 00 00 00 nop /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 2002ac4: 40 00 2e 25 call 200e358 2002ac8: 90 10 00 18 mov %i0, %o0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2002acc: 94 10 00 11 mov %l1, %o2 pathname, strlen( pathname ), eval_flags, &loc, true ); 2002ad0: 92 10 00 08 mov %o0, %o1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 2002ad4: a2 07 bf e8 add %fp, -24, %l1 2002ad8: 90 10 00 18 mov %i0, %o0 2002adc: 96 10 00 11 mov %l1, %o3 2002ae0: 7f ff fd 98 call 2002140 2002ae4: 98 10 20 01 mov 1, %o4 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 2002ae8: 80 a2 3f ff cmp %o0, -1 2002aec: 12 80 00 24 bne 2002b7c 2002af0: 82 0e 6a 00 and %i1, 0xa00, %g1 if ( errno != ENOENT ) { 2002af4: 40 00 2a 62 call 200d47c <__errno> 2002af8: a8 10 20 00 clr %l4 2002afc: c2 02 00 00 ld [ %o0 ], %g1 2002b00: 80 a0 60 02 cmp %g1, 2 2002b04: 12 80 00 40 bne 2002c04 2002b08: 80 8e 62 00 btst 0x200, %i1 rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 2002b0c: a8 10 20 00 clr %l4 2002b10: 02 80 00 73 be 2002cdc 2002b14: a6 10 20 02 mov 2, %l3 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 2002b18: 13 3f ff e0 sethi %hi(0xffff8000), %o1 2002b1c: 90 10 00 18 mov %i0, %o0 2002b20: 92 14 80 09 or %l2, %o1, %o1 2002b24: 94 10 20 00 clr %o2 2002b28: 93 2a 60 10 sll %o1, 0x10, %o1 2002b2c: 96 10 20 00 clr %o3 2002b30: 7f ff fe 23 call 20023bc 2002b34: 93 32 60 10 srl %o1, 0x10, %o1 if ( rc ) { 2002b38: 80 a2 20 00 cmp %o0, 0 2002b3c: 12 80 00 32 bne 2002c04 2002b40: 01 00 00 00 nop rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); 2002b44: 40 00 2e 05 call 200e358 2002b48: 90 10 00 18 mov %i0, %o0 2002b4c: 96 10 00 11 mov %l1, %o3 2002b50: 92 10 00 08 mov %o0, %o1 2002b54: 94 10 20 00 clr %o2 2002b58: 90 10 00 18 mov %i0, %o0 2002b5c: 98 10 20 01 mov 1, %o4 2002b60: 7f ff fd 78 call 2002140 2002b64: a8 10 20 00 clr %l4 if ( status != 0 ) { /* The file did not exist */ 2002b68: 80 a2 20 00 cmp %o0, 0 2002b6c: 12 80 00 5c bne 2002cdc 2002b70: a6 10 20 0d mov 0xd, %l3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002b74: 10 80 00 07 b 2002b90 2002b78: c2 07 bf f0 ld [ %fp + -16 ], %g1 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 2002b7c: a8 10 00 11 mov %l1, %l4 2002b80: 80 a0 6a 00 cmp %g1, 0xa00 2002b84: 02 80 00 56 be 2002cdc 2002b88: a6 10 20 11 mov 0x11, %l3 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002b8c: c2 07 bf f0 ld [ %fp + -16 ], %g1 iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002b90: e2 04 20 18 ld [ %l0 + 0x18 ], %l1 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 2002b94: c2 24 20 40 st %g1, [ %l0 + 0x40 ] iop->file_info = loc.node_access; 2002b98: c2 07 bf e8 ld [ %fp + -24 ], %g1 iop->flags |= rtems_libio_fcntl_flags( flags ); 2002b9c: 90 10 00 19 mov %i1, %o0 2002ba0: 40 00 1e e4 call 200a730 2002ba4: c2 24 20 3c st %g1, [ %l0 + 0x3c ] 2002ba8: 90 12 00 11 or %o0, %l1, %o0 iop->pathinfo = loc; 2002bac: 94 10 20 14 mov 0x14, %o2 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 2002bb0: d0 24 20 18 st %o0, [ %l0 + 0x18 ] iop->pathinfo = loc; 2002bb4: a2 07 bf e8 add %fp, -24, %l1 2002bb8: 90 04 20 1c add %l0, 0x1c, %o0 2002bbc: 40 00 2c 6b call 200dd68 2002bc0: 92 10 00 11 mov %l1, %o1 if ( !iop->handlers || !iop->handlers->open_h ) { 2002bc4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2002bc8: 80 a0 60 00 cmp %g1, 0 2002bcc: 22 80 00 6a be,a 2002d74 2002bd0: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED 2002bd4: c2 00 40 00 ld [ %g1 ], %g1 2002bd8: 80 a0 60 00 cmp %g1, 0 2002bdc: 02 80 00 65 be 2002d70 2002be0: 92 10 00 18 mov %i0, %o1 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 2002be4: 96 10 00 12 mov %l2, %o3 2002be8: 90 10 00 10 mov %l0, %o0 2002bec: 9f c0 40 00 call %g1 2002bf0: 94 10 00 19 mov %i1, %o2 if ( rc ) { 2002bf4: 80 a2 20 00 cmp %o0, 0 2002bf8: 02 80 00 07 be 2002c14 2002bfc: 80 8e 64 00 btst 0x400, %i1 rc = errno; 2002c00: a8 10 00 11 mov %l1, %l4 2002c04: 40 00 2a 1e call 200d47c <__errno> 2002c08: 01 00 00 00 nop goto done; 2002c0c: 10 80 00 31 b 2002cd0 2002c10: e6 02 00 00 ld [ %o0 ], %l3 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 2002c14: 02 80 00 49 be 2002d38 2002c18: 03 00 80 67 sethi %hi(0x2019c00), %g1 rc = ftruncate( iop - rtems_libio_iops, 0 ); 2002c1c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 2019c24 2002c20: 92 10 20 00 clr %o1 2002c24: 82 24 00 01 sub %l0, %g1, %g1 2002c28: 83 38 60 03 sra %g1, 3, %g1 2002c2c: 87 28 60 06 sll %g1, 6, %g3 2002c30: 85 28 60 03 sll %g1, 3, %g2 2002c34: 84 20 c0 02 sub %g3, %g2, %g2 2002c38: 87 28 a0 06 sll %g2, 6, %g3 2002c3c: 84 00 80 03 add %g2, %g3, %g2 2002c40: 84 00 80 01 add %g2, %g1, %g2 2002c44: 91 28 a0 0f sll %g2, 0xf, %o0 2002c48: 84 22 00 02 sub %o0, %g2, %g2 2002c4c: 94 10 20 00 clr %o2 2002c50: 91 28 a0 03 sll %g2, 3, %o0 2002c54: 40 00 1d ba call 200a33c 2002c58: 90 02 00 01 add %o0, %g1, %o0 if ( rc ) { 2002c5c: a6 92 20 00 orcc %o0, 0, %l3 2002c60: 02 80 00 36 be 2002d38 2002c64: 03 00 80 67 sethi %hi(0x2019c00), %g1 if(errno) rc = errno; 2002c68: 40 00 2a 05 call 200d47c <__errno> <== NOT EXECUTED 2002c6c: 01 00 00 00 nop <== NOT EXECUTED 2002c70: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 2002c74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002c78: 02 80 00 06 be 2002c90 <== NOT EXECUTED 2002c7c: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED 2002c80: 40 00 29 ff call 200d47c <__errno> <== NOT EXECUTED 2002c84: 01 00 00 00 nop <== NOT EXECUTED 2002c88: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED close( iop - rtems_libio_iops ); 2002c8c: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED 2002c90: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 2019c24 <== NOT EXECUTED 2002c94: a8 10 20 00 clr %l4 <== NOT EXECUTED 2002c98: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED 2002c9c: 83 3c 20 03 sra %l0, 3, %g1 <== NOT EXECUTED 2002ca0: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED 2002ca4: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED 2002ca8: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED 2002cac: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED 2002cb0: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED 2002cb4: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED 2002cb8: 91 28 a0 0f sll %g2, 0xf, %o0 <== NOT EXECUTED 2002cbc: 84 22 00 02 sub %o0, %g2, %g2 <== NOT EXECUTED 2002cc0: a0 10 20 00 clr %l0 <== NOT EXECUTED 2002cc4: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED 2002cc8: 40 00 1d 44 call 200a1d8 <== NOT EXECUTED 2002ccc: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 2002cd0: 80 a4 e0 00 cmp %l3, 0 2002cd4: 02 80 00 19 be 2002d38 2002cd8: 03 00 80 67 sethi %hi(0x2019c00), %g1 if ( iop ) 2002cdc: 80 a4 20 00 cmp %l0, 0 2002ce0: 02 80 00 05 be 2002cf4 2002ce4: 80 a5 20 00 cmp %l4, 0 rtems_libio_free( iop ); 2002ce8: 40 00 1e 46 call 200a600 2002cec: 90 10 00 10 mov %l0, %o0 if ( loc_to_free ) 2002cf0: 80 a5 20 00 cmp %l4, 0 2002cf4: 02 80 00 0c be 2002d24 2002cf8: 01 00 00 00 nop rtems_filesystem_freenode( loc_to_free ); 2002cfc: c2 05 20 0c ld [ %l4 + 0xc ], %g1 2002d00: 80 a0 60 00 cmp %g1, 0 2002d04: 02 80 00 08 be 2002d24 2002d08: 01 00 00 00 nop 2002d0c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2002d10: 80 a0 60 00 cmp %g1, 0 2002d14: 02 80 00 04 be 2002d24 2002d18: 01 00 00 00 nop 2002d1c: 9f c0 40 00 call %g1 2002d20: 90 10 00 14 mov %l4, %o0 rtems_set_errno_and_return_minus_one( rc ); 2002d24: 40 00 29 d6 call 200d47c <__errno> 2002d28: b0 10 3f ff mov -1, %i0 2002d2c: e6 22 00 00 st %l3, [ %o0 ] 2002d30: 81 c7 e0 08 ret 2002d34: 81 e8 00 00 restore } return iop - rtems_libio_iops; 2002d38: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 2002d3c: a0 24 00 01 sub %l0, %g1, %l0 2002d40: a1 3c 20 03 sra %l0, 3, %l0 2002d44: 85 2c 20 06 sll %l0, 6, %g2 2002d48: 83 2c 20 03 sll %l0, 3, %g1 2002d4c: 82 20 80 01 sub %g2, %g1, %g1 2002d50: 85 28 60 06 sll %g1, 6, %g2 2002d54: 82 00 40 02 add %g1, %g2, %g1 2002d58: 82 00 40 10 add %g1, %l0, %g1 2002d5c: b1 28 60 0f sll %g1, 0xf, %i0 2002d60: b0 26 00 01 sub %i0, %g1, %i0 2002d64: b1 2e 20 03 sll %i0, 3, %i0 } 2002d68: 81 c7 e0 08 ret 2002d6c: 91 ee 00 10 restore %i0, %l0, %o0 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 2002d70: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED 2002d74: 10 bf ff da b 2002cdc <== NOT EXECUTED 2002d78: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED 02002a04 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 2002a04: 9d e3 bf a0 save %sp, -96, %sp int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 2002a08: 21 00 80 60 sethi %hi(0x2018000), %l0 2002a0c: 92 10 20 00 clr %o1 2002a10: 90 14 22 d8 or %l0, 0x2d8, %o0 2002a14: 40 00 00 19 call 2002a78 2002a18: 94 10 20 00 clr %o2 2002a1c: 80 a2 3f ff cmp %o0, -1 2002a20: 02 80 00 14 be 2002a70 2002a24: 90 14 22 d8 or %l0, 0x2d8, %o0 /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002a28: 92 10 20 01 mov 1, %o1 2002a2c: 40 00 00 13 call 2002a78 2002a30: 94 10 20 00 clr %o2 2002a34: 80 a2 3f ff cmp %o0, -1 2002a38: 32 80 00 05 bne,a 2002a4c 2002a3c: 90 14 22 d8 or %l0, 0x2d8, %o0 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 2002a40: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED 2002a44: 10 80 00 09 b 2002a68 <== NOT EXECUTED 2002a48: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 2002a4c: 92 10 20 01 mov 1, %o1 2002a50: 40 00 00 0a call 2002a78 2002a54: 94 10 20 00 clr %o2 2002a58: 80 a2 3f ff cmp %o0, -1 2002a5c: 12 80 00 05 bne 2002a70 2002a60: 11 15 55 11 sethi %hi(0x55544400), %o0 rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 2002a64: 90 12 20 32 or %o0, 0x32, %o0 ! 55544432 <== NOT EXECUTED 2002a68: 40 00 0c 81 call 2005c6c <== NOT EXECUTED 2002a6c: 01 00 00 00 nop <== NOT EXECUTED 2002a70: 81 c7 e0 08 ret 2002a74: 81 e8 00 00 restore 020034fc : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 20034fc: 9d e3 bf a0 save %sp, -96, %sp int i; if (tty->termios.c_oflag & OPOST) { 2003500: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 2003504: 80 88 60 01 btst 1, %g1 2003508: 02 80 00 5a be 2003670 200350c: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] switch (c) { 2003510: 84 0e 20 ff and %i0, 0xff, %g2 2003514: 80 a0 a0 09 cmp %g2, 9 2003518: 22 80 00 2b be,a 20035c4 200351c: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 2003520: 18 80 00 07 bgu 200353c 2003524: 80 a0 a0 0a cmp %g2, 0xa 2003528: 80 a0 a0 08 cmp %g2, 8 <== NOT EXECUTED 200352c: 12 80 00 3a bne 2003614 <== NOT EXECUTED 2003530: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 2003534: 10 80 00 33 b 2003600 <== NOT EXECUTED 2003538: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 200353c: 02 80 00 06 be 2003554 2003540: 80 a0 a0 0d cmp %g2, 0xd 2003544: 32 80 00 34 bne,a 2003614 2003548: 80 88 60 02 btst 2, %g1 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 200354c: 10 80 00 10 b 200358c <== NOT EXECUTED 2003550: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 2003554: 80 88 60 20 btst 0x20, %g1 2003558: 32 80 00 02 bne,a 2003560 200355c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED tty->column = 0; if (tty->termios.c_oflag & ONLCR) { 2003560: c2 06 60 34 ld [ %i1 + 0x34 ], %g1 2003564: 80 88 60 04 btst 4, %g1 2003568: 02 80 00 43 be 2003674 200356c: 94 10 00 19 mov %i1, %o2 rtems_termios_puts ("\r", 1, tty); 2003570: 11 00 80 61 sethi %hi(0x2018400), %o0 2003574: 92 10 20 01 mov 1, %o1 2003578: 90 12 22 70 or %o0, 0x270, %o0 200357c: 7f ff ff 94 call 20033cc 2003580: 94 10 00 19 mov %i1, %o2 c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 2003584: 10 80 00 3b b 2003670 2003588: c0 26 60 28 clr [ %i1 + 0x28 ] tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 200358c: 02 80 00 06 be 20035a4 <== NOT EXECUTED 2003590: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED 2003594: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED 2003598: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200359c: 02 80 00 17 be 20035f8 <== NOT EXECUTED 20035a0: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 20035a4: 22 80 00 33 be,a 2003670 <== NOT EXECUTED 20035a8: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED c = '\n'; 20035ac: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 20035b0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20035b4: 02 80 00 2f be 2003670 <== NOT EXECUTED 20035b8: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; break; 20035bc: 10 80 00 2d b 2003670 <== NOT EXECUTED 20035c0: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20035c4: 07 00 00 06 sethi %hi(0x1800), %g3 20035c8: 82 08 40 03 and %g1, %g3, %g1 20035cc: 80 a0 40 03 cmp %g1, %g3 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 20035d0: 82 08 a0 07 and %g2, 7, %g1 20035d4: 92 10 20 08 mov 8, %o1 20035d8: 92 22 40 01 sub %o1, %g1, %o1 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 20035dc: 12 80 00 24 bne 200366c 20035e0: 82 02 40 02 add %o1, %g2, %g1 tty->column += i; 20035e4: c2 26 60 28 st %g1, [ %i1 + 0x28 ] rtems_termios_puts ( " ", i, tty); 20035e8: 94 10 00 19 mov %i1, %o2 20035ec: 11 00 80 61 sethi %hi(0x2018400), %o0 20035f0: 7f ff ff 77 call 20033cc 20035f4: 90 12 22 78 or %o0, 0x278, %o0 ! 2018678 return; 20035f8: 81 c7 e0 08 ret 20035fc: 81 e8 00 00 restore } tty->column += i; break; case '\b': if (tty->column > 0) 2003600: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003604: 04 80 00 1b ble 2003670 <== NOT EXECUTED 2003608: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); if (!iscntrl(c)) tty->column++; 200360c: 10 80 00 19 b 2003670 <== NOT EXECUTED 2003610: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 2003614: 02 80 00 0d be 2003648 2003618: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 c = toupper(c); 200361c: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED 2003620: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 20194e0 <__ctype_ptr__> <== NOT EXECUTED 2003624: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED 2003628: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED 200362c: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED 2003630: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2003634: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2003638: 22 80 00 02 be,a 2003640 <== NOT EXECUTED 200363c: b0 06 3f e0 add %i0, -32, %i0 <== NOT EXECUTED 2003640: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] <== NOT EXECUTED if (!iscntrl(c)) 2003644: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 <== NOT EXECUTED 2003648: 05 00 80 65 sethi %hi(0x2019400), %g2 200364c: c4 00 a0 e0 ld [ %g2 + 0xe0 ], %g2 ! 20194e0 <__ctype_ptr__> 2003650: 82 00 80 01 add %g2, %g1, %g1 2003654: c2 08 60 01 ldub [ %g1 + 1 ], %g1 2003658: 80 88 60 20 btst 0x20, %g1 200365c: 12 80 00 06 bne 2003674 2003660: 94 10 00 19 mov %i1, %o2 tty->column++; 2003664: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 2003668: 82 00 60 01 inc %g1 200366c: c2 26 60 28 st %g1, [ %i1 + 0x28 ] break; } } rtems_termios_puts (&c, 1, tty); 2003670: 94 10 00 19 mov %i1, %o2 2003674: 90 07 a0 44 add %fp, 0x44, %o0 2003678: 7f ff ff 55 call 20033cc 200367c: 92 10 20 01 mov 1, %o1 2003680: 81 c7 e0 08 ret 2003684: 81 e8 00 00 restore 0200cf0c : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 200cf0c: 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) 200cf10: 23 00 80 62 sethi %hi(0x2018800), %l1 200cf14: a0 07 bf dc add %fp, -36, %l0 200cf18: 92 10 20 03 mov 3, %o1 200cf1c: 90 14 63 c0 or %l1, 0x3c0, %o0 200cf20: 94 10 20 07 mov 7, %o2 200cf24: 96 10 00 10 mov %l0, %o3 200cf28: 7f ff d4 86 call 2002140 200cf2c: 98 10 20 01 mov 1, %o4 200cf30: 80 a2 20 00 cmp %o0, 0 200cf34: 02 80 00 10 be 200cf74 200cf38: c2 07 bf e8 ld [ %fp + -24 ], %g1 != 0) { if (errno != ENOENT) 200cf3c: 40 00 01 50 call 200d47c <__errno> 200cf40: 01 00 00 00 nop 200cf44: c2 02 00 00 ld [ %o0 ], %g1 200cf48: 80 a0 60 02 cmp %g1, 2 200cf4c: 32 80 00 59 bne,a 200d0b0 200cf50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 200cf54: 90 14 63 c0 or %l1, 0x3c0, %o0 200cf58: 7f ff d5 0f call 2002394 200cf5c: 92 10 23 ff mov 0x3ff, %o1 200cf60: 80 a2 20 00 cmp %o0, 0 200cf64: 02 80 00 0e be 200cf9c 200cf68: 03 00 80 66 sethi %hi(0x2019800), %g1 } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 200cf6c: 81 c7 e0 08 ret <== NOT EXECUTED 200cf70: 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); 200cf74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cf78: 22 80 00 09 be,a 200cf9c <== NOT EXECUTED 200cf7c: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200cf80: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201981c <== NOT EXECUTED 200cf84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200cf88: 22 80 00 05 be,a 200cf9c <== NOT EXECUTED 200cf8c: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200cf90: 9f c0 40 00 call %g1 <== NOT EXECUTED 200cf94: 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 ++); 200cf98: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200cf9c: c4 10 62 ca lduh [ %g1 + 0x2ca ], %g2 ! 2019aca else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200cfa0: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200cfa4: 95 28 a0 10 sll %g2, 0x10, %o2 200cfa8: 84 00 a0 01 inc %g2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200cfac: 86 10 e2 69 or %g3, 0x269, %g3 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200cfb0: c4 30 62 ca sth %g2, [ %g1 + 0x2ca ] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200cfb4: 05 0b dd 1b sethi %hi(0x2f746c00), %g2 200cfb8: 03 00 00 19 sethi %hi(0x6400), %g1 200cfbc: 84 10 a1 70 or %g2, 0x170, %g2 200cfc0: 82 10 62 6f or %g1, 0x26f, %g1 200cfc4: a0 07 bf f0 add %fp, -16, %l0 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200cfc8: 95 32 a0 10 srl %o2, 0x10, %o2 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 200cfcc: c4 3f bf f0 std %g2, [ %fp + -16 ] 200cfd0: c2 34 20 08 sth %g1, [ %l0 + 8 ] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 200cfd4: 90 07 bf fa add %fp, -6, %o0 200cfd8: 13 00 80 62 sethi %hi(0x2018800), %o1 200cfdc: 40 00 04 13 call 200e028 200cfe0: 92 12 63 c8 or %o1, 0x3c8, %o1 ! 2018bc8 <__FUNCTION__.5881+0x30> /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 200cfe4: 90 10 00 10 mov %l0, %o0 200cfe8: 40 00 00 4b call 200d114 200cfec: 92 10 21 80 mov 0x180, %o1 200cff0: 80 a2 20 00 cmp %o0, 0 200cff4: 02 80 00 05 be 200d008 200cff8: 90 10 00 10 mov %l0, %o0 if (errno != EEXIST){ 200cffc: 40 00 01 20 call 200d47c <__errno> <== NOT EXECUTED 200d000: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200d004: 30 80 00 2b b,a 200d0b0 <== 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); 200d008: 7f ff d6 9c call 2002a78 200d00c: 13 00 00 10 sethi %hi(0x4000), %o1 if (filsdes[0] < 0) { 200d010: 80 a2 20 00 cmp %o0, 0 200d014: 16 80 00 07 bge 200d030 200d018: d0 26 00 00 st %o0, [ %i0 ] err = errno; 200d01c: 40 00 01 18 call 200d47c <__errno> 200d020: 01 00 00 00 nop 200d024: 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); 200d028: 10 80 00 1d b 200d09c 200d02c: 90 10 00 10 mov %l0, %o0 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 200d030: 03 00 80 64 sethi %hi(0x2019000), %g1 <== NOT EXECUTED 200d034: c4 00 63 74 ld [ %g1 + 0x374 ], %g2 ! 2019374 <== NOT EXECUTED 200d038: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED 200d03c: 1a 80 00 08 bcc 200d05c <== NOT EXECUTED 200d040: 82 10 20 00 clr %g1 <== NOT EXECUTED 200d044: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED 200d048: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 2019c24 <== NOT EXECUTED 200d04c: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED 200d050: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED 200d054: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED 200d058: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 200d05c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200d060: 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; 200d064: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 200d068: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200d06c: 7f ff d6 83 call 2002a78 <== NOT EXECUTED 200d070: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 200d074: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED if (filsdes[1] < 0) { 200d078: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d07c: 16 80 00 07 bge 200d098 <== NOT EXECUTED 200d080: a2 10 20 00 clr %l1 <== NOT EXECUTED err = errno; 200d084: 40 00 00 fe call 200d47c <__errno> <== NOT EXECUTED 200d088: 01 00 00 00 nop <== NOT EXECUTED 200d08c: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED close(filsdes[0]); 200d090: 7f ff f4 52 call 200a1d8 <== NOT EXECUTED 200d094: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED } unlink(fifopath); 200d098: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED 200d09c: 40 00 00 28 call 200d13c 200d0a0: b0 10 3f ff mov -1, %i0 } rtems_set_errno_and_return_minus_one(err); 200d0a4: 40 00 00 f6 call 200d47c <__errno> 200d0a8: 01 00 00 00 nop 200d0ac: e2 22 00 00 st %l1, [ %o0 ] } 200d0b0: 81 c7 e0 08 ret 200d0b4: 81 e8 00 00 restore 0200bfb0 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 200bfb0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 200bfb4: 40 00 02 21 call 200c838 <== NOT EXECUTED 200bfb8: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 200bfbc: 40 00 02 1f call 200c838 <== NOT EXECUTED 200bfc0: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 200bfc4: 7f ff e5 55 call 2005518 <== NOT EXECUTED 200bfc8: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED free(pipe->Buffer); 200bfcc: 7f ff f8 b2 call 200a294 <== NOT EXECUTED 200bfd0: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED free(pipe); 200bfd4: 7f ff f8 b0 call 200a294 <== NOT EXECUTED 200bfd8: 81 e8 00 00 restore <== NOT EXECUTED 200bfdc: 01 00 00 00 nop 0200bbf0 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200bbf0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if (cmd == FIONREAD) { 200bbf4: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 200bbf8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED if (cmd == FIONREAD) { 200bbfc: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED 200bc00: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 200bc04: 12 80 00 12 bne 200bc4c <== NOT EXECUTED 200bc08: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED if (buffer == NULL) 200bc0c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200bc10: 02 80 00 0f be 200bc4c <== NOT EXECUTED 200bc14: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 200bc18: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200bc1c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200bc20: 94 10 20 00 clr %o2 <== NOT EXECUTED 200bc24: 7f ff e6 6b call 20055d0 <== NOT EXECUTED 200bc28: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200bc2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bc30: 12 80 00 07 bne 200bc4c <== NOT EXECUTED 200bc34: 01 00 00 00 nop <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200bc38: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200bc3c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 200bc40: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED PIPE_UNLOCK(pipe); 200bc44: 7f ff e6 aa call 20056ec <== NOT EXECUTED 200bc48: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } return -EINVAL; } 200bc4c: 81 c7 e0 08 ret <== NOT EXECUTED 200bc50: 81 e8 00 00 restore <== NOT EXECUTED 0200bb7c : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 200bb7c: 81 c3 e0 08 retl <== NOT EXECUTED 200bb80: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED 0200be14 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200be14: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200be18: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 200be1c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 200be20: 92 10 20 00 clr %o1 <== NOT EXECUTED 200be24: 94 10 20 00 clr %o2 <== NOT EXECUTED 200be28: 7f ff e5 ea call 20055d0 <== NOT EXECUTED 200be2c: b0 10 20 00 clr %i0 <== NOT EXECUTED 200be30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200be34: 02 80 00 54 be 200bf84 <== NOT EXECUTED 200be38: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED 200be3c: 81 c7 e0 08 ret <== NOT EXECUTED 200be40: 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) 200be44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200be48: 02 80 00 53 be 200bf94 <== NOT EXECUTED 200be4c: a2 10 20 00 clr %l1 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 200be50: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED 200be54: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200be58: 22 80 00 04 be,a 200be68 <== NOT EXECUTED 200be5c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200be60: 10 80 00 4d b 200bf94 <== NOT EXECUTED 200be64: 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); 200be68: 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 ++; 200be6c: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200be70: 7f ff e6 1f call 20056ec <== NOT EXECUTED 200be74: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 200be78: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200be7c: 40 00 02 a0 call 200c8fc <== NOT EXECUTED 200be80: 92 10 20 00 clr %o1 <== NOT EXECUTED 200be84: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200be88: 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)) 200be8c: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200be90: 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)) 200be94: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200be98: 94 10 20 00 clr %o2 <== NOT EXECUTED 200be9c: 7f ff e5 cd call 20055d0 <== NOT EXECUTED 200bea0: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200bea4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bea8: 22 80 00 04 be,a 200beb8 <== NOT EXECUTED 200beac: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED 200beb0: 10 80 00 3b b 200bf9c <== NOT EXECUTED 200beb4: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 200beb8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 200bebc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200bec0: 12 80 00 35 bne 200bf94 <== NOT EXECUTED 200bec4: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 200bec8: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200becc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200bed0: 22 bf ff dd be,a 200be44 <== NOT EXECUTED 200bed4: 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); 200bed8: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED 200bedc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 200bee0: 38 80 00 02 bgu,a 200bee8 <== NOT EXECUTED 200bee4: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 200bee8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 200beec: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200bef0: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED 200bef4: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200bef8: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200befc: 04 80 00 0a ble 200bf24 <== NOT EXECUTED 200bf00: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 200bf04: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200bf08: 40 00 07 98 call 200dd68 <== NOT EXECUTED 200bf0c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 200bf10: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED 200bf14: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED 200bf18: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200bf1c: 10 80 00 04 b 200bf2c <== NOT EXECUTED 200bf20: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 200bf24: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED 200bf28: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200bf2c: 40 00 07 8f call 200dd68 <== NOT EXECUTED 200bf30: 01 00 00 00 nop <== NOT EXECUTED pipe->Start += chunk; 200bf34: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200bf38: 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; 200bf3c: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED pipe->Start %= pipe->Size; 200bf40: 40 00 2b 23 call 2016bcc <.urem> <== NOT EXECUTED 200bf44: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200bf48: 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; 200bf4c: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED pipe->Length -= chunk; 200bf50: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 200bf54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bf58: 12 80 00 03 bne 200bf64 <== NOT EXECUTED 200bf5c: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED pipe->Start = 0; 200bf60: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED if (pipe->waitingWriters > 0) 200bf64: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200bf68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bf6c: 22 80 00 06 be,a 200bf84 <== NOT EXECUTED 200bf70: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 200bf74: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200bf78: 40 00 02 4a call 200c8a0 <== NOT EXECUTED 200bf7c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED read += chunk; 200bf80: 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) { 200bf84: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200bf88: 2a bf ff d1 bcs,a 200becc <== NOT EXECUTED 200bf8c: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED 200bf90: a2 10 20 00 clr %l1 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 200bf94: 7f ff e5 d6 call 20056ec <== NOT EXECUTED 200bf98: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED out_nolock: if (read > 0) 200bf9c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200bfa0: 24 80 00 02 ble,a 200bfa8 <== NOT EXECUTED 200bfa4: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return read; return ret; } 200bfa8: 81 c7 e0 08 ret <== NOT EXECUTED 200bfac: 81 e8 00 00 restore <== NOT EXECUTED 0200bfe0 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 200bfe0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED pipe_control_t *pipe = *pipep; 200bfe4: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 200bfe8: 92 10 20 00 clr %o1 <== NOT EXECUTED 200bfec: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200bff0: 7f ff e5 78 call 20055d0 <== NOT EXECUTED 200bff4: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 200bff8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bffc: 12 80 00 17 bne 200c058 <== NOT EXECUTED 200c000: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 200c004: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 200c008: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED 200c00c: 02 80 00 05 be 200c020 <== NOT EXECUTED 200c010: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED pipe->Readers --; 200c014: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200c018: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200c01c: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 200c020: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED 200c024: 02 80 00 06 be 200c03c <== NOT EXECUTED 200c028: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED pipe->Writers --; 200c02c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200c030: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 200c034: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 200c038: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200c03c: d0 00 62 c4 ld [ %g1 + 0x2c4 ], %o0 ! 2019ac4 <== NOT EXECUTED 200c040: 92 10 20 00 clr %o1 <== NOT EXECUTED 200c044: 7f ff e5 63 call 20055d0 <== NOT EXECUTED 200c048: 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) 200c04c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200c050: 02 80 00 04 be 200c060 <== NOT EXECUTED 200c054: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred(sc); 200c058: 7f ff e7 05 call 2005c6c <== NOT EXECUTED 200c05c: 01 00 00 00 nop <== NOT EXECUTED PIPE_UNLOCK(pipe); 200c060: 7f ff e5 a3 call 20056ec <== NOT EXECUTED 200c064: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 200c068: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200c06c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c070: 12 80 00 0a bne 200c098 <== NOT EXECUTED 200c074: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED 200c078: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED 200c07c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 200c080: 12 80 00 06 bne 200c098 <== NOT EXECUTED 200c084: 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); 200c088: 7f ff ff ca call 200bfb0 <== NOT EXECUTED 200c08c: 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) { 200c090: 10 80 00 12 b 200c0d8 <== NOT EXECUTED 200c094: 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) 200c098: 02 80 00 06 be 200c0b0 <== NOT EXECUTED 200c09c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c0a0: 12 80 00 05 bne 200c0b4 <== NOT EXECUTED 200c0a4: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 200c0a8: 10 80 00 0a b 200c0d0 <== NOT EXECUTED 200c0ac: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 200c0b0: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED 200c0b4: 02 80 00 0a be 200c0dc <== NOT EXECUTED 200c0b8: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200c0bc: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED 200c0c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200c0c4: 12 80 00 06 bne 200c0dc <== NOT EXECUTED 200c0c8: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200c0cc: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200c0d0: 40 00 01 f4 call 200c8a0 <== NOT EXECUTED 200c0d4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 200c0d8: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200c0dc: d0 00 62 c4 ld [ %g1 + 0x2c4 ], %o0 ! 2019ac4 <== NOT EXECUTED 200c0e0: 7f ff e5 83 call 20056ec <== NOT EXECUTED 200c0e4: b0 10 20 00 clr %i0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 200c0e8: 81 c7 e0 08 ret <== NOT EXECUTED 200c0ec: 81 e8 00 00 restore <== NOT EXECUTED 0200bc54 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 200bc54: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED 200bc58: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 200bc5c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 200bc60: 02 80 00 6b be 200be0c <== NOT EXECUTED 200bc64: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 200bc68: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED 200bc6c: 92 10 20 00 clr %o1 <== NOT EXECUTED 200bc70: 94 10 20 00 clr %o2 <== NOT EXECUTED 200bc74: 7f ff e6 57 call 20055d0 <== NOT EXECUTED 200bc78: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED 200bc7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bc80: 12 80 00 63 bne 200be0c <== NOT EXECUTED 200bc84: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 200bc88: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200bc8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bc90: 02 80 00 5a be 200bdf8 <== NOT EXECUTED 200bc94: 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; 200bc98: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 200bc9c: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 200bca0: 08 80 00 04 bleu 200bcb0 <== NOT EXECUTED 200bca4: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED 200bca8: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED 200bcac: 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); 200bcb0: 10 80 00 4e b 200bde8 <== NOT EXECUTED 200bcb4: 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)) { 200bcb8: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 200bcbc: 22 80 00 04 be,a 200bccc <== NOT EXECUTED 200bcc0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200bcc4: 10 80 00 4d b 200bdf8 <== NOT EXECUTED 200bcc8: 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); 200bccc: 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 ++; 200bcd0: 82 00 60 01 inc %g1 <== NOT EXECUTED PIPE_UNLOCK(pipe); 200bcd4: 7f ff e6 86 call 20056ec <== NOT EXECUTED 200bcd8: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 200bcdc: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED 200bce0: 40 00 03 07 call 200c8fc <== NOT EXECUTED 200bce4: 92 10 20 00 clr %o1 <== NOT EXECUTED 200bce8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200bcec: 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)) 200bcf0: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200bcf4: 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)) 200bcf8: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 200bcfc: 94 10 20 00 clr %o2 <== NOT EXECUTED 200bd00: 7f ff e6 34 call 20055d0 <== NOT EXECUTED 200bd04: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED 200bd08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bd0c: 22 80 00 04 be,a 200bd1c <== NOT EXECUTED 200bd10: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED 200bd14: 10 80 00 3b b 200be00 <== NOT EXECUTED 200bd18: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) 200bd1c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 200bd20: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED if (ret != 0) 200bd24: 12 80 00 35 bne 200bdf8 <== NOT EXECUTED 200bd28: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 200bd2c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED 200bd30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bd34: 32 80 00 04 bne,a 200bd44 <== NOT EXECUTED 200bd38: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200bd3c: 10 80 00 2f b 200bdf8 <== NOT EXECUTED 200bd40: 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) { 200bd44: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED 200bd48: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED 200bd4c: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED 200bd50: 2a bf ff da bcs,a 200bcb8 <== NOT EXECUTED 200bd54: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 200bd58: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED 200bd5c: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 200bd60: 38 80 00 02 bgu,a 200bd68 <== NOT EXECUTED 200bd64: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 200bd68: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED 200bd6c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 200bd70: 40 00 2b 97 call 2016bcc <.urem> <== NOT EXECUTED 200bd74: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200bd78: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED 200bd7c: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED if (chunk > chunk1) { 200bd80: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED 200bd84: 04 80 00 0a ble 200bdac <== NOT EXECUTED 200bd88: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 200bd8c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 200bd90: 40 00 07 f6 call 200dd68 <== NOT EXECUTED 200bd94: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 200bd98: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED 200bd9c: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED 200bda0: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED 200bda4: 10 80 00 04 b 200bdb4 <== NOT EXECUTED 200bda8: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 200bdac: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED 200bdb0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 200bdb4: 40 00 07 ed call 200dd68 <== NOT EXECUTED 200bdb8: 01 00 00 00 nop <== NOT EXECUTED pipe->Length += chunk; 200bdbc: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200bdc0: 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; 200bdc4: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED if (pipe->waitingReaders > 0) 200bdc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bdcc: 02 80 00 05 be 200bde0 <== NOT EXECUTED 200bdd0: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 200bdd4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED 200bdd8: 40 00 02 b2 call 200c8a0 <== NOT EXECUTED 200bddc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED written += chunk; 200bde0: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED 200bde4: 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) { 200bde8: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED 200bdec: 2a bf ff d6 bcs,a 200bd44 <== NOT EXECUTED 200bdf0: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED 200bdf4: 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); 200bdf8: 7f ff e6 3d call 20056ec <== NOT EXECUTED 200bdfc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) 200be00: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED 200be04: 24 80 00 02 ble,a 200be0c <== NOT EXECUTED 200be08: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED return written; return ret; } 200be0c: 81 c7 e0 08 ret <== NOT EXECUTED 200be10: 81 e8 00 00 restore <== NOT EXECUTED 020178c4 : ssize_t read( int fd, void *buffer, size_t count ) { 20178c4: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20178c8: 03 00 80 64 sethi %hi(0x2019000), %g1 20178cc: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 ! 2019374 ssize_t read( int fd, void *buffer, size_t count ) { 20178d0: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 20178d4: 80 a6 00 01 cmp %i0, %g1 20178d8: 1a 80 00 0c bcc 2017908 20178dc: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 20178e0: 03 00 80 67 sethi %hi(0x2019c00), %g1 20178e4: e0 00 60 24 ld [ %g1 + 0x24 ], %l0 ! 2019c24 20178e8: 83 2e 20 06 sll %i0, 6, %g1 20178ec: b1 2e 20 03 sll %i0, 3, %i0 20178f0: b0 06 00 01 add %i0, %g1, %i0 20178f4: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 20178f8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 20178fc: 80 88 61 00 btst 0x100, %g1 2017900: 12 80 00 06 bne 2017918 2017904: 80 a6 60 00 cmp %i1, 0 2017908: 7f ff d6 dd call 200d47c <__errno> 201790c: 01 00 00 00 nop 2017910: 10 80 00 14 b 2017960 2017914: 82 10 20 09 mov 9, %g1 ! 9 rtems_libio_check_buffer( buffer ); 2017918: 02 80 00 07 be 2017934 201791c: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2017920: 02 80 00 1c be 2017990 2017924: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2017928: 80 88 60 02 btst 2, %g1 201792c: 32 80 00 06 bne,a 2017944 2017930: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2017934: 7f ff d6 d2 call 200d47c <__errno> <== NOT EXECUTED 2017938: 01 00 00 00 nop <== NOT EXECUTED 201793c: 10 80 00 09 b 2017960 <== NOT EXECUTED 2017940: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 2017944: c2 00 60 08 ld [ %g1 + 8 ], %g1 2017948: 80 a0 60 00 cmp %g1, 0 201794c: 12 80 00 08 bne 201796c 2017950: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2017954: 7f ff d6 ca call 200d47c <__errno> <== NOT EXECUTED 2017958: 01 00 00 00 nop <== NOT EXECUTED 201795c: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2017960: c2 22 00 00 st %g1, [ %o0 ] 2017964: 10 80 00 0b b 2017990 2017968: 90 10 3f ff mov -1, %o0 rc = (*iop->handlers->read_h)( iop, buffer, count ); 201796c: 9f c0 40 00 call %g1 2017970: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2017974: 80 a2 20 00 cmp %o0, 0 2017978: 04 80 00 06 ble 2017990 201797c: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 2017980: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2017984: 86 83 40 08 addcc %o5, %o0, %g3 2017988: 84 43 00 02 addx %o4, %g2, %g2 201798c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 2017990: 81 c7 e0 08 ret 2017994: 91 e8 00 08 restore %g0, %o0, %o0 02026a9c : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 2026a9c: 9d e3 bf 88 save %sp, -120, %sp rtems_filesystem_location_info_t loc; int result; if (!buf) 2026aa0: 80 a6 60 00 cmp %i1, 0 2026aa4: 12 80 00 06 bne 2026abc 2026aa8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 2026aac: 40 00 5a 0e call 203d2e4 <__errno> <== NOT EXECUTED 2026ab0: b0 10 3f ff mov -1, %i0 ! ffffffff <== NOT EXECUTED 2026ab4: 10 80 00 32 b 2026b7c <== NOT EXECUTED 2026ab8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 2026abc: 40 00 75 35 call 2043f90 2026ac0: 90 10 00 18 mov %i0, %o0 2026ac4: a0 07 bf ec add %fp, -20, %l0 2026ac8: 92 10 00 08 mov %o0, %o1 2026acc: 94 10 20 00 clr %o2 2026ad0: 90 10 00 18 mov %i0, %o0 2026ad4: 96 10 00 10 mov %l0, %o3 2026ad8: 98 10 20 00 clr %o4 2026adc: 7f ff 7c 0e call 2005b14 2026ae0: b0 10 3f ff mov -1, %i0 0, &loc, false ); if ( result != 0 ) 2026ae4: 80 a2 20 00 cmp %o0, 0 2026ae8: 12 80 00 26 bne 2026b80 2026aec: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !loc.ops->node_type_h ){ 2026af0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 2026af4: 80 a0 60 00 cmp %g1, 0 2026af8: 22 80 00 19 be,a 2026b5c 2026afc: 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 ){ 2026b00: 9f c0 40 00 call %g1 2026b04: 90 10 00 10 mov %l0, %o0 2026b08: 80 a2 20 04 cmp %o0, 4 2026b0c: 02 80 00 0f be 2026b48 2026b10: c4 07 bf f8 ld [ %fp + -8 ], %g2 rtems_filesystem_freenode( &loc ); 2026b14: 80 a0 a0 00 cmp %g2, 0 2026b18: 02 80 00 08 be 2026b38 2026b1c: 01 00 00 00 nop 2026b20: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 2026b24: 80 a0 60 00 cmp %g1, 0 2026b28: 02 80 00 04 be 2026b38 2026b2c: 01 00 00 00 nop 2026b30: 9f c0 40 00 call %g1 2026b34: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EINVAL ); 2026b38: 40 00 59 eb call 203d2e4 <__errno> 2026b3c: b0 10 3f ff mov -1, %i0 2026b40: 10 80 00 0f b 2026b7c 2026b44: 82 10 20 16 mov 0x16, %g1 } if ( !loc.ops->readlink_h ){ 2026b48: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 2026b4c: 80 a0 60 00 cmp %g1, 0 2026b50: 12 80 00 0e bne 2026b88 2026b54: 92 10 00 19 mov %i1, %o1 rtems_filesystem_freenode( &loc ); 2026b58: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026b5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026b60: 02 80 00 04 be 2026b70 <== NOT EXECUTED 2026b64: 01 00 00 00 nop <== NOT EXECUTED 2026b68: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026b6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026b70: 40 00 59 dd call 203d2e4 <__errno> <== NOT EXECUTED 2026b74: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026b78: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026b7c: c2 22 00 00 st %g1, [ %o0 ] 2026b80: 81 c7 e0 08 ret 2026b84: 81 e8 00 00 restore } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 2026b88: 94 10 00 1a mov %i2, %o2 2026b8c: 9f c0 40 00 call %g1 2026b90: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 2026b94: c2 07 bf f8 ld [ %fp + -8 ], %g1 2026b98: 80 a0 60 00 cmp %g1, 0 2026b9c: 02 bf ff f9 be 2026b80 2026ba0: b0 10 00 08 mov %o0, %i0 2026ba4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026ba8: 80 a0 60 00 cmp %g1, 0 2026bac: 02 80 00 04 be 2026bbc 2026bb0: 01 00 00 00 nop 2026bb4: 9f c0 40 00 call %g1 2026bb8: 90 10 00 10 mov %l0, %o0 return result; } 2026bbc: 81 c7 e0 08 ret 2026bc0: 81 e8 00 00 restore 020043b0 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 20043b0: 9d e3 bf a0 save %sp, -96, %sp int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 20043b4: 03 00 80 77 sethi %hi(0x201dc00), %g1 20043b8: c2 00 63 04 ld [ %g1 + 0x304 ], %g1 ! 201df04 20043bc: 80 a6 00 01 cmp %i0, %g1 20043c0: 1a 80 00 0c bcc 20043f0 20043c4: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 20043c8: 03 00 80 7b sethi %hi(0x201ec00), %g1 20043cc: e4 00 63 8c ld [ %g1 + 0x38c ], %l2 ! 201ef8c 20043d0: 83 2e 20 06 sll %i0, 6, %g1 20043d4: b1 2e 20 03 sll %i0, 3, %i0 20043d8: b0 06 00 01 add %i0, %g1, %i0 20043dc: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 20043e0: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 20043e4: 80 88 61 00 btst 0x100, %g1 20043e8: 12 80 00 06 bne 2004400 20043ec: 80 88 60 02 btst 2, %g1 20043f0: 40 00 2d ea call 200fb98 <__errno> <== NOT EXECUTED 20043f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20043f8: 10 80 00 24 b 2004488 <== NOT EXECUTED 20043fc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2004400: 02 80 00 1f be 200447c 2004404: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 2004408: 02 80 00 1d be 200447c 200440c: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 2004410: 04 80 00 1b ble 200447c 2004414: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2004418: 14 80 00 19 bg 200447c 200441c: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 2004420: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2004424: c2 00 60 08 ld [ %g1 + 8 ], %g1 2004428: 80 a0 60 00 cmp %g1, 0 200442c: 12 80 00 06 bne 2004444 2004430: 86 10 20 00 clr %g3 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2004434: 40 00 2d d9 call 200fb98 <__errno> <== NOT EXECUTED 2004438: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200443c: 10 80 00 13 b 2004488 <== NOT EXECUTED 2004440: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2004444: 82 10 00 19 mov %i1, %g1 2004448: 84 10 20 00 clr %g2 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) 200444c: c8 00 40 00 ld [ %g1 ], %g4 2004450: 80 a1 20 00 cmp %g4, 0 2004454: 02 80 00 0a be 200447c 2004458: 86 00 e0 01 inc %g3 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 200445c: c8 00 60 04 ld [ %g1 + 4 ], %g4 2004460: 80 a1 20 00 cmp %g4, 0 2004464: 02 80 00 06 be 200447c 2004468: 82 00 60 08 add %g1, 8, %g1 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 200446c: 88 00 80 04 add %g2, %g4, %g4 if ( total < old ) 2004470: 80 a1 00 02 cmp %g4, %g2 2004474: 16 80 00 08 bge 2004494 2004478: 80 a0 c0 1a cmp %g3, %i2 rtems_set_errno_and_return_minus_one( EINVAL ); 200447c: 40 00 2d c7 call 200fb98 <__errno> 2004480: b0 10 3f ff mov -1, %i0 2004484: 82 10 20 16 mov 0x16, %g1 2004488: c2 22 00 00 st %g1, [ %o0 ] 200448c: 81 c7 e0 08 ret 2004490: 81 e8 00 00 restore * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { 2004494: 06 bf ff ee bl 200444c 2004498: 84 10 00 04 mov %g4, %g2 200449c: a6 10 20 00 clr %l3 20044a0: b0 10 20 00 clr %i0 /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 20044a4: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 20044a8: d2 06 40 00 ld [ %i1 ], %o1 20044ac: c2 00 60 08 ld [ %g1 + 8 ], %g1 20044b0: d4 06 60 04 ld [ %i1 + 4 ], %o2 20044b4: 9f c0 40 00 call %g1 20044b8: 90 10 00 12 mov %l2, %o0 if ( bytes < 0 ) 20044bc: 80 a2 20 00 cmp %o0, 0 20044c0: 16 80 00 04 bge 20044d0 20044c4: 01 00 00 00 nop 20044c8: 81 c7 e0 08 ret <== NOT EXECUTED 20044cc: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 20044d0: 02 80 00 07 be 20044ec 20044d4: a1 3a 20 1f sra %o0, 0x1f, %l0 iop->offset += bytes; 20044d8: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 20044dc: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 20044e0: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 20044e4: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 20044e8: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 20044ec: c2 06 60 04 ld [ %i1 + 4 ], %g1 20044f0: 80 a2 00 01 cmp %o0, %g1 20044f4: 12 bf ff e6 bne 200448c 20044f8: a6 04 e0 01 inc %l3 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 20044fc: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 2004500: 06 bf ff e9 bl 20044a4 <== NOT EXECUTED 2004504: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 2004508: 81 c7 e0 08 ret <== NOT EXECUTED 200450c: 81 e8 00 00 restore <== NOT EXECUTED 02017a1c : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2017a1c: 9d e3 bf 98 save %sp, -104, %sp 2017a20: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017a24: 82 10 60 30 or %g1, 0x30, %g1 ! 2019c30 2017a28: 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())) { 2017a2c: 05 00 80 67 sethi %hi(0x2019c00), %g2 2017a30: c4 00 a3 90 ld [ %g2 + 0x390 ], %g2 ! 2019f90 <_System_state_Current> { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 2017a34: 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())) { 2017a38: 80 a0 a0 03 cmp %g2, 3 2017a3c: 12 80 00 0c bne 2017a6c 2017a40: c6 20 60 10 st %g3, [ %g1 + 0x10 ] if (_Thread_Dispatch_disable_level > 0) 2017a44: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017a48: c2 00 61 f0 ld [ %g1 + 0x1f0 ], %g1 ! 2019df0 <_Thread_Dispatch_disable_level> 2017a4c: 80 a0 60 00 cmp %g1, 0 2017a50: 32 80 00 13 bne,a 2017a9c 2017a54: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; if (_ISR_Nest_level > 0) 2017a58: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017a5c: c2 00 62 8c ld [ %g1 + 0x28c ], %g1 ! 2019e8c <_ISR_Nest_level> 2017a60: 80 a0 60 00 cmp %g1, 0 2017a64: 32 80 00 0e bne,a 2017a9c 2017a68: b0 10 20 00 clr %i0 <== NOT EXECUTED } /* * Continue with realloc(). */ if ( !ptr ) 2017a6c: 80 a6 20 00 cmp %i0, 0 2017a70: 12 80 00 06 bne 2017a88 2017a74: 80 a6 60 00 cmp %i1, 0 return malloc( size ); 2017a78: 7f ff cb 61 call 200a7fc 2017a7c: 90 10 00 19 mov %i1, %o0 2017a80: 81 c7 e0 08 ret 2017a84: 91 e8 00 08 restore %g0, %o0, %o0 if ( !size ) { 2017a88: 12 80 00 07 bne 2017aa4 2017a8c: 21 00 80 64 sethi %hi(0x2019000), %l0 free( ptr ); 2017a90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2017a94: 7f ff ca 00 call 200a294 <== NOT EXECUTED 2017a98: b0 10 20 00 clr %i0 <== NOT EXECUTED return (void *) 0; 2017a9c: 81 c7 e0 08 ret <== NOT EXECUTED 2017aa0: 81 e8 00 00 restore <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 2017aa4: d0 04 23 80 ld [ %l0 + 0x380 ], %o0 2017aa8: 92 10 00 18 mov %i0, %o1 2017aac: 40 00 00 60 call 2017c2c <_Protected_heap_Get_block_size> 2017ab0: 94 07 bf fc add %fp, -4, %o2 2017ab4: 80 8a 20 ff btst 0xff, %o0 2017ab8: 12 80 00 08 bne 2017ad8 2017abc: d0 04 23 80 ld [ %l0 + 0x380 ], %o0 errno = EINVAL; 2017ac0: 7f ff d6 6f call 200d47c <__errno> 2017ac4: b0 10 20 00 clr %i0 2017ac8: 82 10 20 16 mov 0x16, %g1 2017acc: c2 22 00 00 st %g1, [ %o0 ] return (void *) 0; 2017ad0: 81 c7 e0 08 ret 2017ad4: 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 ) ) { 2017ad8: 92 10 00 18 mov %i0, %o1 2017adc: 40 00 00 61 call 2017c60 <_Protected_heap_Resize_block> 2017ae0: 94 10 00 19 mov %i1, %o2 2017ae4: 80 8a 20 ff btst 0xff, %o0 2017ae8: 12 80 00 1a bne 2017b50 2017aec: 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 ); 2017af0: 7f ff cb 43 call 200a7fc 2017af4: 90 10 00 19 mov %i1, %o0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2017af8: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017afc: 82 10 60 30 or %g1, 0x30, %g1 ! 2019c30 2017b00: 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 ); 2017b04: a0 10 00 08 mov %o0, %l0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 2017b08: 84 00 bf ff add %g2, -1, %g2 if ( !new_area ) { 2017b0c: 80 a2 20 00 cmp %o0, 0 2017b10: 02 80 00 0f be 2017b4c 2017b14: c4 20 60 04 st %g2, [ %g1 + 4 ] return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 2017b18: c2 07 bf fc ld [ %fp + -4 ], %g1 2017b1c: 80 a6 40 01 cmp %i1, %g1 2017b20: 08 80 00 03 bleu 2017b2c 2017b24: 94 10 00 19 mov %i1, %o2 2017b28: 94 10 00 01 mov %g1, %o2 2017b2c: 92 10 00 18 mov %i0, %o1 2017b30: 7f ff d8 8e call 200dd68 2017b34: 90 10 00 10 mov %l0, %o0 free( ptr ); 2017b38: 90 10 00 18 mov %i0, %o0 2017b3c: 7f ff c9 d6 call 200a294 2017b40: b0 10 00 10 mov %l0, %i0 return new_area; 2017b44: 81 c7 e0 08 ret 2017b48: 81 e8 00 00 restore 2017b4c: b0 10 20 00 clr %i0 } 2017b50: 81 c7 e0 08 ret 2017b54: 81 e8 00 00 restore 02007080 : #include int rmdir( const char *pathname ) { 2007080: 9d e3 bf 78 save %sp, -136, %sp /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 2007084: 7f ff fa 56 call 20059dc 2007088: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200708c: a6 92 20 00 orcc %o0, 0, %l3 2007090: 32 80 00 17 bne,a 20070ec 2007094: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 2007098: c2 4e 00 00 ldsb [ %i0 ], %g1 200709c: 80 a0 60 5c cmp %g1, 0x5c 20070a0: 02 80 00 06 be 20070b8 20070a4: 80 a0 60 2f cmp %g1, 0x2f 20070a8: 02 80 00 04 be 20070b8 20070ac: 80 a0 60 00 cmp %g1, 0 20070b0: 12 80 00 07 bne 20070cc <== NOT EXECUTED 20070b4: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 20070b8: 03 00 81 89 sethi %hi(0x2062400), %g1 20070bc: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 ! 20625d4 20070c0: 90 07 bf ec add %fp, -20, %o0 20070c4: 10 80 00 05 b 20070d8 20070c8: 92 02 60 18 add %o1, 0x18, %o1 20070cc: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 <== NOT EXECUTED 20070d0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 20070d4: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 20070d8: 94 10 20 14 mov 0x14, %o2 20070dc: 40 00 e5 55 call 2040630 20070e0: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 20070e4: 10 80 00 0b b 2007110 20070e8: 94 10 20 14 mov 0x14, %o2 parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 20070ec: 92 10 00 13 mov %l3, %o1 20070f0: 94 10 20 02 mov 2, %o2 20070f4: 96 07 bf ec add %fp, -20, %o3 20070f8: 7f ff fa 87 call 2005b14 20070fc: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 2007100: 80 a2 20 00 cmp %o0, 0 2007104: 12 80 00 89 bne 2007328 2007108: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200710c: 94 10 20 14 mov 0x14, %o2 2007110: a0 07 bf d8 add %fp, -40, %l0 2007114: a4 07 bf ec add %fp, -20, %l2 2007118: 90 10 00 10 mov %l0, %o0 200711c: 40 00 e5 45 call 2040630 2007120: 92 10 00 12 mov %l2, %o1 name = pathname + parentpathlen; 2007124: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 2007128: 40 00 f3 9a call 2043f90 200712c: 90 10 00 18 mov %i0, %o0 2007130: 92 10 00 08 mov %o0, %o1 2007134: 7f ff fa 18 call 2005994 2007138: 90 10 00 18 mov %i0, %o0 200713c: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 2007140: 40 00 f3 94 call 2043f90 2007144: 90 10 00 18 mov %i0, %o0 2007148: 94 10 20 00 clr %o2 200714c: 92 10 00 08 mov %o0, %o1 2007150: 96 10 00 10 mov %l0, %o3 2007154: 90 10 00 18 mov %i0, %o0 2007158: 7f ff fa 33 call 2005a24 200715c: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 2007160: 80 a2 20 00 cmp %o0, 0 2007164: 02 80 00 11 be 20071a8 2007168: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 200716c: 80 8c 60 ff btst 0xff, %l1 2007170: 02 80 00 0c be 20071a0 2007174: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 2007178: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200717c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007180: 02 80 00 6b be 200732c <== NOT EXECUTED 2007184: 01 00 00 00 nop <== NOT EXECUTED 2007188: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200718c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007190: 02 80 00 04 be 20071a0 <== NOT EXECUTED 2007194: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 2007198: 9f c0 40 00 call %g1 <== NOT EXECUTED 200719c: 01 00 00 00 nop <== NOT EXECUTED 20071a0: 81 c7 e0 08 ret 20071a4: 81 e8 00 00 restore /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 20071a8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20071ac: 80 a0 60 00 cmp %g1, 0 20071b0: 12 80 00 04 bne 20071c0 20071b4: 01 00 00 00 nop rtems_filesystem_freenode( &loc ); 20071b8: 10 80 00 2b b 2007264 <== NOT EXECUTED 20071bc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 20071c0: 9f c0 40 00 call %g1 20071c4: 90 10 00 10 mov %l0, %o0 20071c8: 80 a2 20 01 cmp %o0, 1 20071cc: 02 80 00 1d be 2007240 20071d0: c2 07 bf e0 ld [ %fp + -32 ], %g1 rtems_filesystem_freenode( &loc ); 20071d4: c2 07 bf e4 ld [ %fp + -28 ], %g1 20071d8: 80 a0 60 00 cmp %g1, 0 20071dc: 02 80 00 09 be 2007200 20071e0: 80 8c 60 ff btst 0xff, %l1 20071e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20071e8: 80 a0 60 00 cmp %g1, 0 20071ec: 02 80 00 05 be 2007200 20071f0: 80 8c 60 ff btst 0xff, %l1 20071f4: 9f c0 40 00 call %g1 20071f8: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 20071fc: 80 8c 60 ff btst 0xff, %l1 2007200: 02 80 00 0c be 2007230 2007204: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 2007208: c2 07 bf f8 ld [ %fp + -8 ], %g1 200720c: 80 a0 60 00 cmp %g1, 0 2007210: 02 80 00 08 be 2007230 2007214: 01 00 00 00 nop 2007218: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200721c: 80 a0 60 00 cmp %g1, 0 2007220: 02 80 00 04 be 2007230 2007224: 01 00 00 00 nop 2007228: 9f c0 40 00 call %g1 200722c: 90 07 bf ec add %fp, -20, %o0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 2007230: 40 00 d8 2d call 203d2e4 <__errno> 2007234: b0 10 3f ff mov -1, %i0 2007238: 10 80 00 1f b 20072b4 200723c: 82 10 20 14 mov 0x14, %g1 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 2007240: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 2007244: 80 a0 60 00 cmp %g1, 0 2007248: 12 80 00 1e bne 20072c0 200724c: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 2007250: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED 2007254: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007258: 02 80 00 09 be 200727c <== NOT EXECUTED 200725c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007260: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007264: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007268: 02 80 00 05 be 200727c <== NOT EXECUTED 200726c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 2007270: 9f c0 40 00 call %g1 <== NOT EXECUTED 2007274: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 2007278: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200727c: 02 80 00 0b be 20072a8 <== NOT EXECUTED 2007280: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 2007284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007288: 02 80 00 08 be 20072a8 <== NOT EXECUTED 200728c: 01 00 00 00 nop <== NOT EXECUTED 2007290: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2007294: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2007298: 02 80 00 04 be 20072a8 <== NOT EXECUTED 200729c: 01 00 00 00 nop <== NOT EXECUTED 20072a0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20072a4: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20072a8: 40 00 d8 0f call 203d2e4 <__errno> <== NOT EXECUTED 20072ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20072b0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20072b4: c2 22 00 00 st %g1, [ %o0 ] 20072b8: 81 c7 e0 08 ret 20072bc: 81 e8 00 00 restore } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 20072c0: 9f c0 40 00 call %g1 20072c4: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 20072c8: c2 07 bf e4 ld [ %fp + -28 ], %g1 20072cc: 80 a0 60 00 cmp %g1, 0 20072d0: 02 80 00 08 be 20072f0 20072d4: b0 10 00 08 mov %o0, %i0 20072d8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20072dc: 80 a0 60 00 cmp %g1, 0 20072e0: 02 80 00 05 be 20072f4 20072e4: 80 8c 60 ff btst 0xff, %l1 20072e8: 9f c0 40 00 call %g1 20072ec: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 20072f0: 80 8c 60 ff btst 0xff, %l1 20072f4: 02 bf ff ab be 20071a0 20072f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 20072fc: 80 a0 60 00 cmp %g1, 0 2007300: 02 80 00 0b be 200732c 2007304: 01 00 00 00 nop 2007308: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200730c: 80 a0 60 00 cmp %g1, 0 2007310: 02 80 00 07 be 200732c 2007314: 01 00 00 00 nop 2007318: 9f c0 40 00 call %g1 200731c: 90 07 bf ec add %fp, -20, %o0 2007320: 81 c7 e0 08 ret 2007324: 81 e8 00 00 restore 2007328: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 200732c: 81 c7 e0 08 ret <== NOT EXECUTED 2007330: 81 e8 00 00 restore <== NOT EXECUTED 02013e40 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 2013e40: 11 00 80 92 sethi %hi(0x2024800), %o0 <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 2013e44: 81 c3 e0 08 retl <== NOT EXECUTED 2013e48: 90 12 22 d0 or %o0, 0x2d0, %o0 ! 2024ad0 <== NOT EXECUTED 02010de4 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 2010de4: 9d e3 bf a0 save %sp, -96, %sp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 2010de8: 90 10 00 18 mov %i0, %o0 2010dec: 40 00 00 0b call 2010e18 2010df0: 92 10 00 19 mov %i1, %o1 if (nap) 2010df4: 80 a2 20 00 cmp %o0, 0 2010df8: 02 80 00 05 be 2010e0c 2010dfc: 01 00 00 00 nop return nap->name; return rtems_assoc_name_bad(local_value); } 2010e00: f0 02 00 00 ld [ %o0 ], %i0 2010e04: 81 c7 e0 08 ret 2010e08: 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); 2010e0c: 40 00 0c 0d call 2013e40 <== NOT EXECUTED 2010e10: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 2010e14: 01 00 00 00 nop 0200d0ec : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 200d0ec: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 200d0f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 200d0f4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 200d0f8: 40 00 00 c1 call 200d3fc <== NOT EXECUTED 200d0fc: b0 10 20 00 clr %i0 <== NOT EXECUTED if (nap) 200d100: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200d104: 32 80 00 02 bne,a 200d10c <== NOT EXECUTED 200d108: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED return nap->remote_value; return 0; } 200d10c: 81 c7 e0 08 ret <== NOT EXECUTED 200d110: 81 e8 00 00 restore <== NOT EXECUTED 020020e4 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 20020e4: 9d e3 bf a0 save %sp, -96, %sp const char *p; if ( !name ) 20020e8: 90 96 20 00 orcc %i0, 0, %o0 20020ec: 22 80 00 26 be,a 2002184 20020f0: b2 10 20 00 clr %i1 return NULL; if ( !value ) 20020f4: 80 a6 60 00 cmp %i1, 0 20020f8: 22 80 00 24 be,a 2002188 20020fc: b0 10 00 19 mov %i1, %i0 return NULL; if ( !length ) 2002100: 80 a6 a0 00 cmp %i2, 0 2002104: 22 80 00 20 be,a 2002184 2002108: b2 10 20 00 clr %i1 return NULL; value[0] = '\0'; p = rtems_bsp_cmdline_get_param_raw( name ); 200210c: 40 00 00 21 call 2002190 2002110: c0 2e 40 00 clrb [ %i1 ] if ( !p ) 2002114: 80 a2 20 00 cmp %o0, 0 2002118: 02 80 00 1a be 2002180 200211c: b4 06 bf ff add %i2, -1, %i2 2002120: 84 10 20 00 clr %g2 2002124: 10 80 00 0e b 200215c 2002128: 82 10 20 00 clr %g1 int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 2002130: 80 88 a0 01 btst 1, %g2 quotes++; 2002134: 10 80 00 07 b 2002150 <== NOT EXECUTED 2002138: 84 00 a0 01 inc %g2 <== NOT EXECUTED } else if ( ((quotes % 2) == 0) && *p == ' ' ) 200213c: 32 80 00 06 bne,a 2002154 2002140: c8 2e 40 01 stb %g4, [ %i1 + %g1 ] <== NOT EXECUTED 2002144: 80 a0 e0 20 cmp %g3, 0x20 2002148: 02 80 00 10 be 2002188 200214c: b0 10 00 19 mov %i1, %i0 break; value[i++] = *p++; 2002150: c8 2e 40 01 stb %g4, [ %i1 + %g1 ] 2002154: 82 00 60 01 inc %g1 value[i] = '\0'; 2002158: c0 2e 40 01 clrb [ %i1 + %g1 ] int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 2002168: c8 0a 00 01 ldub [ %o0 + %g1 ], %g4 200216c: 80 a0 40 1a cmp %g1, %i2 2002170: 0a bf ff ef bcs 200212c 2002174: 80 a0 e0 22 cmp %g3, 0x22 return NULL; copy_string( p, value, length ); return value; } 2002178: 81 c7 e0 08 ret <== NOT EXECUTED 200217c: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i: const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 20021c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 20021c4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 20021c8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20021cc: 7f ff ff c6 call 20020e4 <== NOT EXECUTED 20021d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED if ( !p ) 20021d4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED 20021d8: 22 80 00 1e be,a 2002250 <== NOT EXECUTED 20021dc: b2 10 20 00 clr %i1 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; 20021e0: 40 00 30 88 call 200e400 <== NOT EXECUTED 20021e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED if ( *rhs != '=' ) 20021e8: c2 4c 40 08 ldsb [ %l1 + %o0 ], %g1 <== NOT EXECUTED 20021ec: 80 a0 60 3d cmp %g1, 0x3d <== NOT EXECUTED 20021f0: 12 80 00 17 bne 200224c <== NOT EXECUTED 20021f4: a2 04 40 08 add %l1, %o0, %l1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 20021f8: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED 20021fc: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 2002200: 12 80 00 03 bne 200220c <== NOT EXECUTED 2002204: 84 04 60 01 add %l1, 1, %g2 <== NOT EXECUTED rhs++; 2002208: 84 04 60 02 add %l1, 2, %g2 <== NOT EXECUTED 200220c: 10 80 00 05 b 2002220 <== NOT EXECUTED 2002210: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; 2002214: c8 28 40 00 stb %g4, [ %g1 ] <== NOT EXECUTED 2002218: 84 00 a0 01 inc %g2 <== NOT EXECUTED 200221c: 82 00 60 01 inc %g1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 2002220: c6 48 80 00 ldsb [ %g2 ], %g3 <== NOT EXECUTED 2002224: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED 2002228: 12 bf ff fb bne 2002214 <== NOT EXECUTED 200222c: c8 08 80 00 ldub [ %g2 ], %g4 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 2002230: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 <== NOT EXECUTED 2002234: 80 a0 e0 22 cmp %g3, 0x22 <== NOT EXECUTED 2002238: 12 80 00 03 bne 2002244 <== NOT EXECUTED 200223c: 84 00 7f ff add %g1, -1, %g2 <== NOT EXECUTED 2002240: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED d--; *d = '\0'; return value; 2002244: 10 80 00 03 b 2002250 <== NOT EXECUTED 2002248: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED 200224c: b2 10 20 00 clr %i1 <== NOT EXECUTED } 2002250: 81 c7 e0 08 ret <== NOT EXECUTED 2002254: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED 02002c50 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 2002c50: 9d e3 bf 60 save %sp, -160, %sp Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 2002c54: 80 a6 60 00 cmp %i1, 0 2002c58: 02 80 00 69 be 2002dfc 2002c5c: ae 07 bf f0 add %fp, -16, %l7 * When not using nanosecond CPU usage resolution, we have to count * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 2002c60: 40 00 14 61 call 2007de4 <_TOD_Get_uptime> 2002c64: 90 10 00 17 mov %l7, %o0 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 2002c68: 92 10 00 17 mov %l7, %o1 2002c6c: ba 07 bf e8 add %fp, -24, %i5 2002c70: 11 00 80 a0 sethi %hi(0x2028000), %o0 2002c74: 94 10 00 1d mov %i5, %o2 2002c78: 40 00 1e 70 call 200a638 <_Timespec_Subtract> 2002c7c: 90 12 23 3c or %o0, 0x33c, %o0 } } } #endif (*print)( 2002c80: 90 10 00 18 mov %i0, %o0 2002c84: 13 00 80 76 sethi %hi(0x201d800), %o1 2002c88: 21 00 80 9f sethi %hi(0x2027c00), %l0 2002c8c: 92 12 63 48 or %o1, 0x348, %o1 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002c90: 39 00 80 77 sethi %hi(0x201dc00), %i4 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002c94: 2d 00 80 a0 sethi %hi(0x2028000), %l6 /* * Print the information */ (*print)( context, 2002c98: 37 00 80 77 sethi %hi(0x201dc00), %i3 } } } #endif (*print)( 2002c9c: 9f c6 40 00 call %i1 2002ca0: 35 00 80 a0 sethi %hi(0x2028000), %i2 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002ca4: a8 07 bf c8 add %fp, -56, %l4 } } } #endif (*print)( 2002ca8: a0 14 23 e4 or %l0, 0x3e4, %l0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( 2002cac: b8 17 20 c0 or %i4, 0xc0, %i4 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002cb0: ac 15 a1 40 or %l6, 0x140, %l6 /* * Print the information */ (*print)( context, 2002cb4: b6 16 e0 d8 or %i3, 0xd8, %i3 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { Timestamp_Control used; _Timestamp_Subtract( 2002cb8: b4 16 a1 48 or %i2, 0x148, %i2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002cbc: a6 07 bf e0 add %fp, -32, %l3 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 2002cc0: c2 04 00 00 ld [ %l0 ], %g1 2002cc4: 80 a0 60 00 cmp %g1, 0 2002cc8: 22 80 00 3f be,a 2002dc4 2002ccc: a0 04 20 04 add %l0, 4, %l0 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 2002cd0: e4 00 60 04 ld [ %g1 + 4 ], %l2 if ( information ) { 2002cd4: a2 10 20 01 mov 1, %l1 2002cd8: 80 a4 a0 00 cmp %l2, 0 2002cdc: 12 80 00 33 bne 2002da8 2002ce0: aa 07 bf d8 add %fp, -40, %l5 for ( i=1 ; i <= information->maximum ; i++ ) { 2002ce4: 10 80 00 38 b 2002dc4 <== NOT EXECUTED 2002ce8: a0 04 20 04 add %l0, 4, %l0 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 2002cec: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1 2002cf0: c2 00 40 02 ld [ %g1 + %g2 ], %g1 if ( !the_thread ) 2002cf4: 80 a0 60 00 cmp %g1, 0 2002cf8: 02 80 00 2c be 2002da8 2002cfc: a2 04 60 01 inc %l1 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002d00: d0 00 60 08 ld [ %g1 + 8 ], %o0 2002d04: 40 00 0f 67 call 2006aa0 2002d08: c2 27 bf c4 st %g1, [ %fp + -60 ] (*print)( 2002d0c: c2 07 bf c4 ld [ %fp + -60 ], %g1 2002d10: 90 10 00 18 mov %i0, %o0 2002d14: d4 00 60 08 ld [ %g1 + 8 ], %o2 2002d18: 92 10 00 1c mov %i4, %o1 2002d1c: 9f c6 40 00 call %i1 2002d20: 96 10 00 14 mov %l4, %o3 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 2002d24: c2 07 bf c4 ld [ %fp + -60 ], %g1 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002d28: c4 05 80 00 ld [ %l6 ], %g2 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 2002d2c: c6 00 60 84 ld [ %g1 + 0x84 ], %g3 2002d30: c6 27 bf e0 st %g3, [ %fp + -32 ] 2002d34: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 2002d38: c6 27 bf e4 st %g3, [ %fp + -28 ] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2002d3c: c4 00 a0 08 ld [ %g2 + 8 ], %g2 2002d40: c2 00 60 08 ld [ %g1 + 8 ], %g1 2002d44: 80 a0 80 01 cmp %g2, %g1 2002d48: 12 80 00 0a bne 2002d70 2002d4c: 94 07 bf fc add %fp, -4, %o2 Timestamp_Control used; _Timestamp_Subtract( 2002d50: 90 10 00 1a mov %i2, %o0 2002d54: 92 10 00 17 mov %l7, %o1 2002d58: 40 00 1e 38 call 200a638 <_Timespec_Subtract> 2002d5c: 94 10 00 15 mov %l5, %o2 &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 2002d60: 90 10 00 13 mov %l3, %o0 2002d64: 40 00 1d 8a call 200a38c <_Timespec_Add_to> 2002d68: 92 10 00 15 mov %l5, %o1 }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 2002d6c: 94 07 bf fc add %fp, -4, %o2 2002d70: 96 07 bf f8 add %fp, -8, %o3 2002d74: 90 10 00 13 mov %l3, %o0 2002d78: 40 00 1d 9e call 200a3f0 <_Timespec_Divide> 2002d7c: 92 10 00 1d mov %i5, %o1 /* * Print the information */ (*print)( context, 2002d80: d0 07 bf e4 ld [ %fp + -28 ], %o0 2002d84: 40 00 63 bf call 201bc80 <.udiv> 2002d88: 92 10 23 e8 mov 0x3e8, %o1 2002d8c: d4 07 bf e0 ld [ %fp + -32 ], %o2 2002d90: d8 07 bf fc ld [ %fp + -4 ], %o4 2002d94: da 07 bf f8 ld [ %fp + -8 ], %o5 2002d98: 96 10 00 08 mov %o0, %o3 2002d9c: 92 10 00 1b mov %i3, %o1 2002da0: 9f c6 40 00 call %i1 2002da4: 90 10 00 18 mov %i0, %o0 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 2002da8: c2 14 a0 10 lduh [ %l2 + 0x10 ], %g1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2002dac: 94 10 00 14 mov %l4, %o2 2002db0: 92 10 20 0d mov 0xd, %o1 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 2002db4: 80 a4 40 01 cmp %l1, %g1 2002db8: 08 bf ff cd bleu 2002cec 2002dbc: 85 2c 60 02 sll %l1, 2, %g2 2002dc0: a0 04 20 04 add %l0, 4, %l0 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 2002dc4: 03 00 80 9f sethi %hi(0x2027c00), %g1 2002dc8: 82 10 63 f4 or %g1, 0x3f4, %g1 ! 2027ff4 <_Objects_Information_table+0x14> 2002dcc: 80 a4 00 01 cmp %l0, %g1 2002dd0: 32 bf ff bd bne,a 2002cc4 2002dd4: c2 04 00 00 ld [ %l0 ], %g1 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 2002dd8: d0 07 bf ec ld [ %fp + -20 ], %o0 2002ddc: 40 00 63 a9 call 201bc80 <.udiv> 2002de0: 92 10 23 e8 mov 0x3e8, %o1 2002de4: d4 07 bf e8 ld [ %fp + -24 ], %o2 2002de8: 96 10 00 08 mov %o0, %o3 2002dec: 13 00 80 77 sethi %hi(0x201dc00), %o1 2002df0: 90 10 00 18 mov %i0, %o0 2002df4: 9f c6 40 00 call %i1 2002df8: 92 12 60 f0 or %o1, 0xf0, %o1 2002dfc: 81 c7 e0 08 ret 2002e00: 81 e8 00 00 restore 0200d0b8 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 200d0b8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 200d0bc: 11 00 80 63 sethi %hi(0x2018c00), %o0 <== NOT EXECUTED 200d0c0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 200d0c4: 40 00 00 0a call 200d0ec <== NOT EXECUTED 200d0c8: 90 12 20 5c or %o0, 0x5c, %o0 <== NOT EXECUTED 200d0cc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED 200d0d0: 02 80 00 05 be 200d0e4 <== NOT EXECUTED 200d0d4: 01 00 00 00 nop <== NOT EXECUTED { errno = rc; 200d0d8: 40 00 00 e9 call 200d47c <__errno> <== NOT EXECUTED 200d0dc: 01 00 00 00 nop <== NOT EXECUTED 200d0e0: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED return -1; } return -1; } 200d0e4: 81 c7 e0 08 ret <== NOT EXECUTED 200d0e8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED 02007494 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 2007494: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 2007498: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED 200749c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 20074a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 20074a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 20074a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 20074ac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 20074b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20074b4: 7f ff ff 7d call 20072a8 <== NOT EXECUTED 20074b8: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); return chars_written; } 20074bc: 81 c7 e0 08 ret <== NOT EXECUTED 20074c0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 02002140 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002140: 9d e3 bf a0 save %sp, -96, %sp /* * Verify Input parameters. */ if ( !pathname ) 2002144: 80 a6 20 00 cmp %i0, 0 2002148: 12 80 00 06 bne 2002160 200214c: 80 a6 e0 00 cmp %i3, 0 rtems_set_errno_and_return_minus_one( EFAULT ); 2002150: 40 00 2c cb call 200d47c <__errno> 2002154: 01 00 00 00 nop 2002158: 10 80 00 07 b 2002174 200215c: 82 10 20 0e mov 0xe, %g1 ! e if ( !pathloc ) 2002160: 32 80 00 08 bne,a 2002180 2002164: c2 4e 00 00 ldsb [ %i0 ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002168: 40 00 2c c5 call 200d47c <__errno> <== NOT EXECUTED 200216c: 01 00 00 00 nop <== NOT EXECUTED 2002170: 82 10 20 05 mov 5, %g1 ! 5 <== NOT EXECUTED 2002174: c2 22 00 00 st %g1, [ %o0 ] return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 2002178: 81 c7 e0 08 ret 200217c: 91 e8 3f ff restore %g0, -1, %o0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 2002180: 80 a0 60 5c cmp %g1, 0x5c 2002184: 02 80 00 06 be 200219c 2002188: 80 a0 60 2f cmp %g1, 0x2f 200218c: 02 80 00 04 be 200219c 2002190: 80 a0 60 00 cmp %g1, 0 2002194: 32 80 00 0a bne,a 20021bc 2002198: 03 00 80 65 sethi %hi(0x2019400), %g1 200219c: 03 00 80 65 sethi %hi(0x2019400), %g1 20021a0: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 ! 2019484 20021a4: 90 10 00 1b mov %i3, %o0 20021a8: 92 02 60 18 add %o1, 0x18, %o1 20021ac: 40 00 2e ef call 200dd68 20021b0: 94 10 20 14 mov 0x14, %o2 20021b4: 10 80 00 08 b 20021d4 20021b8: 82 10 20 01 mov 1, %g1 20021bc: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 20021c0: 90 10 00 1b mov %i3, %o0 20021c4: 92 02 60 04 add %o1, 4, %o1 20021c8: 40 00 2e e8 call 200dd68 20021cc: 94 10 20 14 mov 0x14, %o2 20021d0: 82 10 20 00 clr %g1 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 20021d4: b2 26 40 01 sub %i1, %g1, %i1 20021d8: 7f ff ff 9e call 2002050 20021dc: 91 ee 00 01 restore %i0, %g1, %o0 20021e0: 01 00 00 00 nop 02002050 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 2002050: 9d e3 bf a0 save %sp, -96, %sp 2002054: 90 10 00 18 mov %i0, %o0 /* * Verify Input parameters. */ if ( !pathname ) 2002058: 80 a6 20 00 cmp %i0, 0 200205c: 12 80 00 06 bne 2002074 2002060: 92 10 00 19 mov %i1, %o1 rtems_set_errno_and_return_minus_one( EFAULT ); 2002064: 40 00 2d 06 call 200d47c <__errno> <== NOT EXECUTED 2002068: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200206c: 10 80 00 2d b 2002120 <== NOT EXECUTED 2002070: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED if ( !pathloc ) 2002074: 80 a6 e0 00 cmp %i3, 0 2002078: 32 80 00 06 bne,a 2002090 200207c: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 2002080: 40 00 2c ff call 200d47c <__errno> <== NOT EXECUTED 2002084: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2002088: 10 80 00 26 b 2002120 <== NOT EXECUTED 200208c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 2002090: c2 00 40 00 ld [ %g1 ], %g1 2002094: 80 a0 60 00 cmp %g1, 0 2002098: 02 80 00 1f be 2002114 200209c: 94 10 00 1a mov %i2, %o2 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 20020a0: 9f c0 40 00 call %g1 20020a4: 96 10 00 1b mov %i3, %o3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 20020a8: b0 92 20 00 orcc %o0, 0, %i0 20020ac: 12 80 00 1e bne 2002124 20020b0: 80 a7 20 00 cmp %i4, 0 20020b4: 02 80 00 21 be 2002138 20020b8: 01 00 00 00 nop if ( !pathloc->ops->node_type_h ){ 20020bc: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 20020c0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 20020c4: 80 a0 60 00 cmp %g1, 0 20020c8: 22 80 00 0e be,a 2002100 20020cc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 20020d0: 9f c0 40 00 call %g1 20020d4: 90 10 00 1b mov %i3, %o0 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 20020d8: 90 02 3f fd add %o0, -3, %o0 20020dc: 80 a2 20 01 cmp %o0, 1 20020e0: 18 80 00 16 bgu 2002138 20020e4: 01 00 00 00 nop ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 20020e8: c4 06 e0 0c ld [ %i3 + 0xc ], %g2 20020ec: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1 20020f0: 80 a0 60 00 cmp %g1, 0 20020f4: 12 80 00 0e bne 200212c 20020f8: 90 10 00 1b mov %i3, %o0 rtems_filesystem_freenode( pathloc ); 20020fc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2002100: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002104: 02 80 00 04 be 2002114 <== NOT EXECUTED 2002108: 01 00 00 00 nop <== NOT EXECUTED 200210c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002110: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2002114: 40 00 2c da call 200d47c <__errno> <== NOT EXECUTED 2002118: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200211c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2002120: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2002124: 81 c7 e0 08 ret 2002128: 81 e8 00 00 restore * pathloc will be passed up (and eventually released). * Hence, the (valid) originial node that we submit to * eval_link_h() should be released by the handler. */ result = (*pathloc->ops->eval_link_h)( pathloc, flags ); 200212c: 9f c0 40 00 call %g1 2002130: 92 10 00 1a mov %i2, %o1 2002134: b0 10 00 08 mov %o0, %i0 } } return result; } 2002138: 81 c7 e0 08 ret 200213c: 81 e8 00 00 restore 02001eb0 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 2001eb0: 9d e3 bf 88 save %sp, -120, %sp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 2001eb4: 23 00 80 65 sethi %hi(0x2019400), %l1 2001eb8: c2 04 60 84 ld [ %l1 + 0x84 ], %g1 ! 2019484 2001ebc: 84 10 20 12 mov 0x12, %g2 init_fs_mount_table(); 2001ec0: 40 00 01 8d call 20024f4 2001ec4: c4 30 60 2c sth %g2, [ %g1 + 0x2c ] /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2001ec8: 03 00 80 60 sethi %hi(0x2018000), %g1 2001ecc: c2 00 61 bc ld [ %g1 + 0x1bc ], %g1 ! 20181bc rtems_fatal_error_occurred( 0xABCD0001 ); 2001ed0: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 2001ed4: 80 a0 60 00 cmp %g1, 0 2001ed8: 02 80 00 0f be 2001f14 2001edc: 90 12 20 01 or %o0, 1, %o0 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 2001ee0: 03 00 80 64 sethi %hi(0x2019000), %g1 2001ee4: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 201937c status = mount( 2001ee8: 90 07 bf fc add %fp, -4, %o0 2001eec: d8 00 60 0c ld [ %g1 + 0xc ], %o4 2001ef0: d2 00 40 00 ld [ %g1 ], %o1 2001ef4: d4 00 60 04 ld [ %g1 + 4 ], %o2 2001ef8: 40 00 01 87 call 2002514 2001efc: d6 00 60 08 ld [ %g1 + 8 ], %o3 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 2001f00: 80 a2 3f ff cmp %o0, -1 2001f04: 32 80 00 06 bne,a 2001f1c 2001f08: d0 04 60 84 ld [ %l1 + 0x84 ], %o0 rtems_fatal_error_occurred( 0xABCD0002 ); 2001f0c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED 2001f10: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <== NOT EXECUTED 2001f14: 40 00 0f 56 call 2005c6c <== NOT EXECUTED 2001f18: 01 00 00 00 nop <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f1c: d2 07 bf fc ld [ %fp + -4 ], %o1 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 2001f20: c0 32 20 2e clrh [ %o0 + 0x2e ] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 2001f24: 92 02 60 1c add %o1, 0x1c, %o1 2001f28: 94 10 20 14 mov 0x14, %o2 2001f2c: 40 00 2f 8f call 200dd68 2001f30: 90 02 20 18 add %o0, 0x18, %o0 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001f34: a0 07 bf e8 add %fp, -24, %l0 2001f38: 98 10 20 00 clr %o4 2001f3c: 96 10 00 10 mov %l0, %o3 2001f40: 25 00 80 61 sethi %hi(0x2018400), %l2 2001f44: 92 10 20 01 mov 1, %o1 2001f48: 94 10 20 00 clr %o2 2001f4c: 40 00 00 7d call 2002140 2001f50: 90 14 a2 58 or %l2, 0x258, %o0 rtems_filesystem_root = loc; 2001f54: d0 04 60 84 ld [ %l1 + 0x84 ], %o0 2001f58: 92 10 00 10 mov %l0, %o1 2001f5c: 94 10 20 14 mov 0x14, %o2 2001f60: 40 00 2f 82 call 200dd68 2001f64: 90 02 20 18 add %o0, 0x18, %o0 /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2001f68: 96 10 00 10 mov %l0, %o3 2001f6c: 98 10 20 00 clr %o4 2001f70: 92 10 20 01 mov 1, %o1 2001f74: 94 10 20 00 clr %o2 2001f78: 40 00 00 72 call 2002140 2001f7c: 90 14 a2 58 or %l2, 0x258, %o0 rtems_filesystem_current = loc; 2001f80: d0 04 60 84 ld [ %l1 + 0x84 ], %o0 2001f84: 92 10 00 10 mov %l0, %o1 2001f88: 94 10 20 14 mov 0x14, %o2 2001f8c: 40 00 2f 77 call 200dd68 2001f90: 90 02 20 04 add %o0, 4, %o0 * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 2001f94: 92 10 21 ff mov 0x1ff, %o1 2001f98: 11 00 80 61 sethi %hi(0x2018400), %o0 2001f9c: 40 00 00 fe call 2002394 2001fa0: 90 12 22 60 or %o0, 0x260, %o0 ! 2018660 if ( status != 0 ) 2001fa4: 80 a2 20 00 cmp %o0, 0 2001fa8: 02 80 00 04 be 2001fb8 2001fac: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 rtems_fatal_error_occurred( 0xABCD0003 ); 2001fb0: 10 bf ff d9 b 2001f14 <== NOT EXECUTED 2001fb4: 90 12 20 03 or %o0, 3, %o0 ! abcd0003 <== NOT EXECUTED 2001fb8: 81 c7 e0 08 ret 2001fbc: 81 e8 00 00 restore 0200949c : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 200949c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 20094a0: c4 02 40 00 ld [ %o1 ], %g2 <== NOT EXECUTED 20094a4: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED 20094a8: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 20094ac: 81 c3 e0 08 retl <== NOT EXECUTED 20094b0: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED 02001fc0 : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 2001fc0: 82 10 00 08 mov %o0, %g1 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 2001fc4: 10 80 00 03 b 2001fd0 2001fc8: 90 10 20 00 clr %o0 { pathname++; pathnamelen--; stripped++; 2001fcc: 90 02 20 01 inc %o0 <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 2001fd0: 80 a2 40 08 cmp %o1, %o0 2001fd4: 02 80 00 0b be 2002000 2001fd8: c4 08 40 08 ldub [ %g1 + %o0 ], %g2 2001fdc: 85 28 a0 18 sll %g2, 0x18, %g2 2001fe0: 85 38 a0 18 sra %g2, 0x18, %g2 2001fe4: 80 a0 a0 00 cmp %g2, 0 2001fe8: 02 80 00 06 be 2002000 2001fec: 80 a0 a0 5c cmp %g2, 0x5c 2001ff0: 02 bf ff f7 be 2001fcc 2001ff4: 80 a0 a0 2f cmp %g2, 0x2f 2001ff8: 22 bf ff f6 be,a 2001fd0 2001ffc: 90 02 20 01 inc %o0 pathname++; pathnamelen--; stripped++; } return stripped; } 2002000: 81 c3 e0 08 retl 2002004: 01 00 00 00 nop 02001d1c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 2001d1c: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); 2001d20: 40 00 31 8e call 200e358 <== NOT EXECUTED 2001d24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001d28: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2001d2c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2001d30: 94 10 20 00 clr %o2 <== NOT EXECUTED 2001d34: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001d38: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2001d3c: 40 00 01 01 call 2002140 <== NOT EXECUTED 2001d40: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001d44: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); 2001d48: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 2001d4c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED 2001d50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001d54: 12 80 00 0e bne 2001d8c <== NOT EXECUTED 2001d58: e4 07 bf ec ld [ %fp + -20 ], %l2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001d5c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2001d60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001d64: 02 80 00 04 be 2001d74 <== NOT EXECUTED 2001d68: 01 00 00 00 nop <== NOT EXECUTED 2001d6c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001d70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2001d74: 40 00 2d c2 call 200d47c <__errno> <== NOT EXECUTED 2001d78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2001d7c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2001d80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2001d84: 81 c7 e0 08 ret <== NOT EXECUTED 2001d88: 81 e8 00 00 restore <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 2001d8c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001d90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 2001d94: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED 2001d98: 12 80 00 06 bne 2001db0 <== NOT EXECUTED 2001d9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2001da0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2001da4: 22 80 00 0e be,a 2001ddc <== NOT EXECUTED 2001da8: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001dac: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2001db0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001db4: 02 80 00 1c be 2001e24 <== NOT EXECUTED 2001db8: 01 00 00 00 nop <== NOT EXECUTED 2001dbc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001dc0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dc4: 02 80 00 18 be 2001e24 <== NOT EXECUTED 2001dc8: 01 00 00 00 nop <== NOT EXECUTED 2001dcc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001dd0: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001dd4: 81 c7 e0 08 ret <== NOT EXECUTED 2001dd8: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); 2001ddc: 40 00 31 5f call 200e358 <== NOT EXECUTED 2001de0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2001de4: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 2001de8: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 2001dec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; 2001df0: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 2001df4: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2001df8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001dfc: 02 80 00 0c be 2001e2c <== NOT EXECUTED 2001e00: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED 2001e04: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2001e08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2001e0c: 02 80 00 08 be 2001e2c <== NOT EXECUTED 2001e10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2001e14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2001e18: b0 10 20 00 clr %i0 <== NOT EXECUTED 2001e1c: 81 c7 e0 08 ret <== NOT EXECUTED 2001e20: 81 e8 00 00 restore <== NOT EXECUTED 2001e24: 81 c7 e0 08 ret <== NOT EXECUTED 2001e28: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED 2001e2c: b0 10 20 00 clr %i0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2001e30: 81 c7 e0 08 ret <== NOT EXECUTED 2001e34: 81 e8 00 00 restore <== NOT EXECUTED 0200a660 : * 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 ) { 200a660: 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 ); 200a664: 03 00 80 67 sethi %hi(0x2019c00), %g1 200a668: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 ! 2019c2c 200a66c: 92 10 20 00 clr %o1 200a670: 7f ff eb d8 call 20055d0 200a674: 94 10 20 00 clr %o2 if (rtems_libio_iop_freelist) { 200a678: 21 00 80 67 sethi %hi(0x2019c00), %l0 200a67c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 ! 2019c28 200a680: 80 a0 60 00 cmp %g1, 0 200a684: 02 80 00 26 be 200a71c 200a688: b0 10 20 00 clr %i0 rc = rtems_semaphore_create( 200a68c: 05 00 80 67 sethi %hi(0x2019c00), %g2 200a690: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 ! 2019c24 200a694: 92 10 20 01 mov 1, %o1 200a698: 82 20 40 02 sub %g1, %g2, %g1 200a69c: 83 38 60 03 sra %g1, 3, %g1 200a6a0: 87 28 60 06 sll %g1, 6, %g3 200a6a4: 85 28 60 03 sll %g1, 3, %g2 200a6a8: 84 20 c0 02 sub %g3, %g2, %g2 200a6ac: 87 28 a0 06 sll %g2, 6, %g3 200a6b0: 84 00 80 03 add %g2, %g3, %g2 200a6b4: 84 00 80 01 add %g2, %g1, %g2 200a6b8: 87 28 a0 0f sll %g2, 0xf, %g3 200a6bc: 84 20 c0 02 sub %g3, %g2, %g2 200a6c0: 07 13 10 92 sethi %hi(0x4c424800), %g3 200a6c4: 85 28 a0 03 sll %g2, 3, %g2 200a6c8: 86 10 e1 00 or %g3, 0x100, %g3 200a6cc: 82 00 80 01 add %g2, %g1, %g1 200a6d0: 94 10 20 54 mov 0x54, %o2 200a6d4: 96 10 20 00 clr %o3 200a6d8: 90 10 40 03 or %g1, %g3, %o0 200a6dc: 7f ff eb 1b call 2005348 200a6e0: 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) 200a6e4: 80 a2 20 00 cmp %o0, 0 200a6e8: 32 80 00 0d bne,a 200a71c 200a6ec: b0 10 20 00 clr %i0 <== NOT EXECUTED goto failed; iop = rtems_libio_iop_freelist; 200a6f0: f0 04 20 28 ld [ %l0 + 0x28 ], %i0 next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200a6f4: 92 10 20 00 clr %o1 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; 200a6f8: e2 06 20 38 ld [ %i0 + 0x38 ], %l1 (void) memset( iop, 0, sizeof(rtems_libio_t) ); 200a6fc: 90 10 00 18 mov %i0, %o0 200a700: 40 00 0d d9 call 200de64 200a704: 94 10 20 48 mov 0x48, %o2 iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; 200a708: c2 07 bf fc ld [ %fp + -4 ], %g1 rtems_libio_iop_freelist = next; 200a70c: e2 24 20 28 st %l1, [ %l0 + 0x28 ] 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; 200a710: 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; 200a714: 82 10 21 00 mov 0x100, %g1 200a718: c2 26 20 18 st %g1, [ %i0 + 0x18 ] failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 200a71c: 03 00 80 67 sethi %hi(0x2019c00), %g1 200a720: 7f ff eb f3 call 20056ec 200a724: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 ! 2019c2c return iop; } 200a728: 81 c7 e0 08 ret 200a72c: 81 e8 00 00 restore 020021e4 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 20021e4: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 20021e8: 21 00 80 64 sethi %hi(0x2019000), %l0 20021ec: d0 04 23 74 ld [ %l0 + 0x374 ], %o0 ! 2019374 20021f0: 80 a2 20 00 cmp %o0, 0 20021f4: 22 80 00 18 be,a 2002254 20021f8: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 20021fc: 40 00 1f e0 call 200a17c 2002200: 92 10 20 48 mov 0x48, %o1 2002204: 03 00 80 67 sethi %hi(0x2019c00), %g1 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 2002208: 80 a2 20 00 cmp %o0, 0 200220c: 12 80 00 04 bne 200221c 2002210: d0 20 60 24 st %o0, [ %g1 + 0x24 ] rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 2002214: 10 80 00 1a b 200227c <== NOT EXECUTED 2002218: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; 200221c: 05 00 80 67 sethi %hi(0x2019c00), %g2 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002220: c8 04 23 74 ld [ %l0 + 0x374 ], %g4 rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 2002224: d0 20 a0 28 st %o0, [ %g2 + 0x28 ] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002228: 82 10 00 08 mov %o0, %g1 200222c: 10 80 00 03 b 2002238 2002230: 84 10 20 00 clr %g2 iop->data1 = iop + 1; 2002234: c2 20 7f f0 st %g1, [ %g1 + -16 ] sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002238: 84 00 a0 01 inc %g2 iop->data1 = iop + 1; 200223c: 86 10 00 01 mov %g1, %g3 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 2002240: 80 a0 80 04 cmp %g2, %g4 2002244: 0a bf ff fc bcs 2002234 2002248: 82 00 60 48 add %g1, 0x48, %g1 iop->data1 = iop + 1; iop->data1 = NULL; 200224c: c0 20 e0 38 clr [ %g3 + 0x38 ] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 2002250: 11 13 10 92 sethi %hi(0x4c424800), %o0 2002254: 92 10 20 01 mov 1, %o1 2002258: 90 12 21 4f or %o0, 0x14f, %o0 200225c: 94 10 20 54 mov 0x54, %o2 2002260: 96 10 20 00 clr %o3 2002264: 19 00 80 67 sethi %hi(0x2019c00), %o4 2002268: 40 00 0c 38 call 2005348 200226c: 98 13 20 2c or %o4, 0x2c, %o4 ! 2019c2c 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 2002270: 80 a2 20 00 cmp %o0, 0 2002274: 02 80 00 04 be 2002284 2002278: 03 00 80 64 sethi %hi(0x2019000), %g1 rtems_fatal_error_occurred( rc ); 200227c: 40 00 0e 7c call 2005c6c <== NOT EXECUTED 2002280: 01 00 00 00 nop <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 2002284: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 2002288: 80 a0 60 00 cmp %g1, 0 200228c: 02 80 00 04 be 200229c 2002290: 01 00 00 00 nop (* rtems_fs_init_helper)(); 2002294: 9f c0 40 00 call %g1 2002298: 01 00 00 00 nop 200229c: 81 c7 e0 08 ret 20022a0: 81 e8 00 00 restore 02026974 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 2026974: 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); 2026978: 90 10 20 00 clr %o0 202697c: 92 10 20 00 clr %o1 2026980: 40 00 04 3d call 2027a74 2026984: 94 07 bf fc add %fp, -4, %o2 if (sc != RTEMS_SUCCESSFUL) return sc; 2026988: b0 92 20 00 orcc %o0, 0, %i0 202698c: 12 80 00 19 bne 20269f0 2026990: 21 00 81 89 sethi %hi(0x2062400), %l0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 2026994: c4 04 21 d4 ld [ %l0 + 0x1d4 ], %g2 ! 20625d4 2026998: 03 00 81 99 sethi %hi(0x2066400), %g1 202699c: 82 10 60 08 or %g1, 8, %g1 ! 2066408 20269a0: 80 a0 80 01 cmp %g2, %g1 20269a4: 12 80 00 15 bne 20269f8 20269a8: a4 14 21 d4 or %l0, 0x1d4, %l2 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 20269ac: 7f ff 7e 1f call 2006228 20269b0: 90 10 20 48 mov 0x48, %o0 if (!tmp) 20269b4: a2 92 20 00 orcc %o0, 0, %l1 20269b8: 12 80 00 04 bne 20269c8 20269bc: 92 10 00 12 mov %l2, %o1 20269c0: 81 c7 e0 08 ret <== NOT EXECUTED 20269c4: 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); 20269c8: 90 10 20 00 clr %o0 20269cc: 15 00 80 9a sethi %hi(0x2026800), %o2 20269d0: 40 00 05 27 call 2027e6c 20269d4: 94 12 a0 40 or %o2, 0x40, %o2 ! 2026840 if (sc != RTEMS_SUCCESSFUL) { 20269d8: 82 92 20 00 orcc %o0, 0, %g1 20269dc: 22 80 00 07 be,a 20269f8 20269e0: e2 24 21 d4 st %l1, [ %l0 + 0x1d4 ] /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 20269e4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20269e8: 7f ff 7c 74 call 2005bb8 <== NOT EXECUTED 20269ec: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED return sc; 20269f0: 81 c7 e0 08 ret <== NOT EXECUTED 20269f4: 81 e8 00 00 restore <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 20269f8: 23 00 81 89 sethi %hi(0x2062400), %l1 20269fc: e0 04 61 d4 ld [ %l1 + 0x1d4 ], %l0 ! 20625d4 2026a00: 94 10 20 48 mov 0x48, %o2 2026a04: 90 10 00 10 mov %l0, %o0 2026a08: 13 00 81 99 sethi %hi(0x2066400), %o1 2026a0c: 40 00 67 09 call 2040630 2026a10: 92 12 60 08 or %o1, 8, %o1 ! 2066408 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026a14: 03 00 81 98 sethi %hi(0x2066000), %g1 2026a18: d2 00 63 f0 ld [ %g1 + 0x3f0 ], %o1 ! 20663f0 } 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*/ 2026a1c: c2 07 bf fc ld [ %fp + -4 ], %g1 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026a20: 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*/ 2026a24: c2 24 00 00 st %g1, [ %l0 ] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 2026a28: 90 04 20 18 add %l0, 0x18, %o0 2026a2c: 40 00 67 01 call 2040630 2026a30: 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); 2026a34: a0 07 bf e8 add %fp, -24, %l0 2026a38: 98 10 20 00 clr %o4 2026a3c: 96 10 00 10 mov %l0, %o3 2026a40: 25 00 81 62 sethi %hi(0x2058800), %l2 2026a44: 92 10 20 01 mov 1, %o1 2026a48: 94 10 20 00 clr %o2 2026a4c: 7f ff 7c 32 call 2005b14 2026a50: 90 14 a0 d0 or %l2, 0xd0, %o0 rtems_filesystem_root = loc; 2026a54: d0 04 61 d4 ld [ %l1 + 0x1d4 ], %o0 2026a58: 92 10 00 10 mov %l0, %o1 2026a5c: 94 10 20 14 mov 0x14, %o2 2026a60: 40 00 66 f4 call 2040630 2026a64: 90 02 20 18 add %o0, 0x18, %o0 rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 2026a68: 92 10 20 01 mov 1, %o1 2026a6c: 94 10 20 00 clr %o2 2026a70: 90 14 a0 d0 or %l2, 0xd0, %o0 2026a74: 96 10 00 10 mov %l0, %o3 2026a78: 7f ff 7c 27 call 2005b14 2026a7c: 98 10 20 00 clr %o4 rtems_filesystem_current = loc; 2026a80: d0 04 61 d4 ld [ %l1 + 0x1d4 ], %o0 2026a84: 92 10 00 10 mov %l0, %o1 2026a88: 90 02 20 04 add %o0, 4, %o0 2026a8c: 40 00 66 e9 call 2040630 2026a90: 94 10 20 14 mov 0x14, %o2 return RTEMS_SUCCESSFUL; } 2026a94: 81 c7 e0 08 ret 2026a98: 81 e8 00 00 restore 020268b8 : * 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) { 20268b8: 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); 20268bc: 90 10 20 00 clr %o0 <== NOT EXECUTED 20268c0: 92 10 20 00 clr %o1 <== NOT EXECUTED 20268c4: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED 20268c8: 40 00 04 6b call 2027a74 <== NOT EXECUTED 20268cc: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 20268d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20268d4: 12 80 00 26 bne 202696c <== NOT EXECUTED 20268d8: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 20268dc: 13 00 81 89 sethi %hi(0x2062400), %o1 <== NOT EXECUTED 20268e0: e0 02 61 d4 ld [ %o1 + 0x1d4 ], %l0 ! 20625d4 <== NOT EXECUTED 20268e4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 20268e8: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 20268ec: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 20268f0: 12 80 00 09 bne 2026914 <== NOT EXECUTED 20268f4: 92 12 61 d4 or %o1, 0x1d4, %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); 20268f8: 40 00 05 89 call 2027f1c <== NOT EXECUTED 20268fc: 01 00 00 00 nop <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 2026900: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026904: 12 80 00 1a bne 202696c <== NOT EXECUTED 2026908: 01 00 00 00 nop <== NOT EXECUTED free_user_env(tmp); 202690c: 7f ff ff cd call 2026840 <== NOT EXECUTED 2026910: 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, 2026914: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2026918: 21 00 81 89 sethi %hi(0x2062400), %l0 <== NOT EXECUTED 202691c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2026920: a2 14 21 d4 or %l0, 0x1d4, %l1 <== NOT EXECUTED 2026924: 40 00 05 a4 call 2027fb4 <== NOT EXECUTED 2026928: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 202692c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 2026930: 12 80 00 0c bne 2026960 <== NOT EXECUTED 2026934: 07 00 81 99 sethi %hi(0x2066400), %g3 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 2026938: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 202693c: 15 00 80 9a sethi %hi(0x2026800), %o2 <== NOT EXECUTED 2026940: 40 00 05 4b call 2027e6c <== NOT EXECUTED 2026944: 94 12 a0 40 or %o2, 0x40, %o2 ! 2026840 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2026948: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED 202694c: 12 80 00 05 bne 2026960 <== NOT EXECUTED 2026950: 07 00 81 99 sethi %hi(0x2066400), %g3 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 2026954: 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; 2026958: 10 80 00 05 b 202696c <== NOT EXECUTED 202695c: c4 24 21 d4 st %g2, [ %l0 + 0x1d4 ] <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 2026960: 05 00 81 89 sethi %hi(0x2062400), %g2 <== NOT EXECUTED 2026964: 86 10 e0 08 or %g3, 8, %g3 <== NOT EXECUTED 2026968: c6 20 a1 d4 st %g3, [ %g2 + 0x1d4 ] <== NOT EXECUTED return sc; } 202696c: 81 c7 e0 08 ret <== NOT EXECUTED 2026970: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED 02006330 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 2006330: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 2006334: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED 2006338: d0 00 62 f0 ld [ %g1 + 0x2f0 ], %o0 ! 20622f0 <== NOT EXECUTED 200633c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2006340: 40 00 17 45 call 200c054 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2006344: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED 2006348: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED 200634c: 02 80 00 08 be 200636c <== NOT EXECUTED 2006350: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 2006354: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 2006358: 82 10 63 c0 or %g1, 0x3c0, %g1 <== NOT EXECUTED 200635c: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED 2006360: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED 2006364: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED 2006368: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED 200636c: 81 c7 e0 08 ret <== NOT EXECUTED 2006370: 81 e8 00 00 restore <== NOT EXECUTED 02006374 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 2006374: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 2006378: 92 96 20 00 orcc %i0, 0, %o1 <== NOT EXECUTED 200637c: 02 80 00 13 be 20063c8 <== NOT EXECUTED 2006380: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 2006384: d0 00 62 f0 ld [ %g1 + 0x2f0 ], %o0 ! 20622f0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 2006388: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 200638c: 40 00 17 32 call 200c054 <_Protected_heap_Get_block_size> <== NOT EXECUTED 2006390: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 2006394: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 2006398: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED 200639c: 82 10 63 c0 or %g1, 0x3c0, %g1 <== NOT EXECUTED 20063a0: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20063a4: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20063a8: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 20063ac: 9a 83 40 04 addcc %o5, %g4, %o5 <== NOT EXECUTED 20063b0: 98 43 20 00 addx %o4, 0, %o4 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 20063b4: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED if (current_depth > s->max_depth) 20063b8: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 20063bc: 08 80 00 03 bleu 20063c8 <== NOT EXECUTED 20063c0: d8 38 60 20 std %o4, [ %g1 + 0x20 ] <== NOT EXECUTED s->max_depth = current_depth; 20063c4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED 20063c8: 81 c7 e0 08 ret <== NOT EXECUTED 20063cc: 81 e8 00 00 restore <== NOT EXECUTED 020063d0 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 20063d0: 11 00 81 98 sethi %hi(0x2066000), %o0 <== NOT EXECUTED 20063d4: 92 10 20 00 clr %o1 <== NOT EXECUTED 20063d8: 90 12 23 c0 or %o0, 0x3c0, %o0 <== NOT EXECUTED 20063dc: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED 20063e0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20063e4: 40 00 e9 26 call 204087c <== NOT EXECUTED 20063e8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20063ec: 01 00 00 00 nop 0200f948 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 200f948: 9d e3 bf a0 save %sp, -96, %sp void *return_this; /* * Parameter error checks */ if ( !pointer ) 200f94c: a0 96 20 00 orcc %i0, 0, %l0 200f950: 02 80 00 20 be 200f9d0 200f954: 03 00 80 7f sethi %hi(0x201fc00), %g1 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 200f958: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 201fea0 <_System_state_Current> 200f95c: 80 a0 60 03 cmp %g1, 3 200f960: 12 80 00 07 bne 200f97c 200f964: c0 24 00 00 clr [ %l0 ] 200f968: 7f ff d0 19 call 20039cc 200f96c: 01 00 00 00 nop 200f970: 80 8a 20 ff btst 0xff, %o0 200f974: 02 80 00 18 be 200f9d4 200f978: b0 10 20 16 mov 0x16, %i0 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 200f97c: 7f ff d0 2d call 2003a30 200f980: b0 10 20 0c mov 0xc, %i0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 200f984: 03 00 80 7c sethi %hi(0x201f000), %g1 200f988: d0 00 61 c0 ld [ %g1 + 0x1c0 ], %o0 ! 201f1c0 200f98c: 94 10 00 19 mov %i1, %o2 200f990: 92 10 00 1a mov %i2, %o1 200f994: 7f ff e5 12 call 2008ddc <_Protected_heap_Allocate_aligned_with_boundary> 200f998: 96 10 20 00 clr %o3 return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 200f99c: b2 92 20 00 orcc %o0, 0, %i1 200f9a0: 02 80 00 0d be 200f9d4 200f9a4: 03 00 80 7e sethi %hi(0x201f800), %g1 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 200f9a8: c2 00 60 08 ld [ %g1 + 8 ], %g1 ! 201f808 200f9ac: 80 a0 60 00 cmp %g1, 0 200f9b0: 22 80 00 06 be,a 200f9c8 200f9b4: f2 24 00 00 st %i1, [ %l0 ] (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 200f9b8: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 200f9bc: 9f c0 40 00 call %g1 <== NOT EXECUTED 200f9c0: 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; 200f9c4: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED return 0; 200f9c8: 81 c7 e0 08 ret 200f9cc: 91 e8 20 00 restore %g0, 0, %o0 200f9d0: b0 10 20 16 mov 0x16, %i0 } 200f9d4: 81 c7 e0 08 ret 200f9d8: 81 e8 00 00 restore 02007460 : void rtems_panic( const char *printf_format, ... ) { 2007460: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007464: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 2007468: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED 200746c: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED 2007470: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED 2007474: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED 2007478: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED 200747c: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 2007480: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 2007484: 7f ff ff 89 call 20072a8 <== NOT EXECUTED 2007488: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED va_end(arglist); } 200748c: 81 c7 e0 08 ret <== NOT EXECUTED 2007490: 81 e8 00 00 restore <== NOT EXECUTED 0200bb84 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 200bb84: 9d e3 bf a0 save %sp, -96, %sp if (!rtems_pipe_configured) 200bb88: 03 00 80 66 sethi %hi(0x2019800), %g1 200bb8c: c2 08 61 a4 ldub [ %g1 + 0x1a4 ], %g1 ! 20199a4 200bb90: 80 a0 60 00 cmp %g1, 0 200bb94: 02 80 00 15 be 200bbe8 200bb98: 19 00 80 66 sethi %hi(0x2019800), %o4 return; if (rtems_pipe_semaphore) 200bb9c: c2 03 22 c4 ld [ %o4 + 0x2c4 ], %g1 ! 2019ac4 <== NOT EXECUTED 200bba0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200bba4: 12 80 00 11 bne 200bbe8 <== NOT EXECUTED 200bba8: 98 13 22 c4 or %o4, 0x2c4, %o4 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 200bbac: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED 200bbb0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 200bbb4: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED 200bbb8: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED 200bbbc: 7f ff e5 e3 call 2005348 <== NOT EXECUTED 200bbc0: 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) 200bbc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200bbc8: 02 80 00 04 be 200bbd8 <== NOT EXECUTED 200bbcc: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200bbd0: 7f ff e8 27 call 2005c6c <== NOT EXECUTED 200bbd4: 01 00 00 00 nop <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 200bbd8: 7f ff e4 bc call 2004ec8 <== NOT EXECUTED 200bbdc: 01 00 00 00 nop <== NOT EXECUTED rtems_pipe_no = now; 200bbe0: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 200bbe4: d0 30 62 ca sth %o0, [ %g1 + 0x2ca ] ! 2019aca <== NOT EXECUTED 200bbe8: 81 c7 e0 08 ret 200bbec: 81 e8 00 00 restore 02004154 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2004154: 9d e3 bf a0 save %sp, -96, %sp Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2004158: 03 00 81 99 sethi %hi(0x2066400), %g1 200415c: c2 00 62 40 ld [ %g1 + 0x240 ], %g1 ! 2066640 <_Thread_Executing> ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 2004160: d0 00 60 c4 ld [ %g1 + 0xc4 ], %o0 2004164: 80 a7 80 08 cmp %fp, %o0 2004168: 0a 80 00 06 bcs 2004180 200416c: a0 10 20 00 clr %l0 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 2004170: c2 00 60 c0 ld [ %g1 + 0xc0 ], %g1 2004174: 82 02 00 01 add %o0, %g1, %g1 2004178: 80 a0 40 1e cmp %g1, %fp 200417c: a0 60 3f ff subx %g0, -1, %l0 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 2004180: 03 00 81 8d sethi %hi(0x2063400), %g1 2004184: c2 00 63 b4 ld [ %g1 + 0x3b4 ], %g1 ! 20637b4 2004188: 80 a0 60 00 cmp %g1, 0 200418c: 02 80 00 09 be 20041b0 2004190: 92 10 20 01 mov 1, %o1 pattern_ok = (!memcmp( 2004194: 90 02 20 08 add %o0, 8, %o0 2004198: 13 00 81 98 sethi %hi(0x2066000), %o1 200419c: 94 10 20 10 mov 0x10, %o2 20041a0: 40 00 f0 f3 call 204056c 20041a4: 92 12 63 90 or %o1, 0x390, %o1 20041a8: 80 a0 00 08 cmp %g0, %o0 20041ac: 92 60 3f ff subx %g0, -1, %o1 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 20041b0: 80 8c 20 ff btst 0xff, %l0 20041b4: 02 80 00 04 be 20041c4 20041b8: 80 8a 60 ff btst 0xff, %o1 20041bc: 12 80 00 07 bne 20041d8 20041c0: b0 10 20 00 clr %i0 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 20041c4: 03 00 81 99 sethi %hi(0x2066400), %g1 <== NOT EXECUTED 20041c8: d0 00 62 40 ld [ %g1 + 0x240 ], %o0 ! 2066640 <_Thread_Executing> <== NOT EXECUTED 20041cc: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED 20041d0: 7f ff ff b7 call 20040ac <== NOT EXECUTED 20041d4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return true; } 20041d8: 81 c7 e0 08 ret 20041dc: 81 e8 00 00 restore 02004090 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 2004090: 13 00 80 1b sethi %hi(0x2006c00), %o1 <== NOT EXECUTED 2004094: 90 10 20 00 clr %o0 <== NOT EXECUTED 2004098: 92 12 62 24 or %o1, 0x224, %o1 <== NOT EXECUTED 200409c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 20040a0: 7f ff ff e6 call 2004038 <== NOT EXECUTED 20040a4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 20040a8: 01 00 00 00 nop 02004038 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2004038: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED print_context = context; 200403c: 23 00 81 8d sethi %hi(0x2063400), %l1 <== NOT EXECUTED print_handler = print; 2004040: 21 00 81 8d sethi %hi(0x2063400), %l0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 2004044: f0 24 63 b8 st %i0, [ %l1 + 0x3b8 ] <== NOT EXECUTED print_handler = print; 2004048: f2 24 23 bc st %i1, [ %l0 + 0x3bc ] <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 200404c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004050: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 2004054: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004058: 92 12 62 48 or %o1, 0x248, %o1 ! 2058648 <== NOT EXECUTED (*print)( context, 200405c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004060: 13 00 81 61 sethi %hi(0x2058400), %o1 <== NOT EXECUTED 2004064: 9f c6 40 00 call %i1 <== NOT EXECUTED 2004068: 92 12 62 60 or %o1, 0x260, %o1 ! 2058660 <== NOT EXECUTED " ID NAME LOW HIGH CURRENT AVAILABLE USED\n" ); /* iterate over all threads and dump the usage */ rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage ); 200406c: 11 00 80 0f sethi %hi(0x2003c00), %o0 <== NOT EXECUTED 2004070: 40 00 1d b3 call 200b73c <== NOT EXECUTED 2004074: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 2003ee8 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 2004078: 7f ff ff 9c call 2003ee8 <== NOT EXECUTED 200407c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED print_context = NULL; 2004080: c0 24 63 b8 clr [ %l1 + 0x3b8 ] <== NOT EXECUTED print_handler = NULL; 2004084: c0 24 23 bc clr [ %l0 + 0x3bc ] <== NOT EXECUTED } 2004088: 81 c7 e0 08 ret <== NOT EXECUTED 200408c: 81 e8 00 00 restore <== NOT EXECUTED 020041e0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 20041e0: 9d e3 bf a0 save %sp, -96, %sp Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; 20041e4: d0 06 20 c4 ld [ %i0 + 0xc4 ], %o0 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 20041e8: 80 a7 80 08 cmp %fp, %o0 20041ec: 0a 80 00 06 bcs 2004204 20041f0: a0 10 20 00 clr %l0 } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( 20041f4: c2 06 20 c0 ld [ %i0 + 0xc0 ], %g1 20041f8: 82 02 00 01 add %o0, %g1, %g1 20041fc: 80 a0 40 1e cmp %g1, %fp 2004200: a0 60 3f ff subx %g0, -1, %l0 /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 2004204: 90 02 20 08 add %o0, 8, %o0 2004208: 13 00 81 98 sethi %hi(0x2066000), %o1 200420c: 94 10 20 10 mov 0x10, %o2 2004210: 40 00 f0 d7 call 204056c 2004214: 92 12 63 90 or %o1, 0x390, %o1 2004218: 80 a0 00 08 cmp %g0, %o0 200421c: b2 60 3f ff subx %g0, -1, %i1 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 2004220: 80 8c 20 ff btst 0xff, %l0 2004224: 02 80 00 04 be 2004234 2004228: 80 a6 60 00 cmp %i1, 0 200422c: 12 80 00 05 bne 2004240 2004230: 01 00 00 00 nop Stack_check_report_blown_task( running, pattern_ok ); 2004234: b2 0e 60 01 and %i1, 1, %i1 <== NOT EXECUTED 2004238: 7f ff ff 9d call 20040ac <== NOT EXECUTED 200423c: 81 e8 00 00 restore <== NOT EXECUTED 2004240: 81 c7 e0 08 ret 2004244: 81 e8 00 00 restore 0201c678 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c678: 9d e3 bf 98 save %sp, -104, %sp 201c67c: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c680: 80 a6 60 00 cmp %i1, 0 201c684: 02 80 00 20 be 201c704 201c688: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c68c: 40 00 83 16 call 203d2e4 <__errno> 201c690: 01 00 00 00 nop 201c694: c0 22 00 00 clr [ %o0 ] *n = 0; 201c698: 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 ); 201c69c: 94 10 00 1b mov %i3, %o2 201c6a0: 90 10 00 10 mov %l0, %o0 201c6a4: 40 00 a2 b2 call 204516c 201c6a8: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201c6ac: 80 a6 a0 00 cmp %i2, 0 201c6b0: 02 80 00 04 be 201c6c0 201c6b4: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c6b8: c2 07 bf fc ld [ %fp + -4 ], %g1 201c6bc: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c6c0: c2 07 bf fc ld [ %fp + -4 ], %g1 201c6c4: 80 a0 40 10 cmp %g1, %l0 201c6c8: 02 80 00 0f be 201c704 201c6cc: 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)) 201c6d0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 201c6d4: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 201c6d8: 80 a4 40 01 cmp %l1, %g1 201c6dc: 32 80 00 09 bne,a 201c700 201c6e0: e2 26 40 00 st %l1, [ %i1 ] 201c6e4: 40 00 83 00 call 203d2e4 <__errno> 201c6e8: b0 10 20 0a mov 0xa, %i0 201c6ec: c2 02 00 00 ld [ %o0 ], %g1 201c6f0: 80 a0 60 22 cmp %g1, 0x22 201c6f4: 02 80 00 04 be 201c704 201c6f8: 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; 201c6fc: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c700: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c704: 81 c7 e0 08 ret 201c708: 81 e8 00 00 restore 0200bf40 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200bf40: 9d e3 bf 98 save %sp, -104, %sp 200bf44: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200bf48: 80 a6 60 00 cmp %i1, 0 200bf4c: 02 80 00 23 be 200bfd8 200bf50: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200bf54: 40 00 08 18 call 200dfb4 <__errno> 200bf58: 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 ); 200bf5c: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200bf60: c0 22 00 00 clr [ %o0 ] *n = 0; 200bf64: 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 ); 200bf68: 90 10 00 10 mov %l0, %o0 200bf6c: 40 00 14 1e call 2010fe4 200bf70: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200bf74: 80 a6 a0 00 cmp %i2, 0 200bf78: 02 80 00 04 be 200bf88 200bf7c: a2 10 00 08 mov %o0, %l1 *endptr = end; 200bf80: c2 07 bf fc ld [ %fp + -4 ], %g1 200bf84: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200bf88: c2 07 bf fc ld [ %fp + -4 ], %g1 200bf8c: 80 a0 40 10 cmp %g1, %l0 200bf90: 02 80 00 12 be 200bfd8 200bf94: 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)) 200bf98: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200bf9c: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200bfa0: 80 a4 40 01 cmp %l1, %g1 200bfa4: 02 80 00 05 be 200bfb8 200bfa8: 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)) 200bfac: 80 a4 40 01 cmp %l1, %g1 200bfb0: 32 80 00 09 bne,a 200bfd4 200bfb4: e2 26 40 00 st %l1, [ %i1 ] 200bfb8: 40 00 07 ff call 200dfb4 <__errno> 200bfbc: 01 00 00 00 nop 200bfc0: c2 02 00 00 ld [ %o0 ], %g1 200bfc4: 80 a0 60 22 cmp %g1, 0x22 200bfc8: 22 80 00 04 be,a 200bfd8 200bfcc: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200bfd0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 200bfd4: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200bfd8: 81 c7 e0 08 ret 200bfdc: 81 e8 00 00 restore 0200be7c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200be7c: 9d e3 bf 98 save %sp, -104, %sp 200be80: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200be84: 80 a6 60 00 cmp %i1, 0 200be88: 02 80 00 2c be 200bf38 200be8c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200be90: 40 00 08 49 call 200dfb4 <__errno> 200be94: 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 ); 200be98: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200be9c: c0 22 00 00 clr [ %o0 ] *n = 0; 200bea0: c0 26 40 00 clr [ %i1 ] 200bea4: 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 ); 200bea8: 90 10 00 10 mov %l0, %o0 200beac: 40 00 14 58 call 201100c 200beb0: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200beb4: 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 ); 200beb8: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200bebc: 02 80 00 04 be 200becc 200bec0: a4 10 00 09 mov %o1, %l2 *endptr = end; 200bec4: c2 07 bf fc ld [ %fp + -4 ], %g1 200bec8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200becc: c2 07 bf fc ld [ %fp + -4 ], %g1 200bed0: 80 a0 40 10 cmp %g1, %l0 200bed4: 02 80 00 19 be 200bf38 200bed8: 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)) 200bedc: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 200bee0: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 200bee4: 80 a4 40 01 cmp %l1, %g1 200bee8: 12 80 00 05 bne 200befc 200beec: 03 20 00 00 sethi %hi(0x80000000), %g1 200bef0: 80 a4 bf ff cmp %l2, -1 200bef4: 02 80 00 08 be 200bf14 200bef8: 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)) 200befc: 80 a4 40 01 cmp %l1, %g1 200bf00: 32 80 00 0c bne,a 200bf30 200bf04: e4 26 60 04 st %l2, [ %i1 + 4 ] 200bf08: 80 a4 a0 00 cmp %l2, 0 200bf0c: 32 80 00 09 bne,a 200bf30 200bf10: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200bf14: 40 00 08 28 call 200dfb4 <__errno> 200bf18: 01 00 00 00 nop 200bf1c: c2 02 00 00 ld [ %o0 ], %g1 200bf20: 80 a0 60 22 cmp %g1, 0x22 200bf24: 22 80 00 05 be,a 200bf38 200bf28: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 200bf2c: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200bf30: e2 26 40 00 st %l1, [ %i1 ] 200bf34: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200bf38: 81 c7 e0 08 ret 200bf3c: 81 e8 00 00 restore 0201c70c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c70c: 9d e3 bf 98 save %sp, -104, %sp 201c710: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c714: 80 a6 60 00 cmp %i1, 0 201c718: 02 80 00 1e be 201c790 201c71c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c720: 40 00 82 f1 call 203d2e4 <__errno> 201c724: 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 ); 201c728: 92 07 bf fc add %fp, -4, %o1 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201c72c: c0 22 00 00 clr [ %o0 ] *n = 0; 201c730: 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 ); 201c734: 90 10 00 10 mov %l0, %o0 201c738: 40 00 a3 c3 call 2045644 201c73c: 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 ) 201c740: 80 a6 a0 00 cmp %i2, 0 201c744: 02 80 00 04 be 201c754 201c748: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c74c: c2 07 bf fc ld [ %fp + -4 ], %g1 201c750: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c754: c2 07 bf fc ld [ %fp + -4 ], %g1 201c758: 80 a0 40 10 cmp %g1, %l0 201c75c: 02 80 00 0d be 201c790 201c760: 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)) 201c764: 80 a4 7f ff cmp %l1, -1 201c768: 32 80 00 09 bne,a 201c78c 201c76c: e2 26 40 00 st %l1, [ %i1 ] 201c770: 40 00 82 dd call 203d2e4 <__errno> <== NOT EXECUTED 201c774: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED 201c778: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 201c77c: 80 a0 60 22 cmp %g1, 0x22 <== NOT EXECUTED 201c780: 02 80 00 04 be 201c790 <== NOT EXECUTED 201c784: 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; 201c788: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c78c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c790: 81 c7 e0 08 ret 201c794: 81 e8 00 00 restore 0200c0d0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c0d0: 9d e3 bf 98 save %sp, -104, %sp 200c0d4: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c0d8: 80 a6 60 00 cmp %i1, 0 200c0dc: 02 80 00 1e be 200c154 200c0e0: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c0e4: 40 00 07 b4 call 200dfb4 <__errno> 200c0e8: 01 00 00 00 nop 200c0ec: c0 22 00 00 clr [ %o0 ] *n = 0; 200c0f0: 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 ); 200c0f4: 94 10 00 1b mov %i3, %o2 200c0f8: 90 10 00 10 mov %l0, %o0 200c0fc: 40 00 14 f0 call 20114bc 200c100: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c104: 80 a6 a0 00 cmp %i2, 0 200c108: 02 80 00 04 be 200c118 200c10c: a2 10 00 08 mov %o0, %l1 *endptr = end; 200c110: c2 07 bf fc ld [ %fp + -4 ], %g1 200c114: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c118: c2 07 bf fc ld [ %fp + -4 ], %g1 200c11c: 80 a0 40 10 cmp %g1, %l0 200c120: 02 80 00 0d be 200c154 200c124: 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)) 200c128: 80 a4 7f ff cmp %l1, -1 200c12c: 32 80 00 09 bne,a 200c150 200c130: e2 26 40 00 st %l1, [ %i1 ] 200c134: 40 00 07 a0 call 200dfb4 <__errno> 200c138: b0 10 20 0a mov 0xa, %i0 200c13c: c2 02 00 00 ld [ %o0 ], %g1 200c140: 80 a0 60 22 cmp %g1, 0x22 200c144: 02 80 00 04 be 200c154 200c148: 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; 200c14c: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 200c150: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200c154: 81 c7 e0 08 ret 200c158: 81 e8 00 00 restore 0201c7fc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 201c7fc: 9d e3 bf 98 save %sp, -104, %sp 201c800: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 201c804: 80 a6 60 00 cmp %i1, 0 201c808: 02 80 00 1e be 201c880 201c80c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 201c810: 40 00 82 b5 call 203d2e4 <__errno> 201c814: 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 ); 201c818: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 201c81c: c0 22 00 00 clr [ %o0 ] *n = 0; 201c820: 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 ); 201c824: 90 10 00 10 mov %l0, %o0 201c828: 40 00 a3 87 call 2045644 201c82c: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 201c830: 80 a6 a0 00 cmp %i2, 0 201c834: 02 80 00 04 be 201c844 201c838: a2 10 00 08 mov %o0, %l1 *endptr = end; 201c83c: c2 07 bf fc ld [ %fp + -4 ], %g1 201c840: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 201c844: c2 07 bf fc ld [ %fp + -4 ], %g1 201c848: 80 a0 40 10 cmp %g1, %l0 201c84c: 02 80 00 0d be 201c880 201c850: 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)) 201c854: 80 a4 7f ff cmp %l1, -1 201c858: 32 80 00 09 bne,a 201c87c 201c85c: e2 26 40 00 st %l1, [ %i1 ] 201c860: 40 00 82 a1 call 203d2e4 <__errno> 201c864: b0 10 20 0a mov 0xa, %i0 201c868: c2 02 00 00 ld [ %o0 ], %g1 201c86c: 80 a0 60 22 cmp %g1, 0x22 201c870: 02 80 00 04 be 201c880 201c874: 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; 201c878: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED 201c87c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 201c880: 81 c7 e0 08 ret 201c884: 81 e8 00 00 restore 0200c15c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 200c15c: 9d e3 bf 98 save %sp, -104, %sp 200c160: a0 10 00 18 mov %i0, %l0 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 200c164: 80 a6 60 00 cmp %i1, 0 200c168: 02 80 00 24 be 200c1f8 200c16c: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; errno = 0; 200c170: 40 00 07 91 call 200dfb4 <__errno> 200c174: 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 ); 200c178: 94 10 00 1b mov %i3, %o2 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; 200c17c: c0 22 00 00 clr [ %o0 ] *n = 0; 200c180: c0 26 40 00 clr [ %i1 ] 200c184: 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 ); 200c188: 90 10 00 10 mov %l0, %o0 200c18c: 40 00 14 d6 call 20114e4 200c190: 92 07 bf fc add %fp, -4, %o1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c194: 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 ); 200c198: a2 10 00 08 mov %o0, %l1 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 200c19c: 02 80 00 04 be 200c1ac 200c1a0: a4 10 00 09 mov %o1, %l2 *endptr = end; 200c1a4: c2 07 bf fc ld [ %fp + -4 ], %g1 200c1a8: c2 26 80 00 st %g1, [ %i2 ] /* nothing was converted */ if ( end == s ) 200c1ac: c2 07 bf fc ld [ %fp + -4 ], %g1 200c1b0: 80 a0 40 10 cmp %g1, %l0 200c1b4: 02 80 00 11 be 200c1f8 200c1b8: 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)) 200c1bc: 80 a4 7f ff cmp %l1, -1 200c1c0: 32 80 00 0c bne,a 200c1f0 200c1c4: e4 26 60 04 st %l2, [ %i1 + 4 ] 200c1c8: 80 a4 bf ff cmp %l2, -1 200c1cc: 32 80 00 09 bne,a 200c1f0 200c1d0: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200c1d4: 40 00 07 78 call 200dfb4 <__errno> 200c1d8: b0 10 20 0a mov 0xa, %i0 200c1dc: c2 02 00 00 ld [ %o0 ], %g1 200c1e0: 80 a0 60 22 cmp %g1, 0x22 200c1e4: 02 80 00 05 be 200c1f8 200c1e8: 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; 200c1ec: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED 200c1f0: e2 26 40 00 st %l1, [ %i1 ] 200c1f4: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 200c1f8: 81 c7 e0 08 ret 200c1fc: 81 e8 00 00 restore 020042e0 : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 20042e0: 82 10 00 08 mov %o0, %g1 int baud_index; switch (termios_baud) { 20042e4: 80 a2 20 09 cmp %o0, 9 20042e8: 02 80 00 19 be 200434c 20042ec: 90 10 20 09 mov 9, %o0 20042f0: 80 a0 60 09 cmp %g1, 9 20042f4: 14 80 00 25 bg 2004388 20042f8: 80 a0 60 0e cmp %g1, 0xe 20042fc: 80 a0 60 04 cmp %g1, 4 2004300: 02 80 00 13 be 200434c 2004304: 90 10 20 04 mov 4, %o0 2004308: 80 a0 60 04 cmp %g1, 4 200430c: 14 80 00 12 bg 2004354 2004310: 80 a0 60 06 cmp %g1, 6 2004314: 80 a0 60 01 cmp %g1, 1 2004318: 02 80 00 0d be 200434c 200431c: 90 10 20 01 mov 1, %o0 2004320: 80 a0 60 01 cmp %g1, 1 2004324: 34 80 00 05 bg,a 2004338 2004328: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200432c: 80 a0 60 00 cmp %g1, 0 2004330: 10 80 00 3f b 200442c 2004334: 90 10 20 00 clr %o0 2004338: 02 80 00 05 be 200434c <== NOT EXECUTED 200433c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED 2004340: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 2004344: 12 80 00 3c bne 2004434 <== NOT EXECUTED 2004348: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED 200434c: 81 c3 e0 08 retl <== NOT EXECUTED 2004350: 01 00 00 00 nop <== NOT EXECUTED 2004354: 02 bf ff fe be 200434c <== NOT EXECUTED 2004358: 90 10 20 06 mov 6, %o0 ! 6 <== NOT EXECUTED 200435c: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED 2004360: 06 bf ff fb bl 200434c <== NOT EXECUTED 2004364: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED 2004368: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED 200436c: 02 bf ff f8 be 200434c <== NOT EXECUTED 2004370: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED 2004374: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED 2004378: 12 80 00 2f bne 2004434 <== NOT EXECUTED 200437c: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED 2004380: 81 c3 e0 08 retl <== NOT EXECUTED 2004384: 01 00 00 00 nop <== NOT EXECUTED 2004388: 02 bf ff f1 be 200434c <== NOT EXECUTED 200438c: 90 10 20 0e mov 0xe, %o0 ! e <== NOT EXECUTED 2004390: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED 2004394: 14 80 00 10 bg 20043d4 <== NOT EXECUTED 2004398: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED 200439c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 20043a0: 02 bf ff eb be 200434c <== NOT EXECUTED 20043a4: 90 10 20 0b mov 0xb, %o0 <== NOT EXECUTED 20043a8: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED 20043ac: 06 bf ff e8 bl 200434c <== NOT EXECUTED 20043b0: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED 20043b4: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED 20043b8: 02 bf ff e5 be 200434c <== NOT EXECUTED 20043bc: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED 20043c0: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED 20043c4: 12 80 00 1c bne 2004434 <== NOT EXECUTED 20043c8: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED 20043cc: 81 c3 e0 08 retl <== NOT EXECUTED 20043d0: 01 00 00 00 nop <== NOT EXECUTED 20043d4: 86 10 a0 02 or %g2, 2, %g3 <== NOT EXECUTED 20043d8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20043dc: 02 bf ff dc be 200434c <== NOT EXECUTED 20043e0: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED 20043e4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 20043e8: 34 80 00 0b bg,a 2004414 <== NOT EXECUTED 20043ec: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED 20043f0: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED 20043f4: 02 bf ff d6 be 200434c <== NOT EXECUTED 20043f8: 90 10 20 0f mov 0xf, %o0 <== NOT EXECUTED 20043fc: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED 2004400: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004404: 12 80 00 0c bne 2004434 <== NOT EXECUTED 2004408: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED 200440c: 81 c3 e0 08 retl <== NOT EXECUTED 2004410: 01 00 00 00 nop <== NOT EXECUTED 2004414: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 2004418: 02 bf ff cd be 200434c <== NOT EXECUTED 200441c: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED 2004420: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; 2004424: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 2004428: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 200442c: 02 80 00 03 be 2004438 2004430: 01 00 00 00 nop case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; case B460800: baud_index = 19; break; 2004434: 90 10 3f ff mov -1, %o0 ! ffffffff default: baud_index = -1; break; } return baud_index; } 2004438: 81 c3 e0 08 retl 200443c: 01 00 00 00 nop 02002e14 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 2002e14: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED 2002e18: d0 20 60 74 st %o0, [ %g1 + 0x74 ] ! 2019474 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 2002e1c: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 2002e20: 90 10 20 00 clr %o0 <== NOT EXECUTED int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; 2002e24: d2 20 60 78 st %o1, [ %g1 + 0x78 ] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 2002e28: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 2002e2c: 81 c3 e0 08 retl <== NOT EXECUTED 2002e30: d4 20 60 7c st %o2, [ %g1 + 0x7c ] ! 201947c <== NOT EXECUTED 02004470 : } } rtems_status_code rtems_termios_close (void *arg) { 2004470: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004474: 03 00 80 67 sethi %hi(0x2019c00), %g1 2004478: d0 00 60 6c ld [ %g1 + 0x6c ], %o0 ! 2019c6c rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 200447c: c2 06 00 00 ld [ %i0 ], %g1 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004480: 92 10 20 00 clr %o1 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004484: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004488: 40 00 04 52 call 20055d0 200448c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2004490: 80 a2 20 00 cmp %o0, 0 2004494: 12 80 00 2c bne 2004544 2004498: 01 00 00 00 nop rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 200449c: c2 04 20 08 ld [ %l0 + 8 ], %g1 20044a0: 82 00 7f ff add %g1, -1, %g1 20044a4: 80 a0 60 00 cmp %g1, 0 20044a8: 12 80 00 5e bne 2004620 20044ac: c2 24 20 08 st %g1, [ %l0 + 8 ] if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 20044b0: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 20044b4: 03 00 80 66 sethi %hi(0x2019800), %g1 20044b8: 85 28 a0 05 sll %g2, 5, %g2 20044bc: 82 10 61 b8 or %g1, 0x1b8, %g1 20044c0: 82 00 40 02 add %g1, %g2, %g1 20044c4: c2 00 60 04 ld [ %g1 + 4 ], %g1 20044c8: 80 a0 60 00 cmp %g1, 0 20044cc: 22 80 00 06 be,a 20044e4 20044d0: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 20044d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20044d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 20044dc: 10 80 00 0b b 2004508 <== NOT EXECUTED 20044e0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 20044e4: 92 10 20 00 clr %o1 20044e8: 40 00 04 3a call 20055d0 20044ec: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 20044f0: 80 a2 20 00 cmp %o0, 0 20044f4: 12 80 00 14 bne 2004544 20044f8: 01 00 00 00 nop rtems_fatal_error_occurred (sc); } drainOutput (tty); 20044fc: 7f ff fd d0 call 2003c3c 2004500: 90 10 00 10 mov %l0, %o0 } if (tty->device.outputUsesInterrupts 2004504: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 2004508: 80 a0 60 02 cmp %g1, 2 200450c: 32 80 00 10 bne,a 200454c 2004510: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 2004514: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED 2004518: 40 00 02 ef call 20050d4 <== NOT EXECUTED 200451c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004520: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004524: 12 80 00 08 bne 2004544 <== NOT EXECUTED 2004528: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 200452c: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED 2004530: 40 00 02 e9 call 20050d4 <== NOT EXECUTED 2004534: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 2004538: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 200453c: 22 80 00 04 be,a 200454c <== NOT EXECUTED 2004540: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004544: 40 00 05 ca call 2005c6c <== NOT EXECUTED 2004548: 01 00 00 00 nop <== NOT EXECUTED } if (tty->device.lastClose) 200454c: 80 a0 60 00 cmp %g1, 0 2004550: 22 80 00 07 be,a 200456c 2004554: c4 04 00 00 ld [ %l0 ], %g2 (*tty->device.lastClose)(tty->major, tty->minor, arg); 2004558: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED 200455c: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 2004560: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004564: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED if (tty->forw == NULL) { 2004568: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED 200456c: 80 a0 a0 00 cmp %g2, 0 2004570: 12 80 00 08 bne 2004590 2004574: c2 04 20 04 ld [ %l0 + 4 ], %g1 rtems_termios_ttyTail = tty->back; 2004578: 05 00 80 67 sethi %hi(0x2019c00), %g2 if ( rtems_termios_ttyTail != NULL ) { 200457c: 80 a0 60 00 cmp %g1, 0 2004580: 02 80 00 05 be 2004594 2004584: c2 20 a0 70 st %g1, [ %g2 + 0x70 ] rtems_termios_ttyTail->forw = NULL; 2004588: 10 80 00 03 b 2004594 <== NOT EXECUTED 200458c: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED } } else { tty->forw->back = tty->back; 2004590: c2 20 a0 04 st %g1, [ %g2 + 4 ] } if (tty->back == NULL) { 2004594: c4 04 20 04 ld [ %l0 + 4 ], %g2 2004598: 80 a0 a0 00 cmp %g2, 0 200459c: 12 80 00 08 bne 20045bc 20045a0: c2 04 00 00 ld [ %l0 ], %g1 rtems_termios_ttyHead = tty->forw; 20045a4: 05 00 80 67 sethi %hi(0x2019c00), %g2 if ( rtems_termios_ttyHead != NULL ) { 20045a8: 80 a0 60 00 cmp %g1, 0 20045ac: 02 80 00 05 be 20045c0 20045b0: c2 20 a0 74 st %g1, [ %g2 + 0x74 ] rtems_termios_ttyHead->back = NULL; 20045b4: 10 80 00 03 b 20045c0 20045b8: c0 20 60 04 clr [ %g1 + 4 ] } } else { tty->back->forw = tty->forw; 20045bc: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 20045c0: 40 00 03 d6 call 2005518 20045c4: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 rtems_semaphore_delete (tty->osem); 20045c8: 40 00 03 d4 call 2005518 20045cc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 20045d0: 40 00 03 d2 call 2005518 20045d4: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 if ((tty->device.pollRead == NULL) || 20045d8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 20045dc: 80 a0 60 00 cmp %g1, 0 20045e0: 02 80 00 06 be 20045f8 20045e4: 01 00 00 00 nop (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 20045e8: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 20045ec: 80 a0 60 02 cmp %g1, 2 20045f0: 12 80 00 04 bne 2004600 20045f4: 01 00 00 00 nop rtems_semaphore_delete (tty->rawInBuf.Semaphore); 20045f8: 40 00 03 c8 call 2005518 <== NOT EXECUTED 20045fc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED free (tty->rawInBuf.theBuf); 2004600: 40 00 17 25 call 200a294 2004604: d0 04 20 58 ld [ %l0 + 0x58 ], %o0 free (tty->rawOutBuf.theBuf); 2004608: 40 00 17 23 call 200a294 200460c: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 free (tty->cbuf); 2004610: 40 00 17 21 call 200a294 2004614: d0 04 20 1c ld [ %l0 + 0x1c ], %o0 free (tty); 2004618: 40 00 17 1f call 200a294 200461c: 90 10 00 10 mov %l0, %o0 } rtems_semaphore_release (rtems_termios_ttyMutex); 2004620: 03 00 80 67 sethi %hi(0x2019c00), %g1 2004624: d0 00 60 6c ld [ %g1 + 0x6c ], %o0 ! 2019c6c 2004628: 40 00 04 31 call 20056ec 200462c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 2004630: 81 c7 e0 08 ret 2004634: 81 e8 00 00 restore 02003034 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2003034: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003038: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 200303c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2003040: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED 2003044: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2003048: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 200304c: 12 80 00 0a bne 2003074 <== NOT EXECUTED 2003050: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 2003054: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED 2003058: 40 00 08 1f call 20050d4 <== NOT EXECUTED 200305c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2003060: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003064: 02 80 00 11 be 20030a8 <== NOT EXECUTED 2003068: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200306c: 40 00 0b 00 call 2005c6c <== NOT EXECUTED 2003070: 01 00 00 00 nop <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 2003074: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2003078: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 200307c: 12 80 00 09 bne 20030a0 <== NOT EXECUTED 2003080: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2003084: c2 00 62 6c ld [ %g1 + 0x26c ], %g1 ! 2019a6c <== NOT EXECUTED 2003088: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200308c: 02 80 00 07 be 20030a8 <== NOT EXECUTED 2003090: b0 10 20 00 clr %i0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2003094: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003098: 01 00 00 00 nop <== NOT EXECUTED 200309c: 30 80 00 03 b,a 20030a8 <== NOT EXECUTED } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 20030a0: 7f ff ff 6b call 2002e4c <== NOT EXECUTED 20030a4: 81 e8 00 00 restore <== NOT EXECUTED } } 20030a8: 81 c7 e0 08 ret <== NOT EXECUTED 20030ac: 81 e8 00 00 restore <== NOT EXECUTED 020030b0 : * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { 20030b0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 20030b4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 20030b8: 25 00 80 66 sethi %hi(0x2019800), %l2 <== NOT EXECUTED 20030bc: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20030c0: a4 14 a1 b8 or %l2, 0x1b8, %l2 <== NOT EXECUTED 20030c4: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20030c8: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { 20030cc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 20030d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20030d4: 12 80 00 11 bne 2003118 <== NOT EXECUTED 20030d8: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; (*tty->device.write)(tty->minor, 20030dc: aa 06 20 4a add %i0, 0x4a, %l5 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 20030e0: a8 06 20 30 add %i0, 0x30, %l4 <== NOT EXECUTED 20030e4: a4 10 20 00 clr %l2 <== NOT EXECUTED 20030e8: 10 80 00 ad b 200339c <== NOT EXECUTED 20030ec: b0 10 20 00 clr %i0 <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; 20030f0: d0 0e 40 00 ldub [ %i1 ], %o0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 20030f4: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 20030f8: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED 20030fc: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED 2003100: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; 2003104: b2 06 60 01 inc %i1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2003108: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED 200310c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED 2003110: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003114: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { 2003118: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200311c: 32 bf ff f5 bne,a 20030f0 <== NOT EXECUTED 2003120: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2003124: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED 2003128: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200312c: 12 80 00 a6 bne 20033c4 <== NOT EXECUTED 2003130: 01 00 00 00 nop <== NOT EXECUTED 2003134: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 2003138: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200313c: 02 80 00 a2 be 20033c4 <== NOT EXECUTED 2003140: 01 00 00 00 nop <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003144: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 2003148: 9f c0 40 00 call %g1 <== NOT EXECUTED 200314c: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2003150: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2003154: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED 2003158: 81 c7 e0 08 ret <== NOT EXECUTED 200315c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2003160: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003164: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED 2003168: 02 80 00 1b be 20031d4 <== NOT EXECUTED 200316c: e6 0e 40 00 ldub [ %i1 ], %l3 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 2003170: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED 2003174: 83 2c e0 18 sll %l3, 0x18, %g1 <== NOT EXECUTED 2003178: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED 200317c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003180: 12 80 00 0e bne 20031b8 <== NOT EXECUTED 2003184: c4 0c 20 49 ldub [ %l0 + 0x49 ], %g2 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 2003188: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 200318c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2003190: 12 80 00 05 bne 20031a4 <== NOT EXECUTED 2003194: 01 00 00 00 nop <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 2003198: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200319c: 10 80 00 04 b 20031ac <== NOT EXECUTED 20031a0: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 20031a4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031a8: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED 20031ac: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 20031b0: 10 80 00 0c b 20031e0 <== NOT EXECUTED 20031b4: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 20031b8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED 20031bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20031c0: 12 80 00 06 bne 20031d8 <== NOT EXECUTED 20031c4: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 20031c8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031cc: 10 bf ff f8 b 20031ac <== NOT EXECUTED 20031d0: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 20031d4: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED 20031d8: 02 80 00 1c be 2003248 <== NOT EXECUTED 20031dc: 01 00 00 00 nop <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 20031e0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20031e4: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED 20031e8: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED 20031ec: 32 80 00 6b bne,a 2003398 <== NOT EXECUTED 20031f0: b2 06 60 01 inc %i1 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 20031f4: 7f ff fa c2 call 2001cfc <== NOT EXECUTED 20031f8: 01 00 00 00 nop <== NOT EXECUTED 20031fc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2003200: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2003204: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 2003208: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 200320c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2003210: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003214: 02 80 00 09 be 2003238 <== NOT EXECUTED 2003218: 01 00 00 00 nop <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 200321c: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 2003220: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 2003224: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003228: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 200322c: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 2003230: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003234: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 2003238: 7f ff fa b5 call 2001d0c <== NOT EXECUTED 200323c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003240: 10 80 00 56 b 2003398 <== NOT EXECUTED 2003244: b2 06 60 01 inc %i1 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 2003248: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED 200324c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003250: 40 00 4e 5f call 2016bcc <.urem> <== NOT EXECUTED 2003254: 90 02 20 01 inc %o0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 2003258: 7f ff fa a9 call 2001cfc <== NOT EXECUTED 200325c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 2003260: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2003264: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003268: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED 200326c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003270: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED 2003274: 40 00 4e 56 call 2016bcc <.urem> <== NOT EXECUTED 2003278: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 200327c: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED 2003280: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003284: 08 80 00 2d bleu 2003338 <== NOT EXECUTED 2003288: 01 00 00 00 nop <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 200328c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2003290: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2003294: 12 80 00 29 bne 2003338 <== NOT EXECUTED 2003298: 01 00 00 00 nop <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 200329c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20032a0: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED 20032a4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 20032a8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20032ac: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED 20032b0: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED 20032b4: 12 80 00 13 bne 2003300 <== NOT EXECUTED 20032b8: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 20032bc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20032c0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20032c4: 12 80 00 06 bne 20032dc <== NOT EXECUTED 20032c8: 01 00 00 00 nop <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 20032cc: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 20032d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20032d4: 12 80 00 19 bne 2003338 <== NOT EXECUTED 20032d8: 01 00 00 00 nop <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 20032dc: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 20032e0: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20032e4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 20032e8: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 20032ec: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 20032f0: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 20032f4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20032f8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED 20032fc: 30 80 00 0f b,a 2003338 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 2003300: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003304: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED 2003308: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED 200330c: 12 80 00 0b bne 2003338 <== NOT EXECUTED 2003310: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2003314: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003318: c2 04 20 ac ld [ %l0 + 0xac ], %g1 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 200331c: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED 2003320: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2003324: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003328: 02 80 00 04 be 2003338 <== NOT EXECUTED 200332c: 01 00 00 00 nop <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 2003330: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003334: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2003338: 7f ff fa 75 call 2001d0c <== NOT EXECUTED 200333c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 2003340: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED 2003344: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2003348: 32 80 00 04 bne,a 2003358 <== NOT EXECUTED 200334c: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED dropped++; 2003350: 10 80 00 11 b 2003394 <== NOT EXECUTED 2003354: b0 06 20 01 inc %i0 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; 2003358: e6 28 40 11 stb %l3, [ %g1 + %l1 ] <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 200335c: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 2003360: e2 24 20 60 st %l1, [ %l0 + 0x60 ] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2003364: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003368: 32 80 00 0c bne,a 2003398 <== NOT EXECUTED 200336c: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003370: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED 2003374: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003378: 22 80 00 08 be,a 2003398 <== NOT EXECUTED 200337c: b2 06 60 01 inc %i1 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2003380: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED 2003384: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003388: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 200338c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 2003390: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2003394: b2 06 60 01 inc %i1 <== NOT EXECUTED 2003398: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 200339c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 20033a0: 12 bf ff 70 bne 2003160 <== NOT EXECUTED 20033a4: 01 00 00 00 nop <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20033a8: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20033ac: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 20033b0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 20033b4: 40 00 08 ce call 20056ec <== NOT EXECUTED 20033b8: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED return dropped; 20033bc: 81 c7 e0 08 ret <== NOT EXECUTED 20033c0: 81 e8 00 00 restore <== NOT EXECUTED } 20033c4: 81 c7 e0 08 ret <== NOT EXECUTED 20033c8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02002dc8 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2002dc8: 9d e3 bf a0 save %sp, -96, %sp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2002dcc: 19 00 80 67 sethi %hi(0x2019c00), %o4 2002dd0: c2 03 20 6c ld [ %o4 + 0x6c ], %g1 ! 2019c6c 2002dd4: 80 a0 60 00 cmp %g1, 0 2002dd8: 12 80 00 0d bne 2002e0c 2002ddc: 98 13 20 6c or %o4, 0x6c, %o4 sc = rtems_semaphore_create ( 2002de0: 11 15 14 9b sethi %hi(0x54526c00), %o0 2002de4: 92 10 20 01 mov 1, %o1 2002de8: 90 12 21 69 or %o0, 0x169, %o0 2002dec: 94 10 20 54 mov 0x54, %o2 2002df0: 40 00 09 56 call 2005348 2002df4: 96 10 20 00 clr %o3 rtems_build_name ('T', 'R', 'm', 'i'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) 2002df8: 80 a2 20 00 cmp %o0, 0 2002dfc: 02 80 00 04 be 2002e0c 2002e00: 01 00 00 00 nop rtems_fatal_error_occurred (sc); 2002e04: 40 00 0b 9a call 2005c6c <== NOT EXECUTED 2002e08: 01 00 00 00 nop <== NOT EXECUTED 2002e0c: 81 c7 e0 08 ret 2002e10: 81 e8 00 00 restore 0200406c : } } rtems_status_code rtems_termios_ioctl (void *arg) { 200406c: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004070: c2 06 00 00 ld [ %i0 ], %g1 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 2004074: c0 26 20 0c clr [ %i0 + 0xc ] rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2004078: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 200407c: e4 06 20 08 ld [ %i0 + 8 ], %l2 rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004080: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 } } rtems_status_code rtems_termios_ioctl (void *arg) { 2004084: a2 10 00 18 mov %i0, %l1 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2004088: 92 10 20 00 clr %o1 200408c: 40 00 05 51 call 20055d0 2004090: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) { 2004094: b0 92 20 00 orcc %o0, 0, %i0 2004098: 22 80 00 05 be,a 20040ac 200409c: c2 04 60 04 ld [ %l1 + 4 ], %g1 args->ioctl_return = sc; 20040a0: f0 24 60 0c st %i0, [ %l1 + 0xc ] <== NOT EXECUTED return sc; 20040a4: 81 c7 e0 08 ret <== NOT EXECUTED 20040a8: 81 e8 00 00 restore <== NOT EXECUTED } switch (args->command) { 20040ac: 80 a0 60 04 cmp %g1, 4 20040b0: 22 80 00 bd be,a 20043a4 20040b4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED 20040b8: 18 80 00 0b bgu 20040e4 20040bc: 05 10 01 19 sethi %hi(0x40046400), %g2 20040c0: 80 a0 60 02 cmp %g1, 2 20040c4: 22 80 00 2c be,a 2004174 20040c8: d2 04 60 08 ld [ %l1 + 8 ], %o1 20040cc: 18 80 00 af bgu 2004388 20040d0: 80 a0 60 01 cmp %g1, 1 20040d4: 32 80 00 17 bne,a 2004130 20040d8: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 20040dc: 10 80 00 22 b 2004164 20040e0: d0 04 60 08 ld [ %l1 + 8 ], %o0 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 20040e4: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED 20040e8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 20040ec: 02 80 00 cf be 2004428 <== NOT EXECUTED 20040f0: 01 00 00 00 nop <== NOT EXECUTED 20040f4: 18 80 00 07 bgu 2004110 <== NOT EXECUTED 20040f8: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED 20040fc: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED 2004100: 32 80 00 0c bne,a 2004130 <== NOT EXECUTED 2004104: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 2004108: 10 80 00 a3 b 2004394 <== NOT EXECUTED 200410c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 2004110: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED 2004114: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004118: 02 80 00 c0 be 2004418 <== NOT EXECUTED 200411c: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED 2004120: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <== NOT EXECUTED 2004124: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004128: 02 80 00 a3 be 20043b4 <== NOT EXECUTED 200412c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 2004130: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 2004134: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 2004138: 82 10 61 b8 or %g1, 0x1b8, %g1 <== NOT EXECUTED 200413c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 2004140: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED 2004144: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004148: 02 80 00 c5 be 200445c <== NOT EXECUTED 200414c: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 2004150: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004154: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004158: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); 200415c: 10 80 00 c0 b 200445c <== NOT EXECUTED 2004160: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 2004164: 92 04 20 30 add %l0, 0x30, %o1 2004168: 40 00 27 00 call 200dd68 200416c: 94 10 20 24 mov 0x24, %o2 break; 2004170: 30 80 00 bb b,a 200445c case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 2004174: 90 04 20 30 add %l0, 0x30, %o0 2004178: 40 00 26 fc call 200dd68 200417c: 94 10 20 24 mov 0x24, %o2 /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 2004180: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004184: 80 88 62 00 btst 0x200, %g1 2004188: 02 80 00 20 be 2004208 200418c: 01 00 00 00 nop 2004190: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 2004194: 80 88 64 00 btst 0x400, %g1 2004198: 12 80 00 1c bne 2004208 200419c: 01 00 00 00 nop !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 20041a0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041a4: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED 20041a8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 20041ac: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20041b0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 20041b4: 02 80 00 15 be 2004208 <== NOT EXECUTED 20041b8: 01 00 00 00 nop <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 20041bc: 7f ff f6 d0 call 2001cfc <== NOT EXECUTED 20041c0: 01 00 00 00 nop <== NOT EXECUTED 20041c4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 20041c8: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20041cc: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 20041d0: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED 20041d4: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 20041d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20041dc: 02 80 00 09 be 2004200 <== NOT EXECUTED 20041e0: 01 00 00 00 nop <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 20041e4: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 20041e8: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 20041ec: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 20041f0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 20041f4: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 20041f8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20041fc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 2004200: 7f ff f6 c3 call 2001d0c <== NOT EXECUTED 2004204: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 2004208: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 200420c: 80 88 64 00 btst 0x400, %g1 2004210: 02 80 00 0c be 2004240 2004214: 03 00 00 04 sethi %hi(0x1000), %g1 2004218: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 200421c: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 2004220: 12 80 00 08 bne 2004240 <== NOT EXECUTED 2004224: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 2004228: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200422c: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED 2004230: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 2004234: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004238: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED 200423c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 2004240: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 2004244: 80 88 61 00 btst 0x100, %g1 2004248: 02 80 00 16 be 20042a0 200424c: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 2004250: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004254: 06 80 00 14 bl 20042a4 <== NOT EXECUTED 2004258: 01 00 00 00 nop <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 200425c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004260: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED 2004264: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 2004268: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 200426c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED 2004270: 02 80 00 08 be 2004290 <== NOT EXECUTED 2004274: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 2004278: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 200427c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004280: 02 80 00 04 be 2004290 <== NOT EXECUTED 2004284: 01 00 00 00 nop <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 2004288: 9f c0 40 00 call %g1 <== NOT EXECUTED 200428c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 2004290: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2004294: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED 2004298: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { 200429c: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED 20042a0: 80 a0 60 00 cmp %g1, 0 20042a4: 36 80 00 06 bge,a 20042bc 20042a8: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 tty->flow_ctrl |= FL_MDRTS; 20042ac: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20042b0: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED 20042b4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 20042b8: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED 20042bc: 03 00 00 04 sethi %hi(0x1000), %g1 20042c0: 80 88 80 01 btst %g2, %g1 20042c4: 22 80 00 06 be,a 20042dc 20042c8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 tty->flow_ctrl |= FL_MDXOF; 20042cc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 20042d0: 82 10 64 00 or %g1, 0x400, %g1 <== NOT EXECUTED 20042d4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 20042d8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED 20042dc: 80 88 64 00 btst 0x400, %g1 20042e0: 22 80 00 06 be,a 20042f8 20042e4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 20042e8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 20042ec: 82 10 62 00 or %g1, 0x200, %g1 20042f0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { 20042f4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 20042f8: 80 88 60 02 btst 2, %g1 20042fc: 32 80 00 17 bne,a 2004358 2004300: c0 24 20 6c clr [ %l0 + 0x6c ] tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; 2004304: 40 00 02 e9 call 2004ea8 <== NOT EXECUTED 2004308: e4 0c 20 46 ldub [ %l0 + 0x46 ], %l2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 200430c: 40 00 49 4a call 2016834 <.umul> <== NOT EXECUTED 2004310: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 2004314: 40 00 49 82 call 201691c <.udiv> <== NOT EXECUTED 2004318: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 200431c: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 2004320: d0 24 20 54 st %o0, [ %l0 + 0x54 ] <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 2004324: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004328: 02 80 00 08 be 2004348 <== NOT EXECUTED 200432c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 2004330: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 2004334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004338: 12 80 00 09 bne 200435c <== NOT EXECUTED 200433c: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; 2004340: 10 80 00 0a b 2004368 <== NOT EXECUTED 2004344: d0 24 20 74 st %o0, [ %l0 + 0x74 ] <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { 2004348: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200434c: 02 80 00 06 be 2004364 <== NOT EXECUTED 2004350: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 2004354: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 2004358: c0 24 20 70 clr [ %l0 + 0x70 ] tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 200435c: 10 80 00 03 b 2004368 2004360: c0 24 20 74 clr [ %l0 + 0x74 ] } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 2004364: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED } } } if (tty->device.setAttributes) 2004368: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1 200436c: 80 a0 60 00 cmp %g1, 0 2004370: 02 80 00 3b be 200445c 2004374: 01 00 00 00 nop (*tty->device.setAttributes)(tty->minor, &tty->termios); 2004378: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 200437c: 9f c0 40 00 call %g1 2004380: 92 04 20 30 add %l0, 0x30, %o1 2004384: 30 80 00 36 b,a 200445c break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 2004388: 7f ff fe 2d call 2003c3c 200438c: 90 10 00 10 mov %l0, %o0 break; 2004390: 30 80 00 33 b,a 200445c case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 2004394: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED 2004398: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 200439c: 10 80 00 30 b 200445c <== NOT EXECUTED 20043a0: c2 24 20 d8 st %g1, [ %l0 + 0xd8 ] <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 20043a4: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED 20043a8: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED break; 20043ac: 10 80 00 2c b 200445c <== NOT EXECUTED 20043b0: c2 24 20 e0 st %g1, [ %l0 + 0xe0 ] <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 20043b4: 03 00 80 66 sethi %hi(0x2019800), %g1 <== NOT EXECUTED 20043b8: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED 20043bc: 82 10 61 b8 or %g1, 0x1b8, %g1 <== NOT EXECUTED 20043c0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED 20043c4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED 20043c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20043cc: 22 80 00 06 be,a 20043e4 <== NOT EXECUTED 20043d0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 20043d4: 9f c0 40 00 call %g1 <== NOT EXECUTED 20043d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 20043dc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 20043e0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 20043e4: 07 00 80 66 sethi %hi(0x2019800), %g3 <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); 20043e8: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 20043ec: 86 10 e1 b8 or %g3, 0x1b8, %g3 <== NOT EXECUTED 20043f0: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED 20043f4: c2 00 c0 01 ld [ %g3 + %g1 ], %g1 <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); 20043f8: c4 24 20 cc st %g2, [ %l0 + 0xcc ] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 20043fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004400: 02 80 00 17 be 200445c <== NOT EXECUTED 2004404: c0 24 20 d0 clr [ %l0 + 0xd0 ] <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 2004408: 9f c0 40 00 call %g1 <== NOT EXECUTED 200440c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2004410: 10 80 00 13 b 200445c <== NOT EXECUTED 2004414: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 2004418: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED 200441c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED break; 2004420: 10 80 00 0f b 200445c <== NOT EXECUTED 2004424: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 2004428: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED 200442c: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED if ( rawnc < 0 ) 2004430: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED 2004434: 3c 80 00 05 bpos,a 2004448 <== NOT EXECUTED 2004438: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 200443c: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 2004440: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 2004444: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED 2004448: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED 200444c: c4 04 60 08 ld [ %l1 + 8 ], %g2 <== NOT EXECUTED 2004450: 86 21 00 03 sub %g4, %g3, %g3 <== NOT EXECUTED 2004454: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED 2004458: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 200445c: 40 00 04 a4 call 20056ec 2004460: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 args->ioctl_return = sc; 2004464: f0 24 60 0c st %i0, [ %l1 + 0xc ] return sc; } 2004468: 81 c7 e0 08 ret 200446c: 81 e8 00 00 restore 02004604 : #include int rtems_termios_number_to_baud( int32_t baud ) { 2004604: 82 10 00 08 mov %o0, %g1 int termios_baud; switch (baud) { 2004608: 80 a2 24 b0 cmp %o0, 0x4b0 200460c: 02 80 00 19 be 2004670 2004610: 90 10 20 09 mov 9, %o0 2004614: 80 a0 64 b0 cmp %g1, 0x4b0 2004618: 14 80 00 29 bg 20046bc 200461c: 05 00 00 12 sethi %hi(0x4800), %g2 2004620: 80 a0 60 86 cmp %g1, 0x86 2004624: 02 80 00 13 be 2004670 2004628: 90 10 20 04 mov 4, %o0 200462c: 80 a0 60 86 cmp %g1, 0x86 2004630: 14 80 00 12 bg 2004678 2004634: 80 a0 60 c8 cmp %g1, 0xc8 2004638: 80 a0 60 32 cmp %g1, 0x32 200463c: 02 80 00 0d be 2004670 2004640: 90 10 20 01 mov 1, %o0 2004644: 80 a0 60 32 cmp %g1, 0x32 2004648: 34 80 00 05 bg,a 200465c 200464c: 80 a0 60 4b cmp %g1, 0x4b 2004650: 80 a0 60 00 cmp %g1, 0 2004654: 10 80 00 52 b 200479c 2004658: 90 10 20 00 clr %o0 200465c: 02 80 00 05 be 2004670 2004660: 90 10 20 02 mov 2, %o0 2004664: 80 a0 60 6e cmp %g1, 0x6e 2004668: 12 80 00 4f bne 20047a4 200466c: 90 10 20 03 mov 3, %o0 2004670: 81 c3 e0 08 retl 2004674: 01 00 00 00 nop 2004678: 02 bf ff fe be 2004670 200467c: 90 10 20 06 mov 6, %o0 ! 6 2004680: 80 a0 60 c8 cmp %g1, 0xc8 2004684: 14 80 00 07 bg 20046a0 2004688: 80 a0 61 2c cmp %g1, 0x12c 200468c: 80 a0 60 96 cmp %g1, 0x96 2004690: 12 80 00 45 bne 20047a4 2004694: 90 10 20 05 mov 5, %o0 2004698: 81 c3 e0 08 retl 200469c: 01 00 00 00 nop 20046a0: 02 bf ff f4 be 2004670 20046a4: 90 10 20 07 mov 7, %o0 ! 7 20046a8: 80 a0 62 58 cmp %g1, 0x258 20046ac: 12 80 00 3e bne 20047a4 20046b0: 90 10 20 08 mov 8, %o0 20046b4: 81 c3 e0 08 retl 20046b8: 01 00 00 00 nop 20046bc: 84 10 a3 00 or %g2, 0x300, %g2 20046c0: 80 a0 40 02 cmp %g1, %g2 20046c4: 02 bf ff eb be 2004670 20046c8: 90 10 20 0e mov 0xe, %o0 20046cc: 80 a0 40 02 cmp %g1, %g2 20046d0: 14 80 00 18 bg 2004730 20046d4: 07 00 00 70 sethi %hi(0x1c000), %g3 20046d8: 80 a0 69 60 cmp %g1, 0x960 20046dc: 02 bf ff e5 be 2004670 20046e0: 90 10 20 0b mov 0xb, %o0 20046e4: 80 a0 69 60 cmp %g1, 0x960 20046e8: 34 80 00 07 bg,a 2004704 20046ec: 05 00 00 04 sethi %hi(0x1000), %g2 20046f0: 80 a0 67 08 cmp %g1, 0x708 20046f4: 12 80 00 2c bne 20047a4 20046f8: 90 10 20 0a mov 0xa, %o0 20046fc: 81 c3 e0 08 retl 2004700: 01 00 00 00 nop 2004704: 84 10 a2 c0 or %g2, 0x2c0, %g2 2004708: 80 a0 40 02 cmp %g1, %g2 200470c: 02 bf ff d9 be 2004670 2004710: 90 10 20 0c mov 0xc, %o0 2004714: 05 00 00 09 sethi %hi(0x2400), %g2 2004718: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 200471c: 80 a0 40 02 cmp %g1, %g2 2004720: 12 80 00 21 bne 20047a4 2004724: 90 10 20 0d mov 0xd, %o0 2004728: 81 c3 e0 08 retl 200472c: 01 00 00 00 nop case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; 2004730: 05 00 00 04 sethi %hi(0x1000), %g2 int32_t baud ) { int termios_baud; switch (baud) { 2004734: 86 10 e2 00 or %g3, 0x200, %g3 2004738: 80 a0 40 03 cmp %g1, %g3 200473c: 02 bf ff cd be 2004670 2004740: 90 10 a0 02 or %g2, 2, %o0 2004744: 80 a0 40 03 cmp %g1, %g3 2004748: 14 80 00 0f bg 2004784 200474c: 07 00 00 e1 sethi %hi(0x38400), %g3 2004750: 07 00 00 25 sethi %hi(0x9400), %g3 2004754: 86 10 e2 00 or %g3, 0x200, %g3 ! 9600 2004758: 80 a0 40 03 cmp %g1, %g3 200475c: 02 bf ff c5 be 2004670 2004760: 90 10 20 0f mov 0xf, %o0 case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; 2004764: 90 10 a0 01 or %g2, 1, %o0 int32_t baud ) { int termios_baud; switch (baud) { 2004768: 05 00 00 38 sethi %hi(0xe000), %g2 200476c: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 2004770: 80 a0 40 02 cmp %g1, %g2 2004774: 32 bf ff bf bne,a 2004670 2004778: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED 200477c: 81 c3 e0 08 retl 2004780: 01 00 00 00 nop 2004784: 80 a0 40 03 cmp %g1, %g3 2004788: 02 bf ff ba be 2004670 200478c: 90 10 a0 03 or %g2, 3, %o0 case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; 2004790: 90 10 a0 04 or %g2, 4, %o0 int32_t baud ) { int termios_baud; switch (baud) { 2004794: 05 00 01 c2 sethi %hi(0x70800), %g2 2004798: 80 a0 40 02 cmp %g1, %g2 200479c: 02 80 00 03 be 20047a8 20047a0: 01 00 00 00 nop case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; case 460800: termios_baud = B460800; break; 20047a4: 90 10 3f ff mov -1, %o0 ! ffffffff default: termios_baud = -1; break; } return termios_baud; } 20047a8: 81 c3 e0 08 retl 20047ac: 01 00 00 00 nop 02004638 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 2004638: 9d e3 bf a0 save %sp, -96, %sp struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 200463c: 03 00 80 67 sethi %hi(0x2019c00), %g1 2004640: d0 00 60 6c ld [ %g1 + 0x6c ], %o0 ! 2019c6c 2004644: 92 10 20 00 clr %o1 2004648: 40 00 03 e2 call 20055d0 200464c: 94 10 20 00 clr %o2 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2004650: a0 92 20 00 orcc %o0, 0, %l0 2004654: 12 80 01 05 bne 2004a68 2004658: 03 00 80 67 sethi %hi(0x2019c00), %g1 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 200465c: 10 80 00 0a b 2004684 2004660: e4 00 60 74 ld [ %g1 + 0x74 ], %l2 ! 2019c74 if ((tty->major == major) && (tty->minor == minor)) 2004664: 80 a0 40 18 cmp %g1, %i0 2004668: 32 80 00 07 bne,a 2004684 200466c: e4 04 80 00 ld [ %l2 ], %l2 2004670: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1 2004674: 80 a0 40 19 cmp %g1, %i1 2004678: 22 80 00 d6 be,a 20049d0 200467c: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 2004680: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED 2004684: 80 a4 a0 00 cmp %l2, 0 2004688: 32 bf ff f7 bne,a 2004664 200468c: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004690: 10 80 00 f8 b 2004a70 2004694: 90 10 20 01 mov 1, %o0 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 2004698: 03 00 80 65 sethi %hi(0x2019400), %g1 200469c: c2 00 60 78 ld [ %g1 + 0x78 ], %g1 ! 2019478 20046a0: c2 24 a0 64 st %g1, [ %l2 + 0x64 ] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 20046a4: d0 04 a0 64 ld [ %l2 + 0x64 ], %o0 20046a8: 40 00 18 55 call 200a7fc 20046ac: 01 00 00 00 nop if (tty->rawInBuf.theBuf == NULL) { 20046b0: 80 a2 20 00 cmp %o0, 0 20046b4: 12 80 00 08 bne 20046d4 20046b8: d0 24 a0 58 st %o0, [ %l2 + 0x58 ] free(tty); 20046bc: 40 00 16 f6 call 200a294 <== NOT EXECUTED 20046c0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 20046c4: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED 20046c8: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED 20046cc: 10 80 00 e5 b 2004a60 <== NOT EXECUTED 20046d0: d0 00 60 6c ld [ %g1 + 0x6c ], %o0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 20046d4: 03 00 80 65 sethi %hi(0x2019400), %g1 20046d8: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 ! 201947c 20046dc: c2 24 a0 88 st %g1, [ %l2 + 0x88 ] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 20046e0: d0 04 a0 88 ld [ %l2 + 0x88 ], %o0 20046e4: 40 00 18 46 call 200a7fc 20046e8: 01 00 00 00 nop if (tty->rawOutBuf.theBuf == NULL) { 20046ec: 80 a2 20 00 cmp %o0, 0 20046f0: 12 80 00 05 bne 2004704 20046f4: d0 24 a0 7c st %o0, [ %l2 + 0x7c ] free((void *)(tty->rawInBuf.theBuf)); 20046f8: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 20046fc: 10 80 00 0c b 200472c <== NOT EXECUTED 2004700: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 2004704: 03 00 80 65 sethi %hi(0x2019400), %g1 2004708: 40 00 18 3d call 200a7fc 200470c: d0 00 60 74 ld [ %g1 + 0x74 ], %o0 ! 2019474 if (tty->cbuf == NULL) { 2004710: 80 a2 20 00 cmp %o0, 0 2004714: 12 80 00 0c bne 2004744 2004718: d0 24 a0 1c st %o0, [ %l2 + 0x1c ] free((void *)(tty->rawOutBuf.theBuf)); 200471c: d0 04 a0 7c ld [ %l2 + 0x7c ], %o0 <== NOT EXECUTED 2004720: 40 00 16 dd call 200a294 <== NOT EXECUTED 2004724: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 2004728: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED 200472c: 40 00 16 da call 200a294 <== NOT EXECUTED 2004730: 01 00 00 00 nop <== NOT EXECUTED free(tty); 2004734: 40 00 16 d8 call 200a294 <== NOT EXECUTED 2004738: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 200473c: 10 80 00 c8 b 2004a5c <== NOT EXECUTED 2004740: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004744: 03 00 80 67 sethi %hi(0x2019c00), %g1 2004748: c2 00 60 74 ld [ %g1 + 0x74 ], %g1 ! 2019c74 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 200474c: c0 24 a0 d4 clr [ %l2 + 0xd4 ] tty->tty_snd.sw_arg = NULL; 2004750: c0 24 a0 d8 clr [ %l2 + 0xd8 ] tty->tty_rcv.sw_pfn = NULL; 2004754: c0 24 a0 dc clr [ %l2 + 0xdc ] tty->tty_rcv.sw_arg = NULL; 2004758: c0 24 a0 e0 clr [ %l2 + 0xe0 ] tty->tty_rcvwakeup = 0; 200475c: c0 24 a0 e4 clr [ %l2 + 0xe4 ] /* * link tty */ tty->forw = rtems_termios_ttyHead; 2004760: c2 24 80 00 st %g1, [ %l2 ] tty->back = NULL; if (rtems_termios_ttyHead != NULL) 2004764: 80 a0 60 00 cmp %g1, 0 2004768: 02 80 00 03 be 2004774 200476c: c0 24 a0 04 clr [ %l2 + 4 ] rtems_termios_ttyHead->back = tty; 2004770: e4 20 60 04 st %l2, [ %g1 + 4 ] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 2004774: 03 00 80 67 sethi %hi(0x2019c00), %g1 2004778: c4 00 60 70 ld [ %g1 + 0x70 ], %g2 ! 2019c70 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 200477c: 07 00 80 67 sethi %hi(0x2019c00), %g3 if (rtems_termios_ttyTail == NULL) 2004780: 80 a0 a0 00 cmp %g2, 0 2004784: 12 80 00 03 bne 2004790 2004788: e2 20 e0 74 st %l1, [ %g3 + 0x74 ] rtems_termios_ttyTail = tty; 200478c: e2 20 60 70 st %l1, [ %g1 + 0x70 ] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 2004790: 27 00 80 65 sethi %hi(0x2019400), %l3 2004794: d0 4c e0 80 ldsb [ %l3 + 0x80 ], %o0 ! 2019480 2004798: 03 15 14 9a sethi %hi(0x54526800), %g1 200479c: 82 10 61 00 or %g1, 0x100, %g1 ! 54526900 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 20047a0: f2 24 60 10 st %i1, [ %l1 + 0x10 ] tty->major = major; 20047a4: f0 24 60 0c st %i0, [ %l1 + 0xc ] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 20047a8: 90 12 00 01 or %o0, %g1, %o0 20047ac: 92 10 20 01 mov 1, %o1 20047b0: 94 10 20 54 mov 0x54, %o2 20047b4: 96 10 20 00 clr %o3 20047b8: 40 00 02 e4 call 2005348 20047bc: 98 04 60 14 add %l1, 0x14, %o4 rtems_build_name ('T', 'R', 'i', c), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->isem); if (sc != RTEMS_SUCCESSFUL) 20047c0: 80 a2 20 00 cmp %o0, 0 20047c4: 12 80 00 a3 bne 2004a50 20047c8: 03 15 14 9b sethi %hi(0x54526c00), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 20047cc: d0 4c e0 80 ldsb [ %l3 + 0x80 ], %o0 20047d0: 82 10 63 00 or %g1, 0x300, %g1 20047d4: 92 10 20 01 mov 1, %o1 20047d8: 90 12 00 01 or %o0, %g1, %o0 20047dc: 94 10 20 54 mov 0x54, %o2 20047e0: 96 10 20 00 clr %o3 20047e4: 40 00 02 d9 call 2005348 20047e8: 98 04 60 18 add %l1, 0x18, %o4 rtems_build_name ('T', 'R', 'o', c), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->osem); if (sc != RTEMS_SUCCESSFUL) 20047ec: 80 a2 20 00 cmp %o0, 0 20047f0: 12 80 00 98 bne 2004a50 20047f4: 03 15 14 9e sethi %hi(0x54527800), %g1 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 20047f8: d0 4c e0 80 ldsb [ %l3 + 0x80 ], %o0 20047fc: 92 10 20 00 clr %o1 2004800: 90 12 00 01 or %o0, %g1, %o0 2004804: 94 10 20 20 mov 0x20, %o2 2004808: 96 10 20 00 clr %o3 200480c: 40 00 02 cf call 2005348 2004810: 98 04 60 8c add %l1, 0x8c, %o4 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 2004814: 80 a2 20 00 cmp %o0, 0 2004818: 12 80 00 8e bne 2004a50 200481c: 92 10 00 1b mov %i3, %o1 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 2004820: c0 24 60 94 clr [ %l1 + 0x94 ] /* * Set callbacks */ tty->device = *callbacks; 2004824: 90 04 60 98 add %l1, 0x98, %o0 2004828: 40 00 25 50 call 200dd68 200482c: 94 10 20 20 mov 0x20, %o2 /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004830: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 2004834: 80 a0 60 02 cmp %g1, 2 2004838: 32 80 00 1a bne,a 20048a0 200483c: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 sc = rtems_task_create ( 2004840: d0 4c e0 80 ldsb [ %l3 + 0x80 ], %o0 <== NOT EXECUTED 2004844: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED 2004848: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 200484c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 2004850: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004854: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004858: 98 10 20 00 clr %o4 <== NOT EXECUTED 200485c: 40 00 03 d0 call 200579c <== NOT EXECUTED 2004860: 9a 04 60 c8 add %l1, 0xc8, %o5 <== NOT EXECUTED TERMIOS_TXTASK_STACKSIZE, RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, &tty->txTaskId); if (sc != RTEMS_SUCCESSFUL) 2004864: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004868: 12 80 00 7a bne 2004a50 <== NOT EXECUTED 200486c: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 2004870: d0 4c e0 80 ldsb [ %l3 + 0x80 ], %o0 <== NOT EXECUTED 2004874: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED 2004878: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 200487c: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED 2004880: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED 2004884: 98 10 20 00 clr %o4 <== NOT EXECUTED 2004888: 40 00 03 c5 call 200579c <== NOT EXECUTED 200488c: 9a 04 60 c4 add %l1, 0xc4, %o5 <== NOT EXECUTED TERMIOS_RXTASK_STACKSIZE, RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) 2004890: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004894: 12 80 00 6f bne 2004a50 <== NOT EXECUTED 2004898: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 200489c: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 <== NOT EXECUTED 20048a0: 80 a0 60 00 cmp %g1, 0 20048a4: 02 80 00 07 be 20048c0 20048a8: 03 00 80 65 sethi %hi(0x2019400), %g1 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 20048ac: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1 20048b0: 80 a0 60 02 cmp %g1, 2 20048b4: 12 80 00 0f bne 20048f0 20048b8: 84 10 20 03 mov 3, %g2 sc = rtems_semaphore_create ( 20048bc: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED 20048c0: d0 48 60 80 ldsb [ %g1 + 0x80 ], %o0 ! 2019480 <== NOT EXECUTED 20048c4: 03 15 14 9c sethi %hi(0x54527000), %g1 <== NOT EXECUTED 20048c8: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 <== NOT EXECUTED 20048cc: 92 10 20 00 clr %o1 <== NOT EXECUTED 20048d0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED 20048d4: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED 20048d8: 96 10 20 00 clr %o3 <== NOT EXECUTED 20048dc: 40 00 02 9b call 2005348 <== NOT EXECUTED 20048e0: 98 04 60 68 add %l1, 0x68, %o4 <== NOT EXECUTED rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 20048e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20048e8: 12 80 00 5a bne 2004a50 <== NOT EXECUTED 20048ec: 84 10 20 03 mov 3, %g2 <== NOT EXECUTED tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 20048f0: c4 2c 60 41 stb %g2, [ %l1 + 0x41 ] tty->termios.c_cc[VQUIT] = '\034'; 20048f4: 84 10 20 1c mov 0x1c, %g2 20048f8: c4 2c 60 42 stb %g2, [ %l1 + 0x42 ] tty->termios.c_cc[VERASE] = '\177'; 20048fc: 84 10 20 7f mov 0x7f, %g2 2004900: c4 2c 60 43 stb %g2, [ %l1 + 0x43 ] tty->termios.c_cc[VKILL] = '\025'; 2004904: 84 10 20 15 mov 0x15, %g2 2004908: c4 2c 60 44 stb %g2, [ %l1 + 0x44 ] tty->termios.c_cc[VEOF] = '\004'; 200490c: 84 10 20 04 mov 4, %g2 2004910: c4 2c 60 45 stb %g2, [ %l1 + 0x45 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 2004914: 84 10 20 11 mov 0x11, %g2 2004918: c4 2c 60 49 stb %g2, [ %l1 + 0x49 ] tty->termios.c_cc[VSTOP] = '\023'; 200491c: 84 10 20 13 mov 0x13, %g2 2004920: c4 2c 60 4a stb %g2, [ %l1 + 0x4a ] tty->termios.c_cc[VSUSP] = '\032'; 2004924: 84 10 20 1a mov 0x1a, %g2 2004928: c4 2c 60 4b stb %g2, [ %l1 + 0x4b ] tty->termios.c_cc[VREPRINT] = '\022'; 200492c: 84 10 20 12 mov 0x12, %g2 tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; 2004930: c0 24 60 b8 clr [ %l1 + 0xb8 ] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 2004934: c4 2c 60 4d stb %g2, [ %l1 + 0x4d ] /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 2004938: c8 04 60 64 ld [ %l1 + 0x64 ], %g4 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; 200493c: 84 10 20 0f mov 0xf, %g2 2004940: c4 2c 60 4e stb %g2, [ %l1 + 0x4e ] tty->termios.c_cc[VWERASE] = '\027'; 2004944: 84 10 20 17 mov 0x17, %g2 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 2004948: 89 31 20 01 srl %g4, 1, %g4 tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 200494c: c4 2c 60 4f stb %g2, [ %l1 + 0x4f ] tty->termios.c_cc[VLNEXT] = '\026'; 2004950: 84 10 20 16 mov 0x16, %g2 tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; 2004954: c0 2c 60 4c clrb [ %l1 + 0x4c ] tty->termios.c_cc[VEOL2] = '\000'; 2004958: c0 2c 60 51 clrb [ %l1 + 0x51 ] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 200495c: 03 00 80 65 sethi %hi(0x2019400), %g1 tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; 2004960: c4 2c 60 50 stb %g2, [ %l1 + 0x50 ] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 2004964: c4 08 60 80 ldub [ %g1 + 0x80 ], %g2 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 2004968: c8 24 60 bc st %g4, [ %l1 + 0xbc ] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 200496c: 09 00 00 09 sethi %hi(0x2400), %g4 2004970: 88 11 21 02 or %g4, 0x102, %g4 ! 2502 2004974: c8 24 60 30 st %g4, [ %l1 + 0x30 ] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004978: 09 00 00 06 sethi %hi(0x1800), %g4 200497c: 88 11 20 05 or %g4, 5, %g4 ! 1805 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; 2004980: c6 04 60 64 ld [ %l1 + 0x64 ], %g3 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 2004984: c8 24 60 34 st %g4, [ %l1 + 0x34 ] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 2004988: 88 10 28 bd mov 0x8bd, %g4 200498c: c8 24 60 38 st %g4, [ %l1 + 0x38 ] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 2004990: 09 00 00 20 sethi %hi(0x8000), %g4 2004994: 88 11 22 3b or %g4, 0x23b, %g4 ! 823b 2004998: c8 24 60 3c st %g4, [ %l1 + 0x3c ] tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; 200499c: 89 28 e0 01 sll %g3, 1, %g4 20049a0: 86 01 00 03 add %g4, %g3, %g3 20049a4: 87 30 e0 02 srl %g3, 2, %g3 20049a8: c6 24 60 c0 st %g3, [ %l1 + 0xc0 ] /* * Bump name characer */ if (c++ == 'z') 20049ac: 86 00 a0 01 add %g2, 1, %g3 20049b0: 85 28 a0 18 sll %g2, 0x18, %g2 20049b4: 85 38 a0 18 sra %g2, 0x18, %g2 20049b8: 80 a0 a0 7a cmp %g2, 0x7a 20049bc: 12 80 00 04 bne 20049cc 20049c0: c6 28 60 80 stb %g3, [ %g1 + 0x80 ] c = 'a'; 20049c4: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED 20049c8: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { 20049cc: c2 04 a0 08 ld [ %l2 + 8 ], %g1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 20049d0: c6 06 80 00 ld [ %i2 ], %g3 if (!tty->refcount++) { 20049d4: 84 00 60 01 add %g1, 1, %g2 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 20049d8: e4 20 e0 38 st %l2, [ %g3 + 0x38 ] if (!tty->refcount++) { 20049dc: 80 a0 60 00 cmp %g1, 0 20049e0: 12 80 00 1e bne 2004a58 20049e4: c4 24 a0 08 st %g2, [ %l2 + 8 ] if (tty->device.firstOpen) 20049e8: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1 20049ec: 80 a0 60 00 cmp %g1, 0 20049f0: 02 80 00 05 be 2004a04 20049f4: 90 10 00 18 mov %i0, %o0 (*tty->device.firstOpen)(major, minor, arg); 20049f8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 20049fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004a00: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2004a04: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1 2004a08: 80 a0 60 02 cmp %g1, 2 2004a0c: 12 80 00 14 bne 2004a5c 2004a10: 03 00 80 67 sethi %hi(0x2019c00), %g1 sc = rtems_task_start(tty->rxTaskId, 2004a14: d0 04 a0 c4 ld [ %l2 + 0xc4 ], %o0 <== NOT EXECUTED 2004a18: 13 00 80 12 sethi %hi(0x2004800), %o1 <== NOT EXECUTED 2004a1c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED 2004a20: 40 00 04 05 call 2005a34 <== NOT EXECUTED 2004a24: 92 12 63 08 or %o1, 0x308, %o1 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004a28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004a2c: 12 80 00 09 bne 2004a50 <== NOT EXECUTED 2004a30: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 2004a34: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED 2004a38: 13 00 80 12 sethi %hi(0x2004800), %o1 <== NOT EXECUTED 2004a3c: 40 00 03 fe call 2005a34 <== NOT EXECUTED 2004a40: 92 12 62 8c or %o1, 0x28c, %o1 ! 2004a8c <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 2004a44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004a48: 02 80 00 05 be 2004a5c <== NOT EXECUTED 2004a4c: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2004a50: 40 00 04 87 call 2005c6c <== NOT EXECUTED 2004a54: 01 00 00 00 nop <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 2004a58: 03 00 80 67 sethi %hi(0x2019c00), %g1 2004a5c: d0 00 60 6c ld [ %g1 + 0x6c ], %o0 ! 2019c6c 2004a60: 40 00 03 23 call 20056ec 2004a64: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } 2004a68: 81 c7 e0 08 ret 2004a6c: 91 e8 00 10 restore %g0, %l0, %o0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 2004a70: 40 00 15 c3 call 200a17c 2004a74: 92 10 20 e8 mov 0xe8, %o1 if (tty == NULL) { 2004a78: a4 92 20 00 orcc %o0, 0, %l2 2004a7c: 12 bf ff 07 bne 2004698 2004a80: a2 10 00 12 mov %l2, %l1 */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); 2004a84: 10 bf ff 11 b 20046c8 <== NOT EXECUTED 2004a88: 03 00 80 67 sethi %hi(0x2019c00), %g1 <== NOT EXECUTED 020033cc : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20033cc: 9d e3 bf a0 save %sp, -96, %sp const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 20033d0: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 20033d4: 92 10 00 18 mov %i0, %o1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 20033d8: 80 a0 60 00 cmp %g1, 0 20033dc: 12 80 00 08 bne 20033fc 20033e0: a2 10 00 18 mov %i0, %l1 (*tty->device.write)(tty->minor, (void *)buf, len); 20033e4: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 20033e8: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 20033ec: 9f c0 40 00 call %g1 20033f0: 94 10 00 19 mov %i1, %o2 return; 20033f4: 81 c7 e0 08 ret 20033f8: 81 e8 00 00 restore } newHead = tty->rawOutBuf.Head; 20033fc: e0 06 a0 80 ld [ %i2 + 0x80 ], %l0 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 2003400: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 2003404: 10 80 00 39 b 20034e8 <== NOT EXECUTED 2003408: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 200340c: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED 2003410: 40 00 4d ef call 2016bcc <.urem> <== NOT EXECUTED 2003414: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED rtems_interrupt_disable (level); 2003418: 7f ff fa 39 call 2001cfc <== NOT EXECUTED 200341c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 2003420: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 2003424: 30 80 00 0f b,a 2003460 <== NOT EXECUTED tty->rawOutBufState = rob_wait; rtems_interrupt_enable (level); 2003428: 7f ff fa 39 call 2001d0c <== NOT EXECUTED 200342c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2003430: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED 2003434: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003438: 40 00 08 66 call 20055d0 <== NOT EXECUTED 200343c: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2003440: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003444: 02 80 00 04 be 2003454 <== NOT EXECUTED 2003448: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred (sc); 200344c: 40 00 0a 08 call 2005c6c <== NOT EXECUTED 2003450: 01 00 00 00 nop <== NOT EXECUTED rtems_interrupt_disable (level); 2003454: 7f ff fa 2a call 2001cfc <== NOT EXECUTED 2003458: 01 00 00 00 nop <== NOT EXECUTED 200345c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { 2003460: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED 2003464: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 2003468: 22 bf ff f0 be,a 2003428 <== NOT EXECUTED 200346c: e8 26 a0 94 st %l4, [ %i2 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 2003470: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 <== NOT EXECUTED 2003474: c6 0c 40 00 ldub [ %l1 ], %g3 <== NOT EXECUTED 2003478: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 <== NOT EXECUTED 200347c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2003480: c2 06 a0 94 ld [ %i2 + 0x94 ], %g1 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; 2003484: e0 26 a0 80 st %l0, [ %i2 + 0x80 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 2003488: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200348c: 32 80 00 14 bne,a 20034dc <== NOT EXECUTED 2003490: a2 04 60 01 inc %l1 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2003494: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 2003498: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED 200349c: 12 80 00 0b bne 20034c8 <== NOT EXECUTED 20034a0: 01 00 00 00 nop <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 20034a4: c4 06 a0 84 ld [ %i2 + 0x84 ], %g2 <== NOT EXECUTED tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, 20034a8: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 <== NOT EXECUTED 20034ac: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED 20034b0: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED 20034b4: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED 20034b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20034bc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 20034c0: 10 80 00 06 b 20034d8 <== NOT EXECUTED 20034c4: e6 26 a0 94 st %l3, [ %i2 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; 20034c8: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED 20034cc: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED 20034d0: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 20034d4: e6 26 a0 94 st %l3, [ %i2 + 0x94 ] <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 20034d8: a2 04 60 01 inc %l1 <== NOT EXECUTED /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); 20034dc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED 20034e0: 7f ff fa 0b call 2001d0c <== NOT EXECUTED 20034e4: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 20034e8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 20034ec: 12 bf ff c8 bne 200340c <== NOT EXECUTED 20034f0: 01 00 00 00 nop <== NOT EXECUTED 20034f4: 81 c7 e0 08 ret <== NOT EXECUTED 20034f8: 81 e8 00 00 restore <== NOT EXECUTED 02003cb8 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003cb8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003cbc: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED uint32_t count = args->count; 2003cc0: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003cc4: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; 2003cc8: ea 06 20 10 ld [ %i0 + 0x10 ], %l5 <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003ccc: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2003cd0: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003cd4: 92 10 20 00 clr %o1 <== NOT EXECUTED 2003cd8: 40 00 06 3e call 20055d0 <== NOT EXECUTED 2003cdc: 94 10 20 00 clr %o2 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2003ce0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED 2003ce4: 12 80 00 10 bne 2003d24 <== NOT EXECUTED 2003ce8: 05 00 80 66 sethi %hi(0x2019800), %g2 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 2003cec: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED 2003cf0: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2003cf4: 84 10 a1 b8 or %g2, 0x1b8, %g2 <== NOT EXECUTED 2003cf8: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED 2003cfc: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 2003d00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d04: 02 80 00 0a be 2003d2c <== NOT EXECUTED 2003d08: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 2003d0c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003d10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003d14: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 2003d18: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED 2003d1c: 40 00 06 74 call 20056ec <== NOT EXECUTED 2003d20: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED return sc; 2003d24: 81 c7 e0 08 ret <== NOT EXECUTED 2003d28: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->cindex == tty->ccount) { 2003d2c: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED 2003d30: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003d34: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003d38: 12 80 00 be bne 2004030 <== NOT EXECUTED 2003d3c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2003d40: c4 04 20 28 ld [ %l0 + 0x28 ], %g2 <== NOT EXECUTED if (tty->device.pollRead != NULL 2003d44: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2003d48: c4 24 20 2c st %g2, [ %l0 + 0x2c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 2003d4c: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2003d50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d54: 02 80 00 4c be 2003e84 <== NOT EXECUTED 2003d58: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 2003d5c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED 2003d60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003d64: 12 80 00 49 bne 2003e88 <== NOT EXECUTED 2003d68: 2f 00 80 65 sethi %hi(0x2019400), %l7 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2003d6c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003d70: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003d74: 02 80 00 13 be 2003dc0 <== NOT EXECUTED 2003d78: 01 00 00 00 nop <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003d7c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003d80: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003d84: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2003d88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003d8c: 16 80 00 06 bge 2003da4 <== NOT EXECUTED 2003d90: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED rtems_task_wake_after (1); 2003d94: 40 00 07 44 call 2005aa4 <== NOT EXECUTED 2003d98: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED { int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003d9c: 10 bf ff f9 b 2003d80 <== NOT EXECUTED 2003da0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) 2003da4: 7f ff ff 5f call 2003b20 <== NOT EXECUTED 2003da8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003dac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003db0: 22 bf ff f4 be,a 2003d80 <== NOT EXECUTED 2003db4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2003db8: 10 80 00 9e b 2004030 <== NOT EXECUTED 2003dbc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 2003dc0: 40 00 04 42 call 2004ec8 <== NOT EXECUTED 2003dc4: 01 00 00 00 nop <== NOT EXECUTED 2003dc8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003dcc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003dd0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003dd4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED if (n < 0) { 2003dd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003ddc: 36 80 00 1c bge,a 2003e4c <== NOT EXECUTED 2003de0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 2003de4: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2 <== NOT EXECUTED 2003de8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 2003dec: 02 80 00 0a be 2003e14 <== NOT EXECUTED 2003df0: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 2003df4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003df8: 02 80 00 11 be 2003e3c <== NOT EXECUTED 2003dfc: 01 00 00 00 nop <== NOT EXECUTED 2003e00: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED 2003e04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e08: 02 80 00 0d be 2003e3c <== NOT EXECUTED 2003e0c: 01 00 00 00 nop <== NOT EXECUTED 2003e10: 30 80 00 04 b,a 2003e20 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 2003e14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e18: 02 80 00 86 be 2004030 <== NOT EXECUTED 2003e1c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 2003e20: 40 00 04 2a call 2004ec8 <== NOT EXECUTED 2003e24: 01 00 00 00 nop <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 2003e28: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED 2003e2c: 90 22 00 13 sub %o0, %l3, %o0 <== NOT EXECUTED 2003e30: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003e34: 18 80 00 7f bgu 2004030 <== NOT EXECUTED 2003e38: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 2003e3c: 40 00 07 1a call 2005aa4 <== NOT EXECUTED 2003e40: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); 2003e44: 10 bf ff e3 b 2003dd0 <== NOT EXECUTED 2003e48: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 2003e4c: 7f ff ff 35 call 2003b20 <== NOT EXECUTED 2003e50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2003e54: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2003e58: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003e5c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003e60: 16 80 00 73 bge 200402c <== NOT EXECUTED 2003e64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2003e68: 22 bf ff da be,a 2003dd0 <== NOT EXECUTED 2003e6c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003e70: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED 2003e74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003e78: 22 bf ff d6 be,a 2003dd0 <== NOT EXECUTED 2003e7c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED 2003e80: 30 bf ff d0 b,a 2003dc0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003e84: 2f 00 80 65 sethi %hi(0x2019400), %l7 <== NOT EXECUTED * Fill the input buffer from the raw input queue */ static rtems_status_code fillBufferQueue (struct rtems_termios_tty *tty) { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; 2003e88: e8 04 20 74 ld [ %l0 + 0x74 ], %l4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003e8c: ae 15 e0 74 or %l7, 0x74, %l7 <== NOT EXECUTED if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, 2003e90: ac 04 20 49 add %l0, 0x49, %l6 <== NOT EXECUTED 2003e94: 10 80 00 4b b 2003fc0 <== NOT EXECUTED 2003e98: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2003e9c: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED 2003ea0: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003ea4: 40 00 4b 4a call 2016bcc <.urem> <== NOT EXECUTED 2003ea8: 90 02 20 01 inc %o0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2003eac: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 2003eb0: e8 08 40 08 ldub [ %g1 + %o0 ], %l4 <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2003eb4: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 2003eb8: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2003ebc: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED 2003ec0: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED 2003ec4: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED 2003ec8: 40 00 4b 41 call 2016bcc <.urem> <== NOT EXECUTED 2003ecc: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED 2003ed0: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED 2003ed4: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2003ed8: 3a 80 00 27 bcc,a 2003f74 <== NOT EXECUTED 2003edc: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 2003ee0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003ee4: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 2003ee8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 2003eec: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003ef0: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED 2003ef4: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED 2003ef8: 12 80 00 11 bne 2003f3c <== NOT EXECUTED 2003efc: 01 00 00 00 nop <== NOT EXECUTED 2003f00: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED 2003f04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f08: 22 80 00 07 be,a 2003f24 <== NOT EXECUTED 2003f0c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 2003f10: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 2003f14: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED 2003f18: 02 80 00 09 be 2003f3c <== NOT EXECUTED 2003f1c: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, 2003f20: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003f24: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED 2003f28: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED 2003f2c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003f30: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2003f34: 10 80 00 10 b 2003f74 <== NOT EXECUTED 2003f38: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 2003f3c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2003f40: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED 2003f44: 22 80 00 0c be,a 2003f74 <== NOT EXECUTED 2003f48: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 2003f4c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2003f50: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; 2003f54: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED 2003f58: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2003f5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2003f60: 22 80 00 05 be,a 2003f74 <== NOT EXECUTED 2003f64: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 2003f68: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003f6c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2003f70: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED 2003f74: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED 2003f78: 02 80 00 09 be 2003f9c <== NOT EXECUTED 2003f7c: 90 0d 20 ff and %l4, 0xff, %o0 <== NOT EXECUTED if (siproc (c, tty)) 2003f80: 7f ff fe e8 call 2003b20 <== NOT EXECUTED 2003f84: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 2003f88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2003f8c: 32 80 00 0c bne,a 2003fbc <== NOT EXECUTED 2003f90: a6 10 20 00 clr %l3 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2003f94: 10 80 00 0b b 2003fc0 <== NOT EXECUTED 2003f98: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 2003f9c: 7f ff fe e1 call 2003b20 <== NOT EXECUTED 2003fa0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2003fa4: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED 2003fa8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003fac: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fb0: 26 80 00 04 bl,a 2003fc0 <== NOT EXECUTED 2003fb4: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED 2003fb8: a6 10 20 00 clr %l3 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2003fbc: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2003fc0: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED 2003fc4: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 2003fc8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fcc: 02 80 00 08 be 2003fec <== NOT EXECUTED 2003fd0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2003fd4: c2 05 c0 00 ld [ %l7 ], %g1 <== NOT EXECUTED 2003fd8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2003fdc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 2003fe0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2003fe4: 06 bf ff ae bl 2003e9c <== NOT EXECUTED 2003fe8: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2003fec: 02 80 00 11 be 2004030 <== NOT EXECUTED 2003ff0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 2003ff4: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED 2003ff8: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED 2003ffc: 40 00 05 75 call 20055d0 <== NOT EXECUTED 2004000: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 2004004: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2004008: 02 bf ff ee be 2003fc0 <== NOT EXECUTED 200400c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2004010: 30 80 00 08 b,a 2004030 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 2004014: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED count--; 2004018: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 200401c: c2 08 80 01 ldub [ %g2 + %g1 ], %g1 <== NOT EXECUTED 2004020: c2 2d 40 00 stb %g1, [ %l5 ] <== NOT EXECUTED 2004024: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED 2004028: aa 05 60 01 inc %l5 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 200402c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED 2004030: 22 80 00 08 be,a 2004050 <== NOT EXECUTED 2004034: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2004038: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED 200403c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED 2004040: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 2004044: 06 bf ff f4 bl 2004014 <== NOT EXECUTED 2004048: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 200404c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2004050: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2004054: a4 20 40 12 sub %g1, %l2, %l2 <== NOT EXECUTED 2004058: e4 24 60 1c st %l2, [ %l1 + 0x1c ] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); 200405c: 40 00 05 a4 call 20056ec <== NOT EXECUTED 2004060: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED return sc; } 2004064: 81 c7 e0 08 ret <== NOT EXECUTED 2004068: 81 e8 00 00 restore <== NOT EXECUTED 02002e4c : * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) { 2002e4c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 2002e50: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2002e54: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED 2002e58: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED 2002e5c: 12 80 00 10 bne 2002e9c <== NOT EXECUTED 2002e60: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 2002e64: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2002e68: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2002e6c: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED 2002e70: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002e74: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2002e78: 7f ff fb a1 call 2001cfc <== NOT EXECUTED 2002e7c: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2002e80: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002e84: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2002e88: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002e8c: 82 10 60 02 or %g1, 2, %g1 <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2002e90: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2002e94: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002e98: 30 80 00 12 b,a 2002ee0 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 2002e9c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED 2002ea0: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED 2002ea4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002ea8: 12 80 00 12 bne 2002ef0 <== NOT EXECUTED 2002eac: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED * FIXME: this .write call will generate another * dequeue callback. This will advance the "Tail" in the data * buffer, although the corresponding data is not yet out! * Therefore the dequeue "length" should be reduced by 1 */ (*tty->device.write)(tty->minor, 2002eb0: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED 2002eb4: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED 2002eb8: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002ebc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2002ec0: 7f ff fb 8f call 2001cfc <== NOT EXECUTED 2002ec4: 01 00 00 00 nop <== NOT EXECUTED tty->t_dqlen--; 2002ec8: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002ecc: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2002ed0: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002ed4: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2002ed8: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2002edc: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002ee0: 7f ff fb 8b call 2001d0c <== NOT EXECUTED 2002ee4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED 2002ee8: 81 c7 e0 08 ret <== NOT EXECUTED 2002eec: 81 e8 00 00 restore <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2002ef0: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED 2002ef4: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED 2002ef8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 2002efc: 12 80 00 0a bne 2002f24 <== NOT EXECUTED 2002f00: 01 00 00 00 nop <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 2002f04: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED 2002f08: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002f0c: 12 bf ff f7 bne 2002ee8 <== NOT EXECUTED 2002f10: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2002f14: 40 00 09 f6 call 20056ec <== NOT EXECUTED 2002f18: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED 2002f1c: 81 c7 e0 08 ret <== NOT EXECUTED 2002f20: 81 e8 00 00 restore <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 2002f24: 7f ff fb 76 call 2001cfc <== NOT EXECUTED 2002f28: 01 00 00 00 nop <== NOT EXECUTED len = tty->t_dqlen; 2002f2c: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 <== NOT EXECUTED tty->t_dqlen = 0; 2002f30: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED rtems_interrupt_enable(level); 2002f34: 7f ff fb 76 call 2001d0c <== NOT EXECUTED 2002f38: 01 00 00 00 nop <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 2002f3c: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED 2002f40: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED 2002f44: 40 00 4f 22 call 2016bcc <.urem> <== NOT EXECUTED 2002f48: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 2002f4c: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 2002f50: d0 24 20 84 st %o0, [ %l0 + 0x84 ] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 2002f54: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 2002f58: 12 80 00 04 bne 2002f68 <== NOT EXECUTED 2002f5c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2002f60: 40 00 09 e3 call 20056ec <== NOT EXECUTED 2002f64: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 2002f68: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2002f6c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2002f70: 12 80 00 0b bne 2002f9c <== NOT EXECUTED 2002f74: 01 00 00 00 nop <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2002f78: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2002f7c: c0 24 20 94 clr [ %l0 + 0x94 ] <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 2002f80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2002f84: 02 80 00 29 be 2003028 <== NOT EXECUTED 2002f88: b0 10 20 00 clr %i0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 2002f8c: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED 2002f90: 9f c0 40 00 call %g1 <== NOT EXECUTED 2002f94: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED 2002f98: 30 80 00 24 b,a 2003028 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 2002f9c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2002fa0: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED 2002fa4: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED 2002fa8: 12 80 00 0c bne 2002fd8 <== NOT EXECUTED 2002fac: 01 00 00 00 nop <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 2002fb0: 7f ff fb 53 call 2001cfc <== NOT EXECUTED 2002fb4: 01 00 00 00 nop <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 2002fb8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2002fbc: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 2002fc0: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 2002fc4: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 2002fc8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ rtems_interrupt_enable(level); 2002fcc: 7f ff fb 50 call 2001d0c <== NOT EXECUTED 2002fd0: b0 10 20 00 clr %i0 <== NOT EXECUTED 2002fd4: 30 80 00 15 b,a 2003028 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 2002fd8: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED 2002fdc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 2002fe0: 08 80 00 04 bleu 2002ff0 <== NOT EXECUTED 2002fe4: 01 00 00 00 nop <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 2002fe8: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 <== NOT EXECUTED 2002fec: 30 80 00 02 b,a 2002ff4 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 2002ff0: f0 04 20 80 ld [ %l0 + 0x80 ], %i0 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 2002ff4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED 2002ff8: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED 2002ffc: 02 80 00 03 be 2003008 <== NOT EXECUTED 2003000: b0 26 00 11 sub %i0, %l1, %i0 <== NOT EXECUTED 2003004: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 2003008: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED 200300c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED 2003010: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 2003014: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003018: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 200301c: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2003020: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003024: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 2003028: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED } return nToSend; } 200302c: 81 c7 e0 08 ret <== NOT EXECUTED 2003030: 81 e8 00 00 restore <== NOT EXECUTED 02004b08 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 2004b08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b0c: a2 07 bf f8 add %fp, -8, %l1 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 2004b10: a0 07 bf ff add %fp, -1, %l0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b14: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 2004b18: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004b1c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004b20: 40 00 01 0b call 2004f4c <== NOT EXECUTED 2004b24: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 2004b28: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2004b2c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004b30: 22 80 00 07 be,a 2004b4c <== NOT EXECUTED 2004b34: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED tty->rxTaskId = 0; 2004b38: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004b3c: 40 00 03 65 call 20058d0 <== NOT EXECUTED 2004b40: 90 10 20 00 clr %o0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b44: 10 bf ff f5 b 2004b18 <== NOT EXECUTED 2004b48: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 2004b4c: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004b50: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED if (c != EOF) { 2004b54: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED 2004b58: 02 bf ff ef be 2004b14 <== NOT EXECUTED 2004b5c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 2004b60: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 2004b64: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2004b68: 7f ff f9 52 call 20030b0 <== NOT EXECUTED 2004b6c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 2004b70: 10 bf ff ea b 2004b18 <== NOT EXECUTED 2004b74: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED 02002e34 : void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 2002e34: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED 2002e38: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2002e3c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 2002e40: 40 00 08 a5 call 20050d4 <== NOT EXECUTED 2002e44: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 2002e48: 01 00 00 00 nop 02004a8c : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 2004a8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a90: 23 00 80 66 sethi %hi(0x2019800), %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a94: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004a98: a2 14 61 b8 or %l1, 0x1b8, %l1 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004a9c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 2004aa0: 94 10 20 00 clr %o2 <== NOT EXECUTED 2004aa4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2004aa8: 40 00 01 29 call 2004f4c <== NOT EXECUTED 2004aac: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 2004ab0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED 2004ab4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 2004ab8: 02 80 00 07 be 2004ad4 <== NOT EXECUTED 2004abc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED tty->txTaskId = 0; 2004ac0: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 2004ac4: 40 00 03 83 call 20058d0 <== NOT EXECUTED 2004ac8: 90 10 20 00 clr %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004acc: 10 bf ff f5 b 2004aa0 <== NOT EXECUTED 2004ad0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2004ad4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED 2004ad8: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED 2004adc: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED 2004ae0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED 2004ae4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2004ae8: 02 80 00 04 be 2004af8 <== NOT EXECUTED 2004aec: 01 00 00 00 nop <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2004af0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2004af4: 01 00 00 00 nop <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 2004af8: 7f ff f8 d5 call 2002e4c <== NOT EXECUTED 2004afc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 2004b00: 10 bf ff e8 b 2004aa0 <== NOT EXECUTED 2004b04: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED 02003b70 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003b70: 9d e3 bf a0 save %sp, -96, %sp rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003b74: c2 06 00 00 ld [ %i0 ], %g1 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2003b78: a2 10 00 18 mov %i0, %l1 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2003b7c: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003b80: 92 10 20 00 clr %o1 2003b84: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 2003b88: 40 00 06 92 call 20055d0 2003b8c: 94 10 20 00 clr %o2 if (sc != RTEMS_SUCCESSFUL) 2003b90: b0 92 20 00 orcc %o0, 0, %i0 2003b94: 12 80 00 0f bne 2003bd0 2003b98: 03 00 80 66 sethi %hi(0x2019800), %g1 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2003b9c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 2003ba0: 85 28 a0 05 sll %g2, 5, %g2 2003ba4: 82 10 61 b8 or %g1, 0x1b8, %g1 2003ba8: 82 00 40 02 add %g1, %g2, %g1 2003bac: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2003bb0: 80 a0 60 00 cmp %g1, 0 2003bb4: 02 80 00 09 be 2003bd8 2003bb8: 92 10 00 11 mov %l1, %o1 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2003bbc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2003bc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 2003bc4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003bc8: 40 00 06 c9 call 20056ec <== NOT EXECUTED 2003bcc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED return sc; 2003bd0: 81 c7 e0 08 ret <== NOT EXECUTED 2003bd4: 81 e8 00 00 restore <== NOT EXECUTED } if (tty->termios.c_oflag & OPOST) { 2003bd8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 2003bdc: d2 04 60 14 ld [ %l1 + 0x14 ], %o1 2003be0: 80 88 60 01 btst 1, %g1 2003be4: 02 80 00 0e be 2003c1c 2003be8: d0 04 60 10 ld [ %l1 + 0x10 ], %o0 uint32_t count = args->count; 2003bec: a6 10 00 09 mov %o1, %l3 char *buffer = args->buffer; while (count--) 2003bf0: 10 80 00 06 b 2003c08 2003bf4: a4 10 00 08 mov %o0, %l2 oproc (*buffer++, tty); 2003bf8: a6 04 ff ff add %l3, -1, %l3 2003bfc: a4 04 a0 01 inc %l2 2003c00: 7f ff fe 3f call 20034fc 2003c04: 92 10 00 10 mov %l0, %o1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2003c08: 80 a4 e0 00 cmp %l3, 0 2003c0c: 32 bf ff fb bne,a 2003bf8 2003c10: d0 0c 80 00 ldub [ %l2 ], %o0 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2003c14: 10 80 00 05 b 2003c28 2003c18: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2003c1c: 7f ff fd ec call 20033cc <== NOT EXECUTED 2003c20: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED args->bytes_moved = args->count; 2003c24: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2003c28: c2 24 60 1c st %g1, [ %l1 + 0x1c ] } rtems_semaphore_release (tty->osem); 2003c2c: 40 00 06 b0 call 20056ec 2003c30: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 return sc; } 2003c34: 81 c7 e0 08 ret 2003c38: 81 e8 00 00 restore 020072a8 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 20072a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 20072ac: 2b 08 00 00 sethi %hi(0x20000000), %l5 <== NOT EXECUTED 20072b0: aa 8e 00 15 andcc %i0, %l5, %l5 <== NOT EXECUTED 20072b4: 02 80 00 11 be 20072f8 <== NOT EXECUTED 20072b8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED { if (rtems_panic_in_progress++) 20072bc: 05 00 80 94 sethi %hi(0x2025000), %g2 <== NOT EXECUTED 20072c0: c2 00 a3 40 ld [ %g2 + 0x340 ], %g1 ! 2025340 <== NOT EXECUTED 20072c4: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED 20072c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20072cc: 02 80 00 06 be 20072e4 <== NOT EXECUTED 20072d0: c6 20 a3 40 st %g3, [ %g2 + 0x340 ] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 20072d4: 03 00 80 95 sethi %hi(0x2025400), %g1 <== NOT EXECUTED 20072d8: c4 00 61 20 ld [ %g1 + 0x120 ], %g2 ! 2025520 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 20072dc: 84 00 a0 01 inc %g2 <== NOT EXECUTED 20072e0: c4 20 61 20 st %g2, [ %g1 + 0x120 ] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 20072e4: 03 00 80 94 sethi %hi(0x2025000), %g1 <== NOT EXECUTED 20072e8: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 2025340 <== NOT EXECUTED 20072ec: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 20072f0: 34 80 00 5a bg,a 2007458 <== NOT EXECUTED 20072f4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 20072f8: 03 00 80 92 sethi %hi(0x2024800), %g1 <== NOT EXECUTED 20072fc: c2 00 63 10 ld [ %g1 + 0x310 ], %g1 ! 2024b10 <_impure_ptr> <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 2007300: 27 1c 00 00 sethi %hi(0x70000000), %l3 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 2007304: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED 2007308: 40 00 34 e8 call 20146a8 <== NOT EXECUTED 200730c: a2 10 20 00 clr %l1 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 2007310: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED 2007314: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 2007318: 02 80 00 05 be 200732c <== NOT EXECUTED 200731c: a6 2c 00 13 andn %l0, %l3, %l3 <== NOT EXECUTED local_errno = errno; 2007320: 40 00 33 d9 call 2014284 <__errno> <== NOT EXECUTED 2007324: 01 00 00 00 nop <== NOT EXECUTED 2007328: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); 200732c: 29 00 80 92 sethi %hi(0x2024800), %l4 <== NOT EXECUTED 2007330: c2 05 23 10 ld [ %l4 + 0x310 ], %g1 ! 2024b10 <_impure_ptr> <== NOT EXECUTED 2007334: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2007338: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 200733c: 40 00 4c 55 call 201a490 <== NOT EXECUTED 2007340: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED if (status) 2007344: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED 2007348: 02 80 00 0c be 2007378 <== NOT EXECUTED 200734c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 2007350: c2 05 23 10 ld [ %l4 + 0x310 ], %g1 <== NOT EXECUTED 2007354: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007358: 7f ff ff cd call 200728c <== NOT EXECUTED 200735c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 2007360: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 2007364: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 2007368: 92 12 62 68 or %o1, 0x268, %o1 <== NOT EXECUTED 200736c: 40 00 35 a3 call 20149f8 <== NOT EXECUTED 2007370: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 2007374: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED if (local_errno) 2007378: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 200737c: 22 80 00 1c be,a 20073ec <== NOT EXECUTED 2007380: 27 00 80 92 sethi %hi(0x2024800), %l3 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 2007384: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED 2007388: 04 80 00 11 ble 20073cc <== NOT EXECUTED 200738c: 03 00 80 92 sethi %hi(0x2024800), %g1 <== NOT EXECUTED 2007390: 40 00 38 ed call 2015744 <== NOT EXECUTED 2007394: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2007398: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED 200739c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073a0: 02 80 00 0b be 20073cc <== NOT EXECUTED 20073a4: 03 00 80 92 sethi %hi(0x2024800), %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 20073a8: c2 00 63 10 ld [ %g1 + 0x310 ], %g1 ! 2024b10 <_impure_ptr> <== NOT EXECUTED 20073ac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 20073b0: 40 00 38 e5 call 2015744 <== NOT EXECUTED 20073b4: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED 20073b8: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 20073bc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 20073c0: 92 12 62 78 or %o1, 0x278, %o1 <== NOT EXECUTED 20073c4: 10 80 00 07 b 20073e0 <== NOT EXECUTED 20073c8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 20073cc: c2 00 63 10 ld [ %g1 + 0x310 ], %g1 <== NOT EXECUTED 20073d0: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 20073d4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20073d8: 92 12 62 88 or %o1, 0x288, %o1 <== NOT EXECUTED 20073dc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED 20073e0: 40 00 35 86 call 20149f8 <== NOT EXECUTED 20073e4: 27 00 80 92 sethi %hi(0x2024800), %l3 <== NOT EXECUTED 20073e8: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 20073ec: c2 04 e3 10 ld [ %l3 + 0x310 ], %g1 <== NOT EXECUTED 20073f0: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 20073f4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 20073f8: 40 00 35 80 call 20149f8 <== NOT EXECUTED 20073fc: 92 12 60 d0 or %o1, 0xd0, %o1 <== NOT EXECUTED (void) fflush(stderr); 2007400: c2 04 e3 10 ld [ %l3 + 0x310 ], %g1 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); 2007404: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED (void) fflush(stderr); 2007408: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED 200740c: 40 00 34 a7 call 20146a8 <== NOT EXECUTED 2007410: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 2007414: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED 2007418: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED 200741c: 02 80 00 0f be 2007458 <== NOT EXECUTED 2007420: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 2007424: 22 80 00 08 be,a 2007444 <== NOT EXECUTED 2007428: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 200742c: 13 00 80 8b sethi %hi(0x2022c00), %o1 <== NOT EXECUTED 2007430: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007434: 40 00 00 18 call 2007494 <== NOT EXECUTED 2007438: 92 12 62 a0 or %o1, 0x2a0, %o1 <== NOT EXECUTED _exit(local_errno); 200743c: 40 00 02 e8 call 2007fdc <_exit> <== NOT EXECUTED 2007440: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 2007444: 90 10 20 00 clr %o0 <== NOT EXECUTED 2007448: 40 00 00 13 call 2007494 <== NOT EXECUTED 200744c: 92 12 62 b8 or %o1, 0x2b8, %o1 <== NOT EXECUTED abort(); 2007450: 40 00 33 7f call 201424c <== NOT EXECUTED 2007454: 01 00 00 00 nop <== NOT EXECUTED } } return chars_written; } 2007458: 81 c7 e0 08 ret <== NOT EXECUTED 200745c: 81 e8 00 00 restore <== NOT EXECUTED 02025718 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025718: 9d e3 bf a0 save %sp, -96, %sp 202571c: 27 1f ff ff sethi %hi(0x7ffffc00), %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 2025720: 2b 00 81 8b sethi %hi(0x2062c00), %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2025724: 29 00 81 8b sethi %hi(0x2062c00), %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025728: a6 14 e3 ff or %l3, 0x3ff, %l3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 202572c: aa 15 61 b8 or %l5, 0x1b8, %l5 limit++; continue; } sign = 1; } if (!isdigit(c)) 2025730: a8 15 21 a8 or %l4, 0x1a8, %l4 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 2025734: a2 10 20 00 clr %l1 2025738: a0 10 20 00 clr %l0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 202573c: c2 06 20 04 ld [ %i0 + 4 ], %g1 2025740: 82 00 7f ff add %g1, -1, %g1 2025744: 80 a0 60 00 cmp %g1, 0 2025748: 16 80 00 07 bge 2025764 202574c: c2 26 20 04 st %g1, [ %i0 + 4 ] 2025750: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED 2025754: 40 00 74 b4 call 2042a24 <__srget_r> <== NOT EXECUTED 2025758: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 202575c: 10 80 00 06 b 2025774 <== NOT EXECUTED 2025760: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED 2025764: c2 06 00 00 ld [ %i0 ], %g1 2025768: 84 00 60 01 add %g1, 1, %g2 202576c: e4 08 40 00 ldub [ %g1 ], %l2 2025770: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') 2025774: 80 a4 a0 3a cmp %l2, 0x3a 2025778: 02 80 00 22 be 2025800 202577c: 80 a4 60 00 cmp %l1, 0 break; if (sign == 0) { 2025780: 32 80 00 09 bne,a 20257a4 2025784: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED if (c == '-') { 2025788: 80 a4 a0 2d cmp %l2, 0x2d 202578c: 12 80 00 05 bne 20257a0 2025790: a2 10 20 01 mov 1, %l1 sign = -1; limit++; 2025794: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; 2025798: 10 bf ff e9 b 202573c <== NOT EXECUTED 202579c: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 20257a0: c2 05 00 00 ld [ %l4 ], %g1 20257a4: 82 00 40 12 add %g1, %l2, %g1 20257a8: c2 08 60 01 ldub [ %g1 + 1 ], %g1 20257ac: 80 88 60 04 btst 4, %g1 20257b0: 02 80 00 1c be 2025820 20257b4: 90 10 00 13 mov %l3, %o0 return 0; d = c - '0'; if ((i > (limit / 10)) 20257b8: 40 00 bf df call 2055734 <.udiv> 20257bc: 92 10 20 0a mov 0xa, %o1 20257c0: 80 a4 00 08 cmp %l0, %o0 20257c4: 18 80 00 17 bgu 2025820 20257c8: 01 00 00 00 nop 20257cc: 12 80 00 08 bne 20257ec 20257d0: a4 04 bf d0 add %l2, -48, %l2 20257d4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED 20257d8: 40 00 c0 83 call 20559e4 <.urem> <== NOT EXECUTED 20257dc: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED 20257e0: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED 20257e4: 18 80 00 0f bgu 2025820 <== NOT EXECUTED 20257e8: 01 00 00 00 nop <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 20257ec: 83 2c 20 03 sll %l0, 3, %g1 20257f0: a1 2c 20 01 sll %l0, 1, %l0 20257f4: a0 04 00 01 add %l0, %g1, %l0 20257f8: 10 bf ff d1 b 202573c 20257fc: a0 04 80 10 add %l2, %l0, %l0 } if (sign == 0) 2025800: 02 80 00 08 be 2025820 2025804: 90 10 00 11 mov %l1, %o0 return 0; *val = i * sign; 2025808: 92 10 00 10 mov %l0, %o1 202580c: 40 00 bf 90 call 205564c <.umul> 2025810: b0 10 20 01 mov 1, %i0 2025814: d0 26 40 00 st %o0, [ %i1 ] return 1; 2025818: 81 c7 e0 08 ret 202581c: 81 e8 00 00 restore } 2025820: 81 c7 e0 08 ret <== NOT EXECUTED 2025824: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02025828 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 2025828: 9d e3 bf a0 save %sp, -96, %sp int c; *name = *bufp; 202582c: c2 06 80 00 ld [ %i2 ], %g1 for (;;) { c = getc(fp); 2025830: 21 00 81 8b sethi %hi(0x2062c00), %l0 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 2025834: c2 26 40 00 st %g1, [ %i1 ] for (;;) { c = getc(fp); 2025838: a0 14 21 b8 or %l0, 0x1b8, %l0 202583c: c2 06 20 04 ld [ %i0 + 4 ], %g1 2025840: 82 00 7f ff add %g1, -1, %g1 2025844: 80 a0 60 00 cmp %g1, 0 2025848: 16 80 00 07 bge 2025864 202584c: c2 26 20 04 st %g1, [ %i0 + 4 ] 2025850: d0 04 00 00 ld [ %l0 ], %o0 2025854: 40 00 74 74 call 2042a24 <__srget_r> 2025858: 92 10 00 18 mov %i0, %o1 if (c == ':') { 202585c: 10 80 00 07 b 2025878 2025860: 80 a2 20 3a cmp %o0, 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 2025864: c2 06 00 00 ld [ %i0 ], %g1 2025868: 84 00 60 01 add %g1, 1, %g2 202586c: d0 08 40 00 ldub [ %g1 ], %o0 2025870: c4 26 00 00 st %g2, [ %i0 ] if (c == ':') { 2025874: 80 a2 20 3a cmp %o0, 0x3a 2025878: 12 80 00 07 bne 2025894 202587c: 80 a2 20 0a cmp %o0, 0xa if (nlFlag) 2025880: 80 a7 20 00 cmp %i4, 0 2025884: 22 80 00 1a be,a 20258ec 2025888: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 202588c: 81 c7 e0 08 ret <== NOT EXECUTED 2025890: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == ':') { if (nlFlag) return 0; break; } if (c == '\n') { 2025894: 12 80 00 07 bne 20258b0 2025898: 80 a2 3f ff cmp %o0, -1 if (!nlFlag) 202589c: 80 a7 20 00 cmp %i4, 0 20258a0: 32 80 00 13 bne,a 20258ec 20258a4: c2 06 80 00 ld [ %i2 ], %g1 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 20258a8: 81 c7 e0 08 ret <== NOT EXECUTED 20258ac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED if (c == '\n') { if (!nlFlag) return 0; break; } if (c == EOF) 20258b0: 22 80 00 17 be,a 202590c 20258b4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; if (*nleft < 2) 20258b8: c2 06 c0 00 ld [ %i3 ], %g1 20258bc: 80 a0 60 01 cmp %g1, 1 20258c0: 28 80 00 13 bleu,a 202590c 20258c4: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; **bufp = c; 20258c8: c2 06 80 00 ld [ %i2 ], %g1 20258cc: d0 28 40 00 stb %o0, [ %g1 ] ++(*bufp); 20258d0: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 20258d4: c2 06 c0 00 ld [ %i3 ], %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 20258d8: 84 00 a0 01 inc %g2 --(*nleft); 20258dc: 82 00 7f ff add %g1, -1, %g1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 20258e0: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); } 20258e4: 10 bf ff d6 b 202583c 20258e8: c2 26 c0 00 st %g1, [ %i3 ] **bufp = '\0'; 20258ec: c0 28 40 00 clrb [ %g1 ] ++(*bufp); 20258f0: c4 06 80 00 ld [ %i2 ], %g2 --(*nleft); 20258f4: c2 06 c0 00 ld [ %i3 ], %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 20258f8: 84 00 a0 01 inc %g2 --(*nleft); 20258fc: 82 00 7f ff add %g1, -1, %g1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 2025900: c4 26 80 00 st %g2, [ %i2 ] --(*nleft); 2025904: c2 26 c0 00 st %g1, [ %i3 ] 2025908: b0 10 20 01 mov 1, %i0 return 1; } 202590c: 81 c7 e0 08 ret 2025910: 81 e8 00 00 restore 02025914 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 2025914: 9d e3 bf 98 save %sp, -104, %sp int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025918: 98 10 20 00 clr %o4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 202591c: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2025920: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025924: a2 07 a0 4c add %fp, 0x4c, %l1 2025928: a0 07 a0 50 add %fp, 0x50, %l0 202592c: 90 10 00 18 mov %i0, %o0 2025930: 92 10 00 19 mov %i1, %o1 2025934: 94 10 00 11 mov %l1, %o2 2025938: 7f ff ff bc call 2025828 202593c: 96 10 00 10 mov %l0, %o3 2025940: 80 a2 20 00 cmp %o0, 0 2025944: 02 80 00 41 be 2025a48 2025948: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 202594c: 92 06 60 04 add %i1, 4, %o1 2025950: 94 10 00 11 mov %l1, %o2 2025954: 96 10 00 10 mov %l0, %o3 2025958: 7f ff ff b4 call 2025828 202595c: 98 10 20 00 clr %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025960: 80 a2 20 00 cmp %o0, 0 2025964: 02 80 00 39 be 2025a48 2025968: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 202596c: 7f ff ff 6b call 2025718 2025970: 92 07 bf fc add %fp, -4, %o1 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025974: 80 a2 20 00 cmp %o0, 0 2025978: 02 80 00 34 be 2025a48 202597c: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 2025980: 94 10 00 11 mov %l1, %o2 2025984: 96 10 00 10 mov %l0, %o3 2025988: 92 07 bf f8 add %fp, -8, %o1 202598c: 7f ff ff a7 call 2025828 2025990: 98 10 20 01 mov 1, %o4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 2025994: 80 a2 20 00 cmp %o0, 0 2025998: 02 80 00 2c be 2025a48 202599c: c2 07 bf fc ld [ %fp + -4 ], %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20259a0: 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; 20259a4: c2 36 60 08 sth %g1, [ %i1 + 8 ] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20259a8: 84 10 00 03 mov %g3, %g2 20259ac: 10 80 00 05 b 20259c0 20259b0: 82 10 20 01 mov 1, %g1 if(*cp == ',') memcount++; 20259b4: 88 19 20 2c xor %g4, 0x2c, %g4 20259b8: 80 a0 00 04 cmp %g0, %g4 20259bc: 82 60 7f ff subx %g1, -1, %g1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 20259c0: c8 48 80 00 ldsb [ %g2 ], %g4 20259c4: 80 a1 20 00 cmp %g4, 0 20259c8: 12 bf ff fb bne 20259b4 20259cc: 84 00 a0 01 inc %g2 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 20259d0: c4 07 a0 50 ld [ %fp + 0x50 ], %g2 20259d4: 83 28 60 02 sll %g1, 2, %g1 20259d8: 82 00 60 13 add %g1, 0x13, %g1 20259dc: 80 a0 80 01 cmp %g2, %g1 20259e0: 0a 80 00 1a bcs 2025a48 20259e4: 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; 20259e8: 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); 20259ec: 82 00 60 0f add %g1, 0xf, %g1 20259f0: 82 08 7f f0 and %g1, -16, %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 20259f4: 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); 20259f8: c2 26 60 0c st %g1, [ %i1 + 0xc ] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 20259fc: 10 80 00 09 b 2025a20 2025a00: c2 07 bf f8 ld [ %fp + -8 ], %g1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 2025a04: 32 80 00 08 bne,a 2025a24 2025a08: 82 00 60 01 inc %g1 *cp = '\0'; 2025a0c: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 2025a10: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED 2025a14: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED 2025a18: 84 00 a0 01 inc %g2 <== NOT EXECUTED 2025a1c: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED 2025a20: 82 00 60 01 inc %g1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 2025a24: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 2025a28: 80 a0 e0 00 cmp %g3, 0 2025a2c: 32 bf ff f6 bne,a 2025a04 2025a30: 80 a0 e0 2c cmp %g3, 0x2c if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 2025a34: c2 06 60 0c ld [ %i1 + 0xc ], %g1 2025a38: 85 28 a0 02 sll %g2, 2, %g2 2025a3c: c0 20 40 02 clr [ %g1 + %g2 ] return 1; 2025a40: 81 c7 e0 08 ret 2025a44: 91 e8 20 01 restore %g0, 1, %o0 } 2025a48: 81 c7 e0 08 ret <== NOT EXECUTED 2025a4c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 02025a98 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2025a98: 9d e3 bf 98 save %sp, -104, %sp int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025a9c: 98 10 20 00 clr %o4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 2025aa0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] 2025aa4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025aa8: a2 07 a0 4c add %fp, 0x4c, %l1 2025aac: a0 07 a0 50 add %fp, 0x50, %l0 2025ab0: 90 10 00 18 mov %i0, %o0 2025ab4: 92 10 00 19 mov %i1, %o1 2025ab8: 94 10 00 11 mov %l1, %o2 2025abc: 7f ff ff 5b call 2025828 2025ac0: 96 10 00 10 mov %l0, %o3 2025ac4: 80 a2 20 00 cmp %o0, 0 2025ac8: 02 80 00 39 be 2025bac 2025acc: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 2025ad0: 92 06 60 04 add %i1, 4, %o1 2025ad4: 94 10 00 11 mov %l1, %o2 2025ad8: 96 10 00 10 mov %l0, %o3 2025adc: 7f ff ff 53 call 2025828 2025ae0: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025ae4: 80 a2 20 00 cmp %o0, 0 2025ae8: 02 80 00 31 be 2025bac 2025aec: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 2025af0: 7f ff ff 0a call 2025718 2025af4: 92 07 bf fc add %fp, -4, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025af8: 80 a2 20 00 cmp %o0, 0 2025afc: 02 80 00 2c be 2025bac 2025b00: 90 10 00 18 mov %i0, %o0 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 2025b04: 7f ff ff 05 call 2025718 2025b08: 92 07 bf f8 add %fp, -8, %o1 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025b0c: 80 a2 20 00 cmp %o0, 0 2025b10: 02 80 00 27 be 2025bac 2025b14: 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) 2025b18: 92 06 60 0c add %i1, 0xc, %o1 2025b1c: 94 10 00 11 mov %l1, %o2 2025b20: 96 10 00 10 mov %l0, %o3 2025b24: 7f ff ff 41 call 2025828 2025b28: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025b2c: 80 a2 20 00 cmp %o0, 0 2025b30: 02 80 00 1f be 2025bac 2025b34: 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) 2025b38: 92 06 60 10 add %i1, 0x10, %o1 2025b3c: 94 10 00 11 mov %l1, %o2 2025b40: 96 10 00 10 mov %l0, %o3 2025b44: 7f ff ff 39 call 2025828 2025b48: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025b4c: 80 a2 20 00 cmp %o0, 0 2025b50: 02 80 00 17 be 2025bac 2025b54: 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) 2025b58: 92 06 60 14 add %i1, 0x14, %o1 2025b5c: 94 10 00 11 mov %l1, %o2 2025b60: 96 10 00 10 mov %l0, %o3 2025b64: 7f ff ff 31 call 2025828 2025b68: 98 10 20 00 clr %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025b6c: 80 a2 20 00 cmp %o0, 0 2025b70: 02 80 00 0f be 2025bac 2025b74: 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)) 2025b78: 94 10 00 11 mov %l1, %o2 2025b7c: 96 10 00 10 mov %l0, %o3 2025b80: 92 06 60 18 add %i1, 0x18, %o1 2025b84: 7f ff ff 29 call 2025828 2025b88: 98 10 20 01 mov 1, %o4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 2025b8c: 80 a2 20 00 cmp %o0, 0 2025b90: 02 80 00 07 be 2025bac 2025b94: 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; 2025b98: c2 36 60 08 sth %g1, [ %i1 + 8 ] pwd->pw_gid = pwgid; 2025b9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 2025ba0: c2 36 60 0a sth %g1, [ %i1 + 0xa ] return 1; 2025ba4: 81 c7 e0 08 ret 2025ba8: 91 e8 20 01 restore %g0, 1, %o0 } 2025bac: 81 c7 e0 08 ret <== NOT EXECUTED 2025bb0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 020256b4 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 20256b4: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 20256b8: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 ! 20625d4 <== NOT EXECUTED 20256bc: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED return 0; } 20256c0: 81 c3 e0 08 retl <== NOT EXECUTED 20256c4: 90 10 20 00 clr %o0 <== NOT EXECUTED 02025cd4 : return NULL; return &grent; } void setgrent(void) { 2025cd4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 2025cd8: 7f ff ff c9 call 2025bfc <== NOT EXECUTED 2025cdc: 01 00 00 00 nop <== NOT EXECUTED if (group_fp != NULL) 2025ce0: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 2025ce4: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 20660bc <== NOT EXECUTED 2025ce8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025cec: 22 80 00 05 be,a 2025d00 <== NOT EXECUTED 2025cf0: 11 00 81 5f sethi %hi(0x2057c00), %o0 <== NOT EXECUTED fclose(group_fp); 2025cf4: 40 00 5d d4 call 203d444 <== NOT EXECUTED 2025cf8: 01 00 00 00 nop <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 2025cfc: 11 00 81 5f sethi %hi(0x2057c00), %o0 <== NOT EXECUTED 2025d00: 13 00 81 87 sethi %hi(0x2061c00), %o1 <== NOT EXECUTED 2025d04: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED 2025d08: 40 00 60 1e call 203dd80 <== NOT EXECUTED 2025d0c: 92 12 60 d0 or %o1, 0xd0, %o1 <== NOT EXECUTED 2025d10: 03 00 81 98 sethi %hi(0x2066000), %g1 <== NOT EXECUTED 2025d14: d0 20 60 bc st %o0, [ %g1 + 0xbc ] ! 20660bc <== NOT EXECUTED } 2025d18: 81 c7 e0 08 ret <== NOT EXECUTED 2025d1c: 81 e8 00 00 restore <== NOT EXECUTED 02025ec8 : return NULL; return &pwent; } void setpwent(void) { 2025ec8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED init_etc_passwd_group(); 2025ecc: 7f ff ff 4c call 2025bfc <== NOT EXECUTED 2025ed0: 01 00 00 00 nop <== NOT EXECUTED if (passwd_fp != NULL) 2025ed4: 03 00 81 97 sethi %hi(0x2065c00), %g1 <== NOT EXECUTED 2025ed8: d0 00 63 d4 ld [ %g1 + 0x3d4 ], %o0 ! 2065fd4 <== NOT EXECUTED 2025edc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2025ee0: 22 80 00 05 be,a 2025ef4 <== NOT EXECUTED 2025ee4: 11 00 81 5f sethi %hi(0x2057c00), %o0 <== NOT EXECUTED fclose(passwd_fp); 2025ee8: 40 00 5d 57 call 203d444 <== NOT EXECUTED 2025eec: 01 00 00 00 nop <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 2025ef0: 11 00 81 5f sethi %hi(0x2057c00), %o0 <== NOT EXECUTED 2025ef4: 13 00 81 87 sethi %hi(0x2061c00), %o1 <== NOT EXECUTED 2025ef8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED 2025efc: 40 00 5f a1 call 203dd80 <== NOT EXECUTED 2025f00: 92 12 60 d0 or %o1, 0xd0, %o1 <== NOT EXECUTED 2025f04: 03 00 81 97 sethi %hi(0x2065c00), %g1 <== NOT EXECUTED 2025f08: d0 20 63 d4 st %o0, [ %g1 + 0x3d4 ] ! 2065fd4 <== NOT EXECUTED } 2025f0c: 81 c7 e0 08 ret <== NOT EXECUTED 2025f10: 81 e8 00 00 restore <== NOT EXECUTED 02005cfc : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 2005cfc: 03 00 81 89 sethi %hi(0x2062400), %g1 <== NOT EXECUTED 2005d00: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 ! 20625d4 <== NOT EXECUTED 2005d04: d0 30 60 30 sth %o0, [ %g1 + 0x30 ] <== NOT EXECUTED return 0; } 2005d08: 81 c3 e0 08 retl <== NOT EXECUTED 2005d0c: 90 10 20 00 clr %o0 <== NOT EXECUTED 02003b20 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2003b20: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 2003b24: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED 2003b28: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED 2003b2c: 02 80 00 0e be 2003b64 <== NOT EXECUTED 2003b30: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2003b34: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED 2003b38: 94 10 20 00 clr %o2 <== NOT EXECUTED 2003b3c: 40 00 06 a5 call 20055d0 <== NOT EXECUTED 2003b40: 92 10 20 00 clr %o1 <== NOT EXECUTED i = iproc (c, tty); 2003b44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2003b48: 7f ff ff 7f call 2003944 <== NOT EXECUTED 2003b4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 2003b50: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2003b54: 40 00 06 e6 call 20056ec <== NOT EXECUTED 2003b58: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2003b5c: 81 c7 e0 08 ret <== NOT EXECUTED 2003b60: 81 e8 00 00 restore <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); i = iproc (c, tty); rtems_semaphore_release (tty->osem); } else { i = iproc (c, tty); 2003b64: 7f ff ff 78 call 2003944 <== NOT EXECUTED 2003b68: 81 e8 00 00 restore <== NOT EXECUTED 2003b6c: 01 00 00 00 nop 02007334 : int _STAT_NAME( const char *path, struct stat *buf ) { 2007334: 9d e3 bf 88 save %sp, -120, %sp /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 2007338: 80 a6 60 00 cmp %i1, 0 200733c: 12 80 00 06 bne 2007354 2007340: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EFAULT ); 2007344: 40 00 d7 e8 call 203d2e4 <__errno> 2007348: b0 10 3f ff mov -1, %i0 ! ffffffff 200734c: 10 80 00 20 b 20073cc 2007350: 82 10 20 0e mov 0xe, %g1 status = rtems_filesystem_evaluate_path( path, strlen( path ), 2007354: 40 00 f3 0f call 2043f90 2007358: 90 10 00 18 mov %i0, %o0 200735c: a0 07 bf ec add %fp, -20, %l0 2007360: 92 10 00 08 mov %o0, %o1 2007364: 94 10 20 00 clr %o2 2007368: 90 10 00 18 mov %i0, %o0 200736c: 96 10 00 10 mov %l0, %o3 2007370: 98 10 20 01 mov 1, %o4 2007374: 7f ff f9 e8 call 2005b14 2007378: b0 10 3f ff mov -1, %i0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 200737c: 80 a2 20 00 cmp %o0, 0 2007380: 12 80 00 14 bne 20073d0 2007384: c2 07 bf f4 ld [ %fp + -12 ], %g1 return -1; if ( !loc.handlers->fstat_h ){ 2007388: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 200738c: 80 a0 60 00 cmp %g1, 0 2007390: 12 80 00 12 bne 20073d8 2007394: 92 10 20 00 clr %o1 rtems_filesystem_freenode( &loc ); 2007398: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200739c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073a0: 02 80 00 08 be 20073c0 <== NOT EXECUTED 20073a4: 01 00 00 00 nop <== NOT EXECUTED 20073a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 20073ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 20073b0: 02 80 00 04 be 20073c0 <== NOT EXECUTED 20073b4: 01 00 00 00 nop <== NOT EXECUTED 20073b8: 9f c0 40 00 call %g1 <== NOT EXECUTED 20073bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 20073c0: 40 00 d7 c9 call 203d2e4 <__errno> <== NOT EXECUTED 20073c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 20073c8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 20073cc: c2 22 00 00 st %g1, [ %o0 ] 20073d0: 81 c7 e0 08 ret 20073d4: 81 e8 00 00 restore /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 20073d8: 94 10 20 48 mov 0x48, %o2 20073dc: 40 00 e5 28 call 204087c 20073e0: 90 10 00 19 mov %i1, %o0 status = (*loc.handlers->fstat_h)( &loc, buf ); 20073e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 20073e8: 92 10 00 19 mov %i1, %o1 20073ec: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 20073f0: 9f c0 40 00 call %g1 20073f4: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &loc ); 20073f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 20073fc: 80 a0 60 00 cmp %g1, 0 2007400: 02 bf ff f4 be 20073d0 2007404: b0 10 00 08 mov %o0, %i0 2007408: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200740c: 80 a0 60 00 cmp %g1, 0 2007410: 02 80 00 04 be 2007420 2007414: 01 00 00 00 nop 2007418: 9f c0 40 00 call %g1 200741c: 90 10 00 10 mov %l0, %o0 return status; } 2007420: 81 c7 e0 08 ret 2007424: 81 e8 00 00 restore 02026c58 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 2026c58: 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 ) ) 2026c5c: 40 00 74 cd call 2043f90 <== NOT EXECUTED 2026c60: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026c64: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED 2026c68: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED 2026c6c: 94 10 20 00 clr %o2 <== NOT EXECUTED 2026c70: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 2026c74: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED 2026c78: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED 2026c7c: 7f ff 7b a6 call 2005b14 <== NOT EXECUTED 2026c80: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026c84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2026c88: 12 80 00 0b bne 2026cb4 <== NOT EXECUTED 2026c8c: 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; 2026c90: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 2026c94: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 2026c98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026c9c: 12 80 00 08 bne 2026cbc <== NOT EXECUTED 2026ca0: 92 10 20 00 clr %o1 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026ca4: 40 00 59 90 call 203d2e4 <__errno> <== NOT EXECUTED 2026ca8: 01 00 00 00 nop <== NOT EXECUTED 2026cac: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2026cb0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026cb4: 81 c7 e0 08 ret <== NOT EXECUTED 2026cb8: 81 e8 00 00 restore <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 2026cbc: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED 2026cc0: 40 00 66 ef call 204087c <== NOT EXECUTED 2026cc4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 2026cc8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED 2026ccc: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED 2026cd0: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED 2026cd4: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026cd8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 2026cdc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 2026ce0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026ce4: 02 bf ff f4 be 2026cb4 <== NOT EXECUTED 2026ce8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 2026cec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 2026cf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026cf4: 02 80 00 04 be 2026d04 <== NOT EXECUTED 2026cf8: 01 00 00 00 nop <== NOT EXECUTED 2026cfc: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026d00: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED return result; } 2026d04: 81 c7 e0 08 ret <== NOT EXECUTED 2026d08: 81 e8 00 00 restore <== NOT EXECUTED 02026d0c : int symlink( const char *actualpath, const char *sympath ) { 2026d0c: 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 ); 2026d10: c2 4e 40 00 ldsb [ %i1 ], %g1 2026d14: 80 a0 60 5c cmp %g1, 0x5c 2026d18: 02 80 00 07 be 2026d34 2026d1c: a0 10 00 18 mov %i0, %l0 2026d20: 80 a0 60 2f cmp %g1, 0x2f 2026d24: 02 80 00 04 be 2026d34 2026d28: 80 a0 60 00 cmp %g1, 0 2026d2c: 12 80 00 0a bne 2026d54 2026d30: 03 00 81 89 sethi %hi(0x2062400), %g1 2026d34: 03 00 81 89 sethi %hi(0x2062400), %g1 2026d38: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 ! 20625d4 2026d3c: 90 07 bf e8 add %fp, -24, %o0 2026d40: 92 02 60 18 add %o1, 0x18, %o1 2026d44: 40 00 66 3b call 2040630 2026d48: 94 10 20 14 mov 0x14, %o2 2026d4c: 10 80 00 08 b 2026d6c 2026d50: 90 10 20 01 mov 1, %o0 2026d54: d2 00 61 d4 ld [ %g1 + 0x1d4 ], %o1 2026d58: 90 07 bf e8 add %fp, -24, %o0 2026d5c: 92 02 60 04 add %o1, 4, %o1 2026d60: 40 00 66 34 call 2040630 2026d64: 94 10 20 14 mov 0x14, %o2 2026d68: 90 10 20 00 clr %o0 if ( !loc.ops->evalformake_h ) { 2026d6c: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026d70: c2 00 60 04 ld [ %g1 + 4 ], %g1 2026d74: 80 a0 60 00 cmp %g1, 0 2026d78: 02 80 00 14 be 2026dc8 2026d7c: 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 ); 2026d80: 94 07 bf fc add %fp, -4, %o2 2026d84: b2 07 bf e8 add %fp, -24, %i1 if ( result != 0 ) 2026d88: 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 ); 2026d8c: 9f c0 40 00 call %g1 2026d90: 92 10 00 19 mov %i1, %o1 if ( result != 0 ) 2026d94: 80 a2 20 00 cmp %o0, 0 2026d98: 12 80 00 10 bne 2026dd8 2026d9c: c4 07 bf f4 ld [ %fp + -12 ], %g2 return -1; if ( !loc.ops->symlink_h ) { 2026da0: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1 2026da4: 80 a0 60 00 cmp %g1, 0 2026da8: 12 80 00 0e bne 2026de0 2026dac: d4 07 bf fc ld [ %fp + -4 ], %o2 rtems_filesystem_freenode( &loc ); 2026db0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026db4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026db8: 02 80 00 04 be 2026dc8 <== NOT EXECUTED 2026dbc: 01 00 00 00 nop <== NOT EXECUTED 2026dc0: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026dc4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026dc8: 40 00 59 47 call 203d2e4 <__errno> <== NOT EXECUTED 2026dcc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026dd0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026dd4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026dd8: 81 c7 e0 08 ret 2026ddc: 81 e8 00 00 restore } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 2026de0: 92 10 00 10 mov %l0, %o1 2026de4: 9f c0 40 00 call %g1 2026de8: 90 10 00 19 mov %i1, %o0 rtems_filesystem_freenode( &loc ); 2026dec: c2 07 bf f4 ld [ %fp + -12 ], %g1 2026df0: 80 a0 60 00 cmp %g1, 0 2026df4: 02 bf ff f9 be 2026dd8 2026df8: b0 10 00 08 mov %o0, %i0 2026dfc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026e00: 80 a0 60 00 cmp %g1, 0 2026e04: 02 80 00 04 be 2026e14 2026e08: 01 00 00 00 nop 2026e0c: 9f c0 40 00 call %g1 2026e10: 90 10 00 19 mov %i1, %o0 return result; } 2026e14: 81 c7 e0 08 ret 2026e18: 81 e8 00 00 restore 02011e3c : int tcsetattr( int fd, int opt, struct termios *tp ) { 2011e3c: 9d e3 bf a0 save %sp, -96, %sp switch (opt) { 2011e40: 80 a6 60 00 cmp %i1, 0 2011e44: 02 80 00 10 be 2011e84 2011e48: 80 a6 60 01 cmp %i1, 1 2011e4c: 02 80 00 08 be 2011e6c <== NOT EXECUTED 2011e50: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 2011e54: 40 00 0f 7b call 2015c40 <__errno> <== NOT EXECUTED 2011e58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2011e5c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2011e60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2011e64: 81 c7 e0 08 ret <== NOT EXECUTED 2011e68: 81 e8 00 00 restore <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 2011e6c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED 2011e70: 40 00 0b dc call 2014de0 <== NOT EXECUTED 2011e74: 94 10 20 00 clr %o2 <== NOT EXECUTED 2011e78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2011e7c: 26 80 00 04 bl,a 2011e8c <== NOT EXECUTED 2011e80: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 2011e84: 40 00 0b d7 call 2014de0 2011e88: 93 e8 20 02 restore %g0, 2, %o1 } } 2011e8c: 81 c7 e0 08 ret <== NOT EXECUTED 2011e90: 81 e8 00 00 restore <== NOT EXECUTED 0200d13c : #include int unlink( const char *path ) { 200d13c: 9d e3 bf 78 save %sp, -136, %sp /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 200d140: 7f ff d3 b2 call 2002008 200d144: 90 10 00 18 mov %i0, %o0 if ( parentpathlen == 0 ) 200d148: a6 92 20 00 orcc %o0, 0, %l3 200d14c: 32 80 00 17 bne,a 200d1a8 200d150: 90 10 00 18 mov %i0, %o0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 200d154: c2 4e 00 00 ldsb [ %i0 ], %g1 200d158: 80 a0 60 5c cmp %g1, 0x5c 200d15c: 02 80 00 06 be 200d174 200d160: 80 a0 60 2f cmp %g1, 0x2f 200d164: 02 80 00 04 be 200d174 200d168: 80 a0 60 00 cmp %g1, 0 200d16c: 12 80 00 07 bne 200d188 <== NOT EXECUTED 200d170: 03 00 80 65 sethi %hi(0x2019400), %g1 <== NOT EXECUTED 200d174: 03 00 80 65 sethi %hi(0x2019400), %g1 200d178: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 ! 2019484 200d17c: 90 07 bf ec add %fp, -20, %o0 200d180: 10 80 00 05 b 200d194 200d184: 92 02 60 18 add %o1, 0x18, %o1 200d188: d2 00 60 84 ld [ %g1 + 0x84 ], %o1 <== NOT EXECUTED 200d18c: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED 200d190: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED 200d194: 94 10 20 14 mov 0x14, %o2 200d198: 40 00 02 f4 call 200dd68 200d19c: a2 10 20 00 clr %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200d1a0: 10 80 00 0b b 200d1cc 200d1a4: 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, 200d1a8: 92 10 00 13 mov %l3, %o1 200d1ac: 94 10 20 02 mov 2, %o2 200d1b0: 96 07 bf ec add %fp, -20, %o3 200d1b4: 7f ff d3 e3 call 2002140 200d1b8: 98 10 20 00 clr %o4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 200d1bc: 80 a2 20 00 cmp %o0, 0 200d1c0: 12 80 00 82 bne 200d3c8 200d1c4: a2 10 20 01 mov 1, %l1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 200d1c8: 94 10 20 14 mov 0x14, %o2 200d1cc: a0 07 bf d8 add %fp, -40, %l0 200d1d0: a4 07 bf ec add %fp, -20, %l2 200d1d4: 90 10 00 10 mov %l0, %o0 200d1d8: 40 00 02 e4 call 200dd68 200d1dc: 92 10 00 12 mov %l2, %o1 name = path + parentpathlen; 200d1e0: b0 06 00 13 add %i0, %l3, %i0 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 200d1e4: 40 00 04 5d call 200e358 200d1e8: 90 10 00 18 mov %i0, %o0 200d1ec: 92 10 00 08 mov %o0, %o1 200d1f0: 7f ff d3 74 call 2001fc0 200d1f4: 90 10 00 18 mov %i0, %o0 200d1f8: b0 06 00 08 add %i0, %o0, %i0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 200d1fc: 40 00 04 57 call 200e358 200d200: 90 10 00 18 mov %i0, %o0 200d204: 94 10 20 00 clr %o2 200d208: 92 10 00 08 mov %o0, %o1 200d20c: 96 10 00 10 mov %l0, %o3 200d210: 90 10 00 18 mov %i0, %o0 200d214: 7f ff d3 8f call 2002050 200d218: 98 10 20 00 clr %o4 0, &loc, false ); if ( result != 0 ) { 200d21c: 80 a2 20 00 cmp %o0, 0 200d220: 02 80 00 11 be 200d264 200d224: c4 07 bf e4 ld [ %fp + -28 ], %g2 if ( free_parentloc ) 200d228: 80 8c 60 ff btst 0xff, %l1 200d22c: 02 80 00 0c be 200d25c 200d230: b0 10 3f ff mov -1, %i0 rtems_filesystem_freenode( &parentloc ); 200d234: c2 07 bf f8 ld [ %fp + -8 ], %g1 200d238: 80 a0 60 00 cmp %g1, 0 200d23c: 02 80 00 64 be 200d3cc 200d240: 01 00 00 00 nop 200d244: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200d248: 80 a0 60 00 cmp %g1, 0 200d24c: 02 80 00 04 be 200d25c 200d250: 90 10 00 12 mov %l2, %o0 200d254: 9f c0 40 00 call %g1 200d258: 01 00 00 00 nop 200d25c: 81 c7 e0 08 ret 200d260: 81 e8 00 00 restore return -1; } if ( !loc.ops->node_type_h ) { 200d264: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 200d268: 80 a0 60 00 cmp %g1, 0 200d26c: 22 80 00 26 be,a 200d304 200d270: 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 ) { 200d274: 9f c0 40 00 call %g1 200d278: 90 10 00 10 mov %l0, %o0 200d27c: 80 a2 20 01 cmp %o0, 1 200d280: 12 80 00 1c bne 200d2f0 200d284: c4 07 bf e4 ld [ %fp + -28 ], %g2 rtems_filesystem_freenode( &loc ); 200d288: 80 a0 a0 00 cmp %g2, 0 200d28c: 02 80 00 09 be 200d2b0 200d290: 80 8c 60 ff btst 0xff, %l1 200d294: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 200d298: 80 a0 60 00 cmp %g1, 0 200d29c: 02 80 00 05 be 200d2b0 200d2a0: 80 8c 60 ff btst 0xff, %l1 200d2a4: 9f c0 40 00 call %g1 200d2a8: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200d2ac: 80 8c 60 ff btst 0xff, %l1 200d2b0: 02 80 00 0c be 200d2e0 200d2b4: 01 00 00 00 nop rtems_filesystem_freenode( &parentloc ); 200d2b8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED 200d2bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d2c0: 02 80 00 08 be 200d2e0 <== NOT EXECUTED 200d2c4: 01 00 00 00 nop <== NOT EXECUTED 200d2c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200d2cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d2d0: 02 80 00 04 be 200d2e0 <== NOT EXECUTED 200d2d4: 01 00 00 00 nop <== NOT EXECUTED 200d2d8: 9f c0 40 00 call %g1 <== NOT EXECUTED 200d2dc: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 200d2e0: 40 00 00 67 call 200d47c <__errno> 200d2e4: b0 10 3f ff mov -1, %i0 200d2e8: 10 80 00 1b b 200d354 200d2ec: 82 10 20 15 mov 0x15, %g1 } if ( !loc.ops->unlink_h ) { 200d2f0: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 200d2f4: 80 a0 60 00 cmp %g1, 0 200d2f8: 12 80 00 1a bne 200d360 200d2fc: 90 10 00 12 mov %l2, %o0 rtems_filesystem_freenode( &loc ); 200d300: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 200d304: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d308: 02 80 00 05 be 200d31c <== NOT EXECUTED 200d30c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200d310: 9f c0 40 00 call %g1 <== NOT EXECUTED 200d314: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED if ( free_parentloc ) 200d318: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED 200d31c: 02 80 00 0b be 200d348 <== NOT EXECUTED 200d320: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 200d324: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d328: 02 80 00 08 be 200d348 <== NOT EXECUTED 200d32c: 01 00 00 00 nop <== NOT EXECUTED 200d330: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED 200d334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 200d338: 02 80 00 04 be 200d348 <== NOT EXECUTED 200d33c: 01 00 00 00 nop <== NOT EXECUTED 200d340: 9f c0 40 00 call %g1 <== NOT EXECUTED 200d344: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 200d348: 40 00 00 4d call 200d47c <__errno> <== NOT EXECUTED 200d34c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 200d350: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 200d354: c2 22 00 00 st %g1, [ %o0 ] 200d358: 81 c7 e0 08 ret 200d35c: 81 e8 00 00 restore } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 200d360: 9f c0 40 00 call %g1 200d364: 92 10 00 10 mov %l0, %o1 rtems_filesystem_freenode( &loc ); 200d368: c2 07 bf e4 ld [ %fp + -28 ], %g1 200d36c: 80 a0 60 00 cmp %g1, 0 200d370: 02 80 00 08 be 200d390 200d374: b0 10 00 08 mov %o0, %i0 200d378: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200d37c: 80 a0 60 00 cmp %g1, 0 200d380: 02 80 00 05 be 200d394 200d384: 80 8c 60 ff btst 0xff, %l1 200d388: 9f c0 40 00 call %g1 200d38c: 90 10 00 10 mov %l0, %o0 if ( free_parentloc ) 200d390: 80 8c 60 ff btst 0xff, %l1 200d394: 02 bf ff b2 be 200d25c 200d398: c2 07 bf f8 ld [ %fp + -8 ], %g1 rtems_filesystem_freenode( &parentloc ); 200d39c: 80 a0 60 00 cmp %g1, 0 200d3a0: 02 80 00 0b be 200d3cc 200d3a4: 01 00 00 00 nop 200d3a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200d3ac: 80 a0 60 00 cmp %g1, 0 200d3b0: 02 80 00 07 be 200d3cc 200d3b4: 01 00 00 00 nop 200d3b8: 9f c0 40 00 call %g1 200d3bc: 90 07 bf ec add %fp, -20, %o0 200d3c0: 81 c7 e0 08 ret 200d3c4: 81 e8 00 00 restore 200d3c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED return result; } 200d3cc: 81 c7 e0 08 ret <== NOT EXECUTED 200d3d0: 81 e8 00 00 restore <== NOT EXECUTED 020094f4 : */ int unmount( const char *path ) { 20094f4: 9d e3 bf 88 save %sp, -120, %sp * The root node of the mounted filesytem. * The node for the directory that the fileystem is mounted on. * The mount entry that is being refered to. */ if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) 20094f8: 40 00 ea a6 call 2043f90 20094fc: 90 10 00 18 mov %i0, %o0 2009500: a0 07 bf ec add %fp, -20, %l0 2009504: 92 10 00 08 mov %o0, %o1 2009508: 94 10 20 00 clr %o2 200950c: 90 10 00 18 mov %i0, %o0 2009510: 96 10 00 10 mov %l0, %o3 2009514: 7f ff f1 80 call 2005b14 2009518: 98 10 20 01 mov 1, %o4 200951c: 80 a2 20 00 cmp %o0, 0 2009520: 12 80 00 6a bne 20096c8 2009524: e2 07 bf fc ld [ %fp + -4 ], %l1 return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 2009528: c4 07 bf ec ld [ %fp + -20 ], %g2 200952c: c6 04 60 1c ld [ %l1 + 0x1c ], %g3 2009530: 80 a0 c0 02 cmp %g3, %g2 2009534: 02 80 00 0f be 2009570 2009538: c2 07 bf f8 ld [ %fp + -8 ], %g1 /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ rtems_filesystem_freenode( &loc ); 200953c: 80 a0 60 00 cmp %g1, 0 2009540: 02 80 00 08 be 2009560 2009544: 01 00 00 00 nop 2009548: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 200954c: 80 a0 60 00 cmp %g1, 0 2009550: 02 80 00 04 be 2009560 2009554: 01 00 00 00 nop 2009558: 9f c0 40 00 call %g1 200955c: 90 10 00 10 mov %l0, %o0 rtems_set_errno_and_return_minus_one( EACCES ); 2009560: 40 00 cf 61 call 203d2e4 <__errno> 2009564: 01 00 00 00 nop 2009568: 10 80 00 21 b 20095ec 200956c: 82 10 20 0d mov 0xd, %g1 ! d /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 2009570: 80 a0 60 00 cmp %g1, 0 2009574: 22 80 00 09 be,a 2009598 2009578: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200957c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2009580: 80 a0 60 00 cmp %g1, 0 2009584: 22 80 00 05 be,a 2009598 2009588: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 200958c: 9f c0 40 00 call %g1 2009590: 90 10 00 10 mov %l0, %o0 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; 2009594: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009598: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 200959c: 80 a0 60 00 cmp %g1, 0 20095a0: 02 80 00 07 be 20095bc 20095a4: 01 00 00 00 nop fs_root_loc = &mt_entry->mt_fs_root; 20095a8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 20095ac: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 20095b0: 80 a0 60 00 cmp %g1, 0 20095b4: 32 80 00 06 bne,a 20095cc 20095b8: 03 00 81 89 sethi %hi(0x2062400), %g1 if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 20095bc: 40 00 cf 4a call 203d2e4 <__errno> <== NOT EXECUTED 20095c0: 01 00 00 00 nop <== NOT EXECUTED 20095c4: 10 80 00 0a b 20095ec <== NOT EXECUTED 20095c8: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED * that made the current node thread based instead * of system based? I thought it was but it doesn't * look like it in this version. */ if ( rtems_filesystem_current.mt_entry == mt_entry ) 20095cc: c2 00 61 d4 ld [ %g1 + 0x1d4 ], %g1 20095d0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 20095d4: 80 a0 40 11 cmp %g1, %l1 20095d8: 12 80 00 08 bne 20095f8 20095dc: 03 00 81 98 sethi %hi(0x2066000), %g1 rtems_set_errno_and_return_minus_one( EBUSY ); 20095e0: 40 00 cf 41 call 203d2e4 <__errno> 20095e4: 01 00 00 00 nop 20095e8: 82 10 20 10 mov 0x10, %g1 ! 10 20095ec: c2 22 00 00 st %g1, [ %o0 ] 20095f0: 81 c7 e0 08 ret 20095f4: 91 e8 3f ff restore %g0, -1, %o0 20095f8: 05 00 81 98 sethi %hi(0x2066000), %g2 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20095fc: c2 00 63 f0 ld [ %g1 + 0x3f0 ], %g1 2009600: 10 80 00 07 b 200961c 2009604: 84 10 a3 f4 or %g2, 0x3f4, %g2 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 2009608: c6 04 60 2c ld [ %l1 + 0x2c ], %g3 200960c: 80 a1 00 03 cmp %g4, %g3 2009610: 02 bf ff f4 be 20095e0 2009614: 01 00 00 00 nop * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { 2009618: c2 00 40 00 ld [ %g1 ], %g1 200961c: 80 a0 40 02 cmp %g1, %g2 2009620: 32 bf ff fa bne,a 2009608 2009624: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 2009628: 30 80 00 2a b,a 20096d0 * Allow the file system being unmounted on to do its cleanup. * If it fails it will set the errno to the approprate value * and the fileystem will not be modified. */ if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 ) 200962c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 2009630: 9f c0 40 00 call %g1 2009634: 90 10 00 11 mov %l1, %o0 2009638: 80 a2 20 00 cmp %o0, 0 200963c: 12 80 00 23 bne 20096c8 2009640: 01 00 00 00 nop * NOTE: Fatal error is called in a case which should never happen * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ 2009644: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 2009648: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 200964c: 9f c0 40 00 call %g1 2009650: 90 10 00 11 mov %l1, %o0 2009654: 80 a2 20 00 cmp %o0, 0 2009658: 02 80 00 0b be 2009684 200965c: 01 00 00 00 nop if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 2009660: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED 2009664: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED 2009668: 9f c0 40 00 call %g1 <== NOT EXECUTED 200966c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 2009670: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 2009674: 02 80 00 15 be 20096c8 <== NOT EXECUTED 2009678: 01 00 00 00 nop <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 200967c: 40 00 04 f0 call 200aa3c <== NOT EXECUTED 2009680: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 2009684: 40 00 05 ba call 200ad6c <_Chain_Extract> 2009688: 90 10 00 11 mov %l1, %o0 /* * Free the memory node that was allocated in mount * Free the memory associated with the extracted mount table entry. */ rtems_filesystem_freenode( fs_mount_loc ); 200968c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 2009690: 80 a0 60 00 cmp %g1, 0 2009694: 02 80 00 09 be 20096b8 2009698: 90 10 00 11 mov %l1, %o0 200969c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 20096a0: 80 a0 60 00 cmp %g1, 0 20096a4: 02 80 00 05 be 20096b8 20096a8: 01 00 00 00 nop 20096ac: 9f c0 40 00 call %g1 20096b0: 90 04 60 08 add %l1, 8, %o0 free( mt_entry ); 20096b4: 90 10 00 11 mov %l1, %o0 20096b8: 7f ff f1 40 call 2005bb8 20096bc: b0 10 20 00 clr %i0 return 0; 20096c0: 81 c7 e0 08 ret 20096c4: 81 e8 00 00 restore } 20096c8: 81 c7 e0 08 ret 20096cc: 91 e8 3f ff restore %g0, -1, %o0 * Run the file descriptor table to determine if there are any file * descriptors that are currently active and reference nodes in the * file system that we are trying to unmount */ if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 ) 20096d0: 7f ff f1 f4 call 2005ea0 20096d4: 90 10 00 11 mov %l1, %o0 20096d8: 80 a2 20 01 cmp %o0, 1 20096dc: 32 bf ff d4 bne,a 200962c 20096e0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 20096e4: 30 bf ff bf b,a 20095e0 02026ebc : int utime( const char *path, const struct utimbuf *times ) { 2026ebc: 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 ) ) 2026ec0: 40 00 74 34 call 2043f90 2026ec4: 90 10 00 18 mov %i0, %o0 2026ec8: a0 07 bf ec add %fp, -20, %l0 2026ecc: 92 10 00 08 mov %o0, %o1 2026ed0: 94 10 20 00 clr %o2 2026ed4: 90 10 00 18 mov %i0, %o0 2026ed8: 96 10 00 10 mov %l0, %o3 2026edc: 98 10 20 01 mov 1, %o4 2026ee0: 7f ff 7b 0d call 2005b14 2026ee4: b0 10 3f ff mov -1, %i0 2026ee8: 80 a2 20 00 cmp %o0, 0 2026eec: 12 80 00 10 bne 2026f2c 2026ef0: c4 07 bf f8 ld [ %fp + -8 ], %g2 return -1; if ( !temp_loc.ops->utime_h ){ 2026ef4: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 2026ef8: 80 a0 60 00 cmp %g1, 0 2026efc: 32 80 00 0e bne,a 2026f34 2026f00: d4 06 60 04 ld [ %i1 + 4 ], %o2 rtems_filesystem_freenode( &temp_loc ); 2026f04: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 2026f08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 2026f0c: 02 80 00 04 be 2026f1c <== NOT EXECUTED 2026f10: 01 00 00 00 nop <== NOT EXECUTED 2026f14: 9f c0 40 00 call %g1 <== NOT EXECUTED 2026f18: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2026f1c: 40 00 58 f2 call 203d2e4 <__errno> <== NOT EXECUTED 2026f20: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2026f24: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2026f28: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2026f2c: 81 c7 e0 08 ret 2026f30: 81 e8 00 00 restore } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 2026f34: d2 06 40 00 ld [ %i1 ], %o1 2026f38: 9f c0 40 00 call %g1 2026f3c: 90 10 00 10 mov %l0, %o0 rtems_filesystem_freenode( &temp_loc ); 2026f40: c2 07 bf f8 ld [ %fp + -8 ], %g1 2026f44: 80 a0 60 00 cmp %g1, 0 2026f48: 02 bf ff f9 be 2026f2c 2026f4c: b0 10 00 08 mov %o0, %i0 2026f50: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 2026f54: 80 a0 60 00 cmp %g1, 0 2026f58: 02 80 00 04 be 2026f68 2026f5c: 01 00 00 00 nop 2026f60: 9f c0 40 00 call %g1 2026f64: 90 10 00 10 mov %l0, %o0 return result; } 2026f68: 81 c7 e0 08 ret 2026f6c: 81 e8 00 00 restore 02017b58 : ssize_t write( int fd, const void *buffer, size_t count ) { 2017b58: 9d e3 bf a0 save %sp, -96, %sp ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2017b5c: 03 00 80 64 sethi %hi(0x2019000), %g1 2017b60: c2 00 63 74 ld [ %g1 + 0x374 ], %g1 ! 2019374 ssize_t write( int fd, const void *buffer, size_t count ) { 2017b64: 92 10 00 19 mov %i1, %o1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 2017b68: 80 a6 00 01 cmp %i0, %g1 2017b6c: 1a 80 00 0c bcc 2017b9c 2017b70: 94 10 00 1a mov %i2, %o2 iop = rtems_libio_iop( fd ); 2017b74: 03 00 80 67 sethi %hi(0x2019c00), %g1 2017b78: e0 00 60 24 ld [ %g1 + 0x24 ], %l0 ! 2019c24 2017b7c: 83 2e 20 06 sll %i0, 6, %g1 2017b80: b1 2e 20 03 sll %i0, 3, %i0 2017b84: b0 06 00 01 add %i0, %g1, %i0 2017b88: a0 04 00 18 add %l0, %i0, %l0 rtems_libio_check_is_open( iop ); 2017b8c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 2017b90: 80 88 61 00 btst 0x100, %g1 2017b94: 12 80 00 06 bne 2017bac 2017b98: 80 a6 60 00 cmp %i1, 0 2017b9c: 7f ff d6 38 call 200d47c <__errno> <== NOT EXECUTED 2017ba0: 01 00 00 00 nop <== NOT EXECUTED 2017ba4: 10 80 00 14 b 2017bf4 <== NOT EXECUTED 2017ba8: 82 10 20 09 mov 9, %g1 ! 9 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 2017bac: 02 80 00 07 be 2017bc8 2017bb0: 80 a6 a0 00 cmp %i2, 0 rtems_libio_check_count( count ); 2017bb4: 02 80 00 1c be 2017c24 2017bb8: 90 10 20 00 clr %o0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 2017bbc: 80 88 60 04 btst 4, %g1 2017bc0: 32 80 00 06 bne,a 2017bd8 2017bc4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 2017bc8: 7f ff d6 2d call 200d47c <__errno> <== NOT EXECUTED 2017bcc: 01 00 00 00 nop <== NOT EXECUTED 2017bd0: 10 80 00 09 b 2017bf4 <== NOT EXECUTED 2017bd4: 82 10 20 16 mov 0x16, %g1 ! 16 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 2017bd8: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2017bdc: 80 a0 60 00 cmp %g1, 0 2017be0: 12 80 00 08 bne 2017c00 2017be4: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENOTSUP ); 2017be8: 7f ff d6 25 call 200d47c <__errno> <== NOT EXECUTED 2017bec: 01 00 00 00 nop <== NOT EXECUTED 2017bf0: 82 10 20 86 mov 0x86, %g1 ! 86 <== NOT EXECUTED 2017bf4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 2017bf8: 10 80 00 0b b 2017c24 <== NOT EXECUTED 2017bfc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 2017c00: 9f c0 40 00 call %g1 2017c04: 90 10 00 10 mov %l0, %o0 if ( rc > 0 ) 2017c08: 80 a2 20 00 cmp %o0, 0 2017c0c: 04 80 00 06 ble 2017c24 2017c10: 85 3a 20 1f sra %o0, 0x1f, %g2 iop->offset += rc; 2017c14: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 2017c18: 86 83 40 08 addcc %o5, %o0, %g3 2017c1c: 84 43 00 02 addx %o4, %g2, %g2 2017c20: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] return rc; } 2017c24: 81 c7 e0 08 ret 2017c28: 91 e8 00 08 restore %g0, %o0, %o0 0200689c : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 200689c: 9d e3 bf a0 save %sp, -96, %sp int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 20068a0: 03 00 80 77 sethi %hi(0x201dc00), %g1 20068a4: c2 00 63 04 ld [ %g1 + 0x304 ], %g1 ! 201df04 20068a8: 80 a6 00 01 cmp %i0, %g1 20068ac: 1a 80 00 0c bcc 20068dc 20068b0: 01 00 00 00 nop iop = rtems_libio_iop( fd ); 20068b4: 03 00 80 7b sethi %hi(0x201ec00), %g1 20068b8: e4 00 63 8c ld [ %g1 + 0x38c ], %l2 ! 201ef8c 20068bc: 83 2e 20 06 sll %i0, 6, %g1 20068c0: b1 2e 20 03 sll %i0, 3, %i0 20068c4: b0 06 00 01 add %i0, %g1, %i0 20068c8: a4 04 80 18 add %l2, %i0, %l2 rtems_libio_check_is_open( iop ); 20068cc: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 20068d0: 80 88 61 00 btst 0x100, %g1 20068d4: 12 80 00 06 bne 20068ec 20068d8: 80 88 60 04 btst 4, %g1 20068dc: 40 00 24 af call 200fb98 <__errno> 20068e0: b0 10 3f ff mov -1, %i0 20068e4: 10 80 00 1f b 2006960 20068e8: 82 10 20 09 mov 9, %g1 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 20068ec: 02 80 00 1a be 2006954 20068f0: 80 a6 60 00 cmp %i1, 0 /* * Argument validation on IO vector */ if ( !iov ) 20068f4: 02 80 00 18 be 2006954 20068f8: 80 a6 a0 00 cmp %i2, 0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 20068fc: 04 80 00 16 ble 2006954 2006900: 80 a6 a4 00 cmp %i2, 0x400 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 2006904: 14 80 00 14 bg 2006954 2006908: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 200690c: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 2006910: c2 00 60 0c ld [ %g1 + 0xc ], %g1 2006914: 80 a0 60 00 cmp %g1, 0 2006918: 12 80 00 06 bne 2006930 200691c: 19 00 00 1f sethi %hi(0x7c00), %o4 rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006920: 40 00 24 9e call 200fb98 <__errno> <== NOT EXECUTED 2006924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 2006928: 10 80 00 0e b 2006960 <== NOT EXECUTED 200692c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED 2006930: 82 10 00 19 mov %i1, %g1 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 2006934: 98 13 23 ff or %o4, 0x3ff, %o4 if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 2006938: 84 10 20 01 mov 1, %g2 200693c: 88 10 20 00 clr %g4 2006940: 86 10 20 00 clr %g3 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) 2006944: da 00 40 00 ld [ %g1 ], %o5 2006948: 80 a3 60 00 cmp %o5, 0 200694c: 32 80 00 08 bne,a 200696c 2006950: da 00 60 04 ld [ %g1 + 4 ], %o5 rtems_set_errno_and_return_minus_one( EINVAL ); 2006954: 40 00 24 91 call 200fb98 <__errno> 2006958: b0 10 3f ff mov -1, %i0 200695c: 82 10 20 16 mov 0x16, %g1 2006960: c2 22 00 00 st %g1, [ %o0 ] 2006964: 81 c7 e0 08 ret 2006968: 81 e8 00 00 restore if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 200696c: 80 a0 00 0d cmp %g0, %o5 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 2006970: 9a 00 c0 0d add %g3, %o5, %o5 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 2006974: 96 40 3f ff addx %g0, -1, %o3 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 2006978: 80 a3 40 0c cmp %o5, %o4 200697c: 14 bf ff f6 bg 2006954 2006980: 84 08 80 0b and %g2, %o3, %g2 2006984: 80 a3 40 03 cmp %o5, %g3 2006988: 06 bf ff f3 bl 2006954 200698c: 88 01 20 01 inc %g4 * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { 2006990: 80 a1 00 1a cmp %g4, %i2 2006994: 16 80 00 04 bge 20069a4 2006998: 82 00 60 08 add %g1, 8, %g1 200699c: 10 bf ff ea b 2006944 20069a0: 86 10 00 0d mov %o5, %g3 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 20069a4: 80 88 a0 ff btst 0xff, %g2 <== NOT EXECUTED 20069a8: a6 10 20 00 clr %l3 <== NOT EXECUTED 20069ac: 12 bf ff ee bne 2006964 <== NOT EXECUTED 20069b0: b0 10 20 00 clr %i0 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 20069b4: d4 06 60 04 ld [ %i1 + 4 ], %o2 <== NOT EXECUTED 20069b8: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 20069bc: 02 80 00 17 be 2006a18 <== NOT EXECUTED 20069c0: a6 04 e0 01 inc %l3 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 20069c4: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 <== NOT EXECUTED 20069c8: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED 20069cc: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED 20069d0: 9f c0 40 00 call %g1 <== NOT EXECUTED 20069d4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED if ( bytes < 0 ) 20069d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 20069dc: 16 80 00 04 bge 20069ec <== NOT EXECUTED 20069e0: 01 00 00 00 nop <== NOT EXECUTED 20069e4: 81 c7 e0 08 ret <== NOT EXECUTED 20069e8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 20069ec: 02 80 00 07 be 2006a08 <== NOT EXECUTED 20069f0: a1 3a 20 1f sra %o0, 0x1f, %l0 <== NOT EXECUTED iop->offset += bytes; 20069f4: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2 <== NOT EXECUTED 20069f8: 86 80 c0 08 addcc %g3, %o0, %g3 <== NOT EXECUTED total += bytes; 20069fc: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; 2006a00: 84 40 80 10 addx %g2, %l0, %g2 <== NOT EXECUTED 2006a04: c4 3c a0 10 std %g2, [ %l2 + 0x10 ] <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) 2006a08: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED 2006a0c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED 2006a10: 12 80 00 05 bne 2006a24 <== NOT EXECUTED 2006a14: 01 00 00 00 nop <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 2006a18: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED 2006a1c: 06 bf ff e6 bl 20069b4 <== NOT EXECUTED 2006a20: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 2006a24: 81 c7 e0 08 ret <== NOT EXECUTED 2006a28: 81 e8 00 00 restore <== NOT EXECUTED